Annotation of parser3/src/sql/mysql/acinclude.m4, revision 1.2

1.2     ! paf         1: dnl acinclude.m4(
        !             2: 
        !             3: AC_DEFUN(CALC_ARGS,[
        !             4: 
        !             5: AC_ARG_WITH(mysql_inc,[  --with-mysql_inc[=DIR]      DIR is the MySQL includes directory],,
        !             6:        withval="/usr/include/mysql"
        !             7: )
        !             8: MYSQL_INC=$withval
        !             9: AC_SUBST(MYSQL_INC)
        !            10: 
        !            11: ])
        !            12: 
        !            13: dnl acinclude.m4)
        !            14: 
        !            15: 
        !            16: ## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
        !            17: ## Copyright (C) 1996-1999 Free Software Foundation, Inc.
        !            18: ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
        !            19: ##
        !            20: ## This program is free software; you can redistribute it and/or modify
        !            21: ## it under the terms of the GNU General Public License as published by
        !            22: ## the Free Software Foundation; either version 2 of the License, or
        !            23: ## (at your option) any later version.
        !            24: ##
        !            25: ## This program is distributed in the hope that it will be useful, but
        !            26: ## WITHOUT ANY WARRANTY; without even the implied warranty of
        !            27: ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
        !            28: ## General Public License for more details.
        !            29: ##
        !            30: ## You should have received a copy of the GNU General Public License
        !            31: ## along with this program; if not, write to the Free Software
        !            32: ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
        !            33: ##
        !            34: ## As a special exception to the GNU General Public License, if you
        !            35: ## distribute this file as part of a program that contains a
        !            36: ## configuration script generated by Autoconf, you may include it under
        !            37: ## the same distribution terms that you use for the rest of that program.
        !            38: 
        !            39: # serial 40 AC_PROG_LIBTOOL
        !            40: AC_DEFUN(AC_PROG_LIBTOOL,
        !            41: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
        !            42: 
        !            43: # Save cache, so that ltconfig can load it
        !            44: AC_CACHE_SAVE
        !            45: 
        !            46: # Actually configure libtool.  ac_aux_dir is where install-sh is found.
        !            47: CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
        !            48: LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
        !            49: LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
        !            50: DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
        !            51: ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
        !            52: $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
        !            53: || AC_MSG_ERROR([libtool configure failed])
        !            54: 
        !            55: # Reload cache, that may have been modified by ltconfig
        !            56: AC_CACHE_LOAD
        !            57: 
        !            58: # This can be used to rebuild libtool when needed
        !            59: LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
        !            60: 
        !            61: # Always use our own libtool.
        !            62: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
        !            63: AC_SUBST(LIBTOOL)dnl
        !            64: 
        !            65: # Redirect the config.log output again, so that the ltconfig log is not
        !            66: # clobbered by the next message.
        !            67: exec 5>>./config.log
        !            68: ])
        !            69: 
        !            70: AC_DEFUN(AC_LIBTOOL_SETUP,
        !            71: [AC_PREREQ(2.13)dnl
        !            72: AC_REQUIRE([AC_ENABLE_SHARED])dnl
        !            73: AC_REQUIRE([AC_ENABLE_STATIC])dnl
        !            74: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
        !            75: AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !            76: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
        !            77: AC_REQUIRE([AC_PROG_RANLIB])dnl
        !            78: AC_REQUIRE([AC_PROG_CC])dnl
        !            79: AC_REQUIRE([AC_PROG_LD])dnl
        !            80: AC_REQUIRE([AC_PROG_NM])dnl
        !            81: AC_REQUIRE([AC_PROG_LN_S])dnl
        !            82: dnl
        !            83: 
        !            84: case "$target" in
        !            85: NONE) lt_target="$host" ;;
        !            86: *) lt_target="$target" ;;
        !            87: esac
        !            88: 
        !            89: # Check for any special flags to pass to ltconfig.
        !            90: #
        !            91: # the following will cause an existing older ltconfig to fail, so
        !            92: # we ignore this at the expense of the cache file... Checking this 
        !            93: # will just take longer ... bummer!
        !            94: #libtool_flags="--cache-file=$cache_file"
        !            95: #
        !            96: test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
        !            97: test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
        !            98: test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
        !            99: test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
        !           100: test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
        !           101: ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
        !           102: [libtool_flags="$libtool_flags --enable-dlopen"])
        !           103: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
        !           104: [libtool_flags="$libtool_flags --enable-win32-dll"])
        !           105: AC_ARG_ENABLE(libtool-lock,
        !           106:   [  --disable-libtool-lock  avoid locking (might break parallel builds)])
        !           107: test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
        !           108: test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
        !           109: 
        !           110: # Some flags need to be propagated to the compiler or linker for good
        !           111: # libtool support.
        !           112: case "$lt_target" in
        !           113: *-*-irix6*)
        !           114:   # Find out which ABI we are using.
        !           115:   echo '[#]line __oline__ "configure"' > conftest.$ac_ext
        !           116:   if AC_TRY_EVAL(ac_compile); then
        !           117:     case "`/usr/bin/file conftest.o`" in
        !           118:     *32-bit*)
        !           119:       LD="${LD-ld} -32"
        !           120:       ;;
        !           121:     *N32*)
        !           122:       LD="${LD-ld} -n32"
        !           123:       ;;
        !           124:     *64-bit*)
        !           125:       LD="${LD-ld} -64"
        !           126:       ;;
        !           127:     esac
        !           128:   fi
        !           129:   rm -rf conftest*
        !           130:   ;;
        !           131: 
        !           132: *-*-sco3.2v5*)
        !           133:   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
        !           134:   SAVE_CFLAGS="$CFLAGS"
        !           135:   CFLAGS="$CFLAGS -belf"
        !           136:   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
        !           137:     [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
        !           138:   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
        !           139:     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
        !           140:     CFLAGS="$SAVE_CFLAGS"
        !           141:   fi
        !           142:   ;;
        !           143: 
        !           144: ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
        !           145: [*-*-cygwin* | *-*-mingw*)
        !           146:   AC_CHECK_TOOL(DLLTOOL, dlltool, false)
        !           147:   AC_CHECK_TOOL(AS, as, false)
        !           148:   AC_CHECK_TOOL(OBJDUMP, objdump, false)
        !           149:   ;;
        !           150: ])
        !           151: esac
        !           152: ])
        !           153: 
        !           154: # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
        !           155: AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
        !           156: 
        !           157: # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
        !           158: AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
        !           159: 
        !           160: # AC_ENABLE_SHARED - implement the --enable-shared flag
        !           161: # Usage: AC_ENABLE_SHARED[(DEFAULT)]
        !           162: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           163: #   `yes'.
        !           164: AC_DEFUN(AC_ENABLE_SHARED, [dnl
        !           165: define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
        !           166: AC_ARG_ENABLE(shared,
        !           167: changequote(<<, >>)dnl
        !           168: <<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
        !           169: changequote([, ])dnl
        !           170: [p=${PACKAGE-default}
        !           171: case "$enableval" in
        !           172: yes) enable_shared=yes ;;
        !           173: no) enable_shared=no ;;
        !           174: *)
        !           175:   enable_shared=no
        !           176:   # Look at the argument we got.  We use all the common list separators.
        !           177:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           178:   for pkg in $enableval; do
        !           179:     if test "X$pkg" = "X$p"; then
        !           180:       enable_shared=yes
        !           181:     fi
        !           182:   done
        !           183:   IFS="$ac_save_ifs"
        !           184:   ;;
        !           185: esac],
        !           186: enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
        !           187: ])
        !           188: 
        !           189: # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
        !           190: AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           191: AC_ENABLE_SHARED(no)])
        !           192: 
        !           193: # AC_ENABLE_STATIC - implement the --enable-static flag
        !           194: # Usage: AC_ENABLE_STATIC[(DEFAULT)]
        !           195: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           196: #   `yes'.
        !           197: AC_DEFUN(AC_ENABLE_STATIC, [dnl
        !           198: define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
        !           199: AC_ARG_ENABLE(static,
        !           200: changequote(<<, >>)dnl
        !           201: <<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
        !           202: changequote([, ])dnl
        !           203: [p=${PACKAGE-default}
        !           204: case "$enableval" in
        !           205: yes) enable_static=yes ;;
        !           206: no) enable_static=no ;;
        !           207: *)
        !           208:   enable_static=no
        !           209:   # Look at the argument we got.  We use all the common list separators.
        !           210:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           211:   for pkg in $enableval; do
        !           212:     if test "X$pkg" = "X$p"; then
        !           213:       enable_static=yes
        !           214:     fi
        !           215:   done
        !           216:   IFS="$ac_save_ifs"
        !           217:   ;;
        !           218: esac],
        !           219: enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
        !           220: ])
        !           221: 
        !           222: # AC_DISABLE_STATIC - set the default static flag to --disable-static
        !           223: AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           224: AC_ENABLE_STATIC(no)])
        !           225: 
        !           226: 
        !           227: # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
        !           228: # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
        !           229: #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
        !           230: #   `yes'.
        !           231: AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
        !           232: define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
        !           233: AC_ARG_ENABLE(fast-install,
        !           234: changequote(<<, >>)dnl
        !           235: <<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
        !           236: changequote([, ])dnl
        !           237: [p=${PACKAGE-default}
        !           238: case "$enableval" in
        !           239: yes) enable_fast_install=yes ;;
        !           240: no) enable_fast_install=no ;;
        !           241: *)
        !           242:   enable_fast_install=no
        !           243:   # Look at the argument we got.  We use all the common list separators.
        !           244:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
        !           245:   for pkg in $enableval; do
        !           246:     if test "X$pkg" = "X$p"; then
        !           247:       enable_fast_install=yes
        !           248:     fi
        !           249:   done
        !           250:   IFS="$ac_save_ifs"
        !           251:   ;;
        !           252: esac],
        !           253: enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
        !           254: ])
        !           255: 
        !           256: # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
        !           257: AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           258: AC_ENABLE_FAST_INSTALL(no)])
        !           259: 
        !           260: # AC_PROG_LD - find the path to the GNU or non-GNU linker
        !           261: AC_DEFUN(AC_PROG_LD,
        !           262: [AC_ARG_WITH(gnu-ld,
        !           263: [  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
        !           264: test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
        !           265: AC_REQUIRE([AC_PROG_CC])dnl
        !           266: AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !           267: AC_REQUIRE([AC_CANONICAL_BUILD])dnl
        !           268: ac_prog=ld
        !           269: if test "$ac_cv_prog_gcc" = yes; then
        !           270:   # Check if gcc -print-prog-name=ld gives a path.
        !           271:   AC_MSG_CHECKING([for ld used by GCC])
        !           272:   ac_prog=`($CC -print-prog-name=ld) 2>&5`
        !           273:   case "$ac_prog" in
        !           274:     # Accept absolute paths.
        !           275: changequote(,)dnl
        !           276:     [\\/]* | [A-Za-z]:[\\/]*)
        !           277:       re_direlt='/[^/][^/]*/\.\./'
        !           278: changequote([,])dnl
        !           279:       # Canonicalize the path of ld
        !           280:       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
        !           281:       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
        !           282:        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
        !           283:       done
        !           284:       test -z "$LD" && LD="$ac_prog"
        !           285:       ;;
        !           286:   "")
        !           287:     # If it fails, then pretend we aren't using GCC.
        !           288:     ac_prog=ld
        !           289:     ;;
        !           290:   *)
        !           291:     # If it is relative, then search for the first ld in PATH.
        !           292:     with_gnu_ld=unknown
        !           293:     ;;
        !           294:   esac
        !           295: elif test "$with_gnu_ld" = yes; then
        !           296:   AC_MSG_CHECKING([for GNU ld])
        !           297: else
        !           298:   AC_MSG_CHECKING([for non-GNU ld])
        !           299: fi
        !           300: AC_CACHE_VAL(ac_cv_path_LD,
        !           301: [if test -z "$LD"; then
        !           302:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
        !           303:   for ac_dir in $PATH; do
        !           304:     test -z "$ac_dir" && ac_dir=.
        !           305:     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
        !           306:       ac_cv_path_LD="$ac_dir/$ac_prog"
        !           307:       # Check to see if the program is GNU ld.  I'd rather use --version,
        !           308:       # but apparently some GNU ld's only accept -v.
        !           309:       # Break only if it was the GNU/non-GNU ld that we prefer.
        !           310:       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
        !           311:        test "$with_gnu_ld" != no && break
        !           312:       else
        !           313:        test "$with_gnu_ld" != yes && break
        !           314:       fi
        !           315:     fi
        !           316:   done
        !           317:   IFS="$ac_save_ifs"
        !           318: else
        !           319:   ac_cv_path_LD="$LD" # Let the user override the test with a path.
        !           320: fi])
        !           321: LD="$ac_cv_path_LD"
        !           322: if test -n "$LD"; then
        !           323:   AC_MSG_RESULT($LD)
        !           324: else
        !           325:   AC_MSG_RESULT(no)
        !           326: fi
        !           327: test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
        !           328: AC_PROG_LD_GNU
        !           329: ])
        !           330: 
        !           331: AC_DEFUN(AC_PROG_LD_GNU,
        !           332: [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
        !           333: [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
        !           334: if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
        !           335:   ac_cv_prog_gnu_ld=yes
        !           336: else
        !           337:   ac_cv_prog_gnu_ld=no
        !           338: fi])
        !           339: ])
        !           340: 
        !           341: # AC_PROG_NM - find the path to a BSD-compatible name lister
        !           342: AC_DEFUN(AC_PROG_NM,
        !           343: [AC_MSG_CHECKING([for BSD-compatible nm])
        !           344: AC_CACHE_VAL(ac_cv_path_NM,
        !           345: [if test -n "$NM"; then
        !           346:   # Let the user override the test.
        !           347:   ac_cv_path_NM="$NM"
        !           348: else
        !           349:   IFS="${IFS=  }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
        !           350:   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
        !           351:     test -z "$ac_dir" && ac_dir=.
        !           352:     if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
        !           353:       # Check to see if the nm accepts a BSD-compat flag.
        !           354:       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
        !           355:       #   nm: unknown option "B" ignored
        !           356:       if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        !           357:        ac_cv_path_NM="$ac_dir/nm -B"
        !           358:        break
        !           359:       elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
        !           360:        ac_cv_path_NM="$ac_dir/nm -p"
        !           361:        break
        !           362:       else
        !           363:        ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
        !           364:        continue # so that we can try to find one that supports BSD flags
        !           365:       fi
        !           366:     fi
        !           367:   done
        !           368:   IFS="$ac_save_ifs"
        !           369:   test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
        !           370: fi])
        !           371: NM="$ac_cv_path_NM"
        !           372: AC_MSG_RESULT([$NM])
        !           373: ])
        !           374: 
        !           375: # AC_CHECK_LIBM - check for math library
        !           376: AC_DEFUN(AC_CHECK_LIBM,
        !           377: [AC_REQUIRE([AC_CANONICAL_HOST])dnl
        !           378: LIBM=
        !           379: case "$lt_target" in
        !           380: *-*-beos* | *-*-cygwin*)
        !           381:   # These system don't have libm
        !           382:   ;;
        !           383: *-ncr-sysv4.3*)
        !           384:   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
        !           385:   AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
        !           386:   ;;
        !           387: *)
        !           388:   AC_CHECK_LIB(m, main, LIBM="-lm")
        !           389:   ;;
        !           390: esac
        !           391: ])
        !           392: 
        !           393: # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
        !           394: # the libltdl convenience library, adds --enable-ltdl-convenience to
        !           395: # the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
        !           396: # is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
        !           397: # to be `${top_builddir}/libltdl'.  Make sure you start DIR with
        !           398: # '${top_builddir}/' (note the single quotes!) if your package is not
        !           399: # flat, and, if you're not using automake, define top_builddir as
        !           400: # appropriate in the Makefiles.
        !           401: AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           402:   case "$enable_ltdl_convenience" in
        !           403:   no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
        !           404:   "") enable_ltdl_convenience=yes
        !           405:       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
        !           406:   esac
        !           407:   LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
        !           408:   INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
        !           409: ])
        !           410: 
        !           411: # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
        !           412: # the libltdl installable library, and adds --enable-ltdl-install to
        !           413: # the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
        !           414: # is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
        !           415: # to be `${top_builddir}/libltdl'.  Make sure you start DIR with
        !           416: # '${top_builddir}/' (note the single quotes!) if your package is not
        !           417: # flat, and, if you're not using automake, define top_builddir as
        !           418: # appropriate in the Makefiles.
        !           419: # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
        !           420: AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
        !           421:   AC_CHECK_LIB(ltdl, main,
        !           422:   [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
        !           423:   [if test x"$enable_ltdl_install" = xno; then
        !           424:      AC_MSG_WARN([libltdl not installed, but installation disabled])
        !           425:    else
        !           426:      enable_ltdl_install=yes
        !           427:    fi
        !           428:   ])
        !           429:   if test x"$enable_ltdl_install" = x"yes"; then
        !           430:     ac_configure_args="$ac_configure_args --enable-ltdl-install"
        !           431:     LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
        !           432:     INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
        !           433:   else
        !           434:     ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
        !           435:     LIBLTDL="-lltdl"
        !           436:     INCLTDL=
        !           437:   fi
        !           438: ])
        !           439: 
        !           440: dnl old names
        !           441: AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
        !           442: AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
        !           443: AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
        !           444: AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
        !           445: AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
        !           446: AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
        !           447: AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
        !           448: 
        !           449: dnl This is just to silence aclocal about the macro not being used
        !           450: ifelse([AC_DISABLE_FAST_INSTALL])dnl

E-mail: