1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/gst-plugins-nuvdemux/configure Thu Oct 26 18:55:14 2006 +0100
1.3 @@ -0,0 +1,23595 @@
1.4 +#! /bin/sh
1.5 +# Guess values for system-dependent variables and create Makefiles.
1.6 +# Generated by GNU Autoconf 2.59.
1.7 +#
1.8 +# Copyright (C) 2003 Free Software Foundation, Inc.
1.9 +# This configure script is free software; the Free Software Foundation
1.10 +# gives unlimited permission to copy, distribute and modify it.
1.11 +## --------------------- ##
1.12 +## M4sh Initialization. ##
1.13 +## --------------------- ##
1.14 +
1.15 +# Be Bourne compatible
1.16 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.17 + emulate sh
1.18 + NULLCMD=:
1.19 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.20 + # is contrary to our usage. Disable this feature.
1.21 + alias -g '${1+"$@"}'='"$@"'
1.22 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1.23 + set -o posix
1.24 +fi
1.25 +DUALCASE=1; export DUALCASE # for MKS sh
1.26 +
1.27 +# Support unset when possible.
1.28 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.29 + as_unset=unset
1.30 +else
1.31 + as_unset=false
1.32 +fi
1.33 +
1.34 +
1.35 +# Work around bugs in pre-3.0 UWIN ksh.
1.36 +$as_unset ENV MAIL MAILPATH
1.37 +PS1='$ '
1.38 +PS2='> '
1.39 +PS4='+ '
1.40 +
1.41 +# NLS nuisances.
1.42 +for as_var in \
1.43 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1.44 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1.45 + LC_TELEPHONE LC_TIME
1.46 +do
1.47 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.48 + eval $as_var=C; export $as_var
1.49 + else
1.50 + $as_unset $as_var
1.51 + fi
1.52 +done
1.53 +
1.54 +# Required to use basename.
1.55 +if expr a : '\(a\)' >/dev/null 2>&1; then
1.56 + as_expr=expr
1.57 +else
1.58 + as_expr=false
1.59 +fi
1.60 +
1.61 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.62 + as_basename=basename
1.63 +else
1.64 + as_basename=false
1.65 +fi
1.66 +
1.67 +
1.68 +# Name of the executable.
1.69 +as_me=`$as_basename "$0" ||
1.70 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1.71 + X"$0" : 'X\(//\)$' \| \
1.72 + X"$0" : 'X\(/\)$' \| \
1.73 + . : '\(.\)' 2>/dev/null ||
1.74 +echo X/"$0" |
1.75 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1.76 + /^X\/\(\/\/\)$/{ s//\1/; q; }
1.77 + /^X\/\(\/\).*/{ s//\1/; q; }
1.78 + s/.*/./; q'`
1.79 +
1.80 +
1.81 +# PATH needs CR, and LINENO needs CR and PATH.
1.82 +# Avoid depending upon Character Ranges.
1.83 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1.84 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1.85 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1.86 +as_cr_digits='0123456789'
1.87 +as_cr_alnum=$as_cr_Letters$as_cr_digits
1.88 +
1.89 +# The user is always right.
1.90 +if test "${PATH_SEPARATOR+set}" != set; then
1.91 + echo "#! /bin/sh" >conf$$.sh
1.92 + echo "exit 0" >>conf$$.sh
1.93 + chmod +x conf$$.sh
1.94 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.95 + PATH_SEPARATOR=';'
1.96 + else
1.97 + PATH_SEPARATOR=:
1.98 + fi
1.99 + rm -f conf$$.sh
1.100 +fi
1.101 +
1.102 +
1.103 + as_lineno_1=$LINENO
1.104 + as_lineno_2=$LINENO
1.105 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1.106 + test "x$as_lineno_1" != "x$as_lineno_2" &&
1.107 + test "x$as_lineno_3" = "x$as_lineno_2" || {
1.108 + # Find who we are. Look in the path if we contain no path at all
1.109 + # relative or not.
1.110 + case $0 in
1.111 + *[\\/]* ) as_myself=$0 ;;
1.112 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.113 +for as_dir in $PATH
1.114 +do
1.115 + IFS=$as_save_IFS
1.116 + test -z "$as_dir" && as_dir=.
1.117 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1.118 +done
1.119 +
1.120 + ;;
1.121 + esac
1.122 + # We did not find ourselves, most probably we were run as `sh COMMAND'
1.123 + # in which case we are not to be found in the path.
1.124 + if test "x$as_myself" = x; then
1.125 + as_myself=$0
1.126 + fi
1.127 + if test ! -f "$as_myself"; then
1.128 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
1.129 + { (exit 1); exit 1; }; }
1.130 + fi
1.131 + case $CONFIG_SHELL in
1.132 + '')
1.133 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.134 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.135 +do
1.136 + IFS=$as_save_IFS
1.137 + test -z "$as_dir" && as_dir=.
1.138 + for as_base in sh bash ksh sh5; do
1.139 + case $as_dir in
1.140 + /*)
1.141 + if ("$as_dir/$as_base" -c '
1.142 + as_lineno_1=$LINENO
1.143 + as_lineno_2=$LINENO
1.144 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1.145 + test "x$as_lineno_1" != "x$as_lineno_2" &&
1.146 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1.147 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1.148 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1.149 + CONFIG_SHELL=$as_dir/$as_base
1.150 + export CONFIG_SHELL
1.151 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1.152 + fi;;
1.153 + esac
1.154 + done
1.155 +done
1.156 +;;
1.157 + esac
1.158 +
1.159 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1.160 + # uniformly replaced by the line number. The first 'sed' inserts a
1.161 + # line-number line before each line; the second 'sed' does the real
1.162 + # work. The second script uses 'N' to pair each line-number line
1.163 + # with the numbered line, and appends trailing '-' during
1.164 + # substitution so that $LINENO is not a special case at line end.
1.165 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.166 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1.167 + sed '=' <$as_myself |
1.168 + sed '
1.169 + N
1.170 + s,$,-,
1.171 + : loop
1.172 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1.173 + t loop
1.174 + s,-$,,
1.175 + s,^['$as_cr_digits']*\n,,
1.176 + ' >$as_me.lineno &&
1.177 + chmod +x $as_me.lineno ||
1.178 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1.179 + { (exit 1); exit 1; }; }
1.180 +
1.181 + # Don't try to exec as it changes $[0], causing all sort of problems
1.182 + # (the dirname of $[0] is not the place where we might find the
1.183 + # original and so on. Autoconf is especially sensible to this).
1.184 + . ./$as_me.lineno
1.185 + # Exit status is that of the last command.
1.186 + exit
1.187 +}
1.188 +
1.189 +
1.190 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1.191 + *c*,-n*) ECHO_N= ECHO_C='
1.192 +' ECHO_T=' ' ;;
1.193 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1.194 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.195 +esac
1.196 +
1.197 +if expr a : '\(a\)' >/dev/null 2>&1; then
1.198 + as_expr=expr
1.199 +else
1.200 + as_expr=false
1.201 +fi
1.202 +
1.203 +rm -f conf$$ conf$$.exe conf$$.file
1.204 +echo >conf$$.file
1.205 +if ln -s conf$$.file conf$$ 2>/dev/null; then
1.206 + # We could just check for DJGPP; but this test a) works b) is more generic
1.207 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1.208 + if test -f conf$$.exe; then
1.209 + # Don't use ln at all; we don't have any links
1.210 + as_ln_s='cp -p'
1.211 + else
1.212 + as_ln_s='ln -s'
1.213 + fi
1.214 +elif ln conf$$.file conf$$ 2>/dev/null; then
1.215 + as_ln_s=ln
1.216 +else
1.217 + as_ln_s='cp -p'
1.218 +fi
1.219 +rm -f conf$$ conf$$.exe conf$$.file
1.220 +
1.221 +if mkdir -p . 2>/dev/null; then
1.222 + as_mkdir_p=:
1.223 +else
1.224 + test -d ./-p && rmdir ./-p
1.225 + as_mkdir_p=false
1.226 +fi
1.227 +
1.228 +as_executable_p="test -f"
1.229 +
1.230 +# Sed expression to map a string onto a valid CPP name.
1.231 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.232 +
1.233 +# Sed expression to map a string onto a valid variable name.
1.234 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.235 +
1.236 +
1.237 +# IFS
1.238 +# We need space, tab and new line, in precisely that order.
1.239 +as_nl='
1.240 +'
1.241 +IFS=" $as_nl"
1.242 +
1.243 +# CDPATH.
1.244 +$as_unset CDPATH
1.245 +
1.246 +
1.247 +
1.248 +# Check that we are running under the correct shell.
1.249 +SHELL=${CONFIG_SHELL-/bin/sh}
1.250 +
1.251 +case X$ECHO in
1.252 +X*--fallback-echo)
1.253 + # Remove one level of quotation (which was required for Make).
1.254 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.255 + ;;
1.256 +esac
1.257 +
1.258 +echo=${ECHO-echo}
1.259 +if test "X$1" = X--no-reexec; then
1.260 + # Discard the --no-reexec flag, and continue.
1.261 + shift
1.262 +elif test "X$1" = X--fallback-echo; then
1.263 + # Avoid inline document here, it may be left over
1.264 + :
1.265 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1.266 + # Yippee, $echo works!
1.267 + :
1.268 +else
1.269 + # Restart under the correct shell.
1.270 + exec $SHELL "$0" --no-reexec ${1+"$@"}
1.271 +fi
1.272 +
1.273 +if test "X$1" = X--fallback-echo; then
1.274 + # used as fallback echo
1.275 + shift
1.276 + cat <<EOF
1.277 +$*
1.278 +EOF
1.279 + exit 0
1.280 +fi
1.281 +
1.282 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1.283 +# if CDPATH is set.
1.284 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.285 +
1.286 +if test -z "$ECHO"; then
1.287 +if test "X${echo_test_string+set}" != Xset; then
1.288 +# find a string as large as possible, as long as the shell can cope with it
1.289 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
1.290 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1.291 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1.292 + echo_test_string=`eval $cmd` &&
1.293 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1.294 + then
1.295 + break
1.296 + fi
1.297 + done
1.298 +fi
1.299 +
1.300 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1.301 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1.302 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.303 + :
1.304 +else
1.305 + # The Solaris, AIX, and Digital Unix default echo programs unquote
1.306 + # backslashes. This makes it impossible to quote backslashes using
1.307 + # echo "$something" | sed 's/\\/\\\\/g'
1.308 + #
1.309 + # So, first we look for a working echo in the user's PATH.
1.310 +
1.311 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.312 + for dir in $PATH /usr/ucb; do
1.313 + IFS="$lt_save_ifs"
1.314 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1.315 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1.316 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1.317 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.318 + echo="$dir/echo"
1.319 + break
1.320 + fi
1.321 + done
1.322 + IFS="$lt_save_ifs"
1.323 +
1.324 + if test "X$echo" = Xecho; then
1.325 + # We didn't find a better echo, so look for alternatives.
1.326 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1.327 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1.328 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.329 + # This shell has a builtin print -r that does the trick.
1.330 + echo='print -r'
1.331 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1.332 + test "X$CONFIG_SHELL" != X/bin/ksh; then
1.333 + # If we have ksh, try running configure again with it.
1.334 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1.335 + export ORIGINAL_CONFIG_SHELL
1.336 + CONFIG_SHELL=/bin/ksh
1.337 + export CONFIG_SHELL
1.338 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
1.339 + else
1.340 + # Try using printf.
1.341 + echo='printf %s\n'
1.342 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1.343 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1.344 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.345 + # Cool, printf works
1.346 + :
1.347 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1.348 + test "X$echo_testing_string" = 'X\t' &&
1.349 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1.350 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.351 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1.352 + export CONFIG_SHELL
1.353 + SHELL="$CONFIG_SHELL"
1.354 + export SHELL
1.355 + echo="$CONFIG_SHELL $0 --fallback-echo"
1.356 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
1.357 + test "X$echo_testing_string" = 'X\t' &&
1.358 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1.359 + test "X$echo_testing_string" = "X$echo_test_string"; then
1.360 + echo="$CONFIG_SHELL $0 --fallback-echo"
1.361 + else
1.362 + # maybe with a smaller string...
1.363 + prev=:
1.364 +
1.365 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
1.366 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1.367 + then
1.368 + break
1.369 + fi
1.370 + prev="$cmd"
1.371 + done
1.372 +
1.373 + if test "$prev" != 'sed 50q "$0"'; then
1.374 + echo_test_string=`eval $prev`
1.375 + export echo_test_string
1.376 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
1.377 + else
1.378 + # Oops. We lost completely, so just stick with echo.
1.379 + echo=echo
1.380 + fi
1.381 + fi
1.382 + fi
1.383 + fi
1.384 +fi
1.385 +fi
1.386 +
1.387 +# Copy echo and quote the copy suitably for passing to libtool from
1.388 +# the Makefile, instead of quoting the original, which is used later.
1.389 +ECHO=$echo
1.390 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
1.391 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.392 +fi
1.393 +
1.394 +
1.395 +
1.396 +
1.397 +tagnames=${tagnames+${tagnames},}CXX
1.398 +
1.399 +tagnames=${tagnames+${tagnames},}F77
1.400 +
1.401 +# Name of the host.
1.402 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1.403 +# so uname gets run too.
1.404 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1.405 +
1.406 +exec 6>&1
1.407 +
1.408 +#
1.409 +# Initializations.
1.410 +#
1.411 +ac_default_prefix=/usr/local
1.412 +ac_config_libobj_dir=.
1.413 +cross_compiling=no
1.414 +subdirs=
1.415 +MFLAGS=
1.416 +MAKEFLAGS=
1.417 +SHELL=${CONFIG_SHELL-/bin/sh}
1.418 +
1.419 +# Maximum number of lines to put in a shell here document.
1.420 +# This variable seems obsolete. It should probably be removed, and
1.421 +# only ac_max_sed_lines should be used.
1.422 +: ${ac_max_here_lines=38}
1.423 +
1.424 +# Identity of this package.
1.425 +PACKAGE_NAME=
1.426 +PACKAGE_TARNAME=
1.427 +PACKAGE_VERSION=
1.428 +PACKAGE_STRING=
1.429 +PACKAGE_BUGREPORT=
1.430 +
1.431 +# Factoring default headers for most tests.
1.432 +ac_includes_default="\
1.433 +#include <stdio.h>
1.434 +#if HAVE_SYS_TYPES_H
1.435 +# include <sys/types.h>
1.436 +#endif
1.437 +#if HAVE_SYS_STAT_H
1.438 +# include <sys/stat.h>
1.439 +#endif
1.440 +#if STDC_HEADERS
1.441 +# include <stdlib.h>
1.442 +# include <stddef.h>
1.443 +#else
1.444 +# if HAVE_STDLIB_H
1.445 +# include <stdlib.h>
1.446 +# endif
1.447 +#endif
1.448 +#if HAVE_STRING_H
1.449 +# if !STDC_HEADERS && HAVE_MEMORY_H
1.450 +# include <memory.h>
1.451 +# endif
1.452 +# include <string.h>
1.453 +#endif
1.454 +#if HAVE_STRINGS_H
1.455 +# include <strings.h>
1.456 +#endif
1.457 +#if HAVE_INTTYPES_H
1.458 +# include <inttypes.h>
1.459 +#else
1.460 +# if HAVE_STDINT_H
1.461 +# include <stdint.h>
1.462 +# endif
1.463 +#endif
1.464 +#if HAVE_UNISTD_H
1.465 +# include <unistd.h>
1.466 +#endif"
1.467 +
1.468 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GST_PLUGINS_VERSION GST_PLUGINS_VERSION_RELEASE GST_PLUGINS_VERSION_MAJOR GST_PLUGINS_VERSION_MINOR GST_PLUGINS_VERSION_MICRO GST_PLUGINS_VERSION_NANO PACKAGE VERSION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ACLOCAL_AMFLAGS CCAS CCASFLAGS ERROR_CFLAGS HAVE_CXX HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_MAJORMINOR GST_BASE_CFLAGS GST_BASE_LIBS GST_PLUGINS_BASE_CFLAGS GST_PLUGINS_BASE_LIBS plugindir GST_PLUGIN_LDFLAGS LIBOBJS LTLIBOBJS'
1.469 +ac_subst_files=''
1.470 +
1.471 +# Initialize some variables set by options.
1.472 +ac_init_help=
1.473 +ac_init_version=false
1.474 +# The variables have the same names as the options, with
1.475 +# dashes changed to underlines.
1.476 +cache_file=/dev/null
1.477 +exec_prefix=NONE
1.478 +no_create=
1.479 +no_recursion=
1.480 +prefix=NONE
1.481 +program_prefix=NONE
1.482 +program_suffix=NONE
1.483 +program_transform_name=s,x,x,
1.484 +silent=
1.485 +site=
1.486 +srcdir=
1.487 +verbose=
1.488 +x_includes=NONE
1.489 +x_libraries=NONE
1.490 +
1.491 +# Installation directory options.
1.492 +# These are left unexpanded so users can "make install exec_prefix=/foo"
1.493 +# and all the variables that are supposed to be based on exec_prefix
1.494 +# by default will actually change.
1.495 +# Use braces instead of parens because sh, perl, etc. also accept them.
1.496 +bindir='${exec_prefix}/bin'
1.497 +sbindir='${exec_prefix}/sbin'
1.498 +libexecdir='${exec_prefix}/libexec'
1.499 +datadir='${prefix}/share'
1.500 +sysconfdir='${prefix}/etc'
1.501 +sharedstatedir='${prefix}/com'
1.502 +localstatedir='${prefix}/var'
1.503 +libdir='${exec_prefix}/lib'
1.504 +includedir='${prefix}/include'
1.505 +oldincludedir='/usr/include'
1.506 +infodir='${prefix}/info'
1.507 +mandir='${prefix}/man'
1.508 +
1.509 +ac_prev=
1.510 +for ac_option
1.511 +do
1.512 + # If the previous option needs an argument, assign it.
1.513 + if test -n "$ac_prev"; then
1.514 + eval "$ac_prev=\$ac_option"
1.515 + ac_prev=
1.516 + continue
1.517 + fi
1.518 +
1.519 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1.520 +
1.521 + # Accept the important Cygnus configure options, so we can diagnose typos.
1.522 +
1.523 + case $ac_option in
1.524 +
1.525 + -bindir | --bindir | --bindi | --bind | --bin | --bi)
1.526 + ac_prev=bindir ;;
1.527 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.528 + bindir=$ac_optarg ;;
1.529 +
1.530 + -build | --build | --buil | --bui | --bu)
1.531 + ac_prev=build_alias ;;
1.532 + -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.533 + build_alias=$ac_optarg ;;
1.534 +
1.535 + -cache-file | --cache-file | --cache-fil | --cache-fi \
1.536 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1.537 + ac_prev=cache_file ;;
1.538 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1.539 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.540 + cache_file=$ac_optarg ;;
1.541 +
1.542 + --config-cache | -C)
1.543 + cache_file=config.cache ;;
1.544 +
1.545 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1.546 + ac_prev=datadir ;;
1.547 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1.548 + | --da=*)
1.549 + datadir=$ac_optarg ;;
1.550 +
1.551 + -disable-* | --disable-*)
1.552 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.553 + # Reject names that are not valid shell variable names.
1.554 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.555 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1.556 + { (exit 1); exit 1; }; }
1.557 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1.558 + eval "enable_$ac_feature=no" ;;
1.559 +
1.560 + -enable-* | --enable-*)
1.561 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.562 + # Reject names that are not valid shell variable names.
1.563 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.564 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1.565 + { (exit 1); exit 1; }; }
1.566 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1.567 + case $ac_option in
1.568 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.569 + *) ac_optarg=yes ;;
1.570 + esac
1.571 + eval "enable_$ac_feature='$ac_optarg'" ;;
1.572 +
1.573 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1.574 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1.575 + | --exec | --exe | --ex)
1.576 + ac_prev=exec_prefix ;;
1.577 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1.578 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1.579 + | --exec=* | --exe=* | --ex=*)
1.580 + exec_prefix=$ac_optarg ;;
1.581 +
1.582 + -gas | --gas | --ga | --g)
1.583 + # Obsolete; use --with-gas.
1.584 + with_gas=yes ;;
1.585 +
1.586 + -help | --help | --hel | --he | -h)
1.587 + ac_init_help=long ;;
1.588 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1.589 + ac_init_help=recursive ;;
1.590 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1.591 + ac_init_help=short ;;
1.592 +
1.593 + -host | --host | --hos | --ho)
1.594 + ac_prev=host_alias ;;
1.595 + -host=* | --host=* | --hos=* | --ho=*)
1.596 + host_alias=$ac_optarg ;;
1.597 +
1.598 + -includedir | --includedir | --includedi | --included | --include \
1.599 + | --includ | --inclu | --incl | --inc)
1.600 + ac_prev=includedir ;;
1.601 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1.602 + | --includ=* | --inclu=* | --incl=* | --inc=*)
1.603 + includedir=$ac_optarg ;;
1.604 +
1.605 + -infodir | --infodir | --infodi | --infod | --info | --inf)
1.606 + ac_prev=infodir ;;
1.607 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.608 + infodir=$ac_optarg ;;
1.609 +
1.610 + -libdir | --libdir | --libdi | --libd)
1.611 + ac_prev=libdir ;;
1.612 + -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.613 + libdir=$ac_optarg ;;
1.614 +
1.615 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1.616 + | --libexe | --libex | --libe)
1.617 + ac_prev=libexecdir ;;
1.618 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1.619 + | --libexe=* | --libex=* | --libe=*)
1.620 + libexecdir=$ac_optarg ;;
1.621 +
1.622 + -localstatedir | --localstatedir | --localstatedi | --localstated \
1.623 + | --localstate | --localstat | --localsta | --localst \
1.624 + | --locals | --local | --loca | --loc | --lo)
1.625 + ac_prev=localstatedir ;;
1.626 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.627 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1.628 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1.629 + localstatedir=$ac_optarg ;;
1.630 +
1.631 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1.632 + ac_prev=mandir ;;
1.633 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.634 + mandir=$ac_optarg ;;
1.635 +
1.636 + -nfp | --nfp | --nf)
1.637 + # Obsolete; use --without-fp.
1.638 + with_fp=no ;;
1.639 +
1.640 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.641 + | --no-cr | --no-c | -n)
1.642 + no_create=yes ;;
1.643 +
1.644 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1.645 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1.646 + no_recursion=yes ;;
1.647 +
1.648 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1.649 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1.650 + | --oldin | --oldi | --old | --ol | --o)
1.651 + ac_prev=oldincludedir ;;
1.652 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1.653 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1.654 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.655 + oldincludedir=$ac_optarg ;;
1.656 +
1.657 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1.658 + ac_prev=prefix ;;
1.659 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.660 + prefix=$ac_optarg ;;
1.661 +
1.662 + -program-prefix | --program-prefix | --program-prefi | --program-pref \
1.663 + | --program-pre | --program-pr | --program-p)
1.664 + ac_prev=program_prefix ;;
1.665 + -program-prefix=* | --program-prefix=* | --program-prefi=* \
1.666 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.667 + program_prefix=$ac_optarg ;;
1.668 +
1.669 + -program-suffix | --program-suffix | --program-suffi | --program-suff \
1.670 + | --program-suf | --program-su | --program-s)
1.671 + ac_prev=program_suffix ;;
1.672 + -program-suffix=* | --program-suffix=* | --program-suffi=* \
1.673 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.674 + program_suffix=$ac_optarg ;;
1.675 +
1.676 + -program-transform-name | --program-transform-name \
1.677 + | --program-transform-nam | --program-transform-na \
1.678 + | --program-transform-n | --program-transform- \
1.679 + | --program-transform | --program-transfor \
1.680 + | --program-transfo | --program-transf \
1.681 + | --program-trans | --program-tran \
1.682 + | --progr-tra | --program-tr | --program-t)
1.683 + ac_prev=program_transform_name ;;
1.684 + -program-transform-name=* | --program-transform-name=* \
1.685 + | --program-transform-nam=* | --program-transform-na=* \
1.686 + | --program-transform-n=* | --program-transform-=* \
1.687 + | --program-transform=* | --program-transfor=* \
1.688 + | --program-transfo=* | --program-transf=* \
1.689 + | --program-trans=* | --program-tran=* \
1.690 + | --progr-tra=* | --program-tr=* | --program-t=*)
1.691 + program_transform_name=$ac_optarg ;;
1.692 +
1.693 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1.694 + | -silent | --silent | --silen | --sile | --sil)
1.695 + silent=yes ;;
1.696 +
1.697 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1.698 + ac_prev=sbindir ;;
1.699 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1.700 + | --sbi=* | --sb=*)
1.701 + sbindir=$ac_optarg ;;
1.702 +
1.703 + -sharedstatedir | --sharedstatedir | --sharedstatedi \
1.704 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1.705 + | --sharedst | --shareds | --shared | --share | --shar \
1.706 + | --sha | --sh)
1.707 + ac_prev=sharedstatedir ;;
1.708 + -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1.709 + | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1.710 + | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1.711 + | --sha=* | --sh=*)
1.712 + sharedstatedir=$ac_optarg ;;
1.713 +
1.714 + -site | --site | --sit)
1.715 + ac_prev=site ;;
1.716 + -site=* | --site=* | --sit=*)
1.717 + site=$ac_optarg ;;
1.718 +
1.719 + -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1.720 + ac_prev=srcdir ;;
1.721 + -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.722 + srcdir=$ac_optarg ;;
1.723 +
1.724 + -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1.725 + | --syscon | --sysco | --sysc | --sys | --sy)
1.726 + ac_prev=sysconfdir ;;
1.727 + -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1.728 + | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.729 + sysconfdir=$ac_optarg ;;
1.730 +
1.731 + -target | --target | --targe | --targ | --tar | --ta | --t)
1.732 + ac_prev=target_alias ;;
1.733 + -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.734 + target_alias=$ac_optarg ;;
1.735 +
1.736 + -v | -verbose | --verbose | --verbos | --verbo | --verb)
1.737 + verbose=yes ;;
1.738 +
1.739 + -version | --version | --versio | --versi | --vers | -V)
1.740 + ac_init_version=: ;;
1.741 +
1.742 + -with-* | --with-*)
1.743 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.744 + # Reject names that are not valid shell variable names.
1.745 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.746 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1.747 + { (exit 1); exit 1; }; }
1.748 + ac_package=`echo $ac_package| sed 's/-/_/g'`
1.749 + case $ac_option in
1.750 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1.751 + *) ac_optarg=yes ;;
1.752 + esac
1.753 + eval "with_$ac_package='$ac_optarg'" ;;
1.754 +
1.755 + -without-* | --without-*)
1.756 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.757 + # Reject names that are not valid shell variable names.
1.758 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1.759 + { echo "$as_me: error: invalid package name: $ac_package" >&2
1.760 + { (exit 1); exit 1; }; }
1.761 + ac_package=`echo $ac_package | sed 's/-/_/g'`
1.762 + eval "with_$ac_package=no" ;;
1.763 +
1.764 + --x)
1.765 + # Obsolete; use --with-x.
1.766 + with_x=yes ;;
1.767 +
1.768 + -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1.769 + | --x-incl | --x-inc | --x-in | --x-i)
1.770 + ac_prev=x_includes ;;
1.771 + -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1.772 + | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.773 + x_includes=$ac_optarg ;;
1.774 +
1.775 + -x-libraries | --x-libraries | --x-librarie | --x-librari \
1.776 + | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1.777 + ac_prev=x_libraries ;;
1.778 + -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1.779 + | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.780 + x_libraries=$ac_optarg ;;
1.781 +
1.782 + -*) { echo "$as_me: error: unrecognized option: $ac_option
1.783 +Try \`$0 --help' for more information." >&2
1.784 + { (exit 1); exit 1; }; }
1.785 + ;;
1.786 +
1.787 + *=*)
1.788 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1.789 + # Reject names that are not valid shell variable names.
1.790 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1.791 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1.792 + { (exit 1); exit 1; }; }
1.793 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1.794 + eval "$ac_envvar='$ac_optarg'"
1.795 + export $ac_envvar ;;
1.796 +
1.797 + *)
1.798 + # FIXME: should be removed in autoconf 3.0.
1.799 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.800 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.801 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.802 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.803 + ;;
1.804 +
1.805 + esac
1.806 +done
1.807 +
1.808 +if test -n "$ac_prev"; then
1.809 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.810 + { echo "$as_me: error: missing argument to $ac_option" >&2
1.811 + { (exit 1); exit 1; }; }
1.812 +fi
1.813 +
1.814 +# Be sure to have absolute paths.
1.815 +for ac_var in exec_prefix prefix
1.816 +do
1.817 + eval ac_val=$`echo $ac_var`
1.818 + case $ac_val in
1.819 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1.820 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.821 + { (exit 1); exit 1; }; };;
1.822 + esac
1.823 +done
1.824 +
1.825 +# Be sure to have absolute paths.
1.826 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1.827 + localstatedir libdir includedir oldincludedir infodir mandir
1.828 +do
1.829 + eval ac_val=$`echo $ac_var`
1.830 + case $ac_val in
1.831 + [\\/$]* | ?:[\\/]* ) ;;
1.832 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1.833 + { (exit 1); exit 1; }; };;
1.834 + esac
1.835 +done
1.836 +
1.837 +# There might be people who depend on the old broken behavior: `$host'
1.838 +# used to hold the argument of --host etc.
1.839 +# FIXME: To remove some day.
1.840 +build=$build_alias
1.841 +host=$host_alias
1.842 +target=$target_alias
1.843 +
1.844 +# FIXME: To remove some day.
1.845 +if test "x$host_alias" != x; then
1.846 + if test "x$build_alias" = x; then
1.847 + cross_compiling=maybe
1.848 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.849 + If a cross compiler is detected then cross compile mode will be used." >&2
1.850 + elif test "x$build_alias" != "x$host_alias"; then
1.851 + cross_compiling=yes
1.852 + fi
1.853 +fi
1.854 +
1.855 +ac_tool_prefix=
1.856 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.857 +
1.858 +test "$silent" = yes && exec 6>/dev/null
1.859 +
1.860 +
1.861 +# Find the source files, if location was not specified.
1.862 +if test -z "$srcdir"; then
1.863 + ac_srcdir_defaulted=yes
1.864 + # Try the directory containing this script, then its parent.
1.865 + ac_confdir=`(dirname "$0") 2>/dev/null ||
1.866 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.867 + X"$0" : 'X\(//\)[^/]' \| \
1.868 + X"$0" : 'X\(//\)$' \| \
1.869 + X"$0" : 'X\(/\)' \| \
1.870 + . : '\(.\)' 2>/dev/null ||
1.871 +echo X"$0" |
1.872 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.873 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.874 + /^X\(\/\/\)$/{ s//\1/; q; }
1.875 + /^X\(\/\).*/{ s//\1/; q; }
1.876 + s/.*/./; q'`
1.877 + srcdir=$ac_confdir
1.878 + if test ! -r $srcdir/$ac_unique_file; then
1.879 + srcdir=..
1.880 + fi
1.881 +else
1.882 + ac_srcdir_defaulted=no
1.883 +fi
1.884 +if test ! -r $srcdir/$ac_unique_file; then
1.885 + if test "$ac_srcdir_defaulted" = yes; then
1.886 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1.887 + { (exit 1); exit 1; }; }
1.888 + else
1.889 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1.890 + { (exit 1); exit 1; }; }
1.891 + fi
1.892 +fi
1.893 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1.894 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1.895 + { (exit 1); exit 1; }; }
1.896 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1.897 +ac_env_build_alias_set=${build_alias+set}
1.898 +ac_env_build_alias_value=$build_alias
1.899 +ac_cv_env_build_alias_set=${build_alias+set}
1.900 +ac_cv_env_build_alias_value=$build_alias
1.901 +ac_env_host_alias_set=${host_alias+set}
1.902 +ac_env_host_alias_value=$host_alias
1.903 +ac_cv_env_host_alias_set=${host_alias+set}
1.904 +ac_cv_env_host_alias_value=$host_alias
1.905 +ac_env_target_alias_set=${target_alias+set}
1.906 +ac_env_target_alias_value=$target_alias
1.907 +ac_cv_env_target_alias_set=${target_alias+set}
1.908 +ac_cv_env_target_alias_value=$target_alias
1.909 +ac_env_CC_set=${CC+set}
1.910 +ac_env_CC_value=$CC
1.911 +ac_cv_env_CC_set=${CC+set}
1.912 +ac_cv_env_CC_value=$CC
1.913 +ac_env_CFLAGS_set=${CFLAGS+set}
1.914 +ac_env_CFLAGS_value=$CFLAGS
1.915 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
1.916 +ac_cv_env_CFLAGS_value=$CFLAGS
1.917 +ac_env_LDFLAGS_set=${LDFLAGS+set}
1.918 +ac_env_LDFLAGS_value=$LDFLAGS
1.919 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1.920 +ac_cv_env_LDFLAGS_value=$LDFLAGS
1.921 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
1.922 +ac_env_CPPFLAGS_value=$CPPFLAGS
1.923 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1.924 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1.925 +ac_env_CPP_set=${CPP+set}
1.926 +ac_env_CPP_value=$CPP
1.927 +ac_cv_env_CPP_set=${CPP+set}
1.928 +ac_cv_env_CPP_value=$CPP
1.929 +ac_env_CXX_set=${CXX+set}
1.930 +ac_env_CXX_value=$CXX
1.931 +ac_cv_env_CXX_set=${CXX+set}
1.932 +ac_cv_env_CXX_value=$CXX
1.933 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
1.934 +ac_env_CXXFLAGS_value=$CXXFLAGS
1.935 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
1.936 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
1.937 +ac_env_CXXCPP_set=${CXXCPP+set}
1.938 +ac_env_CXXCPP_value=$CXXCPP
1.939 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
1.940 +ac_cv_env_CXXCPP_value=$CXXCPP
1.941 +ac_env_F77_set=${F77+set}
1.942 +ac_env_F77_value=$F77
1.943 +ac_cv_env_F77_set=${F77+set}
1.944 +ac_cv_env_F77_value=$F77
1.945 +ac_env_FFLAGS_set=${FFLAGS+set}
1.946 +ac_env_FFLAGS_value=$FFLAGS
1.947 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
1.948 +ac_cv_env_FFLAGS_value=$FFLAGS
1.949 +ac_env_CCAS_set=${CCAS+set}
1.950 +ac_env_CCAS_value=$CCAS
1.951 +ac_cv_env_CCAS_set=${CCAS+set}
1.952 +ac_cv_env_CCAS_value=$CCAS
1.953 +ac_env_CCASFLAGS_set=${CCASFLAGS+set}
1.954 +ac_env_CCASFLAGS_value=$CCASFLAGS
1.955 +ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
1.956 +ac_cv_env_CCASFLAGS_value=$CCASFLAGS
1.957 +
1.958 +#
1.959 +# Report the --help message.
1.960 +#
1.961 +if test "$ac_init_help" = "long"; then
1.962 + # Omit some internal or obsolete options to make the list less imposing.
1.963 + # This message is too long to be a string in the A/UX 3.1 sh.
1.964 + cat <<_ACEOF
1.965 +\`configure' configures this package to adapt to many kinds of systems.
1.966 +
1.967 +Usage: $0 [OPTION]... [VAR=VALUE]...
1.968 +
1.969 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
1.970 +VAR=VALUE. See below for descriptions of some of the useful variables.
1.971 +
1.972 +Defaults for the options are specified in brackets.
1.973 +
1.974 +Configuration:
1.975 + -h, --help display this help and exit
1.976 + --help=short display options specific to this package
1.977 + --help=recursive display the short help of all the included packages
1.978 + -V, --version display version information and exit
1.979 + -q, --quiet, --silent do not print \`checking...' messages
1.980 + --cache-file=FILE cache test results in FILE [disabled]
1.981 + -C, --config-cache alias for \`--cache-file=config.cache'
1.982 + -n, --no-create do not create output files
1.983 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
1.984 +
1.985 +_ACEOF
1.986 +
1.987 + cat <<_ACEOF
1.988 +Installation directories:
1.989 + --prefix=PREFIX install architecture-independent files in PREFIX
1.990 + [$ac_default_prefix]
1.991 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.992 + [PREFIX]
1.993 +
1.994 +By default, \`make install' will install all the files in
1.995 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1.996 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1.997 +for instance \`--prefix=\$HOME'.
1.998 +
1.999 +For better control, use the options below.
1.1000 +
1.1001 +Fine tuning of the installation directories:
1.1002 + --bindir=DIR user executables [EPREFIX/bin]
1.1003 + --sbindir=DIR system admin executables [EPREFIX/sbin]
1.1004 + --libexecdir=DIR program executables [EPREFIX/libexec]
1.1005 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
1.1006 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1.1007 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1.1008 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1.1009 + --libdir=DIR object code libraries [EPREFIX/lib]
1.1010 + --includedir=DIR C header files [PREFIX/include]
1.1011 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.1012 + --infodir=DIR info documentation [PREFIX/info]
1.1013 + --mandir=DIR man documentation [PREFIX/man]
1.1014 +_ACEOF
1.1015 +
1.1016 + cat <<\_ACEOF
1.1017 +
1.1018 +Program names:
1.1019 + --program-prefix=PREFIX prepend PREFIX to installed program names
1.1020 + --program-suffix=SUFFIX append SUFFIX to installed program names
1.1021 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1.1022 +
1.1023 +System types:
1.1024 + --build=BUILD configure for building on BUILD [guessed]
1.1025 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
1.1026 + --target=TARGET configure for building compilers for TARGET [HOST]
1.1027 +_ACEOF
1.1028 +fi
1.1029 +
1.1030 +if test -n "$ac_init_help"; then
1.1031 +
1.1032 + cat <<\_ACEOF
1.1033 +
1.1034 +Optional Features:
1.1035 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1.1036 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1.1037 + --enable-static[=PKGS]
1.1038 + build static libraries [default=no]
1.1039 + --enable-maintainer-mode enable make rules and dependencies not useful
1.1040 + (and sometimes confusing) to the casual installer
1.1041 + --enable-shared[=PKGS]
1.1042 + build shared libraries [default=yes]
1.1043 + --enable-fast-install[=PKGS]
1.1044 + optimize for fast installation [default=yes]
1.1045 + --disable-dependency-tracking speeds up one-time build
1.1046 + --enable-dependency-tracking do not reject slow dependency extractors
1.1047 + --disable-libtool-lock avoid locking (might break parallel builds)
1.1048 +
1.1049 +Optional Packages:
1.1050 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1.1051 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1.1052 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.1053 + --with-pic try to use only PIC/non-PIC objects [default=use
1.1054 + both]
1.1055 + --with-tags[=TAGS]
1.1056 + include additional configurations [automatic]
1.1057 +
1.1058 +Some influential environment variables:
1.1059 + CC C compiler command
1.1060 + CFLAGS C compiler flags
1.1061 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1.1062 + nonstandard directory <lib dir>
1.1063 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1.1064 + headers in a nonstandard directory <include dir>
1.1065 + CPP C preprocessor
1.1066 + CXX C++ compiler command
1.1067 + CXXFLAGS C++ compiler flags
1.1068 + CXXCPP C++ preprocessor
1.1069 + F77 Fortran 77 compiler command
1.1070 + FFLAGS Fortran 77 compiler flags
1.1071 + CCAS assembler compiler command (defaults to CC)
1.1072 + CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1.1073 +
1.1074 +Use these variables to override the choices made by `configure' or to help
1.1075 +it to find libraries and programs with nonstandard names/locations.
1.1076 +
1.1077 +_ACEOF
1.1078 +fi
1.1079 +
1.1080 +if test "$ac_init_help" = "recursive"; then
1.1081 + # If there are subdirs, report their specific --help.
1.1082 + ac_popdir=`pwd`
1.1083 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.1084 + test -d $ac_dir || continue
1.1085 + ac_builddir=.
1.1086 +
1.1087 +if test "$ac_dir" != .; then
1.1088 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.1089 + # A "../" for each directory in $ac_dir_suffix.
1.1090 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.1091 +else
1.1092 + ac_dir_suffix= ac_top_builddir=
1.1093 +fi
1.1094 +
1.1095 +case $srcdir in
1.1096 + .) # No --srcdir option. We are building in place.
1.1097 + ac_srcdir=.
1.1098 + if test -z "$ac_top_builddir"; then
1.1099 + ac_top_srcdir=.
1.1100 + else
1.1101 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1.1102 + fi ;;
1.1103 + [\\/]* | ?:[\\/]* ) # Absolute path.
1.1104 + ac_srcdir=$srcdir$ac_dir_suffix;
1.1105 + ac_top_srcdir=$srcdir ;;
1.1106 + *) # Relative path.
1.1107 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1.1108 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.1109 +esac
1.1110 +
1.1111 +# Do not use `cd foo && pwd` to compute absolute paths, because
1.1112 +# the directories may not exist.
1.1113 +case `pwd` in
1.1114 +.) ac_abs_builddir="$ac_dir";;
1.1115 +*)
1.1116 + case "$ac_dir" in
1.1117 + .) ac_abs_builddir=`pwd`;;
1.1118 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1.1119 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
1.1120 + esac;;
1.1121 +esac
1.1122 +case $ac_abs_builddir in
1.1123 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
1.1124 +*)
1.1125 + case ${ac_top_builddir}. in
1.1126 + .) ac_abs_top_builddir=$ac_abs_builddir;;
1.1127 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1.1128 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1.1129 + esac;;
1.1130 +esac
1.1131 +case $ac_abs_builddir in
1.1132 +.) ac_abs_srcdir=$ac_srcdir;;
1.1133 +*)
1.1134 + case $ac_srcdir in
1.1135 + .) ac_abs_srcdir=$ac_abs_builddir;;
1.1136 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1.1137 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1.1138 + esac;;
1.1139 +esac
1.1140 +case $ac_abs_builddir in
1.1141 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
1.1142 +*)
1.1143 + case $ac_top_srcdir in
1.1144 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
1.1145 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1.1146 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1.1147 + esac;;
1.1148 +esac
1.1149 +
1.1150 + cd $ac_dir
1.1151 + # Check for guested configure; otherwise get Cygnus style configure.
1.1152 + if test -f $ac_srcdir/configure.gnu; then
1.1153 + echo
1.1154 + $SHELL $ac_srcdir/configure.gnu --help=recursive
1.1155 + elif test -f $ac_srcdir/configure; then
1.1156 + echo
1.1157 + $SHELL $ac_srcdir/configure --help=recursive
1.1158 + elif test -f $ac_srcdir/configure.ac ||
1.1159 + test -f $ac_srcdir/configure.in; then
1.1160 + echo
1.1161 + $ac_configure --help
1.1162 + else
1.1163 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1164 + fi
1.1165 + cd "$ac_popdir"
1.1166 + done
1.1167 +fi
1.1168 +
1.1169 +test -n "$ac_init_help" && exit 0
1.1170 +if $ac_init_version; then
1.1171 + cat <<\_ACEOF
1.1172 +
1.1173 +Copyright (C) 2003 Free Software Foundation, Inc.
1.1174 +This configure script is free software; the Free Software Foundation
1.1175 +gives unlimited permission to copy, distribute and modify it.
1.1176 +_ACEOF
1.1177 + exit 0
1.1178 +fi
1.1179 +exec 5>config.log
1.1180 +cat >&5 <<_ACEOF
1.1181 +This file contains any messages produced by compilers while
1.1182 +running configure, to aid debugging if configure makes a mistake.
1.1183 +
1.1184 +It was created by $as_me, which was
1.1185 +generated by GNU Autoconf 2.59. Invocation command line was
1.1186 +
1.1187 + $ $0 $@
1.1188 +
1.1189 +_ACEOF
1.1190 +{
1.1191 +cat <<_ASUNAME
1.1192 +## --------- ##
1.1193 +## Platform. ##
1.1194 +## --------- ##
1.1195 +
1.1196 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1.1197 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
1.1198 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
1.1199 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
1.1200 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1201 +
1.1202 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1.1203 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1204 +
1.1205 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1.1206 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1.1207 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.1208 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1.1209 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1.1210 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1.1211 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1212 +
1.1213 +_ASUNAME
1.1214 +
1.1215 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1216 +for as_dir in $PATH
1.1217 +do
1.1218 + IFS=$as_save_IFS
1.1219 + test -z "$as_dir" && as_dir=.
1.1220 + echo "PATH: $as_dir"
1.1221 +done
1.1222 +
1.1223 +} >&5
1.1224 +
1.1225 +cat >&5 <<_ACEOF
1.1226 +
1.1227 +
1.1228 +## ----------- ##
1.1229 +## Core tests. ##
1.1230 +## ----------- ##
1.1231 +
1.1232 +_ACEOF
1.1233 +
1.1234 +
1.1235 +# Keep a trace of the command line.
1.1236 +# Strip out --no-create and --no-recursion so they do not pile up.
1.1237 +# Strip out --silent because we don't want to record it for future runs.
1.1238 +# Also quote any args containing shell meta-characters.
1.1239 +# Make two passes to allow for proper duplicate-argument suppression.
1.1240 +ac_configure_args=
1.1241 +ac_configure_args0=
1.1242 +ac_configure_args1=
1.1243 +ac_sep=
1.1244 +ac_must_keep_next=false
1.1245 +for ac_pass in 1 2
1.1246 +do
1.1247 + for ac_arg
1.1248 + do
1.1249 + case $ac_arg in
1.1250 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1.1251 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1.1252 + | -silent | --silent | --silen | --sile | --sil)
1.1253 + continue ;;
1.1254 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.1255 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1256 + esac
1.1257 + case $ac_pass in
1.1258 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1.1259 + 2)
1.1260 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1.1261 + if test $ac_must_keep_next = true; then
1.1262 + ac_must_keep_next=false # Got value, back to normal.
1.1263 + else
1.1264 + case $ac_arg in
1.1265 + *=* | --config-cache | -C | -disable-* | --disable-* \
1.1266 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1.1267 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1.1268 + | -with-* | --with-* | -without-* | --without-* | --x)
1.1269 + case "$ac_configure_args0 " in
1.1270 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1.1271 + esac
1.1272 + ;;
1.1273 + -* ) ac_must_keep_next=true ;;
1.1274 + esac
1.1275 + fi
1.1276 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1.1277 + # Get rid of the leading space.
1.1278 + ac_sep=" "
1.1279 + ;;
1.1280 + esac
1.1281 + done
1.1282 +done
1.1283 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1.1284 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.1285 +
1.1286 +# When interrupted or exit'd, cleanup temporary files, and complete
1.1287 +# config.log. We remove comments because anyway the quotes in there
1.1288 +# would cause problems or look ugly.
1.1289 +# WARNING: Be sure not to use single quotes in there, as some shells,
1.1290 +# such as our DU 5.0 friend, will then `close' the trap.
1.1291 +trap 'exit_status=$?
1.1292 + # Save into config.log some information that might help in debugging.
1.1293 + {
1.1294 + echo
1.1295 +
1.1296 + cat <<\_ASBOX
1.1297 +## ---------------- ##
1.1298 +## Cache variables. ##
1.1299 +## ---------------- ##
1.1300 +_ASBOX
1.1301 + echo
1.1302 + # The following way of writing the cache mishandles newlines in values,
1.1303 +{
1.1304 + (set) 2>&1 |
1.1305 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1.1306 + *ac_space=\ *)
1.1307 + sed -n \
1.1308 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1.1309 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1.1310 + ;;
1.1311 + *)
1.1312 + sed -n \
1.1313 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.1314 + ;;
1.1315 + esac;
1.1316 +}
1.1317 + echo
1.1318 +
1.1319 + cat <<\_ASBOX
1.1320 +## ----------------- ##
1.1321 +## Output variables. ##
1.1322 +## ----------------- ##
1.1323 +_ASBOX
1.1324 + echo
1.1325 + for ac_var in $ac_subst_vars
1.1326 + do
1.1327 + eval ac_val=$`echo $ac_var`
1.1328 + echo "$ac_var='"'"'$ac_val'"'"'"
1.1329 + done | sort
1.1330 + echo
1.1331 +
1.1332 + if test -n "$ac_subst_files"; then
1.1333 + cat <<\_ASBOX
1.1334 +## ------------- ##
1.1335 +## Output files. ##
1.1336 +## ------------- ##
1.1337 +_ASBOX
1.1338 + echo
1.1339 + for ac_var in $ac_subst_files
1.1340 + do
1.1341 + eval ac_val=$`echo $ac_var`
1.1342 + echo "$ac_var='"'"'$ac_val'"'"'"
1.1343 + done | sort
1.1344 + echo
1.1345 + fi
1.1346 +
1.1347 + if test -s confdefs.h; then
1.1348 + cat <<\_ASBOX
1.1349 +## ----------- ##
1.1350 +## confdefs.h. ##
1.1351 +## ----------- ##
1.1352 +_ASBOX
1.1353 + echo
1.1354 + sed "/^$/d" confdefs.h | sort
1.1355 + echo
1.1356 + fi
1.1357 + test "$ac_signal" != 0 &&
1.1358 + echo "$as_me: caught signal $ac_signal"
1.1359 + echo "$as_me: exit $exit_status"
1.1360 + } >&5
1.1361 + rm -f core *.core &&
1.1362 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1.1363 + exit $exit_status
1.1364 + ' 0
1.1365 +for ac_signal in 1 2 13 15; do
1.1366 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1.1367 +done
1.1368 +ac_signal=0
1.1369 +
1.1370 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
1.1371 +rm -rf conftest* confdefs.h
1.1372 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1.1373 +echo >confdefs.h
1.1374 +
1.1375 +# Predefined preprocessor variables.
1.1376 +
1.1377 +cat >>confdefs.h <<_ACEOF
1.1378 +#define PACKAGE_NAME "$PACKAGE_NAME"
1.1379 +_ACEOF
1.1380 +
1.1381 +
1.1382 +cat >>confdefs.h <<_ACEOF
1.1383 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.1384 +_ACEOF
1.1385 +
1.1386 +
1.1387 +cat >>confdefs.h <<_ACEOF
1.1388 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
1.1389 +_ACEOF
1.1390 +
1.1391 +
1.1392 +cat >>confdefs.h <<_ACEOF
1.1393 +#define PACKAGE_STRING "$PACKAGE_STRING"
1.1394 +_ACEOF
1.1395 +
1.1396 +
1.1397 +cat >>confdefs.h <<_ACEOF
1.1398 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1.1399 +_ACEOF
1.1400 +
1.1401 +
1.1402 +# Let the site file select an alternate cache file if it wants to.
1.1403 +# Prefer explicitly selected file to automatically selected ones.
1.1404 +if test -z "$CONFIG_SITE"; then
1.1405 + if test "x$prefix" != xNONE; then
1.1406 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1.1407 + else
1.1408 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1.1409 + fi
1.1410 +fi
1.1411 +for ac_site_file in $CONFIG_SITE; do
1.1412 + if test -r "$ac_site_file"; then
1.1413 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.1414 +echo "$as_me: loading site script $ac_site_file" >&6;}
1.1415 + sed 's/^/| /' "$ac_site_file" >&5
1.1416 + . "$ac_site_file"
1.1417 + fi
1.1418 +done
1.1419 +
1.1420 +if test -r "$cache_file"; then
1.1421 + # Some versions of bash will fail to source /dev/null (special
1.1422 + # files actually), so we avoid doing that.
1.1423 + if test -f "$cache_file"; then
1.1424 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.1425 +echo "$as_me: loading cache $cache_file" >&6;}
1.1426 + case $cache_file in
1.1427 + [\\/]* | ?:[\\/]* ) . $cache_file;;
1.1428 + *) . ./$cache_file;;
1.1429 + esac
1.1430 + fi
1.1431 +else
1.1432 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.1433 +echo "$as_me: creating cache $cache_file" >&6;}
1.1434 + >$cache_file
1.1435 +fi
1.1436 +
1.1437 +# Check that the precious variables saved in the cache have kept the same
1.1438 +# value.
1.1439 +ac_cache_corrupted=false
1.1440 +for ac_var in `(set) 2>&1 |
1.1441 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1.1442 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
1.1443 + eval ac_new_set=\$ac_env_${ac_var}_set
1.1444 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1.1445 + eval ac_new_val="\$ac_env_${ac_var}_value"
1.1446 + case $ac_old_set,$ac_new_set in
1.1447 + set,)
1.1448 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.1449 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1.1450 + ac_cache_corrupted=: ;;
1.1451 + ,set)
1.1452 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.1453 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1.1454 + ac_cache_corrupted=: ;;
1.1455 + ,);;
1.1456 + *)
1.1457 + if test "x$ac_old_val" != "x$ac_new_val"; then
1.1458 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.1459 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.1460 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.1461 +echo "$as_me: former value: $ac_old_val" >&2;}
1.1462 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.1463 +echo "$as_me: current value: $ac_new_val" >&2;}
1.1464 + ac_cache_corrupted=:
1.1465 + fi;;
1.1466 + esac
1.1467 + # Pass precious variables to config.status.
1.1468 + if test "$ac_new_set" = set; then
1.1469 + case $ac_new_val in
1.1470 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1.1471 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1472 + *) ac_arg=$ac_var=$ac_new_val ;;
1.1473 + esac
1.1474 + case " $ac_configure_args " in
1.1475 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1.1476 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.1477 + esac
1.1478 + fi
1.1479 +done
1.1480 +if $ac_cache_corrupted; then
1.1481 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.1482 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.1483 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.1484 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1.1485 + { (exit 1); exit 1; }; }
1.1486 +fi
1.1487 +
1.1488 +ac_ext=c
1.1489 +ac_cpp='$CPP $CPPFLAGS'
1.1490 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.1491 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.1492 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1493 +
1.1494 +
1.1495 +
1.1496 +
1.1497 +
1.1498 +
1.1499 +
1.1500 +
1.1501 +
1.1502 +
1.1503 +
1.1504 +
1.1505 +
1.1506 +
1.1507 +
1.1508 +
1.1509 +
1.1510 +
1.1511 +
1.1512 +ac_aux_dir=
1.1513 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1.1514 + if test -f $ac_dir/install-sh; then
1.1515 + ac_aux_dir=$ac_dir
1.1516 + ac_install_sh="$ac_aux_dir/install-sh -c"
1.1517 + break
1.1518 + elif test -f $ac_dir/install.sh; then
1.1519 + ac_aux_dir=$ac_dir
1.1520 + ac_install_sh="$ac_aux_dir/install.sh -c"
1.1521 + break
1.1522 + elif test -f $ac_dir/shtool; then
1.1523 + ac_aux_dir=$ac_dir
1.1524 + ac_install_sh="$ac_aux_dir/shtool install -c"
1.1525 + break
1.1526 + fi
1.1527 +done
1.1528 +if test -z "$ac_aux_dir"; then
1.1529 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1.1530 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1.1531 + { (exit 1); exit 1; }; }
1.1532 +fi
1.1533 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1.1534 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1.1535 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1.1536 +
1.1537 +# Make sure we can run config.sub.
1.1538 +$ac_config_sub sun4 >/dev/null 2>&1 ||
1.1539 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1.1540 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1.1541 + { (exit 1); exit 1; }; }
1.1542 +
1.1543 +echo "$as_me:$LINENO: checking build system type" >&5
1.1544 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
1.1545 +if test "${ac_cv_build+set}" = set; then
1.1546 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1547 +else
1.1548 + ac_cv_build_alias=$build_alias
1.1549 +test -z "$ac_cv_build_alias" &&
1.1550 + ac_cv_build_alias=`$ac_config_guess`
1.1551 +test -z "$ac_cv_build_alias" &&
1.1552 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1.1553 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1.1554 + { (exit 1); exit 1; }; }
1.1555 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1.1556 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1.1557 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1.1558 + { (exit 1); exit 1; }; }
1.1559 +
1.1560 +fi
1.1561 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1.1562 +echo "${ECHO_T}$ac_cv_build" >&6
1.1563 +build=$ac_cv_build
1.1564 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1.1565 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1.1566 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1567 +
1.1568 +
1.1569 +echo "$as_me:$LINENO: checking host system type" >&5
1.1570 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
1.1571 +if test "${ac_cv_host+set}" = set; then
1.1572 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1573 +else
1.1574 + ac_cv_host_alias=$host_alias
1.1575 +test -z "$ac_cv_host_alias" &&
1.1576 + ac_cv_host_alias=$ac_cv_build_alias
1.1577 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1.1578 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1.1579 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1.1580 + { (exit 1); exit 1; }; }
1.1581 +
1.1582 +fi
1.1583 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1.1584 +echo "${ECHO_T}$ac_cv_host" >&6
1.1585 +host=$ac_cv_host
1.1586 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1.1587 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1.1588 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1589 +
1.1590 +
1.1591 +echo "$as_me:$LINENO: checking target system type" >&5
1.1592 +echo $ECHO_N "checking target system type... $ECHO_C" >&6
1.1593 +if test "${ac_cv_target+set}" = set; then
1.1594 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1595 +else
1.1596 + ac_cv_target_alias=$target_alias
1.1597 +test "x$ac_cv_target_alias" = "x" &&
1.1598 + ac_cv_target_alias=$ac_cv_host_alias
1.1599 +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1.1600 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1.1601 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1.1602 + { (exit 1); exit 1; }; }
1.1603 +
1.1604 +fi
1.1605 +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1.1606 +echo "${ECHO_T}$ac_cv_target" >&6
1.1607 +target=$ac_cv_target
1.1608 +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1.1609 +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1.1610 +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1.1611 +
1.1612 +
1.1613 +# The aliases save the names the user supplied, while $host etc.
1.1614 +# will get canonicalized.
1.1615 +test -n "$target_alias" &&
1.1616 + test "$program_prefix$program_suffix$program_transform_name" = \
1.1617 + NONENONEs,x,x, &&
1.1618 + program_prefix=${target_alias}-
1.1619 +
1.1620 +case m4 in
1.1621 + [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
1.1622 + *) ac_macro_dir=$srcdir/m4 ;;
1.1623 +esac
1.1624 +if test -d "$ac_macro_dir"; then :
1.1625 +else
1.1626 + { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
1.1627 +echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
1.1628 + { (exit 1); exit 1; }; }
1.1629 +fi
1.1630 +
1.1631 +# Check whether --enable-static or --disable-static was given.
1.1632 +if test "${enable_static+set}" = set; then
1.1633 + enableval="$enable_static"
1.1634 + p=${PACKAGE-default}
1.1635 + case $enableval in
1.1636 + yes) enable_static=yes ;;
1.1637 + no) enable_static=no ;;
1.1638 + *)
1.1639 + enable_static=no
1.1640 + # Look at the argument we got. We use all the common list separators.
1.1641 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.1642 + for pkg in $enableval; do
1.1643 + IFS="$lt_save_ifs"
1.1644 + if test "X$pkg" = "X$p"; then
1.1645 + enable_static=yes
1.1646 + fi
1.1647 + done
1.1648 + IFS="$lt_save_ifs"
1.1649 + ;;
1.1650 + esac
1.1651 +else
1.1652 + enable_static=no
1.1653 +fi;
1.1654 +
1.1655 +
1.1656 +
1.1657 +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1.1658 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1.1659 + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1.1660 +if test "${enable_maintainer_mode+set}" = set; then
1.1661 + enableval="$enable_maintainer_mode"
1.1662 + USE_MAINTAINER_MODE=$enableval
1.1663 +else
1.1664 + USE_MAINTAINER_MODE=no
1.1665 +fi;
1.1666 + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1.1667 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1.1668 +
1.1669 +
1.1670 +if test $USE_MAINTAINER_MODE = yes; then
1.1671 + MAINTAINER_MODE_TRUE=
1.1672 + MAINTAINER_MODE_FALSE='#'
1.1673 +else
1.1674 + MAINTAINER_MODE_TRUE='#'
1.1675 + MAINTAINER_MODE_FALSE=
1.1676 +fi
1.1677 +
1.1678 + MAINT=$MAINTAINER_MODE_TRUE
1.1679 +
1.1680 +
1.1681 +
1.1682 +
1.1683 + PACKAGE=gst-plugins-nuvdemux
1.1684 + GST_PLUGINS_VERSION_MAJOR=0
1.1685 + GST_PLUGINS_VERSION_MINOR=10
1.1686 + GST_PLUGINS_VERSION_MICRO=0
1.1687 + NANO=1
1.1688 + GST_PLUGINS_VERSION_NANO=$NANO
1.1689 + if test "x$NANO" = "x" || test "x$NANO" = "x0";
1.1690 + then
1.1691 + { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for release" >&5
1.1692 +echo "$as_me: configuring gst-plugins-nuvdemux for release" >&6;}
1.1693 + VERSION=0.10.0
1.1694 + GST_PLUGINS_VERSION_RELEASE=1
1.1695 + GST_CVS="no"
1.1696 + else
1.1697 + { echo "$as_me:$LINENO: configuring gst-plugins-nuvdemux for development with nano $NANO" >&5
1.1698 +echo "$as_me: configuring gst-plugins-nuvdemux for development with nano $NANO" >&6;}
1.1699 + VERSION=0.10.0.$NANO
1.1700 + GST_PLUGINS_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
1.1701 + GST_CVS="yes"
1.1702 + fi
1.1703 +
1.1704 + GST_PLUGINS_VERSION=$VERSION
1.1705 +
1.1706 +cat >>confdefs.h <<_ACEOF
1.1707 +#define GST_PLUGINS_VERSION "$GST_PLUGINS_VERSION"
1.1708 +_ACEOF
1.1709 +
1.1710 +
1.1711 +
1.1712 +cat >>confdefs.h <<_ACEOF
1.1713 +#define GST_PLUGINS_VERSION_RELEASE "$GST_PLUGINS_VERSION_RELEASE"
1.1714 +_ACEOF
1.1715 +
1.1716 +
1.1717 +
1.1718 +
1.1719 +
1.1720 +
1.1721 +
1.1722 +
1.1723 +cat >>confdefs.h <<_ACEOF
1.1724 +#define PACKAGE "$PACKAGE"
1.1725 +_ACEOF
1.1726 +
1.1727 +
1.1728 +
1.1729 +cat >>confdefs.h <<_ACEOF
1.1730 +#define VERSION "$VERSION"
1.1731 +_ACEOF
1.1732 +
1.1733 +
1.1734 +
1.1735 +
1.1736 +am__api_version="1.8"
1.1737 +# Find a good install program. We prefer a C program (faster),
1.1738 +# so one script is as good as another. But avoid the broken or
1.1739 +# incompatible versions:
1.1740 +# SysV /etc/install, /usr/sbin/install
1.1741 +# SunOS /usr/etc/install
1.1742 +# IRIX /sbin/install
1.1743 +# AIX /bin/install
1.1744 +# AmigaOS /C/install, which installs bootblocks on floppy discs
1.1745 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1.1746 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1.1747 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1.1748 +# OS/2's system install, which has a completely different semantic
1.1749 +# ./install, which can be erroneously created by make from ./install.sh.
1.1750 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1.1751 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1.1752 +if test -z "$INSTALL"; then
1.1753 +if test "${ac_cv_path_install+set}" = set; then
1.1754 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1755 +else
1.1756 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1757 +for as_dir in $PATH
1.1758 +do
1.1759 + IFS=$as_save_IFS
1.1760 + test -z "$as_dir" && as_dir=.
1.1761 + # Account for people who put trailing slashes in PATH elements.
1.1762 +case $as_dir/ in
1.1763 + ./ | .// | /cC/* | \
1.1764 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.1765 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1.1766 + /usr/ucb/* ) ;;
1.1767 + *)
1.1768 + # OSF1 and SCO ODT 3.0 have their own names for install.
1.1769 + # Don't use installbsd from OSF since it installs stuff as root
1.1770 + # by default.
1.1771 + for ac_prog in ginstall scoinst install; do
1.1772 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1773 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1.1774 + if test $ac_prog = install &&
1.1775 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1776 + # AIX install. It has an incompatible calling convention.
1.1777 + :
1.1778 + elif test $ac_prog = install &&
1.1779 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1.1780 + # program-specific install script used by HP pwplus--don't use.
1.1781 + :
1.1782 + else
1.1783 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1.1784 + break 3
1.1785 + fi
1.1786 + fi
1.1787 + done
1.1788 + done
1.1789 + ;;
1.1790 +esac
1.1791 +done
1.1792 +
1.1793 +
1.1794 +fi
1.1795 + if test "${ac_cv_path_install+set}" = set; then
1.1796 + INSTALL=$ac_cv_path_install
1.1797 + else
1.1798 + # As a last resort, use the slow shell script. We don't cache a
1.1799 + # path for INSTALL within a source directory, because that will
1.1800 + # break other packages using the cache if that directory is
1.1801 + # removed, or if the path is relative.
1.1802 + INSTALL=$ac_install_sh
1.1803 + fi
1.1804 +fi
1.1805 +echo "$as_me:$LINENO: result: $INSTALL" >&5
1.1806 +echo "${ECHO_T}$INSTALL" >&6
1.1807 +
1.1808 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1.1809 +# It thinks the first close brace ends the variable substitution.
1.1810 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1811 +
1.1812 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1813 +
1.1814 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1815 +
1.1816 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1.1817 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1.1818 +# Just in case
1.1819 +sleep 1
1.1820 +echo timestamp > conftest.file
1.1821 +# Do `set' in a subshell so we don't clobber the current shell's
1.1822 +# arguments. Must try -L first in case configure is actually a
1.1823 +# symlink; some systems play weird games with the mod time of symlinks
1.1824 +# (eg FreeBSD returns the mod time of the symlink's containing
1.1825 +# directory).
1.1826 +if (
1.1827 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1828 + if test "$*" = "X"; then
1.1829 + # -L didn't work.
1.1830 + set X `ls -t $srcdir/configure conftest.file`
1.1831 + fi
1.1832 + rm -f conftest.file
1.1833 + if test "$*" != "X $srcdir/configure conftest.file" \
1.1834 + && test "$*" != "X conftest.file $srcdir/configure"; then
1.1835 +
1.1836 + # If neither matched, then we have a broken ls. This can happen
1.1837 + # if, for instance, CONFIG_SHELL is bash and it inherits a
1.1838 + # broken ls alias from the environment. This has actually
1.1839 + # happened. Such a system could not be considered "sane".
1.1840 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1.1841 +alias in your environment" >&5
1.1842 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1.1843 +alias in your environment" >&2;}
1.1844 + { (exit 1); exit 1; }; }
1.1845 + fi
1.1846 +
1.1847 + test "$2" = conftest.file
1.1848 + )
1.1849 +then
1.1850 + # Ok.
1.1851 + :
1.1852 +else
1.1853 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1.1854 +Check your system clock" >&5
1.1855 +echo "$as_me: error: newly created file is older than distributed files!
1.1856 +Check your system clock" >&2;}
1.1857 + { (exit 1); exit 1; }; }
1.1858 +fi
1.1859 +echo "$as_me:$LINENO: result: yes" >&5
1.1860 +echo "${ECHO_T}yes" >&6
1.1861 +test "$program_prefix" != NONE &&
1.1862 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
1.1863 +# Use a double $ so make ignores it.
1.1864 +test "$program_suffix" != NONE &&
1.1865 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1.1866 +# Double any \ or $. echo might interpret backslashes.
1.1867 +# By default was `s,x,x', remove it if useless.
1.1868 +cat <<\_ACEOF >conftest.sed
1.1869 +s/[\\$]/&&/g;s/;s,x,x,$//
1.1870 +_ACEOF
1.1871 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1.1872 +rm conftest.sed
1.1873 +
1.1874 +# expand $ac_aux_dir to an absolute path
1.1875 +am_aux_dir=`cd $ac_aux_dir && pwd`
1.1876 +
1.1877 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1.1878 +# Use eval to expand $SHELL
1.1879 +if eval "$MISSING --run true"; then
1.1880 + am_missing_run="$MISSING --run "
1.1881 +else
1.1882 + am_missing_run=
1.1883 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1.1884 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1.1885 +fi
1.1886 +
1.1887 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1.1888 + # Keeping the `.' argument allows $(mkdir_p) to be used without
1.1889 + # argument. Indeed, we sometimes output rules like
1.1890 + # $(mkdir_p) $(somedir)
1.1891 + # where $(somedir) is conditionally defined.
1.1892 + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1.1893 + # expensive solution, as it forces Make to start a sub-shell.)
1.1894 + mkdir_p='mkdir -p -- .'
1.1895 +else
1.1896 + # On NextStep and OpenStep, the `mkdir' command does not
1.1897 + # recognize any option. It will interpret all options as
1.1898 + # directories to create, and then abort because `.' already
1.1899 + # exists.
1.1900 + for d in ./-p ./--version;
1.1901 + do
1.1902 + test -d $d && rmdir $d
1.1903 + done
1.1904 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1.1905 + if test -f "$ac_aux_dir/mkinstalldirs"; then
1.1906 + mkdir_p='$(mkinstalldirs)'
1.1907 + else
1.1908 + mkdir_p='$(install_sh) -d'
1.1909 + fi
1.1910 +fi
1.1911 +
1.1912 +for ac_prog in gawk mawk nawk awk
1.1913 +do
1.1914 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.1915 +set dummy $ac_prog; ac_word=$2
1.1916 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.1917 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.1918 +if test "${ac_cv_prog_AWK+set}" = set; then
1.1919 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1920 +else
1.1921 + if test -n "$AWK"; then
1.1922 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1923 +else
1.1924 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1925 +for as_dir in $PATH
1.1926 +do
1.1927 + IFS=$as_save_IFS
1.1928 + test -z "$as_dir" && as_dir=.
1.1929 + for ac_exec_ext in '' $ac_executable_extensions; do
1.1930 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.1931 + ac_cv_prog_AWK="$ac_prog"
1.1932 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1933 + break 2
1.1934 + fi
1.1935 +done
1.1936 +done
1.1937 +
1.1938 +fi
1.1939 +fi
1.1940 +AWK=$ac_cv_prog_AWK
1.1941 +if test -n "$AWK"; then
1.1942 + echo "$as_me:$LINENO: result: $AWK" >&5
1.1943 +echo "${ECHO_T}$AWK" >&6
1.1944 +else
1.1945 + echo "$as_me:$LINENO: result: no" >&5
1.1946 +echo "${ECHO_T}no" >&6
1.1947 +fi
1.1948 +
1.1949 + test -n "$AWK" && break
1.1950 +done
1.1951 +
1.1952 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1.1953 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1.1954 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1.1955 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1.1956 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.1957 +else
1.1958 + cat >conftest.make <<\_ACEOF
1.1959 +all:
1.1960 + @echo 'ac_maketemp="$(MAKE)"'
1.1961 +_ACEOF
1.1962 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1.1963 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1.1964 +if test -n "$ac_maketemp"; then
1.1965 + eval ac_cv_prog_make_${ac_make}_set=yes
1.1966 +else
1.1967 + eval ac_cv_prog_make_${ac_make}_set=no
1.1968 +fi
1.1969 +rm -f conftest.make
1.1970 +fi
1.1971 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1.1972 + echo "$as_me:$LINENO: result: yes" >&5
1.1973 +echo "${ECHO_T}yes" >&6
1.1974 + SET_MAKE=
1.1975 +else
1.1976 + echo "$as_me:$LINENO: result: no" >&5
1.1977 +echo "${ECHO_T}no" >&6
1.1978 + SET_MAKE="MAKE=${MAKE-make}"
1.1979 +fi
1.1980 +
1.1981 +rm -rf .tst 2>/dev/null
1.1982 +mkdir .tst 2>/dev/null
1.1983 +if test -d .tst; then
1.1984 + am__leading_dot=.
1.1985 +else
1.1986 + am__leading_dot=_
1.1987 +fi
1.1988 +rmdir .tst 2>/dev/null
1.1989 +
1.1990 +# test to see if srcdir already configured
1.1991 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
1.1992 + test -f $srcdir/config.status; then
1.1993 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1.1994 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1.1995 + { (exit 1); exit 1; }; }
1.1996 +fi
1.1997 +
1.1998 +# test whether we have cygpath
1.1999 +if test -z "$CYGPATH_W"; then
1.2000 + if (cygpath --version) >/dev/null 2>/dev/null; then
1.2001 + CYGPATH_W='cygpath -w'
1.2002 + else
1.2003 + CYGPATH_W=echo
1.2004 + fi
1.2005 +fi
1.2006 +
1.2007 +
1.2008 +# Define the identity of the package.
1.2009 + PACKAGE=$PACKAGE
1.2010 + VERSION=$VERSION
1.2011 +
1.2012 +
1.2013 +cat >>confdefs.h <<_ACEOF
1.2014 +#define PACKAGE "$PACKAGE"
1.2015 +_ACEOF
1.2016 +
1.2017 +
1.2018 +cat >>confdefs.h <<_ACEOF
1.2019 +#define VERSION "$VERSION"
1.2020 +_ACEOF
1.2021 +
1.2022 +# Some tools Automake needs.
1.2023 +
1.2024 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1.2025 +
1.2026 +
1.2027 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.2028 +
1.2029 +
1.2030 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1.2031 +
1.2032 +
1.2033 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1.2034 +
1.2035 +
1.2036 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.2037 +
1.2038 +
1.2039 +AMTAR=${AMTAR-"${am_missing_run}tar"}
1.2040 +
1.2041 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.2042 +
1.2043 +# Installed binaries are usually stripped using `strip' when the user
1.2044 +# run `make install-strip'. However `strip' might not be the right
1.2045 +# tool to use in cross-compilation environments, therefore Automake
1.2046 +# will honor the `STRIP' environment variable to overrule this program.
1.2047 +if test "$cross_compiling" != no; then
1.2048 + if test -n "$ac_tool_prefix"; then
1.2049 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1.2050 +set dummy ${ac_tool_prefix}strip; ac_word=$2
1.2051 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2052 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2053 +if test "${ac_cv_prog_STRIP+set}" = set; then
1.2054 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2055 +else
1.2056 + if test -n "$STRIP"; then
1.2057 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.2058 +else
1.2059 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2060 +for as_dir in $PATH
1.2061 +do
1.2062 + IFS=$as_save_IFS
1.2063 + test -z "$as_dir" && as_dir=.
1.2064 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2065 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2066 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.2067 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2068 + break 2
1.2069 + fi
1.2070 +done
1.2071 +done
1.2072 +
1.2073 +fi
1.2074 +fi
1.2075 +STRIP=$ac_cv_prog_STRIP
1.2076 +if test -n "$STRIP"; then
1.2077 + echo "$as_me:$LINENO: result: $STRIP" >&5
1.2078 +echo "${ECHO_T}$STRIP" >&6
1.2079 +else
1.2080 + echo "$as_me:$LINENO: result: no" >&5
1.2081 +echo "${ECHO_T}no" >&6
1.2082 +fi
1.2083 +
1.2084 +fi
1.2085 +if test -z "$ac_cv_prog_STRIP"; then
1.2086 + ac_ct_STRIP=$STRIP
1.2087 + # Extract the first word of "strip", so it can be a program name with args.
1.2088 +set dummy strip; ac_word=$2
1.2089 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2090 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2091 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.2092 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2093 +else
1.2094 + if test -n "$ac_ct_STRIP"; then
1.2095 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.2096 +else
1.2097 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2098 +for as_dir in $PATH
1.2099 +do
1.2100 + IFS=$as_save_IFS
1.2101 + test -z "$as_dir" && as_dir=.
1.2102 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2103 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2104 + ac_cv_prog_ac_ct_STRIP="strip"
1.2105 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2106 + break 2
1.2107 + fi
1.2108 +done
1.2109 +done
1.2110 +
1.2111 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.2112 +fi
1.2113 +fi
1.2114 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1.2115 +if test -n "$ac_ct_STRIP"; then
1.2116 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1.2117 +echo "${ECHO_T}$ac_ct_STRIP" >&6
1.2118 +else
1.2119 + echo "$as_me:$LINENO: result: no" >&5
1.2120 +echo "${ECHO_T}no" >&6
1.2121 +fi
1.2122 +
1.2123 + STRIP=$ac_ct_STRIP
1.2124 +else
1.2125 + STRIP="$ac_cv_prog_STRIP"
1.2126 +fi
1.2127 +
1.2128 +fi
1.2129 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.2130 +
1.2131 +# We need awk for the "check" target. The system "awk" is bad on
1.2132 +# some platforms.
1.2133 +
1.2134 +
1.2135 +
1.2136 +
1.2137 +# Check whether --enable-shared or --disable-shared was given.
1.2138 +if test "${enable_shared+set}" = set; then
1.2139 + enableval="$enable_shared"
1.2140 + p=${PACKAGE-default}
1.2141 + case $enableval in
1.2142 + yes) enable_shared=yes ;;
1.2143 + no) enable_shared=no ;;
1.2144 + *)
1.2145 + enable_shared=no
1.2146 + # Look at the argument we got. We use all the common list separators.
1.2147 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.2148 + for pkg in $enableval; do
1.2149 + IFS="$lt_save_ifs"
1.2150 + if test "X$pkg" = "X$p"; then
1.2151 + enable_shared=yes
1.2152 + fi
1.2153 + done
1.2154 + IFS="$lt_save_ifs"
1.2155 + ;;
1.2156 + esac
1.2157 +else
1.2158 + enable_shared=yes
1.2159 +fi;
1.2160 +
1.2161 +# Check whether --enable-fast-install or --disable-fast-install was given.
1.2162 +if test "${enable_fast_install+set}" = set; then
1.2163 + enableval="$enable_fast_install"
1.2164 + p=${PACKAGE-default}
1.2165 + case $enableval in
1.2166 + yes) enable_fast_install=yes ;;
1.2167 + no) enable_fast_install=no ;;
1.2168 + *)
1.2169 + enable_fast_install=no
1.2170 + # Look at the argument we got. We use all the common list separators.
1.2171 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.2172 + for pkg in $enableval; do
1.2173 + IFS="$lt_save_ifs"
1.2174 + if test "X$pkg" = "X$p"; then
1.2175 + enable_fast_install=yes
1.2176 + fi
1.2177 + done
1.2178 + IFS="$lt_save_ifs"
1.2179 + ;;
1.2180 + esac
1.2181 +else
1.2182 + enable_fast_install=yes
1.2183 +fi;
1.2184 +
1.2185 +DEPDIR="${am__leading_dot}deps"
1.2186 +
1.2187 + ac_config_commands="$ac_config_commands depfiles"
1.2188 +
1.2189 +
1.2190 +am_make=${MAKE-make}
1.2191 +cat > confinc << 'END'
1.2192 +am__doit:
1.2193 + @echo done
1.2194 +.PHONY: am__doit
1.2195 +END
1.2196 +# If we don't find an include directive, just comment out the code.
1.2197 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1.2198 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1.2199 +am__include="#"
1.2200 +am__quote=
1.2201 +_am_result=none
1.2202 +# First try GNU make style include.
1.2203 +echo "include confinc" > confmf
1.2204 +# We grep out `Entering directory' and `Leaving directory'
1.2205 +# messages which can occur if `w' ends up in MAKEFLAGS.
1.2206 +# In particular we don't look at `^make:' because GNU make might
1.2207 +# be invoked under some other name (usually "gmake"), in which
1.2208 +# case it prints its new name instead of `make'.
1.2209 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1.2210 + am__include=include
1.2211 + am__quote=
1.2212 + _am_result=GNU
1.2213 +fi
1.2214 +# Now try BSD make style include.
1.2215 +if test "$am__include" = "#"; then
1.2216 + echo '.include "confinc"' > confmf
1.2217 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1.2218 + am__include=.include
1.2219 + am__quote="\""
1.2220 + _am_result=BSD
1.2221 + fi
1.2222 +fi
1.2223 +
1.2224 +
1.2225 +echo "$as_me:$LINENO: result: $_am_result" >&5
1.2226 +echo "${ECHO_T}$_am_result" >&6
1.2227 +rm -f confinc confmf
1.2228 +
1.2229 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1.2230 +if test "${enable_dependency_tracking+set}" = set; then
1.2231 + enableval="$enable_dependency_tracking"
1.2232 +
1.2233 +fi;
1.2234 +if test "x$enable_dependency_tracking" != xno; then
1.2235 + am_depcomp="$ac_aux_dir/depcomp"
1.2236 + AMDEPBACKSLASH='\'
1.2237 +fi
1.2238 +
1.2239 +
1.2240 +if test "x$enable_dependency_tracking" != xno; then
1.2241 + AMDEP_TRUE=
1.2242 + AMDEP_FALSE='#'
1.2243 +else
1.2244 + AMDEP_TRUE='#'
1.2245 + AMDEP_FALSE=
1.2246 +fi
1.2247 +
1.2248 +
1.2249 +
1.2250 +ac_ext=c
1.2251 +ac_cpp='$CPP $CPPFLAGS'
1.2252 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.2253 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.2254 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.2255 +if test -n "$ac_tool_prefix"; then
1.2256 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.2257 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.2258 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2259 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2260 +if test "${ac_cv_prog_CC+set}" = set; then
1.2261 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2262 +else
1.2263 + if test -n "$CC"; then
1.2264 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2265 +else
1.2266 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2267 +for as_dir in $PATH
1.2268 +do
1.2269 + IFS=$as_save_IFS
1.2270 + test -z "$as_dir" && as_dir=.
1.2271 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2272 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2273 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.2274 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2275 + break 2
1.2276 + fi
1.2277 +done
1.2278 +done
1.2279 +
1.2280 +fi
1.2281 +fi
1.2282 +CC=$ac_cv_prog_CC
1.2283 +if test -n "$CC"; then
1.2284 + echo "$as_me:$LINENO: result: $CC" >&5
1.2285 +echo "${ECHO_T}$CC" >&6
1.2286 +else
1.2287 + echo "$as_me:$LINENO: result: no" >&5
1.2288 +echo "${ECHO_T}no" >&6
1.2289 +fi
1.2290 +
1.2291 +fi
1.2292 +if test -z "$ac_cv_prog_CC"; then
1.2293 + ac_ct_CC=$CC
1.2294 + # Extract the first word of "gcc", so it can be a program name with args.
1.2295 +set dummy gcc; ac_word=$2
1.2296 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2297 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2298 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2299 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2300 +else
1.2301 + if test -n "$ac_ct_CC"; then
1.2302 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2303 +else
1.2304 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2305 +for as_dir in $PATH
1.2306 +do
1.2307 + IFS=$as_save_IFS
1.2308 + test -z "$as_dir" && as_dir=.
1.2309 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2310 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2311 + ac_cv_prog_ac_ct_CC="gcc"
1.2312 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2313 + break 2
1.2314 + fi
1.2315 +done
1.2316 +done
1.2317 +
1.2318 +fi
1.2319 +fi
1.2320 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2321 +if test -n "$ac_ct_CC"; then
1.2322 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2323 +echo "${ECHO_T}$ac_ct_CC" >&6
1.2324 +else
1.2325 + echo "$as_me:$LINENO: result: no" >&5
1.2326 +echo "${ECHO_T}no" >&6
1.2327 +fi
1.2328 +
1.2329 + CC=$ac_ct_CC
1.2330 +else
1.2331 + CC="$ac_cv_prog_CC"
1.2332 +fi
1.2333 +
1.2334 +if test -z "$CC"; then
1.2335 + if test -n "$ac_tool_prefix"; then
1.2336 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.2337 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.2338 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2339 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2340 +if test "${ac_cv_prog_CC+set}" = set; then
1.2341 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2342 +else
1.2343 + if test -n "$CC"; then
1.2344 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2345 +else
1.2346 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2347 +for as_dir in $PATH
1.2348 +do
1.2349 + IFS=$as_save_IFS
1.2350 + test -z "$as_dir" && as_dir=.
1.2351 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2352 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2353 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.2354 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2355 + break 2
1.2356 + fi
1.2357 +done
1.2358 +done
1.2359 +
1.2360 +fi
1.2361 +fi
1.2362 +CC=$ac_cv_prog_CC
1.2363 +if test -n "$CC"; then
1.2364 + echo "$as_me:$LINENO: result: $CC" >&5
1.2365 +echo "${ECHO_T}$CC" >&6
1.2366 +else
1.2367 + echo "$as_me:$LINENO: result: no" >&5
1.2368 +echo "${ECHO_T}no" >&6
1.2369 +fi
1.2370 +
1.2371 +fi
1.2372 +if test -z "$ac_cv_prog_CC"; then
1.2373 + ac_ct_CC=$CC
1.2374 + # Extract the first word of "cc", so it can be a program name with args.
1.2375 +set dummy cc; ac_word=$2
1.2376 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2377 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2378 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2379 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2380 +else
1.2381 + if test -n "$ac_ct_CC"; then
1.2382 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2383 +else
1.2384 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2385 +for as_dir in $PATH
1.2386 +do
1.2387 + IFS=$as_save_IFS
1.2388 + test -z "$as_dir" && as_dir=.
1.2389 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2390 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2391 + ac_cv_prog_ac_ct_CC="cc"
1.2392 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2393 + break 2
1.2394 + fi
1.2395 +done
1.2396 +done
1.2397 +
1.2398 +fi
1.2399 +fi
1.2400 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2401 +if test -n "$ac_ct_CC"; then
1.2402 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2403 +echo "${ECHO_T}$ac_ct_CC" >&6
1.2404 +else
1.2405 + echo "$as_me:$LINENO: result: no" >&5
1.2406 +echo "${ECHO_T}no" >&6
1.2407 +fi
1.2408 +
1.2409 + CC=$ac_ct_CC
1.2410 +else
1.2411 + CC="$ac_cv_prog_CC"
1.2412 +fi
1.2413 +
1.2414 +fi
1.2415 +if test -z "$CC"; then
1.2416 + # Extract the first word of "cc", so it can be a program name with args.
1.2417 +set dummy cc; ac_word=$2
1.2418 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2419 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2420 +if test "${ac_cv_prog_CC+set}" = set; then
1.2421 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2422 +else
1.2423 + if test -n "$CC"; then
1.2424 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2425 +else
1.2426 + ac_prog_rejected=no
1.2427 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2428 +for as_dir in $PATH
1.2429 +do
1.2430 + IFS=$as_save_IFS
1.2431 + test -z "$as_dir" && as_dir=.
1.2432 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2433 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2434 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.2435 + ac_prog_rejected=yes
1.2436 + continue
1.2437 + fi
1.2438 + ac_cv_prog_CC="cc"
1.2439 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2440 + break 2
1.2441 + fi
1.2442 +done
1.2443 +done
1.2444 +
1.2445 +if test $ac_prog_rejected = yes; then
1.2446 + # We found a bogon in the path, so make sure we never use it.
1.2447 + set dummy $ac_cv_prog_CC
1.2448 + shift
1.2449 + if test $# != 0; then
1.2450 + # We chose a different compiler from the bogus one.
1.2451 + # However, it has the same basename, so the bogon will be chosen
1.2452 + # first if we set CC to just the basename; use the full file name.
1.2453 + shift
1.2454 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.2455 + fi
1.2456 +fi
1.2457 +fi
1.2458 +fi
1.2459 +CC=$ac_cv_prog_CC
1.2460 +if test -n "$CC"; then
1.2461 + echo "$as_me:$LINENO: result: $CC" >&5
1.2462 +echo "${ECHO_T}$CC" >&6
1.2463 +else
1.2464 + echo "$as_me:$LINENO: result: no" >&5
1.2465 +echo "${ECHO_T}no" >&6
1.2466 +fi
1.2467 +
1.2468 +fi
1.2469 +if test -z "$CC"; then
1.2470 + if test -n "$ac_tool_prefix"; then
1.2471 + for ac_prog in cl
1.2472 + do
1.2473 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.2474 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.2475 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2476 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2477 +if test "${ac_cv_prog_CC+set}" = set; then
1.2478 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2479 +else
1.2480 + if test -n "$CC"; then
1.2481 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.2482 +else
1.2483 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2484 +for as_dir in $PATH
1.2485 +do
1.2486 + IFS=$as_save_IFS
1.2487 + test -z "$as_dir" && as_dir=.
1.2488 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2489 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2490 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.2491 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2492 + break 2
1.2493 + fi
1.2494 +done
1.2495 +done
1.2496 +
1.2497 +fi
1.2498 +fi
1.2499 +CC=$ac_cv_prog_CC
1.2500 +if test -n "$CC"; then
1.2501 + echo "$as_me:$LINENO: result: $CC" >&5
1.2502 +echo "${ECHO_T}$CC" >&6
1.2503 +else
1.2504 + echo "$as_me:$LINENO: result: no" >&5
1.2505 +echo "${ECHO_T}no" >&6
1.2506 +fi
1.2507 +
1.2508 + test -n "$CC" && break
1.2509 + done
1.2510 +fi
1.2511 +if test -z "$CC"; then
1.2512 + ac_ct_CC=$CC
1.2513 + for ac_prog in cl
1.2514 +do
1.2515 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.2516 +set dummy $ac_prog; ac_word=$2
1.2517 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.2518 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.2519 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.2520 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2521 +else
1.2522 + if test -n "$ac_ct_CC"; then
1.2523 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.2524 +else
1.2525 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.2526 +for as_dir in $PATH
1.2527 +do
1.2528 + IFS=$as_save_IFS
1.2529 + test -z "$as_dir" && as_dir=.
1.2530 + for ac_exec_ext in '' $ac_executable_extensions; do
1.2531 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.2532 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.2533 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.2534 + break 2
1.2535 + fi
1.2536 +done
1.2537 +done
1.2538 +
1.2539 +fi
1.2540 +fi
1.2541 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.2542 +if test -n "$ac_ct_CC"; then
1.2543 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.2544 +echo "${ECHO_T}$ac_ct_CC" >&6
1.2545 +else
1.2546 + echo "$as_me:$LINENO: result: no" >&5
1.2547 +echo "${ECHO_T}no" >&6
1.2548 +fi
1.2549 +
1.2550 + test -n "$ac_ct_CC" && break
1.2551 +done
1.2552 +
1.2553 + CC=$ac_ct_CC
1.2554 +fi
1.2555 +
1.2556 +fi
1.2557 +
1.2558 +
1.2559 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.2560 +See \`config.log' for more details." >&5
1.2561 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.2562 +See \`config.log' for more details." >&2;}
1.2563 + { (exit 1); exit 1; }; }
1.2564 +
1.2565 +# Provide some information about the compiler.
1.2566 +echo "$as_me:$LINENO:" \
1.2567 + "checking for C compiler version" >&5
1.2568 +ac_compiler=`set X $ac_compile; echo $2`
1.2569 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.2570 + (eval $ac_compiler --version </dev/null >&5) 2>&5
1.2571 + ac_status=$?
1.2572 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2573 + (exit $ac_status); }
1.2574 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.2575 + (eval $ac_compiler -v </dev/null >&5) 2>&5
1.2576 + ac_status=$?
1.2577 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2578 + (exit $ac_status); }
1.2579 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.2580 + (eval $ac_compiler -V </dev/null >&5) 2>&5
1.2581 + ac_status=$?
1.2582 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2583 + (exit $ac_status); }
1.2584 +
1.2585 +cat >conftest.$ac_ext <<_ACEOF
1.2586 +/* confdefs.h. */
1.2587 +_ACEOF
1.2588 +cat confdefs.h >>conftest.$ac_ext
1.2589 +cat >>conftest.$ac_ext <<_ACEOF
1.2590 +/* end confdefs.h. */
1.2591 +
1.2592 +int
1.2593 +main ()
1.2594 +{
1.2595 +
1.2596 + ;
1.2597 + return 0;
1.2598 +}
1.2599 +_ACEOF
1.2600 +ac_clean_files_save=$ac_clean_files
1.2601 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.2602 +# Try to create an executable without -o first, disregard a.out.
1.2603 +# It will help us diagnose broken compilers, and finding out an intuition
1.2604 +# of exeext.
1.2605 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1.2606 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1.2607 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.2608 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1.2609 + (eval $ac_link_default) 2>&5
1.2610 + ac_status=$?
1.2611 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2612 + (exit $ac_status); }; then
1.2613 + # Find the output, starting from the most likely. This scheme is
1.2614 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1.2615 +# resort.
1.2616 +
1.2617 +# Be careful to initialize this variable, since it used to be cached.
1.2618 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1.2619 +ac_cv_exeext=
1.2620 +# b.out is created by i960 compilers.
1.2621 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1.2622 +do
1.2623 + test -f "$ac_file" || continue
1.2624 + case $ac_file in
1.2625 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1.2626 + ;;
1.2627 + conftest.$ac_ext )
1.2628 + # This is the source file.
1.2629 + ;;
1.2630 + [ab].out )
1.2631 + # We found the default executable, but exeext='' is most
1.2632 + # certainly right.
1.2633 + break;;
1.2634 + *.* )
1.2635 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.2636 + # FIXME: I believe we export ac_cv_exeext for Libtool,
1.2637 + # but it would be cool to find out if it's true. Does anybody
1.2638 + # maintain Libtool? --akim.
1.2639 + export ac_cv_exeext
1.2640 + break;;
1.2641 + * )
1.2642 + break;;
1.2643 + esac
1.2644 +done
1.2645 +else
1.2646 + echo "$as_me: failed program was:" >&5
1.2647 +sed 's/^/| /' conftest.$ac_ext >&5
1.2648 +
1.2649 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1.2650 +See \`config.log' for more details." >&5
1.2651 +echo "$as_me: error: C compiler cannot create executables
1.2652 +See \`config.log' for more details." >&2;}
1.2653 + { (exit 77); exit 77; }; }
1.2654 +fi
1.2655 +
1.2656 +ac_exeext=$ac_cv_exeext
1.2657 +echo "$as_me:$LINENO: result: $ac_file" >&5
1.2658 +echo "${ECHO_T}$ac_file" >&6
1.2659 +
1.2660 +# Check the compiler produces executables we can run. If not, either
1.2661 +# the compiler is broken, or we cross compile.
1.2662 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1.2663 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1.2664 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1.2665 +# If not cross compiling, check that we can run a simple program.
1.2666 +if test "$cross_compiling" != yes; then
1.2667 + if { ac_try='./$ac_file'
1.2668 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2669 + (eval $ac_try) 2>&5
1.2670 + ac_status=$?
1.2671 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2672 + (exit $ac_status); }; }; then
1.2673 + cross_compiling=no
1.2674 + else
1.2675 + if test "$cross_compiling" = maybe; then
1.2676 + cross_compiling=yes
1.2677 + else
1.2678 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.2679 +If you meant to cross compile, use \`--host'.
1.2680 +See \`config.log' for more details." >&5
1.2681 +echo "$as_me: error: cannot run C compiled programs.
1.2682 +If you meant to cross compile, use \`--host'.
1.2683 +See \`config.log' for more details." >&2;}
1.2684 + { (exit 1); exit 1; }; }
1.2685 + fi
1.2686 + fi
1.2687 +fi
1.2688 +echo "$as_me:$LINENO: result: yes" >&5
1.2689 +echo "${ECHO_T}yes" >&6
1.2690 +
1.2691 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.2692 +ac_clean_files=$ac_clean_files_save
1.2693 +# Check the compiler produces executables we can run. If not, either
1.2694 +# the compiler is broken, or we cross compile.
1.2695 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1.2696 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1.2697 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
1.2698 +echo "${ECHO_T}$cross_compiling" >&6
1.2699 +
1.2700 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
1.2701 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1.2702 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.2703 + (eval $ac_link) 2>&5
1.2704 + ac_status=$?
1.2705 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2706 + (exit $ac_status); }; then
1.2707 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
1.2708 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1.2709 +# work properly (i.e., refer to `conftest.exe'), while it won't with
1.2710 +# `rm'.
1.2711 +for ac_file in conftest.exe conftest conftest.*; do
1.2712 + test -f "$ac_file" || continue
1.2713 + case $ac_file in
1.2714 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1.2715 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.2716 + export ac_cv_exeext
1.2717 + break;;
1.2718 + * ) break;;
1.2719 + esac
1.2720 +done
1.2721 +else
1.2722 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1.2723 +See \`config.log' for more details." >&5
1.2724 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1.2725 +See \`config.log' for more details." >&2;}
1.2726 + { (exit 1); exit 1; }; }
1.2727 +fi
1.2728 +
1.2729 +rm -f conftest$ac_cv_exeext
1.2730 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1.2731 +echo "${ECHO_T}$ac_cv_exeext" >&6
1.2732 +
1.2733 +rm -f conftest.$ac_ext
1.2734 +EXEEXT=$ac_cv_exeext
1.2735 +ac_exeext=$EXEEXT
1.2736 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
1.2737 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1.2738 +if test "${ac_cv_objext+set}" = set; then
1.2739 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2740 +else
1.2741 + cat >conftest.$ac_ext <<_ACEOF
1.2742 +/* confdefs.h. */
1.2743 +_ACEOF
1.2744 +cat confdefs.h >>conftest.$ac_ext
1.2745 +cat >>conftest.$ac_ext <<_ACEOF
1.2746 +/* end confdefs.h. */
1.2747 +
1.2748 +int
1.2749 +main ()
1.2750 +{
1.2751 +
1.2752 + ;
1.2753 + return 0;
1.2754 +}
1.2755 +_ACEOF
1.2756 +rm -f conftest.o conftest.obj
1.2757 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.2758 + (eval $ac_compile) 2>&5
1.2759 + ac_status=$?
1.2760 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2761 + (exit $ac_status); }; then
1.2762 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1.2763 + case $ac_file in
1.2764 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1.2765 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1.2766 + break;;
1.2767 + esac
1.2768 +done
1.2769 +else
1.2770 + echo "$as_me: failed program was:" >&5
1.2771 +sed 's/^/| /' conftest.$ac_ext >&5
1.2772 +
1.2773 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1.2774 +See \`config.log' for more details." >&5
1.2775 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
1.2776 +See \`config.log' for more details." >&2;}
1.2777 + { (exit 1); exit 1; }; }
1.2778 +fi
1.2779 +
1.2780 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.2781 +fi
1.2782 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1.2783 +echo "${ECHO_T}$ac_cv_objext" >&6
1.2784 +OBJEXT=$ac_cv_objext
1.2785 +ac_objext=$OBJEXT
1.2786 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.2787 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1.2788 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.2789 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2790 +else
1.2791 + cat >conftest.$ac_ext <<_ACEOF
1.2792 +/* confdefs.h. */
1.2793 +_ACEOF
1.2794 +cat confdefs.h >>conftest.$ac_ext
1.2795 +cat >>conftest.$ac_ext <<_ACEOF
1.2796 +/* end confdefs.h. */
1.2797 +
1.2798 +int
1.2799 +main ()
1.2800 +{
1.2801 +#ifndef __GNUC__
1.2802 + choke me
1.2803 +#endif
1.2804 +
1.2805 + ;
1.2806 + return 0;
1.2807 +}
1.2808 +_ACEOF
1.2809 +rm -f conftest.$ac_objext
1.2810 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.2811 + (eval $ac_compile) 2>conftest.er1
1.2812 + ac_status=$?
1.2813 + grep -v '^ *+' conftest.er1 >conftest.err
1.2814 + rm -f conftest.er1
1.2815 + cat conftest.err >&5
1.2816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2817 + (exit $ac_status); } &&
1.2818 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.2819 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2820 + (eval $ac_try) 2>&5
1.2821 + ac_status=$?
1.2822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2823 + (exit $ac_status); }; } &&
1.2824 + { ac_try='test -s conftest.$ac_objext'
1.2825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2826 + (eval $ac_try) 2>&5
1.2827 + ac_status=$?
1.2828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2829 + (exit $ac_status); }; }; then
1.2830 + ac_compiler_gnu=yes
1.2831 +else
1.2832 + echo "$as_me: failed program was:" >&5
1.2833 +sed 's/^/| /' conftest.$ac_ext >&5
1.2834 +
1.2835 +ac_compiler_gnu=no
1.2836 +fi
1.2837 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2838 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.2839 +
1.2840 +fi
1.2841 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.2842 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1.2843 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.2844 +ac_test_CFLAGS=${CFLAGS+set}
1.2845 +ac_save_CFLAGS=$CFLAGS
1.2846 +CFLAGS="-g"
1.2847 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.2848 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1.2849 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.2850 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2851 +else
1.2852 + cat >conftest.$ac_ext <<_ACEOF
1.2853 +/* confdefs.h. */
1.2854 +_ACEOF
1.2855 +cat confdefs.h >>conftest.$ac_ext
1.2856 +cat >>conftest.$ac_ext <<_ACEOF
1.2857 +/* end confdefs.h. */
1.2858 +
1.2859 +int
1.2860 +main ()
1.2861 +{
1.2862 +
1.2863 + ;
1.2864 + return 0;
1.2865 +}
1.2866 +_ACEOF
1.2867 +rm -f conftest.$ac_objext
1.2868 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.2869 + (eval $ac_compile) 2>conftest.er1
1.2870 + ac_status=$?
1.2871 + grep -v '^ *+' conftest.er1 >conftest.err
1.2872 + rm -f conftest.er1
1.2873 + cat conftest.err >&5
1.2874 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2875 + (exit $ac_status); } &&
1.2876 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.2877 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2878 + (eval $ac_try) 2>&5
1.2879 + ac_status=$?
1.2880 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2881 + (exit $ac_status); }; } &&
1.2882 + { ac_try='test -s conftest.$ac_objext'
1.2883 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2884 + (eval $ac_try) 2>&5
1.2885 + ac_status=$?
1.2886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2887 + (exit $ac_status); }; }; then
1.2888 + ac_cv_prog_cc_g=yes
1.2889 +else
1.2890 + echo "$as_me: failed program was:" >&5
1.2891 +sed 's/^/| /' conftest.$ac_ext >&5
1.2892 +
1.2893 +ac_cv_prog_cc_g=no
1.2894 +fi
1.2895 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.2896 +fi
1.2897 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.2898 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.2899 +if test "$ac_test_CFLAGS" = set; then
1.2900 + CFLAGS=$ac_save_CFLAGS
1.2901 +elif test $ac_cv_prog_cc_g = yes; then
1.2902 + if test "$GCC" = yes; then
1.2903 + CFLAGS="-g -O2"
1.2904 + else
1.2905 + CFLAGS="-g"
1.2906 + fi
1.2907 +else
1.2908 + if test "$GCC" = yes; then
1.2909 + CFLAGS="-O2"
1.2910 + else
1.2911 + CFLAGS=
1.2912 + fi
1.2913 +fi
1.2914 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1.2915 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1.2916 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
1.2917 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.2918 +else
1.2919 + ac_cv_prog_cc_stdc=no
1.2920 +ac_save_CC=$CC
1.2921 +cat >conftest.$ac_ext <<_ACEOF
1.2922 +/* confdefs.h. */
1.2923 +_ACEOF
1.2924 +cat confdefs.h >>conftest.$ac_ext
1.2925 +cat >>conftest.$ac_ext <<_ACEOF
1.2926 +/* end confdefs.h. */
1.2927 +#include <stdarg.h>
1.2928 +#include <stdio.h>
1.2929 +#include <sys/types.h>
1.2930 +#include <sys/stat.h>
1.2931 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.2932 +struct buf { int x; };
1.2933 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.2934 +static char *e (p, i)
1.2935 + char **p;
1.2936 + int i;
1.2937 +{
1.2938 + return p[i];
1.2939 +}
1.2940 +static char *f (char * (*g) (char **, int), char **p, ...)
1.2941 +{
1.2942 + char *s;
1.2943 + va_list v;
1.2944 + va_start (v,p);
1.2945 + s = g (p, va_arg (v,int));
1.2946 + va_end (v);
1.2947 + return s;
1.2948 +}
1.2949 +
1.2950 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.2951 + function prototypes and stuff, but not '\xHH' hex character constants.
1.2952 + These don't provoke an error unfortunately, instead are silently treated
1.2953 + as 'x'. The following induces an error, until -std1 is added to get
1.2954 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.2955 + array size at least. It's necessary to write '\x00'==0 to get something
1.2956 + that's true only with -std1. */
1.2957 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.2958 +
1.2959 +int test (int i, double x);
1.2960 +struct s1 {int (*f) (int a);};
1.2961 +struct s2 {int (*f) (double a);};
1.2962 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.2963 +int argc;
1.2964 +char **argv;
1.2965 +int
1.2966 +main ()
1.2967 +{
1.2968 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.2969 + ;
1.2970 + return 0;
1.2971 +}
1.2972 +_ACEOF
1.2973 +# Don't try gcc -ansi; that turns off useful extensions and
1.2974 +# breaks some systems' header files.
1.2975 +# AIX -qlanglvl=ansi
1.2976 +# Ultrix and OSF/1 -std1
1.2977 +# HP-UX 10.20 and later -Ae
1.2978 +# HP-UX older versions -Aa -D_HPUX_SOURCE
1.2979 +# SVR4 -Xc -D__EXTENSIONS__
1.2980 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.2981 +do
1.2982 + CC="$ac_save_CC $ac_arg"
1.2983 + rm -f conftest.$ac_objext
1.2984 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.2985 + (eval $ac_compile) 2>conftest.er1
1.2986 + ac_status=$?
1.2987 + grep -v '^ *+' conftest.er1 >conftest.err
1.2988 + rm -f conftest.er1
1.2989 + cat conftest.err >&5
1.2990 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2991 + (exit $ac_status); } &&
1.2992 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.2993 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.2994 + (eval $ac_try) 2>&5
1.2995 + ac_status=$?
1.2996 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.2997 + (exit $ac_status); }; } &&
1.2998 + { ac_try='test -s conftest.$ac_objext'
1.2999 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3000 + (eval $ac_try) 2>&5
1.3001 + ac_status=$?
1.3002 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3003 + (exit $ac_status); }; }; then
1.3004 + ac_cv_prog_cc_stdc=$ac_arg
1.3005 +break
1.3006 +else
1.3007 + echo "$as_me: failed program was:" >&5
1.3008 +sed 's/^/| /' conftest.$ac_ext >&5
1.3009 +
1.3010 +fi
1.3011 +rm -f conftest.err conftest.$ac_objext
1.3012 +done
1.3013 +rm -f conftest.$ac_ext conftest.$ac_objext
1.3014 +CC=$ac_save_CC
1.3015 +
1.3016 +fi
1.3017 +
1.3018 +case "x$ac_cv_prog_cc_stdc" in
1.3019 + x|xno)
1.3020 + echo "$as_me:$LINENO: result: none needed" >&5
1.3021 +echo "${ECHO_T}none needed" >&6 ;;
1.3022 + *)
1.3023 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1.3024 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1.3025 + CC="$CC $ac_cv_prog_cc_stdc" ;;
1.3026 +esac
1.3027 +
1.3028 +# Some people use a C++ compiler to compile C. Since we use `exit',
1.3029 +# in C++ we need to declare it. In case someone uses the same compiler
1.3030 +# for both compiling C and C++ we need to have the C++ compiler decide
1.3031 +# the declaration of exit, since it's the most demanding environment.
1.3032 +cat >conftest.$ac_ext <<_ACEOF
1.3033 +#ifndef __cplusplus
1.3034 + choke me
1.3035 +#endif
1.3036 +_ACEOF
1.3037 +rm -f conftest.$ac_objext
1.3038 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3039 + (eval $ac_compile) 2>conftest.er1
1.3040 + ac_status=$?
1.3041 + grep -v '^ *+' conftest.er1 >conftest.err
1.3042 + rm -f conftest.er1
1.3043 + cat conftest.err >&5
1.3044 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3045 + (exit $ac_status); } &&
1.3046 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.3047 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3048 + (eval $ac_try) 2>&5
1.3049 + ac_status=$?
1.3050 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3051 + (exit $ac_status); }; } &&
1.3052 + { ac_try='test -s conftest.$ac_objext'
1.3053 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3054 + (eval $ac_try) 2>&5
1.3055 + ac_status=$?
1.3056 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3057 + (exit $ac_status); }; }; then
1.3058 + for ac_declaration in \
1.3059 + '' \
1.3060 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
1.3061 + 'extern "C" void std::exit (int); using std::exit;' \
1.3062 + 'extern "C" void exit (int) throw ();' \
1.3063 + 'extern "C" void exit (int);' \
1.3064 + 'void exit (int);'
1.3065 +do
1.3066 + cat >conftest.$ac_ext <<_ACEOF
1.3067 +/* confdefs.h. */
1.3068 +_ACEOF
1.3069 +cat confdefs.h >>conftest.$ac_ext
1.3070 +cat >>conftest.$ac_ext <<_ACEOF
1.3071 +/* end confdefs.h. */
1.3072 +$ac_declaration
1.3073 +#include <stdlib.h>
1.3074 +int
1.3075 +main ()
1.3076 +{
1.3077 +exit (42);
1.3078 + ;
1.3079 + return 0;
1.3080 +}
1.3081 +_ACEOF
1.3082 +rm -f conftest.$ac_objext
1.3083 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3084 + (eval $ac_compile) 2>conftest.er1
1.3085 + ac_status=$?
1.3086 + grep -v '^ *+' conftest.er1 >conftest.err
1.3087 + rm -f conftest.er1
1.3088 + cat conftest.err >&5
1.3089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3090 + (exit $ac_status); } &&
1.3091 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.3092 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3093 + (eval $ac_try) 2>&5
1.3094 + ac_status=$?
1.3095 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3096 + (exit $ac_status); }; } &&
1.3097 + { ac_try='test -s conftest.$ac_objext'
1.3098 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3099 + (eval $ac_try) 2>&5
1.3100 + ac_status=$?
1.3101 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3102 + (exit $ac_status); }; }; then
1.3103 + :
1.3104 +else
1.3105 + echo "$as_me: failed program was:" >&5
1.3106 +sed 's/^/| /' conftest.$ac_ext >&5
1.3107 +
1.3108 +continue
1.3109 +fi
1.3110 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3111 + cat >conftest.$ac_ext <<_ACEOF
1.3112 +/* confdefs.h. */
1.3113 +_ACEOF
1.3114 +cat confdefs.h >>conftest.$ac_ext
1.3115 +cat >>conftest.$ac_ext <<_ACEOF
1.3116 +/* end confdefs.h. */
1.3117 +$ac_declaration
1.3118 +int
1.3119 +main ()
1.3120 +{
1.3121 +exit (42);
1.3122 + ;
1.3123 + return 0;
1.3124 +}
1.3125 +_ACEOF
1.3126 +rm -f conftest.$ac_objext
1.3127 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3128 + (eval $ac_compile) 2>conftest.er1
1.3129 + ac_status=$?
1.3130 + grep -v '^ *+' conftest.er1 >conftest.err
1.3131 + rm -f conftest.er1
1.3132 + cat conftest.err >&5
1.3133 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3134 + (exit $ac_status); } &&
1.3135 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.3136 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3137 + (eval $ac_try) 2>&5
1.3138 + ac_status=$?
1.3139 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3140 + (exit $ac_status); }; } &&
1.3141 + { ac_try='test -s conftest.$ac_objext'
1.3142 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3143 + (eval $ac_try) 2>&5
1.3144 + ac_status=$?
1.3145 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3146 + (exit $ac_status); }; }; then
1.3147 + break
1.3148 +else
1.3149 + echo "$as_me: failed program was:" >&5
1.3150 +sed 's/^/| /' conftest.$ac_ext >&5
1.3151 +
1.3152 +fi
1.3153 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3154 +done
1.3155 +rm -f conftest*
1.3156 +if test -n "$ac_declaration"; then
1.3157 + echo '#ifdef __cplusplus' >>confdefs.h
1.3158 + echo $ac_declaration >>confdefs.h
1.3159 + echo '#endif' >>confdefs.h
1.3160 +fi
1.3161 +
1.3162 +else
1.3163 + echo "$as_me: failed program was:" >&5
1.3164 +sed 's/^/| /' conftest.$ac_ext >&5
1.3165 +
1.3166 +fi
1.3167 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.3168 +ac_ext=c
1.3169 +ac_cpp='$CPP $CPPFLAGS'
1.3170 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3171 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3172 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3173 +
1.3174 +depcc="$CC" am_compiler_list=
1.3175 +
1.3176 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.3177 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.3178 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.3179 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3180 +else
1.3181 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.3182 + # We make a subdir and do the tests there. Otherwise we can end up
1.3183 + # making bogus files that we don't know about and never remove. For
1.3184 + # instance it was reported that on HP-UX the gcc test will end up
1.3185 + # making a dummy file named `D' -- because `-MD' means `put the output
1.3186 + # in D'.
1.3187 + mkdir conftest.dir
1.3188 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.3189 + # using a relative directory.
1.3190 + cp "$am_depcomp" conftest.dir
1.3191 + cd conftest.dir
1.3192 + # We will build objects and dependencies in a subdirectory because
1.3193 + # it helps to detect inapplicable dependency modes. For instance
1.3194 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.3195 + # side effect of compilation, but ICC will put the dependencies in
1.3196 + # the current directory while Tru64 will put them in the object
1.3197 + # directory.
1.3198 + mkdir sub
1.3199 +
1.3200 + am_cv_CC_dependencies_compiler_type=none
1.3201 + if test "$am_compiler_list" = ""; then
1.3202 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.3203 + fi
1.3204 + for depmode in $am_compiler_list; do
1.3205 + # Setup a source with many dependencies, because some compilers
1.3206 + # like to wrap large dependency lists on column 80 (with \), and
1.3207 + # we should not choose a depcomp mode which is confused by this.
1.3208 + #
1.3209 + # We need to recreate these files for each test, as the compiler may
1.3210 + # overwrite some of them when testing with obscure command lines.
1.3211 + # This happens at least with the AIX C compiler.
1.3212 + : > sub/conftest.c
1.3213 + for i in 1 2 3 4 5 6; do
1.3214 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.3215 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.3216 + # Solaris 8's {/usr,}/bin/sh.
1.3217 + touch sub/conftst$i.h
1.3218 + done
1.3219 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.3220 +
1.3221 + case $depmode in
1.3222 + nosideeffect)
1.3223 + # after this tag, mechanisms are not by side-effect, so they'll
1.3224 + # only be used when explicitly requested
1.3225 + if test "x$enable_dependency_tracking" = xyes; then
1.3226 + continue
1.3227 + else
1.3228 + break
1.3229 + fi
1.3230 + ;;
1.3231 + none) break ;;
1.3232 + esac
1.3233 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.3234 + # mode. It turns out that the SunPro C++ compiler does not properly
1.3235 + # handle `-M -o', and we need to detect this.
1.3236 + if depmode=$depmode \
1.3237 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.3238 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.3239 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.3240 + >/dev/null 2>conftest.err &&
1.3241 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.3242 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.3243 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.3244 + # icc doesn't choke on unknown options, it will just issue warnings
1.3245 + # or remarks (even with -Werror). So we grep stderr for any message
1.3246 + # that says an option was ignored or not supported.
1.3247 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.3248 + # icc: Command line warning: ignoring option '-M'; no argument required
1.3249 + # The diagnosis changed in icc 8.0:
1.3250 + # icc: Command line remark: option '-MP' not supported
1.3251 + if (grep 'ignoring option' conftest.err ||
1.3252 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.3253 + am_cv_CC_dependencies_compiler_type=$depmode
1.3254 + break
1.3255 + fi
1.3256 + fi
1.3257 + done
1.3258 +
1.3259 + cd ..
1.3260 + rm -rf conftest.dir
1.3261 +else
1.3262 + am_cv_CC_dependencies_compiler_type=none
1.3263 +fi
1.3264 +
1.3265 +fi
1.3266 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.3267 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.3268 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.3269 +
1.3270 +
1.3271 +
1.3272 +if
1.3273 + test "x$enable_dependency_tracking" != xno \
1.3274 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.3275 + am__fastdepCC_TRUE=
1.3276 + am__fastdepCC_FALSE='#'
1.3277 +else
1.3278 + am__fastdepCC_TRUE='#'
1.3279 + am__fastdepCC_FALSE=
1.3280 +fi
1.3281 +
1.3282 +
1.3283 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
1.3284 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
1.3285 +if test "${lt_cv_path_SED+set}" = set; then
1.3286 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3287 +else
1.3288 + # Loop through the user's path and test for sed and gsed.
1.3289 +# Then use that list of sed's as ones to test for truncation.
1.3290 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.3291 +for as_dir in $PATH
1.3292 +do
1.3293 + IFS=$as_save_IFS
1.3294 + test -z "$as_dir" && as_dir=.
1.3295 + for lt_ac_prog in sed gsed; do
1.3296 + for ac_exec_ext in '' $ac_executable_extensions; do
1.3297 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
1.3298 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
1.3299 + fi
1.3300 + done
1.3301 + done
1.3302 +done
1.3303 +lt_ac_max=0
1.3304 +lt_ac_count=0
1.3305 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
1.3306 +# along with /bin/sed that truncates output.
1.3307 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.3308 + test ! -f $lt_ac_sed && continue
1.3309 + cat /dev/null > conftest.in
1.3310 + lt_ac_count=0
1.3311 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.3312 + # Check for GNU sed and select it if it is found.
1.3313 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
1.3314 + lt_cv_path_SED=$lt_ac_sed
1.3315 + break
1.3316 + fi
1.3317 + while true; do
1.3318 + cat conftest.in conftest.in >conftest.tmp
1.3319 + mv conftest.tmp conftest.in
1.3320 + cp conftest.in conftest.nl
1.3321 + echo >>conftest.nl
1.3322 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
1.3323 + cmp -s conftest.out conftest.nl || break
1.3324 + # 10000 chars as input seems more than enough
1.3325 + test $lt_ac_count -gt 10 && break
1.3326 + lt_ac_count=`expr $lt_ac_count + 1`
1.3327 + if test $lt_ac_count -gt $lt_ac_max; then
1.3328 + lt_ac_max=$lt_ac_count
1.3329 + lt_cv_path_SED=$lt_ac_sed
1.3330 + fi
1.3331 + done
1.3332 +done
1.3333 +
1.3334 +fi
1.3335 +
1.3336 +SED=$lt_cv_path_SED
1.3337 +echo "$as_me:$LINENO: result: $SED" >&5
1.3338 +echo "${ECHO_T}$SED" >&6
1.3339 +
1.3340 +echo "$as_me:$LINENO: checking for egrep" >&5
1.3341 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1.3342 +if test "${ac_cv_prog_egrep+set}" = set; then
1.3343 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3344 +else
1.3345 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1.3346 + then ac_cv_prog_egrep='grep -E'
1.3347 + else ac_cv_prog_egrep='egrep'
1.3348 + fi
1.3349 +fi
1.3350 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1.3351 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1.3352 + EGREP=$ac_cv_prog_egrep
1.3353 +
1.3354 +
1.3355 +
1.3356 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
1.3357 +if test "${with_gnu_ld+set}" = set; then
1.3358 + withval="$with_gnu_ld"
1.3359 + test "$withval" = no || with_gnu_ld=yes
1.3360 +else
1.3361 + with_gnu_ld=no
1.3362 +fi;
1.3363 +ac_prog=ld
1.3364 +if test "$GCC" = yes; then
1.3365 + # Check if gcc -print-prog-name=ld gives a path.
1.3366 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
1.3367 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.3368 + case $host in
1.3369 + *-*-mingw*)
1.3370 + # gcc leaves a trailing carriage return which upsets mingw
1.3371 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1.3372 + *)
1.3373 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1.3374 + esac
1.3375 + case $ac_prog in
1.3376 + # Accept absolute paths.
1.3377 + [\\/]* | ?:[\\/]*)
1.3378 + re_direlt='/[^/][^/]*/\.\./'
1.3379 + # Canonicalize the pathname of ld
1.3380 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1.3381 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1.3382 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.3383 + done
1.3384 + test -z "$LD" && LD="$ac_prog"
1.3385 + ;;
1.3386 + "")
1.3387 + # If it fails, then pretend we aren't using GCC.
1.3388 + ac_prog=ld
1.3389 + ;;
1.3390 + *)
1.3391 + # If it is relative, then search for the first ld in PATH.
1.3392 + with_gnu_ld=unknown
1.3393 + ;;
1.3394 + esac
1.3395 +elif test "$with_gnu_ld" = yes; then
1.3396 + echo "$as_me:$LINENO: checking for GNU ld" >&5
1.3397 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.3398 +else
1.3399 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1.3400 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.3401 +fi
1.3402 +if test "${lt_cv_path_LD+set}" = set; then
1.3403 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3404 +else
1.3405 + if test -z "$LD"; then
1.3406 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.3407 + for ac_dir in $PATH; do
1.3408 + IFS="$lt_save_ifs"
1.3409 + test -z "$ac_dir" && ac_dir=.
1.3410 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.3411 + lt_cv_path_LD="$ac_dir/$ac_prog"
1.3412 + # Check to see if the program is GNU ld. I'd rather use --version,
1.3413 + # but apparently some variants of GNU ld only accept -v.
1.3414 + # Break only if it was the GNU/non-GNU ld that we prefer.
1.3415 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1.3416 + *GNU* | *'with BFD'*)
1.3417 + test "$with_gnu_ld" != no && break
1.3418 + ;;
1.3419 + *)
1.3420 + test "$with_gnu_ld" != yes && break
1.3421 + ;;
1.3422 + esac
1.3423 + fi
1.3424 + done
1.3425 + IFS="$lt_save_ifs"
1.3426 +else
1.3427 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.3428 +fi
1.3429 +fi
1.3430 +
1.3431 +LD="$lt_cv_path_LD"
1.3432 +if test -n "$LD"; then
1.3433 + echo "$as_me:$LINENO: result: $LD" >&5
1.3434 +echo "${ECHO_T}$LD" >&6
1.3435 +else
1.3436 + echo "$as_me:$LINENO: result: no" >&5
1.3437 +echo "${ECHO_T}no" >&6
1.3438 +fi
1.3439 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
1.3440 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
1.3441 + { (exit 1); exit 1; }; }
1.3442 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
1.3443 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1.3444 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
1.3445 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3446 +else
1.3447 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.3448 +case `$LD -v 2>&1 </dev/null` in
1.3449 +*GNU* | *'with BFD'*)
1.3450 + lt_cv_prog_gnu_ld=yes
1.3451 + ;;
1.3452 +*)
1.3453 + lt_cv_prog_gnu_ld=no
1.3454 + ;;
1.3455 +esac
1.3456 +fi
1.3457 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1.3458 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.3459 +with_gnu_ld=$lt_cv_prog_gnu_ld
1.3460 +
1.3461 +
1.3462 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
1.3463 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1.3464 +if test "${lt_cv_ld_reload_flag+set}" = set; then
1.3465 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3466 +else
1.3467 + lt_cv_ld_reload_flag='-r'
1.3468 +fi
1.3469 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
1.3470 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1.3471 +reload_flag=$lt_cv_ld_reload_flag
1.3472 +case $reload_flag in
1.3473 +"" | " "*) ;;
1.3474 +*) reload_flag=" $reload_flag" ;;
1.3475 +esac
1.3476 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.3477 +case $host_os in
1.3478 + darwin*)
1.3479 + if test "$GCC" = yes; then
1.3480 + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
1.3481 + else
1.3482 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
1.3483 + fi
1.3484 + ;;
1.3485 +esac
1.3486 +
1.3487 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
1.3488 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
1.3489 +if test "${lt_cv_path_NM+set}" = set; then
1.3490 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3491 +else
1.3492 + if test -n "$NM"; then
1.3493 + # Let the user override the test.
1.3494 + lt_cv_path_NM="$NM"
1.3495 +else
1.3496 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.3497 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1.3498 + IFS="$lt_save_ifs"
1.3499 + test -z "$ac_dir" && ac_dir=.
1.3500 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
1.3501 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
1.3502 + # Check to see if the nm accepts a BSD-compat flag.
1.3503 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1.3504 + # nm: unknown option "B" ignored
1.3505 + # Tru64's nm complains that /dev/null is an invalid object file
1.3506 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
1.3507 + */dev/null* | *'Invalid file or object type'*)
1.3508 + lt_cv_path_NM="$tmp_nm -B"
1.3509 + break
1.3510 + ;;
1.3511 + *)
1.3512 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
1.3513 + */dev/null*)
1.3514 + lt_cv_path_NM="$tmp_nm -p"
1.3515 + break
1.3516 + ;;
1.3517 + *)
1.3518 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1.3519 + continue # so that we can try to find one that supports BSD flags
1.3520 + ;;
1.3521 + esac
1.3522 + esac
1.3523 + fi
1.3524 + done
1.3525 + IFS="$lt_save_ifs"
1.3526 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1.3527 +fi
1.3528 +fi
1.3529 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
1.3530 +echo "${ECHO_T}$lt_cv_path_NM" >&6
1.3531 +NM="$lt_cv_path_NM"
1.3532 +
1.3533 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
1.3534 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1.3535 +LN_S=$as_ln_s
1.3536 +if test "$LN_S" = "ln -s"; then
1.3537 + echo "$as_me:$LINENO: result: yes" >&5
1.3538 +echo "${ECHO_T}yes" >&6
1.3539 +else
1.3540 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1.3541 +echo "${ECHO_T}no, using $LN_S" >&6
1.3542 +fi
1.3543 +
1.3544 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
1.3545 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
1.3546 +if test "${lt_cv_deplibs_check_method+set}" = set; then
1.3547 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3548 +else
1.3549 + lt_cv_file_magic_cmd='$MAGIC_CMD'
1.3550 +lt_cv_file_magic_test_file=
1.3551 +lt_cv_deplibs_check_method='unknown'
1.3552 +# Need to set the preceding variable on all platforms that support
1.3553 +# interlibrary dependencies.
1.3554 +# 'none' -- dependencies not supported.
1.3555 +# `unknown' -- same as none, but documents that we really don't know.
1.3556 +# 'pass_all' -- all dependencies passed with no checks.
1.3557 +# 'test_compile' -- check by making test program.
1.3558 +# 'file_magic [[regex]]' -- check by looking for files in library path
1.3559 +# which responds to the $file_magic_cmd with a given extended regex.
1.3560 +# If you have `file' or equivalent on your system and you're not sure
1.3561 +# whether `pass_all' will *always* work, you probably want this one.
1.3562 +
1.3563 +case $host_os in
1.3564 +aix4* | aix5*)
1.3565 + lt_cv_deplibs_check_method=pass_all
1.3566 + ;;
1.3567 +
1.3568 +beos*)
1.3569 + lt_cv_deplibs_check_method=pass_all
1.3570 + ;;
1.3571 +
1.3572 +bsdi[45]*)
1.3573 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1.3574 + lt_cv_file_magic_cmd='/usr/bin/file -L'
1.3575 + lt_cv_file_magic_test_file=/shlib/libc.so
1.3576 + ;;
1.3577 +
1.3578 +cygwin*)
1.3579 + # func_win32_libid is a shell function defined in ltmain.sh
1.3580 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.3581 + lt_cv_file_magic_cmd='func_win32_libid'
1.3582 + ;;
1.3583 +
1.3584 +mingw* | pw32*)
1.3585 + # Base MSYS/MinGW do not provide the 'file' command needed by
1.3586 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
1.3587 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1.3588 + lt_cv_file_magic_cmd='$OBJDUMP -f'
1.3589 + ;;
1.3590 +
1.3591 +darwin* | rhapsody*)
1.3592 + lt_cv_deplibs_check_method=pass_all
1.3593 + ;;
1.3594 +
1.3595 +freebsd* | kfreebsd*-gnu | dragonfly*)
1.3596 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.3597 + case $host_cpu in
1.3598 + i*86 )
1.3599 + # Not sure whether the presence of OpenBSD here was a mistake.
1.3600 + # Let's accept both of them until this is cleared up.
1.3601 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.3602 + lt_cv_file_magic_cmd=/usr/bin/file
1.3603 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.3604 + ;;
1.3605 + esac
1.3606 + else
1.3607 + lt_cv_deplibs_check_method=pass_all
1.3608 + fi
1.3609 + ;;
1.3610 +
1.3611 +gnu*)
1.3612 + lt_cv_deplibs_check_method=pass_all
1.3613 + ;;
1.3614 +
1.3615 +hpux10.20* | hpux11*)
1.3616 + lt_cv_file_magic_cmd=/usr/bin/file
1.3617 + case $host_cpu in
1.3618 + ia64*)
1.3619 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1.3620 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
1.3621 + ;;
1.3622 + hppa*64*)
1.3623 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
1.3624 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
1.3625 + ;;
1.3626 + *)
1.3627 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1.3628 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
1.3629 + ;;
1.3630 + esac
1.3631 + ;;
1.3632 +
1.3633 +irix5* | irix6* | nonstopux*)
1.3634 + case $LD in
1.3635 + *-32|*"-32 ") libmagic=32-bit;;
1.3636 + *-n32|*"-n32 ") libmagic=N32;;
1.3637 + *-64|*"-64 ") libmagic=64-bit;;
1.3638 + *) libmagic=never-match;;
1.3639 + esac
1.3640 + lt_cv_deplibs_check_method=pass_all
1.3641 + ;;
1.3642 +
1.3643 +# This must be Linux ELF.
1.3644 +linux*)
1.3645 + lt_cv_deplibs_check_method=pass_all
1.3646 + ;;
1.3647 +
1.3648 +netbsd*)
1.3649 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.3650 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.3651 + else
1.3652 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
1.3653 + fi
1.3654 + ;;
1.3655 +
1.3656 +newos6*)
1.3657 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1.3658 + lt_cv_file_magic_cmd=/usr/bin/file
1.3659 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
1.3660 + ;;
1.3661 +
1.3662 +nto-qnx*)
1.3663 + lt_cv_deplibs_check_method=unknown
1.3664 + ;;
1.3665 +
1.3666 +openbsd*)
1.3667 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.3668 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.3669 + else
1.3670 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.3671 + fi
1.3672 + ;;
1.3673 +
1.3674 +osf3* | osf4* | osf5*)
1.3675 + lt_cv_deplibs_check_method=pass_all
1.3676 + ;;
1.3677 +
1.3678 +sco3.2v5*)
1.3679 + lt_cv_deplibs_check_method=pass_all
1.3680 + ;;
1.3681 +
1.3682 +solaris*)
1.3683 + lt_cv_deplibs_check_method=pass_all
1.3684 + ;;
1.3685 +
1.3686 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.3687 + case $host_vendor in
1.3688 + motorola)
1.3689 + lt_cv_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]'
1.3690 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.3691 + ;;
1.3692 + ncr)
1.3693 + lt_cv_deplibs_check_method=pass_all
1.3694 + ;;
1.3695 + sequent)
1.3696 + lt_cv_file_magic_cmd='/bin/file'
1.3697 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1.3698 + ;;
1.3699 + sni)
1.3700 + lt_cv_file_magic_cmd='/bin/file'
1.3701 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1.3702 + lt_cv_file_magic_test_file=/lib/libc.so
1.3703 + ;;
1.3704 + siemens)
1.3705 + lt_cv_deplibs_check_method=pass_all
1.3706 + ;;
1.3707 + esac
1.3708 + ;;
1.3709 +
1.3710 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
1.3711 + lt_cv_deplibs_check_method=pass_all
1.3712 + ;;
1.3713 +esac
1.3714 +
1.3715 +fi
1.3716 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
1.3717 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1.3718 +file_magic_cmd=$lt_cv_file_magic_cmd
1.3719 +deplibs_check_method=$lt_cv_deplibs_check_method
1.3720 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
1.3721 +
1.3722 +
1.3723 +
1.3724 +
1.3725 +# If no C compiler was specified, use CC.
1.3726 +LTCC=${LTCC-"$CC"}
1.3727 +
1.3728 +# Allow CC to be a program name with arguments.
1.3729 +compiler=$CC
1.3730 +
1.3731 +
1.3732 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1.3733 +if test "${enable_libtool_lock+set}" = set; then
1.3734 + enableval="$enable_libtool_lock"
1.3735 +
1.3736 +fi;
1.3737 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.3738 +
1.3739 +# Some flags need to be propagated to the compiler or linker for good
1.3740 +# libtool support.
1.3741 +case $host in
1.3742 +ia64-*-hpux*)
1.3743 + # Find out which ABI we are using.
1.3744 + echo 'int i;' > conftest.$ac_ext
1.3745 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3746 + (eval $ac_compile) 2>&5
1.3747 + ac_status=$?
1.3748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3749 + (exit $ac_status); }; then
1.3750 + case `/usr/bin/file conftest.$ac_objext` in
1.3751 + *ELF-32*)
1.3752 + HPUX_IA64_MODE="32"
1.3753 + ;;
1.3754 + *ELF-64*)
1.3755 + HPUX_IA64_MODE="64"
1.3756 + ;;
1.3757 + esac
1.3758 + fi
1.3759 + rm -rf conftest*
1.3760 + ;;
1.3761 +*-*-irix6*)
1.3762 + # Find out which ABI we are using.
1.3763 + echo '#line 3760 "configure"' > conftest.$ac_ext
1.3764 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3765 + (eval $ac_compile) 2>&5
1.3766 + ac_status=$?
1.3767 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3768 + (exit $ac_status); }; then
1.3769 + if test "$lt_cv_prog_gnu_ld" = yes; then
1.3770 + case `/usr/bin/file conftest.$ac_objext` in
1.3771 + *32-bit*)
1.3772 + LD="${LD-ld} -melf32bsmip"
1.3773 + ;;
1.3774 + *N32*)
1.3775 + LD="${LD-ld} -melf32bmipn32"
1.3776 + ;;
1.3777 + *64-bit*)
1.3778 + LD="${LD-ld} -melf64bmip"
1.3779 + ;;
1.3780 + esac
1.3781 + else
1.3782 + case `/usr/bin/file conftest.$ac_objext` in
1.3783 + *32-bit*)
1.3784 + LD="${LD-ld} -32"
1.3785 + ;;
1.3786 + *N32*)
1.3787 + LD="${LD-ld} -n32"
1.3788 + ;;
1.3789 + *64-bit*)
1.3790 + LD="${LD-ld} -64"
1.3791 + ;;
1.3792 + esac
1.3793 + fi
1.3794 + fi
1.3795 + rm -rf conftest*
1.3796 + ;;
1.3797 +
1.3798 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1.3799 + # Find out which ABI we are using.
1.3800 + echo 'int i;' > conftest.$ac_ext
1.3801 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.3802 + (eval $ac_compile) 2>&5
1.3803 + ac_status=$?
1.3804 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3805 + (exit $ac_status); }; then
1.3806 + case `/usr/bin/file conftest.o` in
1.3807 + *32-bit*)
1.3808 + case $host in
1.3809 + x86_64-*linux*)
1.3810 + LD="${LD-ld} -m elf_i386"
1.3811 + ;;
1.3812 + ppc64-*linux*|powerpc64-*linux*)
1.3813 + LD="${LD-ld} -m elf32ppclinux"
1.3814 + ;;
1.3815 + s390x-*linux*)
1.3816 + LD="${LD-ld} -m elf_s390"
1.3817 + ;;
1.3818 + sparc64-*linux*)
1.3819 + LD="${LD-ld} -m elf32_sparc"
1.3820 + ;;
1.3821 + esac
1.3822 + ;;
1.3823 + *64-bit*)
1.3824 + case $host in
1.3825 + x86_64-*linux*)
1.3826 + LD="${LD-ld} -m elf_x86_64"
1.3827 + ;;
1.3828 + ppc*-*linux*|powerpc*-*linux*)
1.3829 + LD="${LD-ld} -m elf64ppc"
1.3830 + ;;
1.3831 + s390*-*linux*)
1.3832 + LD="${LD-ld} -m elf64_s390"
1.3833 + ;;
1.3834 + sparc*-*linux*)
1.3835 + LD="${LD-ld} -m elf64_sparc"
1.3836 + ;;
1.3837 + esac
1.3838 + ;;
1.3839 + esac
1.3840 + fi
1.3841 + rm -rf conftest*
1.3842 + ;;
1.3843 +
1.3844 +*-*-sco3.2v5*)
1.3845 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1.3846 + SAVE_CFLAGS="$CFLAGS"
1.3847 + CFLAGS="$CFLAGS -belf"
1.3848 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
1.3849 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
1.3850 +if test "${lt_cv_cc_needs_belf+set}" = set; then
1.3851 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3852 +else
1.3853 + ac_ext=c
1.3854 +ac_cpp='$CPP $CPPFLAGS'
1.3855 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3856 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3857 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3858 +
1.3859 + cat >conftest.$ac_ext <<_ACEOF
1.3860 +/* confdefs.h. */
1.3861 +_ACEOF
1.3862 +cat confdefs.h >>conftest.$ac_ext
1.3863 +cat >>conftest.$ac_ext <<_ACEOF
1.3864 +/* end confdefs.h. */
1.3865 +
1.3866 +int
1.3867 +main ()
1.3868 +{
1.3869 +
1.3870 + ;
1.3871 + return 0;
1.3872 +}
1.3873 +_ACEOF
1.3874 +rm -f conftest.$ac_objext conftest$ac_exeext
1.3875 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.3876 + (eval $ac_link) 2>conftest.er1
1.3877 + ac_status=$?
1.3878 + grep -v '^ *+' conftest.er1 >conftest.err
1.3879 + rm -f conftest.er1
1.3880 + cat conftest.err >&5
1.3881 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3882 + (exit $ac_status); } &&
1.3883 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.3884 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3885 + (eval $ac_try) 2>&5
1.3886 + ac_status=$?
1.3887 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3888 + (exit $ac_status); }; } &&
1.3889 + { ac_try='test -s conftest$ac_exeext'
1.3890 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.3891 + (eval $ac_try) 2>&5
1.3892 + ac_status=$?
1.3893 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3894 + (exit $ac_status); }; }; then
1.3895 + lt_cv_cc_needs_belf=yes
1.3896 +else
1.3897 + echo "$as_me: failed program was:" >&5
1.3898 +sed 's/^/| /' conftest.$ac_ext >&5
1.3899 +
1.3900 +lt_cv_cc_needs_belf=no
1.3901 +fi
1.3902 +rm -f conftest.err conftest.$ac_objext \
1.3903 + conftest$ac_exeext conftest.$ac_ext
1.3904 + ac_ext=c
1.3905 +ac_cpp='$CPP $CPPFLAGS'
1.3906 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3907 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3908 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3909 +
1.3910 +fi
1.3911 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
1.3912 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1.3913 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1.3914 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1.3915 + CFLAGS="$SAVE_CFLAGS"
1.3916 + fi
1.3917 + ;;
1.3918 +
1.3919 +esac
1.3920 +
1.3921 +need_locks="$enable_libtool_lock"
1.3922 +
1.3923 +
1.3924 +ac_ext=c
1.3925 +ac_cpp='$CPP $CPPFLAGS'
1.3926 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.3927 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.3928 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.3929 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1.3930 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1.3931 +# On Suns, sometimes $CPP names a directory.
1.3932 +if test -n "$CPP" && test -d "$CPP"; then
1.3933 + CPP=
1.3934 +fi
1.3935 +if test -z "$CPP"; then
1.3936 + if test "${ac_cv_prog_CPP+set}" = set; then
1.3937 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.3938 +else
1.3939 + # Double quotes because CPP needs to be expanded
1.3940 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1.3941 + do
1.3942 + ac_preproc_ok=false
1.3943 +for ac_c_preproc_warn_flag in '' yes
1.3944 +do
1.3945 + # Use a header file that comes with gcc, so configuring glibc
1.3946 + # with a fresh cross-compiler works.
1.3947 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.3948 + # <limits.h> exists even on freestanding compilers.
1.3949 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.3950 + # not just through cpp. "Syntax error" is here to catch this case.
1.3951 + cat >conftest.$ac_ext <<_ACEOF
1.3952 +/* confdefs.h. */
1.3953 +_ACEOF
1.3954 +cat confdefs.h >>conftest.$ac_ext
1.3955 +cat >>conftest.$ac_ext <<_ACEOF
1.3956 +/* end confdefs.h. */
1.3957 +#ifdef __STDC__
1.3958 +# include <limits.h>
1.3959 +#else
1.3960 +# include <assert.h>
1.3961 +#endif
1.3962 + Syntax error
1.3963 +_ACEOF
1.3964 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.3965 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.3966 + ac_status=$?
1.3967 + grep -v '^ *+' conftest.er1 >conftest.err
1.3968 + rm -f conftest.er1
1.3969 + cat conftest.err >&5
1.3970 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.3971 + (exit $ac_status); } >/dev/null; then
1.3972 + if test -s conftest.err; then
1.3973 + ac_cpp_err=$ac_c_preproc_warn_flag
1.3974 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.3975 + else
1.3976 + ac_cpp_err=
1.3977 + fi
1.3978 +else
1.3979 + ac_cpp_err=yes
1.3980 +fi
1.3981 +if test -z "$ac_cpp_err"; then
1.3982 + :
1.3983 +else
1.3984 + echo "$as_me: failed program was:" >&5
1.3985 +sed 's/^/| /' conftest.$ac_ext >&5
1.3986 +
1.3987 + # Broken: fails on valid input.
1.3988 +continue
1.3989 +fi
1.3990 +rm -f conftest.err conftest.$ac_ext
1.3991 +
1.3992 + # OK, works on sane cases. Now check whether non-existent headers
1.3993 + # can be detected and how.
1.3994 + cat >conftest.$ac_ext <<_ACEOF
1.3995 +/* confdefs.h. */
1.3996 +_ACEOF
1.3997 +cat confdefs.h >>conftest.$ac_ext
1.3998 +cat >>conftest.$ac_ext <<_ACEOF
1.3999 +/* end confdefs.h. */
1.4000 +#include <ac_nonexistent.h>
1.4001 +_ACEOF
1.4002 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.4003 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.4004 + ac_status=$?
1.4005 + grep -v '^ *+' conftest.er1 >conftest.err
1.4006 + rm -f conftest.er1
1.4007 + cat conftest.err >&5
1.4008 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4009 + (exit $ac_status); } >/dev/null; then
1.4010 + if test -s conftest.err; then
1.4011 + ac_cpp_err=$ac_c_preproc_warn_flag
1.4012 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.4013 + else
1.4014 + ac_cpp_err=
1.4015 + fi
1.4016 +else
1.4017 + ac_cpp_err=yes
1.4018 +fi
1.4019 +if test -z "$ac_cpp_err"; then
1.4020 + # Broken: success on invalid input.
1.4021 +continue
1.4022 +else
1.4023 + echo "$as_me: failed program was:" >&5
1.4024 +sed 's/^/| /' conftest.$ac_ext >&5
1.4025 +
1.4026 + # Passes both tests.
1.4027 +ac_preproc_ok=:
1.4028 +break
1.4029 +fi
1.4030 +rm -f conftest.err conftest.$ac_ext
1.4031 +
1.4032 +done
1.4033 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4034 +rm -f conftest.err conftest.$ac_ext
1.4035 +if $ac_preproc_ok; then
1.4036 + break
1.4037 +fi
1.4038 +
1.4039 + done
1.4040 + ac_cv_prog_CPP=$CPP
1.4041 +
1.4042 +fi
1.4043 + CPP=$ac_cv_prog_CPP
1.4044 +else
1.4045 + ac_cv_prog_CPP=$CPP
1.4046 +fi
1.4047 +echo "$as_me:$LINENO: result: $CPP" >&5
1.4048 +echo "${ECHO_T}$CPP" >&6
1.4049 +ac_preproc_ok=false
1.4050 +for ac_c_preproc_warn_flag in '' yes
1.4051 +do
1.4052 + # Use a header file that comes with gcc, so configuring glibc
1.4053 + # with a fresh cross-compiler works.
1.4054 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.4055 + # <limits.h> exists even on freestanding compilers.
1.4056 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.4057 + # not just through cpp. "Syntax error" is here to catch this case.
1.4058 + cat >conftest.$ac_ext <<_ACEOF
1.4059 +/* confdefs.h. */
1.4060 +_ACEOF
1.4061 +cat confdefs.h >>conftest.$ac_ext
1.4062 +cat >>conftest.$ac_ext <<_ACEOF
1.4063 +/* end confdefs.h. */
1.4064 +#ifdef __STDC__
1.4065 +# include <limits.h>
1.4066 +#else
1.4067 +# include <assert.h>
1.4068 +#endif
1.4069 + Syntax error
1.4070 +_ACEOF
1.4071 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.4072 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.4073 + ac_status=$?
1.4074 + grep -v '^ *+' conftest.er1 >conftest.err
1.4075 + rm -f conftest.er1
1.4076 + cat conftest.err >&5
1.4077 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4078 + (exit $ac_status); } >/dev/null; then
1.4079 + if test -s conftest.err; then
1.4080 + ac_cpp_err=$ac_c_preproc_warn_flag
1.4081 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.4082 + else
1.4083 + ac_cpp_err=
1.4084 + fi
1.4085 +else
1.4086 + ac_cpp_err=yes
1.4087 +fi
1.4088 +if test -z "$ac_cpp_err"; then
1.4089 + :
1.4090 +else
1.4091 + echo "$as_me: failed program was:" >&5
1.4092 +sed 's/^/| /' conftest.$ac_ext >&5
1.4093 +
1.4094 + # Broken: fails on valid input.
1.4095 +continue
1.4096 +fi
1.4097 +rm -f conftest.err conftest.$ac_ext
1.4098 +
1.4099 + # OK, works on sane cases. Now check whether non-existent headers
1.4100 + # can be detected and how.
1.4101 + cat >conftest.$ac_ext <<_ACEOF
1.4102 +/* confdefs.h. */
1.4103 +_ACEOF
1.4104 +cat confdefs.h >>conftest.$ac_ext
1.4105 +cat >>conftest.$ac_ext <<_ACEOF
1.4106 +/* end confdefs.h. */
1.4107 +#include <ac_nonexistent.h>
1.4108 +_ACEOF
1.4109 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.4110 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.4111 + ac_status=$?
1.4112 + grep -v '^ *+' conftest.er1 >conftest.err
1.4113 + rm -f conftest.er1
1.4114 + cat conftest.err >&5
1.4115 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4116 + (exit $ac_status); } >/dev/null; then
1.4117 + if test -s conftest.err; then
1.4118 + ac_cpp_err=$ac_c_preproc_warn_flag
1.4119 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.4120 + else
1.4121 + ac_cpp_err=
1.4122 + fi
1.4123 +else
1.4124 + ac_cpp_err=yes
1.4125 +fi
1.4126 +if test -z "$ac_cpp_err"; then
1.4127 + # Broken: success on invalid input.
1.4128 +continue
1.4129 +else
1.4130 + echo "$as_me: failed program was:" >&5
1.4131 +sed 's/^/| /' conftest.$ac_ext >&5
1.4132 +
1.4133 + # Passes both tests.
1.4134 +ac_preproc_ok=:
1.4135 +break
1.4136 +fi
1.4137 +rm -f conftest.err conftest.$ac_ext
1.4138 +
1.4139 +done
1.4140 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.4141 +rm -f conftest.err conftest.$ac_ext
1.4142 +if $ac_preproc_ok; then
1.4143 + :
1.4144 +else
1.4145 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1.4146 +See \`config.log' for more details." >&5
1.4147 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1.4148 +See \`config.log' for more details." >&2;}
1.4149 + { (exit 1); exit 1; }; }
1.4150 +fi
1.4151 +
1.4152 +ac_ext=c
1.4153 +ac_cpp='$CPP $CPPFLAGS'
1.4154 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4155 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4156 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.4157 +
1.4158 +
1.4159 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.4160 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1.4161 +if test "${ac_cv_header_stdc+set}" = set; then
1.4162 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4163 +else
1.4164 + cat >conftest.$ac_ext <<_ACEOF
1.4165 +/* confdefs.h. */
1.4166 +_ACEOF
1.4167 +cat confdefs.h >>conftest.$ac_ext
1.4168 +cat >>conftest.$ac_ext <<_ACEOF
1.4169 +/* end confdefs.h. */
1.4170 +#include <stdlib.h>
1.4171 +#include <stdarg.h>
1.4172 +#include <string.h>
1.4173 +#include <float.h>
1.4174 +
1.4175 +int
1.4176 +main ()
1.4177 +{
1.4178 +
1.4179 + ;
1.4180 + return 0;
1.4181 +}
1.4182 +_ACEOF
1.4183 +rm -f conftest.$ac_objext
1.4184 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4185 + (eval $ac_compile) 2>conftest.er1
1.4186 + ac_status=$?
1.4187 + grep -v '^ *+' conftest.er1 >conftest.err
1.4188 + rm -f conftest.er1
1.4189 + cat conftest.err >&5
1.4190 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4191 + (exit $ac_status); } &&
1.4192 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.4193 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4194 + (eval $ac_try) 2>&5
1.4195 + ac_status=$?
1.4196 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4197 + (exit $ac_status); }; } &&
1.4198 + { ac_try='test -s conftest.$ac_objext'
1.4199 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4200 + (eval $ac_try) 2>&5
1.4201 + ac_status=$?
1.4202 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4203 + (exit $ac_status); }; }; then
1.4204 + ac_cv_header_stdc=yes
1.4205 +else
1.4206 + echo "$as_me: failed program was:" >&5
1.4207 +sed 's/^/| /' conftest.$ac_ext >&5
1.4208 +
1.4209 +ac_cv_header_stdc=no
1.4210 +fi
1.4211 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4212 +
1.4213 +if test $ac_cv_header_stdc = yes; then
1.4214 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.4215 + cat >conftest.$ac_ext <<_ACEOF
1.4216 +/* confdefs.h. */
1.4217 +_ACEOF
1.4218 +cat confdefs.h >>conftest.$ac_ext
1.4219 +cat >>conftest.$ac_ext <<_ACEOF
1.4220 +/* end confdefs.h. */
1.4221 +#include <string.h>
1.4222 +
1.4223 +_ACEOF
1.4224 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.4225 + $EGREP "memchr" >/dev/null 2>&1; then
1.4226 + :
1.4227 +else
1.4228 + ac_cv_header_stdc=no
1.4229 +fi
1.4230 +rm -f conftest*
1.4231 +
1.4232 +fi
1.4233 +
1.4234 +if test $ac_cv_header_stdc = yes; then
1.4235 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.4236 + cat >conftest.$ac_ext <<_ACEOF
1.4237 +/* confdefs.h. */
1.4238 +_ACEOF
1.4239 +cat confdefs.h >>conftest.$ac_ext
1.4240 +cat >>conftest.$ac_ext <<_ACEOF
1.4241 +/* end confdefs.h. */
1.4242 +#include <stdlib.h>
1.4243 +
1.4244 +_ACEOF
1.4245 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.4246 + $EGREP "free" >/dev/null 2>&1; then
1.4247 + :
1.4248 +else
1.4249 + ac_cv_header_stdc=no
1.4250 +fi
1.4251 +rm -f conftest*
1.4252 +
1.4253 +fi
1.4254 +
1.4255 +if test $ac_cv_header_stdc = yes; then
1.4256 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.4257 + if test "$cross_compiling" = yes; then
1.4258 + :
1.4259 +else
1.4260 + cat >conftest.$ac_ext <<_ACEOF
1.4261 +/* confdefs.h. */
1.4262 +_ACEOF
1.4263 +cat confdefs.h >>conftest.$ac_ext
1.4264 +cat >>conftest.$ac_ext <<_ACEOF
1.4265 +/* end confdefs.h. */
1.4266 +#include <ctype.h>
1.4267 +#if ((' ' & 0x0FF) == 0x020)
1.4268 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.4269 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.4270 +#else
1.4271 +# define ISLOWER(c) \
1.4272 + (('a' <= (c) && (c) <= 'i') \
1.4273 + || ('j' <= (c) && (c) <= 'r') \
1.4274 + || ('s' <= (c) && (c) <= 'z'))
1.4275 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.4276 +#endif
1.4277 +
1.4278 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.4279 +int
1.4280 +main ()
1.4281 +{
1.4282 + int i;
1.4283 + for (i = 0; i < 256; i++)
1.4284 + if (XOR (islower (i), ISLOWER (i))
1.4285 + || toupper (i) != TOUPPER (i))
1.4286 + exit(2);
1.4287 + exit (0);
1.4288 +}
1.4289 +_ACEOF
1.4290 +rm -f conftest$ac_exeext
1.4291 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.4292 + (eval $ac_link) 2>&5
1.4293 + ac_status=$?
1.4294 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4295 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.4296 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4297 + (eval $ac_try) 2>&5
1.4298 + ac_status=$?
1.4299 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4300 + (exit $ac_status); }; }; then
1.4301 + :
1.4302 +else
1.4303 + echo "$as_me: program exited with status $ac_status" >&5
1.4304 +echo "$as_me: failed program was:" >&5
1.4305 +sed 's/^/| /' conftest.$ac_ext >&5
1.4306 +
1.4307 +( exit $ac_status )
1.4308 +ac_cv_header_stdc=no
1.4309 +fi
1.4310 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.4311 +fi
1.4312 +fi
1.4313 +fi
1.4314 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.4315 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.4316 +if test $ac_cv_header_stdc = yes; then
1.4317 +
1.4318 +cat >>confdefs.h <<\_ACEOF
1.4319 +#define STDC_HEADERS 1
1.4320 +_ACEOF
1.4321 +
1.4322 +fi
1.4323 +
1.4324 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.4325 +
1.4326 +
1.4327 +
1.4328 +
1.4329 +
1.4330 +
1.4331 +
1.4332 +
1.4333 +
1.4334 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1.4335 + inttypes.h stdint.h unistd.h
1.4336 +do
1.4337 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.4338 +echo "$as_me:$LINENO: checking for $ac_header" >&5
1.4339 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1.4340 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.4341 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4342 +else
1.4343 + cat >conftest.$ac_ext <<_ACEOF
1.4344 +/* confdefs.h. */
1.4345 +_ACEOF
1.4346 +cat confdefs.h >>conftest.$ac_ext
1.4347 +cat >>conftest.$ac_ext <<_ACEOF
1.4348 +/* end confdefs.h. */
1.4349 +$ac_includes_default
1.4350 +
1.4351 +#include <$ac_header>
1.4352 +_ACEOF
1.4353 +rm -f conftest.$ac_objext
1.4354 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4355 + (eval $ac_compile) 2>conftest.er1
1.4356 + ac_status=$?
1.4357 + grep -v '^ *+' conftest.er1 >conftest.err
1.4358 + rm -f conftest.er1
1.4359 + cat conftest.err >&5
1.4360 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4361 + (exit $ac_status); } &&
1.4362 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.4363 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4364 + (eval $ac_try) 2>&5
1.4365 + ac_status=$?
1.4366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4367 + (exit $ac_status); }; } &&
1.4368 + { ac_try='test -s conftest.$ac_objext'
1.4369 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4370 + (eval $ac_try) 2>&5
1.4371 + ac_status=$?
1.4372 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4373 + (exit $ac_status); }; }; then
1.4374 + eval "$as_ac_Header=yes"
1.4375 +else
1.4376 + echo "$as_me: failed program was:" >&5
1.4377 +sed 's/^/| /' conftest.$ac_ext >&5
1.4378 +
1.4379 +eval "$as_ac_Header=no"
1.4380 +fi
1.4381 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4382 +fi
1.4383 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.4384 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.4385 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.4386 + cat >>confdefs.h <<_ACEOF
1.4387 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.4388 +_ACEOF
1.4389 +
1.4390 +fi
1.4391 +
1.4392 +done
1.4393 +
1.4394 +
1.4395 +
1.4396 +for ac_header in dlfcn.h
1.4397 +do
1.4398 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.4399 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.4400 + echo "$as_me:$LINENO: checking for $ac_header" >&5
1.4401 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1.4402 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.4403 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4404 +fi
1.4405 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.4406 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.4407 +else
1.4408 + # Is the header compilable?
1.4409 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
1.4410 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1.4411 +cat >conftest.$ac_ext <<_ACEOF
1.4412 +/* confdefs.h. */
1.4413 +_ACEOF
1.4414 +cat confdefs.h >>conftest.$ac_ext
1.4415 +cat >>conftest.$ac_ext <<_ACEOF
1.4416 +/* end confdefs.h. */
1.4417 +$ac_includes_default
1.4418 +#include <$ac_header>
1.4419 +_ACEOF
1.4420 +rm -f conftest.$ac_objext
1.4421 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4422 + (eval $ac_compile) 2>conftest.er1
1.4423 + ac_status=$?
1.4424 + grep -v '^ *+' conftest.er1 >conftest.err
1.4425 + rm -f conftest.er1
1.4426 + cat conftest.err >&5
1.4427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4428 + (exit $ac_status); } &&
1.4429 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.4430 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4431 + (eval $ac_try) 2>&5
1.4432 + ac_status=$?
1.4433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4434 + (exit $ac_status); }; } &&
1.4435 + { ac_try='test -s conftest.$ac_objext'
1.4436 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4437 + (eval $ac_try) 2>&5
1.4438 + ac_status=$?
1.4439 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4440 + (exit $ac_status); }; }; then
1.4441 + ac_header_compiler=yes
1.4442 +else
1.4443 + echo "$as_me: failed program was:" >&5
1.4444 +sed 's/^/| /' conftest.$ac_ext >&5
1.4445 +
1.4446 +ac_header_compiler=no
1.4447 +fi
1.4448 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4449 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
1.4450 +echo "${ECHO_T}$ac_header_compiler" >&6
1.4451 +
1.4452 +# Is the header present?
1.4453 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
1.4454 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1.4455 +cat >conftest.$ac_ext <<_ACEOF
1.4456 +/* confdefs.h. */
1.4457 +_ACEOF
1.4458 +cat confdefs.h >>conftest.$ac_ext
1.4459 +cat >>conftest.$ac_ext <<_ACEOF
1.4460 +/* end confdefs.h. */
1.4461 +#include <$ac_header>
1.4462 +_ACEOF
1.4463 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.4464 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.4465 + ac_status=$?
1.4466 + grep -v '^ *+' conftest.er1 >conftest.err
1.4467 + rm -f conftest.er1
1.4468 + cat conftest.err >&5
1.4469 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4470 + (exit $ac_status); } >/dev/null; then
1.4471 + if test -s conftest.err; then
1.4472 + ac_cpp_err=$ac_c_preproc_warn_flag
1.4473 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1.4474 + else
1.4475 + ac_cpp_err=
1.4476 + fi
1.4477 +else
1.4478 + ac_cpp_err=yes
1.4479 +fi
1.4480 +if test -z "$ac_cpp_err"; then
1.4481 + ac_header_preproc=yes
1.4482 +else
1.4483 + echo "$as_me: failed program was:" >&5
1.4484 +sed 's/^/| /' conftest.$ac_ext >&5
1.4485 +
1.4486 + ac_header_preproc=no
1.4487 +fi
1.4488 +rm -f conftest.err conftest.$ac_ext
1.4489 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
1.4490 +echo "${ECHO_T}$ac_header_preproc" >&6
1.4491 +
1.4492 +# So? What about this header?
1.4493 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
1.4494 + yes:no: )
1.4495 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
1.4496 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1.4497 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
1.4498 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1.4499 + ac_header_preproc=yes
1.4500 + ;;
1.4501 + no:yes:* )
1.4502 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
1.4503 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1.4504 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
1.4505 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
1.4506 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
1.4507 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
1.4508 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
1.4509 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1.4510 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1.4511 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1.4512 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
1.4513 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.4514 + (
1.4515 + cat <<\_ASBOX
1.4516 +## ------------------------------------------ ##
1.4517 +## Report this to the AC_PACKAGE_NAME lists. ##
1.4518 +## ------------------------------------------ ##
1.4519 +_ASBOX
1.4520 + ) |
1.4521 + sed "s/^/$as_me: WARNING: /" >&2
1.4522 + ;;
1.4523 +esac
1.4524 +echo "$as_me:$LINENO: checking for $ac_header" >&5
1.4525 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1.4526 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
1.4527 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4528 +else
1.4529 + eval "$as_ac_Header=\$ac_header_preproc"
1.4530 +fi
1.4531 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1.4532 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1.4533 +
1.4534 +fi
1.4535 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.4536 + cat >>confdefs.h <<_ACEOF
1.4537 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.4538 +_ACEOF
1.4539 +
1.4540 +fi
1.4541 +
1.4542 +done
1.4543 +
1.4544 +ac_ext=cc
1.4545 +ac_cpp='$CXXCPP $CPPFLAGS'
1.4546 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4547 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4548 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.4549 +if test -n "$ac_tool_prefix"; then
1.4550 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.4551 + do
1.4552 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.4553 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.4554 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4555 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.4556 +if test "${ac_cv_prog_CXX+set}" = set; then
1.4557 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4558 +else
1.4559 + if test -n "$CXX"; then
1.4560 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.4561 +else
1.4562 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4563 +for as_dir in $PATH
1.4564 +do
1.4565 + IFS=$as_save_IFS
1.4566 + test -z "$as_dir" && as_dir=.
1.4567 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4568 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.4569 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.4570 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4571 + break 2
1.4572 + fi
1.4573 +done
1.4574 +done
1.4575 +
1.4576 +fi
1.4577 +fi
1.4578 +CXX=$ac_cv_prog_CXX
1.4579 +if test -n "$CXX"; then
1.4580 + echo "$as_me:$LINENO: result: $CXX" >&5
1.4581 +echo "${ECHO_T}$CXX" >&6
1.4582 +else
1.4583 + echo "$as_me:$LINENO: result: no" >&5
1.4584 +echo "${ECHO_T}no" >&6
1.4585 +fi
1.4586 +
1.4587 + test -n "$CXX" && break
1.4588 + done
1.4589 +fi
1.4590 +if test -z "$CXX"; then
1.4591 + ac_ct_CXX=$CXX
1.4592 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.4593 +do
1.4594 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.4595 +set dummy $ac_prog; ac_word=$2
1.4596 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.4597 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.4598 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.4599 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4600 +else
1.4601 + if test -n "$ac_ct_CXX"; then
1.4602 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.4603 +else
1.4604 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.4605 +for as_dir in $PATH
1.4606 +do
1.4607 + IFS=$as_save_IFS
1.4608 + test -z "$as_dir" && as_dir=.
1.4609 + for ac_exec_ext in '' $ac_executable_extensions; do
1.4610 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.4611 + ac_cv_prog_ac_ct_CXX="$ac_prog"
1.4612 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.4613 + break 2
1.4614 + fi
1.4615 +done
1.4616 +done
1.4617 +
1.4618 +fi
1.4619 +fi
1.4620 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1.4621 +if test -n "$ac_ct_CXX"; then
1.4622 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1.4623 +echo "${ECHO_T}$ac_ct_CXX" >&6
1.4624 +else
1.4625 + echo "$as_me:$LINENO: result: no" >&5
1.4626 +echo "${ECHO_T}no" >&6
1.4627 +fi
1.4628 +
1.4629 + test -n "$ac_ct_CXX" && break
1.4630 +done
1.4631 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.4632 +
1.4633 + CXX=$ac_ct_CXX
1.4634 +fi
1.4635 +
1.4636 +
1.4637 +# Provide some information about the compiler.
1.4638 +echo "$as_me:$LINENO:" \
1.4639 + "checking for C++ compiler version" >&5
1.4640 +ac_compiler=`set X $ac_compile; echo $2`
1.4641 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.4642 + (eval $ac_compiler --version </dev/null >&5) 2>&5
1.4643 + ac_status=$?
1.4644 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4645 + (exit $ac_status); }
1.4646 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.4647 + (eval $ac_compiler -v </dev/null >&5) 2>&5
1.4648 + ac_status=$?
1.4649 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4650 + (exit $ac_status); }
1.4651 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.4652 + (eval $ac_compiler -V </dev/null >&5) 2>&5
1.4653 + ac_status=$?
1.4654 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4655 + (exit $ac_status); }
1.4656 +
1.4657 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1.4658 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1.4659 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.4660 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4661 +else
1.4662 + cat >conftest.$ac_ext <<_ACEOF
1.4663 +/* confdefs.h. */
1.4664 +_ACEOF
1.4665 +cat confdefs.h >>conftest.$ac_ext
1.4666 +cat >>conftest.$ac_ext <<_ACEOF
1.4667 +/* end confdefs.h. */
1.4668 +
1.4669 +int
1.4670 +main ()
1.4671 +{
1.4672 +#ifndef __GNUC__
1.4673 + choke me
1.4674 +#endif
1.4675 +
1.4676 + ;
1.4677 + return 0;
1.4678 +}
1.4679 +_ACEOF
1.4680 +rm -f conftest.$ac_objext
1.4681 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4682 + (eval $ac_compile) 2>conftest.er1
1.4683 + ac_status=$?
1.4684 + grep -v '^ *+' conftest.er1 >conftest.err
1.4685 + rm -f conftest.er1
1.4686 + cat conftest.err >&5
1.4687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4688 + (exit $ac_status); } &&
1.4689 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.4690 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4691 + (eval $ac_try) 2>&5
1.4692 + ac_status=$?
1.4693 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4694 + (exit $ac_status); }; } &&
1.4695 + { ac_try='test -s conftest.$ac_objext'
1.4696 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4697 + (eval $ac_try) 2>&5
1.4698 + ac_status=$?
1.4699 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4700 + (exit $ac_status); }; }; then
1.4701 + ac_compiler_gnu=yes
1.4702 +else
1.4703 + echo "$as_me: failed program was:" >&5
1.4704 +sed 's/^/| /' conftest.$ac_ext >&5
1.4705 +
1.4706 +ac_compiler_gnu=no
1.4707 +fi
1.4708 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4709 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.4710 +
1.4711 +fi
1.4712 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1.4713 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1.4714 +GXX=`test $ac_compiler_gnu = yes && echo yes`
1.4715 +ac_test_CXXFLAGS=${CXXFLAGS+set}
1.4716 +ac_save_CXXFLAGS=$CXXFLAGS
1.4717 +CXXFLAGS="-g"
1.4718 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1.4719 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1.4720 +if test "${ac_cv_prog_cxx_g+set}" = set; then
1.4721 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4722 +else
1.4723 + cat >conftest.$ac_ext <<_ACEOF
1.4724 +/* confdefs.h. */
1.4725 +_ACEOF
1.4726 +cat confdefs.h >>conftest.$ac_ext
1.4727 +cat >>conftest.$ac_ext <<_ACEOF
1.4728 +/* end confdefs.h. */
1.4729 +
1.4730 +int
1.4731 +main ()
1.4732 +{
1.4733 +
1.4734 + ;
1.4735 + return 0;
1.4736 +}
1.4737 +_ACEOF
1.4738 +rm -f conftest.$ac_objext
1.4739 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4740 + (eval $ac_compile) 2>conftest.er1
1.4741 + ac_status=$?
1.4742 + grep -v '^ *+' conftest.er1 >conftest.err
1.4743 + rm -f conftest.er1
1.4744 + cat conftest.err >&5
1.4745 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4746 + (exit $ac_status); } &&
1.4747 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.4748 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4749 + (eval $ac_try) 2>&5
1.4750 + ac_status=$?
1.4751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4752 + (exit $ac_status); }; } &&
1.4753 + { ac_try='test -s conftest.$ac_objext'
1.4754 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4755 + (eval $ac_try) 2>&5
1.4756 + ac_status=$?
1.4757 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4758 + (exit $ac_status); }; }; then
1.4759 + ac_cv_prog_cxx_g=yes
1.4760 +else
1.4761 + echo "$as_me: failed program was:" >&5
1.4762 +sed 's/^/| /' conftest.$ac_ext >&5
1.4763 +
1.4764 +ac_cv_prog_cxx_g=no
1.4765 +fi
1.4766 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4767 +fi
1.4768 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1.4769 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.4770 +if test "$ac_test_CXXFLAGS" = set; then
1.4771 + CXXFLAGS=$ac_save_CXXFLAGS
1.4772 +elif test $ac_cv_prog_cxx_g = yes; then
1.4773 + if test "$GXX" = yes; then
1.4774 + CXXFLAGS="-g -O2"
1.4775 + else
1.4776 + CXXFLAGS="-g"
1.4777 + fi
1.4778 +else
1.4779 + if test "$GXX" = yes; then
1.4780 + CXXFLAGS="-O2"
1.4781 + else
1.4782 + CXXFLAGS=
1.4783 + fi
1.4784 +fi
1.4785 +for ac_declaration in \
1.4786 + '' \
1.4787 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
1.4788 + 'extern "C" void std::exit (int); using std::exit;' \
1.4789 + 'extern "C" void exit (int) throw ();' \
1.4790 + 'extern "C" void exit (int);' \
1.4791 + 'void exit (int);'
1.4792 +do
1.4793 + cat >conftest.$ac_ext <<_ACEOF
1.4794 +/* confdefs.h. */
1.4795 +_ACEOF
1.4796 +cat confdefs.h >>conftest.$ac_ext
1.4797 +cat >>conftest.$ac_ext <<_ACEOF
1.4798 +/* end confdefs.h. */
1.4799 +$ac_declaration
1.4800 +#include <stdlib.h>
1.4801 +int
1.4802 +main ()
1.4803 +{
1.4804 +exit (42);
1.4805 + ;
1.4806 + return 0;
1.4807 +}
1.4808 +_ACEOF
1.4809 +rm -f conftest.$ac_objext
1.4810 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4811 + (eval $ac_compile) 2>conftest.er1
1.4812 + ac_status=$?
1.4813 + grep -v '^ *+' conftest.er1 >conftest.err
1.4814 + rm -f conftest.er1
1.4815 + cat conftest.err >&5
1.4816 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4817 + (exit $ac_status); } &&
1.4818 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.4819 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4820 + (eval $ac_try) 2>&5
1.4821 + ac_status=$?
1.4822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4823 + (exit $ac_status); }; } &&
1.4824 + { ac_try='test -s conftest.$ac_objext'
1.4825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4826 + (eval $ac_try) 2>&5
1.4827 + ac_status=$?
1.4828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4829 + (exit $ac_status); }; }; then
1.4830 + :
1.4831 +else
1.4832 + echo "$as_me: failed program was:" >&5
1.4833 +sed 's/^/| /' conftest.$ac_ext >&5
1.4834 +
1.4835 +continue
1.4836 +fi
1.4837 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4838 + cat >conftest.$ac_ext <<_ACEOF
1.4839 +/* confdefs.h. */
1.4840 +_ACEOF
1.4841 +cat confdefs.h >>conftest.$ac_ext
1.4842 +cat >>conftest.$ac_ext <<_ACEOF
1.4843 +/* end confdefs.h. */
1.4844 +$ac_declaration
1.4845 +int
1.4846 +main ()
1.4847 +{
1.4848 +exit (42);
1.4849 + ;
1.4850 + return 0;
1.4851 +}
1.4852 +_ACEOF
1.4853 +rm -f conftest.$ac_objext
1.4854 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.4855 + (eval $ac_compile) 2>conftest.er1
1.4856 + ac_status=$?
1.4857 + grep -v '^ *+' conftest.er1 >conftest.err
1.4858 + rm -f conftest.er1
1.4859 + cat conftest.err >&5
1.4860 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4861 + (exit $ac_status); } &&
1.4862 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.4863 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4864 + (eval $ac_try) 2>&5
1.4865 + ac_status=$?
1.4866 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4867 + (exit $ac_status); }; } &&
1.4868 + { ac_try='test -s conftest.$ac_objext'
1.4869 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.4870 + (eval $ac_try) 2>&5
1.4871 + ac_status=$?
1.4872 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.4873 + (exit $ac_status); }; }; then
1.4874 + break
1.4875 +else
1.4876 + echo "$as_me: failed program was:" >&5
1.4877 +sed 's/^/| /' conftest.$ac_ext >&5
1.4878 +
1.4879 +fi
1.4880 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.4881 +done
1.4882 +rm -f conftest*
1.4883 +if test -n "$ac_declaration"; then
1.4884 + echo '#ifdef __cplusplus' >>confdefs.h
1.4885 + echo $ac_declaration >>confdefs.h
1.4886 + echo '#endif' >>confdefs.h
1.4887 +fi
1.4888 +
1.4889 +ac_ext=cc
1.4890 +ac_cpp='$CXXCPP $CPPFLAGS'
1.4891 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.4892 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.4893 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.4894 +
1.4895 +depcc="$CXX" am_compiler_list=
1.4896 +
1.4897 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.4898 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.4899 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.4900 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.4901 +else
1.4902 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.4903 + # We make a subdir and do the tests there. Otherwise we can end up
1.4904 + # making bogus files that we don't know about and never remove. For
1.4905 + # instance it was reported that on HP-UX the gcc test will end up
1.4906 + # making a dummy file named `D' -- because `-MD' means `put the output
1.4907 + # in D'.
1.4908 + mkdir conftest.dir
1.4909 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.4910 + # using a relative directory.
1.4911 + cp "$am_depcomp" conftest.dir
1.4912 + cd conftest.dir
1.4913 + # We will build objects and dependencies in a subdirectory because
1.4914 + # it helps to detect inapplicable dependency modes. For instance
1.4915 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.4916 + # side effect of compilation, but ICC will put the dependencies in
1.4917 + # the current directory while Tru64 will put them in the object
1.4918 + # directory.
1.4919 + mkdir sub
1.4920 +
1.4921 + am_cv_CXX_dependencies_compiler_type=none
1.4922 + if test "$am_compiler_list" = ""; then
1.4923 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.4924 + fi
1.4925 + for depmode in $am_compiler_list; do
1.4926 + # Setup a source with many dependencies, because some compilers
1.4927 + # like to wrap large dependency lists on column 80 (with \), and
1.4928 + # we should not choose a depcomp mode which is confused by this.
1.4929 + #
1.4930 + # We need to recreate these files for each test, as the compiler may
1.4931 + # overwrite some of them when testing with obscure command lines.
1.4932 + # This happens at least with the AIX C compiler.
1.4933 + : > sub/conftest.c
1.4934 + for i in 1 2 3 4 5 6; do
1.4935 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.4936 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.4937 + # Solaris 8's {/usr,}/bin/sh.
1.4938 + touch sub/conftst$i.h
1.4939 + done
1.4940 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.4941 +
1.4942 + case $depmode in
1.4943 + nosideeffect)
1.4944 + # after this tag, mechanisms are not by side-effect, so they'll
1.4945 + # only be used when explicitly requested
1.4946 + if test "x$enable_dependency_tracking" = xyes; then
1.4947 + continue
1.4948 + else
1.4949 + break
1.4950 + fi
1.4951 + ;;
1.4952 + none) break ;;
1.4953 + esac
1.4954 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.4955 + # mode. It turns out that the SunPro C++ compiler does not properly
1.4956 + # handle `-M -o', and we need to detect this.
1.4957 + if depmode=$depmode \
1.4958 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.4959 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.4960 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.4961 + >/dev/null 2>conftest.err &&
1.4962 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.4963 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.4964 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.4965 + # icc doesn't choke on unknown options, it will just issue warnings
1.4966 + # or remarks (even with -Werror). So we grep stderr for any message
1.4967 + # that says an option was ignored or not supported.
1.4968 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.4969 + # icc: Command line warning: ignoring option '-M'; no argument required
1.4970 + # The diagnosis changed in icc 8.0:
1.4971 + # icc: Command line remark: option '-MP' not supported
1.4972 + if (grep 'ignoring option' conftest.err ||
1.4973 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.4974 + am_cv_CXX_dependencies_compiler_type=$depmode
1.4975 + break
1.4976 + fi
1.4977 + fi
1.4978 + done
1.4979 +
1.4980 + cd ..
1.4981 + rm -rf conftest.dir
1.4982 +else
1.4983 + am_cv_CXX_dependencies_compiler_type=none
1.4984 +fi
1.4985 +
1.4986 +fi
1.4987 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
1.4988 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.4989 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
1.4990 +
1.4991 +
1.4992 +
1.4993 +if
1.4994 + test "x$enable_dependency_tracking" != xno \
1.4995 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
1.4996 + am__fastdepCXX_TRUE=
1.4997 + am__fastdepCXX_FALSE='#'
1.4998 +else
1.4999 + am__fastdepCXX_TRUE='#'
1.5000 + am__fastdepCXX_FALSE=
1.5001 +fi
1.5002 +
1.5003 +
1.5004 +
1.5005 +
1.5006 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.5007 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.5008 + (test "X$CXX" != "Xg++"))) ; then
1.5009 + ac_ext=cc
1.5010 +ac_cpp='$CXXCPP $CPPFLAGS'
1.5011 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.5012 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.5013 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.5014 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
1.5015 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.5016 +if test -z "$CXXCPP"; then
1.5017 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
1.5018 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5019 +else
1.5020 + # Double quotes because CXXCPP needs to be expanded
1.5021 + for CXXCPP in "$CXX -E" "/lib/cpp"
1.5022 + do
1.5023 + ac_preproc_ok=false
1.5024 +for ac_cxx_preproc_warn_flag in '' yes
1.5025 +do
1.5026 + # Use a header file that comes with gcc, so configuring glibc
1.5027 + # with a fresh cross-compiler works.
1.5028 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.5029 + # <limits.h> exists even on freestanding compilers.
1.5030 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.5031 + # not just through cpp. "Syntax error" is here to catch this case.
1.5032 + cat >conftest.$ac_ext <<_ACEOF
1.5033 +/* confdefs.h. */
1.5034 +_ACEOF
1.5035 +cat confdefs.h >>conftest.$ac_ext
1.5036 +cat >>conftest.$ac_ext <<_ACEOF
1.5037 +/* end confdefs.h. */
1.5038 +#ifdef __STDC__
1.5039 +# include <limits.h>
1.5040 +#else
1.5041 +# include <assert.h>
1.5042 +#endif
1.5043 + Syntax error
1.5044 +_ACEOF
1.5045 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.5046 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.5047 + ac_status=$?
1.5048 + grep -v '^ *+' conftest.er1 >conftest.err
1.5049 + rm -f conftest.er1
1.5050 + cat conftest.err >&5
1.5051 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5052 + (exit $ac_status); } >/dev/null; then
1.5053 + if test -s conftest.err; then
1.5054 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.5055 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.5056 + else
1.5057 + ac_cpp_err=
1.5058 + fi
1.5059 +else
1.5060 + ac_cpp_err=yes
1.5061 +fi
1.5062 +if test -z "$ac_cpp_err"; then
1.5063 + :
1.5064 +else
1.5065 + echo "$as_me: failed program was:" >&5
1.5066 +sed 's/^/| /' conftest.$ac_ext >&5
1.5067 +
1.5068 + # Broken: fails on valid input.
1.5069 +continue
1.5070 +fi
1.5071 +rm -f conftest.err conftest.$ac_ext
1.5072 +
1.5073 + # OK, works on sane cases. Now check whether non-existent headers
1.5074 + # can be detected and how.
1.5075 + cat >conftest.$ac_ext <<_ACEOF
1.5076 +/* confdefs.h. */
1.5077 +_ACEOF
1.5078 +cat confdefs.h >>conftest.$ac_ext
1.5079 +cat >>conftest.$ac_ext <<_ACEOF
1.5080 +/* end confdefs.h. */
1.5081 +#include <ac_nonexistent.h>
1.5082 +_ACEOF
1.5083 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.5084 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.5085 + ac_status=$?
1.5086 + grep -v '^ *+' conftest.er1 >conftest.err
1.5087 + rm -f conftest.er1
1.5088 + cat conftest.err >&5
1.5089 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5090 + (exit $ac_status); } >/dev/null; then
1.5091 + if test -s conftest.err; then
1.5092 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.5093 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.5094 + else
1.5095 + ac_cpp_err=
1.5096 + fi
1.5097 +else
1.5098 + ac_cpp_err=yes
1.5099 +fi
1.5100 +if test -z "$ac_cpp_err"; then
1.5101 + # Broken: success on invalid input.
1.5102 +continue
1.5103 +else
1.5104 + echo "$as_me: failed program was:" >&5
1.5105 +sed 's/^/| /' conftest.$ac_ext >&5
1.5106 +
1.5107 + # Passes both tests.
1.5108 +ac_preproc_ok=:
1.5109 +break
1.5110 +fi
1.5111 +rm -f conftest.err conftest.$ac_ext
1.5112 +
1.5113 +done
1.5114 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.5115 +rm -f conftest.err conftest.$ac_ext
1.5116 +if $ac_preproc_ok; then
1.5117 + break
1.5118 +fi
1.5119 +
1.5120 + done
1.5121 + ac_cv_prog_CXXCPP=$CXXCPP
1.5122 +
1.5123 +fi
1.5124 + CXXCPP=$ac_cv_prog_CXXCPP
1.5125 +else
1.5126 + ac_cv_prog_CXXCPP=$CXXCPP
1.5127 +fi
1.5128 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
1.5129 +echo "${ECHO_T}$CXXCPP" >&6
1.5130 +ac_preproc_ok=false
1.5131 +for ac_cxx_preproc_warn_flag in '' yes
1.5132 +do
1.5133 + # Use a header file that comes with gcc, so configuring glibc
1.5134 + # with a fresh cross-compiler works.
1.5135 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.5136 + # <limits.h> exists even on freestanding compilers.
1.5137 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.5138 + # not just through cpp. "Syntax error" is here to catch this case.
1.5139 + cat >conftest.$ac_ext <<_ACEOF
1.5140 +/* confdefs.h. */
1.5141 +_ACEOF
1.5142 +cat confdefs.h >>conftest.$ac_ext
1.5143 +cat >>conftest.$ac_ext <<_ACEOF
1.5144 +/* end confdefs.h. */
1.5145 +#ifdef __STDC__
1.5146 +# include <limits.h>
1.5147 +#else
1.5148 +# include <assert.h>
1.5149 +#endif
1.5150 + Syntax error
1.5151 +_ACEOF
1.5152 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.5153 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.5154 + ac_status=$?
1.5155 + grep -v '^ *+' conftest.er1 >conftest.err
1.5156 + rm -f conftest.er1
1.5157 + cat conftest.err >&5
1.5158 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5159 + (exit $ac_status); } >/dev/null; then
1.5160 + if test -s conftest.err; then
1.5161 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.5162 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.5163 + else
1.5164 + ac_cpp_err=
1.5165 + fi
1.5166 +else
1.5167 + ac_cpp_err=yes
1.5168 +fi
1.5169 +if test -z "$ac_cpp_err"; then
1.5170 + :
1.5171 +else
1.5172 + echo "$as_me: failed program was:" >&5
1.5173 +sed 's/^/| /' conftest.$ac_ext >&5
1.5174 +
1.5175 + # Broken: fails on valid input.
1.5176 +continue
1.5177 +fi
1.5178 +rm -f conftest.err conftest.$ac_ext
1.5179 +
1.5180 + # OK, works on sane cases. Now check whether non-existent headers
1.5181 + # can be detected and how.
1.5182 + cat >conftest.$ac_ext <<_ACEOF
1.5183 +/* confdefs.h. */
1.5184 +_ACEOF
1.5185 +cat confdefs.h >>conftest.$ac_ext
1.5186 +cat >>conftest.$ac_ext <<_ACEOF
1.5187 +/* end confdefs.h. */
1.5188 +#include <ac_nonexistent.h>
1.5189 +_ACEOF
1.5190 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.5191 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.5192 + ac_status=$?
1.5193 + grep -v '^ *+' conftest.er1 >conftest.err
1.5194 + rm -f conftest.er1
1.5195 + cat conftest.err >&5
1.5196 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5197 + (exit $ac_status); } >/dev/null; then
1.5198 + if test -s conftest.err; then
1.5199 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.5200 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.5201 + else
1.5202 + ac_cpp_err=
1.5203 + fi
1.5204 +else
1.5205 + ac_cpp_err=yes
1.5206 +fi
1.5207 +if test -z "$ac_cpp_err"; then
1.5208 + # Broken: success on invalid input.
1.5209 +continue
1.5210 +else
1.5211 + echo "$as_me: failed program was:" >&5
1.5212 +sed 's/^/| /' conftest.$ac_ext >&5
1.5213 +
1.5214 + # Passes both tests.
1.5215 +ac_preproc_ok=:
1.5216 +break
1.5217 +fi
1.5218 +rm -f conftest.err conftest.$ac_ext
1.5219 +
1.5220 +done
1.5221 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.5222 +rm -f conftest.err conftest.$ac_ext
1.5223 +if $ac_preproc_ok; then
1.5224 + :
1.5225 +else
1.5226 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.5227 +See \`config.log' for more details." >&5
1.5228 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.5229 +See \`config.log' for more details." >&2;}
1.5230 + { (exit 1); exit 1; }; }
1.5231 +fi
1.5232 +
1.5233 +ac_ext=cc
1.5234 +ac_cpp='$CXXCPP $CPPFLAGS'
1.5235 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.5236 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.5237 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.5238 +
1.5239 +fi
1.5240 +
1.5241 +
1.5242 +ac_ext=f
1.5243 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1.5244 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.5245 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1.5246 +if test -n "$ac_tool_prefix"; then
1.5247 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
1.5248 + do
1.5249 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.5250 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.5251 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5252 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5253 +if test "${ac_cv_prog_F77+set}" = set; then
1.5254 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5255 +else
1.5256 + if test -n "$F77"; then
1.5257 + ac_cv_prog_F77="$F77" # Let the user override the test.
1.5258 +else
1.5259 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5260 +for as_dir in $PATH
1.5261 +do
1.5262 + IFS=$as_save_IFS
1.5263 + test -z "$as_dir" && as_dir=.
1.5264 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5265 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5266 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
1.5267 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5268 + break 2
1.5269 + fi
1.5270 +done
1.5271 +done
1.5272 +
1.5273 +fi
1.5274 +fi
1.5275 +F77=$ac_cv_prog_F77
1.5276 +if test -n "$F77"; then
1.5277 + echo "$as_me:$LINENO: result: $F77" >&5
1.5278 +echo "${ECHO_T}$F77" >&6
1.5279 +else
1.5280 + echo "$as_me:$LINENO: result: no" >&5
1.5281 +echo "${ECHO_T}no" >&6
1.5282 +fi
1.5283 +
1.5284 + test -n "$F77" && break
1.5285 + done
1.5286 +fi
1.5287 +if test -z "$F77"; then
1.5288 + ac_ct_F77=$F77
1.5289 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
1.5290 +do
1.5291 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.5292 +set dummy $ac_prog; ac_word=$2
1.5293 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5294 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5295 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
1.5296 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5297 +else
1.5298 + if test -n "$ac_ct_F77"; then
1.5299 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
1.5300 +else
1.5301 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5302 +for as_dir in $PATH
1.5303 +do
1.5304 + IFS=$as_save_IFS
1.5305 + test -z "$as_dir" && as_dir=.
1.5306 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5307 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5308 + ac_cv_prog_ac_ct_F77="$ac_prog"
1.5309 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5310 + break 2
1.5311 + fi
1.5312 +done
1.5313 +done
1.5314 +
1.5315 +fi
1.5316 +fi
1.5317 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
1.5318 +if test -n "$ac_ct_F77"; then
1.5319 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
1.5320 +echo "${ECHO_T}$ac_ct_F77" >&6
1.5321 +else
1.5322 + echo "$as_me:$LINENO: result: no" >&5
1.5323 +echo "${ECHO_T}no" >&6
1.5324 +fi
1.5325 +
1.5326 + test -n "$ac_ct_F77" && break
1.5327 +done
1.5328 +
1.5329 + F77=$ac_ct_F77
1.5330 +fi
1.5331 +
1.5332 +
1.5333 +# Provide some information about the compiler.
1.5334 +echo "$as_me:5331:" \
1.5335 + "checking for Fortran 77 compiler version" >&5
1.5336 +ac_compiler=`set X $ac_compile; echo $2`
1.5337 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.5338 + (eval $ac_compiler --version </dev/null >&5) 2>&5
1.5339 + ac_status=$?
1.5340 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5341 + (exit $ac_status); }
1.5342 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.5343 + (eval $ac_compiler -v </dev/null >&5) 2>&5
1.5344 + ac_status=$?
1.5345 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5346 + (exit $ac_status); }
1.5347 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.5348 + (eval $ac_compiler -V </dev/null >&5) 2>&5
1.5349 + ac_status=$?
1.5350 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5351 + (exit $ac_status); }
1.5352 +rm -f a.out
1.5353 +
1.5354 +# If we don't use `.F' as extension, the preprocessor is not run on the
1.5355 +# input file. (Note that this only needs to work for GNU compilers.)
1.5356 +ac_save_ext=$ac_ext
1.5357 +ac_ext=F
1.5358 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
1.5359 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
1.5360 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
1.5361 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5362 +else
1.5363 + cat >conftest.$ac_ext <<_ACEOF
1.5364 + program main
1.5365 +#ifndef __GNUC__
1.5366 + choke me
1.5367 +#endif
1.5368 +
1.5369 + end
1.5370 +_ACEOF
1.5371 +rm -f conftest.$ac_objext
1.5372 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.5373 + (eval $ac_compile) 2>conftest.er1
1.5374 + ac_status=$?
1.5375 + grep -v '^ *+' conftest.er1 >conftest.err
1.5376 + rm -f conftest.er1
1.5377 + cat conftest.err >&5
1.5378 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5379 + (exit $ac_status); } &&
1.5380 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1.5381 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.5382 + (eval $ac_try) 2>&5
1.5383 + ac_status=$?
1.5384 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5385 + (exit $ac_status); }; } &&
1.5386 + { ac_try='test -s conftest.$ac_objext'
1.5387 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.5388 + (eval $ac_try) 2>&5
1.5389 + ac_status=$?
1.5390 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5391 + (exit $ac_status); }; }; then
1.5392 + ac_compiler_gnu=yes
1.5393 +else
1.5394 + echo "$as_me: failed program was:" >&5
1.5395 +sed 's/^/| /' conftest.$ac_ext >&5
1.5396 +
1.5397 +ac_compiler_gnu=no
1.5398 +fi
1.5399 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.5400 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.5401 +
1.5402 +fi
1.5403 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
1.5404 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
1.5405 +ac_ext=$ac_save_ext
1.5406 +ac_test_FFLAGS=${FFLAGS+set}
1.5407 +ac_save_FFLAGS=$FFLAGS
1.5408 +FFLAGS=
1.5409 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
1.5410 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
1.5411 +if test "${ac_cv_prog_f77_g+set}" = set; then
1.5412 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5413 +else
1.5414 + FFLAGS=-g
1.5415 +cat >conftest.$ac_ext <<_ACEOF
1.5416 + program main
1.5417 +
1.5418 + end
1.5419 +_ACEOF
1.5420 +rm -f conftest.$ac_objext
1.5421 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.5422 + (eval $ac_compile) 2>conftest.er1
1.5423 + ac_status=$?
1.5424 + grep -v '^ *+' conftest.er1 >conftest.err
1.5425 + rm -f conftest.er1
1.5426 + cat conftest.err >&5
1.5427 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5428 + (exit $ac_status); } &&
1.5429 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1.5430 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.5431 + (eval $ac_try) 2>&5
1.5432 + ac_status=$?
1.5433 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5434 + (exit $ac_status); }; } &&
1.5435 + { ac_try='test -s conftest.$ac_objext'
1.5436 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.5437 + (eval $ac_try) 2>&5
1.5438 + ac_status=$?
1.5439 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5440 + (exit $ac_status); }; }; then
1.5441 + ac_cv_prog_f77_g=yes
1.5442 +else
1.5443 + echo "$as_me: failed program was:" >&5
1.5444 +sed 's/^/| /' conftest.$ac_ext >&5
1.5445 +
1.5446 +ac_cv_prog_f77_g=no
1.5447 +fi
1.5448 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.5449 +
1.5450 +fi
1.5451 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
1.5452 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
1.5453 +if test "$ac_test_FFLAGS" = set; then
1.5454 + FFLAGS=$ac_save_FFLAGS
1.5455 +elif test $ac_cv_prog_f77_g = yes; then
1.5456 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.5457 + FFLAGS="-g -O2"
1.5458 + else
1.5459 + FFLAGS="-g"
1.5460 + fi
1.5461 +else
1.5462 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
1.5463 + FFLAGS="-O2"
1.5464 + else
1.5465 + FFLAGS=
1.5466 + fi
1.5467 +fi
1.5468 +
1.5469 +G77=`test $ac_compiler_gnu = yes && echo yes`
1.5470 +ac_ext=c
1.5471 +ac_cpp='$CPP $CPPFLAGS'
1.5472 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.5473 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.5474 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.5475 +
1.5476 +
1.5477 +
1.5478 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1.5479 +
1.5480 +# find the maximum length of command line arguments
1.5481 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
1.5482 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
1.5483 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
1.5484 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5485 +else
1.5486 + i=0
1.5487 + teststring="ABCD"
1.5488 +
1.5489 + case $build_os in
1.5490 + msdosdjgpp*)
1.5491 + # On DJGPP, this test can blow up pretty badly due to problems in libc
1.5492 + # (any single argument exceeding 2000 bytes causes a buffer overrun
1.5493 + # during glob expansion). Even if it were fixed, the result of this
1.5494 + # check would be larger than it should be.
1.5495 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
1.5496 + ;;
1.5497 +
1.5498 + gnu*)
1.5499 + # Under GNU Hurd, this test is not required because there is
1.5500 + # no limit to the length of command line arguments.
1.5501 + # Libtool will interpret -1 as no limit whatsoever
1.5502 + lt_cv_sys_max_cmd_len=-1;
1.5503 + ;;
1.5504 +
1.5505 + cygwin* | mingw*)
1.5506 + # On Win9x/ME, this test blows up -- it succeeds, but takes
1.5507 + # about 5 minutes as the teststring grows exponentially.
1.5508 + # Worse, since 9x/ME are not pre-emptively multitasking,
1.5509 + # you end up with a "frozen" computer, even though with patience
1.5510 + # the test eventually succeeds (with a max line length of 256k).
1.5511 + # Instead, let's just punt: use the minimum linelength reported by
1.5512 + # all of the supported platforms: 8192 (on NT/2K/XP).
1.5513 + lt_cv_sys_max_cmd_len=8192;
1.5514 + ;;
1.5515 +
1.5516 + amigaos*)
1.5517 + # On AmigaOS with pdksh, this test takes hours, literally.
1.5518 + # So we just punt and use a minimum line length of 8192.
1.5519 + lt_cv_sys_max_cmd_len=8192;
1.5520 + ;;
1.5521 +
1.5522 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1.5523 + # This has been around since 386BSD, at least. Likely further.
1.5524 + if test -x /sbin/sysctl; then
1.5525 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1.5526 + elif test -x /usr/sbin/sysctl; then
1.5527 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1.5528 + else
1.5529 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1.5530 + fi
1.5531 + # And add a safety zone
1.5532 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1.5533 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1.5534 + ;;
1.5535 + osf*)
1.5536 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1.5537 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1.5538 + # nice to cause kernel panics so lets avoid the loop below.
1.5539 + # First set a reasonable default.
1.5540 + lt_cv_sys_max_cmd_len=16384
1.5541 + #
1.5542 + if test -x /sbin/sysconfig; then
1.5543 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1.5544 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
1.5545 + esac
1.5546 + fi
1.5547 + ;;
1.5548 + *)
1.5549 + # If test is not a shell built-in, we'll probably end up computing a
1.5550 + # maximum length that is only half of the actual maximum length, but
1.5551 + # we can't tell.
1.5552 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1.5553 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
1.5554 + = "XX$teststring") >/dev/null 2>&1 &&
1.5555 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
1.5556 + lt_cv_sys_max_cmd_len=$new_result &&
1.5557 + test $i != 17 # 1/2 MB should be enough
1.5558 + do
1.5559 + i=`expr $i + 1`
1.5560 + teststring=$teststring$teststring
1.5561 + done
1.5562 + teststring=
1.5563 + # Add a significant safety factor because C++ compilers can tack on massive
1.5564 + # amounts of additional arguments before passing them to the linker.
1.5565 + # It appears as though 1/2 is a usable value.
1.5566 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1.5567 + ;;
1.5568 + esac
1.5569 +
1.5570 +fi
1.5571 +
1.5572 +if test -n $lt_cv_sys_max_cmd_len ; then
1.5573 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
1.5574 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
1.5575 +else
1.5576 + echo "$as_me:$LINENO: result: none" >&5
1.5577 +echo "${ECHO_T}none" >&6
1.5578 +fi
1.5579 +
1.5580 +
1.5581 +
1.5582 +
1.5583 +# Check for command to grab the raw symbol name followed by C symbol from nm.
1.5584 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
1.5585 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
1.5586 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
1.5587 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5588 +else
1.5589 +
1.5590 +# These are sane defaults that work on at least a few old systems.
1.5591 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1.5592 +
1.5593 +# Character class describing NM global symbol codes.
1.5594 +symcode='[BCDEGRST]'
1.5595 +
1.5596 +# Regexp to match symbols that can be accessed directly from C.
1.5597 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1.5598 +
1.5599 +# Transform an extracted symbol line into a proper C declaration
1.5600 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
1.5601 +
1.5602 +# Transform an extracted symbol line into symbol name and symbol address
1.5603 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.5604 +
1.5605 +# Define system-specific variables.
1.5606 +case $host_os in
1.5607 +aix*)
1.5608 + symcode='[BCDT]'
1.5609 + ;;
1.5610 +cygwin* | mingw* | pw32*)
1.5611 + symcode='[ABCDGISTW]'
1.5612 + ;;
1.5613 +hpux*) # Its linker distinguishes data from code symbols
1.5614 + if test "$host_cpu" = ia64; then
1.5615 + symcode='[ABCDEGRST]'
1.5616 + fi
1.5617 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.5618 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.5619 + ;;
1.5620 +linux*)
1.5621 + if test "$host_cpu" = ia64; then
1.5622 + symcode='[ABCDGIRSTW]'
1.5623 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1.5624 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.5625 + fi
1.5626 + ;;
1.5627 +irix* | nonstopux*)
1.5628 + symcode='[BCDEGRST]'
1.5629 + ;;
1.5630 +osf*)
1.5631 + symcode='[BCDEGQRST]'
1.5632 + ;;
1.5633 +solaris* | sysv5*)
1.5634 + symcode='[BDRT]'
1.5635 + ;;
1.5636 +sysv4)
1.5637 + symcode='[DFNSTU]'
1.5638 + ;;
1.5639 +esac
1.5640 +
1.5641 +# Handle CRLF in mingw tool chain
1.5642 +opt_cr=
1.5643 +case $build_os in
1.5644 +mingw*)
1.5645 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.5646 + ;;
1.5647 +esac
1.5648 +
1.5649 +# If we're using GNU nm, then use its standard symbol codes.
1.5650 +case `$NM -V 2>&1` in
1.5651 +*GNU* | *'with BFD'*)
1.5652 + symcode='[ABCDGIRSTW]' ;;
1.5653 +esac
1.5654 +
1.5655 +# Try without a prefix undercore, then with it.
1.5656 +for ac_symprfx in "" "_"; do
1.5657 +
1.5658 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
1.5659 + symxfrm="\\1 $ac_symprfx\\2 \\2"
1.5660 +
1.5661 + # Write the raw and C identifiers.
1.5662 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.5663 +
1.5664 + # Check to see that the pipe works correctly.
1.5665 + pipe_works=no
1.5666 +
1.5667 + rm -f conftest*
1.5668 + cat > conftest.$ac_ext <<EOF
1.5669 +#ifdef __cplusplus
1.5670 +extern "C" {
1.5671 +#endif
1.5672 +char nm_test_var;
1.5673 +void nm_test_func(){}
1.5674 +#ifdef __cplusplus
1.5675 +}
1.5676 +#endif
1.5677 +int main(){nm_test_var='a';nm_test_func();return(0);}
1.5678 +EOF
1.5679 +
1.5680 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.5681 + (eval $ac_compile) 2>&5
1.5682 + ac_status=$?
1.5683 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5684 + (exit $ac_status); }; then
1.5685 + # Now try to grab the symbols.
1.5686 + nlist=conftest.nm
1.5687 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
1.5688 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.5689 + ac_status=$?
1.5690 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5691 + (exit $ac_status); } && test -s "$nlist"; then
1.5692 + # Try sorting and uniquifying the output.
1.5693 + if sort "$nlist" | uniq > "$nlist"T; then
1.5694 + mv -f "$nlist"T "$nlist"
1.5695 + else
1.5696 + rm -f "$nlist"T
1.5697 + fi
1.5698 +
1.5699 + # Make sure that we snagged all the symbols we need.
1.5700 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
1.5701 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
1.5702 + cat <<EOF > conftest.$ac_ext
1.5703 +#ifdef __cplusplus
1.5704 +extern "C" {
1.5705 +#endif
1.5706 +
1.5707 +EOF
1.5708 + # Now generate the symbol file.
1.5709 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.5710 +
1.5711 + cat <<EOF >> conftest.$ac_ext
1.5712 +#if defined (__STDC__) && __STDC__
1.5713 +# define lt_ptr_t void *
1.5714 +#else
1.5715 +# define lt_ptr_t char *
1.5716 +# define const
1.5717 +#endif
1.5718 +
1.5719 +/* The mapping between symbol names and symbols. */
1.5720 +const struct {
1.5721 + const char *name;
1.5722 + lt_ptr_t address;
1.5723 +}
1.5724 +lt_preloaded_symbols[] =
1.5725 +{
1.5726 +EOF
1.5727 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
1.5728 + cat <<\EOF >> conftest.$ac_ext
1.5729 + {0, (lt_ptr_t) 0}
1.5730 +};
1.5731 +
1.5732 +#ifdef __cplusplus
1.5733 +}
1.5734 +#endif
1.5735 +EOF
1.5736 + # Now try linking the two files.
1.5737 + mv conftest.$ac_objext conftstm.$ac_objext
1.5738 + lt_save_LIBS="$LIBS"
1.5739 + lt_save_CFLAGS="$CFLAGS"
1.5740 + LIBS="conftstm.$ac_objext"
1.5741 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
1.5742 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.5743 + (eval $ac_link) 2>&5
1.5744 + ac_status=$?
1.5745 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.5746 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
1.5747 + pipe_works=yes
1.5748 + fi
1.5749 + LIBS="$lt_save_LIBS"
1.5750 + CFLAGS="$lt_save_CFLAGS"
1.5751 + else
1.5752 + echo "cannot find nm_test_func in $nlist" >&5
1.5753 + fi
1.5754 + else
1.5755 + echo "cannot find nm_test_var in $nlist" >&5
1.5756 + fi
1.5757 + else
1.5758 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
1.5759 + fi
1.5760 + else
1.5761 + echo "$progname: failed program was:" >&5
1.5762 + cat conftest.$ac_ext >&5
1.5763 + fi
1.5764 + rm -f conftest* conftst*
1.5765 +
1.5766 + # Do not use the global_symbol_pipe unless it works.
1.5767 + if test "$pipe_works" = yes; then
1.5768 + break
1.5769 + else
1.5770 + lt_cv_sys_global_symbol_pipe=
1.5771 + fi
1.5772 +done
1.5773 +
1.5774 +fi
1.5775 +
1.5776 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
1.5777 + lt_cv_sys_global_symbol_to_cdecl=
1.5778 +fi
1.5779 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.5780 + echo "$as_me:$LINENO: result: failed" >&5
1.5781 +echo "${ECHO_T}failed" >&6
1.5782 +else
1.5783 + echo "$as_me:$LINENO: result: ok" >&5
1.5784 +echo "${ECHO_T}ok" >&6
1.5785 +fi
1.5786 +
1.5787 +echo "$as_me:$LINENO: checking for objdir" >&5
1.5788 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
1.5789 +if test "${lt_cv_objdir+set}" = set; then
1.5790 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5791 +else
1.5792 + rm -f .libs 2>/dev/null
1.5793 +mkdir .libs 2>/dev/null
1.5794 +if test -d .libs; then
1.5795 + lt_cv_objdir=.libs
1.5796 +else
1.5797 + # MS-DOS does not allow filenames that begin with a dot.
1.5798 + lt_cv_objdir=_libs
1.5799 +fi
1.5800 +rmdir .libs 2>/dev/null
1.5801 +fi
1.5802 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
1.5803 +echo "${ECHO_T}$lt_cv_objdir" >&6
1.5804 +objdir=$lt_cv_objdir
1.5805 +
1.5806 +
1.5807 +
1.5808 +
1.5809 +
1.5810 +case $host_os in
1.5811 +aix3*)
1.5812 + # AIX sometimes has problems with the GCC collect2 program. For some
1.5813 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1.5814 + # vanish in a puff of smoke.
1.5815 + if test "X${COLLECT_NAMES+set}" != Xset; then
1.5816 + COLLECT_NAMES=
1.5817 + export COLLECT_NAMES
1.5818 + fi
1.5819 + ;;
1.5820 +esac
1.5821 +
1.5822 +# Sed substitution that helps us do robust quoting. It backslashifies
1.5823 +# metacharacters that are still active within double-quoted strings.
1.5824 +Xsed='sed -e 1s/^X//'
1.5825 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.5826 +
1.5827 +# Same as above, but do not quote variable references.
1.5828 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.5829 +
1.5830 +# Sed substitution to delay expansion of an escaped shell variable in a
1.5831 +# double_quote_subst'ed string.
1.5832 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.5833 +
1.5834 +# Sed substitution to avoid accidental globbing in evaled expressions
1.5835 +no_glob_subst='s/\*/\\\*/g'
1.5836 +
1.5837 +# Constants:
1.5838 +rm="rm -f"
1.5839 +
1.5840 +# Global variables:
1.5841 +default_ofile=libtool
1.5842 +can_build_shared=yes
1.5843 +
1.5844 +# All known linkers require a `.a' archive for static linking (except MSVC,
1.5845 +# which needs '.lib').
1.5846 +libext=a
1.5847 +ltmain="$ac_aux_dir/ltmain.sh"
1.5848 +ofile="$default_ofile"
1.5849 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1.5850 +
1.5851 +if test -n "$ac_tool_prefix"; then
1.5852 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1.5853 +set dummy ${ac_tool_prefix}ar; ac_word=$2
1.5854 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5855 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5856 +if test "${ac_cv_prog_AR+set}" = set; then
1.5857 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5858 +else
1.5859 + if test -n "$AR"; then
1.5860 + ac_cv_prog_AR="$AR" # Let the user override the test.
1.5861 +else
1.5862 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5863 +for as_dir in $PATH
1.5864 +do
1.5865 + IFS=$as_save_IFS
1.5866 + test -z "$as_dir" && as_dir=.
1.5867 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5868 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5869 + ac_cv_prog_AR="${ac_tool_prefix}ar"
1.5870 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5871 + break 2
1.5872 + fi
1.5873 +done
1.5874 +done
1.5875 +
1.5876 +fi
1.5877 +fi
1.5878 +AR=$ac_cv_prog_AR
1.5879 +if test -n "$AR"; then
1.5880 + echo "$as_me:$LINENO: result: $AR" >&5
1.5881 +echo "${ECHO_T}$AR" >&6
1.5882 +else
1.5883 + echo "$as_me:$LINENO: result: no" >&5
1.5884 +echo "${ECHO_T}no" >&6
1.5885 +fi
1.5886 +
1.5887 +fi
1.5888 +if test -z "$ac_cv_prog_AR"; then
1.5889 + ac_ct_AR=$AR
1.5890 + # Extract the first word of "ar", so it can be a program name with args.
1.5891 +set dummy ar; ac_word=$2
1.5892 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5893 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5894 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
1.5895 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5896 +else
1.5897 + if test -n "$ac_ct_AR"; then
1.5898 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
1.5899 +else
1.5900 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5901 +for as_dir in $PATH
1.5902 +do
1.5903 + IFS=$as_save_IFS
1.5904 + test -z "$as_dir" && as_dir=.
1.5905 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5906 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5907 + ac_cv_prog_ac_ct_AR="ar"
1.5908 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5909 + break 2
1.5910 + fi
1.5911 +done
1.5912 +done
1.5913 +
1.5914 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
1.5915 +fi
1.5916 +fi
1.5917 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
1.5918 +if test -n "$ac_ct_AR"; then
1.5919 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
1.5920 +echo "${ECHO_T}$ac_ct_AR" >&6
1.5921 +else
1.5922 + echo "$as_me:$LINENO: result: no" >&5
1.5923 +echo "${ECHO_T}no" >&6
1.5924 +fi
1.5925 +
1.5926 + AR=$ac_ct_AR
1.5927 +else
1.5928 + AR="$ac_cv_prog_AR"
1.5929 +fi
1.5930 +
1.5931 +if test -n "$ac_tool_prefix"; then
1.5932 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1.5933 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1.5934 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5935 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5936 +if test "${ac_cv_prog_RANLIB+set}" = set; then
1.5937 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5938 +else
1.5939 + if test -n "$RANLIB"; then
1.5940 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.5941 +else
1.5942 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5943 +for as_dir in $PATH
1.5944 +do
1.5945 + IFS=$as_save_IFS
1.5946 + test -z "$as_dir" && as_dir=.
1.5947 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5948 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5949 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1.5950 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5951 + break 2
1.5952 + fi
1.5953 +done
1.5954 +done
1.5955 +
1.5956 +fi
1.5957 +fi
1.5958 +RANLIB=$ac_cv_prog_RANLIB
1.5959 +if test -n "$RANLIB"; then
1.5960 + echo "$as_me:$LINENO: result: $RANLIB" >&5
1.5961 +echo "${ECHO_T}$RANLIB" >&6
1.5962 +else
1.5963 + echo "$as_me:$LINENO: result: no" >&5
1.5964 +echo "${ECHO_T}no" >&6
1.5965 +fi
1.5966 +
1.5967 +fi
1.5968 +if test -z "$ac_cv_prog_RANLIB"; then
1.5969 + ac_ct_RANLIB=$RANLIB
1.5970 + # Extract the first word of "ranlib", so it can be a program name with args.
1.5971 +set dummy ranlib; ac_word=$2
1.5972 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.5973 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.5974 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.5975 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.5976 +else
1.5977 + if test -n "$ac_ct_RANLIB"; then
1.5978 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.5979 +else
1.5980 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.5981 +for as_dir in $PATH
1.5982 +do
1.5983 + IFS=$as_save_IFS
1.5984 + test -z "$as_dir" && as_dir=.
1.5985 + for ac_exec_ext in '' $ac_executable_extensions; do
1.5986 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.5987 + ac_cv_prog_ac_ct_RANLIB="ranlib"
1.5988 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.5989 + break 2
1.5990 + fi
1.5991 +done
1.5992 +done
1.5993 +
1.5994 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1.5995 +fi
1.5996 +fi
1.5997 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1.5998 +if test -n "$ac_ct_RANLIB"; then
1.5999 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1.6000 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
1.6001 +else
1.6002 + echo "$as_me:$LINENO: result: no" >&5
1.6003 +echo "${ECHO_T}no" >&6
1.6004 +fi
1.6005 +
1.6006 + RANLIB=$ac_ct_RANLIB
1.6007 +else
1.6008 + RANLIB="$ac_cv_prog_RANLIB"
1.6009 +fi
1.6010 +
1.6011 +if test -n "$ac_tool_prefix"; then
1.6012 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1.6013 +set dummy ${ac_tool_prefix}strip; ac_word=$2
1.6014 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6015 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.6016 +if test "${ac_cv_prog_STRIP+set}" = set; then
1.6017 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6018 +else
1.6019 + if test -n "$STRIP"; then
1.6020 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.6021 +else
1.6022 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6023 +for as_dir in $PATH
1.6024 +do
1.6025 + IFS=$as_save_IFS
1.6026 + test -z "$as_dir" && as_dir=.
1.6027 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6028 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.6029 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1.6030 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6031 + break 2
1.6032 + fi
1.6033 +done
1.6034 +done
1.6035 +
1.6036 +fi
1.6037 +fi
1.6038 +STRIP=$ac_cv_prog_STRIP
1.6039 +if test -n "$STRIP"; then
1.6040 + echo "$as_me:$LINENO: result: $STRIP" >&5
1.6041 +echo "${ECHO_T}$STRIP" >&6
1.6042 +else
1.6043 + echo "$as_me:$LINENO: result: no" >&5
1.6044 +echo "${ECHO_T}no" >&6
1.6045 +fi
1.6046 +
1.6047 +fi
1.6048 +if test -z "$ac_cv_prog_STRIP"; then
1.6049 + ac_ct_STRIP=$STRIP
1.6050 + # Extract the first word of "strip", so it can be a program name with args.
1.6051 +set dummy strip; ac_word=$2
1.6052 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.6053 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.6054 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1.6055 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6056 +else
1.6057 + if test -n "$ac_ct_STRIP"; then
1.6058 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.6059 +else
1.6060 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.6061 +for as_dir in $PATH
1.6062 +do
1.6063 + IFS=$as_save_IFS
1.6064 + test -z "$as_dir" && as_dir=.
1.6065 + for ac_exec_ext in '' $ac_executable_extensions; do
1.6066 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.6067 + ac_cv_prog_ac_ct_STRIP="strip"
1.6068 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.6069 + break 2
1.6070 + fi
1.6071 +done
1.6072 +done
1.6073 +
1.6074 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1.6075 +fi
1.6076 +fi
1.6077 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1.6078 +if test -n "$ac_ct_STRIP"; then
1.6079 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1.6080 +echo "${ECHO_T}$ac_ct_STRIP" >&6
1.6081 +else
1.6082 + echo "$as_me:$LINENO: result: no" >&5
1.6083 +echo "${ECHO_T}no" >&6
1.6084 +fi
1.6085 +
1.6086 + STRIP=$ac_ct_STRIP
1.6087 +else
1.6088 + STRIP="$ac_cv_prog_STRIP"
1.6089 +fi
1.6090 +
1.6091 +
1.6092 +old_CC="$CC"
1.6093 +old_CFLAGS="$CFLAGS"
1.6094 +
1.6095 +# Set sane defaults for various variables
1.6096 +test -z "$AR" && AR=ar
1.6097 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1.6098 +test -z "$AS" && AS=as
1.6099 +test -z "$CC" && CC=cc
1.6100 +test -z "$LTCC" && LTCC=$CC
1.6101 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1.6102 +test -z "$LD" && LD=ld
1.6103 +test -z "$LN_S" && LN_S="ln -s"
1.6104 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1.6105 +test -z "$NM" && NM=nm
1.6106 +test -z "$SED" && SED=sed
1.6107 +test -z "$OBJDUMP" && OBJDUMP=objdump
1.6108 +test -z "$RANLIB" && RANLIB=:
1.6109 +test -z "$STRIP" && STRIP=:
1.6110 +test -z "$ac_objext" && ac_objext=o
1.6111 +
1.6112 +# Determine commands to create old-style static archives.
1.6113 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1.6114 +old_postinstall_cmds='chmod 644 $oldlib'
1.6115 +old_postuninstall_cmds=
1.6116 +
1.6117 +if test -n "$RANLIB"; then
1.6118 + case $host_os in
1.6119 + openbsd*)
1.6120 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1.6121 + ;;
1.6122 + *)
1.6123 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1.6124 + ;;
1.6125 + esac
1.6126 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1.6127 +fi
1.6128 +
1.6129 +for cc_temp in $compiler""; do
1.6130 + case $cc_temp in
1.6131 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.6132 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.6133 + \-*) ;;
1.6134 + *) break;;
1.6135 + esac
1.6136 +done
1.6137 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.6138 +
1.6139 +
1.6140 +# Only perform the check for file, if the check method requires it
1.6141 +case $deplibs_check_method in
1.6142 +file_magic*)
1.6143 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1.6144 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
1.6145 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
1.6146 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.6147 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6148 +else
1.6149 + case $MAGIC_CMD in
1.6150 +[\\/*] | ?:[\\/]*)
1.6151 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1.6152 + ;;
1.6153 +*)
1.6154 + lt_save_MAGIC_CMD="$MAGIC_CMD"
1.6155 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.6156 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
1.6157 + for ac_dir in $ac_dummy; do
1.6158 + IFS="$lt_save_ifs"
1.6159 + test -z "$ac_dir" && ac_dir=.
1.6160 + if test -f $ac_dir/${ac_tool_prefix}file; then
1.6161 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1.6162 + if test -n "$file_magic_test_file"; then
1.6163 + case $deplibs_check_method in
1.6164 + "file_magic "*)
1.6165 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.6166 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.6167 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1.6168 + $EGREP "$file_magic_regex" > /dev/null; then
1.6169 + :
1.6170 + else
1.6171 + cat <<EOF 1>&2
1.6172 +
1.6173 +*** Warning: the command libtool uses to detect shared libraries,
1.6174 +*** $file_magic_cmd, produces output that libtool cannot recognize.
1.6175 +*** The result is that libtool may fail to recognize shared libraries
1.6176 +*** as such. This will affect the creation of libtool libraries that
1.6177 +*** depend on shared libraries, but programs linked with such libtool
1.6178 +*** libraries will work regardless of this problem. Nevertheless, you
1.6179 +*** may want to report the problem to your system manager and/or to
1.6180 +*** bug-libtool@gnu.org
1.6181 +
1.6182 +EOF
1.6183 + fi ;;
1.6184 + esac
1.6185 + fi
1.6186 + break
1.6187 + fi
1.6188 + done
1.6189 + IFS="$lt_save_ifs"
1.6190 + MAGIC_CMD="$lt_save_MAGIC_CMD"
1.6191 + ;;
1.6192 +esac
1.6193 +fi
1.6194 +
1.6195 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.6196 +if test -n "$MAGIC_CMD"; then
1.6197 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
1.6198 +echo "${ECHO_T}$MAGIC_CMD" >&6
1.6199 +else
1.6200 + echo "$as_me:$LINENO: result: no" >&5
1.6201 +echo "${ECHO_T}no" >&6
1.6202 +fi
1.6203 +
1.6204 +if test -z "$lt_cv_path_MAGIC_CMD"; then
1.6205 + if test -n "$ac_tool_prefix"; then
1.6206 + echo "$as_me:$LINENO: checking for file" >&5
1.6207 +echo $ECHO_N "checking for file... $ECHO_C" >&6
1.6208 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.6209 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6210 +else
1.6211 + case $MAGIC_CMD in
1.6212 +[\\/*] | ?:[\\/]*)
1.6213 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1.6214 + ;;
1.6215 +*)
1.6216 + lt_save_MAGIC_CMD="$MAGIC_CMD"
1.6217 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.6218 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
1.6219 + for ac_dir in $ac_dummy; do
1.6220 + IFS="$lt_save_ifs"
1.6221 + test -z "$ac_dir" && ac_dir=.
1.6222 + if test -f $ac_dir/file; then
1.6223 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
1.6224 + if test -n "$file_magic_test_file"; then
1.6225 + case $deplibs_check_method in
1.6226 + "file_magic "*)
1.6227 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
1.6228 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.6229 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1.6230 + $EGREP "$file_magic_regex" > /dev/null; then
1.6231 + :
1.6232 + else
1.6233 + cat <<EOF 1>&2
1.6234 +
1.6235 +*** Warning: the command libtool uses to detect shared libraries,
1.6236 +*** $file_magic_cmd, produces output that libtool cannot recognize.
1.6237 +*** The result is that libtool may fail to recognize shared libraries
1.6238 +*** as such. This will affect the creation of libtool libraries that
1.6239 +*** depend on shared libraries, but programs linked with such libtool
1.6240 +*** libraries will work regardless of this problem. Nevertheless, you
1.6241 +*** may want to report the problem to your system manager and/or to
1.6242 +*** bug-libtool@gnu.org
1.6243 +
1.6244 +EOF
1.6245 + fi ;;
1.6246 + esac
1.6247 + fi
1.6248 + break
1.6249 + fi
1.6250 + done
1.6251 + IFS="$lt_save_ifs"
1.6252 + MAGIC_CMD="$lt_save_MAGIC_CMD"
1.6253 + ;;
1.6254 +esac
1.6255 +fi
1.6256 +
1.6257 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1.6258 +if test -n "$MAGIC_CMD"; then
1.6259 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
1.6260 +echo "${ECHO_T}$MAGIC_CMD" >&6
1.6261 +else
1.6262 + echo "$as_me:$LINENO: result: no" >&5
1.6263 +echo "${ECHO_T}no" >&6
1.6264 +fi
1.6265 +
1.6266 + else
1.6267 + MAGIC_CMD=:
1.6268 + fi
1.6269 +fi
1.6270 +
1.6271 + fi
1.6272 + ;;
1.6273 +esac
1.6274 +
1.6275 +enable_dlopen=no
1.6276 +enable_win32_dll=no
1.6277 +
1.6278 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1.6279 +if test "${enable_libtool_lock+set}" = set; then
1.6280 + enableval="$enable_libtool_lock"
1.6281 +
1.6282 +fi;
1.6283 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.6284 +
1.6285 +
1.6286 +# Check whether --with-pic or --without-pic was given.
1.6287 +if test "${with_pic+set}" = set; then
1.6288 + withval="$with_pic"
1.6289 + pic_mode="$withval"
1.6290 +else
1.6291 + pic_mode=default
1.6292 +fi;
1.6293 +test -z "$pic_mode" && pic_mode=default
1.6294 +
1.6295 +# Use C for the default configuration in the libtool script
1.6296 +tagname=
1.6297 +lt_save_CC="$CC"
1.6298 +ac_ext=c
1.6299 +ac_cpp='$CPP $CPPFLAGS'
1.6300 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.6301 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.6302 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.6303 +
1.6304 +
1.6305 +# Source file extension for C test sources.
1.6306 +ac_ext=c
1.6307 +
1.6308 +# Object file extension for compiled C test sources.
1.6309 +objext=o
1.6310 +objext=$objext
1.6311 +
1.6312 +# Code to be used in simple compile tests
1.6313 +lt_simple_compile_test_code="int some_variable = 0;\n"
1.6314 +
1.6315 +# Code to be used in simple link tests
1.6316 +lt_simple_link_test_code='int main(){return(0);}\n'
1.6317 +
1.6318 +
1.6319 +# If no C compiler was specified, use CC.
1.6320 +LTCC=${LTCC-"$CC"}
1.6321 +
1.6322 +# Allow CC to be a program name with arguments.
1.6323 +compiler=$CC
1.6324 +
1.6325 +
1.6326 +# save warnings/boilerplate of simple test code
1.6327 +ac_outfile=conftest.$ac_objext
1.6328 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.6329 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.6330 +_lt_compiler_boilerplate=`cat conftest.err`
1.6331 +$rm conftest*
1.6332 +
1.6333 +ac_outfile=conftest.$ac_objext
1.6334 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.6335 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.6336 +_lt_linker_boilerplate=`cat conftest.err`
1.6337 +$rm conftest*
1.6338 +
1.6339 +
1.6340 +#
1.6341 +# Check for any special shared library compilation flags.
1.6342 +#
1.6343 +lt_prog_cc_shlib=
1.6344 +if test "$GCC" = no; then
1.6345 + case $host_os in
1.6346 + sco3.2v5*)
1.6347 + lt_prog_cc_shlib='-belf'
1.6348 + ;;
1.6349 + esac
1.6350 +fi
1.6351 +if test -n "$lt_prog_cc_shlib"; then
1.6352 + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
1.6353 +echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
1.6354 + if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
1.6355 + else
1.6356 + { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
1.6357 +echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
1.6358 + lt_cv_prog_cc_can_build_shared=no
1.6359 + fi
1.6360 +fi
1.6361 +
1.6362 +
1.6363 +#
1.6364 +# Check to make sure the static flag actually works.
1.6365 +#
1.6366 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
1.6367 +echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
1.6368 +if test "${lt_prog_compiler_static_works+set}" = set; then
1.6369 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6370 +else
1.6371 + lt_prog_compiler_static_works=no
1.6372 + save_LDFLAGS="$LDFLAGS"
1.6373 + LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
1.6374 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
1.6375 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1.6376 + # The linker can only warn and ignore the option if not recognized
1.6377 + # So say no if there are warnings
1.6378 + if test -s conftest.err; then
1.6379 + # Append any errors to the config.log.
1.6380 + cat conftest.err 1>&5
1.6381 + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
1.6382 + $SED '/^$/d' conftest.err >conftest.er2
1.6383 + if diff conftest.exp conftest.er2 >/dev/null; then
1.6384 + lt_prog_compiler_static_works=yes
1.6385 + fi
1.6386 + else
1.6387 + lt_prog_compiler_static_works=yes
1.6388 + fi
1.6389 + fi
1.6390 + $rm conftest*
1.6391 + LDFLAGS="$save_LDFLAGS"
1.6392 +
1.6393 +fi
1.6394 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
1.6395 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1.6396 +
1.6397 +if test x"$lt_prog_compiler_static_works" = xyes; then
1.6398 + :
1.6399 +else
1.6400 + lt_prog_compiler_static=
1.6401 +fi
1.6402 +
1.6403 +
1.6404 +
1.6405 +
1.6406 +lt_prog_compiler_no_builtin_flag=
1.6407 +
1.6408 +if test "$GCC" = yes; then
1.6409 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.6410 +
1.6411 +
1.6412 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.6413 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
1.6414 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.6415 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6416 +else
1.6417 + lt_cv_prog_compiler_rtti_exceptions=no
1.6418 + ac_outfile=conftest.$ac_objext
1.6419 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.6420 + lt_compiler_flag="-fno-rtti -fno-exceptions"
1.6421 + # Insert the option either (1) after the last *FLAGS variable, or
1.6422 + # (2) before a word containing "conftest.", or (3) at the end.
1.6423 + # Note that $ac_compile itself does not contain backslashes and begins
1.6424 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.6425 + # The option is referenced via a variable to avoid confusing sed.
1.6426 + lt_compile=`echo "$ac_compile" | $SED \
1.6427 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.6428 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.6429 + -e 's:$: $lt_compiler_flag:'`
1.6430 + (eval echo "\"\$as_me:6427: $lt_compile\"" >&5)
1.6431 + (eval "$lt_compile" 2>conftest.err)
1.6432 + ac_status=$?
1.6433 + cat conftest.err >&5
1.6434 + echo "$as_me:6431: \$? = $ac_status" >&5
1.6435 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.6436 + # The compiler can only warn and ignore the option if not recognized
1.6437 + # So say no if there are warnings other than the usual output.
1.6438 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.6439 + $SED '/^$/d' conftest.err >conftest.er2
1.6440 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.6441 + lt_cv_prog_compiler_rtti_exceptions=yes
1.6442 + fi
1.6443 + fi
1.6444 + $rm conftest*
1.6445 +
1.6446 +fi
1.6447 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
1.6448 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.6449 +
1.6450 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
1.6451 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.6452 +else
1.6453 + :
1.6454 +fi
1.6455 +
1.6456 +fi
1.6457 +
1.6458 +lt_prog_compiler_wl=
1.6459 +lt_prog_compiler_pic=
1.6460 +lt_prog_compiler_static=
1.6461 +
1.6462 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
1.6463 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.6464 +
1.6465 + if test "$GCC" = yes; then
1.6466 + lt_prog_compiler_wl='-Wl,'
1.6467 + lt_prog_compiler_static='-static'
1.6468 +
1.6469 + case $host_os in
1.6470 + aix*)
1.6471 + # All AIX code is PIC.
1.6472 + if test "$host_cpu" = ia64; then
1.6473 + # AIX 5 now supports IA64 processor
1.6474 + lt_prog_compiler_static='-Bstatic'
1.6475 + fi
1.6476 + ;;
1.6477 +
1.6478 + amigaos*)
1.6479 + # FIXME: we need at least 68020 code to build shared libraries, but
1.6480 + # adding the `-m68020' flag to GCC prevents building anything better,
1.6481 + # like `-m68040'.
1.6482 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
1.6483 + ;;
1.6484 +
1.6485 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.6486 + # PIC is the default for these OSes.
1.6487 + ;;
1.6488 +
1.6489 + mingw* | pw32* | os2*)
1.6490 + # This hack is so that the source file can tell whether it is being
1.6491 + # built for inclusion in a dll (and should export symbols for example).
1.6492 + lt_prog_compiler_pic='-DDLL_EXPORT'
1.6493 + ;;
1.6494 +
1.6495 + darwin* | rhapsody*)
1.6496 + # PIC is the default on this platform
1.6497 + # Common symbols not allowed in MH_DYLIB files
1.6498 + lt_prog_compiler_pic='-fno-common'
1.6499 + ;;
1.6500 +
1.6501 + msdosdjgpp*)
1.6502 + # Just because we use GCC doesn't mean we suddenly get shared libraries
1.6503 + # on systems that don't support them.
1.6504 + lt_prog_compiler_can_build_shared=no
1.6505 + enable_shared=no
1.6506 + ;;
1.6507 +
1.6508 + sysv4*MP*)
1.6509 + if test -d /usr/nec; then
1.6510 + lt_prog_compiler_pic=-Kconform_pic
1.6511 + fi
1.6512 + ;;
1.6513 +
1.6514 + hpux*)
1.6515 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.6516 + # not for PA HP-UX.
1.6517 + case $host_cpu in
1.6518 + hppa*64*|ia64*)
1.6519 + # +Z the default
1.6520 + ;;
1.6521 + *)
1.6522 + lt_prog_compiler_pic='-fPIC'
1.6523 + ;;
1.6524 + esac
1.6525 + ;;
1.6526 +
1.6527 + *)
1.6528 + lt_prog_compiler_pic='-fPIC'
1.6529 + ;;
1.6530 + esac
1.6531 + else
1.6532 + # PORTME Check for flag to pass linker flags through the system compiler.
1.6533 + case $host_os in
1.6534 + aix*)
1.6535 + lt_prog_compiler_wl='-Wl,'
1.6536 + if test "$host_cpu" = ia64; then
1.6537 + # AIX 5 now supports IA64 processor
1.6538 + lt_prog_compiler_static='-Bstatic'
1.6539 + else
1.6540 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
1.6541 + fi
1.6542 + ;;
1.6543 + darwin*)
1.6544 + # PIC is the default on this platform
1.6545 + # Common symbols not allowed in MH_DYLIB files
1.6546 + case $cc_basename in
1.6547 + xlc*)
1.6548 + lt_prog_compiler_pic='-qnocommon'
1.6549 + lt_prog_compiler_wl='-Wl,'
1.6550 + ;;
1.6551 + esac
1.6552 + ;;
1.6553 +
1.6554 + mingw* | pw32* | os2*)
1.6555 + # This hack is so that the source file can tell whether it is being
1.6556 + # built for inclusion in a dll (and should export symbols for example).
1.6557 + lt_prog_compiler_pic='-DDLL_EXPORT'
1.6558 + ;;
1.6559 +
1.6560 + hpux9* | hpux10* | hpux11*)
1.6561 + lt_prog_compiler_wl='-Wl,'
1.6562 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.6563 + # not for PA HP-UX.
1.6564 + case $host_cpu in
1.6565 + hppa*64*|ia64*)
1.6566 + # +Z the default
1.6567 + ;;
1.6568 + *)
1.6569 + lt_prog_compiler_pic='+Z'
1.6570 + ;;
1.6571 + esac
1.6572 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.6573 + lt_prog_compiler_static='${wl}-a ${wl}archive'
1.6574 + ;;
1.6575 +
1.6576 + irix5* | irix6* | nonstopux*)
1.6577 + lt_prog_compiler_wl='-Wl,'
1.6578 + # PIC (with -KPIC) is the default.
1.6579 + lt_prog_compiler_static='-non_shared'
1.6580 + ;;
1.6581 +
1.6582 + newsos6)
1.6583 + lt_prog_compiler_pic='-KPIC'
1.6584 + lt_prog_compiler_static='-Bstatic'
1.6585 + ;;
1.6586 +
1.6587 + linux*)
1.6588 + case $cc_basename in
1.6589 + icc* | ecc*)
1.6590 + lt_prog_compiler_wl='-Wl,'
1.6591 + lt_prog_compiler_pic='-KPIC'
1.6592 + lt_prog_compiler_static='-static'
1.6593 + ;;
1.6594 + pgcc* | pgf77* | pgf90* | pgf95*)
1.6595 + # Portland Group compilers (*not* the Pentium gcc compiler,
1.6596 + # which looks to be a dead project)
1.6597 + lt_prog_compiler_wl='-Wl,'
1.6598 + lt_prog_compiler_pic='-fpic'
1.6599 + lt_prog_compiler_static='-Bstatic'
1.6600 + ;;
1.6601 + ccc*)
1.6602 + lt_prog_compiler_wl='-Wl,'
1.6603 + # All Alpha code is PIC.
1.6604 + lt_prog_compiler_static='-non_shared'
1.6605 + ;;
1.6606 + esac
1.6607 + ;;
1.6608 +
1.6609 + osf3* | osf4* | osf5*)
1.6610 + lt_prog_compiler_wl='-Wl,'
1.6611 + # All OSF/1 code is PIC.
1.6612 + lt_prog_compiler_static='-non_shared'
1.6613 + ;;
1.6614 +
1.6615 + sco3.2v5*)
1.6616 + lt_prog_compiler_pic='-Kpic'
1.6617 + lt_prog_compiler_static='-dn'
1.6618 + ;;
1.6619 +
1.6620 + solaris*)
1.6621 + lt_prog_compiler_pic='-KPIC'
1.6622 + lt_prog_compiler_static='-Bstatic'
1.6623 + case $cc_basename in
1.6624 + f77* | f90* | f95*)
1.6625 + lt_prog_compiler_wl='-Qoption ld ';;
1.6626 + *)
1.6627 + lt_prog_compiler_wl='-Wl,';;
1.6628 + esac
1.6629 + ;;
1.6630 +
1.6631 + sunos4*)
1.6632 + lt_prog_compiler_wl='-Qoption ld '
1.6633 + lt_prog_compiler_pic='-PIC'
1.6634 + lt_prog_compiler_static='-Bstatic'
1.6635 + ;;
1.6636 +
1.6637 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.6638 + lt_prog_compiler_wl='-Wl,'
1.6639 + lt_prog_compiler_pic='-KPIC'
1.6640 + lt_prog_compiler_static='-Bstatic'
1.6641 + ;;
1.6642 +
1.6643 + sysv4*MP*)
1.6644 + if test -d /usr/nec ;then
1.6645 + lt_prog_compiler_pic='-Kconform_pic'
1.6646 + lt_prog_compiler_static='-Bstatic'
1.6647 + fi
1.6648 + ;;
1.6649 +
1.6650 + unicos*)
1.6651 + lt_prog_compiler_wl='-Wl,'
1.6652 + lt_prog_compiler_can_build_shared=no
1.6653 + ;;
1.6654 +
1.6655 + uts4*)
1.6656 + lt_prog_compiler_pic='-pic'
1.6657 + lt_prog_compiler_static='-Bstatic'
1.6658 + ;;
1.6659 +
1.6660 + *)
1.6661 + lt_prog_compiler_can_build_shared=no
1.6662 + ;;
1.6663 + esac
1.6664 + fi
1.6665 +
1.6666 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
1.6667 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1.6668 +
1.6669 +#
1.6670 +# Check to make sure the PIC flag actually works.
1.6671 +#
1.6672 +if test -n "$lt_prog_compiler_pic"; then
1.6673 +
1.6674 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
1.6675 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1.6676 +if test "${lt_prog_compiler_pic_works+set}" = set; then
1.6677 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6678 +else
1.6679 + lt_prog_compiler_pic_works=no
1.6680 + ac_outfile=conftest.$ac_objext
1.6681 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.6682 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
1.6683 + # Insert the option either (1) after the last *FLAGS variable, or
1.6684 + # (2) before a word containing "conftest.", or (3) at the end.
1.6685 + # Note that $ac_compile itself does not contain backslashes and begins
1.6686 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.6687 + # The option is referenced via a variable to avoid confusing sed.
1.6688 + lt_compile=`echo "$ac_compile" | $SED \
1.6689 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.6690 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.6691 + -e 's:$: $lt_compiler_flag:'`
1.6692 + (eval echo "\"\$as_me:6689: $lt_compile\"" >&5)
1.6693 + (eval "$lt_compile" 2>conftest.err)
1.6694 + ac_status=$?
1.6695 + cat conftest.err >&5
1.6696 + echo "$as_me:6693: \$? = $ac_status" >&5
1.6697 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.6698 + # The compiler can only warn and ignore the option if not recognized
1.6699 + # So say no if there are warnings other than the usual output.
1.6700 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.6701 + $SED '/^$/d' conftest.err >conftest.er2
1.6702 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.6703 + lt_prog_compiler_pic_works=yes
1.6704 + fi
1.6705 + fi
1.6706 + $rm conftest*
1.6707 +
1.6708 +fi
1.6709 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
1.6710 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
1.6711 +
1.6712 +if test x"$lt_prog_compiler_pic_works" = xyes; then
1.6713 + case $lt_prog_compiler_pic in
1.6714 + "" | " "*) ;;
1.6715 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
1.6716 + esac
1.6717 +else
1.6718 + lt_prog_compiler_pic=
1.6719 + lt_prog_compiler_can_build_shared=no
1.6720 +fi
1.6721 +
1.6722 +fi
1.6723 +case $host_os in
1.6724 + # For platforms which do not support PIC, -DPIC is meaningless:
1.6725 + *djgpp*)
1.6726 + lt_prog_compiler_pic=
1.6727 + ;;
1.6728 + *)
1.6729 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.6730 + ;;
1.6731 +esac
1.6732 +
1.6733 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1.6734 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1.6735 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
1.6736 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.6737 +else
1.6738 + lt_cv_prog_compiler_c_o=no
1.6739 + $rm -r conftest 2>/dev/null
1.6740 + mkdir conftest
1.6741 + cd conftest
1.6742 + mkdir out
1.6743 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.6744 +
1.6745 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1.6746 + # Insert the option either (1) after the last *FLAGS variable, or
1.6747 + # (2) before a word containing "conftest.", or (3) at the end.
1.6748 + # Note that $ac_compile itself does not contain backslashes and begins
1.6749 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.6750 + lt_compile=`echo "$ac_compile" | $SED \
1.6751 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.6752 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.6753 + -e 's:$: $lt_compiler_flag:'`
1.6754 + (eval echo "\"\$as_me:6751: $lt_compile\"" >&5)
1.6755 + (eval "$lt_compile" 2>out/conftest.err)
1.6756 + ac_status=$?
1.6757 + cat out/conftest.err >&5
1.6758 + echo "$as_me:6755: \$? = $ac_status" >&5
1.6759 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1.6760 + then
1.6761 + # The compiler can only warn and ignore the option if not recognized
1.6762 + # So say no if there are warnings
1.6763 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1.6764 + $SED '/^$/d' out/conftest.err >out/conftest.er2
1.6765 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.6766 + lt_cv_prog_compiler_c_o=yes
1.6767 + fi
1.6768 + fi
1.6769 + chmod u+w . 2>&5
1.6770 + $rm conftest*
1.6771 + # SGI C++ compiler will create directory out/ii_files/ for
1.6772 + # template instantiation
1.6773 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1.6774 + $rm out/* && rmdir out
1.6775 + cd ..
1.6776 + rmdir conftest
1.6777 + $rm conftest*
1.6778 +
1.6779 +fi
1.6780 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
1.6781 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1.6782 +
1.6783 +
1.6784 +hard_links="nottested"
1.6785 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
1.6786 + # do not overwrite the value of need_locks provided by the user
1.6787 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
1.6788 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.6789 + hard_links=yes
1.6790 + $rm conftest*
1.6791 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.6792 + touch conftest.a
1.6793 + ln conftest.a conftest.b 2>&5 || hard_links=no
1.6794 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.6795 + echo "$as_me:$LINENO: result: $hard_links" >&5
1.6796 +echo "${ECHO_T}$hard_links" >&6
1.6797 + if test "$hard_links" = no; then
1.6798 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.6799 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.6800 + need_locks=warn
1.6801 + fi
1.6802 +else
1.6803 + need_locks=no
1.6804 +fi
1.6805 +
1.6806 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.6807 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.6808 +
1.6809 + runpath_var=
1.6810 + allow_undefined_flag=
1.6811 + enable_shared_with_static_runtimes=no
1.6812 + archive_cmds=
1.6813 + archive_expsym_cmds=
1.6814 + old_archive_From_new_cmds=
1.6815 + old_archive_from_expsyms_cmds=
1.6816 + export_dynamic_flag_spec=
1.6817 + whole_archive_flag_spec=
1.6818 + thread_safe_flag_spec=
1.6819 + hardcode_libdir_flag_spec=
1.6820 + hardcode_libdir_flag_spec_ld=
1.6821 + hardcode_libdir_separator=
1.6822 + hardcode_direct=no
1.6823 + hardcode_minus_L=no
1.6824 + hardcode_shlibpath_var=unsupported
1.6825 + link_all_deplibs=unknown
1.6826 + hardcode_automatic=no
1.6827 + module_cmds=
1.6828 + module_expsym_cmds=
1.6829 + always_export_symbols=no
1.6830 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.6831 + # include_expsyms should be a list of space-separated symbols to be *always*
1.6832 + # included in the symbol list
1.6833 + include_expsyms=
1.6834 + # exclude_expsyms can be an extended regexp of symbols to exclude
1.6835 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
1.6836 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1.6837 + # as well as any symbol that contains `d'.
1.6838 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
1.6839 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1.6840 + # platforms (ab)use it in PIC code, but their linkers get confused if
1.6841 + # the symbol is explicitly referenced. Since portable code cannot
1.6842 + # rely on this symbol name, it's probably fine to never include it in
1.6843 + # preloaded symbol tables.
1.6844 + extract_expsyms_cmds=
1.6845 + # Just being paranoid about ensuring that cc_basename is set.
1.6846 + for cc_temp in $compiler""; do
1.6847 + case $cc_temp in
1.6848 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.6849 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.6850 + \-*) ;;
1.6851 + *) break;;
1.6852 + esac
1.6853 +done
1.6854 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.6855 +
1.6856 + case $host_os in
1.6857 + cygwin* | mingw* | pw32*)
1.6858 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
1.6859 + # When not using gcc, we currently assume that we are using
1.6860 + # Microsoft Visual C++.
1.6861 + if test "$GCC" != yes; then
1.6862 + with_gnu_ld=no
1.6863 + fi
1.6864 + ;;
1.6865 + openbsd*)
1.6866 + with_gnu_ld=no
1.6867 + ;;
1.6868 + esac
1.6869 +
1.6870 + ld_shlibs=yes
1.6871 + if test "$with_gnu_ld" = yes; then
1.6872 + # If archive_cmds runs LD, not CC, wlarc should be empty
1.6873 + wlarc='${wl}'
1.6874 +
1.6875 + # Set some defaults for GNU ld with shared library support. These
1.6876 + # are reset later if shared libraries are not supported. Putting them
1.6877 + # here allows them to be overridden if necessary.
1.6878 + runpath_var=LD_RUN_PATH
1.6879 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
1.6880 + export_dynamic_flag_spec='${wl}--export-dynamic'
1.6881 + # ancient GNU ld didn't support --whole-archive et. al.
1.6882 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.6883 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.6884 + else
1.6885 + whole_archive_flag_spec=
1.6886 + fi
1.6887 + supports_anon_versioning=no
1.6888 + case `$LD -v 2>/dev/null` in
1.6889 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1.6890 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.6891 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.6892 + *\ 2.11.*) ;; # other 2.11 versions
1.6893 + *) supports_anon_versioning=yes ;;
1.6894 + esac
1.6895 +
1.6896 + # See if GNU ld supports shared libraries.
1.6897 + case $host_os in
1.6898 + aix3* | aix4* | aix5*)
1.6899 + # On AIX/PPC, the GNU linker is very broken
1.6900 + if test "$host_cpu" != ia64; then
1.6901 + ld_shlibs=no
1.6902 + cat <<EOF 1>&2
1.6903 +
1.6904 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1.6905 +*** to be unable to reliably create shared libraries on AIX.
1.6906 +*** Therefore, libtool is disabling shared libraries support. If you
1.6907 +*** really care for shared libraries, you may want to modify your PATH
1.6908 +*** so that a non-GNU linker is found, and then restart.
1.6909 +
1.6910 +EOF
1.6911 + fi
1.6912 + ;;
1.6913 +
1.6914 + amigaos*)
1.6915 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.6916 + hardcode_libdir_flag_spec='-L$libdir'
1.6917 + hardcode_minus_L=yes
1.6918 +
1.6919 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1.6920 + # that the semantics of dynamic libraries on AmigaOS, at least up
1.6921 + # to version 4, is to share data among multiple programs linked
1.6922 + # with the same dynamic library. Since this doesn't match the
1.6923 + # behavior of shared libraries on other platforms, we can't use
1.6924 + # them.
1.6925 + ld_shlibs=no
1.6926 + ;;
1.6927 +
1.6928 + beos*)
1.6929 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.6930 + allow_undefined_flag=unsupported
1.6931 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.6932 + # support --undefined. This deserves some investigation. FIXME
1.6933 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.6934 + else
1.6935 + ld_shlibs=no
1.6936 + fi
1.6937 + ;;
1.6938 +
1.6939 + cygwin* | mingw* | pw32*)
1.6940 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
1.6941 + # as there is no search path for DLLs.
1.6942 + hardcode_libdir_flag_spec='-L$libdir'
1.6943 + allow_undefined_flag=unsupported
1.6944 + always_export_symbols=no
1.6945 + enable_shared_with_static_runtimes=yes
1.6946 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.6947 +
1.6948 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.6949 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.6950 + # If the export-symbols file already is a .def file (1st line
1.6951 + # is EXPORTS), use it as is; otherwise, prepend...
1.6952 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.6953 + cp $export_symbols $output_objdir/$soname.def;
1.6954 + else
1.6955 + echo EXPORTS > $output_objdir/$soname.def;
1.6956 + cat $export_symbols >> $output_objdir/$soname.def;
1.6957 + fi~
1.6958 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.6959 + else
1.6960 + ld_shlibs=no
1.6961 + fi
1.6962 + ;;
1.6963 +
1.6964 + linux*)
1.6965 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.6966 + tmp_addflag=
1.6967 + case $cc_basename,$host_cpu in
1.6968 + pgcc*) # Portland Group C compiler
1.6969 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.6970 + tmp_addflag=' $pic_flag'
1.6971 + ;;
1.6972 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
1.6973 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.6974 + tmp_addflag=' $pic_flag -Mnomain' ;;
1.6975 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1.6976 + tmp_addflag=' -i_dynamic' ;;
1.6977 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
1.6978 + tmp_addflag=' -i_dynamic -nofor_main' ;;
1.6979 + ifc* | ifort*) # Intel Fortran compiler
1.6980 + tmp_addflag=' -nofor_main' ;;
1.6981 + esac
1.6982 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.6983 +
1.6984 + if test $supports_anon_versioning = yes; then
1.6985 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1.6986 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.6987 + $echo "local: *; };" >> $output_objdir/$libname.ver~
1.6988 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.6989 + fi
1.6990 + else
1.6991 + ld_shlibs=no
1.6992 + fi
1.6993 + ;;
1.6994 +
1.6995 + netbsd*)
1.6996 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.6997 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1.6998 + wlarc=
1.6999 + else
1.7000 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.7001 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.7002 + fi
1.7003 + ;;
1.7004 +
1.7005 + solaris* | sysv5*)
1.7006 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1.7007 + ld_shlibs=no
1.7008 + cat <<EOF 1>&2
1.7009 +
1.7010 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1.7011 +*** create shared libraries on Solaris systems. Therefore, libtool
1.7012 +*** is disabling shared libraries support. We urge you to upgrade GNU
1.7013 +*** binutils to release 2.9.1 or newer. Another option is to modify
1.7014 +*** your PATH or compiler configuration so that the native linker is
1.7015 +*** used, and then restart.
1.7016 +
1.7017 +EOF
1.7018 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.7019 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.7020 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.7021 + else
1.7022 + ld_shlibs=no
1.7023 + fi
1.7024 + ;;
1.7025 +
1.7026 + sunos4*)
1.7027 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.7028 + wlarc=
1.7029 + hardcode_direct=yes
1.7030 + hardcode_shlibpath_var=no
1.7031 + ;;
1.7032 +
1.7033 + *)
1.7034 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.7035 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.7036 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.7037 + else
1.7038 + ld_shlibs=no
1.7039 + fi
1.7040 + ;;
1.7041 + esac
1.7042 +
1.7043 + if test "$ld_shlibs" = no; then
1.7044 + runpath_var=
1.7045 + hardcode_libdir_flag_spec=
1.7046 + export_dynamic_flag_spec=
1.7047 + whole_archive_flag_spec=
1.7048 + fi
1.7049 + else
1.7050 + # PORTME fill in a description of your system's linker (not GNU ld)
1.7051 + case $host_os in
1.7052 + aix3*)
1.7053 + allow_undefined_flag=unsupported
1.7054 + always_export_symbols=yes
1.7055 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1.7056 + # Note: this linker hardcodes the directories in LIBPATH if there
1.7057 + # are no directories specified by -L.
1.7058 + hardcode_minus_L=yes
1.7059 + if test "$GCC" = yes && test -z "$link_static_flag"; then
1.7060 + # Neither direct hardcoding nor static linking is supported with a
1.7061 + # broken collect2.
1.7062 + hardcode_direct=unsupported
1.7063 + fi
1.7064 + ;;
1.7065 +
1.7066 + aix4* | aix5*)
1.7067 + if test "$host_cpu" = ia64; then
1.7068 + # On IA64, the linker does run time linking by default, so we don't
1.7069 + # have to do anything special.
1.7070 + aix_use_runtimelinking=no
1.7071 + exp_sym_flag='-Bexport'
1.7072 + no_entry_flag=""
1.7073 + else
1.7074 + # If we're using GNU nm, then we don't want the "-C" option.
1.7075 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.7076 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.7077 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.7078 + else
1.7079 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.7080 + fi
1.7081 + aix_use_runtimelinking=no
1.7082 +
1.7083 + # Test if we are trying to use run time linking or normal
1.7084 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.7085 + # need to do runtime linking.
1.7086 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1.7087 + for ld_flag in $LDFLAGS; do
1.7088 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1.7089 + aix_use_runtimelinking=yes
1.7090 + break
1.7091 + fi
1.7092 + done
1.7093 + esac
1.7094 +
1.7095 + exp_sym_flag='-bexport'
1.7096 + no_entry_flag='-bnoentry'
1.7097 + fi
1.7098 +
1.7099 + # When large executables or shared objects are built, AIX ld can
1.7100 + # have problems creating the table of contents. If linking a library
1.7101 + # or program results in "error TOC overflow" add -mminimal-toc to
1.7102 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.7103 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.7104 +
1.7105 + archive_cmds=''
1.7106 + hardcode_direct=yes
1.7107 + hardcode_libdir_separator=':'
1.7108 + link_all_deplibs=yes
1.7109 +
1.7110 + if test "$GCC" = yes; then
1.7111 + case $host_os in aix4.[012]|aix4.[012].*)
1.7112 + # We only want to do this on AIX 4.2 and lower, the check
1.7113 + # below for broken collect2 doesn't work under 4.3+
1.7114 + collect2name=`${CC} -print-prog-name=collect2`
1.7115 + if test -f "$collect2name" && \
1.7116 + strings "$collect2name" | grep resolve_lib_name >/dev/null
1.7117 + then
1.7118 + # We have reworked collect2
1.7119 + hardcode_direct=yes
1.7120 + else
1.7121 + # We have old collect2
1.7122 + hardcode_direct=unsupported
1.7123 + # It fails to find uninstalled libraries when the uninstalled
1.7124 + # path is not listed in the libpath. Setting hardcode_minus_L
1.7125 + # to unsupported forces relinking
1.7126 + hardcode_minus_L=yes
1.7127 + hardcode_libdir_flag_spec='-L$libdir'
1.7128 + hardcode_libdir_separator=
1.7129 + fi
1.7130 + esac
1.7131 + shared_flag='-shared'
1.7132 + if test "$aix_use_runtimelinking" = yes; then
1.7133 + shared_flag="$shared_flag "'${wl}-G'
1.7134 + fi
1.7135 + else
1.7136 + # not using gcc
1.7137 + if test "$host_cpu" = ia64; then
1.7138 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.7139 + # chokes on -Wl,-G. The following line is correct:
1.7140 + shared_flag='-G'
1.7141 + else
1.7142 + if test "$aix_use_runtimelinking" = yes; then
1.7143 + shared_flag='${wl}-G'
1.7144 + else
1.7145 + shared_flag='${wl}-bM:SRE'
1.7146 + fi
1.7147 + fi
1.7148 + fi
1.7149 +
1.7150 + # It seems that -bexpall does not export symbols beginning with
1.7151 + # underscore (_), so it is better to generate a list of symbols to export.
1.7152 + always_export_symbols=yes
1.7153 + if test "$aix_use_runtimelinking" = yes; then
1.7154 + # Warning - without using the other runtime loading flags (-brtl),
1.7155 + # -berok will link without error, but may produce a broken library.
1.7156 + allow_undefined_flag='-berok'
1.7157 + # Determine the default libpath from the value encoded in an empty executable.
1.7158 + cat >conftest.$ac_ext <<_ACEOF
1.7159 +/* confdefs.h. */
1.7160 +_ACEOF
1.7161 +cat confdefs.h >>conftest.$ac_ext
1.7162 +cat >>conftest.$ac_ext <<_ACEOF
1.7163 +/* end confdefs.h. */
1.7164 +
1.7165 +int
1.7166 +main ()
1.7167 +{
1.7168 +
1.7169 + ;
1.7170 + return 0;
1.7171 +}
1.7172 +_ACEOF
1.7173 +rm -f conftest.$ac_objext conftest$ac_exeext
1.7174 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.7175 + (eval $ac_link) 2>conftest.er1
1.7176 + ac_status=$?
1.7177 + grep -v '^ *+' conftest.er1 >conftest.err
1.7178 + rm -f conftest.er1
1.7179 + cat conftest.err >&5
1.7180 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7181 + (exit $ac_status); } &&
1.7182 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.7183 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.7184 + (eval $ac_try) 2>&5
1.7185 + ac_status=$?
1.7186 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7187 + (exit $ac_status); }; } &&
1.7188 + { ac_try='test -s conftest$ac_exeext'
1.7189 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.7190 + (eval $ac_try) 2>&5
1.7191 + ac_status=$?
1.7192 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7193 + (exit $ac_status); }; }; then
1.7194 +
1.7195 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.7196 +}'`
1.7197 +# Check for a 64-bit object if we didn't find anything.
1.7198 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.7199 +}'`; fi
1.7200 +else
1.7201 + echo "$as_me: failed program was:" >&5
1.7202 +sed 's/^/| /' conftest.$ac_ext >&5
1.7203 +
1.7204 +fi
1.7205 +rm -f conftest.err conftest.$ac_objext \
1.7206 + conftest$ac_exeext conftest.$ac_ext
1.7207 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.7208 +
1.7209 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.7210 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.7211 + else
1.7212 + if test "$host_cpu" = ia64; then
1.7213 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
1.7214 + allow_undefined_flag="-z nodefs"
1.7215 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1.7216 + else
1.7217 + # Determine the default libpath from the value encoded in an empty executable.
1.7218 + cat >conftest.$ac_ext <<_ACEOF
1.7219 +/* confdefs.h. */
1.7220 +_ACEOF
1.7221 +cat confdefs.h >>conftest.$ac_ext
1.7222 +cat >>conftest.$ac_ext <<_ACEOF
1.7223 +/* end confdefs.h. */
1.7224 +
1.7225 +int
1.7226 +main ()
1.7227 +{
1.7228 +
1.7229 + ;
1.7230 + return 0;
1.7231 +}
1.7232 +_ACEOF
1.7233 +rm -f conftest.$ac_objext conftest$ac_exeext
1.7234 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.7235 + (eval $ac_link) 2>conftest.er1
1.7236 + ac_status=$?
1.7237 + grep -v '^ *+' conftest.er1 >conftest.err
1.7238 + rm -f conftest.er1
1.7239 + cat conftest.err >&5
1.7240 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7241 + (exit $ac_status); } &&
1.7242 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.7243 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.7244 + (eval $ac_try) 2>&5
1.7245 + ac_status=$?
1.7246 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7247 + (exit $ac_status); }; } &&
1.7248 + { ac_try='test -s conftest$ac_exeext'
1.7249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.7250 + (eval $ac_try) 2>&5
1.7251 + ac_status=$?
1.7252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7253 + (exit $ac_status); }; }; then
1.7254 +
1.7255 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.7256 +}'`
1.7257 +# Check for a 64-bit object if we didn't find anything.
1.7258 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.7259 +}'`; fi
1.7260 +else
1.7261 + echo "$as_me: failed program was:" >&5
1.7262 +sed 's/^/| /' conftest.$ac_ext >&5
1.7263 +
1.7264 +fi
1.7265 +rm -f conftest.err conftest.$ac_objext \
1.7266 + conftest$ac_exeext conftest.$ac_ext
1.7267 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.7268 +
1.7269 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
1.7270 + # Warning - without using the other run time loading flags,
1.7271 + # -berok will link without error, but may produce a broken library.
1.7272 + no_undefined_flag=' ${wl}-bernotok'
1.7273 + allow_undefined_flag=' ${wl}-berok'
1.7274 + # -bexpall does not export symbols beginning with underscore (_)
1.7275 + always_export_symbols=yes
1.7276 + # Exported symbols can be pulled into shared objects from archives
1.7277 + whole_archive_flag_spec=' '
1.7278 + archive_cmds_need_lc=yes
1.7279 + # This is similar to how AIX traditionally builds its shared libraries.
1.7280 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.7281 + fi
1.7282 + fi
1.7283 + ;;
1.7284 +
1.7285 + amigaos*)
1.7286 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.7287 + hardcode_libdir_flag_spec='-L$libdir'
1.7288 + hardcode_minus_L=yes
1.7289 + # see comment about different semantics on the GNU ld section
1.7290 + ld_shlibs=no
1.7291 + ;;
1.7292 +
1.7293 + bsdi[45]*)
1.7294 + export_dynamic_flag_spec=-rdynamic
1.7295 + ;;
1.7296 +
1.7297 + cygwin* | mingw* | pw32*)
1.7298 + # When not using gcc, we currently assume that we are using
1.7299 + # Microsoft Visual C++.
1.7300 + # hardcode_libdir_flag_spec is actually meaningless, as there is
1.7301 + # no search path for DLLs.
1.7302 + hardcode_libdir_flag_spec=' '
1.7303 + allow_undefined_flag=unsupported
1.7304 + # Tell ltmain to make .lib files, not .a files.
1.7305 + libext=lib
1.7306 + # Tell ltmain to make .dll files, not .so files.
1.7307 + shrext_cmds=".dll"
1.7308 + # FIXME: Setting linknames here is a bad hack.
1.7309 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.7310 + # The linker will automatically build a .lib file if we build a DLL.
1.7311 + old_archive_From_new_cmds='true'
1.7312 + # FIXME: Should let the user specify the lib program.
1.7313 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.7314 + fix_srcfile_path='`cygpath -w "$srcfile"`'
1.7315 + enable_shared_with_static_runtimes=yes
1.7316 + ;;
1.7317 +
1.7318 + darwin* | rhapsody*)
1.7319 + case $host_os in
1.7320 + rhapsody* | darwin1.[012])
1.7321 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
1.7322 + ;;
1.7323 + *) # Darwin 1.3 on
1.7324 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.7325 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.7326 + else
1.7327 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.7328 + 10.[012])
1.7329 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.7330 + ;;
1.7331 + 10.*)
1.7332 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
1.7333 + ;;
1.7334 + esac
1.7335 + fi
1.7336 + ;;
1.7337 + esac
1.7338 + archive_cmds_need_lc=no
1.7339 + hardcode_direct=no
1.7340 + hardcode_automatic=yes
1.7341 + hardcode_shlibpath_var=unsupported
1.7342 + whole_archive_flag_spec=''
1.7343 + link_all_deplibs=yes
1.7344 + if test "$GCC" = yes ; then
1.7345 + output_verbose_link_cmd='echo'
1.7346 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.7347 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.7348 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.7349 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.7350 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.7351 + else
1.7352 + case $cc_basename in
1.7353 + xlc*)
1.7354 + output_verbose_link_cmd='echo'
1.7355 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.7356 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.7357 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.7358 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.7359 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.7360 + ;;
1.7361 + *)
1.7362 + ld_shlibs=no
1.7363 + ;;
1.7364 + esac
1.7365 + fi
1.7366 + ;;
1.7367 +
1.7368 + dgux*)
1.7369 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7370 + hardcode_libdir_flag_spec='-L$libdir'
1.7371 + hardcode_shlibpath_var=no
1.7372 + ;;
1.7373 +
1.7374 + freebsd1*)
1.7375 + ld_shlibs=no
1.7376 + ;;
1.7377 +
1.7378 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1.7379 + # support. Future versions do this automatically, but an explicit c++rt0.o
1.7380 + # does not break anything, and helps significantly (at the cost of a little
1.7381 + # extra space).
1.7382 + freebsd2.2*)
1.7383 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1.7384 + hardcode_libdir_flag_spec='-R$libdir'
1.7385 + hardcode_direct=yes
1.7386 + hardcode_shlibpath_var=no
1.7387 + ;;
1.7388 +
1.7389 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.7390 + freebsd2*)
1.7391 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.7392 + hardcode_direct=yes
1.7393 + hardcode_minus_L=yes
1.7394 + hardcode_shlibpath_var=no
1.7395 + ;;
1.7396 +
1.7397 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.7398 + freebsd* | kfreebsd*-gnu | dragonfly*)
1.7399 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1.7400 + hardcode_libdir_flag_spec='-R$libdir'
1.7401 + hardcode_direct=yes
1.7402 + hardcode_shlibpath_var=no
1.7403 + ;;
1.7404 +
1.7405 + hpux9*)
1.7406 + if test "$GCC" = yes; then
1.7407 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.7408 + else
1.7409 + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.7410 + fi
1.7411 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1.7412 + hardcode_libdir_separator=:
1.7413 + hardcode_direct=yes
1.7414 +
1.7415 + # hardcode_minus_L: Not really in the search PATH,
1.7416 + # but as the default location of the library.
1.7417 + hardcode_minus_L=yes
1.7418 + export_dynamic_flag_spec='${wl}-E'
1.7419 + ;;
1.7420 +
1.7421 + hpux10* | hpux11*)
1.7422 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.7423 + case $host_cpu in
1.7424 + hppa*64*|ia64*)
1.7425 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.7426 + ;;
1.7427 + *)
1.7428 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.7429 + ;;
1.7430 + esac
1.7431 + else
1.7432 + case $host_cpu in
1.7433 + hppa*64*|ia64*)
1.7434 + archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7435 + ;;
1.7436 + *)
1.7437 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.7438 + ;;
1.7439 + esac
1.7440 + fi
1.7441 + if test "$with_gnu_ld" = no; then
1.7442 + case $host_cpu in
1.7443 + hppa*64*)
1.7444 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1.7445 + hardcode_libdir_flag_spec_ld='+b $libdir'
1.7446 + hardcode_libdir_separator=:
1.7447 + hardcode_direct=no
1.7448 + hardcode_shlibpath_var=no
1.7449 + ;;
1.7450 + ia64*)
1.7451 + hardcode_libdir_flag_spec='-L$libdir'
1.7452 + hardcode_direct=no
1.7453 + hardcode_shlibpath_var=no
1.7454 +
1.7455 + # hardcode_minus_L: Not really in the search PATH,
1.7456 + # but as the default location of the library.
1.7457 + hardcode_minus_L=yes
1.7458 + ;;
1.7459 + *)
1.7460 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
1.7461 + hardcode_libdir_separator=:
1.7462 + hardcode_direct=yes
1.7463 + export_dynamic_flag_spec='${wl}-E'
1.7464 +
1.7465 + # hardcode_minus_L: Not really in the search PATH,
1.7466 + # but as the default location of the library.
1.7467 + hardcode_minus_L=yes
1.7468 + ;;
1.7469 + esac
1.7470 + fi
1.7471 + ;;
1.7472 +
1.7473 + irix5* | irix6* | nonstopux*)
1.7474 + if test "$GCC" = yes; then
1.7475 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.7476 + else
1.7477 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.7478 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
1.7479 + fi
1.7480 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.7481 + hardcode_libdir_separator=:
1.7482 + link_all_deplibs=yes
1.7483 + ;;
1.7484 +
1.7485 + netbsd*)
1.7486 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.7487 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.7488 + else
1.7489 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1.7490 + fi
1.7491 + hardcode_libdir_flag_spec='-R$libdir'
1.7492 + hardcode_direct=yes
1.7493 + hardcode_shlibpath_var=no
1.7494 + ;;
1.7495 +
1.7496 + newsos6)
1.7497 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7498 + hardcode_direct=yes
1.7499 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.7500 + hardcode_libdir_separator=:
1.7501 + hardcode_shlibpath_var=no
1.7502 + ;;
1.7503 +
1.7504 + openbsd*)
1.7505 + hardcode_direct=yes
1.7506 + hardcode_shlibpath_var=no
1.7507 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.7508 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.7509 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1.7510 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1.7511 + export_dynamic_flag_spec='${wl}-E'
1.7512 + else
1.7513 + case $host_os in
1.7514 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
1.7515 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.7516 + hardcode_libdir_flag_spec='-R$libdir'
1.7517 + ;;
1.7518 + *)
1.7519 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.7520 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
1.7521 + ;;
1.7522 + esac
1.7523 + fi
1.7524 + ;;
1.7525 +
1.7526 + os2*)
1.7527 + hardcode_libdir_flag_spec='-L$libdir'
1.7528 + hardcode_minus_L=yes
1.7529 + allow_undefined_flag=unsupported
1.7530 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1.7531 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.7532 + ;;
1.7533 +
1.7534 + osf3*)
1.7535 + if test "$GCC" = yes; then
1.7536 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.7537 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.7538 + else
1.7539 + allow_undefined_flag=' -expect_unresolved \*'
1.7540 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.7541 + fi
1.7542 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.7543 + hardcode_libdir_separator=:
1.7544 + ;;
1.7545 +
1.7546 + osf4* | osf5*) # as osf3* with the addition of -msym flag
1.7547 + if test "$GCC" = yes; then
1.7548 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
1.7549 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.7550 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.7551 + else
1.7552 + allow_undefined_flag=' -expect_unresolved \*'
1.7553 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.7554 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.7555 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.7556 +
1.7557 + # Both c and cxx compiler support -rpath directly
1.7558 + hardcode_libdir_flag_spec='-rpath $libdir'
1.7559 + fi
1.7560 + hardcode_libdir_separator=:
1.7561 + ;;
1.7562 +
1.7563 + sco3.2v5*)
1.7564 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7565 + hardcode_shlibpath_var=no
1.7566 + export_dynamic_flag_spec='${wl}-Bexport'
1.7567 + runpath_var=LD_RUN_PATH
1.7568 + hardcode_runpath_var=yes
1.7569 + ;;
1.7570 +
1.7571 + solaris*)
1.7572 + no_undefined_flag=' -z text'
1.7573 + if test "$GCC" = yes; then
1.7574 + wlarc='${wl}'
1.7575 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.7576 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.7577 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1.7578 + else
1.7579 + wlarc=''
1.7580 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7581 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.7582 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.7583 + fi
1.7584 + hardcode_libdir_flag_spec='-R$libdir'
1.7585 + hardcode_shlibpath_var=no
1.7586 + case $host_os in
1.7587 + solaris2.[0-5] | solaris2.[0-5].*) ;;
1.7588 + *)
1.7589 + # The compiler driver will combine linker options so we
1.7590 + # cannot just pass the convience library names through
1.7591 + # without $wl, iff we do not link with $LD.
1.7592 + # Luckily, gcc supports the same syntax we need for Sun Studio.
1.7593 + # Supported since Solaris 2.6 (maybe 2.5.1?)
1.7594 + case $wlarc in
1.7595 + '')
1.7596 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
1.7597 + *)
1.7598 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
1.7599 + esac ;;
1.7600 + esac
1.7601 + link_all_deplibs=yes
1.7602 + ;;
1.7603 +
1.7604 + sunos4*)
1.7605 + if test "x$host_vendor" = xsequent; then
1.7606 + # Use $CC to link under sequent, because it throws in some extra .o
1.7607 + # files that make .init and .fini sections work.
1.7608 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.7609 + else
1.7610 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.7611 + fi
1.7612 + hardcode_libdir_flag_spec='-L$libdir'
1.7613 + hardcode_direct=yes
1.7614 + hardcode_minus_L=yes
1.7615 + hardcode_shlibpath_var=no
1.7616 + ;;
1.7617 +
1.7618 + sysv4)
1.7619 + case $host_vendor in
1.7620 + sni)
1.7621 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7622 + hardcode_direct=yes # is this really true???
1.7623 + ;;
1.7624 + siemens)
1.7625 + ## LD is ld it makes a PLAMLIB
1.7626 + ## CC just makes a GrossModule.
1.7627 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.7628 + reload_cmds='$CC -r -o $output$reload_objs'
1.7629 + hardcode_direct=no
1.7630 + ;;
1.7631 + motorola)
1.7632 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7633 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
1.7634 + ;;
1.7635 + esac
1.7636 + runpath_var='LD_RUN_PATH'
1.7637 + hardcode_shlibpath_var=no
1.7638 + ;;
1.7639 +
1.7640 + sysv4.3*)
1.7641 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7642 + hardcode_shlibpath_var=no
1.7643 + export_dynamic_flag_spec='-Bexport'
1.7644 + ;;
1.7645 +
1.7646 + sysv4*MP*)
1.7647 + if test -d /usr/nec; then
1.7648 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7649 + hardcode_shlibpath_var=no
1.7650 + runpath_var=LD_RUN_PATH
1.7651 + hardcode_runpath_var=yes
1.7652 + ld_shlibs=yes
1.7653 + fi
1.7654 + ;;
1.7655 +
1.7656 + sysv4.2uw2*)
1.7657 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.7658 + hardcode_direct=yes
1.7659 + hardcode_minus_L=no
1.7660 + hardcode_shlibpath_var=no
1.7661 + hardcode_runpath_var=yes
1.7662 + runpath_var=LD_RUN_PATH
1.7663 + ;;
1.7664 +
1.7665 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
1.7666 + no_undefined_flag='${wl}-z ${wl}text'
1.7667 + if test "$GCC" = yes; then
1.7668 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.7669 + else
1.7670 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.7671 + fi
1.7672 + runpath_var='LD_RUN_PATH'
1.7673 + hardcode_shlibpath_var=no
1.7674 + ;;
1.7675 +
1.7676 + sysv5*)
1.7677 + no_undefined_flag=' -z text'
1.7678 + # $CC -shared without GNU ld will not create a library from C++
1.7679 + # object files and a static libstdc++, better avoid it by now
1.7680 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7681 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.7682 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.7683 + hardcode_libdir_flag_spec=
1.7684 + hardcode_shlibpath_var=no
1.7685 + runpath_var='LD_RUN_PATH'
1.7686 + ;;
1.7687 +
1.7688 + uts4*)
1.7689 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.7690 + hardcode_libdir_flag_spec='-L$libdir'
1.7691 + hardcode_shlibpath_var=no
1.7692 + ;;
1.7693 +
1.7694 + *)
1.7695 + ld_shlibs=no
1.7696 + ;;
1.7697 + esac
1.7698 + fi
1.7699 +
1.7700 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
1.7701 +echo "${ECHO_T}$ld_shlibs" >&6
1.7702 +test "$ld_shlibs" = no && can_build_shared=no
1.7703 +
1.7704 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.7705 +if test "$GCC" = yes; then
1.7706 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.7707 +fi
1.7708 +
1.7709 +#
1.7710 +# Do we need to explicitly link libc?
1.7711 +#
1.7712 +case "x$archive_cmds_need_lc" in
1.7713 +x|xyes)
1.7714 + # Assume -lc should be added
1.7715 + archive_cmds_need_lc=yes
1.7716 +
1.7717 + if test "$enable_shared" = yes && test "$GCC" = yes; then
1.7718 + case $archive_cmds in
1.7719 + *'~'*)
1.7720 + # FIXME: we may have to deal with multi-command sequences.
1.7721 + ;;
1.7722 + '$CC '*)
1.7723 + # Test whether the compiler implicitly links with -lc since on some
1.7724 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
1.7725 + # to ld, don't add -lc before -lgcc.
1.7726 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
1.7727 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.7728 + $rm conftest*
1.7729 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.7730 +
1.7731 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.7732 + (eval $ac_compile) 2>&5
1.7733 + ac_status=$?
1.7734 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7735 + (exit $ac_status); } 2>conftest.err; then
1.7736 + soname=conftest
1.7737 + lib=conftest
1.7738 + libobjs=conftest.$ac_objext
1.7739 + deplibs=
1.7740 + wl=$lt_prog_compiler_wl
1.7741 + compiler_flags=-v
1.7742 + linker_flags=-v
1.7743 + verstring=
1.7744 + output_objdir=.
1.7745 + libname=conftest
1.7746 + lt_save_allow_undefined_flag=$allow_undefined_flag
1.7747 + allow_undefined_flag=
1.7748 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.7749 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.7750 + ac_status=$?
1.7751 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.7752 + (exit $ac_status); }
1.7753 + then
1.7754 + archive_cmds_need_lc=no
1.7755 + else
1.7756 + archive_cmds_need_lc=yes
1.7757 + fi
1.7758 + allow_undefined_flag=$lt_save_allow_undefined_flag
1.7759 + else
1.7760 + cat conftest.err 1>&5
1.7761 + fi
1.7762 + $rm conftest*
1.7763 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
1.7764 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
1.7765 + ;;
1.7766 + esac
1.7767 + fi
1.7768 + ;;
1.7769 +esac
1.7770 +
1.7771 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
1.7772 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.7773 +library_names_spec=
1.7774 +libname_spec='lib$name'
1.7775 +soname_spec=
1.7776 +shrext_cmds=".so"
1.7777 +postinstall_cmds=
1.7778 +postuninstall_cmds=
1.7779 +finish_cmds=
1.7780 +finish_eval=
1.7781 +shlibpath_var=
1.7782 +shlibpath_overrides_runpath=unknown
1.7783 +version_type=none
1.7784 +dynamic_linker="$host_os ld.so"
1.7785 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.7786 +if test "$GCC" = yes; then
1.7787 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.7788 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1.7789 + # if the path contains ";" then we assume it to be the separator
1.7790 + # otherwise default to the standard path separator (i.e. ":") - it is
1.7791 + # assumed that no part of a normal pathname contains ";" but that should
1.7792 + # okay in the real world where ";" in dirpaths is itself problematic.
1.7793 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.7794 + else
1.7795 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.7796 + fi
1.7797 +else
1.7798 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.7799 +fi
1.7800 +need_lib_prefix=unknown
1.7801 +hardcode_into_libs=no
1.7802 +
1.7803 +# when you set need_version to no, make sure it does not cause -set_version
1.7804 +# flags to be left without arguments
1.7805 +need_version=unknown
1.7806 +
1.7807 +case $host_os in
1.7808 +aix3*)
1.7809 + version_type=linux
1.7810 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.7811 + shlibpath_var=LIBPATH
1.7812 +
1.7813 + # AIX 3 has no versioning support, so we append a major version to the name.
1.7814 + soname_spec='${libname}${release}${shared_ext}$major'
1.7815 + ;;
1.7816 +
1.7817 +aix4* | aix5*)
1.7818 + version_type=linux
1.7819 + need_lib_prefix=no
1.7820 + need_version=no
1.7821 + hardcode_into_libs=yes
1.7822 + if test "$host_cpu" = ia64; then
1.7823 + # AIX 5 supports IA64
1.7824 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.7825 + shlibpath_var=LD_LIBRARY_PATH
1.7826 + else
1.7827 + # With GCC up to 2.95.x, collect2 would create an import file
1.7828 + # for dependence libraries. The import file would start with
1.7829 + # the line `#! .'. This would cause the generated library to
1.7830 + # depend on `.', always an invalid library. This was fixed in
1.7831 + # development snapshots of GCC prior to 3.0.
1.7832 + case $host_os in
1.7833 + aix4 | aix4.[01] | aix4.[01].*)
1.7834 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1.7835 + echo ' yes '
1.7836 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1.7837 + :
1.7838 + else
1.7839 + can_build_shared=no
1.7840 + fi
1.7841 + ;;
1.7842 + esac
1.7843 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1.7844 + # soname into executable. Probably we can add versioning support to
1.7845 + # collect2, so additional links can be useful in future.
1.7846 + if test "$aix_use_runtimelinking" = yes; then
1.7847 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1.7848 + # instead of lib<name>.a to let people know that these are not
1.7849 + # typical AIX shared libraries.
1.7850 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.7851 + else
1.7852 + # We preserve .a as extension for shared libraries through AIX4.2
1.7853 + # and later when we are not doing run time linking.
1.7854 + library_names_spec='${libname}${release}.a $libname.a'
1.7855 + soname_spec='${libname}${release}${shared_ext}$major'
1.7856 + fi
1.7857 + shlibpath_var=LIBPATH
1.7858 + fi
1.7859 + ;;
1.7860 +
1.7861 +amigaos*)
1.7862 + library_names_spec='$libname.ixlibrary $libname.a'
1.7863 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.7864 + 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'
1.7865 + ;;
1.7866 +
1.7867 +beos*)
1.7868 + library_names_spec='${libname}${shared_ext}'
1.7869 + dynamic_linker="$host_os ld.so"
1.7870 + shlibpath_var=LIBRARY_PATH
1.7871 + ;;
1.7872 +
1.7873 +bsdi[45]*)
1.7874 + version_type=linux
1.7875 + need_version=no
1.7876 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.7877 + soname_spec='${libname}${release}${shared_ext}$major'
1.7878 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.7879 + shlibpath_var=LD_LIBRARY_PATH
1.7880 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1.7881 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1.7882 + # the default ld.so.conf also contains /usr/contrib/lib and
1.7883 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1.7884 + # libtool to hard-code these into programs
1.7885 + ;;
1.7886 +
1.7887 +cygwin* | mingw* | pw32*)
1.7888 + version_type=windows
1.7889 + shrext_cmds=".dll"
1.7890 + need_version=no
1.7891 + need_lib_prefix=no
1.7892 +
1.7893 + case $GCC,$host_os in
1.7894 + yes,cygwin* | yes,mingw* | yes,pw32*)
1.7895 + library_names_spec='$libname.dll.a'
1.7896 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.7897 + postinstall_cmds='base_file=`basename \${file}`~
1.7898 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.7899 + dldir=$destdir/`dirname \$dlpath`~
1.7900 + test -d \$dldir || mkdir -p \$dldir~
1.7901 + $install_prog $dir/$dlname \$dldir/$dlname~
1.7902 + chmod a+x \$dldir/$dlname'
1.7903 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.7904 + dlpath=$dir/\$dldll~
1.7905 + $rm \$dlpath'
1.7906 + shlibpath_overrides_runpath=yes
1.7907 +
1.7908 + case $host_os in
1.7909 + cygwin*)
1.7910 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.7911 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.7912 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.7913 + ;;
1.7914 + mingw*)
1.7915 + # MinGW DLLs use traditional 'lib' prefix
1.7916 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.7917 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.7918 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1.7919 + # It is most probably a Windows format PATH printed by
1.7920 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1.7921 + # path with ; separators, and with drive letters. We can handle the
1.7922 + # drive letters (cygwin fileutils understands them), so leave them,
1.7923 + # especially as we might pass files found there to a mingw objdump,
1.7924 + # which wouldn't understand a cygwinified path. Ahh.
1.7925 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.7926 + else
1.7927 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.7928 + fi
1.7929 + ;;
1.7930 + pw32*)
1.7931 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1.7932 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.7933 + ;;
1.7934 + esac
1.7935 + ;;
1.7936 +
1.7937 + *)
1.7938 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.7939 + ;;
1.7940 + esac
1.7941 + dynamic_linker='Win32 ld.exe'
1.7942 + # FIXME: first we should search . and the directory the executable is in
1.7943 + shlibpath_var=PATH
1.7944 + ;;
1.7945 +
1.7946 +darwin* | rhapsody*)
1.7947 + dynamic_linker="$host_os dyld"
1.7948 + version_type=darwin
1.7949 + need_lib_prefix=no
1.7950 + need_version=no
1.7951 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.7952 + soname_spec='${libname}${release}${major}$shared_ext'
1.7953 + shlibpath_overrides_runpath=yes
1.7954 + shlibpath_var=DYLD_LIBRARY_PATH
1.7955 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.7956 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.7957 + if test "$GCC" = yes; then
1.7958 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1.7959 + else
1.7960 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.7961 + fi
1.7962 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.7963 + ;;
1.7964 +
1.7965 +dgux*)
1.7966 + version_type=linux
1.7967 + need_lib_prefix=no
1.7968 + need_version=no
1.7969 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1.7970 + soname_spec='${libname}${release}${shared_ext}$major'
1.7971 + shlibpath_var=LD_LIBRARY_PATH
1.7972 + ;;
1.7973 +
1.7974 +freebsd1*)
1.7975 + dynamic_linker=no
1.7976 + ;;
1.7977 +
1.7978 +kfreebsd*-gnu)
1.7979 + version_type=linux
1.7980 + need_lib_prefix=no
1.7981 + need_version=no
1.7982 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.7983 + soname_spec='${libname}${release}${shared_ext}$major'
1.7984 + shlibpath_var=LD_LIBRARY_PATH
1.7985 + shlibpath_overrides_runpath=no
1.7986 + hardcode_into_libs=yes
1.7987 + dynamic_linker='GNU ld.so'
1.7988 + ;;
1.7989 +
1.7990 +freebsd* | dragonfly*)
1.7991 + # DragonFly does not have aout. When/if they implement a new
1.7992 + # versioning mechanism, adjust this.
1.7993 + if test -x /usr/bin/objformat; then
1.7994 + objformat=`/usr/bin/objformat`
1.7995 + else
1.7996 + case $host_os in
1.7997 + freebsd[123]*) objformat=aout ;;
1.7998 + *) objformat=elf ;;
1.7999 + esac
1.8000 + fi
1.8001 + version_type=freebsd-$objformat
1.8002 + case $version_type in
1.8003 + freebsd-elf*)
1.8004 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.8005 + need_version=no
1.8006 + need_lib_prefix=no
1.8007 + ;;
1.8008 + freebsd-*)
1.8009 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.8010 + need_version=yes
1.8011 + ;;
1.8012 + esac
1.8013 + shlibpath_var=LD_LIBRARY_PATH
1.8014 + case $host_os in
1.8015 + freebsd2*)
1.8016 + shlibpath_overrides_runpath=yes
1.8017 + ;;
1.8018 + freebsd3.[01]* | freebsdelf3.[01]*)
1.8019 + shlibpath_overrides_runpath=yes
1.8020 + hardcode_into_libs=yes
1.8021 + ;;
1.8022 + *) # from 3.2 on
1.8023 + shlibpath_overrides_runpath=no
1.8024 + hardcode_into_libs=yes
1.8025 + ;;
1.8026 + esac
1.8027 + ;;
1.8028 +
1.8029 +gnu*)
1.8030 + version_type=linux
1.8031 + need_lib_prefix=no
1.8032 + need_version=no
1.8033 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1.8034 + soname_spec='${libname}${release}${shared_ext}$major'
1.8035 + shlibpath_var=LD_LIBRARY_PATH
1.8036 + hardcode_into_libs=yes
1.8037 + ;;
1.8038 +
1.8039 +hpux9* | hpux10* | hpux11*)
1.8040 + # Give a soname corresponding to the major version so that dld.sl refuses to
1.8041 + # link against other versions.
1.8042 + version_type=sunos
1.8043 + need_lib_prefix=no
1.8044 + need_version=no
1.8045 + case $host_cpu in
1.8046 + ia64*)
1.8047 + shrext_cmds='.so'
1.8048 + hardcode_into_libs=yes
1.8049 + dynamic_linker="$host_os dld.so"
1.8050 + shlibpath_var=LD_LIBRARY_PATH
1.8051 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.8052 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8053 + soname_spec='${libname}${release}${shared_ext}$major'
1.8054 + if test "X$HPUX_IA64_MODE" = X32; then
1.8055 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.8056 + else
1.8057 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.8058 + fi
1.8059 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.8060 + ;;
1.8061 + hppa*64*)
1.8062 + shrext_cmds='.sl'
1.8063 + hardcode_into_libs=yes
1.8064 + dynamic_linker="$host_os dld.sl"
1.8065 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1.8066 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.8067 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8068 + soname_spec='${libname}${release}${shared_ext}$major'
1.8069 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1.8070 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.8071 + ;;
1.8072 + *)
1.8073 + shrext_cmds='.sl'
1.8074 + dynamic_linker="$host_os dld.sl"
1.8075 + shlibpath_var=SHLIB_PATH
1.8076 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.8077 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8078 + soname_spec='${libname}${release}${shared_ext}$major'
1.8079 + ;;
1.8080 + esac
1.8081 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1.8082 + postinstall_cmds='chmod 555 $lib'
1.8083 + ;;
1.8084 +
1.8085 +irix5* | irix6* | nonstopux*)
1.8086 + case $host_os in
1.8087 + nonstopux*) version_type=nonstopux ;;
1.8088 + *)
1.8089 + if test "$lt_cv_prog_gnu_ld" = yes; then
1.8090 + version_type=linux
1.8091 + else
1.8092 + version_type=irix
1.8093 + fi ;;
1.8094 + esac
1.8095 + need_lib_prefix=no
1.8096 + need_version=no
1.8097 + soname_spec='${libname}${release}${shared_ext}$major'
1.8098 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.8099 + case $host_os in
1.8100 + irix5* | nonstopux*)
1.8101 + libsuff= shlibsuff=
1.8102 + ;;
1.8103 + *)
1.8104 + case $LD in # libtool.m4 will add one of these switches to LD
1.8105 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1.8106 + libsuff= shlibsuff= libmagic=32-bit;;
1.8107 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1.8108 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1.8109 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1.8110 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.8111 + *) libsuff= shlibsuff= libmagic=never-match;;
1.8112 + esac
1.8113 + ;;
1.8114 + esac
1.8115 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1.8116 + shlibpath_overrides_runpath=no
1.8117 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1.8118 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.8119 + hardcode_into_libs=yes
1.8120 + ;;
1.8121 +
1.8122 +# No shared lib support for Linux oldld, aout, or coff.
1.8123 +linux*oldld* | linux*aout* | linux*coff*)
1.8124 + dynamic_linker=no
1.8125 + ;;
1.8126 +
1.8127 +# This must be Linux ELF.
1.8128 +linux*)
1.8129 + version_type=linux
1.8130 + need_lib_prefix=no
1.8131 + need_version=no
1.8132 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8133 + soname_spec='${libname}${release}${shared_ext}$major'
1.8134 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.8135 + shlibpath_var=LD_LIBRARY_PATH
1.8136 + shlibpath_overrides_runpath=no
1.8137 + # This implies no fast_install, which is unacceptable.
1.8138 + # Some rework will be needed to allow for fast_install
1.8139 + # before this can be enabled.
1.8140 + hardcode_into_libs=yes
1.8141 +
1.8142 + # Append ld.so.conf contents to the search path
1.8143 + if test -f /etc/ld.so.conf; then
1.8144 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.8145 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.8146 + fi
1.8147 +
1.8148 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1.8149 + # powerpc, because MkLinux only supported shared libraries with the
1.8150 + # GNU dynamic linker. Since this was broken with cross compilers,
1.8151 + # most powerpc-linux boxes support dynamic linking these days and
1.8152 + # people can always --disable-shared, the test was removed, and we
1.8153 + # assume the GNU/Linux dynamic linker is in use.
1.8154 + dynamic_linker='GNU/Linux ld.so'
1.8155 + ;;
1.8156 +
1.8157 +knetbsd*-gnu)
1.8158 + version_type=linux
1.8159 + need_lib_prefix=no
1.8160 + need_version=no
1.8161 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.8162 + soname_spec='${libname}${release}${shared_ext}$major'
1.8163 + shlibpath_var=LD_LIBRARY_PATH
1.8164 + shlibpath_overrides_runpath=no
1.8165 + hardcode_into_libs=yes
1.8166 + dynamic_linker='GNU ld.so'
1.8167 + ;;
1.8168 +
1.8169 +netbsd*)
1.8170 + version_type=sunos
1.8171 + need_lib_prefix=no
1.8172 + need_version=no
1.8173 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.8174 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.8175 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.8176 + dynamic_linker='NetBSD (a.out) ld.so'
1.8177 + else
1.8178 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.8179 + soname_spec='${libname}${release}${shared_ext}$major'
1.8180 + dynamic_linker='NetBSD ld.elf_so'
1.8181 + fi
1.8182 + shlibpath_var=LD_LIBRARY_PATH
1.8183 + shlibpath_overrides_runpath=yes
1.8184 + hardcode_into_libs=yes
1.8185 + ;;
1.8186 +
1.8187 +newsos6)
1.8188 + version_type=linux
1.8189 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8190 + shlibpath_var=LD_LIBRARY_PATH
1.8191 + shlibpath_overrides_runpath=yes
1.8192 + ;;
1.8193 +
1.8194 +nto-qnx*)
1.8195 + version_type=linux
1.8196 + need_lib_prefix=no
1.8197 + need_version=no
1.8198 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8199 + soname_spec='${libname}${release}${shared_ext}$major'
1.8200 + shlibpath_var=LD_LIBRARY_PATH
1.8201 + shlibpath_overrides_runpath=yes
1.8202 + ;;
1.8203 +
1.8204 +openbsd*)
1.8205 + version_type=sunos
1.8206 + need_lib_prefix=no
1.8207 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.8208 + case $host_os in
1.8209 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.8210 + *) need_version=no ;;
1.8211 + esac
1.8212 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.8213 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.8214 + shlibpath_var=LD_LIBRARY_PATH
1.8215 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.8216 + case $host_os in
1.8217 + openbsd2.[89] | openbsd2.[89].*)
1.8218 + shlibpath_overrides_runpath=no
1.8219 + ;;
1.8220 + *)
1.8221 + shlibpath_overrides_runpath=yes
1.8222 + ;;
1.8223 + esac
1.8224 + else
1.8225 + shlibpath_overrides_runpath=yes
1.8226 + fi
1.8227 + ;;
1.8228 +
1.8229 +os2*)
1.8230 + libname_spec='$name'
1.8231 + shrext_cmds=".dll"
1.8232 + need_lib_prefix=no
1.8233 + library_names_spec='$libname${shared_ext} $libname.a'
1.8234 + dynamic_linker='OS/2 ld.exe'
1.8235 + shlibpath_var=LIBPATH
1.8236 + ;;
1.8237 +
1.8238 +osf3* | osf4* | osf5*)
1.8239 + version_type=osf
1.8240 + need_lib_prefix=no
1.8241 + need_version=no
1.8242 + soname_spec='${libname}${release}${shared_ext}$major'
1.8243 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8244 + shlibpath_var=LD_LIBRARY_PATH
1.8245 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.8246 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.8247 + ;;
1.8248 +
1.8249 +sco3.2v5*)
1.8250 + version_type=osf
1.8251 + soname_spec='${libname}${release}${shared_ext}$major'
1.8252 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8253 + shlibpath_var=LD_LIBRARY_PATH
1.8254 + ;;
1.8255 +
1.8256 +solaris*)
1.8257 + version_type=linux
1.8258 + need_lib_prefix=no
1.8259 + need_version=no
1.8260 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8261 + soname_spec='${libname}${release}${shared_ext}$major'
1.8262 + shlibpath_var=LD_LIBRARY_PATH
1.8263 + shlibpath_overrides_runpath=yes
1.8264 + hardcode_into_libs=yes
1.8265 + # ldd complains unless libraries are executable
1.8266 + postinstall_cmds='chmod +x $lib'
1.8267 + ;;
1.8268 +
1.8269 +sunos4*)
1.8270 + version_type=sunos
1.8271 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.8272 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.8273 + shlibpath_var=LD_LIBRARY_PATH
1.8274 + shlibpath_overrides_runpath=yes
1.8275 + if test "$with_gnu_ld" = yes; then
1.8276 + need_lib_prefix=no
1.8277 + fi
1.8278 + need_version=yes
1.8279 + ;;
1.8280 +
1.8281 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.8282 + version_type=linux
1.8283 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8284 + soname_spec='${libname}${release}${shared_ext}$major'
1.8285 + shlibpath_var=LD_LIBRARY_PATH
1.8286 + case $host_vendor in
1.8287 + sni)
1.8288 + shlibpath_overrides_runpath=no
1.8289 + need_lib_prefix=no
1.8290 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1.8291 + runpath_var=LD_RUN_PATH
1.8292 + ;;
1.8293 + siemens)
1.8294 + need_lib_prefix=no
1.8295 + ;;
1.8296 + motorola)
1.8297 + need_lib_prefix=no
1.8298 + need_version=no
1.8299 + shlibpath_overrides_runpath=no
1.8300 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1.8301 + ;;
1.8302 + esac
1.8303 + ;;
1.8304 +
1.8305 +sysv4*MP*)
1.8306 + if test -d /usr/nec ;then
1.8307 + version_type=linux
1.8308 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1.8309 + soname_spec='$libname${shared_ext}.$major'
1.8310 + shlibpath_var=LD_LIBRARY_PATH
1.8311 + fi
1.8312 + ;;
1.8313 +
1.8314 +uts4*)
1.8315 + version_type=linux
1.8316 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.8317 + soname_spec='${libname}${release}${shared_ext}$major'
1.8318 + shlibpath_var=LD_LIBRARY_PATH
1.8319 + ;;
1.8320 +
1.8321 +*)
1.8322 + dynamic_linker=no
1.8323 + ;;
1.8324 +esac
1.8325 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1.8326 +echo "${ECHO_T}$dynamic_linker" >&6
1.8327 +test "$dynamic_linker" = no && can_build_shared=no
1.8328 +
1.8329 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1.8330 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.8331 +hardcode_action=
1.8332 +if test -n "$hardcode_libdir_flag_spec" || \
1.8333 + test -n "$runpath_var" || \
1.8334 + test "X$hardcode_automatic" = "Xyes" ; then
1.8335 +
1.8336 + # We can hardcode non-existant directories.
1.8337 + if test "$hardcode_direct" != no &&
1.8338 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1.8339 + # have to relink, otherwise we might link with an installed library
1.8340 + # when we should be linking with a yet-to-be-installed one
1.8341 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
1.8342 + test "$hardcode_minus_L" != no; then
1.8343 + # Linking always hardcodes the temporary library directory.
1.8344 + hardcode_action=relink
1.8345 + else
1.8346 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.8347 + hardcode_action=immediate
1.8348 + fi
1.8349 +else
1.8350 + # We cannot hardcode anything, or else we can only hardcode existing
1.8351 + # directories.
1.8352 + hardcode_action=unsupported
1.8353 +fi
1.8354 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
1.8355 +echo "${ECHO_T}$hardcode_action" >&6
1.8356 +
1.8357 +if test "$hardcode_action" = relink; then
1.8358 + # Fast installation is not supported
1.8359 + enable_fast_install=no
1.8360 +elif test "$shlibpath_overrides_runpath" = yes ||
1.8361 + test "$enable_shared" = no; then
1.8362 + # Fast installation is not necessary
1.8363 + enable_fast_install=needless
1.8364 +fi
1.8365 +
1.8366 +striplib=
1.8367 +old_striplib=
1.8368 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
1.8369 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.8370 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1.8371 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1.8372 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.8373 + echo "$as_me:$LINENO: result: yes" >&5
1.8374 +echo "${ECHO_T}yes" >&6
1.8375 +else
1.8376 +# FIXME - insert some real tests, host_os isn't really good enough
1.8377 + case $host_os in
1.8378 + darwin*)
1.8379 + if test -n "$STRIP" ; then
1.8380 + striplib="$STRIP -x"
1.8381 + echo "$as_me:$LINENO: result: yes" >&5
1.8382 +echo "${ECHO_T}yes" >&6
1.8383 + else
1.8384 + echo "$as_me:$LINENO: result: no" >&5
1.8385 +echo "${ECHO_T}no" >&6
1.8386 +fi
1.8387 + ;;
1.8388 + *)
1.8389 + echo "$as_me:$LINENO: result: no" >&5
1.8390 +echo "${ECHO_T}no" >&6
1.8391 + ;;
1.8392 + esac
1.8393 +fi
1.8394 +
1.8395 +if test "x$enable_dlopen" != xyes; then
1.8396 + enable_dlopen=unknown
1.8397 + enable_dlopen_self=unknown
1.8398 + enable_dlopen_self_static=unknown
1.8399 +else
1.8400 + lt_cv_dlopen=no
1.8401 + lt_cv_dlopen_libs=
1.8402 +
1.8403 + case $host_os in
1.8404 + beos*)
1.8405 + lt_cv_dlopen="load_add_on"
1.8406 + lt_cv_dlopen_libs=
1.8407 + lt_cv_dlopen_self=yes
1.8408 + ;;
1.8409 +
1.8410 + mingw* | pw32*)
1.8411 + lt_cv_dlopen="LoadLibrary"
1.8412 + lt_cv_dlopen_libs=
1.8413 + ;;
1.8414 +
1.8415 + cygwin*)
1.8416 + lt_cv_dlopen="dlopen"
1.8417 + lt_cv_dlopen_libs=
1.8418 + ;;
1.8419 +
1.8420 + darwin*)
1.8421 + # if libdl is installed we need to link against it
1.8422 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.8423 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.8424 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.8425 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8426 +else
1.8427 + ac_check_lib_save_LIBS=$LIBS
1.8428 +LIBS="-ldl $LIBS"
1.8429 +cat >conftest.$ac_ext <<_ACEOF
1.8430 +/* confdefs.h. */
1.8431 +_ACEOF
1.8432 +cat confdefs.h >>conftest.$ac_ext
1.8433 +cat >>conftest.$ac_ext <<_ACEOF
1.8434 +/* end confdefs.h. */
1.8435 +
1.8436 +/* Override any gcc2 internal prototype to avoid an error. */
1.8437 +#ifdef __cplusplus
1.8438 +extern "C"
1.8439 +#endif
1.8440 +/* We use char because int might match the return type of a gcc2
1.8441 + builtin and then its argument prototype would still apply. */
1.8442 +char dlopen ();
1.8443 +int
1.8444 +main ()
1.8445 +{
1.8446 +dlopen ();
1.8447 + ;
1.8448 + return 0;
1.8449 +}
1.8450 +_ACEOF
1.8451 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8452 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8453 + (eval $ac_link) 2>conftest.er1
1.8454 + ac_status=$?
1.8455 + grep -v '^ *+' conftest.er1 >conftest.err
1.8456 + rm -f conftest.er1
1.8457 + cat conftest.err >&5
1.8458 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8459 + (exit $ac_status); } &&
1.8460 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8461 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8462 + (eval $ac_try) 2>&5
1.8463 + ac_status=$?
1.8464 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8465 + (exit $ac_status); }; } &&
1.8466 + { ac_try='test -s conftest$ac_exeext'
1.8467 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8468 + (eval $ac_try) 2>&5
1.8469 + ac_status=$?
1.8470 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8471 + (exit $ac_status); }; }; then
1.8472 + ac_cv_lib_dl_dlopen=yes
1.8473 +else
1.8474 + echo "$as_me: failed program was:" >&5
1.8475 +sed 's/^/| /' conftest.$ac_ext >&5
1.8476 +
1.8477 +ac_cv_lib_dl_dlopen=no
1.8478 +fi
1.8479 +rm -f conftest.err conftest.$ac_objext \
1.8480 + conftest$ac_exeext conftest.$ac_ext
1.8481 +LIBS=$ac_check_lib_save_LIBS
1.8482 +fi
1.8483 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.8484 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.8485 +if test $ac_cv_lib_dl_dlopen = yes; then
1.8486 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.8487 +else
1.8488 +
1.8489 + lt_cv_dlopen="dyld"
1.8490 + lt_cv_dlopen_libs=
1.8491 + lt_cv_dlopen_self=yes
1.8492 +
1.8493 +fi
1.8494 +
1.8495 + ;;
1.8496 +
1.8497 + *)
1.8498 + echo "$as_me:$LINENO: checking for shl_load" >&5
1.8499 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1.8500 +if test "${ac_cv_func_shl_load+set}" = set; then
1.8501 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8502 +else
1.8503 + cat >conftest.$ac_ext <<_ACEOF
1.8504 +/* confdefs.h. */
1.8505 +_ACEOF
1.8506 +cat confdefs.h >>conftest.$ac_ext
1.8507 +cat >>conftest.$ac_ext <<_ACEOF
1.8508 +/* end confdefs.h. */
1.8509 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
1.8510 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.8511 +#define shl_load innocuous_shl_load
1.8512 +
1.8513 +/* System header to define __stub macros and hopefully few prototypes,
1.8514 + which can conflict with char shl_load (); below.
1.8515 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.8516 + <limits.h> exists even on freestanding compilers. */
1.8517 +
1.8518 +#ifdef __STDC__
1.8519 +# include <limits.h>
1.8520 +#else
1.8521 +# include <assert.h>
1.8522 +#endif
1.8523 +
1.8524 +#undef shl_load
1.8525 +
1.8526 +/* Override any gcc2 internal prototype to avoid an error. */
1.8527 +#ifdef __cplusplus
1.8528 +extern "C"
1.8529 +{
1.8530 +#endif
1.8531 +/* We use char because int might match the return type of a gcc2
1.8532 + builtin and then its argument prototype would still apply. */
1.8533 +char shl_load ();
1.8534 +/* The GNU C library defines this for functions which it implements
1.8535 + to always fail with ENOSYS. Some functions are actually named
1.8536 + something starting with __ and the normal name is an alias. */
1.8537 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
1.8538 +choke me
1.8539 +#else
1.8540 +char (*f) () = shl_load;
1.8541 +#endif
1.8542 +#ifdef __cplusplus
1.8543 +}
1.8544 +#endif
1.8545 +
1.8546 +int
1.8547 +main ()
1.8548 +{
1.8549 +return f != shl_load;
1.8550 + ;
1.8551 + return 0;
1.8552 +}
1.8553 +_ACEOF
1.8554 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8555 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8556 + (eval $ac_link) 2>conftest.er1
1.8557 + ac_status=$?
1.8558 + grep -v '^ *+' conftest.er1 >conftest.err
1.8559 + rm -f conftest.er1
1.8560 + cat conftest.err >&5
1.8561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8562 + (exit $ac_status); } &&
1.8563 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8564 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8565 + (eval $ac_try) 2>&5
1.8566 + ac_status=$?
1.8567 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8568 + (exit $ac_status); }; } &&
1.8569 + { ac_try='test -s conftest$ac_exeext'
1.8570 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8571 + (eval $ac_try) 2>&5
1.8572 + ac_status=$?
1.8573 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8574 + (exit $ac_status); }; }; then
1.8575 + ac_cv_func_shl_load=yes
1.8576 +else
1.8577 + echo "$as_me: failed program was:" >&5
1.8578 +sed 's/^/| /' conftest.$ac_ext >&5
1.8579 +
1.8580 +ac_cv_func_shl_load=no
1.8581 +fi
1.8582 +rm -f conftest.err conftest.$ac_objext \
1.8583 + conftest$ac_exeext conftest.$ac_ext
1.8584 +fi
1.8585 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
1.8586 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1.8587 +if test $ac_cv_func_shl_load = yes; then
1.8588 + lt_cv_dlopen="shl_load"
1.8589 +else
1.8590 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
1.8591 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1.8592 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.8593 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8594 +else
1.8595 + ac_check_lib_save_LIBS=$LIBS
1.8596 +LIBS="-ldld $LIBS"
1.8597 +cat >conftest.$ac_ext <<_ACEOF
1.8598 +/* confdefs.h. */
1.8599 +_ACEOF
1.8600 +cat confdefs.h >>conftest.$ac_ext
1.8601 +cat >>conftest.$ac_ext <<_ACEOF
1.8602 +/* end confdefs.h. */
1.8603 +
1.8604 +/* Override any gcc2 internal prototype to avoid an error. */
1.8605 +#ifdef __cplusplus
1.8606 +extern "C"
1.8607 +#endif
1.8608 +/* We use char because int might match the return type of a gcc2
1.8609 + builtin and then its argument prototype would still apply. */
1.8610 +char shl_load ();
1.8611 +int
1.8612 +main ()
1.8613 +{
1.8614 +shl_load ();
1.8615 + ;
1.8616 + return 0;
1.8617 +}
1.8618 +_ACEOF
1.8619 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8620 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8621 + (eval $ac_link) 2>conftest.er1
1.8622 + ac_status=$?
1.8623 + grep -v '^ *+' conftest.er1 >conftest.err
1.8624 + rm -f conftest.er1
1.8625 + cat conftest.err >&5
1.8626 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8627 + (exit $ac_status); } &&
1.8628 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8629 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8630 + (eval $ac_try) 2>&5
1.8631 + ac_status=$?
1.8632 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8633 + (exit $ac_status); }; } &&
1.8634 + { ac_try='test -s conftest$ac_exeext'
1.8635 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8636 + (eval $ac_try) 2>&5
1.8637 + ac_status=$?
1.8638 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8639 + (exit $ac_status); }; }; then
1.8640 + ac_cv_lib_dld_shl_load=yes
1.8641 +else
1.8642 + echo "$as_me: failed program was:" >&5
1.8643 +sed 's/^/| /' conftest.$ac_ext >&5
1.8644 +
1.8645 +ac_cv_lib_dld_shl_load=no
1.8646 +fi
1.8647 +rm -f conftest.err conftest.$ac_objext \
1.8648 + conftest$ac_exeext conftest.$ac_ext
1.8649 +LIBS=$ac_check_lib_save_LIBS
1.8650 +fi
1.8651 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
1.8652 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1.8653 +if test $ac_cv_lib_dld_shl_load = yes; then
1.8654 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1.8655 +else
1.8656 + echo "$as_me:$LINENO: checking for dlopen" >&5
1.8657 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1.8658 +if test "${ac_cv_func_dlopen+set}" = set; then
1.8659 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8660 +else
1.8661 + cat >conftest.$ac_ext <<_ACEOF
1.8662 +/* confdefs.h. */
1.8663 +_ACEOF
1.8664 +cat confdefs.h >>conftest.$ac_ext
1.8665 +cat >>conftest.$ac_ext <<_ACEOF
1.8666 +/* end confdefs.h. */
1.8667 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
1.8668 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.8669 +#define dlopen innocuous_dlopen
1.8670 +
1.8671 +/* System header to define __stub macros and hopefully few prototypes,
1.8672 + which can conflict with char dlopen (); below.
1.8673 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.8674 + <limits.h> exists even on freestanding compilers. */
1.8675 +
1.8676 +#ifdef __STDC__
1.8677 +# include <limits.h>
1.8678 +#else
1.8679 +# include <assert.h>
1.8680 +#endif
1.8681 +
1.8682 +#undef dlopen
1.8683 +
1.8684 +/* Override any gcc2 internal prototype to avoid an error. */
1.8685 +#ifdef __cplusplus
1.8686 +extern "C"
1.8687 +{
1.8688 +#endif
1.8689 +/* We use char because int might match the return type of a gcc2
1.8690 + builtin and then its argument prototype would still apply. */
1.8691 +char dlopen ();
1.8692 +/* The GNU C library defines this for functions which it implements
1.8693 + to always fail with ENOSYS. Some functions are actually named
1.8694 + something starting with __ and the normal name is an alias. */
1.8695 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
1.8696 +choke me
1.8697 +#else
1.8698 +char (*f) () = dlopen;
1.8699 +#endif
1.8700 +#ifdef __cplusplus
1.8701 +}
1.8702 +#endif
1.8703 +
1.8704 +int
1.8705 +main ()
1.8706 +{
1.8707 +return f != dlopen;
1.8708 + ;
1.8709 + return 0;
1.8710 +}
1.8711 +_ACEOF
1.8712 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8713 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8714 + (eval $ac_link) 2>conftest.er1
1.8715 + ac_status=$?
1.8716 + grep -v '^ *+' conftest.er1 >conftest.err
1.8717 + rm -f conftest.er1
1.8718 + cat conftest.err >&5
1.8719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8720 + (exit $ac_status); } &&
1.8721 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8722 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8723 + (eval $ac_try) 2>&5
1.8724 + ac_status=$?
1.8725 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8726 + (exit $ac_status); }; } &&
1.8727 + { ac_try='test -s conftest$ac_exeext'
1.8728 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8729 + (eval $ac_try) 2>&5
1.8730 + ac_status=$?
1.8731 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8732 + (exit $ac_status); }; }; then
1.8733 + ac_cv_func_dlopen=yes
1.8734 +else
1.8735 + echo "$as_me: failed program was:" >&5
1.8736 +sed 's/^/| /' conftest.$ac_ext >&5
1.8737 +
1.8738 +ac_cv_func_dlopen=no
1.8739 +fi
1.8740 +rm -f conftest.err conftest.$ac_objext \
1.8741 + conftest$ac_exeext conftest.$ac_ext
1.8742 +fi
1.8743 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
1.8744 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1.8745 +if test $ac_cv_func_dlopen = yes; then
1.8746 + lt_cv_dlopen="dlopen"
1.8747 +else
1.8748 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.8749 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.8750 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.8751 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8752 +else
1.8753 + ac_check_lib_save_LIBS=$LIBS
1.8754 +LIBS="-ldl $LIBS"
1.8755 +cat >conftest.$ac_ext <<_ACEOF
1.8756 +/* confdefs.h. */
1.8757 +_ACEOF
1.8758 +cat confdefs.h >>conftest.$ac_ext
1.8759 +cat >>conftest.$ac_ext <<_ACEOF
1.8760 +/* end confdefs.h. */
1.8761 +
1.8762 +/* Override any gcc2 internal prototype to avoid an error. */
1.8763 +#ifdef __cplusplus
1.8764 +extern "C"
1.8765 +#endif
1.8766 +/* We use char because int might match the return type of a gcc2
1.8767 + builtin and then its argument prototype would still apply. */
1.8768 +char dlopen ();
1.8769 +int
1.8770 +main ()
1.8771 +{
1.8772 +dlopen ();
1.8773 + ;
1.8774 + return 0;
1.8775 +}
1.8776 +_ACEOF
1.8777 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8778 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8779 + (eval $ac_link) 2>conftest.er1
1.8780 + ac_status=$?
1.8781 + grep -v '^ *+' conftest.er1 >conftest.err
1.8782 + rm -f conftest.er1
1.8783 + cat conftest.err >&5
1.8784 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8785 + (exit $ac_status); } &&
1.8786 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8787 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8788 + (eval $ac_try) 2>&5
1.8789 + ac_status=$?
1.8790 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8791 + (exit $ac_status); }; } &&
1.8792 + { ac_try='test -s conftest$ac_exeext'
1.8793 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8794 + (eval $ac_try) 2>&5
1.8795 + ac_status=$?
1.8796 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8797 + (exit $ac_status); }; }; then
1.8798 + ac_cv_lib_dl_dlopen=yes
1.8799 +else
1.8800 + echo "$as_me: failed program was:" >&5
1.8801 +sed 's/^/| /' conftest.$ac_ext >&5
1.8802 +
1.8803 +ac_cv_lib_dl_dlopen=no
1.8804 +fi
1.8805 +rm -f conftest.err conftest.$ac_objext \
1.8806 + conftest$ac_exeext conftest.$ac_ext
1.8807 +LIBS=$ac_check_lib_save_LIBS
1.8808 +fi
1.8809 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.8810 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.8811 +if test $ac_cv_lib_dl_dlopen = yes; then
1.8812 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.8813 +else
1.8814 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
1.8815 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1.8816 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
1.8817 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8818 +else
1.8819 + ac_check_lib_save_LIBS=$LIBS
1.8820 +LIBS="-lsvld $LIBS"
1.8821 +cat >conftest.$ac_ext <<_ACEOF
1.8822 +/* confdefs.h. */
1.8823 +_ACEOF
1.8824 +cat confdefs.h >>conftest.$ac_ext
1.8825 +cat >>conftest.$ac_ext <<_ACEOF
1.8826 +/* end confdefs.h. */
1.8827 +
1.8828 +/* Override any gcc2 internal prototype to avoid an error. */
1.8829 +#ifdef __cplusplus
1.8830 +extern "C"
1.8831 +#endif
1.8832 +/* We use char because int might match the return type of a gcc2
1.8833 + builtin and then its argument prototype would still apply. */
1.8834 +char dlopen ();
1.8835 +int
1.8836 +main ()
1.8837 +{
1.8838 +dlopen ();
1.8839 + ;
1.8840 + return 0;
1.8841 +}
1.8842 +_ACEOF
1.8843 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8844 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8845 + (eval $ac_link) 2>conftest.er1
1.8846 + ac_status=$?
1.8847 + grep -v '^ *+' conftest.er1 >conftest.err
1.8848 + rm -f conftest.er1
1.8849 + cat conftest.err >&5
1.8850 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8851 + (exit $ac_status); } &&
1.8852 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8853 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8854 + (eval $ac_try) 2>&5
1.8855 + ac_status=$?
1.8856 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8857 + (exit $ac_status); }; } &&
1.8858 + { ac_try='test -s conftest$ac_exeext'
1.8859 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8860 + (eval $ac_try) 2>&5
1.8861 + ac_status=$?
1.8862 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8863 + (exit $ac_status); }; }; then
1.8864 + ac_cv_lib_svld_dlopen=yes
1.8865 +else
1.8866 + echo "$as_me: failed program was:" >&5
1.8867 +sed 's/^/| /' conftest.$ac_ext >&5
1.8868 +
1.8869 +ac_cv_lib_svld_dlopen=no
1.8870 +fi
1.8871 +rm -f conftest.err conftest.$ac_objext \
1.8872 + conftest$ac_exeext conftest.$ac_ext
1.8873 +LIBS=$ac_check_lib_save_LIBS
1.8874 +fi
1.8875 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
1.8876 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1.8877 +if test $ac_cv_lib_svld_dlopen = yes; then
1.8878 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1.8879 +else
1.8880 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
1.8881 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1.8882 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.8883 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8884 +else
1.8885 + ac_check_lib_save_LIBS=$LIBS
1.8886 +LIBS="-ldld $LIBS"
1.8887 +cat >conftest.$ac_ext <<_ACEOF
1.8888 +/* confdefs.h. */
1.8889 +_ACEOF
1.8890 +cat confdefs.h >>conftest.$ac_ext
1.8891 +cat >>conftest.$ac_ext <<_ACEOF
1.8892 +/* end confdefs.h. */
1.8893 +
1.8894 +/* Override any gcc2 internal prototype to avoid an error. */
1.8895 +#ifdef __cplusplus
1.8896 +extern "C"
1.8897 +#endif
1.8898 +/* We use char because int might match the return type of a gcc2
1.8899 + builtin and then its argument prototype would still apply. */
1.8900 +char dld_link ();
1.8901 +int
1.8902 +main ()
1.8903 +{
1.8904 +dld_link ();
1.8905 + ;
1.8906 + return 0;
1.8907 +}
1.8908 +_ACEOF
1.8909 +rm -f conftest.$ac_objext conftest$ac_exeext
1.8910 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.8911 + (eval $ac_link) 2>conftest.er1
1.8912 + ac_status=$?
1.8913 + grep -v '^ *+' conftest.er1 >conftest.err
1.8914 + rm -f conftest.er1
1.8915 + cat conftest.err >&5
1.8916 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8917 + (exit $ac_status); } &&
1.8918 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.8919 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8920 + (eval $ac_try) 2>&5
1.8921 + ac_status=$?
1.8922 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8923 + (exit $ac_status); }; } &&
1.8924 + { ac_try='test -s conftest$ac_exeext'
1.8925 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.8926 + (eval $ac_try) 2>&5
1.8927 + ac_status=$?
1.8928 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.8929 + (exit $ac_status); }; }; then
1.8930 + ac_cv_lib_dld_dld_link=yes
1.8931 +else
1.8932 + echo "$as_me: failed program was:" >&5
1.8933 +sed 's/^/| /' conftest.$ac_ext >&5
1.8934 +
1.8935 +ac_cv_lib_dld_dld_link=no
1.8936 +fi
1.8937 +rm -f conftest.err conftest.$ac_objext \
1.8938 + conftest$ac_exeext conftest.$ac_ext
1.8939 +LIBS=$ac_check_lib_save_LIBS
1.8940 +fi
1.8941 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
1.8942 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1.8943 +if test $ac_cv_lib_dld_dld_link = yes; then
1.8944 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1.8945 +fi
1.8946 +
1.8947 +
1.8948 +fi
1.8949 +
1.8950 +
1.8951 +fi
1.8952 +
1.8953 +
1.8954 +fi
1.8955 +
1.8956 +
1.8957 +fi
1.8958 +
1.8959 +
1.8960 +fi
1.8961 +
1.8962 + ;;
1.8963 + esac
1.8964 +
1.8965 + if test "x$lt_cv_dlopen" != xno; then
1.8966 + enable_dlopen=yes
1.8967 + else
1.8968 + enable_dlopen=no
1.8969 + fi
1.8970 +
1.8971 + case $lt_cv_dlopen in
1.8972 + dlopen)
1.8973 + save_CPPFLAGS="$CPPFLAGS"
1.8974 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.8975 +
1.8976 + save_LDFLAGS="$LDFLAGS"
1.8977 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.8978 +
1.8979 + save_LIBS="$LIBS"
1.8980 + LIBS="$lt_cv_dlopen_libs $LIBS"
1.8981 +
1.8982 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
1.8983 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1.8984 +if test "${lt_cv_dlopen_self+set}" = set; then
1.8985 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.8986 +else
1.8987 + if test "$cross_compiling" = yes; then :
1.8988 + lt_cv_dlopen_self=cross
1.8989 +else
1.8990 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.8991 + lt_status=$lt_dlunknown
1.8992 + cat > conftest.$ac_ext <<EOF
1.8993 +#line 8990 "configure"
1.8994 +#include "confdefs.h"
1.8995 +
1.8996 +#if HAVE_DLFCN_H
1.8997 +#include <dlfcn.h>
1.8998 +#endif
1.8999 +
1.9000 +#include <stdio.h>
1.9001 +
1.9002 +#ifdef RTLD_GLOBAL
1.9003 +# define LT_DLGLOBAL RTLD_GLOBAL
1.9004 +#else
1.9005 +# ifdef DL_GLOBAL
1.9006 +# define LT_DLGLOBAL DL_GLOBAL
1.9007 +# else
1.9008 +# define LT_DLGLOBAL 0
1.9009 +# endif
1.9010 +#endif
1.9011 +
1.9012 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.9013 + find out it does not work in some platform. */
1.9014 +#ifndef LT_DLLAZY_OR_NOW
1.9015 +# ifdef RTLD_LAZY
1.9016 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.9017 +# else
1.9018 +# ifdef DL_LAZY
1.9019 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.9020 +# else
1.9021 +# ifdef RTLD_NOW
1.9022 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.9023 +# else
1.9024 +# ifdef DL_NOW
1.9025 +# define LT_DLLAZY_OR_NOW DL_NOW
1.9026 +# else
1.9027 +# define LT_DLLAZY_OR_NOW 0
1.9028 +# endif
1.9029 +# endif
1.9030 +# endif
1.9031 +# endif
1.9032 +#endif
1.9033 +
1.9034 +#ifdef __cplusplus
1.9035 +extern "C" void exit (int);
1.9036 +#endif
1.9037 +
1.9038 +void fnord() { int i=42;}
1.9039 +int main ()
1.9040 +{
1.9041 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.9042 + int status = $lt_dlunknown;
1.9043 +
1.9044 + if (self)
1.9045 + {
1.9046 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.9047 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.9048 + /* dlclose (self); */
1.9049 + }
1.9050 +
1.9051 + exit (status);
1.9052 +}
1.9053 +EOF
1.9054 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9055 + (eval $ac_link) 2>&5
1.9056 + ac_status=$?
1.9057 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9058 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.9059 + (./conftest; exit; ) >&5 2>/dev/null
1.9060 + lt_status=$?
1.9061 + case x$lt_status in
1.9062 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1.9063 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.9064 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
1.9065 + esac
1.9066 + else :
1.9067 + # compilation failed
1.9068 + lt_cv_dlopen_self=no
1.9069 + fi
1.9070 +fi
1.9071 +rm -fr conftest*
1.9072 +
1.9073 +
1.9074 +fi
1.9075 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
1.9076 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.9077 +
1.9078 + if test "x$lt_cv_dlopen_self" = xyes; then
1.9079 + LDFLAGS="$LDFLAGS $link_static_flag"
1.9080 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
1.9081 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1.9082 +if test "${lt_cv_dlopen_self_static+set}" = set; then
1.9083 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.9084 +else
1.9085 + if test "$cross_compiling" = yes; then :
1.9086 + lt_cv_dlopen_self_static=cross
1.9087 +else
1.9088 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.9089 + lt_status=$lt_dlunknown
1.9090 + cat > conftest.$ac_ext <<EOF
1.9091 +#line 9088 "configure"
1.9092 +#include "confdefs.h"
1.9093 +
1.9094 +#if HAVE_DLFCN_H
1.9095 +#include <dlfcn.h>
1.9096 +#endif
1.9097 +
1.9098 +#include <stdio.h>
1.9099 +
1.9100 +#ifdef RTLD_GLOBAL
1.9101 +# define LT_DLGLOBAL RTLD_GLOBAL
1.9102 +#else
1.9103 +# ifdef DL_GLOBAL
1.9104 +# define LT_DLGLOBAL DL_GLOBAL
1.9105 +# else
1.9106 +# define LT_DLGLOBAL 0
1.9107 +# endif
1.9108 +#endif
1.9109 +
1.9110 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.9111 + find out it does not work in some platform. */
1.9112 +#ifndef LT_DLLAZY_OR_NOW
1.9113 +# ifdef RTLD_LAZY
1.9114 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.9115 +# else
1.9116 +# ifdef DL_LAZY
1.9117 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.9118 +# else
1.9119 +# ifdef RTLD_NOW
1.9120 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.9121 +# else
1.9122 +# ifdef DL_NOW
1.9123 +# define LT_DLLAZY_OR_NOW DL_NOW
1.9124 +# else
1.9125 +# define LT_DLLAZY_OR_NOW 0
1.9126 +# endif
1.9127 +# endif
1.9128 +# endif
1.9129 +# endif
1.9130 +#endif
1.9131 +
1.9132 +#ifdef __cplusplus
1.9133 +extern "C" void exit (int);
1.9134 +#endif
1.9135 +
1.9136 +void fnord() { int i=42;}
1.9137 +int main ()
1.9138 +{
1.9139 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.9140 + int status = $lt_dlunknown;
1.9141 +
1.9142 + if (self)
1.9143 + {
1.9144 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.9145 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.9146 + /* dlclose (self); */
1.9147 + }
1.9148 +
1.9149 + exit (status);
1.9150 +}
1.9151 +EOF
1.9152 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.9153 + (eval $ac_link) 2>&5
1.9154 + ac_status=$?
1.9155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9156 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.9157 + (./conftest; exit; ) >&5 2>/dev/null
1.9158 + lt_status=$?
1.9159 + case x$lt_status in
1.9160 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1.9161 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.9162 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
1.9163 + esac
1.9164 + else :
1.9165 + # compilation failed
1.9166 + lt_cv_dlopen_self_static=no
1.9167 + fi
1.9168 +fi
1.9169 +rm -fr conftest*
1.9170 +
1.9171 +
1.9172 +fi
1.9173 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
1.9174 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.9175 + fi
1.9176 +
1.9177 + CPPFLAGS="$save_CPPFLAGS"
1.9178 + LDFLAGS="$save_LDFLAGS"
1.9179 + LIBS="$save_LIBS"
1.9180 + ;;
1.9181 + esac
1.9182 +
1.9183 + case $lt_cv_dlopen_self in
1.9184 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1.9185 + *) enable_dlopen_self=unknown ;;
1.9186 + esac
1.9187 +
1.9188 + case $lt_cv_dlopen_self_static in
1.9189 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1.9190 + *) enable_dlopen_self_static=unknown ;;
1.9191 + esac
1.9192 +fi
1.9193 +
1.9194 +
1.9195 +# Report which librarie types wil actually be built
1.9196 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
1.9197 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
1.9198 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
1.9199 +echo "${ECHO_T}$can_build_shared" >&6
1.9200 +
1.9201 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
1.9202 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.9203 +test "$can_build_shared" = "no" && enable_shared=no
1.9204 +
1.9205 +# On AIX, shared libraries and static libraries use the same namespace, and
1.9206 +# are all built from PIC.
1.9207 +case $host_os in
1.9208 +aix3*)
1.9209 + test "$enable_shared" = yes && enable_static=no
1.9210 + if test -n "$RANLIB"; then
1.9211 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
1.9212 + postinstall_cmds='$RANLIB $lib'
1.9213 + fi
1.9214 + ;;
1.9215 +
1.9216 +aix4* | aix5*)
1.9217 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.9218 + test "$enable_shared" = yes && enable_static=no
1.9219 + fi
1.9220 + ;;
1.9221 +esac
1.9222 +echo "$as_me:$LINENO: result: $enable_shared" >&5
1.9223 +echo "${ECHO_T}$enable_shared" >&6
1.9224 +
1.9225 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
1.9226 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.9227 +# Make sure either enable_shared or enable_static is yes.
1.9228 +test "$enable_shared" = yes || enable_static=yes
1.9229 +echo "$as_me:$LINENO: result: $enable_static" >&5
1.9230 +echo "${ECHO_T}$enable_static" >&6
1.9231 +
1.9232 +# The else clause should only fire when bootstrapping the
1.9233 +# libtool distribution, otherwise you forgot to ship ltmain.sh
1.9234 +# with your package, and you will get complaints that there are
1.9235 +# no rules to generate ltmain.sh.
1.9236 +if test -f "$ltmain"; then
1.9237 + # See if we are running on zsh, and set the options which allow our commands through
1.9238 + # without removal of \ escapes.
1.9239 + if test -n "${ZSH_VERSION+set}" ; then
1.9240 + setopt NO_GLOB_SUBST
1.9241 + fi
1.9242 + # Now quote all the things that may contain metacharacters while being
1.9243 + # careful not to overquote the AC_SUBSTed values. We take copies of the
1.9244 + # variables and quote the copies for generation of the libtool script.
1.9245 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.9246 + SED SHELL STRIP \
1.9247 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.9248 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.9249 + deplibs_check_method reload_flag reload_cmds need_locks \
1.9250 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.9251 + lt_cv_sys_global_symbol_to_c_name_address \
1.9252 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.9253 + old_postinstall_cmds old_postuninstall_cmds \
1.9254 + compiler \
1.9255 + CC \
1.9256 + LD \
1.9257 + lt_prog_compiler_wl \
1.9258 + lt_prog_compiler_pic \
1.9259 + lt_prog_compiler_static \
1.9260 + lt_prog_compiler_no_builtin_flag \
1.9261 + export_dynamic_flag_spec \
1.9262 + thread_safe_flag_spec \
1.9263 + whole_archive_flag_spec \
1.9264 + enable_shared_with_static_runtimes \
1.9265 + old_archive_cmds \
1.9266 + old_archive_from_new_cmds \
1.9267 + predep_objects \
1.9268 + postdep_objects \
1.9269 + predeps \
1.9270 + postdeps \
1.9271 + compiler_lib_search_path \
1.9272 + archive_cmds \
1.9273 + archive_expsym_cmds \
1.9274 + postinstall_cmds \
1.9275 + postuninstall_cmds \
1.9276 + old_archive_from_expsyms_cmds \
1.9277 + allow_undefined_flag \
1.9278 + no_undefined_flag \
1.9279 + export_symbols_cmds \
1.9280 + hardcode_libdir_flag_spec \
1.9281 + hardcode_libdir_flag_spec_ld \
1.9282 + hardcode_libdir_separator \
1.9283 + hardcode_automatic \
1.9284 + module_cmds \
1.9285 + module_expsym_cmds \
1.9286 + lt_cv_prog_compiler_c_o \
1.9287 + exclude_expsyms \
1.9288 + include_expsyms; do
1.9289 +
1.9290 + case $var in
1.9291 + old_archive_cmds | \
1.9292 + old_archive_from_new_cmds | \
1.9293 + archive_cmds | \
1.9294 + archive_expsym_cmds | \
1.9295 + module_cmds | \
1.9296 + module_expsym_cmds | \
1.9297 + old_archive_from_expsyms_cmds | \
1.9298 + export_symbols_cmds | \
1.9299 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.9300 + postinstall_cmds | postuninstall_cmds | \
1.9301 + old_postinstall_cmds | old_postuninstall_cmds | \
1.9302 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.9303 + # Double-quote double-evaled strings.
1.9304 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.9305 + ;;
1.9306 + *)
1.9307 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.9308 + ;;
1.9309 + esac
1.9310 + done
1.9311 +
1.9312 + case $lt_echo in
1.9313 + *'\$0 --fallback-echo"')
1.9314 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1.9315 + ;;
1.9316 + esac
1.9317 +
1.9318 +cfgfile="${ofile}T"
1.9319 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
1.9320 + $rm -f "$cfgfile"
1.9321 + { echo "$as_me:$LINENO: creating $ofile" >&5
1.9322 +echo "$as_me: creating $ofile" >&6;}
1.9323 +
1.9324 + cat <<__EOF__ >> "$cfgfile"
1.9325 +#! $SHELL
1.9326 +
1.9327 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1.9328 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
1.9329 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1.9330 +#
1.9331 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
1.9332 +# Free Software Foundation, Inc.
1.9333 +#
1.9334 +# This file is part of GNU Libtool:
1.9335 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1.9336 +#
1.9337 +# This program is free software; you can redistribute it and/or modify
1.9338 +# it under the terms of the GNU General Public License as published by
1.9339 +# the Free Software Foundation; either version 2 of the License, or
1.9340 +# (at your option) any later version.
1.9341 +#
1.9342 +# This program is distributed in the hope that it will be useful, but
1.9343 +# WITHOUT ANY WARRANTY; without even the implied warranty of
1.9344 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.9345 +# General Public License for more details.
1.9346 +#
1.9347 +# You should have received a copy of the GNU General Public License
1.9348 +# along with this program; if not, write to the Free Software
1.9349 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1.9350 +#
1.9351 +# As a special exception to the GNU General Public License, if you
1.9352 +# distribute this file as part of a program that contains a
1.9353 +# configuration script generated by Autoconf, you may include it under
1.9354 +# the same distribution terms that you use for the rest of that program.
1.9355 +
1.9356 +# A sed program that does not truncate output.
1.9357 +SED=$lt_SED
1.9358 +
1.9359 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
1.9360 +Xsed="$SED -e 1s/^X//"
1.9361 +
1.9362 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1.9363 +# if CDPATH is set.
1.9364 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.9365 +
1.9366 +# The names of the tagged configurations supported by this script.
1.9367 +available_tags=
1.9368 +
1.9369 +# ### BEGIN LIBTOOL CONFIG
1.9370 +
1.9371 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.9372 +
1.9373 +# Shell to use when invoking shell scripts.
1.9374 +SHELL=$lt_SHELL
1.9375 +
1.9376 +# Whether or not to build shared libraries.
1.9377 +build_libtool_libs=$enable_shared
1.9378 +
1.9379 +# Whether or not to build static libraries.
1.9380 +build_old_libs=$enable_static
1.9381 +
1.9382 +# Whether or not to add -lc for building shared libraries.
1.9383 +build_libtool_need_lc=$archive_cmds_need_lc
1.9384 +
1.9385 +# Whether or not to disallow shared libs when runtime libs are static
1.9386 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.9387 +
1.9388 +# Whether or not to optimize for fast installation.
1.9389 +fast_install=$enable_fast_install
1.9390 +
1.9391 +# The host system.
1.9392 +host_alias=$host_alias
1.9393 +host=$host
1.9394 +host_os=$host_os
1.9395 +
1.9396 +# The build system.
1.9397 +build_alias=$build_alias
1.9398 +build=$build
1.9399 +build_os=$build_os
1.9400 +
1.9401 +# An echo program that does not interpret backslashes.
1.9402 +echo=$lt_echo
1.9403 +
1.9404 +# The archiver.
1.9405 +AR=$lt_AR
1.9406 +AR_FLAGS=$lt_AR_FLAGS
1.9407 +
1.9408 +# A C compiler.
1.9409 +LTCC=$lt_LTCC
1.9410 +
1.9411 +# A language-specific compiler.
1.9412 +CC=$lt_compiler
1.9413 +
1.9414 +# Is the compiler the GNU C compiler?
1.9415 +with_gcc=$GCC
1.9416 +
1.9417 +# An ERE matcher.
1.9418 +EGREP=$lt_EGREP
1.9419 +
1.9420 +# The linker used to build libraries.
1.9421 +LD=$lt_LD
1.9422 +
1.9423 +# Whether we need hard or soft links.
1.9424 +LN_S=$lt_LN_S
1.9425 +
1.9426 +# A BSD-compatible nm program.
1.9427 +NM=$lt_NM
1.9428 +
1.9429 +# A symbol stripping program
1.9430 +STRIP=$lt_STRIP
1.9431 +
1.9432 +# Used to examine libraries when file_magic_cmd begins "file"
1.9433 +MAGIC_CMD=$MAGIC_CMD
1.9434 +
1.9435 +# Used on cygwin: DLL creation program.
1.9436 +DLLTOOL="$DLLTOOL"
1.9437 +
1.9438 +# Used on cygwin: object dumper.
1.9439 +OBJDUMP="$OBJDUMP"
1.9440 +
1.9441 +# Used on cygwin: assembler.
1.9442 +AS="$AS"
1.9443 +
1.9444 +# The name of the directory that contains temporary libtool files.
1.9445 +objdir=$objdir
1.9446 +
1.9447 +# How to create reloadable object files.
1.9448 +reload_flag=$lt_reload_flag
1.9449 +reload_cmds=$lt_reload_cmds
1.9450 +
1.9451 +# How to pass a linker flag through the compiler.
1.9452 +wl=$lt_lt_prog_compiler_wl
1.9453 +
1.9454 +# Object file suffix (normally "o").
1.9455 +objext="$ac_objext"
1.9456 +
1.9457 +# Old archive suffix (normally "a").
1.9458 +libext="$libext"
1.9459 +
1.9460 +# Shared library suffix (normally ".so").
1.9461 +shrext_cmds='$shrext_cmds'
1.9462 +
1.9463 +# Executable file suffix (normally "").
1.9464 +exeext="$exeext"
1.9465 +
1.9466 +# Additional compiler flags for building library objects.
1.9467 +pic_flag=$lt_lt_prog_compiler_pic
1.9468 +pic_mode=$pic_mode
1.9469 +
1.9470 +# What is the maximum length of a command?
1.9471 +max_cmd_len=$lt_cv_sys_max_cmd_len
1.9472 +
1.9473 +# Does compiler simultaneously support -c and -o options?
1.9474 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.9475 +
1.9476 +# Must we lock files when doing compilation?
1.9477 +need_locks=$lt_need_locks
1.9478 +
1.9479 +# Do we need the lib prefix for modules?
1.9480 +need_lib_prefix=$need_lib_prefix
1.9481 +
1.9482 +# Do we need a version for libraries?
1.9483 +need_version=$need_version
1.9484 +
1.9485 +# Whether dlopen is supported.
1.9486 +dlopen_support=$enable_dlopen
1.9487 +
1.9488 +# Whether dlopen of programs is supported.
1.9489 +dlopen_self=$enable_dlopen_self
1.9490 +
1.9491 +# Whether dlopen of statically linked programs is supported.
1.9492 +dlopen_self_static=$enable_dlopen_self_static
1.9493 +
1.9494 +# Compiler flag to prevent dynamic linking.
1.9495 +link_static_flag=$lt_lt_prog_compiler_static
1.9496 +
1.9497 +# Compiler flag to turn off builtin functions.
1.9498 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.9499 +
1.9500 +# Compiler flag to allow reflexive dlopens.
1.9501 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.9502 +
1.9503 +# Compiler flag to generate shared objects directly from archives.
1.9504 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.9505 +
1.9506 +# Compiler flag to generate thread-safe objects.
1.9507 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.9508 +
1.9509 +# Library versioning type.
1.9510 +version_type=$version_type
1.9511 +
1.9512 +# Format of library name prefix.
1.9513 +libname_spec=$lt_libname_spec
1.9514 +
1.9515 +# List of archive names. First name is the real one, the rest are links.
1.9516 +# The last name is the one that the linker finds with -lNAME.
1.9517 +library_names_spec=$lt_library_names_spec
1.9518 +
1.9519 +# The coded name of the library, if different from the real name.
1.9520 +soname_spec=$lt_soname_spec
1.9521 +
1.9522 +# Commands used to build and install an old-style archive.
1.9523 +RANLIB=$lt_RANLIB
1.9524 +old_archive_cmds=$lt_old_archive_cmds
1.9525 +old_postinstall_cmds=$lt_old_postinstall_cmds
1.9526 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.9527 +
1.9528 +# Create an old-style archive from a shared archive.
1.9529 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.9530 +
1.9531 +# Create a temporary old-style archive to link instead of a shared archive.
1.9532 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.9533 +
1.9534 +# Commands used to build and install a shared archive.
1.9535 +archive_cmds=$lt_archive_cmds
1.9536 +archive_expsym_cmds=$lt_archive_expsym_cmds
1.9537 +postinstall_cmds=$lt_postinstall_cmds
1.9538 +postuninstall_cmds=$lt_postuninstall_cmds
1.9539 +
1.9540 +# Commands used to build a loadable module (assumed same as above if empty)
1.9541 +module_cmds=$lt_module_cmds
1.9542 +module_expsym_cmds=$lt_module_expsym_cmds
1.9543 +
1.9544 +# Commands to strip libraries.
1.9545 +old_striplib=$lt_old_striplib
1.9546 +striplib=$lt_striplib
1.9547 +
1.9548 +# Dependencies to place before the objects being linked to create a
1.9549 +# shared library.
1.9550 +predep_objects=$lt_predep_objects
1.9551 +
1.9552 +# Dependencies to place after the objects being linked to create a
1.9553 +# shared library.
1.9554 +postdep_objects=$lt_postdep_objects
1.9555 +
1.9556 +# Dependencies to place before the objects being linked to create a
1.9557 +# shared library.
1.9558 +predeps=$lt_predeps
1.9559 +
1.9560 +# Dependencies to place after the objects being linked to create a
1.9561 +# shared library.
1.9562 +postdeps=$lt_postdeps
1.9563 +
1.9564 +# The library search path used internally by the compiler when linking
1.9565 +# a shared library.
1.9566 +compiler_lib_search_path=$lt_compiler_lib_search_path
1.9567 +
1.9568 +# Method to check whether dependent libraries are shared objects.
1.9569 +deplibs_check_method=$lt_deplibs_check_method
1.9570 +
1.9571 +# Command to use when deplibs_check_method == file_magic.
1.9572 +file_magic_cmd=$lt_file_magic_cmd
1.9573 +
1.9574 +# Flag that allows shared libraries with undefined symbols to be built.
1.9575 +allow_undefined_flag=$lt_allow_undefined_flag
1.9576 +
1.9577 +# Flag that forces no undefined symbols.
1.9578 +no_undefined_flag=$lt_no_undefined_flag
1.9579 +
1.9580 +# Commands used to finish a libtool library installation in a directory.
1.9581 +finish_cmds=$lt_finish_cmds
1.9582 +
1.9583 +# Same as above, but a single script fragment to be evaled but not shown.
1.9584 +finish_eval=$lt_finish_eval
1.9585 +
1.9586 +# Take the output of nm and produce a listing of raw symbols and C names.
1.9587 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.9588 +
1.9589 +# Transform the output of nm in a proper C declaration
1.9590 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.9591 +
1.9592 +# Transform the output of nm in a C name address pair
1.9593 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.9594 +
1.9595 +# This is the shared library runtime path variable.
1.9596 +runpath_var=$runpath_var
1.9597 +
1.9598 +# This is the shared library path variable.
1.9599 +shlibpath_var=$shlibpath_var
1.9600 +
1.9601 +# Is shlibpath searched before the hard-coded library search path?
1.9602 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.9603 +
1.9604 +# How to hardcode a shared library path into an executable.
1.9605 +hardcode_action=$hardcode_action
1.9606 +
1.9607 +# Whether we should hardcode library paths into libraries.
1.9608 +hardcode_into_libs=$hardcode_into_libs
1.9609 +
1.9610 +# Flag to hardcode \$libdir into a binary during linking.
1.9611 +# This must work even if \$libdir does not exist.
1.9612 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.9613 +
1.9614 +# If ld is used when linking, flag to hardcode \$libdir into
1.9615 +# a binary during linking. This must work even if \$libdir does
1.9616 +# not exist.
1.9617 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.9618 +
1.9619 +# Whether we need a single -rpath flag with a separated argument.
1.9620 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.9621 +
1.9622 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.9623 +# resulting binary.
1.9624 +hardcode_direct=$hardcode_direct
1.9625 +
1.9626 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.9627 +# resulting binary.
1.9628 +hardcode_minus_L=$hardcode_minus_L
1.9629 +
1.9630 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.9631 +# the resulting binary.
1.9632 +hardcode_shlibpath_var=$hardcode_shlibpath_var
1.9633 +
1.9634 +# Set to yes if building a shared library automatically hardcodes DIR into the library
1.9635 +# and all subsequent libraries and executables linked against it.
1.9636 +hardcode_automatic=$hardcode_automatic
1.9637 +
1.9638 +# Variables whose values should be saved in libtool wrapper scripts and
1.9639 +# restored at relink time.
1.9640 +variables_saved_for_relink="$variables_saved_for_relink"
1.9641 +
1.9642 +# Whether libtool must link a program against all its dependency libraries.
1.9643 +link_all_deplibs=$link_all_deplibs
1.9644 +
1.9645 +# Compile-time system search path for libraries
1.9646 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.9647 +
1.9648 +# Run-time system search path for libraries
1.9649 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.9650 +
1.9651 +# Fix the shell variable \$srcfile for the compiler.
1.9652 +fix_srcfile_path="$fix_srcfile_path"
1.9653 +
1.9654 +# Set to yes if exported symbols are required.
1.9655 +always_export_symbols=$always_export_symbols
1.9656 +
1.9657 +# The commands to list exported symbols.
1.9658 +export_symbols_cmds=$lt_export_symbols_cmds
1.9659 +
1.9660 +# The commands to extract the exported symbol list from a shared archive.
1.9661 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.9662 +
1.9663 +# Symbols that should not be listed in the preloaded symbols.
1.9664 +exclude_expsyms=$lt_exclude_expsyms
1.9665 +
1.9666 +# Symbols that must always be exported.
1.9667 +include_expsyms=$lt_include_expsyms
1.9668 +
1.9669 +# ### END LIBTOOL CONFIG
1.9670 +
1.9671 +__EOF__
1.9672 +
1.9673 +
1.9674 + case $host_os in
1.9675 + aix3*)
1.9676 + cat <<\EOF >> "$cfgfile"
1.9677 +
1.9678 +# AIX sometimes has problems with the GCC collect2 program. For some
1.9679 +# reason, if we set the COLLECT_NAMES environment variable, the problems
1.9680 +# vanish in a puff of smoke.
1.9681 +if test "X${COLLECT_NAMES+set}" != Xset; then
1.9682 + COLLECT_NAMES=
1.9683 + export COLLECT_NAMES
1.9684 +fi
1.9685 +EOF
1.9686 + ;;
1.9687 + esac
1.9688 +
1.9689 + # We use sed instead of cat because bash on DJGPP gets confused if
1.9690 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
1.9691 + # text mode, it properly converts lines to CR/LF. This bash problem
1.9692 + # is reportedly fixed, but why not run on old versions too?
1.9693 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.9694 +
1.9695 + mv -f "$cfgfile" "$ofile" || \
1.9696 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1.9697 + chmod +x "$ofile"
1.9698 +
1.9699 +else
1.9700 + # If there is no Makefile yet, we rely on a make rule to execute
1.9701 + # `config.status --recheck' to rerun these tests and create the
1.9702 + # libtool script then.
1.9703 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.9704 + if test -f "$ltmain_in"; then
1.9705 + test -f Makefile && make "$ltmain"
1.9706 + fi
1.9707 +fi
1.9708 +
1.9709 +
1.9710 +ac_ext=c
1.9711 +ac_cpp='$CPP $CPPFLAGS'
1.9712 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.9713 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.9714 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.9715 +
1.9716 +CC="$lt_save_CC"
1.9717 +
1.9718 +
1.9719 +# Check whether --with-tags or --without-tags was given.
1.9720 +if test "${with_tags+set}" = set; then
1.9721 + withval="$with_tags"
1.9722 + tagnames="$withval"
1.9723 +fi;
1.9724 +
1.9725 +if test -f "$ltmain" && test -n "$tagnames"; then
1.9726 + if test ! -f "${ofile}"; then
1.9727 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
1.9728 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
1.9729 + fi
1.9730 +
1.9731 + if test -z "$LTCC"; then
1.9732 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1.9733 + if test -z "$LTCC"; then
1.9734 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
1.9735 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
1.9736 + else
1.9737 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
1.9738 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
1.9739 + fi
1.9740 + fi
1.9741 +
1.9742 + # Extract list of available tagged configurations in $ofile.
1.9743 + # Note that this assumes the entire list is on one line.
1.9744 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1.9745 +
1.9746 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1.9747 + for tagname in $tagnames; do
1.9748 + IFS="$lt_save_ifs"
1.9749 + # Check whether tagname contains only valid characters
1.9750 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
1.9751 + "") ;;
1.9752 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
1.9753 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
1.9754 + { (exit 1); exit 1; }; }
1.9755 + ;;
1.9756 + esac
1.9757 +
1.9758 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1.9759 + then
1.9760 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
1.9761 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
1.9762 + { (exit 1); exit 1; }; }
1.9763 + fi
1.9764 +
1.9765 + # Update the list of available tags.
1.9766 + if test -n "$tagname"; then
1.9767 + echo appending configuration tag \"$tagname\" to $ofile
1.9768 +
1.9769 + case $tagname in
1.9770 + CXX)
1.9771 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1.9772 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1.9773 + (test "X$CXX" != "Xg++"))) ; then
1.9774 + ac_ext=cc
1.9775 +ac_cpp='$CXXCPP $CPPFLAGS'
1.9776 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.9777 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.9778 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.9779 +
1.9780 +
1.9781 +
1.9782 +
1.9783 +archive_cmds_need_lc_CXX=no
1.9784 +allow_undefined_flag_CXX=
1.9785 +always_export_symbols_CXX=no
1.9786 +archive_expsym_cmds_CXX=
1.9787 +export_dynamic_flag_spec_CXX=
1.9788 +hardcode_direct_CXX=no
1.9789 +hardcode_libdir_flag_spec_CXX=
1.9790 +hardcode_libdir_flag_spec_ld_CXX=
1.9791 +hardcode_libdir_separator_CXX=
1.9792 +hardcode_minus_L_CXX=no
1.9793 +hardcode_automatic_CXX=no
1.9794 +module_cmds_CXX=
1.9795 +module_expsym_cmds_CXX=
1.9796 +link_all_deplibs_CXX=unknown
1.9797 +old_archive_cmds_CXX=$old_archive_cmds
1.9798 +no_undefined_flag_CXX=
1.9799 +whole_archive_flag_spec_CXX=
1.9800 +enable_shared_with_static_runtimes_CXX=no
1.9801 +
1.9802 +# Dependencies to place before and after the object being linked:
1.9803 +predep_objects_CXX=
1.9804 +postdep_objects_CXX=
1.9805 +predeps_CXX=
1.9806 +postdeps_CXX=
1.9807 +compiler_lib_search_path_CXX=
1.9808 +
1.9809 +# Source file extension for C++ test sources.
1.9810 +ac_ext=cpp
1.9811 +
1.9812 +# Object file extension for compiled C++ test sources.
1.9813 +objext=o
1.9814 +objext_CXX=$objext
1.9815 +
1.9816 +# Code to be used in simple compile tests
1.9817 +lt_simple_compile_test_code="int some_variable = 0;\n"
1.9818 +
1.9819 +# Code to be used in simple link tests
1.9820 +lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
1.9821 +
1.9822 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.9823 +
1.9824 +# If no C compiler was specified, use CC.
1.9825 +LTCC=${LTCC-"$CC"}
1.9826 +
1.9827 +# Allow CC to be a program name with arguments.
1.9828 +compiler=$CC
1.9829 +
1.9830 +
1.9831 +# save warnings/boilerplate of simple test code
1.9832 +ac_outfile=conftest.$ac_objext
1.9833 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.9834 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.9835 +_lt_compiler_boilerplate=`cat conftest.err`
1.9836 +$rm conftest*
1.9837 +
1.9838 +ac_outfile=conftest.$ac_objext
1.9839 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.9840 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.9841 +_lt_linker_boilerplate=`cat conftest.err`
1.9842 +$rm conftest*
1.9843 +
1.9844 +
1.9845 +# Allow CC to be a program name with arguments.
1.9846 +lt_save_CC=$CC
1.9847 +lt_save_LD=$LD
1.9848 +lt_save_GCC=$GCC
1.9849 +GCC=$GXX
1.9850 +lt_save_with_gnu_ld=$with_gnu_ld
1.9851 +lt_save_path_LD=$lt_cv_path_LD
1.9852 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
1.9853 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
1.9854 +else
1.9855 + unset lt_cv_prog_gnu_ld
1.9856 +fi
1.9857 +if test -n "${lt_cv_path_LDCXX+set}"; then
1.9858 + lt_cv_path_LD=$lt_cv_path_LDCXX
1.9859 +else
1.9860 + unset lt_cv_path_LD
1.9861 +fi
1.9862 +test -z "${LDCXX+set}" || LD=$LDCXX
1.9863 +CC=${CXX-"c++"}
1.9864 +compiler=$CC
1.9865 +compiler_CXX=$CC
1.9866 +for cc_temp in $compiler""; do
1.9867 + case $cc_temp in
1.9868 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.9869 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.9870 + \-*) ;;
1.9871 + *) break;;
1.9872 + esac
1.9873 +done
1.9874 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.9875 +
1.9876 +
1.9877 +# We don't want -fno-exception wen compiling C++ code, so set the
1.9878 +# no_builtin_flag separately
1.9879 +if test "$GXX" = yes; then
1.9880 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
1.9881 +else
1.9882 + lt_prog_compiler_no_builtin_flag_CXX=
1.9883 +fi
1.9884 +
1.9885 +if test "$GXX" = yes; then
1.9886 + # Set up default GNU C++ configuration
1.9887 +
1.9888 +
1.9889 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
1.9890 +if test "${with_gnu_ld+set}" = set; then
1.9891 + withval="$with_gnu_ld"
1.9892 + test "$withval" = no || with_gnu_ld=yes
1.9893 +else
1.9894 + with_gnu_ld=no
1.9895 +fi;
1.9896 +ac_prog=ld
1.9897 +if test "$GCC" = yes; then
1.9898 + # Check if gcc -print-prog-name=ld gives a path.
1.9899 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
1.9900 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1.9901 + case $host in
1.9902 + *-*-mingw*)
1.9903 + # gcc leaves a trailing carriage return which upsets mingw
1.9904 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1.9905 + *)
1.9906 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1.9907 + esac
1.9908 + case $ac_prog in
1.9909 + # Accept absolute paths.
1.9910 + [\\/]* | ?:[\\/]*)
1.9911 + re_direlt='/[^/][^/]*/\.\./'
1.9912 + # Canonicalize the pathname of ld
1.9913 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
1.9914 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1.9915 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.9916 + done
1.9917 + test -z "$LD" && LD="$ac_prog"
1.9918 + ;;
1.9919 + "")
1.9920 + # If it fails, then pretend we aren't using GCC.
1.9921 + ac_prog=ld
1.9922 + ;;
1.9923 + *)
1.9924 + # If it is relative, then search for the first ld in PATH.
1.9925 + with_gnu_ld=unknown
1.9926 + ;;
1.9927 + esac
1.9928 +elif test "$with_gnu_ld" = yes; then
1.9929 + echo "$as_me:$LINENO: checking for GNU ld" >&5
1.9930 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1.9931 +else
1.9932 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
1.9933 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1.9934 +fi
1.9935 +if test "${lt_cv_path_LD+set}" = set; then
1.9936 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.9937 +else
1.9938 + if test -z "$LD"; then
1.9939 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1.9940 + for ac_dir in $PATH; do
1.9941 + IFS="$lt_save_ifs"
1.9942 + test -z "$ac_dir" && ac_dir=.
1.9943 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1.9944 + lt_cv_path_LD="$ac_dir/$ac_prog"
1.9945 + # Check to see if the program is GNU ld. I'd rather use --version,
1.9946 + # but apparently some variants of GNU ld only accept -v.
1.9947 + # Break only if it was the GNU/non-GNU ld that we prefer.
1.9948 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
1.9949 + *GNU* | *'with BFD'*)
1.9950 + test "$with_gnu_ld" != no && break
1.9951 + ;;
1.9952 + *)
1.9953 + test "$with_gnu_ld" != yes && break
1.9954 + ;;
1.9955 + esac
1.9956 + fi
1.9957 + done
1.9958 + IFS="$lt_save_ifs"
1.9959 +else
1.9960 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
1.9961 +fi
1.9962 +fi
1.9963 +
1.9964 +LD="$lt_cv_path_LD"
1.9965 +if test -n "$LD"; then
1.9966 + echo "$as_me:$LINENO: result: $LD" >&5
1.9967 +echo "${ECHO_T}$LD" >&6
1.9968 +else
1.9969 + echo "$as_me:$LINENO: result: no" >&5
1.9970 +echo "${ECHO_T}no" >&6
1.9971 +fi
1.9972 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
1.9973 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
1.9974 + { (exit 1); exit 1; }; }
1.9975 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
1.9976 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1.9977 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
1.9978 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.9979 +else
1.9980 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.9981 +case `$LD -v 2>&1 </dev/null` in
1.9982 +*GNU* | *'with BFD'*)
1.9983 + lt_cv_prog_gnu_ld=yes
1.9984 + ;;
1.9985 +*)
1.9986 + lt_cv_prog_gnu_ld=no
1.9987 + ;;
1.9988 +esac
1.9989 +fi
1.9990 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
1.9991 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1.9992 +with_gnu_ld=$lt_cv_prog_gnu_ld
1.9993 +
1.9994 +
1.9995 +
1.9996 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
1.9997 + # archiving commands below assume that GNU ld is being used.
1.9998 + if test "$with_gnu_ld" = yes; then
1.9999 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10000 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.10001 +
1.10002 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1.10003 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1.10004 +
1.10005 + # If archive_cmds runs LD, not CC, wlarc should be empty
1.10006 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
1.10007 + # investigate it a little bit more. (MM)
1.10008 + wlarc='${wl}'
1.10009 +
1.10010 + # ancient GNU ld didn't support --whole-archive et. al.
1.10011 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
1.10012 + grep 'no-whole-archive' > /dev/null; then
1.10013 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.10014 + else
1.10015 + whole_archive_flag_spec_CXX=
1.10016 + fi
1.10017 + else
1.10018 + with_gnu_ld=no
1.10019 + wlarc=
1.10020 +
1.10021 + # A generic and very simple default shared library creation
1.10022 + # command for GNU C++ for the case where it uses the native
1.10023 + # linker, instead of GNU ld. If possible, this setting should
1.10024 + # overridden to take advantage of the native linker features on
1.10025 + # the platform it is being used on.
1.10026 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.10027 + fi
1.10028 +
1.10029 + # Commands to make compiler produce verbose output that lists
1.10030 + # what "hidden" libraries, object files and flags are used when
1.10031 + # linking a shared library.
1.10032 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.10033 +
1.10034 +else
1.10035 + GXX=no
1.10036 + with_gnu_ld=no
1.10037 + wlarc=
1.10038 +fi
1.10039 +
1.10040 +# PORTME: fill in a description of your system's C++ link characteristics
1.10041 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.10042 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.10043 +ld_shlibs_CXX=yes
1.10044 +case $host_os in
1.10045 + aix3*)
1.10046 + # FIXME: insert proper C++ library support
1.10047 + ld_shlibs_CXX=no
1.10048 + ;;
1.10049 + aix4* | aix5*)
1.10050 + if test "$host_cpu" = ia64; then
1.10051 + # On IA64, the linker does run time linking by default, so we don't
1.10052 + # have to do anything special.
1.10053 + aix_use_runtimelinking=no
1.10054 + exp_sym_flag='-Bexport'
1.10055 + no_entry_flag=""
1.10056 + else
1.10057 + aix_use_runtimelinking=no
1.10058 +
1.10059 + # Test if we are trying to use run time linking or normal
1.10060 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.10061 + # need to do runtime linking.
1.10062 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1.10063 + for ld_flag in $LDFLAGS; do
1.10064 + case $ld_flag in
1.10065 + *-brtl*)
1.10066 + aix_use_runtimelinking=yes
1.10067 + break
1.10068 + ;;
1.10069 + esac
1.10070 + done
1.10071 + esac
1.10072 +
1.10073 + exp_sym_flag='-bexport'
1.10074 + no_entry_flag='-bnoentry'
1.10075 + fi
1.10076 +
1.10077 + # When large executables or shared objects are built, AIX ld can
1.10078 + # have problems creating the table of contents. If linking a library
1.10079 + # or program results in "error TOC overflow" add -mminimal-toc to
1.10080 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.10081 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.10082 +
1.10083 + archive_cmds_CXX=''
1.10084 + hardcode_direct_CXX=yes
1.10085 + hardcode_libdir_separator_CXX=':'
1.10086 + link_all_deplibs_CXX=yes
1.10087 +
1.10088 + if test "$GXX" = yes; then
1.10089 + case $host_os in aix4.[012]|aix4.[012].*)
1.10090 + # We only want to do this on AIX 4.2 and lower, the check
1.10091 + # below for broken collect2 doesn't work under 4.3+
1.10092 + collect2name=`${CC} -print-prog-name=collect2`
1.10093 + if test -f "$collect2name" && \
1.10094 + strings "$collect2name" | grep resolve_lib_name >/dev/null
1.10095 + then
1.10096 + # We have reworked collect2
1.10097 + hardcode_direct_CXX=yes
1.10098 + else
1.10099 + # We have old collect2
1.10100 + hardcode_direct_CXX=unsupported
1.10101 + # It fails to find uninstalled libraries when the uninstalled
1.10102 + # path is not listed in the libpath. Setting hardcode_minus_L
1.10103 + # to unsupported forces relinking
1.10104 + hardcode_minus_L_CXX=yes
1.10105 + hardcode_libdir_flag_spec_CXX='-L$libdir'
1.10106 + hardcode_libdir_separator_CXX=
1.10107 + fi
1.10108 + esac
1.10109 + shared_flag='-shared'
1.10110 + if test "$aix_use_runtimelinking" = yes; then
1.10111 + shared_flag="$shared_flag "'${wl}-G'
1.10112 + fi
1.10113 + else
1.10114 + # not using gcc
1.10115 + if test "$host_cpu" = ia64; then
1.10116 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.10117 + # chokes on -Wl,-G. The following line is correct:
1.10118 + shared_flag='-G'
1.10119 + else
1.10120 + if test "$aix_use_runtimelinking" = yes; then
1.10121 + shared_flag='${wl}-G'
1.10122 + else
1.10123 + shared_flag='${wl}-bM:SRE'
1.10124 + fi
1.10125 + fi
1.10126 + fi
1.10127 +
1.10128 + # It seems that -bexpall does not export symbols beginning with
1.10129 + # underscore (_), so it is better to generate a list of symbols to export.
1.10130 + always_export_symbols_CXX=yes
1.10131 + if test "$aix_use_runtimelinking" = yes; then
1.10132 + # Warning - without using the other runtime loading flags (-brtl),
1.10133 + # -berok will link without error, but may produce a broken library.
1.10134 + allow_undefined_flag_CXX='-berok'
1.10135 + # Determine the default libpath from the value encoded in an empty executable.
1.10136 + cat >conftest.$ac_ext <<_ACEOF
1.10137 +/* confdefs.h. */
1.10138 +_ACEOF
1.10139 +cat confdefs.h >>conftest.$ac_ext
1.10140 +cat >>conftest.$ac_ext <<_ACEOF
1.10141 +/* end confdefs.h. */
1.10142 +
1.10143 +int
1.10144 +main ()
1.10145 +{
1.10146 +
1.10147 + ;
1.10148 + return 0;
1.10149 +}
1.10150 +_ACEOF
1.10151 +rm -f conftest.$ac_objext conftest$ac_exeext
1.10152 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.10153 + (eval $ac_link) 2>conftest.er1
1.10154 + ac_status=$?
1.10155 + grep -v '^ *+' conftest.er1 >conftest.err
1.10156 + rm -f conftest.er1
1.10157 + cat conftest.err >&5
1.10158 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10159 + (exit $ac_status); } &&
1.10160 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.10161 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.10162 + (eval $ac_try) 2>&5
1.10163 + ac_status=$?
1.10164 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10165 + (exit $ac_status); }; } &&
1.10166 + { ac_try='test -s conftest$ac_exeext'
1.10167 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.10168 + (eval $ac_try) 2>&5
1.10169 + ac_status=$?
1.10170 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10171 + (exit $ac_status); }; }; then
1.10172 +
1.10173 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.10174 +}'`
1.10175 +# Check for a 64-bit object if we didn't find anything.
1.10176 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.10177 +}'`; fi
1.10178 +else
1.10179 + echo "$as_me: failed program was:" >&5
1.10180 +sed 's/^/| /' conftest.$ac_ext >&5
1.10181 +
1.10182 +fi
1.10183 +rm -f conftest.err conftest.$ac_objext \
1.10184 + conftest$ac_exeext conftest.$ac_ext
1.10185 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.10186 +
1.10187 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1.10188 +
1.10189 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.10190 + else
1.10191 + if test "$host_cpu" = ia64; then
1.10192 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
1.10193 + allow_undefined_flag_CXX="-z nodefs"
1.10194 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1.10195 + else
1.10196 + # Determine the default libpath from the value encoded in an empty executable.
1.10197 + cat >conftest.$ac_ext <<_ACEOF
1.10198 +/* confdefs.h. */
1.10199 +_ACEOF
1.10200 +cat confdefs.h >>conftest.$ac_ext
1.10201 +cat >>conftest.$ac_ext <<_ACEOF
1.10202 +/* end confdefs.h. */
1.10203 +
1.10204 +int
1.10205 +main ()
1.10206 +{
1.10207 +
1.10208 + ;
1.10209 + return 0;
1.10210 +}
1.10211 +_ACEOF
1.10212 +rm -f conftest.$ac_objext conftest$ac_exeext
1.10213 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.10214 + (eval $ac_link) 2>conftest.er1
1.10215 + ac_status=$?
1.10216 + grep -v '^ *+' conftest.er1 >conftest.err
1.10217 + rm -f conftest.er1
1.10218 + cat conftest.err >&5
1.10219 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10220 + (exit $ac_status); } &&
1.10221 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.10222 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.10223 + (eval $ac_try) 2>&5
1.10224 + ac_status=$?
1.10225 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10226 + (exit $ac_status); }; } &&
1.10227 + { ac_try='test -s conftest$ac_exeext'
1.10228 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.10229 + (eval $ac_try) 2>&5
1.10230 + ac_status=$?
1.10231 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10232 + (exit $ac_status); }; }; then
1.10233 +
1.10234 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.10235 +}'`
1.10236 +# Check for a 64-bit object if we didn't find anything.
1.10237 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.10238 +}'`; fi
1.10239 +else
1.10240 + echo "$as_me: failed program was:" >&5
1.10241 +sed 's/^/| /' conftest.$ac_ext >&5
1.10242 +
1.10243 +fi
1.10244 +rm -f conftest.err conftest.$ac_objext \
1.10245 + conftest$ac_exeext conftest.$ac_ext
1.10246 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.10247 +
1.10248 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
1.10249 + # Warning - without using the other run time loading flags,
1.10250 + # -berok will link without error, but may produce a broken library.
1.10251 + no_undefined_flag_CXX=' ${wl}-bernotok'
1.10252 + allow_undefined_flag_CXX=' ${wl}-berok'
1.10253 + # -bexpall does not export symbols beginning with underscore (_)
1.10254 + always_export_symbols_CXX=yes
1.10255 + # Exported symbols can be pulled into shared objects from archives
1.10256 + whole_archive_flag_spec_CXX=' '
1.10257 + archive_cmds_need_lc_CXX=yes
1.10258 + # This is similar to how AIX traditionally builds its shared libraries.
1.10259 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.10260 + fi
1.10261 + fi
1.10262 + ;;
1.10263 + chorus*)
1.10264 + case $cc_basename in
1.10265 + *)
1.10266 + # FIXME: insert proper C++ library support
1.10267 + ld_shlibs_CXX=no
1.10268 + ;;
1.10269 + esac
1.10270 + ;;
1.10271 +
1.10272 +
1.10273 + cygwin* | mingw* | pw32*)
1.10274 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
1.10275 + # as there is no search path for DLLs.
1.10276 + hardcode_libdir_flag_spec_CXX='-L$libdir'
1.10277 + allow_undefined_flag_CXX=unsupported
1.10278 + always_export_symbols_CXX=no
1.10279 + enable_shared_with_static_runtimes_CXX=yes
1.10280 +
1.10281 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.10282 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.10283 + # If the export-symbols file already is a .def file (1st line
1.10284 + # is EXPORTS), use it as is; otherwise, prepend...
1.10285 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.10286 + cp $export_symbols $output_objdir/$soname.def;
1.10287 + else
1.10288 + echo EXPORTS > $output_objdir/$soname.def;
1.10289 + cat $export_symbols >> $output_objdir/$soname.def;
1.10290 + fi~
1.10291 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.10292 + else
1.10293 + ld_shlibs_CXX=no
1.10294 + fi
1.10295 + ;;
1.10296 + darwin* | rhapsody*)
1.10297 + case $host_os in
1.10298 + rhapsody* | darwin1.[012])
1.10299 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
1.10300 + ;;
1.10301 + *) # Darwin 1.3 on
1.10302 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.10303 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.10304 + else
1.10305 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.10306 + 10.[012])
1.10307 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.10308 + ;;
1.10309 + 10.*)
1.10310 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
1.10311 + ;;
1.10312 + esac
1.10313 + fi
1.10314 + ;;
1.10315 + esac
1.10316 + archive_cmds_need_lc_CXX=no
1.10317 + hardcode_direct_CXX=no
1.10318 + hardcode_automatic_CXX=yes
1.10319 + hardcode_shlibpath_var_CXX=unsupported
1.10320 + whole_archive_flag_spec_CXX=''
1.10321 + link_all_deplibs_CXX=yes
1.10322 +
1.10323 + if test "$GXX" = yes ; then
1.10324 + lt_int_apple_cc_single_mod=no
1.10325 + output_verbose_link_cmd='echo'
1.10326 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
1.10327 + lt_int_apple_cc_single_mod=yes
1.10328 + fi
1.10329 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.10330 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.10331 + else
1.10332 + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.10333 + fi
1.10334 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.10335 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.10336 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
1.10337 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10338 + else
1.10339 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10340 + fi
1.10341 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10342 + else
1.10343 + case $cc_basename in
1.10344 + xlc*)
1.10345 + output_verbose_link_cmd='echo'
1.10346 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.10347 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.10348 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.10349 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10350 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.10351 + ;;
1.10352 + *)
1.10353 + ld_shlibs_CXX=no
1.10354 + ;;
1.10355 + esac
1.10356 + fi
1.10357 + ;;
1.10358 +
1.10359 + dgux*)
1.10360 + case $cc_basename in
1.10361 + ec++*)
1.10362 + # FIXME: insert proper C++ library support
1.10363 + ld_shlibs_CXX=no
1.10364 + ;;
1.10365 + ghcx*)
1.10366 + # Green Hills C++ Compiler
1.10367 + # FIXME: insert proper C++ library support
1.10368 + ld_shlibs_CXX=no
1.10369 + ;;
1.10370 + *)
1.10371 + # FIXME: insert proper C++ library support
1.10372 + ld_shlibs_CXX=no
1.10373 + ;;
1.10374 + esac
1.10375 + ;;
1.10376 + freebsd[12]*)
1.10377 + # C++ shared libraries reported to be fairly broken before switch to ELF
1.10378 + ld_shlibs_CXX=no
1.10379 + ;;
1.10380 + freebsd-elf*)
1.10381 + archive_cmds_need_lc_CXX=no
1.10382 + ;;
1.10383 + freebsd* | kfreebsd*-gnu | dragonfly*)
1.10384 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
1.10385 + # conventions
1.10386 + ld_shlibs_CXX=yes
1.10387 + ;;
1.10388 + gnu*)
1.10389 + ;;
1.10390 + hpux9*)
1.10391 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
1.10392 + hardcode_libdir_separator_CXX=:
1.10393 + export_dynamic_flag_spec_CXX='${wl}-E'
1.10394 + hardcode_direct_CXX=yes
1.10395 + hardcode_minus_L_CXX=yes # Not in the search PATH,
1.10396 + # but as the default
1.10397 + # location of the library.
1.10398 +
1.10399 + case $cc_basename in
1.10400 + CC*)
1.10401 + # FIXME: insert proper C++ library support
1.10402 + ld_shlibs_CXX=no
1.10403 + ;;
1.10404 + aCC*)
1.10405 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.10406 + # Commands to make compiler produce verbose output that lists
1.10407 + # what "hidden" libraries, object files and flags are used when
1.10408 + # linking a shared library.
1.10409 + #
1.10410 + # There doesn't appear to be a way to prevent this compiler from
1.10411 + # explicitly linking system object files so we need to strip them
1.10412 + # from the output so that they don't get included in the library
1.10413 + # dependencies.
1.10414 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10415 + ;;
1.10416 + *)
1.10417 + if test "$GXX" = yes; then
1.10418 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.10419 + else
1.10420 + # FIXME: insert proper C++ library support
1.10421 + ld_shlibs_CXX=no
1.10422 + fi
1.10423 + ;;
1.10424 + esac
1.10425 + ;;
1.10426 + hpux10*|hpux11*)
1.10427 + if test $with_gnu_ld = no; then
1.10428 + case $host_cpu in
1.10429 + hppa*64*)
1.10430 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
1.10431 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
1.10432 + hardcode_libdir_separator_CXX=:
1.10433 + ;;
1.10434 + ia64*)
1.10435 + hardcode_libdir_flag_spec_CXX='-L$libdir'
1.10436 + ;;
1.10437 + *)
1.10438 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
1.10439 + hardcode_libdir_separator_CXX=:
1.10440 + export_dynamic_flag_spec_CXX='${wl}-E'
1.10441 + ;;
1.10442 + esac
1.10443 + fi
1.10444 + case $host_cpu in
1.10445 + hppa*64*)
1.10446 + hardcode_direct_CXX=no
1.10447 + hardcode_shlibpath_var_CXX=no
1.10448 + ;;
1.10449 + ia64*)
1.10450 + hardcode_direct_CXX=no
1.10451 + hardcode_shlibpath_var_CXX=no
1.10452 + hardcode_minus_L_CXX=yes # Not in the search PATH,
1.10453 + # but as the default
1.10454 + # location of the library.
1.10455 + ;;
1.10456 + *)
1.10457 + hardcode_direct_CXX=yes
1.10458 + hardcode_minus_L_CXX=yes # Not in the search PATH,
1.10459 + # but as the default
1.10460 + # location of the library.
1.10461 + ;;
1.10462 + esac
1.10463 +
1.10464 + case $cc_basename in
1.10465 + CC*)
1.10466 + # FIXME: insert proper C++ library support
1.10467 + ld_shlibs_CXX=no
1.10468 + ;;
1.10469 + aCC*)
1.10470 + case $host_cpu in
1.10471 + hppa*64*|ia64*)
1.10472 + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1.10473 + ;;
1.10474 + *)
1.10475 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.10476 + ;;
1.10477 + esac
1.10478 + # Commands to make compiler produce verbose output that lists
1.10479 + # what "hidden" libraries, object files and flags are used when
1.10480 + # linking a shared library.
1.10481 + #
1.10482 + # There doesn't appear to be a way to prevent this compiler from
1.10483 + # explicitly linking system object files so we need to strip them
1.10484 + # from the output so that they don't get included in the library
1.10485 + # dependencies.
1.10486 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10487 + ;;
1.10488 + *)
1.10489 + if test "$GXX" = yes; then
1.10490 + if test $with_gnu_ld = no; then
1.10491 + case $host_cpu in
1.10492 + ia64*|hppa*64*)
1.10493 + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
1.10494 + ;;
1.10495 + *)
1.10496 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.10497 + ;;
1.10498 + esac
1.10499 + fi
1.10500 + else
1.10501 + # FIXME: insert proper C++ library support
1.10502 + ld_shlibs_CXX=no
1.10503 + fi
1.10504 + ;;
1.10505 + esac
1.10506 + ;;
1.10507 + irix5* | irix6*)
1.10508 + case $cc_basename in
1.10509 + CC*)
1.10510 + # SGI C++
1.10511 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.10512 +
1.10513 + # Archives containing C++ object files must be created using
1.10514 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
1.10515 + # necessary to make sure instantiated templates are included
1.10516 + # in the archive.
1.10517 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
1.10518 + ;;
1.10519 + *)
1.10520 + if test "$GXX" = yes; then
1.10521 + if test "$with_gnu_ld" = no; then
1.10522 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.10523 + else
1.10524 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
1.10525 + fi
1.10526 + fi
1.10527 + link_all_deplibs_CXX=yes
1.10528 + ;;
1.10529 + esac
1.10530 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1.10531 + hardcode_libdir_separator_CXX=:
1.10532 + ;;
1.10533 + linux*)
1.10534 + case $cc_basename in
1.10535 + KCC*)
1.10536 + # Kuck and Associates, Inc. (KAI) C++ Compiler
1.10537 +
1.10538 + # KCC will only create a shared library if the output file
1.10539 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.10540 + # to its proper name (with version) after linking.
1.10541 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.10542 + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
1.10543 + # Commands to make compiler produce verbose output that lists
1.10544 + # what "hidden" libraries, object files and flags are used when
1.10545 + # linking a shared library.
1.10546 + #
1.10547 + # There doesn't appear to be a way to prevent this compiler from
1.10548 + # explicitly linking system object files so we need to strip them
1.10549 + # from the output so that they don't get included in the library
1.10550 + # dependencies.
1.10551 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10552 +
1.10553 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
1.10554 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1.10555 +
1.10556 + # Archives containing C++ object files must be created using
1.10557 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1.10558 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
1.10559 + ;;
1.10560 + icpc*)
1.10561 + # Intel C++
1.10562 + with_gnu_ld=yes
1.10563 + # version 8.0 and above of icpc choke on multiply defined symbols
1.10564 + # if we add $predep_objects and $postdep_objects, however 7.1 and
1.10565 + # earlier do not add the objects themselves.
1.10566 + case `$CC -V 2>&1` in
1.10567 + *"Version 7."*)
1.10568 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10569 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.10570 + ;;
1.10571 + *) # Version 8.0 or newer
1.10572 + tmp_idyn=
1.10573 + case $host_cpu in
1.10574 + ia64*) tmp_idyn=' -i_dynamic';;
1.10575 + esac
1.10576 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10577 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.10578 + ;;
1.10579 + esac
1.10580 + archive_cmds_need_lc_CXX=no
1.10581 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1.10582 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1.10583 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
1.10584 + ;;
1.10585 + pgCC*)
1.10586 + # Portland Group C++ compiler
1.10587 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
1.10588 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
1.10589 +
1.10590 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
1.10591 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
1.10592 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.10593 + ;;
1.10594 + cxx*)
1.10595 + # Compaq C++
1.10596 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.10597 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
1.10598 +
1.10599 + runpath_var=LD_RUN_PATH
1.10600 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1.10601 + hardcode_libdir_separator_CXX=:
1.10602 +
1.10603 + # Commands to make compiler produce verbose output that lists
1.10604 + # what "hidden" libraries, object files and flags are used when
1.10605 + # linking a shared library.
1.10606 + #
1.10607 + # There doesn't appear to be a way to prevent this compiler from
1.10608 + # explicitly linking system object files so we need to strip them
1.10609 + # from the output so that they don't get included in the library
1.10610 + # dependencies.
1.10611 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10612 + ;;
1.10613 + esac
1.10614 + ;;
1.10615 + lynxos*)
1.10616 + # FIXME: insert proper C++ library support
1.10617 + ld_shlibs_CXX=no
1.10618 + ;;
1.10619 + m88k*)
1.10620 + # FIXME: insert proper C++ library support
1.10621 + ld_shlibs_CXX=no
1.10622 + ;;
1.10623 + mvs*)
1.10624 + case $cc_basename in
1.10625 + cxx*)
1.10626 + # FIXME: insert proper C++ library support
1.10627 + ld_shlibs_CXX=no
1.10628 + ;;
1.10629 + *)
1.10630 + # FIXME: insert proper C++ library support
1.10631 + ld_shlibs_CXX=no
1.10632 + ;;
1.10633 + esac
1.10634 + ;;
1.10635 + netbsd*)
1.10636 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.10637 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
1.10638 + wlarc=
1.10639 + hardcode_libdir_flag_spec_CXX='-R$libdir'
1.10640 + hardcode_direct_CXX=yes
1.10641 + hardcode_shlibpath_var_CXX=no
1.10642 + fi
1.10643 + # Workaround some broken pre-1.5 toolchains
1.10644 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
1.10645 + ;;
1.10646 + openbsd2*)
1.10647 + # C++ shared libraries are fairly broken
1.10648 + ld_shlibs_CXX=no
1.10649 + ;;
1.10650 + openbsd*)
1.10651 + hardcode_direct_CXX=yes
1.10652 + hardcode_shlibpath_var_CXX=no
1.10653 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
1.10654 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1.10655 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.10656 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
1.10657 + export_dynamic_flag_spec_CXX='${wl}-E'
1.10658 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.10659 + fi
1.10660 + output_verbose_link_cmd='echo'
1.10661 + ;;
1.10662 + osf3*)
1.10663 + case $cc_basename in
1.10664 + KCC*)
1.10665 + # Kuck and Associates, Inc. (KAI) C++ Compiler
1.10666 +
1.10667 + # KCC will only create a shared library if the output file
1.10668 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.10669 + # to its proper name (with version) after linking.
1.10670 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.10671 +
1.10672 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1.10673 + hardcode_libdir_separator_CXX=:
1.10674 +
1.10675 + # Archives containing C++ object files must be created using
1.10676 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
1.10677 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
1.10678 +
1.10679 + ;;
1.10680 + RCC*)
1.10681 + # Rational C++ 2.4.1
1.10682 + # FIXME: insert proper C++ library support
1.10683 + ld_shlibs_CXX=no
1.10684 + ;;
1.10685 + cxx*)
1.10686 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.10687 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.10688 +
1.10689 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1.10690 + hardcode_libdir_separator_CXX=:
1.10691 +
1.10692 + # Commands to make compiler produce verbose output that lists
1.10693 + # what "hidden" libraries, object files and flags are used when
1.10694 + # linking a shared library.
1.10695 + #
1.10696 + # There doesn't appear to be a way to prevent this compiler from
1.10697 + # explicitly linking system object files so we need to strip them
1.10698 + # from the output so that they don't get included in the library
1.10699 + # dependencies.
1.10700 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10701 + ;;
1.10702 + *)
1.10703 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.10704 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.10705 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.10706 +
1.10707 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1.10708 + hardcode_libdir_separator_CXX=:
1.10709 +
1.10710 + # Commands to make compiler produce verbose output that lists
1.10711 + # what "hidden" libraries, object files and flags are used when
1.10712 + # linking a shared library.
1.10713 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.10714 +
1.10715 + else
1.10716 + # FIXME: insert proper C++ library support
1.10717 + ld_shlibs_CXX=no
1.10718 + fi
1.10719 + ;;
1.10720 + esac
1.10721 + ;;
1.10722 + osf4* | osf5*)
1.10723 + case $cc_basename in
1.10724 + KCC*)
1.10725 + # Kuck and Associates, Inc. (KAI) C++ Compiler
1.10726 +
1.10727 + # KCC will only create a shared library if the output file
1.10728 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
1.10729 + # to its proper name (with version) after linking.
1.10730 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
1.10731 +
1.10732 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
1.10733 + hardcode_libdir_separator_CXX=:
1.10734 +
1.10735 + # Archives containing C++ object files must be created using
1.10736 + # the KAI C++ compiler.
1.10737 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
1.10738 + ;;
1.10739 + RCC*)
1.10740 + # Rational C++ 2.4.1
1.10741 + # FIXME: insert proper C++ library support
1.10742 + ld_shlibs_CXX=no
1.10743 + ;;
1.10744 + cxx*)
1.10745 + allow_undefined_flag_CXX=' -expect_unresolved \*'
1.10746 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.10747 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
1.10748 + echo "-hidden">> $lib.exp~
1.10749 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
1.10750 + $rm $lib.exp'
1.10751 +
1.10752 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
1.10753 + hardcode_libdir_separator_CXX=:
1.10754 +
1.10755 + # Commands to make compiler produce verbose output that lists
1.10756 + # what "hidden" libraries, object files and flags are used when
1.10757 + # linking a shared library.
1.10758 + #
1.10759 + # There doesn't appear to be a way to prevent this compiler from
1.10760 + # explicitly linking system object files so we need to strip them
1.10761 + # from the output so that they don't get included in the library
1.10762 + # dependencies.
1.10763 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
1.10764 + ;;
1.10765 + *)
1.10766 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.10767 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
1.10768 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.10769 +
1.10770 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
1.10771 + hardcode_libdir_separator_CXX=:
1.10772 +
1.10773 + # Commands to make compiler produce verbose output that lists
1.10774 + # what "hidden" libraries, object files and flags are used when
1.10775 + # linking a shared library.
1.10776 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
1.10777 +
1.10778 + else
1.10779 + # FIXME: insert proper C++ library support
1.10780 + ld_shlibs_CXX=no
1.10781 + fi
1.10782 + ;;
1.10783 + esac
1.10784 + ;;
1.10785 + psos*)
1.10786 + # FIXME: insert proper C++ library support
1.10787 + ld_shlibs_CXX=no
1.10788 + ;;
1.10789 + sco*)
1.10790 + archive_cmds_need_lc_CXX=no
1.10791 + case $cc_basename in
1.10792 + CC*)
1.10793 + # FIXME: insert proper C++ library support
1.10794 + ld_shlibs_CXX=no
1.10795 + ;;
1.10796 + *)
1.10797 + # FIXME: insert proper C++ library support
1.10798 + ld_shlibs_CXX=no
1.10799 + ;;
1.10800 + esac
1.10801 + ;;
1.10802 + sunos4*)
1.10803 + case $cc_basename in
1.10804 + CC*)
1.10805 + # Sun C++ 4.x
1.10806 + # FIXME: insert proper C++ library support
1.10807 + ld_shlibs_CXX=no
1.10808 + ;;
1.10809 + lcc*)
1.10810 + # Lucid
1.10811 + # FIXME: insert proper C++ library support
1.10812 + ld_shlibs_CXX=no
1.10813 + ;;
1.10814 + *)
1.10815 + # FIXME: insert proper C++ library support
1.10816 + ld_shlibs_CXX=no
1.10817 + ;;
1.10818 + esac
1.10819 + ;;
1.10820 + solaris*)
1.10821 + case $cc_basename in
1.10822 + CC*)
1.10823 + # Sun C++ 4.2, 5.x and Centerline C++
1.10824 + archive_cmds_need_lc_CXX=yes
1.10825 + no_undefined_flag_CXX=' -zdefs'
1.10826 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
1.10827 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.10828 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.10829 +
1.10830 + hardcode_libdir_flag_spec_CXX='-R$libdir'
1.10831 + hardcode_shlibpath_var_CXX=no
1.10832 + case $host_os in
1.10833 + solaris2.[0-5] | solaris2.[0-5].*) ;;
1.10834 + *)
1.10835 + # The C++ compiler is used as linker so we must use $wl
1.10836 + # flag to pass the commands to the underlying system
1.10837 + # linker. We must also pass each convience library through
1.10838 + # to the system linker between allextract/defaultextract.
1.10839 + # The C++ compiler will combine linker options so we
1.10840 + # cannot just pass the convience library names through
1.10841 + # without $wl.
1.10842 + # Supported since Solaris 2.6 (maybe 2.5.1?)
1.10843 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
1.10844 + ;;
1.10845 + esac
1.10846 + link_all_deplibs_CXX=yes
1.10847 +
1.10848 + output_verbose_link_cmd='echo'
1.10849 +
1.10850 + # Archives containing C++ object files must be created using
1.10851 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
1.10852 + # necessary to make sure instantiated templates are included
1.10853 + # in the archive.
1.10854 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
1.10855 + ;;
1.10856 + gcx*)
1.10857 + # Green Hills C++ Compiler
1.10858 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.10859 +
1.10860 + # The C++ compiler must be used to create the archive.
1.10861 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
1.10862 + ;;
1.10863 + *)
1.10864 + # GNU C++ compiler with Solaris linker
1.10865 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
1.10866 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
1.10867 + if $CC --version | grep -v '^2\.7' > /dev/null; then
1.10868 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.10869 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.10870 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.10871 +
1.10872 + # Commands to make compiler produce verbose output that lists
1.10873 + # what "hidden" libraries, object files and flags are used when
1.10874 + # linking a shared library.
1.10875 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1.10876 + else
1.10877 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
1.10878 + # platform.
1.10879 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
1.10880 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.10881 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
1.10882 +
1.10883 + # Commands to make compiler produce verbose output that lists
1.10884 + # what "hidden" libraries, object files and flags are used when
1.10885 + # linking a shared library.
1.10886 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
1.10887 + fi
1.10888 +
1.10889 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
1.10890 + fi
1.10891 + ;;
1.10892 + esac
1.10893 + ;;
1.10894 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
1.10895 + archive_cmds_need_lc_CXX=no
1.10896 + ;;
1.10897 + tandem*)
1.10898 + case $cc_basename in
1.10899 + NCC*)
1.10900 + # NonStop-UX NCC 3.20
1.10901 + # FIXME: insert proper C++ library support
1.10902 + ld_shlibs_CXX=no
1.10903 + ;;
1.10904 + *)
1.10905 + # FIXME: insert proper C++ library support
1.10906 + ld_shlibs_CXX=no
1.10907 + ;;
1.10908 + esac
1.10909 + ;;
1.10910 + vxworks*)
1.10911 + # FIXME: insert proper C++ library support
1.10912 + ld_shlibs_CXX=no
1.10913 + ;;
1.10914 + *)
1.10915 + # FIXME: insert proper C++ library support
1.10916 + ld_shlibs_CXX=no
1.10917 + ;;
1.10918 +esac
1.10919 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
1.10920 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.10921 +test "$ld_shlibs_CXX" = no && can_build_shared=no
1.10922 +
1.10923 +GCC_CXX="$GXX"
1.10924 +LD_CXX="$LD"
1.10925 +
1.10926 +
1.10927 +cat > conftest.$ac_ext <<EOF
1.10928 +class Foo
1.10929 +{
1.10930 +public:
1.10931 + Foo (void) { a = 0; }
1.10932 +private:
1.10933 + int a;
1.10934 +};
1.10935 +EOF
1.10936 +
1.10937 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.10938 + (eval $ac_compile) 2>&5
1.10939 + ac_status=$?
1.10940 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.10941 + (exit $ac_status); }; then
1.10942 + # Parse the compiler output and extract the necessary
1.10943 + # objects, libraries and library flags.
1.10944 +
1.10945 + # Sentinel used to keep track of whether or not we are before
1.10946 + # the conftest object file.
1.10947 + pre_test_object_deps_done=no
1.10948 +
1.10949 + # The `*' in the case matches for architectures that use `case' in
1.10950 + # $output_verbose_cmd can trigger glob expansion during the loop
1.10951 + # eval without this substitution.
1.10952 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
1.10953 +
1.10954 + for p in `eval $output_verbose_link_cmd`; do
1.10955 + case $p in
1.10956 +
1.10957 + -L* | -R* | -l*)
1.10958 + # Some compilers place space between "-{L,R}" and the path.
1.10959 + # Remove the space.
1.10960 + if test $p = "-L" \
1.10961 + || test $p = "-R"; then
1.10962 + prev=$p
1.10963 + continue
1.10964 + else
1.10965 + prev=
1.10966 + fi
1.10967 +
1.10968 + if test "$pre_test_object_deps_done" = no; then
1.10969 + case $p in
1.10970 + -L* | -R*)
1.10971 + # Internal compiler library paths should come after those
1.10972 + # provided the user. The postdeps already come after the
1.10973 + # user supplied libs so there is no need to process them.
1.10974 + if test -z "$compiler_lib_search_path_CXX"; then
1.10975 + compiler_lib_search_path_CXX="${prev}${p}"
1.10976 + else
1.10977 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
1.10978 + fi
1.10979 + ;;
1.10980 + # The "-l" case would never come before the object being
1.10981 + # linked, so don't bother handling this case.
1.10982 + esac
1.10983 + else
1.10984 + if test -z "$postdeps_CXX"; then
1.10985 + postdeps_CXX="${prev}${p}"
1.10986 + else
1.10987 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
1.10988 + fi
1.10989 + fi
1.10990 + ;;
1.10991 +
1.10992 + *.$objext)
1.10993 + # This assumes that the test object file only shows up
1.10994 + # once in the compiler output.
1.10995 + if test "$p" = "conftest.$objext"; then
1.10996 + pre_test_object_deps_done=yes
1.10997 + continue
1.10998 + fi
1.10999 +
1.11000 + if test "$pre_test_object_deps_done" = no; then
1.11001 + if test -z "$predep_objects_CXX"; then
1.11002 + predep_objects_CXX="$p"
1.11003 + else
1.11004 + predep_objects_CXX="$predep_objects_CXX $p"
1.11005 + fi
1.11006 + else
1.11007 + if test -z "$postdep_objects_CXX"; then
1.11008 + postdep_objects_CXX="$p"
1.11009 + else
1.11010 + postdep_objects_CXX="$postdep_objects_CXX $p"
1.11011 + fi
1.11012 + fi
1.11013 + ;;
1.11014 +
1.11015 + *) ;; # Ignore the rest.
1.11016 +
1.11017 + esac
1.11018 + done
1.11019 +
1.11020 + # Clean up.
1.11021 + rm -f a.out a.exe
1.11022 +else
1.11023 + echo "libtool.m4: error: problem compiling CXX test program"
1.11024 +fi
1.11025 +
1.11026 +$rm -f confest.$objext
1.11027 +
1.11028 +# PORTME: override above test on systems where it is broken
1.11029 +case $host_os in
1.11030 +solaris*)
1.11031 + case $cc_basename in
1.11032 + CC*)
1.11033 + # Adding this requires a known-good setup of shared libraries for
1.11034 + # Sun compiler versions before 5.6, else PIC objects from an old
1.11035 + # archive will be linked into the output, leading to subtle bugs.
1.11036 + postdeps_CXX='-lCstd -lCrun'
1.11037 + ;;
1.11038 + esac
1.11039 +esac
1.11040 +
1.11041 +
1.11042 +case " $postdeps_CXX " in
1.11043 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
1.11044 +esac
1.11045 +
1.11046 +lt_prog_compiler_wl_CXX=
1.11047 +lt_prog_compiler_pic_CXX=
1.11048 +lt_prog_compiler_static_CXX=
1.11049 +
1.11050 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
1.11051 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.11052 +
1.11053 + # C++ specific cases for pic, static, wl, etc.
1.11054 + if test "$GXX" = yes; then
1.11055 + lt_prog_compiler_wl_CXX='-Wl,'
1.11056 + lt_prog_compiler_static_CXX='-static'
1.11057 +
1.11058 + case $host_os in
1.11059 + aix*)
1.11060 + # All AIX code is PIC.
1.11061 + if test "$host_cpu" = ia64; then
1.11062 + # AIX 5 now supports IA64 processor
1.11063 + lt_prog_compiler_static_CXX='-Bstatic'
1.11064 + fi
1.11065 + ;;
1.11066 + amigaos*)
1.11067 + # FIXME: we need at least 68020 code to build shared libraries, but
1.11068 + # adding the `-m68020' flag to GCC prevents building anything better,
1.11069 + # like `-m68040'.
1.11070 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
1.11071 + ;;
1.11072 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.11073 + # PIC is the default for these OSes.
1.11074 + ;;
1.11075 + mingw* | os2* | pw32*)
1.11076 + # This hack is so that the source file can tell whether it is being
1.11077 + # built for inclusion in a dll (and should export symbols for example).
1.11078 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
1.11079 + ;;
1.11080 + darwin* | rhapsody*)
1.11081 + # PIC is the default on this platform
1.11082 + # Common symbols not allowed in MH_DYLIB files
1.11083 + lt_prog_compiler_pic_CXX='-fno-common'
1.11084 + ;;
1.11085 + *djgpp*)
1.11086 + # DJGPP does not support shared libraries at all
1.11087 + lt_prog_compiler_pic_CXX=
1.11088 + ;;
1.11089 + sysv4*MP*)
1.11090 + if test -d /usr/nec; then
1.11091 + lt_prog_compiler_pic_CXX=-Kconform_pic
1.11092 + fi
1.11093 + ;;
1.11094 + hpux*)
1.11095 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.11096 + # not for PA HP-UX.
1.11097 + case $host_cpu in
1.11098 + hppa*64*|ia64*)
1.11099 + ;;
1.11100 + *)
1.11101 + lt_prog_compiler_pic_CXX='-fPIC'
1.11102 + ;;
1.11103 + esac
1.11104 + ;;
1.11105 + *)
1.11106 + lt_prog_compiler_pic_CXX='-fPIC'
1.11107 + ;;
1.11108 + esac
1.11109 + else
1.11110 + case $host_os in
1.11111 + aix4* | aix5*)
1.11112 + # All AIX code is PIC.
1.11113 + if test "$host_cpu" = ia64; then
1.11114 + # AIX 5 now supports IA64 processor
1.11115 + lt_prog_compiler_static_CXX='-Bstatic'
1.11116 + else
1.11117 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
1.11118 + fi
1.11119 + ;;
1.11120 + chorus*)
1.11121 + case $cc_basename in
1.11122 + cxch68*)
1.11123 + # Green Hills C++ Compiler
1.11124 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
1.11125 + ;;
1.11126 + esac
1.11127 + ;;
1.11128 + darwin*)
1.11129 + # PIC is the default on this platform
1.11130 + # Common symbols not allowed in MH_DYLIB files
1.11131 + case $cc_basename in
1.11132 + xlc*)
1.11133 + lt_prog_compiler_pic_CXX='-qnocommon'
1.11134 + lt_prog_compiler_wl_CXX='-Wl,'
1.11135 + ;;
1.11136 + esac
1.11137 + ;;
1.11138 + dgux*)
1.11139 + case $cc_basename in
1.11140 + ec++*)
1.11141 + lt_prog_compiler_pic_CXX='-KPIC'
1.11142 + ;;
1.11143 + ghcx*)
1.11144 + # Green Hills C++ Compiler
1.11145 + lt_prog_compiler_pic_CXX='-pic'
1.11146 + ;;
1.11147 + *)
1.11148 + ;;
1.11149 + esac
1.11150 + ;;
1.11151 + freebsd* | kfreebsd*-gnu | dragonfly*)
1.11152 + # FreeBSD uses GNU C++
1.11153 + ;;
1.11154 + hpux9* | hpux10* | hpux11*)
1.11155 + case $cc_basename in
1.11156 + CC*)
1.11157 + lt_prog_compiler_wl_CXX='-Wl,'
1.11158 + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1.11159 + if test "$host_cpu" != ia64; then
1.11160 + lt_prog_compiler_pic_CXX='+Z'
1.11161 + fi
1.11162 + ;;
1.11163 + aCC*)
1.11164 + lt_prog_compiler_wl_CXX='-Wl,'
1.11165 + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
1.11166 + case $host_cpu in
1.11167 + hppa*64*|ia64*)
1.11168 + # +Z the default
1.11169 + ;;
1.11170 + *)
1.11171 + lt_prog_compiler_pic_CXX='+Z'
1.11172 + ;;
1.11173 + esac
1.11174 + ;;
1.11175 + *)
1.11176 + ;;
1.11177 + esac
1.11178 + ;;
1.11179 + irix5* | irix6* | nonstopux*)
1.11180 + case $cc_basename in
1.11181 + CC*)
1.11182 + lt_prog_compiler_wl_CXX='-Wl,'
1.11183 + lt_prog_compiler_static_CXX='-non_shared'
1.11184 + # CC pic flag -KPIC is the default.
1.11185 + ;;
1.11186 + *)
1.11187 + ;;
1.11188 + esac
1.11189 + ;;
1.11190 + linux*)
1.11191 + case $cc_basename in
1.11192 + KCC*)
1.11193 + # KAI C++ Compiler
1.11194 + lt_prog_compiler_wl_CXX='--backend -Wl,'
1.11195 + lt_prog_compiler_pic_CXX='-fPIC'
1.11196 + ;;
1.11197 + icpc* | ecpc*)
1.11198 + # Intel C++
1.11199 + lt_prog_compiler_wl_CXX='-Wl,'
1.11200 + lt_prog_compiler_pic_CXX='-KPIC'
1.11201 + lt_prog_compiler_static_CXX='-static'
1.11202 + ;;
1.11203 + pgCC*)
1.11204 + # Portland Group C++ compiler.
1.11205 + lt_prog_compiler_wl_CXX='-Wl,'
1.11206 + lt_prog_compiler_pic_CXX='-fpic'
1.11207 + lt_prog_compiler_static_CXX='-Bstatic'
1.11208 + ;;
1.11209 + cxx*)
1.11210 + # Compaq C++
1.11211 + # Make sure the PIC flag is empty. It appears that all Alpha
1.11212 + # Linux and Compaq Tru64 Unix objects are PIC.
1.11213 + lt_prog_compiler_pic_CXX=
1.11214 + lt_prog_compiler_static_CXX='-non_shared'
1.11215 + ;;
1.11216 + *)
1.11217 + ;;
1.11218 + esac
1.11219 + ;;
1.11220 + lynxos*)
1.11221 + ;;
1.11222 + m88k*)
1.11223 + ;;
1.11224 + mvs*)
1.11225 + case $cc_basename in
1.11226 + cxx*)
1.11227 + lt_prog_compiler_pic_CXX='-W c,exportall'
1.11228 + ;;
1.11229 + *)
1.11230 + ;;
1.11231 + esac
1.11232 + ;;
1.11233 + netbsd*)
1.11234 + ;;
1.11235 + osf3* | osf4* | osf5*)
1.11236 + case $cc_basename in
1.11237 + KCC*)
1.11238 + lt_prog_compiler_wl_CXX='--backend -Wl,'
1.11239 + ;;
1.11240 + RCC*)
1.11241 + # Rational C++ 2.4.1
1.11242 + lt_prog_compiler_pic_CXX='-pic'
1.11243 + ;;
1.11244 + cxx*)
1.11245 + # Digital/Compaq C++
1.11246 + lt_prog_compiler_wl_CXX='-Wl,'
1.11247 + # Make sure the PIC flag is empty. It appears that all Alpha
1.11248 + # Linux and Compaq Tru64 Unix objects are PIC.
1.11249 + lt_prog_compiler_pic_CXX=
1.11250 + lt_prog_compiler_static_CXX='-non_shared'
1.11251 + ;;
1.11252 + *)
1.11253 + ;;
1.11254 + esac
1.11255 + ;;
1.11256 + psos*)
1.11257 + ;;
1.11258 + sco*)
1.11259 + case $cc_basename in
1.11260 + CC*)
1.11261 + lt_prog_compiler_pic_CXX='-fPIC'
1.11262 + ;;
1.11263 + *)
1.11264 + ;;
1.11265 + esac
1.11266 + ;;
1.11267 + solaris*)
1.11268 + case $cc_basename in
1.11269 + CC*)
1.11270 + # Sun C++ 4.2, 5.x and Centerline C++
1.11271 + lt_prog_compiler_pic_CXX='-KPIC'
1.11272 + lt_prog_compiler_static_CXX='-Bstatic'
1.11273 + lt_prog_compiler_wl_CXX='-Qoption ld '
1.11274 + ;;
1.11275 + gcx*)
1.11276 + # Green Hills C++ Compiler
1.11277 + lt_prog_compiler_pic_CXX='-PIC'
1.11278 + ;;
1.11279 + *)
1.11280 + ;;
1.11281 + esac
1.11282 + ;;
1.11283 + sunos4*)
1.11284 + case $cc_basename in
1.11285 + CC*)
1.11286 + # Sun C++ 4.x
1.11287 + lt_prog_compiler_pic_CXX='-pic'
1.11288 + lt_prog_compiler_static_CXX='-Bstatic'
1.11289 + ;;
1.11290 + lcc*)
1.11291 + # Lucid
1.11292 + lt_prog_compiler_pic_CXX='-pic'
1.11293 + ;;
1.11294 + *)
1.11295 + ;;
1.11296 + esac
1.11297 + ;;
1.11298 + tandem*)
1.11299 + case $cc_basename in
1.11300 + NCC*)
1.11301 + # NonStop-UX NCC 3.20
1.11302 + lt_prog_compiler_pic_CXX='-KPIC'
1.11303 + ;;
1.11304 + *)
1.11305 + ;;
1.11306 + esac
1.11307 + ;;
1.11308 + unixware*)
1.11309 + ;;
1.11310 + vxworks*)
1.11311 + ;;
1.11312 + *)
1.11313 + lt_prog_compiler_can_build_shared_CXX=no
1.11314 + ;;
1.11315 + esac
1.11316 + fi
1.11317 +
1.11318 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
1.11319 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
1.11320 +
1.11321 +#
1.11322 +# Check to make sure the PIC flag actually works.
1.11323 +#
1.11324 +if test -n "$lt_prog_compiler_pic_CXX"; then
1.11325 +
1.11326 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
1.11327 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
1.11328 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
1.11329 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.11330 +else
1.11331 + lt_prog_compiler_pic_works_CXX=no
1.11332 + ac_outfile=conftest.$ac_objext
1.11333 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.11334 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
1.11335 + # Insert the option either (1) after the last *FLAGS variable, or
1.11336 + # (2) before a word containing "conftest.", or (3) at the end.
1.11337 + # Note that $ac_compile itself does not contain backslashes and begins
1.11338 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.11339 + # The option is referenced via a variable to avoid confusing sed.
1.11340 + lt_compile=`echo "$ac_compile" | $SED \
1.11341 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.11342 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.11343 + -e 's:$: $lt_compiler_flag:'`
1.11344 + (eval echo "\"\$as_me:11341: $lt_compile\"" >&5)
1.11345 + (eval "$lt_compile" 2>conftest.err)
1.11346 + ac_status=$?
1.11347 + cat conftest.err >&5
1.11348 + echo "$as_me:11345: \$? = $ac_status" >&5
1.11349 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.11350 + # The compiler can only warn and ignore the option if not recognized
1.11351 + # So say no if there are warnings other than the usual output.
1.11352 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.11353 + $SED '/^$/d' conftest.err >conftest.er2
1.11354 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.11355 + lt_prog_compiler_pic_works_CXX=yes
1.11356 + fi
1.11357 + fi
1.11358 + $rm conftest*
1.11359 +
1.11360 +fi
1.11361 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
1.11362 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
1.11363 +
1.11364 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
1.11365 + case $lt_prog_compiler_pic_CXX in
1.11366 + "" | " "*) ;;
1.11367 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
1.11368 + esac
1.11369 +else
1.11370 + lt_prog_compiler_pic_CXX=
1.11371 + lt_prog_compiler_can_build_shared_CXX=no
1.11372 +fi
1.11373 +
1.11374 +fi
1.11375 +case $host_os in
1.11376 + # For platforms which do not support PIC, -DPIC is meaningless:
1.11377 + *djgpp*)
1.11378 + lt_prog_compiler_pic_CXX=
1.11379 + ;;
1.11380 + *)
1.11381 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
1.11382 + ;;
1.11383 +esac
1.11384 +
1.11385 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1.11386 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1.11387 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
1.11388 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.11389 +else
1.11390 + lt_cv_prog_compiler_c_o_CXX=no
1.11391 + $rm -r conftest 2>/dev/null
1.11392 + mkdir conftest
1.11393 + cd conftest
1.11394 + mkdir out
1.11395 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.11396 +
1.11397 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1.11398 + # Insert the option either (1) after the last *FLAGS variable, or
1.11399 + # (2) before a word containing "conftest.", or (3) at the end.
1.11400 + # Note that $ac_compile itself does not contain backslashes and begins
1.11401 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.11402 + lt_compile=`echo "$ac_compile" | $SED \
1.11403 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.11404 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.11405 + -e 's:$: $lt_compiler_flag:'`
1.11406 + (eval echo "\"\$as_me:11403: $lt_compile\"" >&5)
1.11407 + (eval "$lt_compile" 2>out/conftest.err)
1.11408 + ac_status=$?
1.11409 + cat out/conftest.err >&5
1.11410 + echo "$as_me:11407: \$? = $ac_status" >&5
1.11411 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1.11412 + then
1.11413 + # The compiler can only warn and ignore the option if not recognized
1.11414 + # So say no if there are warnings
1.11415 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1.11416 + $SED '/^$/d' out/conftest.err >out/conftest.er2
1.11417 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.11418 + lt_cv_prog_compiler_c_o_CXX=yes
1.11419 + fi
1.11420 + fi
1.11421 + chmod u+w . 2>&5
1.11422 + $rm conftest*
1.11423 + # SGI C++ compiler will create directory out/ii_files/ for
1.11424 + # template instantiation
1.11425 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1.11426 + $rm out/* && rmdir out
1.11427 + cd ..
1.11428 + rmdir conftest
1.11429 + $rm conftest*
1.11430 +
1.11431 +fi
1.11432 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
1.11433 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1.11434 +
1.11435 +
1.11436 +hard_links="nottested"
1.11437 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
1.11438 + # do not overwrite the value of need_locks provided by the user
1.11439 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
1.11440 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.11441 + hard_links=yes
1.11442 + $rm conftest*
1.11443 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11444 + touch conftest.a
1.11445 + ln conftest.a conftest.b 2>&5 || hard_links=no
1.11446 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.11447 + echo "$as_me:$LINENO: result: $hard_links" >&5
1.11448 +echo "${ECHO_T}$hard_links" >&6
1.11449 + if test "$hard_links" = no; then
1.11450 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.11451 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.11452 + need_locks=warn
1.11453 + fi
1.11454 +else
1.11455 + need_locks=no
1.11456 +fi
1.11457 +
1.11458 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.11459 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.11460 +
1.11461 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.11462 + case $host_os in
1.11463 + aix4* | aix5*)
1.11464 + # If we're using GNU nm, then we don't want the "-C" option.
1.11465 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.11466 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.11467 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.11468 + else
1.11469 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.11470 + fi
1.11471 + ;;
1.11472 + pw32*)
1.11473 + export_symbols_cmds_CXX="$ltdll_cmds"
1.11474 + ;;
1.11475 + cygwin* | mingw*)
1.11476 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.11477 + ;;
1.11478 + *)
1.11479 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.11480 + ;;
1.11481 + esac
1.11482 +
1.11483 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
1.11484 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
1.11485 +test "$ld_shlibs_CXX" = no && can_build_shared=no
1.11486 +
1.11487 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.11488 +if test "$GCC" = yes; then
1.11489 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.11490 +fi
1.11491 +
1.11492 +#
1.11493 +# Do we need to explicitly link libc?
1.11494 +#
1.11495 +case "x$archive_cmds_need_lc_CXX" in
1.11496 +x|xyes)
1.11497 + # Assume -lc should be added
1.11498 + archive_cmds_need_lc_CXX=yes
1.11499 +
1.11500 + if test "$enable_shared" = yes && test "$GCC" = yes; then
1.11501 + case $archive_cmds_CXX in
1.11502 + *'~'*)
1.11503 + # FIXME: we may have to deal with multi-command sequences.
1.11504 + ;;
1.11505 + '$CC '*)
1.11506 + # Test whether the compiler implicitly links with -lc since on some
1.11507 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
1.11508 + # to ld, don't add -lc before -lgcc.
1.11509 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
1.11510 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.11511 + $rm conftest*
1.11512 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.11513 +
1.11514 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.11515 + (eval $ac_compile) 2>&5
1.11516 + ac_status=$?
1.11517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11518 + (exit $ac_status); } 2>conftest.err; then
1.11519 + soname=conftest
1.11520 + lib=conftest
1.11521 + libobjs=conftest.$ac_objext
1.11522 + deplibs=
1.11523 + wl=$lt_prog_compiler_wl_CXX
1.11524 + compiler_flags=-v
1.11525 + linker_flags=-v
1.11526 + verstring=
1.11527 + output_objdir=.
1.11528 + libname=conftest
1.11529 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
1.11530 + allow_undefined_flag_CXX=
1.11531 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.11532 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.11533 + ac_status=$?
1.11534 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.11535 + (exit $ac_status); }
1.11536 + then
1.11537 + archive_cmds_need_lc_CXX=no
1.11538 + else
1.11539 + archive_cmds_need_lc_CXX=yes
1.11540 + fi
1.11541 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
1.11542 + else
1.11543 + cat conftest.err 1>&5
1.11544 + fi
1.11545 + $rm conftest*
1.11546 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
1.11547 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
1.11548 + ;;
1.11549 + esac
1.11550 + fi
1.11551 + ;;
1.11552 +esac
1.11553 +
1.11554 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
1.11555 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.11556 +library_names_spec=
1.11557 +libname_spec='lib$name'
1.11558 +soname_spec=
1.11559 +shrext_cmds=".so"
1.11560 +postinstall_cmds=
1.11561 +postuninstall_cmds=
1.11562 +finish_cmds=
1.11563 +finish_eval=
1.11564 +shlibpath_var=
1.11565 +shlibpath_overrides_runpath=unknown
1.11566 +version_type=none
1.11567 +dynamic_linker="$host_os ld.so"
1.11568 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.11569 +if test "$GCC" = yes; then
1.11570 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.11571 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1.11572 + # if the path contains ";" then we assume it to be the separator
1.11573 + # otherwise default to the standard path separator (i.e. ":") - it is
1.11574 + # assumed that no part of a normal pathname contains ";" but that should
1.11575 + # okay in the real world where ";" in dirpaths is itself problematic.
1.11576 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.11577 + else
1.11578 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.11579 + fi
1.11580 +else
1.11581 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.11582 +fi
1.11583 +need_lib_prefix=unknown
1.11584 +hardcode_into_libs=no
1.11585 +
1.11586 +# when you set need_version to no, make sure it does not cause -set_version
1.11587 +# flags to be left without arguments
1.11588 +need_version=unknown
1.11589 +
1.11590 +case $host_os in
1.11591 +aix3*)
1.11592 + version_type=linux
1.11593 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.11594 + shlibpath_var=LIBPATH
1.11595 +
1.11596 + # AIX 3 has no versioning support, so we append a major version to the name.
1.11597 + soname_spec='${libname}${release}${shared_ext}$major'
1.11598 + ;;
1.11599 +
1.11600 +aix4* | aix5*)
1.11601 + version_type=linux
1.11602 + need_lib_prefix=no
1.11603 + need_version=no
1.11604 + hardcode_into_libs=yes
1.11605 + if test "$host_cpu" = ia64; then
1.11606 + # AIX 5 supports IA64
1.11607 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.11608 + shlibpath_var=LD_LIBRARY_PATH
1.11609 + else
1.11610 + # With GCC up to 2.95.x, collect2 would create an import file
1.11611 + # for dependence libraries. The import file would start with
1.11612 + # the line `#! .'. This would cause the generated library to
1.11613 + # depend on `.', always an invalid library. This was fixed in
1.11614 + # development snapshots of GCC prior to 3.0.
1.11615 + case $host_os in
1.11616 + aix4 | aix4.[01] | aix4.[01].*)
1.11617 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1.11618 + echo ' yes '
1.11619 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1.11620 + :
1.11621 + else
1.11622 + can_build_shared=no
1.11623 + fi
1.11624 + ;;
1.11625 + esac
1.11626 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1.11627 + # soname into executable. Probably we can add versioning support to
1.11628 + # collect2, so additional links can be useful in future.
1.11629 + if test "$aix_use_runtimelinking" = yes; then
1.11630 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1.11631 + # instead of lib<name>.a to let people know that these are not
1.11632 + # typical AIX shared libraries.
1.11633 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11634 + else
1.11635 + # We preserve .a as extension for shared libraries through AIX4.2
1.11636 + # and later when we are not doing run time linking.
1.11637 + library_names_spec='${libname}${release}.a $libname.a'
1.11638 + soname_spec='${libname}${release}${shared_ext}$major'
1.11639 + fi
1.11640 + shlibpath_var=LIBPATH
1.11641 + fi
1.11642 + ;;
1.11643 +
1.11644 +amigaos*)
1.11645 + library_names_spec='$libname.ixlibrary $libname.a'
1.11646 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.11647 + 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'
1.11648 + ;;
1.11649 +
1.11650 +beos*)
1.11651 + library_names_spec='${libname}${shared_ext}'
1.11652 + dynamic_linker="$host_os ld.so"
1.11653 + shlibpath_var=LIBRARY_PATH
1.11654 + ;;
1.11655 +
1.11656 +bsdi[45]*)
1.11657 + version_type=linux
1.11658 + need_version=no
1.11659 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11660 + soname_spec='${libname}${release}${shared_ext}$major'
1.11661 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.11662 + shlibpath_var=LD_LIBRARY_PATH
1.11663 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1.11664 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1.11665 + # the default ld.so.conf also contains /usr/contrib/lib and
1.11666 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1.11667 + # libtool to hard-code these into programs
1.11668 + ;;
1.11669 +
1.11670 +cygwin* | mingw* | pw32*)
1.11671 + version_type=windows
1.11672 + shrext_cmds=".dll"
1.11673 + need_version=no
1.11674 + need_lib_prefix=no
1.11675 +
1.11676 + case $GCC,$host_os in
1.11677 + yes,cygwin* | yes,mingw* | yes,pw32*)
1.11678 + library_names_spec='$libname.dll.a'
1.11679 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.11680 + postinstall_cmds='base_file=`basename \${file}`~
1.11681 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.11682 + dldir=$destdir/`dirname \$dlpath`~
1.11683 + test -d \$dldir || mkdir -p \$dldir~
1.11684 + $install_prog $dir/$dlname \$dldir/$dlname~
1.11685 + chmod a+x \$dldir/$dlname'
1.11686 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.11687 + dlpath=$dir/\$dldll~
1.11688 + $rm \$dlpath'
1.11689 + shlibpath_overrides_runpath=yes
1.11690 +
1.11691 + case $host_os in
1.11692 + cygwin*)
1.11693 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.11694 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.11695 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.11696 + ;;
1.11697 + mingw*)
1.11698 + # MinGW DLLs use traditional 'lib' prefix
1.11699 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.11700 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.11701 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1.11702 + # It is most probably a Windows format PATH printed by
1.11703 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1.11704 + # path with ; separators, and with drive letters. We can handle the
1.11705 + # drive letters (cygwin fileutils understands them), so leave them,
1.11706 + # especially as we might pass files found there to a mingw objdump,
1.11707 + # which wouldn't understand a cygwinified path. Ahh.
1.11708 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.11709 + else
1.11710 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.11711 + fi
1.11712 + ;;
1.11713 + pw32*)
1.11714 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1.11715 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.11716 + ;;
1.11717 + esac
1.11718 + ;;
1.11719 +
1.11720 + *)
1.11721 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.11722 + ;;
1.11723 + esac
1.11724 + dynamic_linker='Win32 ld.exe'
1.11725 + # FIXME: first we should search . and the directory the executable is in
1.11726 + shlibpath_var=PATH
1.11727 + ;;
1.11728 +
1.11729 +darwin* | rhapsody*)
1.11730 + dynamic_linker="$host_os dyld"
1.11731 + version_type=darwin
1.11732 + need_lib_prefix=no
1.11733 + need_version=no
1.11734 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.11735 + soname_spec='${libname}${release}${major}$shared_ext'
1.11736 + shlibpath_overrides_runpath=yes
1.11737 + shlibpath_var=DYLD_LIBRARY_PATH
1.11738 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.11739 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.11740 + if test "$GCC" = yes; then
1.11741 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1.11742 + else
1.11743 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.11744 + fi
1.11745 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.11746 + ;;
1.11747 +
1.11748 +dgux*)
1.11749 + version_type=linux
1.11750 + need_lib_prefix=no
1.11751 + need_version=no
1.11752 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1.11753 + soname_spec='${libname}${release}${shared_ext}$major'
1.11754 + shlibpath_var=LD_LIBRARY_PATH
1.11755 + ;;
1.11756 +
1.11757 +freebsd1*)
1.11758 + dynamic_linker=no
1.11759 + ;;
1.11760 +
1.11761 +kfreebsd*-gnu)
1.11762 + version_type=linux
1.11763 + need_lib_prefix=no
1.11764 + need_version=no
1.11765 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.11766 + soname_spec='${libname}${release}${shared_ext}$major'
1.11767 + shlibpath_var=LD_LIBRARY_PATH
1.11768 + shlibpath_overrides_runpath=no
1.11769 + hardcode_into_libs=yes
1.11770 + dynamic_linker='GNU ld.so'
1.11771 + ;;
1.11772 +
1.11773 +freebsd* | dragonfly*)
1.11774 + # DragonFly does not have aout. When/if they implement a new
1.11775 + # versioning mechanism, adjust this.
1.11776 + if test -x /usr/bin/objformat; then
1.11777 + objformat=`/usr/bin/objformat`
1.11778 + else
1.11779 + case $host_os in
1.11780 + freebsd[123]*) objformat=aout ;;
1.11781 + *) objformat=elf ;;
1.11782 + esac
1.11783 + fi
1.11784 + version_type=freebsd-$objformat
1.11785 + case $version_type in
1.11786 + freebsd-elf*)
1.11787 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.11788 + need_version=no
1.11789 + need_lib_prefix=no
1.11790 + ;;
1.11791 + freebsd-*)
1.11792 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.11793 + need_version=yes
1.11794 + ;;
1.11795 + esac
1.11796 + shlibpath_var=LD_LIBRARY_PATH
1.11797 + case $host_os in
1.11798 + freebsd2*)
1.11799 + shlibpath_overrides_runpath=yes
1.11800 + ;;
1.11801 + freebsd3.[01]* | freebsdelf3.[01]*)
1.11802 + shlibpath_overrides_runpath=yes
1.11803 + hardcode_into_libs=yes
1.11804 + ;;
1.11805 + *) # from 3.2 on
1.11806 + shlibpath_overrides_runpath=no
1.11807 + hardcode_into_libs=yes
1.11808 + ;;
1.11809 + esac
1.11810 + ;;
1.11811 +
1.11812 +gnu*)
1.11813 + version_type=linux
1.11814 + need_lib_prefix=no
1.11815 + need_version=no
1.11816 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1.11817 + soname_spec='${libname}${release}${shared_ext}$major'
1.11818 + shlibpath_var=LD_LIBRARY_PATH
1.11819 + hardcode_into_libs=yes
1.11820 + ;;
1.11821 +
1.11822 +hpux9* | hpux10* | hpux11*)
1.11823 + # Give a soname corresponding to the major version so that dld.sl refuses to
1.11824 + # link against other versions.
1.11825 + version_type=sunos
1.11826 + need_lib_prefix=no
1.11827 + need_version=no
1.11828 + case $host_cpu in
1.11829 + ia64*)
1.11830 + shrext_cmds='.so'
1.11831 + hardcode_into_libs=yes
1.11832 + dynamic_linker="$host_os dld.so"
1.11833 + shlibpath_var=LD_LIBRARY_PATH
1.11834 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.11835 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11836 + soname_spec='${libname}${release}${shared_ext}$major'
1.11837 + if test "X$HPUX_IA64_MODE" = X32; then
1.11838 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.11839 + else
1.11840 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.11841 + fi
1.11842 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.11843 + ;;
1.11844 + hppa*64*)
1.11845 + shrext_cmds='.sl'
1.11846 + hardcode_into_libs=yes
1.11847 + dynamic_linker="$host_os dld.sl"
1.11848 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1.11849 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.11850 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11851 + soname_spec='${libname}${release}${shared_ext}$major'
1.11852 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1.11853 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.11854 + ;;
1.11855 + *)
1.11856 + shrext_cmds='.sl'
1.11857 + dynamic_linker="$host_os dld.sl"
1.11858 + shlibpath_var=SHLIB_PATH
1.11859 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.11860 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11861 + soname_spec='${libname}${release}${shared_ext}$major'
1.11862 + ;;
1.11863 + esac
1.11864 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1.11865 + postinstall_cmds='chmod 555 $lib'
1.11866 + ;;
1.11867 +
1.11868 +irix5* | irix6* | nonstopux*)
1.11869 + case $host_os in
1.11870 + nonstopux*) version_type=nonstopux ;;
1.11871 + *)
1.11872 + if test "$lt_cv_prog_gnu_ld" = yes; then
1.11873 + version_type=linux
1.11874 + else
1.11875 + version_type=irix
1.11876 + fi ;;
1.11877 + esac
1.11878 + need_lib_prefix=no
1.11879 + need_version=no
1.11880 + soname_spec='${libname}${release}${shared_ext}$major'
1.11881 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.11882 + case $host_os in
1.11883 + irix5* | nonstopux*)
1.11884 + libsuff= shlibsuff=
1.11885 + ;;
1.11886 + *)
1.11887 + case $LD in # libtool.m4 will add one of these switches to LD
1.11888 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1.11889 + libsuff= shlibsuff= libmagic=32-bit;;
1.11890 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1.11891 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1.11892 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1.11893 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.11894 + *) libsuff= shlibsuff= libmagic=never-match;;
1.11895 + esac
1.11896 + ;;
1.11897 + esac
1.11898 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1.11899 + shlibpath_overrides_runpath=no
1.11900 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1.11901 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.11902 + hardcode_into_libs=yes
1.11903 + ;;
1.11904 +
1.11905 +# No shared lib support for Linux oldld, aout, or coff.
1.11906 +linux*oldld* | linux*aout* | linux*coff*)
1.11907 + dynamic_linker=no
1.11908 + ;;
1.11909 +
1.11910 +# This must be Linux ELF.
1.11911 +linux*)
1.11912 + version_type=linux
1.11913 + need_lib_prefix=no
1.11914 + need_version=no
1.11915 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11916 + soname_spec='${libname}${release}${shared_ext}$major'
1.11917 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.11918 + shlibpath_var=LD_LIBRARY_PATH
1.11919 + shlibpath_overrides_runpath=no
1.11920 + # This implies no fast_install, which is unacceptable.
1.11921 + # Some rework will be needed to allow for fast_install
1.11922 + # before this can be enabled.
1.11923 + hardcode_into_libs=yes
1.11924 +
1.11925 + # Append ld.so.conf contents to the search path
1.11926 + if test -f /etc/ld.so.conf; then
1.11927 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.11928 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.11929 + fi
1.11930 +
1.11931 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1.11932 + # powerpc, because MkLinux only supported shared libraries with the
1.11933 + # GNU dynamic linker. Since this was broken with cross compilers,
1.11934 + # most powerpc-linux boxes support dynamic linking these days and
1.11935 + # people can always --disable-shared, the test was removed, and we
1.11936 + # assume the GNU/Linux dynamic linker is in use.
1.11937 + dynamic_linker='GNU/Linux ld.so'
1.11938 + ;;
1.11939 +
1.11940 +knetbsd*-gnu)
1.11941 + version_type=linux
1.11942 + need_lib_prefix=no
1.11943 + need_version=no
1.11944 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.11945 + soname_spec='${libname}${release}${shared_ext}$major'
1.11946 + shlibpath_var=LD_LIBRARY_PATH
1.11947 + shlibpath_overrides_runpath=no
1.11948 + hardcode_into_libs=yes
1.11949 + dynamic_linker='GNU ld.so'
1.11950 + ;;
1.11951 +
1.11952 +netbsd*)
1.11953 + version_type=sunos
1.11954 + need_lib_prefix=no
1.11955 + need_version=no
1.11956 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.11957 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.11958 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.11959 + dynamic_linker='NetBSD (a.out) ld.so'
1.11960 + else
1.11961 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.11962 + soname_spec='${libname}${release}${shared_ext}$major'
1.11963 + dynamic_linker='NetBSD ld.elf_so'
1.11964 + fi
1.11965 + shlibpath_var=LD_LIBRARY_PATH
1.11966 + shlibpath_overrides_runpath=yes
1.11967 + hardcode_into_libs=yes
1.11968 + ;;
1.11969 +
1.11970 +newsos6)
1.11971 + version_type=linux
1.11972 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11973 + shlibpath_var=LD_LIBRARY_PATH
1.11974 + shlibpath_overrides_runpath=yes
1.11975 + ;;
1.11976 +
1.11977 +nto-qnx*)
1.11978 + version_type=linux
1.11979 + need_lib_prefix=no
1.11980 + need_version=no
1.11981 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.11982 + soname_spec='${libname}${release}${shared_ext}$major'
1.11983 + shlibpath_var=LD_LIBRARY_PATH
1.11984 + shlibpath_overrides_runpath=yes
1.11985 + ;;
1.11986 +
1.11987 +openbsd*)
1.11988 + version_type=sunos
1.11989 + need_lib_prefix=no
1.11990 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.11991 + case $host_os in
1.11992 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.11993 + *) need_version=no ;;
1.11994 + esac
1.11995 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.11996 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.11997 + shlibpath_var=LD_LIBRARY_PATH
1.11998 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.11999 + case $host_os in
1.12000 + openbsd2.[89] | openbsd2.[89].*)
1.12001 + shlibpath_overrides_runpath=no
1.12002 + ;;
1.12003 + *)
1.12004 + shlibpath_overrides_runpath=yes
1.12005 + ;;
1.12006 + esac
1.12007 + else
1.12008 + shlibpath_overrides_runpath=yes
1.12009 + fi
1.12010 + ;;
1.12011 +
1.12012 +os2*)
1.12013 + libname_spec='$name'
1.12014 + shrext_cmds=".dll"
1.12015 + need_lib_prefix=no
1.12016 + library_names_spec='$libname${shared_ext} $libname.a'
1.12017 + dynamic_linker='OS/2 ld.exe'
1.12018 + shlibpath_var=LIBPATH
1.12019 + ;;
1.12020 +
1.12021 +osf3* | osf4* | osf5*)
1.12022 + version_type=osf
1.12023 + need_lib_prefix=no
1.12024 + need_version=no
1.12025 + soname_spec='${libname}${release}${shared_ext}$major'
1.12026 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.12027 + shlibpath_var=LD_LIBRARY_PATH
1.12028 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.12029 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.12030 + ;;
1.12031 +
1.12032 +sco3.2v5*)
1.12033 + version_type=osf
1.12034 + soname_spec='${libname}${release}${shared_ext}$major'
1.12035 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.12036 + shlibpath_var=LD_LIBRARY_PATH
1.12037 + ;;
1.12038 +
1.12039 +solaris*)
1.12040 + version_type=linux
1.12041 + need_lib_prefix=no
1.12042 + need_version=no
1.12043 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.12044 + soname_spec='${libname}${release}${shared_ext}$major'
1.12045 + shlibpath_var=LD_LIBRARY_PATH
1.12046 + shlibpath_overrides_runpath=yes
1.12047 + hardcode_into_libs=yes
1.12048 + # ldd complains unless libraries are executable
1.12049 + postinstall_cmds='chmod +x $lib'
1.12050 + ;;
1.12051 +
1.12052 +sunos4*)
1.12053 + version_type=sunos
1.12054 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.12055 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.12056 + shlibpath_var=LD_LIBRARY_PATH
1.12057 + shlibpath_overrides_runpath=yes
1.12058 + if test "$with_gnu_ld" = yes; then
1.12059 + need_lib_prefix=no
1.12060 + fi
1.12061 + need_version=yes
1.12062 + ;;
1.12063 +
1.12064 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.12065 + version_type=linux
1.12066 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.12067 + soname_spec='${libname}${release}${shared_ext}$major'
1.12068 + shlibpath_var=LD_LIBRARY_PATH
1.12069 + case $host_vendor in
1.12070 + sni)
1.12071 + shlibpath_overrides_runpath=no
1.12072 + need_lib_prefix=no
1.12073 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1.12074 + runpath_var=LD_RUN_PATH
1.12075 + ;;
1.12076 + siemens)
1.12077 + need_lib_prefix=no
1.12078 + ;;
1.12079 + motorola)
1.12080 + need_lib_prefix=no
1.12081 + need_version=no
1.12082 + shlibpath_overrides_runpath=no
1.12083 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1.12084 + ;;
1.12085 + esac
1.12086 + ;;
1.12087 +
1.12088 +sysv4*MP*)
1.12089 + if test -d /usr/nec ;then
1.12090 + version_type=linux
1.12091 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1.12092 + soname_spec='$libname${shared_ext}.$major'
1.12093 + shlibpath_var=LD_LIBRARY_PATH
1.12094 + fi
1.12095 + ;;
1.12096 +
1.12097 +uts4*)
1.12098 + version_type=linux
1.12099 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.12100 + soname_spec='${libname}${release}${shared_ext}$major'
1.12101 + shlibpath_var=LD_LIBRARY_PATH
1.12102 + ;;
1.12103 +
1.12104 +*)
1.12105 + dynamic_linker=no
1.12106 + ;;
1.12107 +esac
1.12108 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1.12109 +echo "${ECHO_T}$dynamic_linker" >&6
1.12110 +test "$dynamic_linker" = no && can_build_shared=no
1.12111 +
1.12112 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1.12113 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.12114 +hardcode_action_CXX=
1.12115 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
1.12116 + test -n "$runpath_var_CXX" || \
1.12117 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
1.12118 +
1.12119 + # We can hardcode non-existant directories.
1.12120 + if test "$hardcode_direct_CXX" != no &&
1.12121 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1.12122 + # have to relink, otherwise we might link with an installed library
1.12123 + # when we should be linking with a yet-to-be-installed one
1.12124 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
1.12125 + test "$hardcode_minus_L_CXX" != no; then
1.12126 + # Linking always hardcodes the temporary library directory.
1.12127 + hardcode_action_CXX=relink
1.12128 + else
1.12129 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.12130 + hardcode_action_CXX=immediate
1.12131 + fi
1.12132 +else
1.12133 + # We cannot hardcode anything, or else we can only hardcode existing
1.12134 + # directories.
1.12135 + hardcode_action_CXX=unsupported
1.12136 +fi
1.12137 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
1.12138 +echo "${ECHO_T}$hardcode_action_CXX" >&6
1.12139 +
1.12140 +if test "$hardcode_action_CXX" = relink; then
1.12141 + # Fast installation is not supported
1.12142 + enable_fast_install=no
1.12143 +elif test "$shlibpath_overrides_runpath" = yes ||
1.12144 + test "$enable_shared" = no; then
1.12145 + # Fast installation is not necessary
1.12146 + enable_fast_install=needless
1.12147 +fi
1.12148 +
1.12149 +striplib=
1.12150 +old_striplib=
1.12151 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
1.12152 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.12153 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1.12154 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1.12155 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.12156 + echo "$as_me:$LINENO: result: yes" >&5
1.12157 +echo "${ECHO_T}yes" >&6
1.12158 +else
1.12159 +# FIXME - insert some real tests, host_os isn't really good enough
1.12160 + case $host_os in
1.12161 + darwin*)
1.12162 + if test -n "$STRIP" ; then
1.12163 + striplib="$STRIP -x"
1.12164 + echo "$as_me:$LINENO: result: yes" >&5
1.12165 +echo "${ECHO_T}yes" >&6
1.12166 + else
1.12167 + echo "$as_me:$LINENO: result: no" >&5
1.12168 +echo "${ECHO_T}no" >&6
1.12169 +fi
1.12170 + ;;
1.12171 + *)
1.12172 + echo "$as_me:$LINENO: result: no" >&5
1.12173 +echo "${ECHO_T}no" >&6
1.12174 + ;;
1.12175 + esac
1.12176 +fi
1.12177 +
1.12178 +if test "x$enable_dlopen" != xyes; then
1.12179 + enable_dlopen=unknown
1.12180 + enable_dlopen_self=unknown
1.12181 + enable_dlopen_self_static=unknown
1.12182 +else
1.12183 + lt_cv_dlopen=no
1.12184 + lt_cv_dlopen_libs=
1.12185 +
1.12186 + case $host_os in
1.12187 + beos*)
1.12188 + lt_cv_dlopen="load_add_on"
1.12189 + lt_cv_dlopen_libs=
1.12190 + lt_cv_dlopen_self=yes
1.12191 + ;;
1.12192 +
1.12193 + mingw* | pw32*)
1.12194 + lt_cv_dlopen="LoadLibrary"
1.12195 + lt_cv_dlopen_libs=
1.12196 + ;;
1.12197 +
1.12198 + cygwin*)
1.12199 + lt_cv_dlopen="dlopen"
1.12200 + lt_cv_dlopen_libs=
1.12201 + ;;
1.12202 +
1.12203 + darwin*)
1.12204 + # if libdl is installed we need to link against it
1.12205 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.12206 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.12207 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.12208 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12209 +else
1.12210 + ac_check_lib_save_LIBS=$LIBS
1.12211 +LIBS="-ldl $LIBS"
1.12212 +cat >conftest.$ac_ext <<_ACEOF
1.12213 +/* confdefs.h. */
1.12214 +_ACEOF
1.12215 +cat confdefs.h >>conftest.$ac_ext
1.12216 +cat >>conftest.$ac_ext <<_ACEOF
1.12217 +/* end confdefs.h. */
1.12218 +
1.12219 +/* Override any gcc2 internal prototype to avoid an error. */
1.12220 +#ifdef __cplusplus
1.12221 +extern "C"
1.12222 +#endif
1.12223 +/* We use char because int might match the return type of a gcc2
1.12224 + builtin and then its argument prototype would still apply. */
1.12225 +char dlopen ();
1.12226 +int
1.12227 +main ()
1.12228 +{
1.12229 +dlopen ();
1.12230 + ;
1.12231 + return 0;
1.12232 +}
1.12233 +_ACEOF
1.12234 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12235 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12236 + (eval $ac_link) 2>conftest.er1
1.12237 + ac_status=$?
1.12238 + grep -v '^ *+' conftest.er1 >conftest.err
1.12239 + rm -f conftest.er1
1.12240 + cat conftest.err >&5
1.12241 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12242 + (exit $ac_status); } &&
1.12243 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12244 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12245 + (eval $ac_try) 2>&5
1.12246 + ac_status=$?
1.12247 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12248 + (exit $ac_status); }; } &&
1.12249 + { ac_try='test -s conftest$ac_exeext'
1.12250 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12251 + (eval $ac_try) 2>&5
1.12252 + ac_status=$?
1.12253 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12254 + (exit $ac_status); }; }; then
1.12255 + ac_cv_lib_dl_dlopen=yes
1.12256 +else
1.12257 + echo "$as_me: failed program was:" >&5
1.12258 +sed 's/^/| /' conftest.$ac_ext >&5
1.12259 +
1.12260 +ac_cv_lib_dl_dlopen=no
1.12261 +fi
1.12262 +rm -f conftest.err conftest.$ac_objext \
1.12263 + conftest$ac_exeext conftest.$ac_ext
1.12264 +LIBS=$ac_check_lib_save_LIBS
1.12265 +fi
1.12266 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.12267 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.12268 +if test $ac_cv_lib_dl_dlopen = yes; then
1.12269 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.12270 +else
1.12271 +
1.12272 + lt_cv_dlopen="dyld"
1.12273 + lt_cv_dlopen_libs=
1.12274 + lt_cv_dlopen_self=yes
1.12275 +
1.12276 +fi
1.12277 +
1.12278 + ;;
1.12279 +
1.12280 + *)
1.12281 + echo "$as_me:$LINENO: checking for shl_load" >&5
1.12282 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1.12283 +if test "${ac_cv_func_shl_load+set}" = set; then
1.12284 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12285 +else
1.12286 + cat >conftest.$ac_ext <<_ACEOF
1.12287 +/* confdefs.h. */
1.12288 +_ACEOF
1.12289 +cat confdefs.h >>conftest.$ac_ext
1.12290 +cat >>conftest.$ac_ext <<_ACEOF
1.12291 +/* end confdefs.h. */
1.12292 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
1.12293 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.12294 +#define shl_load innocuous_shl_load
1.12295 +
1.12296 +/* System header to define __stub macros and hopefully few prototypes,
1.12297 + which can conflict with char shl_load (); below.
1.12298 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.12299 + <limits.h> exists even on freestanding compilers. */
1.12300 +
1.12301 +#ifdef __STDC__
1.12302 +# include <limits.h>
1.12303 +#else
1.12304 +# include <assert.h>
1.12305 +#endif
1.12306 +
1.12307 +#undef shl_load
1.12308 +
1.12309 +/* Override any gcc2 internal prototype to avoid an error. */
1.12310 +#ifdef __cplusplus
1.12311 +extern "C"
1.12312 +{
1.12313 +#endif
1.12314 +/* We use char because int might match the return type of a gcc2
1.12315 + builtin and then its argument prototype would still apply. */
1.12316 +char shl_load ();
1.12317 +/* The GNU C library defines this for functions which it implements
1.12318 + to always fail with ENOSYS. Some functions are actually named
1.12319 + something starting with __ and the normal name is an alias. */
1.12320 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
1.12321 +choke me
1.12322 +#else
1.12323 +char (*f) () = shl_load;
1.12324 +#endif
1.12325 +#ifdef __cplusplus
1.12326 +}
1.12327 +#endif
1.12328 +
1.12329 +int
1.12330 +main ()
1.12331 +{
1.12332 +return f != shl_load;
1.12333 + ;
1.12334 + return 0;
1.12335 +}
1.12336 +_ACEOF
1.12337 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12338 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12339 + (eval $ac_link) 2>conftest.er1
1.12340 + ac_status=$?
1.12341 + grep -v '^ *+' conftest.er1 >conftest.err
1.12342 + rm -f conftest.er1
1.12343 + cat conftest.err >&5
1.12344 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12345 + (exit $ac_status); } &&
1.12346 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12347 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12348 + (eval $ac_try) 2>&5
1.12349 + ac_status=$?
1.12350 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12351 + (exit $ac_status); }; } &&
1.12352 + { ac_try='test -s conftest$ac_exeext'
1.12353 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12354 + (eval $ac_try) 2>&5
1.12355 + ac_status=$?
1.12356 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12357 + (exit $ac_status); }; }; then
1.12358 + ac_cv_func_shl_load=yes
1.12359 +else
1.12360 + echo "$as_me: failed program was:" >&5
1.12361 +sed 's/^/| /' conftest.$ac_ext >&5
1.12362 +
1.12363 +ac_cv_func_shl_load=no
1.12364 +fi
1.12365 +rm -f conftest.err conftest.$ac_objext \
1.12366 + conftest$ac_exeext conftest.$ac_ext
1.12367 +fi
1.12368 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
1.12369 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1.12370 +if test $ac_cv_func_shl_load = yes; then
1.12371 + lt_cv_dlopen="shl_load"
1.12372 +else
1.12373 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
1.12374 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1.12375 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.12376 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12377 +else
1.12378 + ac_check_lib_save_LIBS=$LIBS
1.12379 +LIBS="-ldld $LIBS"
1.12380 +cat >conftest.$ac_ext <<_ACEOF
1.12381 +/* confdefs.h. */
1.12382 +_ACEOF
1.12383 +cat confdefs.h >>conftest.$ac_ext
1.12384 +cat >>conftest.$ac_ext <<_ACEOF
1.12385 +/* end confdefs.h. */
1.12386 +
1.12387 +/* Override any gcc2 internal prototype to avoid an error. */
1.12388 +#ifdef __cplusplus
1.12389 +extern "C"
1.12390 +#endif
1.12391 +/* We use char because int might match the return type of a gcc2
1.12392 + builtin and then its argument prototype would still apply. */
1.12393 +char shl_load ();
1.12394 +int
1.12395 +main ()
1.12396 +{
1.12397 +shl_load ();
1.12398 + ;
1.12399 + return 0;
1.12400 +}
1.12401 +_ACEOF
1.12402 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12403 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12404 + (eval $ac_link) 2>conftest.er1
1.12405 + ac_status=$?
1.12406 + grep -v '^ *+' conftest.er1 >conftest.err
1.12407 + rm -f conftest.er1
1.12408 + cat conftest.err >&5
1.12409 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12410 + (exit $ac_status); } &&
1.12411 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12412 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12413 + (eval $ac_try) 2>&5
1.12414 + ac_status=$?
1.12415 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12416 + (exit $ac_status); }; } &&
1.12417 + { ac_try='test -s conftest$ac_exeext'
1.12418 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12419 + (eval $ac_try) 2>&5
1.12420 + ac_status=$?
1.12421 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12422 + (exit $ac_status); }; }; then
1.12423 + ac_cv_lib_dld_shl_load=yes
1.12424 +else
1.12425 + echo "$as_me: failed program was:" >&5
1.12426 +sed 's/^/| /' conftest.$ac_ext >&5
1.12427 +
1.12428 +ac_cv_lib_dld_shl_load=no
1.12429 +fi
1.12430 +rm -f conftest.err conftest.$ac_objext \
1.12431 + conftest$ac_exeext conftest.$ac_ext
1.12432 +LIBS=$ac_check_lib_save_LIBS
1.12433 +fi
1.12434 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
1.12435 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1.12436 +if test $ac_cv_lib_dld_shl_load = yes; then
1.12437 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1.12438 +else
1.12439 + echo "$as_me:$LINENO: checking for dlopen" >&5
1.12440 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1.12441 +if test "${ac_cv_func_dlopen+set}" = set; then
1.12442 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12443 +else
1.12444 + cat >conftest.$ac_ext <<_ACEOF
1.12445 +/* confdefs.h. */
1.12446 +_ACEOF
1.12447 +cat confdefs.h >>conftest.$ac_ext
1.12448 +cat >>conftest.$ac_ext <<_ACEOF
1.12449 +/* end confdefs.h. */
1.12450 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
1.12451 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.12452 +#define dlopen innocuous_dlopen
1.12453 +
1.12454 +/* System header to define __stub macros and hopefully few prototypes,
1.12455 + which can conflict with char dlopen (); below.
1.12456 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.12457 + <limits.h> exists even on freestanding compilers. */
1.12458 +
1.12459 +#ifdef __STDC__
1.12460 +# include <limits.h>
1.12461 +#else
1.12462 +# include <assert.h>
1.12463 +#endif
1.12464 +
1.12465 +#undef dlopen
1.12466 +
1.12467 +/* Override any gcc2 internal prototype to avoid an error. */
1.12468 +#ifdef __cplusplus
1.12469 +extern "C"
1.12470 +{
1.12471 +#endif
1.12472 +/* We use char because int might match the return type of a gcc2
1.12473 + builtin and then its argument prototype would still apply. */
1.12474 +char dlopen ();
1.12475 +/* The GNU C library defines this for functions which it implements
1.12476 + to always fail with ENOSYS. Some functions are actually named
1.12477 + something starting with __ and the normal name is an alias. */
1.12478 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
1.12479 +choke me
1.12480 +#else
1.12481 +char (*f) () = dlopen;
1.12482 +#endif
1.12483 +#ifdef __cplusplus
1.12484 +}
1.12485 +#endif
1.12486 +
1.12487 +int
1.12488 +main ()
1.12489 +{
1.12490 +return f != dlopen;
1.12491 + ;
1.12492 + return 0;
1.12493 +}
1.12494 +_ACEOF
1.12495 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12496 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12497 + (eval $ac_link) 2>conftest.er1
1.12498 + ac_status=$?
1.12499 + grep -v '^ *+' conftest.er1 >conftest.err
1.12500 + rm -f conftest.er1
1.12501 + cat conftest.err >&5
1.12502 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12503 + (exit $ac_status); } &&
1.12504 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12505 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12506 + (eval $ac_try) 2>&5
1.12507 + ac_status=$?
1.12508 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12509 + (exit $ac_status); }; } &&
1.12510 + { ac_try='test -s conftest$ac_exeext'
1.12511 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12512 + (eval $ac_try) 2>&5
1.12513 + ac_status=$?
1.12514 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12515 + (exit $ac_status); }; }; then
1.12516 + ac_cv_func_dlopen=yes
1.12517 +else
1.12518 + echo "$as_me: failed program was:" >&5
1.12519 +sed 's/^/| /' conftest.$ac_ext >&5
1.12520 +
1.12521 +ac_cv_func_dlopen=no
1.12522 +fi
1.12523 +rm -f conftest.err conftest.$ac_objext \
1.12524 + conftest$ac_exeext conftest.$ac_ext
1.12525 +fi
1.12526 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
1.12527 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1.12528 +if test $ac_cv_func_dlopen = yes; then
1.12529 + lt_cv_dlopen="dlopen"
1.12530 +else
1.12531 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.12532 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.12533 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.12534 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12535 +else
1.12536 + ac_check_lib_save_LIBS=$LIBS
1.12537 +LIBS="-ldl $LIBS"
1.12538 +cat >conftest.$ac_ext <<_ACEOF
1.12539 +/* confdefs.h. */
1.12540 +_ACEOF
1.12541 +cat confdefs.h >>conftest.$ac_ext
1.12542 +cat >>conftest.$ac_ext <<_ACEOF
1.12543 +/* end confdefs.h. */
1.12544 +
1.12545 +/* Override any gcc2 internal prototype to avoid an error. */
1.12546 +#ifdef __cplusplus
1.12547 +extern "C"
1.12548 +#endif
1.12549 +/* We use char because int might match the return type of a gcc2
1.12550 + builtin and then its argument prototype would still apply. */
1.12551 +char dlopen ();
1.12552 +int
1.12553 +main ()
1.12554 +{
1.12555 +dlopen ();
1.12556 + ;
1.12557 + return 0;
1.12558 +}
1.12559 +_ACEOF
1.12560 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12561 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12562 + (eval $ac_link) 2>conftest.er1
1.12563 + ac_status=$?
1.12564 + grep -v '^ *+' conftest.er1 >conftest.err
1.12565 + rm -f conftest.er1
1.12566 + cat conftest.err >&5
1.12567 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12568 + (exit $ac_status); } &&
1.12569 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12570 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12571 + (eval $ac_try) 2>&5
1.12572 + ac_status=$?
1.12573 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12574 + (exit $ac_status); }; } &&
1.12575 + { ac_try='test -s conftest$ac_exeext'
1.12576 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12577 + (eval $ac_try) 2>&5
1.12578 + ac_status=$?
1.12579 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12580 + (exit $ac_status); }; }; then
1.12581 + ac_cv_lib_dl_dlopen=yes
1.12582 +else
1.12583 + echo "$as_me: failed program was:" >&5
1.12584 +sed 's/^/| /' conftest.$ac_ext >&5
1.12585 +
1.12586 +ac_cv_lib_dl_dlopen=no
1.12587 +fi
1.12588 +rm -f conftest.err conftest.$ac_objext \
1.12589 + conftest$ac_exeext conftest.$ac_ext
1.12590 +LIBS=$ac_check_lib_save_LIBS
1.12591 +fi
1.12592 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.12593 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.12594 +if test $ac_cv_lib_dl_dlopen = yes; then
1.12595 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.12596 +else
1.12597 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
1.12598 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1.12599 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
1.12600 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12601 +else
1.12602 + ac_check_lib_save_LIBS=$LIBS
1.12603 +LIBS="-lsvld $LIBS"
1.12604 +cat >conftest.$ac_ext <<_ACEOF
1.12605 +/* confdefs.h. */
1.12606 +_ACEOF
1.12607 +cat confdefs.h >>conftest.$ac_ext
1.12608 +cat >>conftest.$ac_ext <<_ACEOF
1.12609 +/* end confdefs.h. */
1.12610 +
1.12611 +/* Override any gcc2 internal prototype to avoid an error. */
1.12612 +#ifdef __cplusplus
1.12613 +extern "C"
1.12614 +#endif
1.12615 +/* We use char because int might match the return type of a gcc2
1.12616 + builtin and then its argument prototype would still apply. */
1.12617 +char dlopen ();
1.12618 +int
1.12619 +main ()
1.12620 +{
1.12621 +dlopen ();
1.12622 + ;
1.12623 + return 0;
1.12624 +}
1.12625 +_ACEOF
1.12626 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12627 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12628 + (eval $ac_link) 2>conftest.er1
1.12629 + ac_status=$?
1.12630 + grep -v '^ *+' conftest.er1 >conftest.err
1.12631 + rm -f conftest.er1
1.12632 + cat conftest.err >&5
1.12633 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12634 + (exit $ac_status); } &&
1.12635 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12636 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12637 + (eval $ac_try) 2>&5
1.12638 + ac_status=$?
1.12639 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12640 + (exit $ac_status); }; } &&
1.12641 + { ac_try='test -s conftest$ac_exeext'
1.12642 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12643 + (eval $ac_try) 2>&5
1.12644 + ac_status=$?
1.12645 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12646 + (exit $ac_status); }; }; then
1.12647 + ac_cv_lib_svld_dlopen=yes
1.12648 +else
1.12649 + echo "$as_me: failed program was:" >&5
1.12650 +sed 's/^/| /' conftest.$ac_ext >&5
1.12651 +
1.12652 +ac_cv_lib_svld_dlopen=no
1.12653 +fi
1.12654 +rm -f conftest.err conftest.$ac_objext \
1.12655 + conftest$ac_exeext conftest.$ac_ext
1.12656 +LIBS=$ac_check_lib_save_LIBS
1.12657 +fi
1.12658 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
1.12659 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1.12660 +if test $ac_cv_lib_svld_dlopen = yes; then
1.12661 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1.12662 +else
1.12663 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
1.12664 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1.12665 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.12666 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12667 +else
1.12668 + ac_check_lib_save_LIBS=$LIBS
1.12669 +LIBS="-ldld $LIBS"
1.12670 +cat >conftest.$ac_ext <<_ACEOF
1.12671 +/* confdefs.h. */
1.12672 +_ACEOF
1.12673 +cat confdefs.h >>conftest.$ac_ext
1.12674 +cat >>conftest.$ac_ext <<_ACEOF
1.12675 +/* end confdefs.h. */
1.12676 +
1.12677 +/* Override any gcc2 internal prototype to avoid an error. */
1.12678 +#ifdef __cplusplus
1.12679 +extern "C"
1.12680 +#endif
1.12681 +/* We use char because int might match the return type of a gcc2
1.12682 + builtin and then its argument prototype would still apply. */
1.12683 +char dld_link ();
1.12684 +int
1.12685 +main ()
1.12686 +{
1.12687 +dld_link ();
1.12688 + ;
1.12689 + return 0;
1.12690 +}
1.12691 +_ACEOF
1.12692 +rm -f conftest.$ac_objext conftest$ac_exeext
1.12693 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12694 + (eval $ac_link) 2>conftest.er1
1.12695 + ac_status=$?
1.12696 + grep -v '^ *+' conftest.er1 >conftest.err
1.12697 + rm -f conftest.er1
1.12698 + cat conftest.err >&5
1.12699 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12700 + (exit $ac_status); } &&
1.12701 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.12702 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12703 + (eval $ac_try) 2>&5
1.12704 + ac_status=$?
1.12705 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12706 + (exit $ac_status); }; } &&
1.12707 + { ac_try='test -s conftest$ac_exeext'
1.12708 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.12709 + (eval $ac_try) 2>&5
1.12710 + ac_status=$?
1.12711 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12712 + (exit $ac_status); }; }; then
1.12713 + ac_cv_lib_dld_dld_link=yes
1.12714 +else
1.12715 + echo "$as_me: failed program was:" >&5
1.12716 +sed 's/^/| /' conftest.$ac_ext >&5
1.12717 +
1.12718 +ac_cv_lib_dld_dld_link=no
1.12719 +fi
1.12720 +rm -f conftest.err conftest.$ac_objext \
1.12721 + conftest$ac_exeext conftest.$ac_ext
1.12722 +LIBS=$ac_check_lib_save_LIBS
1.12723 +fi
1.12724 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
1.12725 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1.12726 +if test $ac_cv_lib_dld_dld_link = yes; then
1.12727 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1.12728 +fi
1.12729 +
1.12730 +
1.12731 +fi
1.12732 +
1.12733 +
1.12734 +fi
1.12735 +
1.12736 +
1.12737 +fi
1.12738 +
1.12739 +
1.12740 +fi
1.12741 +
1.12742 +
1.12743 +fi
1.12744 +
1.12745 + ;;
1.12746 + esac
1.12747 +
1.12748 + if test "x$lt_cv_dlopen" != xno; then
1.12749 + enable_dlopen=yes
1.12750 + else
1.12751 + enable_dlopen=no
1.12752 + fi
1.12753 +
1.12754 + case $lt_cv_dlopen in
1.12755 + dlopen)
1.12756 + save_CPPFLAGS="$CPPFLAGS"
1.12757 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.12758 +
1.12759 + save_LDFLAGS="$LDFLAGS"
1.12760 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.12761 +
1.12762 + save_LIBS="$LIBS"
1.12763 + LIBS="$lt_cv_dlopen_libs $LIBS"
1.12764 +
1.12765 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
1.12766 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1.12767 +if test "${lt_cv_dlopen_self+set}" = set; then
1.12768 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12769 +else
1.12770 + if test "$cross_compiling" = yes; then :
1.12771 + lt_cv_dlopen_self=cross
1.12772 +else
1.12773 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.12774 + lt_status=$lt_dlunknown
1.12775 + cat > conftest.$ac_ext <<EOF
1.12776 +#line 12773 "configure"
1.12777 +#include "confdefs.h"
1.12778 +
1.12779 +#if HAVE_DLFCN_H
1.12780 +#include <dlfcn.h>
1.12781 +#endif
1.12782 +
1.12783 +#include <stdio.h>
1.12784 +
1.12785 +#ifdef RTLD_GLOBAL
1.12786 +# define LT_DLGLOBAL RTLD_GLOBAL
1.12787 +#else
1.12788 +# ifdef DL_GLOBAL
1.12789 +# define LT_DLGLOBAL DL_GLOBAL
1.12790 +# else
1.12791 +# define LT_DLGLOBAL 0
1.12792 +# endif
1.12793 +#endif
1.12794 +
1.12795 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.12796 + find out it does not work in some platform. */
1.12797 +#ifndef LT_DLLAZY_OR_NOW
1.12798 +# ifdef RTLD_LAZY
1.12799 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.12800 +# else
1.12801 +# ifdef DL_LAZY
1.12802 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.12803 +# else
1.12804 +# ifdef RTLD_NOW
1.12805 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.12806 +# else
1.12807 +# ifdef DL_NOW
1.12808 +# define LT_DLLAZY_OR_NOW DL_NOW
1.12809 +# else
1.12810 +# define LT_DLLAZY_OR_NOW 0
1.12811 +# endif
1.12812 +# endif
1.12813 +# endif
1.12814 +# endif
1.12815 +#endif
1.12816 +
1.12817 +#ifdef __cplusplus
1.12818 +extern "C" void exit (int);
1.12819 +#endif
1.12820 +
1.12821 +void fnord() { int i=42;}
1.12822 +int main ()
1.12823 +{
1.12824 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.12825 + int status = $lt_dlunknown;
1.12826 +
1.12827 + if (self)
1.12828 + {
1.12829 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.12830 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.12831 + /* dlclose (self); */
1.12832 + }
1.12833 +
1.12834 + exit (status);
1.12835 +}
1.12836 +EOF
1.12837 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12838 + (eval $ac_link) 2>&5
1.12839 + ac_status=$?
1.12840 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12841 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.12842 + (./conftest; exit; ) >&5 2>/dev/null
1.12843 + lt_status=$?
1.12844 + case x$lt_status in
1.12845 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1.12846 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.12847 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
1.12848 + esac
1.12849 + else :
1.12850 + # compilation failed
1.12851 + lt_cv_dlopen_self=no
1.12852 + fi
1.12853 +fi
1.12854 +rm -fr conftest*
1.12855 +
1.12856 +
1.12857 +fi
1.12858 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
1.12859 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.12860 +
1.12861 + if test "x$lt_cv_dlopen_self" = xyes; then
1.12862 + LDFLAGS="$LDFLAGS $link_static_flag"
1.12863 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
1.12864 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1.12865 +if test "${lt_cv_dlopen_self_static+set}" = set; then
1.12866 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.12867 +else
1.12868 + if test "$cross_compiling" = yes; then :
1.12869 + lt_cv_dlopen_self_static=cross
1.12870 +else
1.12871 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.12872 + lt_status=$lt_dlunknown
1.12873 + cat > conftest.$ac_ext <<EOF
1.12874 +#line 12871 "configure"
1.12875 +#include "confdefs.h"
1.12876 +
1.12877 +#if HAVE_DLFCN_H
1.12878 +#include <dlfcn.h>
1.12879 +#endif
1.12880 +
1.12881 +#include <stdio.h>
1.12882 +
1.12883 +#ifdef RTLD_GLOBAL
1.12884 +# define LT_DLGLOBAL RTLD_GLOBAL
1.12885 +#else
1.12886 +# ifdef DL_GLOBAL
1.12887 +# define LT_DLGLOBAL DL_GLOBAL
1.12888 +# else
1.12889 +# define LT_DLGLOBAL 0
1.12890 +# endif
1.12891 +#endif
1.12892 +
1.12893 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.12894 + find out it does not work in some platform. */
1.12895 +#ifndef LT_DLLAZY_OR_NOW
1.12896 +# ifdef RTLD_LAZY
1.12897 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.12898 +# else
1.12899 +# ifdef DL_LAZY
1.12900 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.12901 +# else
1.12902 +# ifdef RTLD_NOW
1.12903 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.12904 +# else
1.12905 +# ifdef DL_NOW
1.12906 +# define LT_DLLAZY_OR_NOW DL_NOW
1.12907 +# else
1.12908 +# define LT_DLLAZY_OR_NOW 0
1.12909 +# endif
1.12910 +# endif
1.12911 +# endif
1.12912 +# endif
1.12913 +#endif
1.12914 +
1.12915 +#ifdef __cplusplus
1.12916 +extern "C" void exit (int);
1.12917 +#endif
1.12918 +
1.12919 +void fnord() { int i=42;}
1.12920 +int main ()
1.12921 +{
1.12922 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.12923 + int status = $lt_dlunknown;
1.12924 +
1.12925 + if (self)
1.12926 + {
1.12927 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.12928 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.12929 + /* dlclose (self); */
1.12930 + }
1.12931 +
1.12932 + exit (status);
1.12933 +}
1.12934 +EOF
1.12935 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.12936 + (eval $ac_link) 2>&5
1.12937 + ac_status=$?
1.12938 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.12939 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.12940 + (./conftest; exit; ) >&5 2>/dev/null
1.12941 + lt_status=$?
1.12942 + case x$lt_status in
1.12943 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1.12944 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.12945 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
1.12946 + esac
1.12947 + else :
1.12948 + # compilation failed
1.12949 + lt_cv_dlopen_self_static=no
1.12950 + fi
1.12951 +fi
1.12952 +rm -fr conftest*
1.12953 +
1.12954 +
1.12955 +fi
1.12956 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
1.12957 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.12958 + fi
1.12959 +
1.12960 + CPPFLAGS="$save_CPPFLAGS"
1.12961 + LDFLAGS="$save_LDFLAGS"
1.12962 + LIBS="$save_LIBS"
1.12963 + ;;
1.12964 + esac
1.12965 +
1.12966 + case $lt_cv_dlopen_self in
1.12967 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1.12968 + *) enable_dlopen_self=unknown ;;
1.12969 + esac
1.12970 +
1.12971 + case $lt_cv_dlopen_self_static in
1.12972 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1.12973 + *) enable_dlopen_self_static=unknown ;;
1.12974 + esac
1.12975 +fi
1.12976 +
1.12977 +
1.12978 +# The else clause should only fire when bootstrapping the
1.12979 +# libtool distribution, otherwise you forgot to ship ltmain.sh
1.12980 +# with your package, and you will get complaints that there are
1.12981 +# no rules to generate ltmain.sh.
1.12982 +if test -f "$ltmain"; then
1.12983 + # See if we are running on zsh, and set the options which allow our commands through
1.12984 + # without removal of \ escapes.
1.12985 + if test -n "${ZSH_VERSION+set}" ; then
1.12986 + setopt NO_GLOB_SUBST
1.12987 + fi
1.12988 + # Now quote all the things that may contain metacharacters while being
1.12989 + # careful not to overquote the AC_SUBSTed values. We take copies of the
1.12990 + # variables and quote the copies for generation of the libtool script.
1.12991 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.12992 + SED SHELL STRIP \
1.12993 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.12994 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.12995 + deplibs_check_method reload_flag reload_cmds need_locks \
1.12996 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.12997 + lt_cv_sys_global_symbol_to_c_name_address \
1.12998 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.12999 + old_postinstall_cmds old_postuninstall_cmds \
1.13000 + compiler_CXX \
1.13001 + CC_CXX \
1.13002 + LD_CXX \
1.13003 + lt_prog_compiler_wl_CXX \
1.13004 + lt_prog_compiler_pic_CXX \
1.13005 + lt_prog_compiler_static_CXX \
1.13006 + lt_prog_compiler_no_builtin_flag_CXX \
1.13007 + export_dynamic_flag_spec_CXX \
1.13008 + thread_safe_flag_spec_CXX \
1.13009 + whole_archive_flag_spec_CXX \
1.13010 + enable_shared_with_static_runtimes_CXX \
1.13011 + old_archive_cmds_CXX \
1.13012 + old_archive_from_new_cmds_CXX \
1.13013 + predep_objects_CXX \
1.13014 + postdep_objects_CXX \
1.13015 + predeps_CXX \
1.13016 + postdeps_CXX \
1.13017 + compiler_lib_search_path_CXX \
1.13018 + archive_cmds_CXX \
1.13019 + archive_expsym_cmds_CXX \
1.13020 + postinstall_cmds_CXX \
1.13021 + postuninstall_cmds_CXX \
1.13022 + old_archive_from_expsyms_cmds_CXX \
1.13023 + allow_undefined_flag_CXX \
1.13024 + no_undefined_flag_CXX \
1.13025 + export_symbols_cmds_CXX \
1.13026 + hardcode_libdir_flag_spec_CXX \
1.13027 + hardcode_libdir_flag_spec_ld_CXX \
1.13028 + hardcode_libdir_separator_CXX \
1.13029 + hardcode_automatic_CXX \
1.13030 + module_cmds_CXX \
1.13031 + module_expsym_cmds_CXX \
1.13032 + lt_cv_prog_compiler_c_o_CXX \
1.13033 + exclude_expsyms_CXX \
1.13034 + include_expsyms_CXX; do
1.13035 +
1.13036 + case $var in
1.13037 + old_archive_cmds_CXX | \
1.13038 + old_archive_from_new_cmds_CXX | \
1.13039 + archive_cmds_CXX | \
1.13040 + archive_expsym_cmds_CXX | \
1.13041 + module_cmds_CXX | \
1.13042 + module_expsym_cmds_CXX | \
1.13043 + old_archive_from_expsyms_cmds_CXX | \
1.13044 + export_symbols_cmds_CXX | \
1.13045 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.13046 + postinstall_cmds | postuninstall_cmds | \
1.13047 + old_postinstall_cmds | old_postuninstall_cmds | \
1.13048 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.13049 + # Double-quote double-evaled strings.
1.13050 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.13051 + ;;
1.13052 + *)
1.13053 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.13054 + ;;
1.13055 + esac
1.13056 + done
1.13057 +
1.13058 + case $lt_echo in
1.13059 + *'\$0 --fallback-echo"')
1.13060 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1.13061 + ;;
1.13062 + esac
1.13063 +
1.13064 +cfgfile="$ofile"
1.13065 +
1.13066 + cat <<__EOF__ >> "$cfgfile"
1.13067 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.13068 +
1.13069 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.13070 +
1.13071 +# Shell to use when invoking shell scripts.
1.13072 +SHELL=$lt_SHELL
1.13073 +
1.13074 +# Whether or not to build shared libraries.
1.13075 +build_libtool_libs=$enable_shared
1.13076 +
1.13077 +# Whether or not to build static libraries.
1.13078 +build_old_libs=$enable_static
1.13079 +
1.13080 +# Whether or not to add -lc for building shared libraries.
1.13081 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
1.13082 +
1.13083 +# Whether or not to disallow shared libs when runtime libs are static
1.13084 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
1.13085 +
1.13086 +# Whether or not to optimize for fast installation.
1.13087 +fast_install=$enable_fast_install
1.13088 +
1.13089 +# The host system.
1.13090 +host_alias=$host_alias
1.13091 +host=$host
1.13092 +host_os=$host_os
1.13093 +
1.13094 +# The build system.
1.13095 +build_alias=$build_alias
1.13096 +build=$build
1.13097 +build_os=$build_os
1.13098 +
1.13099 +# An echo program that does not interpret backslashes.
1.13100 +echo=$lt_echo
1.13101 +
1.13102 +# The archiver.
1.13103 +AR=$lt_AR
1.13104 +AR_FLAGS=$lt_AR_FLAGS
1.13105 +
1.13106 +# A C compiler.
1.13107 +LTCC=$lt_LTCC
1.13108 +
1.13109 +# A language-specific compiler.
1.13110 +CC=$lt_compiler_CXX
1.13111 +
1.13112 +# Is the compiler the GNU C compiler?
1.13113 +with_gcc=$GCC_CXX
1.13114 +
1.13115 +# An ERE matcher.
1.13116 +EGREP=$lt_EGREP
1.13117 +
1.13118 +# The linker used to build libraries.
1.13119 +LD=$lt_LD_CXX
1.13120 +
1.13121 +# Whether we need hard or soft links.
1.13122 +LN_S=$lt_LN_S
1.13123 +
1.13124 +# A BSD-compatible nm program.
1.13125 +NM=$lt_NM
1.13126 +
1.13127 +# A symbol stripping program
1.13128 +STRIP=$lt_STRIP
1.13129 +
1.13130 +# Used to examine libraries when file_magic_cmd begins "file"
1.13131 +MAGIC_CMD=$MAGIC_CMD
1.13132 +
1.13133 +# Used on cygwin: DLL creation program.
1.13134 +DLLTOOL="$DLLTOOL"
1.13135 +
1.13136 +# Used on cygwin: object dumper.
1.13137 +OBJDUMP="$OBJDUMP"
1.13138 +
1.13139 +# Used on cygwin: assembler.
1.13140 +AS="$AS"
1.13141 +
1.13142 +# The name of the directory that contains temporary libtool files.
1.13143 +objdir=$objdir
1.13144 +
1.13145 +# How to create reloadable object files.
1.13146 +reload_flag=$lt_reload_flag
1.13147 +reload_cmds=$lt_reload_cmds
1.13148 +
1.13149 +# How to pass a linker flag through the compiler.
1.13150 +wl=$lt_lt_prog_compiler_wl_CXX
1.13151 +
1.13152 +# Object file suffix (normally "o").
1.13153 +objext="$ac_objext"
1.13154 +
1.13155 +# Old archive suffix (normally "a").
1.13156 +libext="$libext"
1.13157 +
1.13158 +# Shared library suffix (normally ".so").
1.13159 +shrext_cmds='$shrext_cmds'
1.13160 +
1.13161 +# Executable file suffix (normally "").
1.13162 +exeext="$exeext"
1.13163 +
1.13164 +# Additional compiler flags for building library objects.
1.13165 +pic_flag=$lt_lt_prog_compiler_pic_CXX
1.13166 +pic_mode=$pic_mode
1.13167 +
1.13168 +# What is the maximum length of a command?
1.13169 +max_cmd_len=$lt_cv_sys_max_cmd_len
1.13170 +
1.13171 +# Does compiler simultaneously support -c and -o options?
1.13172 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
1.13173 +
1.13174 +# Must we lock files when doing compilation?
1.13175 +need_locks=$lt_need_locks
1.13176 +
1.13177 +# Do we need the lib prefix for modules?
1.13178 +need_lib_prefix=$need_lib_prefix
1.13179 +
1.13180 +# Do we need a version for libraries?
1.13181 +need_version=$need_version
1.13182 +
1.13183 +# Whether dlopen is supported.
1.13184 +dlopen_support=$enable_dlopen
1.13185 +
1.13186 +# Whether dlopen of programs is supported.
1.13187 +dlopen_self=$enable_dlopen_self
1.13188 +
1.13189 +# Whether dlopen of statically linked programs is supported.
1.13190 +dlopen_self_static=$enable_dlopen_self_static
1.13191 +
1.13192 +# Compiler flag to prevent dynamic linking.
1.13193 +link_static_flag=$lt_lt_prog_compiler_static_CXX
1.13194 +
1.13195 +# Compiler flag to turn off builtin functions.
1.13196 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
1.13197 +
1.13198 +# Compiler flag to allow reflexive dlopens.
1.13199 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
1.13200 +
1.13201 +# Compiler flag to generate shared objects directly from archives.
1.13202 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
1.13203 +
1.13204 +# Compiler flag to generate thread-safe objects.
1.13205 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
1.13206 +
1.13207 +# Library versioning type.
1.13208 +version_type=$version_type
1.13209 +
1.13210 +# Format of library name prefix.
1.13211 +libname_spec=$lt_libname_spec
1.13212 +
1.13213 +# List of archive names. First name is the real one, the rest are links.
1.13214 +# The last name is the one that the linker finds with -lNAME.
1.13215 +library_names_spec=$lt_library_names_spec
1.13216 +
1.13217 +# The coded name of the library, if different from the real name.
1.13218 +soname_spec=$lt_soname_spec
1.13219 +
1.13220 +# Commands used to build and install an old-style archive.
1.13221 +RANLIB=$lt_RANLIB
1.13222 +old_archive_cmds=$lt_old_archive_cmds_CXX
1.13223 +old_postinstall_cmds=$lt_old_postinstall_cmds
1.13224 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.13225 +
1.13226 +# Create an old-style archive from a shared archive.
1.13227 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
1.13228 +
1.13229 +# Create a temporary old-style archive to link instead of a shared archive.
1.13230 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
1.13231 +
1.13232 +# Commands used to build and install a shared archive.
1.13233 +archive_cmds=$lt_archive_cmds_CXX
1.13234 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
1.13235 +postinstall_cmds=$lt_postinstall_cmds
1.13236 +postuninstall_cmds=$lt_postuninstall_cmds
1.13237 +
1.13238 +# Commands used to build a loadable module (assumed same as above if empty)
1.13239 +module_cmds=$lt_module_cmds_CXX
1.13240 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
1.13241 +
1.13242 +# Commands to strip libraries.
1.13243 +old_striplib=$lt_old_striplib
1.13244 +striplib=$lt_striplib
1.13245 +
1.13246 +# Dependencies to place before the objects being linked to create a
1.13247 +# shared library.
1.13248 +predep_objects=$lt_predep_objects_CXX
1.13249 +
1.13250 +# Dependencies to place after the objects being linked to create a
1.13251 +# shared library.
1.13252 +postdep_objects=$lt_postdep_objects_CXX
1.13253 +
1.13254 +# Dependencies to place before the objects being linked to create a
1.13255 +# shared library.
1.13256 +predeps=$lt_predeps_CXX
1.13257 +
1.13258 +# Dependencies to place after the objects being linked to create a
1.13259 +# shared library.
1.13260 +postdeps=$lt_postdeps_CXX
1.13261 +
1.13262 +# The library search path used internally by the compiler when linking
1.13263 +# a shared library.
1.13264 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
1.13265 +
1.13266 +# Method to check whether dependent libraries are shared objects.
1.13267 +deplibs_check_method=$lt_deplibs_check_method
1.13268 +
1.13269 +# Command to use when deplibs_check_method == file_magic.
1.13270 +file_magic_cmd=$lt_file_magic_cmd
1.13271 +
1.13272 +# Flag that allows shared libraries with undefined symbols to be built.
1.13273 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
1.13274 +
1.13275 +# Flag that forces no undefined symbols.
1.13276 +no_undefined_flag=$lt_no_undefined_flag_CXX
1.13277 +
1.13278 +# Commands used to finish a libtool library installation in a directory.
1.13279 +finish_cmds=$lt_finish_cmds
1.13280 +
1.13281 +# Same as above, but a single script fragment to be evaled but not shown.
1.13282 +finish_eval=$lt_finish_eval
1.13283 +
1.13284 +# Take the output of nm and produce a listing of raw symbols and C names.
1.13285 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.13286 +
1.13287 +# Transform the output of nm in a proper C declaration
1.13288 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.13289 +
1.13290 +# Transform the output of nm in a C name address pair
1.13291 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.13292 +
1.13293 +# This is the shared library runtime path variable.
1.13294 +runpath_var=$runpath_var
1.13295 +
1.13296 +# This is the shared library path variable.
1.13297 +shlibpath_var=$shlibpath_var
1.13298 +
1.13299 +# Is shlibpath searched before the hard-coded library search path?
1.13300 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.13301 +
1.13302 +# How to hardcode a shared library path into an executable.
1.13303 +hardcode_action=$hardcode_action_CXX
1.13304 +
1.13305 +# Whether we should hardcode library paths into libraries.
1.13306 +hardcode_into_libs=$hardcode_into_libs
1.13307 +
1.13308 +# Flag to hardcode \$libdir into a binary during linking.
1.13309 +# This must work even if \$libdir does not exist.
1.13310 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
1.13311 +
1.13312 +# If ld is used when linking, flag to hardcode \$libdir into
1.13313 +# a binary during linking. This must work even if \$libdir does
1.13314 +# not exist.
1.13315 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
1.13316 +
1.13317 +# Whether we need a single -rpath flag with a separated argument.
1.13318 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
1.13319 +
1.13320 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.13321 +# resulting binary.
1.13322 +hardcode_direct=$hardcode_direct_CXX
1.13323 +
1.13324 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.13325 +# resulting binary.
1.13326 +hardcode_minus_L=$hardcode_minus_L_CXX
1.13327 +
1.13328 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.13329 +# the resulting binary.
1.13330 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
1.13331 +
1.13332 +# Set to yes if building a shared library automatically hardcodes DIR into the library
1.13333 +# and all subsequent libraries and executables linked against it.
1.13334 +hardcode_automatic=$hardcode_automatic_CXX
1.13335 +
1.13336 +# Variables whose values should be saved in libtool wrapper scripts and
1.13337 +# restored at relink time.
1.13338 +variables_saved_for_relink="$variables_saved_for_relink"
1.13339 +
1.13340 +# Whether libtool must link a program against all its dependency libraries.
1.13341 +link_all_deplibs=$link_all_deplibs_CXX
1.13342 +
1.13343 +# Compile-time system search path for libraries
1.13344 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.13345 +
1.13346 +# Run-time system search path for libraries
1.13347 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.13348 +
1.13349 +# Fix the shell variable \$srcfile for the compiler.
1.13350 +fix_srcfile_path="$fix_srcfile_path_CXX"
1.13351 +
1.13352 +# Set to yes if exported symbols are required.
1.13353 +always_export_symbols=$always_export_symbols_CXX
1.13354 +
1.13355 +# The commands to list exported symbols.
1.13356 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
1.13357 +
1.13358 +# The commands to extract the exported symbol list from a shared archive.
1.13359 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.13360 +
1.13361 +# Symbols that should not be listed in the preloaded symbols.
1.13362 +exclude_expsyms=$lt_exclude_expsyms_CXX
1.13363 +
1.13364 +# Symbols that must always be exported.
1.13365 +include_expsyms=$lt_include_expsyms_CXX
1.13366 +
1.13367 +# ### END LIBTOOL TAG CONFIG: $tagname
1.13368 +
1.13369 +__EOF__
1.13370 +
1.13371 +
1.13372 +else
1.13373 + # If there is no Makefile yet, we rely on a make rule to execute
1.13374 + # `config.status --recheck' to rerun these tests and create the
1.13375 + # libtool script then.
1.13376 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.13377 + if test -f "$ltmain_in"; then
1.13378 + test -f Makefile && make "$ltmain"
1.13379 + fi
1.13380 +fi
1.13381 +
1.13382 +
1.13383 +ac_ext=c
1.13384 +ac_cpp='$CPP $CPPFLAGS'
1.13385 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.13386 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.13387 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.13388 +
1.13389 +CC=$lt_save_CC
1.13390 +LDCXX=$LD
1.13391 +LD=$lt_save_LD
1.13392 +GCC=$lt_save_GCC
1.13393 +with_gnu_ldcxx=$with_gnu_ld
1.13394 +with_gnu_ld=$lt_save_with_gnu_ld
1.13395 +lt_cv_path_LDCXX=$lt_cv_path_LD
1.13396 +lt_cv_path_LD=$lt_save_path_LD
1.13397 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
1.13398 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
1.13399 +
1.13400 + else
1.13401 + tagname=""
1.13402 + fi
1.13403 + ;;
1.13404 +
1.13405 + F77)
1.13406 + if test -n "$F77" && test "X$F77" != "Xno"; then
1.13407 +
1.13408 +ac_ext=f
1.13409 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
1.13410 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.13411 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
1.13412 +
1.13413 +
1.13414 +archive_cmds_need_lc_F77=no
1.13415 +allow_undefined_flag_F77=
1.13416 +always_export_symbols_F77=no
1.13417 +archive_expsym_cmds_F77=
1.13418 +export_dynamic_flag_spec_F77=
1.13419 +hardcode_direct_F77=no
1.13420 +hardcode_libdir_flag_spec_F77=
1.13421 +hardcode_libdir_flag_spec_ld_F77=
1.13422 +hardcode_libdir_separator_F77=
1.13423 +hardcode_minus_L_F77=no
1.13424 +hardcode_automatic_F77=no
1.13425 +module_cmds_F77=
1.13426 +module_expsym_cmds_F77=
1.13427 +link_all_deplibs_F77=unknown
1.13428 +old_archive_cmds_F77=$old_archive_cmds
1.13429 +no_undefined_flag_F77=
1.13430 +whole_archive_flag_spec_F77=
1.13431 +enable_shared_with_static_runtimes_F77=no
1.13432 +
1.13433 +# Source file extension for f77 test sources.
1.13434 +ac_ext=f
1.13435 +
1.13436 +# Object file extension for compiled f77 test sources.
1.13437 +objext=o
1.13438 +objext_F77=$objext
1.13439 +
1.13440 +# Code to be used in simple compile tests
1.13441 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
1.13442 +
1.13443 +# Code to be used in simple link tests
1.13444 +lt_simple_link_test_code=" program t\n end\n"
1.13445 +
1.13446 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.13447 +
1.13448 +# If no C compiler was specified, use CC.
1.13449 +LTCC=${LTCC-"$CC"}
1.13450 +
1.13451 +# Allow CC to be a program name with arguments.
1.13452 +compiler=$CC
1.13453 +
1.13454 +
1.13455 +# save warnings/boilerplate of simple test code
1.13456 +ac_outfile=conftest.$ac_objext
1.13457 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.13458 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.13459 +_lt_compiler_boilerplate=`cat conftest.err`
1.13460 +$rm conftest*
1.13461 +
1.13462 +ac_outfile=conftest.$ac_objext
1.13463 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.13464 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.13465 +_lt_linker_boilerplate=`cat conftest.err`
1.13466 +$rm conftest*
1.13467 +
1.13468 +
1.13469 +# Allow CC to be a program name with arguments.
1.13470 +lt_save_CC="$CC"
1.13471 +CC=${F77-"f77"}
1.13472 +compiler=$CC
1.13473 +compiler_F77=$CC
1.13474 +for cc_temp in $compiler""; do
1.13475 + case $cc_temp in
1.13476 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.13477 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.13478 + \-*) ;;
1.13479 + *) break;;
1.13480 + esac
1.13481 +done
1.13482 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.13483 +
1.13484 +
1.13485 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
1.13486 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
1.13487 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
1.13488 +echo "${ECHO_T}$can_build_shared" >&6
1.13489 +
1.13490 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
1.13491 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1.13492 +test "$can_build_shared" = "no" && enable_shared=no
1.13493 +
1.13494 +# On AIX, shared libraries and static libraries use the same namespace, and
1.13495 +# are all built from PIC.
1.13496 +case $host_os in
1.13497 +aix3*)
1.13498 + test "$enable_shared" = yes && enable_static=no
1.13499 + if test -n "$RANLIB"; then
1.13500 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
1.13501 + postinstall_cmds='$RANLIB $lib'
1.13502 + fi
1.13503 + ;;
1.13504 +aix4* | aix5*)
1.13505 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
1.13506 + test "$enable_shared" = yes && enable_static=no
1.13507 + fi
1.13508 + ;;
1.13509 +esac
1.13510 +echo "$as_me:$LINENO: result: $enable_shared" >&5
1.13511 +echo "${ECHO_T}$enable_shared" >&6
1.13512 +
1.13513 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
1.13514 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1.13515 +# Make sure either enable_shared or enable_static is yes.
1.13516 +test "$enable_shared" = yes || enable_static=yes
1.13517 +echo "$as_me:$LINENO: result: $enable_static" >&5
1.13518 +echo "${ECHO_T}$enable_static" >&6
1.13519 +
1.13520 +test "$ld_shlibs_F77" = no && can_build_shared=no
1.13521 +
1.13522 +GCC_F77="$G77"
1.13523 +LD_F77="$LD"
1.13524 +
1.13525 +lt_prog_compiler_wl_F77=
1.13526 +lt_prog_compiler_pic_F77=
1.13527 +lt_prog_compiler_static_F77=
1.13528 +
1.13529 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
1.13530 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.13531 +
1.13532 + if test "$GCC" = yes; then
1.13533 + lt_prog_compiler_wl_F77='-Wl,'
1.13534 + lt_prog_compiler_static_F77='-static'
1.13535 +
1.13536 + case $host_os in
1.13537 + aix*)
1.13538 + # All AIX code is PIC.
1.13539 + if test "$host_cpu" = ia64; then
1.13540 + # AIX 5 now supports IA64 processor
1.13541 + lt_prog_compiler_static_F77='-Bstatic'
1.13542 + fi
1.13543 + ;;
1.13544 +
1.13545 + amigaos*)
1.13546 + # FIXME: we need at least 68020 code to build shared libraries, but
1.13547 + # adding the `-m68020' flag to GCC prevents building anything better,
1.13548 + # like `-m68040'.
1.13549 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
1.13550 + ;;
1.13551 +
1.13552 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.13553 + # PIC is the default for these OSes.
1.13554 + ;;
1.13555 +
1.13556 + mingw* | pw32* | os2*)
1.13557 + # This hack is so that the source file can tell whether it is being
1.13558 + # built for inclusion in a dll (and should export symbols for example).
1.13559 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
1.13560 + ;;
1.13561 +
1.13562 + darwin* | rhapsody*)
1.13563 + # PIC is the default on this platform
1.13564 + # Common symbols not allowed in MH_DYLIB files
1.13565 + lt_prog_compiler_pic_F77='-fno-common'
1.13566 + ;;
1.13567 +
1.13568 + msdosdjgpp*)
1.13569 + # Just because we use GCC doesn't mean we suddenly get shared libraries
1.13570 + # on systems that don't support them.
1.13571 + lt_prog_compiler_can_build_shared_F77=no
1.13572 + enable_shared=no
1.13573 + ;;
1.13574 +
1.13575 + sysv4*MP*)
1.13576 + if test -d /usr/nec; then
1.13577 + lt_prog_compiler_pic_F77=-Kconform_pic
1.13578 + fi
1.13579 + ;;
1.13580 +
1.13581 + hpux*)
1.13582 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.13583 + # not for PA HP-UX.
1.13584 + case $host_cpu in
1.13585 + hppa*64*|ia64*)
1.13586 + # +Z the default
1.13587 + ;;
1.13588 + *)
1.13589 + lt_prog_compiler_pic_F77='-fPIC'
1.13590 + ;;
1.13591 + esac
1.13592 + ;;
1.13593 +
1.13594 + *)
1.13595 + lt_prog_compiler_pic_F77='-fPIC'
1.13596 + ;;
1.13597 + esac
1.13598 + else
1.13599 + # PORTME Check for flag to pass linker flags through the system compiler.
1.13600 + case $host_os in
1.13601 + aix*)
1.13602 + lt_prog_compiler_wl_F77='-Wl,'
1.13603 + if test "$host_cpu" = ia64; then
1.13604 + # AIX 5 now supports IA64 processor
1.13605 + lt_prog_compiler_static_F77='-Bstatic'
1.13606 + else
1.13607 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
1.13608 + fi
1.13609 + ;;
1.13610 + darwin*)
1.13611 + # PIC is the default on this platform
1.13612 + # Common symbols not allowed in MH_DYLIB files
1.13613 + case $cc_basename in
1.13614 + xlc*)
1.13615 + lt_prog_compiler_pic_F77='-qnocommon'
1.13616 + lt_prog_compiler_wl_F77='-Wl,'
1.13617 + ;;
1.13618 + esac
1.13619 + ;;
1.13620 +
1.13621 + mingw* | pw32* | os2*)
1.13622 + # This hack is so that the source file can tell whether it is being
1.13623 + # built for inclusion in a dll (and should export symbols for example).
1.13624 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
1.13625 + ;;
1.13626 +
1.13627 + hpux9* | hpux10* | hpux11*)
1.13628 + lt_prog_compiler_wl_F77='-Wl,'
1.13629 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.13630 + # not for PA HP-UX.
1.13631 + case $host_cpu in
1.13632 + hppa*64*|ia64*)
1.13633 + # +Z the default
1.13634 + ;;
1.13635 + *)
1.13636 + lt_prog_compiler_pic_F77='+Z'
1.13637 + ;;
1.13638 + esac
1.13639 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.13640 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
1.13641 + ;;
1.13642 +
1.13643 + irix5* | irix6* | nonstopux*)
1.13644 + lt_prog_compiler_wl_F77='-Wl,'
1.13645 + # PIC (with -KPIC) is the default.
1.13646 + lt_prog_compiler_static_F77='-non_shared'
1.13647 + ;;
1.13648 +
1.13649 + newsos6)
1.13650 + lt_prog_compiler_pic_F77='-KPIC'
1.13651 + lt_prog_compiler_static_F77='-Bstatic'
1.13652 + ;;
1.13653 +
1.13654 + linux*)
1.13655 + case $cc_basename in
1.13656 + icc* | ecc*)
1.13657 + lt_prog_compiler_wl_F77='-Wl,'
1.13658 + lt_prog_compiler_pic_F77='-KPIC'
1.13659 + lt_prog_compiler_static_F77='-static'
1.13660 + ;;
1.13661 + pgcc* | pgf77* | pgf90* | pgf95*)
1.13662 + # Portland Group compilers (*not* the Pentium gcc compiler,
1.13663 + # which looks to be a dead project)
1.13664 + lt_prog_compiler_wl_F77='-Wl,'
1.13665 + lt_prog_compiler_pic_F77='-fpic'
1.13666 + lt_prog_compiler_static_F77='-Bstatic'
1.13667 + ;;
1.13668 + ccc*)
1.13669 + lt_prog_compiler_wl_F77='-Wl,'
1.13670 + # All Alpha code is PIC.
1.13671 + lt_prog_compiler_static_F77='-non_shared'
1.13672 + ;;
1.13673 + esac
1.13674 + ;;
1.13675 +
1.13676 + osf3* | osf4* | osf5*)
1.13677 + lt_prog_compiler_wl_F77='-Wl,'
1.13678 + # All OSF/1 code is PIC.
1.13679 + lt_prog_compiler_static_F77='-non_shared'
1.13680 + ;;
1.13681 +
1.13682 + sco3.2v5*)
1.13683 + lt_prog_compiler_pic_F77='-Kpic'
1.13684 + lt_prog_compiler_static_F77='-dn'
1.13685 + ;;
1.13686 +
1.13687 + solaris*)
1.13688 + lt_prog_compiler_pic_F77='-KPIC'
1.13689 + lt_prog_compiler_static_F77='-Bstatic'
1.13690 + case $cc_basename in
1.13691 + f77* | f90* | f95*)
1.13692 + lt_prog_compiler_wl_F77='-Qoption ld ';;
1.13693 + *)
1.13694 + lt_prog_compiler_wl_F77='-Wl,';;
1.13695 + esac
1.13696 + ;;
1.13697 +
1.13698 + sunos4*)
1.13699 + lt_prog_compiler_wl_F77='-Qoption ld '
1.13700 + lt_prog_compiler_pic_F77='-PIC'
1.13701 + lt_prog_compiler_static_F77='-Bstatic'
1.13702 + ;;
1.13703 +
1.13704 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.13705 + lt_prog_compiler_wl_F77='-Wl,'
1.13706 + lt_prog_compiler_pic_F77='-KPIC'
1.13707 + lt_prog_compiler_static_F77='-Bstatic'
1.13708 + ;;
1.13709 +
1.13710 + sysv4*MP*)
1.13711 + if test -d /usr/nec ;then
1.13712 + lt_prog_compiler_pic_F77='-Kconform_pic'
1.13713 + lt_prog_compiler_static_F77='-Bstatic'
1.13714 + fi
1.13715 + ;;
1.13716 +
1.13717 + unicos*)
1.13718 + lt_prog_compiler_wl_F77='-Wl,'
1.13719 + lt_prog_compiler_can_build_shared_F77=no
1.13720 + ;;
1.13721 +
1.13722 + uts4*)
1.13723 + lt_prog_compiler_pic_F77='-pic'
1.13724 + lt_prog_compiler_static_F77='-Bstatic'
1.13725 + ;;
1.13726 +
1.13727 + *)
1.13728 + lt_prog_compiler_can_build_shared_F77=no
1.13729 + ;;
1.13730 + esac
1.13731 + fi
1.13732 +
1.13733 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
1.13734 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
1.13735 +
1.13736 +#
1.13737 +# Check to make sure the PIC flag actually works.
1.13738 +#
1.13739 +if test -n "$lt_prog_compiler_pic_F77"; then
1.13740 +
1.13741 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
1.13742 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
1.13743 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
1.13744 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.13745 +else
1.13746 + lt_prog_compiler_pic_works_F77=no
1.13747 + ac_outfile=conftest.$ac_objext
1.13748 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.13749 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
1.13750 + # Insert the option either (1) after the last *FLAGS variable, or
1.13751 + # (2) before a word containing "conftest.", or (3) at the end.
1.13752 + # Note that $ac_compile itself does not contain backslashes and begins
1.13753 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.13754 + # The option is referenced via a variable to avoid confusing sed.
1.13755 + lt_compile=`echo "$ac_compile" | $SED \
1.13756 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.13757 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.13758 + -e 's:$: $lt_compiler_flag:'`
1.13759 + (eval echo "\"\$as_me:13756: $lt_compile\"" >&5)
1.13760 + (eval "$lt_compile" 2>conftest.err)
1.13761 + ac_status=$?
1.13762 + cat conftest.err >&5
1.13763 + echo "$as_me:13760: \$? = $ac_status" >&5
1.13764 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.13765 + # The compiler can only warn and ignore the option if not recognized
1.13766 + # So say no if there are warnings other than the usual output.
1.13767 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.13768 + $SED '/^$/d' conftest.err >conftest.er2
1.13769 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.13770 + lt_prog_compiler_pic_works_F77=yes
1.13771 + fi
1.13772 + fi
1.13773 + $rm conftest*
1.13774 +
1.13775 +fi
1.13776 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
1.13777 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
1.13778 +
1.13779 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
1.13780 + case $lt_prog_compiler_pic_F77 in
1.13781 + "" | " "*) ;;
1.13782 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
1.13783 + esac
1.13784 +else
1.13785 + lt_prog_compiler_pic_F77=
1.13786 + lt_prog_compiler_can_build_shared_F77=no
1.13787 +fi
1.13788 +
1.13789 +fi
1.13790 +case $host_os in
1.13791 + # For platforms which do not support PIC, -DPIC is meaningless:
1.13792 + *djgpp*)
1.13793 + lt_prog_compiler_pic_F77=
1.13794 + ;;
1.13795 + *)
1.13796 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
1.13797 + ;;
1.13798 +esac
1.13799 +
1.13800 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1.13801 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1.13802 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
1.13803 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.13804 +else
1.13805 + lt_cv_prog_compiler_c_o_F77=no
1.13806 + $rm -r conftest 2>/dev/null
1.13807 + mkdir conftest
1.13808 + cd conftest
1.13809 + mkdir out
1.13810 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.13811 +
1.13812 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1.13813 + # Insert the option either (1) after the last *FLAGS variable, or
1.13814 + # (2) before a word containing "conftest.", or (3) at the end.
1.13815 + # Note that $ac_compile itself does not contain backslashes and begins
1.13816 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.13817 + lt_compile=`echo "$ac_compile" | $SED \
1.13818 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.13819 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.13820 + -e 's:$: $lt_compiler_flag:'`
1.13821 + (eval echo "\"\$as_me:13818: $lt_compile\"" >&5)
1.13822 + (eval "$lt_compile" 2>out/conftest.err)
1.13823 + ac_status=$?
1.13824 + cat out/conftest.err >&5
1.13825 + echo "$as_me:13822: \$? = $ac_status" >&5
1.13826 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1.13827 + then
1.13828 + # The compiler can only warn and ignore the option if not recognized
1.13829 + # So say no if there are warnings
1.13830 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1.13831 + $SED '/^$/d' out/conftest.err >out/conftest.er2
1.13832 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.13833 + lt_cv_prog_compiler_c_o_F77=yes
1.13834 + fi
1.13835 + fi
1.13836 + chmod u+w . 2>&5
1.13837 + $rm conftest*
1.13838 + # SGI C++ compiler will create directory out/ii_files/ for
1.13839 + # template instantiation
1.13840 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1.13841 + $rm out/* && rmdir out
1.13842 + cd ..
1.13843 + rmdir conftest
1.13844 + $rm conftest*
1.13845 +
1.13846 +fi
1.13847 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
1.13848 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
1.13849 +
1.13850 +
1.13851 +hard_links="nottested"
1.13852 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
1.13853 + # do not overwrite the value of need_locks provided by the user
1.13854 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
1.13855 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.13856 + hard_links=yes
1.13857 + $rm conftest*
1.13858 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.13859 + touch conftest.a
1.13860 + ln conftest.a conftest.b 2>&5 || hard_links=no
1.13861 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.13862 + echo "$as_me:$LINENO: result: $hard_links" >&5
1.13863 +echo "${ECHO_T}$hard_links" >&6
1.13864 + if test "$hard_links" = no; then
1.13865 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.13866 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.13867 + need_locks=warn
1.13868 + fi
1.13869 +else
1.13870 + need_locks=no
1.13871 +fi
1.13872 +
1.13873 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.13874 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.13875 +
1.13876 + runpath_var=
1.13877 + allow_undefined_flag_F77=
1.13878 + enable_shared_with_static_runtimes_F77=no
1.13879 + archive_cmds_F77=
1.13880 + archive_expsym_cmds_F77=
1.13881 + old_archive_From_new_cmds_F77=
1.13882 + old_archive_from_expsyms_cmds_F77=
1.13883 + export_dynamic_flag_spec_F77=
1.13884 + whole_archive_flag_spec_F77=
1.13885 + thread_safe_flag_spec_F77=
1.13886 + hardcode_libdir_flag_spec_F77=
1.13887 + hardcode_libdir_flag_spec_ld_F77=
1.13888 + hardcode_libdir_separator_F77=
1.13889 + hardcode_direct_F77=no
1.13890 + hardcode_minus_L_F77=no
1.13891 + hardcode_shlibpath_var_F77=unsupported
1.13892 + link_all_deplibs_F77=unknown
1.13893 + hardcode_automatic_F77=no
1.13894 + module_cmds_F77=
1.13895 + module_expsym_cmds_F77=
1.13896 + always_export_symbols_F77=no
1.13897 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.13898 + # include_expsyms should be a list of space-separated symbols to be *always*
1.13899 + # included in the symbol list
1.13900 + include_expsyms_F77=
1.13901 + # exclude_expsyms can be an extended regexp of symbols to exclude
1.13902 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
1.13903 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1.13904 + # as well as any symbol that contains `d'.
1.13905 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
1.13906 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1.13907 + # platforms (ab)use it in PIC code, but their linkers get confused if
1.13908 + # the symbol is explicitly referenced. Since portable code cannot
1.13909 + # rely on this symbol name, it's probably fine to never include it in
1.13910 + # preloaded symbol tables.
1.13911 + extract_expsyms_cmds=
1.13912 + # Just being paranoid about ensuring that cc_basename is set.
1.13913 + for cc_temp in $compiler""; do
1.13914 + case $cc_temp in
1.13915 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.13916 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.13917 + \-*) ;;
1.13918 + *) break;;
1.13919 + esac
1.13920 +done
1.13921 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.13922 +
1.13923 + case $host_os in
1.13924 + cygwin* | mingw* | pw32*)
1.13925 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
1.13926 + # When not using gcc, we currently assume that we are using
1.13927 + # Microsoft Visual C++.
1.13928 + if test "$GCC" != yes; then
1.13929 + with_gnu_ld=no
1.13930 + fi
1.13931 + ;;
1.13932 + openbsd*)
1.13933 + with_gnu_ld=no
1.13934 + ;;
1.13935 + esac
1.13936 +
1.13937 + ld_shlibs_F77=yes
1.13938 + if test "$with_gnu_ld" = yes; then
1.13939 + # If archive_cmds runs LD, not CC, wlarc should be empty
1.13940 + wlarc='${wl}'
1.13941 +
1.13942 + # Set some defaults for GNU ld with shared library support. These
1.13943 + # are reset later if shared libraries are not supported. Putting them
1.13944 + # here allows them to be overridden if necessary.
1.13945 + runpath_var=LD_RUN_PATH
1.13946 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
1.13947 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
1.13948 + # ancient GNU ld didn't support --whole-archive et. al.
1.13949 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.13950 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.13951 + else
1.13952 + whole_archive_flag_spec_F77=
1.13953 + fi
1.13954 + supports_anon_versioning=no
1.13955 + case `$LD -v 2>/dev/null` in
1.13956 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1.13957 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.13958 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.13959 + *\ 2.11.*) ;; # other 2.11 versions
1.13960 + *) supports_anon_versioning=yes ;;
1.13961 + esac
1.13962 +
1.13963 + # See if GNU ld supports shared libraries.
1.13964 + case $host_os in
1.13965 + aix3* | aix4* | aix5*)
1.13966 + # On AIX/PPC, the GNU linker is very broken
1.13967 + if test "$host_cpu" != ia64; then
1.13968 + ld_shlibs_F77=no
1.13969 + cat <<EOF 1>&2
1.13970 +
1.13971 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1.13972 +*** to be unable to reliably create shared libraries on AIX.
1.13973 +*** Therefore, libtool is disabling shared libraries support. If you
1.13974 +*** really care for shared libraries, you may want to modify your PATH
1.13975 +*** so that a non-GNU linker is found, and then restart.
1.13976 +
1.13977 +EOF
1.13978 + fi
1.13979 + ;;
1.13980 +
1.13981 + amigaos*)
1.13982 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.13983 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.13984 + hardcode_minus_L_F77=yes
1.13985 +
1.13986 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1.13987 + # that the semantics of dynamic libraries on AmigaOS, at least up
1.13988 + # to version 4, is to share data among multiple programs linked
1.13989 + # with the same dynamic library. Since this doesn't match the
1.13990 + # behavior of shared libraries on other platforms, we can't use
1.13991 + # them.
1.13992 + ld_shlibs_F77=no
1.13993 + ;;
1.13994 +
1.13995 + beos*)
1.13996 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.13997 + allow_undefined_flag_F77=unsupported
1.13998 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.13999 + # support --undefined. This deserves some investigation. FIXME
1.14000 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.14001 + else
1.14002 + ld_shlibs_F77=no
1.14003 + fi
1.14004 + ;;
1.14005 +
1.14006 + cygwin* | mingw* | pw32*)
1.14007 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
1.14008 + # as there is no search path for DLLs.
1.14009 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14010 + allow_undefined_flag_F77=unsupported
1.14011 + always_export_symbols_F77=no
1.14012 + enable_shared_with_static_runtimes_F77=yes
1.14013 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.14014 +
1.14015 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.14016 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.14017 + # If the export-symbols file already is a .def file (1st line
1.14018 + # is EXPORTS), use it as is; otherwise, prepend...
1.14019 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.14020 + cp $export_symbols $output_objdir/$soname.def;
1.14021 + else
1.14022 + echo EXPORTS > $output_objdir/$soname.def;
1.14023 + cat $export_symbols >> $output_objdir/$soname.def;
1.14024 + fi~
1.14025 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.14026 + else
1.14027 + ld_shlibs_F77=no
1.14028 + fi
1.14029 + ;;
1.14030 +
1.14031 + linux*)
1.14032 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.14033 + tmp_addflag=
1.14034 + case $cc_basename,$host_cpu in
1.14035 + pgcc*) # Portland Group C compiler
1.14036 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.14037 + tmp_addflag=' $pic_flag'
1.14038 + ;;
1.14039 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
1.14040 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.14041 + tmp_addflag=' $pic_flag -Mnomain' ;;
1.14042 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1.14043 + tmp_addflag=' -i_dynamic' ;;
1.14044 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
1.14045 + tmp_addflag=' -i_dynamic -nofor_main' ;;
1.14046 + ifc* | ifort*) # Intel Fortran compiler
1.14047 + tmp_addflag=' -nofor_main' ;;
1.14048 + esac
1.14049 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.14050 +
1.14051 + if test $supports_anon_versioning = yes; then
1.14052 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
1.14053 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.14054 + $echo "local: *; };" >> $output_objdir/$libname.ver~
1.14055 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.14056 + fi
1.14057 + else
1.14058 + ld_shlibs_F77=no
1.14059 + fi
1.14060 + ;;
1.14061 +
1.14062 + netbsd*)
1.14063 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.14064 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1.14065 + wlarc=
1.14066 + else
1.14067 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.14068 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.14069 + fi
1.14070 + ;;
1.14071 +
1.14072 + solaris* | sysv5*)
1.14073 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1.14074 + ld_shlibs_F77=no
1.14075 + cat <<EOF 1>&2
1.14076 +
1.14077 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1.14078 +*** create shared libraries on Solaris systems. Therefore, libtool
1.14079 +*** is disabling shared libraries support. We urge you to upgrade GNU
1.14080 +*** binutils to release 2.9.1 or newer. Another option is to modify
1.14081 +*** your PATH or compiler configuration so that the native linker is
1.14082 +*** used, and then restart.
1.14083 +
1.14084 +EOF
1.14085 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.14086 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.14087 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.14088 + else
1.14089 + ld_shlibs_F77=no
1.14090 + fi
1.14091 + ;;
1.14092 +
1.14093 + sunos4*)
1.14094 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.14095 + wlarc=
1.14096 + hardcode_direct_F77=yes
1.14097 + hardcode_shlibpath_var_F77=no
1.14098 + ;;
1.14099 +
1.14100 + *)
1.14101 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.14102 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.14103 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.14104 + else
1.14105 + ld_shlibs_F77=no
1.14106 + fi
1.14107 + ;;
1.14108 + esac
1.14109 +
1.14110 + if test "$ld_shlibs_F77" = no; then
1.14111 + runpath_var=
1.14112 + hardcode_libdir_flag_spec_F77=
1.14113 + export_dynamic_flag_spec_F77=
1.14114 + whole_archive_flag_spec_F77=
1.14115 + fi
1.14116 + else
1.14117 + # PORTME fill in a description of your system's linker (not GNU ld)
1.14118 + case $host_os in
1.14119 + aix3*)
1.14120 + allow_undefined_flag_F77=unsupported
1.14121 + always_export_symbols_F77=yes
1.14122 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1.14123 + # Note: this linker hardcodes the directories in LIBPATH if there
1.14124 + # are no directories specified by -L.
1.14125 + hardcode_minus_L_F77=yes
1.14126 + if test "$GCC" = yes && test -z "$link_static_flag"; then
1.14127 + # Neither direct hardcoding nor static linking is supported with a
1.14128 + # broken collect2.
1.14129 + hardcode_direct_F77=unsupported
1.14130 + fi
1.14131 + ;;
1.14132 +
1.14133 + aix4* | aix5*)
1.14134 + if test "$host_cpu" = ia64; then
1.14135 + # On IA64, the linker does run time linking by default, so we don't
1.14136 + # have to do anything special.
1.14137 + aix_use_runtimelinking=no
1.14138 + exp_sym_flag='-Bexport'
1.14139 + no_entry_flag=""
1.14140 + else
1.14141 + # If we're using GNU nm, then we don't want the "-C" option.
1.14142 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.14143 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.14144 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.14145 + else
1.14146 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.14147 + fi
1.14148 + aix_use_runtimelinking=no
1.14149 +
1.14150 + # Test if we are trying to use run time linking or normal
1.14151 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.14152 + # need to do runtime linking.
1.14153 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1.14154 + for ld_flag in $LDFLAGS; do
1.14155 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1.14156 + aix_use_runtimelinking=yes
1.14157 + break
1.14158 + fi
1.14159 + done
1.14160 + esac
1.14161 +
1.14162 + exp_sym_flag='-bexport'
1.14163 + no_entry_flag='-bnoentry'
1.14164 + fi
1.14165 +
1.14166 + # When large executables or shared objects are built, AIX ld can
1.14167 + # have problems creating the table of contents. If linking a library
1.14168 + # or program results in "error TOC overflow" add -mminimal-toc to
1.14169 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.14170 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.14171 +
1.14172 + archive_cmds_F77=''
1.14173 + hardcode_direct_F77=yes
1.14174 + hardcode_libdir_separator_F77=':'
1.14175 + link_all_deplibs_F77=yes
1.14176 +
1.14177 + if test "$GCC" = yes; then
1.14178 + case $host_os in aix4.[012]|aix4.[012].*)
1.14179 + # We only want to do this on AIX 4.2 and lower, the check
1.14180 + # below for broken collect2 doesn't work under 4.3+
1.14181 + collect2name=`${CC} -print-prog-name=collect2`
1.14182 + if test -f "$collect2name" && \
1.14183 + strings "$collect2name" | grep resolve_lib_name >/dev/null
1.14184 + then
1.14185 + # We have reworked collect2
1.14186 + hardcode_direct_F77=yes
1.14187 + else
1.14188 + # We have old collect2
1.14189 + hardcode_direct_F77=unsupported
1.14190 + # It fails to find uninstalled libraries when the uninstalled
1.14191 + # path is not listed in the libpath. Setting hardcode_minus_L
1.14192 + # to unsupported forces relinking
1.14193 + hardcode_minus_L_F77=yes
1.14194 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14195 + hardcode_libdir_separator_F77=
1.14196 + fi
1.14197 + esac
1.14198 + shared_flag='-shared'
1.14199 + if test "$aix_use_runtimelinking" = yes; then
1.14200 + shared_flag="$shared_flag "'${wl}-G'
1.14201 + fi
1.14202 + else
1.14203 + # not using gcc
1.14204 + if test "$host_cpu" = ia64; then
1.14205 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.14206 + # chokes on -Wl,-G. The following line is correct:
1.14207 + shared_flag='-G'
1.14208 + else
1.14209 + if test "$aix_use_runtimelinking" = yes; then
1.14210 + shared_flag='${wl}-G'
1.14211 + else
1.14212 + shared_flag='${wl}-bM:SRE'
1.14213 + fi
1.14214 + fi
1.14215 + fi
1.14216 +
1.14217 + # It seems that -bexpall does not export symbols beginning with
1.14218 + # underscore (_), so it is better to generate a list of symbols to export.
1.14219 + always_export_symbols_F77=yes
1.14220 + if test "$aix_use_runtimelinking" = yes; then
1.14221 + # Warning - without using the other runtime loading flags (-brtl),
1.14222 + # -berok will link without error, but may produce a broken library.
1.14223 + allow_undefined_flag_F77='-berok'
1.14224 + # Determine the default libpath from the value encoded in an empty executable.
1.14225 + cat >conftest.$ac_ext <<_ACEOF
1.14226 + program main
1.14227 +
1.14228 + end
1.14229 +_ACEOF
1.14230 +rm -f conftest.$ac_objext conftest$ac_exeext
1.14231 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.14232 + (eval $ac_link) 2>conftest.er1
1.14233 + ac_status=$?
1.14234 + grep -v '^ *+' conftest.er1 >conftest.err
1.14235 + rm -f conftest.er1
1.14236 + cat conftest.err >&5
1.14237 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14238 + (exit $ac_status); } &&
1.14239 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1.14240 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.14241 + (eval $ac_try) 2>&5
1.14242 + ac_status=$?
1.14243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14244 + (exit $ac_status); }; } &&
1.14245 + { ac_try='test -s conftest$ac_exeext'
1.14246 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.14247 + (eval $ac_try) 2>&5
1.14248 + ac_status=$?
1.14249 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14250 + (exit $ac_status); }; }; then
1.14251 +
1.14252 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.14253 +}'`
1.14254 +# Check for a 64-bit object if we didn't find anything.
1.14255 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.14256 +}'`; fi
1.14257 +else
1.14258 + echo "$as_me: failed program was:" >&5
1.14259 +sed 's/^/| /' conftest.$ac_ext >&5
1.14260 +
1.14261 +fi
1.14262 +rm -f conftest.err conftest.$ac_objext \
1.14263 + conftest$ac_exeext conftest.$ac_ext
1.14264 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.14265 +
1.14266 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1.14267 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.14268 + else
1.14269 + if test "$host_cpu" = ia64; then
1.14270 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
1.14271 + allow_undefined_flag_F77="-z nodefs"
1.14272 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1.14273 + else
1.14274 + # Determine the default libpath from the value encoded in an empty executable.
1.14275 + cat >conftest.$ac_ext <<_ACEOF
1.14276 + program main
1.14277 +
1.14278 + end
1.14279 +_ACEOF
1.14280 +rm -f conftest.$ac_objext conftest$ac_exeext
1.14281 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.14282 + (eval $ac_link) 2>conftest.er1
1.14283 + ac_status=$?
1.14284 + grep -v '^ *+' conftest.er1 >conftest.err
1.14285 + rm -f conftest.er1
1.14286 + cat conftest.err >&5
1.14287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14288 + (exit $ac_status); } &&
1.14289 + { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
1.14290 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.14291 + (eval $ac_try) 2>&5
1.14292 + ac_status=$?
1.14293 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14294 + (exit $ac_status); }; } &&
1.14295 + { ac_try='test -s conftest$ac_exeext'
1.14296 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.14297 + (eval $ac_try) 2>&5
1.14298 + ac_status=$?
1.14299 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14300 + (exit $ac_status); }; }; then
1.14301 +
1.14302 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.14303 +}'`
1.14304 +# Check for a 64-bit object if we didn't find anything.
1.14305 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.14306 +}'`; fi
1.14307 +else
1.14308 + echo "$as_me: failed program was:" >&5
1.14309 +sed 's/^/| /' conftest.$ac_ext >&5
1.14310 +
1.14311 +fi
1.14312 +rm -f conftest.err conftest.$ac_objext \
1.14313 + conftest$ac_exeext conftest.$ac_ext
1.14314 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.14315 +
1.14316 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
1.14317 + # Warning - without using the other run time loading flags,
1.14318 + # -berok will link without error, but may produce a broken library.
1.14319 + no_undefined_flag_F77=' ${wl}-bernotok'
1.14320 + allow_undefined_flag_F77=' ${wl}-berok'
1.14321 + # -bexpall does not export symbols beginning with underscore (_)
1.14322 + always_export_symbols_F77=yes
1.14323 + # Exported symbols can be pulled into shared objects from archives
1.14324 + whole_archive_flag_spec_F77=' '
1.14325 + archive_cmds_need_lc_F77=yes
1.14326 + # This is similar to how AIX traditionally builds its shared libraries.
1.14327 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.14328 + fi
1.14329 + fi
1.14330 + ;;
1.14331 +
1.14332 + amigaos*)
1.14333 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.14334 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14335 + hardcode_minus_L_F77=yes
1.14336 + # see comment about different semantics on the GNU ld section
1.14337 + ld_shlibs_F77=no
1.14338 + ;;
1.14339 +
1.14340 + bsdi[45]*)
1.14341 + export_dynamic_flag_spec_F77=-rdynamic
1.14342 + ;;
1.14343 +
1.14344 + cygwin* | mingw* | pw32*)
1.14345 + # When not using gcc, we currently assume that we are using
1.14346 + # Microsoft Visual C++.
1.14347 + # hardcode_libdir_flag_spec is actually meaningless, as there is
1.14348 + # no search path for DLLs.
1.14349 + hardcode_libdir_flag_spec_F77=' '
1.14350 + allow_undefined_flag_F77=unsupported
1.14351 + # Tell ltmain to make .lib files, not .a files.
1.14352 + libext=lib
1.14353 + # Tell ltmain to make .dll files, not .so files.
1.14354 + shrext_cmds=".dll"
1.14355 + # FIXME: Setting linknames here is a bad hack.
1.14356 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.14357 + # The linker will automatically build a .lib file if we build a DLL.
1.14358 + old_archive_From_new_cmds_F77='true'
1.14359 + # FIXME: Should let the user specify the lib program.
1.14360 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.14361 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
1.14362 + enable_shared_with_static_runtimes_F77=yes
1.14363 + ;;
1.14364 +
1.14365 + darwin* | rhapsody*)
1.14366 + case $host_os in
1.14367 + rhapsody* | darwin1.[012])
1.14368 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
1.14369 + ;;
1.14370 + *) # Darwin 1.3 on
1.14371 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.14372 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.14373 + else
1.14374 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.14375 + 10.[012])
1.14376 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.14377 + ;;
1.14378 + 10.*)
1.14379 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
1.14380 + ;;
1.14381 + esac
1.14382 + fi
1.14383 + ;;
1.14384 + esac
1.14385 + archive_cmds_need_lc_F77=no
1.14386 + hardcode_direct_F77=no
1.14387 + hardcode_automatic_F77=yes
1.14388 + hardcode_shlibpath_var_F77=unsupported
1.14389 + whole_archive_flag_spec_F77=''
1.14390 + link_all_deplibs_F77=yes
1.14391 + if test "$GCC" = yes ; then
1.14392 + output_verbose_link_cmd='echo'
1.14393 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.14394 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.14395 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.14396 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.14397 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.14398 + else
1.14399 + case $cc_basename in
1.14400 + xlc*)
1.14401 + output_verbose_link_cmd='echo'
1.14402 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.14403 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.14404 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.14405 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.14406 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.14407 + ;;
1.14408 + *)
1.14409 + ld_shlibs_F77=no
1.14410 + ;;
1.14411 + esac
1.14412 + fi
1.14413 + ;;
1.14414 +
1.14415 + dgux*)
1.14416 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14417 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14418 + hardcode_shlibpath_var_F77=no
1.14419 + ;;
1.14420 +
1.14421 + freebsd1*)
1.14422 + ld_shlibs_F77=no
1.14423 + ;;
1.14424 +
1.14425 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1.14426 + # support. Future versions do this automatically, but an explicit c++rt0.o
1.14427 + # does not break anything, and helps significantly (at the cost of a little
1.14428 + # extra space).
1.14429 + freebsd2.2*)
1.14430 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1.14431 + hardcode_libdir_flag_spec_F77='-R$libdir'
1.14432 + hardcode_direct_F77=yes
1.14433 + hardcode_shlibpath_var_F77=no
1.14434 + ;;
1.14435 +
1.14436 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.14437 + freebsd2*)
1.14438 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.14439 + hardcode_direct_F77=yes
1.14440 + hardcode_minus_L_F77=yes
1.14441 + hardcode_shlibpath_var_F77=no
1.14442 + ;;
1.14443 +
1.14444 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.14445 + freebsd* | kfreebsd*-gnu | dragonfly*)
1.14446 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1.14447 + hardcode_libdir_flag_spec_F77='-R$libdir'
1.14448 + hardcode_direct_F77=yes
1.14449 + hardcode_shlibpath_var_F77=no
1.14450 + ;;
1.14451 +
1.14452 + hpux9*)
1.14453 + if test "$GCC" = yes; then
1.14454 + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.14455 + else
1.14456 + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.14457 + fi
1.14458 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1.14459 + hardcode_libdir_separator_F77=:
1.14460 + hardcode_direct_F77=yes
1.14461 +
1.14462 + # hardcode_minus_L: Not really in the search PATH,
1.14463 + # but as the default location of the library.
1.14464 + hardcode_minus_L_F77=yes
1.14465 + export_dynamic_flag_spec_F77='${wl}-E'
1.14466 + ;;
1.14467 +
1.14468 + hpux10* | hpux11*)
1.14469 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.14470 + case $host_cpu in
1.14471 + hppa*64*|ia64*)
1.14472 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.14473 + ;;
1.14474 + *)
1.14475 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.14476 + ;;
1.14477 + esac
1.14478 + else
1.14479 + case $host_cpu in
1.14480 + hppa*64*|ia64*)
1.14481 + archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14482 + ;;
1.14483 + *)
1.14484 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.14485 + ;;
1.14486 + esac
1.14487 + fi
1.14488 + if test "$with_gnu_ld" = no; then
1.14489 + case $host_cpu in
1.14490 + hppa*64*)
1.14491 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1.14492 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
1.14493 + hardcode_libdir_separator_F77=:
1.14494 + hardcode_direct_F77=no
1.14495 + hardcode_shlibpath_var_F77=no
1.14496 + ;;
1.14497 + ia64*)
1.14498 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14499 + hardcode_direct_F77=no
1.14500 + hardcode_shlibpath_var_F77=no
1.14501 +
1.14502 + # hardcode_minus_L: Not really in the search PATH,
1.14503 + # but as the default location of the library.
1.14504 + hardcode_minus_L_F77=yes
1.14505 + ;;
1.14506 + *)
1.14507 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
1.14508 + hardcode_libdir_separator_F77=:
1.14509 + hardcode_direct_F77=yes
1.14510 + export_dynamic_flag_spec_F77='${wl}-E'
1.14511 +
1.14512 + # hardcode_minus_L: Not really in the search PATH,
1.14513 + # but as the default location of the library.
1.14514 + hardcode_minus_L_F77=yes
1.14515 + ;;
1.14516 + esac
1.14517 + fi
1.14518 + ;;
1.14519 +
1.14520 + irix5* | irix6* | nonstopux*)
1.14521 + if test "$GCC" = yes; then
1.14522 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.14523 + else
1.14524 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.14525 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
1.14526 + fi
1.14527 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1.14528 + hardcode_libdir_separator_F77=:
1.14529 + link_all_deplibs_F77=yes
1.14530 + ;;
1.14531 +
1.14532 + netbsd*)
1.14533 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.14534 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.14535 + else
1.14536 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1.14537 + fi
1.14538 + hardcode_libdir_flag_spec_F77='-R$libdir'
1.14539 + hardcode_direct_F77=yes
1.14540 + hardcode_shlibpath_var_F77=no
1.14541 + ;;
1.14542 +
1.14543 + newsos6)
1.14544 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14545 + hardcode_direct_F77=yes
1.14546 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1.14547 + hardcode_libdir_separator_F77=:
1.14548 + hardcode_shlibpath_var_F77=no
1.14549 + ;;
1.14550 +
1.14551 + openbsd*)
1.14552 + hardcode_direct_F77=yes
1.14553 + hardcode_shlibpath_var_F77=no
1.14554 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.14555 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.14556 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1.14557 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
1.14558 + export_dynamic_flag_spec_F77='${wl}-E'
1.14559 + else
1.14560 + case $host_os in
1.14561 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
1.14562 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.14563 + hardcode_libdir_flag_spec_F77='-R$libdir'
1.14564 + ;;
1.14565 + *)
1.14566 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.14567 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
1.14568 + ;;
1.14569 + esac
1.14570 + fi
1.14571 + ;;
1.14572 +
1.14573 + os2*)
1.14574 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14575 + hardcode_minus_L_F77=yes
1.14576 + allow_undefined_flag_F77=unsupported
1.14577 + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1.14578 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.14579 + ;;
1.14580 +
1.14581 + osf3*)
1.14582 + if test "$GCC" = yes; then
1.14583 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
1.14584 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.14585 + else
1.14586 + allow_undefined_flag_F77=' -expect_unresolved \*'
1.14587 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.14588 + fi
1.14589 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1.14590 + hardcode_libdir_separator_F77=:
1.14591 + ;;
1.14592 +
1.14593 + osf4* | osf5*) # as osf3* with the addition of -msym flag
1.14594 + if test "$GCC" = yes; then
1.14595 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
1.14596 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.14597 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
1.14598 + else
1.14599 + allow_undefined_flag_F77=' -expect_unresolved \*'
1.14600 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.14601 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.14602 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.14603 +
1.14604 + # Both c and cxx compiler support -rpath directly
1.14605 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
1.14606 + fi
1.14607 + hardcode_libdir_separator_F77=:
1.14608 + ;;
1.14609 +
1.14610 + sco3.2v5*)
1.14611 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14612 + hardcode_shlibpath_var_F77=no
1.14613 + export_dynamic_flag_spec_F77='${wl}-Bexport'
1.14614 + runpath_var=LD_RUN_PATH
1.14615 + hardcode_runpath_var=yes
1.14616 + ;;
1.14617 +
1.14618 + solaris*)
1.14619 + no_undefined_flag_F77=' -z text'
1.14620 + if test "$GCC" = yes; then
1.14621 + wlarc='${wl}'
1.14622 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.14623 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.14624 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1.14625 + else
1.14626 + wlarc=''
1.14627 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14628 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.14629 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.14630 + fi
1.14631 + hardcode_libdir_flag_spec_F77='-R$libdir'
1.14632 + hardcode_shlibpath_var_F77=no
1.14633 + case $host_os in
1.14634 + solaris2.[0-5] | solaris2.[0-5].*) ;;
1.14635 + *)
1.14636 + # The compiler driver will combine linker options so we
1.14637 + # cannot just pass the convience library names through
1.14638 + # without $wl, iff we do not link with $LD.
1.14639 + # Luckily, gcc supports the same syntax we need for Sun Studio.
1.14640 + # Supported since Solaris 2.6 (maybe 2.5.1?)
1.14641 + case $wlarc in
1.14642 + '')
1.14643 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
1.14644 + *)
1.14645 + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
1.14646 + esac ;;
1.14647 + esac
1.14648 + link_all_deplibs_F77=yes
1.14649 + ;;
1.14650 +
1.14651 + sunos4*)
1.14652 + if test "x$host_vendor" = xsequent; then
1.14653 + # Use $CC to link under sequent, because it throws in some extra .o
1.14654 + # files that make .init and .fini sections work.
1.14655 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.14656 + else
1.14657 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.14658 + fi
1.14659 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14660 + hardcode_direct_F77=yes
1.14661 + hardcode_minus_L_F77=yes
1.14662 + hardcode_shlibpath_var_F77=no
1.14663 + ;;
1.14664 +
1.14665 + sysv4)
1.14666 + case $host_vendor in
1.14667 + sni)
1.14668 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14669 + hardcode_direct_F77=yes # is this really true???
1.14670 + ;;
1.14671 + siemens)
1.14672 + ## LD is ld it makes a PLAMLIB
1.14673 + ## CC just makes a GrossModule.
1.14674 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.14675 + reload_cmds_F77='$CC -r -o $output$reload_objs'
1.14676 + hardcode_direct_F77=no
1.14677 + ;;
1.14678 + motorola)
1.14679 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14680 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
1.14681 + ;;
1.14682 + esac
1.14683 + runpath_var='LD_RUN_PATH'
1.14684 + hardcode_shlibpath_var_F77=no
1.14685 + ;;
1.14686 +
1.14687 + sysv4.3*)
1.14688 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14689 + hardcode_shlibpath_var_F77=no
1.14690 + export_dynamic_flag_spec_F77='-Bexport'
1.14691 + ;;
1.14692 +
1.14693 + sysv4*MP*)
1.14694 + if test -d /usr/nec; then
1.14695 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14696 + hardcode_shlibpath_var_F77=no
1.14697 + runpath_var=LD_RUN_PATH
1.14698 + hardcode_runpath_var=yes
1.14699 + ld_shlibs_F77=yes
1.14700 + fi
1.14701 + ;;
1.14702 +
1.14703 + sysv4.2uw2*)
1.14704 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.14705 + hardcode_direct_F77=yes
1.14706 + hardcode_minus_L_F77=no
1.14707 + hardcode_shlibpath_var_F77=no
1.14708 + hardcode_runpath_var=yes
1.14709 + runpath_var=LD_RUN_PATH
1.14710 + ;;
1.14711 +
1.14712 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
1.14713 + no_undefined_flag_F77='${wl}-z ${wl}text'
1.14714 + if test "$GCC" = yes; then
1.14715 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.14716 + else
1.14717 + archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.14718 + fi
1.14719 + runpath_var='LD_RUN_PATH'
1.14720 + hardcode_shlibpath_var_F77=no
1.14721 + ;;
1.14722 +
1.14723 + sysv5*)
1.14724 + no_undefined_flag_F77=' -z text'
1.14725 + # $CC -shared without GNU ld will not create a library from C++
1.14726 + # object files and a static libstdc++, better avoid it by now
1.14727 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14728 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.14729 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.14730 + hardcode_libdir_flag_spec_F77=
1.14731 + hardcode_shlibpath_var_F77=no
1.14732 + runpath_var='LD_RUN_PATH'
1.14733 + ;;
1.14734 +
1.14735 + uts4*)
1.14736 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.14737 + hardcode_libdir_flag_spec_F77='-L$libdir'
1.14738 + hardcode_shlibpath_var_F77=no
1.14739 + ;;
1.14740 +
1.14741 + *)
1.14742 + ld_shlibs_F77=no
1.14743 + ;;
1.14744 + esac
1.14745 + fi
1.14746 +
1.14747 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
1.14748 +echo "${ECHO_T}$ld_shlibs_F77" >&6
1.14749 +test "$ld_shlibs_F77" = no && can_build_shared=no
1.14750 +
1.14751 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.14752 +if test "$GCC" = yes; then
1.14753 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.14754 +fi
1.14755 +
1.14756 +#
1.14757 +# Do we need to explicitly link libc?
1.14758 +#
1.14759 +case "x$archive_cmds_need_lc_F77" in
1.14760 +x|xyes)
1.14761 + # Assume -lc should be added
1.14762 + archive_cmds_need_lc_F77=yes
1.14763 +
1.14764 + if test "$enable_shared" = yes && test "$GCC" = yes; then
1.14765 + case $archive_cmds_F77 in
1.14766 + *'~'*)
1.14767 + # FIXME: we may have to deal with multi-command sequences.
1.14768 + ;;
1.14769 + '$CC '*)
1.14770 + # Test whether the compiler implicitly links with -lc since on some
1.14771 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
1.14772 + # to ld, don't add -lc before -lgcc.
1.14773 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
1.14774 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.14775 + $rm conftest*
1.14776 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.14777 +
1.14778 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.14779 + (eval $ac_compile) 2>&5
1.14780 + ac_status=$?
1.14781 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14782 + (exit $ac_status); } 2>conftest.err; then
1.14783 + soname=conftest
1.14784 + lib=conftest
1.14785 + libobjs=conftest.$ac_objext
1.14786 + deplibs=
1.14787 + wl=$lt_prog_compiler_wl_F77
1.14788 + compiler_flags=-v
1.14789 + linker_flags=-v
1.14790 + verstring=
1.14791 + output_objdir=.
1.14792 + libname=conftest
1.14793 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
1.14794 + allow_undefined_flag_F77=
1.14795 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.14796 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.14797 + ac_status=$?
1.14798 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.14799 + (exit $ac_status); }
1.14800 + then
1.14801 + archive_cmds_need_lc_F77=no
1.14802 + else
1.14803 + archive_cmds_need_lc_F77=yes
1.14804 + fi
1.14805 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
1.14806 + else
1.14807 + cat conftest.err 1>&5
1.14808 + fi
1.14809 + $rm conftest*
1.14810 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
1.14811 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
1.14812 + ;;
1.14813 + esac
1.14814 + fi
1.14815 + ;;
1.14816 +esac
1.14817 +
1.14818 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
1.14819 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.14820 +library_names_spec=
1.14821 +libname_spec='lib$name'
1.14822 +soname_spec=
1.14823 +shrext_cmds=".so"
1.14824 +postinstall_cmds=
1.14825 +postuninstall_cmds=
1.14826 +finish_cmds=
1.14827 +finish_eval=
1.14828 +shlibpath_var=
1.14829 +shlibpath_overrides_runpath=unknown
1.14830 +version_type=none
1.14831 +dynamic_linker="$host_os ld.so"
1.14832 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.14833 +if test "$GCC" = yes; then
1.14834 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.14835 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1.14836 + # if the path contains ";" then we assume it to be the separator
1.14837 + # otherwise default to the standard path separator (i.e. ":") - it is
1.14838 + # assumed that no part of a normal pathname contains ";" but that should
1.14839 + # okay in the real world where ";" in dirpaths is itself problematic.
1.14840 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.14841 + else
1.14842 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.14843 + fi
1.14844 +else
1.14845 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.14846 +fi
1.14847 +need_lib_prefix=unknown
1.14848 +hardcode_into_libs=no
1.14849 +
1.14850 +# when you set need_version to no, make sure it does not cause -set_version
1.14851 +# flags to be left without arguments
1.14852 +need_version=unknown
1.14853 +
1.14854 +case $host_os in
1.14855 +aix3*)
1.14856 + version_type=linux
1.14857 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.14858 + shlibpath_var=LIBPATH
1.14859 +
1.14860 + # AIX 3 has no versioning support, so we append a major version to the name.
1.14861 + soname_spec='${libname}${release}${shared_ext}$major'
1.14862 + ;;
1.14863 +
1.14864 +aix4* | aix5*)
1.14865 + version_type=linux
1.14866 + need_lib_prefix=no
1.14867 + need_version=no
1.14868 + hardcode_into_libs=yes
1.14869 + if test "$host_cpu" = ia64; then
1.14870 + # AIX 5 supports IA64
1.14871 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.14872 + shlibpath_var=LD_LIBRARY_PATH
1.14873 + else
1.14874 + # With GCC up to 2.95.x, collect2 would create an import file
1.14875 + # for dependence libraries. The import file would start with
1.14876 + # the line `#! .'. This would cause the generated library to
1.14877 + # depend on `.', always an invalid library. This was fixed in
1.14878 + # development snapshots of GCC prior to 3.0.
1.14879 + case $host_os in
1.14880 + aix4 | aix4.[01] | aix4.[01].*)
1.14881 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1.14882 + echo ' yes '
1.14883 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1.14884 + :
1.14885 + else
1.14886 + can_build_shared=no
1.14887 + fi
1.14888 + ;;
1.14889 + esac
1.14890 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1.14891 + # soname into executable. Probably we can add versioning support to
1.14892 + # collect2, so additional links can be useful in future.
1.14893 + if test "$aix_use_runtimelinking" = yes; then
1.14894 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1.14895 + # instead of lib<name>.a to let people know that these are not
1.14896 + # typical AIX shared libraries.
1.14897 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.14898 + else
1.14899 + # We preserve .a as extension for shared libraries through AIX4.2
1.14900 + # and later when we are not doing run time linking.
1.14901 + library_names_spec='${libname}${release}.a $libname.a'
1.14902 + soname_spec='${libname}${release}${shared_ext}$major'
1.14903 + fi
1.14904 + shlibpath_var=LIBPATH
1.14905 + fi
1.14906 + ;;
1.14907 +
1.14908 +amigaos*)
1.14909 + library_names_spec='$libname.ixlibrary $libname.a'
1.14910 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.14911 + 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'
1.14912 + ;;
1.14913 +
1.14914 +beos*)
1.14915 + library_names_spec='${libname}${shared_ext}'
1.14916 + dynamic_linker="$host_os ld.so"
1.14917 + shlibpath_var=LIBRARY_PATH
1.14918 + ;;
1.14919 +
1.14920 +bsdi[45]*)
1.14921 + version_type=linux
1.14922 + need_version=no
1.14923 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.14924 + soname_spec='${libname}${release}${shared_ext}$major'
1.14925 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.14926 + shlibpath_var=LD_LIBRARY_PATH
1.14927 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1.14928 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1.14929 + # the default ld.so.conf also contains /usr/contrib/lib and
1.14930 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1.14931 + # libtool to hard-code these into programs
1.14932 + ;;
1.14933 +
1.14934 +cygwin* | mingw* | pw32*)
1.14935 + version_type=windows
1.14936 + shrext_cmds=".dll"
1.14937 + need_version=no
1.14938 + need_lib_prefix=no
1.14939 +
1.14940 + case $GCC,$host_os in
1.14941 + yes,cygwin* | yes,mingw* | yes,pw32*)
1.14942 + library_names_spec='$libname.dll.a'
1.14943 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.14944 + postinstall_cmds='base_file=`basename \${file}`~
1.14945 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.14946 + dldir=$destdir/`dirname \$dlpath`~
1.14947 + test -d \$dldir || mkdir -p \$dldir~
1.14948 + $install_prog $dir/$dlname \$dldir/$dlname~
1.14949 + chmod a+x \$dldir/$dlname'
1.14950 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.14951 + dlpath=$dir/\$dldll~
1.14952 + $rm \$dlpath'
1.14953 + shlibpath_overrides_runpath=yes
1.14954 +
1.14955 + case $host_os in
1.14956 + cygwin*)
1.14957 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.14958 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.14959 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.14960 + ;;
1.14961 + mingw*)
1.14962 + # MinGW DLLs use traditional 'lib' prefix
1.14963 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.14964 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.14965 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1.14966 + # It is most probably a Windows format PATH printed by
1.14967 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1.14968 + # path with ; separators, and with drive letters. We can handle the
1.14969 + # drive letters (cygwin fileutils understands them), so leave them,
1.14970 + # especially as we might pass files found there to a mingw objdump,
1.14971 + # which wouldn't understand a cygwinified path. Ahh.
1.14972 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.14973 + else
1.14974 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.14975 + fi
1.14976 + ;;
1.14977 + pw32*)
1.14978 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1.14979 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.14980 + ;;
1.14981 + esac
1.14982 + ;;
1.14983 +
1.14984 + *)
1.14985 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.14986 + ;;
1.14987 + esac
1.14988 + dynamic_linker='Win32 ld.exe'
1.14989 + # FIXME: first we should search . and the directory the executable is in
1.14990 + shlibpath_var=PATH
1.14991 + ;;
1.14992 +
1.14993 +darwin* | rhapsody*)
1.14994 + dynamic_linker="$host_os dyld"
1.14995 + version_type=darwin
1.14996 + need_lib_prefix=no
1.14997 + need_version=no
1.14998 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.14999 + soname_spec='${libname}${release}${major}$shared_ext'
1.15000 + shlibpath_overrides_runpath=yes
1.15001 + shlibpath_var=DYLD_LIBRARY_PATH
1.15002 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.15003 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.15004 + if test "$GCC" = yes; then
1.15005 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1.15006 + else
1.15007 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.15008 + fi
1.15009 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.15010 + ;;
1.15011 +
1.15012 +dgux*)
1.15013 + version_type=linux
1.15014 + need_lib_prefix=no
1.15015 + need_version=no
1.15016 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1.15017 + soname_spec='${libname}${release}${shared_ext}$major'
1.15018 + shlibpath_var=LD_LIBRARY_PATH
1.15019 + ;;
1.15020 +
1.15021 +freebsd1*)
1.15022 + dynamic_linker=no
1.15023 + ;;
1.15024 +
1.15025 +kfreebsd*-gnu)
1.15026 + version_type=linux
1.15027 + need_lib_prefix=no
1.15028 + need_version=no
1.15029 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.15030 + soname_spec='${libname}${release}${shared_ext}$major'
1.15031 + shlibpath_var=LD_LIBRARY_PATH
1.15032 + shlibpath_overrides_runpath=no
1.15033 + hardcode_into_libs=yes
1.15034 + dynamic_linker='GNU ld.so'
1.15035 + ;;
1.15036 +
1.15037 +freebsd* | dragonfly*)
1.15038 + # DragonFly does not have aout. When/if they implement a new
1.15039 + # versioning mechanism, adjust this.
1.15040 + if test -x /usr/bin/objformat; then
1.15041 + objformat=`/usr/bin/objformat`
1.15042 + else
1.15043 + case $host_os in
1.15044 + freebsd[123]*) objformat=aout ;;
1.15045 + *) objformat=elf ;;
1.15046 + esac
1.15047 + fi
1.15048 + version_type=freebsd-$objformat
1.15049 + case $version_type in
1.15050 + freebsd-elf*)
1.15051 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.15052 + need_version=no
1.15053 + need_lib_prefix=no
1.15054 + ;;
1.15055 + freebsd-*)
1.15056 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.15057 + need_version=yes
1.15058 + ;;
1.15059 + esac
1.15060 + shlibpath_var=LD_LIBRARY_PATH
1.15061 + case $host_os in
1.15062 + freebsd2*)
1.15063 + shlibpath_overrides_runpath=yes
1.15064 + ;;
1.15065 + freebsd3.[01]* | freebsdelf3.[01]*)
1.15066 + shlibpath_overrides_runpath=yes
1.15067 + hardcode_into_libs=yes
1.15068 + ;;
1.15069 + *) # from 3.2 on
1.15070 + shlibpath_overrides_runpath=no
1.15071 + hardcode_into_libs=yes
1.15072 + ;;
1.15073 + esac
1.15074 + ;;
1.15075 +
1.15076 +gnu*)
1.15077 + version_type=linux
1.15078 + need_lib_prefix=no
1.15079 + need_version=no
1.15080 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1.15081 + soname_spec='${libname}${release}${shared_ext}$major'
1.15082 + shlibpath_var=LD_LIBRARY_PATH
1.15083 + hardcode_into_libs=yes
1.15084 + ;;
1.15085 +
1.15086 +hpux9* | hpux10* | hpux11*)
1.15087 + # Give a soname corresponding to the major version so that dld.sl refuses to
1.15088 + # link against other versions.
1.15089 + version_type=sunos
1.15090 + need_lib_prefix=no
1.15091 + need_version=no
1.15092 + case $host_cpu in
1.15093 + ia64*)
1.15094 + shrext_cmds='.so'
1.15095 + hardcode_into_libs=yes
1.15096 + dynamic_linker="$host_os dld.so"
1.15097 + shlibpath_var=LD_LIBRARY_PATH
1.15098 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.15099 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15100 + soname_spec='${libname}${release}${shared_ext}$major'
1.15101 + if test "X$HPUX_IA64_MODE" = X32; then
1.15102 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.15103 + else
1.15104 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.15105 + fi
1.15106 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.15107 + ;;
1.15108 + hppa*64*)
1.15109 + shrext_cmds='.sl'
1.15110 + hardcode_into_libs=yes
1.15111 + dynamic_linker="$host_os dld.sl"
1.15112 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1.15113 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.15114 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15115 + soname_spec='${libname}${release}${shared_ext}$major'
1.15116 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1.15117 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.15118 + ;;
1.15119 + *)
1.15120 + shrext_cmds='.sl'
1.15121 + dynamic_linker="$host_os dld.sl"
1.15122 + shlibpath_var=SHLIB_PATH
1.15123 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.15124 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15125 + soname_spec='${libname}${release}${shared_ext}$major'
1.15126 + ;;
1.15127 + esac
1.15128 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1.15129 + postinstall_cmds='chmod 555 $lib'
1.15130 + ;;
1.15131 +
1.15132 +irix5* | irix6* | nonstopux*)
1.15133 + case $host_os in
1.15134 + nonstopux*) version_type=nonstopux ;;
1.15135 + *)
1.15136 + if test "$lt_cv_prog_gnu_ld" = yes; then
1.15137 + version_type=linux
1.15138 + else
1.15139 + version_type=irix
1.15140 + fi ;;
1.15141 + esac
1.15142 + need_lib_prefix=no
1.15143 + need_version=no
1.15144 + soname_spec='${libname}${release}${shared_ext}$major'
1.15145 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.15146 + case $host_os in
1.15147 + irix5* | nonstopux*)
1.15148 + libsuff= shlibsuff=
1.15149 + ;;
1.15150 + *)
1.15151 + case $LD in # libtool.m4 will add one of these switches to LD
1.15152 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1.15153 + libsuff= shlibsuff= libmagic=32-bit;;
1.15154 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1.15155 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1.15156 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1.15157 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.15158 + *) libsuff= shlibsuff= libmagic=never-match;;
1.15159 + esac
1.15160 + ;;
1.15161 + esac
1.15162 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1.15163 + shlibpath_overrides_runpath=no
1.15164 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1.15165 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.15166 + hardcode_into_libs=yes
1.15167 + ;;
1.15168 +
1.15169 +# No shared lib support for Linux oldld, aout, or coff.
1.15170 +linux*oldld* | linux*aout* | linux*coff*)
1.15171 + dynamic_linker=no
1.15172 + ;;
1.15173 +
1.15174 +# This must be Linux ELF.
1.15175 +linux*)
1.15176 + version_type=linux
1.15177 + need_lib_prefix=no
1.15178 + need_version=no
1.15179 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15180 + soname_spec='${libname}${release}${shared_ext}$major'
1.15181 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.15182 + shlibpath_var=LD_LIBRARY_PATH
1.15183 + shlibpath_overrides_runpath=no
1.15184 + # This implies no fast_install, which is unacceptable.
1.15185 + # Some rework will be needed to allow for fast_install
1.15186 + # before this can be enabled.
1.15187 + hardcode_into_libs=yes
1.15188 +
1.15189 + # Append ld.so.conf contents to the search path
1.15190 + if test -f /etc/ld.so.conf; then
1.15191 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.15192 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.15193 + fi
1.15194 +
1.15195 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1.15196 + # powerpc, because MkLinux only supported shared libraries with the
1.15197 + # GNU dynamic linker. Since this was broken with cross compilers,
1.15198 + # most powerpc-linux boxes support dynamic linking these days and
1.15199 + # people can always --disable-shared, the test was removed, and we
1.15200 + # assume the GNU/Linux dynamic linker is in use.
1.15201 + dynamic_linker='GNU/Linux ld.so'
1.15202 + ;;
1.15203 +
1.15204 +knetbsd*-gnu)
1.15205 + version_type=linux
1.15206 + need_lib_prefix=no
1.15207 + need_version=no
1.15208 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.15209 + soname_spec='${libname}${release}${shared_ext}$major'
1.15210 + shlibpath_var=LD_LIBRARY_PATH
1.15211 + shlibpath_overrides_runpath=no
1.15212 + hardcode_into_libs=yes
1.15213 + dynamic_linker='GNU ld.so'
1.15214 + ;;
1.15215 +
1.15216 +netbsd*)
1.15217 + version_type=sunos
1.15218 + need_lib_prefix=no
1.15219 + need_version=no
1.15220 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.15221 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.15222 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.15223 + dynamic_linker='NetBSD (a.out) ld.so'
1.15224 + else
1.15225 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.15226 + soname_spec='${libname}${release}${shared_ext}$major'
1.15227 + dynamic_linker='NetBSD ld.elf_so'
1.15228 + fi
1.15229 + shlibpath_var=LD_LIBRARY_PATH
1.15230 + shlibpath_overrides_runpath=yes
1.15231 + hardcode_into_libs=yes
1.15232 + ;;
1.15233 +
1.15234 +newsos6)
1.15235 + version_type=linux
1.15236 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15237 + shlibpath_var=LD_LIBRARY_PATH
1.15238 + shlibpath_overrides_runpath=yes
1.15239 + ;;
1.15240 +
1.15241 +nto-qnx*)
1.15242 + version_type=linux
1.15243 + need_lib_prefix=no
1.15244 + need_version=no
1.15245 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15246 + soname_spec='${libname}${release}${shared_ext}$major'
1.15247 + shlibpath_var=LD_LIBRARY_PATH
1.15248 + shlibpath_overrides_runpath=yes
1.15249 + ;;
1.15250 +
1.15251 +openbsd*)
1.15252 + version_type=sunos
1.15253 + need_lib_prefix=no
1.15254 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.15255 + case $host_os in
1.15256 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.15257 + *) need_version=no ;;
1.15258 + esac
1.15259 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.15260 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.15261 + shlibpath_var=LD_LIBRARY_PATH
1.15262 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.15263 + case $host_os in
1.15264 + openbsd2.[89] | openbsd2.[89].*)
1.15265 + shlibpath_overrides_runpath=no
1.15266 + ;;
1.15267 + *)
1.15268 + shlibpath_overrides_runpath=yes
1.15269 + ;;
1.15270 + esac
1.15271 + else
1.15272 + shlibpath_overrides_runpath=yes
1.15273 + fi
1.15274 + ;;
1.15275 +
1.15276 +os2*)
1.15277 + libname_spec='$name'
1.15278 + shrext_cmds=".dll"
1.15279 + need_lib_prefix=no
1.15280 + library_names_spec='$libname${shared_ext} $libname.a'
1.15281 + dynamic_linker='OS/2 ld.exe'
1.15282 + shlibpath_var=LIBPATH
1.15283 + ;;
1.15284 +
1.15285 +osf3* | osf4* | osf5*)
1.15286 + version_type=osf
1.15287 + need_lib_prefix=no
1.15288 + need_version=no
1.15289 + soname_spec='${libname}${release}${shared_ext}$major'
1.15290 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15291 + shlibpath_var=LD_LIBRARY_PATH
1.15292 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.15293 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.15294 + ;;
1.15295 +
1.15296 +sco3.2v5*)
1.15297 + version_type=osf
1.15298 + soname_spec='${libname}${release}${shared_ext}$major'
1.15299 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15300 + shlibpath_var=LD_LIBRARY_PATH
1.15301 + ;;
1.15302 +
1.15303 +solaris*)
1.15304 + version_type=linux
1.15305 + need_lib_prefix=no
1.15306 + need_version=no
1.15307 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15308 + soname_spec='${libname}${release}${shared_ext}$major'
1.15309 + shlibpath_var=LD_LIBRARY_PATH
1.15310 + shlibpath_overrides_runpath=yes
1.15311 + hardcode_into_libs=yes
1.15312 + # ldd complains unless libraries are executable
1.15313 + postinstall_cmds='chmod +x $lib'
1.15314 + ;;
1.15315 +
1.15316 +sunos4*)
1.15317 + version_type=sunos
1.15318 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.15319 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.15320 + shlibpath_var=LD_LIBRARY_PATH
1.15321 + shlibpath_overrides_runpath=yes
1.15322 + if test "$with_gnu_ld" = yes; then
1.15323 + need_lib_prefix=no
1.15324 + fi
1.15325 + need_version=yes
1.15326 + ;;
1.15327 +
1.15328 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.15329 + version_type=linux
1.15330 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15331 + soname_spec='${libname}${release}${shared_ext}$major'
1.15332 + shlibpath_var=LD_LIBRARY_PATH
1.15333 + case $host_vendor in
1.15334 + sni)
1.15335 + shlibpath_overrides_runpath=no
1.15336 + need_lib_prefix=no
1.15337 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1.15338 + runpath_var=LD_RUN_PATH
1.15339 + ;;
1.15340 + siemens)
1.15341 + need_lib_prefix=no
1.15342 + ;;
1.15343 + motorola)
1.15344 + need_lib_prefix=no
1.15345 + need_version=no
1.15346 + shlibpath_overrides_runpath=no
1.15347 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1.15348 + ;;
1.15349 + esac
1.15350 + ;;
1.15351 +
1.15352 +sysv4*MP*)
1.15353 + if test -d /usr/nec ;then
1.15354 + version_type=linux
1.15355 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1.15356 + soname_spec='$libname${shared_ext}.$major'
1.15357 + shlibpath_var=LD_LIBRARY_PATH
1.15358 + fi
1.15359 + ;;
1.15360 +
1.15361 +uts4*)
1.15362 + version_type=linux
1.15363 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.15364 + soname_spec='${libname}${release}${shared_ext}$major'
1.15365 + shlibpath_var=LD_LIBRARY_PATH
1.15366 + ;;
1.15367 +
1.15368 +*)
1.15369 + dynamic_linker=no
1.15370 + ;;
1.15371 +esac
1.15372 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1.15373 +echo "${ECHO_T}$dynamic_linker" >&6
1.15374 +test "$dynamic_linker" = no && can_build_shared=no
1.15375 +
1.15376 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1.15377 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.15378 +hardcode_action_F77=
1.15379 +if test -n "$hardcode_libdir_flag_spec_F77" || \
1.15380 + test -n "$runpath_var_F77" || \
1.15381 + test "X$hardcode_automatic_F77" = "Xyes" ; then
1.15382 +
1.15383 + # We can hardcode non-existant directories.
1.15384 + if test "$hardcode_direct_F77" != no &&
1.15385 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1.15386 + # have to relink, otherwise we might link with an installed library
1.15387 + # when we should be linking with a yet-to-be-installed one
1.15388 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
1.15389 + test "$hardcode_minus_L_F77" != no; then
1.15390 + # Linking always hardcodes the temporary library directory.
1.15391 + hardcode_action_F77=relink
1.15392 + else
1.15393 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.15394 + hardcode_action_F77=immediate
1.15395 + fi
1.15396 +else
1.15397 + # We cannot hardcode anything, or else we can only hardcode existing
1.15398 + # directories.
1.15399 + hardcode_action_F77=unsupported
1.15400 +fi
1.15401 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
1.15402 +echo "${ECHO_T}$hardcode_action_F77" >&6
1.15403 +
1.15404 +if test "$hardcode_action_F77" = relink; then
1.15405 + # Fast installation is not supported
1.15406 + enable_fast_install=no
1.15407 +elif test "$shlibpath_overrides_runpath" = yes ||
1.15408 + test "$enable_shared" = no; then
1.15409 + # Fast installation is not necessary
1.15410 + enable_fast_install=needless
1.15411 +fi
1.15412 +
1.15413 +striplib=
1.15414 +old_striplib=
1.15415 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
1.15416 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.15417 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1.15418 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1.15419 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.15420 + echo "$as_me:$LINENO: result: yes" >&5
1.15421 +echo "${ECHO_T}yes" >&6
1.15422 +else
1.15423 +# FIXME - insert some real tests, host_os isn't really good enough
1.15424 + case $host_os in
1.15425 + darwin*)
1.15426 + if test -n "$STRIP" ; then
1.15427 + striplib="$STRIP -x"
1.15428 + echo "$as_me:$LINENO: result: yes" >&5
1.15429 +echo "${ECHO_T}yes" >&6
1.15430 + else
1.15431 + echo "$as_me:$LINENO: result: no" >&5
1.15432 +echo "${ECHO_T}no" >&6
1.15433 +fi
1.15434 + ;;
1.15435 + *)
1.15436 + echo "$as_me:$LINENO: result: no" >&5
1.15437 +echo "${ECHO_T}no" >&6
1.15438 + ;;
1.15439 + esac
1.15440 +fi
1.15441 +
1.15442 +
1.15443 +
1.15444 +# The else clause should only fire when bootstrapping the
1.15445 +# libtool distribution, otherwise you forgot to ship ltmain.sh
1.15446 +# with your package, and you will get complaints that there are
1.15447 +# no rules to generate ltmain.sh.
1.15448 +if test -f "$ltmain"; then
1.15449 + # See if we are running on zsh, and set the options which allow our commands through
1.15450 + # without removal of \ escapes.
1.15451 + if test -n "${ZSH_VERSION+set}" ; then
1.15452 + setopt NO_GLOB_SUBST
1.15453 + fi
1.15454 + # Now quote all the things that may contain metacharacters while being
1.15455 + # careful not to overquote the AC_SUBSTed values. We take copies of the
1.15456 + # variables and quote the copies for generation of the libtool script.
1.15457 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.15458 + SED SHELL STRIP \
1.15459 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.15460 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.15461 + deplibs_check_method reload_flag reload_cmds need_locks \
1.15462 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.15463 + lt_cv_sys_global_symbol_to_c_name_address \
1.15464 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.15465 + old_postinstall_cmds old_postuninstall_cmds \
1.15466 + compiler_F77 \
1.15467 + CC_F77 \
1.15468 + LD_F77 \
1.15469 + lt_prog_compiler_wl_F77 \
1.15470 + lt_prog_compiler_pic_F77 \
1.15471 + lt_prog_compiler_static_F77 \
1.15472 + lt_prog_compiler_no_builtin_flag_F77 \
1.15473 + export_dynamic_flag_spec_F77 \
1.15474 + thread_safe_flag_spec_F77 \
1.15475 + whole_archive_flag_spec_F77 \
1.15476 + enable_shared_with_static_runtimes_F77 \
1.15477 + old_archive_cmds_F77 \
1.15478 + old_archive_from_new_cmds_F77 \
1.15479 + predep_objects_F77 \
1.15480 + postdep_objects_F77 \
1.15481 + predeps_F77 \
1.15482 + postdeps_F77 \
1.15483 + compiler_lib_search_path_F77 \
1.15484 + archive_cmds_F77 \
1.15485 + archive_expsym_cmds_F77 \
1.15486 + postinstall_cmds_F77 \
1.15487 + postuninstall_cmds_F77 \
1.15488 + old_archive_from_expsyms_cmds_F77 \
1.15489 + allow_undefined_flag_F77 \
1.15490 + no_undefined_flag_F77 \
1.15491 + export_symbols_cmds_F77 \
1.15492 + hardcode_libdir_flag_spec_F77 \
1.15493 + hardcode_libdir_flag_spec_ld_F77 \
1.15494 + hardcode_libdir_separator_F77 \
1.15495 + hardcode_automatic_F77 \
1.15496 + module_cmds_F77 \
1.15497 + module_expsym_cmds_F77 \
1.15498 + lt_cv_prog_compiler_c_o_F77 \
1.15499 + exclude_expsyms_F77 \
1.15500 + include_expsyms_F77; do
1.15501 +
1.15502 + case $var in
1.15503 + old_archive_cmds_F77 | \
1.15504 + old_archive_from_new_cmds_F77 | \
1.15505 + archive_cmds_F77 | \
1.15506 + archive_expsym_cmds_F77 | \
1.15507 + module_cmds_F77 | \
1.15508 + module_expsym_cmds_F77 | \
1.15509 + old_archive_from_expsyms_cmds_F77 | \
1.15510 + export_symbols_cmds_F77 | \
1.15511 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.15512 + postinstall_cmds | postuninstall_cmds | \
1.15513 + old_postinstall_cmds | old_postuninstall_cmds | \
1.15514 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.15515 + # Double-quote double-evaled strings.
1.15516 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.15517 + ;;
1.15518 + *)
1.15519 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.15520 + ;;
1.15521 + esac
1.15522 + done
1.15523 +
1.15524 + case $lt_echo in
1.15525 + *'\$0 --fallback-echo"')
1.15526 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1.15527 + ;;
1.15528 + esac
1.15529 +
1.15530 +cfgfile="$ofile"
1.15531 +
1.15532 + cat <<__EOF__ >> "$cfgfile"
1.15533 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.15534 +
1.15535 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.15536 +
1.15537 +# Shell to use when invoking shell scripts.
1.15538 +SHELL=$lt_SHELL
1.15539 +
1.15540 +# Whether or not to build shared libraries.
1.15541 +build_libtool_libs=$enable_shared
1.15542 +
1.15543 +# Whether or not to build static libraries.
1.15544 +build_old_libs=$enable_static
1.15545 +
1.15546 +# Whether or not to add -lc for building shared libraries.
1.15547 +build_libtool_need_lc=$archive_cmds_need_lc_F77
1.15548 +
1.15549 +# Whether or not to disallow shared libs when runtime libs are static
1.15550 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
1.15551 +
1.15552 +# Whether or not to optimize for fast installation.
1.15553 +fast_install=$enable_fast_install
1.15554 +
1.15555 +# The host system.
1.15556 +host_alias=$host_alias
1.15557 +host=$host
1.15558 +host_os=$host_os
1.15559 +
1.15560 +# The build system.
1.15561 +build_alias=$build_alias
1.15562 +build=$build
1.15563 +build_os=$build_os
1.15564 +
1.15565 +# An echo program that does not interpret backslashes.
1.15566 +echo=$lt_echo
1.15567 +
1.15568 +# The archiver.
1.15569 +AR=$lt_AR
1.15570 +AR_FLAGS=$lt_AR_FLAGS
1.15571 +
1.15572 +# A C compiler.
1.15573 +LTCC=$lt_LTCC
1.15574 +
1.15575 +# A language-specific compiler.
1.15576 +CC=$lt_compiler_F77
1.15577 +
1.15578 +# Is the compiler the GNU C compiler?
1.15579 +with_gcc=$GCC_F77
1.15580 +
1.15581 +# An ERE matcher.
1.15582 +EGREP=$lt_EGREP
1.15583 +
1.15584 +# The linker used to build libraries.
1.15585 +LD=$lt_LD_F77
1.15586 +
1.15587 +# Whether we need hard or soft links.
1.15588 +LN_S=$lt_LN_S
1.15589 +
1.15590 +# A BSD-compatible nm program.
1.15591 +NM=$lt_NM
1.15592 +
1.15593 +# A symbol stripping program
1.15594 +STRIP=$lt_STRIP
1.15595 +
1.15596 +# Used to examine libraries when file_magic_cmd begins "file"
1.15597 +MAGIC_CMD=$MAGIC_CMD
1.15598 +
1.15599 +# Used on cygwin: DLL creation program.
1.15600 +DLLTOOL="$DLLTOOL"
1.15601 +
1.15602 +# Used on cygwin: object dumper.
1.15603 +OBJDUMP="$OBJDUMP"
1.15604 +
1.15605 +# Used on cygwin: assembler.
1.15606 +AS="$AS"
1.15607 +
1.15608 +# The name of the directory that contains temporary libtool files.
1.15609 +objdir=$objdir
1.15610 +
1.15611 +# How to create reloadable object files.
1.15612 +reload_flag=$lt_reload_flag
1.15613 +reload_cmds=$lt_reload_cmds
1.15614 +
1.15615 +# How to pass a linker flag through the compiler.
1.15616 +wl=$lt_lt_prog_compiler_wl_F77
1.15617 +
1.15618 +# Object file suffix (normally "o").
1.15619 +objext="$ac_objext"
1.15620 +
1.15621 +# Old archive suffix (normally "a").
1.15622 +libext="$libext"
1.15623 +
1.15624 +# Shared library suffix (normally ".so").
1.15625 +shrext_cmds='$shrext_cmds'
1.15626 +
1.15627 +# Executable file suffix (normally "").
1.15628 +exeext="$exeext"
1.15629 +
1.15630 +# Additional compiler flags for building library objects.
1.15631 +pic_flag=$lt_lt_prog_compiler_pic_F77
1.15632 +pic_mode=$pic_mode
1.15633 +
1.15634 +# What is the maximum length of a command?
1.15635 +max_cmd_len=$lt_cv_sys_max_cmd_len
1.15636 +
1.15637 +# Does compiler simultaneously support -c and -o options?
1.15638 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
1.15639 +
1.15640 +# Must we lock files when doing compilation?
1.15641 +need_locks=$lt_need_locks
1.15642 +
1.15643 +# Do we need the lib prefix for modules?
1.15644 +need_lib_prefix=$need_lib_prefix
1.15645 +
1.15646 +# Do we need a version for libraries?
1.15647 +need_version=$need_version
1.15648 +
1.15649 +# Whether dlopen is supported.
1.15650 +dlopen_support=$enable_dlopen
1.15651 +
1.15652 +# Whether dlopen of programs is supported.
1.15653 +dlopen_self=$enable_dlopen_self
1.15654 +
1.15655 +# Whether dlopen of statically linked programs is supported.
1.15656 +dlopen_self_static=$enable_dlopen_self_static
1.15657 +
1.15658 +# Compiler flag to prevent dynamic linking.
1.15659 +link_static_flag=$lt_lt_prog_compiler_static_F77
1.15660 +
1.15661 +# Compiler flag to turn off builtin functions.
1.15662 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
1.15663 +
1.15664 +# Compiler flag to allow reflexive dlopens.
1.15665 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
1.15666 +
1.15667 +# Compiler flag to generate shared objects directly from archives.
1.15668 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
1.15669 +
1.15670 +# Compiler flag to generate thread-safe objects.
1.15671 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
1.15672 +
1.15673 +# Library versioning type.
1.15674 +version_type=$version_type
1.15675 +
1.15676 +# Format of library name prefix.
1.15677 +libname_spec=$lt_libname_spec
1.15678 +
1.15679 +# List of archive names. First name is the real one, the rest are links.
1.15680 +# The last name is the one that the linker finds with -lNAME.
1.15681 +library_names_spec=$lt_library_names_spec
1.15682 +
1.15683 +# The coded name of the library, if different from the real name.
1.15684 +soname_spec=$lt_soname_spec
1.15685 +
1.15686 +# Commands used to build and install an old-style archive.
1.15687 +RANLIB=$lt_RANLIB
1.15688 +old_archive_cmds=$lt_old_archive_cmds_F77
1.15689 +old_postinstall_cmds=$lt_old_postinstall_cmds
1.15690 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.15691 +
1.15692 +# Create an old-style archive from a shared archive.
1.15693 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
1.15694 +
1.15695 +# Create a temporary old-style archive to link instead of a shared archive.
1.15696 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
1.15697 +
1.15698 +# Commands used to build and install a shared archive.
1.15699 +archive_cmds=$lt_archive_cmds_F77
1.15700 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
1.15701 +postinstall_cmds=$lt_postinstall_cmds
1.15702 +postuninstall_cmds=$lt_postuninstall_cmds
1.15703 +
1.15704 +# Commands used to build a loadable module (assumed same as above if empty)
1.15705 +module_cmds=$lt_module_cmds_F77
1.15706 +module_expsym_cmds=$lt_module_expsym_cmds_F77
1.15707 +
1.15708 +# Commands to strip libraries.
1.15709 +old_striplib=$lt_old_striplib
1.15710 +striplib=$lt_striplib
1.15711 +
1.15712 +# Dependencies to place before the objects being linked to create a
1.15713 +# shared library.
1.15714 +predep_objects=$lt_predep_objects_F77
1.15715 +
1.15716 +# Dependencies to place after the objects being linked to create a
1.15717 +# shared library.
1.15718 +postdep_objects=$lt_postdep_objects_F77
1.15719 +
1.15720 +# Dependencies to place before the objects being linked to create a
1.15721 +# shared library.
1.15722 +predeps=$lt_predeps_F77
1.15723 +
1.15724 +# Dependencies to place after the objects being linked to create a
1.15725 +# shared library.
1.15726 +postdeps=$lt_postdeps_F77
1.15727 +
1.15728 +# The library search path used internally by the compiler when linking
1.15729 +# a shared library.
1.15730 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
1.15731 +
1.15732 +# Method to check whether dependent libraries are shared objects.
1.15733 +deplibs_check_method=$lt_deplibs_check_method
1.15734 +
1.15735 +# Command to use when deplibs_check_method == file_magic.
1.15736 +file_magic_cmd=$lt_file_magic_cmd
1.15737 +
1.15738 +# Flag that allows shared libraries with undefined symbols to be built.
1.15739 +allow_undefined_flag=$lt_allow_undefined_flag_F77
1.15740 +
1.15741 +# Flag that forces no undefined symbols.
1.15742 +no_undefined_flag=$lt_no_undefined_flag_F77
1.15743 +
1.15744 +# Commands used to finish a libtool library installation in a directory.
1.15745 +finish_cmds=$lt_finish_cmds
1.15746 +
1.15747 +# Same as above, but a single script fragment to be evaled but not shown.
1.15748 +finish_eval=$lt_finish_eval
1.15749 +
1.15750 +# Take the output of nm and produce a listing of raw symbols and C names.
1.15751 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.15752 +
1.15753 +# Transform the output of nm in a proper C declaration
1.15754 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.15755 +
1.15756 +# Transform the output of nm in a C name address pair
1.15757 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.15758 +
1.15759 +# This is the shared library runtime path variable.
1.15760 +runpath_var=$runpath_var
1.15761 +
1.15762 +# This is the shared library path variable.
1.15763 +shlibpath_var=$shlibpath_var
1.15764 +
1.15765 +# Is shlibpath searched before the hard-coded library search path?
1.15766 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.15767 +
1.15768 +# How to hardcode a shared library path into an executable.
1.15769 +hardcode_action=$hardcode_action_F77
1.15770 +
1.15771 +# Whether we should hardcode library paths into libraries.
1.15772 +hardcode_into_libs=$hardcode_into_libs
1.15773 +
1.15774 +# Flag to hardcode \$libdir into a binary during linking.
1.15775 +# This must work even if \$libdir does not exist.
1.15776 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
1.15777 +
1.15778 +# If ld is used when linking, flag to hardcode \$libdir into
1.15779 +# a binary during linking. This must work even if \$libdir does
1.15780 +# not exist.
1.15781 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
1.15782 +
1.15783 +# Whether we need a single -rpath flag with a separated argument.
1.15784 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
1.15785 +
1.15786 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.15787 +# resulting binary.
1.15788 +hardcode_direct=$hardcode_direct_F77
1.15789 +
1.15790 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.15791 +# resulting binary.
1.15792 +hardcode_minus_L=$hardcode_minus_L_F77
1.15793 +
1.15794 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.15795 +# the resulting binary.
1.15796 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
1.15797 +
1.15798 +# Set to yes if building a shared library automatically hardcodes DIR into the library
1.15799 +# and all subsequent libraries and executables linked against it.
1.15800 +hardcode_automatic=$hardcode_automatic_F77
1.15801 +
1.15802 +# Variables whose values should be saved in libtool wrapper scripts and
1.15803 +# restored at relink time.
1.15804 +variables_saved_for_relink="$variables_saved_for_relink"
1.15805 +
1.15806 +# Whether libtool must link a program against all its dependency libraries.
1.15807 +link_all_deplibs=$link_all_deplibs_F77
1.15808 +
1.15809 +# Compile-time system search path for libraries
1.15810 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.15811 +
1.15812 +# Run-time system search path for libraries
1.15813 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.15814 +
1.15815 +# Fix the shell variable \$srcfile for the compiler.
1.15816 +fix_srcfile_path="$fix_srcfile_path_F77"
1.15817 +
1.15818 +# Set to yes if exported symbols are required.
1.15819 +always_export_symbols=$always_export_symbols_F77
1.15820 +
1.15821 +# The commands to list exported symbols.
1.15822 +export_symbols_cmds=$lt_export_symbols_cmds_F77
1.15823 +
1.15824 +# The commands to extract the exported symbol list from a shared archive.
1.15825 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.15826 +
1.15827 +# Symbols that should not be listed in the preloaded symbols.
1.15828 +exclude_expsyms=$lt_exclude_expsyms_F77
1.15829 +
1.15830 +# Symbols that must always be exported.
1.15831 +include_expsyms=$lt_include_expsyms_F77
1.15832 +
1.15833 +# ### END LIBTOOL TAG CONFIG: $tagname
1.15834 +
1.15835 +__EOF__
1.15836 +
1.15837 +
1.15838 +else
1.15839 + # If there is no Makefile yet, we rely on a make rule to execute
1.15840 + # `config.status --recheck' to rerun these tests and create the
1.15841 + # libtool script then.
1.15842 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.15843 + if test -f "$ltmain_in"; then
1.15844 + test -f Makefile && make "$ltmain"
1.15845 + fi
1.15846 +fi
1.15847 +
1.15848 +
1.15849 +ac_ext=c
1.15850 +ac_cpp='$CPP $CPPFLAGS'
1.15851 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.15852 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.15853 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.15854 +
1.15855 +CC="$lt_save_CC"
1.15856 +
1.15857 + else
1.15858 + tagname=""
1.15859 + fi
1.15860 + ;;
1.15861 +
1.15862 + GCJ)
1.15863 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1.15864 +
1.15865 +
1.15866 +
1.15867 +# Source file extension for Java test sources.
1.15868 +ac_ext=java
1.15869 +
1.15870 +# Object file extension for compiled Java test sources.
1.15871 +objext=o
1.15872 +objext_GCJ=$objext
1.15873 +
1.15874 +# Code to be used in simple compile tests
1.15875 +lt_simple_compile_test_code="class foo {}\n"
1.15876 +
1.15877 +# Code to be used in simple link tests
1.15878 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
1.15879 +
1.15880 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.15881 +
1.15882 +# If no C compiler was specified, use CC.
1.15883 +LTCC=${LTCC-"$CC"}
1.15884 +
1.15885 +# Allow CC to be a program name with arguments.
1.15886 +compiler=$CC
1.15887 +
1.15888 +
1.15889 +# save warnings/boilerplate of simple test code
1.15890 +ac_outfile=conftest.$ac_objext
1.15891 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.15892 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.15893 +_lt_compiler_boilerplate=`cat conftest.err`
1.15894 +$rm conftest*
1.15895 +
1.15896 +ac_outfile=conftest.$ac_objext
1.15897 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.15898 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.15899 +_lt_linker_boilerplate=`cat conftest.err`
1.15900 +$rm conftest*
1.15901 +
1.15902 +
1.15903 +# Allow CC to be a program name with arguments.
1.15904 +lt_save_CC="$CC"
1.15905 +CC=${GCJ-"gcj"}
1.15906 +compiler=$CC
1.15907 +compiler_GCJ=$CC
1.15908 +for cc_temp in $compiler""; do
1.15909 + case $cc_temp in
1.15910 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.15911 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.15912 + \-*) ;;
1.15913 + *) break;;
1.15914 + esac
1.15915 +done
1.15916 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.15917 +
1.15918 +
1.15919 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
1.15920 +archive_cmds_need_lc_GCJ=no
1.15921 +
1.15922 +old_archive_cmds_GCJ=$old_archive_cmds
1.15923 +
1.15924 +
1.15925 +lt_prog_compiler_no_builtin_flag_GCJ=
1.15926 +
1.15927 +if test "$GCC" = yes; then
1.15928 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
1.15929 +
1.15930 +
1.15931 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
1.15932 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
1.15933 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
1.15934 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.15935 +else
1.15936 + lt_cv_prog_compiler_rtti_exceptions=no
1.15937 + ac_outfile=conftest.$ac_objext
1.15938 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.15939 + lt_compiler_flag="-fno-rtti -fno-exceptions"
1.15940 + # Insert the option either (1) after the last *FLAGS variable, or
1.15941 + # (2) before a word containing "conftest.", or (3) at the end.
1.15942 + # Note that $ac_compile itself does not contain backslashes and begins
1.15943 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.15944 + # The option is referenced via a variable to avoid confusing sed.
1.15945 + lt_compile=`echo "$ac_compile" | $SED \
1.15946 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.15947 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.15948 + -e 's:$: $lt_compiler_flag:'`
1.15949 + (eval echo "\"\$as_me:15946: $lt_compile\"" >&5)
1.15950 + (eval "$lt_compile" 2>conftest.err)
1.15951 + ac_status=$?
1.15952 + cat conftest.err >&5
1.15953 + echo "$as_me:15950: \$? = $ac_status" >&5
1.15954 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.15955 + # The compiler can only warn and ignore the option if not recognized
1.15956 + # So say no if there are warnings other than the usual output.
1.15957 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.15958 + $SED '/^$/d' conftest.err >conftest.er2
1.15959 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.15960 + lt_cv_prog_compiler_rtti_exceptions=yes
1.15961 + fi
1.15962 + fi
1.15963 + $rm conftest*
1.15964 +
1.15965 +fi
1.15966 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
1.15967 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1.15968 +
1.15969 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
1.15970 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
1.15971 +else
1.15972 + :
1.15973 +fi
1.15974 +
1.15975 +fi
1.15976 +
1.15977 +lt_prog_compiler_wl_GCJ=
1.15978 +lt_prog_compiler_pic_GCJ=
1.15979 +lt_prog_compiler_static_GCJ=
1.15980 +
1.15981 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
1.15982 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1.15983 +
1.15984 + if test "$GCC" = yes; then
1.15985 + lt_prog_compiler_wl_GCJ='-Wl,'
1.15986 + lt_prog_compiler_static_GCJ='-static'
1.15987 +
1.15988 + case $host_os in
1.15989 + aix*)
1.15990 + # All AIX code is PIC.
1.15991 + if test "$host_cpu" = ia64; then
1.15992 + # AIX 5 now supports IA64 processor
1.15993 + lt_prog_compiler_static_GCJ='-Bstatic'
1.15994 + fi
1.15995 + ;;
1.15996 +
1.15997 + amigaos*)
1.15998 + # FIXME: we need at least 68020 code to build shared libraries, but
1.15999 + # adding the `-m68020' flag to GCC prevents building anything better,
1.16000 + # like `-m68040'.
1.16001 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
1.16002 + ;;
1.16003 +
1.16004 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
1.16005 + # PIC is the default for these OSes.
1.16006 + ;;
1.16007 +
1.16008 + mingw* | pw32* | os2*)
1.16009 + # This hack is so that the source file can tell whether it is being
1.16010 + # built for inclusion in a dll (and should export symbols for example).
1.16011 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
1.16012 + ;;
1.16013 +
1.16014 + darwin* | rhapsody*)
1.16015 + # PIC is the default on this platform
1.16016 + # Common symbols not allowed in MH_DYLIB files
1.16017 + lt_prog_compiler_pic_GCJ='-fno-common'
1.16018 + ;;
1.16019 +
1.16020 + msdosdjgpp*)
1.16021 + # Just because we use GCC doesn't mean we suddenly get shared libraries
1.16022 + # on systems that don't support them.
1.16023 + lt_prog_compiler_can_build_shared_GCJ=no
1.16024 + enable_shared=no
1.16025 + ;;
1.16026 +
1.16027 + sysv4*MP*)
1.16028 + if test -d /usr/nec; then
1.16029 + lt_prog_compiler_pic_GCJ=-Kconform_pic
1.16030 + fi
1.16031 + ;;
1.16032 +
1.16033 + hpux*)
1.16034 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.16035 + # not for PA HP-UX.
1.16036 + case $host_cpu in
1.16037 + hppa*64*|ia64*)
1.16038 + # +Z the default
1.16039 + ;;
1.16040 + *)
1.16041 + lt_prog_compiler_pic_GCJ='-fPIC'
1.16042 + ;;
1.16043 + esac
1.16044 + ;;
1.16045 +
1.16046 + *)
1.16047 + lt_prog_compiler_pic_GCJ='-fPIC'
1.16048 + ;;
1.16049 + esac
1.16050 + else
1.16051 + # PORTME Check for flag to pass linker flags through the system compiler.
1.16052 + case $host_os in
1.16053 + aix*)
1.16054 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16055 + if test "$host_cpu" = ia64; then
1.16056 + # AIX 5 now supports IA64 processor
1.16057 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16058 + else
1.16059 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
1.16060 + fi
1.16061 + ;;
1.16062 + darwin*)
1.16063 + # PIC is the default on this platform
1.16064 + # Common symbols not allowed in MH_DYLIB files
1.16065 + case $cc_basename in
1.16066 + xlc*)
1.16067 + lt_prog_compiler_pic_GCJ='-qnocommon'
1.16068 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16069 + ;;
1.16070 + esac
1.16071 + ;;
1.16072 +
1.16073 + mingw* | pw32* | os2*)
1.16074 + # This hack is so that the source file can tell whether it is being
1.16075 + # built for inclusion in a dll (and should export symbols for example).
1.16076 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
1.16077 + ;;
1.16078 +
1.16079 + hpux9* | hpux10* | hpux11*)
1.16080 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16081 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
1.16082 + # not for PA HP-UX.
1.16083 + case $host_cpu in
1.16084 + hppa*64*|ia64*)
1.16085 + # +Z the default
1.16086 + ;;
1.16087 + *)
1.16088 + lt_prog_compiler_pic_GCJ='+Z'
1.16089 + ;;
1.16090 + esac
1.16091 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
1.16092 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
1.16093 + ;;
1.16094 +
1.16095 + irix5* | irix6* | nonstopux*)
1.16096 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16097 + # PIC (with -KPIC) is the default.
1.16098 + lt_prog_compiler_static_GCJ='-non_shared'
1.16099 + ;;
1.16100 +
1.16101 + newsos6)
1.16102 + lt_prog_compiler_pic_GCJ='-KPIC'
1.16103 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16104 + ;;
1.16105 +
1.16106 + linux*)
1.16107 + case $cc_basename in
1.16108 + icc* | ecc*)
1.16109 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16110 + lt_prog_compiler_pic_GCJ='-KPIC'
1.16111 + lt_prog_compiler_static_GCJ='-static'
1.16112 + ;;
1.16113 + pgcc* | pgf77* | pgf90* | pgf95*)
1.16114 + # Portland Group compilers (*not* the Pentium gcc compiler,
1.16115 + # which looks to be a dead project)
1.16116 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16117 + lt_prog_compiler_pic_GCJ='-fpic'
1.16118 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16119 + ;;
1.16120 + ccc*)
1.16121 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16122 + # All Alpha code is PIC.
1.16123 + lt_prog_compiler_static_GCJ='-non_shared'
1.16124 + ;;
1.16125 + esac
1.16126 + ;;
1.16127 +
1.16128 + osf3* | osf4* | osf5*)
1.16129 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16130 + # All OSF/1 code is PIC.
1.16131 + lt_prog_compiler_static_GCJ='-non_shared'
1.16132 + ;;
1.16133 +
1.16134 + sco3.2v5*)
1.16135 + lt_prog_compiler_pic_GCJ='-Kpic'
1.16136 + lt_prog_compiler_static_GCJ='-dn'
1.16137 + ;;
1.16138 +
1.16139 + solaris*)
1.16140 + lt_prog_compiler_pic_GCJ='-KPIC'
1.16141 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16142 + case $cc_basename in
1.16143 + f77* | f90* | f95*)
1.16144 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
1.16145 + *)
1.16146 + lt_prog_compiler_wl_GCJ='-Wl,';;
1.16147 + esac
1.16148 + ;;
1.16149 +
1.16150 + sunos4*)
1.16151 + lt_prog_compiler_wl_GCJ='-Qoption ld '
1.16152 + lt_prog_compiler_pic_GCJ='-PIC'
1.16153 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16154 + ;;
1.16155 +
1.16156 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.16157 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16158 + lt_prog_compiler_pic_GCJ='-KPIC'
1.16159 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16160 + ;;
1.16161 +
1.16162 + sysv4*MP*)
1.16163 + if test -d /usr/nec ;then
1.16164 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
1.16165 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16166 + fi
1.16167 + ;;
1.16168 +
1.16169 + unicos*)
1.16170 + lt_prog_compiler_wl_GCJ='-Wl,'
1.16171 + lt_prog_compiler_can_build_shared_GCJ=no
1.16172 + ;;
1.16173 +
1.16174 + uts4*)
1.16175 + lt_prog_compiler_pic_GCJ='-pic'
1.16176 + lt_prog_compiler_static_GCJ='-Bstatic'
1.16177 + ;;
1.16178 +
1.16179 + *)
1.16180 + lt_prog_compiler_can_build_shared_GCJ=no
1.16181 + ;;
1.16182 + esac
1.16183 + fi
1.16184 +
1.16185 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
1.16186 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
1.16187 +
1.16188 +#
1.16189 +# Check to make sure the PIC flag actually works.
1.16190 +#
1.16191 +if test -n "$lt_prog_compiler_pic_GCJ"; then
1.16192 +
1.16193 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
1.16194 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
1.16195 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
1.16196 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.16197 +else
1.16198 + lt_prog_compiler_pic_works_GCJ=no
1.16199 + ac_outfile=conftest.$ac_objext
1.16200 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.16201 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
1.16202 + # Insert the option either (1) after the last *FLAGS variable, or
1.16203 + # (2) before a word containing "conftest.", or (3) at the end.
1.16204 + # Note that $ac_compile itself does not contain backslashes and begins
1.16205 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.16206 + # The option is referenced via a variable to avoid confusing sed.
1.16207 + lt_compile=`echo "$ac_compile" | $SED \
1.16208 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.16209 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.16210 + -e 's:$: $lt_compiler_flag:'`
1.16211 + (eval echo "\"\$as_me:16208: $lt_compile\"" >&5)
1.16212 + (eval "$lt_compile" 2>conftest.err)
1.16213 + ac_status=$?
1.16214 + cat conftest.err >&5
1.16215 + echo "$as_me:16212: \$? = $ac_status" >&5
1.16216 + if (exit $ac_status) && test -s "$ac_outfile"; then
1.16217 + # The compiler can only warn and ignore the option if not recognized
1.16218 + # So say no if there are warnings other than the usual output.
1.16219 + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
1.16220 + $SED '/^$/d' conftest.err >conftest.er2
1.16221 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
1.16222 + lt_prog_compiler_pic_works_GCJ=yes
1.16223 + fi
1.16224 + fi
1.16225 + $rm conftest*
1.16226 +
1.16227 +fi
1.16228 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
1.16229 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
1.16230 +
1.16231 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
1.16232 + case $lt_prog_compiler_pic_GCJ in
1.16233 + "" | " "*) ;;
1.16234 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
1.16235 + esac
1.16236 +else
1.16237 + lt_prog_compiler_pic_GCJ=
1.16238 + lt_prog_compiler_can_build_shared_GCJ=no
1.16239 +fi
1.16240 +
1.16241 +fi
1.16242 +case $host_os in
1.16243 + # For platforms which do not support PIC, -DPIC is meaningless:
1.16244 + *djgpp*)
1.16245 + lt_prog_compiler_pic_GCJ=
1.16246 + ;;
1.16247 + *)
1.16248 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
1.16249 + ;;
1.16250 +esac
1.16251 +
1.16252 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
1.16253 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1.16254 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
1.16255 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.16256 +else
1.16257 + lt_cv_prog_compiler_c_o_GCJ=no
1.16258 + $rm -r conftest 2>/dev/null
1.16259 + mkdir conftest
1.16260 + cd conftest
1.16261 + mkdir out
1.16262 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.16263 +
1.16264 + lt_compiler_flag="-o out/conftest2.$ac_objext"
1.16265 + # Insert the option either (1) after the last *FLAGS variable, or
1.16266 + # (2) before a word containing "conftest.", or (3) at the end.
1.16267 + # Note that $ac_compile itself does not contain backslashes and begins
1.16268 + # with a dollar sign (not a hyphen), so the echo should work correctly.
1.16269 + lt_compile=`echo "$ac_compile" | $SED \
1.16270 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1.16271 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
1.16272 + -e 's:$: $lt_compiler_flag:'`
1.16273 + (eval echo "\"\$as_me:16270: $lt_compile\"" >&5)
1.16274 + (eval "$lt_compile" 2>out/conftest.err)
1.16275 + ac_status=$?
1.16276 + cat out/conftest.err >&5
1.16277 + echo "$as_me:16274: \$? = $ac_status" >&5
1.16278 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
1.16279 + then
1.16280 + # The compiler can only warn and ignore the option if not recognized
1.16281 + # So say no if there are warnings
1.16282 + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1.16283 + $SED '/^$/d' out/conftest.err >out/conftest.er2
1.16284 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1.16285 + lt_cv_prog_compiler_c_o_GCJ=yes
1.16286 + fi
1.16287 + fi
1.16288 + chmod u+w . 2>&5
1.16289 + $rm conftest*
1.16290 + # SGI C++ compiler will create directory out/ii_files/ for
1.16291 + # template instantiation
1.16292 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1.16293 + $rm out/* && rmdir out
1.16294 + cd ..
1.16295 + rmdir conftest
1.16296 + $rm conftest*
1.16297 +
1.16298 +fi
1.16299 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
1.16300 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
1.16301 +
1.16302 +
1.16303 +hard_links="nottested"
1.16304 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
1.16305 + # do not overwrite the value of need_locks provided by the user
1.16306 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
1.16307 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1.16308 + hard_links=yes
1.16309 + $rm conftest*
1.16310 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.16311 + touch conftest.a
1.16312 + ln conftest.a conftest.b 2>&5 || hard_links=no
1.16313 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
1.16314 + echo "$as_me:$LINENO: result: $hard_links" >&5
1.16315 +echo "${ECHO_T}$hard_links" >&6
1.16316 + if test "$hard_links" = no; then
1.16317 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
1.16318 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
1.16319 + need_locks=warn
1.16320 + fi
1.16321 +else
1.16322 + need_locks=no
1.16323 +fi
1.16324 +
1.16325 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
1.16326 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1.16327 +
1.16328 + runpath_var=
1.16329 + allow_undefined_flag_GCJ=
1.16330 + enable_shared_with_static_runtimes_GCJ=no
1.16331 + archive_cmds_GCJ=
1.16332 + archive_expsym_cmds_GCJ=
1.16333 + old_archive_From_new_cmds_GCJ=
1.16334 + old_archive_from_expsyms_cmds_GCJ=
1.16335 + export_dynamic_flag_spec_GCJ=
1.16336 + whole_archive_flag_spec_GCJ=
1.16337 + thread_safe_flag_spec_GCJ=
1.16338 + hardcode_libdir_flag_spec_GCJ=
1.16339 + hardcode_libdir_flag_spec_ld_GCJ=
1.16340 + hardcode_libdir_separator_GCJ=
1.16341 + hardcode_direct_GCJ=no
1.16342 + hardcode_minus_L_GCJ=no
1.16343 + hardcode_shlibpath_var_GCJ=unsupported
1.16344 + link_all_deplibs_GCJ=unknown
1.16345 + hardcode_automatic_GCJ=no
1.16346 + module_cmds_GCJ=
1.16347 + module_expsym_cmds_GCJ=
1.16348 + always_export_symbols_GCJ=no
1.16349 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
1.16350 + # include_expsyms should be a list of space-separated symbols to be *always*
1.16351 + # included in the symbol list
1.16352 + include_expsyms_GCJ=
1.16353 + # exclude_expsyms can be an extended regexp of symbols to exclude
1.16354 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
1.16355 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
1.16356 + # as well as any symbol that contains `d'.
1.16357 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
1.16358 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
1.16359 + # platforms (ab)use it in PIC code, but their linkers get confused if
1.16360 + # the symbol is explicitly referenced. Since portable code cannot
1.16361 + # rely on this symbol name, it's probably fine to never include it in
1.16362 + # preloaded symbol tables.
1.16363 + extract_expsyms_cmds=
1.16364 + # Just being paranoid about ensuring that cc_basename is set.
1.16365 + for cc_temp in $compiler""; do
1.16366 + case $cc_temp in
1.16367 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.16368 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.16369 + \-*) ;;
1.16370 + *) break;;
1.16371 + esac
1.16372 +done
1.16373 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.16374 +
1.16375 + case $host_os in
1.16376 + cygwin* | mingw* | pw32*)
1.16377 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
1.16378 + # When not using gcc, we currently assume that we are using
1.16379 + # Microsoft Visual C++.
1.16380 + if test "$GCC" != yes; then
1.16381 + with_gnu_ld=no
1.16382 + fi
1.16383 + ;;
1.16384 + openbsd*)
1.16385 + with_gnu_ld=no
1.16386 + ;;
1.16387 + esac
1.16388 +
1.16389 + ld_shlibs_GCJ=yes
1.16390 + if test "$with_gnu_ld" = yes; then
1.16391 + # If archive_cmds runs LD, not CC, wlarc should be empty
1.16392 + wlarc='${wl}'
1.16393 +
1.16394 + # Set some defaults for GNU ld with shared library support. These
1.16395 + # are reset later if shared libraries are not supported. Putting them
1.16396 + # here allows them to be overridden if necessary.
1.16397 + runpath_var=LD_RUN_PATH
1.16398 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
1.16399 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
1.16400 + # ancient GNU ld didn't support --whole-archive et. al.
1.16401 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
1.16402 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
1.16403 + else
1.16404 + whole_archive_flag_spec_GCJ=
1.16405 + fi
1.16406 + supports_anon_versioning=no
1.16407 + case `$LD -v 2>/dev/null` in
1.16408 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
1.16409 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1.16410 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1.16411 + *\ 2.11.*) ;; # other 2.11 versions
1.16412 + *) supports_anon_versioning=yes ;;
1.16413 + esac
1.16414 +
1.16415 + # See if GNU ld supports shared libraries.
1.16416 + case $host_os in
1.16417 + aix3* | aix4* | aix5*)
1.16418 + # On AIX/PPC, the GNU linker is very broken
1.16419 + if test "$host_cpu" != ia64; then
1.16420 + ld_shlibs_GCJ=no
1.16421 + cat <<EOF 1>&2
1.16422 +
1.16423 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
1.16424 +*** to be unable to reliably create shared libraries on AIX.
1.16425 +*** Therefore, libtool is disabling shared libraries support. If you
1.16426 +*** really care for shared libraries, you may want to modify your PATH
1.16427 +*** so that a non-GNU linker is found, and then restart.
1.16428 +
1.16429 +EOF
1.16430 + fi
1.16431 + ;;
1.16432 +
1.16433 + amigaos*)
1.16434 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.16435 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16436 + hardcode_minus_L_GCJ=yes
1.16437 +
1.16438 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
1.16439 + # that the semantics of dynamic libraries on AmigaOS, at least up
1.16440 + # to version 4, is to share data among multiple programs linked
1.16441 + # with the same dynamic library. Since this doesn't match the
1.16442 + # behavior of shared libraries on other platforms, we can't use
1.16443 + # them.
1.16444 + ld_shlibs_GCJ=no
1.16445 + ;;
1.16446 +
1.16447 + beos*)
1.16448 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.16449 + allow_undefined_flag_GCJ=unsupported
1.16450 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
1.16451 + # support --undefined. This deserves some investigation. FIXME
1.16452 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.16453 + else
1.16454 + ld_shlibs_GCJ=no
1.16455 + fi
1.16456 + ;;
1.16457 +
1.16458 + cygwin* | mingw* | pw32*)
1.16459 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
1.16460 + # as there is no search path for DLLs.
1.16461 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16462 + allow_undefined_flag_GCJ=unsupported
1.16463 + always_export_symbols_GCJ=no
1.16464 + enable_shared_with_static_runtimes_GCJ=yes
1.16465 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
1.16466 +
1.16467 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
1.16468 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.16469 + # If the export-symbols file already is a .def file (1st line
1.16470 + # is EXPORTS), use it as is; otherwise, prepend...
1.16471 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
1.16472 + cp $export_symbols $output_objdir/$soname.def;
1.16473 + else
1.16474 + echo EXPORTS > $output_objdir/$soname.def;
1.16475 + cat $export_symbols >> $output_objdir/$soname.def;
1.16476 + fi~
1.16477 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
1.16478 + else
1.16479 + ld_shlibs_GCJ=no
1.16480 + fi
1.16481 + ;;
1.16482 +
1.16483 + linux*)
1.16484 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.16485 + tmp_addflag=
1.16486 + case $cc_basename,$host_cpu in
1.16487 + pgcc*) # Portland Group C compiler
1.16488 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.16489 + tmp_addflag=' $pic_flag'
1.16490 + ;;
1.16491 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
1.16492 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
1.16493 + tmp_addflag=' $pic_flag -Mnomain' ;;
1.16494 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
1.16495 + tmp_addflag=' -i_dynamic' ;;
1.16496 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
1.16497 + tmp_addflag=' -i_dynamic -nofor_main' ;;
1.16498 + ifc* | ifort*) # Intel Fortran compiler
1.16499 + tmp_addflag=' -nofor_main' ;;
1.16500 + esac
1.16501 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.16502 +
1.16503 + if test $supports_anon_versioning = yes; then
1.16504 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
1.16505 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1.16506 + $echo "local: *; };" >> $output_objdir/$libname.ver~
1.16507 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1.16508 + fi
1.16509 + else
1.16510 + ld_shlibs_GCJ=no
1.16511 + fi
1.16512 + ;;
1.16513 +
1.16514 + netbsd*)
1.16515 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.16516 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
1.16517 + wlarc=
1.16518 + else
1.16519 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.16520 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.16521 + fi
1.16522 + ;;
1.16523 +
1.16524 + solaris* | sysv5*)
1.16525 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
1.16526 + ld_shlibs_GCJ=no
1.16527 + cat <<EOF 1>&2
1.16528 +
1.16529 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
1.16530 +*** create shared libraries on Solaris systems. Therefore, libtool
1.16531 +*** is disabling shared libraries support. We urge you to upgrade GNU
1.16532 +*** binutils to release 2.9.1 or newer. Another option is to modify
1.16533 +*** your PATH or compiler configuration so that the native linker is
1.16534 +*** used, and then restart.
1.16535 +
1.16536 +EOF
1.16537 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.16538 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.16539 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.16540 + else
1.16541 + ld_shlibs_GCJ=no
1.16542 + fi
1.16543 + ;;
1.16544 +
1.16545 + sunos4*)
1.16546 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.16547 + wlarc=
1.16548 + hardcode_direct_GCJ=yes
1.16549 + hardcode_shlibpath_var_GCJ=no
1.16550 + ;;
1.16551 +
1.16552 + *)
1.16553 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
1.16554 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.16555 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
1.16556 + else
1.16557 + ld_shlibs_GCJ=no
1.16558 + fi
1.16559 + ;;
1.16560 + esac
1.16561 +
1.16562 + if test "$ld_shlibs_GCJ" = no; then
1.16563 + runpath_var=
1.16564 + hardcode_libdir_flag_spec_GCJ=
1.16565 + export_dynamic_flag_spec_GCJ=
1.16566 + whole_archive_flag_spec_GCJ=
1.16567 + fi
1.16568 + else
1.16569 + # PORTME fill in a description of your system's linker (not GNU ld)
1.16570 + case $host_os in
1.16571 + aix3*)
1.16572 + allow_undefined_flag_GCJ=unsupported
1.16573 + always_export_symbols_GCJ=yes
1.16574 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
1.16575 + # Note: this linker hardcodes the directories in LIBPATH if there
1.16576 + # are no directories specified by -L.
1.16577 + hardcode_minus_L_GCJ=yes
1.16578 + if test "$GCC" = yes && test -z "$link_static_flag"; then
1.16579 + # Neither direct hardcoding nor static linking is supported with a
1.16580 + # broken collect2.
1.16581 + hardcode_direct_GCJ=unsupported
1.16582 + fi
1.16583 + ;;
1.16584 +
1.16585 + aix4* | aix5*)
1.16586 + if test "$host_cpu" = ia64; then
1.16587 + # On IA64, the linker does run time linking by default, so we don't
1.16588 + # have to do anything special.
1.16589 + aix_use_runtimelinking=no
1.16590 + exp_sym_flag='-Bexport'
1.16591 + no_entry_flag=""
1.16592 + else
1.16593 + # If we're using GNU nm, then we don't want the "-C" option.
1.16594 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
1.16595 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
1.16596 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.16597 + else
1.16598 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
1.16599 + fi
1.16600 + aix_use_runtimelinking=no
1.16601 +
1.16602 + # Test if we are trying to use run time linking or normal
1.16603 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
1.16604 + # need to do runtime linking.
1.16605 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
1.16606 + for ld_flag in $LDFLAGS; do
1.16607 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
1.16608 + aix_use_runtimelinking=yes
1.16609 + break
1.16610 + fi
1.16611 + done
1.16612 + esac
1.16613 +
1.16614 + exp_sym_flag='-bexport'
1.16615 + no_entry_flag='-bnoentry'
1.16616 + fi
1.16617 +
1.16618 + # When large executables or shared objects are built, AIX ld can
1.16619 + # have problems creating the table of contents. If linking a library
1.16620 + # or program results in "error TOC overflow" add -mminimal-toc to
1.16621 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
1.16622 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
1.16623 +
1.16624 + archive_cmds_GCJ=''
1.16625 + hardcode_direct_GCJ=yes
1.16626 + hardcode_libdir_separator_GCJ=':'
1.16627 + link_all_deplibs_GCJ=yes
1.16628 +
1.16629 + if test "$GCC" = yes; then
1.16630 + case $host_os in aix4.[012]|aix4.[012].*)
1.16631 + # We only want to do this on AIX 4.2 and lower, the check
1.16632 + # below for broken collect2 doesn't work under 4.3+
1.16633 + collect2name=`${CC} -print-prog-name=collect2`
1.16634 + if test -f "$collect2name" && \
1.16635 + strings "$collect2name" | grep resolve_lib_name >/dev/null
1.16636 + then
1.16637 + # We have reworked collect2
1.16638 + hardcode_direct_GCJ=yes
1.16639 + else
1.16640 + # We have old collect2
1.16641 + hardcode_direct_GCJ=unsupported
1.16642 + # It fails to find uninstalled libraries when the uninstalled
1.16643 + # path is not listed in the libpath. Setting hardcode_minus_L
1.16644 + # to unsupported forces relinking
1.16645 + hardcode_minus_L_GCJ=yes
1.16646 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16647 + hardcode_libdir_separator_GCJ=
1.16648 + fi
1.16649 + esac
1.16650 + shared_flag='-shared'
1.16651 + if test "$aix_use_runtimelinking" = yes; then
1.16652 + shared_flag="$shared_flag "'${wl}-G'
1.16653 + fi
1.16654 + else
1.16655 + # not using gcc
1.16656 + if test "$host_cpu" = ia64; then
1.16657 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
1.16658 + # chokes on -Wl,-G. The following line is correct:
1.16659 + shared_flag='-G'
1.16660 + else
1.16661 + if test "$aix_use_runtimelinking" = yes; then
1.16662 + shared_flag='${wl}-G'
1.16663 + else
1.16664 + shared_flag='${wl}-bM:SRE'
1.16665 + fi
1.16666 + fi
1.16667 + fi
1.16668 +
1.16669 + # It seems that -bexpall does not export symbols beginning with
1.16670 + # underscore (_), so it is better to generate a list of symbols to export.
1.16671 + always_export_symbols_GCJ=yes
1.16672 + if test "$aix_use_runtimelinking" = yes; then
1.16673 + # Warning - without using the other runtime loading flags (-brtl),
1.16674 + # -berok will link without error, but may produce a broken library.
1.16675 + allow_undefined_flag_GCJ='-berok'
1.16676 + # Determine the default libpath from the value encoded in an empty executable.
1.16677 + cat >conftest.$ac_ext <<_ACEOF
1.16678 +/* confdefs.h. */
1.16679 +_ACEOF
1.16680 +cat confdefs.h >>conftest.$ac_ext
1.16681 +cat >>conftest.$ac_ext <<_ACEOF
1.16682 +/* end confdefs.h. */
1.16683 +
1.16684 +int
1.16685 +main ()
1.16686 +{
1.16687 +
1.16688 + ;
1.16689 + return 0;
1.16690 +}
1.16691 +_ACEOF
1.16692 +rm -f conftest.$ac_objext conftest$ac_exeext
1.16693 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16694 + (eval $ac_link) 2>conftest.er1
1.16695 + ac_status=$?
1.16696 + grep -v '^ *+' conftest.er1 >conftest.err
1.16697 + rm -f conftest.er1
1.16698 + cat conftest.err >&5
1.16699 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16700 + (exit $ac_status); } &&
1.16701 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.16702 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.16703 + (eval $ac_try) 2>&5
1.16704 + ac_status=$?
1.16705 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16706 + (exit $ac_status); }; } &&
1.16707 + { ac_try='test -s conftest$ac_exeext'
1.16708 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.16709 + (eval $ac_try) 2>&5
1.16710 + ac_status=$?
1.16711 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16712 + (exit $ac_status); }; }; then
1.16713 +
1.16714 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.16715 +}'`
1.16716 +# Check for a 64-bit object if we didn't find anything.
1.16717 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.16718 +}'`; fi
1.16719 +else
1.16720 + echo "$as_me: failed program was:" >&5
1.16721 +sed 's/^/| /' conftest.$ac_ext >&5
1.16722 +
1.16723 +fi
1.16724 +rm -f conftest.err conftest.$ac_objext \
1.16725 + conftest$ac_exeext conftest.$ac_ext
1.16726 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.16727 +
1.16728 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1.16729 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
1.16730 + else
1.16731 + if test "$host_cpu" = ia64; then
1.16732 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
1.16733 + allow_undefined_flag_GCJ="-z nodefs"
1.16734 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
1.16735 + else
1.16736 + # Determine the default libpath from the value encoded in an empty executable.
1.16737 + cat >conftest.$ac_ext <<_ACEOF
1.16738 +/* confdefs.h. */
1.16739 +_ACEOF
1.16740 +cat confdefs.h >>conftest.$ac_ext
1.16741 +cat >>conftest.$ac_ext <<_ACEOF
1.16742 +/* end confdefs.h. */
1.16743 +
1.16744 +int
1.16745 +main ()
1.16746 +{
1.16747 +
1.16748 + ;
1.16749 + return 0;
1.16750 +}
1.16751 +_ACEOF
1.16752 +rm -f conftest.$ac_objext conftest$ac_exeext
1.16753 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.16754 + (eval $ac_link) 2>conftest.er1
1.16755 + ac_status=$?
1.16756 + grep -v '^ *+' conftest.er1 >conftest.err
1.16757 + rm -f conftest.er1
1.16758 + cat conftest.err >&5
1.16759 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16760 + (exit $ac_status); } &&
1.16761 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.16762 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.16763 + (eval $ac_try) 2>&5
1.16764 + ac_status=$?
1.16765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16766 + (exit $ac_status); }; } &&
1.16767 + { ac_try='test -s conftest$ac_exeext'
1.16768 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.16769 + (eval $ac_try) 2>&5
1.16770 + ac_status=$?
1.16771 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.16772 + (exit $ac_status); }; }; then
1.16773 +
1.16774 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.16775 +}'`
1.16776 +# Check for a 64-bit object if we didn't find anything.
1.16777 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1.16778 +}'`; fi
1.16779 +else
1.16780 + echo "$as_me: failed program was:" >&5
1.16781 +sed 's/^/| /' conftest.$ac_ext >&5
1.16782 +
1.16783 +fi
1.16784 +rm -f conftest.err conftest.$ac_objext \
1.16785 + conftest$ac_exeext conftest.$ac_ext
1.16786 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.16787 +
1.16788 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
1.16789 + # Warning - without using the other run time loading flags,
1.16790 + # -berok will link without error, but may produce a broken library.
1.16791 + no_undefined_flag_GCJ=' ${wl}-bernotok'
1.16792 + allow_undefined_flag_GCJ=' ${wl}-berok'
1.16793 + # -bexpall does not export symbols beginning with underscore (_)
1.16794 + always_export_symbols_GCJ=yes
1.16795 + # Exported symbols can be pulled into shared objects from archives
1.16796 + whole_archive_flag_spec_GCJ=' '
1.16797 + archive_cmds_need_lc_GCJ=yes
1.16798 + # This is similar to how AIX traditionally builds its shared libraries.
1.16799 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
1.16800 + fi
1.16801 + fi
1.16802 + ;;
1.16803 +
1.16804 + amigaos*)
1.16805 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
1.16806 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16807 + hardcode_minus_L_GCJ=yes
1.16808 + # see comment about different semantics on the GNU ld section
1.16809 + ld_shlibs_GCJ=no
1.16810 + ;;
1.16811 +
1.16812 + bsdi[45]*)
1.16813 + export_dynamic_flag_spec_GCJ=-rdynamic
1.16814 + ;;
1.16815 +
1.16816 + cygwin* | mingw* | pw32*)
1.16817 + # When not using gcc, we currently assume that we are using
1.16818 + # Microsoft Visual C++.
1.16819 + # hardcode_libdir_flag_spec is actually meaningless, as there is
1.16820 + # no search path for DLLs.
1.16821 + hardcode_libdir_flag_spec_GCJ=' '
1.16822 + allow_undefined_flag_GCJ=unsupported
1.16823 + # Tell ltmain to make .lib files, not .a files.
1.16824 + libext=lib
1.16825 + # Tell ltmain to make .dll files, not .so files.
1.16826 + shrext_cmds=".dll"
1.16827 + # FIXME: Setting linknames here is a bad hack.
1.16828 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
1.16829 + # The linker will automatically build a .lib file if we build a DLL.
1.16830 + old_archive_From_new_cmds_GCJ='true'
1.16831 + # FIXME: Should let the user specify the lib program.
1.16832 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
1.16833 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
1.16834 + enable_shared_with_static_runtimes_GCJ=yes
1.16835 + ;;
1.16836 +
1.16837 + darwin* | rhapsody*)
1.16838 + case $host_os in
1.16839 + rhapsody* | darwin1.[012])
1.16840 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
1.16841 + ;;
1.16842 + *) # Darwin 1.3 on
1.16843 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
1.16844 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.16845 + else
1.16846 + case ${MACOSX_DEPLOYMENT_TARGET} in
1.16847 + 10.[012])
1.16848 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1.16849 + ;;
1.16850 + 10.*)
1.16851 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
1.16852 + ;;
1.16853 + esac
1.16854 + fi
1.16855 + ;;
1.16856 + esac
1.16857 + archive_cmds_need_lc_GCJ=no
1.16858 + hardcode_direct_GCJ=no
1.16859 + hardcode_automatic_GCJ=yes
1.16860 + hardcode_shlibpath_var_GCJ=unsupported
1.16861 + whole_archive_flag_spec_GCJ=''
1.16862 + link_all_deplibs_GCJ=yes
1.16863 + if test "$GCC" = yes ; then
1.16864 + output_verbose_link_cmd='echo'
1.16865 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
1.16866 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.16867 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.16868 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.16869 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.16870 + else
1.16871 + case $cc_basename in
1.16872 + xlc*)
1.16873 + output_verbose_link_cmd='echo'
1.16874 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
1.16875 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
1.16876 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
1.16877 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.16878 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
1.16879 + ;;
1.16880 + *)
1.16881 + ld_shlibs_GCJ=no
1.16882 + ;;
1.16883 + esac
1.16884 + fi
1.16885 + ;;
1.16886 +
1.16887 + dgux*)
1.16888 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.16889 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16890 + hardcode_shlibpath_var_GCJ=no
1.16891 + ;;
1.16892 +
1.16893 + freebsd1*)
1.16894 + ld_shlibs_GCJ=no
1.16895 + ;;
1.16896 +
1.16897 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
1.16898 + # support. Future versions do this automatically, but an explicit c++rt0.o
1.16899 + # does not break anything, and helps significantly (at the cost of a little
1.16900 + # extra space).
1.16901 + freebsd2.2*)
1.16902 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
1.16903 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
1.16904 + hardcode_direct_GCJ=yes
1.16905 + hardcode_shlibpath_var_GCJ=no
1.16906 + ;;
1.16907 +
1.16908 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.16909 + freebsd2*)
1.16910 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.16911 + hardcode_direct_GCJ=yes
1.16912 + hardcode_minus_L_GCJ=yes
1.16913 + hardcode_shlibpath_var_GCJ=no
1.16914 + ;;
1.16915 +
1.16916 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
1.16917 + freebsd* | kfreebsd*-gnu | dragonfly*)
1.16918 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
1.16919 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
1.16920 + hardcode_direct_GCJ=yes
1.16921 + hardcode_shlibpath_var_GCJ=no
1.16922 + ;;
1.16923 +
1.16924 + hpux9*)
1.16925 + if test "$GCC" = yes; then
1.16926 + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.16927 + else
1.16928 + archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
1.16929 + fi
1.16930 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1.16931 + hardcode_libdir_separator_GCJ=:
1.16932 + hardcode_direct_GCJ=yes
1.16933 +
1.16934 + # hardcode_minus_L: Not really in the search PATH,
1.16935 + # but as the default location of the library.
1.16936 + hardcode_minus_L_GCJ=yes
1.16937 + export_dynamic_flag_spec_GCJ='${wl}-E'
1.16938 + ;;
1.16939 +
1.16940 + hpux10* | hpux11*)
1.16941 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
1.16942 + case $host_cpu in
1.16943 + hppa*64*|ia64*)
1.16944 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.16945 + ;;
1.16946 + *)
1.16947 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
1.16948 + ;;
1.16949 + esac
1.16950 + else
1.16951 + case $host_cpu in
1.16952 + hppa*64*|ia64*)
1.16953 + archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
1.16954 + ;;
1.16955 + *)
1.16956 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
1.16957 + ;;
1.16958 + esac
1.16959 + fi
1.16960 + if test "$with_gnu_ld" = no; then
1.16961 + case $host_cpu in
1.16962 + hppa*64*)
1.16963 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1.16964 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
1.16965 + hardcode_libdir_separator_GCJ=:
1.16966 + hardcode_direct_GCJ=no
1.16967 + hardcode_shlibpath_var_GCJ=no
1.16968 + ;;
1.16969 + ia64*)
1.16970 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.16971 + hardcode_direct_GCJ=no
1.16972 + hardcode_shlibpath_var_GCJ=no
1.16973 +
1.16974 + # hardcode_minus_L: Not really in the search PATH,
1.16975 + # but as the default location of the library.
1.16976 + hardcode_minus_L_GCJ=yes
1.16977 + ;;
1.16978 + *)
1.16979 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
1.16980 + hardcode_libdir_separator_GCJ=:
1.16981 + hardcode_direct_GCJ=yes
1.16982 + export_dynamic_flag_spec_GCJ='${wl}-E'
1.16983 +
1.16984 + # hardcode_minus_L: Not really in the search PATH,
1.16985 + # but as the default location of the library.
1.16986 + hardcode_minus_L_GCJ=yes
1.16987 + ;;
1.16988 + esac
1.16989 + fi
1.16990 + ;;
1.16991 +
1.16992 + irix5* | irix6* | nonstopux*)
1.16993 + if test "$GCC" = yes; then
1.16994 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.16995 + else
1.16996 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.16997 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
1.16998 + fi
1.16999 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1.17000 + hardcode_libdir_separator_GCJ=:
1.17001 + link_all_deplibs_GCJ=yes
1.17002 + ;;
1.17003 +
1.17004 + netbsd*)
1.17005 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.17006 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
1.17007 + else
1.17008 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
1.17009 + fi
1.17010 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
1.17011 + hardcode_direct_GCJ=yes
1.17012 + hardcode_shlibpath_var_GCJ=no
1.17013 + ;;
1.17014 +
1.17015 + newsos6)
1.17016 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17017 + hardcode_direct_GCJ=yes
1.17018 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1.17019 + hardcode_libdir_separator_GCJ=:
1.17020 + hardcode_shlibpath_var_GCJ=no
1.17021 + ;;
1.17022 +
1.17023 + openbsd*)
1.17024 + hardcode_direct_GCJ=yes
1.17025 + hardcode_shlibpath_var_GCJ=no
1.17026 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.17027 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.17028 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
1.17029 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1.17030 + export_dynamic_flag_spec_GCJ='${wl}-E'
1.17031 + else
1.17032 + case $host_os in
1.17033 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
1.17034 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
1.17035 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
1.17036 + ;;
1.17037 + *)
1.17038 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
1.17039 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
1.17040 + ;;
1.17041 + esac
1.17042 + fi
1.17043 + ;;
1.17044 +
1.17045 + os2*)
1.17046 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.17047 + hardcode_minus_L_GCJ=yes
1.17048 + allow_undefined_flag_GCJ=unsupported
1.17049 + archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
1.17050 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
1.17051 + ;;
1.17052 +
1.17053 + osf3*)
1.17054 + if test "$GCC" = yes; then
1.17055 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
1.17056 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.17057 + else
1.17058 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
1.17059 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.17060 + fi
1.17061 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1.17062 + hardcode_libdir_separator_GCJ=:
1.17063 + ;;
1.17064 +
1.17065 + osf4* | osf5*) # as osf3* with the addition of -msym flag
1.17066 + if test "$GCC" = yes; then
1.17067 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
1.17068 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
1.17069 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
1.17070 + else
1.17071 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
1.17072 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
1.17073 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
1.17074 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.17075 +
1.17076 + # Both c and cxx compiler support -rpath directly
1.17077 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
1.17078 + fi
1.17079 + hardcode_libdir_separator_GCJ=:
1.17080 + ;;
1.17081 +
1.17082 + sco3.2v5*)
1.17083 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17084 + hardcode_shlibpath_var_GCJ=no
1.17085 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
1.17086 + runpath_var=LD_RUN_PATH
1.17087 + hardcode_runpath_var=yes
1.17088 + ;;
1.17089 +
1.17090 + solaris*)
1.17091 + no_undefined_flag_GCJ=' -z text'
1.17092 + if test "$GCC" = yes; then
1.17093 + wlarc='${wl}'
1.17094 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.17095 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.17096 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
1.17097 + else
1.17098 + wlarc=''
1.17099 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17100 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.17101 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.17102 + fi
1.17103 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
1.17104 + hardcode_shlibpath_var_GCJ=no
1.17105 + case $host_os in
1.17106 + solaris2.[0-5] | solaris2.[0-5].*) ;;
1.17107 + *)
1.17108 + # The compiler driver will combine linker options so we
1.17109 + # cannot just pass the convience library names through
1.17110 + # without $wl, iff we do not link with $LD.
1.17111 + # Luckily, gcc supports the same syntax we need for Sun Studio.
1.17112 + # Supported since Solaris 2.6 (maybe 2.5.1?)
1.17113 + case $wlarc in
1.17114 + '')
1.17115 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
1.17116 + *)
1.17117 + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
1.17118 + esac ;;
1.17119 + esac
1.17120 + link_all_deplibs_GCJ=yes
1.17121 + ;;
1.17122 +
1.17123 + sunos4*)
1.17124 + if test "x$host_vendor" = xsequent; then
1.17125 + # Use $CC to link under sequent, because it throws in some extra .o
1.17126 + # files that make .init and .fini sections work.
1.17127 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
1.17128 + else
1.17129 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
1.17130 + fi
1.17131 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.17132 + hardcode_direct_GCJ=yes
1.17133 + hardcode_minus_L_GCJ=yes
1.17134 + hardcode_shlibpath_var_GCJ=no
1.17135 + ;;
1.17136 +
1.17137 + sysv4)
1.17138 + case $host_vendor in
1.17139 + sni)
1.17140 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17141 + hardcode_direct_GCJ=yes # is this really true???
1.17142 + ;;
1.17143 + siemens)
1.17144 + ## LD is ld it makes a PLAMLIB
1.17145 + ## CC just makes a GrossModule.
1.17146 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.17147 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
1.17148 + hardcode_direct_GCJ=no
1.17149 + ;;
1.17150 + motorola)
1.17151 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17152 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
1.17153 + ;;
1.17154 + esac
1.17155 + runpath_var='LD_RUN_PATH'
1.17156 + hardcode_shlibpath_var_GCJ=no
1.17157 + ;;
1.17158 +
1.17159 + sysv4.3*)
1.17160 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17161 + hardcode_shlibpath_var_GCJ=no
1.17162 + export_dynamic_flag_spec_GCJ='-Bexport'
1.17163 + ;;
1.17164 +
1.17165 + sysv4*MP*)
1.17166 + if test -d /usr/nec; then
1.17167 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17168 + hardcode_shlibpath_var_GCJ=no
1.17169 + runpath_var=LD_RUN_PATH
1.17170 + hardcode_runpath_var=yes
1.17171 + ld_shlibs_GCJ=yes
1.17172 + fi
1.17173 + ;;
1.17174 +
1.17175 + sysv4.2uw2*)
1.17176 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
1.17177 + hardcode_direct_GCJ=yes
1.17178 + hardcode_minus_L_GCJ=no
1.17179 + hardcode_shlibpath_var_GCJ=no
1.17180 + hardcode_runpath_var=yes
1.17181 + runpath_var=LD_RUN_PATH
1.17182 + ;;
1.17183 +
1.17184 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
1.17185 + no_undefined_flag_GCJ='${wl}-z ${wl}text'
1.17186 + if test "$GCC" = yes; then
1.17187 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.17188 + else
1.17189 + archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
1.17190 + fi
1.17191 + runpath_var='LD_RUN_PATH'
1.17192 + hardcode_shlibpath_var_GCJ=no
1.17193 + ;;
1.17194 +
1.17195 + sysv5*)
1.17196 + no_undefined_flag_GCJ=' -z text'
1.17197 + # $CC -shared without GNU ld will not create a library from C++
1.17198 + # object files and a static libstdc++, better avoid it by now
1.17199 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17200 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
1.17201 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
1.17202 + hardcode_libdir_flag_spec_GCJ=
1.17203 + hardcode_shlibpath_var_GCJ=no
1.17204 + runpath_var='LD_RUN_PATH'
1.17205 + ;;
1.17206 +
1.17207 + uts4*)
1.17208 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
1.17209 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
1.17210 + hardcode_shlibpath_var_GCJ=no
1.17211 + ;;
1.17212 +
1.17213 + *)
1.17214 + ld_shlibs_GCJ=no
1.17215 + ;;
1.17216 + esac
1.17217 + fi
1.17218 +
1.17219 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
1.17220 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
1.17221 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
1.17222 +
1.17223 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1.17224 +if test "$GCC" = yes; then
1.17225 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.17226 +fi
1.17227 +
1.17228 +#
1.17229 +# Do we need to explicitly link libc?
1.17230 +#
1.17231 +case "x$archive_cmds_need_lc_GCJ" in
1.17232 +x|xyes)
1.17233 + # Assume -lc should be added
1.17234 + archive_cmds_need_lc_GCJ=yes
1.17235 +
1.17236 + if test "$enable_shared" = yes && test "$GCC" = yes; then
1.17237 + case $archive_cmds_GCJ in
1.17238 + *'~'*)
1.17239 + # FIXME: we may have to deal with multi-command sequences.
1.17240 + ;;
1.17241 + '$CC '*)
1.17242 + # Test whether the compiler implicitly links with -lc since on some
1.17243 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
1.17244 + # to ld, don't add -lc before -lgcc.
1.17245 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
1.17246 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1.17247 + $rm conftest*
1.17248 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1.17249 +
1.17250 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.17251 + (eval $ac_compile) 2>&5
1.17252 + ac_status=$?
1.17253 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17254 + (exit $ac_status); } 2>conftest.err; then
1.17255 + soname=conftest
1.17256 + lib=conftest
1.17257 + libobjs=conftest.$ac_objext
1.17258 + deplibs=
1.17259 + wl=$lt_prog_compiler_wl_GCJ
1.17260 + compiler_flags=-v
1.17261 + linker_flags=-v
1.17262 + verstring=
1.17263 + output_objdir=.
1.17264 + libname=conftest
1.17265 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
1.17266 + allow_undefined_flag_GCJ=
1.17267 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
1.17268 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
1.17269 + ac_status=$?
1.17270 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17271 + (exit $ac_status); }
1.17272 + then
1.17273 + archive_cmds_need_lc_GCJ=no
1.17274 + else
1.17275 + archive_cmds_need_lc_GCJ=yes
1.17276 + fi
1.17277 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
1.17278 + else
1.17279 + cat conftest.err 1>&5
1.17280 + fi
1.17281 + $rm conftest*
1.17282 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
1.17283 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
1.17284 + ;;
1.17285 + esac
1.17286 + fi
1.17287 + ;;
1.17288 +esac
1.17289 +
1.17290 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
1.17291 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1.17292 +library_names_spec=
1.17293 +libname_spec='lib$name'
1.17294 +soname_spec=
1.17295 +shrext_cmds=".so"
1.17296 +postinstall_cmds=
1.17297 +postuninstall_cmds=
1.17298 +finish_cmds=
1.17299 +finish_eval=
1.17300 +shlibpath_var=
1.17301 +shlibpath_overrides_runpath=unknown
1.17302 +version_type=none
1.17303 +dynamic_linker="$host_os ld.so"
1.17304 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.17305 +if test "$GCC" = yes; then
1.17306 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.17307 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1.17308 + # if the path contains ";" then we assume it to be the separator
1.17309 + # otherwise default to the standard path separator (i.e. ":") - it is
1.17310 + # assumed that no part of a normal pathname contains ";" but that should
1.17311 + # okay in the real world where ";" in dirpaths is itself problematic.
1.17312 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.17313 + else
1.17314 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.17315 + fi
1.17316 +else
1.17317 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.17318 +fi
1.17319 +need_lib_prefix=unknown
1.17320 +hardcode_into_libs=no
1.17321 +
1.17322 +# when you set need_version to no, make sure it does not cause -set_version
1.17323 +# flags to be left without arguments
1.17324 +need_version=unknown
1.17325 +
1.17326 +case $host_os in
1.17327 +aix3*)
1.17328 + version_type=linux
1.17329 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1.17330 + shlibpath_var=LIBPATH
1.17331 +
1.17332 + # AIX 3 has no versioning support, so we append a major version to the name.
1.17333 + soname_spec='${libname}${release}${shared_ext}$major'
1.17334 + ;;
1.17335 +
1.17336 +aix4* | aix5*)
1.17337 + version_type=linux
1.17338 + need_lib_prefix=no
1.17339 + need_version=no
1.17340 + hardcode_into_libs=yes
1.17341 + if test "$host_cpu" = ia64; then
1.17342 + # AIX 5 supports IA64
1.17343 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1.17344 + shlibpath_var=LD_LIBRARY_PATH
1.17345 + else
1.17346 + # With GCC up to 2.95.x, collect2 would create an import file
1.17347 + # for dependence libraries. The import file would start with
1.17348 + # the line `#! .'. This would cause the generated library to
1.17349 + # depend on `.', always an invalid library. This was fixed in
1.17350 + # development snapshots of GCC prior to 3.0.
1.17351 + case $host_os in
1.17352 + aix4 | aix4.[01] | aix4.[01].*)
1.17353 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1.17354 + echo ' yes '
1.17355 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1.17356 + :
1.17357 + else
1.17358 + can_build_shared=no
1.17359 + fi
1.17360 + ;;
1.17361 + esac
1.17362 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1.17363 + # soname into executable. Probably we can add versioning support to
1.17364 + # collect2, so additional links can be useful in future.
1.17365 + if test "$aix_use_runtimelinking" = yes; then
1.17366 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1.17367 + # instead of lib<name>.a to let people know that these are not
1.17368 + # typical AIX shared libraries.
1.17369 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17370 + else
1.17371 + # We preserve .a as extension for shared libraries through AIX4.2
1.17372 + # and later when we are not doing run time linking.
1.17373 + library_names_spec='${libname}${release}.a $libname.a'
1.17374 + soname_spec='${libname}${release}${shared_ext}$major'
1.17375 + fi
1.17376 + shlibpath_var=LIBPATH
1.17377 + fi
1.17378 + ;;
1.17379 +
1.17380 +amigaos*)
1.17381 + library_names_spec='$libname.ixlibrary $libname.a'
1.17382 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
1.17383 + 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'
1.17384 + ;;
1.17385 +
1.17386 +beos*)
1.17387 + library_names_spec='${libname}${shared_ext}'
1.17388 + dynamic_linker="$host_os ld.so"
1.17389 + shlibpath_var=LIBRARY_PATH
1.17390 + ;;
1.17391 +
1.17392 +bsdi[45]*)
1.17393 + version_type=linux
1.17394 + need_version=no
1.17395 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17396 + soname_spec='${libname}${release}${shared_ext}$major'
1.17397 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1.17398 + shlibpath_var=LD_LIBRARY_PATH
1.17399 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1.17400 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1.17401 + # the default ld.so.conf also contains /usr/contrib/lib and
1.17402 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1.17403 + # libtool to hard-code these into programs
1.17404 + ;;
1.17405 +
1.17406 +cygwin* | mingw* | pw32*)
1.17407 + version_type=windows
1.17408 + shrext_cmds=".dll"
1.17409 + need_version=no
1.17410 + need_lib_prefix=no
1.17411 +
1.17412 + case $GCC,$host_os in
1.17413 + yes,cygwin* | yes,mingw* | yes,pw32*)
1.17414 + library_names_spec='$libname.dll.a'
1.17415 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
1.17416 + postinstall_cmds='base_file=`basename \${file}`~
1.17417 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1.17418 + dldir=$destdir/`dirname \$dlpath`~
1.17419 + test -d \$dldir || mkdir -p \$dldir~
1.17420 + $install_prog $dir/$dlname \$dldir/$dlname~
1.17421 + chmod a+x \$dldir/$dlname'
1.17422 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1.17423 + dlpath=$dir/\$dldll~
1.17424 + $rm \$dlpath'
1.17425 + shlibpath_overrides_runpath=yes
1.17426 +
1.17427 + case $host_os in
1.17428 + cygwin*)
1.17429 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1.17430 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.17431 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1.17432 + ;;
1.17433 + mingw*)
1.17434 + # MinGW DLLs use traditional 'lib' prefix
1.17435 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.17436 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1.17437 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
1.17438 + # It is most probably a Windows format PATH printed by
1.17439 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
1.17440 + # path with ; separators, and with drive letters. We can handle the
1.17441 + # drive letters (cygwin fileutils understands them), so leave them,
1.17442 + # especially as we might pass files found there to a mingw objdump,
1.17443 + # which wouldn't understand a cygwinified path. Ahh.
1.17444 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1.17445 + else
1.17446 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1.17447 + fi
1.17448 + ;;
1.17449 + pw32*)
1.17450 + # pw32 DLLs use 'pw' prefix rather than 'lib'
1.17451 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
1.17452 + ;;
1.17453 + esac
1.17454 + ;;
1.17455 +
1.17456 + *)
1.17457 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
1.17458 + ;;
1.17459 + esac
1.17460 + dynamic_linker='Win32 ld.exe'
1.17461 + # FIXME: first we should search . and the directory the executable is in
1.17462 + shlibpath_var=PATH
1.17463 + ;;
1.17464 +
1.17465 +darwin* | rhapsody*)
1.17466 + dynamic_linker="$host_os dyld"
1.17467 + version_type=darwin
1.17468 + need_lib_prefix=no
1.17469 + need_version=no
1.17470 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1.17471 + soname_spec='${libname}${release}${major}$shared_ext'
1.17472 + shlibpath_overrides_runpath=yes
1.17473 + shlibpath_var=DYLD_LIBRARY_PATH
1.17474 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.17475 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1.17476 + if test "$GCC" = yes; then
1.17477 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1.17478 + else
1.17479 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1.17480 + fi
1.17481 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1.17482 + ;;
1.17483 +
1.17484 +dgux*)
1.17485 + version_type=linux
1.17486 + need_lib_prefix=no
1.17487 + need_version=no
1.17488 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1.17489 + soname_spec='${libname}${release}${shared_ext}$major'
1.17490 + shlibpath_var=LD_LIBRARY_PATH
1.17491 + ;;
1.17492 +
1.17493 +freebsd1*)
1.17494 + dynamic_linker=no
1.17495 + ;;
1.17496 +
1.17497 +kfreebsd*-gnu)
1.17498 + version_type=linux
1.17499 + need_lib_prefix=no
1.17500 + need_version=no
1.17501 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.17502 + soname_spec='${libname}${release}${shared_ext}$major'
1.17503 + shlibpath_var=LD_LIBRARY_PATH
1.17504 + shlibpath_overrides_runpath=no
1.17505 + hardcode_into_libs=yes
1.17506 + dynamic_linker='GNU ld.so'
1.17507 + ;;
1.17508 +
1.17509 +freebsd* | dragonfly*)
1.17510 + # DragonFly does not have aout. When/if they implement a new
1.17511 + # versioning mechanism, adjust this.
1.17512 + if test -x /usr/bin/objformat; then
1.17513 + objformat=`/usr/bin/objformat`
1.17514 + else
1.17515 + case $host_os in
1.17516 + freebsd[123]*) objformat=aout ;;
1.17517 + *) objformat=elf ;;
1.17518 + esac
1.17519 + fi
1.17520 + version_type=freebsd-$objformat
1.17521 + case $version_type in
1.17522 + freebsd-elf*)
1.17523 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1.17524 + need_version=no
1.17525 + need_lib_prefix=no
1.17526 + ;;
1.17527 + freebsd-*)
1.17528 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1.17529 + need_version=yes
1.17530 + ;;
1.17531 + esac
1.17532 + shlibpath_var=LD_LIBRARY_PATH
1.17533 + case $host_os in
1.17534 + freebsd2*)
1.17535 + shlibpath_overrides_runpath=yes
1.17536 + ;;
1.17537 + freebsd3.[01]* | freebsdelf3.[01]*)
1.17538 + shlibpath_overrides_runpath=yes
1.17539 + hardcode_into_libs=yes
1.17540 + ;;
1.17541 + *) # from 3.2 on
1.17542 + shlibpath_overrides_runpath=no
1.17543 + hardcode_into_libs=yes
1.17544 + ;;
1.17545 + esac
1.17546 + ;;
1.17547 +
1.17548 +gnu*)
1.17549 + version_type=linux
1.17550 + need_lib_prefix=no
1.17551 + need_version=no
1.17552 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1.17553 + soname_spec='${libname}${release}${shared_ext}$major'
1.17554 + shlibpath_var=LD_LIBRARY_PATH
1.17555 + hardcode_into_libs=yes
1.17556 + ;;
1.17557 +
1.17558 +hpux9* | hpux10* | hpux11*)
1.17559 + # Give a soname corresponding to the major version so that dld.sl refuses to
1.17560 + # link against other versions.
1.17561 + version_type=sunos
1.17562 + need_lib_prefix=no
1.17563 + need_version=no
1.17564 + case $host_cpu in
1.17565 + ia64*)
1.17566 + shrext_cmds='.so'
1.17567 + hardcode_into_libs=yes
1.17568 + dynamic_linker="$host_os dld.so"
1.17569 + shlibpath_var=LD_LIBRARY_PATH
1.17570 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.17571 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17572 + soname_spec='${libname}${release}${shared_ext}$major'
1.17573 + if test "X$HPUX_IA64_MODE" = X32; then
1.17574 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1.17575 + else
1.17576 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1.17577 + fi
1.17578 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.17579 + ;;
1.17580 + hppa*64*)
1.17581 + shrext_cmds='.sl'
1.17582 + hardcode_into_libs=yes
1.17583 + dynamic_linker="$host_os dld.sl"
1.17584 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1.17585 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1.17586 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17587 + soname_spec='${libname}${release}${shared_ext}$major'
1.17588 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1.17589 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1.17590 + ;;
1.17591 + *)
1.17592 + shrext_cmds='.sl'
1.17593 + dynamic_linker="$host_os dld.sl"
1.17594 + shlibpath_var=SHLIB_PATH
1.17595 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1.17596 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17597 + soname_spec='${libname}${release}${shared_ext}$major'
1.17598 + ;;
1.17599 + esac
1.17600 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
1.17601 + postinstall_cmds='chmod 555 $lib'
1.17602 + ;;
1.17603 +
1.17604 +irix5* | irix6* | nonstopux*)
1.17605 + case $host_os in
1.17606 + nonstopux*) version_type=nonstopux ;;
1.17607 + *)
1.17608 + if test "$lt_cv_prog_gnu_ld" = yes; then
1.17609 + version_type=linux
1.17610 + else
1.17611 + version_type=irix
1.17612 + fi ;;
1.17613 + esac
1.17614 + need_lib_prefix=no
1.17615 + need_version=no
1.17616 + soname_spec='${libname}${release}${shared_ext}$major'
1.17617 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1.17618 + case $host_os in
1.17619 + irix5* | nonstopux*)
1.17620 + libsuff= shlibsuff=
1.17621 + ;;
1.17622 + *)
1.17623 + case $LD in # libtool.m4 will add one of these switches to LD
1.17624 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1.17625 + libsuff= shlibsuff= libmagic=32-bit;;
1.17626 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1.17627 + libsuff=32 shlibsuff=N32 libmagic=N32;;
1.17628 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1.17629 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
1.17630 + *) libsuff= shlibsuff= libmagic=never-match;;
1.17631 + esac
1.17632 + ;;
1.17633 + esac
1.17634 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1.17635 + shlibpath_overrides_runpath=no
1.17636 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1.17637 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1.17638 + hardcode_into_libs=yes
1.17639 + ;;
1.17640 +
1.17641 +# No shared lib support for Linux oldld, aout, or coff.
1.17642 +linux*oldld* | linux*aout* | linux*coff*)
1.17643 + dynamic_linker=no
1.17644 + ;;
1.17645 +
1.17646 +# This must be Linux ELF.
1.17647 +linux*)
1.17648 + version_type=linux
1.17649 + need_lib_prefix=no
1.17650 + need_version=no
1.17651 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17652 + soname_spec='${libname}${release}${shared_ext}$major'
1.17653 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1.17654 + shlibpath_var=LD_LIBRARY_PATH
1.17655 + shlibpath_overrides_runpath=no
1.17656 + # This implies no fast_install, which is unacceptable.
1.17657 + # Some rework will be needed to allow for fast_install
1.17658 + # before this can be enabled.
1.17659 + hardcode_into_libs=yes
1.17660 +
1.17661 + # Append ld.so.conf contents to the search path
1.17662 + if test -f /etc/ld.so.conf; then
1.17663 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1.17664 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1.17665 + fi
1.17666 +
1.17667 + # We used to test for /lib/ld.so.1 and disable shared libraries on
1.17668 + # powerpc, because MkLinux only supported shared libraries with the
1.17669 + # GNU dynamic linker. Since this was broken with cross compilers,
1.17670 + # most powerpc-linux boxes support dynamic linking these days and
1.17671 + # people can always --disable-shared, the test was removed, and we
1.17672 + # assume the GNU/Linux dynamic linker is in use.
1.17673 + dynamic_linker='GNU/Linux ld.so'
1.17674 + ;;
1.17675 +
1.17676 +knetbsd*-gnu)
1.17677 + version_type=linux
1.17678 + need_lib_prefix=no
1.17679 + need_version=no
1.17680 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.17681 + soname_spec='${libname}${release}${shared_ext}$major'
1.17682 + shlibpath_var=LD_LIBRARY_PATH
1.17683 + shlibpath_overrides_runpath=no
1.17684 + hardcode_into_libs=yes
1.17685 + dynamic_linker='GNU ld.so'
1.17686 + ;;
1.17687 +
1.17688 +netbsd*)
1.17689 + version_type=sunos
1.17690 + need_lib_prefix=no
1.17691 + need_version=no
1.17692 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1.17693 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.17694 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.17695 + dynamic_linker='NetBSD (a.out) ld.so'
1.17696 + else
1.17697 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1.17698 + soname_spec='${libname}${release}${shared_ext}$major'
1.17699 + dynamic_linker='NetBSD ld.elf_so'
1.17700 + fi
1.17701 + shlibpath_var=LD_LIBRARY_PATH
1.17702 + shlibpath_overrides_runpath=yes
1.17703 + hardcode_into_libs=yes
1.17704 + ;;
1.17705 +
1.17706 +newsos6)
1.17707 + version_type=linux
1.17708 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17709 + shlibpath_var=LD_LIBRARY_PATH
1.17710 + shlibpath_overrides_runpath=yes
1.17711 + ;;
1.17712 +
1.17713 +nto-qnx*)
1.17714 + version_type=linux
1.17715 + need_lib_prefix=no
1.17716 + need_version=no
1.17717 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17718 + soname_spec='${libname}${release}${shared_ext}$major'
1.17719 + shlibpath_var=LD_LIBRARY_PATH
1.17720 + shlibpath_overrides_runpath=yes
1.17721 + ;;
1.17722 +
1.17723 +openbsd*)
1.17724 + version_type=sunos
1.17725 + need_lib_prefix=no
1.17726 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1.17727 + case $host_os in
1.17728 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1.17729 + *) need_version=no ;;
1.17730 + esac
1.17731 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.17732 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1.17733 + shlibpath_var=LD_LIBRARY_PATH
1.17734 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.17735 + case $host_os in
1.17736 + openbsd2.[89] | openbsd2.[89].*)
1.17737 + shlibpath_overrides_runpath=no
1.17738 + ;;
1.17739 + *)
1.17740 + shlibpath_overrides_runpath=yes
1.17741 + ;;
1.17742 + esac
1.17743 + else
1.17744 + shlibpath_overrides_runpath=yes
1.17745 + fi
1.17746 + ;;
1.17747 +
1.17748 +os2*)
1.17749 + libname_spec='$name'
1.17750 + shrext_cmds=".dll"
1.17751 + need_lib_prefix=no
1.17752 + library_names_spec='$libname${shared_ext} $libname.a'
1.17753 + dynamic_linker='OS/2 ld.exe'
1.17754 + shlibpath_var=LIBPATH
1.17755 + ;;
1.17756 +
1.17757 +osf3* | osf4* | osf5*)
1.17758 + version_type=osf
1.17759 + need_lib_prefix=no
1.17760 + need_version=no
1.17761 + soname_spec='${libname}${release}${shared_ext}$major'
1.17762 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17763 + shlibpath_var=LD_LIBRARY_PATH
1.17764 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1.17765 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1.17766 + ;;
1.17767 +
1.17768 +sco3.2v5*)
1.17769 + version_type=osf
1.17770 + soname_spec='${libname}${release}${shared_ext}$major'
1.17771 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17772 + shlibpath_var=LD_LIBRARY_PATH
1.17773 + ;;
1.17774 +
1.17775 +solaris*)
1.17776 + version_type=linux
1.17777 + need_lib_prefix=no
1.17778 + need_version=no
1.17779 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17780 + soname_spec='${libname}${release}${shared_ext}$major'
1.17781 + shlibpath_var=LD_LIBRARY_PATH
1.17782 + shlibpath_overrides_runpath=yes
1.17783 + hardcode_into_libs=yes
1.17784 + # ldd complains unless libraries are executable
1.17785 + postinstall_cmds='chmod +x $lib'
1.17786 + ;;
1.17787 +
1.17788 +sunos4*)
1.17789 + version_type=sunos
1.17790 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1.17791 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1.17792 + shlibpath_var=LD_LIBRARY_PATH
1.17793 + shlibpath_overrides_runpath=yes
1.17794 + if test "$with_gnu_ld" = yes; then
1.17795 + need_lib_prefix=no
1.17796 + fi
1.17797 + need_version=yes
1.17798 + ;;
1.17799 +
1.17800 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1.17801 + version_type=linux
1.17802 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17803 + soname_spec='${libname}${release}${shared_ext}$major'
1.17804 + shlibpath_var=LD_LIBRARY_PATH
1.17805 + case $host_vendor in
1.17806 + sni)
1.17807 + shlibpath_overrides_runpath=no
1.17808 + need_lib_prefix=no
1.17809 + export_dynamic_flag_spec='${wl}-Blargedynsym'
1.17810 + runpath_var=LD_RUN_PATH
1.17811 + ;;
1.17812 + siemens)
1.17813 + need_lib_prefix=no
1.17814 + ;;
1.17815 + motorola)
1.17816 + need_lib_prefix=no
1.17817 + need_version=no
1.17818 + shlibpath_overrides_runpath=no
1.17819 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1.17820 + ;;
1.17821 + esac
1.17822 + ;;
1.17823 +
1.17824 +sysv4*MP*)
1.17825 + if test -d /usr/nec ;then
1.17826 + version_type=linux
1.17827 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1.17828 + soname_spec='$libname${shared_ext}.$major'
1.17829 + shlibpath_var=LD_LIBRARY_PATH
1.17830 + fi
1.17831 + ;;
1.17832 +
1.17833 +uts4*)
1.17834 + version_type=linux
1.17835 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1.17836 + soname_spec='${libname}${release}${shared_ext}$major'
1.17837 + shlibpath_var=LD_LIBRARY_PATH
1.17838 + ;;
1.17839 +
1.17840 +*)
1.17841 + dynamic_linker=no
1.17842 + ;;
1.17843 +esac
1.17844 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
1.17845 +echo "${ECHO_T}$dynamic_linker" >&6
1.17846 +test "$dynamic_linker" = no && can_build_shared=no
1.17847 +
1.17848 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
1.17849 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1.17850 +hardcode_action_GCJ=
1.17851 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
1.17852 + test -n "$runpath_var_GCJ" || \
1.17853 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
1.17854 +
1.17855 + # We can hardcode non-existant directories.
1.17856 + if test "$hardcode_direct_GCJ" != no &&
1.17857 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
1.17858 + # have to relink, otherwise we might link with an installed library
1.17859 + # when we should be linking with a yet-to-be-installed one
1.17860 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
1.17861 + test "$hardcode_minus_L_GCJ" != no; then
1.17862 + # Linking always hardcodes the temporary library directory.
1.17863 + hardcode_action_GCJ=relink
1.17864 + else
1.17865 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
1.17866 + hardcode_action_GCJ=immediate
1.17867 + fi
1.17868 +else
1.17869 + # We cannot hardcode anything, or else we can only hardcode existing
1.17870 + # directories.
1.17871 + hardcode_action_GCJ=unsupported
1.17872 +fi
1.17873 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
1.17874 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
1.17875 +
1.17876 +if test "$hardcode_action_GCJ" = relink; then
1.17877 + # Fast installation is not supported
1.17878 + enable_fast_install=no
1.17879 +elif test "$shlibpath_overrides_runpath" = yes ||
1.17880 + test "$enable_shared" = no; then
1.17881 + # Fast installation is not necessary
1.17882 + enable_fast_install=needless
1.17883 +fi
1.17884 +
1.17885 +striplib=
1.17886 +old_striplib=
1.17887 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
1.17888 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1.17889 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1.17890 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1.17891 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1.17892 + echo "$as_me:$LINENO: result: yes" >&5
1.17893 +echo "${ECHO_T}yes" >&6
1.17894 +else
1.17895 +# FIXME - insert some real tests, host_os isn't really good enough
1.17896 + case $host_os in
1.17897 + darwin*)
1.17898 + if test -n "$STRIP" ; then
1.17899 + striplib="$STRIP -x"
1.17900 + echo "$as_me:$LINENO: result: yes" >&5
1.17901 +echo "${ECHO_T}yes" >&6
1.17902 + else
1.17903 + echo "$as_me:$LINENO: result: no" >&5
1.17904 +echo "${ECHO_T}no" >&6
1.17905 +fi
1.17906 + ;;
1.17907 + *)
1.17908 + echo "$as_me:$LINENO: result: no" >&5
1.17909 +echo "${ECHO_T}no" >&6
1.17910 + ;;
1.17911 + esac
1.17912 +fi
1.17913 +
1.17914 +if test "x$enable_dlopen" != xyes; then
1.17915 + enable_dlopen=unknown
1.17916 + enable_dlopen_self=unknown
1.17917 + enable_dlopen_self_static=unknown
1.17918 +else
1.17919 + lt_cv_dlopen=no
1.17920 + lt_cv_dlopen_libs=
1.17921 +
1.17922 + case $host_os in
1.17923 + beos*)
1.17924 + lt_cv_dlopen="load_add_on"
1.17925 + lt_cv_dlopen_libs=
1.17926 + lt_cv_dlopen_self=yes
1.17927 + ;;
1.17928 +
1.17929 + mingw* | pw32*)
1.17930 + lt_cv_dlopen="LoadLibrary"
1.17931 + lt_cv_dlopen_libs=
1.17932 + ;;
1.17933 +
1.17934 + cygwin*)
1.17935 + lt_cv_dlopen="dlopen"
1.17936 + lt_cv_dlopen_libs=
1.17937 + ;;
1.17938 +
1.17939 + darwin*)
1.17940 + # if libdl is installed we need to link against it
1.17941 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.17942 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.17943 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.17944 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.17945 +else
1.17946 + ac_check_lib_save_LIBS=$LIBS
1.17947 +LIBS="-ldl $LIBS"
1.17948 +cat >conftest.$ac_ext <<_ACEOF
1.17949 +/* confdefs.h. */
1.17950 +_ACEOF
1.17951 +cat confdefs.h >>conftest.$ac_ext
1.17952 +cat >>conftest.$ac_ext <<_ACEOF
1.17953 +/* end confdefs.h. */
1.17954 +
1.17955 +/* Override any gcc2 internal prototype to avoid an error. */
1.17956 +#ifdef __cplusplus
1.17957 +extern "C"
1.17958 +#endif
1.17959 +/* We use char because int might match the return type of a gcc2
1.17960 + builtin and then its argument prototype would still apply. */
1.17961 +char dlopen ();
1.17962 +int
1.17963 +main ()
1.17964 +{
1.17965 +dlopen ();
1.17966 + ;
1.17967 + return 0;
1.17968 +}
1.17969 +_ACEOF
1.17970 +rm -f conftest.$ac_objext conftest$ac_exeext
1.17971 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.17972 + (eval $ac_link) 2>conftest.er1
1.17973 + ac_status=$?
1.17974 + grep -v '^ *+' conftest.er1 >conftest.err
1.17975 + rm -f conftest.er1
1.17976 + cat conftest.err >&5
1.17977 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17978 + (exit $ac_status); } &&
1.17979 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.17980 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.17981 + (eval $ac_try) 2>&5
1.17982 + ac_status=$?
1.17983 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17984 + (exit $ac_status); }; } &&
1.17985 + { ac_try='test -s conftest$ac_exeext'
1.17986 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.17987 + (eval $ac_try) 2>&5
1.17988 + ac_status=$?
1.17989 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17990 + (exit $ac_status); }; }; then
1.17991 + ac_cv_lib_dl_dlopen=yes
1.17992 +else
1.17993 + echo "$as_me: failed program was:" >&5
1.17994 +sed 's/^/| /' conftest.$ac_ext >&5
1.17995 +
1.17996 +ac_cv_lib_dl_dlopen=no
1.17997 +fi
1.17998 +rm -f conftest.err conftest.$ac_objext \
1.17999 + conftest$ac_exeext conftest.$ac_ext
1.18000 +LIBS=$ac_check_lib_save_LIBS
1.18001 +fi
1.18002 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.18003 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.18004 +if test $ac_cv_lib_dl_dlopen = yes; then
1.18005 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.18006 +else
1.18007 +
1.18008 + lt_cv_dlopen="dyld"
1.18009 + lt_cv_dlopen_libs=
1.18010 + lt_cv_dlopen_self=yes
1.18011 +
1.18012 +fi
1.18013 +
1.18014 + ;;
1.18015 +
1.18016 + *)
1.18017 + echo "$as_me:$LINENO: checking for shl_load" >&5
1.18018 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1.18019 +if test "${ac_cv_func_shl_load+set}" = set; then
1.18020 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18021 +else
1.18022 + cat >conftest.$ac_ext <<_ACEOF
1.18023 +/* confdefs.h. */
1.18024 +_ACEOF
1.18025 +cat confdefs.h >>conftest.$ac_ext
1.18026 +cat >>conftest.$ac_ext <<_ACEOF
1.18027 +/* end confdefs.h. */
1.18028 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
1.18029 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.18030 +#define shl_load innocuous_shl_load
1.18031 +
1.18032 +/* System header to define __stub macros and hopefully few prototypes,
1.18033 + which can conflict with char shl_load (); below.
1.18034 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.18035 + <limits.h> exists even on freestanding compilers. */
1.18036 +
1.18037 +#ifdef __STDC__
1.18038 +# include <limits.h>
1.18039 +#else
1.18040 +# include <assert.h>
1.18041 +#endif
1.18042 +
1.18043 +#undef shl_load
1.18044 +
1.18045 +/* Override any gcc2 internal prototype to avoid an error. */
1.18046 +#ifdef __cplusplus
1.18047 +extern "C"
1.18048 +{
1.18049 +#endif
1.18050 +/* We use char because int might match the return type of a gcc2
1.18051 + builtin and then its argument prototype would still apply. */
1.18052 +char shl_load ();
1.18053 +/* The GNU C library defines this for functions which it implements
1.18054 + to always fail with ENOSYS. Some functions are actually named
1.18055 + something starting with __ and the normal name is an alias. */
1.18056 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
1.18057 +choke me
1.18058 +#else
1.18059 +char (*f) () = shl_load;
1.18060 +#endif
1.18061 +#ifdef __cplusplus
1.18062 +}
1.18063 +#endif
1.18064 +
1.18065 +int
1.18066 +main ()
1.18067 +{
1.18068 +return f != shl_load;
1.18069 + ;
1.18070 + return 0;
1.18071 +}
1.18072 +_ACEOF
1.18073 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18074 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18075 + (eval $ac_link) 2>conftest.er1
1.18076 + ac_status=$?
1.18077 + grep -v '^ *+' conftest.er1 >conftest.err
1.18078 + rm -f conftest.er1
1.18079 + cat conftest.err >&5
1.18080 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18081 + (exit $ac_status); } &&
1.18082 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18083 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18084 + (eval $ac_try) 2>&5
1.18085 + ac_status=$?
1.18086 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18087 + (exit $ac_status); }; } &&
1.18088 + { ac_try='test -s conftest$ac_exeext'
1.18089 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18090 + (eval $ac_try) 2>&5
1.18091 + ac_status=$?
1.18092 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18093 + (exit $ac_status); }; }; then
1.18094 + ac_cv_func_shl_load=yes
1.18095 +else
1.18096 + echo "$as_me: failed program was:" >&5
1.18097 +sed 's/^/| /' conftest.$ac_ext >&5
1.18098 +
1.18099 +ac_cv_func_shl_load=no
1.18100 +fi
1.18101 +rm -f conftest.err conftest.$ac_objext \
1.18102 + conftest$ac_exeext conftest.$ac_ext
1.18103 +fi
1.18104 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
1.18105 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1.18106 +if test $ac_cv_func_shl_load = yes; then
1.18107 + lt_cv_dlopen="shl_load"
1.18108 +else
1.18109 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
1.18110 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1.18111 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.18112 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18113 +else
1.18114 + ac_check_lib_save_LIBS=$LIBS
1.18115 +LIBS="-ldld $LIBS"
1.18116 +cat >conftest.$ac_ext <<_ACEOF
1.18117 +/* confdefs.h. */
1.18118 +_ACEOF
1.18119 +cat confdefs.h >>conftest.$ac_ext
1.18120 +cat >>conftest.$ac_ext <<_ACEOF
1.18121 +/* end confdefs.h. */
1.18122 +
1.18123 +/* Override any gcc2 internal prototype to avoid an error. */
1.18124 +#ifdef __cplusplus
1.18125 +extern "C"
1.18126 +#endif
1.18127 +/* We use char because int might match the return type of a gcc2
1.18128 + builtin and then its argument prototype would still apply. */
1.18129 +char shl_load ();
1.18130 +int
1.18131 +main ()
1.18132 +{
1.18133 +shl_load ();
1.18134 + ;
1.18135 + return 0;
1.18136 +}
1.18137 +_ACEOF
1.18138 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18139 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18140 + (eval $ac_link) 2>conftest.er1
1.18141 + ac_status=$?
1.18142 + grep -v '^ *+' conftest.er1 >conftest.err
1.18143 + rm -f conftest.er1
1.18144 + cat conftest.err >&5
1.18145 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18146 + (exit $ac_status); } &&
1.18147 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18148 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18149 + (eval $ac_try) 2>&5
1.18150 + ac_status=$?
1.18151 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18152 + (exit $ac_status); }; } &&
1.18153 + { ac_try='test -s conftest$ac_exeext'
1.18154 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18155 + (eval $ac_try) 2>&5
1.18156 + ac_status=$?
1.18157 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18158 + (exit $ac_status); }; }; then
1.18159 + ac_cv_lib_dld_shl_load=yes
1.18160 +else
1.18161 + echo "$as_me: failed program was:" >&5
1.18162 +sed 's/^/| /' conftest.$ac_ext >&5
1.18163 +
1.18164 +ac_cv_lib_dld_shl_load=no
1.18165 +fi
1.18166 +rm -f conftest.err conftest.$ac_objext \
1.18167 + conftest$ac_exeext conftest.$ac_ext
1.18168 +LIBS=$ac_check_lib_save_LIBS
1.18169 +fi
1.18170 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
1.18171 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1.18172 +if test $ac_cv_lib_dld_shl_load = yes; then
1.18173 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
1.18174 +else
1.18175 + echo "$as_me:$LINENO: checking for dlopen" >&5
1.18176 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1.18177 +if test "${ac_cv_func_dlopen+set}" = set; then
1.18178 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18179 +else
1.18180 + cat >conftest.$ac_ext <<_ACEOF
1.18181 +/* confdefs.h. */
1.18182 +_ACEOF
1.18183 +cat confdefs.h >>conftest.$ac_ext
1.18184 +cat >>conftest.$ac_ext <<_ACEOF
1.18185 +/* end confdefs.h. */
1.18186 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
1.18187 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.18188 +#define dlopen innocuous_dlopen
1.18189 +
1.18190 +/* System header to define __stub macros and hopefully few prototypes,
1.18191 + which can conflict with char dlopen (); below.
1.18192 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.18193 + <limits.h> exists even on freestanding compilers. */
1.18194 +
1.18195 +#ifdef __STDC__
1.18196 +# include <limits.h>
1.18197 +#else
1.18198 +# include <assert.h>
1.18199 +#endif
1.18200 +
1.18201 +#undef dlopen
1.18202 +
1.18203 +/* Override any gcc2 internal prototype to avoid an error. */
1.18204 +#ifdef __cplusplus
1.18205 +extern "C"
1.18206 +{
1.18207 +#endif
1.18208 +/* We use char because int might match the return type of a gcc2
1.18209 + builtin and then its argument prototype would still apply. */
1.18210 +char dlopen ();
1.18211 +/* The GNU C library defines this for functions which it implements
1.18212 + to always fail with ENOSYS. Some functions are actually named
1.18213 + something starting with __ and the normal name is an alias. */
1.18214 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
1.18215 +choke me
1.18216 +#else
1.18217 +char (*f) () = dlopen;
1.18218 +#endif
1.18219 +#ifdef __cplusplus
1.18220 +}
1.18221 +#endif
1.18222 +
1.18223 +int
1.18224 +main ()
1.18225 +{
1.18226 +return f != dlopen;
1.18227 + ;
1.18228 + return 0;
1.18229 +}
1.18230 +_ACEOF
1.18231 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18232 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18233 + (eval $ac_link) 2>conftest.er1
1.18234 + ac_status=$?
1.18235 + grep -v '^ *+' conftest.er1 >conftest.err
1.18236 + rm -f conftest.er1
1.18237 + cat conftest.err >&5
1.18238 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18239 + (exit $ac_status); } &&
1.18240 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18241 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18242 + (eval $ac_try) 2>&5
1.18243 + ac_status=$?
1.18244 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18245 + (exit $ac_status); }; } &&
1.18246 + { ac_try='test -s conftest$ac_exeext'
1.18247 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18248 + (eval $ac_try) 2>&5
1.18249 + ac_status=$?
1.18250 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18251 + (exit $ac_status); }; }; then
1.18252 + ac_cv_func_dlopen=yes
1.18253 +else
1.18254 + echo "$as_me: failed program was:" >&5
1.18255 +sed 's/^/| /' conftest.$ac_ext >&5
1.18256 +
1.18257 +ac_cv_func_dlopen=no
1.18258 +fi
1.18259 +rm -f conftest.err conftest.$ac_objext \
1.18260 + conftest$ac_exeext conftest.$ac_ext
1.18261 +fi
1.18262 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
1.18263 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1.18264 +if test $ac_cv_func_dlopen = yes; then
1.18265 + lt_cv_dlopen="dlopen"
1.18266 +else
1.18267 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
1.18268 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1.18269 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
1.18270 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18271 +else
1.18272 + ac_check_lib_save_LIBS=$LIBS
1.18273 +LIBS="-ldl $LIBS"
1.18274 +cat >conftest.$ac_ext <<_ACEOF
1.18275 +/* confdefs.h. */
1.18276 +_ACEOF
1.18277 +cat confdefs.h >>conftest.$ac_ext
1.18278 +cat >>conftest.$ac_ext <<_ACEOF
1.18279 +/* end confdefs.h. */
1.18280 +
1.18281 +/* Override any gcc2 internal prototype to avoid an error. */
1.18282 +#ifdef __cplusplus
1.18283 +extern "C"
1.18284 +#endif
1.18285 +/* We use char because int might match the return type of a gcc2
1.18286 + builtin and then its argument prototype would still apply. */
1.18287 +char dlopen ();
1.18288 +int
1.18289 +main ()
1.18290 +{
1.18291 +dlopen ();
1.18292 + ;
1.18293 + return 0;
1.18294 +}
1.18295 +_ACEOF
1.18296 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18297 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18298 + (eval $ac_link) 2>conftest.er1
1.18299 + ac_status=$?
1.18300 + grep -v '^ *+' conftest.er1 >conftest.err
1.18301 + rm -f conftest.er1
1.18302 + cat conftest.err >&5
1.18303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18304 + (exit $ac_status); } &&
1.18305 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18306 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18307 + (eval $ac_try) 2>&5
1.18308 + ac_status=$?
1.18309 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18310 + (exit $ac_status); }; } &&
1.18311 + { ac_try='test -s conftest$ac_exeext'
1.18312 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18313 + (eval $ac_try) 2>&5
1.18314 + ac_status=$?
1.18315 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18316 + (exit $ac_status); }; }; then
1.18317 + ac_cv_lib_dl_dlopen=yes
1.18318 +else
1.18319 + echo "$as_me: failed program was:" >&5
1.18320 +sed 's/^/| /' conftest.$ac_ext >&5
1.18321 +
1.18322 +ac_cv_lib_dl_dlopen=no
1.18323 +fi
1.18324 +rm -f conftest.err conftest.$ac_objext \
1.18325 + conftest$ac_exeext conftest.$ac_ext
1.18326 +LIBS=$ac_check_lib_save_LIBS
1.18327 +fi
1.18328 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
1.18329 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1.18330 +if test $ac_cv_lib_dl_dlopen = yes; then
1.18331 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
1.18332 +else
1.18333 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
1.18334 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1.18335 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
1.18336 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18337 +else
1.18338 + ac_check_lib_save_LIBS=$LIBS
1.18339 +LIBS="-lsvld $LIBS"
1.18340 +cat >conftest.$ac_ext <<_ACEOF
1.18341 +/* confdefs.h. */
1.18342 +_ACEOF
1.18343 +cat confdefs.h >>conftest.$ac_ext
1.18344 +cat >>conftest.$ac_ext <<_ACEOF
1.18345 +/* end confdefs.h. */
1.18346 +
1.18347 +/* Override any gcc2 internal prototype to avoid an error. */
1.18348 +#ifdef __cplusplus
1.18349 +extern "C"
1.18350 +#endif
1.18351 +/* We use char because int might match the return type of a gcc2
1.18352 + builtin and then its argument prototype would still apply. */
1.18353 +char dlopen ();
1.18354 +int
1.18355 +main ()
1.18356 +{
1.18357 +dlopen ();
1.18358 + ;
1.18359 + return 0;
1.18360 +}
1.18361 +_ACEOF
1.18362 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18363 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18364 + (eval $ac_link) 2>conftest.er1
1.18365 + ac_status=$?
1.18366 + grep -v '^ *+' conftest.er1 >conftest.err
1.18367 + rm -f conftest.er1
1.18368 + cat conftest.err >&5
1.18369 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18370 + (exit $ac_status); } &&
1.18371 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18372 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18373 + (eval $ac_try) 2>&5
1.18374 + ac_status=$?
1.18375 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18376 + (exit $ac_status); }; } &&
1.18377 + { ac_try='test -s conftest$ac_exeext'
1.18378 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18379 + (eval $ac_try) 2>&5
1.18380 + ac_status=$?
1.18381 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18382 + (exit $ac_status); }; }; then
1.18383 + ac_cv_lib_svld_dlopen=yes
1.18384 +else
1.18385 + echo "$as_me: failed program was:" >&5
1.18386 +sed 's/^/| /' conftest.$ac_ext >&5
1.18387 +
1.18388 +ac_cv_lib_svld_dlopen=no
1.18389 +fi
1.18390 +rm -f conftest.err conftest.$ac_objext \
1.18391 + conftest$ac_exeext conftest.$ac_ext
1.18392 +LIBS=$ac_check_lib_save_LIBS
1.18393 +fi
1.18394 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
1.18395 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1.18396 +if test $ac_cv_lib_svld_dlopen = yes; then
1.18397 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
1.18398 +else
1.18399 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
1.18400 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1.18401 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
1.18402 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18403 +else
1.18404 + ac_check_lib_save_LIBS=$LIBS
1.18405 +LIBS="-ldld $LIBS"
1.18406 +cat >conftest.$ac_ext <<_ACEOF
1.18407 +/* confdefs.h. */
1.18408 +_ACEOF
1.18409 +cat confdefs.h >>conftest.$ac_ext
1.18410 +cat >>conftest.$ac_ext <<_ACEOF
1.18411 +/* end confdefs.h. */
1.18412 +
1.18413 +/* Override any gcc2 internal prototype to avoid an error. */
1.18414 +#ifdef __cplusplus
1.18415 +extern "C"
1.18416 +#endif
1.18417 +/* We use char because int might match the return type of a gcc2
1.18418 + builtin and then its argument prototype would still apply. */
1.18419 +char dld_link ();
1.18420 +int
1.18421 +main ()
1.18422 +{
1.18423 +dld_link ();
1.18424 + ;
1.18425 + return 0;
1.18426 +}
1.18427 +_ACEOF
1.18428 +rm -f conftest.$ac_objext conftest$ac_exeext
1.18429 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18430 + (eval $ac_link) 2>conftest.er1
1.18431 + ac_status=$?
1.18432 + grep -v '^ *+' conftest.er1 >conftest.err
1.18433 + rm -f conftest.er1
1.18434 + cat conftest.err >&5
1.18435 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18436 + (exit $ac_status); } &&
1.18437 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.18438 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18439 + (eval $ac_try) 2>&5
1.18440 + ac_status=$?
1.18441 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18442 + (exit $ac_status); }; } &&
1.18443 + { ac_try='test -s conftest$ac_exeext'
1.18444 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.18445 + (eval $ac_try) 2>&5
1.18446 + ac_status=$?
1.18447 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18448 + (exit $ac_status); }; }; then
1.18449 + ac_cv_lib_dld_dld_link=yes
1.18450 +else
1.18451 + echo "$as_me: failed program was:" >&5
1.18452 +sed 's/^/| /' conftest.$ac_ext >&5
1.18453 +
1.18454 +ac_cv_lib_dld_dld_link=no
1.18455 +fi
1.18456 +rm -f conftest.err conftest.$ac_objext \
1.18457 + conftest$ac_exeext conftest.$ac_ext
1.18458 +LIBS=$ac_check_lib_save_LIBS
1.18459 +fi
1.18460 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
1.18461 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1.18462 +if test $ac_cv_lib_dld_dld_link = yes; then
1.18463 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
1.18464 +fi
1.18465 +
1.18466 +
1.18467 +fi
1.18468 +
1.18469 +
1.18470 +fi
1.18471 +
1.18472 +
1.18473 +fi
1.18474 +
1.18475 +
1.18476 +fi
1.18477 +
1.18478 +
1.18479 +fi
1.18480 +
1.18481 + ;;
1.18482 + esac
1.18483 +
1.18484 + if test "x$lt_cv_dlopen" != xno; then
1.18485 + enable_dlopen=yes
1.18486 + else
1.18487 + enable_dlopen=no
1.18488 + fi
1.18489 +
1.18490 + case $lt_cv_dlopen in
1.18491 + dlopen)
1.18492 + save_CPPFLAGS="$CPPFLAGS"
1.18493 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.18494 +
1.18495 + save_LDFLAGS="$LDFLAGS"
1.18496 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.18497 +
1.18498 + save_LIBS="$LIBS"
1.18499 + LIBS="$lt_cv_dlopen_libs $LIBS"
1.18500 +
1.18501 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
1.18502 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1.18503 +if test "${lt_cv_dlopen_self+set}" = set; then
1.18504 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18505 +else
1.18506 + if test "$cross_compiling" = yes; then :
1.18507 + lt_cv_dlopen_self=cross
1.18508 +else
1.18509 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.18510 + lt_status=$lt_dlunknown
1.18511 + cat > conftest.$ac_ext <<EOF
1.18512 +#line 18509 "configure"
1.18513 +#include "confdefs.h"
1.18514 +
1.18515 +#if HAVE_DLFCN_H
1.18516 +#include <dlfcn.h>
1.18517 +#endif
1.18518 +
1.18519 +#include <stdio.h>
1.18520 +
1.18521 +#ifdef RTLD_GLOBAL
1.18522 +# define LT_DLGLOBAL RTLD_GLOBAL
1.18523 +#else
1.18524 +# ifdef DL_GLOBAL
1.18525 +# define LT_DLGLOBAL DL_GLOBAL
1.18526 +# else
1.18527 +# define LT_DLGLOBAL 0
1.18528 +# endif
1.18529 +#endif
1.18530 +
1.18531 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.18532 + find out it does not work in some platform. */
1.18533 +#ifndef LT_DLLAZY_OR_NOW
1.18534 +# ifdef RTLD_LAZY
1.18535 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.18536 +# else
1.18537 +# ifdef DL_LAZY
1.18538 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.18539 +# else
1.18540 +# ifdef RTLD_NOW
1.18541 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.18542 +# else
1.18543 +# ifdef DL_NOW
1.18544 +# define LT_DLLAZY_OR_NOW DL_NOW
1.18545 +# else
1.18546 +# define LT_DLLAZY_OR_NOW 0
1.18547 +# endif
1.18548 +# endif
1.18549 +# endif
1.18550 +# endif
1.18551 +#endif
1.18552 +
1.18553 +#ifdef __cplusplus
1.18554 +extern "C" void exit (int);
1.18555 +#endif
1.18556 +
1.18557 +void fnord() { int i=42;}
1.18558 +int main ()
1.18559 +{
1.18560 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.18561 + int status = $lt_dlunknown;
1.18562 +
1.18563 + if (self)
1.18564 + {
1.18565 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.18566 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.18567 + /* dlclose (self); */
1.18568 + }
1.18569 +
1.18570 + exit (status);
1.18571 +}
1.18572 +EOF
1.18573 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18574 + (eval $ac_link) 2>&5
1.18575 + ac_status=$?
1.18576 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18577 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.18578 + (./conftest; exit; ) >&5 2>/dev/null
1.18579 + lt_status=$?
1.18580 + case x$lt_status in
1.18581 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
1.18582 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
1.18583 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
1.18584 + esac
1.18585 + else :
1.18586 + # compilation failed
1.18587 + lt_cv_dlopen_self=no
1.18588 + fi
1.18589 +fi
1.18590 +rm -fr conftest*
1.18591 +
1.18592 +
1.18593 +fi
1.18594 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
1.18595 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1.18596 +
1.18597 + if test "x$lt_cv_dlopen_self" = xyes; then
1.18598 + LDFLAGS="$LDFLAGS $link_static_flag"
1.18599 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
1.18600 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1.18601 +if test "${lt_cv_dlopen_self_static+set}" = set; then
1.18602 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.18603 +else
1.18604 + if test "$cross_compiling" = yes; then :
1.18605 + lt_cv_dlopen_self_static=cross
1.18606 +else
1.18607 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1.18608 + lt_status=$lt_dlunknown
1.18609 + cat > conftest.$ac_ext <<EOF
1.18610 +#line 18607 "configure"
1.18611 +#include "confdefs.h"
1.18612 +
1.18613 +#if HAVE_DLFCN_H
1.18614 +#include <dlfcn.h>
1.18615 +#endif
1.18616 +
1.18617 +#include <stdio.h>
1.18618 +
1.18619 +#ifdef RTLD_GLOBAL
1.18620 +# define LT_DLGLOBAL RTLD_GLOBAL
1.18621 +#else
1.18622 +# ifdef DL_GLOBAL
1.18623 +# define LT_DLGLOBAL DL_GLOBAL
1.18624 +# else
1.18625 +# define LT_DLGLOBAL 0
1.18626 +# endif
1.18627 +#endif
1.18628 +
1.18629 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1.18630 + find out it does not work in some platform. */
1.18631 +#ifndef LT_DLLAZY_OR_NOW
1.18632 +# ifdef RTLD_LAZY
1.18633 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
1.18634 +# else
1.18635 +# ifdef DL_LAZY
1.18636 +# define LT_DLLAZY_OR_NOW DL_LAZY
1.18637 +# else
1.18638 +# ifdef RTLD_NOW
1.18639 +# define LT_DLLAZY_OR_NOW RTLD_NOW
1.18640 +# else
1.18641 +# ifdef DL_NOW
1.18642 +# define LT_DLLAZY_OR_NOW DL_NOW
1.18643 +# else
1.18644 +# define LT_DLLAZY_OR_NOW 0
1.18645 +# endif
1.18646 +# endif
1.18647 +# endif
1.18648 +# endif
1.18649 +#endif
1.18650 +
1.18651 +#ifdef __cplusplus
1.18652 +extern "C" void exit (int);
1.18653 +#endif
1.18654 +
1.18655 +void fnord() { int i=42;}
1.18656 +int main ()
1.18657 +{
1.18658 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1.18659 + int status = $lt_dlunknown;
1.18660 +
1.18661 + if (self)
1.18662 + {
1.18663 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1.18664 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1.18665 + /* dlclose (self); */
1.18666 + }
1.18667 +
1.18668 + exit (status);
1.18669 +}
1.18670 +EOF
1.18671 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.18672 + (eval $ac_link) 2>&5
1.18673 + ac_status=$?
1.18674 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.18675 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
1.18676 + (./conftest; exit; ) >&5 2>/dev/null
1.18677 + lt_status=$?
1.18678 + case x$lt_status in
1.18679 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
1.18680 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
1.18681 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
1.18682 + esac
1.18683 + else :
1.18684 + # compilation failed
1.18685 + lt_cv_dlopen_self_static=no
1.18686 + fi
1.18687 +fi
1.18688 +rm -fr conftest*
1.18689 +
1.18690 +
1.18691 +fi
1.18692 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
1.18693 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1.18694 + fi
1.18695 +
1.18696 + CPPFLAGS="$save_CPPFLAGS"
1.18697 + LDFLAGS="$save_LDFLAGS"
1.18698 + LIBS="$save_LIBS"
1.18699 + ;;
1.18700 + esac
1.18701 +
1.18702 + case $lt_cv_dlopen_self in
1.18703 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1.18704 + *) enable_dlopen_self=unknown ;;
1.18705 + esac
1.18706 +
1.18707 + case $lt_cv_dlopen_self_static in
1.18708 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1.18709 + *) enable_dlopen_self_static=unknown ;;
1.18710 + esac
1.18711 +fi
1.18712 +
1.18713 +
1.18714 +# The else clause should only fire when bootstrapping the
1.18715 +# libtool distribution, otherwise you forgot to ship ltmain.sh
1.18716 +# with your package, and you will get complaints that there are
1.18717 +# no rules to generate ltmain.sh.
1.18718 +if test -f "$ltmain"; then
1.18719 + # See if we are running on zsh, and set the options which allow our commands through
1.18720 + # without removal of \ escapes.
1.18721 + if test -n "${ZSH_VERSION+set}" ; then
1.18722 + setopt NO_GLOB_SUBST
1.18723 + fi
1.18724 + # Now quote all the things that may contain metacharacters while being
1.18725 + # careful not to overquote the AC_SUBSTed values. We take copies of the
1.18726 + # variables and quote the copies for generation of the libtool script.
1.18727 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.18728 + SED SHELL STRIP \
1.18729 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.18730 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.18731 + deplibs_check_method reload_flag reload_cmds need_locks \
1.18732 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.18733 + lt_cv_sys_global_symbol_to_c_name_address \
1.18734 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.18735 + old_postinstall_cmds old_postuninstall_cmds \
1.18736 + compiler_GCJ \
1.18737 + CC_GCJ \
1.18738 + LD_GCJ \
1.18739 + lt_prog_compiler_wl_GCJ \
1.18740 + lt_prog_compiler_pic_GCJ \
1.18741 + lt_prog_compiler_static_GCJ \
1.18742 + lt_prog_compiler_no_builtin_flag_GCJ \
1.18743 + export_dynamic_flag_spec_GCJ \
1.18744 + thread_safe_flag_spec_GCJ \
1.18745 + whole_archive_flag_spec_GCJ \
1.18746 + enable_shared_with_static_runtimes_GCJ \
1.18747 + old_archive_cmds_GCJ \
1.18748 + old_archive_from_new_cmds_GCJ \
1.18749 + predep_objects_GCJ \
1.18750 + postdep_objects_GCJ \
1.18751 + predeps_GCJ \
1.18752 + postdeps_GCJ \
1.18753 + compiler_lib_search_path_GCJ \
1.18754 + archive_cmds_GCJ \
1.18755 + archive_expsym_cmds_GCJ \
1.18756 + postinstall_cmds_GCJ \
1.18757 + postuninstall_cmds_GCJ \
1.18758 + old_archive_from_expsyms_cmds_GCJ \
1.18759 + allow_undefined_flag_GCJ \
1.18760 + no_undefined_flag_GCJ \
1.18761 + export_symbols_cmds_GCJ \
1.18762 + hardcode_libdir_flag_spec_GCJ \
1.18763 + hardcode_libdir_flag_spec_ld_GCJ \
1.18764 + hardcode_libdir_separator_GCJ \
1.18765 + hardcode_automatic_GCJ \
1.18766 + module_cmds_GCJ \
1.18767 + module_expsym_cmds_GCJ \
1.18768 + lt_cv_prog_compiler_c_o_GCJ \
1.18769 + exclude_expsyms_GCJ \
1.18770 + include_expsyms_GCJ; do
1.18771 +
1.18772 + case $var in
1.18773 + old_archive_cmds_GCJ | \
1.18774 + old_archive_from_new_cmds_GCJ | \
1.18775 + archive_cmds_GCJ | \
1.18776 + archive_expsym_cmds_GCJ | \
1.18777 + module_cmds_GCJ | \
1.18778 + module_expsym_cmds_GCJ | \
1.18779 + old_archive_from_expsyms_cmds_GCJ | \
1.18780 + export_symbols_cmds_GCJ | \
1.18781 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.18782 + postinstall_cmds | postuninstall_cmds | \
1.18783 + old_postinstall_cmds | old_postuninstall_cmds | \
1.18784 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.18785 + # Double-quote double-evaled strings.
1.18786 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.18787 + ;;
1.18788 + *)
1.18789 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.18790 + ;;
1.18791 + esac
1.18792 + done
1.18793 +
1.18794 + case $lt_echo in
1.18795 + *'\$0 --fallback-echo"')
1.18796 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1.18797 + ;;
1.18798 + esac
1.18799 +
1.18800 +cfgfile="$ofile"
1.18801 +
1.18802 + cat <<__EOF__ >> "$cfgfile"
1.18803 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.18804 +
1.18805 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.18806 +
1.18807 +# Shell to use when invoking shell scripts.
1.18808 +SHELL=$lt_SHELL
1.18809 +
1.18810 +# Whether or not to build shared libraries.
1.18811 +build_libtool_libs=$enable_shared
1.18812 +
1.18813 +# Whether or not to build static libraries.
1.18814 +build_old_libs=$enable_static
1.18815 +
1.18816 +# Whether or not to add -lc for building shared libraries.
1.18817 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
1.18818 +
1.18819 +# Whether or not to disallow shared libs when runtime libs are static
1.18820 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
1.18821 +
1.18822 +# Whether or not to optimize for fast installation.
1.18823 +fast_install=$enable_fast_install
1.18824 +
1.18825 +# The host system.
1.18826 +host_alias=$host_alias
1.18827 +host=$host
1.18828 +host_os=$host_os
1.18829 +
1.18830 +# The build system.
1.18831 +build_alias=$build_alias
1.18832 +build=$build
1.18833 +build_os=$build_os
1.18834 +
1.18835 +# An echo program that does not interpret backslashes.
1.18836 +echo=$lt_echo
1.18837 +
1.18838 +# The archiver.
1.18839 +AR=$lt_AR
1.18840 +AR_FLAGS=$lt_AR_FLAGS
1.18841 +
1.18842 +# A C compiler.
1.18843 +LTCC=$lt_LTCC
1.18844 +
1.18845 +# A language-specific compiler.
1.18846 +CC=$lt_compiler_GCJ
1.18847 +
1.18848 +# Is the compiler the GNU C compiler?
1.18849 +with_gcc=$GCC_GCJ
1.18850 +
1.18851 +# An ERE matcher.
1.18852 +EGREP=$lt_EGREP
1.18853 +
1.18854 +# The linker used to build libraries.
1.18855 +LD=$lt_LD_GCJ
1.18856 +
1.18857 +# Whether we need hard or soft links.
1.18858 +LN_S=$lt_LN_S
1.18859 +
1.18860 +# A BSD-compatible nm program.
1.18861 +NM=$lt_NM
1.18862 +
1.18863 +# A symbol stripping program
1.18864 +STRIP=$lt_STRIP
1.18865 +
1.18866 +# Used to examine libraries when file_magic_cmd begins "file"
1.18867 +MAGIC_CMD=$MAGIC_CMD
1.18868 +
1.18869 +# Used on cygwin: DLL creation program.
1.18870 +DLLTOOL="$DLLTOOL"
1.18871 +
1.18872 +# Used on cygwin: object dumper.
1.18873 +OBJDUMP="$OBJDUMP"
1.18874 +
1.18875 +# Used on cygwin: assembler.
1.18876 +AS="$AS"
1.18877 +
1.18878 +# The name of the directory that contains temporary libtool files.
1.18879 +objdir=$objdir
1.18880 +
1.18881 +# How to create reloadable object files.
1.18882 +reload_flag=$lt_reload_flag
1.18883 +reload_cmds=$lt_reload_cmds
1.18884 +
1.18885 +# How to pass a linker flag through the compiler.
1.18886 +wl=$lt_lt_prog_compiler_wl_GCJ
1.18887 +
1.18888 +# Object file suffix (normally "o").
1.18889 +objext="$ac_objext"
1.18890 +
1.18891 +# Old archive suffix (normally "a").
1.18892 +libext="$libext"
1.18893 +
1.18894 +# Shared library suffix (normally ".so").
1.18895 +shrext_cmds='$shrext_cmds'
1.18896 +
1.18897 +# Executable file suffix (normally "").
1.18898 +exeext="$exeext"
1.18899 +
1.18900 +# Additional compiler flags for building library objects.
1.18901 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
1.18902 +pic_mode=$pic_mode
1.18903 +
1.18904 +# What is the maximum length of a command?
1.18905 +max_cmd_len=$lt_cv_sys_max_cmd_len
1.18906 +
1.18907 +# Does compiler simultaneously support -c and -o options?
1.18908 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
1.18909 +
1.18910 +# Must we lock files when doing compilation?
1.18911 +need_locks=$lt_need_locks
1.18912 +
1.18913 +# Do we need the lib prefix for modules?
1.18914 +need_lib_prefix=$need_lib_prefix
1.18915 +
1.18916 +# Do we need a version for libraries?
1.18917 +need_version=$need_version
1.18918 +
1.18919 +# Whether dlopen is supported.
1.18920 +dlopen_support=$enable_dlopen
1.18921 +
1.18922 +# Whether dlopen of programs is supported.
1.18923 +dlopen_self=$enable_dlopen_self
1.18924 +
1.18925 +# Whether dlopen of statically linked programs is supported.
1.18926 +dlopen_self_static=$enable_dlopen_self_static
1.18927 +
1.18928 +# Compiler flag to prevent dynamic linking.
1.18929 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
1.18930 +
1.18931 +# Compiler flag to turn off builtin functions.
1.18932 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
1.18933 +
1.18934 +# Compiler flag to allow reflexive dlopens.
1.18935 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
1.18936 +
1.18937 +# Compiler flag to generate shared objects directly from archives.
1.18938 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
1.18939 +
1.18940 +# Compiler flag to generate thread-safe objects.
1.18941 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
1.18942 +
1.18943 +# Library versioning type.
1.18944 +version_type=$version_type
1.18945 +
1.18946 +# Format of library name prefix.
1.18947 +libname_spec=$lt_libname_spec
1.18948 +
1.18949 +# List of archive names. First name is the real one, the rest are links.
1.18950 +# The last name is the one that the linker finds with -lNAME.
1.18951 +library_names_spec=$lt_library_names_spec
1.18952 +
1.18953 +# The coded name of the library, if different from the real name.
1.18954 +soname_spec=$lt_soname_spec
1.18955 +
1.18956 +# Commands used to build and install an old-style archive.
1.18957 +RANLIB=$lt_RANLIB
1.18958 +old_archive_cmds=$lt_old_archive_cmds_GCJ
1.18959 +old_postinstall_cmds=$lt_old_postinstall_cmds
1.18960 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.18961 +
1.18962 +# Create an old-style archive from a shared archive.
1.18963 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
1.18964 +
1.18965 +# Create a temporary old-style archive to link instead of a shared archive.
1.18966 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
1.18967 +
1.18968 +# Commands used to build and install a shared archive.
1.18969 +archive_cmds=$lt_archive_cmds_GCJ
1.18970 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
1.18971 +postinstall_cmds=$lt_postinstall_cmds
1.18972 +postuninstall_cmds=$lt_postuninstall_cmds
1.18973 +
1.18974 +# Commands used to build a loadable module (assumed same as above if empty)
1.18975 +module_cmds=$lt_module_cmds_GCJ
1.18976 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
1.18977 +
1.18978 +# Commands to strip libraries.
1.18979 +old_striplib=$lt_old_striplib
1.18980 +striplib=$lt_striplib
1.18981 +
1.18982 +# Dependencies to place before the objects being linked to create a
1.18983 +# shared library.
1.18984 +predep_objects=$lt_predep_objects_GCJ
1.18985 +
1.18986 +# Dependencies to place after the objects being linked to create a
1.18987 +# shared library.
1.18988 +postdep_objects=$lt_postdep_objects_GCJ
1.18989 +
1.18990 +# Dependencies to place before the objects being linked to create a
1.18991 +# shared library.
1.18992 +predeps=$lt_predeps_GCJ
1.18993 +
1.18994 +# Dependencies to place after the objects being linked to create a
1.18995 +# shared library.
1.18996 +postdeps=$lt_postdeps_GCJ
1.18997 +
1.18998 +# The library search path used internally by the compiler when linking
1.18999 +# a shared library.
1.19000 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
1.19001 +
1.19002 +# Method to check whether dependent libraries are shared objects.
1.19003 +deplibs_check_method=$lt_deplibs_check_method
1.19004 +
1.19005 +# Command to use when deplibs_check_method == file_magic.
1.19006 +file_magic_cmd=$lt_file_magic_cmd
1.19007 +
1.19008 +# Flag that allows shared libraries with undefined symbols to be built.
1.19009 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
1.19010 +
1.19011 +# Flag that forces no undefined symbols.
1.19012 +no_undefined_flag=$lt_no_undefined_flag_GCJ
1.19013 +
1.19014 +# Commands used to finish a libtool library installation in a directory.
1.19015 +finish_cmds=$lt_finish_cmds
1.19016 +
1.19017 +# Same as above, but a single script fragment to be evaled but not shown.
1.19018 +finish_eval=$lt_finish_eval
1.19019 +
1.19020 +# Take the output of nm and produce a listing of raw symbols and C names.
1.19021 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.19022 +
1.19023 +# Transform the output of nm in a proper C declaration
1.19024 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.19025 +
1.19026 +# Transform the output of nm in a C name address pair
1.19027 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.19028 +
1.19029 +# This is the shared library runtime path variable.
1.19030 +runpath_var=$runpath_var
1.19031 +
1.19032 +# This is the shared library path variable.
1.19033 +shlibpath_var=$shlibpath_var
1.19034 +
1.19035 +# Is shlibpath searched before the hard-coded library search path?
1.19036 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.19037 +
1.19038 +# How to hardcode a shared library path into an executable.
1.19039 +hardcode_action=$hardcode_action_GCJ
1.19040 +
1.19041 +# Whether we should hardcode library paths into libraries.
1.19042 +hardcode_into_libs=$hardcode_into_libs
1.19043 +
1.19044 +# Flag to hardcode \$libdir into a binary during linking.
1.19045 +# This must work even if \$libdir does not exist.
1.19046 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
1.19047 +
1.19048 +# If ld is used when linking, flag to hardcode \$libdir into
1.19049 +# a binary during linking. This must work even if \$libdir does
1.19050 +# not exist.
1.19051 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
1.19052 +
1.19053 +# Whether we need a single -rpath flag with a separated argument.
1.19054 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
1.19055 +
1.19056 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.19057 +# resulting binary.
1.19058 +hardcode_direct=$hardcode_direct_GCJ
1.19059 +
1.19060 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.19061 +# resulting binary.
1.19062 +hardcode_minus_L=$hardcode_minus_L_GCJ
1.19063 +
1.19064 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.19065 +# the resulting binary.
1.19066 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
1.19067 +
1.19068 +# Set to yes if building a shared library automatically hardcodes DIR into the library
1.19069 +# and all subsequent libraries and executables linked against it.
1.19070 +hardcode_automatic=$hardcode_automatic_GCJ
1.19071 +
1.19072 +# Variables whose values should be saved in libtool wrapper scripts and
1.19073 +# restored at relink time.
1.19074 +variables_saved_for_relink="$variables_saved_for_relink"
1.19075 +
1.19076 +# Whether libtool must link a program against all its dependency libraries.
1.19077 +link_all_deplibs=$link_all_deplibs_GCJ
1.19078 +
1.19079 +# Compile-time system search path for libraries
1.19080 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.19081 +
1.19082 +# Run-time system search path for libraries
1.19083 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.19084 +
1.19085 +# Fix the shell variable \$srcfile for the compiler.
1.19086 +fix_srcfile_path="$fix_srcfile_path_GCJ"
1.19087 +
1.19088 +# Set to yes if exported symbols are required.
1.19089 +always_export_symbols=$always_export_symbols_GCJ
1.19090 +
1.19091 +# The commands to list exported symbols.
1.19092 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
1.19093 +
1.19094 +# The commands to extract the exported symbol list from a shared archive.
1.19095 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.19096 +
1.19097 +# Symbols that should not be listed in the preloaded symbols.
1.19098 +exclude_expsyms=$lt_exclude_expsyms_GCJ
1.19099 +
1.19100 +# Symbols that must always be exported.
1.19101 +include_expsyms=$lt_include_expsyms_GCJ
1.19102 +
1.19103 +# ### END LIBTOOL TAG CONFIG: $tagname
1.19104 +
1.19105 +__EOF__
1.19106 +
1.19107 +
1.19108 +else
1.19109 + # If there is no Makefile yet, we rely on a make rule to execute
1.19110 + # `config.status --recheck' to rerun these tests and create the
1.19111 + # libtool script then.
1.19112 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.19113 + if test -f "$ltmain_in"; then
1.19114 + test -f Makefile && make "$ltmain"
1.19115 + fi
1.19116 +fi
1.19117 +
1.19118 +
1.19119 +ac_ext=c
1.19120 +ac_cpp='$CPP $CPPFLAGS'
1.19121 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.19122 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.19123 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.19124 +
1.19125 +CC="$lt_save_CC"
1.19126 +
1.19127 + else
1.19128 + tagname=""
1.19129 + fi
1.19130 + ;;
1.19131 +
1.19132 + RC)
1.19133 +
1.19134 +
1.19135 +
1.19136 +# Source file extension for RC test sources.
1.19137 +ac_ext=rc
1.19138 +
1.19139 +# Object file extension for compiled RC test sources.
1.19140 +objext=o
1.19141 +objext_RC=$objext
1.19142 +
1.19143 +# Code to be used in simple compile tests
1.19144 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
1.19145 +
1.19146 +# Code to be used in simple link tests
1.19147 +lt_simple_link_test_code="$lt_simple_compile_test_code"
1.19148 +
1.19149 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
1.19150 +
1.19151 +# If no C compiler was specified, use CC.
1.19152 +LTCC=${LTCC-"$CC"}
1.19153 +
1.19154 +# Allow CC to be a program name with arguments.
1.19155 +compiler=$CC
1.19156 +
1.19157 +
1.19158 +# save warnings/boilerplate of simple test code
1.19159 +ac_outfile=conftest.$ac_objext
1.19160 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1.19161 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.19162 +_lt_compiler_boilerplate=`cat conftest.err`
1.19163 +$rm conftest*
1.19164 +
1.19165 +ac_outfile=conftest.$ac_objext
1.19166 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1.19167 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
1.19168 +_lt_linker_boilerplate=`cat conftest.err`
1.19169 +$rm conftest*
1.19170 +
1.19171 +
1.19172 +# Allow CC to be a program name with arguments.
1.19173 +lt_save_CC="$CC"
1.19174 +CC=${RC-"windres"}
1.19175 +compiler=$CC
1.19176 +compiler_RC=$CC
1.19177 +for cc_temp in $compiler""; do
1.19178 + case $cc_temp in
1.19179 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
1.19180 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
1.19181 + \-*) ;;
1.19182 + *) break;;
1.19183 + esac
1.19184 +done
1.19185 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.19186 +
1.19187 +lt_cv_prog_compiler_c_o_RC=yes
1.19188 +
1.19189 +# The else clause should only fire when bootstrapping the
1.19190 +# libtool distribution, otherwise you forgot to ship ltmain.sh
1.19191 +# with your package, and you will get complaints that there are
1.19192 +# no rules to generate ltmain.sh.
1.19193 +if test -f "$ltmain"; then
1.19194 + # See if we are running on zsh, and set the options which allow our commands through
1.19195 + # without removal of \ escapes.
1.19196 + if test -n "${ZSH_VERSION+set}" ; then
1.19197 + setopt NO_GLOB_SUBST
1.19198 + fi
1.19199 + # Now quote all the things that may contain metacharacters while being
1.19200 + # careful not to overquote the AC_SUBSTed values. We take copies of the
1.19201 + # variables and quote the copies for generation of the libtool script.
1.19202 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
1.19203 + SED SHELL STRIP \
1.19204 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
1.19205 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
1.19206 + deplibs_check_method reload_flag reload_cmds need_locks \
1.19207 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
1.19208 + lt_cv_sys_global_symbol_to_c_name_address \
1.19209 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
1.19210 + old_postinstall_cmds old_postuninstall_cmds \
1.19211 + compiler_RC \
1.19212 + CC_RC \
1.19213 + LD_RC \
1.19214 + lt_prog_compiler_wl_RC \
1.19215 + lt_prog_compiler_pic_RC \
1.19216 + lt_prog_compiler_static_RC \
1.19217 + lt_prog_compiler_no_builtin_flag_RC \
1.19218 + export_dynamic_flag_spec_RC \
1.19219 + thread_safe_flag_spec_RC \
1.19220 + whole_archive_flag_spec_RC \
1.19221 + enable_shared_with_static_runtimes_RC \
1.19222 + old_archive_cmds_RC \
1.19223 + old_archive_from_new_cmds_RC \
1.19224 + predep_objects_RC \
1.19225 + postdep_objects_RC \
1.19226 + predeps_RC \
1.19227 + postdeps_RC \
1.19228 + compiler_lib_search_path_RC \
1.19229 + archive_cmds_RC \
1.19230 + archive_expsym_cmds_RC \
1.19231 + postinstall_cmds_RC \
1.19232 + postuninstall_cmds_RC \
1.19233 + old_archive_from_expsyms_cmds_RC \
1.19234 + allow_undefined_flag_RC \
1.19235 + no_undefined_flag_RC \
1.19236 + export_symbols_cmds_RC \
1.19237 + hardcode_libdir_flag_spec_RC \
1.19238 + hardcode_libdir_flag_spec_ld_RC \
1.19239 + hardcode_libdir_separator_RC \
1.19240 + hardcode_automatic_RC \
1.19241 + module_cmds_RC \
1.19242 + module_expsym_cmds_RC \
1.19243 + lt_cv_prog_compiler_c_o_RC \
1.19244 + exclude_expsyms_RC \
1.19245 + include_expsyms_RC; do
1.19246 +
1.19247 + case $var in
1.19248 + old_archive_cmds_RC | \
1.19249 + old_archive_from_new_cmds_RC | \
1.19250 + archive_cmds_RC | \
1.19251 + archive_expsym_cmds_RC | \
1.19252 + module_cmds_RC | \
1.19253 + module_expsym_cmds_RC | \
1.19254 + old_archive_from_expsyms_cmds_RC | \
1.19255 + export_symbols_cmds_RC | \
1.19256 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
1.19257 + postinstall_cmds | postuninstall_cmds | \
1.19258 + old_postinstall_cmds | old_postuninstall_cmds | \
1.19259 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
1.19260 + # Double-quote double-evaled strings.
1.19261 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
1.19262 + ;;
1.19263 + *)
1.19264 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
1.19265 + ;;
1.19266 + esac
1.19267 + done
1.19268 +
1.19269 + case $lt_echo in
1.19270 + *'\$0 --fallback-echo"')
1.19271 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
1.19272 + ;;
1.19273 + esac
1.19274 +
1.19275 +cfgfile="$ofile"
1.19276 +
1.19277 + cat <<__EOF__ >> "$cfgfile"
1.19278 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
1.19279 +
1.19280 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.19281 +
1.19282 +# Shell to use when invoking shell scripts.
1.19283 +SHELL=$lt_SHELL
1.19284 +
1.19285 +# Whether or not to build shared libraries.
1.19286 +build_libtool_libs=$enable_shared
1.19287 +
1.19288 +# Whether or not to build static libraries.
1.19289 +build_old_libs=$enable_static
1.19290 +
1.19291 +# Whether or not to add -lc for building shared libraries.
1.19292 +build_libtool_need_lc=$archive_cmds_need_lc_RC
1.19293 +
1.19294 +# Whether or not to disallow shared libs when runtime libs are static
1.19295 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
1.19296 +
1.19297 +# Whether or not to optimize for fast installation.
1.19298 +fast_install=$enable_fast_install
1.19299 +
1.19300 +# The host system.
1.19301 +host_alias=$host_alias
1.19302 +host=$host
1.19303 +host_os=$host_os
1.19304 +
1.19305 +# The build system.
1.19306 +build_alias=$build_alias
1.19307 +build=$build
1.19308 +build_os=$build_os
1.19309 +
1.19310 +# An echo program that does not interpret backslashes.
1.19311 +echo=$lt_echo
1.19312 +
1.19313 +# The archiver.
1.19314 +AR=$lt_AR
1.19315 +AR_FLAGS=$lt_AR_FLAGS
1.19316 +
1.19317 +# A C compiler.
1.19318 +LTCC=$lt_LTCC
1.19319 +
1.19320 +# A language-specific compiler.
1.19321 +CC=$lt_compiler_RC
1.19322 +
1.19323 +# Is the compiler the GNU C compiler?
1.19324 +with_gcc=$GCC_RC
1.19325 +
1.19326 +# An ERE matcher.
1.19327 +EGREP=$lt_EGREP
1.19328 +
1.19329 +# The linker used to build libraries.
1.19330 +LD=$lt_LD_RC
1.19331 +
1.19332 +# Whether we need hard or soft links.
1.19333 +LN_S=$lt_LN_S
1.19334 +
1.19335 +# A BSD-compatible nm program.
1.19336 +NM=$lt_NM
1.19337 +
1.19338 +# A symbol stripping program
1.19339 +STRIP=$lt_STRIP
1.19340 +
1.19341 +# Used to examine libraries when file_magic_cmd begins "file"
1.19342 +MAGIC_CMD=$MAGIC_CMD
1.19343 +
1.19344 +# Used on cygwin: DLL creation program.
1.19345 +DLLTOOL="$DLLTOOL"
1.19346 +
1.19347 +# Used on cygwin: object dumper.
1.19348 +OBJDUMP="$OBJDUMP"
1.19349 +
1.19350 +# Used on cygwin: assembler.
1.19351 +AS="$AS"
1.19352 +
1.19353 +# The name of the directory that contains temporary libtool files.
1.19354 +objdir=$objdir
1.19355 +
1.19356 +# How to create reloadable object files.
1.19357 +reload_flag=$lt_reload_flag
1.19358 +reload_cmds=$lt_reload_cmds
1.19359 +
1.19360 +# How to pass a linker flag through the compiler.
1.19361 +wl=$lt_lt_prog_compiler_wl_RC
1.19362 +
1.19363 +# Object file suffix (normally "o").
1.19364 +objext="$ac_objext"
1.19365 +
1.19366 +# Old archive suffix (normally "a").
1.19367 +libext="$libext"
1.19368 +
1.19369 +# Shared library suffix (normally ".so").
1.19370 +shrext_cmds='$shrext_cmds'
1.19371 +
1.19372 +# Executable file suffix (normally "").
1.19373 +exeext="$exeext"
1.19374 +
1.19375 +# Additional compiler flags for building library objects.
1.19376 +pic_flag=$lt_lt_prog_compiler_pic_RC
1.19377 +pic_mode=$pic_mode
1.19378 +
1.19379 +# What is the maximum length of a command?
1.19380 +max_cmd_len=$lt_cv_sys_max_cmd_len
1.19381 +
1.19382 +# Does compiler simultaneously support -c and -o options?
1.19383 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
1.19384 +
1.19385 +# Must we lock files when doing compilation?
1.19386 +need_locks=$lt_need_locks
1.19387 +
1.19388 +# Do we need the lib prefix for modules?
1.19389 +need_lib_prefix=$need_lib_prefix
1.19390 +
1.19391 +# Do we need a version for libraries?
1.19392 +need_version=$need_version
1.19393 +
1.19394 +# Whether dlopen is supported.
1.19395 +dlopen_support=$enable_dlopen
1.19396 +
1.19397 +# Whether dlopen of programs is supported.
1.19398 +dlopen_self=$enable_dlopen_self
1.19399 +
1.19400 +# Whether dlopen of statically linked programs is supported.
1.19401 +dlopen_self_static=$enable_dlopen_self_static
1.19402 +
1.19403 +# Compiler flag to prevent dynamic linking.
1.19404 +link_static_flag=$lt_lt_prog_compiler_static_RC
1.19405 +
1.19406 +# Compiler flag to turn off builtin functions.
1.19407 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
1.19408 +
1.19409 +# Compiler flag to allow reflexive dlopens.
1.19410 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
1.19411 +
1.19412 +# Compiler flag to generate shared objects directly from archives.
1.19413 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
1.19414 +
1.19415 +# Compiler flag to generate thread-safe objects.
1.19416 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
1.19417 +
1.19418 +# Library versioning type.
1.19419 +version_type=$version_type
1.19420 +
1.19421 +# Format of library name prefix.
1.19422 +libname_spec=$lt_libname_spec
1.19423 +
1.19424 +# List of archive names. First name is the real one, the rest are links.
1.19425 +# The last name is the one that the linker finds with -lNAME.
1.19426 +library_names_spec=$lt_library_names_spec
1.19427 +
1.19428 +# The coded name of the library, if different from the real name.
1.19429 +soname_spec=$lt_soname_spec
1.19430 +
1.19431 +# Commands used to build and install an old-style archive.
1.19432 +RANLIB=$lt_RANLIB
1.19433 +old_archive_cmds=$lt_old_archive_cmds_RC
1.19434 +old_postinstall_cmds=$lt_old_postinstall_cmds
1.19435 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.19436 +
1.19437 +# Create an old-style archive from a shared archive.
1.19438 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
1.19439 +
1.19440 +# Create a temporary old-style archive to link instead of a shared archive.
1.19441 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
1.19442 +
1.19443 +# Commands used to build and install a shared archive.
1.19444 +archive_cmds=$lt_archive_cmds_RC
1.19445 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
1.19446 +postinstall_cmds=$lt_postinstall_cmds
1.19447 +postuninstall_cmds=$lt_postuninstall_cmds
1.19448 +
1.19449 +# Commands used to build a loadable module (assumed same as above if empty)
1.19450 +module_cmds=$lt_module_cmds_RC
1.19451 +module_expsym_cmds=$lt_module_expsym_cmds_RC
1.19452 +
1.19453 +# Commands to strip libraries.
1.19454 +old_striplib=$lt_old_striplib
1.19455 +striplib=$lt_striplib
1.19456 +
1.19457 +# Dependencies to place before the objects being linked to create a
1.19458 +# shared library.
1.19459 +predep_objects=$lt_predep_objects_RC
1.19460 +
1.19461 +# Dependencies to place after the objects being linked to create a
1.19462 +# shared library.
1.19463 +postdep_objects=$lt_postdep_objects_RC
1.19464 +
1.19465 +# Dependencies to place before the objects being linked to create a
1.19466 +# shared library.
1.19467 +predeps=$lt_predeps_RC
1.19468 +
1.19469 +# Dependencies to place after the objects being linked to create a
1.19470 +# shared library.
1.19471 +postdeps=$lt_postdeps_RC
1.19472 +
1.19473 +# The library search path used internally by the compiler when linking
1.19474 +# a shared library.
1.19475 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
1.19476 +
1.19477 +# Method to check whether dependent libraries are shared objects.
1.19478 +deplibs_check_method=$lt_deplibs_check_method
1.19479 +
1.19480 +# Command to use when deplibs_check_method == file_magic.
1.19481 +file_magic_cmd=$lt_file_magic_cmd
1.19482 +
1.19483 +# Flag that allows shared libraries with undefined symbols to be built.
1.19484 +allow_undefined_flag=$lt_allow_undefined_flag_RC
1.19485 +
1.19486 +# Flag that forces no undefined symbols.
1.19487 +no_undefined_flag=$lt_no_undefined_flag_RC
1.19488 +
1.19489 +# Commands used to finish a libtool library installation in a directory.
1.19490 +finish_cmds=$lt_finish_cmds
1.19491 +
1.19492 +# Same as above, but a single script fragment to be evaled but not shown.
1.19493 +finish_eval=$lt_finish_eval
1.19494 +
1.19495 +# Take the output of nm and produce a listing of raw symbols and C names.
1.19496 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.19497 +
1.19498 +# Transform the output of nm in a proper C declaration
1.19499 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.19500 +
1.19501 +# Transform the output of nm in a C name address pair
1.19502 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.19503 +
1.19504 +# This is the shared library runtime path variable.
1.19505 +runpath_var=$runpath_var
1.19506 +
1.19507 +# This is the shared library path variable.
1.19508 +shlibpath_var=$shlibpath_var
1.19509 +
1.19510 +# Is shlibpath searched before the hard-coded library search path?
1.19511 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.19512 +
1.19513 +# How to hardcode a shared library path into an executable.
1.19514 +hardcode_action=$hardcode_action_RC
1.19515 +
1.19516 +# Whether we should hardcode library paths into libraries.
1.19517 +hardcode_into_libs=$hardcode_into_libs
1.19518 +
1.19519 +# Flag to hardcode \$libdir into a binary during linking.
1.19520 +# This must work even if \$libdir does not exist.
1.19521 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
1.19522 +
1.19523 +# If ld is used when linking, flag to hardcode \$libdir into
1.19524 +# a binary during linking. This must work even if \$libdir does
1.19525 +# not exist.
1.19526 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
1.19527 +
1.19528 +# Whether we need a single -rpath flag with a separated argument.
1.19529 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
1.19530 +
1.19531 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
1.19532 +# resulting binary.
1.19533 +hardcode_direct=$hardcode_direct_RC
1.19534 +
1.19535 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
1.19536 +# resulting binary.
1.19537 +hardcode_minus_L=$hardcode_minus_L_RC
1.19538 +
1.19539 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
1.19540 +# the resulting binary.
1.19541 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
1.19542 +
1.19543 +# Set to yes if building a shared library automatically hardcodes DIR into the library
1.19544 +# and all subsequent libraries and executables linked against it.
1.19545 +hardcode_automatic=$hardcode_automatic_RC
1.19546 +
1.19547 +# Variables whose values should be saved in libtool wrapper scripts and
1.19548 +# restored at relink time.
1.19549 +variables_saved_for_relink="$variables_saved_for_relink"
1.19550 +
1.19551 +# Whether libtool must link a program against all its dependency libraries.
1.19552 +link_all_deplibs=$link_all_deplibs_RC
1.19553 +
1.19554 +# Compile-time system search path for libraries
1.19555 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.19556 +
1.19557 +# Run-time system search path for libraries
1.19558 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.19559 +
1.19560 +# Fix the shell variable \$srcfile for the compiler.
1.19561 +fix_srcfile_path="$fix_srcfile_path_RC"
1.19562 +
1.19563 +# Set to yes if exported symbols are required.
1.19564 +always_export_symbols=$always_export_symbols_RC
1.19565 +
1.19566 +# The commands to list exported symbols.
1.19567 +export_symbols_cmds=$lt_export_symbols_cmds_RC
1.19568 +
1.19569 +# The commands to extract the exported symbol list from a shared archive.
1.19570 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.19571 +
1.19572 +# Symbols that should not be listed in the preloaded symbols.
1.19573 +exclude_expsyms=$lt_exclude_expsyms_RC
1.19574 +
1.19575 +# Symbols that must always be exported.
1.19576 +include_expsyms=$lt_include_expsyms_RC
1.19577 +
1.19578 +# ### END LIBTOOL TAG CONFIG: $tagname
1.19579 +
1.19580 +__EOF__
1.19581 +
1.19582 +
1.19583 +else
1.19584 + # If there is no Makefile yet, we rely on a make rule to execute
1.19585 + # `config.status --recheck' to rerun these tests and create the
1.19586 + # libtool script then.
1.19587 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
1.19588 + if test -f "$ltmain_in"; then
1.19589 + test -f Makefile && make "$ltmain"
1.19590 + fi
1.19591 +fi
1.19592 +
1.19593 +
1.19594 +ac_ext=c
1.19595 +ac_cpp='$CPP $CPPFLAGS'
1.19596 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.19597 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.19598 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.19599 +
1.19600 +CC="$lt_save_CC"
1.19601 +
1.19602 + ;;
1.19603 +
1.19604 + *)
1.19605 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
1.19606 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
1.19607 + { (exit 1); exit 1; }; }
1.19608 + ;;
1.19609 + esac
1.19610 +
1.19611 + # Append the new tag name to the list of available tags.
1.19612 + if test -n "$tagname" ; then
1.19613 + available_tags="$available_tags $tagname"
1.19614 + fi
1.19615 + fi
1.19616 + done
1.19617 + IFS="$lt_save_ifs"
1.19618 +
1.19619 + # Now substitute the updated list of available tags.
1.19620 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1.19621 + mv "${ofile}T" "$ofile"
1.19622 + chmod +x "$ofile"
1.19623 + else
1.19624 + rm -f "${ofile}T"
1.19625 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
1.19626 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
1.19627 + { (exit 1); exit 1; }; }
1.19628 + fi
1.19629 +fi
1.19630 +
1.19631 +
1.19632 +
1.19633 +# This can be used to rebuild libtool when needed
1.19634 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.19635 +
1.19636 +# Always use our own libtool.
1.19637 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.19638 +
1.19639 +# Prevent multiple expansion
1.19640 +
1.19641 +
1.19642 +
1.19643 +
1.19644 +
1.19645 +
1.19646 +
1.19647 +
1.19648 +
1.19649 +
1.19650 +
1.19651 +
1.19652 +
1.19653 +
1.19654 +
1.19655 +
1.19656 +
1.19657 +
1.19658 +
1.19659 +
1.19660 +
1.19661 + ac_config_headers="$ac_config_headers config.h"
1.19662 +
1.19663 +
1.19664 +ACLOCAL_AMFLAGS="-I m4"
1.19665 +
1.19666 +
1.19667 +ac_ext=c
1.19668 +ac_cpp='$CPP $CPPFLAGS'
1.19669 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.19670 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.19671 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.19672 +if test -n "$ac_tool_prefix"; then
1.19673 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1.19674 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.19675 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19676 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19677 +if test "${ac_cv_prog_CC+set}" = set; then
1.19678 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19679 +else
1.19680 + if test -n "$CC"; then
1.19681 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.19682 +else
1.19683 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19684 +for as_dir in $PATH
1.19685 +do
1.19686 + IFS=$as_save_IFS
1.19687 + test -z "$as_dir" && as_dir=.
1.19688 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19689 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19690 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
1.19691 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19692 + break 2
1.19693 + fi
1.19694 +done
1.19695 +done
1.19696 +
1.19697 +fi
1.19698 +fi
1.19699 +CC=$ac_cv_prog_CC
1.19700 +if test -n "$CC"; then
1.19701 + echo "$as_me:$LINENO: result: $CC" >&5
1.19702 +echo "${ECHO_T}$CC" >&6
1.19703 +else
1.19704 + echo "$as_me:$LINENO: result: no" >&5
1.19705 +echo "${ECHO_T}no" >&6
1.19706 +fi
1.19707 +
1.19708 +fi
1.19709 +if test -z "$ac_cv_prog_CC"; then
1.19710 + ac_ct_CC=$CC
1.19711 + # Extract the first word of "gcc", so it can be a program name with args.
1.19712 +set dummy gcc; ac_word=$2
1.19713 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19714 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19715 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.19716 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19717 +else
1.19718 + if test -n "$ac_ct_CC"; then
1.19719 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.19720 +else
1.19721 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19722 +for as_dir in $PATH
1.19723 +do
1.19724 + IFS=$as_save_IFS
1.19725 + test -z "$as_dir" && as_dir=.
1.19726 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19727 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19728 + ac_cv_prog_ac_ct_CC="gcc"
1.19729 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19730 + break 2
1.19731 + fi
1.19732 +done
1.19733 +done
1.19734 +
1.19735 +fi
1.19736 +fi
1.19737 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.19738 +if test -n "$ac_ct_CC"; then
1.19739 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.19740 +echo "${ECHO_T}$ac_ct_CC" >&6
1.19741 +else
1.19742 + echo "$as_me:$LINENO: result: no" >&5
1.19743 +echo "${ECHO_T}no" >&6
1.19744 +fi
1.19745 +
1.19746 + CC=$ac_ct_CC
1.19747 +else
1.19748 + CC="$ac_cv_prog_CC"
1.19749 +fi
1.19750 +
1.19751 +if test -z "$CC"; then
1.19752 + if test -n "$ac_tool_prefix"; then
1.19753 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.19754 +set dummy ${ac_tool_prefix}cc; ac_word=$2
1.19755 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19756 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19757 +if test "${ac_cv_prog_CC+set}" = set; then
1.19758 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19759 +else
1.19760 + if test -n "$CC"; then
1.19761 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.19762 +else
1.19763 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19764 +for as_dir in $PATH
1.19765 +do
1.19766 + IFS=$as_save_IFS
1.19767 + test -z "$as_dir" && as_dir=.
1.19768 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19769 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19770 + ac_cv_prog_CC="${ac_tool_prefix}cc"
1.19771 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19772 + break 2
1.19773 + fi
1.19774 +done
1.19775 +done
1.19776 +
1.19777 +fi
1.19778 +fi
1.19779 +CC=$ac_cv_prog_CC
1.19780 +if test -n "$CC"; then
1.19781 + echo "$as_me:$LINENO: result: $CC" >&5
1.19782 +echo "${ECHO_T}$CC" >&6
1.19783 +else
1.19784 + echo "$as_me:$LINENO: result: no" >&5
1.19785 +echo "${ECHO_T}no" >&6
1.19786 +fi
1.19787 +
1.19788 +fi
1.19789 +if test -z "$ac_cv_prog_CC"; then
1.19790 + ac_ct_CC=$CC
1.19791 + # Extract the first word of "cc", so it can be a program name with args.
1.19792 +set dummy cc; ac_word=$2
1.19793 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19794 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19795 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.19796 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19797 +else
1.19798 + if test -n "$ac_ct_CC"; then
1.19799 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.19800 +else
1.19801 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19802 +for as_dir in $PATH
1.19803 +do
1.19804 + IFS=$as_save_IFS
1.19805 + test -z "$as_dir" && as_dir=.
1.19806 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19807 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19808 + ac_cv_prog_ac_ct_CC="cc"
1.19809 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19810 + break 2
1.19811 + fi
1.19812 +done
1.19813 +done
1.19814 +
1.19815 +fi
1.19816 +fi
1.19817 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.19818 +if test -n "$ac_ct_CC"; then
1.19819 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.19820 +echo "${ECHO_T}$ac_ct_CC" >&6
1.19821 +else
1.19822 + echo "$as_me:$LINENO: result: no" >&5
1.19823 +echo "${ECHO_T}no" >&6
1.19824 +fi
1.19825 +
1.19826 + CC=$ac_ct_CC
1.19827 +else
1.19828 + CC="$ac_cv_prog_CC"
1.19829 +fi
1.19830 +
1.19831 +fi
1.19832 +if test -z "$CC"; then
1.19833 + # Extract the first word of "cc", so it can be a program name with args.
1.19834 +set dummy cc; ac_word=$2
1.19835 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19836 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19837 +if test "${ac_cv_prog_CC+set}" = set; then
1.19838 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19839 +else
1.19840 + if test -n "$CC"; then
1.19841 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.19842 +else
1.19843 + ac_prog_rejected=no
1.19844 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19845 +for as_dir in $PATH
1.19846 +do
1.19847 + IFS=$as_save_IFS
1.19848 + test -z "$as_dir" && as_dir=.
1.19849 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19850 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19851 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1.19852 + ac_prog_rejected=yes
1.19853 + continue
1.19854 + fi
1.19855 + ac_cv_prog_CC="cc"
1.19856 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19857 + break 2
1.19858 + fi
1.19859 +done
1.19860 +done
1.19861 +
1.19862 +if test $ac_prog_rejected = yes; then
1.19863 + # We found a bogon in the path, so make sure we never use it.
1.19864 + set dummy $ac_cv_prog_CC
1.19865 + shift
1.19866 + if test $# != 0; then
1.19867 + # We chose a different compiler from the bogus one.
1.19868 + # However, it has the same basename, so the bogon will be chosen
1.19869 + # first if we set CC to just the basename; use the full file name.
1.19870 + shift
1.19871 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.19872 + fi
1.19873 +fi
1.19874 +fi
1.19875 +fi
1.19876 +CC=$ac_cv_prog_CC
1.19877 +if test -n "$CC"; then
1.19878 + echo "$as_me:$LINENO: result: $CC" >&5
1.19879 +echo "${ECHO_T}$CC" >&6
1.19880 +else
1.19881 + echo "$as_me:$LINENO: result: no" >&5
1.19882 +echo "${ECHO_T}no" >&6
1.19883 +fi
1.19884 +
1.19885 +fi
1.19886 +if test -z "$CC"; then
1.19887 + if test -n "$ac_tool_prefix"; then
1.19888 + for ac_prog in cl
1.19889 + do
1.19890 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.19891 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.19892 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19893 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19894 +if test "${ac_cv_prog_CC+set}" = set; then
1.19895 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19896 +else
1.19897 + if test -n "$CC"; then
1.19898 + ac_cv_prog_CC="$CC" # Let the user override the test.
1.19899 +else
1.19900 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19901 +for as_dir in $PATH
1.19902 +do
1.19903 + IFS=$as_save_IFS
1.19904 + test -z "$as_dir" && as_dir=.
1.19905 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19906 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19907 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1.19908 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19909 + break 2
1.19910 + fi
1.19911 +done
1.19912 +done
1.19913 +
1.19914 +fi
1.19915 +fi
1.19916 +CC=$ac_cv_prog_CC
1.19917 +if test -n "$CC"; then
1.19918 + echo "$as_me:$LINENO: result: $CC" >&5
1.19919 +echo "${ECHO_T}$CC" >&6
1.19920 +else
1.19921 + echo "$as_me:$LINENO: result: no" >&5
1.19922 +echo "${ECHO_T}no" >&6
1.19923 +fi
1.19924 +
1.19925 + test -n "$CC" && break
1.19926 + done
1.19927 +fi
1.19928 +if test -z "$CC"; then
1.19929 + ac_ct_CC=$CC
1.19930 + for ac_prog in cl
1.19931 +do
1.19932 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.19933 +set dummy $ac_prog; ac_word=$2
1.19934 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.19935 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.19936 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1.19937 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.19938 +else
1.19939 + if test -n "$ac_ct_CC"; then
1.19940 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.19941 +else
1.19942 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.19943 +for as_dir in $PATH
1.19944 +do
1.19945 + IFS=$as_save_IFS
1.19946 + test -z "$as_dir" && as_dir=.
1.19947 + for ac_exec_ext in '' $ac_executable_extensions; do
1.19948 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.19949 + ac_cv_prog_ac_ct_CC="$ac_prog"
1.19950 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.19951 + break 2
1.19952 + fi
1.19953 +done
1.19954 +done
1.19955 +
1.19956 +fi
1.19957 +fi
1.19958 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
1.19959 +if test -n "$ac_ct_CC"; then
1.19960 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1.19961 +echo "${ECHO_T}$ac_ct_CC" >&6
1.19962 +else
1.19963 + echo "$as_me:$LINENO: result: no" >&5
1.19964 +echo "${ECHO_T}no" >&6
1.19965 +fi
1.19966 +
1.19967 + test -n "$ac_ct_CC" && break
1.19968 +done
1.19969 +
1.19970 + CC=$ac_ct_CC
1.19971 +fi
1.19972 +
1.19973 +fi
1.19974 +
1.19975 +
1.19976 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1.19977 +See \`config.log' for more details." >&5
1.19978 +echo "$as_me: error: no acceptable C compiler found in \$PATH
1.19979 +See \`config.log' for more details." >&2;}
1.19980 + { (exit 1); exit 1; }; }
1.19981 +
1.19982 +# Provide some information about the compiler.
1.19983 +echo "$as_me:$LINENO:" \
1.19984 + "checking for C compiler version" >&5
1.19985 +ac_compiler=`set X $ac_compile; echo $2`
1.19986 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.19987 + (eval $ac_compiler --version </dev/null >&5) 2>&5
1.19988 + ac_status=$?
1.19989 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.19990 + (exit $ac_status); }
1.19991 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.19992 + (eval $ac_compiler -v </dev/null >&5) 2>&5
1.19993 + ac_status=$?
1.19994 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.19995 + (exit $ac_status); }
1.19996 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.19997 + (eval $ac_compiler -V </dev/null >&5) 2>&5
1.19998 + ac_status=$?
1.19999 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20000 + (exit $ac_status); }
1.20001 +
1.20002 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1.20003 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1.20004 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
1.20005 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20006 +else
1.20007 + cat >conftest.$ac_ext <<_ACEOF
1.20008 +/* confdefs.h. */
1.20009 +_ACEOF
1.20010 +cat confdefs.h >>conftest.$ac_ext
1.20011 +cat >>conftest.$ac_ext <<_ACEOF
1.20012 +/* end confdefs.h. */
1.20013 +
1.20014 +int
1.20015 +main ()
1.20016 +{
1.20017 +#ifndef __GNUC__
1.20018 + choke me
1.20019 +#endif
1.20020 +
1.20021 + ;
1.20022 + return 0;
1.20023 +}
1.20024 +_ACEOF
1.20025 +rm -f conftest.$ac_objext
1.20026 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20027 + (eval $ac_compile) 2>conftest.er1
1.20028 + ac_status=$?
1.20029 + grep -v '^ *+' conftest.er1 >conftest.err
1.20030 + rm -f conftest.er1
1.20031 + cat conftest.err >&5
1.20032 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20033 + (exit $ac_status); } &&
1.20034 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20035 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20036 + (eval $ac_try) 2>&5
1.20037 + ac_status=$?
1.20038 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20039 + (exit $ac_status); }; } &&
1.20040 + { ac_try='test -s conftest.$ac_objext'
1.20041 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20042 + (eval $ac_try) 2>&5
1.20043 + ac_status=$?
1.20044 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20045 + (exit $ac_status); }; }; then
1.20046 + ac_compiler_gnu=yes
1.20047 +else
1.20048 + echo "$as_me: failed program was:" >&5
1.20049 +sed 's/^/| /' conftest.$ac_ext >&5
1.20050 +
1.20051 +ac_compiler_gnu=no
1.20052 +fi
1.20053 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20054 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.20055 +
1.20056 +fi
1.20057 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1.20058 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1.20059 +GCC=`test $ac_compiler_gnu = yes && echo yes`
1.20060 +ac_test_CFLAGS=${CFLAGS+set}
1.20061 +ac_save_CFLAGS=$CFLAGS
1.20062 +CFLAGS="-g"
1.20063 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1.20064 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1.20065 +if test "${ac_cv_prog_cc_g+set}" = set; then
1.20066 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20067 +else
1.20068 + cat >conftest.$ac_ext <<_ACEOF
1.20069 +/* confdefs.h. */
1.20070 +_ACEOF
1.20071 +cat confdefs.h >>conftest.$ac_ext
1.20072 +cat >>conftest.$ac_ext <<_ACEOF
1.20073 +/* end confdefs.h. */
1.20074 +
1.20075 +int
1.20076 +main ()
1.20077 +{
1.20078 +
1.20079 + ;
1.20080 + return 0;
1.20081 +}
1.20082 +_ACEOF
1.20083 +rm -f conftest.$ac_objext
1.20084 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20085 + (eval $ac_compile) 2>conftest.er1
1.20086 + ac_status=$?
1.20087 + grep -v '^ *+' conftest.er1 >conftest.err
1.20088 + rm -f conftest.er1
1.20089 + cat conftest.err >&5
1.20090 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20091 + (exit $ac_status); } &&
1.20092 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20093 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20094 + (eval $ac_try) 2>&5
1.20095 + ac_status=$?
1.20096 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20097 + (exit $ac_status); }; } &&
1.20098 + { ac_try='test -s conftest.$ac_objext'
1.20099 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20100 + (eval $ac_try) 2>&5
1.20101 + ac_status=$?
1.20102 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20103 + (exit $ac_status); }; }; then
1.20104 + ac_cv_prog_cc_g=yes
1.20105 +else
1.20106 + echo "$as_me: failed program was:" >&5
1.20107 +sed 's/^/| /' conftest.$ac_ext >&5
1.20108 +
1.20109 +ac_cv_prog_cc_g=no
1.20110 +fi
1.20111 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20112 +fi
1.20113 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1.20114 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1.20115 +if test "$ac_test_CFLAGS" = set; then
1.20116 + CFLAGS=$ac_save_CFLAGS
1.20117 +elif test $ac_cv_prog_cc_g = yes; then
1.20118 + if test "$GCC" = yes; then
1.20119 + CFLAGS="-g -O2"
1.20120 + else
1.20121 + CFLAGS="-g"
1.20122 + fi
1.20123 +else
1.20124 + if test "$GCC" = yes; then
1.20125 + CFLAGS="-O2"
1.20126 + else
1.20127 + CFLAGS=
1.20128 + fi
1.20129 +fi
1.20130 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1.20131 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1.20132 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
1.20133 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20134 +else
1.20135 + ac_cv_prog_cc_stdc=no
1.20136 +ac_save_CC=$CC
1.20137 +cat >conftest.$ac_ext <<_ACEOF
1.20138 +/* confdefs.h. */
1.20139 +_ACEOF
1.20140 +cat confdefs.h >>conftest.$ac_ext
1.20141 +cat >>conftest.$ac_ext <<_ACEOF
1.20142 +/* end confdefs.h. */
1.20143 +#include <stdarg.h>
1.20144 +#include <stdio.h>
1.20145 +#include <sys/types.h>
1.20146 +#include <sys/stat.h>
1.20147 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1.20148 +struct buf { int x; };
1.20149 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
1.20150 +static char *e (p, i)
1.20151 + char **p;
1.20152 + int i;
1.20153 +{
1.20154 + return p[i];
1.20155 +}
1.20156 +static char *f (char * (*g) (char **, int), char **p, ...)
1.20157 +{
1.20158 + char *s;
1.20159 + va_list v;
1.20160 + va_start (v,p);
1.20161 + s = g (p, va_arg (v,int));
1.20162 + va_end (v);
1.20163 + return s;
1.20164 +}
1.20165 +
1.20166 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1.20167 + function prototypes and stuff, but not '\xHH' hex character constants.
1.20168 + These don't provoke an error unfortunately, instead are silently treated
1.20169 + as 'x'. The following induces an error, until -std1 is added to get
1.20170 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1.20171 + array size at least. It's necessary to write '\x00'==0 to get something
1.20172 + that's true only with -std1. */
1.20173 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.20174 +
1.20175 +int test (int i, double x);
1.20176 +struct s1 {int (*f) (int a);};
1.20177 +struct s2 {int (*f) (double a);};
1.20178 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1.20179 +int argc;
1.20180 +char **argv;
1.20181 +int
1.20182 +main ()
1.20183 +{
1.20184 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.20185 + ;
1.20186 + return 0;
1.20187 +}
1.20188 +_ACEOF
1.20189 +# Don't try gcc -ansi; that turns off useful extensions and
1.20190 +# breaks some systems' header files.
1.20191 +# AIX -qlanglvl=ansi
1.20192 +# Ultrix and OSF/1 -std1
1.20193 +# HP-UX 10.20 and later -Ae
1.20194 +# HP-UX older versions -Aa -D_HPUX_SOURCE
1.20195 +# SVR4 -Xc -D__EXTENSIONS__
1.20196 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.20197 +do
1.20198 + CC="$ac_save_CC $ac_arg"
1.20199 + rm -f conftest.$ac_objext
1.20200 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20201 + (eval $ac_compile) 2>conftest.er1
1.20202 + ac_status=$?
1.20203 + grep -v '^ *+' conftest.er1 >conftest.err
1.20204 + rm -f conftest.er1
1.20205 + cat conftest.err >&5
1.20206 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20207 + (exit $ac_status); } &&
1.20208 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20209 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20210 + (eval $ac_try) 2>&5
1.20211 + ac_status=$?
1.20212 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20213 + (exit $ac_status); }; } &&
1.20214 + { ac_try='test -s conftest.$ac_objext'
1.20215 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20216 + (eval $ac_try) 2>&5
1.20217 + ac_status=$?
1.20218 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20219 + (exit $ac_status); }; }; then
1.20220 + ac_cv_prog_cc_stdc=$ac_arg
1.20221 +break
1.20222 +else
1.20223 + echo "$as_me: failed program was:" >&5
1.20224 +sed 's/^/| /' conftest.$ac_ext >&5
1.20225 +
1.20226 +fi
1.20227 +rm -f conftest.err conftest.$ac_objext
1.20228 +done
1.20229 +rm -f conftest.$ac_ext conftest.$ac_objext
1.20230 +CC=$ac_save_CC
1.20231 +
1.20232 +fi
1.20233 +
1.20234 +case "x$ac_cv_prog_cc_stdc" in
1.20235 + x|xno)
1.20236 + echo "$as_me:$LINENO: result: none needed" >&5
1.20237 +echo "${ECHO_T}none needed" >&6 ;;
1.20238 + *)
1.20239 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1.20240 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1.20241 + CC="$CC $ac_cv_prog_cc_stdc" ;;
1.20242 +esac
1.20243 +
1.20244 +# Some people use a C++ compiler to compile C. Since we use `exit',
1.20245 +# in C++ we need to declare it. In case someone uses the same compiler
1.20246 +# for both compiling C and C++ we need to have the C++ compiler decide
1.20247 +# the declaration of exit, since it's the most demanding environment.
1.20248 +cat >conftest.$ac_ext <<_ACEOF
1.20249 +#ifndef __cplusplus
1.20250 + choke me
1.20251 +#endif
1.20252 +_ACEOF
1.20253 +rm -f conftest.$ac_objext
1.20254 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20255 + (eval $ac_compile) 2>conftest.er1
1.20256 + ac_status=$?
1.20257 + grep -v '^ *+' conftest.er1 >conftest.err
1.20258 + rm -f conftest.er1
1.20259 + cat conftest.err >&5
1.20260 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20261 + (exit $ac_status); } &&
1.20262 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20263 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20264 + (eval $ac_try) 2>&5
1.20265 + ac_status=$?
1.20266 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20267 + (exit $ac_status); }; } &&
1.20268 + { ac_try='test -s conftest.$ac_objext'
1.20269 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20270 + (eval $ac_try) 2>&5
1.20271 + ac_status=$?
1.20272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20273 + (exit $ac_status); }; }; then
1.20274 + for ac_declaration in \
1.20275 + '' \
1.20276 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
1.20277 + 'extern "C" void std::exit (int); using std::exit;' \
1.20278 + 'extern "C" void exit (int) throw ();' \
1.20279 + 'extern "C" void exit (int);' \
1.20280 + 'void exit (int);'
1.20281 +do
1.20282 + cat >conftest.$ac_ext <<_ACEOF
1.20283 +/* confdefs.h. */
1.20284 +_ACEOF
1.20285 +cat confdefs.h >>conftest.$ac_ext
1.20286 +cat >>conftest.$ac_ext <<_ACEOF
1.20287 +/* end confdefs.h. */
1.20288 +$ac_declaration
1.20289 +#include <stdlib.h>
1.20290 +int
1.20291 +main ()
1.20292 +{
1.20293 +exit (42);
1.20294 + ;
1.20295 + return 0;
1.20296 +}
1.20297 +_ACEOF
1.20298 +rm -f conftest.$ac_objext
1.20299 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20300 + (eval $ac_compile) 2>conftest.er1
1.20301 + ac_status=$?
1.20302 + grep -v '^ *+' conftest.er1 >conftest.err
1.20303 + rm -f conftest.er1
1.20304 + cat conftest.err >&5
1.20305 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20306 + (exit $ac_status); } &&
1.20307 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20308 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20309 + (eval $ac_try) 2>&5
1.20310 + ac_status=$?
1.20311 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20312 + (exit $ac_status); }; } &&
1.20313 + { ac_try='test -s conftest.$ac_objext'
1.20314 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20315 + (eval $ac_try) 2>&5
1.20316 + ac_status=$?
1.20317 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20318 + (exit $ac_status); }; }; then
1.20319 + :
1.20320 +else
1.20321 + echo "$as_me: failed program was:" >&5
1.20322 +sed 's/^/| /' conftest.$ac_ext >&5
1.20323 +
1.20324 +continue
1.20325 +fi
1.20326 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20327 + cat >conftest.$ac_ext <<_ACEOF
1.20328 +/* confdefs.h. */
1.20329 +_ACEOF
1.20330 +cat confdefs.h >>conftest.$ac_ext
1.20331 +cat >>conftest.$ac_ext <<_ACEOF
1.20332 +/* end confdefs.h. */
1.20333 +$ac_declaration
1.20334 +int
1.20335 +main ()
1.20336 +{
1.20337 +exit (42);
1.20338 + ;
1.20339 + return 0;
1.20340 +}
1.20341 +_ACEOF
1.20342 +rm -f conftest.$ac_objext
1.20343 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20344 + (eval $ac_compile) 2>conftest.er1
1.20345 + ac_status=$?
1.20346 + grep -v '^ *+' conftest.er1 >conftest.err
1.20347 + rm -f conftest.er1
1.20348 + cat conftest.err >&5
1.20349 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20350 + (exit $ac_status); } &&
1.20351 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20352 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20353 + (eval $ac_try) 2>&5
1.20354 + ac_status=$?
1.20355 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20356 + (exit $ac_status); }; } &&
1.20357 + { ac_try='test -s conftest.$ac_objext'
1.20358 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20359 + (eval $ac_try) 2>&5
1.20360 + ac_status=$?
1.20361 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20362 + (exit $ac_status); }; }; then
1.20363 + break
1.20364 +else
1.20365 + echo "$as_me: failed program was:" >&5
1.20366 +sed 's/^/| /' conftest.$ac_ext >&5
1.20367 +
1.20368 +fi
1.20369 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20370 +done
1.20371 +rm -f conftest*
1.20372 +if test -n "$ac_declaration"; then
1.20373 + echo '#ifdef __cplusplus' >>confdefs.h
1.20374 + echo $ac_declaration >>confdefs.h
1.20375 + echo '#endif' >>confdefs.h
1.20376 +fi
1.20377 +
1.20378 +else
1.20379 + echo "$as_me: failed program was:" >&5
1.20380 +sed 's/^/| /' conftest.$ac_ext >&5
1.20381 +
1.20382 +fi
1.20383 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20384 +ac_ext=c
1.20385 +ac_cpp='$CPP $CPPFLAGS'
1.20386 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.20387 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.20388 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.20389 +
1.20390 +depcc="$CC" am_compiler_list=
1.20391 +
1.20392 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.20393 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.20394 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1.20395 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20396 +else
1.20397 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.20398 + # We make a subdir and do the tests there. Otherwise we can end up
1.20399 + # making bogus files that we don't know about and never remove. For
1.20400 + # instance it was reported that on HP-UX the gcc test will end up
1.20401 + # making a dummy file named `D' -- because `-MD' means `put the output
1.20402 + # in D'.
1.20403 + mkdir conftest.dir
1.20404 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.20405 + # using a relative directory.
1.20406 + cp "$am_depcomp" conftest.dir
1.20407 + cd conftest.dir
1.20408 + # We will build objects and dependencies in a subdirectory because
1.20409 + # it helps to detect inapplicable dependency modes. For instance
1.20410 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.20411 + # side effect of compilation, but ICC will put the dependencies in
1.20412 + # the current directory while Tru64 will put them in the object
1.20413 + # directory.
1.20414 + mkdir sub
1.20415 +
1.20416 + am_cv_CC_dependencies_compiler_type=none
1.20417 + if test "$am_compiler_list" = ""; then
1.20418 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.20419 + fi
1.20420 + for depmode in $am_compiler_list; do
1.20421 + # Setup a source with many dependencies, because some compilers
1.20422 + # like to wrap large dependency lists on column 80 (with \), and
1.20423 + # we should not choose a depcomp mode which is confused by this.
1.20424 + #
1.20425 + # We need to recreate these files for each test, as the compiler may
1.20426 + # overwrite some of them when testing with obscure command lines.
1.20427 + # This happens at least with the AIX C compiler.
1.20428 + : > sub/conftest.c
1.20429 + for i in 1 2 3 4 5 6; do
1.20430 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.20431 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.20432 + # Solaris 8's {/usr,}/bin/sh.
1.20433 + touch sub/conftst$i.h
1.20434 + done
1.20435 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.20436 +
1.20437 + case $depmode in
1.20438 + nosideeffect)
1.20439 + # after this tag, mechanisms are not by side-effect, so they'll
1.20440 + # only be used when explicitly requested
1.20441 + if test "x$enable_dependency_tracking" = xyes; then
1.20442 + continue
1.20443 + else
1.20444 + break
1.20445 + fi
1.20446 + ;;
1.20447 + none) break ;;
1.20448 + esac
1.20449 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.20450 + # mode. It turns out that the SunPro C++ compiler does not properly
1.20451 + # handle `-M -o', and we need to detect this.
1.20452 + if depmode=$depmode \
1.20453 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.20454 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.20455 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.20456 + >/dev/null 2>conftest.err &&
1.20457 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.20458 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.20459 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.20460 + # icc doesn't choke on unknown options, it will just issue warnings
1.20461 + # or remarks (even with -Werror). So we grep stderr for any message
1.20462 + # that says an option was ignored or not supported.
1.20463 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.20464 + # icc: Command line warning: ignoring option '-M'; no argument required
1.20465 + # The diagnosis changed in icc 8.0:
1.20466 + # icc: Command line remark: option '-MP' not supported
1.20467 + if (grep 'ignoring option' conftest.err ||
1.20468 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.20469 + am_cv_CC_dependencies_compiler_type=$depmode
1.20470 + break
1.20471 + fi
1.20472 + fi
1.20473 + done
1.20474 +
1.20475 + cd ..
1.20476 + rm -rf conftest.dir
1.20477 +else
1.20478 + am_cv_CC_dependencies_compiler_type=none
1.20479 +fi
1.20480 +
1.20481 +fi
1.20482 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1.20483 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1.20484 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.20485 +
1.20486 +
1.20487 +
1.20488 +if
1.20489 + test "x$enable_dependency_tracking" != xno \
1.20490 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1.20491 + am__fastdepCC_TRUE=
1.20492 + am__fastdepCC_FALSE='#'
1.20493 +else
1.20494 + am__fastdepCC_TRUE='#'
1.20495 + am__fastdepCC_FALSE=
1.20496 +fi
1.20497 +
1.20498 +
1.20499 +
1.20500 +# By default we simply use the C compiler to build assembly code.
1.20501 +
1.20502 +test "${CCAS+set}" = set || CCAS=$CC
1.20503 +test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
1.20504 +
1.20505 +
1.20506 +
1.20507 +
1.20508 +
1.20509 + echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
1.20510 +echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
1.20511 +
1.20512 + save_CFLAGS="$CFLAGS"
1.20513 + CFLAGS="$CFLAGS -Wall"
1.20514 +
1.20515 + cat >conftest.$ac_ext <<_ACEOF
1.20516 +/* confdefs.h. */
1.20517 +_ACEOF
1.20518 +cat confdefs.h >>conftest.$ac_ext
1.20519 +cat >>conftest.$ac_ext <<_ACEOF
1.20520 +/* end confdefs.h. */
1.20521 +
1.20522 +int
1.20523 +main ()
1.20524 +{
1.20525 +
1.20526 + ;
1.20527 + return 0;
1.20528 +}
1.20529 +_ACEOF
1.20530 +rm -f conftest.$ac_objext
1.20531 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20532 + (eval $ac_compile) 2>conftest.er1
1.20533 + ac_status=$?
1.20534 + grep -v '^ *+' conftest.er1 >conftest.err
1.20535 + rm -f conftest.er1
1.20536 + cat conftest.err >&5
1.20537 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20538 + (exit $ac_status); } &&
1.20539 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20540 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20541 + (eval $ac_try) 2>&5
1.20542 + ac_status=$?
1.20543 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20544 + (exit $ac_status); }; } &&
1.20545 + { ac_try='test -s conftest.$ac_objext'
1.20546 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20547 + (eval $ac_try) 2>&5
1.20548 + ac_status=$?
1.20549 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20550 + (exit $ac_status); }; }; then
1.20551 + flag_ok=yes
1.20552 +else
1.20553 + echo "$as_me: failed program was:" >&5
1.20554 +sed 's/^/| /' conftest.$ac_ext >&5
1.20555 +
1.20556 +flag_ok=no
1.20557 +fi
1.20558 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20559 + CFLAGS="$save_CFLAGS"
1.20560 +
1.20561 + if test "X$flag_ok" = Xyes ; then
1.20562 + GST_WALL="yes"
1.20563 + true
1.20564 + else
1.20565 + GST_WALL="no"
1.20566 + true
1.20567 + fi
1.20568 + echo "$as_me:$LINENO: result: $flag_ok" >&5
1.20569 +echo "${ECHO_T}$flag_ok" >&6
1.20570 +
1.20571 +
1.20572 +if test "x$GST_WALL" = "xyes"; then
1.20573 + ERROR_CFLAGS="$GST_ERROR -Wall"
1.20574 +
1.20575 + if test "x$GST_CVS" = "xyes"; then
1.20576 +
1.20577 + echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
1.20578 +echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
1.20579 +
1.20580 + save_CFLAGS="$CFLAGS"
1.20581 + CFLAGS="$CFLAGS -Werror"
1.20582 +
1.20583 + cat >conftest.$ac_ext <<_ACEOF
1.20584 +/* confdefs.h. */
1.20585 +_ACEOF
1.20586 +cat confdefs.h >>conftest.$ac_ext
1.20587 +cat >>conftest.$ac_ext <<_ACEOF
1.20588 +/* end confdefs.h. */
1.20589 +
1.20590 +int
1.20591 +main ()
1.20592 +{
1.20593 +
1.20594 + ;
1.20595 + return 0;
1.20596 +}
1.20597 +_ACEOF
1.20598 +rm -f conftest.$ac_objext
1.20599 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20600 + (eval $ac_compile) 2>conftest.er1
1.20601 + ac_status=$?
1.20602 + grep -v '^ *+' conftest.er1 >conftest.err
1.20603 + rm -f conftest.er1
1.20604 + cat conftest.err >&5
1.20605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20606 + (exit $ac_status); } &&
1.20607 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.20608 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20609 + (eval $ac_try) 2>&5
1.20610 + ac_status=$?
1.20611 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20612 + (exit $ac_status); }; } &&
1.20613 + { ac_try='test -s conftest.$ac_objext'
1.20614 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20615 + (eval $ac_try) 2>&5
1.20616 + ac_status=$?
1.20617 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20618 + (exit $ac_status); }; }; then
1.20619 + flag_ok=yes
1.20620 +else
1.20621 + echo "$as_me: failed program was:" >&5
1.20622 +sed 's/^/| /' conftest.$ac_ext >&5
1.20623 +
1.20624 +flag_ok=no
1.20625 +fi
1.20626 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20627 + CFLAGS="$save_CFLAGS"
1.20628 +
1.20629 + if test "X$flag_ok" = Xyes ; then
1.20630 + ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
1.20631 + true
1.20632 + else
1.20633 + ERROR_CFLAGS="$ERROR_CFLAGS"
1.20634 + true
1.20635 + fi
1.20636 + echo "$as_me:$LINENO: result: $flag_ok" >&5
1.20637 +echo "${ECHO_T}$flag_ok" >&6
1.20638 +
1.20639 + fi
1.20640 +fi
1.20641 +
1.20642 +
1.20643 +
1.20644 +ac_ext=cc
1.20645 +ac_cpp='$CXXCPP $CPPFLAGS'
1.20646 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.20647 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.20648 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.20649 +if test -n "$ac_tool_prefix"; then
1.20650 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.20651 + do
1.20652 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1.20653 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.20654 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.20655 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.20656 +if test "${ac_cv_prog_CXX+set}" = set; then
1.20657 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20658 +else
1.20659 + if test -n "$CXX"; then
1.20660 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.20661 +else
1.20662 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.20663 +for as_dir in $PATH
1.20664 +do
1.20665 + IFS=$as_save_IFS
1.20666 + test -z "$as_dir" && as_dir=.
1.20667 + for ac_exec_ext in '' $ac_executable_extensions; do
1.20668 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.20669 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1.20670 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.20671 + break 2
1.20672 + fi
1.20673 +done
1.20674 +done
1.20675 +
1.20676 +fi
1.20677 +fi
1.20678 +CXX=$ac_cv_prog_CXX
1.20679 +if test -n "$CXX"; then
1.20680 + echo "$as_me:$LINENO: result: $CXX" >&5
1.20681 +echo "${ECHO_T}$CXX" >&6
1.20682 +else
1.20683 + echo "$as_me:$LINENO: result: no" >&5
1.20684 +echo "${ECHO_T}no" >&6
1.20685 +fi
1.20686 +
1.20687 + test -n "$CXX" && break
1.20688 + done
1.20689 +fi
1.20690 +if test -z "$CXX"; then
1.20691 + ac_ct_CXX=$CXX
1.20692 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1.20693 +do
1.20694 + # Extract the first word of "$ac_prog", so it can be a program name with args.
1.20695 +set dummy $ac_prog; ac_word=$2
1.20696 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.20697 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.20698 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1.20699 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20700 +else
1.20701 + if test -n "$ac_ct_CXX"; then
1.20702 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1.20703 +else
1.20704 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.20705 +for as_dir in $PATH
1.20706 +do
1.20707 + IFS=$as_save_IFS
1.20708 + test -z "$as_dir" && as_dir=.
1.20709 + for ac_exec_ext in '' $ac_executable_extensions; do
1.20710 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.20711 + ac_cv_prog_ac_ct_CXX="$ac_prog"
1.20712 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.20713 + break 2
1.20714 + fi
1.20715 +done
1.20716 +done
1.20717 +
1.20718 +fi
1.20719 +fi
1.20720 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1.20721 +if test -n "$ac_ct_CXX"; then
1.20722 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1.20723 +echo "${ECHO_T}$ac_ct_CXX" >&6
1.20724 +else
1.20725 + echo "$as_me:$LINENO: result: no" >&5
1.20726 +echo "${ECHO_T}no" >&6
1.20727 +fi
1.20728 +
1.20729 + test -n "$ac_ct_CXX" && break
1.20730 +done
1.20731 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1.20732 +
1.20733 + CXX=$ac_ct_CXX
1.20734 +fi
1.20735 +
1.20736 +
1.20737 +# Provide some information about the compiler.
1.20738 +echo "$as_me:$LINENO:" \
1.20739 + "checking for C++ compiler version" >&5
1.20740 +ac_compiler=`set X $ac_compile; echo $2`
1.20741 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1.20742 + (eval $ac_compiler --version </dev/null >&5) 2>&5
1.20743 + ac_status=$?
1.20744 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20745 + (exit $ac_status); }
1.20746 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1.20747 + (eval $ac_compiler -v </dev/null >&5) 2>&5
1.20748 + ac_status=$?
1.20749 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20750 + (exit $ac_status); }
1.20751 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1.20752 + (eval $ac_compiler -V </dev/null >&5) 2>&5
1.20753 + ac_status=$?
1.20754 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20755 + (exit $ac_status); }
1.20756 +
1.20757 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1.20758 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1.20759 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1.20760 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20761 +else
1.20762 + cat >conftest.$ac_ext <<_ACEOF
1.20763 +/* confdefs.h. */
1.20764 +_ACEOF
1.20765 +cat confdefs.h >>conftest.$ac_ext
1.20766 +cat >>conftest.$ac_ext <<_ACEOF
1.20767 +/* end confdefs.h. */
1.20768 +
1.20769 +int
1.20770 +main ()
1.20771 +{
1.20772 +#ifndef __GNUC__
1.20773 + choke me
1.20774 +#endif
1.20775 +
1.20776 + ;
1.20777 + return 0;
1.20778 +}
1.20779 +_ACEOF
1.20780 +rm -f conftest.$ac_objext
1.20781 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20782 + (eval $ac_compile) 2>conftest.er1
1.20783 + ac_status=$?
1.20784 + grep -v '^ *+' conftest.er1 >conftest.err
1.20785 + rm -f conftest.er1
1.20786 + cat conftest.err >&5
1.20787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20788 + (exit $ac_status); } &&
1.20789 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.20790 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20791 + (eval $ac_try) 2>&5
1.20792 + ac_status=$?
1.20793 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20794 + (exit $ac_status); }; } &&
1.20795 + { ac_try='test -s conftest.$ac_objext'
1.20796 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20797 + (eval $ac_try) 2>&5
1.20798 + ac_status=$?
1.20799 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20800 + (exit $ac_status); }; }; then
1.20801 + ac_compiler_gnu=yes
1.20802 +else
1.20803 + echo "$as_me: failed program was:" >&5
1.20804 +sed 's/^/| /' conftest.$ac_ext >&5
1.20805 +
1.20806 +ac_compiler_gnu=no
1.20807 +fi
1.20808 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20809 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.20810 +
1.20811 +fi
1.20812 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1.20813 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1.20814 +GXX=`test $ac_compiler_gnu = yes && echo yes`
1.20815 +ac_test_CXXFLAGS=${CXXFLAGS+set}
1.20816 +ac_save_CXXFLAGS=$CXXFLAGS
1.20817 +CXXFLAGS="-g"
1.20818 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1.20819 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1.20820 +if test "${ac_cv_prog_cxx_g+set}" = set; then
1.20821 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.20822 +else
1.20823 + cat >conftest.$ac_ext <<_ACEOF
1.20824 +/* confdefs.h. */
1.20825 +_ACEOF
1.20826 +cat confdefs.h >>conftest.$ac_ext
1.20827 +cat >>conftest.$ac_ext <<_ACEOF
1.20828 +/* end confdefs.h. */
1.20829 +
1.20830 +int
1.20831 +main ()
1.20832 +{
1.20833 +
1.20834 + ;
1.20835 + return 0;
1.20836 +}
1.20837 +_ACEOF
1.20838 +rm -f conftest.$ac_objext
1.20839 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20840 + (eval $ac_compile) 2>conftest.er1
1.20841 + ac_status=$?
1.20842 + grep -v '^ *+' conftest.er1 >conftest.err
1.20843 + rm -f conftest.er1
1.20844 + cat conftest.err >&5
1.20845 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20846 + (exit $ac_status); } &&
1.20847 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.20848 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20849 + (eval $ac_try) 2>&5
1.20850 + ac_status=$?
1.20851 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20852 + (exit $ac_status); }; } &&
1.20853 + { ac_try='test -s conftest.$ac_objext'
1.20854 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20855 + (eval $ac_try) 2>&5
1.20856 + ac_status=$?
1.20857 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20858 + (exit $ac_status); }; }; then
1.20859 + ac_cv_prog_cxx_g=yes
1.20860 +else
1.20861 + echo "$as_me: failed program was:" >&5
1.20862 +sed 's/^/| /' conftest.$ac_ext >&5
1.20863 +
1.20864 +ac_cv_prog_cxx_g=no
1.20865 +fi
1.20866 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20867 +fi
1.20868 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1.20869 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1.20870 +if test "$ac_test_CXXFLAGS" = set; then
1.20871 + CXXFLAGS=$ac_save_CXXFLAGS
1.20872 +elif test $ac_cv_prog_cxx_g = yes; then
1.20873 + if test "$GXX" = yes; then
1.20874 + CXXFLAGS="-g -O2"
1.20875 + else
1.20876 + CXXFLAGS="-g"
1.20877 + fi
1.20878 +else
1.20879 + if test "$GXX" = yes; then
1.20880 + CXXFLAGS="-O2"
1.20881 + else
1.20882 + CXXFLAGS=
1.20883 + fi
1.20884 +fi
1.20885 +for ac_declaration in \
1.20886 + '' \
1.20887 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
1.20888 + 'extern "C" void std::exit (int); using std::exit;' \
1.20889 + 'extern "C" void exit (int) throw ();' \
1.20890 + 'extern "C" void exit (int);' \
1.20891 + 'void exit (int);'
1.20892 +do
1.20893 + cat >conftest.$ac_ext <<_ACEOF
1.20894 +/* confdefs.h. */
1.20895 +_ACEOF
1.20896 +cat confdefs.h >>conftest.$ac_ext
1.20897 +cat >>conftest.$ac_ext <<_ACEOF
1.20898 +/* end confdefs.h. */
1.20899 +$ac_declaration
1.20900 +#include <stdlib.h>
1.20901 +int
1.20902 +main ()
1.20903 +{
1.20904 +exit (42);
1.20905 + ;
1.20906 + return 0;
1.20907 +}
1.20908 +_ACEOF
1.20909 +rm -f conftest.$ac_objext
1.20910 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20911 + (eval $ac_compile) 2>conftest.er1
1.20912 + ac_status=$?
1.20913 + grep -v '^ *+' conftest.er1 >conftest.err
1.20914 + rm -f conftest.er1
1.20915 + cat conftest.err >&5
1.20916 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20917 + (exit $ac_status); } &&
1.20918 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.20919 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20920 + (eval $ac_try) 2>&5
1.20921 + ac_status=$?
1.20922 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20923 + (exit $ac_status); }; } &&
1.20924 + { ac_try='test -s conftest.$ac_objext'
1.20925 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20926 + (eval $ac_try) 2>&5
1.20927 + ac_status=$?
1.20928 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20929 + (exit $ac_status); }; }; then
1.20930 + :
1.20931 +else
1.20932 + echo "$as_me: failed program was:" >&5
1.20933 +sed 's/^/| /' conftest.$ac_ext >&5
1.20934 +
1.20935 +continue
1.20936 +fi
1.20937 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20938 + cat >conftest.$ac_ext <<_ACEOF
1.20939 +/* confdefs.h. */
1.20940 +_ACEOF
1.20941 +cat confdefs.h >>conftest.$ac_ext
1.20942 +cat >>conftest.$ac_ext <<_ACEOF
1.20943 +/* end confdefs.h. */
1.20944 +$ac_declaration
1.20945 +int
1.20946 +main ()
1.20947 +{
1.20948 +exit (42);
1.20949 + ;
1.20950 + return 0;
1.20951 +}
1.20952 +_ACEOF
1.20953 +rm -f conftest.$ac_objext
1.20954 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.20955 + (eval $ac_compile) 2>conftest.er1
1.20956 + ac_status=$?
1.20957 + grep -v '^ *+' conftest.er1 >conftest.err
1.20958 + rm -f conftest.er1
1.20959 + cat conftest.err >&5
1.20960 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20961 + (exit $ac_status); } &&
1.20962 + { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
1.20963 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20964 + (eval $ac_try) 2>&5
1.20965 + ac_status=$?
1.20966 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20967 + (exit $ac_status); }; } &&
1.20968 + { ac_try='test -s conftest.$ac_objext'
1.20969 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.20970 + (eval $ac_try) 2>&5
1.20971 + ac_status=$?
1.20972 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.20973 + (exit $ac_status); }; }; then
1.20974 + break
1.20975 +else
1.20976 + echo "$as_me: failed program was:" >&5
1.20977 +sed 's/^/| /' conftest.$ac_ext >&5
1.20978 +
1.20979 +fi
1.20980 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.20981 +done
1.20982 +rm -f conftest*
1.20983 +if test -n "$ac_declaration"; then
1.20984 + echo '#ifdef __cplusplus' >>confdefs.h
1.20985 + echo $ac_declaration >>confdefs.h
1.20986 + echo '#endif' >>confdefs.h
1.20987 +fi
1.20988 +
1.20989 +ac_ext=c
1.20990 +ac_cpp='$CPP $CPPFLAGS'
1.20991 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.20992 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.20993 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.20994 +
1.20995 +depcc="$CXX" am_compiler_list=
1.20996 +
1.20997 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
1.20998 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1.20999 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
1.21000 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21001 +else
1.21002 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1.21003 + # We make a subdir and do the tests there. Otherwise we can end up
1.21004 + # making bogus files that we don't know about and never remove. For
1.21005 + # instance it was reported that on HP-UX the gcc test will end up
1.21006 + # making a dummy file named `D' -- because `-MD' means `put the output
1.21007 + # in D'.
1.21008 + mkdir conftest.dir
1.21009 + # Copy depcomp to subdir because otherwise we won't find it if we're
1.21010 + # using a relative directory.
1.21011 + cp "$am_depcomp" conftest.dir
1.21012 + cd conftest.dir
1.21013 + # We will build objects and dependencies in a subdirectory because
1.21014 + # it helps to detect inapplicable dependency modes. For instance
1.21015 + # both Tru64's cc and ICC support -MD to output dependencies as a
1.21016 + # side effect of compilation, but ICC will put the dependencies in
1.21017 + # the current directory while Tru64 will put them in the object
1.21018 + # directory.
1.21019 + mkdir sub
1.21020 +
1.21021 + am_cv_CXX_dependencies_compiler_type=none
1.21022 + if test "$am_compiler_list" = ""; then
1.21023 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1.21024 + fi
1.21025 + for depmode in $am_compiler_list; do
1.21026 + # Setup a source with many dependencies, because some compilers
1.21027 + # like to wrap large dependency lists on column 80 (with \), and
1.21028 + # we should not choose a depcomp mode which is confused by this.
1.21029 + #
1.21030 + # We need to recreate these files for each test, as the compiler may
1.21031 + # overwrite some of them when testing with obscure command lines.
1.21032 + # This happens at least with the AIX C compiler.
1.21033 + : > sub/conftest.c
1.21034 + for i in 1 2 3 4 5 6; do
1.21035 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1.21036 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1.21037 + # Solaris 8's {/usr,}/bin/sh.
1.21038 + touch sub/conftst$i.h
1.21039 + done
1.21040 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.21041 +
1.21042 + case $depmode in
1.21043 + nosideeffect)
1.21044 + # after this tag, mechanisms are not by side-effect, so they'll
1.21045 + # only be used when explicitly requested
1.21046 + if test "x$enable_dependency_tracking" = xyes; then
1.21047 + continue
1.21048 + else
1.21049 + break
1.21050 + fi
1.21051 + ;;
1.21052 + none) break ;;
1.21053 + esac
1.21054 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1.21055 + # mode. It turns out that the SunPro C++ compiler does not properly
1.21056 + # handle `-M -o', and we need to detect this.
1.21057 + if depmode=$depmode \
1.21058 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1.21059 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1.21060 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1.21061 + >/dev/null 2>conftest.err &&
1.21062 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1.21063 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1.21064 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1.21065 + # icc doesn't choke on unknown options, it will just issue warnings
1.21066 + # or remarks (even with -Werror). So we grep stderr for any message
1.21067 + # that says an option was ignored or not supported.
1.21068 + # When given -MP, icc 7.0 and 7.1 complain thusly:
1.21069 + # icc: Command line warning: ignoring option '-M'; no argument required
1.21070 + # The diagnosis changed in icc 8.0:
1.21071 + # icc: Command line remark: option '-MP' not supported
1.21072 + if (grep 'ignoring option' conftest.err ||
1.21073 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1.21074 + am_cv_CXX_dependencies_compiler_type=$depmode
1.21075 + break
1.21076 + fi
1.21077 + fi
1.21078 + done
1.21079 +
1.21080 + cd ..
1.21081 + rm -rf conftest.dir
1.21082 +else
1.21083 + am_cv_CXX_dependencies_compiler_type=none
1.21084 +fi
1.21085 +
1.21086 +fi
1.21087 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
1.21088 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
1.21089 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
1.21090 +
1.21091 +
1.21092 +
1.21093 +if
1.21094 + test "x$enable_dependency_tracking" != xno \
1.21095 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
1.21096 + am__fastdepCXX_TRUE=
1.21097 + am__fastdepCXX_FALSE='#'
1.21098 +else
1.21099 + am__fastdepCXX_TRUE='#'
1.21100 + am__fastdepCXX_FALSE=
1.21101 +fi
1.21102 +
1.21103 +
1.21104 +# Extract the first word of "$CXX", so it can be a program name with args.
1.21105 +set dummy $CXX; ac_word=$2
1.21106 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.21107 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.21108 +if test "${ac_cv_prog_HAVE_CXX+set}" = set; then
1.21109 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21110 +else
1.21111 + if test -n "$HAVE_CXX"; then
1.21112 + ac_cv_prog_HAVE_CXX="$HAVE_CXX" # Let the user override the test.
1.21113 +else
1.21114 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.21115 +for as_dir in $PATH
1.21116 +do
1.21117 + IFS=$as_save_IFS
1.21118 + test -z "$as_dir" && as_dir=.
1.21119 + for ac_exec_ext in '' $ac_executable_extensions; do
1.21120 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.21121 + ac_cv_prog_HAVE_CXX="yes"
1.21122 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.21123 + break 2
1.21124 + fi
1.21125 +done
1.21126 +done
1.21127 +
1.21128 + test -z "$ac_cv_prog_HAVE_CXX" && ac_cv_prog_HAVE_CXX="no"
1.21129 +fi
1.21130 +fi
1.21131 +HAVE_CXX=$ac_cv_prog_HAVE_CXX
1.21132 +if test -n "$HAVE_CXX"; then
1.21133 + echo "$as_me:$LINENO: result: $HAVE_CXX" >&5
1.21134 +echo "${ECHO_T}$HAVE_CXX" >&6
1.21135 +else
1.21136 + echo "$as_me:$LINENO: result: no" >&5
1.21137 +echo "${ECHO_T}no" >&6
1.21138 +fi
1.21139 +
1.21140 +ac_ext=cc
1.21141 +ac_cpp='$CXXCPP $CPPFLAGS'
1.21142 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.21143 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.21144 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1.21145 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
1.21146 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1.21147 +if test -z "$CXXCPP"; then
1.21148 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
1.21149 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21150 +else
1.21151 + # Double quotes because CXXCPP needs to be expanded
1.21152 + for CXXCPP in "$CXX -E" "/lib/cpp"
1.21153 + do
1.21154 + ac_preproc_ok=false
1.21155 +for ac_cxx_preproc_warn_flag in '' yes
1.21156 +do
1.21157 + # Use a header file that comes with gcc, so configuring glibc
1.21158 + # with a fresh cross-compiler works.
1.21159 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.21160 + # <limits.h> exists even on freestanding compilers.
1.21161 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.21162 + # not just through cpp. "Syntax error" is here to catch this case.
1.21163 + cat >conftest.$ac_ext <<_ACEOF
1.21164 +/* confdefs.h. */
1.21165 +_ACEOF
1.21166 +cat confdefs.h >>conftest.$ac_ext
1.21167 +cat >>conftest.$ac_ext <<_ACEOF
1.21168 +/* end confdefs.h. */
1.21169 +#ifdef __STDC__
1.21170 +# include <limits.h>
1.21171 +#else
1.21172 +# include <assert.h>
1.21173 +#endif
1.21174 + Syntax error
1.21175 +_ACEOF
1.21176 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.21177 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.21178 + ac_status=$?
1.21179 + grep -v '^ *+' conftest.er1 >conftest.err
1.21180 + rm -f conftest.er1
1.21181 + cat conftest.err >&5
1.21182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21183 + (exit $ac_status); } >/dev/null; then
1.21184 + if test -s conftest.err; then
1.21185 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.21186 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.21187 + else
1.21188 + ac_cpp_err=
1.21189 + fi
1.21190 +else
1.21191 + ac_cpp_err=yes
1.21192 +fi
1.21193 +if test -z "$ac_cpp_err"; then
1.21194 + :
1.21195 +else
1.21196 + echo "$as_me: failed program was:" >&5
1.21197 +sed 's/^/| /' conftest.$ac_ext >&5
1.21198 +
1.21199 + # Broken: fails on valid input.
1.21200 +continue
1.21201 +fi
1.21202 +rm -f conftest.err conftest.$ac_ext
1.21203 +
1.21204 + # OK, works on sane cases. Now check whether non-existent headers
1.21205 + # can be detected and how.
1.21206 + cat >conftest.$ac_ext <<_ACEOF
1.21207 +/* confdefs.h. */
1.21208 +_ACEOF
1.21209 +cat confdefs.h >>conftest.$ac_ext
1.21210 +cat >>conftest.$ac_ext <<_ACEOF
1.21211 +/* end confdefs.h. */
1.21212 +#include <ac_nonexistent.h>
1.21213 +_ACEOF
1.21214 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.21215 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.21216 + ac_status=$?
1.21217 + grep -v '^ *+' conftest.er1 >conftest.err
1.21218 + rm -f conftest.er1
1.21219 + cat conftest.err >&5
1.21220 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21221 + (exit $ac_status); } >/dev/null; then
1.21222 + if test -s conftest.err; then
1.21223 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.21224 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.21225 + else
1.21226 + ac_cpp_err=
1.21227 + fi
1.21228 +else
1.21229 + ac_cpp_err=yes
1.21230 +fi
1.21231 +if test -z "$ac_cpp_err"; then
1.21232 + # Broken: success on invalid input.
1.21233 +continue
1.21234 +else
1.21235 + echo "$as_me: failed program was:" >&5
1.21236 +sed 's/^/| /' conftest.$ac_ext >&5
1.21237 +
1.21238 + # Passes both tests.
1.21239 +ac_preproc_ok=:
1.21240 +break
1.21241 +fi
1.21242 +rm -f conftest.err conftest.$ac_ext
1.21243 +
1.21244 +done
1.21245 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.21246 +rm -f conftest.err conftest.$ac_ext
1.21247 +if $ac_preproc_ok; then
1.21248 + break
1.21249 +fi
1.21250 +
1.21251 + done
1.21252 + ac_cv_prog_CXXCPP=$CXXCPP
1.21253 +
1.21254 +fi
1.21255 + CXXCPP=$ac_cv_prog_CXXCPP
1.21256 +else
1.21257 + ac_cv_prog_CXXCPP=$CXXCPP
1.21258 +fi
1.21259 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
1.21260 +echo "${ECHO_T}$CXXCPP" >&6
1.21261 +ac_preproc_ok=false
1.21262 +for ac_cxx_preproc_warn_flag in '' yes
1.21263 +do
1.21264 + # Use a header file that comes with gcc, so configuring glibc
1.21265 + # with a fresh cross-compiler works.
1.21266 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1.21267 + # <limits.h> exists even on freestanding compilers.
1.21268 + # On the NeXT, cc -E runs the code through the compiler's parser,
1.21269 + # not just through cpp. "Syntax error" is here to catch this case.
1.21270 + cat >conftest.$ac_ext <<_ACEOF
1.21271 +/* confdefs.h. */
1.21272 +_ACEOF
1.21273 +cat confdefs.h >>conftest.$ac_ext
1.21274 +cat >>conftest.$ac_ext <<_ACEOF
1.21275 +/* end confdefs.h. */
1.21276 +#ifdef __STDC__
1.21277 +# include <limits.h>
1.21278 +#else
1.21279 +# include <assert.h>
1.21280 +#endif
1.21281 + Syntax error
1.21282 +_ACEOF
1.21283 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.21284 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.21285 + ac_status=$?
1.21286 + grep -v '^ *+' conftest.er1 >conftest.err
1.21287 + rm -f conftest.er1
1.21288 + cat conftest.err >&5
1.21289 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21290 + (exit $ac_status); } >/dev/null; then
1.21291 + if test -s conftest.err; then
1.21292 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.21293 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.21294 + else
1.21295 + ac_cpp_err=
1.21296 + fi
1.21297 +else
1.21298 + ac_cpp_err=yes
1.21299 +fi
1.21300 +if test -z "$ac_cpp_err"; then
1.21301 + :
1.21302 +else
1.21303 + echo "$as_me: failed program was:" >&5
1.21304 +sed 's/^/| /' conftest.$ac_ext >&5
1.21305 +
1.21306 + # Broken: fails on valid input.
1.21307 +continue
1.21308 +fi
1.21309 +rm -f conftest.err conftest.$ac_ext
1.21310 +
1.21311 + # OK, works on sane cases. Now check whether non-existent headers
1.21312 + # can be detected and how.
1.21313 + cat >conftest.$ac_ext <<_ACEOF
1.21314 +/* confdefs.h. */
1.21315 +_ACEOF
1.21316 +cat confdefs.h >>conftest.$ac_ext
1.21317 +cat >>conftest.$ac_ext <<_ACEOF
1.21318 +/* end confdefs.h. */
1.21319 +#include <ac_nonexistent.h>
1.21320 +_ACEOF
1.21321 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1.21322 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.21323 + ac_status=$?
1.21324 + grep -v '^ *+' conftest.er1 >conftest.err
1.21325 + rm -f conftest.er1
1.21326 + cat conftest.err >&5
1.21327 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21328 + (exit $ac_status); } >/dev/null; then
1.21329 + if test -s conftest.err; then
1.21330 + ac_cpp_err=$ac_cxx_preproc_warn_flag
1.21331 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
1.21332 + else
1.21333 + ac_cpp_err=
1.21334 + fi
1.21335 +else
1.21336 + ac_cpp_err=yes
1.21337 +fi
1.21338 +if test -z "$ac_cpp_err"; then
1.21339 + # Broken: success on invalid input.
1.21340 +continue
1.21341 +else
1.21342 + echo "$as_me: failed program was:" >&5
1.21343 +sed 's/^/| /' conftest.$ac_ext >&5
1.21344 +
1.21345 + # Passes both tests.
1.21346 +ac_preproc_ok=:
1.21347 +break
1.21348 +fi
1.21349 +rm -f conftest.err conftest.$ac_ext
1.21350 +
1.21351 +done
1.21352 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.21353 +rm -f conftest.err conftest.$ac_ext
1.21354 +if $ac_preproc_ok; then
1.21355 + :
1.21356 +else
1.21357 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.21358 +See \`config.log' for more details." >&5
1.21359 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
1.21360 +See \`config.log' for more details." >&2;}
1.21361 + { (exit 1); exit 1; }; }
1.21362 +fi
1.21363 +
1.21364 +ac_ext=c
1.21365 +ac_cpp='$CPP $CPPFLAGS'
1.21366 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1.21367 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1.21368 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.21369 +
1.21370 +echo "$as_me:$LINENO: checking for library containing strerror" >&5
1.21371 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
1.21372 +if test "${ac_cv_search_strerror+set}" = set; then
1.21373 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21374 +else
1.21375 + ac_func_search_save_LIBS=$LIBS
1.21376 +ac_cv_search_strerror=no
1.21377 +cat >conftest.$ac_ext <<_ACEOF
1.21378 +/* confdefs.h. */
1.21379 +_ACEOF
1.21380 +cat confdefs.h >>conftest.$ac_ext
1.21381 +cat >>conftest.$ac_ext <<_ACEOF
1.21382 +/* end confdefs.h. */
1.21383 +
1.21384 +/* Override any gcc2 internal prototype to avoid an error. */
1.21385 +#ifdef __cplusplus
1.21386 +extern "C"
1.21387 +#endif
1.21388 +/* We use char because int might match the return type of a gcc2
1.21389 + builtin and then its argument prototype would still apply. */
1.21390 +char strerror ();
1.21391 +int
1.21392 +main ()
1.21393 +{
1.21394 +strerror ();
1.21395 + ;
1.21396 + return 0;
1.21397 +}
1.21398 +_ACEOF
1.21399 +rm -f conftest.$ac_objext conftest$ac_exeext
1.21400 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.21401 + (eval $ac_link) 2>conftest.er1
1.21402 + ac_status=$?
1.21403 + grep -v '^ *+' conftest.er1 >conftest.err
1.21404 + rm -f conftest.er1
1.21405 + cat conftest.err >&5
1.21406 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21407 + (exit $ac_status); } &&
1.21408 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.21409 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21410 + (eval $ac_try) 2>&5
1.21411 + ac_status=$?
1.21412 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21413 + (exit $ac_status); }; } &&
1.21414 + { ac_try='test -s conftest$ac_exeext'
1.21415 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21416 + (eval $ac_try) 2>&5
1.21417 + ac_status=$?
1.21418 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21419 + (exit $ac_status); }; }; then
1.21420 + ac_cv_search_strerror="none required"
1.21421 +else
1.21422 + echo "$as_me: failed program was:" >&5
1.21423 +sed 's/^/| /' conftest.$ac_ext >&5
1.21424 +
1.21425 +fi
1.21426 +rm -f conftest.err conftest.$ac_objext \
1.21427 + conftest$ac_exeext conftest.$ac_ext
1.21428 +if test "$ac_cv_search_strerror" = no; then
1.21429 + for ac_lib in cposix; do
1.21430 + LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.21431 + cat >conftest.$ac_ext <<_ACEOF
1.21432 +/* confdefs.h. */
1.21433 +_ACEOF
1.21434 +cat confdefs.h >>conftest.$ac_ext
1.21435 +cat >>conftest.$ac_ext <<_ACEOF
1.21436 +/* end confdefs.h. */
1.21437 +
1.21438 +/* Override any gcc2 internal prototype to avoid an error. */
1.21439 +#ifdef __cplusplus
1.21440 +extern "C"
1.21441 +#endif
1.21442 +/* We use char because int might match the return type of a gcc2
1.21443 + builtin and then its argument prototype would still apply. */
1.21444 +char strerror ();
1.21445 +int
1.21446 +main ()
1.21447 +{
1.21448 +strerror ();
1.21449 + ;
1.21450 + return 0;
1.21451 +}
1.21452 +_ACEOF
1.21453 +rm -f conftest.$ac_objext conftest$ac_exeext
1.21454 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.21455 + (eval $ac_link) 2>conftest.er1
1.21456 + ac_status=$?
1.21457 + grep -v '^ *+' conftest.er1 >conftest.err
1.21458 + rm -f conftest.er1
1.21459 + cat conftest.err >&5
1.21460 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21461 + (exit $ac_status); } &&
1.21462 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.21463 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21464 + (eval $ac_try) 2>&5
1.21465 + ac_status=$?
1.21466 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21467 + (exit $ac_status); }; } &&
1.21468 + { ac_try='test -s conftest$ac_exeext'
1.21469 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21470 + (eval $ac_try) 2>&5
1.21471 + ac_status=$?
1.21472 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21473 + (exit $ac_status); }; }; then
1.21474 + ac_cv_search_strerror="-l$ac_lib"
1.21475 +break
1.21476 +else
1.21477 + echo "$as_me: failed program was:" >&5
1.21478 +sed 's/^/| /' conftest.$ac_ext >&5
1.21479 +
1.21480 +fi
1.21481 +rm -f conftest.err conftest.$ac_objext \
1.21482 + conftest$ac_exeext conftest.$ac_ext
1.21483 + done
1.21484 +fi
1.21485 +LIBS=$ac_func_search_save_LIBS
1.21486 +fi
1.21487 +echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
1.21488 +echo "${ECHO_T}$ac_cv_search_strerror" >&6
1.21489 +if test "$ac_cv_search_strerror" != no; then
1.21490 + test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
1.21491 +
1.21492 +fi
1.21493 +
1.21494 +
1.21495 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
1.21496 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1.21497 +if test "${ac_cv_header_stdc+set}" = set; then
1.21498 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21499 +else
1.21500 + cat >conftest.$ac_ext <<_ACEOF
1.21501 +/* confdefs.h. */
1.21502 +_ACEOF
1.21503 +cat confdefs.h >>conftest.$ac_ext
1.21504 +cat >>conftest.$ac_ext <<_ACEOF
1.21505 +/* end confdefs.h. */
1.21506 +#include <stdlib.h>
1.21507 +#include <stdarg.h>
1.21508 +#include <string.h>
1.21509 +#include <float.h>
1.21510 +
1.21511 +int
1.21512 +main ()
1.21513 +{
1.21514 +
1.21515 + ;
1.21516 + return 0;
1.21517 +}
1.21518 +_ACEOF
1.21519 +rm -f conftest.$ac_objext
1.21520 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.21521 + (eval $ac_compile) 2>conftest.er1
1.21522 + ac_status=$?
1.21523 + grep -v '^ *+' conftest.er1 >conftest.err
1.21524 + rm -f conftest.er1
1.21525 + cat conftest.err >&5
1.21526 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21527 + (exit $ac_status); } &&
1.21528 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.21529 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21530 + (eval $ac_try) 2>&5
1.21531 + ac_status=$?
1.21532 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21533 + (exit $ac_status); }; } &&
1.21534 + { ac_try='test -s conftest.$ac_objext'
1.21535 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21536 + (eval $ac_try) 2>&5
1.21537 + ac_status=$?
1.21538 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21539 + (exit $ac_status); }; }; then
1.21540 + ac_cv_header_stdc=yes
1.21541 +else
1.21542 + echo "$as_me: failed program was:" >&5
1.21543 +sed 's/^/| /' conftest.$ac_ext >&5
1.21544 +
1.21545 +ac_cv_header_stdc=no
1.21546 +fi
1.21547 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.21548 +
1.21549 +if test $ac_cv_header_stdc = yes; then
1.21550 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.21551 + cat >conftest.$ac_ext <<_ACEOF
1.21552 +/* confdefs.h. */
1.21553 +_ACEOF
1.21554 +cat confdefs.h >>conftest.$ac_ext
1.21555 +cat >>conftest.$ac_ext <<_ACEOF
1.21556 +/* end confdefs.h. */
1.21557 +#include <string.h>
1.21558 +
1.21559 +_ACEOF
1.21560 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.21561 + $EGREP "memchr" >/dev/null 2>&1; then
1.21562 + :
1.21563 +else
1.21564 + ac_cv_header_stdc=no
1.21565 +fi
1.21566 +rm -f conftest*
1.21567 +
1.21568 +fi
1.21569 +
1.21570 +if test $ac_cv_header_stdc = yes; then
1.21571 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.21572 + cat >conftest.$ac_ext <<_ACEOF
1.21573 +/* confdefs.h. */
1.21574 +_ACEOF
1.21575 +cat confdefs.h >>conftest.$ac_ext
1.21576 +cat >>conftest.$ac_ext <<_ACEOF
1.21577 +/* end confdefs.h. */
1.21578 +#include <stdlib.h>
1.21579 +
1.21580 +_ACEOF
1.21581 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.21582 + $EGREP "free" >/dev/null 2>&1; then
1.21583 + :
1.21584 +else
1.21585 + ac_cv_header_stdc=no
1.21586 +fi
1.21587 +rm -f conftest*
1.21588 +
1.21589 +fi
1.21590 +
1.21591 +if test $ac_cv_header_stdc = yes; then
1.21592 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.21593 + if test "$cross_compiling" = yes; then
1.21594 + :
1.21595 +else
1.21596 + cat >conftest.$ac_ext <<_ACEOF
1.21597 +/* confdefs.h. */
1.21598 +_ACEOF
1.21599 +cat confdefs.h >>conftest.$ac_ext
1.21600 +cat >>conftest.$ac_ext <<_ACEOF
1.21601 +/* end confdefs.h. */
1.21602 +#include <ctype.h>
1.21603 +#if ((' ' & 0x0FF) == 0x020)
1.21604 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1.21605 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1.21606 +#else
1.21607 +# define ISLOWER(c) \
1.21608 + (('a' <= (c) && (c) <= 'i') \
1.21609 + || ('j' <= (c) && (c) <= 'r') \
1.21610 + || ('s' <= (c) && (c) <= 'z'))
1.21611 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1.21612 +#endif
1.21613 +
1.21614 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.21615 +int
1.21616 +main ()
1.21617 +{
1.21618 + int i;
1.21619 + for (i = 0; i < 256; i++)
1.21620 + if (XOR (islower (i), ISLOWER (i))
1.21621 + || toupper (i) != TOUPPER (i))
1.21622 + exit(2);
1.21623 + exit (0);
1.21624 +}
1.21625 +_ACEOF
1.21626 +rm -f conftest$ac_exeext
1.21627 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1.21628 + (eval $ac_link) 2>&5
1.21629 + ac_status=$?
1.21630 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21631 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.21632 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21633 + (eval $ac_try) 2>&5
1.21634 + ac_status=$?
1.21635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21636 + (exit $ac_status); }; }; then
1.21637 + :
1.21638 +else
1.21639 + echo "$as_me: program exited with status $ac_status" >&5
1.21640 +echo "$as_me: failed program was:" >&5
1.21641 +sed 's/^/| /' conftest.$ac_ext >&5
1.21642 +
1.21643 +( exit $ac_status )
1.21644 +ac_cv_header_stdc=no
1.21645 +fi
1.21646 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.21647 +fi
1.21648 +fi
1.21649 +fi
1.21650 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1.21651 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
1.21652 +if test $ac_cv_header_stdc = yes; then
1.21653 +
1.21654 +cat >>confdefs.h <<\_ACEOF
1.21655 +#define STDC_HEADERS 1
1.21656 +_ACEOF
1.21657 +
1.21658 +fi
1.21659 +
1.21660 +echo "$as_me:$LINENO: checking for inline" >&5
1.21661 +echo $ECHO_N "checking for inline... $ECHO_C" >&6
1.21662 +if test "${ac_cv_c_inline+set}" = set; then
1.21663 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21664 +else
1.21665 + ac_cv_c_inline=no
1.21666 +for ac_kw in inline __inline__ __inline; do
1.21667 + cat >conftest.$ac_ext <<_ACEOF
1.21668 +/* confdefs.h. */
1.21669 +_ACEOF
1.21670 +cat confdefs.h >>conftest.$ac_ext
1.21671 +cat >>conftest.$ac_ext <<_ACEOF
1.21672 +/* end confdefs.h. */
1.21673 +#ifndef __cplusplus
1.21674 +typedef int foo_t;
1.21675 +static $ac_kw foo_t static_foo () {return 0; }
1.21676 +$ac_kw foo_t foo () {return 0; }
1.21677 +#endif
1.21678 +
1.21679 +_ACEOF
1.21680 +rm -f conftest.$ac_objext
1.21681 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1.21682 + (eval $ac_compile) 2>conftest.er1
1.21683 + ac_status=$?
1.21684 + grep -v '^ *+' conftest.er1 >conftest.err
1.21685 + rm -f conftest.er1
1.21686 + cat conftest.err >&5
1.21687 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21688 + (exit $ac_status); } &&
1.21689 + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1.21690 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21691 + (eval $ac_try) 2>&5
1.21692 + ac_status=$?
1.21693 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21694 + (exit $ac_status); }; } &&
1.21695 + { ac_try='test -s conftest.$ac_objext'
1.21696 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1.21697 + (eval $ac_try) 2>&5
1.21698 + ac_status=$?
1.21699 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.21700 + (exit $ac_status); }; }; then
1.21701 + ac_cv_c_inline=$ac_kw; break
1.21702 +else
1.21703 + echo "$as_me: failed program was:" >&5
1.21704 +sed 's/^/| /' conftest.$ac_ext >&5
1.21705 +
1.21706 +fi
1.21707 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1.21708 +done
1.21709 +
1.21710 +fi
1.21711 +echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
1.21712 +echo "${ECHO_T}$ac_cv_c_inline" >&6
1.21713 +
1.21714 +
1.21715 +case $ac_cv_c_inline in
1.21716 + inline | yes) ;;
1.21717 + *)
1.21718 + case $ac_cv_c_inline in
1.21719 + no) ac_val=;;
1.21720 + *) ac_val=$ac_cv_c_inline;;
1.21721 + esac
1.21722 + cat >>confdefs.h <<_ACEOF
1.21723 +#ifndef __cplusplus
1.21724 +#define inline $ac_val
1.21725 +#endif
1.21726 +_ACEOF
1.21727 + ;;
1.21728 +esac
1.21729 +
1.21730 +
1.21731 +# Extract the first word of "pkg-config", so it can be a program name with args.
1.21732 +set dummy pkg-config; ac_word=$2
1.21733 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.21734 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.21735 +if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
1.21736 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21737 +else
1.21738 + if test -n "$HAVE_PKGCONFIG"; then
1.21739 + ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
1.21740 +else
1.21741 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.21742 +for as_dir in $PATH
1.21743 +do
1.21744 + IFS=$as_save_IFS
1.21745 + test -z "$as_dir" && as_dir=.
1.21746 + for ac_exec_ext in '' $ac_executable_extensions; do
1.21747 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.21748 + ac_cv_prog_HAVE_PKGCONFIG="yes"
1.21749 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.21750 + break 2
1.21751 + fi
1.21752 +done
1.21753 +done
1.21754 +
1.21755 + test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
1.21756 +fi
1.21757 +fi
1.21758 +HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
1.21759 +if test -n "$HAVE_PKGCONFIG"; then
1.21760 + echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
1.21761 +echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
1.21762 +else
1.21763 + echo "$as_me:$LINENO: result: no" >&5
1.21764 +echo "${ECHO_T}no" >&6
1.21765 +fi
1.21766 +
1.21767 +
1.21768 +if test "x$HAVE_PKGCONFIG" = "xno"; then
1.21769 + { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
1.21770 +echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
1.21771 + { (exit 1); exit 1; }; }
1.21772 +fi
1.21773 +
1.21774 +
1.21775 +GST_REQUIRED=0.10.3
1.21776 +GST_MAJORMINOR=0.10
1.21777 +
1.21778 +
1.21779 + succeeded=no
1.21780 +
1.21781 + if test -z "$PKG_CONFIG"; then
1.21782 + # Extract the first word of "pkg-config", so it can be a program name with args.
1.21783 +set dummy pkg-config; ac_word=$2
1.21784 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.21785 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.21786 +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.21787 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21788 +else
1.21789 + case $PKG_CONFIG in
1.21790 + [\\/]* | ?:[\\/]*)
1.21791 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.21792 + ;;
1.21793 + *)
1.21794 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.21795 +for as_dir in $PATH
1.21796 +do
1.21797 + IFS=$as_save_IFS
1.21798 + test -z "$as_dir" && as_dir=.
1.21799 + for ac_exec_ext in '' $ac_executable_extensions; do
1.21800 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.21801 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.21802 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.21803 + break 2
1.21804 + fi
1.21805 +done
1.21806 +done
1.21807 +
1.21808 + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.21809 + ;;
1.21810 +esac
1.21811 +fi
1.21812 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1.21813 +
1.21814 +if test -n "$PKG_CONFIG"; then
1.21815 + echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
1.21816 +echo "${ECHO_T}$PKG_CONFIG" >&6
1.21817 +else
1.21818 + echo "$as_me:$LINENO: result: no" >&5
1.21819 +echo "${ECHO_T}no" >&6
1.21820 +fi
1.21821 +
1.21822 + fi
1.21823 +
1.21824 + if test "$PKG_CONFIG" = "no" ; then
1.21825 + echo "*** The pkg-config script could not be found. Make sure it is"
1.21826 + echo "*** in your path, or set the PKG_CONFIG environment variable"
1.21827 + echo "*** to the full path to pkg-config."
1.21828 + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1.21829 + else
1.21830 + PKG_CONFIG_MIN_VERSION=0.9.0
1.21831 + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1.21832 + echo "$as_me:$LINENO: checking for \
1.21833 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
1.21834 +echo $ECHO_N "checking for \
1.21835 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
1.21836 +
1.21837 + if $PKG_CONFIG --exists "\
1.21838 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
1.21839 + echo "$as_me:$LINENO: result: yes" >&5
1.21840 +echo "${ECHO_T}yes" >&6
1.21841 + succeeded=yes
1.21842 +
1.21843 + echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
1.21844 +echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
1.21845 + GST_CFLAGS=`$PKG_CONFIG --cflags "\
1.21846 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21847 + echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
1.21848 +echo "${ECHO_T}$GST_CFLAGS" >&6
1.21849 +
1.21850 + echo "$as_me:$LINENO: checking GST_LIBS" >&5
1.21851 +echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
1.21852 + GST_LIBS=`$PKG_CONFIG --libs "\
1.21853 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21854 + echo "$as_me:$LINENO: result: $GST_LIBS" >&5
1.21855 +echo "${ECHO_T}$GST_LIBS" >&6
1.21856 + else
1.21857 + GST_CFLAGS=""
1.21858 + GST_LIBS=""
1.21859 + ## If we have a custom action on failure, don't print errors, but
1.21860 + ## do set a variable so people can do so.
1.21861 + GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
1.21862 + gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21863 +
1.21864 + fi
1.21865 +
1.21866 +
1.21867 +
1.21868 + else
1.21869 + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1.21870 + echo "*** See http://www.freedesktop.org/software/pkgconfig"
1.21871 + fi
1.21872 + fi
1.21873 +
1.21874 + if test $succeeded = yes; then
1.21875 + HAVE_GST=yes
1.21876 + else
1.21877 + HAVE_GST=no
1.21878 + fi
1.21879 +
1.21880 +
1.21881 +if test "x$HAVE_GST" = "xno"; then
1.21882 + { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
1.21883 +echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
1.21884 + { (exit 1); exit 1; }; }
1.21885 +fi
1.21886 +
1.21887 +if test "x$USE_DEBUG" = xyes; then
1.21888 + GST_CFLAGS="$GST_CFLAGS -g"
1.21889 +fi
1.21890 +
1.21891 +
1.21892 +
1.21893 +
1.21894 +
1.21895 +
1.21896 +
1.21897 + succeeded=no
1.21898 +
1.21899 + if test -z "$PKG_CONFIG"; then
1.21900 + # Extract the first word of "pkg-config", so it can be a program name with args.
1.21901 +set dummy pkg-config; ac_word=$2
1.21902 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.21903 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.21904 +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.21905 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.21906 +else
1.21907 + case $PKG_CONFIG in
1.21908 + [\\/]* | ?:[\\/]*)
1.21909 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.21910 + ;;
1.21911 + *)
1.21912 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.21913 +for as_dir in $PATH
1.21914 +do
1.21915 + IFS=$as_save_IFS
1.21916 + test -z "$as_dir" && as_dir=.
1.21917 + for ac_exec_ext in '' $ac_executable_extensions; do
1.21918 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.21919 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.21920 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.21921 + break 2
1.21922 + fi
1.21923 +done
1.21924 +done
1.21925 +
1.21926 + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.21927 + ;;
1.21928 +esac
1.21929 +fi
1.21930 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1.21931 +
1.21932 +if test -n "$PKG_CONFIG"; then
1.21933 + echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
1.21934 +echo "${ECHO_T}$PKG_CONFIG" >&6
1.21935 +else
1.21936 + echo "$as_me:$LINENO: result: no" >&5
1.21937 +echo "${ECHO_T}no" >&6
1.21938 +fi
1.21939 +
1.21940 + fi
1.21941 +
1.21942 + if test "$PKG_CONFIG" = "no" ; then
1.21943 + echo "*** The pkg-config script could not be found. Make sure it is"
1.21944 + echo "*** in your path, or set the PKG_CONFIG environment variable"
1.21945 + echo "*** to the full path to pkg-config."
1.21946 + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1.21947 + else
1.21948 + PKG_CONFIG_MIN_VERSION=0.9.0
1.21949 + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1.21950 + echo "$as_me:$LINENO: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
1.21951 +echo $ECHO_N "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
1.21952 +
1.21953 + if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
1.21954 + echo "$as_me:$LINENO: result: yes" >&5
1.21955 +echo "${ECHO_T}yes" >&6
1.21956 + succeeded=yes
1.21957 +
1.21958 + echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
1.21959 +echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
1.21960 + GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21961 + echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
1.21962 +echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
1.21963 +
1.21964 + echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
1.21965 +echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
1.21966 + GST_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21967 + echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
1.21968 +echo "${ECHO_T}$GST_BASE_LIBS" >&6
1.21969 + else
1.21970 + GST_BASE_CFLAGS=""
1.21971 + GST_BASE_LIBS=""
1.21972 + ## If we have a custom action on failure, don't print errors, but
1.21973 + ## do set a variable so people can do so.
1.21974 + GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.21975 +
1.21976 + fi
1.21977 +
1.21978 +
1.21979 +
1.21980 + else
1.21981 + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1.21982 + echo "*** See http://www.freedesktop.org/software/pkgconfig"
1.21983 + fi
1.21984 + fi
1.21985 +
1.21986 + if test $succeeded = yes; then
1.21987 + HAVE_GST_BASE="yes"
1.21988 + else
1.21989 + HAVE_GST_BASE="no"
1.21990 + fi
1.21991 +
1.21992 +
1.21993 +if test "x$HAVE_GST_BASE" = "xno"; then
1.21994 + { { echo "$as_me:$LINENO: error: no GStreamer Base Libs found" >&5
1.21995 +echo "$as_me: error: no GStreamer Base Libs found" >&2;}
1.21996 + { (exit 1); exit 1; }; }
1.21997 +fi
1.21998 +
1.21999 +
1.22000 +
1.22001 +
1.22002 +
1.22003 + succeeded=no
1.22004 +
1.22005 + if test -z "$PKG_CONFIG"; then
1.22006 + # Extract the first word of "pkg-config", so it can be a program name with args.
1.22007 +set dummy pkg-config; ac_word=$2
1.22008 +echo "$as_me:$LINENO: checking for $ac_word" >&5
1.22009 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1.22010 +if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
1.22011 + echo $ECHO_N "(cached) $ECHO_C" >&6
1.22012 +else
1.22013 + case $PKG_CONFIG in
1.22014 + [\\/]* | ?:[\\/]*)
1.22015 + ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
1.22016 + ;;
1.22017 + *)
1.22018 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.22019 +for as_dir in $PATH
1.22020 +do
1.22021 + IFS=$as_save_IFS
1.22022 + test -z "$as_dir" && as_dir=.
1.22023 + for ac_exec_ext in '' $ac_executable_extensions; do
1.22024 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1.22025 + ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
1.22026 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1.22027 + break 2
1.22028 + fi
1.22029 +done
1.22030 +done
1.22031 +
1.22032 + test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
1.22033 + ;;
1.22034 +esac
1.22035 +fi
1.22036 +PKG_CONFIG=$ac_cv_path_PKG_CONFIG
1.22037 +
1.22038 +if test -n "$PKG_CONFIG"; then
1.22039 + echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
1.22040 +echo "${ECHO_T}$PKG_CONFIG" >&6
1.22041 +else
1.22042 + echo "$as_me:$LINENO: result: no" >&5
1.22043 +echo "${ECHO_T}no" >&6
1.22044 +fi
1.22045 +
1.22046 + fi
1.22047 +
1.22048 + if test "$PKG_CONFIG" = "no" ; then
1.22049 + echo "*** The pkg-config script could not be found. Make sure it is"
1.22050 + echo "*** in your path, or set the PKG_CONFIG environment variable"
1.22051 + echo "*** to the full path to pkg-config."
1.22052 + echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
1.22053 + else
1.22054 + PKG_CONFIG_MIN_VERSION=0.9.0
1.22055 + if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
1.22056 + echo "$as_me:$LINENO: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
1.22057 +echo $ECHO_N "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
1.22058 +
1.22059 + if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
1.22060 + echo "$as_me:$LINENO: result: yes" >&5
1.22061 +echo "${ECHO_T}yes" >&6
1.22062 + succeeded=yes
1.22063 +
1.22064 + echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_CFLAGS" >&5
1.22065 +echo $ECHO_N "checking GST_PLUGINS_BASE_CFLAGS... $ECHO_C" >&6
1.22066 + GST_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.22067 + echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_CFLAGS" >&5
1.22068 +echo "${ECHO_T}$GST_PLUGINS_BASE_CFLAGS" >&6
1.22069 +
1.22070 + echo "$as_me:$LINENO: checking GST_PLUGINS_BASE_LIBS" >&5
1.22071 +echo $ECHO_N "checking GST_PLUGINS_BASE_LIBS... $ECHO_C" >&6
1.22072 + GST_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.22073 + echo "$as_me:$LINENO: result: $GST_PLUGINS_BASE_LIBS" >&5
1.22074 +echo "${ECHO_T}$GST_PLUGINS_BASE_LIBS" >&6
1.22075 + else
1.22076 + GST_PLUGINS_BASE_CFLAGS=""
1.22077 + GST_PLUGINS_BASE_LIBS=""
1.22078 + ## If we have a custom action on failure, don't print errors, but
1.22079 + ## do set a variable so people can do so.
1.22080 + GST_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
1.22081 +
1.22082 + fi
1.22083 +
1.22084 +
1.22085 +
1.22086 + else
1.22087 + echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
1.22088 + echo "*** See http://www.freedesktop.org/software/pkgconfig"
1.22089 + fi
1.22090 + fi
1.22091 +
1.22092 + if test $succeeded = yes; then
1.22093 + HAVE_GST_PLUGINS="yes"
1.22094 + else
1.22095 + HAVE_GST_PLUGINS="no"
1.22096 + fi
1.22097 +
1.22098 +
1.22099 +if test "x$HAVE_GST_PLUGINS" = "xno"; then
1.22100 + { { echo "$as_me:$LINENO: error: no GStreamer Plugins Libs found" >&5
1.22101 +echo "$as_me: error: no GStreamer Plugins Libs found" >&2;}
1.22102 + { (exit 1); exit 1; }; }
1.22103 +fi
1.22104 +
1.22105 +
1.22106 +
1.22107 +
1.22108 +plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
1.22109 +
1.22110 +
1.22111 +GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
1.22112 +
1.22113 +
1.22114 + ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile"
1.22115 +cat >confcache <<\_ACEOF
1.22116 +# This file is a shell script that caches the results of configure
1.22117 +# tests run on this system so they can be shared between configure
1.22118 +# scripts and configure runs, see configure's option --config-cache.
1.22119 +# It is not useful on other systems. If it contains results you don't
1.22120 +# want to keep, you may remove or edit it.
1.22121 +#
1.22122 +# config.status only pays attention to the cache file if you give it
1.22123 +# the --recheck option to rerun configure.
1.22124 +#
1.22125 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
1.22126 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
1.22127 +# following values.
1.22128 +
1.22129 +_ACEOF
1.22130 +
1.22131 +# The following way of writing the cache mishandles newlines in values,
1.22132 +# but we know of no workaround that is simple, portable, and efficient.
1.22133 +# So, don't put newlines in cache variables' values.
1.22134 +# Ultrix sh set writes to stderr and can't be redirected directly,
1.22135 +# and sets the high bit in the cache file unless we assign to the vars.
1.22136 +{
1.22137 + (set) 2>&1 |
1.22138 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
1.22139 + *ac_space=\ *)
1.22140 + # `set' does not quote correctly, so add quotes (double-quote
1.22141 + # substitution turns \\\\ into \\, and sed turns \\ into \).
1.22142 + sed -n \
1.22143 + "s/'/'\\\\''/g;
1.22144 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1.22145 + ;;
1.22146 + *)
1.22147 + # `set' quotes correctly as required by POSIX, so do not add quotes.
1.22148 + sed -n \
1.22149 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1.22150 + ;;
1.22151 + esac;
1.22152 +} |
1.22153 + sed '
1.22154 + t clear
1.22155 + : clear
1.22156 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1.22157 + t end
1.22158 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1.22159 + : end' >>confcache
1.22160 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
1.22161 + if test -w $cache_file; then
1.22162 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1.22163 + cat confcache >$cache_file
1.22164 + else
1.22165 + echo "not updating unwritable cache $cache_file"
1.22166 + fi
1.22167 +fi
1.22168 +rm -f confcache
1.22169 +
1.22170 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
1.22171 +# Let make expand exec_prefix.
1.22172 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.22173 +
1.22174 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
1.22175 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1.22176 +# trailing colons and then remove the whole line if VPATH becomes empty
1.22177 +# (actually we leave an empty line to preserve line numbers).
1.22178 +if test "x$srcdir" = x.; then
1.22179 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
1.22180 +s/:*\$(srcdir):*/:/;
1.22181 +s/:*\${srcdir}:*/:/;
1.22182 +s/:*@srcdir@:*/:/;
1.22183 +s/^\([^=]*=[ ]*\):*/\1/;
1.22184 +s/:*$//;
1.22185 +s/^[^=]*=[ ]*$//;
1.22186 +}'
1.22187 +fi
1.22188 +
1.22189 +DEFS=-DHAVE_CONFIG_H
1.22190 +
1.22191 +ac_libobjs=
1.22192 +ac_ltlibobjs=
1.22193 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1.22194 + # 1. Remove the extension, and $U if already installed.
1.22195 + ac_i=`echo "$ac_i" |
1.22196 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1.22197 + # 2. Add them.
1.22198 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1.22199 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1.22200 +done
1.22201 +LIBOBJS=$ac_libobjs
1.22202 +
1.22203 +LTLIBOBJS=$ac_ltlibobjs
1.22204 +
1.22205 +
1.22206 +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1.22207 + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
1.22208 +Usually this means the macro was only invoked conditionally." >&5
1.22209 +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
1.22210 +Usually this means the macro was only invoked conditionally." >&2;}
1.22211 + { (exit 1); exit 1; }; }
1.22212 +fi
1.22213 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.22214 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1.22215 +Usually this means the macro was only invoked conditionally." >&5
1.22216 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
1.22217 +Usually this means the macro was only invoked conditionally." >&2;}
1.22218 + { (exit 1); exit 1; }; }
1.22219 +fi
1.22220 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.22221 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.22222 +Usually this means the macro was only invoked conditionally." >&5
1.22223 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.22224 +Usually this means the macro was only invoked conditionally." >&2;}
1.22225 + { (exit 1); exit 1; }; }
1.22226 +fi
1.22227 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.22228 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.22229 +Usually this means the macro was only invoked conditionally." >&5
1.22230 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.22231 +Usually this means the macro was only invoked conditionally." >&2;}
1.22232 + { (exit 1); exit 1; }; }
1.22233 +fi
1.22234 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.22235 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1.22236 +Usually this means the macro was only invoked conditionally." >&5
1.22237 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1.22238 +Usually this means the macro was only invoked conditionally." >&2;}
1.22239 + { (exit 1); exit 1; }; }
1.22240 +fi
1.22241 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.22242 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
1.22243 +Usually this means the macro was only invoked conditionally." >&5
1.22244 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
1.22245 +Usually this means the macro was only invoked conditionally." >&2;}
1.22246 + { (exit 1); exit 1; }; }
1.22247 +fi
1.22248 +
1.22249 +: ${CONFIG_STATUS=./config.status}
1.22250 +ac_clean_files_save=$ac_clean_files
1.22251 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.22252 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1.22253 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
1.22254 +cat >$CONFIG_STATUS <<_ACEOF
1.22255 +#! $SHELL
1.22256 +# Generated by $as_me.
1.22257 +# Run this file to recreate the current configuration.
1.22258 +# Compiler output produced by configure, useful for debugging
1.22259 +# configure, is in config.log if it exists.
1.22260 +
1.22261 +debug=false
1.22262 +ac_cs_recheck=false
1.22263 +ac_cs_silent=false
1.22264 +SHELL=\${CONFIG_SHELL-$SHELL}
1.22265 +_ACEOF
1.22266 +
1.22267 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22268 +## --------------------- ##
1.22269 +## M4sh Initialization. ##
1.22270 +## --------------------- ##
1.22271 +
1.22272 +# Be Bourne compatible
1.22273 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1.22274 + emulate sh
1.22275 + NULLCMD=:
1.22276 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1.22277 + # is contrary to our usage. Disable this feature.
1.22278 + alias -g '${1+"$@"}'='"$@"'
1.22279 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1.22280 + set -o posix
1.22281 +fi
1.22282 +DUALCASE=1; export DUALCASE # for MKS sh
1.22283 +
1.22284 +# Support unset when possible.
1.22285 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.22286 + as_unset=unset
1.22287 +else
1.22288 + as_unset=false
1.22289 +fi
1.22290 +
1.22291 +
1.22292 +# Work around bugs in pre-3.0 UWIN ksh.
1.22293 +$as_unset ENV MAIL MAILPATH
1.22294 +PS1='$ '
1.22295 +PS2='> '
1.22296 +PS4='+ '
1.22297 +
1.22298 +# NLS nuisances.
1.22299 +for as_var in \
1.22300 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1.22301 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1.22302 + LC_TELEPHONE LC_TIME
1.22303 +do
1.22304 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.22305 + eval $as_var=C; export $as_var
1.22306 + else
1.22307 + $as_unset $as_var
1.22308 + fi
1.22309 +done
1.22310 +
1.22311 +# Required to use basename.
1.22312 +if expr a : '\(a\)' >/dev/null 2>&1; then
1.22313 + as_expr=expr
1.22314 +else
1.22315 + as_expr=false
1.22316 +fi
1.22317 +
1.22318 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1.22319 + as_basename=basename
1.22320 +else
1.22321 + as_basename=false
1.22322 +fi
1.22323 +
1.22324 +
1.22325 +# Name of the executable.
1.22326 +as_me=`$as_basename "$0" ||
1.22327 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1.22328 + X"$0" : 'X\(//\)$' \| \
1.22329 + X"$0" : 'X\(/\)$' \| \
1.22330 + . : '\(.\)' 2>/dev/null ||
1.22331 +echo X/"$0" |
1.22332 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1.22333 + /^X\/\(\/\/\)$/{ s//\1/; q; }
1.22334 + /^X\/\(\/\).*/{ s//\1/; q; }
1.22335 + s/.*/./; q'`
1.22336 +
1.22337 +
1.22338 +# PATH needs CR, and LINENO needs CR and PATH.
1.22339 +# Avoid depending upon Character Ranges.
1.22340 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
1.22341 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1.22342 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
1.22343 +as_cr_digits='0123456789'
1.22344 +as_cr_alnum=$as_cr_Letters$as_cr_digits
1.22345 +
1.22346 +# The user is always right.
1.22347 +if test "${PATH_SEPARATOR+set}" != set; then
1.22348 + echo "#! /bin/sh" >conf$$.sh
1.22349 + echo "exit 0" >>conf$$.sh
1.22350 + chmod +x conf$$.sh
1.22351 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1.22352 + PATH_SEPARATOR=';'
1.22353 + else
1.22354 + PATH_SEPARATOR=:
1.22355 + fi
1.22356 + rm -f conf$$.sh
1.22357 +fi
1.22358 +
1.22359 +
1.22360 + as_lineno_1=$LINENO
1.22361 + as_lineno_2=$LINENO
1.22362 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1.22363 + test "x$as_lineno_1" != "x$as_lineno_2" &&
1.22364 + test "x$as_lineno_3" = "x$as_lineno_2" || {
1.22365 + # Find who we are. Look in the path if we contain no path at all
1.22366 + # relative or not.
1.22367 + case $0 in
1.22368 + *[\\/]* ) as_myself=$0 ;;
1.22369 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.22370 +for as_dir in $PATH
1.22371 +do
1.22372 + IFS=$as_save_IFS
1.22373 + test -z "$as_dir" && as_dir=.
1.22374 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1.22375 +done
1.22376 +
1.22377 + ;;
1.22378 + esac
1.22379 + # We did not find ourselves, most probably we were run as `sh COMMAND'
1.22380 + # in which case we are not to be found in the path.
1.22381 + if test "x$as_myself" = x; then
1.22382 + as_myself=$0
1.22383 + fi
1.22384 + if test ! -f "$as_myself"; then
1.22385 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1.22386 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1.22387 + { (exit 1); exit 1; }; }
1.22388 + fi
1.22389 + case $CONFIG_SHELL in
1.22390 + '')
1.22391 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.22392 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.22393 +do
1.22394 + IFS=$as_save_IFS
1.22395 + test -z "$as_dir" && as_dir=.
1.22396 + for as_base in sh bash ksh sh5; do
1.22397 + case $as_dir in
1.22398 + /*)
1.22399 + if ("$as_dir/$as_base" -c '
1.22400 + as_lineno_1=$LINENO
1.22401 + as_lineno_2=$LINENO
1.22402 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1.22403 + test "x$as_lineno_1" != "x$as_lineno_2" &&
1.22404 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1.22405 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1.22406 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1.22407 + CONFIG_SHELL=$as_dir/$as_base
1.22408 + export CONFIG_SHELL
1.22409 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1.22410 + fi;;
1.22411 + esac
1.22412 + done
1.22413 +done
1.22414 +;;
1.22415 + esac
1.22416 +
1.22417 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1.22418 + # uniformly replaced by the line number. The first 'sed' inserts a
1.22419 + # line-number line before each line; the second 'sed' does the real
1.22420 + # work. The second script uses 'N' to pair each line-number line
1.22421 + # with the numbered line, and appends trailing '-' during
1.22422 + # substitution so that $LINENO is not a special case at line end.
1.22423 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.22424 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1.22425 + sed '=' <$as_myself |
1.22426 + sed '
1.22427 + N
1.22428 + s,$,-,
1.22429 + : loop
1.22430 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1.22431 + t loop
1.22432 + s,-$,,
1.22433 + s,^['$as_cr_digits']*\n,,
1.22434 + ' >$as_me.lineno &&
1.22435 + chmod +x $as_me.lineno ||
1.22436 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1.22437 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1.22438 + { (exit 1); exit 1; }; }
1.22439 +
1.22440 + # Don't try to exec as it changes $[0], causing all sort of problems
1.22441 + # (the dirname of $[0] is not the place where we might find the
1.22442 + # original and so on. Autoconf is especially sensible to this).
1.22443 + . ./$as_me.lineno
1.22444 + # Exit status is that of the last command.
1.22445 + exit
1.22446 +}
1.22447 +
1.22448 +
1.22449 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1.22450 + *c*,-n*) ECHO_N= ECHO_C='
1.22451 +' ECHO_T=' ' ;;
1.22452 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1.22453 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1.22454 +esac
1.22455 +
1.22456 +if expr a : '\(a\)' >/dev/null 2>&1; then
1.22457 + as_expr=expr
1.22458 +else
1.22459 + as_expr=false
1.22460 +fi
1.22461 +
1.22462 +rm -f conf$$ conf$$.exe conf$$.file
1.22463 +echo >conf$$.file
1.22464 +if ln -s conf$$.file conf$$ 2>/dev/null; then
1.22465 + # We could just check for DJGPP; but this test a) works b) is more generic
1.22466 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1.22467 + if test -f conf$$.exe; then
1.22468 + # Don't use ln at all; we don't have any links
1.22469 + as_ln_s='cp -p'
1.22470 + else
1.22471 + as_ln_s='ln -s'
1.22472 + fi
1.22473 +elif ln conf$$.file conf$$ 2>/dev/null; then
1.22474 + as_ln_s=ln
1.22475 +else
1.22476 + as_ln_s='cp -p'
1.22477 +fi
1.22478 +rm -f conf$$ conf$$.exe conf$$.file
1.22479 +
1.22480 +if mkdir -p . 2>/dev/null; then
1.22481 + as_mkdir_p=:
1.22482 +else
1.22483 + test -d ./-p && rmdir ./-p
1.22484 + as_mkdir_p=false
1.22485 +fi
1.22486 +
1.22487 +as_executable_p="test -f"
1.22488 +
1.22489 +# Sed expression to map a string onto a valid CPP name.
1.22490 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.22491 +
1.22492 +# Sed expression to map a string onto a valid variable name.
1.22493 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.22494 +
1.22495 +
1.22496 +# IFS
1.22497 +# We need space, tab and new line, in precisely that order.
1.22498 +as_nl='
1.22499 +'
1.22500 +IFS=" $as_nl"
1.22501 +
1.22502 +# CDPATH.
1.22503 +$as_unset CDPATH
1.22504 +
1.22505 +exec 6>&1
1.22506 +
1.22507 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
1.22508 +# report actual input values of CONFIG_FILES etc. instead of their
1.22509 +# values after options handling. Logging --version etc. is OK.
1.22510 +exec 5>>config.log
1.22511 +{
1.22512 + echo
1.22513 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1.22514 +## Running $as_me. ##
1.22515 +_ASBOX
1.22516 +} >&5
1.22517 +cat >&5 <<_CSEOF
1.22518 +
1.22519 +This file was extended by $as_me, which was
1.22520 +generated by GNU Autoconf 2.59. Invocation command line was
1.22521 +
1.22522 + CONFIG_FILES = $CONFIG_FILES
1.22523 + CONFIG_HEADERS = $CONFIG_HEADERS
1.22524 + CONFIG_LINKS = $CONFIG_LINKS
1.22525 + CONFIG_COMMANDS = $CONFIG_COMMANDS
1.22526 + $ $0 $@
1.22527 +
1.22528 +_CSEOF
1.22529 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
1.22530 +echo >&5
1.22531 +_ACEOF
1.22532 +
1.22533 +# Files that config.status was made for.
1.22534 +if test -n "$ac_config_files"; then
1.22535 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.22536 +fi
1.22537 +
1.22538 +if test -n "$ac_config_headers"; then
1.22539 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1.22540 +fi
1.22541 +
1.22542 +if test -n "$ac_config_links"; then
1.22543 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.22544 +fi
1.22545 +
1.22546 +if test -n "$ac_config_commands"; then
1.22547 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.22548 +fi
1.22549 +
1.22550 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22551 +
1.22552 +ac_cs_usage="\
1.22553 +\`$as_me' instantiates files from templates according to the
1.22554 +current configuration.
1.22555 +
1.22556 +Usage: $0 [OPTIONS] [FILE]...
1.22557 +
1.22558 + -h, --help print this help, then exit
1.22559 + -V, --version print version number, then exit
1.22560 + -q, --quiet do not print progress messages
1.22561 + -d, --debug don't remove temporary files
1.22562 + --recheck update $as_me by reconfiguring in the same conditions
1.22563 + --file=FILE[:TEMPLATE]
1.22564 + instantiate the configuration file FILE
1.22565 + --header=FILE[:TEMPLATE]
1.22566 + instantiate the configuration header FILE
1.22567 +
1.22568 +Configuration files:
1.22569 +$config_files
1.22570 +
1.22571 +Configuration headers:
1.22572 +$config_headers
1.22573 +
1.22574 +Configuration commands:
1.22575 +$config_commands
1.22576 +
1.22577 +Report bugs to <bug-autoconf@gnu.org>."
1.22578 +_ACEOF
1.22579 +
1.22580 +cat >>$CONFIG_STATUS <<_ACEOF
1.22581 +ac_cs_version="\\
1.22582 +config.status
1.22583 +configured by $0, generated by GNU Autoconf 2.59,
1.22584 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1.22585 +
1.22586 +Copyright (C) 2003 Free Software Foundation, Inc.
1.22587 +This config.status script is free software; the Free Software Foundation
1.22588 +gives unlimited permission to copy, distribute and modify it."
1.22589 +srcdir=$srcdir
1.22590 +INSTALL="$INSTALL"
1.22591 +_ACEOF
1.22592 +
1.22593 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22594 +# If no file are specified by the user, then we need to provide default
1.22595 +# value. By we need to know if files were specified by the user.
1.22596 +ac_need_defaults=:
1.22597 +while test $# != 0
1.22598 +do
1.22599 + case $1 in
1.22600 + --*=*)
1.22601 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
1.22602 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.22603 + ac_shift=:
1.22604 + ;;
1.22605 + -*)
1.22606 + ac_option=$1
1.22607 + ac_optarg=$2
1.22608 + ac_shift=shift
1.22609 + ;;
1.22610 + *) # This is not an option, so the user has probably given explicit
1.22611 + # arguments.
1.22612 + ac_option=$1
1.22613 + ac_need_defaults=false;;
1.22614 + esac
1.22615 +
1.22616 + case $ac_option in
1.22617 + # Handling of the options.
1.22618 +_ACEOF
1.22619 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22620 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1.22621 + ac_cs_recheck=: ;;
1.22622 + --version | --vers* | -V )
1.22623 + echo "$ac_cs_version"; exit 0 ;;
1.22624 + --he | --h)
1.22625 + # Conflict between --help and --header
1.22626 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
1.22627 +Try \`$0 --help' for more information." >&5
1.22628 +echo "$as_me: error: ambiguous option: $1
1.22629 +Try \`$0 --help' for more information." >&2;}
1.22630 + { (exit 1); exit 1; }; };;
1.22631 + --help | --hel | -h )
1.22632 + echo "$ac_cs_usage"; exit 0 ;;
1.22633 + --debug | --d* | -d )
1.22634 + debug=: ;;
1.22635 + --file | --fil | --fi | --f )
1.22636 + $ac_shift
1.22637 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1.22638 + ac_need_defaults=false;;
1.22639 + --header | --heade | --head | --hea )
1.22640 + $ac_shift
1.22641 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1.22642 + ac_need_defaults=false;;
1.22643 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1.22644 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
1.22645 + ac_cs_silent=: ;;
1.22646 +
1.22647 + # This is an error.
1.22648 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1.22649 +Try \`$0 --help' for more information." >&5
1.22650 +echo "$as_me: error: unrecognized option: $1
1.22651 +Try \`$0 --help' for more information." >&2;}
1.22652 + { (exit 1); exit 1; }; } ;;
1.22653 +
1.22654 + *) ac_config_targets="$ac_config_targets $1" ;;
1.22655 +
1.22656 + esac
1.22657 + shift
1.22658 +done
1.22659 +
1.22660 +ac_configure_extra_args=
1.22661 +
1.22662 +if $ac_cs_silent; then
1.22663 + exec 6>/dev/null
1.22664 + ac_configure_extra_args="$ac_configure_extra_args --silent"
1.22665 +fi
1.22666 +
1.22667 +_ACEOF
1.22668 +cat >>$CONFIG_STATUS <<_ACEOF
1.22669 +if \$ac_cs_recheck; then
1.22670 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
1.22671 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1.22672 +fi
1.22673 +
1.22674 +_ACEOF
1.22675 +
1.22676 +cat >>$CONFIG_STATUS <<_ACEOF
1.22677 +#
1.22678 +# INIT-COMMANDS section.
1.22679 +#
1.22680 +
1.22681 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1.22682 +
1.22683 +_ACEOF
1.22684 +
1.22685 +
1.22686 +
1.22687 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22688 +for ac_config_target in $ac_config_targets
1.22689 +do
1.22690 + case "$ac_config_target" in
1.22691 + # Handling of arguments.
1.22692 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1.22693 + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
1.22694 + "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
1.22695 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1.22696 + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1.22697 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1.22698 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
1.22699 + { (exit 1); exit 1; }; };;
1.22700 + esac
1.22701 +done
1.22702 +
1.22703 +# If the user did not use the arguments to specify the items to instantiate,
1.22704 +# then the envvar interface is used. Set only those that are not.
1.22705 +# We use the long form for the default assignment because of an extremely
1.22706 +# bizarre bug on SunOS 4.1.3.
1.22707 +if $ac_need_defaults; then
1.22708 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1.22709 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1.22710 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1.22711 +fi
1.22712 +
1.22713 +# Have a temporary directory for convenience. Make it in the build tree
1.22714 +# simply because there is no reason to put it here, and in addition,
1.22715 +# creating and moving files from /tmp can sometimes cause problems.
1.22716 +# Create a temporary directory, and hook for its removal unless debugging.
1.22717 +$debug ||
1.22718 +{
1.22719 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1.22720 + trap '{ (exit 1); exit 1; }' 1 2 13 15
1.22721 +}
1.22722 +
1.22723 +# Create a (secure) tmp directory for tmp files.
1.22724 +
1.22725 +{
1.22726 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1.22727 + test -n "$tmp" && test -d "$tmp"
1.22728 +} ||
1.22729 +{
1.22730 + tmp=./confstat$$-$RANDOM
1.22731 + (umask 077 && mkdir $tmp)
1.22732 +} ||
1.22733 +{
1.22734 + echo "$me: cannot create a temporary directory in ." >&2
1.22735 + { (exit 1); exit 1; }
1.22736 +}
1.22737 +
1.22738 +_ACEOF
1.22739 +
1.22740 +cat >>$CONFIG_STATUS <<_ACEOF
1.22741 +
1.22742 +#
1.22743 +# CONFIG_FILES section.
1.22744 +#
1.22745 +
1.22746 +# No need to generate the scripts if there are no CONFIG_FILES.
1.22747 +# This happens for instance when ./config.status config.h
1.22748 +if test -n "\$CONFIG_FILES"; then
1.22749 + # Protect against being on the right side of a sed subst in config.status.
1.22750 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1.22751 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1.22752 +s,@SHELL@,$SHELL,;t t
1.22753 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1.22754 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1.22755 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1.22756 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1.22757 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1.22758 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1.22759 +s,@exec_prefix@,$exec_prefix,;t t
1.22760 +s,@prefix@,$prefix,;t t
1.22761 +s,@program_transform_name@,$program_transform_name,;t t
1.22762 +s,@bindir@,$bindir,;t t
1.22763 +s,@sbindir@,$sbindir,;t t
1.22764 +s,@libexecdir@,$libexecdir,;t t
1.22765 +s,@datadir@,$datadir,;t t
1.22766 +s,@sysconfdir@,$sysconfdir,;t t
1.22767 +s,@sharedstatedir@,$sharedstatedir,;t t
1.22768 +s,@localstatedir@,$localstatedir,;t t
1.22769 +s,@libdir@,$libdir,;t t
1.22770 +s,@includedir@,$includedir,;t t
1.22771 +s,@oldincludedir@,$oldincludedir,;t t
1.22772 +s,@infodir@,$infodir,;t t
1.22773 +s,@mandir@,$mandir,;t t
1.22774 +s,@build_alias@,$build_alias,;t t
1.22775 +s,@host_alias@,$host_alias,;t t
1.22776 +s,@target_alias@,$target_alias,;t t
1.22777 +s,@DEFS@,$DEFS,;t t
1.22778 +s,@ECHO_C@,$ECHO_C,;t t
1.22779 +s,@ECHO_N@,$ECHO_N,;t t
1.22780 +s,@ECHO_T@,$ECHO_T,;t t
1.22781 +s,@LIBS@,$LIBS,;t t
1.22782 +s,@build@,$build,;t t
1.22783 +s,@build_cpu@,$build_cpu,;t t
1.22784 +s,@build_vendor@,$build_vendor,;t t
1.22785 +s,@build_os@,$build_os,;t t
1.22786 +s,@host@,$host,;t t
1.22787 +s,@host_cpu@,$host_cpu,;t t
1.22788 +s,@host_vendor@,$host_vendor,;t t
1.22789 +s,@host_os@,$host_os,;t t
1.22790 +s,@target@,$target,;t t
1.22791 +s,@target_cpu@,$target_cpu,;t t
1.22792 +s,@target_vendor@,$target_vendor,;t t
1.22793 +s,@target_os@,$target_os,;t t
1.22794 +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
1.22795 +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
1.22796 +s,@MAINT@,$MAINT,;t t
1.22797 +s,@GST_PLUGINS_VERSION@,$GST_PLUGINS_VERSION,;t t
1.22798 +s,@GST_PLUGINS_VERSION_RELEASE@,$GST_PLUGINS_VERSION_RELEASE,;t t
1.22799 +s,@GST_PLUGINS_VERSION_MAJOR@,$GST_PLUGINS_VERSION_MAJOR,;t t
1.22800 +s,@GST_PLUGINS_VERSION_MINOR@,$GST_PLUGINS_VERSION_MINOR,;t t
1.22801 +s,@GST_PLUGINS_VERSION_MICRO@,$GST_PLUGINS_VERSION_MICRO,;t t
1.22802 +s,@GST_PLUGINS_VERSION_NANO@,$GST_PLUGINS_VERSION_NANO,;t t
1.22803 +s,@PACKAGE@,$PACKAGE,;t t
1.22804 +s,@VERSION@,$VERSION,;t t
1.22805 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1.22806 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1.22807 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
1.22808 +s,@CYGPATH_W@,$CYGPATH_W,;t t
1.22809 +s,@ACLOCAL@,$ACLOCAL,;t t
1.22810 +s,@AUTOCONF@,$AUTOCONF,;t t
1.22811 +s,@AUTOMAKE@,$AUTOMAKE,;t t
1.22812 +s,@AUTOHEADER@,$AUTOHEADER,;t t
1.22813 +s,@MAKEINFO@,$MAKEINFO,;t t
1.22814 +s,@AMTAR@,$AMTAR,;t t
1.22815 +s,@install_sh@,$install_sh,;t t
1.22816 +s,@STRIP@,$STRIP,;t t
1.22817 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
1.22818 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1.22819 +s,@mkdir_p@,$mkdir_p,;t t
1.22820 +s,@AWK@,$AWK,;t t
1.22821 +s,@SET_MAKE@,$SET_MAKE,;t t
1.22822 +s,@am__leading_dot@,$am__leading_dot,;t t
1.22823 +s,@CC@,$CC,;t t
1.22824 +s,@CFLAGS@,$CFLAGS,;t t
1.22825 +s,@LDFLAGS@,$LDFLAGS,;t t
1.22826 +s,@CPPFLAGS@,$CPPFLAGS,;t t
1.22827 +s,@ac_ct_CC@,$ac_ct_CC,;t t
1.22828 +s,@EXEEXT@,$EXEEXT,;t t
1.22829 +s,@OBJEXT@,$OBJEXT,;t t
1.22830 +s,@DEPDIR@,$DEPDIR,;t t
1.22831 +s,@am__include@,$am__include,;t t
1.22832 +s,@am__quote@,$am__quote,;t t
1.22833 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
1.22834 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
1.22835 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1.22836 +s,@CCDEPMODE@,$CCDEPMODE,;t t
1.22837 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
1.22838 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1.22839 +s,@EGREP@,$EGREP,;t t
1.22840 +s,@LN_S@,$LN_S,;t t
1.22841 +s,@ECHO@,$ECHO,;t t
1.22842 +s,@AR@,$AR,;t t
1.22843 +s,@ac_ct_AR@,$ac_ct_AR,;t t
1.22844 +s,@RANLIB@,$RANLIB,;t t
1.22845 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1.22846 +s,@CPP@,$CPP,;t t
1.22847 +s,@CXX@,$CXX,;t t
1.22848 +s,@CXXFLAGS@,$CXXFLAGS,;t t
1.22849 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
1.22850 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
1.22851 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
1.22852 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
1.22853 +s,@CXXCPP@,$CXXCPP,;t t
1.22854 +s,@F77@,$F77,;t t
1.22855 +s,@FFLAGS@,$FFLAGS,;t t
1.22856 +s,@ac_ct_F77@,$ac_ct_F77,;t t
1.22857 +s,@LIBTOOL@,$LIBTOOL,;t t
1.22858 +s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
1.22859 +s,@CCAS@,$CCAS,;t t
1.22860 +s,@CCASFLAGS@,$CCASFLAGS,;t t
1.22861 +s,@ERROR_CFLAGS@,$ERROR_CFLAGS,;t t
1.22862 +s,@HAVE_CXX@,$HAVE_CXX,;t t
1.22863 +s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
1.22864 +s,@PKG_CONFIG@,$PKG_CONFIG,;t t
1.22865 +s,@GST_CFLAGS@,$GST_CFLAGS,;t t
1.22866 +s,@GST_LIBS@,$GST_LIBS,;t t
1.22867 +s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
1.22868 +s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
1.22869 +s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
1.22870 +s,@GST_PLUGINS_BASE_CFLAGS@,$GST_PLUGINS_BASE_CFLAGS,;t t
1.22871 +s,@GST_PLUGINS_BASE_LIBS@,$GST_PLUGINS_BASE_LIBS,;t t
1.22872 +s,@plugindir@,$plugindir,;t t
1.22873 +s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
1.22874 +s,@LIBOBJS@,$LIBOBJS,;t t
1.22875 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
1.22876 +CEOF
1.22877 +
1.22878 +_ACEOF
1.22879 +
1.22880 + cat >>$CONFIG_STATUS <<\_ACEOF
1.22881 + # Split the substitutions into bite-sized pieces for seds with
1.22882 + # small command number limits, like on Digital OSF/1 and HP-UX.
1.22883 + ac_max_sed_lines=48
1.22884 + ac_sed_frag=1 # Number of current file.
1.22885 + ac_beg=1 # First line for current file.
1.22886 + ac_end=$ac_max_sed_lines # Line after last line for current file.
1.22887 + ac_more_lines=:
1.22888 + ac_sed_cmds=
1.22889 + while $ac_more_lines; do
1.22890 + if test $ac_beg -gt 1; then
1.22891 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.22892 + else
1.22893 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1.22894 + fi
1.22895 + if test ! -s $tmp/subs.frag; then
1.22896 + ac_more_lines=false
1.22897 + else
1.22898 + # The purpose of the label and of the branching condition is to
1.22899 + # speed up the sed processing (if there are no `@' at all, there
1.22900 + # is no need to browse any of the substitutions).
1.22901 + # These are the two extra sed commands mentioned above.
1.22902 + (echo ':t
1.22903 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1.22904 + if test -z "$ac_sed_cmds"; then
1.22905 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1.22906 + else
1.22907 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1.22908 + fi
1.22909 + ac_sed_frag=`expr $ac_sed_frag + 1`
1.22910 + ac_beg=$ac_end
1.22911 + ac_end=`expr $ac_end + $ac_max_sed_lines`
1.22912 + fi
1.22913 + done
1.22914 + if test -z "$ac_sed_cmds"; then
1.22915 + ac_sed_cmds=cat
1.22916 + fi
1.22917 +fi # test -n "$CONFIG_FILES"
1.22918 +
1.22919 +_ACEOF
1.22920 +cat >>$CONFIG_STATUS <<\_ACEOF
1.22921 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1.22922 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.22923 + case $ac_file in
1.22924 + - | *:- | *:-:* ) # input from stdin
1.22925 + cat >$tmp/stdin
1.22926 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.22927 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.22928 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.22929 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.22930 + * ) ac_file_in=$ac_file.in ;;
1.22931 + esac
1.22932 +
1.22933 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1.22934 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.22935 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.22936 + X"$ac_file" : 'X\(//\)[^/]' \| \
1.22937 + X"$ac_file" : 'X\(//\)$' \| \
1.22938 + X"$ac_file" : 'X\(/\)' \| \
1.22939 + . : '\(.\)' 2>/dev/null ||
1.22940 +echo X"$ac_file" |
1.22941 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.22942 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.22943 + /^X\(\/\/\)$/{ s//\1/; q; }
1.22944 + /^X\(\/\).*/{ s//\1/; q; }
1.22945 + s/.*/./; q'`
1.22946 + { if $as_mkdir_p; then
1.22947 + mkdir -p "$ac_dir"
1.22948 + else
1.22949 + as_dir="$ac_dir"
1.22950 + as_dirs=
1.22951 + while test ! -d "$as_dir"; do
1.22952 + as_dirs="$as_dir $as_dirs"
1.22953 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
1.22954 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.22955 + X"$as_dir" : 'X\(//\)[^/]' \| \
1.22956 + X"$as_dir" : 'X\(//\)$' \| \
1.22957 + X"$as_dir" : 'X\(/\)' \| \
1.22958 + . : '\(.\)' 2>/dev/null ||
1.22959 +echo X"$as_dir" |
1.22960 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.22961 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.22962 + /^X\(\/\/\)$/{ s//\1/; q; }
1.22963 + /^X\(\/\).*/{ s//\1/; q; }
1.22964 + s/.*/./; q'`
1.22965 + done
1.22966 + test ! -n "$as_dirs" || mkdir $as_dirs
1.22967 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1.22968 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1.22969 + { (exit 1); exit 1; }; }; }
1.22970 +
1.22971 + ac_builddir=.
1.22972 +
1.22973 +if test "$ac_dir" != .; then
1.22974 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.22975 + # A "../" for each directory in $ac_dir_suffix.
1.22976 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.22977 +else
1.22978 + ac_dir_suffix= ac_top_builddir=
1.22979 +fi
1.22980 +
1.22981 +case $srcdir in
1.22982 + .) # No --srcdir option. We are building in place.
1.22983 + ac_srcdir=.
1.22984 + if test -z "$ac_top_builddir"; then
1.22985 + ac_top_srcdir=.
1.22986 + else
1.22987 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1.22988 + fi ;;
1.22989 + [\\/]* | ?:[\\/]* ) # Absolute path.
1.22990 + ac_srcdir=$srcdir$ac_dir_suffix;
1.22991 + ac_top_srcdir=$srcdir ;;
1.22992 + *) # Relative path.
1.22993 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1.22994 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.22995 +esac
1.22996 +
1.22997 +# Do not use `cd foo && pwd` to compute absolute paths, because
1.22998 +# the directories may not exist.
1.22999 +case `pwd` in
1.23000 +.) ac_abs_builddir="$ac_dir";;
1.23001 +*)
1.23002 + case "$ac_dir" in
1.23003 + .) ac_abs_builddir=`pwd`;;
1.23004 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1.23005 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
1.23006 + esac;;
1.23007 +esac
1.23008 +case $ac_abs_builddir in
1.23009 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
1.23010 +*)
1.23011 + case ${ac_top_builddir}. in
1.23012 + .) ac_abs_top_builddir=$ac_abs_builddir;;
1.23013 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1.23014 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1.23015 + esac;;
1.23016 +esac
1.23017 +case $ac_abs_builddir in
1.23018 +.) ac_abs_srcdir=$ac_srcdir;;
1.23019 +*)
1.23020 + case $ac_srcdir in
1.23021 + .) ac_abs_srcdir=$ac_abs_builddir;;
1.23022 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1.23023 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1.23024 + esac;;
1.23025 +esac
1.23026 +case $ac_abs_builddir in
1.23027 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
1.23028 +*)
1.23029 + case $ac_top_srcdir in
1.23030 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
1.23031 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1.23032 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1.23033 + esac;;
1.23034 +esac
1.23035 +
1.23036 +
1.23037 + case $INSTALL in
1.23038 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1.23039 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1.23040 + esac
1.23041 +
1.23042 + # Let's still pretend it is `configure' which instantiates (i.e., don't
1.23043 + # use $as_me), people would be surprised to read:
1.23044 + # /* config.h. Generated by config.status. */
1.23045 + if test x"$ac_file" = x-; then
1.23046 + configure_input=
1.23047 + else
1.23048 + configure_input="$ac_file. "
1.23049 + fi
1.23050 + configure_input=$configure_input"Generated from `echo $ac_file_in |
1.23051 + sed 's,.*/,,'` by configure."
1.23052 +
1.23053 + # First look for the input files in the build tree, otherwise in the
1.23054 + # src tree.
1.23055 + ac_file_inputs=`IFS=:
1.23056 + for f in $ac_file_in; do
1.23057 + case $f in
1.23058 + -) echo $tmp/stdin ;;
1.23059 + [\\/$]*)
1.23060 + # Absolute (can't be DOS-style, as IFS=:)
1.23061 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.23062 +echo "$as_me: error: cannot find input file: $f" >&2;}
1.23063 + { (exit 1); exit 1; }; }
1.23064 + echo "$f";;
1.23065 + *) # Relative
1.23066 + if test -f "$f"; then
1.23067 + # Build tree
1.23068 + echo "$f"
1.23069 + elif test -f "$srcdir/$f"; then
1.23070 + # Source tree
1.23071 + echo "$srcdir/$f"
1.23072 + else
1.23073 + # /dev/null tree
1.23074 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.23075 +echo "$as_me: error: cannot find input file: $f" >&2;}
1.23076 + { (exit 1); exit 1; }; }
1.23077 + fi;;
1.23078 + esac
1.23079 + done` || { (exit 1); exit 1; }
1.23080 +
1.23081 + if test x"$ac_file" != x-; then
1.23082 + { echo "$as_me:$LINENO: creating $ac_file" >&5
1.23083 +echo "$as_me: creating $ac_file" >&6;}
1.23084 + rm -f "$ac_file"
1.23085 + fi
1.23086 +_ACEOF
1.23087 +cat >>$CONFIG_STATUS <<_ACEOF
1.23088 + sed "$ac_vpsub
1.23089 +$extrasub
1.23090 +_ACEOF
1.23091 +cat >>$CONFIG_STATUS <<\_ACEOF
1.23092 +:t
1.23093 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.23094 +s,@configure_input@,$configure_input,;t t
1.23095 +s,@srcdir@,$ac_srcdir,;t t
1.23096 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
1.23097 +s,@top_srcdir@,$ac_top_srcdir,;t t
1.23098 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
1.23099 +s,@builddir@,$ac_builddir,;t t
1.23100 +s,@abs_builddir@,$ac_abs_builddir,;t t
1.23101 +s,@top_builddir@,$ac_top_builddir,;t t
1.23102 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1.23103 +s,@INSTALL@,$ac_INSTALL,;t t
1.23104 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1.23105 + rm -f $tmp/stdin
1.23106 + if test x"$ac_file" != x-; then
1.23107 + mv $tmp/out $ac_file
1.23108 + else
1.23109 + cat $tmp/out
1.23110 + rm -f $tmp/out
1.23111 + fi
1.23112 +
1.23113 +done
1.23114 +_ACEOF
1.23115 +cat >>$CONFIG_STATUS <<\_ACEOF
1.23116 +
1.23117 +#
1.23118 +# CONFIG_HEADER section.
1.23119 +#
1.23120 +
1.23121 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1.23122 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
1.23123 +#
1.23124 +# ac_d sets the value in "#define NAME VALUE" lines.
1.23125 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1.23126 +ac_dB='[ ].*$,\1#\2'
1.23127 +ac_dC=' '
1.23128 +ac_dD=',;t'
1.23129 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1.23130 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1.23131 +ac_uB='$,\1#\2define\3'
1.23132 +ac_uC=' '
1.23133 +ac_uD=',;t'
1.23134 +
1.23135 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1.23136 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.23137 + case $ac_file in
1.23138 + - | *:- | *:-:* ) # input from stdin
1.23139 + cat >$tmp/stdin
1.23140 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.23141 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.23142 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.23143 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1.23144 + * ) ac_file_in=$ac_file.in ;;
1.23145 + esac
1.23146 +
1.23147 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1.23148 +echo "$as_me: creating $ac_file" >&6;}
1.23149 +
1.23150 + # First look for the input files in the build tree, otherwise in the
1.23151 + # src tree.
1.23152 + ac_file_inputs=`IFS=:
1.23153 + for f in $ac_file_in; do
1.23154 + case $f in
1.23155 + -) echo $tmp/stdin ;;
1.23156 + [\\/$]*)
1.23157 + # Absolute (can't be DOS-style, as IFS=:)
1.23158 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.23159 +echo "$as_me: error: cannot find input file: $f" >&2;}
1.23160 + { (exit 1); exit 1; }; }
1.23161 + # Do quote $f, to prevent DOS paths from being IFS'd.
1.23162 + echo "$f";;
1.23163 + *) # Relative
1.23164 + if test -f "$f"; then
1.23165 + # Build tree
1.23166 + echo "$f"
1.23167 + elif test -f "$srcdir/$f"; then
1.23168 + # Source tree
1.23169 + echo "$srcdir/$f"
1.23170 + else
1.23171 + # /dev/null tree
1.23172 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1.23173 +echo "$as_me: error: cannot find input file: $f" >&2;}
1.23174 + { (exit 1); exit 1; }; }
1.23175 + fi;;
1.23176 + esac
1.23177 + done` || { (exit 1); exit 1; }
1.23178 + # Remove the trailing spaces.
1.23179 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1.23180 +
1.23181 +_ACEOF
1.23182 +
1.23183 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
1.23184 +# `conftest.undefs', that substitutes the proper values into
1.23185 +# config.h.in to produce config.h. The first handles `#define'
1.23186 +# templates, and the second `#undef' templates.
1.23187 +# And first: Protect against being on the right side of a sed subst in
1.23188 +# config.status. Protect against being in an unquoted here document
1.23189 +# in config.status.
1.23190 +rm -f conftest.defines conftest.undefs
1.23191 +# Using a here document instead of a string reduces the quoting nightmare.
1.23192 +# Putting comments in sed scripts is not portable.
1.23193 +#
1.23194 +# `end' is used to avoid that the second main sed command (meant for
1.23195 +# 0-ary CPP macros) applies to n-ary macro definitions.
1.23196 +# See the Autoconf documentation for `clear'.
1.23197 +cat >confdef2sed.sed <<\_ACEOF
1.23198 +s/[\\&,]/\\&/g
1.23199 +s,[\\$`],\\&,g
1.23200 +t clear
1.23201 +: clear
1.23202 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1.23203 +t end
1.23204 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1.23205 +: end
1.23206 +_ACEOF
1.23207 +# If some macros were called several times there might be several times
1.23208 +# the same #defines, which is useless. Nevertheless, we may not want to
1.23209 +# sort them, since we want the *last* AC-DEFINE to be honored.
1.23210 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
1.23211 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
1.23212 +rm -f confdef2sed.sed
1.23213 +
1.23214 +# This sed command replaces #undef with comments. This is necessary, for
1.23215 +# example, in the case of _POSIX_SOURCE, which is predefined and required
1.23216 +# on some systems where configure will not decide to define it.
1.23217 +cat >>conftest.undefs <<\_ACEOF
1.23218 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1.23219 +_ACEOF
1.23220 +
1.23221 +# Break up conftest.defines because some shells have a limit on the size
1.23222 +# of here documents, and old seds have small limits too (100 cmds).
1.23223 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1.23224 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1.23225 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
1.23226 +echo ' :' >>$CONFIG_STATUS
1.23227 +rm -f conftest.tail
1.23228 +while grep . conftest.defines >/dev/null
1.23229 +do
1.23230 + # Write a limited-size here document to $tmp/defines.sed.
1.23231 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
1.23232 + # Speed up: don't consider the non `#define' lines.
1.23233 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1.23234 + # Work around the forget-to-reset-the-flag bug.
1.23235 + echo 't clr' >>$CONFIG_STATUS
1.23236 + echo ': clr' >>$CONFIG_STATUS
1.23237 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
1.23238 + echo 'CEOF
1.23239 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
1.23240 + rm -f $tmp/in
1.23241 + mv $tmp/out $tmp/in
1.23242 +' >>$CONFIG_STATUS
1.23243 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
1.23244 + rm -f conftest.defines
1.23245 + mv conftest.tail conftest.defines
1.23246 +done
1.23247 +rm -f conftest.defines
1.23248 +echo ' fi # grep' >>$CONFIG_STATUS
1.23249 +echo >>$CONFIG_STATUS
1.23250 +
1.23251 +# Break up conftest.undefs because some shells have a limit on the size
1.23252 +# of here documents, and old seds have small limits too (100 cmds).
1.23253 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
1.23254 +rm -f conftest.tail
1.23255 +while grep . conftest.undefs >/dev/null
1.23256 +do
1.23257 + # Write a limited-size here document to $tmp/undefs.sed.
1.23258 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
1.23259 + # Speed up: don't consider the non `#undef'
1.23260 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1.23261 + # Work around the forget-to-reset-the-flag bug.
1.23262 + echo 't clr' >>$CONFIG_STATUS
1.23263 + echo ': clr' >>$CONFIG_STATUS
1.23264 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1.23265 + echo 'CEOF
1.23266 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
1.23267 + rm -f $tmp/in
1.23268 + mv $tmp/out $tmp/in
1.23269 +' >>$CONFIG_STATUS
1.23270 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
1.23271 + rm -f conftest.undefs
1.23272 + mv conftest.tail conftest.undefs
1.23273 +done
1.23274 +rm -f conftest.undefs
1.23275 +
1.23276 +cat >>$CONFIG_STATUS <<\_ACEOF
1.23277 + # Let's still pretend it is `configure' which instantiates (i.e., don't
1.23278 + # use $as_me), people would be surprised to read:
1.23279 + # /* config.h. Generated by config.status. */
1.23280 + if test x"$ac_file" = x-; then
1.23281 + echo "/* Generated by configure. */" >$tmp/config.h
1.23282 + else
1.23283 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1.23284 + fi
1.23285 + cat $tmp/in >>$tmp/config.h
1.23286 + rm -f $tmp/in
1.23287 + if test x"$ac_file" != x-; then
1.23288 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
1.23289 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1.23290 +echo "$as_me: $ac_file is unchanged" >&6;}
1.23291 + else
1.23292 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1.23293 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23294 + X"$ac_file" : 'X\(//\)[^/]' \| \
1.23295 + X"$ac_file" : 'X\(//\)$' \| \
1.23296 + X"$ac_file" : 'X\(/\)' \| \
1.23297 + . : '\(.\)' 2>/dev/null ||
1.23298 +echo X"$ac_file" |
1.23299 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23300 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23301 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23302 + /^X\(\/\).*/{ s//\1/; q; }
1.23303 + s/.*/./; q'`
1.23304 + { if $as_mkdir_p; then
1.23305 + mkdir -p "$ac_dir"
1.23306 + else
1.23307 + as_dir="$ac_dir"
1.23308 + as_dirs=
1.23309 + while test ! -d "$as_dir"; do
1.23310 + as_dirs="$as_dir $as_dirs"
1.23311 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
1.23312 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23313 + X"$as_dir" : 'X\(//\)[^/]' \| \
1.23314 + X"$as_dir" : 'X\(//\)$' \| \
1.23315 + X"$as_dir" : 'X\(/\)' \| \
1.23316 + . : '\(.\)' 2>/dev/null ||
1.23317 +echo X"$as_dir" |
1.23318 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23319 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23320 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23321 + /^X\(\/\).*/{ s//\1/; q; }
1.23322 + s/.*/./; q'`
1.23323 + done
1.23324 + test ! -n "$as_dirs" || mkdir $as_dirs
1.23325 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1.23326 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1.23327 + { (exit 1); exit 1; }; }; }
1.23328 +
1.23329 + rm -f $ac_file
1.23330 + mv $tmp/config.h $ac_file
1.23331 + fi
1.23332 + else
1.23333 + cat $tmp/config.h
1.23334 + rm -f $tmp/config.h
1.23335 + fi
1.23336 +# Compute $ac_file's index in $config_headers.
1.23337 +_am_stamp_count=1
1.23338 +for _am_header in $config_headers :; do
1.23339 + case $_am_header in
1.23340 + $ac_file | $ac_file:* )
1.23341 + break ;;
1.23342 + * )
1.23343 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1.23344 + esac
1.23345 +done
1.23346 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
1.23347 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23348 + X$ac_file : 'X\(//\)[^/]' \| \
1.23349 + X$ac_file : 'X\(//\)$' \| \
1.23350 + X$ac_file : 'X\(/\)' \| \
1.23351 + . : '\(.\)' 2>/dev/null ||
1.23352 +echo X$ac_file |
1.23353 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23354 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23355 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23356 + /^X\(\/\).*/{ s//\1/; q; }
1.23357 + s/.*/./; q'`/stamp-h$_am_stamp_count
1.23358 +done
1.23359 +_ACEOF
1.23360 +cat >>$CONFIG_STATUS <<\_ACEOF
1.23361 +
1.23362 +#
1.23363 +# CONFIG_COMMANDS section.
1.23364 +#
1.23365 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
1.23366 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
1.23367 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1.23368 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
1.23369 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23370 + X"$ac_dest" : 'X\(//\)[^/]' \| \
1.23371 + X"$ac_dest" : 'X\(//\)$' \| \
1.23372 + X"$ac_dest" : 'X\(/\)' \| \
1.23373 + . : '\(.\)' 2>/dev/null ||
1.23374 +echo X"$ac_dest" |
1.23375 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23376 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23377 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23378 + /^X\(\/\).*/{ s//\1/; q; }
1.23379 + s/.*/./; q'`
1.23380 + { if $as_mkdir_p; then
1.23381 + mkdir -p "$ac_dir"
1.23382 + else
1.23383 + as_dir="$ac_dir"
1.23384 + as_dirs=
1.23385 + while test ! -d "$as_dir"; do
1.23386 + as_dirs="$as_dir $as_dirs"
1.23387 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
1.23388 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23389 + X"$as_dir" : 'X\(//\)[^/]' \| \
1.23390 + X"$as_dir" : 'X\(//\)$' \| \
1.23391 + X"$as_dir" : 'X\(/\)' \| \
1.23392 + . : '\(.\)' 2>/dev/null ||
1.23393 +echo X"$as_dir" |
1.23394 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23395 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23396 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23397 + /^X\(\/\).*/{ s//\1/; q; }
1.23398 + s/.*/./; q'`
1.23399 + done
1.23400 + test ! -n "$as_dirs" || mkdir $as_dirs
1.23401 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1.23402 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1.23403 + { (exit 1); exit 1; }; }; }
1.23404 +
1.23405 + ac_builddir=.
1.23406 +
1.23407 +if test "$ac_dir" != .; then
1.23408 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.23409 + # A "../" for each directory in $ac_dir_suffix.
1.23410 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1.23411 +else
1.23412 + ac_dir_suffix= ac_top_builddir=
1.23413 +fi
1.23414 +
1.23415 +case $srcdir in
1.23416 + .) # No --srcdir option. We are building in place.
1.23417 + ac_srcdir=.
1.23418 + if test -z "$ac_top_builddir"; then
1.23419 + ac_top_srcdir=.
1.23420 + else
1.23421 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1.23422 + fi ;;
1.23423 + [\\/]* | ?:[\\/]* ) # Absolute path.
1.23424 + ac_srcdir=$srcdir$ac_dir_suffix;
1.23425 + ac_top_srcdir=$srcdir ;;
1.23426 + *) # Relative path.
1.23427 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1.23428 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.23429 +esac
1.23430 +
1.23431 +# Do not use `cd foo && pwd` to compute absolute paths, because
1.23432 +# the directories may not exist.
1.23433 +case `pwd` in
1.23434 +.) ac_abs_builddir="$ac_dir";;
1.23435 +*)
1.23436 + case "$ac_dir" in
1.23437 + .) ac_abs_builddir=`pwd`;;
1.23438 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1.23439 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
1.23440 + esac;;
1.23441 +esac
1.23442 +case $ac_abs_builddir in
1.23443 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
1.23444 +*)
1.23445 + case ${ac_top_builddir}. in
1.23446 + .) ac_abs_top_builddir=$ac_abs_builddir;;
1.23447 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1.23448 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1.23449 + esac;;
1.23450 +esac
1.23451 +case $ac_abs_builddir in
1.23452 +.) ac_abs_srcdir=$ac_srcdir;;
1.23453 +*)
1.23454 + case $ac_srcdir in
1.23455 + .) ac_abs_srcdir=$ac_abs_builddir;;
1.23456 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1.23457 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1.23458 + esac;;
1.23459 +esac
1.23460 +case $ac_abs_builddir in
1.23461 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
1.23462 +*)
1.23463 + case $ac_top_srcdir in
1.23464 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
1.23465 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1.23466 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1.23467 + esac;;
1.23468 +esac
1.23469 +
1.23470 +
1.23471 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
1.23472 +echo "$as_me: executing $ac_dest commands" >&6;}
1.23473 + case $ac_dest in
1.23474 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1.23475 + # Strip MF so we end up with the name of the file.
1.23476 + mf=`echo "$mf" | sed -e 's/:.*$//'`
1.23477 + # Check whether this is an Automake generated Makefile or not.
1.23478 + # We used to match only the files named `Makefile.in', but
1.23479 + # some people rename them; so instead we look at the file content.
1.23480 + # Grep'ing the first line is not enough: some people post-process
1.23481 + # each Makefile.in and add a new line on top of each file to say so.
1.23482 + # So let's grep whole file.
1.23483 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1.23484 + dirpart=`(dirname "$mf") 2>/dev/null ||
1.23485 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23486 + X"$mf" : 'X\(//\)[^/]' \| \
1.23487 + X"$mf" : 'X\(//\)$' \| \
1.23488 + X"$mf" : 'X\(/\)' \| \
1.23489 + . : '\(.\)' 2>/dev/null ||
1.23490 +echo X"$mf" |
1.23491 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23492 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23493 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23494 + /^X\(\/\).*/{ s//\1/; q; }
1.23495 + s/.*/./; q'`
1.23496 + else
1.23497 + continue
1.23498 + fi
1.23499 + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
1.23500 + # Extract the definition of DEP_FILES from the Makefile without
1.23501 + # running `make'.
1.23502 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1.23503 + test -z "$DEPDIR" && continue
1.23504 + # When using ansi2knr, U may be empty or an underscore; expand it
1.23505 + U=`sed -n 's/^U = //p' < "$mf"`
1.23506 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1.23507 + # We invoke sed twice because it is the simplest approach to
1.23508 + # changing $(DEPDIR) to its actual value in the expansion.
1.23509 + for file in `sed -n '
1.23510 + /^DEP_FILES = .*\\\\$/ {
1.23511 + s/^DEP_FILES = //
1.23512 + :loop
1.23513 + s/\\\\$//
1.23514 + p
1.23515 + n
1.23516 + /\\\\$/ b loop
1.23517 + p
1.23518 + }
1.23519 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1.23520 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1.23521 + # Make sure the directory exists.
1.23522 + test -f "$dirpart/$file" && continue
1.23523 + fdir=`(dirname "$file") 2>/dev/null ||
1.23524 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23525 + X"$file" : 'X\(//\)[^/]' \| \
1.23526 + X"$file" : 'X\(//\)$' \| \
1.23527 + X"$file" : 'X\(/\)' \| \
1.23528 + . : '\(.\)' 2>/dev/null ||
1.23529 +echo X"$file" |
1.23530 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23531 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23532 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23533 + /^X\(\/\).*/{ s//\1/; q; }
1.23534 + s/.*/./; q'`
1.23535 + { if $as_mkdir_p; then
1.23536 + mkdir -p $dirpart/$fdir
1.23537 + else
1.23538 + as_dir=$dirpart/$fdir
1.23539 + as_dirs=
1.23540 + while test ! -d "$as_dir"; do
1.23541 + as_dirs="$as_dir $as_dirs"
1.23542 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
1.23543 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.23544 + X"$as_dir" : 'X\(//\)[^/]' \| \
1.23545 + X"$as_dir" : 'X\(//\)$' \| \
1.23546 + X"$as_dir" : 'X\(/\)' \| \
1.23547 + . : '\(.\)' 2>/dev/null ||
1.23548 +echo X"$as_dir" |
1.23549 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1.23550 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1.23551 + /^X\(\/\/\)$/{ s//\1/; q; }
1.23552 + /^X\(\/\).*/{ s//\1/; q; }
1.23553 + s/.*/./; q'`
1.23554 + done
1.23555 + test ! -n "$as_dirs" || mkdir $as_dirs
1.23556 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
1.23557 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
1.23558 + { (exit 1); exit 1; }; }; }
1.23559 +
1.23560 + # echo "creating $dirpart/$file"
1.23561 + echo '# dummy' > "$dirpart/$file"
1.23562 + done
1.23563 +done
1.23564 + ;;
1.23565 + esac
1.23566 +done
1.23567 +_ACEOF
1.23568 +
1.23569 +cat >>$CONFIG_STATUS <<\_ACEOF
1.23570 +
1.23571 +{ (exit 0); exit 0; }
1.23572 +_ACEOF
1.23573 +chmod +x $CONFIG_STATUS
1.23574 +ac_clean_files=$ac_clean_files_save
1.23575 +
1.23576 +
1.23577 +# configure is writing to config.log, and then calls config.status.
1.23578 +# config.status does its own redirection, appending to config.log.
1.23579 +# Unfortunately, on DOS this fails, as config.log is still kept open
1.23580 +# by configure, so config.status won't be able to write to it; its
1.23581 +# output is simply discarded. So we exec the FD to /dev/null,
1.23582 +# effectively closing config.log, so it can be properly (re)opened and
1.23583 +# appended to by config.status. When coming back to configure, we
1.23584 +# need to make the FD available again.
1.23585 +if test "$no_create" != yes; then
1.23586 + ac_cs_success=:
1.23587 + ac_config_status_args=
1.23588 + test "$silent" = yes &&
1.23589 + ac_config_status_args="$ac_config_status_args --quiet"
1.23590 + exec 5>/dev/null
1.23591 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.23592 + exec 5>>config.log
1.23593 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1.23594 + # would make configure fail if this is the last instruction.
1.23595 + $ac_cs_success || { (exit 1); exit 1; }
1.23596 +fi
1.23597 +
1.23598 +