1 # generated automatically by aclocal 1.9.2 -*- 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., 59 Temple Place - Suite 330, 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.2])])
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., 59 Temple Place - Suite 330, 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., 59 Temple Place - Suite 330, 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., 59 Temple Place - Suite 330, 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., 59 Temple Place - Suite 330, 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)])
304 # Copyright (C) 2003 Free Software Foundation, Inc.
306 # This program is free software; you can redistribute it and/or modify
307 # it under the terms of the GNU General Public License as published by
308 # the Free Software Foundation; either version 2, or (at your option)
311 # This program is distributed in the hope that it will be useful,
312 # but WITHOUT ANY WARRANTY; without even the implied warranty of
313 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
314 # GNU General Public License for more details.
316 # You should have received a copy of the GNU General Public License
317 # along with this program; if not, write to the Free Software
318 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
323 # Check whether the underlying file-system supports filenames
324 # with a leading dot. For instance MS-DOS doesn't.
325 AC_DEFUN([AM_SET_LEADING_DOT],
326 [rm -rf .tst 2>/dev/null
327 mkdir .tst 2>/dev/null
328 if test -d .tst; then
333 rmdir .tst 2>/dev/null
334 AC_SUBST([am__leading_dot])])
336 # Add --enable-maintainer-mode option to configure.
339 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
340 # Free Software Foundation, Inc.
342 # This program is free software; you can redistribute it and/or modify
343 # it under the terms of the GNU General Public License as published by
344 # the Free Software Foundation; either version 2, or (at your option)
347 # This program is distributed in the hope that it will be useful,
348 # but WITHOUT ANY WARRANTY; without even the implied warranty of
349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
350 # GNU General Public License for more details.
352 # You should have received a copy of the GNU General Public License
353 # along with this program; if not, write to the Free Software
354 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
359 AC_DEFUN([AM_MAINTAINER_MODE],
360 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
361 dnl maintainer-mode is disabled by default
362 AC_ARG_ENABLE(maintainer-mode,
363 [ --enable-maintainer-mode enable make rules and dependencies not useful
364 (and sometimes confusing) to the casual installer],
365 USE_MAINTAINER_MODE=$enableval,
366 USE_MAINTAINER_MODE=no)
367 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
368 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
369 MAINT=$MAINTAINER_MODE_TRUE
374 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
379 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
381 # This program is free software; you can redistribute it and/or modify
382 # it under the terms of the GNU General Public License as published by
383 # the Free Software Foundation; either version 2, or (at your option)
386 # This program is distributed in the hope that it will be useful,
387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
389 # GNU General Public License for more details.
391 # You should have received a copy of the GNU General Public License
392 # along with this program; if not, write to the Free Software
393 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
398 # AM_MISSING_PROG(NAME, PROGRAM)
399 # ------------------------------
400 AC_DEFUN([AM_MISSING_PROG],
401 [AC_REQUIRE([AM_MISSING_HAS_RUN])
402 $1=${$1-"${am_missing_run}$2"}
408 # Define MISSING if not defined so far and test if it supports --run.
409 # If it does, set am_missing_run to use it, otherwise, to nothing.
410 AC_DEFUN([AM_MISSING_HAS_RUN],
411 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
413 # Use eval to expand $SHELL
414 if eval "$MISSING --run true"; then
415 am_missing_run="$MISSING --run "
418 AC_MSG_WARN([`missing' script is too old or missing])
424 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
426 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
428 # This program is free software; you can redistribute it and/or modify
429 # it under the terms of the GNU General Public License as published by
430 # the Free Software Foundation; either version 2, or (at your option)
433 # This program is distributed in the hope that it will be useful,
434 # but WITHOUT ANY WARRANTY; without even the implied warranty of
435 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
436 # GNU General Public License for more details.
438 # You should have received a copy of the GNU General Public License
439 # along with this program; if not, write to the Free Software
440 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
443 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
444 # created by `make install' are always world readable, even if the
445 # installer happens to have an overly restrictive umask (e.g. 077).
446 # This was a mistake. There are at least two reasons why we must not
448 # - it causes special bits like SGID to be ignored,
449 # - it may be too restrictive (some setups expect 775 directories).
451 # Do not use -m 0755 and let people choose whatever they expect by
454 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
455 # Some implementations (such as Solaris 8's) are not thread-safe: if a
456 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
457 # concurrently, both version can detect that a/ is missing, but only
458 # one can create it and the other will error out. Consequently we
459 # restrict ourselves to GNU make (using the --version option ensures
461 AC_DEFUN([AM_PROG_MKDIR_P],
462 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
463 # We used to keeping the `.' as first argument, in order to
464 # allow $(mkdir_p) to be used without argument. As in
465 # $(mkdir_p) $(somedir)
466 # where $(somedir) is conditionally defined. However this is wrong
468 # 1. if the package is installed by a user who cannot write `.'
469 # make install will fail,
470 # 2. the above comment should most certainly read
471 # $(mkdir_p) $(DESTDIR)$(somedir)
472 # so it does not work when $(somedir) is undefined and
474 # To support the latter case, we have to write
475 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
476 # so the `.' trick is pointless.
477 mkdir_p='mkdir -p --'
479 # On NextStep and OpenStep, the `mkdir' command does not
480 # recognize any option. It will interpret all options as
481 # directories to create, and then abort because `.' already
483 for d in ./-p ./--version;
485 test -d $d && rmdir $d
487 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
488 if test -f "$ac_aux_dir/mkinstalldirs"; then
489 mkdir_p='$(mkinstalldirs)'
491 mkdir_p='$(install_sh) -d'
494 AC_SUBST([mkdir_p])])
496 # Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004
497 # Free Software Foundation, Inc.
499 # This program is free software; you can redistribute it and/or modify
500 # it under the terms of the GNU General Public License as published by
501 # the Free Software Foundation; either version 2, or (at your option)
504 # This program is distributed in the hope that it will be useful,
505 # but WITHOUT ANY WARRANTY; without even the implied warranty of
506 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
507 # GNU General Public License for more details.
509 # You should have received a copy of the GNU General Public License
510 # along with this program; if not, write to the Free Software
511 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
516 # AM_ENABLE_MULTILIB([MAKEFILE], [REL-TO-TOP-SRCDIR])
517 # ---------------------------------------------------
518 # Add --enable-multilib to configure.
519 AC_DEFUN([AM_ENABLE_MULTILIB],
520 [# Default to --enable-multilib
521 AC_ARG_ENABLE(multilib,
522 [ --enable-multilib build many library versions (default)],
523 [case "$enableval" in
526 *) AC_MSG_ERROR([bad value $enableval for multilib option]) ;;
530 # We may get other options which we leave undocumented:
531 # --with-target-subdir, --with-multisrctop, --with-multisubdir
532 # See config-ml.in if you want the gory details.
534 if test "$srcdir" = "."; then
535 if test "$with_target_subdir" != "."; then
536 multi_basedir="$srcdir/$with_multisrctop../$2"
538 multi_basedir="$srcdir/$with_multisrctop$2"
541 multi_basedir="$srcdir/$2"
543 AC_SUBST(multi_basedir)
546 # Only add multilib support code if we just rebuilt the top-level
548 case " $CONFIG_FILES " in
549 *" ]m4_default([$1],Makefile)[ "*)
550 ac_file=]m4_default([$1],Makefile)[ . ${multi_basedir}/config-ml.in
557 with_multisubdir="$with_multisubdir"
558 with_multisrctop="$with_multisrctop"
559 with_target_subdir="$with_target_subdir"
560 ac_configure_args="${multilib_arg} ${ac_configure_args}"
561 multi_basedir="$multi_basedir"
562 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
565 # Helper functions for option handling. -*- Autoconf -*-
567 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
569 # This program is free software; you can redistribute it and/or modify
570 # it under the terms of the GNU General Public License as published by
571 # the Free Software Foundation; either version 2, or (at your option)
574 # This program is distributed in the hope that it will be useful,
575 # but WITHOUT ANY WARRANTY; without even the implied warranty of
576 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
577 # GNU General Public License for more details.
579 # You should have received a copy of the GNU General Public License
580 # along with this program; if not, write to the Free Software
581 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
586 # _AM_MANGLE_OPTION(NAME)
587 # -----------------------
588 AC_DEFUN([_AM_MANGLE_OPTION],
589 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
591 # _AM_SET_OPTION(NAME)
592 # ------------------------------
593 # Set option NAME. Presently that only means defining a flag for this option.
594 AC_DEFUN([_AM_SET_OPTION],
595 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
597 # _AM_SET_OPTIONS(OPTIONS)
598 # ----------------------------------
599 # OPTIONS is a space-separated list of Automake options.
600 AC_DEFUN([_AM_SET_OPTIONS],
601 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
603 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
604 # -------------------------------------------
605 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
606 AC_DEFUN([_AM_IF_OPTION],
607 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
610 # Check to make sure that the build environment is sane.
613 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
615 # This program is free software; you can redistribute it and/or modify
616 # it under the terms of the GNU General Public License as published by
617 # the Free Software Foundation; either version 2, or (at your option)
620 # This program is distributed in the hope that it will be useful,
621 # but WITHOUT ANY WARRANTY; without even the implied warranty of
622 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
623 # GNU General Public License for more details.
625 # You should have received a copy of the GNU General Public License
626 # along with this program; if not, write to the Free Software
627 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
634 AC_DEFUN([AM_SANITY_CHECK],
635 [AC_MSG_CHECKING([whether build environment is sane])
638 echo timestamp > conftest.file
639 # Do `set' in a subshell so we don't clobber the current shell's
640 # arguments. Must try -L first in case configure is actually a
641 # symlink; some systems play weird games with the mod time of symlinks
642 # (eg FreeBSD returns the mod time of the symlink's containing
645 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
646 if test "$[*]" = "X"; then
648 set X `ls -t $srcdir/configure conftest.file`
651 if test "$[*]" != "X $srcdir/configure conftest.file" \
652 && test "$[*]" != "X conftest.file $srcdir/configure"; then
654 # If neither matched, then we have a broken ls. This can happen
655 # if, for instance, CONFIG_SHELL is bash and it inherits a
656 # broken ls alias from the environment. This has actually
657 # happened. Such a system could not be considered "sane".
658 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
659 alias in your environment])
662 test "$[2]" = conftest.file
668 AC_MSG_ERROR([newly created file is older than distributed files!
669 Check your system clock])
673 # AM_PROG_INSTALL_STRIP
675 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
677 # This program is free software; you can redistribute it and/or modify
678 # it under the terms of the GNU General Public License as published by
679 # the Free Software Foundation; either version 2, or (at your option)
682 # This program is distributed in the hope that it will be useful,
683 # but WITHOUT ANY WARRANTY; without even the implied warranty of
684 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
685 # GNU General Public License for more details.
687 # You should have received a copy of the GNU General Public License
688 # along with this program; if not, write to the Free Software
689 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
692 # One issue with vendor `install' (even GNU) is that you can't
693 # specify the program used to strip binaries. This is especially
694 # annoying in cross-compiling environments, where the build's strip
695 # is unlikely to handle the host's binaries.
696 # Fortunately install-sh will honor a STRIPPROG variable, so we
697 # always use install-sh in `make install-strip', and initialize
698 # STRIPPROG with the value of the STRIP variable (set by the user).
699 AC_DEFUN([AM_PROG_INSTALL_STRIP],
700 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
701 # Installed binaries are usually stripped using `strip' when the user
702 # run `make install-strip'. However `strip' might not be the right
703 # tool to use in cross-compilation environments, therefore Automake
704 # will honor the `STRIP' environment variable to overrule this program.
705 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
706 if test "$cross_compiling" != no; then
707 AC_CHECK_TOOL([STRIP], [strip], :)
709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
710 AC_SUBST([INSTALL_STRIP_PROGRAM])])
712 # Check how to create a tarball. -*- Autoconf -*-
714 # Copyright (C) 2004 Free Software Foundation, Inc.
716 # This program is free software; you can redistribute it and/or modify
717 # it under the terms of the GNU General Public License as published by
718 # the Free Software Foundation; either version 2, or (at your option)
721 # This program is distributed in the hope that it will be useful,
722 # but WITHOUT ANY WARRANTY; without even the implied warranty of
723 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
724 # GNU General Public License for more details.
726 # You should have received a copy of the GNU General Public License
727 # along with this program; if not, write to the Free Software
728 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
734 # _AM_PROG_TAR(FORMAT)
735 # --------------------
736 # Check how to create a tarball in format FORMAT.
737 # FORMAT should be one of `v7', `ustar', or `pax'.
739 # Substitute a variable $(am__tar) that is a command
740 # writing to stdout a FORMAT-tarball containing the directory
742 # tardir=directory && $(am__tar) > result.tar
744 # Substitute a variable $(am__untar) that extract such
745 # a tarball read from stdin.
746 # $(am__untar) < result.tar
747 AC_DEFUN([_AM_PROG_TAR],
748 [# Always define AMTAR for backward compatibility.
749 AM_MISSING_PROG([AMTAR], [tar])
751 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
752 [m4_case([$1], [ustar],, [pax],,
753 [m4_fatal([Unknown tar format])])
754 AC_MSG_CHECKING([how to create a $1 tar archive])
755 # Loop over all known methods to create a tar archive until one works.
756 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
757 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
758 # Do not fold the above two line into one, because Tru64 sh and
759 # Solaris sh will not grok spaces in the rhs of `-'.
760 for _am_tool in $_am_tools
764 for _am_tar in tar gnutar gtar;
766 AM_RUN_LOG([$_am_tar --version]) && break
768 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
769 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
770 am__untar="$_am_tar -xf -"
773 # Must skip GNU tar: if it does not support --format= it doesn't create
774 # ustar tarball either.
775 (tar --version) >/dev/null 2>&1 && continue
776 am__tar='tar chf - "$$tardir"'
777 am__tar_='tar chf - "$tardir"'
781 am__tar='pax -L -x $1 -w "$$tardir"'
782 am__tar_='pax -L -x $1 -w "$tardir"'
786 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
787 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
788 am__untar='cpio -i -H $1 -d'
797 # If the value was cached, stop now. We just wanted to have am__tar
799 test -n "${am_cv_prog_tar_$1}" && break
801 # tar/untar a dummy directory, and stop if the command works
804 echo GrepMe > conftest.dir/file
805 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
807 if test -s conftest.tar; then
808 AM_RUN_LOG([$am__untar <conftest.tar])
809 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
814 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
815 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
817 AC_SUBST([am__untar])
820 m4_include([acinclude.m4])