1 dnl aclocal.m4 generated automatically by aclocal 1.4
3 dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
4 dnl This file is free software; the Free Software Foundation
5 dnl gives unlimited permission to copy and/or distribute it,
6 dnl with or without modifications, as long as this notice is preserved.
8 dnl This program is distributed in the hope that it will be useful,
9 dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 dnl PARTICULAR PURPOSE.
13 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
14 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
15 # are probably using a cross compiler, which will not be able to fully
16 # link an executable. This should really be fixed in autoconf
19 AC_DEFUN(BOEHM_CONFIGURE,
21 dnl Default to --enable-multilib
22 AC_ARG_ENABLE(multilib,
23 [ --enable-multilib build many library versions (default)],
24 [case "${enableval}" in
27 *) AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
28 esac], [multilib=yes])dnl
30 dnl We may get other options which we don't document:
31 dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
33 if test "[$]{srcdir}" = "."; then
34 if test "[$]{with_target_subdir}" != "."; then
35 boehm_gc_basedir="[$]{srcdir}/[$]{with_multisrctop}../$1"
37 boehm_gc_basedir="[$]{srcdir}/[$]{with_multisrctop}$1"
40 boehm_gc_basedir="[$]{srcdir}/$1"
42 AC_SUBST(boehm_gc_basedir)
46 AM_INIT_AUTOMAKE(boehm-gc, 4.13a2, no-define)
48 # FIXME: We temporarily define our own version of AC_PROG_CC. This is
49 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS. We
50 # are probably using a cross compiler, which will not be able to fully
51 # link an executable. This should really be fixed in autoconf
54 AC_DEFUN(LIB_AC_PROG_CC,
55 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
56 AC_CHECK_PROG(CC, gcc, gcc)
57 if test -z "$CC"; then
58 AC_CHECK_PROG(CC, cc, cc, , , /usr/ucb/cc)
59 test -z "$CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH])
64 if test $ac_cv_prog_gcc = yes; then
66 dnl Check whether -g works, even if CFLAGS is set, in case the package
67 dnl plays around with CFLAGS (such as to build both debugging and
68 dnl normal versions of a library), tasteless as that idea is.
69 ac_test_CFLAGS="${CFLAGS+set}"
70 ac_save_CFLAGS="$CFLAGS"
73 if test "$ac_test_CFLAGS" = set; then
74 CFLAGS="$ac_save_CFLAGS"
75 elif test $ac_cv_prog_cc_g = yes; then
82 test "${CFLAGS+set}" = set || CFLAGS="-g"
88 # Likewise for AC_PROG_CXX.
89 AC_DEFUN(LIB_AC_PROG_CXX,
90 [AC_BEFORE([$0], [AC_PROG_CXXCPP])dnl
91 AC_CHECK_PROGS(CXX, $CCC c++ g++ gcc CC cxx cc++, gcc)
92 test -z "$CXX" && AC_MSG_ERROR([no acceptable c++ found in \$PATH])
96 if test $ac_cv_prog_gxx = yes; then
98 dnl Check whether -g works, even if CXXFLAGS is set, in case the package
99 dnl plays around with CXXFLAGS (such as to build both debugging and
100 dnl normal versions of a library), tasteless as that idea is.
101 ac_test_CXXFLAGS="${CXXFLAGS+set}"
102 ac_save_CXXFLAGS="$CXXFLAGS"
105 if test "$ac_test_CXXFLAGS" = set; then
106 CXXFLAGS="$ac_save_CXXFLAGS"
107 elif test $ac_cv_prog_cxx_g = yes; then
114 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
120 # AC_CHECK_TOOL does AC_REQUIRE (AC_CANONICAL_BUILD). If we don't
121 # run it explicitly here, it will be run implicitly before
122 # NEWLIB_CONFIGURE, which doesn't work because that means that it will
123 # be run before AC_CANONICAL_HOST.
126 AC_CHECK_TOOL(AS, as)
127 AC_CHECK_TOOL(AR, ar)
128 AC_CHECK_TOOL(RANLIB, ranlib, :)
134 # We need AC_EXEEXT to keep automake happy in cygnus mode. However,
135 # at least currently, we never actually build a program, so we never
136 # need to use $(EXEEXT). Moreover, the test for EXEEXT normally
137 # fails, because we are probably configuring with a cross compiler
138 # which can't create executables. So we include AC_EXEEXT to keep
139 # automake happy, but we don't execute it, since we don't care about
145 . [$]{boehm_gc_basedir}/configure.host
147 case [$]{boehm_gc_basedir} in
148 /* | [A-Za-z]:[/\\]*) boehm_gc_flagbasedir=[$]{boehm_gc_basedir} ;;
149 *) boehm_gc_flagbasedir='[$](top_builddir)/'[$]{boehm_gc_basedir} ;;
152 boehm_gc_cflags="[$]{boehm_gc_cflags} -I"'[$](top_builddir)'"/$1/targ-include -I[$]{boehm_gc_flagbasedir}/libc/include"
155 boehm_gc_cflags="[$]{boehm_gc_cflags} -I[$]{boehm_gc_flagbasedir}/../winsup/include"
159 boehm_gc_cflags="[$]{boehm_gc_cflags} -fno-builtin"
161 BOEHM_GC_CFLAGS=${boehm_gc_cflags}
162 AC_SUBST(BOEHM_GC_CFLAGS)
167 # Do all the work for Automake. This macro actually does too much --
168 # some checks are only needed if your package does certain things.
169 # But this isn't really a big deal.
174 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
176 AC_DEFUN(AM_INIT_AUTOMAKE,
177 [AC_REQUIRE([AC_PROG_INSTALL])
182 dnl test to see if srcdir already configured
183 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
184 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
187 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
188 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
189 AC_REQUIRE([AM_SANITY_CHECK])
190 AC_REQUIRE([AC_ARG_PROGRAM])
191 dnl FIXME This is truly gross.
192 missing_dir=`cd $ac_aux_dir && pwd`
193 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
194 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
195 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
196 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
197 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
198 AC_REQUIRE([AC_PROG_MAKE_SET])])
201 # Check to make sure that the build environment is sane.
204 AC_DEFUN(AM_SANITY_CHECK,
205 [AC_MSG_CHECKING([whether build environment is sane])
208 echo timestamp > conftestfile
209 # Do `set' in a subshell so we don't clobber the current shell's
210 # arguments. Must try -L first in case configure is actually a
211 # symlink; some systems play weird games with the mod time of symlinks
212 # (eg FreeBSD returns the mod time of the symlink's containing
215 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
216 if test "[$]*" = "X"; then
218 set X `ls -t $srcdir/configure conftestfile`
220 if test "[$]*" != "X $srcdir/configure conftestfile" \
221 && test "[$]*" != "X conftestfile $srcdir/configure"; then
223 # If neither matched, then we have a broken ls. This can happen
224 # if, for instance, CONFIG_SHELL is bash and it inherits a
225 # broken ls alias from the environment. This has actually
226 # happened. Such a system could not be considered "sane".
227 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
228 alias in your environment])
231 test "[$]2" = conftestfile
237 AC_MSG_ERROR([newly created file is older than distributed files!
238 Check your system clock])
243 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
244 dnl The program must properly implement --version.
245 AC_DEFUN(AM_MISSING_PROG,
246 [AC_MSG_CHECKING(for working $2)
247 # Run test in a subshell; some versions of sh will print an error if
248 # an executable is not found, even if stderr is redirected.
249 # Redirect stdin to placate older versions of autoconf. Sigh.
250 if ($2 --version) < /dev/null > /dev/null 2>&1; then
255 AC_MSG_RESULT(missing)
259 # Add --enable-maintainer-mode option to configure.
264 AC_DEFUN(AM_MAINTAINER_MODE,
265 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
266 dnl maintainer-mode is disabled by default
267 AC_ARG_ENABLE(maintainer-mode,
268 [ --enable-maintainer-mode enable make rules and dependencies not useful
269 (and sometimes confusing) to the casual installer],
270 USE_MAINTAINER_MODE=$enableval,
271 USE_MAINTAINER_MODE=no)
272 AC_MSG_RESULT($USE_MAINTAINER_MODE)
273 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
274 MAINT=$MAINTAINER_MODE_TRUE
279 # Define a conditional.
281 AC_DEFUN(AM_CONDITIONAL,
293 # serial 40 AC_PROG_LIBTOOL
294 AC_DEFUN(AC_PROG_LIBTOOL,
295 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
297 # Save cache, so that ltconfig can load it
300 # Actually configure libtool. ac_aux_dir is where install-sh is found.
301 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
302 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
303 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
304 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
305 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
306 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
307 || AC_MSG_ERROR([libtool configure failed])
309 # Reload cache, that may have been modified by ltconfig
312 # This can be used to rebuild libtool when needed
313 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
315 # Always use our own libtool.
316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
319 # Redirect the config.log output again, so that the ltconfig log is not
320 # clobbered by the next message.
324 AC_DEFUN(AC_LIBTOOL_SETUP,
326 AC_REQUIRE([AC_ENABLE_SHARED])dnl
327 AC_REQUIRE([AC_ENABLE_STATIC])dnl
328 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
329 AC_REQUIRE([AC_CANONICAL_HOST])dnl
330 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
331 AC_REQUIRE([AC_PROG_RANLIB])dnl
332 AC_REQUIRE([AC_PROG_CC])dnl
333 AC_REQUIRE([AC_PROG_LD])dnl
334 AC_REQUIRE([AC_PROG_NM])dnl
335 AC_REQUIRE([AC_PROG_LN_S])dnl
338 # Check for any special flags to pass to ltconfig.
339 libtool_flags="--cache-file=$cache_file"
340 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
341 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
342 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
343 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
344 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
345 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
346 [libtool_flags="$libtool_flags --enable-dlopen"])
347 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
348 [libtool_flags="$libtool_flags --enable-win32-dll"])
349 AC_ARG_ENABLE(libtool-lock,
350 [ --disable-libtool-lock avoid locking (might break parallel builds)])
351 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
352 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
354 # Some flags need to be propagated to the compiler or linker for good
358 # Find out which ABI we are using.
359 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
360 if AC_TRY_EVAL(ac_compile); then
361 case "`/usr/bin/file conftest.o`" in
377 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
378 SAVE_CFLAGS="$CFLAGS"
379 CFLAGS="$CFLAGS -belf"
380 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
381 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
382 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
383 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
384 CFLAGS="$SAVE_CFLAGS"
388 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
389 [*-*-cygwin* | *-*-mingw*)
390 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
391 AC_CHECK_TOOL(AS, as, false)
392 AC_CHECK_TOOL(OBJDUMP, objdump, false)
398 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
399 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
401 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
402 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
404 # AC_ENABLE_SHARED - implement the --enable-shared flag
405 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
406 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
408 AC_DEFUN(AC_ENABLE_SHARED, [dnl
409 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
410 AC_ARG_ENABLE(shared,
411 changequote(<<, >>)dnl
412 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
414 [p=${PACKAGE-default}
416 yes) enable_shared=yes ;;
417 no) enable_shared=no ;;
420 # Look at the argument we got. We use all the common list separators.
421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
422 for pkg in $enableval; do
423 if test "X$pkg" = "X$p"; then
430 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
433 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
434 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
435 AC_ENABLE_SHARED(no)])
437 # AC_ENABLE_STATIC - implement the --enable-static flag
438 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
439 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
441 AC_DEFUN(AC_ENABLE_STATIC, [dnl
442 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
443 AC_ARG_ENABLE(static,
444 changequote(<<, >>)dnl
445 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
447 [p=${PACKAGE-default}
449 yes) enable_static=yes ;;
450 no) enable_static=no ;;
453 # Look at the argument we got. We use all the common list separators.
454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
455 for pkg in $enableval; do
456 if test "X$pkg" = "X$p"; then
463 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
466 # AC_DISABLE_STATIC - set the default static flag to --disable-static
467 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
468 AC_ENABLE_STATIC(no)])
471 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
472 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
473 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
475 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
476 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
477 AC_ARG_ENABLE(fast-install,
478 changequote(<<, >>)dnl
479 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
481 [p=${PACKAGE-default}
483 yes) enable_fast_install=yes ;;
484 no) enable_fast_install=no ;;
486 enable_fast_install=no
487 # Look at the argument we got. We use all the common list separators.
488 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
489 for pkg in $enableval; do
490 if test "X$pkg" = "X$p"; then
491 enable_fast_install=yes
497 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
500 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
501 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
502 AC_ENABLE_FAST_INSTALL(no)])
504 # AC_PROG_LD - find the path to the GNU or non-GNU linker
507 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
508 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
509 AC_REQUIRE([AC_PROG_CC])dnl
510 AC_REQUIRE([AC_CANONICAL_HOST])dnl
511 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
513 if test "$ac_cv_prog_gcc" = yes; then
514 # Check if gcc -print-prog-name=ld gives a path.
515 AC_MSG_CHECKING([for ld used by GCC])
516 ac_prog=`($CC -print-prog-name=ld) 2>&5`
518 # Accept absolute paths.
520 [\\/]* | [A-Za-z]:[\\/]*)
521 re_direlt='/[^/][^/]*/\.\./'
523 # Canonicalize the path of ld
524 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
525 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
526 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
528 test -z "$LD" && LD="$ac_prog"
531 # If it fails, then pretend we aren't using GCC.
535 # If it is relative, then search for the first ld in PATH.
539 elif test "$with_gnu_ld" = yes; then
540 AC_MSG_CHECKING([for GNU ld])
542 AC_MSG_CHECKING([for non-GNU ld])
544 AC_CACHE_VAL(ac_cv_path_LD,
545 [if test -z "$LD"; then
546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
547 for ac_dir in $PATH; do
548 test -z "$ac_dir" && ac_dir=.
549 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
550 ac_cv_path_LD="$ac_dir/$ac_prog"
551 # Check to see if the program is GNU ld. I'd rather use --version,
552 # but apparently some GNU ld's only accept -v.
553 # Break only if it was the GNU/non-GNU ld that we prefer.
554 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
555 test "$with_gnu_ld" != no && break
557 test "$with_gnu_ld" != yes && break
563 ac_cv_path_LD="$LD" # Let the user override the test with a path.
566 if test -n "$LD"; then
571 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
576 AC_DEFUN(AC_PROG_LD_GNU,
577 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
578 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
579 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
580 ac_cv_prog_gnu_ld=yes
586 # AC_PROG_NM - find the path to a BSD-compatible name lister
588 [AC_MSG_CHECKING([for BSD-compatible nm])
589 AC_CACHE_VAL(ac_cv_path_NM,
590 [if test -n "$NM"; then
591 # Let the user override the test.
594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
595 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
596 test -z "$ac_dir" && ac_dir=.
597 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
598 # Check to see if the nm accepts a BSD-compat flag.
599 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
600 # nm: unknown option "B" ignored
601 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
602 ac_cv_path_NM="$ac_dir/nm -B"
604 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
605 ac_cv_path_NM="$ac_dir/nm -p"
608 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
609 continue # so that we can try to find one that supports BSD flags
614 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
621 # AC_CHECK_LIBM - check for math library
622 AC_DEFUN(AC_CHECK_LIBM,
623 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
626 *-*-beos* | *-*-cygwin*)
627 # These system don't have libm
630 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
631 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
634 AC_CHECK_LIB(m, main, LIBM="-lm")
639 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
640 # the libltdl convenience library, adds --enable-ltdl-convenience to
641 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
642 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
643 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
644 # '${top_builddir}/' (note the single quotes!) if your package is not
645 # flat, and, if you're not using automake, define top_builddir as
646 # appropriate in the Makefiles.
647 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
648 case "$enable_ltdl_convenience" in
649 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
650 "") enable_ltdl_convenience=yes
651 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
653 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
654 INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
657 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
658 # the libltdl installable library, and adds --enable-ltdl-install to
659 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
660 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
661 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
662 # '${top_builddir}/' (note the single quotes!) if your package is not
663 # flat, and, if you're not using automake, define top_builddir as
664 # appropriate in the Makefiles.
665 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
666 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
667 AC_CHECK_LIB(ltdl, main,
668 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
669 [if test x"$enable_ltdl_install" = xno; then
670 AC_MSG_WARN([libltdl not installed, but installation disabled])
672 enable_ltdl_install=yes
675 if test x"$enable_ltdl_install" = x"yes"; then
676 ac_configure_args="$ac_configure_args --enable-ltdl-install"
677 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
678 INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
680 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
687 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
688 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
689 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
690 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
691 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
692 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
693 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
695 dnl This is just to silence aclocal about the macro not being used
696 ifelse([AC_DISABLE_FAST_INSTALL])dnl