1 # generated automatically by aclocal 1.7.9 -*- 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 sinclude(../config/no-executables.m4)
15 sinclude(../libtool.m4)
16 dnl The lines below arrange for aclocal not to bring libtool.m4
17 dnl AM_PROG_LIBTOOL into aclocal.m4, while still arranging for automake
18 dnl to add a definition of LIBTOOL to Makefile.in.
20 AC_DEFUN([AM_PROG_LIBTOOL],)
24 # Do all the work for Automake. -*- Autoconf -*-
26 # This macro actually does too much some checks are only needed if
27 # your package does certain things. But this isn't really a big deal.
29 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
30 # Free Software Foundation, Inc.
32 # This program is free software; you can redistribute it and/or modify
33 # it under the terms of the GNU General Public License as published by
34 # the Free Software Foundation; either version 2, or (at your option)
37 # This program is distributed in the hope that it will be useful,
38 # but WITHOUT ANY WARRANTY; without even the implied warranty of
39 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40 # GNU General Public License for more details.
42 # You should have received a copy of the GNU General Public License
43 # along with this program; if not, write to the Free Software
44 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
51 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
52 # the ones we care about.
53 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
55 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
56 # AM_INIT_AUTOMAKE([OPTIONS])
57 # -----------------------------------------------
58 # The call with PACKAGE and VERSION arguments is the old style
59 # call (pre autoconf-2.50), which is being phased out. PACKAGE
60 # and VERSION should now be passed to AC_INIT and removed from
61 # the call to AM_INIT_AUTOMAKE.
62 # We support both call styles for the transition. After
63 # the next Automake release, Autoconf can make the AC_INIT
64 # arguments mandatory, and then we can depend on a new Autoconf
65 # release and drop the old call support.
66 AC_DEFUN([AM_INIT_AUTOMAKE],
67 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
68 AC_REQUIRE([AC_PROG_INSTALL])dnl
69 # test to see if srcdir already configured
70 if test "`cd $srcdir && pwd`" != "`pwd`" &&
71 test -f $srcdir/config.status; then
72 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
75 # test whether we have cygpath
76 if test -z "$CYGPATH_W"; then
77 if (cygpath --version) >/dev/null 2>/dev/null; then
78 CYGPATH_W='cygpath -w'
85 # Define the identity of the package.
86 dnl Distinguish between old-style and new-style calls.
88 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
89 AC_SUBST([PACKAGE], [$1])dnl
90 AC_SUBST([VERSION], [$2])],
91 [_AM_SET_OPTIONS([$1])dnl
92 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
93 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
95 _AM_IF_OPTION([no-define],,
96 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
97 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
99 # Some tools Automake needs.
100 AC_REQUIRE([AM_SANITY_CHECK])dnl
101 AC_REQUIRE([AC_ARG_PROGRAM])dnl
102 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
103 AM_MISSING_PROG(AUTOCONF, autoconf)
104 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
105 AM_MISSING_PROG(AUTOHEADER, autoheader)
106 AM_MISSING_PROG(MAKEINFO, makeinfo)
107 AM_MISSING_PROG(AMTAR, tar)
109 AM_PROG_INSTALL_STRIP
110 # We need awk for the "check" target. The system "awk" is bad on
112 AC_REQUIRE([AC_PROG_AWK])dnl
113 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
114 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
116 _AM_IF_OPTION([no-dependencies],,
117 [AC_PROVIDE_IFELSE([AC_PROG_CC],
118 [_AM_DEPENDENCIES(CC)],
119 [define([AC_PROG_CC],
120 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
121 AC_PROVIDE_IFELSE([AC_PROG_CXX],
122 [_AM_DEPENDENCIES(CXX)],
123 [define([AC_PROG_CXX],
124 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
129 # When config.status generates a header, we must update the stamp-h file.
130 # This file resides in the same directory as the config header
131 # that is generated. The stamp files are numbered to have different names.
133 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
134 # loop where config.status creates the headers, so we can generate
135 # our stamp files there.
136 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
137 [# Compute $1's index in $config_headers.
139 for _am_header in $config_headers :; do
144 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
147 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
149 # Copyright 2002 Free Software Foundation, Inc.
151 # This program is free software; you can redistribute it and/or modify
152 # it under the terms of the GNU General Public License as published by
153 # the Free Software Foundation; either version 2, or (at your option)
156 # This program is distributed in the hope that it will be useful,
157 # but WITHOUT ANY WARRANTY; without even the implied warranty of
158 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
159 # GNU General Public License for more details.
161 # You should have received a copy of the GNU General Public License
162 # along with this program; if not, write to the Free Software
163 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
165 # AM_AUTOMAKE_VERSION(VERSION)
166 # ----------------------------
167 # Automake X.Y traces this macro to ensure aclocal.m4 has been
168 # generated from the m4 files accompanying Automake X.Y.
169 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
171 # AM_SET_CURRENT_AUTOMAKE_VERSION
172 # -------------------------------
173 # Call AM_AUTOMAKE_VERSION so it can be traced.
174 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
175 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
176 [AM_AUTOMAKE_VERSION([1.7.9])])
178 # Helper functions for option handling. -*- Autoconf -*-
180 # Copyright 2001, 2002 Free Software Foundation, Inc.
182 # This program is free software; you can redistribute it and/or modify
183 # it under the terms of the GNU General Public License as published by
184 # the Free Software Foundation; either version 2, or (at your option)
187 # This program is distributed in the hope that it will be useful,
188 # but WITHOUT ANY WARRANTY; without even the implied warranty of
189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
190 # GNU General Public License for more details.
192 # You should have received a copy of the GNU General Public License
193 # along with this program; if not, write to the Free Software
194 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
199 # _AM_MANGLE_OPTION(NAME)
200 # -----------------------
201 AC_DEFUN([_AM_MANGLE_OPTION],
202 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
204 # _AM_SET_OPTION(NAME)
205 # ------------------------------
206 # Set option NAME. Presently that only means defining a flag for this option.
207 AC_DEFUN([_AM_SET_OPTION],
208 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
210 # _AM_SET_OPTIONS(OPTIONS)
211 # ----------------------------------
212 # OPTIONS is a space-separated list of Automake options.
213 AC_DEFUN([_AM_SET_OPTIONS],
214 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
216 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
217 # -------------------------------------------
218 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
219 AC_DEFUN([_AM_IF_OPTION],
220 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
223 # Check to make sure that the build environment is sane.
226 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
228 # This program is free software; you can redistribute it and/or modify
229 # it under the terms of the GNU General Public License as published by
230 # the Free Software Foundation; either version 2, or (at your option)
233 # This program is distributed in the hope that it will be useful,
234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
236 # GNU General Public License for more details.
238 # You should have received a copy of the GNU General Public License
239 # along with this program; if not, write to the Free Software
240 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
247 AC_DEFUN([AM_SANITY_CHECK],
248 [AC_MSG_CHECKING([whether build environment is sane])
251 echo timestamp > conftest.file
252 # Do `set' in a subshell so we don't clobber the current shell's
253 # arguments. Must try -L first in case configure is actually a
254 # symlink; some systems play weird games with the mod time of symlinks
255 # (eg FreeBSD returns the mod time of the symlink's containing
258 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
259 if test "$[*]" = "X"; then
261 set X `ls -t $srcdir/configure conftest.file`
264 if test "$[*]" != "X $srcdir/configure conftest.file" \
265 && test "$[*]" != "X conftest.file $srcdir/configure"; then
267 # If neither matched, then we have a broken ls. This can happen
268 # if, for instance, CONFIG_SHELL is bash and it inherits a
269 # broken ls alias from the environment. This has actually
270 # happened. Such a system could not be considered "sane".
271 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
272 alias in your environment])
275 test "$[2]" = conftest.file
281 AC_MSG_ERROR([newly created file is older than distributed files!
282 Check your system clock])
289 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
291 # This program is free software; you can redistribute it and/or modify
292 # it under the terms of the GNU General Public License as published by
293 # the Free Software Foundation; either version 2, or (at your option)
296 # This program is distributed in the hope that it will be useful,
297 # but WITHOUT ANY WARRANTY; without even the implied warranty of
298 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
299 # GNU General Public License for more details.
301 # You should have received a copy of the GNU General Public License
302 # along with this program; if not, write to the Free Software
303 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
308 # AM_MISSING_PROG(NAME, PROGRAM)
309 # ------------------------------
310 AC_DEFUN([AM_MISSING_PROG],
311 [AC_REQUIRE([AM_MISSING_HAS_RUN])
312 $1=${$1-"${am_missing_run}$2"}
318 # Define MISSING if not defined so far and test if it supports --run.
319 # If it does, set am_missing_run to use it, otherwise, to nothing.
320 AC_DEFUN([AM_MISSING_HAS_RUN],
321 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
322 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
323 # Use eval to expand $SHELL
324 if eval "$MISSING --run true"; then
325 am_missing_run="$MISSING --run "
328 AC_MSG_WARN([`missing' script is too old or missing])
334 # Copyright 2001 Free Software Foundation, Inc.
336 # This program is free software; you can redistribute it and/or modify
337 # it under the terms of the GNU General Public License as published by
338 # the Free Software Foundation; either version 2, or (at your option)
341 # This program is distributed in the hope that it will be useful,
342 # but WITHOUT ANY WARRANTY; without even the implied warranty of
343 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
344 # GNU General Public License for more details.
346 # You should have received a copy of the GNU General Public License
347 # along with this program; if not, write to the Free Software
348 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
351 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
352 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
353 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
355 # Of course, Automake must honor this variable whenever it calls a
356 # tool from the auxiliary directory. The problem is that $srcdir (and
357 # therefore $ac_aux_dir as well) can be either absolute or relative,
358 # depending on how configure is run. This is pretty annoying, since
359 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
360 # source directory, any form will work fine, but in subdirectories a
361 # relative path needs to be adjusted first.
363 # $ac_aux_dir/missing
364 # fails when called from a subdirectory if $ac_aux_dir is relative
365 # $top_srcdir/$ac_aux_dir/missing
366 # fails if $ac_aux_dir is absolute,
367 # fails when called from a subdirectory in a VPATH build with
368 # a relative $ac_aux_dir
370 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
371 # are both prefixed by $srcdir. In an in-source build this is usually
372 # harmless because $srcdir is `.', but things will broke when you
373 # start a VPATH build or use an absolute $srcdir.
375 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
376 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
377 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
378 # and then we would define $MISSING as
379 # MISSING="\${SHELL} $am_aux_dir/missing"
380 # This will work as long as MISSING is not called from configure, because
381 # unfortunately $(top_srcdir) has no meaning in configure.
382 # However there are other variables, like CC, which are often used in
383 # configure, and could therefore not use this "fixed" $ac_aux_dir.
385 # Another solution, used here, is to always expand $ac_aux_dir to an
386 # absolute PATH. The drawback is that using absolute paths prevent a
387 # configured tree to be moved without reconfiguration.
389 # Rely on autoconf to set up CDPATH properly.
392 AC_DEFUN([AM_AUX_DIR_EXPAND], [
393 # expand $ac_aux_dir to an absolute path
394 am_aux_dir=`cd $ac_aux_dir && pwd`
399 # Define $install_sh.
401 # Copyright 2001 Free Software Foundation, Inc.
403 # This program is free software; you can redistribute it and/or modify
404 # it under the terms of the GNU General Public License as published by
405 # the Free Software Foundation; either version 2, or (at your option)
408 # This program is distributed in the hope that it will be useful,
409 # but WITHOUT ANY WARRANTY; without even the implied warranty of
410 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
411 # GNU General Public License for more details.
413 # You should have received a copy of the GNU General Public License
414 # along with this program; if not, write to the Free Software
415 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
418 AC_DEFUN([AM_PROG_INSTALL_SH],
419 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
420 install_sh=${install_sh-"$am_aux_dir/install-sh"}
421 AC_SUBST(install_sh)])
423 # AM_PROG_INSTALL_STRIP
425 # Copyright 2001 Free Software Foundation, Inc.
427 # This program is free software; you can redistribute it and/or modify
428 # it under the terms of the GNU General Public License as published by
429 # the Free Software Foundation; either version 2, or (at your option)
432 # This program is distributed in the hope that it will be useful,
433 # but WITHOUT ANY WARRANTY; without even the implied warranty of
434 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
435 # GNU General Public License for more details.
437 # You should have received a copy of the GNU General Public License
438 # along with this program; if not, write to the Free Software
439 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
442 # One issue with vendor `install' (even GNU) is that you can't
443 # specify the program used to strip binaries. This is especially
444 # annoying in cross-compiling environments, where the build's strip
445 # is unlikely to handle the host's binaries.
446 # Fortunately install-sh will honor a STRIPPROG variable, so we
447 # always use install-sh in `make install-strip', and initialize
448 # STRIPPROG with the value of the STRIP variable (set by the user).
449 AC_DEFUN([AM_PROG_INSTALL_STRIP],
450 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
451 # Installed binaries are usually stripped using `strip' when the user
452 # run `make install-strip'. However `strip' might not be the right
453 # tool to use in cross-compilation environments, therefore Automake
454 # will honor the `STRIP' environment variable to overrule this program.
455 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
456 if test "$cross_compiling" != no; then
457 AC_CHECK_TOOL([STRIP], [strip], :)
459 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
460 AC_SUBST([INSTALL_STRIP_PROGRAM])])
463 # Copyright (C) 2003 Free Software Foundation, Inc.
465 # This program is free software; you can redistribute it and/or modify
466 # it under the terms of the GNU General Public License as published by
467 # the Free Software Foundation; either version 2, or (at your option)
470 # This program is distributed in the hope that it will be useful,
471 # but WITHOUT ANY WARRANTY; without even the implied warranty of
472 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
473 # GNU General Public License for more details.
475 # You should have received a copy of the GNU General Public License
476 # along with this program; if not, write to the Free Software
477 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
482 # Check whether the underlying file-system supports filenames
483 # with a leading dot. For instance MS-DOS doesn't.
484 AC_DEFUN([AM_SET_LEADING_DOT],
485 [rm -rf .tst 2>/dev/null
486 mkdir .tst 2>/dev/null
487 if test -d .tst; then
492 rmdir .tst 2>/dev/null
493 AC_SUBST([am__leading_dot])])
495 # serial 5 -*- Autoconf -*-
497 # Copyright (C) 1999, 2000, 2001, 2002, 2003 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
515 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
516 # written in clear, in which case automake, when reading aclocal.m4,
517 # will think it sees a *use*, and therefore will trigger all it's
518 # C support machinery. Also note that it means that autoscan, seeing
519 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
523 # _AM_DEPENDENCIES(NAME)
524 # ----------------------
525 # See how the compiler implements dependency checking.
526 # NAME is "CC", "CXX", "GCJ", or "OBJC".
527 # We try a few techniques and use that to set a single cache variable.
529 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
530 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
531 # dependency, and given that the user is not expected to run this macro,
532 # just rely on AC_PROG_CC.
533 AC_DEFUN([_AM_DEPENDENCIES],
534 [AC_REQUIRE([AM_SET_DEPDIR])dnl
535 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
536 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
537 AC_REQUIRE([AM_DEP_TRACK])dnl
539 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
540 [$1], CXX, [depcc="$CXX" am_compiler_list=],
541 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
542 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
543 [depcc="$$1" am_compiler_list=])
545 AC_CACHE_CHECK([dependency style of $depcc],
546 [am_cv_$1_dependencies_compiler_type],
547 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
548 # We make a subdir and do the tests there. Otherwise we can end up
549 # making bogus files that we don't know about and never remove. For
550 # instance it was reported that on HP-UX the gcc test will end up
551 # making a dummy file named `D' -- because `-MD' means `put the output
554 # Copy depcomp to subdir because otherwise we won't find it if we're
555 # using a relative directory.
556 cp "$am_depcomp" conftest.dir
558 # We will build objects and dependencies in a subdirectory because
559 # it helps to detect inapplicable dependency modes. For instance
560 # both Tru64's cc and ICC support -MD to output dependencies as a
561 # side effect of compilation, but ICC will put the dependencies in
562 # the current directory while Tru64 will put them in the object
566 am_cv_$1_dependencies_compiler_type=none
567 if test "$am_compiler_list" = ""; then
568 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
570 for depmode in $am_compiler_list; do
571 # Setup a source with many dependencies, because some compilers
572 # like to wrap large dependency lists on column 80 (with \), and
573 # we should not choose a depcomp mode which is confused by this.
575 # We need to recreate these files for each test, as the compiler may
576 # overwrite some of them when testing with obscure command lines.
577 # This happens at least with the AIX C compiler.
579 for i in 1 2 3 4 5 6; do
580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
587 # after this tag, mechanisms are not by side-effect, so they'll
588 # only be used when explicitly requested
589 if test "x$enable_dependency_tracking" = xyes; then
597 # We check with `-c' and `-o' for the sake of the "dashmstdout"
598 # mode. It turns out that the SunPro C++ compiler does not properly
599 # handle `-M -o', and we need to detect this.
600 if depmode=$depmode \
601 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
602 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
603 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
604 >/dev/null 2>conftest.err &&
605 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
606 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
607 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
608 # icc doesn't choke on unknown options, it will just issue warnings
609 # (even with -Werror). So we grep stderr for any message
610 # that says an option was ignored.
611 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
612 am_cv_$1_dependencies_compiler_type=$depmode
621 am_cv_$1_dependencies_compiler_type=none
624 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
625 AM_CONDITIONAL([am__fastdep$1], [
626 test "x$enable_dependency_tracking" != xno \
627 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
633 # Choose a directory name for dependency files.
634 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
635 AC_DEFUN([AM_SET_DEPDIR],
636 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
637 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
643 AC_DEFUN([AM_DEP_TRACK],
644 [AC_ARG_ENABLE(dependency-tracking,
645 [ --disable-dependency-tracking Speeds up one-time builds
646 --enable-dependency-tracking Do not reject slow dependency extractors])
647 if test "x$enable_dependency_tracking" != xno; then
648 am_depcomp="$ac_aux_dir/depcomp"
651 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
652 AC_SUBST([AMDEPBACKSLASH])
655 # Generate code to set up dependency tracking. -*- Autoconf -*-
657 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
659 # This program is free software; you can redistribute it and/or modify
660 # it under the terms of the GNU General Public License as published by
661 # the Free Software Foundation; either version 2, or (at your option)
664 # This program is distributed in the hope that it will be useful,
665 # but WITHOUT ANY WARRANTY; without even the implied warranty of
666 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
667 # GNU General Public License for more details.
669 # You should have received a copy of the GNU General Public License
670 # along with this program; if not, write to the Free Software
671 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
676 # _AM_OUTPUT_DEPENDENCY_COMMANDS
677 # ------------------------------
678 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
679 [for mf in $CONFIG_FILES; do
680 # Strip MF so we end up with the name of the file.
681 mf=`echo "$mf" | sed -e 's/:.*$//'`
682 # Check whether this is an Automake generated Makefile or not.
683 # We used to match only the files named `Makefile.in', but
684 # some people rename them; so instead we look at the file content.
685 # Grep'ing the first line is not enough: some people post-process
686 # each Makefile.in and add a new line on top of each file to say so.
687 # So let's grep whole file.
688 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
689 dirpart=`AS_DIRNAME("$mf")`
693 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
694 # Extract the definition of DEP_FILES from the Makefile without
696 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
697 test -z "$DEPDIR" && continue
698 # When using ansi2knr, U may be empty or an underscore; expand it
699 U=`sed -n -e '/^U = / s///p' < "$mf"`
700 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
701 # We invoke sed twice because it is the simplest approach to
702 # changing $(DEPDIR) to its actual value in the expansion.
703 for file in `sed -n -e '
704 /^DEP_FILES = .*\\\\$/ {
713 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
714 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
715 # Make sure the directory exists.
716 test -f "$dirpart/$file" && continue
717 fdir=`AS_DIRNAME(["$file"])`
718 AS_MKDIR_P([$dirpart/$fdir])
719 # echo "creating $dirpart/$file"
720 echo '# dummy' > "$dirpart/$file"
723 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
726 # AM_OUTPUT_DEPENDENCY_COMMANDS
727 # -----------------------------
728 # This macro should only be invoked once -- use via AC_REQUIRE.
730 # This code is only required when automatic dependency tracking
731 # is enabled. FIXME. This creates each `.P' file that we will
732 # need in order to bootstrap the dependency handling code.
733 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
734 [AC_CONFIG_COMMANDS([depfiles],
735 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
736 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
739 # Check to see how 'make' treats includes. -*- Autoconf -*-
741 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
743 # This program is free software; you can redistribute it and/or modify
744 # it under the terms of the GNU General Public License as published by
745 # the Free Software Foundation; either version 2, or (at your option)
748 # This program is distributed in the hope that it will be useful,
749 # but WITHOUT ANY WARRANTY; without even the implied warranty of
750 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
751 # GNU General Public License for more details.
753 # You should have received a copy of the GNU General Public License
754 # along with this program; if not, write to the Free Software
755 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
762 # Check to see how make treats includes.
763 AC_DEFUN([AM_MAKE_INCLUDE],
764 [am_make=${MAKE-make}
765 cat > confinc << 'END'
770 # If we don't find an include directive, just comment out the code.
771 AC_MSG_CHECKING([for style of include used by $am_make])
775 # First try GNU make style include.
776 echo "include confinc" > confmf
777 # We grep out `Entering directory' and `Leaving directory'
778 # messages which can occur if `w' ends up in MAKEFLAGS.
779 # In particular we don't look at `^make:' because GNU make might
780 # be invoked under some other name (usually "gmake"), in which
781 # case it prints its new name instead of `make'.
782 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
787 # Now try BSD make style include.
788 if test "$am__include" = "#"; then
789 echo '.include "confinc"' > confmf
790 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
796 AC_SUBST([am__include])
797 AC_SUBST([am__quote])
798 AC_MSG_RESULT([$_am_result])
802 # AM_CONDITIONAL -*- Autoconf -*-
804 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
806 # This program is free software; you can redistribute it and/or modify
807 # it under the terms of the GNU General Public License as published by
808 # the Free Software Foundation; either version 2, or (at your option)
811 # This program is distributed in the hope that it will be useful,
812 # but WITHOUT ANY WARRANTY; without even the implied warranty of
813 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
814 # GNU General Public License for more details.
816 # You should have received a copy of the GNU General Public License
817 # along with this program; if not, write to the Free Software
818 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
825 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
826 # -------------------------------------
827 # Define a conditional.
828 AC_DEFUN([AM_CONDITIONAL],
829 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
830 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
840 AC_CONFIG_COMMANDS_PRE(
841 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
842 AC_MSG_ERROR([conditional "$1" was never defined.
843 Usually this means the macro was only invoked conditionally.])
846 # Add --enable-maintainer-mode option to configure.
849 # Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
851 # This program is free software; you can redistribute it and/or modify
852 # it under the terms of the GNU General Public License as published by
853 # the Free Software Foundation; either version 2, or (at your option)
856 # This program is distributed in the hope that it will be useful,
857 # but WITHOUT ANY WARRANTY; without even the implied warranty of
858 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
859 # GNU General Public License for more details.
861 # You should have received a copy of the GNU General Public License
862 # along with this program; if not, write to the Free Software
863 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
868 AC_DEFUN([AM_MAINTAINER_MODE],
869 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
870 dnl maintainer-mode is disabled by default
871 AC_ARG_ENABLE(maintainer-mode,
872 [ --enable-maintainer-mode enable make rules and dependencies not useful
873 (and sometimes confusing) to the casual installer],
874 USE_MAINTAINER_MODE=$enableval,
875 USE_MAINTAINER_MODE=no)
876 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
877 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
878 MAINT=$MAINTAINER_MODE_TRUE
883 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])