1 dnl aclocal.m4 generated automatically by aclocal 1.4a
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 # Like AC_CONFIG_HEADER, but automatically create stamp file.
15 AC_DEFUN(AM_CONFIG_HEADER,
17 AC_CONFIG_HEADER([$1])
18 dnl When config.status generates a header, we must update the stamp-h file.
19 dnl This file resides in the same directory as the config header
20 dnl that is generated. We must strip everything past the first ":",
21 dnl and everything past the last "/".
22 AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
23 ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
24 <<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
26 for am_file in <<$1>>; do
27 case " <<$>>CONFIG_HEADERS " in
28 *" <<$>>am_file "*<<)>>
29 echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
32 am_indx=`expr "<<$>>am_indx" + 1`
36 # Do all the work for Automake. This macro actually does too much --
37 # some checks are only needed if your package does certain things.
38 # But this isn't really a big deal.
43 dnl AM_INIT_AUTOMAKE(package,version, [no-define])
45 AC_DEFUN(AM_INIT_AUTOMAKE,
46 [AC_REQUIRE([AC_PROG_INSTALL])
47 dnl We require 2.13 because we rely on SHELL being computed by configure.
53 dnl test to see if srcdir already configured
54 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
55 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
58 AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
59 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
60 AC_REQUIRE([AM_SANITY_CHECK])
61 AC_REQUIRE([AC_ARG_PROGRAM])
62 dnl FIXME This is truly gross.
63 missing_dir=`cd $ac_aux_dir && pwd`
64 AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
65 AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
66 AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
67 AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
68 AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
69 dnl We check for tar when the user configures the end package.
70 dnl This is sad, since we only need this for "dist". However,
71 dnl there's no other good way to do it. We prefer GNU tar if
72 dnl we can find it. If we can't find a tar, it doesn't really matter.
73 AC_CHECK_PROGS(AMTAR, gnutar gtar tar)
75 if test -n "$AMTAR"; then
76 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
82 AC_REQUIRE([AC_PROG_MAKE_SET])])
85 # Check to make sure that the build environment is sane.
88 AC_DEFUN(AM_SANITY_CHECK,
89 [AC_MSG_CHECKING([whether build environment is sane])
92 echo timestamp > conftestfile
93 # Do `set' in a subshell so we don't clobber the current shell's
94 # arguments. Must try -L first in case configure is actually a
95 # symlink; some systems play weird games with the mod time of symlinks
96 # (eg FreeBSD returns the mod time of the symlink's containing
99 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
100 if test "[$]*" = "X"; then
102 set X `ls -t $srcdir/configure conftestfile`
104 if test "[$]*" != "X $srcdir/configure conftestfile" \
105 && test "[$]*" != "X conftestfile $srcdir/configure"; then
107 # If neither matched, then we have a broken ls. This can happen
108 # if, for instance, CONFIG_SHELL is bash and it inherits a
109 # broken ls alias from the environment. This has actually
110 # happened. Such a system could not be considered "sane".
111 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
112 alias in your environment])
115 test "[$]2" = conftestfile
121 AC_MSG_ERROR([newly created file is older than distributed files!
122 Check your system clock])
127 dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
128 dnl The program must properly implement --version.
129 AC_DEFUN(AM_MISSING_PROG,
130 [AC_MSG_CHECKING(for working $2)
131 # Run test in a subshell; some versions of sh will print an error if
132 # an executable is not found, even if stderr is redirected.
133 # Redirect stdin to placate older versions of autoconf. Sigh.
134 if ($2 --version) < /dev/null > /dev/null 2>&1; then
139 AC_MSG_RESULT(missing)
143 # Add --enable-maintainer-mode option to configure.
148 AC_DEFUN(AM_MAINTAINER_MODE,
149 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
150 dnl maintainer-mode is disabled by default
151 AC_ARG_ENABLE(maintainer-mode,
152 [ --enable-maintainer-mode enable make rules and dependencies not useful
153 (and sometimes confusing) to the casual installer],
154 USE_MAINTAINER_MODE=$enableval,
155 USE_MAINTAINER_MODE=no)
156 AC_MSG_RESULT($USE_MAINTAINER_MODE)
157 AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
158 MAINT=$MAINTAINER_MODE_TRUE
163 # Define a conditional.
165 AC_DEFUN(AM_CONDITIONAL,
177 # serial 35 AC_PROG_LIBTOOL
178 AC_DEFUN(AC_PROG_LIBTOOL,
179 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
181 # Save cache, so that ltconfig can load it
184 # Actually configure libtool. ac_aux_dir is where install-sh is found.
185 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
186 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
187 DLLTOOL="$DLLTOOL" AS="$AS" \
188 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
189 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
190 || AC_MSG_ERROR([libtool configure failed])
192 # Reload cache, that may have been modified by ltconfig
195 # This can be used to rebuild libtool when needed
196 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
198 # Always use our own libtool.
199 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
202 # Redirect the config.log output again, so that the ltconfig log is not
203 # clobbered by the next message.
207 AC_DEFUN(AC_LIBTOOL_SETUP,
209 AC_REQUIRE([AC_ENABLE_SHARED])dnl
210 AC_REQUIRE([AC_ENABLE_STATIC])dnl
211 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
212 AC_REQUIRE([AC_CANONICAL_HOST])dnl
213 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
214 AC_REQUIRE([AC_PROG_RANLIB])dnl
215 AC_REQUIRE([AC_PROG_CC])dnl
216 AC_REQUIRE([AC_PROG_LD])dnl
217 AC_REQUIRE([AC_PROG_NM])dnl
218 AC_REQUIRE([AC_SYS_NM_PARSE])dnl
219 AC_REQUIRE([AC_SYS_SYMBOL_UNDERSCORE])dnl
220 AC_REQUIRE([AC_PROG_LN_S])dnl
223 # Check for any special flags to pass to ltconfig.
224 libtool_flags="--cache-file=$cache_file"
225 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
226 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
227 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
228 test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen"
229 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
230 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
231 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
233 # Some flags need to be propagated to the compiler or linker for good
237 # Find out which ABI we are using.
238 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
239 if AC_TRY_EVAL(ac_compile); then
240 case "`/usr/bin/file conftest.o`" in
256 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
257 SAVE_CFLAGS="$CFLAGS"
258 CFLAGS="$CFLAGS -belf"
259 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
260 [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
261 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
262 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
263 CFLAGS="$SAVE_CFLAGS"
268 AC_SYS_LIBTOOL_CYGWIN
273 # enable the --disable-libtool-lock switch
275 AC_ARG_ENABLE(libtool-lock,
276 [ --disable-libtool-lock force libtool not to do file locking],
277 need_locks=$enableval,
280 if test x"$need_locks" = xno; then
281 libtool_flags="$libtool_flags --disable-lock"
285 # AC_LIBTOOL_DLOPEN - check for dlopen support
286 AC_DEFUN(AC_LIBTOOL_DLOPEN, [lt_dlopen=yes])
288 # AC_ENABLE_SHARED - implement the --enable-shared flag
289 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
290 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
292 AC_DEFUN(AC_ENABLE_SHARED,
293 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
294 AC_ARG_ENABLE(shared,
295 changequote(<<, >>)dnl
296 << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
298 [p=${PACKAGE-default}
300 yes) enable_shared=yes ;;
301 no) enable_shared=no ;;
304 # Look at the argument we got. We use all the common list separators.
305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
306 for pkg in $enableval; do
307 if test "X$pkg" = "X$p"; then
314 enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
317 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
318 AC_DEFUN(AC_DISABLE_SHARED,
319 [AC_ENABLE_SHARED(no)])
321 # AC_ENABLE_STATIC - implement the --enable-static flag
322 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
323 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
325 AC_DEFUN(AC_ENABLE_STATIC,
326 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
327 AC_ARG_ENABLE(static,
328 changequote(<<, >>)dnl
329 << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
331 [p=${PACKAGE-default}
333 yes) enable_static=yes ;;
334 no) enable_static=no ;;
337 # Look at the argument we got. We use all the common list separators.
338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
339 for pkg in $enableval; do
340 if test "X$pkg" = "X$p"; then
347 enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
350 # AC_DISABLE_STATIC - set the default static flag to --disable-static
351 AC_DEFUN(AC_DISABLE_STATIC,
352 [AC_ENABLE_STATIC(no)])
355 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
356 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
357 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
359 AC_DEFUN(AC_ENABLE_FAST_INSTALL,
360 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
361 AC_ARG_ENABLE(fast-install,
362 changequote(<<, >>)dnl
363 << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
365 [p=${PACKAGE-default}
367 yes) enable_fast_install=yes ;;
368 no) enable_fast_install=no ;;
370 enable_fast_install=no
371 # Look at the argument we got. We use all the common list separators.
372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
373 for pkg in $enableval; do
374 if test "X$pkg" = "X$p"; then
375 enable_fast_install=yes
381 enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
384 # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
385 AC_DEFUN(AC_DISABLE_FAST_INSTALL,
386 [AC_ENABLE_FAST_INSTALL(no)])
389 # AC_PROG_LD - find the path to the GNU or non-GNU linker
392 [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
393 test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
394 AC_REQUIRE([AC_PROG_CC])dnl
395 AC_REQUIRE([AC_CANONICAL_HOST])dnl
396 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
398 if test "$ac_cv_prog_gcc" = yes; then
399 # Check if gcc -print-prog-name=ld gives a path.
400 AC_MSG_CHECKING([for ld used by GCC])
401 ac_prog=`($CC -print-prog-name=ld) 2>&5`
403 # Accept absolute paths.
405 /* | [A-Za-z]:[\\/]*)
406 re_direlt='/[^/][^/]*/\.\./'
408 # Canonicalize the path of ld
409 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
410 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
411 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
413 test -z "$LD" && LD="$ac_prog"
416 # If it fails, then pretend we aren't using GCC.
420 # If it is relative, then search for the first ld in PATH.
424 elif test "$with_gnu_ld" = yes; then
425 AC_MSG_CHECKING([for GNU ld])
427 AC_MSG_CHECKING([for non-GNU ld])
429 AC_CACHE_VAL(ac_cv_path_LD,
430 [if test -z "$LD"; then
431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
432 for ac_dir in $PATH; do
433 test -z "$ac_dir" && ac_dir=.
434 if test -f "$ac_dir/$ac_prog"; then
435 ac_cv_path_LD="$ac_dir/$ac_prog"
436 # Check to see if the program is GNU ld. I'd rather use --version,
437 # but apparently some GNU ld's only accept -v.
438 # Break only if it was the GNU/non-GNU ld that we prefer.
439 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
440 test "$with_gnu_ld" != no && break
442 test "$with_gnu_ld" != yes && break
448 ac_cv_path_LD="$LD" # Let the user override the test with a path.
451 if test -n "$LD"; then
456 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
461 AC_DEFUN(AC_PROG_LD_GNU,
462 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
463 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
464 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
465 ac_cv_prog_gnu_ld=yes
471 # AC_PROG_NM - find the path to a BSD-compatible name lister
473 [AC_MSG_CHECKING([for BSD-compatible nm])
474 AC_CACHE_VAL(ac_cv_path_NM,
475 [if test -n "$NM"; then
476 # Let the user override the test.
479 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
480 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
481 test -z "$ac_dir" && ac_dir=.
482 if test -f $ac_dir/nm; then
483 # Check to see if the nm accepts a BSD-compat flag.
484 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
485 # nm: unknown option "B" ignored
486 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
487 ac_cv_path_NM="$ac_dir/nm -B"
489 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
490 ac_cv_path_NM="$ac_dir/nm -p"
493 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
494 continue # so that we can try to find one that supports BSD flags
499 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
506 # AC_SYS_NM_PARSE - Check for command to grab the raw symbol name followed
507 # by C symbol name from nm.
508 AC_DEFUN(AC_SYS_NM_PARSE,
509 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
510 AC_REQUIRE([AC_PROG_NM])dnl
511 # Check for command to grab the raw symbol name followed by C symbol from nm.
512 AC_MSG_CHECKING([command to parse $NM output])
513 AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
514 [# These are sane defaults that work on at least a few old systems.
515 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
518 # Character class describing NM global symbol codes.
519 ac_symcode='[BCDEGRST]'
521 # Regexp to match symbols that can be accessed directly from C.
522 ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
524 # Transform the above into a raw symbol and a C symbol.
525 ac_symxfrm='\1 \2\3 \3'
527 # Transform an extracted symbol line into a proper C declaration
528 ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
530 # Define system-specific variables.
536 ac_symcode='[ABCDGISTW]'
539 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
542 ac_symcode='[BCDEGRST]'
549 # If we're using GNU nm, then use its standard symbol codes.
550 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
551 ac_symcode='[ABCDGISTW]'
555 # Try without a prefix undercore, then with it.
556 for ac_symprfx in "" "_"; do
558 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($ac_symcode\)[ ][ ]*\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
560 # Check to see that the pipe works correctly.
562 rm -f conftest.$ac_ext
563 cat > conftest.$ac_ext <<EOF
568 void nm_test_func(){}
572 int main(){nm_test_var='a';nm_test_func;return 0;}
575 if AC_TRY_EVAL(ac_compile); then
576 # Now try to grab the symbols.
579 if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
581 # Try sorting and uniquifying the output.
582 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
583 mv -f "$ac_nlist"T "$ac_nlist"
588 # Make sure that we snagged all the symbols we need.
589 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
590 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
591 cat <<EOF > conftest.c
597 # Now generate the symbol file.
598 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
600 cat <<EOF >> conftest.c
601 #if defined (__STDC__) && __STDC__
602 # define lt_ptr_t void *
604 # define lt_ptr_t char *
608 /* The mapping between symbol names and symbols. */
614 lt_preloaded_symbols[] =
618 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
619 cat <<\EOF >> conftest.c
627 # Now try linking the two files.
628 mv conftest.$ac_objext conftestm.$ac_objext
630 ac_save_CFLAGS="$CFLAGS"
631 LIBS="conftestm.$ac_objext"
632 CFLAGS="$CFLAGS$no_builtin_flag"
633 if AC_TRY_EVAL(ac_link) && test -s conftest; then
636 echo "configure: failed program was:" >&AC_FD_CC
637 cat conftest.c >&AC_FD_CC
640 CFLAGS="$ac_save_CFLAGS"
642 echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
645 echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
648 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
651 echo "$progname: failed program was:" >&AC_FD_CC
652 cat conftest.c >&AC_FD_CC
656 # Do not use the global_symbol_pipe unless it works.
657 if test "$ac_pipe_works" = yes; then
658 if test x"$ac_symprfx" = x"_"; then
659 ac_cv_sys_symbol_underscore=yes
661 ac_cv_sys_symbol_underscore=no
665 ac_cv_sys_global_symbol_pipe=
671 if test -z "$ac_cv_sys_global_symbol_pipe"; then
674 AC_MSG_RESULT($ac_result)
677 # AC_SYS_LIBTOOL_CYGWIN - find tools needed on cygwin
678 AC_DEFUN(AC_SYS_LIBTOOL_CYGWIN,
679 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
680 AC_CHECK_TOOL(AS, as, false)
683 # AC_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
684 # with an underscore?
685 AC_DEFUN(AC_SYS_SYMBOL_UNDERSCORE,
686 [AC_REQUIRE([AC_PROG_NM])dnl
687 AC_REQUIRE([AC_SYS_NM_PARSE])dnl
688 AC_MSG_CHECKING([for _ prefix in compiled symbols])
689 AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
690 [ac_cv_sys_symbol_underscore=no
691 cat > conftest.$ac_ext <<EOF
692 void nm_test_func(){}
693 int main(){nm_test_func;return 0;}
695 if AC_TRY_EVAL(ac_compile); then
696 # Now try to grab the symbols.
698 if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
699 # See whether the symbols have a leading underscore.
700 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
701 ac_cv_sys_symbol_underscore=yes
703 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
706 echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
710 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
713 echo "configure: failed program was:" >&AC_FD_CC
714 cat conftest.c >&AC_FD_CC
718 AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
719 USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
720 AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl
723 # AC_CHECK_LIBM - check for math library
724 AC_DEFUN(AC_CHECK_LIBM, [
725 AC_CHECK_LIB(mw, _mwvalidcheckl)
729 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
730 # the libltdl convenience library, adds --enable-ltdl-convenience to
731 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
732 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
733 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
734 # '${top_builddir}/' (note the single quotes!) if your package is not
735 # flat, and, if you're not using automake, define top_builddir as
736 # appropriate in the Makefiles.
737 AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [
738 case "$enable_ltdl_convenience" in
739 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
740 "") enable_ltdl_convenience=yes
741 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
743 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
746 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
747 # the libltdl installable library, and adds --enable-ltdl-install to
748 # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
749 # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
750 # to be `${top_builddir}/libltdl'. Make sure you start DIR with
751 # '${top_builddir}/' (note the single quotes!) if your package is not
752 # flat, and, if you're not using automake, define top_builddir as
753 # appropriate in the Makefiles.
754 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
755 AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [
756 AC_CHECK_LIB(ltdl, main, LIBLTDL="-lltdl", [
757 case "$enable_ltdl_install" in
758 no) AC_MSG_WARN([libltdl not installed, but installation disabled]) ;;
759 "") enable_ltdl_install=yes
760 ac_configure_args="$ac_configure_args --enable-ltdl-install" ;;
763 if test x"$enable_ltdl_install" != x"no"; then
764 LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
769 AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
770 AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
771 AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
772 AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
773 AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
774 AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
775 AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
776 AC_DEFUN(AM_SYS_NM_PARSE, [indir([AC_SYS_NM_PARSE])])dnl
777 AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE, [indir([AC_SYS_SYMBOL_UNDERSCORE])])dnl
778 AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN, [indir([AC_SYS_LIBTOOL_CYGWIN])])dnl