11
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12
12
# PARTICULAR PURPOSE.
14
dnl Usage: RELAYTOOL(LIBRARY_NAME, LIBS, CFLAGS, ACTION-IF-WEAK-LINK-IS-POSSIBLE)
17
dnl RELAYTOOL("gtkspell", GTKSPELL_LIBS, GTKSPELL_CFLAGS, gtkspell_weak=yes)
18
dnl Will modify GTKSPELL_LIBS to include a call to relaytool if available
19
dnl or if not, will modify GTKSPELL_CFLAGS to include -D switches to define
20
dnl libgtkspell_is_present=1 and libgtkspell_symbol_is_present=1
22
AC_DEFUN([RELAYTOOL], [
23
if test -z "$RELAYTOOL_PROG"; then
24
AC_PATH_PROG(RELAYTOOL_PROG, relaytool, no)
27
AC_MSG_CHECKING(whether we can weak link $1)
29
_RELAYTOOL_PROCESSED_NAME=`echo "$1" | sed 's/-/_/g;s/\./_/g;'`
30
_RELAYTOOL_UPPER_NAME=`echo $_RELAYTOOL_PROCESSED_NAME | tr '[[:lower:]]' '[[:upper:]]'`
32
if test "$RELAYTOOL_PROG" = "no"; then
34
$3="-DRELAYTOOL_${_RELAYTOOL_UPPER_NAME}='static const int lib${_RELAYTOOL_PROCESSED_NAME}_is_present = 1; static int __attribute__((unused)) lib${_RELAYTOOL_PROCESSED_NAME}_symbol_is_present(char *m) { return 1; }' $$3"
37
$2=`echo $$2|sed 's/\`/\\\\\`/g;'`
38
$2="-Wl,--gc-sections \`relaytool --relay $1 $$2\`"
39
$3="-DRELAYTOOL_${_RELAYTOOL_UPPER_NAME}='extern int lib${_RELAYTOOL_PROCESSED_NAME}_is_present; extern int lib${_RELAYTOOL_PROCESSED_NAME}_symbol_is_present(char *s);' $$3"
45
# Do all the work for Automake. -*- Autoconf -*-
47
# This macro actually does too much some checks are only needed if
48
# your package does certain things. But this isn't really a big deal.
50
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
51
# Free Software Foundation, Inc.
53
# This program is free software; you can redistribute it and/or modify
54
# it under the terms of the GNU General Public License as published by
55
# the Free Software Foundation; either version 2, or (at your option)
58
# This program is distributed in the hope that it will be useful,
59
# but WITHOUT ANY WARRANTY; without even the implied warranty of
60
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
61
# GNU General Public License for more details.
63
# You should have received a copy of the GNU General Public License
64
# along with this program; if not, write to the Free Software
65
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
72
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
73
# the ones we care about.
74
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
76
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
77
# AM_INIT_AUTOMAKE([OPTIONS])
78
# -----------------------------------------------
79
# The call with PACKAGE and VERSION arguments is the old style
80
# call (pre autoconf-2.50), which is being phased out. PACKAGE
81
# and VERSION should now be passed to AC_INIT and removed from
82
# the call to AM_INIT_AUTOMAKE.
83
# We support both call styles for the transition. After
84
# the next Automake release, Autoconf can make the AC_INIT
85
# arguments mandatory, and then we can depend on a new Autoconf
86
# release and drop the old call support.
87
AC_DEFUN([AM_INIT_AUTOMAKE],
88
[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
89
AC_REQUIRE([AC_PROG_INSTALL])dnl
90
# test to see if srcdir already configured
91
if test "`cd $srcdir && pwd`" != "`pwd`" &&
92
test -f $srcdir/config.status; then
93
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
96
# test whether we have cygpath
97
if test -z "$CYGPATH_W"; then
98
if (cygpath --version) >/dev/null 2>/dev/null; then
99
CYGPATH_W='cygpath -w'
104
AC_SUBST([CYGPATH_W])
106
# Define the identity of the package.
107
dnl Distinguish between old-style and new-style calls.
109
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
110
AC_SUBST([PACKAGE], [$1])dnl
111
AC_SUBST([VERSION], [$2])],
112
[_AM_SET_OPTIONS([$1])dnl
113
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
114
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
116
_AM_IF_OPTION([no-define],,
117
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
118
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
120
# Some tools Automake needs.
121
AC_REQUIRE([AM_SANITY_CHECK])dnl
122
AC_REQUIRE([AC_ARG_PROGRAM])dnl
123
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
124
AM_MISSING_PROG(AUTOCONF, autoconf)
125
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
126
AM_MISSING_PROG(AUTOHEADER, autoheader)
127
AM_MISSING_PROG(MAKEINFO, makeinfo)
128
AM_MISSING_PROG(AMTAR, tar)
130
AM_PROG_INSTALL_STRIP
131
# We need awk for the "check" target. The system "awk" is bad on
133
AC_REQUIRE([AC_PROG_AWK])dnl
134
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
135
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
137
_AM_IF_OPTION([no-dependencies],,
138
[AC_PROVIDE_IFELSE([AC_PROG_CC],
139
[_AM_DEPENDENCIES(CC)],
140
[define([AC_PROG_CC],
141
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
142
AC_PROVIDE_IFELSE([AC_PROG_CXX],
143
[_AM_DEPENDENCIES(CXX)],
144
[define([AC_PROG_CXX],
145
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
150
# When config.status generates a header, we must update the stamp-h file.
151
# This file resides in the same directory as the config header
152
# that is generated. The stamp files are numbered to have different names.
154
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
155
# loop where config.status creates the headers, so we can generate
156
# our stamp files there.
157
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
158
[# Compute $1's index in $config_headers.
160
for _am_header in $config_headers :; do
165
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
168
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
170
# Copyright 2002 Free Software Foundation, Inc.
172
# This program is free software; you can redistribute it and/or modify
173
# it under the terms of the GNU General Public License as published by
174
# the Free Software Foundation; either version 2, or (at your option)
177
# This program is distributed in the hope that it will be useful,
178
# but WITHOUT ANY WARRANTY; without even the implied warranty of
179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180
# GNU General Public License for more details.
182
# You should have received a copy of the GNU General Public License
183
# along with this program; if not, write to the Free Software
184
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
186
# AM_AUTOMAKE_VERSION(VERSION)
187
# ----------------------------
188
# Automake X.Y traces this macro to ensure aclocal.m4 has been
189
# generated from the m4 files accompanying Automake X.Y.
190
AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
192
# AM_SET_CURRENT_AUTOMAKE_VERSION
193
# -------------------------------
194
# Call AM_AUTOMAKE_VERSION so it can be traced.
195
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
196
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
197
[AM_AUTOMAKE_VERSION([1.7.9])])
199
# Helper functions for option handling. -*- Autoconf -*-
201
# Copyright 2001, 2002 Free Software Foundation, Inc.
203
# This program is free software; you can redistribute it and/or modify
204
# it under the terms of the GNU General Public License as published by
205
# the Free Software Foundation; either version 2, or (at your option)
208
# This program is distributed in the hope that it will be useful,
209
# but WITHOUT ANY WARRANTY; without even the implied warranty of
210
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
211
# GNU General Public License for more details.
213
# You should have received a copy of the GNU General Public License
214
# along with this program; if not, write to the Free Software
215
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
220
# _AM_MANGLE_OPTION(NAME)
221
# -----------------------
222
AC_DEFUN([_AM_MANGLE_OPTION],
223
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
225
# _AM_SET_OPTION(NAME)
226
# ------------------------------
227
# Set option NAME. Presently that only means defining a flag for this option.
228
AC_DEFUN([_AM_SET_OPTION],
229
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
231
# _AM_SET_OPTIONS(OPTIONS)
232
# ----------------------------------
233
# OPTIONS is a space-separated list of Automake options.
234
AC_DEFUN([_AM_SET_OPTIONS],
235
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
237
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
238
# -------------------------------------------
239
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
240
AC_DEFUN([_AM_IF_OPTION],
241
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
244
# Check to make sure that the build environment is sane.
247
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
249
# This program is free software; you can redistribute it and/or modify
250
# it under the terms of the GNU General Public License as published by
251
# the Free Software Foundation; either version 2, or (at your option)
254
# This program is distributed in the hope that it will be useful,
255
# but WITHOUT ANY WARRANTY; without even the implied warranty of
256
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
257
# GNU General Public License for more details.
259
# You should have received a copy of the GNU General Public License
260
# along with this program; if not, write to the Free Software
261
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
268
AC_DEFUN([AM_SANITY_CHECK],
269
[AC_MSG_CHECKING([whether build environment is sane])
272
echo timestamp > conftest.file
273
# Do `set' in a subshell so we don't clobber the current shell's
274
# arguments. Must try -L first in case configure is actually a
275
# symlink; some systems play weird games with the mod time of symlinks
276
# (eg FreeBSD returns the mod time of the symlink's containing
279
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
280
if test "$[*]" = "X"; then
282
set X `ls -t $srcdir/configure conftest.file`
285
if test "$[*]" != "X $srcdir/configure conftest.file" \
286
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
288
# If neither matched, then we have a broken ls. This can happen
289
# if, for instance, CONFIG_SHELL is bash and it inherits a
290
# broken ls alias from the environment. This has actually
291
# happened. Such a system could not be considered "sane".
292
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
293
alias in your environment])
296
test "$[2]" = conftest.file
302
AC_MSG_ERROR([newly created file is older than distributed files!
303
Check your system clock])
310
# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
312
# This program is free software; you can redistribute it and/or modify
313
# it under the terms of the GNU General Public License as published by
314
# the Free Software Foundation; either version 2, or (at your option)
317
# This program is distributed in the hope that it will be useful,
318
# but WITHOUT ANY WARRANTY; without even the implied warranty of
319
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
320
# GNU General Public License for more details.
322
# You should have received a copy of the GNU General Public License
323
# along with this program; if not, write to the Free Software
324
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
329
# AM_MISSING_PROG(NAME, PROGRAM)
330
# ------------------------------
331
AC_DEFUN([AM_MISSING_PROG],
332
[AC_REQUIRE([AM_MISSING_HAS_RUN])
333
$1=${$1-"${am_missing_run}$2"}
339
# Define MISSING if not defined so far and test if it supports --run.
340
# If it does, set am_missing_run to use it, otherwise, to nothing.
341
AC_DEFUN([AM_MISSING_HAS_RUN],
342
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
343
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
344
# Use eval to expand $SHELL
345
if eval "$MISSING --run true"; then
346
am_missing_run="$MISSING --run "
349
AC_MSG_WARN([`missing' script is too old or missing])
355
# Copyright 2001 Free Software Foundation, Inc.
357
# This program is free software; you can redistribute it and/or modify
358
# it under the terms of the GNU General Public License as published by
359
# the Free Software Foundation; either version 2, or (at your option)
362
# This program is distributed in the hope that it will be useful,
363
# but WITHOUT ANY WARRANTY; without even the implied warranty of
364
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
365
# GNU General Public License for more details.
367
# You should have received a copy of the GNU General Public License
368
# along with this program; if not, write to the Free Software
369
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
372
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
373
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
374
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
376
# Of course, Automake must honor this variable whenever it calls a
377
# tool from the auxiliary directory. The problem is that $srcdir (and
378
# therefore $ac_aux_dir as well) can be either absolute or relative,
379
# depending on how configure is run. This is pretty annoying, since
380
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
381
# source directory, any form will work fine, but in subdirectories a
382
# relative path needs to be adjusted first.
384
# $ac_aux_dir/missing
385
# fails when called from a subdirectory if $ac_aux_dir is relative
386
# $top_srcdir/$ac_aux_dir/missing
387
# fails if $ac_aux_dir is absolute,
388
# fails when called from a subdirectory in a VPATH build with
389
# a relative $ac_aux_dir
391
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
392
# are both prefixed by $srcdir. In an in-source build this is usually
393
# harmless because $srcdir is `.', but things will broke when you
394
# start a VPATH build or use an absolute $srcdir.
396
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
397
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
398
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
399
# and then we would define $MISSING as
400
# MISSING="\${SHELL} $am_aux_dir/missing"
401
# This will work as long as MISSING is not called from configure, because
402
# unfortunately $(top_srcdir) has no meaning in configure.
403
# However there are other variables, like CC, which are often used in
404
# configure, and could therefore not use this "fixed" $ac_aux_dir.
406
# Another solution, used here, is to always expand $ac_aux_dir to an
407
# absolute PATH. The drawback is that using absolute paths prevent a
408
# configured tree to be moved without reconfiguration.
410
# Rely on autoconf to set up CDPATH properly.
413
AC_DEFUN([AM_AUX_DIR_EXPAND], [
414
# expand $ac_aux_dir to an absolute path
415
am_aux_dir=`cd $ac_aux_dir && pwd`
420
# Define $install_sh.
422
# Copyright 2001 Free Software Foundation, Inc.
424
# This program is free software; you can redistribute it and/or modify
425
# it under the terms of the GNU General Public License as published by
426
# the Free Software Foundation; either version 2, or (at your option)
429
# This program is distributed in the hope that it will be useful,
430
# but WITHOUT ANY WARRANTY; without even the implied warranty of
431
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
432
# GNU General Public License for more details.
434
# You should have received a copy of the GNU General Public License
435
# along with this program; if not, write to the Free Software
436
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
439
AC_DEFUN([AM_PROG_INSTALL_SH],
440
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
441
install_sh=${install_sh-"$am_aux_dir/install-sh"}
442
AC_SUBST(install_sh)])
444
# AM_PROG_INSTALL_STRIP
446
# Copyright 2001 Free Software Foundation, Inc.
448
# This program is free software; you can redistribute it and/or modify
449
# it under the terms of the GNU General Public License as published by
450
# the Free Software Foundation; either version 2, or (at your option)
453
# This program is distributed in the hope that it will be useful,
454
# but WITHOUT ANY WARRANTY; without even the implied warranty of
455
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
456
# GNU General Public License for more details.
458
# You should have received a copy of the GNU General Public License
459
# along with this program; if not, write to the Free Software
460
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
463
# One issue with vendor `install' (even GNU) is that you can't
464
# specify the program used to strip binaries. This is especially
465
# annoying in cross-compiling environments, where the build's strip
466
# is unlikely to handle the host's binaries.
467
# Fortunately install-sh will honor a STRIPPROG variable, so we
468
# always use install-sh in `make install-strip', and initialize
469
# STRIPPROG with the value of the STRIP variable (set by the user).
470
AC_DEFUN([AM_PROG_INSTALL_STRIP],
471
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
472
# Installed binaries are usually stripped using `strip' when the user
473
# run `make install-strip'. However `strip' might not be the right
474
# tool to use in cross-compilation environments, therefore Automake
475
# will honor the `STRIP' environment variable to overrule this program.
476
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
477
if test "$cross_compiling" != no; then
478
AC_CHECK_TOOL([STRIP], [strip], :)
480
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
481
AC_SUBST([INSTALL_STRIP_PROGRAM])])
484
# Copyright (C) 2003 Free Software Foundation, Inc.
486
# This program is free software; you can redistribute it and/or modify
487
# it under the terms of the GNU General Public License as published by
488
# the Free Software Foundation; either version 2, or (at your option)
491
# This program is distributed in the hope that it will be useful,
492
# but WITHOUT ANY WARRANTY; without even the implied warranty of
493
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
494
# GNU General Public License for more details.
496
# You should have received a copy of the GNU General Public License
497
# along with this program; if not, write to the Free Software
498
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
503
# Check whether the underlying file-system supports filenames
504
# with a leading dot. For instance MS-DOS doesn't.
505
AC_DEFUN([AM_SET_LEADING_DOT],
506
[rm -rf .tst 2>/dev/null
507
mkdir .tst 2>/dev/null
508
if test -d .tst; then
513
rmdir .tst 2>/dev/null
514
AC_SUBST([am__leading_dot])])
516
# serial 5 -*- Autoconf -*-
518
# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
520
# This program is free software; you can redistribute it and/or modify
521
# it under the terms of the GNU General Public License as published by
522
# the Free Software Foundation; either version 2, or (at your option)
525
# This program is distributed in the hope that it will be useful,
526
# but WITHOUT ANY WARRANTY; without even the implied warranty of
527
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
528
# GNU General Public License for more details.
530
# You should have received a copy of the GNU General Public License
531
# along with this program; if not, write to the Free Software
532
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
536
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
537
# written in clear, in which case automake, when reading aclocal.m4,
538
# will think it sees a *use*, and therefore will trigger all it's
539
# C support machinery. Also note that it means that autoscan, seeing
540
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
544
# _AM_DEPENDENCIES(NAME)
545
# ----------------------
546
# See how the compiler implements dependency checking.
547
# NAME is "CC", "CXX", "GCJ", or "OBJC".
548
# We try a few techniques and use that to set a single cache variable.
550
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
551
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
552
# dependency, and given that the user is not expected to run this macro,
553
# just rely on AC_PROG_CC.
554
AC_DEFUN([_AM_DEPENDENCIES],
555
[AC_REQUIRE([AM_SET_DEPDIR])dnl
556
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
557
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
558
AC_REQUIRE([AM_DEP_TRACK])dnl
560
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
561
[$1], CXX, [depcc="$CXX" am_compiler_list=],
562
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
563
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
564
[depcc="$$1" am_compiler_list=])
566
AC_CACHE_CHECK([dependency style of $depcc],
567
[am_cv_$1_dependencies_compiler_type],
568
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
569
# We make a subdir and do the tests there. Otherwise we can end up
570
# making bogus files that we don't know about and never remove. For
571
# instance it was reported that on HP-UX the gcc test will end up
572
# making a dummy file named `D' -- because `-MD' means `put the output
575
# Copy depcomp to subdir because otherwise we won't find it if we're
576
# using a relative directory.
577
cp "$am_depcomp" conftest.dir
579
# We will build objects and dependencies in a subdirectory because
580
# it helps to detect inapplicable dependency modes. For instance
581
# both Tru64's cc and ICC support -MD to output dependencies as a
582
# side effect of compilation, but ICC will put the dependencies in
583
# the current directory while Tru64 will put them in the object
587
am_cv_$1_dependencies_compiler_type=none
588
if test "$am_compiler_list" = ""; then
589
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
591
for depmode in $am_compiler_list; do
592
# Setup a source with many dependencies, because some compilers
593
# like to wrap large dependency lists on column 80 (with \), and
594
# we should not choose a depcomp mode which is confused by this.
596
# We need to recreate these files for each test, as the compiler may
597
# overwrite some of them when testing with obscure command lines.
598
# This happens at least with the AIX C compiler.
600
for i in 1 2 3 4 5 6; do
601
echo '#include "conftst'$i'.h"' >> sub/conftest.c
604
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
608
# after this tag, mechanisms are not by side-effect, so they'll
609
# only be used when explicitly requested
610
if test "x$enable_dependency_tracking" = xyes; then
618
# We check with `-c' and `-o' for the sake of the "dashmstdout"
619
# mode. It turns out that the SunPro C++ compiler does not properly
620
# handle `-M -o', and we need to detect this.
621
if depmode=$depmode \
622
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
623
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
624
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
625
>/dev/null 2>conftest.err &&
626
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
627
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
628
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
629
# icc doesn't choke on unknown options, it will just issue warnings
630
# (even with -Werror). So we grep stderr for any message
631
# that says an option was ignored.
632
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
633
am_cv_$1_dependencies_compiler_type=$depmode
642
am_cv_$1_dependencies_compiler_type=none
645
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
646
AM_CONDITIONAL([am__fastdep$1], [
647
test "x$enable_dependency_tracking" != xno \
648
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
654
# Choose a directory name for dependency files.
655
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
656
AC_DEFUN([AM_SET_DEPDIR],
657
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
658
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
664
AC_DEFUN([AM_DEP_TRACK],
665
[AC_ARG_ENABLE(dependency-tracking,
666
[ --disable-dependency-tracking Speeds up one-time builds
667
--enable-dependency-tracking Do not reject slow dependency extractors])
668
if test "x$enable_dependency_tracking" != xno; then
669
am_depcomp="$ac_aux_dir/depcomp"
672
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
673
AC_SUBST([AMDEPBACKSLASH])
676
# Generate code to set up dependency tracking. -*- Autoconf -*-
678
# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
680
# This program is free software; you can redistribute it and/or modify
681
# it under the terms of the GNU General Public License as published by
682
# the Free Software Foundation; either version 2, or (at your option)
685
# This program is distributed in the hope that it will be useful,
686
# but WITHOUT ANY WARRANTY; without even the implied warranty of
687
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
688
# GNU General Public License for more details.
690
# You should have received a copy of the GNU General Public License
691
# along with this program; if not, write to the Free Software
692
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
697
# _AM_OUTPUT_DEPENDENCY_COMMANDS
698
# ------------------------------
699
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
700
[for mf in $CONFIG_FILES; do
701
# Strip MF so we end up with the name of the file.
702
mf=`echo "$mf" | sed -e 's/:.*$//'`
703
# Check whether this is an Automake generated Makefile or not.
704
# We used to match only the files named `Makefile.in', but
705
# some people rename them; so instead we look at the file content.
706
# Grep'ing the first line is not enough: some people post-process
707
# each Makefile.in and add a new line on top of each file to say so.
708
# So let's grep whole file.
709
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
710
dirpart=`AS_DIRNAME("$mf")`
714
grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
715
# Extract the definition of DEP_FILES from the Makefile without
717
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
718
test -z "$DEPDIR" && continue
719
# When using ansi2knr, U may be empty or an underscore; expand it
720
U=`sed -n -e '/^U = / s///p' < "$mf"`
721
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
722
# We invoke sed twice because it is the simplest approach to
723
# changing $(DEPDIR) to its actual value in the expansion.
724
for file in `sed -n -e '
725
/^DEP_FILES = .*\\\\$/ {
734
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
735
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
736
# Make sure the directory exists.
737
test -f "$dirpart/$file" && continue
738
fdir=`AS_DIRNAME(["$file"])`
739
AS_MKDIR_P([$dirpart/$fdir])
740
# echo "creating $dirpart/$file"
741
echo '# dummy' > "$dirpart/$file"
744
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
747
# AM_OUTPUT_DEPENDENCY_COMMANDS
748
# -----------------------------
749
# This macro should only be invoked once -- use via AC_REQUIRE.
751
# This code is only required when automatic dependency tracking
752
# is enabled. FIXME. This creates each `.P' file that we will
753
# need in order to bootstrap the dependency handling code.
754
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
755
[AC_CONFIG_COMMANDS([depfiles],
756
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
757
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
760
# Check to see how 'make' treats includes. -*- Autoconf -*-
762
# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
764
# This program is free software; you can redistribute it and/or modify
765
# it under the terms of the GNU General Public License as published by
766
# the Free Software Foundation; either version 2, or (at your option)
769
# This program is distributed in the hope that it will be useful,
770
# but WITHOUT ANY WARRANTY; without even the implied warranty of
771
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
772
# GNU General Public License for more details.
774
# You should have received a copy of the GNU General Public License
775
# along with this program; if not, write to the Free Software
776
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
783
# Check to see how make treats includes.
784
AC_DEFUN([AM_MAKE_INCLUDE],
785
[am_make=${MAKE-make}
786
cat > confinc << 'END'
791
# If we don't find an include directive, just comment out the code.
792
AC_MSG_CHECKING([for style of include used by $am_make])
796
# First try GNU make style include.
797
echo "include confinc" > confmf
798
# We grep out `Entering directory' and `Leaving directory'
799
# messages which can occur if `w' ends up in MAKEFLAGS.
800
# In particular we don't look at `^make:' because GNU make might
801
# be invoked under some other name (usually "gmake"), in which
802
# case it prints its new name instead of `make'.
803
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
808
# Now try BSD make style include.
809
if test "$am__include" = "#"; then
810
echo '.include "confinc"' > confmf
811
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
817
AC_SUBST([am__include])
818
AC_SUBST([am__quote])
819
AC_MSG_RESULT([$_am_result])
823
# AM_CONDITIONAL -*- Autoconf -*-
825
# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
827
# This program is free software; you can redistribute it and/or modify
828
# it under the terms of the GNU General Public License as published by
829
# the Free Software Foundation; either version 2, or (at your option)
832
# This program is distributed in the hope that it will be useful,
833
# but WITHOUT ANY WARRANTY; without even the implied warranty of
834
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
835
# GNU General Public License for more details.
837
# You should have received a copy of the GNU General Public License
838
# along with this program; if not, write to the Free Software
839
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
846
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
847
# -------------------------------------
848
# Define a conditional.
849
AC_DEFUN([AM_CONDITIONAL],
850
[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
851
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
861
AC_CONFIG_COMMANDS_PRE(
862
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
863
AC_MSG_ERROR([conditional "$1" was never defined.
864
Usually this means the macro was only invoked conditionally.])
867
# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
869
# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
871
# This program is free software; you can redistribute it and/or modify
872
# it under the terms of the GNU General Public License as published by
873
# the Free Software Foundation; either version 2, or (at your option)
876
# This program is distributed in the hope that it will be useful,
877
# but WITHOUT ANY WARRANTY; without even the implied warranty of
878
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
879
# GNU General Public License for more details.
881
# You should have received a copy of the GNU General Public License
882
# along with this program; if not, write to the Free Software
883
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
890
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
891
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
894
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
895
# serial 36 IT_PROG_INTLTOOL
896
AC_DEFUN([IT_PROG_INTLTOOL],
897
[AC_PREREQ([2.50])dnl
899
case "$am__api_version" in
901
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
907
if test -n "$1"; then
908
AC_MSG_CHECKING([for intltool >= $1])
910
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
911
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
912
[INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
914
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
915
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
916
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
919
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
920
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
921
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
922
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
923
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
924
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
925
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
926
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
927
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
928
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
929
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
930
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
931
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
932
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
933
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
934
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
935
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
936
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
937
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
939
AC_SUBST(INTLTOOL_DESKTOP_RULE)
940
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
941
AC_SUBST(INTLTOOL_KEYS_RULE)
942
AC_SUBST(INTLTOOL_PROP_RULE)
943
AC_SUBST(INTLTOOL_OAF_RULE)
944
AC_SUBST(INTLTOOL_PONG_RULE)
945
AC_SUBST(INTLTOOL_SERVER_RULE)
946
AC_SUBST(INTLTOOL_SHEET_RULE)
947
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
948
AC_SUBST(INTLTOOL_UI_RULE)
949
AC_SUBST(INTLTOOL_XAM_RULE)
950
AC_SUBST(INTLTOOL_KBD_RULE)
951
AC_SUBST(INTLTOOL_XML_RULE)
952
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
953
AC_SUBST(INTLTOOL_CAVES_RULE)
954
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
955
AC_SUBST(INTLTOOL_THEME_RULE)
956
AC_SUBST(INTLTOOL_SERVICE_RULE)
957
AC_SUBST(INTLTOOL_POLICY_RULE)
959
# Check the gettext tools to make sure they are GNU
960
AC_PATH_PROG(XGETTEXT, xgettext)
961
AC_PATH_PROG(MSGMERGE, msgmerge)
962
AC_PATH_PROG(MSGFMT, msgfmt)
963
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
964
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
966
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
967
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
968
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
969
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
970
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
973
# Use the tools built into the package, not the ones that are installed.
974
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
975
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
976
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
978
AC_PATH_PROG(INTLTOOL_PERL, perl)
979
if test -z "$INTLTOOL_PERL"; then
980
AC_MSG_ERROR([perl not found; required for intltool])
982
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
983
AC_MSG_ERROR([perl 5.x required for intltool])
985
if test "x$2" != "xno-xml"; then
986
AC_MSG_CHECKING([for XML::Parser])
987
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
990
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
994
# Substitute ALL_LINGUAS so we can use it in po/Makefile
995
AC_SUBST(ALL_LINGUAS)
997
# Set DATADIRNAME correctly if it is not set yet
998
# (copied from glib-gettext.m4)
999
if test -z "$DATADIRNAME"; then
1001
[AC_LANG_PROGRAM([[]],
1002
[[extern int _nl_msg_cat_cntr;
1003
return _nl_msg_cat_cntr]])],
1004
[DATADIRNAME=share],
1007
dnl On Solaris, if bind_textdomain_codeset is in libc,
1008
dnl GNU format message catalog is always supported,
1009
dnl since both are added to the libc all together.
1010
dnl Hence, we'd like to go with DATADIRNAME=share
1012
AC_CHECK_FUNC(bind_textdomain_codeset,
1013
[DATADIRNAME=share], [DATADIRNAME=lib])
1020
AC_SUBST(DATADIRNAME)
1024
dnl The following is very similar to
1026
dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
1028
dnl with the following slight differences:
1029
dnl - the *.in files are in ac_aux_dir,
1030
dnl - if the file haven't changed upon reconfigure, it's not touched,
1031
dnl - the evaluation of the third parameter enables a hack which computes
1032
dnl the actual value of $libdir,
1033
dnl - the user sees "executing intltool commands", instead of
1034
dnl "creating intltool-extract" and such.
1036
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
1037
dnl a reason for it.
1039
AC_CONFIG_COMMANDS([intltool], [
1041
for file in intltool-extract intltool-merge intltool-update; do
1042
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
1043
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
1044
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
1045
< ${ac_aux_dir}/${file}.in > ${file}.out
1046
if cmp -s ${file} ${file}.out 2>/dev/null; then
1049
mv -f ${file}.out ${file}
1056
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
1057
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
1058
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
1063
# IT_PO_SUBDIR(DIRNAME)
1064
# ---------------------
1065
# All po subdirs have to be declared with this macro; the subdir "po" is
1066
# declared by IT_PROG_INTLTOOL.
1068
AC_DEFUN([IT_PO_SUBDIR],
1069
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
1071
dnl The following CONFIG_COMMANDS should be exetuted at the very end
1072
dnl of config.status.
1073
AC_CONFIG_COMMANDS_PRE([
1074
AC_CONFIG_COMMANDS([$1/stamp-it], [
1075
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1080
'"s|^| $ac_top_srcdir/|" \
1081
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1083
if test ! -f "$1/Makefile"; then
1084
AC_MSG_ERROR([$1/Makefile is not ready.])
1086
mv "$1/Makefile" "$1/Makefile.tmp"
1087
[sed '/^POTFILES =/,/[^\\]$/ {
1091
' "$1/Makefile.tmp" >"$1/Makefile"]
1092
rm -f "$1/Makefile.tmp"
1093
mv "$1/stamp-it.tmp" "$1/stamp-it"
1100
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1101
# A hint is needed for aclocal from Automake <= 1.9.4:
1102
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1109
# Like AC_PROG_CC_C_O, but changed for automake.
1111
# Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
1113
# This program is free software; you can redistribute it and/or modify
1114
# it under the terms of the GNU General Public License as published by
1115
# the Free Software Foundation; either version 2, or (at your option)
1116
# any later version.
1118
# This program is distributed in the hope that it will be useful,
1119
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1120
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1121
# GNU General Public License for more details.
1123
# You should have received a copy of the GNU General Public License
1124
# along with this program; if not, write to the Free Software
1125
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1128
AC_DEFUN([AM_PROG_CC_C_O],
1129
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1130
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1131
# FIXME: we rely on the cache variable name because
1132
# there is no other way.
1134
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1135
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
1136
# Losing compiler, so override with the script.
1137
# FIXME: It is wrong to rewrite CC.
1138
# But if we don't then we get into trouble of one sort or another.
1139
# A longer-term fix would be to have automake use am__CC in this case,
1140
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1141
CC="$am_aux_dir/compile $CC"
1146
# Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1148
# This program is free software; you can redistribute it and/or modify
1149
# it under the terms of the GNU General Public License as published by
1150
# the Free Software Foundation; either version 2, or (at your option)
1151
# any later version.
1153
# This program is distributed in the hope that it will be useful,
1154
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1155
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1156
# GNU General Public License for more details.
1158
# You should have received a copy of the GNU General Public License
1159
# along with this program; if not, write to the Free Software
1160
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1165
# @defmac AC_PROG_CC_STDC
1166
# @maindex PROG_CC_STDC
1168
# If the C compiler in not in ANSI C mode by default, try to add an option
1169
# to output variable @code{CC} to make it so. This macro tries various
1170
# options that select ANSI C on some system or another. It considers the
1171
# compiler to be in ANSI C mode if it handles function prototypes correctly.
1173
# If you use this macro, you should check after calling it whether the C
1174
# compiler has been set to accept ANSI C; if not, the shell variable
1175
# @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
1176
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
1177
# program @code{ansi2knr}, which comes with Ghostscript.
1180
AC_DEFUN([AM_PROG_CC_STDC],
1181
[AC_REQUIRE([AC_PROG_CC])
1182
AC_BEFORE([$0], [AC_C_INLINE])
1183
AC_BEFORE([$0], [AC_C_CONST])
1184
dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
1185
dnl a magic option to avoid problems with ANSI preprocessor commands
1187
dnl FIXME: can't do this because then AC_AIX won't work due to a
1188
dnl circular dependency.
1189
dnl AC_BEFORE([$0], [AC_PROG_CPP])
1190
AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
1191
AC_CACHE_VAL(am_cv_prog_cc_stdc,
1192
[am_cv_prog_cc_stdc=no
1194
# Don't try gcc -ansi; that turns off useful extensions and
1195
# breaks some systems' header files.
1196
# AIX -qlanglvl=ansi
1197
# Ultrix and OSF/1 -std1
1198
# HP-UX 10.20 and later -Ae
1199
# HP-UX older versions -Aa -D_HPUX_SOURCE
1200
# SVR4 -Xc -D__EXTENSIONS__
1201
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1203
CC="$ac_save_CC $ac_arg"
1205
[#include <stdarg.h>
1207
#include <sys/types.h>
1208
#include <sys/stat.h>
1209
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1210
struct buf { int x; };
1211
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1212
static char *e (p, i)
1218
static char *f (char * (*g) (char **, int), char **p, ...)
1223
s = g (p, va_arg (v,int));
1227
int test (int i, double x);
1228
struct s1 {int (*f) (int a);};
1229
struct s2 {int (*f) (double a);};
1230
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1234
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1236
[am_cv_prog_cc_stdc="$ac_arg"; break])
1240
if test -z "$am_cv_prog_cc_stdc"; then
1241
AC_MSG_RESULT([none needed])
1243
AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1245
case "x$am_cv_prog_cc_stdc" in
1247
*) CC="$CC $am_cv_prog_cc_stdc" ;;
1251
AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])
1253
# Figure out how to run the assembler. -*- Autoconf -*-
1257
# Copyright 2001 Free Software Foundation, Inc.
1259
# This program is free software; you can redistribute it and/or modify
1260
# it under the terms of the GNU General Public License as published by
1261
# the Free Software Foundation; either version 2, or (at your option)
1262
# any later version.
1264
# This program is distributed in the hope that it will be useful,
1265
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1266
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1267
# GNU General Public License for more details.
1269
# You should have received a copy of the GNU General Public License
1270
# along with this program; if not, write to the Free Software
1271
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1276
AC_DEFUN([AM_PROG_AS],
1277
[# By default we simply use the C compiler to build assembly code.
1278
AC_REQUIRE([AC_PROG_CC])
1280
# Set ASFLAGS if not already set.
1281
: ${CCASFLAGS='$(CFLAGS)'}
1283
AC_SUBST(CCASFLAGS)])
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
1285
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
1286
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
1874
820
])# PKG_CHECK_MODULES
822
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
824
# This file is free software; the Free Software Foundation
825
# gives unlimited permission to copy and/or distribute it,
826
# with or without modifications, as long as this notice is preserved.
828
# AM_AUTOMAKE_VERSION(VERSION)
829
# ----------------------------
830
# Automake X.Y traces this macro to ensure aclocal.m4 has been
831
# generated from the m4 files accompanying Automake X.Y.
832
# (This private macro should not be called outside this file.)
833
AC_DEFUN([AM_AUTOMAKE_VERSION],
834
[am__api_version='1.10'
835
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
836
dnl require some minimum version. Point them to the right macro.
837
m4_if([$1], [1.10], [],
838
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
841
# _AM_AUTOCONF_VERSION(VERSION)
842
# -----------------------------
843
# aclocal traces this macro to find the Autoconf version.
844
# This is a private macro too. Using m4_define simplifies
845
# the logic in aclocal, which can simply ignore this definition.
846
m4_define([_AM_AUTOCONF_VERSION], [])
848
# AM_SET_CURRENT_AUTOMAKE_VERSION
849
# -------------------------------
850
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
851
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
852
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
853
[AM_AUTOMAKE_VERSION([1.10])dnl
854
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
856
# Figure out how to run the assembler. -*- Autoconf -*-
858
# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
860
# This file is free software; the Free Software Foundation
861
# gives unlimited permission to copy and/or distribute it,
862
# with or without modifications, as long as this notice is preserved.
868
AC_DEFUN([AM_PROG_AS],
869
[# By default we simply use the C compiler to build assembly code.
870
AC_REQUIRE([AC_PROG_CC])
871
test "${CCAS+set}" = set || CCAS=$CC
872
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
873
AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
874
AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
875
_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
878
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
880
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
882
# This file is free software; the Free Software Foundation
883
# gives unlimited permission to copy and/or distribute it,
884
# with or without modifications, as long as this notice is preserved.
886
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
887
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
888
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
890
# Of course, Automake must honor this variable whenever it calls a
891
# tool from the auxiliary directory. The problem is that $srcdir (and
892
# therefore $ac_aux_dir as well) can be either absolute or relative,
893
# depending on how configure is run. This is pretty annoying, since
894
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
895
# source directory, any form will work fine, but in subdirectories a
896
# relative path needs to be adjusted first.
898
# $ac_aux_dir/missing
899
# fails when called from a subdirectory if $ac_aux_dir is relative
900
# $top_srcdir/$ac_aux_dir/missing
901
# fails if $ac_aux_dir is absolute,
902
# fails when called from a subdirectory in a VPATH build with
903
# a relative $ac_aux_dir
905
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
906
# are both prefixed by $srcdir. In an in-source build this is usually
907
# harmless because $srcdir is `.', but things will broke when you
908
# start a VPATH build or use an absolute $srcdir.
910
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
911
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
912
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
913
# and then we would define $MISSING as
914
# MISSING="\${SHELL} $am_aux_dir/missing"
915
# This will work as long as MISSING is not called from configure, because
916
# unfortunately $(top_srcdir) has no meaning in configure.
917
# However there are other variables, like CC, which are often used in
918
# configure, and could therefore not use this "fixed" $ac_aux_dir.
920
# Another solution, used here, is to always expand $ac_aux_dir to an
921
# absolute PATH. The drawback is that using absolute paths prevent a
922
# configured tree to be moved without reconfiguration.
924
AC_DEFUN([AM_AUX_DIR_EXPAND],
925
[dnl Rely on autoconf to set up CDPATH properly.
927
# expand $ac_aux_dir to an absolute path
928
am_aux_dir=`cd $ac_aux_dir && pwd`
932
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
933
# Free Software Foundation, Inc.
935
# This file is free software; the Free Software Foundation
936
# gives unlimited permission to copy and/or distribute it,
937
# with or without modifications, as long as this notice is preserved.
941
# This was merged into AC_PROG_CC in Autoconf.
943
AU_DEFUN([AM_PROG_CC_STDC],
945
AC_DIAGNOSE([obsolete], [$0:
946
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
947
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
948
you adjust the code. You can also remove the above call to
949
AC_PROG_CC if you already called it elsewhere.])
950
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
952
AU_DEFUN([fp_PROG_CC_STDC])
954
# AM_CONDITIONAL -*- Autoconf -*-
956
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
957
# Free Software Foundation, Inc.
959
# This file is free software; the Free Software Foundation
960
# gives unlimited permission to copy and/or distribute it,
961
# with or without modifications, as long as this notice is preserved.
965
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
966
# -------------------------------------
967
# Define a conditional.
968
AC_DEFUN([AM_CONDITIONAL],
970
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
971
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
972
AC_SUBST([$1_TRUE])dnl
973
AC_SUBST([$1_FALSE])dnl
974
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
975
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
983
AC_CONFIG_COMMANDS_PRE(
984
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
985
AC_MSG_ERROR([[conditional "$1" was never defined.
986
Usually this means the macro was only invoked conditionally.]])
989
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
990
# Free Software Foundation, Inc.
992
# This file is free software; the Free Software Foundation
993
# gives unlimited permission to copy and/or distribute it,
994
# with or without modifications, as long as this notice is preserved.
998
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
999
# written in clear, in which case automake, when reading aclocal.m4,
1000
# will think it sees a *use*, and therefore will trigger all it's
1001
# C support machinery. Also note that it means that autoscan, seeing
1002
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1005
# _AM_DEPENDENCIES(NAME)
1006
# ----------------------
1007
# See how the compiler implements dependency checking.
1008
# NAME is "CC", "CXX", "GCJ", or "OBJC".
1009
# We try a few techniques and use that to set a single cache variable.
1011
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1012
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1013
# dependency, and given that the user is not expected to run this macro,
1014
# just rely on AC_PROG_CC.
1015
AC_DEFUN([_AM_DEPENDENCIES],
1016
[AC_REQUIRE([AM_SET_DEPDIR])dnl
1017
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1018
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1019
AC_REQUIRE([AM_DEP_TRACK])dnl
1021
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1022
[$1], CXX, [depcc="$CXX" am_compiler_list=],
1023
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1024
[$1], UPC, [depcc="$UPC" am_compiler_list=],
1025
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1026
[depcc="$$1" am_compiler_list=])
1028
AC_CACHE_CHECK([dependency style of $depcc],
1029
[am_cv_$1_dependencies_compiler_type],
1030
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1031
# We make a subdir and do the tests there. Otherwise we can end up
1032
# making bogus files that we don't know about and never remove. For
1033
# instance it was reported that on HP-UX the gcc test will end up
1034
# making a dummy file named `D' -- because `-MD' means `put the output
1037
# Copy depcomp to subdir because otherwise we won't find it if we're
1038
# using a relative directory.
1039
cp "$am_depcomp" conftest.dir
1041
# We will build objects and dependencies in a subdirectory because
1042
# it helps to detect inapplicable dependency modes. For instance
1043
# both Tru64's cc and ICC support -MD to output dependencies as a
1044
# side effect of compilation, but ICC will put the dependencies in
1045
# the current directory while Tru64 will put them in the object
1049
am_cv_$1_dependencies_compiler_type=none
1050
if test "$am_compiler_list" = ""; then
1051
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1053
for depmode in $am_compiler_list; do
1054
# Setup a source with many dependencies, because some compilers
1055
# like to wrap large dependency lists on column 80 (with \), and
1056
# we should not choose a depcomp mode which is confused by this.
1058
# We need to recreate these files for each test, as the compiler may
1059
# overwrite some of them when testing with obscure command lines.
1060
# This happens at least with the AIX C compiler.
1062
for i in 1 2 3 4 5 6; do
1063
echo '#include "conftst'$i'.h"' >> sub/conftest.c
1064
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1065
# Solaris 8's {/usr,}/bin/sh.
1066
touch sub/conftst$i.h
1068
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1072
# after this tag, mechanisms are not by side-effect, so they'll
1073
# only be used when explicitly requested
1074
if test "x$enable_dependency_tracking" = xyes; then
1082
# We check with `-c' and `-o' for the sake of the "dashmstdout"
1083
# mode. It turns out that the SunPro C++ compiler does not properly
1084
# handle `-M -o', and we need to detect this.
1085
if depmode=$depmode \
1086
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1087
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1088
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1089
>/dev/null 2>conftest.err &&
1090
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
1091
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1092
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1093
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1094
# icc doesn't choke on unknown options, it will just issue warnings
1095
# or remarks (even with -Werror). So we grep stderr for any message
1096
# that says an option was ignored or not supported.
1097
# When given -MP, icc 7.0 and 7.1 complain thusly:
1098
# icc: Command line warning: ignoring option '-M'; no argument required
1099
# The diagnosis changed in icc 8.0:
1100
# icc: Command line remark: option '-MP' not supported
1101
if (grep 'ignoring option' conftest.err ||
1102
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1103
am_cv_$1_dependencies_compiler_type=$depmode
1112
am_cv_$1_dependencies_compiler_type=none
1115
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1116
AM_CONDITIONAL([am__fastdep$1], [
1117
test "x$enable_dependency_tracking" != xno \
1118
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1124
# Choose a directory name for dependency files.
1125
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1126
AC_DEFUN([AM_SET_DEPDIR],
1127
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1128
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1134
AC_DEFUN([AM_DEP_TRACK],
1135
[AC_ARG_ENABLE(dependency-tracking,
1136
[ --disable-dependency-tracking speeds up one-time build
1137
--enable-dependency-tracking do not reject slow dependency extractors])
1138
if test "x$enable_dependency_tracking" != xno; then
1139
am_depcomp="$ac_aux_dir/depcomp"
1142
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1143
AC_SUBST([AMDEPBACKSLASH])dnl
1144
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
1147
# Generate code to set up dependency tracking. -*- Autoconf -*-
1149
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
1150
# Free Software Foundation, Inc.
1152
# This file is free software; the Free Software Foundation
1153
# gives unlimited permission to copy and/or distribute it,
1154
# with or without modifications, as long as this notice is preserved.
1158
# _AM_OUTPUT_DEPENDENCY_COMMANDS
1159
# ------------------------------
1160
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1161
[for mf in $CONFIG_FILES; do
1162
# Strip MF so we end up with the name of the file.
1163
mf=`echo "$mf" | sed -e 's/:.*$//'`
1164
# Check whether this is an Automake generated Makefile or not.
1165
# We used to match only the files named `Makefile.in', but
1166
# some people rename them; so instead we look at the file content.
1167
# Grep'ing the first line is not enough: some people post-process
1168
# each Makefile.in and add a new line on top of each file to say so.
1169
# Grep'ing the whole file is not good either: AIX grep has a line
1170
# limit of 2048, but all sed's we know have understand at least 4000.
1171
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
1172
dirpart=`AS_DIRNAME("$mf")`
1176
# Extract the definition of DEPDIR, am__include, and am__quote
1177
# from the Makefile without running `make'.
1178
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1179
test -z "$DEPDIR" && continue
1180
am__include=`sed -n 's/^am__include = //p' < "$mf"`
1181
test -z "am__include" && continue
1182
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1183
# When using ansi2knr, U may be empty or an underscore; expand it
1184
U=`sed -n 's/^U = //p' < "$mf"`
1185
# Find all dependency output files, they are included files with
1186
# $(DEPDIR) in their names. We invoke sed twice because it is the
1187
# simplest approach to changing $(DEPDIR) to its actual value in the
1189
for file in `sed -n "
1190
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1191
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1192
# Make sure the directory exists.
1193
test -f "$dirpart/$file" && continue
1194
fdir=`AS_DIRNAME(["$file"])`
1195
AS_MKDIR_P([$dirpart/$fdir])
1196
# echo "creating $dirpart/$file"
1197
echo '# dummy' > "$dirpart/$file"
1200
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1203
# AM_OUTPUT_DEPENDENCY_COMMANDS
1204
# -----------------------------
1205
# This macro should only be invoked once -- use via AC_REQUIRE.
1207
# This code is only required when automatic dependency tracking
1208
# is enabled. FIXME. This creates each `.P' file that we will
1209
# need in order to bootstrap the dependency handling code.
1210
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1211
[AC_CONFIG_COMMANDS([depfiles],
1212
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1213
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1216
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1217
# Free Software Foundation, Inc.
1219
# This file is free software; the Free Software Foundation
1220
# gives unlimited permission to copy and/or distribute it,
1221
# with or without modifications, as long as this notice is preserved.
1225
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1226
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1228
# Do all the work for Automake. -*- Autoconf -*-
1230
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1231
# 2005, 2006 Free Software Foundation, Inc.
1233
# This file is free software; the Free Software Foundation
1234
# gives unlimited permission to copy and/or distribute it,
1235
# with or without modifications, as long as this notice is preserved.
1239
# This macro actually does too much. Some checks are only needed if
1240
# your package does certain things. But this isn't really a big deal.
1242
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
1243
# AM_INIT_AUTOMAKE([OPTIONS])
1244
# -----------------------------------------------
1245
# The call with PACKAGE and VERSION arguments is the old style
1246
# call (pre autoconf-2.50), which is being phased out. PACKAGE
1247
# and VERSION should now be passed to AC_INIT and removed from
1248
# the call to AM_INIT_AUTOMAKE.
1249
# We support both call styles for the transition. After
1250
# the next Automake release, Autoconf can make the AC_INIT
1251
# arguments mandatory, and then we can depend on a new Autoconf
1252
# release and drop the old call support.
1253
AC_DEFUN([AM_INIT_AUTOMAKE],
1254
[AC_PREREQ([2.60])dnl
1255
dnl Autoconf wants to disallow AM_ names. We explicitly allow
1256
dnl the ones we care about.
1257
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
1258
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
1259
AC_REQUIRE([AC_PROG_INSTALL])dnl
1260
if test "`cd $srcdir && pwd`" != "`pwd`"; then
1261
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
1262
# is not polluted with repeated "-I."
1263
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
1264
# test to see if srcdir already configured
1265
if test -f $srcdir/config.status; then
1266
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
1270
# test whether we have cygpath
1271
if test -z "$CYGPATH_W"; then
1272
if (cygpath --version) >/dev/null 2>/dev/null; then
1273
CYGPATH_W='cygpath -w'
1278
AC_SUBST([CYGPATH_W])
1280
# Define the identity of the package.
1281
dnl Distinguish between old-style and new-style calls.
1283
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
1284
AC_SUBST([PACKAGE], [$1])dnl
1285
AC_SUBST([VERSION], [$2])],
1286
[_AM_SET_OPTIONS([$1])dnl
1287
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
1288
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
1289
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
1290
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
1291
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
1293
_AM_IF_OPTION([no-define],,
1294
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
1295
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
1297
# Some tools Automake needs.
1298
AC_REQUIRE([AM_SANITY_CHECK])dnl
1299
AC_REQUIRE([AC_ARG_PROGRAM])dnl
1300
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
1301
AM_MISSING_PROG(AUTOCONF, autoconf)
1302
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
1303
AM_MISSING_PROG(AUTOHEADER, autoheader)
1304
AM_MISSING_PROG(MAKEINFO, makeinfo)
1306
AM_PROG_INSTALL_STRIP
1307
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
1308
# We need awk for the "check" target. The system "awk" is bad on
1310
AC_REQUIRE([AC_PROG_AWK])dnl
1311
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
1312
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1313
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
1314
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
1315
[_AM_PROG_TAR([v7])])])
1316
_AM_IF_OPTION([no-dependencies],,
1317
[AC_PROVIDE_IFELSE([AC_PROG_CC],
1318
[_AM_DEPENDENCIES(CC)],
1319
[define([AC_PROG_CC],
1320
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
1321
AC_PROVIDE_IFELSE([AC_PROG_CXX],
1322
[_AM_DEPENDENCIES(CXX)],
1323
[define([AC_PROG_CXX],
1324
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
1325
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
1326
[_AM_DEPENDENCIES(OBJC)],
1327
[define([AC_PROG_OBJC],
1328
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
1333
# When config.status generates a header, we must update the stamp-h file.
1334
# This file resides in the same directory as the config header
1335
# that is generated. The stamp files are numbered to have different names.
1337
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
1338
# loop where config.status creates the headers, so we can generate
1339
# our stamp files there.
1340
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
1341
[# Compute $1's index in $config_headers.
1343
for _am_header in $config_headers :; do
1348
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
1351
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
1353
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1355
# This file is free software; the Free Software Foundation
1356
# gives unlimited permission to copy and/or distribute it,
1357
# with or without modifications, as long as this notice is preserved.
1359
# AM_PROG_INSTALL_SH
1360
# ------------------
1361
# Define $install_sh.
1362
AC_DEFUN([AM_PROG_INSTALL_SH],
1363
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1364
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
1365
AC_SUBST(install_sh)])
1367
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
1369
# This file is free software; the Free Software Foundation
1370
# gives unlimited permission to copy and/or distribute it,
1371
# with or without modifications, as long as this notice is preserved.
1375
# Check whether the underlying file-system supports filenames
1376
# with a leading dot. For instance MS-DOS doesn't.
1377
AC_DEFUN([AM_SET_LEADING_DOT],
1378
[rm -rf .tst 2>/dev/null
1379
mkdir .tst 2>/dev/null
1380
if test -d .tst; then
1385
rmdir .tst 2>/dev/null
1386
AC_SUBST([am__leading_dot])])
1388
# Check to see how 'make' treats includes. -*- Autoconf -*-
1390
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1392
# This file is free software; the Free Software Foundation
1393
# gives unlimited permission to copy and/or distribute it,
1394
# with or without modifications, as long as this notice is preserved.
1400
# Check to see how make treats includes.
1401
AC_DEFUN([AM_MAKE_INCLUDE],
1402
[am_make=${MAKE-make}
1403
cat > confinc << 'END'
1408
# If we don't find an include directive, just comment out the code.
1409
AC_MSG_CHECKING([for style of include used by $am_make])
1413
# First try GNU make style include.
1414
echo "include confinc" > confmf
1415
# We grep out `Entering directory' and `Leaving directory'
1416
# messages which can occur if `w' ends up in MAKEFLAGS.
1417
# In particular we don't look at `^make:' because GNU make might
1418
# be invoked under some other name (usually "gmake"), in which
1419
# case it prints its new name instead of `make'.
1420
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1425
# Now try BSD make style include.
1426
if test "$am__include" = "#"; then
1427
echo '.include "confinc"' > confmf
1428
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1429
am__include=.include
1434
AC_SUBST([am__include])
1435
AC_SUBST([am__quote])
1436
AC_MSG_RESULT([$_am_result])
1437
rm -f confinc confmf
1440
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005
1441
# Free Software Foundation, Inc.
1443
# This file is free software; the Free Software Foundation
1444
# gives unlimited permission to copy and/or distribute it,
1445
# with or without modifications, as long as this notice is preserved.
1451
# Like AC_PROG_CC_C_O, but changed for automake.
1452
AC_DEFUN([AM_PROG_CC_C_O],
1453
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
1454
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1455
AC_REQUIRE_AUX_FILE([compile])dnl
1456
# FIXME: we rely on the cache variable name because
1457
# there is no other way.
1459
ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
1460
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
1461
# Losing compiler, so override with the script.
1462
# FIXME: It is wrong to rewrite CC.
1463
# But if we don't then we get into trouble of one sort or another.
1464
# A longer-term fix would be to have automake use am__CC in this case,
1465
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1466
CC="$am_aux_dir/compile $CC"
1468
dnl Make sure AC_PROG_CC is never called again, or it will override our
1470
m4_define([AC_PROG_CC],
1471
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
1474
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
1476
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
1477
# Free Software Foundation, Inc.
1479
# This file is free software; the Free Software Foundation
1480
# gives unlimited permission to copy and/or distribute it,
1481
# with or without modifications, as long as this notice is preserved.
1485
# AM_MISSING_PROG(NAME, PROGRAM)
1486
# ------------------------------
1487
AC_DEFUN([AM_MISSING_PROG],
1488
[AC_REQUIRE([AM_MISSING_HAS_RUN])
1489
$1=${$1-"${am_missing_run}$2"}
1493
# AM_MISSING_HAS_RUN
1494
# ------------------
1495
# Define MISSING if not defined so far and test if it supports --run.
1496
# If it does, set am_missing_run to use it, otherwise, to nothing.
1497
AC_DEFUN([AM_MISSING_HAS_RUN],
1498
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1499
AC_REQUIRE_AUX_FILE([missing])dnl
1500
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1501
# Use eval to expand $SHELL
1502
if eval "$MISSING --run true"; then
1503
am_missing_run="$MISSING --run "
1506
AC_MSG_WARN([`missing' script is too old or missing])
1510
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1512
# This file is free software; the Free Software Foundation
1513
# gives unlimited permission to copy and/or distribute it,
1514
# with or without modifications, as long as this notice is preserved.
1518
# Check for `mkdir -p'.
1519
AC_DEFUN([AM_PROG_MKDIR_P],
1520
[AC_PREREQ([2.60])dnl
1521
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
1522
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
1523
dnl while keeping a definition of mkdir_p for backward compatibility.
1524
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
1525
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
1526
dnl Makefile.ins that do not define MKDIR_P, so we do our own
1527
dnl adjustment using top_builddir (which is defined more often than
1529
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
1531
[[\\/$]]* | ?:[[\\/]]*) ;;
1532
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1536
# Helper functions for option handling. -*- Autoconf -*-
1538
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
1540
# This file is free software; the Free Software Foundation
1541
# gives unlimited permission to copy and/or distribute it,
1542
# with or without modifications, as long as this notice is preserved.
1546
# _AM_MANGLE_OPTION(NAME)
1547
# -----------------------
1548
AC_DEFUN([_AM_MANGLE_OPTION],
1549
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1551
# _AM_SET_OPTION(NAME)
1552
# ------------------------------
1553
# Set option NAME. Presently that only means defining a flag for this option.
1554
AC_DEFUN([_AM_SET_OPTION],
1555
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1557
# _AM_SET_OPTIONS(OPTIONS)
1558
# ----------------------------------
1559
# OPTIONS is a space-separated list of Automake options.
1560
AC_DEFUN([_AM_SET_OPTIONS],
1561
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1563
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1564
# -------------------------------------------
1565
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1566
AC_DEFUN([_AM_IF_OPTION],
1567
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1569
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1571
# This file is free software; the Free Software Foundation
1572
# gives unlimited permission to copy and/or distribute it,
1573
# with or without modifications, as long as this notice is preserved.
1575
# AM_RUN_LOG(COMMAND)
1576
# -------------------
1577
# Run COMMAND, save the exit status in ac_status, and log it.
1578
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1579
AC_DEFUN([AM_RUN_LOG],
1580
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1581
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1583
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1584
(exit $ac_status); }])
1586
# Check to make sure that the build environment is sane. -*- Autoconf -*-
1588
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
1589
# Free Software Foundation, Inc.
1591
# This file is free software; the Free Software Foundation
1592
# gives unlimited permission to copy and/or distribute it,
1593
# with or without modifications, as long as this notice is preserved.
1599
AC_DEFUN([AM_SANITY_CHECK],
1600
[AC_MSG_CHECKING([whether build environment is sane])
1603
echo timestamp > conftest.file
1604
# Do `set' in a subshell so we don't clobber the current shell's
1605
# arguments. Must try -L first in case configure is actually a
1606
# symlink; some systems play weird games with the mod time of symlinks
1607
# (eg FreeBSD returns the mod time of the symlink's containing
1610
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1611
if test "$[*]" = "X"; then
1613
set X `ls -t $srcdir/configure conftest.file`
1616
if test "$[*]" != "X $srcdir/configure conftest.file" \
1617
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
1619
# If neither matched, then we have a broken ls. This can happen
1620
# if, for instance, CONFIG_SHELL is bash and it inherits a
1621
# broken ls alias from the environment. This has actually
1622
# happened. Such a system could not be considered "sane".
1623
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1624
alias in your environment])
1627
test "$[2]" = conftest.file
1633
AC_MSG_ERROR([newly created file is older than distributed files!
1634
Check your system clock])
1636
AC_MSG_RESULT(yes)])
1638
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
1640
# This file is free software; the Free Software Foundation
1641
# gives unlimited permission to copy and/or distribute it,
1642
# with or without modifications, as long as this notice is preserved.
1644
# AM_PROG_INSTALL_STRIP
1645
# ---------------------
1646
# One issue with vendor `install' (even GNU) is that you can't
1647
# specify the program used to strip binaries. This is especially
1648
# annoying in cross-compiling environments, where the build's strip
1649
# is unlikely to handle the host's binaries.
1650
# Fortunately install-sh will honor a STRIPPROG variable, so we
1651
# always use install-sh in `make install-strip', and initialize
1652
# STRIPPROG with the value of the STRIP variable (set by the user).
1653
AC_DEFUN([AM_PROG_INSTALL_STRIP],
1654
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1655
# Installed binaries are usually stripped using `strip' when the user
1656
# run `make install-strip'. However `strip' might not be the right
1657
# tool to use in cross-compilation environments, therefore Automake
1658
# will honor the `STRIP' environment variable to overrule this program.
1659
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1660
if test "$cross_compiling" != no; then
1661
AC_CHECK_TOOL([STRIP], [strip], :)
1663
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1664
AC_SUBST([INSTALL_STRIP_PROGRAM])])
1666
# Copyright (C) 2006 Free Software Foundation, Inc.
1668
# This file is free software; the Free Software Foundation
1669
# gives unlimited permission to copy and/or distribute it,
1670
# with or without modifications, as long as this notice is preserved.
1672
# _AM_SUBST_NOTMAKE(VARIABLE)
1673
# ---------------------------
1674
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
1675
# This macro is traced by Automake.
1676
AC_DEFUN([_AM_SUBST_NOTMAKE])
1678
# Check how to create a tarball. -*- Autoconf -*-
1680
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
1682
# This file is free software; the Free Software Foundation
1683
# gives unlimited permission to copy and/or distribute it,
1684
# with or without modifications, as long as this notice is preserved.
1688
# _AM_PROG_TAR(FORMAT)
1689
# --------------------
1690
# Check how to create a tarball in format FORMAT.
1691
# FORMAT should be one of `v7', `ustar', or `pax'.
1693
# Substitute a variable $(am__tar) that is a command
1694
# writing to stdout a FORMAT-tarball containing the directory
1696
# tardir=directory && $(am__tar) > result.tar
1698
# Substitute a variable $(am__untar) that extract such
1699
# a tarball read from stdin.
1700
# $(am__untar) < result.tar
1701
AC_DEFUN([_AM_PROG_TAR],
1702
[# Always define AMTAR for backward compatibility.
1703
AM_MISSING_PROG([AMTAR], [tar])
1705
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
1706
[m4_case([$1], [ustar],, [pax],,
1707
[m4_fatal([Unknown tar format])])
1708
AC_MSG_CHECKING([how to create a $1 tar archive])
1709
# Loop over all known methods to create a tar archive until one works.
1710
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1711
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
1712
# Do not fold the above two line into one, because Tru64 sh and
1713
# Solaris sh will not grok spaces in the rhs of `-'.
1714
for _am_tool in $_am_tools
1718
for _am_tar in tar gnutar gtar;
1720
AM_RUN_LOG([$_am_tar --version]) && break
1722
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1723
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1724
am__untar="$_am_tar -xf -"
1727
# Must skip GNU tar: if it does not support --format= it doesn't create
1728
# ustar tarball either.
1729
(tar --version) >/dev/null 2>&1 && continue
1730
am__tar='tar chf - "$$tardir"'
1731
am__tar_='tar chf - "$tardir"'
1732
am__untar='tar xf -'
1735
am__tar='pax -L -x $1 -w "$$tardir"'
1736
am__tar_='pax -L -x $1 -w "$tardir"'
1740
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1741
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1742
am__untar='cpio -i -H $1 -d'
1751
# If the value was cached, stop now. We just wanted to have am__tar
1752
# and am__untar set.
1753
test -n "${am_cv_prog_tar_$1}" && break
1755
# tar/untar a dummy directory, and stop if the command works
1758
echo GrepMe > conftest.dir/file
1759
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1761
if test -s conftest.tar; then
1762
AM_RUN_LOG([$am__untar <conftest.tar])
1763
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1768
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1769
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1771
AC_SUBST([am__untar])
1774
m4_include([acinclude.m4])