ltconfig
changeset 0 74212992fb08
child 1 cf2af46e9e2a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ltconfig	Thu Apr 26 16:45:43 2001 +0000
     1.3 @@ -0,0 +1,3123 @@
     1.4 +#! /bin/sh
     1.5 +
     1.6 +# ltconfig - Create a system-specific libtool.
     1.7 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
     1.8 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
     1.9 +#
    1.10 +# This file is free software; you can redistribute it and/or modify it
    1.11 +# under the terms of the GNU General Public License as published by
    1.12 +# the Free Software Foundation; either version 2 of the License, or
    1.13 +# (at your option) any later version.
    1.14 +#
    1.15 +# This program is distributed in the hope that it will be useful, but
    1.16 +# WITHOUT ANY WARRANTY; without even the implied warranty of
    1.17 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.18 +# General Public License for more details.
    1.19 +#
    1.20 +# You should have received a copy of the GNU General Public License
    1.21 +# along with this program; if not, write to the Free Software
    1.22 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    1.23 +#
    1.24 +# As a special exception to the GNU General Public License, if you
    1.25 +# distribute this file as part of a program that contains a
    1.26 +# configuration script generated by Autoconf, you may include it under
    1.27 +# the same distribution terms that you use for the rest of that program.
    1.28 +
    1.29 +# A lot of this script is taken from autoconf-2.10.
    1.30 +
    1.31 +# Check that we are running under the correct shell.
    1.32 +SHELL=${CONFIG_SHELL-/bin/sh}
    1.33 +echo=echo
    1.34 +if test "X$1" = X--no-reexec; then
    1.35 +  # Discard the --no-reexec flag, and continue.
    1.36 +  shift
    1.37 +elif test "X$1" = X--fallback-echo; then
    1.38 +  # Avoid inline document here, it may be left over
    1.39 +  :
    1.40 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
    1.41 +  # Yippee, $echo works!
    1.42 +  :
    1.43 +else
    1.44 +  # Restart under the correct shell.
    1.45 +  exec "$SHELL" "$0" --no-reexec ${1+"$@"}
    1.46 +fi
    1.47 +
    1.48 +if test "X$1" = X--fallback-echo; then
    1.49 +  # used as fallback echo
    1.50 +  shift
    1.51 +  cat <<EOF
    1.52 +$*
    1.53 +EOF
    1.54 +  exit 0
    1.55 +fi
    1.56 +
    1.57 +# Find the correct PATH separator.  Usually this is `:', but
    1.58 +# DJGPP uses `;' like DOS.
    1.59 +if test "X${PATH_SEPARATOR+set}" != Xset; then
    1.60 +  UNAME=${UNAME-`uname 2>/dev/null`}
    1.61 +  case X$UNAME in
    1.62 +    *-DOS) PATH_SEPARATOR=';' ;;
    1.63 +    *)     PATH_SEPARATOR=':' ;;
    1.64 +  esac
    1.65 +fi
    1.66 +
    1.67 +# The HP-UX ksh and POSIX shell print the target directory to stdout
    1.68 +# if CDPATH is set.
    1.69 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
    1.70 +
    1.71 +if test "X${echo_test_string+set}" != Xset; then
    1.72 +  # find a string as large as possible, as long as the shell can cope with it
    1.73 +  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
    1.74 +    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    1.75 +    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    1.76 +       echo_test_string="`eval $cmd`" &&
    1.77 +       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
    1.78 +      break
    1.79 +    fi
    1.80 +  done
    1.81 +fi
    1.82 +
    1.83 +if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
    1.84 +   test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
    1.85 +  # The Solaris, AIX, and Digital Unix default echo programs unquote
    1.86 +  # backslashes.  This makes it impossible to quote backslashes using
    1.87 +  #   echo "$something" | sed 's/\\/\\\\/g'
    1.88 +  #
    1.89 +  # So, first we look for a working echo in the user's PATH.
    1.90 +
    1.91 +  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
    1.92 +  for dir in $PATH /usr/ucb; do
    1.93 +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
    1.94 +       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
    1.95 +       test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
    1.96 +      echo="$dir/echo"
    1.97 +      break
    1.98 +    fi
    1.99 +  done
   1.100 +  IFS="$save_ifs"
   1.101 +
   1.102 +  if test "X$echo" = Xecho; then
   1.103 +    # We didn't find a better echo, so look for alternatives.
   1.104 +    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
   1.105 +       test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   1.106 +      # This shell has a builtin print -r that does the trick.
   1.107 +      echo='print -r'
   1.108 +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
   1.109 +	 test "X$CONFIG_SHELL" != X/bin/ksh; then
   1.110 +      # If we have ksh, try running ltconfig again with it.
   1.111 +      ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
   1.112 +      export ORIGINAL_CONFIG_SHELL
   1.113 +      CONFIG_SHELL=/bin/ksh
   1.114 +      export CONFIG_SHELL
   1.115 +      exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
   1.116 +    else
   1.117 +      # Try using printf.
   1.118 +      echo='printf "%s\n"'
   1.119 +      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   1.120 +	 test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   1.121 +	# Cool, printf works
   1.122 +	:
   1.123 +      elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
   1.124 +	   test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   1.125 +	CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
   1.126 +	export CONFIG_SHELL
   1.127 +	SHELL="$CONFIG_SHELL"
   1.128 +	export SHELL
   1.129 +	echo="$CONFIG_SHELL $0 --fallback-echo"
   1.130 +      elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
   1.131 +	   test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   1.132 +	echo="$CONFIG_SHELL $0 --fallback-echo"
   1.133 +      else
   1.134 +	# maybe with a smaller string...
   1.135 +	prev=:
   1.136 +
   1.137 +	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
   1.138 +	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
   1.139 +	    break
   1.140 +	  fi
   1.141 +	  prev="$cmd"
   1.142 +	done
   1.143 +
   1.144 +	if test "$prev" != 'sed 50q "$0"'; then
   1.145 +	  echo_test_string=`eval $prev`
   1.146 +	  export echo_test_string
   1.147 +	  exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
   1.148 +	else
   1.149 +	  # Oops.  We lost completely, so just stick with echo.
   1.150 +	  echo=echo
   1.151 +	fi
   1.152 +      fi
   1.153 +    fi
   1.154 +  fi
   1.155 +fi
   1.156 +
   1.157 +# Sed substitution that helps us do robust quoting.  It backslashifies
   1.158 +# metacharacters that are still active within double-quoted strings.
   1.159 +Xsed='sed -e s/^X//'
   1.160 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
   1.161 +
   1.162 +# Same as above, but do not quote variable references.
   1.163 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
   1.164 +
   1.165 +# Sed substitution to delay expansion of an escaped shell variable in a
   1.166 +# double_quote_subst'ed string.
   1.167 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.168 +
   1.169 +# The name of this program.
   1.170 +progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
   1.171 +
   1.172 +# Constants:
   1.173 +PROGRAM=ltconfig
   1.174 +PACKAGE=libtool
   1.175 +VERSION=1.3.5
   1.176 +TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
   1.177 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.178 +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.179 +rm="rm -f"
   1.180 +
   1.181 +help="Try \`$progname --help' for more information."
   1.182 +
   1.183 +# Global variables:
   1.184 +default_ofile=libtool
   1.185 +can_build_shared=yes
   1.186 +enable_shared=yes
   1.187 +# All known linkers require a `.a' archive for static linking (except M$VC,
   1.188 +# which needs '.lib').
   1.189 +enable_static=yes
   1.190 +enable_fast_install=yes
   1.191 +enable_dlopen=unknown
   1.192 +enable_win32_dll=no
   1.193 +ltmain=
   1.194 +silent=
   1.195 +srcdir=
   1.196 +ac_config_guess=
   1.197 +ac_config_sub=
   1.198 +host=
   1.199 +nonopt=
   1.200 +ofile="$default_ofile"
   1.201 +verify_host=yes
   1.202 +with_gcc=no
   1.203 +with_gnu_ld=no
   1.204 +need_locks=yes
   1.205 +ac_ext=c
   1.206 +objext=o
   1.207 +libext=a
   1.208 +exeext=
   1.209 +cache_file=
   1.210 +
   1.211 +old_AR="$AR"
   1.212 +old_CC="$CC"
   1.213 +old_CFLAGS="$CFLAGS"
   1.214 +old_CPPFLAGS="$CPPFLAGS"
   1.215 +old_LDFLAGS="$LDFLAGS"
   1.216 +old_LD="$LD"
   1.217 +old_LN_S="$LN_S"
   1.218 +old_LIBS="$LIBS"
   1.219 +old_NM="$NM"
   1.220 +old_RANLIB="$RANLIB"
   1.221 +old_DLLTOOL="$DLLTOOL"
   1.222 +old_OBJDUMP="$OBJDUMP"
   1.223 +old_AS="$AS"
   1.224 +
   1.225 +# Parse the command line options.
   1.226 +args=
   1.227 +prev=
   1.228 +for option
   1.229 +do
   1.230 +  case "$option" in
   1.231 +  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
   1.232 +  *) optarg= ;;
   1.233 +  esac
   1.234 +
   1.235 +  # If the previous option needs an argument, assign it.
   1.236 +  if test -n "$prev"; then
   1.237 +    eval "$prev=\$option"
   1.238 +    prev=
   1.239 +    continue
   1.240 +  fi
   1.241 +
   1.242 +  case "$option" in
   1.243 +  --help) cat <<EOM
   1.244 +Usage: $progname [OPTION]... [HOST [LTMAIN]]
   1.245 +
   1.246 +Generate a system-specific libtool script.
   1.247 +
   1.248 +    --debug                enable verbose shell tracing
   1.249 +    --disable-shared       do not build shared libraries
   1.250 +    --disable-static       do not build static libraries
   1.251 +    --disable-fast-install do not optimize for fast installation
   1.252 +    --enable-dlopen        enable dlopen support
   1.253 +    --enable-win32-dll     enable building dlls on win32 hosts
   1.254 +    --help                 display this help and exit
   1.255 +    --no-verify            do not verify that HOST is a valid host type
   1.256 +-o, --output=FILE          specify the output file [default=$default_ofile]
   1.257 +    --quiet                same as \`--silent'
   1.258 +    --silent               do not print informational messages
   1.259 +    --srcdir=DIR           find \`config.guess' in DIR
   1.260 +    --version              output version information and exit
   1.261 +    --with-gcc             assume that the GNU C compiler will be used
   1.262 +    --with-gnu-ld          assume that the C compiler uses the GNU linker
   1.263 +    --disable-lock         disable file locking
   1.264 +    --cache-file=FILE      configure cache file
   1.265 +
   1.266 +LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
   1.267 +that provides basic libtool functionality.
   1.268 +
   1.269 +HOST is the canonical host system name [default=guessed].
   1.270 +EOM
   1.271 +  exit 0
   1.272 +  ;;
   1.273 +
   1.274 +  --debug)
   1.275 +    echo "$progname: enabling shell trace mode"
   1.276 +    set -x
   1.277 +    ;;
   1.278 +
   1.279 +  --disable-shared) enable_shared=no ;;
   1.280 +
   1.281 +  --disable-static) enable_static=no ;;
   1.282 +
   1.283 +  --disable-fast-install) enable_fast_install=no ;;
   1.284 +
   1.285 +  --enable-dlopen) enable_dlopen=yes ;;
   1.286 +
   1.287 +  --enable-win32-dll) enable_win32_dll=yes ;;
   1.288 +
   1.289 +  --quiet | --silent) silent=yes ;;
   1.290 +
   1.291 +  --srcdir) prev=srcdir ;;
   1.292 +  --srcdir=*) srcdir="$optarg" ;;
   1.293 +
   1.294 +  --no-verify) verify_host=no ;;
   1.295 +
   1.296 +  --output | -o) prev=ofile ;;
   1.297 +  --output=*) ofile="$optarg" ;;
   1.298 +
   1.299 +  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
   1.300 +
   1.301 +  --with-gcc) with_gcc=yes ;;
   1.302 +  --with-gnu-ld) with_gnu_ld=yes ;;
   1.303 +
   1.304 +  --disable-lock) need_locks=no ;;
   1.305 +
   1.306 +  --cache-file=*) cache_file="$optarg" ;;
   1.307 +
   1.308 +  -*)
   1.309 +    echo "$progname: unrecognized option \`$option'" 1>&2
   1.310 +    echo "$help" 1>&2
   1.311 +    exit 1
   1.312 +    ;;
   1.313 +
   1.314 +  *)
   1.315 +    if test -z "$ltmain"; then
   1.316 +      ltmain="$option"
   1.317 +    elif test -z "$host"; then
   1.318 +# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
   1.319 +#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
   1.320 +#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
   1.321 +#      fi
   1.322 +      host="$option"
   1.323 +    else
   1.324 +      echo "$progname: too many arguments" 1>&2
   1.325 +      echo "$help" 1>&2
   1.326 +      exit 1
   1.327 +    fi ;;
   1.328 +  esac
   1.329 +done
   1.330 +
   1.331 +if test -z "$ltmain"; then
   1.332 +  echo "$progname: you must specify a LTMAIN file" 1>&2
   1.333 +  echo "$help" 1>&2
   1.334 +  exit 1
   1.335 +fi
   1.336 +
   1.337 +if test ! -f "$ltmain"; then
   1.338 +  echo "$progname: \`$ltmain' does not exist" 1>&2
   1.339 +  echo "$help" 1>&2
   1.340 +  exit 1
   1.341 +fi
   1.342 +
   1.343 +# Quote any args containing shell metacharacters.
   1.344 +ltconfig_args=
   1.345 +for arg
   1.346 +do
   1.347 +  case "$arg" in
   1.348 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
   1.349 +  ltconfig_args="$ltconfig_args '$arg'" ;;
   1.350 +  *) ltconfig_args="$ltconfig_args $arg" ;;
   1.351 +  esac
   1.352 +done
   1.353 +
   1.354 +# A relevant subset of AC_INIT.
   1.355 +
   1.356 +# File descriptor usage:
   1.357 +# 0 standard input
   1.358 +# 1 file creation
   1.359 +# 2 errors and warnings
   1.360 +# 3 some systems may open it to /dev/tty
   1.361 +# 4 used on the Kubota Titan
   1.362 +# 5 compiler messages saved in config.log
   1.363 +# 6 checking for... messages and results
   1.364 +if test "$silent" = yes; then
   1.365 +  exec 6>/dev/null
   1.366 +else
   1.367 +  exec 6>&1
   1.368 +fi
   1.369 +exec 5>>./config.log
   1.370 +
   1.371 +# NLS nuisances.
   1.372 +# Only set LANG and LC_ALL to C if already set.
   1.373 +# These must not be set unconditionally because not all systems understand
   1.374 +# e.g. LANG=C (notably SCO).
   1.375 +if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
   1.376 +if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
   1.377 +
   1.378 +if test -n "$cache_file" && test -r "$cache_file"; then
   1.379 +  echo "loading cache $cache_file within ltconfig"
   1.380 +  . $cache_file
   1.381 +fi
   1.382 +
   1.383 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   1.384 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   1.385 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
   1.386 +    ac_n= ac_c='
   1.387 +' ac_t='	'
   1.388 +  else
   1.389 +    ac_n=-n ac_c= ac_t=
   1.390 +  fi
   1.391 +else
   1.392 +  ac_n= ac_c='\c' ac_t=
   1.393 +fi
   1.394 +
   1.395 +if test -z "$srcdir"; then
   1.396 +  # Assume the source directory is the same one as the path to LTMAIN.
   1.397 +  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
   1.398 +  test "$srcdir" = "$ltmain" && srcdir=.
   1.399 +fi
   1.400 +
   1.401 +trap "$rm conftest*; exit 1" 1 2 15
   1.402 +if test "$verify_host" = yes; then
   1.403 +  # Check for config.guess and config.sub.
   1.404 +  ac_aux_dir=
   1.405 +  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1.406 +    if test -f $ac_dir/config.guess; then
   1.407 +      ac_aux_dir=$ac_dir
   1.408 +      break
   1.409 +    fi
   1.410 +  done
   1.411 +  if test -z "$ac_aux_dir"; then
   1.412 +    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
   1.413 +    echo "$help" 1>&2
   1.414 +    exit 1
   1.415 +  fi
   1.416 +  ac_config_guess=$ac_aux_dir/config.guess
   1.417 +  ac_config_sub=$ac_aux_dir/config.sub
   1.418 +
   1.419 +  # Make sure we can run config.sub.
   1.420 +  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
   1.421 +  else
   1.422 +    echo "$progname: cannot run $ac_config_sub" 1>&2
   1.423 +    echo "$help" 1>&2
   1.424 +    exit 1
   1.425 +  fi
   1.426 +
   1.427 +  echo $ac_n "checking host system type""... $ac_c" 1>&6
   1.428 +
   1.429 +  host_alias=$host
   1.430 +  case "$host_alias" in
   1.431 +  "")
   1.432 +    if host_alias=`$SHELL $ac_config_guess`; then :
   1.433 +    else
   1.434 +      echo "$progname: cannot guess host type; you must specify one" 1>&2
   1.435 +      echo "$help" 1>&2
   1.436 +      exit 1
   1.437 +    fi ;;
   1.438 +  esac
   1.439 +  host=`$SHELL $ac_config_sub $host_alias`
   1.440 +  echo "$ac_t$host" 1>&6
   1.441 +
   1.442 +  # Make sure the host verified.
   1.443 +  test -z "$host" && exit 1
   1.444 +
   1.445 +elif test -z "$host"; then
   1.446 +  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
   1.447 +  echo "$help" 1>&2
   1.448 +  exit 1
   1.449 +else
   1.450 +  host_alias=$host
   1.451 +fi
   1.452 +
   1.453 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
   1.454 +case "$host_os" in
   1.455 +linux-gnu*) ;;
   1.456 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
   1.457 +esac
   1.458 +
   1.459 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
   1.460 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
   1.461 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
   1.462 +
   1.463 +case "$host_os" in
   1.464 +aix3*)
   1.465 +  # AIX sometimes has problems with the GCC collect2 program.  For some
   1.466 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
   1.467 +  # vanish in a puff of smoke.
   1.468 +  if test "X${COLLECT_NAMES+set}" != Xset; then
   1.469 +    COLLECT_NAMES=
   1.470 +    export COLLECT_NAMES
   1.471 +  fi
   1.472 +  ;;
   1.473 +esac
   1.474 +
   1.475 +# Determine commands to create old-style static archives.
   1.476 +old_archive_cmds='$AR cru $oldlib$oldobjs'
   1.477 +old_postinstall_cmds='chmod 644 $oldlib'
   1.478 +old_postuninstall_cmds=
   1.479 +
   1.480 +# Set a sane default for `AR'.
   1.481 +test -z "$AR" && AR=ar
   1.482 +
   1.483 +# Set a sane default for `OBJDUMP'.
   1.484 +test -z "$OBJDUMP" && OBJDUMP=objdump
   1.485 +
   1.486 +# If RANLIB is not set, then run the test.
   1.487 +if test "${RANLIB+set}" != "set"; then
   1.488 +  result=no
   1.489 +
   1.490 +  echo $ac_n "checking for ranlib... $ac_c" 1>&6
   1.491 +  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   1.492 +  for dir in $PATH; do
   1.493 +    test -z "$dir" && dir=.
   1.494 +    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
   1.495 +      RANLIB="ranlib"
   1.496 +      result="ranlib"
   1.497 +      break
   1.498 +    fi
   1.499 +  done
   1.500 +  IFS="$save_ifs"
   1.501 +
   1.502 +  echo "$ac_t$result" 1>&6
   1.503 +fi
   1.504 +
   1.505 +if test -n "$RANLIB"; then
   1.506 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   1.507 +  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
   1.508 +fi
   1.509 +
   1.510 +# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
   1.511 +test -z "$DLLTOOL" && DLLTOOL=dlltool
   1.512 +test -z "$OBJDUMP" && OBJDUMP=objdump
   1.513 +test -z "$AS" && AS=as
   1.514 +
   1.515 +# Check to see if we are using GCC.
   1.516 +if test "$with_gcc" != yes || test -z "$CC"; then
   1.517 +  # If CC is not set, then try to find GCC or a usable CC.
   1.518 +  if test -z "$CC"; then
   1.519 +    echo $ac_n "checking for gcc... $ac_c" 1>&6
   1.520 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   1.521 +    for dir in $PATH; do
   1.522 +      test -z "$dir" && dir=.
   1.523 +      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
   1.524 +	CC="gcc"
   1.525 +	break
   1.526 +      fi
   1.527 +    done
   1.528 +    IFS="$save_ifs"
   1.529 +
   1.530 +    if test -n "$CC"; then
   1.531 +      echo "$ac_t$CC" 1>&6
   1.532 +    else
   1.533 +      echo "$ac_t"no 1>&6
   1.534 +    fi
   1.535 +  fi
   1.536 +
   1.537 +  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
   1.538 +  if test -z "$CC"; then
   1.539 +    echo $ac_n "checking for cc... $ac_c" 1>&6
   1.540 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   1.541 +    cc_rejected=no
   1.542 +    for dir in $PATH; do
   1.543 +      test -z "$dir" && dir=.
   1.544 +      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
   1.545 +	if test "$dir/cc" = "/usr/ucb/cc"; then
   1.546 +	  cc_rejected=yes
   1.547 +	  continue
   1.548 +	fi
   1.549 +	CC="cc"
   1.550 +	break
   1.551 +      fi
   1.552 +    done
   1.553 +    IFS="$save_ifs"
   1.554 +    if test $cc_rejected = yes; then
   1.555 +      # We found a bogon in the path, so make sure we never use it.
   1.556 +      set dummy $CC
   1.557 +      shift
   1.558 +      if test $# -gt 0; then
   1.559 +	# We chose a different compiler from the bogus one.
   1.560 +	# However, it has the same name, so the bogon will be chosen
   1.561 +	# first if we set CC to just the name; use the full file name.
   1.562 +	shift
   1.563 +	set dummy "$dir/cc" "$@"
   1.564 +	shift
   1.565 +	CC="$@"
   1.566 +      fi
   1.567 +    fi
   1.568 +
   1.569 +    if test -n "$CC"; then
   1.570 +      echo "$ac_t$CC" 1>&6
   1.571 +    else
   1.572 +      echo "$ac_t"no 1>&6
   1.573 +    fi
   1.574 +
   1.575 +    if test -z "$CC"; then
   1.576 +      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
   1.577 +      exit 1
   1.578 +    fi
   1.579 +  fi
   1.580 +
   1.581 +  # Now see if the compiler is really GCC.
   1.582 +  with_gcc=no
   1.583 +  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
   1.584 +  echo "$progname:581: checking whether we are using GNU C" >&5
   1.585 +
   1.586 +  $rm conftest.c
   1.587 +  cat > conftest.c <<EOF
   1.588 +#ifdef __GNUC__
   1.589 +  yes;
   1.590 +#endif
   1.591 +EOF
   1.592 +  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   1.593 +    with_gcc=yes
   1.594 +  fi
   1.595 +  $rm conftest.c
   1.596 +  echo "$ac_t$with_gcc" 1>&6
   1.597 +fi
   1.598 +
   1.599 +# Allow CC to be a program name with arguments.
   1.600 +set dummy $CC
   1.601 +compiler="$2"
   1.602 +
   1.603 +echo $ac_n "checking for object suffix... $ac_c" 1>&6
   1.604 +$rm conftest*
   1.605 +echo 'int i = 1;' > conftest.c
   1.606 +echo "$progname:603: checking for object suffix" >& 5
   1.607 +if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
   1.608 +  # Append any warnings to the config.log.
   1.609 +  cat conftest.err 1>&5
   1.610 +
   1.611 +  for ac_file in conftest.*; do
   1.612 +    case $ac_file in
   1.613 +    *.c) ;;
   1.614 +    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
   1.615 +    esac
   1.616 +  done
   1.617 +else
   1.618 +  cat conftest.err 1>&5
   1.619 +  echo "$progname: failed program was:" >&5
   1.620 +  cat conftest.c >&5
   1.621 +fi
   1.622 +$rm conftest*
   1.623 +echo "$ac_t$objext" 1>&6
   1.624 +
   1.625 +echo $ac_n "checking for executable suffix... $ac_c" 1>&6
   1.626 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
   1.627 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.628 +else
   1.629 +  ac_cv_exeext="no"
   1.630 +  $rm conftest*
   1.631 +  echo 'main () { return 0; }' > conftest.c
   1.632 +  echo "$progname:629: checking for executable suffix" >& 5
   1.633 +  if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
   1.634 +    # Append any warnings to the config.log.
   1.635 +    cat conftest.err 1>&5
   1.636 +
   1.637 +    for ac_file in conftest.*; do
   1.638 +      case $ac_file in
   1.639 +      *.c | *.err | *.$objext ) ;;
   1.640 +      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
   1.641 +      esac
   1.642 +    done
   1.643 +  else
   1.644 +    cat conftest.err 1>&5
   1.645 +    echo "$progname: failed program was:" >&5
   1.646 +    cat conftest.c >&5
   1.647 +  fi
   1.648 +  $rm conftest*
   1.649 +fi
   1.650 +if test "X$ac_cv_exeext" = Xno; then
   1.651 +  exeext=""
   1.652 +else
   1.653 +  exeext="$ac_cv_exeext"
   1.654 +fi
   1.655 +echo "$ac_t$ac_cv_exeext" 1>&6
   1.656 +
   1.657 +echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
   1.658 +pic_flag=
   1.659 +special_shlib_compile_flags=
   1.660 +wl=
   1.661 +link_static_flag=
   1.662 +no_builtin_flag=
   1.663 +
   1.664 +if test "$with_gcc" = yes; then
   1.665 +  wl='-Wl,'
   1.666 +  link_static_flag='-static'
   1.667 +
   1.668 +  case "$host_os" in
   1.669 +  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
   1.670 +    # PIC is the default for these OSes.
   1.671 +    ;;
   1.672 +  aix*)
   1.673 +    # Below there is a dirty hack to force normal static linking with -ldl
   1.674 +    # The problem is because libdl dynamically linked with both libc and
   1.675 +    # libC (AIX C++ library), which obviously doesn't included in libraries
   1.676 +    # list by gcc. This cause undefined symbols with -static flags.
   1.677 +    # This hack allows C programs to be linked with "-static -ldl", but
   1.678 +    # we not sure about C++ programs.
   1.679 +    link_static_flag="$link_static_flag ${wl}-lC"
   1.680 +    ;;
   1.681 +  cygwin* | mingw* | os2*)
   1.682 +    # We can build DLLs from non-PIC.
   1.683 +    ;;
   1.684 +  amigaos*)
   1.685 +    # FIXME: we need at least 68020 code to build shared libraries, but
   1.686 +    # adding the `-m68020' flag to GCC prevents building anything better,
   1.687 +    # like `-m68040'.
   1.688 +    pic_flag='-m68020 -resident32 -malways-restore-a4'
   1.689 +    ;;
   1.690 +  sysv4*MP*)
   1.691 +    if test -d /usr/nec; then
   1.692 +       pic_flag=-Kconform_pic
   1.693 +    fi
   1.694 +    ;;
   1.695 +  *)
   1.696 +    pic_flag='-fPIC'
   1.697 +    ;;
   1.698 +  esac
   1.699 +else
   1.700 +  # PORTME Check for PIC flags for the system compiler.
   1.701 +  case "$host_os" in
   1.702 +  aix3* | aix4*)
   1.703 +    # All AIX code is PIC.
   1.704 +    link_static_flag='-bnso -bI:/lib/syscalls.exp'
   1.705 +    ;;
   1.706 +
   1.707 +  hpux9* | hpux10* | hpux11*)
   1.708 +    # Is there a better link_static_flag that works with the bundled CC?
   1.709 +    wl='-Wl,'
   1.710 +    link_static_flag="${wl}-a ${wl}archive"
   1.711 +    pic_flag='+Z'
   1.712 +    ;;
   1.713 +
   1.714 +  irix5* | irix6*)
   1.715 +    wl='-Wl,'
   1.716 +    link_static_flag='-non_shared'
   1.717 +    # PIC (with -KPIC) is the default.
   1.718 +    ;;
   1.719 +
   1.720 +  cygwin* | mingw* | os2*)
   1.721 +    # We can build DLLs from non-PIC.
   1.722 +    ;;
   1.723 +
   1.724 +  osf3* | osf4* | osf5*)
   1.725 +    # All OSF/1 code is PIC.
   1.726 +    wl='-Wl,'
   1.727 +    link_static_flag='-non_shared'
   1.728 +    ;;
   1.729 +
   1.730 +  sco3.2v5*)
   1.731 +    pic_flag='-Kpic'
   1.732 +    link_static_flag='-dn'
   1.733 +    special_shlib_compile_flags='-belf'
   1.734 +    ;;
   1.735 +
   1.736 +  solaris*)
   1.737 +    pic_flag='-KPIC'
   1.738 +    link_static_flag='-Bstatic'
   1.739 +    wl='-Wl,'
   1.740 +    ;;
   1.741 +
   1.742 +  sunos4*)
   1.743 +    pic_flag='-PIC'
   1.744 +    link_static_flag='-Bstatic'
   1.745 +    wl='-Qoption ld '
   1.746 +    ;;
   1.747 +
   1.748 +  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
   1.749 +    pic_flag='-KPIC'
   1.750 +    link_static_flag='-Bstatic'
   1.751 +    wl='-Wl,'
   1.752 +    ;;
   1.753 +
   1.754 +  uts4*)
   1.755 +    pic_flag='-pic'
   1.756 +    link_static_flag='-Bstatic'
   1.757 +    ;;
   1.758 +  sysv4*MP*)
   1.759 +    if test -d /usr/nec ;then
   1.760 +      pic_flag='-Kconform_pic'
   1.761 +      link_static_flag='-Bstatic'
   1.762 +    fi
   1.763 +    ;;
   1.764 +  *)
   1.765 +    can_build_shared=no
   1.766 +    ;;
   1.767 +  esac
   1.768 +fi
   1.769 +
   1.770 +if test -n "$pic_flag"; then
   1.771 +  echo "$ac_t$pic_flag" 1>&6
   1.772 +
   1.773 +  # Check to make sure the pic_flag actually works.
   1.774 +  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
   1.775 +  $rm conftest*
   1.776 +  echo "int some_variable = 0;" > conftest.c
   1.777 +  save_CFLAGS="$CFLAGS"
   1.778 +  CFLAGS="$CFLAGS $pic_flag -DPIC"
   1.779 +  echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
   1.780 +  if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
   1.781 +    # Append any warnings to the config.log.
   1.782 +    cat conftest.err 1>&5
   1.783 +    
   1.784 +    case "$host_os" in
   1.785 +    hpux9* | hpux10* | hpux11*)
   1.786 +      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
   1.787 +      # create non-PIC objects.  So, if there were any warnings, we assume that
   1.788 +      # PIC is not supported.
   1.789 +      if test -s conftest.err; then
   1.790 +	echo "$ac_t"no 1>&6
   1.791 +	can_build_shared=no
   1.792 +	pic_flag=
   1.793 +      else
   1.794 +	echo "$ac_t"yes 1>&6
   1.795 +	pic_flag=" $pic_flag"
   1.796 +      fi
   1.797 +      ;;
   1.798 +    *)
   1.799 +      echo "$ac_t"yes 1>&6
   1.800 +      pic_flag=" $pic_flag"
   1.801 +      ;;
   1.802 +    esac
   1.803 +  else
   1.804 +    # Append any errors to the config.log.
   1.805 +    cat conftest.err 1>&5
   1.806 +    can_build_shared=no
   1.807 +    pic_flag=
   1.808 +    echo "$ac_t"no 1>&6
   1.809 +  fi
   1.810 +  CFLAGS="$save_CFLAGS"
   1.811 +  $rm conftest*
   1.812 +else
   1.813 +  echo "$ac_t"none 1>&6
   1.814 +fi
   1.815 +
   1.816 +# Check to see if options -o and -c are simultaneously supported by compiler
   1.817 +echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
   1.818 +$rm -r conftest 2>/dev/null
   1.819 +mkdir conftest
   1.820 +cd conftest
   1.821 +$rm conftest*
   1.822 +echo "int some_variable = 0;" > conftest.c
   1.823 +mkdir out
   1.824 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
   1.825 +# that will create temporary files in the current directory regardless of
   1.826 +# the output directory.  Thus, making CWD read-only will cause this test
   1.827 +# to fail, enabling locking or at least warning the user not to do parallel
   1.828 +# builds.
   1.829 +chmod -w .
   1.830 +save_CFLAGS="$CFLAGS"
   1.831 +CFLAGS="$CFLAGS -o out/conftest2.o"
   1.832 +echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
   1.833 +if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
   1.834 +
   1.835 +  # The compiler can only warn and ignore the option if not recognized
   1.836 +  # So say no if there are warnings
   1.837 +    if test -s out/conftest.err; then
   1.838 +      echo "$ac_t"no 1>&6
   1.839 +      compiler_c_o=no
   1.840 +    else
   1.841 +      echo "$ac_t"yes 1>&6
   1.842 +      compiler_c_o=yes
   1.843 +    fi
   1.844 +else
   1.845 +  # Append any errors to the config.log.
   1.846 +  cat out/conftest.err 1>&5
   1.847 +  compiler_c_o=no
   1.848 +  echo "$ac_t"no 1>&6
   1.849 +fi
   1.850 +CFLAGS="$save_CFLAGS"
   1.851 +chmod u+w .
   1.852 +$rm conftest* out/*
   1.853 +rmdir out
   1.854 +cd ..
   1.855 +rmdir conftest
   1.856 +$rm -r conftest 2>/dev/null
   1.857 +
   1.858 +if test x"$compiler_c_o" = x"yes"; then
   1.859 +  # Check to see if we can write to a .lo
   1.860 +  echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
   1.861 +  $rm conftest*
   1.862 +  echo "int some_variable = 0;" > conftest.c
   1.863 +  save_CFLAGS="$CFLAGS"
   1.864 +  CFLAGS="$CFLAGS -c -o conftest.lo"
   1.865 +  echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
   1.866 +if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
   1.867 +
   1.868 +    # The compiler can only warn and ignore the option if not recognized
   1.869 +    # So say no if there are warnings
   1.870 +      if test -s conftest.err; then
   1.871 +	echo "$ac_t"no 1>&6
   1.872 +	compiler_o_lo=no
   1.873 +      else
   1.874 +	echo "$ac_t"yes 1>&6
   1.875 +	compiler_o_lo=yes
   1.876 +      fi
   1.877 +  else
   1.878 +    # Append any errors to the config.log.
   1.879 +    cat conftest.err 1>&5
   1.880 +    compiler_o_lo=no
   1.881 +    echo "$ac_t"no 1>&6
   1.882 +  fi
   1.883 +  CFLAGS="$save_CFLAGS"
   1.884 +  $rm conftest*
   1.885 +else
   1.886 +  compiler_o_lo=no
   1.887 +fi
   1.888 +
   1.889 +# Check to see if we can do hard links to lock some files if needed
   1.890 +hard_links="nottested"
   1.891 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
   1.892 +  # do not overwrite the value of need_locks provided by the user
   1.893 +  echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
   1.894 +  hard_links=yes
   1.895 +  $rm conftest*
   1.896 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   1.897 +  touch conftest.a
   1.898 +  ln conftest.a conftest.b 2>&5 || hard_links=no
   1.899 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
   1.900 +  echo "$ac_t$hard_links" 1>&6
   1.901 +  $rm conftest*
   1.902 +  if test "$hard_links" = no; then
   1.903 +    echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
   1.904 +    need_locks=warn
   1.905 +  fi
   1.906 +else
   1.907 +  need_locks=no
   1.908 +fi
   1.909 +
   1.910 +if test "$with_gcc" = yes; then
   1.911 +  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
   1.912 +  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
   1.913 +  $rm conftest*
   1.914 +  echo "int some_variable = 0;" > conftest.c
   1.915 +  save_CFLAGS="$CFLAGS"
   1.916 +  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
   1.917 +  echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
   1.918 +  if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
   1.919 +
   1.920 +    # The compiler can only warn and ignore the option if not recognized
   1.921 +    # So say no if there are warnings
   1.922 +      if test -s conftest.err; then
   1.923 +	echo "$ac_t"no 1>&6
   1.924 +	compiler_rtti_exceptions=no
   1.925 +      else
   1.926 +	echo "$ac_t"yes 1>&6
   1.927 +	compiler_rtti_exceptions=yes
   1.928 +      fi
   1.929 +  else
   1.930 +    # Append any errors to the config.log.
   1.931 +    cat conftest.err 1>&5
   1.932 +    compiler_rtti_exceptions=no
   1.933 +    echo "$ac_t"no 1>&6
   1.934 +  fi
   1.935 +  CFLAGS="$save_CFLAGS"
   1.936 +  $rm conftest*
   1.937 +
   1.938 +  if test "$compiler_rtti_exceptions" = "yes"; then
   1.939 +    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
   1.940 +  else
   1.941 +    no_builtin_flag=' -fno-builtin'
   1.942 +  fi
   1.943 +  
   1.944 +fi
   1.945 +
   1.946 +# Check for any special shared library compilation flags.
   1.947 +if test -n "$special_shlib_compile_flags"; then
   1.948 +  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
   1.949 +  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$special_shlib_compile_flags[ 	]" >/dev/null; then :
   1.950 +  else
   1.951 +    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
   1.952 +    can_build_shared=no
   1.953 +  fi
   1.954 +fi
   1.955 +
   1.956 +echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
   1.957 +$rm conftest*
   1.958 +echo 'main(){return(0);}' > conftest.c
   1.959 +save_LDFLAGS="$LDFLAGS"
   1.960 +LDFLAGS="$LDFLAGS $link_static_flag"
   1.961 +echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
   1.962 +if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   1.963 +  echo "$ac_t$link_static_flag" 1>&6
   1.964 +else
   1.965 +  echo "$ac_t"none 1>&6
   1.966 +  link_static_flag=
   1.967 +fi
   1.968 +LDFLAGS="$save_LDFLAGS"
   1.969 +$rm conftest*
   1.970 +
   1.971 +if test -z "$LN_S"; then
   1.972 +  # Check to see if we can use ln -s, or we need hard links.
   1.973 +  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
   1.974 +  $rm conftest.dat
   1.975 +  if ln -s X conftest.dat 2>/dev/null; then
   1.976 +    $rm conftest.dat
   1.977 +    LN_S="ln -s"
   1.978 +  else
   1.979 +    LN_S=ln
   1.980 +  fi
   1.981 +  if test "$LN_S" = "ln -s"; then
   1.982 +    echo "$ac_t"yes 1>&6
   1.983 +  else
   1.984 +    echo "$ac_t"no 1>&6
   1.985 +  fi
   1.986 +fi
   1.987 +
   1.988 +# Make sure LD is an absolute path.
   1.989 +if test -z "$LD"; then
   1.990 +  ac_prog=ld
   1.991 +  if test "$with_gcc" = yes; then
   1.992 +    # Check if gcc -print-prog-name=ld gives a path.
   1.993 +    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
   1.994 +    echo "$progname:991: checking for ld used by GCC" >&5
   1.995 +    ac_prog=`($CC -print-prog-name=ld) 2>&5`
   1.996 +    case "$ac_prog" in
   1.997 +    # Accept absolute paths.
   1.998 +    [\\/]* | [A-Za-z]:[\\/]*)
   1.999 +      re_direlt='/[^/][^/]*/\.\./'
  1.1000 +      # Canonicalize the path of ld
  1.1001 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1.1002 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1.1003 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  1.1004 +      done
  1.1005 +      test -z "$LD" && LD="$ac_prog"
  1.1006 +      ;;
  1.1007 +    "")
  1.1008 +      # If it fails, then pretend we are not using GCC.
  1.1009 +      ac_prog=ld
  1.1010 +      ;;
  1.1011 +    *)
  1.1012 +      # If it is relative, then search for the first ld in PATH.
  1.1013 +      with_gnu_ld=unknown
  1.1014 +      ;;
  1.1015 +    esac
  1.1016 +  elif test "$with_gnu_ld" = yes; then
  1.1017 +    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
  1.1018 +    echo "$progname:1015: checking for GNU ld" >&5
  1.1019 +  else
  1.1020 +    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  1.1021 +    echo "$progname:1018: checking for non-GNU ld" >&5
  1.1022 +  fi
  1.1023 +
  1.1024 +  if test -z "$LD"; then
  1.1025 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1.1026 +    for ac_dir in $PATH; do
  1.1027 +      test -z "$ac_dir" && ac_dir=.
  1.1028 +      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1.1029 +	LD="$ac_dir/$ac_prog"
  1.1030 +	# Check to see if the program is GNU ld.  I'd rather use --version,
  1.1031 +	# but apparently some GNU ld's only accept -v.
  1.1032 +	# Break only if it was the GNU/non-GNU ld that we prefer.
  1.1033 +	if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  1.1034 +	  test "$with_gnu_ld" != no && break
  1.1035 +	else
  1.1036 +	  test "$with_gnu_ld" != yes && break
  1.1037 +	fi
  1.1038 +      fi
  1.1039 +    done
  1.1040 +    IFS="$ac_save_ifs"
  1.1041 +  fi
  1.1042 +
  1.1043 +  if test -n "$LD"; then
  1.1044 +    echo "$ac_t$LD" 1>&6
  1.1045 +  else
  1.1046 +    echo "$ac_t"no 1>&6
  1.1047 +  fi
  1.1048 +
  1.1049 +  if test -z "$LD"; then
  1.1050 +    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
  1.1051 +    exit 1
  1.1052 +  fi
  1.1053 +fi
  1.1054 +
  1.1055 +# Check to see if it really is or is not GNU ld.
  1.1056 +echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
  1.1057 +# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  1.1058 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  1.1059 +  with_gnu_ld=yes
  1.1060 +else
  1.1061 +  with_gnu_ld=no
  1.1062 +fi
  1.1063 +echo "$ac_t$with_gnu_ld" 1>&6
  1.1064 +
  1.1065 +# See if the linker supports building shared libraries.
  1.1066 +echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
  1.1067 +
  1.1068 +allow_undefined_flag=
  1.1069 +no_undefined_flag=
  1.1070 +need_lib_prefix=unknown
  1.1071 +need_version=unknown
  1.1072 +# when you set need_version to no, make sure it does not cause -set_version
  1.1073 +# flags to be left without arguments
  1.1074 +archive_cmds=
  1.1075 +archive_expsym_cmds=
  1.1076 +old_archive_from_new_cmds=
  1.1077 +export_dynamic_flag_spec=
  1.1078 +whole_archive_flag_spec=
  1.1079 +thread_safe_flag_spec=
  1.1080 +hardcode_libdir_flag_spec=
  1.1081 +hardcode_libdir_separator=
  1.1082 +hardcode_direct=no
  1.1083 +hardcode_minus_L=no
  1.1084 +hardcode_shlibpath_var=unsupported
  1.1085 +runpath_var=
  1.1086 +always_export_symbols=no
  1.1087 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.1088 +# include_expsyms should be a list of space-separated symbols to be *always*
  1.1089 +# included in the symbol list
  1.1090 +include_expsyms=
  1.1091 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  1.1092 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  1.1093 +# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1.1094 +# as well as any symbol that contains `d'.
  1.1095 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  1.1096 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1.1097 +# platforms (ab)use it in PIC code, but their linkers get confused if
  1.1098 +# the symbol is explicitly referenced.  Since portable code cannot
  1.1099 +# rely on this symbol name, it's probably fine to never include it in
  1.1100 +# preloaded symbol tables.
  1.1101 +
  1.1102 +case "$host_os" in
  1.1103 +cygwin* | mingw*)
  1.1104 +  # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1.1105 +  # When not using gcc, we currently assume that we are using
  1.1106 +  # Microsoft Visual C++.
  1.1107 +  if test "$with_gcc" != yes; then
  1.1108 +    with_gnu_ld=no
  1.1109 +  fi
  1.1110 +  ;;
  1.1111 +
  1.1112 +esac
  1.1113 +
  1.1114 +ld_shlibs=yes
  1.1115 +if test "$with_gnu_ld" = yes; then
  1.1116 +  # If archive_cmds runs LD, not CC, wlarc should be empty
  1.1117 +  wlarc='${wl}'
  1.1118 +
  1.1119 +  # See if GNU ld supports shared libraries.
  1.1120 +  case "$host_os" in
  1.1121 +  aix3* | aix4*)
  1.1122 +    # On AIX, the GNU linker is very broken
  1.1123 +    ld_shlibs=no
  1.1124 +    cat <<EOF 1>&2
  1.1125 +
  1.1126 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.1127 +*** to be unable to reliably create shared libraries on AIX.
  1.1128 +*** Therefore, libtool is disabling shared libraries support.  If you
  1.1129 +*** really care for shared libraries, you may want to modify your PATH
  1.1130 +*** so that a non-GNU linker is found, and then restart.
  1.1131 +
  1.1132 +EOF
  1.1133 +    ;;
  1.1134 +
  1.1135 +  amigaos*)
  1.1136 +    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1.1137 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1138 +    hardcode_minus_L=yes
  1.1139 +
  1.1140 +    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1.1141 +    # that the semantics of dynamic libraries on AmigaOS, at least up
  1.1142 +    # to version 4, is to share data among multiple programs linked
  1.1143 +    # with the same dynamic library.  Since this doesn't match the
  1.1144 +    # behavior of shared libraries on other platforms, we can use
  1.1145 +    # them.
  1.1146 +    ld_shlibs=no
  1.1147 +    ;;
  1.1148 +
  1.1149 +  beos*)
  1.1150 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1.1151 +      #allow_undefined_flag=unsupported
  1.1152 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.1153 +      # support --undefined.  This deserves some investigation.  FIXME
  1.1154 +      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1.1155 +    else
  1.1156 +      ld_shlibs=no
  1.1157 +    fi
  1.1158 +    ;;
  1.1159 +
  1.1160 +  cygwin* | mingw*)
  1.1161 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.1162 +    # no search path for DLLs.
  1.1163 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1164 +#    allow_undefined_flag=unsupported
  1.1165 +    always_export_symbols=yes
  1.1166 +
  1.1167 +    # Extract the symbol export list from an `--export-all' def file,
  1.1168 +    # then regenerate the def file from the symbol export list, so that
  1.1169 +    # the compiled dll only exports the symbol export list.
  1.1170 +    # Be careful not to strip the DATA tag left by newer dlltools.
  1.1171 +    export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1.1172 +      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
  1.1173 +      $DLLTOOL --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
  1.1174 +      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
  1.1175 +
  1.1176 +    # If DATA tags from a recent dlltool are present, honour them!
  1.1177 +    archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  1.1178 +      _lt_hint=1;
  1.1179 +      cat $export_symbols | while read symbol; do
  1.1180 +        set dummy \$symbol;
  1.1181 +        case \$# in
  1.1182 +          2) echo "	\$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
  1.1183 +          *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
  1.1184 +        esac;
  1.1185 +	_lt_hint=`expr 1 + \$_lt_hint`;
  1.1186 +      done~
  1.1187 +      test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  1.1188 +      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
  1.1189 +      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  1.1190 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  1.1191 +      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  1.1192 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols _DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
  1.1193 +      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,_DllMain@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
  1.1194 +      : strip_is_broken_with_dlls_on_win95B - strip $lib'
  1.1195 +
  1.1196 +      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a'
  1.1197 +    ;;
  1.1198 +
  1.1199 +  netbsd*)
  1.1200 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.1201 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1.1202 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1203 +    else
  1.1204 +      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
  1.1205 +      # can we support soname and/or expsyms with a.out? -oliva
  1.1206 +    fi
  1.1207 +    ;;
  1.1208 +
  1.1209 +  solaris* | sysv5*)
  1.1210 +    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  1.1211 +      ld_shlibs=no
  1.1212 +      cat <<EOF 1>&2
  1.1213 +
  1.1214 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1.1215 +*** create shared libraries on Solaris systems.  Therefore, libtool
  1.1216 +*** is disabling shared libraries support.  We urge you to upgrade GNU
  1.1217 +*** binutils to release 2.9.1 or newer.  Another option is to modify
  1.1218 +*** your PATH or compiler configuration so that the native linker is
  1.1219 +*** used, and then restart.
  1.1220 +
  1.1221 +EOF
  1.1222 +    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1.1223 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1.1224 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1225 +    else
  1.1226 +      ld_shlibs=no
  1.1227 +    fi
  1.1228 +    ;;      
  1.1229 +
  1.1230 +  sunos4*)
  1.1231 +    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
  1.1232 +    wlarc=
  1.1233 +    hardcode_direct=yes
  1.1234 +    hardcode_shlibpath_var=no
  1.1235 +    ;;
  1.1236 +
  1.1237 +  *)
  1.1238 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  1.1239 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  1.1240 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.1241 +    else
  1.1242 +      ld_shlibs=no
  1.1243 +    fi
  1.1244 +    ;;
  1.1245 +  esac
  1.1246 +
  1.1247 +  if test "$ld_shlibs" = yes; then
  1.1248 +    runpath_var=LD_RUN_PATH
  1.1249 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  1.1250 +    export_dynamic_flag_spec='${wl}--export-dynamic'
  1.1251 +    case $host_os in
  1.1252 +    cygwin* | mingw*)
  1.1253 +      # dlltool doesn't understand --whole-archive et. al.
  1.1254 +      whole_archive_flag_spec=
  1.1255 +      ;;
  1.1256 +    *)
  1.1257 +      # ancient GNU ld didn't support --whole-archive et. al.
  1.1258 +      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  1.1259 +        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.1260 +      else
  1.1261 +        whole_archive_flag_spec=
  1.1262 +      fi
  1.1263 +      ;;
  1.1264 +    esac
  1.1265 +  fi
  1.1266 +else
  1.1267 +  # PORTME fill in a description of your system's linker (not GNU ld)
  1.1268 +  case "$host_os" in
  1.1269 +  aix3*)
  1.1270 +    allow_undefined_flag=unsupported
  1.1271 +    always_export_symbols=yes
  1.1272 +    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
  1.1273 +    # Note: this linker hardcodes the directories in LIBPATH if there
  1.1274 +    # are no directories specified by -L.
  1.1275 +    hardcode_minus_L=yes
  1.1276 +    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
  1.1277 +      # Neither direct hardcoding nor static linking is supported with a
  1.1278 +      # broken collect2.
  1.1279 +      hardcode_direct=unsupported
  1.1280 +    fi
  1.1281 +    ;;
  1.1282 +
  1.1283 +  aix4*)
  1.1284 +    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
  1.1285 +    hardcode_libdir_separator=':'
  1.1286 +    if test "$with_gcc" = yes; then
  1.1287 +      collect2name=`${CC} -print-prog-name=collect2`
  1.1288 +      if test -f "$collect2name" && \
  1.1289 +	 strings "$collect2name" | grep resolve_lib_name >/dev/null
  1.1290 +      then
  1.1291 +	# We have reworked collect2
  1.1292 +	hardcode_direct=yes
  1.1293 +      else
  1.1294 +	# We have old collect2
  1.1295 +	hardcode_direct=unsupported
  1.1296 +	# It fails to find uninstalled libraries when the uninstalled
  1.1297 +	# path is not listed in the libpath.  Setting hardcode_minus_L
  1.1298 +	# to unsupported forces relinking
  1.1299 +	hardcode_minus_L=yes
  1.1300 +	hardcode_libdir_flag_spec='-L$libdir'
  1.1301 +	hardcode_libdir_separator=
  1.1302 +      fi
  1.1303 +      shared_flag='-shared'
  1.1304 +    else
  1.1305 +      shared_flag='${wl}-bM:SRE'
  1.1306 +      hardcode_direct=yes
  1.1307 +    fi
  1.1308 +    allow_undefined_flag=' ${wl}-berok'
  1.1309 +    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
  1.1310 +    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
  1.1311 +    case "$host_os" in aix4.[01]|aix4.[01].*)
  1.1312 +      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
  1.1313 +      always_export_symbols=yes ;;
  1.1314 +    esac
  1.1315 +   ;;
  1.1316 +
  1.1317 +  amigaos*)
  1.1318 +    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
  1.1319 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1320 +    hardcode_minus_L=yes
  1.1321 +    # see comment about different semantics on the GNU ld section
  1.1322 +    ld_shlibs=no
  1.1323 +    ;;
  1.1324 +
  1.1325 +  cygwin* | mingw*)
  1.1326 +    # When not using gcc, we currently assume that we are using
  1.1327 +    # Microsoft Visual C++.
  1.1328 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.1329 +    # no search path for DLLs.
  1.1330 +    hardcode_libdir_flag_spec=' '
  1.1331 +#    allow_undefined_flag=unsupported
  1.1332 +    # Tell ltmain to make .lib files, not .a files.
  1.1333 +    libext=lib
  1.1334 +    # FIXME: Setting linknames here is a bad hack.
  1.1335 +    archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.1336 +    # The linker will automatically build a .lib file if we build a DLL.
  1.1337 +    old_archive_from_new_cmds='true'
  1.1338 +    # FIXME: Should let the user specify the lib program.
  1.1339 +    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
  1.1340 +    fix_srcfile_path='`cygpath -w $srcfile`'
  1.1341 +    ;;
  1.1342 +
  1.1343 +  freebsd1*)
  1.1344 +    ld_shlibs=no
  1.1345 +    ;;
  1.1346 +
  1.1347 +  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.1348 +  # support.  Future versions do this automatically, but an explicit c++rt0.o
  1.1349 +  # does not break anything, and helps significantly (at the cost of a little
  1.1350 +  # extra space).
  1.1351 +  freebsd2.2*)
  1.1352 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
  1.1353 +    hardcode_libdir_flag_spec='-R$libdir'
  1.1354 +    hardcode_direct=yes
  1.1355 +    hardcode_shlibpath_var=no
  1.1356 +    ;;
  1.1357 +
  1.1358 +  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.1359 +  freebsd2*)
  1.1360 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
  1.1361 +    hardcode_direct=yes
  1.1362 +    hardcode_minus_L=yes
  1.1363 +    hardcode_shlibpath_var=no
  1.1364 +    ;;
  1.1365 +
  1.1366 +  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.1367 +  freebsd*)
  1.1368 +    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
  1.1369 +    hardcode_libdir_flag_spec='-R$libdir'
  1.1370 +    hardcode_direct=yes
  1.1371 +    hardcode_shlibpath_var=no
  1.1372 +    ;;
  1.1373 +
  1.1374 +  hpux9* | hpux10* | hpux11*)
  1.1375 +    case "$host_os" in
  1.1376 +    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
  1.1377 +    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
  1.1378 +    esac
  1.1379 +    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  1.1380 +    hardcode_libdir_separator=:
  1.1381 +    hardcode_direct=yes
  1.1382 +    hardcode_minus_L=yes # Not in the search PATH, but as the default
  1.1383 +			 # location of the library.
  1.1384 +    export_dynamic_flag_spec='${wl}-E'
  1.1385 +    ;;
  1.1386 +
  1.1387 +  irix5* | irix6*)
  1.1388 +    if test "$with_gcc" = yes; then
  1.1389 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1390 +    else
  1.1391 +      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1392 +    fi
  1.1393 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1.1394 +    hardcode_libdir_separator=:
  1.1395 +    ;;
  1.1396 +
  1.1397 +  netbsd*)
  1.1398 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.1399 +      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
  1.1400 +    else
  1.1401 +      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
  1.1402 +    fi
  1.1403 +    hardcode_libdir_flag_spec='${wl}-R$libdir'
  1.1404 +    hardcode_direct=yes
  1.1405 +    hardcode_shlibpath_var=no
  1.1406 +    ;;
  1.1407 +
  1.1408 +  openbsd*)
  1.1409 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
  1.1410 +    hardcode_libdir_flag_spec='-R$libdir'
  1.1411 +    hardcode_direct=yes
  1.1412 +    hardcode_shlibpath_var=no
  1.1413 +    ;;
  1.1414 +
  1.1415 +  os2*)
  1.1416 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1417 +    hardcode_minus_L=yes
  1.1418 +    allow_undefined_flag=unsupported
  1.1419 +    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
  1.1420 +    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
  1.1421 +    ;;
  1.1422 +
  1.1423 +  osf3*)
  1.1424 +    if test "$with_gcc" = yes; then
  1.1425 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  1.1426 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1427 +    else
  1.1428 +      allow_undefined_flag=' -expect_unresolved \*'
  1.1429 +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1430 +    fi
  1.1431 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1.1432 +    hardcode_libdir_separator=:
  1.1433 +    ;;
  1.1434 +
  1.1435 +  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
  1.1436 +    if test "$with_gcc" = yes; then
  1.1437 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  1.1438 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  1.1439 +    else
  1.1440 +      allow_undefined_flag=' -expect_unresolved \*'
  1.1441 +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  1.1442 +    fi
  1.1443 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  1.1444 +    hardcode_libdir_separator=:
  1.1445 +    ;;
  1.1446 +  rhapsody*)
  1.1447 +    archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
  1.1448 +    hardcode_libdir_flags_spec='-L$libdir'
  1.1449 +    hardcode_direct=yes
  1.1450 +    hardcode_shlibpath_var=no
  1.1451 +    ;;
  1.1452 +                                       
  1.1453 +  sco3.2v5*)
  1.1454 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1455 +    hardcode_shlibpath_var=no
  1.1456 +    runpath_var=LD_RUN_PATH
  1.1457 +    hardcode_runpath_var=yes
  1.1458 +    ;;
  1.1459 +
  1.1460 +  solaris*)
  1.1461 +    no_undefined_flag=' -z text'
  1.1462 +    # $CC -shared without GNU ld will not create a library from C++
  1.1463 +    # object files and a static libstdc++, better avoid it by now
  1.1464 +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1465 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.1466 +		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  1.1467 +    hardcode_libdir_flag_spec='-R$libdir'
  1.1468 +    hardcode_shlibpath_var=no
  1.1469 +    case "$host_os" in
  1.1470 +    solaris2.[0-5] | solaris2.[0-5].*) ;;
  1.1471 +    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.1472 +      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  1.1473 +    esac
  1.1474 +    ;;
  1.1475 +
  1.1476 +  sunos4*)
  1.1477 +    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
  1.1478 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1479 +    hardcode_direct=yes
  1.1480 +    hardcode_minus_L=yes
  1.1481 +    hardcode_shlibpath_var=no
  1.1482 +    ;;
  1.1483 +
  1.1484 +  sysv4)
  1.1485 +    if test "x$host_vendor" = xsequent; then
  1.1486 +      # Use $CC to link under sequent, because it throws in some extra .o 
  1.1487 +      # files that make .init and .fini sections work.
  1.1488 +      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1489 +    else
  1.1490 +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1491 +    fi
  1.1492 +    runpath_var='LD_RUN_PATH'
  1.1493 +    hardcode_shlibpath_var=no
  1.1494 +    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
  1.1495 +    ;;  
  1.1496 +
  1.1497 +  sysv4.3*)
  1.1498 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1499 +    hardcode_shlibpath_var=no
  1.1500 +    export_dynamic_flag_spec='-Bexport'
  1.1501 +    ;;
  1.1502 +
  1.1503 +  sysv5*)
  1.1504 +    no_undefined_flag=' -z text'
  1.1505 +    # $CC -shared without GNU ld will not create a library from C++
  1.1506 +    # object files and a static libstdc++, better avoid it by now
  1.1507 +    archive_cmds='$LD -G${allow_undefined_flag} -h $rpath/$soname -o $lib $libobjs $deplibs $linkopts'
  1.1508 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.1509 +		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  1.1510 +    hardcode_libdir_flag_spec=
  1.1511 +    hardcode_shlibpath_var=no
  1.1512 +    runpath_var='LD_RUN_PATH'
  1.1513 +    ;;
  1.1514 +
  1.1515 +  uts4*)
  1.1516 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1517 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1518 +    hardcode_shlibpath_var=no
  1.1519 +    ;;
  1.1520 +
  1.1521 +  dgux*)
  1.1522 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1523 +    hardcode_libdir_flag_spec='-L$libdir'
  1.1524 +    hardcode_shlibpath_var=no
  1.1525 +    ;;
  1.1526 +
  1.1527 +  sysv4*MP*)
  1.1528 +    if test -d /usr/nec; then
  1.1529 +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1530 +      hardcode_shlibpath_var=no
  1.1531 +      runpath_var=LD_RUN_PATH
  1.1532 +      hardcode_runpath_var=yes
  1.1533 +      ld_shlibs=yes
  1.1534 +    fi
  1.1535 +    ;;
  1.1536 +
  1.1537 +  sysv4.2uw2*)
  1.1538 +    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
  1.1539 +    hardcode_direct=yes
  1.1540 +    hardcode_minus_L=no
  1.1541 +    hardcode_shlibpath_var=no
  1.1542 +    hardcode_runpath_var=yes
  1.1543 +    runpath_var=LD_RUN_PATH
  1.1544 +    ;;
  1.1545 +
  1.1546 +  unixware7*)
  1.1547 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  1.1548 +    runpath_var='LD_RUN_PATH'
  1.1549 +    hardcode_shlibpath_var=no
  1.1550 +    ;;
  1.1551 +
  1.1552 +  *)
  1.1553 +    ld_shlibs=no
  1.1554 +    ;;
  1.1555 +  esac
  1.1556 +fi
  1.1557 +echo "$ac_t$ld_shlibs" 1>&6
  1.1558 +test "$ld_shlibs" = no && can_build_shared=no
  1.1559 +
  1.1560 +if test -z "$NM"; then
  1.1561 +  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
  1.1562 +  case "$NM" in
  1.1563 +  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
  1.1564 +  *)
  1.1565 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  1.1566 +    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
  1.1567 +      test -z "$ac_dir" && ac_dir=.
  1.1568 +      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
  1.1569 +	# Check to see if the nm accepts a BSD-compat flag.
  1.1570 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  1.1571 +	#   nm: unknown option "B" ignored
  1.1572 +	if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1.1573 +	  NM="$ac_dir/nm -B"
  1.1574 +	  break
  1.1575 +	elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  1.1576 +	  NM="$ac_dir/nm -p"
  1.1577 +	  break
  1.1578 +	else
  1.1579 +	  NM=${NM="$ac_dir/nm"} # keep the first match, but
  1.1580 +	  continue # so that we can try to find one that supports BSD flags
  1.1581 +	fi
  1.1582 +      fi
  1.1583 +    done
  1.1584 +    IFS="$ac_save_ifs"
  1.1585 +    test -z "$NM" && NM=nm
  1.1586 +    ;;
  1.1587 +  esac
  1.1588 +  echo "$ac_t$NM" 1>&6
  1.1589 +fi
  1.1590 +
  1.1591 +# Check for command to grab the raw symbol name followed by C symbol from nm.
  1.1592 +echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
  1.1593 +
  1.1594 +# These are sane defaults that work on at least a few old systems.
  1.1595 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
  1.1596 +
  1.1597 +# Character class describing NM global symbol codes.
  1.1598 +symcode='[BCDEGRST]'
  1.1599 +
  1.1600 +# Regexp to match symbols that can be accessed directly from C.
  1.1601 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  1.1602 +
  1.1603 +# Transform the above into a raw symbol and a C symbol.
  1.1604 +symxfrm='\1 \2\3 \3'
  1.1605 +
  1.1606 +# Transform an extracted symbol line into a proper C declaration
  1.1607 +global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1.1608 +
  1.1609 +# Define system-specific variables.
  1.1610 +case "$host_os" in
  1.1611 +aix*)
  1.1612 +  symcode='[BCDT]'
  1.1613 +  ;;
  1.1614 +cygwin* | mingw*)
  1.1615 +  symcode='[ABCDGISTW]'
  1.1616 +  ;;
  1.1617 +hpux*) # Its linker distinguishes data from code symbols
  1.1618 +  global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1.1619 +  ;;
  1.1620 +irix*)
  1.1621 +  symcode='[BCDEGRST]'
  1.1622 +  ;;
  1.1623 +solaris*)
  1.1624 +  symcode='[BDT]'
  1.1625 +  ;;
  1.1626 +sysv4)
  1.1627 +  symcode='[DFNSTU]'
  1.1628 +  ;;
  1.1629 +esac
  1.1630 +
  1.1631 +# If we're using GNU nm, then use its standard symbol codes.
  1.1632 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1.1633 +  symcode='[ABCDGISTW]'
  1.1634 +fi
  1.1635 +
  1.1636 +# Try without a prefix undercore, then with it.
  1.1637 +for ac_symprfx in "" "_"; do
  1.1638 +
  1.1639 +  # Write the raw and C identifiers.
  1.1640 +  global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode\)[ 	][ 	]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
  1.1641 +
  1.1642 +  # Check to see that the pipe works correctly.
  1.1643 +  pipe_works=no
  1.1644 +  $rm conftest*
  1.1645 +  cat > conftest.c <<EOF
  1.1646 +#ifdef __cplusplus
  1.1647 +extern "C" {
  1.1648 +#endif
  1.1649 +char nm_test_var;
  1.1650 +void nm_test_func(){}
  1.1651 +#ifdef __cplusplus
  1.1652 +}
  1.1653 +#endif
  1.1654 +main(){nm_test_var='a';nm_test_func();return(0);}
  1.1655 +EOF
  1.1656 +
  1.1657 +  echo "$progname:1653: checking if global_symbol_pipe works" >&5
  1.1658 +  if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  1.1659 +    # Now try to grab the symbols.
  1.1660 +    nlist=conftest.nm
  1.1661 +    if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  1.1662 +
  1.1663 +      # Try sorting and uniquifying the output.
  1.1664 +      if sort "$nlist" | uniq > "$nlist"T; then
  1.1665 +	mv -f "$nlist"T "$nlist"
  1.1666 +      else
  1.1667 +	rm -f "$nlist"T
  1.1668 +      fi
  1.1669 +
  1.1670 +      # Make sure that we snagged all the symbols we need.
  1.1671 +      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1.1672 +	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1.1673 +	  cat <<EOF > conftest.c
  1.1674 +#ifdef __cplusplus
  1.1675 +extern "C" {
  1.1676 +#endif
  1.1677 +
  1.1678 +EOF
  1.1679 +	  # Now generate the symbol file.
  1.1680 +	  eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c'
  1.1681 +
  1.1682 +	  cat <<EOF >> conftest.c
  1.1683 +#if defined (__STDC__) && __STDC__
  1.1684 +# define lt_ptr_t void *
  1.1685 +#else
  1.1686 +# define lt_ptr_t char *
  1.1687 +# define const
  1.1688 +#endif
  1.1689 +
  1.1690 +/* The mapping between symbol names and symbols. */
  1.1691 +const struct {
  1.1692 +  const char *name;
  1.1693 +  lt_ptr_t address;
  1.1694 +}
  1.1695 +lt_preloaded_symbols[] =
  1.1696 +{
  1.1697 +EOF
  1.1698 +	  sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c
  1.1699 +	  cat <<\EOF >> conftest.c
  1.1700 +  {0, (lt_ptr_t) 0}
  1.1701 +};
  1.1702 +
  1.1703 +#ifdef __cplusplus
  1.1704 +}
  1.1705 +#endif
  1.1706 +EOF
  1.1707 +	  # Now try linking the two files.
  1.1708 +	  mv conftest.$objext conftstm.$objext
  1.1709 +	  save_LIBS="$LIBS"
  1.1710 +	  save_CFLAGS="$CFLAGS"
  1.1711 +	  LIBS="conftstm.$objext"
  1.1712 +	  CFLAGS="$CFLAGS$no_builtin_flag"
  1.1713 +	  if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  1.1714 +	    pipe_works=yes
  1.1715 +	  else
  1.1716 +	    echo "$progname: failed program was:" >&5
  1.1717 +	    cat conftest.c >&5
  1.1718 +	  fi
  1.1719 +	  LIBS="$save_LIBS"
  1.1720 +	else
  1.1721 +	  echo "cannot find nm_test_func in $nlist" >&5
  1.1722 +	fi
  1.1723 +      else
  1.1724 +	echo "cannot find nm_test_var in $nlist" >&5
  1.1725 +      fi
  1.1726 +    else
  1.1727 +      echo "cannot run $global_symbol_pipe" >&5
  1.1728 +    fi
  1.1729 +  else
  1.1730 +    echo "$progname: failed program was:" >&5
  1.1731 +    cat conftest.c >&5
  1.1732 +  fi
  1.1733 +  $rm conftest* conftst*
  1.1734 +
  1.1735 +  # Do not use the global_symbol_pipe unless it works.
  1.1736 +  if test "$pipe_works" = yes; then
  1.1737 +    break
  1.1738 +  else
  1.1739 +    global_symbol_pipe=
  1.1740 +  fi
  1.1741 +done
  1.1742 +if test "$pipe_works" = yes; then
  1.1743 +  echo "${ac_t}ok" 1>&6
  1.1744 +else
  1.1745 +  echo "${ac_t}failed" 1>&6
  1.1746 +fi
  1.1747 +
  1.1748 +if test -z "$global_symbol_pipe"; then
  1.1749 +  global_symbol_to_cdecl=
  1.1750 +fi
  1.1751 +
  1.1752 +# Check hardcoding attributes.
  1.1753 +echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
  1.1754 +hardcode_action=
  1.1755 +if test -n "$hardcode_libdir_flag_spec" || \
  1.1756 +   test -n "$runpath_var"; then
  1.1757 +
  1.1758 +  # We can hardcode non-existant directories.
  1.1759 +  if test "$hardcode_direct" != no &&
  1.1760 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1.1761 +     # have to relink, otherwise we might link with an installed library
  1.1762 +     # when we should be linking with a yet-to-be-installed one
  1.1763 +     ## test "$hardcode_shlibpath_var" != no &&
  1.1764 +     test "$hardcode_minus_L" != no; then
  1.1765 +    # Linking always hardcodes the temporary library directory.
  1.1766 +    hardcode_action=relink
  1.1767 +  else
  1.1768 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1.1769 +    hardcode_action=immediate
  1.1770 +  fi
  1.1771 +else
  1.1772 +  # We cannot hardcode anything, or else we can only hardcode existing
  1.1773 +  # directories.
  1.1774 +  hardcode_action=unsupported
  1.1775 +fi
  1.1776 +echo "$ac_t$hardcode_action" 1>&6
  1.1777 +
  1.1778 +
  1.1779 +reload_flag=
  1.1780 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.1781 +echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
  1.1782 +# PORTME Some linkers may need a different reload flag.
  1.1783 +reload_flag='-r'
  1.1784 +echo "$ac_t$reload_flag" 1>&6
  1.1785 +test -n "$reload_flag" && reload_flag=" $reload_flag"
  1.1786 +
  1.1787 +# PORTME Fill in your ld.so characteristics
  1.1788 +library_names_spec=
  1.1789 +libname_spec='lib$name'
  1.1790 +soname_spec=
  1.1791 +postinstall_cmds=
  1.1792 +postuninstall_cmds=
  1.1793 +finish_cmds=
  1.1794 +finish_eval=
  1.1795 +shlibpath_var=
  1.1796 +shlibpath_overrides_runpath=unknown
  1.1797 +version_type=none
  1.1798 +dynamic_linker="$host_os ld.so"
  1.1799 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1.1800 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.1801 +file_magic_cmd=
  1.1802 +file_magic_test_file=
  1.1803 +deplibs_check_method='unknown'
  1.1804 +# Need to set the preceding variable on all platforms that support
  1.1805 +# interlibrary dependencies.
  1.1806 +# 'none' -- dependencies not supported.
  1.1807 +# `unknown' -- same as none, but documents that we really don't know.
  1.1808 +# 'pass_all' -- all dependencies passed with no checks.
  1.1809 +# 'test_compile' -- check by making test program.
  1.1810 +# 'file_magic [regex]' -- check by looking for files in library path
  1.1811 +# which responds to the $file_magic_cmd with a given egrep regex.
  1.1812 +# If you have `file' or equivalent on your system and you're not sure
  1.1813 +# whether `pass_all' will *always* work, you probably want this one.
  1.1814 +echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
  1.1815 +case "$host_os" in
  1.1816 +aix3*)
  1.1817 +  version_type=linux
  1.1818 +  library_names_spec='${libname}${release}.so$versuffix $libname.a'
  1.1819 +  shlibpath_var=LIBPATH
  1.1820 +
  1.1821 +  # AIX has no versioning support, so we append a major version to the name.
  1.1822 +  soname_spec='${libname}${release}.so$major'
  1.1823 +  ;;
  1.1824 +
  1.1825 +aix4*)
  1.1826 +  version_type=linux
  1.1827 +  # AIX has no versioning support, so currently we can not hardcode correct
  1.1828 +  # soname into executable. Probably we can add versioning support to
  1.1829 +  # collect2, so additional links can be useful in future.
  1.1830 +  # We preserve .a as extension for shared libraries though AIX4.2
  1.1831 +  # and later linker supports .so
  1.1832 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
  1.1833 +  shlibpath_var=LIBPATH
  1.1834 +  deplibs_check_method=pass_all
  1.1835 +  ;;
  1.1836 +
  1.1837 +amigaos*)
  1.1838 +  library_names_spec='$libname.ixlibrary $libname.a'
  1.1839 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.1840 +  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.1841 +  ;;
  1.1842 +
  1.1843 +beos*)
  1.1844 +  library_names_spec='${libname}.so'
  1.1845 +  dynamic_linker="$host_os ld.so"
  1.1846 +  shlibpath_var=LIBRARY_PATH
  1.1847 +  deplibs_check_method=pass_all
  1.1848 +  lt_cv_dlopen="load_add_on"
  1.1849 +  lt_cv_dlopen_libs=
  1.1850 +  lt_cv_dlopen_self=yes
  1.1851 +  ;;
  1.1852 +
  1.1853 +bsdi4*)
  1.1854 +  version_type=linux
  1.1855 +  need_version=no
  1.1856 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.1857 +  soname_spec='${libname}${release}.so$major'
  1.1858 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  1.1859 +  shlibpath_var=LD_LIBRARY_PATH
  1.1860 +  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  1.1861 +  file_magic_cmd=/usr/bin/file
  1.1862 +  file_magic_test_file=/shlib/libc.so
  1.1863 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  1.1864 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  1.1865 +  export_dynamic_flag_spec=-rdynamic
  1.1866 +  # the default ld.so.conf also contains /usr/contrib/lib and
  1.1867 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  1.1868 +  # libtool to hard-code these into programs
  1.1869 +  ;;
  1.1870 +
  1.1871 +cygwin* | mingw*)
  1.1872 +  version_type=windows
  1.1873 +  need_version=no
  1.1874 +  need_lib_prefix=no
  1.1875 +  if test "$with_gcc" = yes; then
  1.1876 +    library_names_spec='`echo ${libname} | sed -e 's/^lib//g'`.dll $libname.a'
  1.1877 +  else
  1.1878 +    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  1.1879 +  fi
  1.1880 +  dynamic_linker='Win32 ld.exe'
  1.1881 +  deplibs_check_method='file_magic file format pe-i386(.*architecture: i386)?'
  1.1882 +  file_magic_cmd='${OBJDUMP} -f'
  1.1883 +  # FIXME: first we should search . and the directory the executable is in
  1.1884 +  shlibpath_var=PATH
  1.1885 +  if test "$with_gcc" = yes; then
  1.1886 +    # See where the system libraries really are - /usr/lib won't cut it
  1.1887 +    libuser32=`$CC --print-file-name=libuser32.a`
  1.1888 +    win32libs=`expr $libuser32 : '\(.*\)/.*'`
  1.1889 +    sys_lib_search_path_spec="$sys_lib_search_path $win32libs"
  1.1890 +  fi
  1.1891 +  lt_cv_dlopen="LoadLibrary"
  1.1892 +  lt_cv_dlopen_libs=
  1.1893 +  ;;
  1.1894 +
  1.1895 +freebsd1*)
  1.1896 +  dynamic_linker=no
  1.1897 +  ;;
  1.1898 +  
  1.1899 +freebsd*)
  1.1900 +  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  1.1901 +  version_type=freebsd-$objformat
  1.1902 +  case "$version_type" in
  1.1903 +    freebsd-elf*)
  1.1904 +      deplibs_check_method='pass_all'
  1.1905 +    
  1.1906 +      file_magic_cmd=/usr/bin/file
  1.1907 +      file_magic_test_file=`echo /usr/lib/libc.so*`
  1.1908 +      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1.1909 +      need_version=no
  1.1910 +      need_lib_prefix=no
  1.1911 +      ;;
  1.1912 +    freebsd-*)
  1.1913 +      deplibs_check_method=unknown
  1.1914 +      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  1.1915 +      need_version=yes
  1.1916 +      ;;
  1.1917 +  esac
  1.1918 +  shlibpath_var=LD_LIBRARY_PATH
  1.1919 +  case "$host_os" in
  1.1920 +  freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
  1.1921 +    shlibpath_overrides_runpath=yes
  1.1922 +    ;;
  1.1923 +  *) # from 3.2 on
  1.1924 +    shlibpath_overrides_runpath=no
  1.1925 +    ;;
  1.1926 +  esac
  1.1927 +  ;;
  1.1928 +
  1.1929 +gnu*)
  1.1930 +  version_type=linux
  1.1931 +  need_lib_prefix=no
  1.1932 +  need_version=no
  1.1933 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  1.1934 +  soname_spec='${libname}${release}.so$major'
  1.1935 +  shlibpath_var=LD_LIBRARY_PATH
  1.1936 +  ;;
  1.1937 +
  1.1938 +hpux9* | hpux10* | hpux11*)
  1.1939 +  # Give a soname corresponding to the major version so that dld.sl refuses to
  1.1940 +  # link against other versions.
  1.1941 +  dynamic_linker="$host_os dld.sl"
  1.1942 +  version_type=sunos
  1.1943 +  need_lib_prefix=no
  1.1944 +  need_version=no
  1.1945 +  shlibpath_var=SHLIB_PATH
  1.1946 +  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  1.1947 +  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  1.1948 +  soname_spec='${libname}${release}.sl$major'
  1.1949 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1.1950 +  postinstall_cmds='chmod 555 $lib'
  1.1951 +  case "$host_os" in
  1.1952 +  hpux10.20*)
  1.1953 +    # TODO:  Does this work for hpux-11 too?
  1.1954 +  #  deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  1.1955 +    deplibs_check_method="unknown"
  1.1956 +    file_magic_cmd=/usr/bin/file
  1.1957 +    file_magic_test_file=/usr/lib/libc.sl
  1.1958 +    ;;
  1.1959 +  esac
  1.1960 +  ;;
  1.1961 +
  1.1962 +irix5* | irix6*)
  1.1963 +  version_type=irix
  1.1964 +  need_lib_prefix=no
  1.1965 +  need_version=no
  1.1966 +  soname_spec='${libname}${release}.so.$major'
  1.1967 +  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
  1.1968 +  case "$host_os" in
  1.1969 +  irix5*)
  1.1970 +    libsuff= shlibsuff=
  1.1971 +    # this will be overridden with pass_all, but let us keep it just in case
  1.1972 +    deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1.1973 +    ;;
  1.1974 +  *)
  1.1975 +    case "$LD" in # libtool.m4 will add one of these switches to LD
  1.1976 +    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  1.1977 +    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  1.1978 +    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  1.1979 +    *) libsuff= shlibsuff= libmagic=never-match;;
  1.1980 +    esac
  1.1981 +    ;;
  1.1982 +  esac
  1.1983 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  1.1984 +  shlibpath_overrides_runpath=no
  1.1985 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  1.1986 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  1.1987 +  file_magic_cmd=/usr/bin/file
  1.1988 +  file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1.1989 +  deplibs_check_method='pass_all'
  1.1990 +  ;;
  1.1991 +
  1.1992 +# No shared lib support for Linux oldld, aout, or coff.
  1.1993 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  1.1994 +  dynamic_linker=no
  1.1995 +  ;;
  1.1996 +
  1.1997 +# This must be Linux ELF.
  1.1998 +linux-gnu*)
  1.1999 +  version_type=linux
  1.2000 +  need_lib_prefix=no
  1.2001 +  need_version=no
  1.2002 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2003 +  soname_spec='${libname}${release}.so$major'
  1.2004 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.2005 +  shlibpath_var=LD_LIBRARY_PATH
  1.2006 +  shlibpath_overrides_runpath=no
  1.2007 +  deplibs_check_method=pass_all
  1.2008 +
  1.2009 +  if test -f /lib/ld.so.1; then
  1.2010 +    dynamic_linker='GNU ld.so'
  1.2011 +  else
  1.2012 +    # Only the GNU ld.so supports shared libraries on MkLinux.
  1.2013 +    case "$host_cpu" in
  1.2014 +    powerpc*) dynamic_linker=no ;;
  1.2015 +    *) dynamic_linker='Linux ld.so' ;;
  1.2016 +    esac
  1.2017 +  fi
  1.2018 +  ;;
  1.2019 +
  1.2020 +netbsd*)
  1.2021 +  version_type=sunos
  1.2022 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.2023 +    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1.2024 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.2025 +    dynamic_linker='NetBSD (a.out) ld.so'
  1.2026 +  else
  1.2027 +    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  1.2028 +    soname_spec='${libname}${release}.so$major'
  1.2029 +    dynamic_linker='NetBSD ld.elf_so'
  1.2030 +  fi
  1.2031 +  shlibpath_var=LD_LIBRARY_PATH
  1.2032 +  ;;
  1.2033 +
  1.2034 +openbsd*)
  1.2035 +  version_type=sunos
  1.2036 +  if test "$with_gnu_ld" = yes; then
  1.2037 +    need_lib_prefix=no
  1.2038 +    need_version=no
  1.2039 +  fi
  1.2040 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1.2041 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.2042 +  shlibpath_var=LD_LIBRARY_PATH
  1.2043 +  ;;
  1.2044 +
  1.2045 +os2*)
  1.2046 +  libname_spec='$name'
  1.2047 +  need_lib_prefix=no
  1.2048 +  library_names_spec='$libname.dll $libname.a'
  1.2049 +  dynamic_linker='OS/2 ld.exe'
  1.2050 +  shlibpath_var=LIBPATH
  1.2051 +  ;;
  1.2052 +
  1.2053 +osf3* | osf4* | osf5*)
  1.2054 +  version_type=osf
  1.2055 +  need_version=no
  1.2056 +  soname_spec='${libname}${release}.so'
  1.2057 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  1.2058 +  shlibpath_var=LD_LIBRARY_PATH
  1.2059 +  # this will be overridden with pass_all, but let us keep it just in case
  1.2060 +  deplibs_check_method='file_magic COFF format alpha shared library'
  1.2061 +  file_magic_cmd=/usr/bin/file
  1.2062 +  file_magic_test_file=/shlib/libc.so
  1.2063 +  deplibs_check_method='pass_all'
  1.2064 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  1.2065 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1.2066 +  ;;
  1.2067 +
  1.2068 +rhapsody*)
  1.2069 +  version_type=sunos
  1.2070 +  library_names_spec='${libname}.so'
  1.2071 +  soname_spec='${libname}.so'
  1.2072 +  shlibpath_var=DYLD_LIBRARY_PATH
  1.2073 +  deplibs_check_method=pass_all
  1.2074 +  ;;
  1.2075 +
  1.2076 +sco3.2v5*)
  1.2077 +  version_type=osf
  1.2078 +  soname_spec='${libname}${release}.so$major'
  1.2079 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2080 +  shlibpath_var=LD_LIBRARY_PATH
  1.2081 +  ;;
  1.2082 +
  1.2083 +solaris*)
  1.2084 +  version_type=linux
  1.2085 +  need_lib_prefix=no
  1.2086 +  need_version=no
  1.2087 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2088 +  soname_spec='${libname}${release}.so$major'
  1.2089 +  shlibpath_var=LD_LIBRARY_PATH
  1.2090 +  shlibpath_overrides_runpath=yes
  1.2091 +  # ldd complains unless libraries are executable
  1.2092 +  postinstall_cmds='chmod +x $lib'
  1.2093 +  deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
  1.2094 +  file_magic_cmd=/usr/bin/file
  1.2095 +  file_magic_test_file=/lib/libc.so
  1.2096 +  ;;
  1.2097 +
  1.2098 +sunos4*)
  1.2099 +  version_type=sunos
  1.2100 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  1.2101 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  1.2102 +  shlibpath_var=LD_LIBRARY_PATH
  1.2103 +  shlibpath_overrides_runpath=yes
  1.2104 +  if test "$with_gnu_ld" = yes; then
  1.2105 +    need_lib_prefix=no
  1.2106 +  fi
  1.2107 +  need_version=yes
  1.2108 +  ;;
  1.2109 +
  1.2110 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1.2111 +  version_type=linux
  1.2112 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2113 +  soname_spec='${libname}${release}.so$major'
  1.2114 +  shlibpath_var=LD_LIBRARY_PATH
  1.2115 +  case "$host_vendor" in
  1.2116 +    sequent)
  1.2117 +      file_magic_cmd='/bin/file'
  1.2118 +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1.2119 +      ;;
  1.2120 +    ncr)
  1.2121 +      deplibs_check_method='pass_all'
  1.2122 +      ;;
  1.2123 +    motorola)
  1.2124 +      need_lib_prefix=no
  1.2125 +      need_version=no
  1.2126 +      shlibpath_overrides_runpath=no
  1.2127 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  1.2128 +      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.2129 +      file_magic_cmd=/usr/bin/file
  1.2130 +      file_magic_test_file=`echo /usr/lib/libc.so*`
  1.2131 +      ;;
  1.2132 +  esac
  1.2133 +  ;;
  1.2134 +
  1.2135 +uts4*)
  1.2136 +  version_type=linux
  1.2137 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2138 +  soname_spec='${libname}${release}.so$major'
  1.2139 +  shlibpath_var=LD_LIBRARY_PATH
  1.2140 +  ;;
  1.2141 +
  1.2142 +dgux*)
  1.2143 +  version_type=linux
  1.2144 +  need_lib_prefix=no
  1.2145 +  need_version=no
  1.2146 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  1.2147 +  soname_spec='${libname}${release}.so$major'
  1.2148 +  shlibpath_var=LD_LIBRARY_PATH
  1.2149 +  ;;
  1.2150 +
  1.2151 +sysv4*MP*)
  1.2152 +  if test -d /usr/nec ;then
  1.2153 +    version_type=linux
  1.2154 +    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  1.2155 +    soname_spec='$libname.so.$major'
  1.2156 +    shlibpath_var=LD_LIBRARY_PATH
  1.2157 +  fi
  1.2158 +  ;;
  1.2159 +
  1.2160 +*)
  1.2161 +  dynamic_linker=no
  1.2162 +  ;;
  1.2163 +esac
  1.2164 +echo "$ac_t$dynamic_linker" 1>&6
  1.2165 +test "$dynamic_linker" = no && can_build_shared=no
  1.2166 +
  1.2167 +# Report the final consequences.
  1.2168 +echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
  1.2169 +
  1.2170 +# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
  1.2171 +# configure.in, otherwise build static only libraries.
  1.2172 +case "$host_os" in
  1.2173 +cygwin* | mingw* | os2*)
  1.2174 +  if test x$can_build_shared = xyes; then
  1.2175 +    test x$enable_win32_dll = xno && can_build_shared=no
  1.2176 +    echo "checking if package supports dlls... $can_build_shared" 1>&6
  1.2177 +  fi
  1.2178 +;;
  1.2179 +esac
  1.2180 +
  1.2181 +if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
  1.2182 +  case "$deplibs_check_method" in
  1.2183 +  "file_magic "*)
  1.2184 +    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  1.2185 +    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  1.2186 +       egrep "$file_magic_regex" > /dev/null; then
  1.2187 +      :
  1.2188 +    else
  1.2189 +      cat <<EOF 1>&2
  1.2190 +
  1.2191 +*** Warning: the command libtool uses to detect shared libraries,
  1.2192 +*** $file_magic_cmd, produces output that libtool cannot recognize.
  1.2193 +*** The result is that libtool may fail to recognize shared libraries
  1.2194 +*** as such.  This will affect the creation of libtool libraries that
  1.2195 +*** depend on shared libraries, but programs linked with such libtool
  1.2196 +*** libraries will work regardless of this problem.  Nevertheless, you
  1.2197 +*** may want to report the problem to your system manager and/or to
  1.2198 +*** bug-libtool@gnu.org
  1.2199 +
  1.2200 +EOF
  1.2201 +    fi ;;
  1.2202 +  esac
  1.2203 +fi
  1.2204 +
  1.2205 +echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
  1.2206 +test "$can_build_shared" = "no" && enable_shared=no
  1.2207 +
  1.2208 +# On AIX, shared libraries and static libraries use the same namespace, and
  1.2209 +# are all built from PIC.
  1.2210 +case "$host_os" in
  1.2211 +aix3*)
  1.2212 +  test "$enable_shared" = yes && enable_static=no
  1.2213 +  if test -n "$RANLIB"; then
  1.2214 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.2215 +    postinstall_cmds='$RANLIB $lib'
  1.2216 +  fi
  1.2217 +  ;;
  1.2218 +
  1.2219 +aix4*)
  1.2220 +  test "$enable_shared" = yes && enable_static=no
  1.2221 +  ;;
  1.2222 +esac
  1.2223 +
  1.2224 +echo "$ac_t$enable_shared" 1>&6
  1.2225 +
  1.2226 +# Make sure either enable_shared or enable_static is yes.
  1.2227 +test "$enable_shared" = yes || enable_static=yes
  1.2228 +
  1.2229 +echo "checking whether to build static libraries... $enable_static" 1>&6
  1.2230 +
  1.2231 +if test "$hardcode_action" = relink; then
  1.2232 +  # Fast installation is not supported
  1.2233 +  enable_fast_install=no
  1.2234 +elif test "$shlibpath_overrides_runpath" = yes ||
  1.2235 +     test "$enable_shared" = no; then
  1.2236 +  # Fast installation is not necessary
  1.2237 +  enable_fast_install=needless
  1.2238 +fi
  1.2239 +
  1.2240 +echo $ac_n "checking for objdir... $ac_c" 1>&6
  1.2241 +rm -f .libs 2>/dev/null
  1.2242 +mkdir .libs 2>/dev/null
  1.2243 +if test -d .libs; then
  1.2244 +  objdir=.libs
  1.2245 +else
  1.2246 +  # MS-DOS does not allow filenames that begin with a dot.
  1.2247 +  objdir=_libs
  1.2248 +fi
  1.2249 +rmdir .libs 2>/dev/null
  1.2250 +echo "$ac_t$objdir" 1>&6
  1.2251 +
  1.2252 +if test "x$enable_dlopen" != xyes; then
  1.2253 +  enable_dlopen=unknown
  1.2254 +  enable_dlopen_self=unknown
  1.2255 +  enable_dlopen_self_static=unknown
  1.2256 +else
  1.2257 +if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
  1.2258 +  lt_cv_dlopen=no lt_cv_dlopen_libs=
  1.2259 +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1.2260 +echo "$progname:2248: checking for dlopen in -ldl" >&5
  1.2261 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1.2262 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.2263 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2264 +else
  1.2265 +  ac_save_LIBS="$LIBS"
  1.2266 +LIBS="-ldl  $LIBS"
  1.2267 +cat > conftest.$ac_ext <<EOF
  1.2268 +#line 2256 "ltconfig"
  1.2269 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.2270 +/* We use char because int might match the return type of a gcc2
  1.2271 +    builtin and then its argument prototype would still apply.  */
  1.2272 +#ifdef __cplusplus
  1.2273 +extern "C"
  1.2274 +#endif
  1.2275 +char dlopen();
  1.2276 +
  1.2277 +int main() {
  1.2278 +dlopen()
  1.2279 +; return 0; }
  1.2280 +EOF
  1.2281 +if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.2282 +  rm -rf conftest*
  1.2283 +  eval "ac_cv_lib_$ac_lib_var=yes"
  1.2284 +else
  1.2285 +  echo "$progname: failed program was:" >&5
  1.2286 +  cat conftest.$ac_ext >&5
  1.2287 +  rm -rf conftest*
  1.2288 +  eval "ac_cv_lib_$ac_lib_var=no"
  1.2289 +fi
  1.2290 +rm -f conftest*
  1.2291 +LIBS="$ac_save_LIBS"
  1.2292 +
  1.2293 +fi
  1.2294 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1.2295 +  echo "$ac_t""yes" 1>&6
  1.2296 +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  1.2297 +else
  1.2298 +  echo "$ac_t""no" 1>&6
  1.2299 +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  1.2300 +echo "$progname:2288: checking for dlopen" >&5
  1.2301 +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  1.2302 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2303 +else
  1.2304 +  cat > conftest.$ac_ext <<EOF
  1.2305 +#line 2293 "ltconfig"
  1.2306 +/* System header to define __stub macros and hopefully few prototypes,
  1.2307 +    which can conflict with char dlopen(); below.  */
  1.2308 +#include <assert.h>
  1.2309 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.2310 +/* We use char because int might match the return type of a gcc2
  1.2311 +    builtin and then its argument prototype would still apply.  */
  1.2312 +#ifdef __cplusplus
  1.2313 +extern "C"
  1.2314 +#endif
  1.2315 +char dlopen();
  1.2316 +
  1.2317 +int main() {
  1.2318 +
  1.2319 +/* The GNU C library defines this for functions which it implements
  1.2320 +    to always fail with ENOSYS.  Some functions are actually named
  1.2321 +    something starting with __ and the normal name is an alias.  */
  1.2322 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  1.2323 +choke me
  1.2324 +#else
  1.2325 +dlopen();
  1.2326 +#endif
  1.2327 +
  1.2328 +; return 0; }
  1.2329 +EOF
  1.2330 +if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.2331 +  rm -rf conftest*
  1.2332 +  eval "ac_cv_func_dlopen=yes"
  1.2333 +else
  1.2334 +  echo "$progname: failed program was:" >&5
  1.2335 +  cat conftest.$ac_ext >&5
  1.2336 +  rm -rf conftest*
  1.2337 +  eval "ac_cv_func_dlopen=no"
  1.2338 +fi
  1.2339 +rm -f conftest*
  1.2340 +fi
  1.2341 +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  1.2342 +  echo "$ac_t""yes" 1>&6
  1.2343 +  lt_cv_dlopen="dlopen"
  1.2344 +else
  1.2345 +  echo "$ac_t""no" 1>&6
  1.2346 +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  1.2347 +echo "$progname:2335: checking for dld_link in -ldld" >&5
  1.2348 +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  1.2349 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.2350 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2351 +else
  1.2352 +  ac_save_LIBS="$LIBS"
  1.2353 +LIBS="-ldld  $LIBS"
  1.2354 +cat > conftest.$ac_ext <<EOF
  1.2355 +#line 2343 "ltconfig"
  1.2356 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.2357 +/* We use char because int might match the return type of a gcc2
  1.2358 +    builtin and then its argument prototype would still apply.  */
  1.2359 +#ifdef __cplusplus
  1.2360 +extern "C"
  1.2361 +#endif
  1.2362 +char dld_link();
  1.2363 +
  1.2364 +int main() {
  1.2365 +dld_link()
  1.2366 +; return 0; }
  1.2367 +EOF
  1.2368 +if { (eval echo $progname:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.2369 +  rm -rf conftest*
  1.2370 +  eval "ac_cv_lib_$ac_lib_var=yes"
  1.2371 +else
  1.2372 +  echo "$progname: failed program was:" >&5
  1.2373 +  cat conftest.$ac_ext >&5
  1.2374 +  rm -rf conftest*
  1.2375 +  eval "ac_cv_lib_$ac_lib_var=no"
  1.2376 +fi
  1.2377 +rm -f conftest*
  1.2378 +LIBS="$ac_save_LIBS"
  1.2379 +
  1.2380 +fi
  1.2381 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1.2382 +  echo "$ac_t""yes" 1>&6
  1.2383 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  1.2384 +else
  1.2385 +  echo "$ac_t""no" 1>&6
  1.2386 +echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  1.2387 +echo "$progname:2375: checking for shl_load" >&5
  1.2388 +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  1.2389 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2390 +else
  1.2391 +  cat > conftest.$ac_ext <<EOF
  1.2392 +#line 2380 "ltconfig"
  1.2393 +/* System header to define __stub macros and hopefully few prototypes,
  1.2394 +    which can conflict with char shl_load(); below.  */
  1.2395 +#include <assert.h>
  1.2396 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.2397 +/* We use char because int might match the return type of a gcc2
  1.2398 +    builtin and then its argument prototype would still apply.  */
  1.2399 +#ifdef __cplusplus
  1.2400 +extern "C"
  1.2401 +#endif
  1.2402 +char shl_load();
  1.2403 +
  1.2404 +int main() {
  1.2405 +
  1.2406 +/* The GNU C library defines this for functions which it implements
  1.2407 +    to always fail with ENOSYS.  Some functions are actually named
  1.2408 +    something starting with __ and the normal name is an alias.  */
  1.2409 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  1.2410 +choke me
  1.2411 +#else
  1.2412 +shl_load();
  1.2413 +#endif
  1.2414 +
  1.2415 +; return 0; }
  1.2416 +EOF
  1.2417 +if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.2418 +  rm -rf conftest*
  1.2419 +  eval "ac_cv_func_shl_load=yes"
  1.2420 +else
  1.2421 +  echo "$progname: failed program was:" >&5
  1.2422 +  cat conftest.$ac_ext >&5
  1.2423 +  rm -rf conftest*
  1.2424 +  eval "ac_cv_func_shl_load=no"
  1.2425 +fi
  1.2426 +rm -f conftest*
  1.2427 +fi
  1.2428 +
  1.2429 +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  1.2430 +  echo "$ac_t""yes" 1>&6
  1.2431 +  lt_cv_dlopen="shl_load"
  1.2432 +else
  1.2433 +  echo "$ac_t""no" 1>&6
  1.2434 +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1.2435 +echo "$progname:2423: checking for shl_load in -ldld" >&5
  1.2436 +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1.2437 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.2438 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2439 +else
  1.2440 +  ac_save_LIBS="$LIBS"
  1.2441 +LIBS="-ldld  $LIBS"
  1.2442 +cat > conftest.$ac_ext <<EOF
  1.2443 +#line 2431 "ltconfig"
  1.2444 +#include "confdefs.h"
  1.2445 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.2446 +/* We use char because int might match the return type of a gcc2
  1.2447 +    builtin and then its argument prototype would still apply.  */
  1.2448 +#ifdef __cplusplus
  1.2449 +extern "C"
  1.2450 +#endif
  1.2451 +char shl_load();
  1.2452 +
  1.2453 +int main() {
  1.2454 +shl_load()
  1.2455 +; return 0; }
  1.2456 +EOF
  1.2457 +if { (eval echo $progname:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.2458 +  rm -rf conftest*
  1.2459 +  eval "ac_cv_lib_$ac_lib_var=yes"
  1.2460 +else
  1.2461 +  echo "$progname: failed program was:" >&5
  1.2462 +  cat conftest.$ac_ext >&5
  1.2463 +  rm -rf conftest*
  1.2464 +  eval "ac_cv_lib_$ac_lib_var=no"
  1.2465 +fi
  1.2466 +rm -f conftest*
  1.2467 +LIBS="$ac_save_LIBS"
  1.2468 +
  1.2469 +fi
  1.2470 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1.2471 +  echo "$ac_t""yes" 1>&6
  1.2472 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  1.2473 +else
  1.2474 +  echo "$ac_t""no" 1>&6
  1.2475 +fi
  1.2476 +
  1.2477 +
  1.2478 +fi
  1.2479 +
  1.2480 +    
  1.2481 +fi
  1.2482 +
  1.2483 +  
  1.2484 +fi
  1.2485 +
  1.2486 +
  1.2487 +fi
  1.2488 +
  1.2489 +fi
  1.2490 +
  1.2491 +  if test "x$lt_cv_dlopen" != xno; then
  1.2492 +    enable_dlopen=yes
  1.2493 +  fi
  1.2494 +
  1.2495 +  case "$lt_cv_dlopen" in
  1.2496 +  dlopen)
  1.2497 +for ac_hdr in dlfcn.h; do
  1.2498 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1.2499 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1.2500 +echo "$progname:2488: checking for $ac_hdr" >&5
  1.2501 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1.2502 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2503 +else
  1.2504 +  cat > conftest.$ac_ext <<EOF
  1.2505 +#line 2493 "ltconfig"
  1.2506 +#include <$ac_hdr>
  1.2507 +int fnord = 0;
  1.2508 +EOF
  1.2509 +ac_try="$ac_compile >/dev/null 2>conftest.out"
  1.2510 +{ (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1.2511 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1.2512 +if test -z "$ac_err"; then
  1.2513 +  rm -rf conftest*
  1.2514 +  eval "ac_cv_header_$ac_safe=yes"
  1.2515 +else
  1.2516 +  echo "$ac_err" >&5
  1.2517 +  echo "$progname: failed program was:" >&5
  1.2518 +  cat conftest.$ac_ext >&5
  1.2519 +  rm -rf conftest*
  1.2520 +  eval "ac_cv_header_$ac_safe=no"
  1.2521 +fi
  1.2522 +rm -f conftest*
  1.2523 +fi
  1.2524 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1.2525 +  echo "$ac_t""yes" 1>&6
  1.2526 +else
  1.2527 +  echo "$ac_t""no" 1>&6
  1.2528 +fi
  1.2529 +done
  1.2530 +
  1.2531 +    if test "x$ac_cv_header_dlfcn_h" = xyes; then
  1.2532 +      CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1.2533 +    fi
  1.2534 +    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1.2535 +    LIBS="$lt_cv_dlopen_libs $LIBS"
  1.2536 +
  1.2537 +  echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  1.2538 +echo "$progname:2526: checking whether a program can dlopen itself" >&5
  1.2539 +if test "${lt_cv_dlopen_self+set}" = set; then
  1.2540 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2541 +else
  1.2542 +  if test "$cross_compiling" = yes; then
  1.2543 +    lt_cv_dlopen_self=cross
  1.2544 +  else
  1.2545 +    cat > conftest.c <<EOF
  1.2546 +#line 2534 "ltconfig"
  1.2547 +
  1.2548 +#if HAVE_DLFCN_H
  1.2549 +#include <dlfcn.h>
  1.2550 +#endif
  1.2551 +
  1.2552 +#include <stdio.h>
  1.2553 +
  1.2554 +#ifdef RTLD_GLOBAL
  1.2555 +# define LTDL_GLOBAL	RTLD_GLOBAL
  1.2556 +#else
  1.2557 +# ifdef DL_GLOBAL
  1.2558 +#  define LTDL_GLOBAL	DL_GLOBAL
  1.2559 +# else
  1.2560 +#  define LTDL_GLOBAL	0
  1.2561 +# endif
  1.2562 +#endif
  1.2563 +
  1.2564 +/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
  1.2565 +   find out it does not work in some platform. */
  1.2566 +#ifndef LTDL_LAZY_OR_NOW
  1.2567 +# ifdef RTLD_LAZY
  1.2568 +#  define LTDL_LAZY_OR_NOW	RTLD_LAZY
  1.2569 +# else
  1.2570 +#  ifdef DL_LAZY
  1.2571 +#   define LTDL_LAZY_OR_NOW	DL_LAZY
  1.2572 +#  else
  1.2573 +#   ifdef RTLD_NOW
  1.2574 +#    define LTDL_LAZY_OR_NOW	RTLD_NOW
  1.2575 +#   else
  1.2576 +#    ifdef DL_NOW
  1.2577 +#     define LTDL_LAZY_OR_NOW	DL_NOW
  1.2578 +#    else
  1.2579 +#     define LTDL_LAZY_OR_NOW	0
  1.2580 +#    endif
  1.2581 +#   endif
  1.2582 +#  endif
  1.2583 +# endif
  1.2584 +#endif
  1.2585 +
  1.2586 +fnord() { int i=42;}
  1.2587 +main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
  1.2588 +    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
  1.2589 +	       if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
  1.2590 +
  1.2591 +EOF
  1.2592 +if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1.2593 +then
  1.2594 +  lt_cv_dlopen_self=yes
  1.2595 +else
  1.2596 +  echo "$progname: failed program was:" >&5
  1.2597 +  cat conftest.$ac_ext >&5
  1.2598 +  rm -fr conftest*
  1.2599 +  lt_cv_dlopen_self=no
  1.2600 +fi
  1.2601 +rm -fr conftest*
  1.2602 +fi
  1.2603 +
  1.2604 +fi
  1.2605 +
  1.2606 +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  1.2607 +
  1.2608 +  if test "$lt_cv_dlopen_self" = yes; then
  1.2609 +    LDFLAGS="$LDFLAGS $link_static_flag"
  1.2610 +  echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  1.2611 +echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5
  1.2612 +if test "${lt_cv_dlopen_self_static+set}" = set; then
  1.2613 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.2614 +else
  1.2615 +  if test "$cross_compiling" = yes; then
  1.2616 +    lt_cv_dlopen_self_static=cross
  1.2617 +  else
  1.2618 +    cat > conftest.c <<EOF
  1.2619 +#line 2607 "ltconfig"
  1.2620 +
  1.2621 +#if HAVE_DLFCN_H
  1.2622 +#include <dlfcn.h>
  1.2623 +#endif
  1.2624 +
  1.2625 +#include <stdio.h>
  1.2626 +
  1.2627 +#ifdef RTLD_GLOBAL
  1.2628 +# define LTDL_GLOBAL	RTLD_GLOBAL
  1.2629 +#else
  1.2630 +# ifdef DL_GLOBAL
  1.2631 +#  define LTDL_GLOBAL	DL_GLOBAL
  1.2632 +# else
  1.2633 +#  define LTDL_GLOBAL	0
  1.2634 +# endif
  1.2635 +#endif
  1.2636 +
  1.2637 +/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
  1.2638 +   find out it does not work in some platform. */
  1.2639 +#ifndef LTDL_LAZY_OR_NOW
  1.2640 +# ifdef RTLD_LAZY
  1.2641 +#  define LTDL_LAZY_OR_NOW	RTLD_LAZY
  1.2642 +# else
  1.2643 +#  ifdef DL_LAZY
  1.2644 +#   define LTDL_LAZY_OR_NOW	DL_LAZY
  1.2645 +#  else
  1.2646 +#   ifdef RTLD_NOW
  1.2647 +#    define LTDL_LAZY_OR_NOW	RTLD_NOW
  1.2648 +#   else
  1.2649 +#    ifdef DL_NOW
  1.2650 +#     define LTDL_LAZY_OR_NOW	DL_NOW
  1.2651 +#    else
  1.2652 +#     define LTDL_LAZY_OR_NOW	0
  1.2653 +#    endif
  1.2654 +#   endif
  1.2655 +#  endif
  1.2656 +# endif
  1.2657 +#endif
  1.2658 +
  1.2659 +fnord() { int i=42;}
  1.2660 +main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
  1.2661 +    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
  1.2662 +    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
  1.2663 +
  1.2664 +EOF
  1.2665 +if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1.2666 +then
  1.2667 +  lt_cv_dlopen_self_static=yes
  1.2668 +else
  1.2669 +  echo "$progname: failed program was:" >&5
  1.2670 +  cat conftest.$ac_ext >&5
  1.2671 +  rm -fr conftest*
  1.2672 +  lt_cv_dlopen_self_static=no
  1.2673 +fi
  1.2674 +rm -fr conftest*
  1.2675 +fi
  1.2676 +
  1.2677 +fi
  1.2678 +
  1.2679 +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  1.2680 +fi
  1.2681 +    ;;
  1.2682 +  esac
  1.2683 +
  1.2684 +  case "$lt_cv_dlopen_self" in
  1.2685 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1.2686 +  *) enable_dlopen_self=unknown ;;
  1.2687 +  esac
  1.2688 +
  1.2689 +  case "$lt_cv_dlopen_self_static" in
  1.2690 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1.2691 +  *) enable_dlopen_self_static=unknown ;;
  1.2692 +  esac
  1.2693 +fi
  1.2694 +
  1.2695 +# Copy echo and quote the copy, instead of the original, because it is
  1.2696 +# used later.
  1.2697 +ltecho="$echo"
  1.2698 +if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  1.2699 +   ltecho="$CONFIG_SHELL \$0 --fallback-echo"
  1.2700 +fi
  1.2701 +LTSHELL="$SHELL"
  1.2702 +
  1.2703 +LTCONFIG_VERSION="$VERSION"
  1.2704 +
  1.2705 +# Only quote variables if we're using ltmain.sh.
  1.2706 +case "$ltmain" in
  1.2707 +*.sh)
  1.2708 +  # Now quote all the things that may contain metacharacters.
  1.2709 +  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
  1.2710 +    old_LD old_LDFLAGS old_LIBS \
  1.2711 +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
  1.2712 +    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
  1.2713 +    reload_flag reload_cmds wl \
  1.2714 +    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  1.2715 +    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  1.2716 +    library_names_spec soname_spec \
  1.2717 +    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  1.2718 +    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
  1.2719 +    file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
  1.2720 +    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  1.2721 +    hardcode_libdir_flag_spec hardcode_libdir_separator  \
  1.2722 +    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  1.2723 +    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  1.2724 +
  1.2725 +    case "$var" in
  1.2726 +    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  1.2727 +    old_postinstall_cmds | old_postuninstall_cmds | \
  1.2728 +    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  1.2729 +    postinstall_cmds | postuninstall_cmds | \
  1.2730 +    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  1.2731 +      # Double-quote double-evaled strings.
  1.2732 +      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  1.2733 +      ;;
  1.2734 +    *)
  1.2735 +      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  1.2736 +      ;;
  1.2737 +    esac
  1.2738 +  done
  1.2739 +
  1.2740 +  case "$ltecho" in
  1.2741 +  *'\$0 --fallback-echo"')
  1.2742 +    ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  1.2743 +    ;;
  1.2744 +  esac
  1.2745 +
  1.2746 +  trap "$rm \"$ofile\"; exit 1" 1 2 15
  1.2747 +  echo "creating $ofile"
  1.2748 +  $rm "$ofile"
  1.2749 +  cat <<EOF > "$ofile"
  1.2750 +#! $SHELL
  1.2751 +
  1.2752 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1.2753 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  1.2754 +# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
  1.2755 +#
  1.2756 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
  1.2757 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1.2758 +#
  1.2759 +# This program is free software; you can redistribute it and/or modify
  1.2760 +# it under the terms of the GNU General Public License as published by
  1.2761 +# the Free Software Foundation; either version 2 of the License, or
  1.2762 +# (at your option) any later version.
  1.2763 +#
  1.2764 +# This program is distributed in the hope that it will be useful, but
  1.2765 +# WITHOUT ANY WARRANTY; without even the implied warranty of
  1.2766 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1.2767 +# General Public License for more details.
  1.2768 +#
  1.2769 +# You should have received a copy of the GNU General Public License
  1.2770 +# along with this program; if not, write to the Free Software
  1.2771 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  1.2772 +#
  1.2773 +# As a special exception to the GNU General Public License, if you
  1.2774 +# distribute this file as part of a program that contains a
  1.2775 +# configuration script generated by Autoconf, you may include it under
  1.2776 +# the same distribution terms that you use for the rest of that program.
  1.2777 +
  1.2778 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1.2779 +Xsed="sed -e s/^X//"
  1.2780 +
  1.2781 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.2782 +# if CDPATH is set.
  1.2783 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1.2784 +
  1.2785 +### BEGIN LIBTOOL CONFIG
  1.2786 +EOF
  1.2787 +  cfgfile="$ofile"
  1.2788 +  ;;
  1.2789 +
  1.2790 +*)
  1.2791 +  # Double-quote the variables that need it (for aesthetics).
  1.2792 +  for var in old_CC old_CFLAGS old_CPPFLAGS \
  1.2793 +    old_LD old_LDFLAGS old_LIBS \
  1.2794 +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
  1.2795 +    eval "$var=\\\"\$var\\\""
  1.2796 +  done
  1.2797 +
  1.2798 +  # Just create a config file.
  1.2799 +  cfgfile="$ofile.cfg"
  1.2800 +  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  1.2801 +  echo "creating $cfgfile"
  1.2802 +  $rm "$cfgfile"
  1.2803 +  cat <<EOF > "$cfgfile"
  1.2804 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file.
  1.2805 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  1.2806 +EOF
  1.2807 +  ;;
  1.2808 +esac
  1.2809 +
  1.2810 +cat <<EOF >> "$cfgfile"
  1.2811 +# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1.2812 +#
  1.2813 +# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
  1.2814 +# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
  1.2815 +# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
  1.2816 +# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
  1.2817 +#   $0$ltconfig_args
  1.2818 +#
  1.2819 +# Compiler and other test output produced by $progname, useful for
  1.2820 +# debugging $progname, is in ./config.log if it exists.
  1.2821 +
  1.2822 +# The version of $progname that generated this script.
  1.2823 +LTCONFIG_VERSION=$LTCONFIG_VERSION
  1.2824 +
  1.2825 +# Shell to use when invoking shell scripts.
  1.2826 +SHELL=$LTSHELL
  1.2827 +
  1.2828 +# Whether or not to build shared libraries.
  1.2829 +build_libtool_libs=$enable_shared
  1.2830 +
  1.2831 +# Whether or not to build static libraries.
  1.2832 +build_old_libs=$enable_static
  1.2833 +
  1.2834 +# Whether or not to optimize for fast installation.
  1.2835 +fast_install=$enable_fast_install
  1.2836 +
  1.2837 +# The host system.
  1.2838 +host_alias=$host_alias
  1.2839 +host=$host
  1.2840 +
  1.2841 +# An echo program that does not interpret backslashes.
  1.2842 +echo=$ltecho
  1.2843 +
  1.2844 +# The archiver.
  1.2845 +AR=$AR
  1.2846 +
  1.2847 +# The default C compiler.
  1.2848 +CC=$CC
  1.2849 +
  1.2850 +# The linker used to build libraries.
  1.2851 +LD=$LD
  1.2852 +
  1.2853 +# Whether we need hard or soft links.
  1.2854 +LN_S=$LN_S
  1.2855 +
  1.2856 +# A BSD-compatible nm program.
  1.2857 +NM=$NM
  1.2858 +
  1.2859 +# Used on cygwin: DLL creation program.
  1.2860 +DLLTOOL="$DLLTOOL"
  1.2861 +
  1.2862 +# Used on cygwin: object dumper.
  1.2863 +OBJDUMP="$OBJDUMP"
  1.2864 +
  1.2865 +# Used on cygwin: assembler.
  1.2866 +AS="$AS"
  1.2867 +
  1.2868 +# The name of the directory that contains temporary libtool files.
  1.2869 +objdir=$objdir
  1.2870 +
  1.2871 +# How to create reloadable object files.
  1.2872 +reload_flag=$reload_flag
  1.2873 +reload_cmds=$reload_cmds
  1.2874 +
  1.2875 +# How to pass a linker flag through the compiler.
  1.2876 +wl=$wl
  1.2877 +
  1.2878 +# Object file suffix (normally "o").
  1.2879 +objext="$objext"
  1.2880 +
  1.2881 +# Old archive suffix (normally "a").
  1.2882 +libext="$libext"
  1.2883 +
  1.2884 +# Executable file suffix (normally "").
  1.2885 +exeext="$exeext"
  1.2886 +
  1.2887 +# Additional compiler flags for building library objects.
  1.2888 +pic_flag=$pic_flag
  1.2889 +
  1.2890 +# Does compiler simultaneously support -c and -o options?
  1.2891 +compiler_c_o=$compiler_c_o
  1.2892 +
  1.2893 +# Can we write directly to a .lo ?
  1.2894 +compiler_o_lo=$compiler_o_lo
  1.2895 +
  1.2896 +# Must we lock files when doing compilation ?
  1.2897 +need_locks=$need_locks
  1.2898 +
  1.2899 +# Do we need the lib prefix for modules?
  1.2900 +need_lib_prefix=$need_lib_prefix
  1.2901 +
  1.2902 +# Do we need a version for libraries?
  1.2903 +need_version=$need_version
  1.2904 +
  1.2905 +# Whether dlopen is supported.
  1.2906 +dlopen=$enable_dlopen
  1.2907 +
  1.2908 +# Whether dlopen of programs is supported.
  1.2909 +dlopen_self=$enable_dlopen_self
  1.2910 +
  1.2911 +# Whether dlopen of statically linked programs is supported.
  1.2912 +dlopen_self_static=$enable_dlopen_self_static
  1.2913 +
  1.2914 +# Compiler flag to prevent dynamic linking.
  1.2915 +link_static_flag=$link_static_flag
  1.2916 +
  1.2917 +# Compiler flag to turn off builtin functions.
  1.2918 +no_builtin_flag=$no_builtin_flag
  1.2919 +
  1.2920 +# Compiler flag to allow reflexive dlopens.
  1.2921 +export_dynamic_flag_spec=$export_dynamic_flag_spec
  1.2922 +
  1.2923 +# Compiler flag to generate shared objects directly from archives.
  1.2924 +whole_archive_flag_spec=$whole_archive_flag_spec
  1.2925 +
  1.2926 +# Compiler flag to generate thread-safe objects.
  1.2927 +thread_safe_flag_spec=$thread_safe_flag_spec
  1.2928 +
  1.2929 +# Library versioning type.
  1.2930 +version_type=$version_type
  1.2931 +
  1.2932 +# Format of library name prefix.
  1.2933 +libname_spec=$libname_spec
  1.2934 +
  1.2935 +# List of archive names.  First name is the real one, the rest are links.
  1.2936 +# The last name is the one that the linker finds with -lNAME.
  1.2937 +library_names_spec=$library_names_spec
  1.2938 +
  1.2939 +# The coded name of the library, if different from the real name.
  1.2940 +soname_spec=$soname_spec
  1.2941 +
  1.2942 +# Commands used to build and install an old-style archive.
  1.2943 +RANLIB=$RANLIB
  1.2944 +old_archive_cmds=$old_archive_cmds
  1.2945 +old_postinstall_cmds=$old_postinstall_cmds
  1.2946 +old_postuninstall_cmds=$old_postuninstall_cmds
  1.2947 +
  1.2948 +# Create an old-style archive from a shared archive.
  1.2949 +old_archive_from_new_cmds=$old_archive_from_new_cmds
  1.2950 +
  1.2951 +# Commands used to build and install a shared archive.
  1.2952 +archive_cmds=$archive_cmds
  1.2953 +archive_expsym_cmds=$archive_expsym_cmds
  1.2954 +postinstall_cmds=$postinstall_cmds
  1.2955 +postuninstall_cmds=$postuninstall_cmds
  1.2956 +
  1.2957 +# Method to check whether dependent libraries are shared objects.
  1.2958 +deplibs_check_method=$deplibs_check_method
  1.2959 +
  1.2960 +# Command to use when deplibs_check_method == file_magic.
  1.2961 +file_magic_cmd=$file_magic_cmd
  1.2962 +
  1.2963 +# Flag that allows shared libraries with undefined symbols to be built.
  1.2964 +allow_undefined_flag=$allow_undefined_flag
  1.2965 +
  1.2966 +# Flag that forces no undefined symbols.
  1.2967 +no_undefined_flag=$no_undefined_flag
  1.2968 +
  1.2969 +# Commands used to finish a libtool library installation in a directory.
  1.2970 +finish_cmds=$finish_cmds
  1.2971 +
  1.2972 +# Same as above, but a single script fragment to be evaled but not shown.
  1.2973 +finish_eval=$finish_eval
  1.2974 +
  1.2975 +# Take the output of nm and produce a listing of raw symbols and C names.
  1.2976 +global_symbol_pipe=$global_symbol_pipe
  1.2977 +
  1.2978 +# Transform the output of nm in a proper C declaration
  1.2979 +global_symbol_to_cdecl=$global_symbol_to_cdecl
  1.2980 +
  1.2981 +# This is the shared library runtime path variable.
  1.2982 +runpath_var=$runpath_var
  1.2983 +
  1.2984 +# This is the shared library path variable.
  1.2985 +shlibpath_var=$shlibpath_var
  1.2986 +
  1.2987 +# Is shlibpath searched before the hard-coded library search path?
  1.2988 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  1.2989 +
  1.2990 +# How to hardcode a shared library path into an executable.
  1.2991 +hardcode_action=$hardcode_action
  1.2992 +
  1.2993 +# Flag to hardcode \$libdir into a binary during linking.
  1.2994 +# This must work even if \$libdir does not exist.
  1.2995 +hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
  1.2996 +
  1.2997 +# Whether we need a single -rpath flag with a separated argument.
  1.2998 +hardcode_libdir_separator=$hardcode_libdir_separator
  1.2999 +
  1.3000 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  1.3001 +# resulting binary.
  1.3002 +hardcode_direct=$hardcode_direct
  1.3003 +
  1.3004 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  1.3005 +# resulting binary.
  1.3006 +hardcode_minus_L=$hardcode_minus_L
  1.3007 +
  1.3008 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  1.3009 +# the resulting binary.
  1.3010 +hardcode_shlibpath_var=$hardcode_shlibpath_var
  1.3011 +
  1.3012 +# Compile-time system search path for libraries
  1.3013 +sys_lib_search_path_spec=$sys_lib_search_path_spec
  1.3014 +
  1.3015 +# Run-time system search path for libraries
  1.3016 +sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
  1.3017 +
  1.3018 +# Fix the shell variable \$srcfile for the compiler.
  1.3019 +fix_srcfile_path="$fix_srcfile_path"
  1.3020 +
  1.3021 +# Set to yes if exported symbols are required.
  1.3022 +always_export_symbols=$always_export_symbols
  1.3023 +
  1.3024 +# The commands to list exported symbols.
  1.3025 +export_symbols_cmds=$export_symbols_cmds
  1.3026 +
  1.3027 +# Symbols that should not be listed in the preloaded symbols.
  1.3028 +exclude_expsyms=$exclude_expsyms
  1.3029 +
  1.3030 +# Symbols that must always be exported.
  1.3031 +include_expsyms=$include_expsyms
  1.3032 +
  1.3033 +EOF
  1.3034 +
  1.3035 +case "$ltmain" in
  1.3036 +*.sh)
  1.3037 +  echo '### END LIBTOOL CONFIG' >> "$ofile"
  1.3038 +  echo >> "$ofile"
  1.3039 +  case "$host_os" in
  1.3040 +  aix3*)
  1.3041 +    cat <<\EOF >> "$ofile"
  1.3042 +
  1.3043 +# AIX sometimes has problems with the GCC collect2 program.  For some
  1.3044 +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1.3045 +# vanish in a puff of smoke.
  1.3046 +if test "X${COLLECT_NAMES+set}" != Xset; then
  1.3047 +  COLLECT_NAMES=
  1.3048 +  export COLLECT_NAMES
  1.3049 +fi
  1.3050 +EOF
  1.3051 +    ;;
  1.3052 +  esac
  1.3053 +
  1.3054 +  # Append the ltmain.sh script.
  1.3055 +  sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
  1.3056 +  # We use sed instead of cat because bash on DJGPP gets confused if
  1.3057 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  1.3058 +  # text mode, it properly converts lines to CR/LF.  This bash problem
  1.3059 +  # is reportedly fixed, but why not run on old versions too?
  1.3060 +
  1.3061 +  chmod +x "$ofile"
  1.3062 +  ;;
  1.3063 +
  1.3064 +*)
  1.3065 +  # Compile the libtool program.
  1.3066 +  echo "FIXME: would compile $ltmain"
  1.3067 +  ;;
  1.3068 +esac
  1.3069 +
  1.3070 +test -n "$cache_file" || exit 0
  1.3071 +
  1.3072 +# AC_CACHE_SAVE
  1.3073 +trap '' 1 2 15
  1.3074 +cat > confcache <<\EOF
  1.3075 +# This file is a shell script that caches the results of configure
  1.3076 +# tests run on this system so they can be shared between configure
  1.3077 +# scripts and configure runs.  It is not useful on other systems.
  1.3078 +# If it contains results you don't want to keep, you may remove or edit it.
  1.3079 +#
  1.3080 +# By default, configure uses ./config.cache as the cache file,
  1.3081 +# creating it if it does not exist already.  You can give configure
  1.3082 +# the --cache-file=FILE option to use a different cache file; that is
  1.3083 +# what configure does when it calls configure scripts in
  1.3084 +# subdirectories, so they share the cache.
  1.3085 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  1.3086 +# config.status only pays attention to the cache file if you give it the
  1.3087 +# --recheck option to rerun configure.
  1.3088 +#
  1.3089 +EOF
  1.3090 +# The following way of writing the cache mishandles newlines in values,
  1.3091 +# but we know of no workaround that is simple, portable, and efficient.
  1.3092 +# So, don't put newlines in cache variables' values.
  1.3093 +# Ultrix sh set writes to stderr and can't be redirected directly,
  1.3094 +# and sets the high bit in the cache file unless we assign to the vars.
  1.3095 +(set) 2>&1 |
  1.3096 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1.3097 +  *ac_space=\ *)
  1.3098 +    # `set' does not quote correctly, so add quotes (double-quote substitution
  1.3099 +    # turns \\\\ into \\, and sed turns \\ into \).
  1.3100 +    sed -n \
  1.3101 +      -e "s/'/'\\\\''/g" \
  1.3102 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1.3103 +    ;;
  1.3104 +  *)
  1.3105 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
  1.3106 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1.3107 +    ;;
  1.3108 +  esac >> confcache
  1.3109 +if cmp -s $cache_file confcache; then
  1.3110 +  :
  1.3111 +else
  1.3112 +  if test -w $cache_file; then
  1.3113 +    echo "updating cache $cache_file"
  1.3114 +    cat confcache > $cache_file
  1.3115 +  else
  1.3116 +    echo "not updating unwritable cache $cache_file"
  1.3117 +  fi
  1.3118 +fi
  1.3119 +rm -f confcache
  1.3120 +
  1.3121 +exit 0
  1.3122 +
  1.3123 +# Local Variables:
  1.3124 +# mode:shell-script
  1.3125 +# sh-indentation:2
  1.3126 +# End: