ltconfig revision 04bdb234571448ed6194e1d4048e6512f2446f1c
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# ltconfig - Create a system-specific libtool.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (C) 1996-1999 Free Software Foundation, Inc.
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson# This file is free software; you can redistribute it and/or modify it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# under the terms of the GNU General Public License as published by
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# the Free Software Foundation; either version 2 of the License, or
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# (at your option) any later version.
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# This program is distributed in the hope that it will be useful, but
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# WITHOUT ANY WARRANTY; without even the implied warranty of
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af5073d03288a53b646ec3b807ac25ced64d7879Mark Andrews# General Public License for more details.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You should have received a copy of the GNU General Public License
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# along with this program; if not, write to the Free Software
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# As a special exception to the GNU General Public License, if you
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# distribute this file as part of a program that contains a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# configuration script generated by Autoconf, you may include it under
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# the same distribution terms that you use for the rest of that program.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# A lot of this script is taken from autoconf-2.10.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Check that we are running under the correct shell.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Discard the --no-reexec flag, and continue.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Avoid inline document here, it may be left over
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userelif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # Yippee, $echo works!
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User # Restart under the correct shell.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # used as fallback echo
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Find the correct PATH separator. Usually this is `:', but
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# DJGPP uses `;' like DOS.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# The HP-UX ksh and POSIX shell print the target directory to stdout
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater# if CDPATH is set.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox Userif test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userif test "X${echo_test_string+set}" != Xset; then
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User # find a string as large as possible, as long as the shell can cope with it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein if (echo_test_string="`eval $cmd`") 2>/dev/null &&
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
b3cbb2f1ad021349e89807f3492df6e4e679cd56Mark Andrewsif test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # The Solaris, AIX, and Digital Unix default echo programs unquote
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # backslashes. This makes it impossible to quote backslashes using
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # echo "$something" | sed 's/\\/\\\\/g'
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # So, first we look for a working echo in the user's PATH.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
61e1dc26d62c2a0059e3ca7efe2ad0f4a5b8df92Mark Andrews if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User # We didn't find a better echo, so look for alternatives.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # This shell has a builtin print -r that does the trick.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User echo='print -r'
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User # If we have ksh, try running ltconfig again with it.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User # Try using printf.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User echo='printf "%s\n"'
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Cool, printf works
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User echo="$CONFIG_SHELL $0 --fallback-echo"
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User echo="$CONFIG_SHELL $0 --fallback-echo"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # maybe with a smaller string...
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User # Oops. We lost completely, so just stick with echo.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Sed substitution that helps us do robust quoting. It backslashifies
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# metacharacters that are still active within double-quoted strings.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# Same as above, but do not quote variable references.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userdouble_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# Sed substitution to delay expansion of an escaped shell variable in a
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# double_quote_subst'ed string.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox Userdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# The name of this program.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox Userac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userhelp="Try \`$progname --help' for more information."
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# Global variables:
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User# All known linkers require a `.a' archive for static linking (except M$VC,
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# which needs '.lib').
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Parse the command line options.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User # If the previous option needs an argument, assign it.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User if test -n "$prev"; then
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User eval "$prev=\$option"
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox UserUsage: $progname [OPTION]... [HOST [LTMAIN]]
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox UserGenerate a system-specific libtool script.
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --debug enable verbose shell tracing
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --disable-shared do not build shared libraries
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --disable-static do not build static libraries
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --disable-fast-install do not optimize for fast installation
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --enable-dlopen enable dlopen support
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --enable-win32-dll enable building dlls on win32 hosts
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User --help display this help and exit
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --no-verify do not verify that HOST is a valid host type
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User-o, --output=FILE specify the output file [default=$default_ofile]
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --quiet same as \`--silent'
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --silent do not print informational messages
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --srcdir=DIR find \`config.guess' in DIR
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User --version output version information and exit
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --with-gcc assume that the GNU C compiler will be used
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --with-gnu-ld assume that the C compiler uses the GNU linker
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User --disable-lock disable file locking
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User --cache-file=FILE configure cache file
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userthat provides basic libtool functionality.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinHOST is the canonical host system name [default=guessed].
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User echo "$progname: enabling shell trace mode"
335c82aebd0da12b401cfac28bd305da95a4d052Tinderbox User --disable-fast-install) enable_fast_install=no ;;
fb84f9014321c5f33c4682de5661b579fcde318fAndreas Gustafsson --enable-win32-dll) enable_win32_dll=yes ;;
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
370c55dfcdc559b8761ef3eb4921498580caf14cAutomatic Updater echo "$progname: unrecognized option \`$option'" 1>&2
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -z "$ltmain"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User elif test -z "$host"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# echo "$progname: warning \`$option' is not a valid host type" 1>&2
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox Userif test -z "$ltmain"; then
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User echo "$progname: you must specify a LTMAIN file" 1>&2
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userif test ! -f "$ltmain"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User echo "$progname: \`$ltmain' does not exist" 1>&2
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Quote any args containing shell metacharacters.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# A relevant subset of AC_INIT.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# File descriptor usage:
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# 0 standard input
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# 1 file creation
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 2 errors and warnings
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# 3 some systems may open it to /dev/tty
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# 4 used on the Kubota Titan
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# 5 compiler messages saved in config.log
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# 6 checking for... messages and results
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# NLS nuisances.
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User# Only set LANG and LC_ALL to C if already set.
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User# These must not be set unconditionally because not all systems understand
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# e.g. LANG=C (notably SCO).
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox Userif test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox Userif test "X${LANG+set}" = Xset; then LANG=C; export LANG; fi
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox Userif test -n "$cache_file" && test -r "$cache_file"; then
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User echo "loading cache $cache_file within ltconfig"
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox Userif (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
1879ff49326b49a9e4eadaca193c631409bf8575Tinderbox User # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userif test -z "$srcdir"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Assume the source directory is the same one as the path to LTMAIN.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Check for config.guess and config.sub.
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -z "$ac_aux_dir"; then
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
d9f0b06dc2bba47e3fe63afdf41c638d3517ceffTinderbox User # Make sure we can run config.sub.
d9f0b06dc2bba47e3fe63afdf41c638d3517ceffTinderbox User if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User echo "$progname: cannot run $ac_config_sub" 1>&2
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User echo $ac_n "checking host system type""... $ac_c" 1>&6
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if host_alias=`$SHELL $ac_config_guess`; then :
4fe1df3962f1f37304b6789b2d1a33a70fcb0b28Tinderbox User echo "$progname: cannot guess host type; you must specify one" 1>&2
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Make sure the host verified.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userelif test -z "$host"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userlinux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userhost_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
a3ff24aaa545c45b8c581b2127d02d735aff8881Tinderbox Userhost_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userhost_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # AIX sometimes has problems with the GCC collect2 program. For some
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # reason, if we set the COLLECT_NAMES environment variable, the problems
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # vanish in a puff of smoke.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test "X${COLLECT_NAMES+set}" != Xset; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Determine commands to create old-style static archives.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Set a sane default for `AR'.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Set a sane default for `OBJDUMP'.
0226754d9e537fd56b690d5890cfe215a6c59f89Tinderbox User# If RANLIB is not set, then run the test.
0226754d9e537fd56b690d5890cfe215a6c59f89Tinderbox User echo $ac_n "checking for ranlib... $ac_c" 1>&6
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userif test -n "$RANLIB"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Check to see if we are using GCC.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userif test "$with_gcc" != yes || test -z "$CC"; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # If CC is not set, then try to find GCC or a usable CC.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -z "$CC"; then
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -n "$CC"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if test -z "$CC"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater # We found a bogon in the path, so make sure we never use it.
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater # We chose a different compiler from the bogus one.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # However, it has the same name, so the bogon will be chosen
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # first if we set CC to just the name; use the full file name.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if test -n "$CC"; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User if test -z "$CC"; then
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # Now see if the compiler is really GCC.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User echo "$progname:581: checking whether we are using GNU C" >&5
78ec962d9828200d18cd0e41b7d6b9792a74923dTinderbox User#ifdef __GNUC__
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User# Allow CC to be a program name with arguments.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userecho $ac_n "checking for object suffix... $ac_c" 1>&6
be6c1c506161e6f45fcff5d0425f78801bc267c1Automatic Updaterecho "$progname:603: checking for object suffix" >& 5
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userif { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # Append any warnings to the config.log.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox Userecho $ac_n "checking for executable suffix... $ac_c" 1>&6
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox Userif eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User echo "$progname:629: checking for executable suffix" >& 5
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
6825f304c5f0cc2d4ba22fa2b6f7a431f9c1de59Tinderbox User # Append any warnings to the config.log.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox Userecho $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # PIC is the default for these OSes.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Below there is a dirty hack to force normal static linking with -ldl
c0cbdeedb5e119c640f098da1851cb1b9adcc739Tinderbox User # The problem is because libdl dynamically linked with both libc and
c0cbdeedb5e119c640f098da1851cb1b9adcc739Tinderbox User # libC (AIX C++ library), which obviously doesn't included in libraries
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # list by gcc. This cause undefined symbols with -static flags.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # This hack allows C programs to be linked with "-static -ldl", but
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User # we not sure about C++ programs.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User link_static_flag="$link_static_flag ${wl}-lC"
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # We can build DLLs from non-PIC.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # FIXME: we need at least 68020 code to build shared libraries, but
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # adding the `-m68020' flag to GCC prevents building anything better,
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # like `-m68040'.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User pic_flag='-m68020 -resident32 -malways-restore-a4'
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # PORTME Check for PIC flags for the system compiler.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # All AIX code is PIC.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User link_static_flag='-bnso -bI:/lib/syscalls.exp'
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # Is there a better link_static_flag that works with the bundled CC?
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User # PIC (with -KPIC) is the default.
8e16b3078757ba3010c24aef805e9e29ed19518bTinderbox User # We can build DLLs from non-PIC.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # All OSF/1 code is PIC.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinif test -n "$pic_flag"; then
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # Check to make sure the pic_flag actually works.
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Append any warnings to the config.log.
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews # On HP-UX, both CC and GCC only warn that PIC is supported... then they
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User # create non-PIC objects. So, if there were any warnings, we assume that
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews # PIC is not supported.
057cafaa3df7be7a6dcca71fbaf8fb498fd83518Mark Andrews if test -s conftest.err; then
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Append any errors to the config.log.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Check to see if options -o and -c are simultaneously supported by compiler
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinecho $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
cd conftest
chmod -w .
if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
# Append any errors to the config.log.
chmod u+w .
if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
if test -s conftest.err; then
# Append any errors to the config.log.
if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
if test -s conftest.err; then
# Append any errors to the config.log.
if test -n "$special_shlib_compile_flags"; then
echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if test -z "$LN_S"; then
if test -z "$LD"; then
[\\/]* | [A-Za-z]:[\\/]*)
if test -z "$LD"; then
if test -n "$LD"; then
if test -z "$LD"; then
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
amigaos*)
archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
beos*)
export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
$DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def $objdir/$soname-ltdll.$objext $libobjs $convenience~
test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
$CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
$CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
$CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
netbsd*)
archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
sunos4*)
archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
aix3*)
archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
aix4*)
if test -f "$collect2name" && \
archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
amigaos*)
archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
freebsd1*)
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
# support. Future versions do this automatically, but an explicit c++rt0.o
freebsd2*)
freebsd*)
hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
netbsd*)
openbsd*)
os2*)
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
osf3*)
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
rhapsody*)
solaris*)
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
sunos4*)
sysv5*)
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
uts4*)
dgux*)
if test -z "$NM"; then
aix*)
global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
irix*)
solaris*)
if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
if test -z "$global_symbol_pipe"; then
if test -n "$hardcode_libdir_flag_spec" || \
test -n "$runpath_var"; then
# PORTME Fill in your ld.so characteristics
aix3*)
aix4*)
amigaos*)
# Create ${libname}_ixlibrary.a entries in /sys/libs.
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
beos*)
bsdi4*)
# the default ld.so.conf also contains /usr/contrib/lib and
freebsd1*)
freebsd*)
freebsd-*)
gnu*)
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
# Give a soname corresponding to the major version so that dld.sl refuses to
library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
irix5*)
# Only the GNU ld.so supports shared libraries on MkLinux.
netbsd*)
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
openbsd*)
os2*)
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
rhapsody*)
solaris*)
sunos4*)
ncr)
deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
uts4*)
dgux*)
# configure.in, otherwise build static only libraries.
aix3*)
if test -n "$RANLIB"; then
aix4*)
if test -d .libs; then
if { (eval echo $progname:2269: \"$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 $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo $progname:2356: \"$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 $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo $progname:2445: \"$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 test -z "$ac_err"; then
eval "ac_cv_header_$ac_safe=yes"
eval "ac_cv_header_$ac_safe=no"
if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
# Only quote variables if we're using ltmain.sh.
*.sh)
eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
echo "creating $ofile"
eval "$var=\\\"\$var\\\""
echo "creating $cfgfile"
*.sh)
echo >> "$ofile"
aix3*)
export COLLECT_NAMES
# Append the ltmain.sh script.
echo "FIXME: would compile $ltmain"
# 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"