1 dnl On the NeXT, #including <utime.h> doesn't give you a definition for
2 dnl struct utime, unless you #define _POSIX_SOURCE.
4 AC_DEFUN(GUILE_STRUCT_UTIMBUF, [
5 AC_CACHE_CHECK([whether we need POSIX to get struct utimbuf],
6 guile_cv_struct_utimbuf_needs_posix,
15 guile_cv_struct_utimbuf_needs_posix=no,
16 guile_cv_struct_utimbuf_needs_posix=yes)])
17 if test "$guile_cv_struct_utimbuf_needs_posix" = yes; then
18 AC_DEFINE(UTIMBUF_NEEDS_POSIX)
25 dnl Apparently, at CMU they have a weird version of libc.h that is
26 dnl installed in /usr/local/include and conflicts with unistd.h.
27 dnl In these situations, we should not #include libc.h.
28 dnl This test arranges to #define LIBC_H_WITH_UNISTD_H iff libc.h is
29 dnl present on the system, and is safe to #include.
31 AC_DEFUN([GUILE_HEADER_LIBC_WITH_UNISTD],
33 AC_CHECK_HEADERS(libc.h unistd.h)
35 "whether libc.h and unistd.h can be included together",
36 guile_cv_header_libc_with_unistd,
38 if test "$ac_cv_header_libc_h" = "no"; then
39 guile_cv_header_libc_with_unistd="no"
40 elif test "$ac_cv_header_unistd_h" = "no"; then
41 guile_cv_header_libc_with_unistd="yes"
49 [guile_cv_header_libc_with_unistd=yes],
50 [guile_cv_header_libc_with_unistd=no]
55 if test "$guile_cv_header_libc_with_unistd" = yes; then
56 AC_DEFINE(LIBC_H_WITH_UNISTD_H)
63 dnl This is needed when we want to check for the same function repeatedly
64 dnl with other parameters, such as libraries, varying.
66 dnl GUILE_NAMED_CHECK_FUNC(FUNCTION, TESTNAME,
67 dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
68 AC_DEFUN(GUILE_NAMED_CHECK_FUNC,
69 [AC_MSG_CHECKING([for $1])
70 AC_CACHE_VAL(ac_cv_func_$1_$2,
72 dnl Don't include <ctype.h> because on OSF/1 3.0 it includes <sys/types.h>
73 dnl which includes <sys/select.h> which contains a prototype for
74 dnl select. Similarly for bzero.
75 [/* System header to define __stub macros and hopefully few prototypes,
76 which can conflict with char $1(); below. */
78 /* Override any gcc2 internal prototype to avoid an error. */
79 ]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
83 [/* We use char because int might match the return type of a gcc2
84 builtin and then its argument prototype would still apply. */
87 /* The GNU C library defines this for functions which it implements
88 to always fail with ENOSYS. Some functions are actually named
89 something starting with __ and the normal name is an alias. */
90 #if defined (__stub_$1) || defined (__stub___$1)
95 ], eval "ac_cv_func_$1_$2=yes", eval "ac_cv_func_$1_$2=no")])
96 if eval "test \"`echo '$ac_cv_func_'$1'_'$2`\" = yes"; then
98 ifelse([$3], , :, [$3])
107 dnl QTHREADS_CONFIGURE configures the QuickThreads package. The QT
108 dnl sources should be in $srcdir/qt. If configuration succeeds, this
109 dnl macro creates the appropriate symlinks in the qt object directory,
110 dnl and sets the following variables, used in building libqthreads.a:
111 dnl QTHREAD_LTLIBS --- set to libqthreads.la if configuration
112 dnl succeeds, or the empty string if configuration fails.
113 dnl qtmd_h, qtmds_s, qtmdc_c, qtdmdb_s --- the names of the machine-
114 dnl dependent source files.
115 dnl qthread_asflags --- flags to pass to the compiler when processing
116 dnl assembly-language files.
118 dnl It also sets the following variables, which describe how clients
119 dnl can link against libqthreads.a:
120 dnl THREAD_PACKAGE --- set to "QT" if configuration succeeds, or
121 dnl the empty string if configuration fails.
122 dnl THREAD_CPPFLAGS --- set to `-I' flags for thread header files
123 dnl THREAD_LIBS_LOCAL --- linker options for use in this source tree
124 dnl THREAD_LIBS_INSTALLED --- linker options for use after this package
126 dnl It would be nice if all thread configuration packages for Guile
127 dnl followed the same conventions.
129 dnl All of the above variables will be substituted into Makefiles in
130 dnl the usual autoconf fashion.
132 dnl We distinguish between THREAD_LIBS_LOCAL and
133 dnl THREAD_LIBS_INSTALLED because the thread library might be in
134 dnl this tree, and be built using libtool. This means that:
135 dnl 1) when building other executables in this tree, one must
136 dnl pass the relative path to the ../libfoo.la file, but
137 dnl 2) once the whole package has been installed, users should
138 dnl link using -lfoo.
139 dnl Normally, we only care about the first case, but since the
140 dnl guile-config script needs to give users all the flags they need
141 dnl to link programs against guile, the GUILE_WITH_THREADS macro
142 dnl needs to supply the second piece of information as well.
144 dnl This whole thing is a little confused about what ought to be
145 dnl done in the top-level configure script, and what ought to be
146 dnl taken care of in the subdirectory. For example, qtmds_s and
147 dnl friends really ought not to be even mentioned in the top-level
148 dnl configure script, but here they are.
150 AC_DEFUN([QTHREADS_CONFIGURE],[
151 AC_REQUIRE([AC_PROG_LN_S])
153 AC_MSG_CHECKING(QuickThreads configuration)
154 # How can we refer to the qt source directory from within the qt build
155 # directory? For headers, we can rely on the fact that the qt src
156 # directory appears in the #include path.
157 qtsrcdir="`(cd $srcdir; pwd)`/qt"
159 changequote(,)dnl We use [ and ] in a regexp in the case
172 ## NetBSD needs to be told to pass the assembly code through
173 ## the C preprocessor. Other GCC installations seem to do
174 ## this by default, but NetBSD's doesn't. We could get the
175 ## same effect by giving the file a name ending with .S
176 ## instead of .s, but I don't see how to tell automake to do
178 qthread_asflags='-x assembler-with-cpp'
185 qtmds_s=md/mips-irix5.s
197 port_name=sparc-sunos
201 qtdmdb_s=md/_sparc_b.s
208 qtdmdb_s=md/sparc_b.s
218 echo "Unknown configuration; threads package disabled"
224 # Did configuration succeed?
225 if test -n "$THREAD_PACKAGE"; then
226 AC_MSG_RESULT($port_name)
227 QTHREAD_LTLIBS=libqthreads.la
228 THREAD_CPPFLAGS="-I$qtsrcdir -I../qt"
229 THREAD_LIBS_LOCAL="../qt/libqthreads.la"
230 THREAD_LIBS_INSTALLED="-lqthreads"
232 AC_MSG_RESULT(none; disabled)
235 AC_SUBST(QTHREAD_LTLIBS)
240 AC_SUBST(qthread_asflags)
241 AC_SUBST(THREAD_PACKAGE)
242 AC_SUBST(THREAD_CPPFLAGS)
243 AC_SUBST(THREAD_LIBS_LOCAL)
244 AC_SUBST(THREAD_LIBS_INSTALLED)
247 ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
248 ## Copyright (C) 1996-1999 Free Software Foundation, Inc.
249 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
251 ## This program is free software; you can redistribute it and/or modify
252 ## it under the terms of the GNU General Public License as published by
253 ## the Free Software Foundation; either version 2 of the License, or
254 ## (at your option) any later version.
256 ## This program is distributed in the hope that it will be useful, but
257 ## WITHOUT ANY WARRANTY; without even the implied warranty of
258 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
259 ## General Public License for more details.
261 ## You should have received a copy of the GNU General Public License
262 ## along with this program; if not, write to the Free Software
263 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
265 ## As a special exception to the GNU General Public License, if you
266 ## distribute this file as part of a program that contains a
267 ## configuration script generated by Autoconf, you may include it under
268 ## the same distribution terms that you use for the rest of that program.
270 # serial 40 AC_PROG_LIBTOOL
271 AC_DEFUN(AC_PROG_LIBTOOL,
272 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
274 # Save cache, so that ltconfig can load it
277 # Actually configure libtool. ac_aux_dir is where install-sh is found.
278 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
279 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
280 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
281 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
282 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
283 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
284 || AC_MSG_ERROR([libtool configure failed])
286 # Reload cache, that may have been modified by ltconfig
289 # This can be used to rebuild libtool when needed
290 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
292 # Always use our own libtool.
293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
296 # Redirect the config.log output again, so that the ltconfig log is not
297 # clobbered by the next message.
301 AC_DEFUN(AC_LIBTOOL_SETUP,
303 AC_REQUIRE([AC_ENABLE_SHARED])dnl
304 AC_REQUIRE([AC_ENABLE_STATIC])dnl
305 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
306 AC_REQUIRE([AC_CANONICAL_HOST])dnl
307 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
308 AC_REQUIRE([AC_PROG_RANLIB])dnl
309 AC_REQUIRE([AC_PROG_CC])dnl
310 AC_REQUIRE([AC_PROG_LD])dnl
311 AC_REQUIRE([AC_PROG_NM])dnl
312 AC_REQUIRE([AC_PROG_LN_S])dnl
316 NONE) lt_target="$host" ;;
317 *) lt_target="$target" ;;
320 # Check for any special flags to pass to ltconfig.
321 libtool_flags="--cache-file=$cache_file"
322 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
323 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
324 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
325 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
326 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
327 ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
328 [libtool_flags="$libtool_flags --enable-dlopen"])
329 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
330 [libtool_flags="$libtool_flags --enable-win32-dll"])
331 AC_ARG_ENABLE(libtool-lock,
332 [ --disable-libtool-lock avoid locking (might break parallel builds)])
333 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
334 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
336 # Some flags need to be propagated to the compiler or linker for good
340 # Find out which ABI we are using.
341 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
342 if AC_TRY_EVAL(ac_compile); then
343 case "`/usr/bin/file conftest.o`" in
359 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
360 SAVE_CFLAGS="$CFLAGS"
361 CFLAGS="$CFLAGS -belf"
362 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
363 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
364 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
365 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
366 CFLAGS="$SAVE_CFLAGS"
370 ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
371 [*-*-cygwin* | *-*-mingw*)
372 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
373 AC_CHECK_TOOL(AS, as, false)
374 AC_CHECK_TOOL(OBJDUMP, objdump, false)
380 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
381 AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
383 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
384 AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
386 # AC_ENABLE_SHARED - implement the --enable-shared flag
387 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
388 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
390 AC_DEFUN(AC_ENABLE_SHARED, [dnl
391 define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
392 AC_ARG_ENABLE(shared,
393 changequote(<<, >>)dnl
394 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
396 [p=${PACKAGE-default}
398 yes) enable_shared=yes ;;
399 no) enable_shared=no ;;
402 # Look at the argument we got. We use all the common list separators.
403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
404 for pkg in $enableval; do
405 if test "X$pkg" = "X$p"; then
412 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
415 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
416 AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
417 AC_ENABLE_SHARED(no)])
419 # AC_ENABLE_STATIC - implement the --enable-static flag
420 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
421 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
423 AC_DEFUN(AC_ENABLE_STATIC, [dnl
424 define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
425 AC_ARG_ENABLE(static,
426 changequote(<<, >>)dnl
427 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
429 [p=${PACKAGE-default}
431 yes) enable_static=yes ;;
432 no) enable_static=no ;;
435 # Look at the argument we got. We use all the common list separators.
436 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
437 for pkg in $enableval; do
438 if test "X$pkg" = "X$p"; then
445 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
448 # AC_DISABLE_STATIC - set the default static flag to --disable-static
449 AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
450 AC_ENABLE_STATIC(no)])
453 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
454 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
455 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
457 AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
458 define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
459 AC_ARG_ENABLE(fast-install,
460 changequote(<<, >>)dnl
461 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
463 [p=${PACKAGE-default}
465 yes) enable_fast_install=yes ;;
466 no) enable_fast_install=no ;;
468 enable_fast_install=no
469 # Look at the argument we got. We use all the common list separators.
470 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
471 for pkg in $enableval; do
472 if test "X$pkg" = "X$p"; then
473 enable_fast_install=yes
479 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
482 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
483 AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
484 AC_ENABLE_FAST_INSTALL(no)])
486 # AC_PROG_LD - find the path to the GNU or non-GNU linker
489 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
490 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
491 AC_REQUIRE([AC_PROG_CC])dnl
492 AC_REQUIRE([AC_CANONICAL_HOST])dnl
493 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
495 if test "$ac_cv_prog_gcc" = yes; then
496 # Check if gcc -print-prog-name=ld gives a path.
497 AC_MSG_CHECKING([for ld used by GCC])
498 ac_prog=`($CC -print-prog-name=ld) 2>&5`
500 # Accept absolute paths.
502 [\\/]* | [A-Za-z]:[\\/]*)
503 re_direlt='/[^/][^/]*/\.\./'
505 # Canonicalize the path of ld
506 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
507 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
508 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
510 test -z "$LD" && LD="$ac_prog"
513 # If it fails, then pretend we aren't using GCC.
517 # If it is relative, then search for the first ld in PATH.
521 elif test "$with_gnu_ld" = yes; then
522 AC_MSG_CHECKING([for GNU ld])
524 AC_MSG_CHECKING([for non-GNU ld])
526 AC_CACHE_VAL(ac_cv_path_LD,
527 [if test -z "$LD"; then
528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
529 for ac_dir in $PATH; do
530 test -z "$ac_dir" && ac_dir=.
531 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
532 ac_cv_path_LD="$ac_dir/$ac_prog"
533 # Check to see if the program is GNU ld. I'd rather use --version,
534 # but apparently some GNU ld's only accept -v.
535 # Break only if it was the GNU/non-GNU ld that we prefer.
536 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
537 test "$with_gnu_ld" != no && break
539 test "$with_gnu_ld" != yes && break
545 ac_cv_path_LD="$LD" # Let the user override the test with a path.
548 if test -n "$LD"; then
553 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
557 AC_DEFUN(AC_PROG_LD_GNU,
558 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
559 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
560 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
561 ac_cv_prog_gnu_ld=yes
567 # AC_PROG_NM - find the path to a BSD-compatible name lister
569 [AC_MSG_CHECKING([for BSD-compatible nm])
570 AC_CACHE_VAL(ac_cv_path_NM,
571 [if test -n "$NM"; then
572 # Let the user override the test.
575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
576 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
577 test -z "$ac_dir" && ac_dir=.
578 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
579 # Check to see if the nm accepts a BSD-compat flag.
580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
581 # nm: unknown option "B" ignored
582 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
583 ac_cv_path_NM="$ac_dir/nm -B"
585 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
586 ac_cv_path_NM="$ac_dir/nm -p"
589 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
590 continue # so that we can try to find one that supports BSD flags
595 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
601 # AC_CHECK_LIBM - check for math library
602 AC_DEFUN(AC_CHECK_LIBM,
603 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
606 *-*-beos* | *-*-cygwin*)
607 # These system don't have libm
610 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
611 AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
614 AC_CHECK_LIB(m, main, LIBM="-lm")
619 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
620 # the libltdl convenience library, adds --enable-ltdl-convenience to
621 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
622 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
623 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
624 # '${top_builddir}/' (note the single quotes!) if your package is not
625 # flat, and, if you're not using automake, define top_builddir as
626 # appropriate in the Makefiles.
627 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
628 case "$enable_ltdl_convenience" in
629 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
630 "") enable_ltdl_convenience=yes
631 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
633 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
634 INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
637 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
638 # the libltdl installable library, and adds --enable-ltdl-install to
639 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
640 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
641 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
642 # '${top_builddir}/' (note the single quotes!) if your package is not
643 # flat, and, if you're not using automake, define top_builddir as
644 # appropriate in the Makefiles.
645 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
646 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
647 AC_CHECK_LIB(ltdl, main,
648 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
649 [if test x"$enable_ltdl_install" = xno; then
650 AC_MSG_WARN([libltdl not installed, but installation disabled])
652 enable_ltdl_install=yes
655 if test x"$enable_ltdl_install" = x"yes"; then
656 ac_configure_args="$ac_configure_args --enable-ltdl-install"
657 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
658 INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
660 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
667 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
668 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
669 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
670 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
671 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
672 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
673 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
675 dnl This is just to silence aclocal about the macro not being used
676 ifelse([AC_DISABLE_FAST_INSTALL])dnl