1 # generated automatically by aclocal 1.7 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
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
14 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
16 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
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
37 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
38 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
40 # Do all the work for Automake. -*- Autoconf -*-
42 # This macro actually does too much some checks are only needed if
43 # your package does certain things. But this isn't really a big deal.
45 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
46 # Free Software Foundation, Inc.
48 # This program is free software; you can redistribute it and/or modify
49 # it under the terms of the GNU General Public License as published by
50 # the Free Software Foundation; either version 2, or (at your option)
53 # This program is distributed in the hope that it will be useful,
54 # but WITHOUT ANY WARRANTY; without even the implied warranty of
55 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56 # GNU General Public License for more details.
58 # You should have received a copy of the GNU General Public License
59 # along with this program; if not, write to the Free Software
60 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
65 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
66 # written in clear, in which case automake, when reading aclocal.m4,
67 # will think it sees a *use*, and therefore will trigger all it's
68 # C support machinery. Also note that it means that autoscan, seeing
69 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
74 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
75 # the ones we care about.
76 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
78 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
79 # AM_INIT_AUTOMAKE([OPTIONS])
80 # -----------------------------------------------
81 # The call with PACKAGE and VERSION arguments is the old style
82 # call (pre autoconf-2.50), which is being phased out. PACKAGE
83 # and VERSION should now be passed to AC_INIT and removed from
84 # the call to AM_INIT_AUTOMAKE.
85 # We support both call styles for the transition. After
86 # the next Automake release, Autoconf can make the AC_INIT
87 # arguments mandatory, and then we can depend on a new Autoconf
88 # release and drop the old call support.
89 AC_DEFUN([AM_INIT_AUTOMAKE],
90 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
91 AC_REQUIRE([AC_PROG_INSTALL])dnl
92 # test to see if srcdir already configured
93 if test "`cd $srcdir && pwd`" != "`pwd`" &&
94 test -f $srcdir/config.status; then
95 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
98 # test whether we have cygpath
99 if test -z "$CYGPATH_W"; then
100 if (cygpath --version) >/dev/null 2>/dev/null; then
101 CYGPATH_W='cygpath -w'
106 AC_SUBST([CYGPATH_W])
108 # Define the identity of the package.
109 dnl Distinguish between old-style and new-style calls.
111 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
112 AC_SUBST([PACKAGE], [$1])dnl
113 AC_SUBST([VERSION], [$2])],
114 [_AM_SET_OPTIONS([$1])dnl
115 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
116 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
118 _AM_IF_OPTION([no-define],,
119 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
120 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
122 # Some tools Automake needs.
123 AC_REQUIRE([AM_SANITY_CHECK])dnl
124 AC_REQUIRE([AC_ARG_PROGRAM])dnl
125 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
126 AM_MISSING_PROG(AUTOCONF, autoconf)
127 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
128 AM_MISSING_PROG(AUTOHEADER, autoheader)
129 AM_MISSING_PROG(MAKEINFO, makeinfo)
130 AM_MISSING_PROG(AMTAR, tar)
132 AM_PROG_INSTALL_STRIP
133 # We need awk for the "check" target. The system "awk" is bad on
135 AC_REQUIRE([AC_PROG_AWK])dnl
136 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
138 _AM_IF_OPTION([no-dependencies],,
139 [AC_PROVIDE_IFELSE([AC_PROG_CC],
140 [_AM_DEPENDENCIES(CC)],
141 [define([AC_PROG_CC],
142 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
143 AC_PROVIDE_IFELSE([AC_PROG_CXX],
144 [_AM_DEPENDENCIES(CXX)],
145 [define([AC_PROG_CXX],
146 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
151 # When config.status generates a header, we must update the stamp-h file.
152 # This file resides in the same directory as the config header
153 # that is generated. The stamp files are numbered to have different names.
155 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
156 # loop where config.status creates the headers, so we can generate
157 # our stamp files there.
158 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
159 [_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
160 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
162 # Copyright 2002 Free Software Foundation, Inc.
164 # This program is free software; you can redistribute it and/or modify
165 # it under the terms of the GNU General Public License as published by
166 # the Free Software Foundation; either version 2, or (at your option)
169 # This program is distributed in the hope that it will be useful,
170 # but WITHOUT ANY WARRANTY; without even the implied warranty of
171 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
172 # GNU General Public License for more details.
174 # You should have received a copy of the GNU General Public License
175 # along with this program; if not, write to the Free Software
176 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
178 # AM_AUTOMAKE_VERSION(VERSION)
179 # ----------------------------
180 # Automake X.Y traces this macro to ensure aclocal.m4 has been
181 # generated from the m4 files accompanying Automake X.Y.
182 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
184 # AM_SET_CURRENT_AUTOMAKE_VERSION
185 # -------------------------------
186 # Call AM_AUTOMAKE_VERSION so it can be traced.
187 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
188 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
189 [AM_AUTOMAKE_VERSION([1.7])])
191 # Helper functions for option handling. -*- Autoconf -*-
193 # Copyright 2001, 2002 Free Software Foundation, Inc.
195 # This program is free software; you can redistribute it and/or modify
196 # it under the terms of the GNU General Public License as published by
197 # the Free Software Foundation; either version 2, or (at your option)
200 # This program is distributed in the hope that it will be useful,
201 # but WITHOUT ANY WARRANTY; without even the implied warranty of
202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
203 # GNU General Public License for more details.
205 # You should have received a copy of the GNU General Public License
206 # along with this program; if not, write to the Free Software
207 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
212 # _AM_MANGLE_OPTION(NAME)
213 # -----------------------
214 AC_DEFUN([_AM_MANGLE_OPTION],
215 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
217 # _AM_SET_OPTION(NAME)
218 # ------------------------------
219 # Set option NAME. Presently that only means defining a flag for this option.
220 AC_DEFUN([_AM_SET_OPTION],
221 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
223 # _AM_SET_OPTIONS(OPTIONS)
224 # ----------------------------------
225 # OPTIONS is a space-separated list of Automake options.
226 AC_DEFUN([_AM_SET_OPTIONS],
227 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
229 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
230 # -------------------------------------------
231 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
232 AC_DEFUN([_AM_IF_OPTION],
233 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
236 # Check to make sure that the build environment is sane.
239 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
241 # This program is free software; you can redistribute it and/or modify
242 # it under the terms of the GNU General Public License as published by
243 # the Free Software Foundation; either version 2, or (at your option)
246 # This program is distributed in the hope that it will be useful,
247 # but WITHOUT ANY WARRANTY; without even the implied warranty of
248 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
249 # GNU General Public License for more details.
251 # You should have received a copy of the GNU General Public License
252 # along with this program; if not, write to the Free Software
253 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
260 AC_DEFUN([AM_SANITY_CHECK],
261 [AC_MSG_CHECKING([whether build environment is sane])
264 echo timestamp > conftest.file
265 # Do `set' in a subshell so we don't clobber the current shell's
266 # arguments. Must try -L first in case configure is actually a
267 # symlink; some systems play weird games with the mod time of symlinks
268 # (eg FreeBSD returns the mod time of the symlink's containing
271 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
272 if test "$[*]" = "X"; then
274 set X `ls -t $srcdir/configure conftest.file`
277 if test "$[*]" != "X $srcdir/configure conftest.file" \
278 && test "$[*]" != "X conftest.file $srcdir/configure"; then
280 # If neither matched, then we have a broken ls. This can happen
281 # if, for instance, CONFIG_SHELL is bash and it inherits a
282 # broken ls alias from the environment. This has actually
283 # happened. Such a system could not be considered "sane".
284 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
285 alias in your environment])
288 test "$[2]" = conftest.file
294 AC_MSG_ERROR([newly created file is older than distributed files!
295 Check your system clock])
302 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
304 # This program is free software; you can redistribute it and/or modify
305 # it under the terms of the GNU General Public License as published by
306 # the Free Software Foundation; either version 2, or (at your option)
309 # This program is distributed in the hope that it will be useful,
310 # but WITHOUT ANY WARRANTY; without even the implied warranty of
311 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
312 # GNU General Public License for more details.
314 # You should have received a copy of the GNU General Public License
315 # along with this program; if not, write to the Free Software
316 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
321 # AM_MISSING_PROG(NAME, PROGRAM)
322 # ------------------------------
323 AC_DEFUN([AM_MISSING_PROG],
324 [AC_REQUIRE([AM_MISSING_HAS_RUN])
325 $1=${$1-"${am_missing_run}$2"}
331 # Define MISSING if not defined so far and test if it supports --run.
332 # If it does, set am_missing_run to use it, otherwise, to nothing.
333 AC_DEFUN([AM_MISSING_HAS_RUN],
334 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
335 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
336 # Use eval to expand $SHELL
337 if eval "$MISSING --run true"; then
338 am_missing_run="$MISSING --run "
341 AC_MSG_WARN([`missing' script is too old or missing])
347 # Copyright 2001 Free Software Foundation, Inc.
349 # This program is free software; you can redistribute it and/or modify
350 # it under the terms of the GNU General Public License as published by
351 # the Free Software Foundation; either version 2, or (at your option)
354 # This program is distributed in the hope that it will be useful,
355 # but WITHOUT ANY WARRANTY; without even the implied warranty of
356 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
357 # GNU General Public License for more details.
359 # You should have received a copy of the GNU General Public License
360 # along with this program; if not, write to the Free Software
361 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
364 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
365 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
366 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
368 # Of course, Automake must honor this variable whenever it calls a
369 # tool from the auxiliary directory. The problem is that $srcdir (and
370 # therefore $ac_aux_dir as well) can be either absolute or relative,
371 # depending on how configure is run. This is pretty annoying, since
372 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
373 # source directory, any form will work fine, but in subdirectories a
374 # relative path needs to be adjusted first.
376 # $ac_aux_dir/missing
377 # fails when called from a subdirectory if $ac_aux_dir is relative
378 # $top_srcdir/$ac_aux_dir/missing
379 # fails if $ac_aux_dir is absolute,
380 # fails when called from a subdirectory in a VPATH build with
381 # a relative $ac_aux_dir
383 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
384 # are both prefixed by $srcdir. In an in-source build this is usually
385 # harmless because $srcdir is `.', but things will broke when you
386 # start a VPATH build or use an absolute $srcdir.
388 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
389 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
390 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
391 # and then we would define $MISSING as
392 # MISSING="\${SHELL} $am_aux_dir/missing"
393 # This will work as long as MISSING is not called from configure, because
394 # unfortunately $(top_srcdir) has no meaning in configure.
395 # However there are other variables, like CC, which are often used in
396 # configure, and could therefore not use this "fixed" $ac_aux_dir.
398 # Another solution, used here, is to always expand $ac_aux_dir to an
399 # absolute PATH. The drawback is that using absolute paths prevent a
400 # configured tree to be moved without reconfiguration.
402 # Rely on autoconf to set up CDPATH properly.
405 AC_DEFUN([AM_AUX_DIR_EXPAND], [
406 # expand $ac_aux_dir to an absolute path
407 am_aux_dir=`cd $ac_aux_dir && pwd`
412 # Define $install_sh.
414 # Copyright 2001 Free Software Foundation, Inc.
416 # This program is free software; you can redistribute it and/or modify
417 # it under the terms of the GNU General Public License as published by
418 # the Free Software Foundation; either version 2, or (at your option)
421 # This program is distributed in the hope that it will be useful,
422 # but WITHOUT ANY WARRANTY; without even the implied warranty of
423 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
424 # GNU General Public License for more details.
426 # You should have received a copy of the GNU General Public License
427 # along with this program; if not, write to the Free Software
428 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
431 AC_DEFUN([AM_PROG_INSTALL_SH],
432 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
433 install_sh=${install_sh-"$am_aux_dir/install-sh"}
434 AC_SUBST(install_sh)])
436 # AM_PROG_INSTALL_STRIP
438 # Copyright 2001 Free Software Foundation, Inc.
440 # This program is free software; you can redistribute it and/or modify
441 # it under the terms of the GNU General Public License as published by
442 # the Free Software Foundation; either version 2, or (at your option)
445 # This program is distributed in the hope that it will be useful,
446 # but WITHOUT ANY WARRANTY; without even the implied warranty of
447 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
448 # GNU General Public License for more details.
450 # You should have received a copy of the GNU General Public License
451 # along with this program; if not, write to the Free Software
452 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
455 # One issue with vendor `install' (even GNU) is that you can't
456 # specify the program used to strip binaries. This is especially
457 # annoying in cross-compiling environments, where the build's strip
458 # is unlikely to handle the host's binaries.
459 # Fortunately install-sh will honor a STRIPPROG variable, so we
460 # always use install-sh in `make install-strip', and initialize
461 # STRIPPROG with the value of the STRIP variable (set by the user).
462 AC_DEFUN([AM_PROG_INSTALL_STRIP],
463 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
464 # Installed binaries are usually stripped using `strip' when the user
465 # run `make install-strip'. However `strip' might not be the right
466 # tool to use in cross-compilation environments, therefore Automake
467 # will honor the `STRIP' environment variable to overrule this program.
468 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
469 if test "$cross_compiling" != no; then
470 AC_CHECK_TOOL([STRIP], [strip], :)
472 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
473 AC_SUBST([INSTALL_STRIP_PROGRAM])])
475 # serial 4 -*- Autoconf -*-
477 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
479 # This program is free software; you can redistribute it and/or modify
480 # it under the terms of the GNU General Public License as published by
481 # the Free Software Foundation; either version 2, or (at your option)
484 # This program is distributed in the hope that it will be useful,
485 # but WITHOUT ANY WARRANTY; without even the implied warranty of
486 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
487 # GNU General Public License for more details.
489 # You should have received a copy of the GNU General Public License
490 # along with this program; if not, write to the Free Software
491 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
495 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
496 # written in clear, in which case automake, when reading aclocal.m4,
497 # will think it sees a *use*, and therefore will trigger all it's
498 # C support machinery. Also note that it means that autoscan, seeing
499 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
503 # _AM_DEPENDENCIES(NAME)
504 # ----------------------
505 # See how the compiler implements dependency checking.
506 # NAME is "CC", "CXX", "GCJ", or "OBJC".
507 # We try a few techniques and use that to set a single cache variable.
509 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
510 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
511 # dependency, and given that the user is not expected to run this macro,
512 # just rely on AC_PROG_CC.
513 AC_DEFUN([_AM_DEPENDENCIES],
514 [AC_REQUIRE([AM_SET_DEPDIR])dnl
515 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
516 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
517 AC_REQUIRE([AM_DEP_TRACK])dnl
519 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
520 [$1], CXX, [depcc="$CXX" am_compiler_list=],
521 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
522 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
523 [depcc="$$1" am_compiler_list=])
525 AC_CACHE_CHECK([dependency style of $depcc],
526 [am_cv_$1_dependencies_compiler_type],
527 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
528 # We make a subdir and do the tests there. Otherwise we can end up
529 # making bogus files that we don't know about and never remove. For
530 # instance it was reported that on HP-UX the gcc test will end up
531 # making a dummy file named `D' -- because `-MD' means `put the output
534 # Copy depcomp to subdir because otherwise we won't find it if we're
535 # using a relative directory.
536 cp "$am_depcomp" conftest.dir
539 am_cv_$1_dependencies_compiler_type=none
540 if test "$am_compiler_list" = ""; then
541 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
543 for depmode in $am_compiler_list; do
544 # We need to recreate these files for each test, as the compiler may
545 # overwrite some of them when testing with obscure command lines.
546 # This happens at least with the AIX C compiler.
547 echo '#include "conftest.h"' > conftest.c
548 echo 'int i;' > conftest.h
549 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
553 # after this tag, mechanisms are not by side-effect, so they'll
554 # only be used when explicitly requested
555 if test "x$enable_dependency_tracking" = xyes; then
563 # We check with `-c' and `-o' for the sake of the "dashmstdout"
564 # mode. It turns out that the SunPro C++ compiler does not properly
565 # handle `-M -o', and we need to detect this.
566 if depmode=$depmode \
567 source=conftest.c object=conftest.o \
568 depfile=conftest.Po tmpdepfile=conftest.TPo \
569 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
570 grep conftest.h conftest.Po > /dev/null 2>&1 &&
571 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
572 am_cv_$1_dependencies_compiler_type=$depmode
580 am_cv_$1_dependencies_compiler_type=none
583 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
584 AM_CONDITIONAL([am__fastdep$1], [
585 test "x$enable_dependency_tracking" != xno \
586 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
592 # Choose a directory name for dependency files.
593 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
594 AC_DEFUN([AM_SET_DEPDIR],
595 [rm -f .deps 2>/dev/null
596 mkdir .deps 2>/dev/null
597 if test -d .deps; then
600 # MS-DOS does not allow filenames that begin with a dot.
603 rmdir .deps 2>/dev/null
610 AC_DEFUN([AM_DEP_TRACK],
611 [AC_ARG_ENABLE(dependency-tracking,
612 [ --disable-dependency-tracking Speeds up one-time builds
613 --enable-dependency-tracking Do not reject slow dependency extractors])
614 if test "x$enable_dependency_tracking" != xno; then
615 am_depcomp="$ac_aux_dir/depcomp"
618 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
619 AC_SUBST([AMDEPBACKSLASH])
622 # Generate code to set up dependency tracking. -*- Autoconf -*-
624 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
626 # This program is free software; you can redistribute it and/or modify
627 # it under the terms of the GNU General Public License as published by
628 # the Free Software Foundation; either version 2, or (at your option)
631 # This program is distributed in the hope that it will be useful,
632 # but WITHOUT ANY WARRANTY; without even the implied warranty of
633 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
634 # GNU General Public License for more details.
636 # You should have received a copy of the GNU General Public License
637 # along with this program; if not, write to the Free Software
638 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
643 # _AM_OUTPUT_DEPENDENCY_COMMANDS
644 # ------------------------------
645 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
646 [for mf in $CONFIG_FILES; do
647 # Strip MF so we end up with the name of the file.
648 mf=`echo "$mf" | sed -e 's/:.*$//'`
649 # Check whether this is an Automake generated Makefile or not.
650 # We used to match only the files named `Makefile.in', but
651 # some people rename them; so instead we look at the file content.
652 # Grep'ing the first line is not enough: some people post-process
653 # each Makefile.in and add a new line on top of each file to say so.
654 # So let's grep whole file.
655 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
656 dirpart=`AS_DIRNAME("$mf")`
660 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
661 # Extract the definition of DEP_FILES from the Makefile without
663 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
664 test -z "$DEPDIR" && continue
665 # When using ansi2knr, U may be empty or an underscore; expand it
666 U=`sed -n -e '/^U = / s///p' < "$mf"`
667 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
668 # We invoke sed twice because it is the simplest approach to
669 # changing $(DEPDIR) to its actual value in the expansion.
670 for file in `sed -n -e '
671 /^DEP_FILES = .*\\\\$/ {
680 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
681 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
682 # Make sure the directory exists.
683 test -f "$dirpart/$file" && continue
684 fdir=`AS_DIRNAME(["$file"])`
685 AS_MKDIR_P([$dirpart/$fdir])
686 # echo "creating $dirpart/$file"
687 echo '# dummy' > "$dirpart/$file"
690 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
693 # AM_OUTPUT_DEPENDENCY_COMMANDS
694 # -----------------------------
695 # This macro should only be invoked once -- use via AC_REQUIRE.
697 # This code is only required when automatic dependency tracking
698 # is enabled. FIXME. This creates each `.P' file that we will
699 # need in order to bootstrap the dependency handling code.
700 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
701 [AC_CONFIG_COMMANDS([depfiles],
702 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
703 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
706 # Check to see how 'make' treats includes. -*- Autoconf -*-
708 # Copyright (C) 2001, 2002 Free Software Foundation, Inc.
710 # This program is free software; you can redistribute it and/or modify
711 # it under the terms of the GNU General Public License as published by
712 # the Free Software Foundation; either version 2, or (at your option)
715 # This program is distributed in the hope that it will be useful,
716 # but WITHOUT ANY WARRANTY; without even the implied warranty of
717 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
718 # GNU General Public License for more details.
720 # You should have received a copy of the GNU General Public License
721 # along with this program; if not, write to the Free Software
722 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
729 # Check to see how make treats includes.
730 AC_DEFUN([AM_MAKE_INCLUDE],
731 [am_make=${MAKE-make}
732 cat > confinc << 'END'
736 # If we don't find an include directive, just comment out the code.
737 AC_MSG_CHECKING([for style of include used by $am_make])
741 # First try GNU make style include.
742 echo "include confinc" > confmf
743 # We grep out `Entering directory' and `Leaving directory'
744 # messages which can occur if `w' ends up in MAKEFLAGS.
745 # In particular we don't look at `^make:' because GNU make might
746 # be invoked under some other name (usually "gmake"), in which
747 # case it prints its new name instead of `make'.
748 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
753 # Now try BSD make style include.
754 if test "$am__include" = "#"; then
755 echo '.include "confinc"' > confmf
756 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
762 AC_SUBST(am__include)
764 AC_MSG_RESULT($_am_result)
768 # AM_CONDITIONAL -*- Autoconf -*-
770 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
772 # This program is free software; you can redistribute it and/or modify
773 # it under the terms of the GNU General Public License as published by
774 # the Free Software Foundation; either version 2, or (at your option)
777 # This program is distributed in the hope that it will be useful,
778 # but WITHOUT ANY WARRANTY; without even the implied warranty of
779 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
780 # GNU General Public License for more details.
782 # You should have received a copy of the GNU General Public License
783 # along with this program; if not, write to the Free Software
784 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
791 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
792 # -------------------------------------
793 # Define a conditional.
794 AC_DEFUN([AM_CONDITIONAL],
795 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
796 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
806 AC_CONFIG_COMMANDS_PRE(
807 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
808 AC_MSG_ERROR([conditional "$1" was never defined.
809 Usually this means the macro was only invoked conditionally.])