source: trunk/essentials/sys-apps/findutils/aclocal.m4@ 3204

Last change on this file since 3204 was 3170, checked in by bird, 18 years ago

findutils 4.3.2

File size: 36.0 KB
Line 
1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12# PARTICULAR PURPOSE.
13
14# isc-posix.m4 serial 2 (gettext-0.11.2)
15dnl Copyright (C) 1995-2002 Free Software Foundation, Inc.
16dnl This file is free software; the Free Software Foundation
17dnl gives unlimited permission to copy and/or distribute it,
18dnl with or without modifications, as long as this notice is preserved.
19
20# This file is not needed with autoconf-2.53 and newer. Remove it in 2005.
21
22# This test replaces the one in autoconf.
23# Currently this macro should have the same name as the autoconf macro
24# because gettext's gettext.m4 (distributed in the automake package)
25# still uses it. Otherwise, the use in gettext.m4 makes autoheader
26# give these diagnostics:
27# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
28# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
29
30undefine([AC_ISC_POSIX])
31
32AC_DEFUN([AC_ISC_POSIX],
33 [
34 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
35 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
36 ]
37)
38
39# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
40#
41# This file is free software; the Free Software Foundation
42# gives unlimited permission to copy and/or distribute it,
43# with or without modifications, as long as this notice is preserved.
44
45# AM_AUTOMAKE_VERSION(VERSION)
46# ----------------------------
47# Automake X.Y traces this macro to ensure aclocal.m4 has been
48# generated from the m4 files accompanying Automake X.Y.
49AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
50
51# AM_SET_CURRENT_AUTOMAKE_VERSION
52# -------------------------------
53# Call AM_AUTOMAKE_VERSION so it can be traced.
54# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
55AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
56 [AM_AUTOMAKE_VERSION([1.9.6])])
57
58# AM_AUX_DIR_EXPAND -*- Autoconf -*-
59
60# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
61#
62# This file is free software; the Free Software Foundation
63# gives unlimited permission to copy and/or distribute it,
64# with or without modifications, as long as this notice is preserved.
65
66# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
67# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
68# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
69#
70# Of course, Automake must honor this variable whenever it calls a
71# tool from the auxiliary directory. The problem is that $srcdir (and
72# therefore $ac_aux_dir as well) can be either absolute or relative,
73# depending on how configure is run. This is pretty annoying, since
74# it makes $ac_aux_dir quite unusable in subdirectories: in the top
75# source directory, any form will work fine, but in subdirectories a
76# relative path needs to be adjusted first.
77#
78# $ac_aux_dir/missing
79# fails when called from a subdirectory if $ac_aux_dir is relative
80# $top_srcdir/$ac_aux_dir/missing
81# fails if $ac_aux_dir is absolute,
82# fails when called from a subdirectory in a VPATH build with
83# a relative $ac_aux_dir
84#
85# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86# are both prefixed by $srcdir. In an in-source build this is usually
87# harmless because $srcdir is `.', but things will broke when you
88# start a VPATH build or use an absolute $srcdir.
89#
90# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
91# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
92# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
93# and then we would define $MISSING as
94# MISSING="\${SHELL} $am_aux_dir/missing"
95# This will work as long as MISSING is not called from configure, because
96# unfortunately $(top_srcdir) has no meaning in configure.
97# However there are other variables, like CC, which are often used in
98# configure, and could therefore not use this "fixed" $ac_aux_dir.
99#
100# Another solution, used here, is to always expand $ac_aux_dir to an
101# absolute PATH. The drawback is that using absolute paths prevent a
102# configured tree to be moved without reconfiguration.
103
104AC_DEFUN([AM_AUX_DIR_EXPAND],
105[dnl Rely on autoconf to set up CDPATH properly.
106AC_PREREQ([2.50])dnl
107# expand $ac_aux_dir to an absolute path
108am_aux_dir=`cd $ac_aux_dir && pwd`
109])
110
111# AM_CONDITIONAL -*- Autoconf -*-
112
113# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
114# Free Software Foundation, Inc.
115#
116# This file is free software; the Free Software Foundation
117# gives unlimited permission to copy and/or distribute it,
118# with or without modifications, as long as this notice is preserved.
119
120# serial 7
121
122# AM_CONDITIONAL(NAME, SHELL-CONDITION)
123# -------------------------------------
124# Define a conditional.
125AC_DEFUN([AM_CONDITIONAL],
126[AC_PREREQ(2.52)dnl
127 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
128 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
129AC_SUBST([$1_TRUE])
130AC_SUBST([$1_FALSE])
131if $2; then
132 $1_TRUE=
133 $1_FALSE='#'
134else
135 $1_TRUE='#'
136 $1_FALSE=
137fi
138AC_CONFIG_COMMANDS_PRE(
139[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
140 AC_MSG_ERROR([[conditional "$1" was never defined.
141Usually this means the macro was only invoked conditionally.]])
142fi])])
143
144
145# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
146# Free Software Foundation, Inc.
147#
148# This file is free software; the Free Software Foundation
149# gives unlimited permission to copy and/or distribute it,
150# with or without modifications, as long as this notice is preserved.
151
152# serial 8
153
154# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
155# written in clear, in which case automake, when reading aclocal.m4,
156# will think it sees a *use*, and therefore will trigger all it's
157# C support machinery. Also note that it means that autoscan, seeing
158# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
159
160
161# _AM_DEPENDENCIES(NAME)
162# ----------------------
163# See how the compiler implements dependency checking.
164# NAME is "CC", "CXX", "GCJ", or "OBJC".
165# We try a few techniques and use that to set a single cache variable.
166#
167# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
168# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
169# dependency, and given that the user is not expected to run this macro,
170# just rely on AC_PROG_CC.
171AC_DEFUN([_AM_DEPENDENCIES],
172[AC_REQUIRE([AM_SET_DEPDIR])dnl
173AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
174AC_REQUIRE([AM_MAKE_INCLUDE])dnl
175AC_REQUIRE([AM_DEP_TRACK])dnl
176
177ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
178 [$1], CXX, [depcc="$CXX" am_compiler_list=],
179 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
180 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
181 [depcc="$$1" am_compiler_list=])
182
183AC_CACHE_CHECK([dependency style of $depcc],
184 [am_cv_$1_dependencies_compiler_type],
185[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
186 # We make a subdir and do the tests there. Otherwise we can end up
187 # making bogus files that we don't know about and never remove. For
188 # instance it was reported that on HP-UX the gcc test will end up
189 # making a dummy file named `D' -- because `-MD' means `put the output
190 # in D'.
191 mkdir conftest.dir
192 # Copy depcomp to subdir because otherwise we won't find it if we're
193 # using a relative directory.
194 cp "$am_depcomp" conftest.dir
195 cd conftest.dir
196 # We will build objects and dependencies in a subdirectory because
197 # it helps to detect inapplicable dependency modes. For instance
198 # both Tru64's cc and ICC support -MD to output dependencies as a
199 # side effect of compilation, but ICC will put the dependencies in
200 # the current directory while Tru64 will put them in the object
201 # directory.
202 mkdir sub
203
204 am_cv_$1_dependencies_compiler_type=none
205 if test "$am_compiler_list" = ""; then
206 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
207 fi
208 for depmode in $am_compiler_list; do
209 # Setup a source with many dependencies, because some compilers
210 # like to wrap large dependency lists on column 80 (with \), and
211 # we should not choose a depcomp mode which is confused by this.
212 #
213 # We need to recreate these files for each test, as the compiler may
214 # overwrite some of them when testing with obscure command lines.
215 # This happens at least with the AIX C compiler.
216 : > sub/conftest.c
217 for i in 1 2 3 4 5 6; do
218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
220 # Solaris 8's {/usr,}/bin/sh.
221 touch sub/conftst$i.h
222 done
223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
224
225 case $depmode in
226 nosideeffect)
227 # after this tag, mechanisms are not by side-effect, so they'll
228 # only be used when explicitly requested
229 if test "x$enable_dependency_tracking" = xyes; then
230 continue
231 else
232 break
233 fi
234 ;;
235 none) break ;;
236 esac
237 # We check with `-c' and `-o' for the sake of the "dashmstdout"
238 # mode. It turns out that the SunPro C++ compiler does not properly
239 # handle `-M -o', and we need to detect this.
240 if depmode=$depmode \
241 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
242 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
243 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
244 >/dev/null 2>conftest.err &&
245 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
246 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
247 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
248 # icc doesn't choke on unknown options, it will just issue warnings
249 # or remarks (even with -Werror). So we grep stderr for any message
250 # that says an option was ignored or not supported.
251 # When given -MP, icc 7.0 and 7.1 complain thusly:
252 # icc: Command line warning: ignoring option '-M'; no argument required
253 # The diagnosis changed in icc 8.0:
254 # icc: Command line remark: option '-MP' not supported
255 if (grep 'ignoring option' conftest.err ||
256 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
257 am_cv_$1_dependencies_compiler_type=$depmode
258 break
259 fi
260 fi
261 done
262
263 cd ..
264 rm -rf conftest.dir
265else
266 am_cv_$1_dependencies_compiler_type=none
267fi
268])
269AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
270AM_CONDITIONAL([am__fastdep$1], [
271 test "x$enable_dependency_tracking" != xno \
272 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
273])
274
275
276# AM_SET_DEPDIR
277# -------------
278# Choose a directory name for dependency files.
279# This macro is AC_REQUIREd in _AM_DEPENDENCIES
280AC_DEFUN([AM_SET_DEPDIR],
281[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
282AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
283])
284
285
286# AM_DEP_TRACK
287# ------------
288AC_DEFUN([AM_DEP_TRACK],
289[AC_ARG_ENABLE(dependency-tracking,
290[ --disable-dependency-tracking speeds up one-time build
291 --enable-dependency-tracking do not reject slow dependency extractors])
292if test "x$enable_dependency_tracking" != xno; then
293 am_depcomp="$ac_aux_dir/depcomp"
294 AMDEPBACKSLASH='\'
295fi
296AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
297AC_SUBST([AMDEPBACKSLASH])
298])
299
300# Generate code to set up dependency tracking. -*- Autoconf -*-
301
302# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
303# Free Software Foundation, Inc.
304#
305# This file is free software; the Free Software Foundation
306# gives unlimited permission to copy and/or distribute it,
307# with or without modifications, as long as this notice is preserved.
308
309#serial 3
310
311# _AM_OUTPUT_DEPENDENCY_COMMANDS
312# ------------------------------
313AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
314[for mf in $CONFIG_FILES; do
315 # Strip MF so we end up with the name of the file.
316 mf=`echo "$mf" | sed -e 's/:.*$//'`
317 # Check whether this is an Automake generated Makefile or not.
318 # We used to match only the files named `Makefile.in', but
319 # some people rename them; so instead we look at the file content.
320 # Grep'ing the first line is not enough: some people post-process
321 # each Makefile.in and add a new line on top of each file to say so.
322 # So let's grep whole file.
323 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
324 dirpart=`AS_DIRNAME("$mf")`
325 else
326 continue
327 fi
328 # Extract the definition of DEPDIR, am__include, and am__quote
329 # from the Makefile without running `make'.
330 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
331 test -z "$DEPDIR" && continue
332 am__include=`sed -n 's/^am__include = //p' < "$mf"`
333 test -z "am__include" && continue
334 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
335 # When using ansi2knr, U may be empty or an underscore; expand it
336 U=`sed -n 's/^U = //p' < "$mf"`
337 # Find all dependency output files, they are included files with
338 # $(DEPDIR) in their names. We invoke sed twice because it is the
339 # simplest approach to changing $(DEPDIR) to its actual value in the
340 # expansion.
341 for file in `sed -n "
342 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
343 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
344 # Make sure the directory exists.
345 test -f "$dirpart/$file" && continue
346 fdir=`AS_DIRNAME(["$file"])`
347 AS_MKDIR_P([$dirpart/$fdir])
348 # echo "creating $dirpart/$file"
349 echo '# dummy' > "$dirpart/$file"
350 done
351done
352])# _AM_OUTPUT_DEPENDENCY_COMMANDS
353
354
355# AM_OUTPUT_DEPENDENCY_COMMANDS
356# -----------------------------
357# This macro should only be invoked once -- use via AC_REQUIRE.
358#
359# This code is only required when automatic dependency tracking
360# is enabled. FIXME. This creates each `.P' file that we will
361# need in order to bootstrap the dependency handling code.
362AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
363[AC_CONFIG_COMMANDS([depfiles],
364 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
365 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
366])
367
368# Do all the work for Automake. -*- Autoconf -*-
369
370# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
371# Free Software Foundation, Inc.
372#
373# This file is free software; the Free Software Foundation
374# gives unlimited permission to copy and/or distribute it,
375# with or without modifications, as long as this notice is preserved.
376
377# serial 12
378
379# This macro actually does too much. Some checks are only needed if
380# your package does certain things. But this isn't really a big deal.
381
382# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
383# AM_INIT_AUTOMAKE([OPTIONS])
384# -----------------------------------------------
385# The call with PACKAGE and VERSION arguments is the old style
386# call (pre autoconf-2.50), which is being phased out. PACKAGE
387# and VERSION should now be passed to AC_INIT and removed from
388# the call to AM_INIT_AUTOMAKE.
389# We support both call styles for the transition. After
390# the next Automake release, Autoconf can make the AC_INIT
391# arguments mandatory, and then we can depend on a new Autoconf
392# release and drop the old call support.
393AC_DEFUN([AM_INIT_AUTOMAKE],
394[AC_PREREQ([2.58])dnl
395dnl Autoconf wants to disallow AM_ names. We explicitly allow
396dnl the ones we care about.
397m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
398AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
399AC_REQUIRE([AC_PROG_INSTALL])dnl
400# test to see if srcdir already configured
401if test "`cd $srcdir && pwd`" != "`pwd`" &&
402 test -f $srcdir/config.status; then
403 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
404fi
405
406# test whether we have cygpath
407if test -z "$CYGPATH_W"; then
408 if (cygpath --version) >/dev/null 2>/dev/null; then
409 CYGPATH_W='cygpath -w'
410 else
411 CYGPATH_W=echo
412 fi
413fi
414AC_SUBST([CYGPATH_W])
415
416# Define the identity of the package.
417dnl Distinguish between old-style and new-style calls.
418m4_ifval([$2],
419[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
420 AC_SUBST([PACKAGE], [$1])dnl
421 AC_SUBST([VERSION], [$2])],
422[_AM_SET_OPTIONS([$1])dnl
423 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
424 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
425
426_AM_IF_OPTION([no-define],,
427[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
428 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
429
430# Some tools Automake needs.
431AC_REQUIRE([AM_SANITY_CHECK])dnl
432AC_REQUIRE([AC_ARG_PROGRAM])dnl
433AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
434AM_MISSING_PROG(AUTOCONF, autoconf)
435AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
436AM_MISSING_PROG(AUTOHEADER, autoheader)
437AM_MISSING_PROG(MAKEINFO, makeinfo)
438AM_PROG_INSTALL_SH
439AM_PROG_INSTALL_STRIP
440AC_REQUIRE([AM_PROG_MKDIR_P])dnl
441# We need awk for the "check" target. The system "awk" is bad on
442# some platforms.
443AC_REQUIRE([AC_PROG_AWK])dnl
444AC_REQUIRE([AC_PROG_MAKE_SET])dnl
445AC_REQUIRE([AM_SET_LEADING_DOT])dnl
446_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
447 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
448 [_AM_PROG_TAR([v7])])])
449_AM_IF_OPTION([no-dependencies],,
450[AC_PROVIDE_IFELSE([AC_PROG_CC],
451 [_AM_DEPENDENCIES(CC)],
452 [define([AC_PROG_CC],
453 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
454AC_PROVIDE_IFELSE([AC_PROG_CXX],
455 [_AM_DEPENDENCIES(CXX)],
456 [define([AC_PROG_CXX],
457 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
458])
459])
460
461
462# When config.status generates a header, we must update the stamp-h file.
463# This file resides in the same directory as the config header
464# that is generated. The stamp files are numbered to have different names.
465
466# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
467# loop where config.status creates the headers, so we can generate
468# our stamp files there.
469AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
470[# Compute $1's index in $config_headers.
471_am_stamp_count=1
472for _am_header in $config_headers :; do
473 case $_am_header in
474 $1 | $1:* )
475 break ;;
476 * )
477 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
478 esac
479done
480echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
481
482# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
483#
484# This file is free software; the Free Software Foundation
485# gives unlimited permission to copy and/or distribute it,
486# with or without modifications, as long as this notice is preserved.
487
488# AM_PROG_INSTALL_SH
489# ------------------
490# Define $install_sh.
491AC_DEFUN([AM_PROG_INSTALL_SH],
492[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
493install_sh=${install_sh-"$am_aux_dir/install-sh"}
494AC_SUBST(install_sh)])
495
496# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
497#
498# This file is free software; the Free Software Foundation
499# gives unlimited permission to copy and/or distribute it,
500# with or without modifications, as long as this notice is preserved.
501
502# serial 2
503
504# Check whether the underlying file-system supports filenames
505# with a leading dot. For instance MS-DOS doesn't.
506AC_DEFUN([AM_SET_LEADING_DOT],
507[rm -rf .tst 2>/dev/null
508mkdir .tst 2>/dev/null
509if test -d .tst; then
510 am__leading_dot=.
511else
512 am__leading_dot=_
513fi
514rmdir .tst 2>/dev/null
515AC_SUBST([am__leading_dot])])
516
517# Check to see how 'make' treats includes. -*- Autoconf -*-
518
519# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
520#
521# This file is free software; the Free Software Foundation
522# gives unlimited permission to copy and/or distribute it,
523# with or without modifications, as long as this notice is preserved.
524
525# serial 3
526
527# AM_MAKE_INCLUDE()
528# -----------------
529# Check to see how make treats includes.
530AC_DEFUN([AM_MAKE_INCLUDE],
531[am_make=${MAKE-make}
532cat > confinc << 'END'
533am__doit:
534 @echo done
535.PHONY: am__doit
536END
537# If we don't find an include directive, just comment out the code.
538AC_MSG_CHECKING([for style of include used by $am_make])
539am__include="#"
540am__quote=
541_am_result=none
542# First try GNU make style include.
543echo "include confinc" > confmf
544# We grep out `Entering directory' and `Leaving directory'
545# messages which can occur if `w' ends up in MAKEFLAGS.
546# In particular we don't look at `^make:' because GNU make might
547# be invoked under some other name (usually "gmake"), in which
548# case it prints its new name instead of `make'.
549if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
550 am__include=include
551 am__quote=
552 _am_result=GNU
553fi
554# Now try BSD make style include.
555if test "$am__include" = "#"; then
556 echo '.include "confinc"' > confmf
557 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
558 am__include=.include
559 am__quote="\""
560 _am_result=BSD
561 fi
562fi
563AC_SUBST([am__include])
564AC_SUBST([am__quote])
565AC_MSG_RESULT([$_am_result])
566rm -f confinc confmf
567])
568
569# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
570
571# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
572# Free Software Foundation, Inc.
573#
574# This file is free software; the Free Software Foundation
575# gives unlimited permission to copy and/or distribute it,
576# with or without modifications, as long as this notice is preserved.
577
578# serial 4
579
580# AM_MISSING_PROG(NAME, PROGRAM)
581# ------------------------------
582AC_DEFUN([AM_MISSING_PROG],
583[AC_REQUIRE([AM_MISSING_HAS_RUN])
584$1=${$1-"${am_missing_run}$2"}
585AC_SUBST($1)])
586
587
588# AM_MISSING_HAS_RUN
589# ------------------
590# Define MISSING if not defined so far and test if it supports --run.
591# If it does, set am_missing_run to use it, otherwise, to nothing.
592AC_DEFUN([AM_MISSING_HAS_RUN],
593[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
594test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
595# Use eval to expand $SHELL
596if eval "$MISSING --run true"; then
597 am_missing_run="$MISSING --run "
598else
599 am_missing_run=
600 AC_MSG_WARN([`missing' script is too old or missing])
601fi
602])
603
604# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
605#
606# This file is free software; the Free Software Foundation
607# gives unlimited permission to copy and/or distribute it,
608# with or without modifications, as long as this notice is preserved.
609
610# AM_PROG_MKDIR_P
611# ---------------
612# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
613#
614# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
615# created by `make install' are always world readable, even if the
616# installer happens to have an overly restrictive umask (e.g. 077).
617# This was a mistake. There are at least two reasons why we must not
618# use `-m 0755':
619# - it causes special bits like SGID to be ignored,
620# - it may be too restrictive (some setups expect 775 directories).
621#
622# Do not use -m 0755 and let people choose whatever they expect by
623# setting umask.
624#
625# We cannot accept any implementation of `mkdir' that recognizes `-p'.
626# Some implementations (such as Solaris 8's) are not thread-safe: if a
627# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
628# concurrently, both version can detect that a/ is missing, but only
629# one can create it and the other will error out. Consequently we
630# restrict ourselves to GNU make (using the --version option ensures
631# this.)
632AC_DEFUN([AM_PROG_MKDIR_P],
633[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
634 # We used to keeping the `.' as first argument, in order to
635 # allow $(mkdir_p) to be used without argument. As in
636 # $(mkdir_p) $(somedir)
637 # where $(somedir) is conditionally defined. However this is wrong
638 # for two reasons:
639 # 1. if the package is installed by a user who cannot write `.'
640 # make install will fail,
641 # 2. the above comment should most certainly read
642 # $(mkdir_p) $(DESTDIR)$(somedir)
643 # so it does not work when $(somedir) is undefined and
644 # $(DESTDIR) is not.
645 # To support the latter case, we have to write
646 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
647 # so the `.' trick is pointless.
648 mkdir_p='mkdir -p --'
649else
650 # On NextStep and OpenStep, the `mkdir' command does not
651 # recognize any option. It will interpret all options as
652 # directories to create, and then abort because `.' already
653 # exists.
654 for d in ./-p ./--version;
655 do
656 test -d $d && rmdir $d
657 done
658 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
659 if test -f "$ac_aux_dir/mkinstalldirs"; then
660 mkdir_p='$(mkinstalldirs)'
661 else
662 mkdir_p='$(install_sh) -d'
663 fi
664fi
665AC_SUBST([mkdir_p])])
666
667# Helper functions for option handling. -*- Autoconf -*-
668
669# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
670#
671# This file is free software; the Free Software Foundation
672# gives unlimited permission to copy and/or distribute it,
673# with or without modifications, as long as this notice is preserved.
674
675# serial 3
676
677# _AM_MANGLE_OPTION(NAME)
678# -----------------------
679AC_DEFUN([_AM_MANGLE_OPTION],
680[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
681
682# _AM_SET_OPTION(NAME)
683# ------------------------------
684# Set option NAME. Presently that only means defining a flag for this option.
685AC_DEFUN([_AM_SET_OPTION],
686[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
687
688# _AM_SET_OPTIONS(OPTIONS)
689# ----------------------------------
690# OPTIONS is a space-separated list of Automake options.
691AC_DEFUN([_AM_SET_OPTIONS],
692[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
693
694# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
695# -------------------------------------------
696# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
697AC_DEFUN([_AM_IF_OPTION],
698[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
699
700# Copyright (C) 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2005
701# Free Software Foundation, Inc.
702#
703# This file is free software; the Free Software Foundation
704# gives unlimited permission to copy and/or distribute it,
705# with or without modifications, as long as this notice is preserved.
706
707# serial 4
708
709AC_DEFUN([AM_C_PROTOTYPES],
710[AC_REQUIRE([AC_C_PROTOTYPES])
711if test "$ac_cv_prog_cc_stdc" != no; then
712 U= ANSI2KNR=
713else
714 U=_ ANSI2KNR=./ansi2knr
715fi
716# Ensure some checks needed by ansi2knr itself.
717AC_REQUIRE([AC_HEADER_STDC])
718AC_CHECK_HEADERS(string.h)
719AC_SUBST(U)dnl
720AC_SUBST(ANSI2KNR)dnl
721])
722
723AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
724
725# Check to make sure that the build environment is sane. -*- Autoconf -*-
726
727# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
728# Free Software Foundation, Inc.
729#
730# This file is free software; the Free Software Foundation
731# gives unlimited permission to copy and/or distribute it,
732# with or without modifications, as long as this notice is preserved.
733
734# serial 4
735
736# AM_SANITY_CHECK
737# ---------------
738AC_DEFUN([AM_SANITY_CHECK],
739[AC_MSG_CHECKING([whether build environment is sane])
740# Just in case
741sleep 1
742echo timestamp > conftest.file
743# Do `set' in a subshell so we don't clobber the current shell's
744# arguments. Must try -L first in case configure is actually a
745# symlink; some systems play weird games with the mod time of symlinks
746# (eg FreeBSD returns the mod time of the symlink's containing
747# directory).
748if (
749 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
750 if test "$[*]" = "X"; then
751 # -L didn't work.
752 set X `ls -t $srcdir/configure conftest.file`
753 fi
754 rm -f conftest.file
755 if test "$[*]" != "X $srcdir/configure conftest.file" \
756 && test "$[*]" != "X conftest.file $srcdir/configure"; then
757
758 # If neither matched, then we have a broken ls. This can happen
759 # if, for instance, CONFIG_SHELL is bash and it inherits a
760 # broken ls alias from the environment. This has actually
761 # happened. Such a system could not be considered "sane".
762 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
763alias in your environment])
764 fi
765
766 test "$[2]" = conftest.file
767 )
768then
769 # Ok.
770 :
771else
772 AC_MSG_ERROR([newly created file is older than distributed files!
773Check your system clock])
774fi
775AC_MSG_RESULT(yes)])
776
777# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
778#
779# This file is free software; the Free Software Foundation
780# gives unlimited permission to copy and/or distribute it,
781# with or without modifications, as long as this notice is preserved.
782
783# AM_PROG_INSTALL_STRIP
784# ---------------------
785# One issue with vendor `install' (even GNU) is that you can't
786# specify the program used to strip binaries. This is especially
787# annoying in cross-compiling environments, where the build's strip
788# is unlikely to handle the host's binaries.
789# Fortunately install-sh will honor a STRIPPROG variable, so we
790# always use install-sh in `make install-strip', and initialize
791# STRIPPROG with the value of the STRIP variable (set by the user).
792AC_DEFUN([AM_PROG_INSTALL_STRIP],
793[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
794# Installed binaries are usually stripped using `strip' when the user
795# run `make install-strip'. However `strip' might not be the right
796# tool to use in cross-compilation environments, therefore Automake
797# will honor the `STRIP' environment variable to overrule this program.
798dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
799if test "$cross_compiling" != no; then
800 AC_CHECK_TOOL([STRIP], [strip], :)
801fi
802INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
803AC_SUBST([INSTALL_STRIP_PROGRAM])])
804
805# Check how to create a tarball. -*- Autoconf -*-
806
807# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
808#
809# This file is free software; the Free Software Foundation
810# gives unlimited permission to copy and/or distribute it,
811# with or without modifications, as long as this notice is preserved.
812
813# serial 2
814
815# _AM_PROG_TAR(FORMAT)
816# --------------------
817# Check how to create a tarball in format FORMAT.
818# FORMAT should be one of `v7', `ustar', or `pax'.
819#
820# Substitute a variable $(am__tar) that is a command
821# writing to stdout a FORMAT-tarball containing the directory
822# $tardir.
823# tardir=directory && $(am__tar) > result.tar
824#
825# Substitute a variable $(am__untar) that extract such
826# a tarball read from stdin.
827# $(am__untar) < result.tar
828AC_DEFUN([_AM_PROG_TAR],
829[# Always define AMTAR for backward compatibility.
830AM_MISSING_PROG([AMTAR], [tar])
831m4_if([$1], [v7],
832 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
833 [m4_case([$1], [ustar],, [pax],,
834 [m4_fatal([Unknown tar format])])
835AC_MSG_CHECKING([how to create a $1 tar archive])
836# Loop over all known methods to create a tar archive until one works.
837_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
838_am_tools=${am_cv_prog_tar_$1-$_am_tools}
839# Do not fold the above two line into one, because Tru64 sh and
840# Solaris sh will not grok spaces in the rhs of `-'.
841for _am_tool in $_am_tools
842do
843 case $_am_tool in
844 gnutar)
845 for _am_tar in tar gnutar gtar;
846 do
847 AM_RUN_LOG([$_am_tar --version]) && break
848 done
849 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
850 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
851 am__untar="$_am_tar -xf -"
852 ;;
853 plaintar)
854 # Must skip GNU tar: if it does not support --format= it doesn't create
855 # ustar tarball either.
856 (tar --version) >/dev/null 2>&1 && continue
857 am__tar='tar chf - "$$tardir"'
858 am__tar_='tar chf - "$tardir"'
859 am__untar='tar xf -'
860 ;;
861 pax)
862 am__tar='pax -L -x $1 -w "$$tardir"'
863 am__tar_='pax -L -x $1 -w "$tardir"'
864 am__untar='pax -r'
865 ;;
866 cpio)
867 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
868 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
869 am__untar='cpio -i -H $1 -d'
870 ;;
871 none)
872 am__tar=false
873 am__tar_=false
874 am__untar=false
875 ;;
876 esac
877
878 # If the value was cached, stop now. We just wanted to have am__tar
879 # and am__untar set.
880 test -n "${am_cv_prog_tar_$1}" && break
881
882 # tar/untar a dummy directory, and stop if the command works
883 rm -rf conftest.dir
884 mkdir conftest.dir
885 echo GrepMe > conftest.dir/file
886 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
887 rm -rf conftest.dir
888 if test -s conftest.tar; then
889 AM_RUN_LOG([$am__untar <conftest.tar])
890 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
891 fi
892done
893rm -rf conftest.dir
894
895AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
896AC_MSG_RESULT([$am_cv_prog_tar_$1])])
897AC_SUBST([am__tar])
898AC_SUBST([am__untar])
899]) # _AM_PROG_TAR
900
901m4_include([m4/findlib.m4])
902m4_include([m4/mkinstalldirs.m4])
903m4_include([m4/nullsort.m4])
904m4_include([m4/withfts.m4])
905m4_include([gnulib/m4/absolute-header.m4])
906m4_include([gnulib/m4/alloca.m4])
907m4_include([gnulib/m4/argmatch.m4])
908m4_include([gnulib/m4/canonicalize.m4])
909m4_include([gnulib/m4/chdir-long.m4])
910m4_include([gnulib/m4/chown.m4])
911m4_include([gnulib/m4/close-stream.m4])
912m4_include([gnulib/m4/closeout.m4])
913m4_include([gnulib/m4/codeset.m4])
914m4_include([gnulib/m4/cycle-check.m4])
915m4_include([gnulib/m4/d-ino.m4])
916m4_include([gnulib/m4/d-type.m4])
917m4_include([gnulib/m4/dirfd.m4])
918m4_include([gnulib/m4/dirname.m4])
919m4_include([gnulib/m4/dos.m4])
920m4_include([gnulib/m4/double-slash-root.m4])
921m4_include([gnulib/m4/error.m4])
922m4_include([gnulib/m4/exitfail.m4])
923m4_include([gnulib/m4/extensions.m4])
924m4_include([gnulib/m4/fcntl-safer.m4])
925m4_include([gnulib/m4/fcntl_h.m4])
926m4_include([gnulib/m4/fileblocks.m4])
927m4_include([gnulib/m4/filemode.m4])
928m4_include([gnulib/m4/filenamecat.m4])
929m4_include([gnulib/m4/flexmember.m4])
930m4_include([gnulib/m4/fnmatch.m4])
931m4_include([gnulib/m4/fpending.m4])
932m4_include([gnulib/m4/fstypename.m4])
933m4_include([gnulib/m4/fts.m4])
934m4_include([gnulib/m4/getcwd-abort-bug.m4])
935m4_include([gnulib/m4/getcwd-path-max.m4])
936m4_include([gnulib/m4/getcwd.m4])
937m4_include([gnulib/m4/getdelim.m4])
938m4_include([gnulib/m4/getline.m4])
939m4_include([gnulib/m4/getopt.m4])
940m4_include([gnulib/m4/gettext.m4])
941m4_include([gnulib/m4/gnulib-comp.m4])
942m4_include([gnulib/m4/hash.m4])
943m4_include([gnulib/m4/human.m4])
944m4_include([gnulib/m4/i-ring.m4])
945m4_include([gnulib/m4/iconv.m4])
946m4_include([gnulib/m4/idcache.m4])
947m4_include([gnulib/m4/inline.m4])
948m4_include([gnulib/m4/inttypes-pri.m4])
949m4_include([gnulib/m4/inttypes.m4])
950m4_include([gnulib/m4/lchown.m4])
951m4_include([gnulib/m4/lib-ld.m4])
952m4_include([gnulib/m4/lib-link.m4])
953m4_include([gnulib/m4/lib-prefix.m4])
954m4_include([gnulib/m4/lock.m4])
955m4_include([gnulib/m4/longlong.m4])
956m4_include([gnulib/m4/ls-mntd-fs.m4])
957m4_include([gnulib/m4/lstat.m4])
958m4_include([gnulib/m4/mbchar.m4])
959m4_include([gnulib/m4/mbiter.m4])
960m4_include([gnulib/m4/mbrtowc.m4])
961m4_include([gnulib/m4/mbstate_t.m4])
962m4_include([gnulib/m4/memchr.m4])
963m4_include([gnulib/m4/memcmp.m4])
964m4_include([gnulib/m4/mempcpy.m4])
965m4_include([gnulib/m4/memrchr.m4])
966m4_include([gnulib/m4/memset.m4])
967m4_include([gnulib/m4/mktime.m4])
968m4_include([gnulib/m4/modechange.m4])
969m4_include([gnulib/m4/mountlist.m4])
970m4_include([gnulib/m4/nls.m4])
971m4_include([gnulib/m4/onceonly_2_57.m4])
972m4_include([gnulib/m4/openat.m4])
973m4_include([gnulib/m4/pathmax.m4])
974m4_include([gnulib/m4/po.m4])
975m4_include([gnulib/m4/progtest.m4])
976m4_include([gnulib/m4/quote.m4])
977m4_include([gnulib/m4/quotearg.m4])
978m4_include([gnulib/m4/readlink.m4])
979m4_include([gnulib/m4/regex.m4])
980m4_include([gnulib/m4/rpmatch.m4])
981m4_include([gnulib/m4/save-cwd.m4])
982m4_include([gnulib/m4/savedir.m4])
983m4_include([gnulib/m4/ssize_t.m4])
984m4_include([gnulib/m4/st_dm_mode.m4])
985m4_include([gnulib/m4/stdbool.m4])
986m4_include([gnulib/m4/stdint.m4])
987m4_include([gnulib/m4/stdio-safer.m4])
988m4_include([gnulib/m4/stpcpy.m4])
989m4_include([gnulib/m4/strcase.m4])
990m4_include([gnulib/m4/strdup.m4])
991m4_include([gnulib/m4/strftime.m4])
992m4_include([gnulib/m4/strndup.m4])
993m4_include([gnulib/m4/strnlen.m4])
994m4_include([gnulib/m4/strstr.m4])
995m4_include([gnulib/m4/strtoimax.m4])
996m4_include([gnulib/m4/strtol.m4])
997m4_include([gnulib/m4/strtoll.m4])
998m4_include([gnulib/m4/strtoul.m4])
999m4_include([gnulib/m4/strtoull.m4])
1000m4_include([gnulib/m4/strtoumax.m4])
1001m4_include([gnulib/m4/sys_stat_h.m4])
1002m4_include([gnulib/m4/time_r.m4])
1003m4_include([gnulib/m4/tm_gmtoff.m4])
1004m4_include([gnulib/m4/ulonglong.m4])
1005m4_include([gnulib/m4/unistd-safer.m4])
1006m4_include([gnulib/m4/unistd_h.m4])
1007m4_include([gnulib/m4/wchar_t.m4])
1008m4_include([gnulib/m4/wcwidth.m4])
1009m4_include([gnulib/m4/wint_t.m4])
1010m4_include([gnulib/m4/xalloc.m4])
1011m4_include([gnulib/m4/xgetcwd.m4])
1012m4_include([gnulib/m4/xreadlink.m4])
1013m4_include([gnulib/m4/xstrndup.m4])
1014m4_include([gnulib/m4/xstrtod.m4])
1015m4_include([gnulib/m4/xstrtol.m4])
1016m4_include([gnulib/m4/yesno.m4])
Note: See TracBrowser for help on using the repository browser.