configure revision 51917258dbb23cfe6069ae1cf2b7fc5aefc1e0c2
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# From configure.in Revision: 1.60
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## libtool.m4 - Configure libtool for the target system. -*-Shell-script-*-
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## Copyright (C) 1996-1999 Free Software Foundation, Inc.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## This program is free software; you can redistribute it and/or modify
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## it under the terms of the GNU General Public License as published by
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## the Free Software Foundation; either version 2 of the License, or
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## (at your option) any later version.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## This program is distributed in the hope that it will be useful, but
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## WITHOUT ANY WARRANTY; without even the implied warranty of
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## General Public License for more details.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## You should have received a copy of the GNU General Public License
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## along with this program; if not, write to the Free Software
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## As a special exception to the GNU General Public License, if you
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## distribute this file as part of a program that contains a
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## configuration script generated by Autoconf, you may include it under
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User## the same distribution terms that you use for the rest of that program.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# serial 40 AC_PROG_LIBTOOL
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_ENABLE_SHARED - implement the --enable-shared flag
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Usage: AC_ENABLE_SHARED[(DEFAULT)]
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_ENABLE_STATIC - implement the --enable-static flag
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Usage: AC_ENABLE_STATIC[(DEFAULT)]
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_DISABLE_STATIC - set the default static flag to --disable-static
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_PROG_LD - find the path to the GNU or non-GNU linker
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_PROG_NM - find the path to a BSD-compatible name lister
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_CHECK_LIBM - check for math library
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# the libltdl convenience library, adds --enable-ltdl-convenience to
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# to be `${top_builddir}/libltdl'. Make sure you start DIR with
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# '${top_builddir}/' (note the single quotes!) if your package is not
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# flat, and, if you're not using automake, define top_builddir as
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# appropriate in the Makefiles.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# the libltdl installable library, and adds --enable-ltdl-install to
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# to be `${top_builddir}/libltdl'. Make sure you start DIR with
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# '${top_builddir}/' (note the single quotes!) if your package is not
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# flat, and, if you're not using automake, define top_builddir as
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# appropriate in the Makefiles.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Guess values for system-dependent variables and create Makefiles.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Generated automatically using autoconf version 2.13
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# This configure script is free software; the Free Software Foundation
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# gives unlimited permission to copy, distribute and modify it.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# Any additions from configure.in:
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User --with-mit-pthreads use the mit-pthreads thread library"
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User --with-ptl2 use the ptl2 thread library"
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User --with-libtool use GNU libtool"
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User --enable-shared[=PKGS] build shared libraries [default=yes]"
program_transform_name=s,x,x,
site=
for ac_option
if test -n "$ac_prev"; then
eval "$ac_prev=\$ac_option"
*) ac_optarg= ;;
| --da=*)
eval "enable_${ac_feature}='$ac_optarg'" ;;
cat << EOF
cat << EOF
if test -n "$ac_help"; then
echo "--enable and --with options recognized:$ac_help"
eval "with_${ac_package}='$ac_optarg'" ;;
if test -n "$ac_prev"; then
# 5 compiler messages saved in config.log
for ac_arg
# because not all systems understand e.g. LANG=C (notably SCO).
# confdefs.h avoids OS command line length limits that DEFS can exceed.
echo > confdefs.h
if test -z "$srcdir"; then
srcdir=..
if test -z "$CONFIG_SITE"; then
if test -r "$ac_site_file"; then
echo "loading site script $ac_site_file"
. "$ac_site_file"
if test -r "$cache_file"; then
echo "loading cache $cache_file"
echo "creating cache $cache_file"
ac_ext=c
if test -z "$ac_aux_dir"; then
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
# Make sure we can run config.sub.
NONE)
NONE)
all:
if test -n "$ac_maketemp"; then
if test -n "$RANLIB"; then
if test -n "$RANLIB"; then
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# ./install, which can be erroneously created by make from ./install.sh.
if test -z "$INSTALL"; then
if test -n "$AR"; then
*-netbsd*)
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
if test -z "$CC"; then
if test -n "$CC"; then
if test -n "$CC"; then
ac_ext=c
if { (eval echo configure:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ac_ext=c
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
echo "configure:1097: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
GCC=
if test "$ac_test_CFLAGS" = set; then
if test -n "$YACC"; then
if test -n "$YACC"; then
test -n "$YACC" && break
CPP=
if test -z "$CPP"; then
if test -z "$ac_err"; then
if test -z "$ac_err"; then
if test -z "$ac_err"; then
if test -z "$ac_err"; then
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
if test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
if { (eval echo configure:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:1927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
*-linux*)
if { (eval echo configure:1990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
if { (eval echo configure:2037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
eval "ac_cv_lib_$ac_lib_var=yes"
eval "ac_cv_lib_$ac_lib_var=no"
yes)
NONE)
[\\/]* | [A-Za-z]:[\\/]*)
if test -z "$LD"; then
if test -n "$LD"; then
if test -n "$NM"; then
*-*-irix6*)
*N32*)
if { (eval echo configure:2519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# By default, configure uses ./config.cache as the cache file,
# config.status only pays attention to the cache file if you give it the
*ac_space=\ *)
sed -n \
esac >> confcache
if test -w $cache_file; then
echo "updating cache $cache_file"
echo "not updating unwritable cache $cache_file"
if test -r "$cache_file"; then
echo "loading cache $cache_file"
echo "creating cache $cache_file"
# Redirect the config.log output again, so that the ltconfig log is not
O=lo
A=la
if { (eval echo configure:2697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
# By default, configure uses ./config.cache as the cache file,
# config.status only pays attention to the cache file if you give it the
*ac_space=\ *)
sed -n \
esac >> confcache
if test -w $cache_file; then
echo "updating cache $cache_file"
echo "not updating unwritable cache $cache_file"
if test "x$srcdir" = x.; then
# Without the "./", some shells look in PATH for config.status.
while $ac_more_lines; do
ac_more_lines=false
if test -z "$ac_sed_cmds"; then
if test -z "$ac_sed_cmds"; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
.) srcdir=.
# $configure_input" ;;
*) ac_comsub= ;;
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
s%@INSTALL@%$INSTALL%g
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
# Transform confdefs.h into a sed script conftest.vals that substitutes
# the proper values into config.h.in to produce config.h. And first:
# Protect against being on the right side of a sed subst in config.status.
# Protect against being in an unquoted here document in config.status.
sed -n -f conftest.hdr confdefs.h > conftest.vals
rm -f conftest.hdr
cat >> conftest.vals <<\EOF
# Break up conftest.vals because some shells have a limit on
rm -f conftest.tail
sed -f conftest.frag conftest.in > conftest.out
rm -f conftest.in
rm -f conftest.vals
rm -f conftest.vals
cat >> $CONFIG_STATUS <<\EOF
rm -f conftest.in
if cmp -s $ac_file conftest.h 2>/dev/null; then
rm -f conftest.h
cat >> $CONFIG_STATUS <<EOF
cat >> $CONFIG_STATUS <<\EOF