1 # generated automatically by aclocal 1.7.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 AC_DEFUN(hs_ULONG_CONST,
15 [ AH_TEMPLATE(ULONG_CONST, [How do we create unsigned long constants?])
17 [#define ACAT(a,b)a ## b
19 ], AC_DEFINE([ULONG_CONST(a)], [a ## UL]),
21 [#define RCAT(a,b)a/**/b
23 ], AC_DEFINE([ULONG_CONST(a)], [a/**/L]),
24 AC_MSG_ERROR([How do we create an unsigned long constant?])))])
25 dnl @synopsis AC_DEFINE_DIR(VARNAME, DIR [, DESCRIPTION])
27 dnl This macro defines (with AC_DEFINE) VARNAME to the expansion of the DIR
28 dnl variable, taking care of fixing up ${prefix} and such.
30 dnl Note that the 3 argument form is only supported with autoconf 2.13 and
31 dnl later (i.e. only where AC_DEFINE supports 3 arguments).
35 dnl AC_DEFINE_DIR(DATADIR, datadir)
36 dnl AC_DEFINE_DIR(PROG_PATH, bindir, [Location of installed binaries])
38 dnl @version $Id: acinclude.m4,v 1.3 2000/08/04 03:26:22 stenn Exp $
39 dnl @author Alexandre Oliva <oliva@lsd.ic.unicamp.br>
41 AC_DEFUN(AC_DEFINE_DIR, [
43 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
44 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
48 AC_DEFINE_UNQUOTED($1, "$ac_expanded"),
49 AC_DEFINE_UNQUOTED($1, "$ac_expanded", $3))
52 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
54 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
56 # This program is free software; you can redistribute it and/or modify
57 # it under the terms of the GNU General Public License as published by
58 # the Free Software Foundation; either version 2, or (at your option)
61 # This program is distributed in the hope that it will be useful,
62 # but WITHOUT ANY WARRANTY; without even the implied warranty of
63 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
64 # GNU General Public License for more details.
66 # You should have received a copy of the GNU General Public License
67 # along with this program; if not, write to the Free Software
68 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
75 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
76 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
78 # Do all the work for Automake. -*- Autoconf -*-
80 # This macro actually does too much some checks are only needed if
81 # your package does certain things. But this isn't really a big deal.
83 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
84 # Free Software Foundation, Inc.
86 # This program is free software; you can redistribute it and/or modify
87 # it under the terms of the GNU General Public License as published by
88 # the Free Software Foundation; either version 2, or (at your option)
91 # This program is distributed in the hope that it will be useful,
92 # but WITHOUT ANY WARRANTY; without even the implied warranty of
93 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
94 # GNU General Public License for more details.
96 # You should have received a copy of the GNU General Public License
97 # along with this program; if not, write to the Free Software
98 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
105 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
106 # the ones we care about.
107 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
109 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
110 # AM_INIT_AUTOMAKE([OPTIONS])
111 # -----------------------------------------------
112 # The call with PACKAGE and VERSION arguments is the old style
113 # call (pre autoconf-2.50), which is being phased out. PACKAGE
114 # and VERSION should now be passed to AC_INIT and removed from
115 # the call to AM_INIT_AUTOMAKE.
116 # We support both call styles for the transition. After
117 # the next Automake release, Autoconf can make the AC_INIT
118 # arguments mandatory, and then we can depend on a new Autoconf
119 # release and drop the old call support.
120 AC_DEFUN([AM_INIT_AUTOMAKE],
121 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
122 AC_REQUIRE([AC_PROG_INSTALL])dnl
123 # test to see if srcdir already configured
124 if test "`cd $srcdir && pwd`" != "`pwd`" &&
125 test -f $srcdir/config.status; then
126 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
129 # test whether we have cygpath
130 if test -z "$CYGPATH_W"; then
131 if (cygpath --version) >/dev/null 2>/dev/null; then
132 CYGPATH_W='cygpath -w'
137 AC_SUBST([CYGPATH_W])
139 # Define the identity of the package.
140 dnl Distinguish between old-style and new-style calls.
142 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
143 AC_SUBST([PACKAGE], [$1])dnl
144 AC_SUBST([VERSION], [$2])],
145 [_AM_SET_OPTIONS([$1])dnl
146 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
147 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
149 _AM_IF_OPTION([no-define],,
150 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
151 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
153 # Some tools Automake needs.
154 AC_REQUIRE([AM_SANITY_CHECK])dnl
155 AC_REQUIRE([AC_ARG_PROGRAM])dnl
156 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
157 AM_MISSING_PROG(AUTOCONF, autoconf)
158 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
159 AM_MISSING_PROG(AUTOHEADER, autoheader)
160 AM_MISSING_PROG(MAKEINFO, makeinfo)
161 AM_MISSING_PROG(AMTAR, tar)
163 AM_PROG_INSTALL_STRIP
164 # We need awk for the "check" target. The system "awk" is bad on
166 AC_REQUIRE([AC_PROG_AWK])dnl
167 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
168 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
170 _AM_IF_OPTION([no-dependencies],,
171 [AC_PROVIDE_IFELSE([AC_PROG_CC],
172 [_AM_DEPENDENCIES(CC)],
173 [define([AC_PROG_CC],
174 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
175 AC_PROVIDE_IFELSE([AC_PROG_CXX],
176 [_AM_DEPENDENCIES(CXX)],
177 [define([AC_PROG_CXX],
178 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
183 # When config.status generates a header, we must update the stamp-h file.
184 # This file resides in the same directory as the config header
185 # that is generated. The stamp files are numbered to have different names.
187 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
188 # loop where config.status creates the headers, so we can generate
189 # our stamp files there.
190 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
191 [# Compute $1's index in $config_headers.
193 for _am_header in $config_headers :; do
198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
201 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
203 # Copyright 2002 Free Software Foundation, Inc.
205 # This program is free software; you can redistribute it and/or modify
206 # it under the terms of the GNU General Public License as published by
207 # the Free Software Foundation; either version 2, or (at your option)
210 # This program is distributed in the hope that it will be useful,
211 # but WITHOUT ANY WARRANTY; without even the implied warranty of
212 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
213 # GNU General Public License for more details.
215 # You should have received a copy of the GNU General Public License
216 # along with this program; if not, write to the Free Software
217 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
219 # AM_AUTOMAKE_VERSION(VERSION)
220 # ----------------------------
221 # Automake X.Y traces this macro to ensure aclocal.m4 has been
222 # generated from the m4 files accompanying Automake X.Y.
223 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
225 # AM_SET_CURRENT_AUTOMAKE_VERSION
226 # -------------------------------
227 # Call AM_AUTOMAKE_VERSION so it can be traced.
228 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
229 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
230 [AM_AUTOMAKE_VERSION([1.7.7])])
232 # Helper functions for option handling. -*- Autoconf -*-
234 # Copyright 2001, 2002 Free Software Foundation, Inc.
236 # This program is free software; you can redistribute it and/or modify
237 # it under the terms of the GNU General Public License as published by
238 # the Free Software Foundation; either version 2, or (at your option)
241 # This program is distributed in the hope that it will be useful,
242 # but WITHOUT ANY WARRANTY; without even the implied warranty of
243 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
244 # GNU General Public License for more details.
246 # You should have received a copy of the GNU General Public License
247 # along with this program; if not, write to the Free Software
248 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
253 # _AM_MANGLE_OPTION(NAME)
254 # -----------------------
255 AC_DEFUN([_AM_MANGLE_OPTION],
256 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
258 # _AM_SET_OPTION(NAME)
259 # ------------------------------
260 # Set option NAME. Presently that only means defining a flag for this option.
261 AC_DEFUN([_AM_SET_OPTION],
262 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
264 # _AM_SET_OPTIONS(OPTIONS)
265 # ----------------------------------
266 # OPTIONS is a space-separated list of Automake options.
267 AC_DEFUN([_AM_SET_OPTIONS],
268 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
270 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
271 # -------------------------------------------
272 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
273 AC_DEFUN([_AM_IF_OPTION],
274 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
277 # Check to make sure that the build environment is sane.
280 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
282 # This program is free software; you can redistribute it and/or modify
283 # it under the terms of the GNU General Public License as published by
284 # the Free Software Foundation; either version 2, or (at your option)
287 # This program is distributed in the hope that it will be useful,
288 # but WITHOUT ANY WARRANTY; without even the implied warranty of
289 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
290 # GNU General Public License for more details.
292 # You should have received a copy of the GNU General Public License
293 # along with this program; if not, write to the Free Software
294 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
301 AC_DEFUN([AM_SANITY_CHECK],
302 [AC_MSG_CHECKING([whether build environment is sane])
305 echo timestamp > conftest.file
306 # Do `set' in a subshell so we don't clobber the current shell's
307 # arguments. Must try -L first in case configure is actually a
308 # symlink; some systems play weird games with the mod time of symlinks
309 # (eg FreeBSD returns the mod time of the symlink's containing
312 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
313 if test "$[*]" = "X"; then
315 set X `ls -t $srcdir/configure conftest.file`
318 if test "$[*]" != "X $srcdir/configure conftest.file" \
319 && test "$[*]" != "X conftest.file $srcdir/configure"; then
321 # If neither matched, then we have a broken ls. This can happen
322 # if, for instance, CONFIG_SHELL is bash and it inherits a
323 # broken ls alias from the environment. This has actually
324 # happened. Such a system could not be considered "sane".
325 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
326 alias in your environment])
329 test "$[2]" = conftest.file
335 AC_MSG_ERROR([newly created file is older than distributed files!
336 Check your system clock])
343 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
345 # This program is free software; you can redistribute it and/or modify
346 # it under the terms of the GNU General Public License as published by
347 # the Free Software Foundation; either version 2, or (at your option)
350 # This program is distributed in the hope that it will be useful,
351 # but WITHOUT ANY WARRANTY; without even the implied warranty of
352 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
353 # GNU General Public License for more details.
355 # You should have received a copy of the GNU General Public License
356 # along with this program; if not, write to the Free Software
357 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
362 # AM_MISSING_PROG(NAME, PROGRAM)
363 # ------------------------------
364 AC_DEFUN([AM_MISSING_PROG],
365 [AC_REQUIRE([AM_MISSING_HAS_RUN])
366 $1=${$1-"${am_missing_run}$2"}
372 # Define MISSING if not defined so far and test if it supports --run.
373 # If it does, set am_missing_run to use it, otherwise, to nothing.
374 AC_DEFUN([AM_MISSING_HAS_RUN],
375 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
376 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
377 # Use eval to expand $SHELL
378 if eval "$MISSING --run true"; then
379 am_missing_run="$MISSING --run "
382 AC_MSG_WARN([`missing' script is too old or missing])
388 # Copyright 2001 Free Software Foundation, Inc.
390 # This program is free software; you can redistribute it and/or modify
391 # it under the terms of the GNU General Public License as published by
392 # the Free Software Foundation; either version 2, or (at your option)
395 # This program is distributed in the hope that it will be useful,
396 # but WITHOUT ANY WARRANTY; without even the implied warranty of
397 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
398 # GNU General Public License for more details.
400 # You should have received a copy of the GNU General Public License
401 # along with this program; if not, write to the Free Software
402 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
405 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
406 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
407 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
409 # Of course, Automake must honor this variable whenever it calls a
410 # tool from the auxiliary directory. The problem is that $srcdir (and
411 # therefore $ac_aux_dir as well) can be either absolute or relative,
412 # depending on how configure is run. This is pretty annoying, since
413 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
414 # source directory, any form will work fine, but in subdirectories a
415 # relative path needs to be adjusted first.
417 # $ac_aux_dir/missing
418 # fails when called from a subdirectory if $ac_aux_dir is relative
419 # $top_srcdir/$ac_aux_dir/missing
420 # fails if $ac_aux_dir is absolute,
421 # fails when called from a subdirectory in a VPATH build with
422 # a relative $ac_aux_dir
424 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
425 # are both prefixed by $srcdir. In an in-source build this is usually
426 # harmless because $srcdir is `.', but things will broke when you
427 # start a VPATH build or use an absolute $srcdir.
429 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
430 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
431 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
432 # and then we would define $MISSING as
433 # MISSING="\${SHELL} $am_aux_dir/missing"
434 # This will work as long as MISSING is not called from configure, because
435 # unfortunately $(top_srcdir) has no meaning in configure.
436 # However there are other variables, like CC, which are often used in
437 # configure, and could therefore not use this "fixed" $ac_aux_dir.
439 # Another solution, used here, is to always expand $ac_aux_dir to an
440 # absolute PATH. The drawback is that using absolute paths prevent a
441 # configured tree to be moved without reconfiguration.
443 # Rely on autoconf to set up CDPATH properly.
446 AC_DEFUN([AM_AUX_DIR_EXPAND], [
447 # expand $ac_aux_dir to an absolute path
448 am_aux_dir=`cd $ac_aux_dir && pwd`
453 # Define $install_sh.
455 # Copyright 2001 Free Software Foundation, Inc.
457 # This program is free software; you can redistribute it and/or modify
458 # it under the terms of the GNU General Public License as published by
459 # the Free Software Foundation; either version 2, or (at your option)
462 # This program is distributed in the hope that it will be useful,
463 # but WITHOUT ANY WARRANTY; without even the implied warranty of
464 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
465 # GNU General Public License for more details.
467 # You should have received a copy of the GNU General Public License
468 # along with this program; if not, write to the Free Software
469 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
472 AC_DEFUN([AM_PROG_INSTALL_SH],
473 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
474 install_sh=${install_sh-"$am_aux_dir/install-sh"}
475 AC_SUBST(install_sh)])
477 # AM_PROG_INSTALL_STRIP
479 # Copyright 2001 Free Software Foundation, Inc.
481 # This program is free software; you can redistribute it and/or modify
482 # it under the terms of the GNU General Public License as published by
483 # the Free Software Foundation; either version 2, or (at your option)
486 # This program is distributed in the hope that it will be useful,
487 # but WITHOUT ANY WARRANTY; without even the implied warranty of
488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
489 # GNU General Public License for more details.
491 # You should have received a copy of the GNU General Public License
492 # along with this program; if not, write to the Free Software
493 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
496 # One issue with vendor `install' (even GNU) is that you can't
497 # specify the program used to strip binaries. This is especially
498 # annoying in cross-compiling environments, where the build's strip
499 # is unlikely to handle the host's binaries.
500 # Fortunately install-sh will honor a STRIPPROG variable, so we
501 # always use install-sh in `make install-strip', and initialize
502 # STRIPPROG with the value of the STRIP variable (set by the user).
503 AC_DEFUN([AM_PROG_INSTALL_STRIP],
504 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
505 # Installed binaries are usually stripped using `strip' when the user
506 # run `make install-strip'. However `strip' might not be the right
507 # tool to use in cross-compilation environments, therefore Automake
508 # will honor the `STRIP' environment variable to overrule this program.
509 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
510 if test "$cross_compiling" != no; then
511 AC_CHECK_TOOL([STRIP], [strip], :)
513 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
514 AC_SUBST([INSTALL_STRIP_PROGRAM])])
517 # Copyright (C) 2003 Free Software Foundation, Inc.
519 # This program is free software; you can redistribute it and/or modify
520 # it under the terms of the GNU General Public License as published by
521 # the Free Software Foundation; either version 2, or (at your option)
524 # This program is distributed in the hope that it will be useful,
525 # but WITHOUT ANY WARRANTY; without even the implied warranty of
526 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
527 # GNU General Public License for more details.
529 # You should have received a copy of the GNU General Public License
530 # along with this program; if not, write to the Free Software
531 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
536 # Check whether the underlying file-system supports filenames
537 # with a leading dot. For instance MS-DOS doesn't.
538 AC_DEFUN([AM_SET_LEADING_DOT],
539 [rm -rf .tst 2>/dev/null
540 mkdir .tst 2>/dev/null
541 if test -d .tst; then
546 rmdir .tst 2>/dev/null
547 AC_SUBST([am__leading_dot])])
549 # serial 5 -*- Autoconf -*-
551 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
553 # This program is free software; you can redistribute it and/or modify
554 # it under the terms of the GNU General Public License as published by
555 # the Free Software Foundation; either version 2, or (at your option)
558 # This program is distributed in the hope that it will be useful,
559 # but WITHOUT ANY WARRANTY; without even the implied warranty of
560 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
561 # GNU General Public License for more details.
563 # You should have received a copy of the GNU General Public License
564 # along with this program; if not, write to the Free Software
565 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
569 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
570 # written in clear, in which case automake, when reading aclocal.m4,
571 # will think it sees a *use*, and therefore will trigger all it's
572 # C support machinery. Also note that it means that autoscan, seeing
573 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
577 # _AM_DEPENDENCIES(NAME)
578 # ----------------------
579 # See how the compiler implements dependency checking.
580 # NAME is "CC", "CXX", "GCJ", or "OBJC".
581 # We try a few techniques and use that to set a single cache variable.
583 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
584 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
585 # dependency, and given that the user is not expected to run this macro,
586 # just rely on AC_PROG_CC.
587 AC_DEFUN([_AM_DEPENDENCIES],
588 [AC_REQUIRE([AM_SET_DEPDIR])dnl
589 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
590 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
591 AC_REQUIRE([AM_DEP_TRACK])dnl
593 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
594 [$1], CXX, [depcc="$CXX" am_compiler_list=],
595 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
596 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
597 [depcc="$$1" am_compiler_list=])
599 AC_CACHE_CHECK([dependency style of $depcc],
600 [am_cv_$1_dependencies_compiler_type],
601 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
602 # We make a subdir and do the tests there. Otherwise we can end up
603 # making bogus files that we don't know about and never remove. For
604 # instance it was reported that on HP-UX the gcc test will end up
605 # making a dummy file named `D' -- because `-MD' means `put the output
608 # Copy depcomp to subdir because otherwise we won't find it if we're
609 # using a relative directory.
610 cp "$am_depcomp" conftest.dir
612 # We will build objects and dependencies in a subdirectory because
613 # it helps to detect inapplicable dependency modes. For instance
614 # both Tru64's cc and ICC support -MD to output dependencies as a
615 # side effect of compilation, but ICC will put the dependencies in
616 # the current directory while Tru64 will put them in the object
620 am_cv_$1_dependencies_compiler_type=none
621 if test "$am_compiler_list" = ""; then
622 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
624 for depmode in $am_compiler_list; do
625 # Setup a source with many dependencies, because some compilers
626 # like to wrap large dependency lists on column 80 (with \), and
627 # we should not choose a depcomp mode which is confused by this.
629 # We need to recreate these files for each test, as the compiler may
630 # overwrite some of them when testing with obscure command lines.
631 # This happens at least with the AIX C compiler.
633 for i in 1 2 3 4 5 6; do
634 echo '#include "conftst'$i'.h"' >> sub/conftest.c
637 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
641 # after this tag, mechanisms are not by side-effect, so they'll
642 # only be used when explicitly requested
643 if test "x$enable_dependency_tracking" = xyes; then
651 # We check with `-c' and `-o' for the sake of the "dashmstdout"
652 # mode. It turns out that the SunPro C++ compiler does not properly
653 # handle `-M -o', and we need to detect this.
654 if depmode=$depmode \
655 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
656 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
657 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
658 >/dev/null 2>conftest.err &&
659 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
660 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
661 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
662 # icc doesn't choke on unknown options, it will just issue warnings
663 # (even with -Werror). So we grep stderr for any message
664 # that says an option was ignored.
665 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
666 am_cv_$1_dependencies_compiler_type=$depmode
675 am_cv_$1_dependencies_compiler_type=none
678 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
679 AM_CONDITIONAL([am__fastdep$1], [
680 test "x$enable_dependency_tracking" != xno \
681 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
687 # Choose a directory name for dependency files.
688 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
689 AC_DEFUN([AM_SET_DEPDIR],
690 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
691 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
697 AC_DEFUN([AM_DEP_TRACK],
698 [AC_ARG_ENABLE(dependency-tracking,
699 [ --disable-dependency-tracking Speeds up one-time builds
700 --enable-dependency-tracking Do not reject slow dependency extractors])
701 if test "x$enable_dependency_tracking" != xno; then
702 am_depcomp="$ac_aux_dir/depcomp"
705 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
706 AC_SUBST([AMDEPBACKSLASH])
709 # Generate code to set up dependency tracking. -*- Autoconf -*-
711 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
713 # This program is free software; you can redistribute it and/or modify
714 # it under the terms of the GNU General Public License as published by
715 # the Free Software Foundation; either version 2, or (at your option)
718 # This program is distributed in the hope that it will be useful,
719 # but WITHOUT ANY WARRANTY; without even the implied warranty of
720 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
721 # GNU General Public License for more details.
723 # You should have received a copy of the GNU General Public License
724 # along with this program; if not, write to the Free Software
725 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
730 # _AM_OUTPUT_DEPENDENCY_COMMANDS
731 # ------------------------------
732 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
733 [for mf in $CONFIG_FILES; do
734 # Strip MF so we end up with the name of the file.
735 mf=`echo "$mf" | sed -e 's/:.*$//'`
736 # Check whether this is an Automake generated Makefile or not.
737 # We used to match only the files named `Makefile.in', but
738 # some people rename them; so instead we look at the file content.
739 # Grep'ing the first line is not enough: some people post-process
740 # each Makefile.in and add a new line on top of each file to say so.
741 # So let's grep whole file.
742 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
743 dirpart=`AS_DIRNAME("$mf")`
747 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
748 # Extract the definition of DEP_FILES from the Makefile without
750 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
751 test -z "$DEPDIR" && continue
752 # When using ansi2knr, U may be empty or an underscore; expand it
753 U=`sed -n -e '/^U = / s///p' < "$mf"`
754 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
755 # We invoke sed twice because it is the simplest approach to
756 # changing $(DEPDIR) to its actual value in the expansion.
757 for file in `sed -n -e '
758 /^DEP_FILES = .*\\\\$/ {
767 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
769 # Make sure the directory exists.
770 test -f "$dirpart/$file" && continue
771 fdir=`AS_DIRNAME(["$file"])`
772 AS_MKDIR_P([$dirpart/$fdir])
773 # echo "creating $dirpart/$file"
774 echo '# dummy' > "$dirpart/$file"
777 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
780 # AM_OUTPUT_DEPENDENCY_COMMANDS
781 # -----------------------------
782 # This macro should only be invoked once -- use via AC_REQUIRE.
784 # This code is only required when automatic dependency tracking
785 # is enabled. FIXME. This creates each `.P' file that we will
786 # need in order to bootstrap the dependency handling code.
787 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
788 [AC_CONFIG_COMMANDS([depfiles],
789 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
790 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
793 # Check to see how 'make' treats includes. -*- Autoconf -*-
795 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
797 # This program is free software; you can redistribute it and/or modify
798 # it under the terms of the GNU General Public License as published by
799 # the Free Software Foundation; either version 2, or (at your option)
802 # This program is distributed in the hope that it will be useful,
803 # but WITHOUT ANY WARRANTY; without even the implied warranty of
804 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
805 # GNU General Public License for more details.
807 # You should have received a copy of the GNU General Public License
808 # along with this program; if not, write to the Free Software
809 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
816 # Check to see how make treats includes.
817 AC_DEFUN([AM_MAKE_INCLUDE],
818 [am_make=${MAKE-make}
819 cat > confinc << 'END'
824 # If we don't find an include directive, just comment out the code.
825 AC_MSG_CHECKING([for style of include used by $am_make])
829 # First try GNU make style include.
830 echo "include confinc" > confmf
831 # We grep out `Entering directory' and `Leaving directory'
832 # messages which can occur if `w' ends up in MAKEFLAGS.
833 # In particular we don't look at `^make:' because GNU make might
834 # be invoked under some other name (usually "gmake"), in which
835 # case it prints its new name instead of `make'.
836 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
841 # Now try BSD make style include.
842 if test "$am__include" = "#"; then
843 echo '.include "confinc"' > confmf
844 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
850 AC_SUBST([am__include])
851 AC_SUBST([am__quote])
852 AC_MSG_RESULT([$_am_result])
856 # AM_CONDITIONAL -*- Autoconf -*-
858 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
860 # This program is free software; you can redistribute it and/or modify
861 # it under the terms of the GNU General Public License as published by
862 # the Free Software Foundation; either version 2, or (at your option)
865 # This program is distributed in the hope that it will be useful,
866 # but WITHOUT ANY WARRANTY; without even the implied warranty of
867 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
868 # GNU General Public License for more details.
870 # You should have received a copy of the GNU General Public License
871 # along with this program; if not, write to the Free Software
872 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
879 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
880 # -------------------------------------
881 # Define a conditional.
882 AC_DEFUN([AM_CONDITIONAL],
883 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
884 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
894 AC_CONFIG_COMMANDS_PRE(
895 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
896 AC_MSG_ERROR([conditional "$1" was never defined.
897 Usually this means the macro was only invoked conditionally.])
901 # Copyright 1996, 1997, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
903 # This program is free software; you can redistribute it and/or modify
904 # it under the terms of the GNU General Public License as published by
905 # the Free Software Foundation; either version 2, or (at your option)
908 # This program is distributed in the hope that it will be useful,
909 # but WITHOUT ANY WARRANTY; without even the implied warranty of
910 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
911 # GNU General Public License for more details.
913 # You should have received a copy of the GNU General Public License
914 # along with this program; if not, write to the Free Software
915 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
920 AC_DEFUN([AM_C_PROTOTYPES],
921 [AC_REQUIRE([AM_PROG_CC_STDC])
922 AC_REQUIRE([AC_PROG_CPP])
923 AC_MSG_CHECKING([for function prototypes])
924 if test "$am_cv_prog_cc_stdc" != no; then
926 AC_DEFINE(PROTOTYPES,1,[Define if compiler has function prototypes])
930 U=_ ANSI2KNR=./ansi2knr
932 # Ensure some checks needed by ansi2knr itself.
934 AC_CHECK_HEADERS(string.h)
936 AC_SUBST(ANSI2KNR)dnl
939 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
942 # Copyright 1996, 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
944 # This program is free software; you can redistribute it and/or modify
945 # it under the terms of the GNU General Public License as published by
946 # the Free Software Foundation; either version 2, or (at your option)
949 # This program is distributed in the hope that it will be useful,
950 # but WITHOUT ANY WARRANTY; without even the implied warranty of
951 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
952 # GNU General Public License for more details.
954 # You should have received a copy of the GNU General Public License
955 # along with this program; if not, write to the Free Software
956 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
961 # @defmac AC_PROG_CC_STDC
962 # @maindex PROG_CC_STDC
964 # If the C compiler in not in ANSI C mode by default, try to add an option
965 # to output variable @code{CC} to make it so. This macro tries various
966 # options that select ANSI C on some system or another. It considers the
967 # compiler to be in ANSI C mode if it handles function prototypes correctly.
969 # If you use this macro, you should check after calling it whether the C
970 # compiler has been set to accept ANSI C; if not, the shell variable
971 # @code{am_cv_prog_cc_stdc} is set to @samp{no}. If you wrote your source
972 # code in ANSI C, you can make an un-ANSIfied copy of it by using the
973 # program @code{ansi2knr}, which comes with Ghostscript.
976 AC_DEFUN([AM_PROG_CC_STDC],
977 [AC_REQUIRE([AC_PROG_CC])
978 AC_BEFORE([$0], [AC_C_INLINE])
979 AC_BEFORE([$0], [AC_C_CONST])
980 dnl Force this before AC_PROG_CPP. Some cpp's, eg on HPUX, require
981 dnl a magic option to avoid problems with ANSI preprocessor commands
983 dnl FIXME: can't do this because then AC_AIX won't work due to a
984 dnl circular dependency.
985 dnl AC_BEFORE([$0], [AC_PROG_CPP])
986 AC_MSG_CHECKING([for ${CC-cc} option to accept ANSI C])
987 AC_CACHE_VAL(am_cv_prog_cc_stdc,
988 [am_cv_prog_cc_stdc=no
990 # Don't try gcc -ansi; that turns off useful extensions and
991 # breaks some systems' header files.
993 # Ultrix and OSF/1 -std1
994 # HP-UX 10.20 and later -Ae
995 # HP-UX older versions -Aa -D_HPUX_SOURCE
996 # SVR4 -Xc -D__EXTENSIONS__
997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
999 CC="$ac_save_CC $ac_arg"
1001 [#include <stdarg.h>
1003 #include <sys/types.h>
1004 #include <sys/stat.h>
1005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1006 struct buf { int x; };
1007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1008 static char *e (p, i)
1014 static char *f (char * (*g) (char **, int), char **p, ...)
1019 s = g (p, va_arg (v,int));
1023 int test (int i, double x);
1024 struct s1 {int (*f) (int a);};
1025 struct s2 {int (*f) (double a);};
1026 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1032 [am_cv_prog_cc_stdc="$ac_arg"; break])
1036 if test -z "$am_cv_prog_cc_stdc"; then
1037 AC_MSG_RESULT([none needed])
1039 AC_MSG_RESULT([$am_cv_prog_cc_stdc])
1041 case "x$am_cv_prog_cc_stdc" in
1043 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1047 AU_DEFUN([fp_PROG_CC_STDC], [AM_PROG_CC_STDC])