1 # aclocal.m4 generated automatically by aclocal 1.6.2 -*- Autoconf -*-
3 # Copyright 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 # When config.status generates a header, we must update the stamp-h file.
38 # This file resides in the same directory as the config header
39 # that is generated. We must strip everything past the first ":",
40 # and everything past the last "/".
44 # Like AS_DIRNAME, only do it during macro expansion
45 AC_DEFUN([_AM_DIRNAME],
46 [m4_if(regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1,
47 m4_if(regexp([$1], [^//\([^/]\|$\)]), -1,
48 m4_if(regexp([$1], [^/.*]), -1,
50 patsubst([$1], [^\(/\).*], [\1])),
51 patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])),
52 patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl
56 # The stamp files are numbered to have different names.
57 # We could number them on a directory basis, but that's additional
58 # complications, let's have a unique counter.
59 m4_define([_AM_STAMP_Count], [0])
64 # The name of the stamp file for HEADER.
66 [m4_define([_AM_STAMP_Count], m4_incr(_AM_STAMP_Count))dnl
67 AS_ESCAPE(_AM_DIRNAME(patsubst([$1],
68 [:.*])))/stamp-h[]_AM_STAMP_Count])
71 # _AM_CONFIG_HEADER(HEADER[:SOURCES], COMMANDS, INIT-COMMANDS)
72 # ------------------------------------------------------------
73 # We used to try to get a real timestamp in stamp-h. But the fear is that
74 # that will cause unnecessary cvs conflicts.
75 AC_DEFUN([_AM_CONFIG_HEADER],
76 [# Add the stamp file to the list of files AC keeps track of,
77 # along with our hook.
78 AC_CONFIG_HEADERS([$1],
79 [# update the timestamp
80 echo 'timestamp for $1' >"_AM_STAMP([$1])"
86 # AM_CONFIG_HEADER(HEADER[:SOURCES]..., COMMANDS, INIT-COMMANDS)
87 # --------------------------------------------------------------
88 AC_DEFUN([AM_CONFIG_HEADER],
89 [AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
92 # Do all the work for Automake. -*- Autoconf -*-
94 # This macro actually does too much some checks are only needed if
95 # your package does certain things. But this isn't really a big deal.
97 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
98 # Free Software Foundation, Inc.
100 # This program is free software; you can redistribute it and/or modify
101 # it under the terms of the GNU General Public License as published by
102 # the Free Software Foundation; either version 2, or (at your option)
105 # This program is distributed in the hope that it will be useful,
106 # but WITHOUT ANY WARRANTY; without even the implied warranty of
107 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
108 # GNU General Public License for more details.
110 # You should have received a copy of the GNU General Public License
111 # along with this program; if not, write to the Free Software
112 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
117 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
118 # written in clear, in which case automake, when reading aclocal.m4,
119 # will think it sees a *use*, and therefore will trigger all it's
120 # C support machinery. Also note that it means that autoscan, seeing
121 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
126 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
127 # the ones we care about.
128 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
130 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
131 # AM_INIT_AUTOMAKE([OPTIONS])
132 # -----------------------------------------------
133 # The call with PACKAGE and VERSION arguments is the old style
134 # call (pre autoconf-2.50), which is being phased out. PACKAGE
135 # and VERSION should now be passed to AC_INIT and removed from
136 # the call to AM_INIT_AUTOMAKE.
137 # We support both call styles for the transition. After
138 # the next Automake release, Autoconf can make the AC_INIT
139 # arguments mandatory, and then we can depend on a new Autoconf
140 # release and drop the old call support.
141 AC_DEFUN([AM_INIT_AUTOMAKE],
142 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
143 AC_REQUIRE([AC_PROG_INSTALL])dnl
144 # test to see if srcdir already configured
145 if test "`cd $srcdir && pwd`" != "`pwd`" &&
146 test -f $srcdir/config.status; then
147 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
150 # Define the identity of the package.
151 dnl Distinguish between old-style and new-style calls.
153 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
154 AC_SUBST([PACKAGE], [$1])dnl
155 AC_SUBST([VERSION], [$2])],
156 [_AM_SET_OPTIONS([$1])dnl
157 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
158 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
160 _AM_IF_OPTION([no-define],,
161 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
162 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
164 # Some tools Automake needs.
165 AC_REQUIRE([AM_SANITY_CHECK])dnl
166 AC_REQUIRE([AC_ARG_PROGRAM])dnl
167 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
168 AM_MISSING_PROG(AUTOCONF, autoconf)
169 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
170 AM_MISSING_PROG(AUTOHEADER, autoheader)
171 AM_MISSING_PROG(MAKEINFO, makeinfo)
172 AM_MISSING_PROG(AMTAR, tar)
174 AM_PROG_INSTALL_STRIP
175 # We need awk for the "check" target. The system "awk" is bad on
177 AC_REQUIRE([AC_PROG_AWK])dnl
178 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
180 _AM_IF_OPTION([no-dependencies],,
181 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
182 [_AM_DEPENDENCIES(CC)],
183 [define([AC_PROG_][CC],
184 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
185 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
186 [_AM_DEPENDENCIES(CXX)],
187 [define([AC_PROG_][CXX],
188 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
192 # Copyright 2002 Free Software Foundation, Inc.
194 # This program is free software; you can redistribute it and/or modify
195 # it under the terms of the GNU General Public License as published by
196 # the Free Software Foundation; either version 2, or (at your option)
199 # This program is distributed in the hope that it will be useful,
200 # but WITHOUT ANY WARRANTY; without even the implied warranty of
201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
202 # GNU General Public License for more details.
204 # You should have received a copy of the GNU General Public License
205 # along with this program; if not, write to the Free Software
206 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
208 # AM_AUTOMAKE_VERSION(VERSION)
209 # ----------------------------
210 # Automake X.Y traces this macro to ensure aclocal.m4 has been
211 # generated from the m4 files accompanying Automake X.Y.
212 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
214 # AM_SET_CURRENT_AUTOMAKE_VERSION
215 # -------------------------------
216 # Call AM_AUTOMAKE_VERSION so it can be traced.
217 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
218 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
219 [AM_AUTOMAKE_VERSION([1.6.2])])
221 # Helper functions for option handling. -*- Autoconf -*-
223 # Copyright 2001, 2002 Free Software Foundation, Inc.
225 # This program is free software; you can redistribute it and/or modify
226 # it under the terms of the GNU General Public License as published by
227 # the Free Software Foundation; either version 2, or (at your option)
230 # This program is distributed in the hope that it will be useful,
231 # but WITHOUT ANY WARRANTY; without even the implied warranty of
232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
233 # GNU General Public License for more details.
235 # You should have received a copy of the GNU General Public License
236 # along with this program; if not, write to the Free Software
237 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
242 # _AM_MANGLE_OPTION(NAME)
243 # -----------------------
244 AC_DEFUN([_AM_MANGLE_OPTION],
245 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
247 # _AM_SET_OPTION(NAME)
248 # ------------------------------
249 # Set option NAME. Presently that only means defining a flag for this option.
250 AC_DEFUN([_AM_SET_OPTION],
251 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
253 # _AM_SET_OPTIONS(OPTIONS)
254 # ----------------------------------
255 # OPTIONS is a space-separated list of Automake options.
256 AC_DEFUN([_AM_SET_OPTIONS],
257 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
259 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
260 # -------------------------------------------
261 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
262 AC_DEFUN([_AM_IF_OPTION],
263 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
266 # Check to make sure that the build environment is sane.
269 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
271 # This program is free software; you can redistribute it and/or modify
272 # it under the terms of the GNU General Public License as published by
273 # the Free Software Foundation; either version 2, or (at your option)
276 # This program is distributed in the hope that it will be useful,
277 # but WITHOUT ANY WARRANTY; without even the implied warranty of
278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
279 # GNU General Public License for more details.
281 # You should have received a copy of the GNU General Public License
282 # along with this program; if not, write to the Free Software
283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
290 AC_DEFUN([AM_SANITY_CHECK],
291 [AC_MSG_CHECKING([whether build environment is sane])
294 echo timestamp > conftest.file
295 # Do `set' in a subshell so we don't clobber the current shell's
296 # arguments. Must try -L first in case configure is actually a
297 # symlink; some systems play weird games with the mod time of symlinks
298 # (eg FreeBSD returns the mod time of the symlink's containing
301 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
302 if test "$[*]" = "X"; then
304 set X `ls -t $srcdir/configure conftest.file`
307 if test "$[*]" != "X $srcdir/configure conftest.file" \
308 && test "$[*]" != "X conftest.file $srcdir/configure"; then
310 # If neither matched, then we have a broken ls. This can happen
311 # if, for instance, CONFIG_SHELL is bash and it inherits a
312 # broken ls alias from the environment. This has actually
313 # happened. Such a system could not be considered "sane".
314 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
315 alias in your environment])
318 test "$[2]" = conftest.file
324 AC_MSG_ERROR([newly created file is older than distributed files!
325 Check your system clock])
332 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
334 # This program is free software; you can redistribute it and/or modify
335 # it under the terms of the GNU General Public License as published by
336 # the Free Software Foundation; either version 2, or (at your option)
339 # This program is distributed in the hope that it will be useful,
340 # but WITHOUT ANY WARRANTY; without even the implied warranty of
341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
342 # GNU General Public License for more details.
344 # You should have received a copy of the GNU General Public License
345 # along with this program; if not, write to the Free Software
346 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
351 # AM_MISSING_PROG(NAME, PROGRAM)
352 # ------------------------------
353 AC_DEFUN([AM_MISSING_PROG],
354 [AC_REQUIRE([AM_MISSING_HAS_RUN])
355 $1=${$1-"${am_missing_run}$2"}
361 # Define MISSING if not defined so far and test if it supports --run.
362 # If it does, set am_missing_run to use it, otherwise, to nothing.
363 AC_DEFUN([AM_MISSING_HAS_RUN],
364 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
365 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
366 # Use eval to expand $SHELL
367 if eval "$MISSING --run true"; then
368 am_missing_run="$MISSING --run "
371 AC_MSG_WARN([`missing' script is too old or missing])
377 # Copyright 2001 Free Software Foundation, Inc.
379 # This program is free software; you can redistribute it and/or modify
380 # it under the terms of the GNU General Public License as published by
381 # the Free Software Foundation; either version 2, or (at your option)
384 # This program is distributed in the hope that it will be useful,
385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
387 # GNU General Public License for more details.
389 # You should have received a copy of the GNU General Public License
390 # along with this program; if not, write to the Free Software
391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
394 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
395 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
396 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
398 # Of course, Automake must honor this variable whenever it calls a
399 # tool from the auxiliary directory. The problem is that $srcdir (and
400 # therefore $ac_aux_dir as well) can be either absolute or relative,
401 # depending on how configure is run. This is pretty annoying, since
402 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
403 # source directory, any form will work fine, but in subdirectories a
404 # relative path needs to be adjusted first.
406 # $ac_aux_dir/missing
407 # fails when called from a subdirectory if $ac_aux_dir is relative
408 # $top_srcdir/$ac_aux_dir/missing
409 # fails if $ac_aux_dir is absolute,
410 # fails when called from a subdirectory in a VPATH build with
411 # a relative $ac_aux_dir
413 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
414 # are both prefixed by $srcdir. In an in-source build this is usually
415 # harmless because $srcdir is `.', but things will broke when you
416 # start a VPATH build or use an absolute $srcdir.
418 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
419 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
420 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
421 # and then we would define $MISSING as
422 # MISSING="\${SHELL} $am_aux_dir/missing"
423 # This will work as long as MISSING is not called from configure, because
424 # unfortunately $(top_srcdir) has no meaning in configure.
425 # However there are other variables, like CC, which are often used in
426 # configure, and could therefore not use this "fixed" $ac_aux_dir.
428 # Another solution, used here, is to always expand $ac_aux_dir to an
429 # absolute PATH. The drawback is that using absolute paths prevent a
430 # configured tree to be moved without reconfiguration.
432 # Rely on autoconf to set up CDPATH properly.
435 AC_DEFUN([AM_AUX_DIR_EXPAND], [
436 # expand $ac_aux_dir to an absolute path
437 am_aux_dir=`cd $ac_aux_dir && pwd`
442 # Define $install_sh.
444 # Copyright 2001 Free Software Foundation, Inc.
446 # This program is free software; you can redistribute it and/or modify
447 # it under the terms of the GNU General Public License as published by
448 # the Free Software Foundation; either version 2, or (at your option)
451 # This program is distributed in the hope that it will be useful,
452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
454 # GNU General Public License for more details.
456 # You should have received a copy of the GNU General Public License
457 # along with this program; if not, write to the Free Software
458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
461 AC_DEFUN([AM_PROG_INSTALL_SH],
462 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
463 install_sh=${install_sh-"$am_aux_dir/install-sh"}
464 AC_SUBST(install_sh)])
466 # AM_PROG_INSTALL_STRIP
468 # Copyright 2001 Free Software Foundation, Inc.
470 # This program is free software; you can redistribute it and/or modify
471 # it under the terms of the GNU General Public License as published by
472 # the Free Software Foundation; either version 2, or (at your option)
475 # This program is distributed in the hope that it will be useful,
476 # but WITHOUT ANY WARRANTY; without even the implied warranty of
477 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
478 # GNU General Public License for more details.
480 # You should have received a copy of the GNU General Public License
481 # along with this program; if not, write to the Free Software
482 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
485 # One issue with vendor `install' (even GNU) is that you can't
486 # specify the program used to strip binaries. This is especially
487 # annoying in cross-compiling environments, where the build's strip
488 # is unlikely to handle the host's binaries.
489 # Fortunately install-sh will honor a STRIPPROG variable, so we
490 # always use install-sh in `make install-strip', and initialize
491 # STRIPPROG with the value of the STRIP variable (set by the user).
492 AC_DEFUN([AM_PROG_INSTALL_STRIP],
493 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
494 # Installed binaries are usually stripped using `strip' when the user
495 # run `make install-strip'. However `strip' might not be the right
496 # tool to use in cross-compilation environments, therefore Automake
497 # will honor the `STRIP' environment variable to overrule this program.
498 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
499 if test "$cross_compiling" != no; then
500 AC_CHECK_TOOL([STRIP], [strip], :)
502 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
503 AC_SUBST([INSTALL_STRIP_PROGRAM])])
505 # serial 4 -*- Autoconf -*-
507 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
509 # This program is free software; you can redistribute it and/or modify
510 # it under the terms of the GNU General Public License as published by
511 # the Free Software Foundation; either version 2, or (at your option)
514 # This program is distributed in the hope that it will be useful,
515 # but WITHOUT ANY WARRANTY; without even the implied warranty of
516 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
517 # GNU General Public License for more details.
519 # You should have received a copy of the GNU General Public License
520 # along with this program; if not, write to the Free Software
521 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
525 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
526 # written in clear, in which case automake, when reading aclocal.m4,
527 # will think it sees a *use*, and therefore will trigger all it's
528 # C support machinery. Also note that it means that autoscan, seeing
529 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
533 # _AM_DEPENDENCIES(NAME)
534 # ----------------------
535 # See how the compiler implements dependency checking.
536 # NAME is "CC", "CXX", "GCJ", or "OBJC".
537 # We try a few techniques and use that to set a single cache variable.
539 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
540 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
541 # dependency, and given that the user is not expected to run this macro,
542 # just rely on AC_PROG_CC.
543 AC_DEFUN([_AM_DEPENDENCIES],
544 [AC_REQUIRE([AM_SET_DEPDIR])dnl
545 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
546 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
547 AC_REQUIRE([AM_DEP_TRACK])dnl
549 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
550 [$1], CXX, [depcc="$CXX" am_compiler_list=],
551 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
552 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
553 [depcc="$$1" am_compiler_list=])
555 AC_CACHE_CHECK([dependency style of $depcc],
556 [am_cv_$1_dependencies_compiler_type],
557 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
558 # We make a subdir and do the tests there. Otherwise we can end up
559 # making bogus files that we don't know about and never remove. For
560 # instance it was reported that on HP-UX the gcc test will end up
561 # making a dummy file named `D' -- because `-MD' means `put the output
564 # Copy depcomp to subdir because otherwise we won't find it if we're
565 # using a relative directory.
566 cp "$am_depcomp" conftest.dir
569 am_cv_$1_dependencies_compiler_type=none
570 if test "$am_compiler_list" = ""; then
571 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
573 for depmode in $am_compiler_list; do
574 # We need to recreate these files for each test, as the compiler may
575 # overwrite some of them when testing with obscure command lines.
576 # This happens at least with the AIX C compiler.
577 echo '#include "conftest.h"' > conftest.c
578 echo 'int i;' > conftest.h
579 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
583 # after this tag, mechanisms are not by side-effect, so they'll
584 # only be used when explicitly requested
585 if test "x$enable_dependency_tracking" = xyes; then
593 # We check with `-c' and `-o' for the sake of the "dashmstdout"
594 # mode. It turns out that the SunPro C++ compiler does not properly
595 # handle `-M -o', and we need to detect this.
596 if depmode=$depmode \
597 source=conftest.c object=conftest.o \
598 depfile=conftest.Po tmpdepfile=conftest.TPo \
599 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
600 grep conftest.h conftest.Po > /dev/null 2>&1 &&
601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
602 am_cv_$1_dependencies_compiler_type=$depmode
610 am_cv_$1_dependencies_compiler_type=none
613 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
619 # Choose a directory name for dependency files.
620 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
621 AC_DEFUN([AM_SET_DEPDIR],
622 [rm -f .deps 2>/dev/null
623 mkdir .deps 2>/dev/null
624 if test -d .deps; then
627 # MS-DOS does not allow filenames that begin with a dot.
630 rmdir .deps 2>/dev/null
637 AC_DEFUN([AM_DEP_TRACK],
638 [AC_ARG_ENABLE(dependency-tracking,
639 [ --disable-dependency-tracking Speeds up one-time builds
640 --enable-dependency-tracking Do not reject slow dependency extractors])
641 if test "x$enable_dependency_tracking" != xno; then
642 am_depcomp="$ac_aux_dir/depcomp"
645 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
646 AC_SUBST([AMDEPBACKSLASH])
649 # Generate code to set up dependency tracking. -*- Autoconf -*-
651 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
653 # This program is free software; you can redistribute it and/or modify
654 # it under the terms of the GNU General Public License as published by
655 # the Free Software Foundation; either version 2, or (at your option)
658 # This program is distributed in the hope that it will be useful,
659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
661 # GNU General Public License for more details.
663 # You should have received a copy of the GNU General Public License
664 # along with this program; if not, write to the Free Software
665 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
670 # _AM_OUTPUT_DEPENDENCY_COMMANDS
671 # ------------------------------
672 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
673 [for mf in $CONFIG_FILES; do
674 # Strip MF so we end up with the name of the file.
675 mf=`echo "$mf" | sed -e 's/:.*$//'`
676 # Check whether this is an Automake generated Makefile or not.
677 # We used to match only the files named `Makefile.in', but
678 # some people rename them; so instead we look at the file content.
679 # Grep'ing the first line is not enough: some people post-process
680 # each Makefile.in and add a new line on top of each file to say so.
681 # So let's grep whole file.
682 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
683 dirpart=`AS_DIRNAME("$mf")`
687 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
688 # Extract the definition of DEP_FILES from the Makefile without
690 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
691 test -z "$DEPDIR" && continue
692 # When using ansi2knr, U may be empty or an underscore; expand it
693 U=`sed -n -e '/^U = / s///p' < "$mf"`
694 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
695 # We invoke sed twice because it is the simplest approach to
696 # changing $(DEPDIR) to its actual value in the expansion.
697 for file in `sed -n -e '
698 /^DEP_FILES = .*\\\\$/ {
707 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
708 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
709 # Make sure the directory exists.
710 test -f "$dirpart/$file" && continue
711 fdir=`AS_DIRNAME(["$file"])`
712 AS_MKDIR_P([$dirpart/$fdir])
713 # echo "creating $dirpart/$file"
714 echo '# dummy' > "$dirpart/$file"
717 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
720 # AM_OUTPUT_DEPENDENCY_COMMANDS
721 # -----------------------------
722 # This macro should only be invoked once -- use via AC_REQUIRE.
724 # This code is only required when automatic dependency tracking
725 # is enabled. FIXME. This creates each `.P' file that we will
726 # need in order to bootstrap the dependency handling code.
727 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
728 [AC_CONFIG_COMMANDS([depfiles],
729 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
730 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
733 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
735 # This program is free software; you can redistribute it and/or modify
736 # it under the terms of the GNU General Public License as published by
737 # the Free Software Foundation; either version 2, or (at your option)
740 # This program is distributed in the hope that it will be useful,
741 # but WITHOUT ANY WARRANTY; without even the implied warranty of
742 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
743 # GNU General Public License for more details.
745 # You should have received a copy of the GNU General Public License
746 # along with this program; if not, write to the Free Software
747 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
754 # Check to see how make treats includes.
755 AC_DEFUN([AM_MAKE_INCLUDE],
756 [am_make=${MAKE-make}
757 cat > confinc << 'END'
761 # If we don't find an include directive, just comment out the code.
762 AC_MSG_CHECKING([for style of include used by $am_make])
766 # First try GNU make style include.
767 echo "include confinc" > confmf
768 # We grep out `Entering directory' and `Leaving directory'
769 # messages which can occur if `w' ends up in MAKEFLAGS.
770 # In particular we don't look at `^make:' because GNU make might
771 # be invoked under some other name (usually "gmake"), in which
772 # case it prints its new name instead of `make'.
773 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
778 # Now try BSD make style include.
779 if test "$am__include" = "#"; then
780 echo '.include "confinc"' > confmf
781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
787 AC_SUBST(am__include)
789 AC_MSG_RESULT($_am_result)
793 # AM_CONDITIONAL -*- Autoconf -*-
795 # Copyright 1997, 2000, 2001 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 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
817 # -------------------------------------
818 # Define a conditional.
819 AC_DEFUN([AM_CONDITIONAL],
820 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
821 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
831 AC_CONFIG_COMMANDS_PRE(
832 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
833 AC_MSG_ERROR([conditional \"$1\" was never defined.
834 Usually this means the macro was only invoked conditionally.])
837 # Add --enable-maintainer-mode option to configure.
840 # Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
842 # This program is free software; you can redistribute it and/or modify
843 # it under the terms of the GNU General Public License as published by
844 # the Free Software Foundation; either version 2, or (at your option)
847 # This program is distributed in the hope that it will be useful,
848 # but WITHOUT ANY WARRANTY; without even the implied warranty of
849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
850 # GNU General Public License for more details.
852 # You should have received a copy of the GNU General Public License
853 # along with this program; if not, write to the Free Software
854 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
859 AC_DEFUN([AM_MAINTAINER_MODE],
860 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
861 dnl maintainer-mode is disabled by default
862 AC_ARG_ENABLE(maintainer-mode,
863 [ --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer],
865 USE_MAINTAINER_MODE=$enableval,
866 USE_MAINTAINER_MODE=no)
867 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
868 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
869 MAINT=$MAINTAINER_MODE_TRUE
875 # This test replaces the one in autoconf.
876 # Currently this macro should have the same name as the autoconf macro
877 # because gettext's gettext.m4 (distributed in the automake package)
878 # still uses it. Otherwise, the use in gettext.m4 makes autoheader
879 # give these diagnostics:
880 # configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
881 # configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
883 undefine([AC_ISC_POSIX])
885 AC_DEFUN([AC_ISC_POSIX],
887 dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
888 AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
893 # Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
895 # This program is free software; you can redistribute it and/or modify
896 # it under the terms of the GNU General Public License as published by
897 # the Free Software Foundation; either version 2, or (at your option)
900 # This program is distributed in the hope that it will be useful,
901 # but WITHOUT ANY WARRANTY; without even the implied warranty of
902 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
903 # GNU General Public License for more details.
905 # You should have received a copy of the GNU General Public License
906 # along with this program; if not, write to the Free Software
907 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
916 # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
917 # "missing" invocation, for better error output.
918 AC_DEFUN([AM_PROG_LEX],
919 [AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
920 AC_REQUIRE([AC_PROG_LEX])dnl
921 if test "$LEX" = :; then
922 LEX=${am_missing_run}flex
926 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
927 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
928 dnl also defines GSTUFF_PKG_ERRORS on error
929 AC_DEFUN(PKG_CHECK_MODULES, [
932 if test -z "$PKG_CONFIG"; then
933 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
936 if test "$PKG_CONFIG" = "no" ; then
937 echo "*** The pkg-config script could not be found. Make sure it is"
938 echo "*** in your path, or set the PKG_CONFIG environment variable"
939 echo "*** to the full path to pkg-config."
940 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
942 PKG_CONFIG_MIN_VERSION=0.9.0
943 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
944 AC_MSG_CHECKING(for $2)
946 if $PKG_CONFIG --exists "$2" ; then
950 AC_MSG_CHECKING($1_CFLAGS)
951 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
952 AC_MSG_RESULT($$1_CFLAGS)
954 AC_MSG_CHECKING($1_LIBS)
955 $1_LIBS=`$PKG_CONFIG --libs "$2"`
956 AC_MSG_RESULT($$1_LIBS)
960 ## If we have a custom action on failure, don't print errors, but
961 ## do set a variable so people can do so.
962 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
963 ifelse([$4], ,echo $$1_PKG_ERRORS,)
969 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
970 echo "*** See http://www.freedesktop.org/software/pkgconfig"
974 if test $succeeded = yes; then
975 ifelse([$3], , :, [$3])
977 ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])