1 # generated automatically by aclocal 1.8.2 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
4 # Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
16 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
17 dnl also defines GSTUFF_PKG_ERRORS on error
18 AC_DEFUN(PKG_CHECK_MODULES, [
21 if test -z "$PKG_CONFIG"; then
22 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
25 if test "$PKG_CONFIG" = "no" ; then
26 echo "*** The pkg-config script could not be found. Make sure it is"
27 echo "*** in your path, or set the PKG_CONFIG environment variable"
28 echo "*** to the full path to pkg-config."
29 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
31 PKG_CONFIG_MIN_VERSION=0.9.0
32 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
33 AC_MSG_CHECKING(for $2)
35 if $PKG_CONFIG --exists "$2" ; then
39 AC_MSG_CHECKING($1_CFLAGS)
40 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
41 AC_MSG_RESULT($$1_CFLAGS)
43 AC_MSG_CHECKING($1_LIBS)
44 $1_LIBS=`$PKG_CONFIG --libs "$2"`
45 AC_MSG_RESULT($$1_LIBS)
49 ## If we have a custom action on failure, don't print errors, but
50 ## do set a variable so people can do so.
51 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
52 ifelse([$4], ,echo $$1_PKG_ERRORS,)
58 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
59 echo "*** See http://www.freedesktop.org/software/pkgconfig"
63 if test $succeeded = yes; then
64 ifelse([$3], , :, [$3])
66 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])
73 # Copyright (C) 2002, 2003 Free Software Foundation, Inc.
74 # Generated from amversion.in; do not edit by hand.
76 # This program is free software; you can redistribute it and/or modify
77 # it under the terms of the GNU General Public License as published by
78 # the Free Software Foundation; either version 2, or (at your option)
81 # This program is distributed in the hope that it will be useful,
82 # but WITHOUT ANY WARRANTY; without even the implied warranty of
83 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
84 # GNU General Public License for more details.
86 # You should have received a copy of the GNU General Public License
87 # along with this program; if not, write to the Free Software
88 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
90 # AM_AUTOMAKE_VERSION(VERSION)
91 # ----------------------------
92 # Automake X.Y traces this macro to ensure aclocal.m4 has been
93 # generated from the m4 files accompanying Automake X.Y.
94 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
96 # AM_SET_CURRENT_AUTOMAKE_VERSION
97 # -------------------------------
98 # Call AM_AUTOMAKE_VERSION so it can be traced.
99 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
100 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
101 [AM_AUTOMAKE_VERSION([1.8.2])])
105 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
107 # This program is free software; you can redistribute it and/or modify
108 # it under the terms of the GNU General Public License as published by
109 # the Free Software Foundation; either version 2, or (at your option)
112 # This program is distributed in the hope that it will be useful,
113 # but WITHOUT ANY WARRANTY; without even the implied warranty of
114 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
115 # GNU General Public License for more details.
117 # You should have received a copy of the GNU General Public License
118 # along with this program; if not, write to the Free Software
119 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
122 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
123 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
124 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
126 # Of course, Automake must honor this variable whenever it calls a
127 # tool from the auxiliary directory. The problem is that $srcdir (and
128 # therefore $ac_aux_dir as well) can be either absolute or relative,
129 # depending on how configure is run. This is pretty annoying, since
130 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
131 # source directory, any form will work fine, but in subdirectories a
132 # relative path needs to be adjusted first.
134 # $ac_aux_dir/missing
135 # fails when called from a subdirectory if $ac_aux_dir is relative
136 # $top_srcdir/$ac_aux_dir/missing
137 # fails if $ac_aux_dir is absolute,
138 # fails when called from a subdirectory in a VPATH build with
139 # a relative $ac_aux_dir
141 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
142 # are both prefixed by $srcdir. In an in-source build this is usually
143 # harmless because $srcdir is `.', but things will broke when you
144 # start a VPATH build or use an absolute $srcdir.
146 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
147 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
148 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
149 # and then we would define $MISSING as
150 # MISSING="\${SHELL} $am_aux_dir/missing"
151 # This will work as long as MISSING is not called from configure, because
152 # unfortunately $(top_srcdir) has no meaning in configure.
153 # However there are other variables, like CC, which are often used in
154 # configure, and could therefore not use this "fixed" $ac_aux_dir.
156 # Another solution, used here, is to always expand $ac_aux_dir to an
157 # absolute PATH. The drawback is that using absolute paths prevent a
158 # configured tree to be moved without reconfiguration.
160 AC_DEFUN([AM_AUX_DIR_EXPAND],
161 [dnl Rely on autoconf to set up CDPATH properly.
163 # expand $ac_aux_dir to an absolute path
164 am_aux_dir=`cd $ac_aux_dir && pwd`
167 # AM_CONDITIONAL -*- Autoconf -*-
169 # Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
171 # This program is free software; you can redistribute it and/or modify
172 # it under the terms of the GNU General Public License as published by
173 # the Free Software Foundation; either version 2, or (at your option)
176 # This program is distributed in the hope that it will be useful,
177 # but WITHOUT ANY WARRANTY; without even the implied warranty of
178 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
179 # GNU General Public License for more details.
181 # You should have received a copy of the GNU General Public License
182 # along with this program; if not, write to the Free Software
183 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
188 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
189 # -------------------------------------
190 # Define a conditional.
191 AC_DEFUN([AM_CONDITIONAL],
193 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
194 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
204 AC_CONFIG_COMMANDS_PRE(
205 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
206 AC_MSG_ERROR([conditional "$1" was never defined.
207 Usually this means the macro was only invoked conditionally.])
210 # serial 6 -*- Autoconf -*-
212 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
213 # Free Software Foundation, Inc.
215 # This program is free software; you can redistribute it and/or modify
216 # it under the terms of the GNU General Public License as published by
217 # the Free Software Foundation; either version 2, or (at your option)
220 # This program is distributed in the hope that it will be useful,
221 # but WITHOUT ANY WARRANTY; without even the implied warranty of
222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
223 # GNU General Public License for more details.
225 # You should have received a copy of the GNU General Public License
226 # along with this program; if not, write to the Free Software
227 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
231 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
232 # written in clear, in which case automake, when reading aclocal.m4,
233 # will think it sees a *use*, and therefore will trigger all it's
234 # C support machinery. Also note that it means that autoscan, seeing
235 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
239 # _AM_DEPENDENCIES(NAME)
240 # ----------------------
241 # See how the compiler implements dependency checking.
242 # NAME is "CC", "CXX", "GCJ", or "OBJC".
243 # We try a few techniques and use that to set a single cache variable.
245 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
246 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
247 # dependency, and given that the user is not expected to run this macro,
248 # just rely on AC_PROG_CC.
249 AC_DEFUN([_AM_DEPENDENCIES],
250 [AC_REQUIRE([AM_SET_DEPDIR])dnl
251 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
252 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
253 AC_REQUIRE([AM_DEP_TRACK])dnl
255 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
256 [$1], CXX, [depcc="$CXX" am_compiler_list=],
257 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
258 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
259 [depcc="$$1" am_compiler_list=])
261 AC_CACHE_CHECK([dependency style of $depcc],
262 [am_cv_$1_dependencies_compiler_type],
263 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
264 # We make a subdir and do the tests there. Otherwise we can end up
265 # making bogus files that we don't know about and never remove. For
266 # instance it was reported that on HP-UX the gcc test will end up
267 # making a dummy file named `D' -- because `-MD' means `put the output
270 # Copy depcomp to subdir because otherwise we won't find it if we're
271 # using a relative directory.
272 cp "$am_depcomp" conftest.dir
274 # We will build objects and dependencies in a subdirectory because
275 # it helps to detect inapplicable dependency modes. For instance
276 # both Tru64's cc and ICC support -MD to output dependencies as a
277 # side effect of compilation, but ICC will put the dependencies in
278 # the current directory while Tru64 will put them in the object
282 am_cv_$1_dependencies_compiler_type=none
283 if test "$am_compiler_list" = ""; then
284 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
286 for depmode in $am_compiler_list; do
287 # Setup a source with many dependencies, because some compilers
288 # like to wrap large dependency lists on column 80 (with \), and
289 # we should not choose a depcomp mode which is confused by this.
291 # We need to recreate these files for each test, as the compiler may
292 # overwrite some of them when testing with obscure command lines.
293 # This happens at least with the AIX C compiler.
295 for i in 1 2 3 4 5 6; do
296 echo '#include "conftst'$i'.h"' >> sub/conftest.c
299 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
303 # after this tag, mechanisms are not by side-effect, so they'll
304 # only be used when explicitly requested
305 if test "x$enable_dependency_tracking" = xyes; then
313 # We check with `-c' and `-o' for the sake of the "dashmstdout"
314 # mode. It turns out that the SunPro C++ compiler does not properly
315 # handle `-M -o', and we need to detect this.
316 if depmode=$depmode \
317 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
318 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
319 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
320 >/dev/null 2>conftest.err &&
321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
322 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
324 # icc doesn't choke on unknown options, it will just issue warnings
325 # (even with -Werror). So we grep stderr for any message
326 # that says an option was ignored.
327 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
328 am_cv_$1_dependencies_compiler_type=$depmode
337 am_cv_$1_dependencies_compiler_type=none
340 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
341 AM_CONDITIONAL([am__fastdep$1], [
342 test "x$enable_dependency_tracking" != xno \
343 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
349 # Choose a directory name for dependency files.
350 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
351 AC_DEFUN([AM_SET_DEPDIR],
352 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
353 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
359 AC_DEFUN([AM_DEP_TRACK],
360 [AC_ARG_ENABLE(dependency-tracking,
361 [ --disable-dependency-tracking speeds up one-time build
362 --enable-dependency-tracking do not reject slow dependency extractors])
363 if test "x$enable_dependency_tracking" != xno; then
364 am_depcomp="$ac_aux_dir/depcomp"
367 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
368 AC_SUBST([AMDEPBACKSLASH])
371 # Generate code to set up dependency tracking. -*- Autoconf -*-
373 # Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
375 # This program is free software; you can redistribute it and/or modify
376 # it under the terms of the GNU General Public License as published by
377 # the Free Software Foundation; either version 2, or (at your option)
380 # This program is distributed in the hope that it will be useful,
381 # but WITHOUT ANY WARRANTY; without even the implied warranty of
382 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
383 # GNU General Public License for more details.
385 # You should have received a copy of the GNU General Public License
386 # along with this program; if not, write to the Free Software
387 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
392 # _AM_OUTPUT_DEPENDENCY_COMMANDS
393 # ------------------------------
394 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
395 [for mf in $CONFIG_FILES; do
396 # Strip MF so we end up with the name of the file.
397 mf=`echo "$mf" | sed -e 's/:.*$//'`
398 # Check whether this is an Automake generated Makefile or not.
399 # We used to match only the files named `Makefile.in', but
400 # some people rename them; so instead we look at the file content.
401 # Grep'ing the first line is not enough: some people post-process
402 # each Makefile.in and add a new line on top of each file to say so.
403 # So let's grep whole file.
404 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
405 dirpart=`AS_DIRNAME("$mf")`
409 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
410 # Extract the definition of DEP_FILES from the Makefile without
412 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
413 test -z "$DEPDIR" && continue
414 # When using ansi2knr, U may be empty or an underscore; expand it
415 U=`sed -n -e '/^U = / s///p' < "$mf"`
416 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
417 # We invoke sed twice because it is the simplest approach to
418 # changing $(DEPDIR) to its actual value in the expansion.
419 for file in `sed -n -e '
420 /^DEP_FILES = .*\\\\$/ {
429 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
430 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
431 # Make sure the directory exists.
432 test -f "$dirpart/$file" && continue
433 fdir=`AS_DIRNAME(["$file"])`
434 AS_MKDIR_P([$dirpart/$fdir])
435 # echo "creating $dirpart/$file"
436 echo '# dummy' > "$dirpart/$file"
439 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
442 # AM_OUTPUT_DEPENDENCY_COMMANDS
443 # -----------------------------
444 # This macro should only be invoked once -- use via AC_REQUIRE.
446 # This code is only required when automatic dependency tracking
447 # is enabled. FIXME. This creates each `.P' file that we will
448 # need in order to bootstrap the dependency handling code.
449 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
450 [AC_CONFIG_COMMANDS([depfiles],
451 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
452 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
455 # Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
457 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
459 # This program is free software; you can redistribute it and/or modify
460 # it under the terms of the GNU General Public License as published by
461 # the Free Software Foundation; either version 2, or (at your option)
464 # This program is distributed in the hope that it will be useful,
465 # but WITHOUT ANY WARRANTY; without even the implied warranty of
466 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
467 # GNU General Public License for more details.
469 # You should have received a copy of the GNU General Public License
470 # along with this program; if not, write to the Free Software
471 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
476 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
477 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
479 # Do all the work for Automake. -*- Autoconf -*-
481 # This macro actually does too much some checks are only needed if
482 # your package does certain things. But this isn't really a big deal.
484 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
485 # Free Software Foundation, Inc.
487 # This program is free software; you can redistribute it and/or modify
488 # it under the terms of the GNU General Public License as published by
489 # the Free Software Foundation; either version 2, or (at your option)
492 # This program is distributed in the hope that it will be useful,
493 # but WITHOUT ANY WARRANTY; without even the implied warranty of
494 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
495 # GNU General Public License for more details.
497 # You should have received a copy of the GNU General Public License
498 # along with this program; if not, write to the Free Software
499 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
504 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
505 # AM_INIT_AUTOMAKE([OPTIONS])
506 # -----------------------------------------------
507 # The call with PACKAGE and VERSION arguments is the old style
508 # call (pre autoconf-2.50), which is being phased out. PACKAGE
509 # and VERSION should now be passed to AC_INIT and removed from
510 # the call to AM_INIT_AUTOMAKE.
511 # We support both call styles for the transition. After
512 # the next Automake release, Autoconf can make the AC_INIT
513 # arguments mandatory, and then we can depend on a new Autoconf
514 # release and drop the old call support.
515 AC_DEFUN([AM_INIT_AUTOMAKE],
516 [AC_PREREQ([2.58])dnl
517 dnl Autoconf wants to disallow AM_ names. We explicitly allow
518 dnl the ones we care about.
519 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
520 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
521 AC_REQUIRE([AC_PROG_INSTALL])dnl
522 # test to see if srcdir already configured
523 if test "`cd $srcdir && pwd`" != "`pwd`" &&
524 test -f $srcdir/config.status; then
525 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
528 # test whether we have cygpath
529 if test -z "$CYGPATH_W"; then
530 if (cygpath --version) >/dev/null 2>/dev/null; then
531 CYGPATH_W='cygpath -w'
536 AC_SUBST([CYGPATH_W])
538 # Define the identity of the package.
539 dnl Distinguish between old-style and new-style calls.
541 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
542 AC_SUBST([PACKAGE], [$1])dnl
543 AC_SUBST([VERSION], [$2])],
544 [_AM_SET_OPTIONS([$1])dnl
545 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
546 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
548 _AM_IF_OPTION([no-define],,
549 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
550 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
552 # Some tools Automake needs.
553 AC_REQUIRE([AM_SANITY_CHECK])dnl
554 AC_REQUIRE([AC_ARG_PROGRAM])dnl
555 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
556 AM_MISSING_PROG(AUTOCONF, autoconf)
557 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
558 AM_MISSING_PROG(AUTOHEADER, autoheader)
559 AM_MISSING_PROG(MAKEINFO, makeinfo)
560 AM_MISSING_PROG(AMTAR, tar)
562 AM_PROG_INSTALL_STRIP
563 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
564 # We need awk for the "check" target. The system "awk" is bad on
566 AC_REQUIRE([AC_PROG_AWK])dnl
567 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
568 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
570 _AM_IF_OPTION([no-dependencies],,
571 [AC_PROVIDE_IFELSE([AC_PROG_CC],
572 [_AM_DEPENDENCIES(CC)],
573 [define([AC_PROG_CC],
574 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
575 AC_PROVIDE_IFELSE([AC_PROG_CXX],
576 [_AM_DEPENDENCIES(CXX)],
577 [define([AC_PROG_CXX],
578 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
583 # When config.status generates a header, we must update the stamp-h file.
584 # This file resides in the same directory as the config header
585 # that is generated. The stamp files are numbered to have different names.
587 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
588 # loop where config.status creates the headers, so we can generate
589 # our stamp files there.
590 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
591 [# Compute $1's index in $config_headers.
593 for _am_header in $config_headers :; do
598 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
601 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
605 # Define $install_sh.
607 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
609 # This program is free software; you can redistribute it and/or modify
610 # it under the terms of the GNU General Public License as published by
611 # the Free Software Foundation; either version 2, or (at your option)
614 # This program is distributed in the hope that it will be useful,
615 # but WITHOUT ANY WARRANTY; without even the implied warranty of
616 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
617 # GNU General Public License for more details.
619 # You should have received a copy of the GNU General Public License
620 # along with this program; if not, write to the Free Software
621 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
624 AC_DEFUN([AM_PROG_INSTALL_SH],
625 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
626 install_sh=${install_sh-"$am_aux_dir/install-sh"}
627 AC_SUBST(install_sh)])
630 # Copyright (C) 2003 Free Software Foundation, Inc.
632 # This program is free software; you can redistribute it and/or modify
633 # it under the terms of the GNU General Public License as published by
634 # the Free Software Foundation; either version 2, or (at your option)
637 # This program is distributed in the hope that it will be useful,
638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
640 # GNU General Public License for more details.
642 # You should have received a copy of the GNU General Public License
643 # along with this program; if not, write to the Free Software
644 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
649 # Check whether the underlying file-system supports filenames
650 # with a leading dot. For instance MS-DOS doesn't.
651 AC_DEFUN([AM_SET_LEADING_DOT],
652 [rm -rf .tst 2>/dev/null
653 mkdir .tst 2>/dev/null
654 if test -d .tst; then
659 rmdir .tst 2>/dev/null
660 AC_SUBST([am__leading_dot])])
663 # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
664 # Free Software Foundation, Inc.
666 # This program is free software; you can redistribute it and/or modify
667 # it under the terms of the GNU General Public License as published by
668 # the Free Software Foundation; either version 2, or (at your option)
671 # This program is distributed in the hope that it will be useful,
672 # but WITHOUT ANY WARRANTY; without even the implied warranty of
673 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
674 # GNU General Public License for more details.
676 # You should have received a copy of the GNU General Public License
677 # along with this program; if not, write to the Free Software
678 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
685 # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
686 # "missing" invocation, for better error output.
687 AC_DEFUN([AM_PROG_LEX],
689 AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
690 AC_REQUIRE([AC_PROG_LEX])dnl
691 if test "$LEX" = :; then
692 LEX=${am_missing_run}flex
695 # Add --enable-maintainer-mode option to configure.
698 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004
699 # Free Software Foundation, Inc.
701 # This program is free software; you can redistribute it and/or modify
702 # it under the terms of the GNU General Public License as published by
703 # the Free Software Foundation; either version 2, or (at your option)
706 # This program is distributed in the hope that it will be useful,
707 # but WITHOUT ANY WARRANTY; without even the implied warranty of
708 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
709 # GNU General Public License for more details.
711 # You should have received a copy of the GNU General Public License
712 # along with this program; if not, write to the Free Software
713 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
718 AC_DEFUN([AM_MAINTAINER_MODE],
719 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
720 dnl maintainer-mode is disabled by default
721 AC_ARG_ENABLE(maintainer-mode,
722 [ --enable-maintainer-mode enable make rules and dependencies not useful
723 (and sometimes confusing) to the casual installer],
724 USE_MAINTAINER_MODE=$enableval,
725 USE_MAINTAINER_MODE=no)
726 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
727 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
728 MAINT=$MAINTAINER_MODE_TRUE
733 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
735 # Check to see how 'make' treats includes. -*- Autoconf -*-
737 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
739 # This program is free software; you can redistribute it and/or modify
740 # it under the terms of the GNU General Public License as published by
741 # the Free Software Foundation; either version 2, or (at your option)
744 # This program is distributed in the hope that it will be useful,
745 # but WITHOUT ANY WARRANTY; without even the implied warranty of
746 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
747 # GNU General Public License for more details.
749 # You should have received a copy of the GNU General Public License
750 # along with this program; if not, write to the Free Software
751 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
758 # Check to see how make treats includes.
759 AC_DEFUN([AM_MAKE_INCLUDE],
760 [am_make=${MAKE-make}
761 cat > confinc << 'END'
766 # If we don't find an include directive, just comment out the code.
767 AC_MSG_CHECKING([for style of include used by $am_make])
771 # First try GNU make style include.
772 echo "include confinc" > confmf
773 # We grep out `Entering directory' and `Leaving directory'
774 # messages which can occur if `w' ends up in MAKEFLAGS.
775 # In particular we don't look at `^make:' because GNU make might
776 # be invoked under some other name (usually "gmake"), in which
777 # case it prints its new name instead of `make'.
778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
783 # Now try BSD make style include.
784 if test "$am__include" = "#"; then
785 echo '.include "confinc"' > confmf
786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
792 AC_SUBST([am__include])
793 AC_SUBST([am__quote])
794 AC_MSG_RESULT([$_am_result])
801 # Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
803 # This program is free software; you can redistribute it and/or modify
804 # it under the terms of the GNU General Public License as published by
805 # the Free Software Foundation; either version 2, or (at your option)
808 # This program is distributed in the hope that it will be useful,
809 # but WITHOUT ANY WARRANTY; without even the implied warranty of
810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
811 # GNU General Public License for more details.
813 # You should have received a copy of the GNU General Public License
814 # along with this program; if not, write to the Free Software
815 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
820 # AM_MISSING_PROG(NAME, PROGRAM)
821 # ------------------------------
822 AC_DEFUN([AM_MISSING_PROG],
823 [AC_REQUIRE([AM_MISSING_HAS_RUN])
824 $1=${$1-"${am_missing_run}$2"}
830 # Define MISSING if not defined so far and test if it supports --run.
831 # If it does, set am_missing_run to use it, otherwise, to nothing.
832 AC_DEFUN([AM_MISSING_HAS_RUN],
833 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
834 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
835 # Use eval to expand $SHELL
836 if eval "$MISSING --run true"; then
837 am_missing_run="$MISSING --run "
840 AC_MSG_WARN([`missing' script is too old or missing])
846 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
848 # Copyright (C) 2003, 2004 Free Software Foundation, Inc.
850 # This program is free software; you can redistribute it and/or modify
851 # it under the terms of the GNU General Public License as published by
852 # the Free Software Foundation; either version 2, or (at your option)
855 # This program is distributed in the hope that it will be useful,
856 # but WITHOUT ANY WARRANTY; without even the implied warranty of
857 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
858 # GNU General Public License for more details.
860 # You should have received a copy of the GNU General Public License
861 # along with this program; if not, write to the Free Software
862 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
865 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
866 # created by `make install' are always world readable, even if the
867 # installer happens to have an overly restrictive umask (e.g. 077).
868 # This was a mistake. There are at least two reasons why we must not
870 # - it causes special bits like SGID to be ignored,
871 # - it may be too restrictive (some setups expect 775 directories).
873 # Do not use -m 0755 and let people choose whatever they expect by
875 AC_DEFUN([AM_PROG_MKDIR_P],
876 [if mkdir -p -- . 2>/dev/null; then
877 # Keeping the `.' argument allows $(mkdir_p) to be used without
878 # argument. Indeed, we sometimes output rules like
879 # $(mkdir_p) $(somedir)
880 # where $(somedir) is conditionally defined.
881 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
882 # expensive solution, as it forces Make to start a sub-shell.)
883 mkdir_p='mkdir -p -- .'
885 # On NextStep and OpenStep, the `mkdir' command does not
886 # recognize any option. It will interpret all options as
887 # directories to create, and then abort because `.' already
891 test -d $d && rmdir $d
893 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
894 if test -f "$ac_aux_dir/mkinstalldirs"; then
895 mkdir_p='$(mkinstalldirs)'
897 mkdir_p='$(install_sh) -d'
900 AC_SUBST([mkdir_p])])
902 # Helper functions for option handling. -*- Autoconf -*-
904 # Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
906 # This program is free software; you can redistribute it and/or modify
907 # it under the terms of the GNU General Public License as published by
908 # the Free Software Foundation; either version 2, or (at your option)
911 # This program is distributed in the hope that it will be useful,
912 # but WITHOUT ANY WARRANTY; without even the implied warranty of
913 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
914 # GNU General Public License for more details.
916 # You should have received a copy of the GNU General Public License
917 # along with this program; if not, write to the Free Software
918 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
923 # _AM_MANGLE_OPTION(NAME)
924 # -----------------------
925 AC_DEFUN([_AM_MANGLE_OPTION],
926 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
928 # _AM_SET_OPTION(NAME)
929 # ------------------------------
930 # Set option NAME. Presently that only means defining a flag for this option.
931 AC_DEFUN([_AM_SET_OPTION],
932 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
934 # _AM_SET_OPTIONS(OPTIONS)
935 # ----------------------------------
936 # OPTIONS is a space-separated list of Automake options.
937 AC_DEFUN([_AM_SET_OPTIONS],
938 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
940 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
941 # -------------------------------------------
942 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
943 AC_DEFUN([_AM_IF_OPTION],
944 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
947 # Check to make sure that the build environment is sane.
950 # Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
952 # This program is free software; you can redistribute it and/or modify
953 # it under the terms of the GNU General Public License as published by
954 # the Free Software Foundation; either version 2, or (at your option)
957 # This program is distributed in the hope that it will be useful,
958 # but WITHOUT ANY WARRANTY; without even the implied warranty of
959 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
960 # GNU General Public License for more details.
962 # You should have received a copy of the GNU General Public License
963 # along with this program; if not, write to the Free Software
964 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
971 AC_DEFUN([AM_SANITY_CHECK],
972 [AC_MSG_CHECKING([whether build environment is sane])
975 echo timestamp > conftest.file
976 # Do `set' in a subshell so we don't clobber the current shell's
977 # arguments. Must try -L first in case configure is actually a
978 # symlink; some systems play weird games with the mod time of symlinks
979 # (eg FreeBSD returns the mod time of the symlink's containing
982 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
983 if test "$[*]" = "X"; then
985 set X `ls -t $srcdir/configure conftest.file`
988 if test "$[*]" != "X $srcdir/configure conftest.file" \
989 && test "$[*]" != "X conftest.file $srcdir/configure"; then
991 # If neither matched, then we have a broken ls. This can happen
992 # if, for instance, CONFIG_SHELL is bash and it inherits a
993 # broken ls alias from the environment. This has actually
994 # happened. Such a system could not be considered "sane".
995 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
996 alias in your environment])
999 test "$[2]" = conftest.file
1005 AC_MSG_ERROR([newly created file is older than distributed files!
1006 Check your system clock])
1008 AC_MSG_RESULT(yes)])
1010 # AM_PROG_INSTALL_STRIP
1012 # Copyright (C) 2001, 2003 Free Software Foundation, Inc.
1014 # This program is free software; you can redistribute it and/or modify
1015 # it under the terms of the GNU General Public License as published by
1016 # the Free Software Foundation; either version 2, or (at your option)
1017 # any later version.
1019 # This program is distributed in the hope that it will be useful,
1020 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1021 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1022 # GNU General Public License for more details.
1024 # You should have received a copy of the GNU General Public License
1025 # along with this program; if not, write to the Free Software
1026 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1029 # One issue with vendor `install' (even GNU) is that you can't
1030 # specify the program used to strip binaries. This is especially
1031 # annoying in cross-compiling environments, where the build's strip
1032 # is unlikely to handle the host's binaries.
1033 # Fortunately install-sh will honor a STRIPPROG variable, so we
1034 # always use install-sh in `make install-strip', and initialize
1035 # STRIPPROG with the value of the STRIP variable (set by the user).
1036 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1037 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1038 # Installed binaries are usually stripped using `strip' when the user
1039 # run `make install-strip'. However `strip' might not be the right
1040 # tool to use in cross-compilation environments, therefore Automake
1041 # will honor the `STRIP' environment variable to overrule this program.
1042 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1043 if test "$cross_compiling" != no; then
1044 AC_CHECK_TOOL([STRIP], [strip], :)
1046 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1047 AC_SUBST([INSTALL_STRIP_PROGRAM])])