source: trunk/essentials/app-arch/tar/aclocal.m4@ 3399

Last change on this file since 3399 was 3342, checked in by bird, 18 years ago

tar 1.16.1

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