1 # aclocal.m4 generated automatically by aclocal 1.6 -*- 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
15 AC_MSG_CHECKING(for STL versions)
16 AC_CACHE_VAL(ac_cv_stl,[
18 AC_TRY_COMPILE([#include <iostream>], [
21 cout.rdbuf()->pubsetbuf(bbuuff, 5120); ],
29 if test x"${ac_cv_stl}" != x"v2" ; then
37 AC_DEFUN(DJ_AC_PATH_TCLSH, [
38 dirlist=".. ../../ ../../../ ../../../../ ../../../../../ ../../../../../../ ../
39 ../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../..
42 AC_MSG_CHECKING(for the tclsh program)
43 AC_ARG_WITH(tclinclude, [ --with-tclinclude directory where tcl header
44 s are], with_tclinclude=${withval})
45 AC_CACHE_VAL(ac_cv_path_tclsh,[
46 dnl first check to see if --with-itclinclude was specified
47 if test x"${with_tclinclude}" != x ; then
48 if test -f ${with_tclinclude}/tclsh ; then
49 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
50 elif test -f ${with_tclinclude}/src/tclsh ; then
51 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
53 AC_MSG_ERROR([${with_tclinclude} directory doesn't contain tclsh])
58 dnl next check in private source directory
59 dnl since ls returns lowest version numbers first, reverse its output
60 if test x"${ac_cv_path_tclsh}" = x ; then
61 dnl find the top level Itcl source directory
63 if test -n "`ls -dr $srcdir/$i/tcl* 2>/dev/null`" ; then
69 dnl find the exact Itcl source dir. We do it this way, cause there
70 dnl might be multiple version of Itcl, and we want the most recent one.
71 for i in `ls -dr $tclpath/tcl* 2>/dev/null ` ; do
72 if test -f $i/src/tclsh ; then
73 ac_cv_path_tclsh=`(cd $i/src; pwd)`/tclsh
79 dnl see if one is installed
80 if test x"${ac_cv_path_tclsh}" = x ; then
82 AC_PATH_PROG(tclsh, tclsh)
84 AC_MSG_RESULT(${ac_cv_path_tclsh})
86 TCLSH="${ac_cv_path_tclsh}"
91 AC_DEFUN(DJ_AC_PATH_DOCBOOK, [
92 dirlist=".. ../../ ../../.. ../../../.. ../../../../.. ../../../../../.. ../../../../../../.. ../../../../../../../.. ../../../../../../../../.. ../../../../../../../../../.."
93 AC_MSG_CHECKING(for docbook tools)
94 AC_ARG_WITH(oskith, [ --with-docbook directory where the db2 sgml tools are], with_docbook=${withval})
95 AC_CACHE_VAL(ac_cv_c_docbook,[
96 dnl first check to see if --with-docbook was specified
97 if test x"${with_docbook}" != x ; then
98 if test -f ${with_docbook}/db2html ; then
99 ac_cv_c_docbook=`(cd ${with_docbook}; pwd)`
101 AC_MSG_ERROR([${with_docbook} directory doesn't contain SGML tools])
105 if test x"${ac_cv_c_docbook}" = x ; then
106 for i in $ac_default_prefix/bin /usr/local/bin $OSKITHDIR/../bin /usr/bin /bin /opt /home; do
107 dnl See is we have an SGML tool in that directory.
108 if test -f $i/db2html ; then
115 if test x"${ac_cv_c_docbook}" = x ; then
118 DOCBOOK="${ac_cv_c_docbook}"
119 AC_MSG_RESULT(${ac_cv_c_docbook})
126 # Do all the work for Automake. -*- Autoconf -*-
128 # This macro actually does too much some checks are only needed if
129 # your package does certain things. But this isn't really a big deal.
131 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
132 # Free Software Foundation, Inc.
134 # This program is free software; you can redistribute it and/or modify
135 # it under the terms of the GNU General Public License as published by
136 # the Free Software Foundation; either version 2, or (at your option)
139 # This program is distributed in the hope that it will be useful,
140 # but WITHOUT ANY WARRANTY; without even the implied warranty of
141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
142 # GNU General Public License for more details.
144 # You should have received a copy of the GNU General Public License
145 # along with this program; if not, write to the Free Software
146 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
151 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
152 # written in clear, in which case automake, when reading aclocal.m4,
153 # will think it sees a *use*, and therefore will trigger all it's
154 # C support machinery. Also note that it means that autoscan, seeing
155 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
160 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
161 # the ones we care about.
162 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
164 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
165 # AM_INIT_AUTOMAKE([OPTIONS])
166 # -----------------------------------------------
167 # The call with PACKAGE and VERSION arguments is the old style
168 # call (pre autoconf-2.50), which is being phased out. PACKAGE
169 # and VERSION should now be passed to AC_INIT and removed from
170 # the call to AM_INIT_AUTOMAKE.
171 # We support both call styles for the transition. After
172 # the next Automake release, Autoconf can make the AC_INIT
173 # arguments mandatory, and then we can depend on a new Autoconf
174 # release and drop the old call support.
175 AC_DEFUN([AM_INIT_AUTOMAKE],
176 [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
177 AC_REQUIRE([AC_PROG_INSTALL])dnl
178 # test to see if srcdir already configured
179 if test "`cd $srcdir && pwd`" != "`pwd`" &&
180 test -f $srcdir/config.status; then
181 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
184 # Define the identity of the package.
185 dnl Distinguish between old-style and new-style calls.
187 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
188 AC_SUBST([PACKAGE], [$1])dnl
189 AC_SUBST([VERSION], [$2])],
190 [_AM_SET_OPTIONS([$1])dnl
191 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])dnl
192 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])])dnl
194 _AM_IF_OPTION([no-define],,
195 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
196 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
198 # Some tools Automake needs.
199 AC_REQUIRE([AM_SANITY_CHECK])dnl
200 AC_REQUIRE([AC_ARG_PROGRAM])dnl
201 AM_MISSING_PROG(ACLOCAL, "aclocal-${am__api_version}")
202 AM_MISSING_PROG(AUTOCONF, autoconf)
203 AM_MISSING_PROG(AUTOMAKE, "automake-${am__api_version}")
204 AM_MISSING_PROG(AUTOHEADER, autoheader)
205 AM_MISSING_PROG(MAKEINFO, makeinfo)
206 AM_MISSING_PROG(AMTAR, tar)
208 AM_PROG_INSTALL_STRIP
209 # We need awk for the "check" target. The system "awk" is bad on
211 AC_REQUIRE([AC_PROG_AWK])dnl
212 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
214 _AM_IF_OPTION([no-dependencies],,
215 [AC_PROVIDE_IFELSE([AC_PROG_][CC],
216 [_AM_DEPENDENCIES(CC)],
217 [define([AC_PROG_][CC],
218 defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl
219 AC_PROVIDE_IFELSE([AC_PROG_][CXX],
220 [_AM_DEPENDENCIES(CXX)],
221 [define([AC_PROG_][CXX],
222 defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl
226 # Copyright 2002 Free Software Foundation, Inc.
228 # This program is free software; you can redistribute it and/or modify
229 # it under the terms of the GNU General Public License as published by
230 # the Free Software Foundation; either version 2, or (at your option)
233 # This program is distributed in the hope that it will be useful,
234 # but WITHOUT ANY WARRANTY; without even the implied warranty of
235 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
236 # GNU General Public License for more details.
238 # You should have received a copy of the GNU General Public License
239 # along with this program; if not, write to the Free Software
240 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
242 # AM_AUTOMAKE_VERSION(VERSION)
243 # ----------------------------
244 # Automake X.Y traces this macro to ensure aclocal.m4 has been
245 # generated from the m4 files accompanying Automake X.Y.
246 AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.6"])
248 # AM_SET_CURRENT_AUTOMAKE_VERSION
249 # -------------------------------
250 # Call AM_AUTOMAKE_VERSION so it can be traced.
251 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
252 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
253 [AM_AUTOMAKE_VERSION([1.6])])
255 # Helper functions for option handling. -*- Autoconf -*-
257 # Copyright 2001, 2002 Free Software Foundation, Inc.
259 # This program is free software; you can redistribute it and/or modify
260 # it under the terms of the GNU General Public License as published by
261 # the Free Software Foundation; either version 2, or (at your option)
264 # This program is distributed in the hope that it will be useful,
265 # but WITHOUT ANY WARRANTY; without even the implied warranty of
266 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
267 # GNU General Public License for more details.
269 # You should have received a copy of the GNU General Public License
270 # along with this program; if not, write to the Free Software
271 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
276 # _AM_MANGLE_OPTION(NAME)
277 # -----------------------
278 AC_DEFUN([_AM_MANGLE_OPTION],
279 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
281 # _AM_SET_OPTION(NAME)
282 # ------------------------------
283 # Set option NAME. Presently that only means defining a flag for this option.
284 AC_DEFUN([_AM_SET_OPTION],
285 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
287 # _AM_SET_OPTIONS(OPTIONS)
288 # ----------------------------------
289 # OPTIONS is a space-separated list of Automake options.
290 AC_DEFUN([_AM_SET_OPTIONS],
291 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
293 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
294 # -------------------------------------------
295 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
296 AC_DEFUN([_AM_IF_OPTION],
297 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
300 # Check to make sure that the build environment is sane.
303 # Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
305 # This program is free software; you can redistribute it and/or modify
306 # it under the terms of the GNU General Public License as published by
307 # the Free Software Foundation; either version 2, or (at your option)
310 # This program is distributed in the hope that it will be useful,
311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
313 # GNU General Public License for more details.
315 # You should have received a copy of the GNU General Public License
316 # along with this program; if not, write to the Free Software
317 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
324 AC_DEFUN([AM_SANITY_CHECK],
325 [AC_MSG_CHECKING([whether build environment is sane])
328 echo timestamp > conftest.file
329 # Do `set' in a subshell so we don't clobber the current shell's
330 # arguments. Must try -L first in case configure is actually a
331 # symlink; some systems play weird games with the mod time of symlinks
332 # (eg FreeBSD returns the mod time of the symlink's containing
335 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
336 if test "$[*]" = "X"; then
338 set X `ls -t $srcdir/configure conftest.file`
341 if test "$[*]" != "X $srcdir/configure conftest.file" \
342 && test "$[*]" != "X conftest.file $srcdir/configure"; then
344 # If neither matched, then we have a broken ls. This can happen
345 # if, for instance, CONFIG_SHELL is bash and it inherits a
346 # broken ls alias from the environment. This has actually
347 # happened. Such a system could not be considered "sane".
348 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
349 alias in your environment])
352 test "$[2]" = conftest.file
358 AC_MSG_ERROR([newly created file is older than distributed files!
359 Check your system clock])
366 # Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
368 # This program is free software; you can redistribute it and/or modify
369 # it under the terms of the GNU General Public License as published by
370 # the Free Software Foundation; either version 2, or (at your option)
373 # This program is distributed in the hope that it will be useful,
374 # but WITHOUT ANY WARRANTY; without even the implied warranty of
375 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376 # GNU General Public License for more details.
378 # You should have received a copy of the GNU General Public License
379 # along with this program; if not, write to the Free Software
380 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
385 # AM_MISSING_PROG(NAME, PROGRAM)
386 # ------------------------------
387 AC_DEFUN([AM_MISSING_PROG],
388 [AC_REQUIRE([AM_MISSING_HAS_RUN])
389 $1=${$1-"${am_missing_run}$2"}
395 # Define MISSING if not defined so far and test if it supports --run.
396 # If it does, set am_missing_run to use it, otherwise, to nothing.
397 AC_DEFUN([AM_MISSING_HAS_RUN],
398 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
399 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
400 # Use eval to expand $SHELL
401 if eval "$MISSING --run true"; then
402 am_missing_run="$MISSING --run "
405 AC_MSG_WARN([`missing' script is too old or missing])
411 # Copyright 2001 Free Software Foundation, Inc.
413 # This program is free software; you can redistribute it and/or modify
414 # it under the terms of the GNU General Public License as published by
415 # the Free Software Foundation; either version 2, or (at your option)
418 # This program is distributed in the hope that it will be useful,
419 # but WITHOUT ANY WARRANTY; without even the implied warranty of
420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
421 # GNU General Public License for more details.
423 # You should have received a copy of the GNU General Public License
424 # along with this program; if not, write to the Free Software
425 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
428 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
429 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
430 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
432 # Of course, Automake must honor this variable whenever it calls a
433 # tool from the auxiliary directory. The problem is that $srcdir (and
434 # therefore $ac_aux_dir as well) can be either absolute or relative,
435 # depending on how configure is run. This is pretty annoying, since
436 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
437 # source directory, any form will work fine, but in subdirectories a
438 # relative path needs to be adjusted first.
440 # $ac_aux_dir/missing
441 # fails when called from a subdirectory if $ac_aux_dir is relative
442 # $top_srcdir/$ac_aux_dir/missing
443 # fails if $ac_aux_dir is absolute,
444 # fails when called from a subdirectory in a VPATH build with
445 # a relative $ac_aux_dir
447 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
448 # are both prefixed by $srcdir. In an in-source build this is usually
449 # harmless because $srcdir is `.', but things will broke when you
450 # start a VPATH build or use an absolute $srcdir.
452 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
453 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
454 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
455 # and then we would define $MISSING as
456 # MISSING="\${SHELL} $am_aux_dir/missing"
457 # This will work as long as MISSING is not called from configure, because
458 # unfortunately $(top_srcdir) has no meaning in configure.
459 # However there are other variables, like CC, which are often used in
460 # configure, and could therefore not use this "fixed" $ac_aux_dir.
462 # Another solution, used here, is to always expand $ac_aux_dir to an
463 # absolute PATH. The drawback is that using absolute paths prevent a
464 # configured tree to be moved without reconfiguration.
466 # Rely on autoconf to set up CDPATH properly.
469 AC_DEFUN([AM_AUX_DIR_EXPAND], [
470 # expand $ac_aux_dir to an absolute path
471 am_aux_dir=`cd $ac_aux_dir && pwd`
476 # Define $install_sh.
478 # Copyright 2001 Free Software Foundation, Inc.
480 # This program is free software; you can redistribute it and/or modify
481 # it under the terms of the GNU General Public License as published by
482 # the Free Software Foundation; either version 2, or (at your option)
485 # This program is distributed in the hope that it will be useful,
486 # but WITHOUT ANY WARRANTY; without even the implied warranty of
487 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
488 # GNU General Public License for more details.
490 # You should have received a copy of the GNU General Public License
491 # along with this program; if not, write to the Free Software
492 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
495 AC_DEFUN([AM_PROG_INSTALL_SH],
496 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
497 install_sh=${install_sh-"$am_aux_dir/install-sh"}
498 AC_SUBST(install_sh)])
500 # AM_PROG_INSTALL_STRIP
502 # Copyright 2001 Free Software Foundation, Inc.
504 # This program is free software; you can redistribute it and/or modify
505 # it under the terms of the GNU General Public License as published by
506 # the Free Software Foundation; either version 2, or (at your option)
509 # This program is distributed in the hope that it will be useful,
510 # but WITHOUT ANY WARRANTY; without even the implied warranty of
511 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
512 # GNU General Public License for more details.
514 # You should have received a copy of the GNU General Public License
515 # along with this program; if not, write to the Free Software
516 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
519 # One issue with vendor `install' (even GNU) is that you can't
520 # specify the program used to strip binaries. This is especially
521 # annoying in cross-compiling environments, where the build's strip
522 # is unlikely to handle the host's binaries.
523 # Fortunately install-sh will honor a STRIPPROG variable, so we
524 # always use install-sh in `make install-strip', and initialize
525 # STRIPPROG with the value of the STRIP variable (set by the user).
526 AC_DEFUN([AM_PROG_INSTALL_STRIP],
527 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
528 # Installed binaries are usually stripped using `strip' when the user
529 # run `make install-strip'. However `strip' might not be the right
530 # tool to use in cross-compilation environments, therefore Automake
531 # will honor the `STRIP' environment variable to overrule this program.
532 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
533 if test "$cross_compiling" != no; then
534 AC_CHECK_TOOL([STRIP], [strip], :)
536 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
537 AC_SUBST([INSTALL_STRIP_PROGRAM])])
539 # serial 4 -*- Autoconf -*-
541 # Copyright 1999, 2000, 2001 Free Software Foundation, Inc.
543 # This program is free software; you can redistribute it and/or modify
544 # it under the terms of the GNU General Public License as published by
545 # the Free Software Foundation; either version 2, or (at your option)
548 # This program is distributed in the hope that it will be useful,
549 # but WITHOUT ANY WARRANTY; without even the implied warranty of
550 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
551 # GNU General Public License for more details.
553 # You should have received a copy of the GNU General Public License
554 # along with this program; if not, write to the Free Software
555 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
559 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
560 # written in clear, in which case automake, when reading aclocal.m4,
561 # will think it sees a *use*, and therefore will trigger all it's
562 # C support machinery. Also note that it means that autoscan, seeing
563 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
567 # _AM_DEPENDENCIES(NAME)
568 # ----------------------
569 # See how the compiler implements dependency checking.
570 # NAME is "CC", "CXX", "GCJ", or "OBJC".
571 # We try a few techniques and use that to set a single cache variable.
573 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
574 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
575 # dependency, and given that the user is not expected to run this macro,
576 # just rely on AC_PROG_CC.
577 AC_DEFUN([_AM_DEPENDENCIES],
578 [AC_REQUIRE([AM_SET_DEPDIR])dnl
579 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
580 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
581 AC_REQUIRE([AM_DEP_TRACK])dnl
583 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
584 [$1], CXX, [depcc="$CXX" am_compiler_list=],
585 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc']
586 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
587 [depcc="$$1" am_compiler_list=])
589 AC_CACHE_CHECK([dependency style of $depcc],
590 [am_cv_$1_dependencies_compiler_type],
591 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
592 # We make a subdir and do the tests there. Otherwise we can end up
593 # making bogus files that we don't know about and never remove. For
594 # instance it was reported that on HP-UX the gcc test will end up
595 # making a dummy file named `D' -- because `-MD' means `put the output
598 # Copy depcomp to subdir because otherwise we won't find it if we're
599 # using a relative directory.
600 cp "$am_depcomp" conftest.dir
603 am_cv_$1_dependencies_compiler_type=none
604 if test "$am_compiler_list" = ""; then
605 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
607 for depmode in $am_compiler_list; do
608 # We need to recreate these files for each test, as the compiler may
609 # overwrite some of them when testing with obscure command lines.
610 # This happens at least with the AIX C compiler.
611 echo '#include "conftest.h"' > conftest.c
612 echo 'int i;' > conftest.h
613 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
617 # after this tag, mechanisms are not by side-effect, so they'll
618 # only be used when explicitly requested
619 if test "x$enable_dependency_tracking" = xyes; then
627 # We check with `-c' and `-o' for the sake of the "dashmstdout"
628 # mode. It turns out that the SunPro C++ compiler does not properly
629 # handle `-M -o', and we need to detect this.
630 if depmode=$depmode \
631 source=conftest.c object=conftest.o \
632 depfile=conftest.Po tmpdepfile=conftest.TPo \
633 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
634 grep conftest.h conftest.Po > /dev/null 2>&1 &&
635 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
636 am_cv_$1_dependencies_compiler_type=$depmode
644 am_cv_$1_dependencies_compiler_type=none
647 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
653 # Choose a directory name for dependency files.
654 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
655 AC_DEFUN([AM_SET_DEPDIR],
656 [rm -f .deps 2>/dev/null
657 mkdir .deps 2>/dev/null
658 if test -d .deps; then
661 # MS-DOS does not allow filenames that begin with a dot.
664 rmdir .deps 2>/dev/null
671 AC_DEFUN([AM_DEP_TRACK],
672 [AC_ARG_ENABLE(dependency-tracking,
673 [ --disable-dependency-tracking Speeds up one-time builds
674 --enable-dependency-tracking Do not reject slow dependency extractors])
675 if test "x$enable_dependency_tracking" != xno; then
676 am_depcomp="$ac_aux_dir/depcomp"
679 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
680 AC_SUBST([AMDEPBACKSLASH])
683 # Generate code to set up dependency tracking. -*- Autoconf -*-
685 # Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
687 # This program is free software; you can redistribute it and/or modify
688 # it under the terms of the GNU General Public License as published by
689 # the Free Software Foundation; either version 2, or (at your option)
692 # This program is distributed in the hope that it will be useful,
693 # but WITHOUT ANY WARRANTY; without even the implied warranty of
694 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
695 # GNU General Public License for more details.
697 # You should have received a copy of the GNU General Public License
698 # along with this program; if not, write to the Free Software
699 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
704 # _AM_OUTPUT_DEPENDENCY_COMMANDS
705 # ------------------------------
706 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
707 [for mf in $CONFIG_FILES; do
708 # Strip MF so we end up with the name of the file.
709 mf=`echo "$mf" | sed -e 's/:.*$//'`
710 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then
711 dirpart=`AS_DIRNAME("$mf")`
715 grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
716 # Extract the definition of DEP_FILES from the Makefile without
718 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
719 test -z "$DEPDIR" && continue
720 # When using ansi2knr, U may be empty or an underscore; expand it
721 U=`sed -n -e '/^U = / s///p' < "$mf"`
722 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
723 # We invoke sed twice because it is the simplest approach to
724 # changing $(DEPDIR) to its actual value in the expansion.
725 for file in `sed -n -e '
726 /^DEP_FILES = .*\\\\$/ {
735 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
736 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
737 # Make sure the directory exists.
738 test -f "$dirpart/$file" && continue
739 fdir=`AS_DIRNAME(["$file"])`
740 AS_MKDIR_P([$dirpart/$fdir])
741 # echo "creating $dirpart/$file"
742 echo '# dummy' > "$dirpart/$file"
745 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
748 # AM_OUTPUT_DEPENDENCY_COMMANDS
749 # -----------------------------
750 # This macro should only be invoked once -- use via AC_REQUIRE.
752 # This code is only required when automatic dependency tracking
753 # is enabled. FIXME. This creates each `.P' file that we will
754 # need in order to bootstrap the dependency handling code.
755 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
756 [AC_CONFIG_COMMANDS([depfiles],
757 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
758 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
761 # Copyright 2001 Free Software Foundation, Inc. -*- Autoconf -*-
763 # This program is free software; you can redistribute it and/or modify
764 # it under the terms of the GNU General Public License as published by
765 # the Free Software Foundation; either version 2, or (at your option)
768 # This program is distributed in the hope that it will be useful,
769 # but WITHOUT ANY WARRANTY; without even the implied warranty of
770 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
771 # GNU General Public License for more details.
773 # You should have received a copy of the GNU General Public License
774 # along with this program; if not, write to the Free Software
775 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
782 # Check to see how make treats includes.
783 AC_DEFUN([AM_MAKE_INCLUDE],
784 [am_make=${MAKE-make}
785 cat > confinc << 'END'
789 # If we don't find an include directive, just comment out the code.
790 AC_MSG_CHECKING([for style of include used by $am_make])
794 # First try GNU make style include.
795 echo "include confinc" > confmf
796 # We grep out `Entering directory' and `Leaving directory'
797 # messages which can occur if `w' ends up in MAKEFLAGS.
798 # In particular we don't look at `^make:' because GNU make might
799 # be invoked under some other name (usually "gmake"), in which
800 # case it prints its new name instead of `make'.
801 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
806 # Now try BSD make style include.
807 if test "$am__include" = "#"; then
808 echo '.include "confinc"' > confmf
809 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
815 AC_SUBST(am__include)
817 AC_MSG_RESULT($_am_result)
821 # AM_CONDITIONAL -*- Autoconf -*-
823 # Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
825 # This program is free software; you can redistribute it and/or modify
826 # it under the terms of the GNU General Public License as published by
827 # the Free Software Foundation; either version 2, or (at your option)
830 # This program is distributed in the hope that it will be useful,
831 # but WITHOUT ANY WARRANTY; without even the implied warranty of
832 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
833 # GNU General Public License for more details.
835 # You should have received a copy of the GNU General Public License
836 # along with this program; if not, write to the Free Software
837 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
844 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
845 # -------------------------------------
846 # Define a conditional.
847 AC_DEFUN([AM_CONDITIONAL],
848 [ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
849 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
859 AC_CONFIG_COMMANDS_PRE(
860 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
861 AC_MSG_ERROR([conditional \"$1\" was never defined.
862 Usually this means the macro was only invoked conditionally.])
865 # Add --enable-maintainer-mode option to configure.
868 # Copyright 1996, 1998, 2000, 2001 Free Software Foundation, Inc.
870 # This program is free software; you can redistribute it and/or modify
871 # it under the terms of the GNU General Public License as published by
872 # the Free Software Foundation; either version 2, or (at your option)
875 # This program is distributed in the hope that it will be useful,
876 # but WITHOUT ANY WARRANTY; without even the implied warranty of
877 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
878 # GNU General Public License for more details.
880 # You should have received a copy of the GNU General Public License
881 # along with this program; if not, write to the Free Software
882 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
887 AC_DEFUN([AM_MAINTAINER_MODE],
888 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
889 dnl maintainer-mode is disabled by default
890 AC_ARG_ENABLE(maintainer-mode,
891 [ --enable-maintainer-mode enable make rules and dependencies not useful
892 (and sometimes confusing) to the casual installer],
893 USE_MAINTAINER_MODE=$enableval,
894 USE_MAINTAINER_MODE=no)
895 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
896 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
897 MAINT=$MAINTAINER_MODE_TRUE