1 # generated automatically by aclocal 1.9.3 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4 # 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.
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
15 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
16 # Generated from amversion.in; do not edit by hand.
18 # This program is free software; you can redistribute it and/or modify
19 # it under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2, or (at your option)
23 # This program is distributed in the hope that it will be useful,
24 # but WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 # GNU General Public License for more details.
28 # You should have received a copy of the GNU General Public License
29 # along with this program; if not, write to the Free Software
30 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
32 # AM_AUTOMAKE_VERSION(VERSION)
33 # ----------------------------
34 # Automake X.Y traces this macro to ensure aclocal.m4 has been
35 # generated from the m4 files accompanying Automake X.Y.
36 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
38 # AM_SET_CURRENT_AUTOMAKE_VERSION
39 # -------------------------------
40 # Call AM_AUTOMAKE_VERSION so it can be traced.
41 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
42 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
43 [AM_AUTOMAKE_VERSION([1.9.3])])
47 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
49 # This program is free software; you can redistribute it and/or modify
50 # it under the terms of the GNU General Public License as published by
51 # the Free Software Foundation; either version 2, or (at your option)
54 # This program is distributed in the hope that it will be useful,
55 # but WITHOUT ANY WARRANTY; without even the implied warranty of
56 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
57 # GNU General Public License for more details.
59 # You should have received a copy of the GNU General Public License
60 # along with this program; if not, write to the Free Software
61 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
64 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
65 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
66 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
68 # Of course, Automake must honor this variable whenever it calls a
69 # tool from the auxiliary directory. The problem is that $srcdir (and
70 # therefore $ac_aux_dir as well) can be either absolute or relative,
71 # depending on how configure is run. This is pretty annoying, since
72 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
73 # source directory, any form will work fine, but in subdirectories a
74 # relative path needs to be adjusted first.
77 # fails when called from a subdirectory if $ac_aux_dir is relative
78 # $top_srcdir/$ac_aux_dir/missing
79 # fails if $ac_aux_dir is absolute,
80 # fails when called from a subdirectory in a VPATH build with
81 # a relative $ac_aux_dir
83 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
84 # are both prefixed by $srcdir. In an in-source build this is usually
85 # harmless because $srcdir is `.', but things will broke when you
86 # start a VPATH build or use an absolute $srcdir.
88 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
89 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
90 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
91 # and then we would define $MISSING as
92 # MISSING="\${SHELL} $am_aux_dir/missing"
93 # This will work as long as MISSING is not called from configure, because
94 # unfortunately $(top_srcdir) has no meaning in configure.
95 # However there are other variables, like CC, which are often used in
96 # configure, and could therefore not use this "fixed" $ac_aux_dir.
98 # Another solution, used here, is to always expand $ac_aux_dir to an
99 # absolute PATH. The drawback is that using absolute paths prevent a
100 # configured tree to be moved without reconfiguration.
102 AC_DEFUN([AM_AUX_DIR_EXPAND],
103 [dnl Rely on autoconf to set up CDPATH properly.
105 # expand $ac_aux_dir to an absolute path
106 am_aux_dir=`cd $ac_aux_dir && pwd`
109 # AM_CONDITIONAL -*- Autoconf -*-
111 # Copyright (C) 1997, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
113 # This program is free software; you can redistribute it and/or modify
114 # it under the terms of the GNU General Public License as published by
115 # the Free Software Foundation; either version 2, or (at your option)
118 # This program is distributed in the hope that it will be useful,
119 # but WITHOUT ANY WARRANTY; without even the implied warranty of
120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
121 # GNU General Public License for more details.
123 # You should have received a copy of the GNU General Public License
124 # along with this program; if not, write to the Free Software
125 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
130 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
131 # -------------------------------------
132 # Define a conditional.
133 AC_DEFUN([AM_CONDITIONAL],
135 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
136 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
146 AC_CONFIG_COMMANDS_PRE(
147 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
148 AC_MSG_ERROR([[conditional "$1" was never defined.
149 Usually this means the macro was only invoked conditionally.]])
152 # Do all the work for Automake. -*- Autoconf -*-
154 # This macro actually does too much some checks are only needed if
155 # your package does certain things. But this isn't really a big deal.
157 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
158 # Free Software Foundation, Inc.
160 # This program is free software; you can redistribute it and/or modify
161 # it under the terms of the GNU General Public License as published by
162 # the Free Software Foundation; either version 2, or (at your option)
165 # This program is distributed in the hope that it will be useful,
166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
168 # GNU General Public License for more details.
170 # You should have received a copy of the GNU General Public License
171 # along with this program; if not, write to the Free Software
172 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
177 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
178 # AM_INIT_AUTOMAKE([OPTIONS])
179 # -----------------------------------------------
180 # The call with PACKAGE and VERSION arguments is the old style
181 # call (pre autoconf-2.50), which is being phased out. PACKAGE
182 # and VERSION should now be passed to AC_INIT and removed from
183 # the call to AM_INIT_AUTOMAKE.
184 # We support both call styles for the transition. After
185 # the next Automake release, Autoconf can make the AC_INIT
186 # arguments mandatory, and then we can depend on a new Autoconf
187 # release and drop the old call support.
188 AC_DEFUN([AM_INIT_AUTOMAKE],
189 [AC_PREREQ([2.58])dnl
190 dnl Autoconf wants to disallow AM_ names. We explicitly allow
191 dnl the ones we care about.
192 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
193 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
194 AC_REQUIRE([AC_PROG_INSTALL])dnl
195 # test to see if srcdir already configured
196 if test "`cd $srcdir && pwd`" != "`pwd`" &&
197 test -f $srcdir/config.status; then
198 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
201 # test whether we have cygpath
202 if test -z "$CYGPATH_W"; then
203 if (cygpath --version) >/dev/null 2>/dev/null; then
204 CYGPATH_W='cygpath -w'
209 AC_SUBST([CYGPATH_W])
211 # Define the identity of the package.
212 dnl Distinguish between old-style and new-style calls.
214 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
215 AC_SUBST([PACKAGE], [$1])dnl
216 AC_SUBST([VERSION], [$2])],
217 [_AM_SET_OPTIONS([$1])dnl
218 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
219 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
221 _AM_IF_OPTION([no-define],,
222 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
223 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
225 # Some tools Automake needs.
226 AC_REQUIRE([AM_SANITY_CHECK])dnl
227 AC_REQUIRE([AC_ARG_PROGRAM])dnl
228 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
229 AM_MISSING_PROG(AUTOCONF, autoconf)
230 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
231 AM_MISSING_PROG(AUTOHEADER, autoheader)
232 AM_MISSING_PROG(MAKEINFO, makeinfo)
234 AM_PROG_INSTALL_STRIP
235 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
236 # We need awk for the "check" target. The system "awk" is bad on
238 AC_REQUIRE([AC_PROG_AWK])dnl
239 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
240 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
241 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
242 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
243 [_AM_PROG_TAR([v7])])])
244 _AM_IF_OPTION([no-dependencies],,
245 [AC_PROVIDE_IFELSE([AC_PROG_CC],
246 [_AM_DEPENDENCIES(CC)],
247 [define([AC_PROG_CC],
248 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
249 AC_PROVIDE_IFELSE([AC_PROG_CXX],
250 [_AM_DEPENDENCIES(CXX)],
251 [define([AC_PROG_CXX],
252 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
257 # When config.status generates a header, we must update the stamp-h file.
258 # This file resides in the same directory as the config header
259 # that is generated. The stamp files are numbered to have different names.
261 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
262 # loop where config.status creates the headers, so we can generate
263 # our stamp files there.
264 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
265 [# Compute $1's index in $config_headers.
267 for _am_header in $config_headers :; do
272 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
275 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
279 # Define $install_sh.
281 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
283 # This program is free software; you can redistribute it and/or modify
284 # it under the terms of the GNU General Public License as published by
285 # the Free Software Foundation; either version 2, or (at your option)
288 # This program is distributed in the hope that it will be useful,
289 # but WITHOUT ANY WARRANTY; without even the implied warranty of
290 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
291 # GNU General Public License for more details.
293 # You should have received a copy of the GNU General Public License
294 # along with this program; if not, write to the Free Software
295 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
298 AC_DEFUN([AM_PROG_INSTALL_SH],
299 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
300 install_sh=${install_sh-"$am_aux_dir/install-sh"}
301 AC_SUBST(install_sh)])
303 # Add --enable-maintainer-mode option to configure.
306 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
307 # Free Software Foundation, Inc.
309 # This program is free software; you can redistribute it and/or modify
310 # it under the terms of the GNU General Public License as published by
311 # the Free Software Foundation; either version 2, or (at your option)
314 # This program is distributed in the hope that it will be useful,
315 # but WITHOUT ANY WARRANTY; without even the implied warranty of
316 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
317 # GNU General Public License for more details.
319 # You should have received a copy of the GNU General Public License
320 # along with this program; if not, write to the Free Software
321 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
326 AC_DEFUN([AM_MAINTAINER_MODE],
327 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
328 dnl maintainer-mode is disabled by default
329 AC_ARG_ENABLE(maintainer-mode,
330 [ --enable-maintainer-mode enable make rules and dependencies not useful
331 (and sometimes confusing) to the casual installer],
332 USE_MAINTAINER_MODE=$enableval,
333 USE_MAINTAINER_MODE=no)
334 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
335 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
336 MAINT=$MAINTAINER_MODE_TRUE
341 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
346 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
348 # This program is free software; you can redistribute it and/or modify
349 # it under the terms of the GNU General Public License as published by
350 # the Free Software Foundation; either version 2, or (at your option)
353 # This program is distributed in the hope that it will be useful,
354 # but WITHOUT ANY WARRANTY; without even the implied warranty of
355 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
356 # GNU General Public License for more details.
358 # You should have received a copy of the GNU General Public License
359 # along with this program; if not, write to the Free Software
360 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
365 # AM_MISSING_PROG(NAME, PROGRAM)
366 # ------------------------------
367 AC_DEFUN([AM_MISSING_PROG],
368 [AC_REQUIRE([AM_MISSING_HAS_RUN])
369 $1=${$1-"${am_missing_run}$2"}
375 # Define MISSING if not defined so far and test if it supports --run.
376 # If it does, set am_missing_run to use it, otherwise, to nothing.
377 AC_DEFUN([AM_MISSING_HAS_RUN],
378 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
379 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
380 # Use eval to expand $SHELL
381 if eval "$MISSING --run true"; then
382 am_missing_run="$MISSING --run "
385 AC_MSG_WARN([`missing' script is too old or missing])
391 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
393 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
395 # This program is free software; you can redistribute it and/or modify
396 # it under the terms of the GNU General Public License as published by
397 # the Free Software Foundation; either version 2, or (at your option)
400 # This program is distributed in the hope that it will be useful,
401 # but WITHOUT ANY WARRANTY; without even the implied warranty of
402 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
403 # GNU General Public License for more details.
405 # You should have received a copy of the GNU General Public License
406 # along with this program; if not, write to the Free Software
407 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
410 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
411 # created by `make install' are always world readable, even if the
412 # installer happens to have an overly restrictive umask (e.g. 077).
413 # This was a mistake. There are at least two reasons why we must not
415 # - it causes special bits like SGID to be ignored,
416 # - it may be too restrictive (some setups expect 775 directories).
418 # Do not use -m 0755 and let people choose whatever they expect by
421 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
422 # Some implementations (such as Solaris 8's) are not thread-safe: if a
423 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
424 # concurrently, both version can detect that a/ is missing, but only
425 # one can create it and the other will error out. Consequently we
426 # restrict ourselves to GNU make (using the --version option ensures
428 AC_DEFUN([AM_PROG_MKDIR_P],
429 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
430 # We used to keeping the `.' as first argument, in order to
431 # allow $(mkdir_p) to be used without argument. As in
432 # $(mkdir_p) $(somedir)
433 # where $(somedir) is conditionally defined. However this is wrong
435 # 1. if the package is installed by a user who cannot write `.'
436 # make install will fail,
437 # 2. the above comment should most certainly read
438 # $(mkdir_p) $(DESTDIR)$(somedir)
439 # so it does not work when $(somedir) is undefined and
441 # To support the latter case, we have to write
442 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
443 # so the `.' trick is pointless.
444 mkdir_p='mkdir -p --'
446 # On NextStep and OpenStep, the `mkdir' command does not
447 # recognize any option. It will interpret all options as
448 # directories to create, and then abort because `.' already
450 for d in ./-p ./--version;
452 test -d $d && rmdir $d
454 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
455 if test -f "$ac_aux_dir/mkinstalldirs"; then
456 mkdir_p='$(mkinstalldirs)'
458 mkdir_p='$(install_sh) -d'
461 AC_SUBST([mkdir_p])])
463 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
464 # Free Software Foundation, Inc.
466 # This program is free software; you can redistribute it and/or modify
467 # it under the terms of the GNU General Public License as published by
468 # the Free Software Foundation; either version 2, or (at your option)
471 # This program is distributed in the hope that it will be useful,
472 # but WITHOUT ANY WARRANTY; without even the implied warranty of
473 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
474 # GNU General Public License for more details.
476 # You should have received a copy of the GNU General Public License
477 # along with this program; if not, write to the Free Software
478 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
483 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
484 # ---------------------------------------------------
485 # Add --enable-multilib to configure.
486 AC_DEFUN([AM_ENABLE_MULTILIB],
487 [# Default to --enable-multilib
488 AC_ARG_ENABLE(multilib,
489 [ --enable-multilib build many library versions (default)],
490 [case "$enableval" in
493 *) AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
497 # We may get other options which we leave undocumented:
498 # --with-target-subdir, --with-multisrctop, --with-multisubdir
499 # See config-ml.in if you want the gory details.
501 if test "$srcdir" = "."; then
502 if test "$with_target_subdir" != "."; then
503 multi_basedir="$srcdir/$with_multisrctop../$2"
505 multi_basedir="$srcdir/$with_multisrctop$2"
508 multi_basedir="$srcdir/$2"
510 AC_SUBST(multi_basedir)
513 # Only add multilib support code if we just rebuilt the top-level
515 case " $CONFIG_FILES " in
516 *" ]m4_default([$1],Makefile)[ "*)
517 ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
524 with_multisubdir="$with_multisubdir"
525 with_multisrctop="$with_multisrctop"
526 with_target_subdir="$with_target_subdir"
527 ac_configure_args="${multilib_arg} ${ac_configure_args}"
528 multi_basedir="$multi_basedir"
529 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
532 # Helper functions for option handling. -*- Autoconf -*-
534 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
536 # This program is free software; you can redistribute it and/or modify
537 # it under the terms of the GNU General Public License as published by
538 # the Free Software Foundation; either version 2, or (at your option)
541 # This program is distributed in the hope that it will be useful,
542 # but WITHOUT ANY WARRANTY; without even the implied warranty of
543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
544 # GNU General Public License for more details.
546 # You should have received a copy of the GNU General Public License
547 # along with this program; if not, write to the Free Software
548 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
553 # _AM_MANGLE_OPTION(NAME)
554 # -----------------------
555 AC_DEFUN([_AM_MANGLE_OPTION],
556 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
558 # _AM_SET_OPTION(NAME)
559 # ------------------------------
560 # Set option NAME. Presently that only means defining a flag for this option.
561 AC_DEFUN([_AM_SET_OPTION],
562 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
564 # _AM_SET_OPTIONS(OPTIONS)
565 # ----------------------------------
566 # OPTIONS is a space-separated list of Automake options.
567 AC_DEFUN([_AM_SET_OPTIONS],
568 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
570 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
571 # -------------------------------------------
572 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
573 AC_DEFUN([_AM_IF_OPTION],
574 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
577 # Check to make sure that the build environment is sane.
580 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
582 # This program is free software; you can redistribute it and/or modify
583 # it under the terms of the GNU General Public License as published by
584 # the Free Software Foundation; either version 2, or (at your option)
587 # This program is distributed in the hope that it will be useful,
588 # but WITHOUT ANY WARRANTY; without even the implied warranty of
589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
590 # GNU General Public License for more details.
592 # You should have received a copy of the GNU General Public License
593 # along with this program; if not, write to the Free Software
594 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
601 AC_DEFUN([AM_SANITY_CHECK],
602 [AC_MSG_CHECKING([whether build environment is sane])
605 echo timestamp > conftest.file
606 # Do `set' in a subshell so we don't clobber the current shell's
607 # arguments. Must try -L first in case configure is actually a
608 # symlink; some systems play weird games with the mod time of symlinks
609 # (eg FreeBSD returns the mod time of the symlink's containing
612 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
613 if test "$[*]" = "X"; then
615 set X `ls -t $srcdir/configure conftest.file`
618 if test "$[*]" != "X $srcdir/configure conftest.file" \
619 && test "$[*]" != "X conftest.file $srcdir/configure"; then
621 # If neither matched, then we have a broken ls. This can happen
622 # if, for instance, CONFIG_SHELL is bash and it inherits a
623 # broken ls alias from the environment. This has actually
624 # happened. Such a system could not be considered "sane".
625 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
626 alias in your environment])
629 test "$[2]" = conftest.file
635 AC_MSG_ERROR([newly created file is older than distributed files!
636 Check your system clock])
640 # AM_PROG_INSTALL_STRIP
642 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
644 # This program is free software; you can redistribute it and/or modify
645 # it under the terms of the GNU General Public License as published by
646 # the Free Software Foundation; either version 2, or (at your option)
649 # This program is distributed in the hope that it will be useful,
650 # but WITHOUT ANY WARRANTY; without even the implied warranty of
651 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
652 # GNU General Public License for more details.
654 # You should have received a copy of the GNU General Public License
655 # along with this program; if not, write to the Free Software
656 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
659 # One issue with vendor `install' (even GNU) is that you can't
660 # specify the program used to strip binaries. This is especially
661 # annoying in cross-compiling environments, where the build's strip
662 # is unlikely to handle the host's binaries.
663 # Fortunately install-sh will honor a STRIPPROG variable, so we
664 # always use install-sh in `make install-strip', and initialize
665 # STRIPPROG with the value of the STRIP variable (set by the user).
666 AC_DEFUN([AM_PROG_INSTALL_STRIP],
667 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
668 # Installed binaries are usually stripped using `strip' when the user
669 # run `make install-strip'. However `strip' might not be the right
670 # tool to use in cross-compilation environments, therefore Automake
671 # will honor the `STRIP' environment variable to overrule this program.
672 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
673 if test "$cross_compiling" != no; then
674 AC_CHECK_TOOL([STRIP], [strip], :)
676 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
677 AC_SUBST([INSTALL_STRIP_PROGRAM])])
679 # Check how to create a tarball. -*- Autoconf -*-
681 # Copyright (C) 2004 Free Software Foundation, Inc.
683 # This program is free software; you can redistribute it and/or modify
684 # it under the terms of the GNU General Public License as published by
685 # the Free Software Foundation; either version 2, or (at your option)
688 # This program is distributed in the hope that it will be useful,
689 # but WITHOUT ANY WARRANTY; without even the implied warranty of
690 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
691 # GNU General Public License for more details.
693 # You should have received a copy of the GNU General Public License
694 # along with this program; if not, write to the Free Software
695 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
701 # _AM_PROG_TAR(FORMAT)
702 # --------------------
703 # Check how to create a tarball in format FORMAT.
704 # FORMAT should be one of `v7', `ustar', or `pax'.
706 # Substitute a variable $(am__tar) that is a command
707 # writing to stdout a FORMAT-tarball containing the directory
709 # tardir=directory && $(am__tar) > result.tar
711 # Substitute a variable $(am__untar) that extract such
712 # a tarball read from stdin.
713 # $(am__untar) < result.tar
714 AC_DEFUN([_AM_PROG_TAR],
715 [# Always define AMTAR for backward compatibility.
716 AM_MISSING_PROG([AMTAR], [tar])
718 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
719 [m4_case([$1], [ustar],, [pax],,
720 [m4_fatal([Unknown tar format])])
721 AC_MSG_CHECKING([how to create a $1 tar archive])
722 # Loop over all known methods to create a tar archive until one works.
723 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
724 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
725 # Do not fold the above two line into one, because Tru64 sh and
726 # Solaris sh will not grok spaces in the rhs of `-'.
727 for _am_tool in $_am_tools
731 for _am_tar in tar gnutar gtar;
733 AM_RUN_LOG([$_am_tar --version]) && break
735 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
736 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
737 am__untar="$_am_tar -xf -"
740 # Must skip GNU tar: if it does not support --format= it doesn't create
741 # ustar tarball either.
742 (tar --version) >/dev/null 2>&1 && continue
743 am__tar='tar chf - "$$tardir"'
744 am__tar_='tar chf - "$tardir"'
748 am__tar='pax -L -x $1 -w "$$tardir"'
749 am__tar_='pax -L -x $1 -w "$tardir"'
753 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
754 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
755 am__untar='cpio -i -H $1 -d'
764 # If the value was cached, stop now. We just wanted to have am__tar
766 test -n "${am_cv_prog_tar_$1}" && break
768 # tar/untar a dummy directory, and stop if the command works
771 echo GrepMe > conftest.dir/file
772 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
774 if test -s conftest.tar; then
775 AM_RUN_LOG([$am__untar <conftest.tar])
776 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
781 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
782 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
784 AC_SUBST([am__untar])
787 m4_include([../config/lead-dot.m4])
788 m4_include([../config/no-executables.m4])
789 m4_include([../libtool.m4])
790 m4_include([crossconfig.m4])
791 m4_include([linkage.m4])
792 m4_include([acinclude.m4])