acinclude/libtool.m4
changeset 6442 2d3caa191dc4
parent 5100 cce11d33d5c6
child 6447 33f87072db4d
     1.1 --- a/acinclude/libtool.m4	Wed Sep 19 18:08:37 2012 -0700
     1.2 +++ b/acinclude/libtool.m4	Thu Sep 20 21:13:10 2012 -0700
     1.3 @@ -1,9 +1,10 @@
     1.4  ##############################################################################
     1.5 -# Based on libtool-2.2.6a
     1.6 +# Based on libtool-2.4.2
     1.7  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
     1.8  #
     1.9  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.10 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.11 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.12 +#                 Foundation, Inc.
    1.13  #   Written by Gordon Matzigkeit, 1996
    1.14  #
    1.15  # This file is free software; the Free Software Foundation gives
    1.16 @@ -12,7 +13,8 @@
    1.17  
    1.18  m4_define([_LT_COPYING], [dnl
    1.19  #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.20 -#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.21 +#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
    1.22 +#                 Foundation, Inc.
    1.23  #   Written by Gordon Matzigkeit, 1996
    1.24  #
    1.25  #   This file is part of GNU Libtool.
    1.26 @@ -39,7 +41,7 @@
    1.27  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    1.28  ])
    1.29  
    1.30 -# serial 56 LT_INIT
    1.31 +# serial 57 LT_INIT
    1.32  
    1.33  
    1.34  # LT_PREREQ(VERSION)
    1.35 @@ -68,6 +70,7 @@
    1.36  # ------------------
    1.37  AC_DEFUN([LT_INIT],
    1.38  [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    1.39 +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    1.40  AC_BEFORE([$0], [LT_LANG])dnl
    1.41  AC_BEFORE([$0], [LT_OUTPUT])dnl
    1.42  AC_BEFORE([$0], [LTDL_INIT])dnl
    1.43 @@ -84,6 +87,8 @@
    1.44  AC_REQUIRE([LTOBSOLETE_VERSION])dnl
    1.45  m4_require([_LT_PROG_LTMAIN])dnl
    1.46  
    1.47 +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
    1.48 +
    1.49  dnl Parse OPTIONS
    1.50  _LT_SET_OPTIONS([$0], [$1])
    1.51  
    1.52 @@ -120,7 +125,7 @@
    1.53      *) break;;
    1.54    esac
    1.55  done
    1.56 -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
    1.57 +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    1.58  ])
    1.59  
    1.60  
    1.61 @@ -140,6 +145,11 @@
    1.62  m4_defun([_LT_SETUP],
    1.63  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
    1.64  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
    1.65 +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
    1.66 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    1.67 +
    1.68 +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
    1.69 +dnl
    1.70  _LT_DECL([], [host_alias], [0], [The host system])dnl
    1.71  _LT_DECL([], [host], [0])dnl
    1.72  _LT_DECL([], [host_os], [0])dnl
    1.73 @@ -162,10 +172,13 @@
    1.74  dnl
    1.75  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    1.76  m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    1.77 +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
    1.78  m4_require([_LT_CMD_RELOAD])dnl
    1.79  m4_require([_LT_CHECK_MAGIC_METHOD])dnl
    1.80 +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
    1.81  m4_require([_LT_CMD_OLD_ARCHIVE])dnl
    1.82  m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    1.83 +m4_require([_LT_WITH_SYSROOT])dnl
    1.84  
    1.85  _LT_CONFIG_LIBTOOL_INIT([
    1.86  # See if we are running on zsh, and set the options which allow our
    1.87 @@ -181,7 +194,6 @@
    1.88  _LT_CHECK_OBJDIR
    1.89  
    1.90  m4_require([_LT_TAG_COMPILER])dnl
    1.91 -_LT_PROG_ECHO_BACKSLASH
    1.92  
    1.93  case $host_os in
    1.94  aix3*)
    1.95 @@ -195,23 +207,6 @@
    1.96    ;;
    1.97  esac
    1.98  
    1.99 -# Sed substitution that helps us do robust quoting.  It backslashifies
   1.100 -# metacharacters that are still active within double-quoted strings.
   1.101 -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.102 -
   1.103 -# Same as above, but do not quote variable references.
   1.104 -double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.105 -
   1.106 -# Sed substitution to delay expansion of an escaped shell variable in a
   1.107 -# double_quote_subst'ed string.
   1.108 -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.109 -
   1.110 -# Sed substitution to delay expansion of an escaped single quote.
   1.111 -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.112 -
   1.113 -# Sed substitution to avoid accidental globbing in evaled expressions
   1.114 -no_glob_subst='s/\*/\\\*/g'
   1.115 -
   1.116  # Global variables:
   1.117  ofile=libtool
   1.118  can_build_shared=yes
   1.119 @@ -252,6 +247,28 @@
   1.120  ])# _LT_SETUP
   1.121  
   1.122  
   1.123 +# _LT_PREPARE_SED_QUOTE_VARS
   1.124 +# --------------------------
   1.125 +# Define a few sed substitution that help us do robust quoting.
   1.126 +m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
   1.127 +[# Backslashify metacharacters that are still active within
   1.128 +# double-quoted strings.
   1.129 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.130 +
   1.131 +# Same as above, but do not quote variable references.
   1.132 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.133 +
   1.134 +# Sed substitution to delay expansion of an escaped shell variable in a
   1.135 +# double_quote_subst'ed string.
   1.136 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.137 +
   1.138 +# Sed substitution to delay expansion of an escaped single quote.
   1.139 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.140 +
   1.141 +# Sed substitution to avoid accidental globbing in evaled expressions
   1.142 +no_glob_subst='s/\*/\\\*/g'
   1.143 +])
   1.144 +
   1.145  # _LT_PROG_LTMAIN
   1.146  # ---------------
   1.147  # Note that this code is called both from `configure', and `config.status'
   1.148 @@ -410,7 +427,7 @@
   1.149  # declaration there will have the same value as in `configure'.  VARNAME
   1.150  # must have a single quote delimited value for this to work.
   1.151  m4_define([_LT_CONFIG_STATUS_DECLARE],
   1.152 -[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
   1.153 +[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
   1.154  
   1.155  
   1.156  # _LT_CONFIG_STATUS_DECLARATIONS
   1.157 @@ -420,7 +437,7 @@
   1.158  # embedded single quotes properly.  In configure, this macro expands
   1.159  # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   1.160  #
   1.161 -#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
   1.162 +#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
   1.163  m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   1.164  [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   1.165      [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   1.166 @@ -519,12 +536,20 @@
   1.167  LTCFLAGS='$LTCFLAGS'
   1.168  compiler='$compiler_DEFAULT'
   1.169  
   1.170 +# A function that is used when there is no print builtin or printf.
   1.171 +func_fallback_echo ()
   1.172 +{
   1.173 +  eval 'cat <<_LTECHO_EOF
   1.174 +\$[]1
   1.175 +_LTECHO_EOF'
   1.176 +}
   1.177 +
   1.178  # Quote evaled strings.
   1.179  for var in lt_decl_all_varnames([[ \
   1.180  ]], lt_decl_quote_varnames); do
   1.181 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.182 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.183      *[[\\\\\\\`\\"\\\$]]*)
   1.184 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.185 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.186        ;;
   1.187      *)
   1.188        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.189 @@ -535,9 +560,9 @@
   1.190  # Double-quote double-evaled strings.
   1.191  for var in lt_decl_all_varnames([[ \
   1.192  ]], lt_decl_dquote_varnames); do
   1.193 -    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.194 +    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
   1.195      *[[\\\\\\\`\\"\\\$]]*)
   1.196 -      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.197 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.198        ;;
   1.199      *)
   1.200        eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.201 @@ -545,16 +570,38 @@
   1.202      esac
   1.203  done
   1.204  
   1.205 -# Fix-up fallback echo if it was mangled by the above quoting rules.
   1.206 -case \$lt_ECHO in
   1.207 -*'\\\[$]0 --fallback-echo"')dnl "
   1.208 -  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
   1.209 -  ;;
   1.210 -esac
   1.211 -
   1.212  _LT_OUTPUT_LIBTOOL_INIT
   1.213  ])
   1.214  
   1.215 +# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
   1.216 +# ------------------------------------
   1.217 +# Generate a child script FILE with all initialization necessary to
   1.218 +# reuse the environment learned by the parent script, and make the
   1.219 +# file executable.  If COMMENT is supplied, it is inserted after the
   1.220 +# `#!' sequence but before initialization text begins.  After this
   1.221 +# macro, additional text can be appended to FILE to form the body of
   1.222 +# the child script.  The macro ends with non-zero status if the
   1.223 +# file could not be fully written (such as if the disk is full).
   1.224 +m4_ifdef([AS_INIT_GENERATED],
   1.225 +[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
   1.226 +[m4_defun([_LT_GENERATED_FILE_INIT],
   1.227 +[m4_require([AS_PREPARE])]dnl
   1.228 +[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
   1.229 +[lt_write_fail=0
   1.230 +cat >$1 <<_ASEOF || lt_write_fail=1
   1.231 +#! $SHELL
   1.232 +# Generated by $as_me.
   1.233 +$2
   1.234 +SHELL=\${CONFIG_SHELL-$SHELL}
   1.235 +export SHELL
   1.236 +_ASEOF
   1.237 +cat >>$1 <<\_ASEOF || lt_write_fail=1
   1.238 +AS_SHELL_SANITIZE
   1.239 +_AS_PREPARE
   1.240 +exec AS_MESSAGE_FD>&1
   1.241 +_ASEOF
   1.242 +test $lt_write_fail = 0 && chmod +x $1[]dnl
   1.243 +m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
   1.244  
   1.245  # LT_OUTPUT
   1.246  # ---------
   1.247 @@ -564,20 +611,11 @@
   1.248  AC_DEFUN([LT_OUTPUT],
   1.249  [: ${CONFIG_LT=./config.lt}
   1.250  AC_MSG_NOTICE([creating $CONFIG_LT])
   1.251 -cat >"$CONFIG_LT" <<_LTEOF
   1.252 -#! $SHELL
   1.253 -# Generated by $as_me.
   1.254 -# Run this file to recreate a libtool stub with the current configuration.
   1.255 -
   1.256 +_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
   1.257 +[# Run this file to recreate a libtool stub with the current configuration.])
   1.258 +
   1.259 +cat >>"$CONFIG_LT" <<\_LTEOF
   1.260  lt_cl_silent=false
   1.261 -SHELL=\${CONFIG_SHELL-$SHELL}
   1.262 -_LTEOF
   1.263 -
   1.264 -cat >>"$CONFIG_LT" <<\_LTEOF
   1.265 -AS_SHELL_SANITIZE
   1.266 -_AS_PREPARE
   1.267 -
   1.268 -exec AS_MESSAGE_FD>&1
   1.269  exec AS_MESSAGE_LOG_FD>>config.log
   1.270  {
   1.271    echo
   1.272 @@ -603,7 +641,7 @@
   1.273  m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   1.274  configured by $[0], generated by m4_PACKAGE_STRING.
   1.275  
   1.276 -Copyright (C) 2008 Free Software Foundation, Inc.
   1.277 +Copyright (C) 2011 Free Software Foundation, Inc.
   1.278  This config.lt script is free software; the Free Software Foundation
   1.279  gives unlimited permision to copy, distribute and modify it."
   1.280  
   1.281 @@ -648,15 +686,13 @@
   1.282  # appending to config.log, which fails on DOS, as config.log is still kept
   1.283  # open by configure.  Here we exec the FD to /dev/null, effectively closing
   1.284  # config.log, so it can be properly (re)opened and appended to by config.lt.
   1.285 -if test "$no_create" != yes; then
   1.286 -  lt_cl_success=:
   1.287 -  test "$silent" = yes &&
   1.288 -    lt_config_lt_args="$lt_config_lt_args --quiet"
   1.289 -  exec AS_MESSAGE_LOG_FD>/dev/null
   1.290 -  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.291 -  exec AS_MESSAGE_LOG_FD>>config.log
   1.292 -  $lt_cl_success || AS_EXIT(1)
   1.293 -fi
   1.294 +lt_cl_success=:
   1.295 +test "$silent" = yes &&
   1.296 +  lt_config_lt_args="$lt_config_lt_args --quiet"
   1.297 +exec AS_MESSAGE_LOG_FD>/dev/null
   1.298 +$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.299 +exec AS_MESSAGE_LOG_FD>>config.log
   1.300 +$lt_cl_success || AS_EXIT(1)
   1.301  ])# LT_OUTPUT
   1.302  
   1.303  
   1.304 @@ -719,15 +755,12 @@
   1.305    # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   1.306    # text mode, it properly converts lines to CR/LF.  This bash problem
   1.307    # is reportedly fixed, but why not run on old versions too?
   1.308 -  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
   1.309 -    || (rm -f "$cfgfile"; exit 1)
   1.310 -
   1.311 -  _LT_PROG_XSI_SHELLFNS
   1.312 -
   1.313 -  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
   1.314 -    || (rm -f "$cfgfile"; exit 1)
   1.315 -
   1.316 -  mv -f "$cfgfile" "$ofile" ||
   1.317 +  sed '$q' "$ltmain" >> "$cfgfile" \
   1.318 +     || (rm -f "$cfgfile"; exit 1)
   1.319 +
   1.320 +  _LT_PROG_REPLACE_SHELLFNS
   1.321 +
   1.322 +   mv -f "$cfgfile" "$ofile" ||
   1.323      (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   1.324    chmod +x "$ofile"
   1.325  ],
   1.326 @@ -772,6 +805,7 @@
   1.327  m4_case([$1],
   1.328    [C],			[_LT_LANG(C)],
   1.329    [C++],		[_LT_LANG(CXX)],
   1.330 +  [Go],			[_LT_LANG(GO)],
   1.331    [Java],		[_LT_LANG(GCJ)],
   1.332    [Fortran 77],		[_LT_LANG(F77)],
   1.333    [Fortran],		[_LT_LANG(FC)],
   1.334 @@ -793,6 +827,31 @@
   1.335  ])# _LT_LANG
   1.336  
   1.337  
   1.338 +m4_ifndef([AC_PROG_GO], [
   1.339 +############################################################
   1.340 +# NOTE: This macro has been submitted for inclusion into   #
   1.341 +#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
   1.342 +#  a released version of Autoconf we should remove this    #
   1.343 +#  macro and use it instead.                               #
   1.344 +############################################################
   1.345 +m4_defun([AC_PROG_GO],
   1.346 +[AC_LANG_PUSH(Go)dnl
   1.347 +AC_ARG_VAR([GOC],     [Go compiler command])dnl
   1.348 +AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
   1.349 +_AC_ARG_VAR_LDFLAGS()dnl
   1.350 +AC_CHECK_TOOL(GOC, gccgo)
   1.351 +if test -z "$GOC"; then
   1.352 +  if test -n "$ac_tool_prefix"; then
   1.353 +    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
   1.354 +  fi
   1.355 +fi
   1.356 +if test -z "$GOC"; then
   1.357 +  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
   1.358 +fi
   1.359 +])#m4_defun
   1.360 +])#m4_ifndef
   1.361 +
   1.362 +
   1.363  # _LT_LANG_DEFAULT_CONFIG
   1.364  # -----------------------
   1.365  m4_defun([_LT_LANG_DEFAULT_CONFIG],
   1.366 @@ -823,6 +882,10 @@
   1.367         m4_ifdef([LT_PROG_GCJ],
   1.368  	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   1.369  
   1.370 +AC_PROVIDE_IFELSE([AC_PROG_GO],
   1.371 +  [LT_LANG(GO)],
   1.372 +  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
   1.373 +
   1.374  AC_PROVIDE_IFELSE([LT_PROG_RC],
   1.375    [LT_LANG(RC)],
   1.376    [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   1.377 @@ -833,11 +896,13 @@
   1.378  AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   1.379  AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   1.380  AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   1.381 +AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
   1.382  dnl aclocal-1.4 backwards compatibility:
   1.383  dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   1.384  dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   1.385  dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   1.386  dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   1.387 +dnl AC_DEFUN([AC_LIBTOOL_RC], [])
   1.388  
   1.389  
   1.390  # _LT_TAG_COMPILER
   1.391 @@ -923,7 +988,13 @@
   1.392  	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
   1.393  	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
   1.394          _lt_result=$?
   1.395 -	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
   1.396 +	# If there is a non-empty error log, and "single_module"
   1.397 +	# appears in it, assume the flag caused a linker warning
   1.398 +        if test -s conftest.err && $GREP single_module conftest.err; then
   1.399 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.400 +	# Otherwise, if the output was created with a 0 exit code from
   1.401 +	# the compiler, it worked.
   1.402 +	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
   1.403  	  lt_cv_apple_cc_single_mod=yes
   1.404  	else
   1.405  	  cat conftest.err >&AS_MESSAGE_LOG_FD
   1.406 @@ -931,6 +1002,7 @@
   1.407  	rm -rf libconftest.dylib*
   1.408  	rm -f conftest.*
   1.409        fi])
   1.410 +
   1.411      AC_CACHE_CHECK([for -exported_symbols_list linker flag],
   1.412        [lt_cv_ld_exported_symbols_list],
   1.413        [lt_cv_ld_exported_symbols_list=no
   1.414 @@ -942,6 +1014,34 @@
   1.415  	[lt_cv_ld_exported_symbols_list=no])
   1.416  	LDFLAGS="$save_LDFLAGS"
   1.417      ])
   1.418 +
   1.419 +    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
   1.420 +      [lt_cv_ld_force_load=no
   1.421 +      cat > conftest.c << _LT_EOF
   1.422 +int forced_loaded() { return 2;}
   1.423 +_LT_EOF
   1.424 +      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
   1.425 +      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
   1.426 +      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
   1.427 +      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
   1.428 +      echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
   1.429 +      $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
   1.430 +      cat > conftest.c << _LT_EOF
   1.431 +int main() { return 0;}
   1.432 +_LT_EOF
   1.433 +      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
   1.434 +      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
   1.435 +      _lt_result=$?
   1.436 +      if test -s conftest.err && $GREP force_load conftest.err; then
   1.437 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.438 +      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
   1.439 +	lt_cv_ld_force_load=yes
   1.440 +      else
   1.441 +	cat conftest.err >&AS_MESSAGE_LOG_FD
   1.442 +      fi
   1.443 +        rm -f conftest.err libconftest.a conftest conftest.c
   1.444 +        rm -rf conftest.dSYM
   1.445 +    ])
   1.446      case $host_os in
   1.447      rhapsody* | darwin1.[[012]])
   1.448        _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
   1.449 @@ -969,7 +1069,7 @@
   1.450      else
   1.451        _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
   1.452      fi
   1.453 -    if test "$DSYMUTIL" != ":"; then
   1.454 +    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
   1.455        _lt_dsymutil='~$DSYMUTIL $lib || :'
   1.456      else
   1.457        _lt_dsymutil=
   1.458 @@ -979,8 +1079,8 @@
   1.459  ])
   1.460  
   1.461  
   1.462 -# _LT_DARWIN_LINKER_FEATURES
   1.463 -# --------------------------
   1.464 +# _LT_DARWIN_LINKER_FEATURES([TAG])
   1.465 +# ---------------------------------
   1.466  # Checks for linker and compiler features on darwin
   1.467  m4_defun([_LT_DARWIN_LINKER_FEATURES],
   1.468  [
   1.469 @@ -989,7 +1089,13 @@
   1.470    _LT_TAGVAR(hardcode_direct, $1)=no
   1.471    _LT_TAGVAR(hardcode_automatic, $1)=yes
   1.472    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
   1.473 -  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.474 +  if test "$lt_cv_ld_force_load" = "yes"; then
   1.475 +    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
   1.476 +    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
   1.477 +                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
   1.478 +  else
   1.479 +    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   1.480 +  fi
   1.481    _LT_TAGVAR(link_all_deplibs, $1)=yes
   1.482    _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
   1.483    case $cc_basename in
   1.484 @@ -997,7 +1103,7 @@
   1.485       *) _lt_dar_can_shared=$GCC ;;
   1.486    esac
   1.487    if test "$_lt_dar_can_shared" = "yes"; then
   1.488 -    output_verbose_link_cmd=echo
   1.489 +    output_verbose_link_cmd=func_echo_all
   1.490      _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
   1.491      _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
   1.492      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
   1.493 @@ -1013,203 +1119,142 @@
   1.494    fi
   1.495  ])
   1.496  
   1.497 -# _LT_SYS_MODULE_PATH_AIX
   1.498 -# -----------------------
   1.499 +# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
   1.500 +# ----------------------------------
   1.501  # Links a minimal program and checks the executable
   1.502  # for the system default hardcoded library path. In most cases,
   1.503  # this is /usr/lib:/lib, but when the MPI compilers are used
   1.504  # the location of the communication and MPI libs are included too.
   1.505  # If we don't find anything, use the default library path according
   1.506  # to the aix ld manual.
   1.507 +# Store the results from the different compilers for each TAGNAME.
   1.508 +# Allow to override them for all tags through lt_cv_aix_libpath.
   1.509  m4_defun([_LT_SYS_MODULE_PATH_AIX],
   1.510  [m4_require([_LT_DECL_SED])dnl
   1.511 -AC_LINK_IFELSE(AC_LANG_PROGRAM,[
   1.512 -lt_aix_libpath_sed='
   1.513 -    /Import File Strings/,/^$/ {
   1.514 -	/^0/ {
   1.515 -	    s/^0  *\(.*\)$/\1/
   1.516 -	    p
   1.517 -	}
   1.518 -    }'
   1.519 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.520 -# Check for a 64-bit object if we didn't find anything.
   1.521 -if test -z "$aix_libpath"; then
   1.522 -  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.523 -fi],[])
   1.524 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
   1.525 +if test "${lt_cv_aix_libpath+set}" = set; then
   1.526 +  aix_libpath=$lt_cv_aix_libpath
   1.527 +else
   1.528 +  AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
   1.529 +  [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
   1.530 +  lt_aix_libpath_sed='[
   1.531 +      /Import File Strings/,/^$/ {
   1.532 +	  /^0/ {
   1.533 +	      s/^0  *\([^ ]*\) *$/\1/
   1.534 +	      p
   1.535 +	  }
   1.536 +      }]'
   1.537 +  _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.538 +  # Check for a 64-bit object if we didn't find anything.
   1.539 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.540 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
   1.541 +  fi],[])
   1.542 +  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
   1.543 +    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
   1.544 +  fi
   1.545 +  ])
   1.546 +  aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
   1.547 +fi
   1.548  ])# _LT_SYS_MODULE_PATH_AIX
   1.549  
   1.550  
   1.551  # _LT_SHELL_INIT(ARG)
   1.552  # -------------------
   1.553  m4_define([_LT_SHELL_INIT],
   1.554 -[ifdef([AC_DIVERSION_NOTICE],
   1.555 -	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
   1.556 -	 [AC_DIVERT_PUSH(NOTICE)])
   1.557 -$1
   1.558 -AC_DIVERT_POP
   1.559 -])# _LT_SHELL_INIT
   1.560 +[m4_divert_text([M4SH-INIT], [$1
   1.561 +])])# _LT_SHELL_INIT
   1.562 +
   1.563  
   1.564  
   1.565  # _LT_PROG_ECHO_BACKSLASH
   1.566  # -----------------------
   1.567 -# Add some code to the start of the generated configure script which
   1.568 -# will find an echo command which doesn't interpret backslashes.
   1.569 +# Find how we can fake an echo command that does not interpret backslash.
   1.570 +# In particular, with Autoconf 2.60 or later we add some code to the start
   1.571 +# of the generated configure script which will find a shell with a builtin
   1.572 +# printf (which we can use as an echo command).
   1.573  m4_defun([_LT_PROG_ECHO_BACKSLASH],
   1.574 -[_LT_SHELL_INIT([
   1.575 -# Check that we are running under the correct shell.
   1.576 -SHELL=${CONFIG_SHELL-/bin/sh}
   1.577 -
   1.578 -case X$lt_ECHO in
   1.579 -X*--fallback-echo)
   1.580 -  # Remove one level of quotation (which was required for Make).
   1.581 -  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
   1.582 -  ;;
   1.583 +[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.584 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.585 +ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.586 +
   1.587 +AC_MSG_CHECKING([how to print strings])
   1.588 +# Test print first, because it will be a builtin if present.
   1.589 +if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
   1.590 +   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.591 +  ECHO='print -r --'
   1.592 +elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
   1.593 +  ECHO='printf %s\n'
   1.594 +else
   1.595 +  # Use this function as a fallback that always works.
   1.596 +  func_fallback_echo ()
   1.597 +  {
   1.598 +    eval 'cat <<_LTECHO_EOF
   1.599 +$[]1
   1.600 +_LTECHO_EOF'
   1.601 +  }
   1.602 +  ECHO='func_fallback_echo'
   1.603 +fi
   1.604 +
   1.605 +# func_echo_all arg...
   1.606 +# Invoke $ECHO with all args, space-separated.
   1.607 +func_echo_all ()
   1.608 +{
   1.609 +    $ECHO "$*" 
   1.610 +}
   1.611 +
   1.612 +case "$ECHO" in
   1.613 +  printf*) AC_MSG_RESULT([printf]) ;;
   1.614 +  print*) AC_MSG_RESULT([print -r]) ;;
   1.615 +  *) AC_MSG_RESULT([cat]) ;;
   1.616  esac
   1.617  
   1.618 -ECHO=${lt_ECHO-echo}
   1.619 -if test "X[$]1" = X--no-reexec; then
   1.620 -  # Discard the --no-reexec flag, and continue.
   1.621 -  shift
   1.622 -elif test "X[$]1" = X--fallback-echo; then
   1.623 -  # Avoid inline document here, it may be left over
   1.624 -  :
   1.625 -elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
   1.626 -  # Yippee, $ECHO works!
   1.627 -  :
   1.628 -else
   1.629 -  # Restart under the correct shell.
   1.630 -  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.631 -fi
   1.632 -
   1.633 -if test "X[$]1" = X--fallback-echo; then
   1.634 -  # used as fallback echo
   1.635 -  shift
   1.636 -  cat <<_LT_EOF
   1.637 -[$]*
   1.638 -_LT_EOF
   1.639 -  exit 0
   1.640 -fi
   1.641 -
   1.642 -# The HP-UX ksh and POSIX shell print the target directory to stdout
   1.643 -# if CDPATH is set.
   1.644 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.645 -
   1.646 -if test -z "$lt_ECHO"; then
   1.647 -  if test "X${echo_test_string+set}" != Xset; then
   1.648 -    # find a string as large as possible, as long as the shell can cope with it
   1.649 -    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
   1.650 -      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   1.651 -      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
   1.652 -	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
   1.653 -      then
   1.654 -        break
   1.655 -      fi
   1.656 -    done
   1.657 -  fi
   1.658 -
   1.659 -  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.660 -     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.661 -     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.662 -    :
   1.663 -  else
   1.664 -    # The Solaris, AIX, and Digital Unix default echo programs unquote
   1.665 -    # backslashes.  This makes it impossible to quote backslashes using
   1.666 -    #   echo "$something" | sed 's/\\/\\\\/g'
   1.667 -    #
   1.668 -    # So, first we look for a working echo in the user's PATH.
   1.669 -
   1.670 -    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
   1.671 -    for dir in $PATH /usr/ucb; do
   1.672 -      IFS="$lt_save_ifs"
   1.673 -      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   1.674 -         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   1.675 -         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
   1.676 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.677 -        ECHO="$dir/echo"
   1.678 -        break
   1.679 -      fi
   1.680 -    done
   1.681 -    IFS="$lt_save_ifs"
   1.682 -
   1.683 -    if test "X$ECHO" = Xecho; then
   1.684 -      # We didn't find a better echo, so look for alternatives.
   1.685 -      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
   1.686 -         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
   1.687 -         test "X$echo_testing_string" = "X$echo_test_string"; then
   1.688 -        # This shell has a builtin print -r that does the trick.
   1.689 -        ECHO='print -r'
   1.690 -      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
   1.691 -	   test "X$CONFIG_SHELL" != X/bin/ksh; then
   1.692 -        # If we have ksh, try running configure again with it.
   1.693 -        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
   1.694 -        export ORIGINAL_CONFIG_SHELL
   1.695 -        CONFIG_SHELL=/bin/ksh
   1.696 -        export CONFIG_SHELL
   1.697 -        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
   1.698 -      else
   1.699 -        # Try using printf.
   1.700 -        ECHO='printf %s\n'
   1.701 -        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
   1.702 -	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
   1.703 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
   1.704 -	  # Cool, printf works
   1.705 -	  :
   1.706 -        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.707 -	     test "X$echo_testing_string" = 'X\t' &&
   1.708 -	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.709 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.710 -	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
   1.711 -	  export CONFIG_SHELL
   1.712 -	  SHELL="$CONFIG_SHELL"
   1.713 -	  export SHELL
   1.714 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.715 -        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
   1.716 -	     test "X$echo_testing_string" = 'X\t' &&
   1.717 -	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
   1.718 -	     test "X$echo_testing_string" = "X$echo_test_string"; then
   1.719 -	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
   1.720 -        else
   1.721 -	  # maybe with a smaller string...
   1.722 -	  prev=:
   1.723 -
   1.724 -	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
   1.725 -	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
   1.726 -	    then
   1.727 -	      break
   1.728 -	    fi
   1.729 -	    prev="$cmd"
   1.730 -	  done
   1.731 -
   1.732 -	  if test "$prev" != 'sed 50q "[$]0"'; then
   1.733 -	    echo_test_string=`eval $prev`
   1.734 -	    export echo_test_string
   1.735 -	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
   1.736 -	  else
   1.737 -	    # Oops.  We lost completely, so just stick with echo.
   1.738 -	    ECHO=echo
   1.739 -	  fi
   1.740 -        fi
   1.741 -      fi
   1.742 -    fi
   1.743 -  fi
   1.744 -fi
   1.745 -
   1.746 -# Copy echo and quote the copy suitably for passing to libtool from
   1.747 -# the Makefile, instead of quoting the original, which is used later.
   1.748 -lt_ECHO=$ECHO
   1.749 -if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
   1.750 -   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
   1.751 -fi
   1.752 -
   1.753 -AC_SUBST(lt_ECHO)
   1.754 -])
   1.755 +m4_ifdef([_AS_DETECT_SUGGESTED],
   1.756 +[_AS_DETECT_SUGGESTED([
   1.757 +  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
   1.758 +    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   1.759 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
   1.760 +    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
   1.761 +    PATH=/empty FPATH=/empty; export PATH FPATH
   1.762 +    test "X`printf %s $ECHO`" = "X$ECHO" \
   1.763 +      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
   1.764 +
   1.765  _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
   1.766 -_LT_DECL([], [ECHO], [1],
   1.767 -    [An echo program that does not interpret backslashes])
   1.768 +_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
   1.769  ])# _LT_PROG_ECHO_BACKSLASH
   1.770  
   1.771  
   1.772 +# _LT_WITH_SYSROOT
   1.773 +# ----------------
   1.774 +AC_DEFUN([_LT_WITH_SYSROOT],
   1.775 +[AC_MSG_CHECKING([for sysroot])
   1.776 +AC_ARG_WITH([sysroot],
   1.777 +[  --with-sysroot[=DIR] Search for dependent libraries within DIR
   1.778 +                        (or the compiler's sysroot if not specified).],
   1.779 +[], [with_sysroot=no])
   1.780 +
   1.781 +dnl lt_sysroot will always be passed unquoted.  We quote it here
   1.782 +dnl in case the user passed a directory name.
   1.783 +lt_sysroot=
   1.784 +case ${with_sysroot} in #(
   1.785 + yes)
   1.786 +   if test "$GCC" = yes; then
   1.787 +     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
   1.788 +   fi
   1.789 +   ;; #(
   1.790 + /*)
   1.791 +   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
   1.792 +   ;; #(
   1.793 + no|'')
   1.794 +   ;; #(
   1.795 + *)
   1.796 +   AC_MSG_RESULT([${with_sysroot}])
   1.797 +   AC_MSG_ERROR([The sysroot must be an absolute path.])
   1.798 +   ;;
   1.799 +esac
   1.800 +
   1.801 + AC_MSG_RESULT([${lt_sysroot:-no}])
   1.802 +_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
   1.803 +[dependent libraries, and in which our libraries should be installed.])])
   1.804 +
   1.805  # _LT_ENABLE_LOCK
   1.806  # ---------------
   1.807  m4_defun([_LT_ENABLE_LOCK],
   1.808 @@ -1238,7 +1283,7 @@
   1.809    ;;
   1.810  *-*-irix6*)
   1.811    # Find out which ABI we are using.
   1.812 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   1.813 +  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
   1.814    if AC_TRY_EVAL(ac_compile); then
   1.815      if test "$lt_cv_prog_gnu_ld" = yes; then
   1.816        case `/usr/bin/file conftest.$ac_objext` in
   1.817 @@ -1331,14 +1376,27 @@
   1.818      CFLAGS="$SAVE_CFLAGS"
   1.819    fi
   1.820    ;;
   1.821 -sparc*-*solaris*)
   1.822 +*-*solaris*)
   1.823    # Find out which ABI we are using.
   1.824    echo 'int i;' > conftest.$ac_ext
   1.825    if AC_TRY_EVAL(ac_compile); then
   1.826      case `/usr/bin/file conftest.o` in
   1.827      *64-bit*)
   1.828        case $lt_cv_prog_gnu_ld in
   1.829 -      yes*) LD="${LD-ld} -m elf64_sparc" ;;
   1.830 +      yes*)
   1.831 +        case $host in
   1.832 +        i?86-*-solaris*)
   1.833 +          LD="${LD-ld} -m elf_x86_64"
   1.834 +          ;;
   1.835 +        sparc*-*-solaris*)
   1.836 +          LD="${LD-ld} -m elf64_sparc"
   1.837 +          ;;
   1.838 +        esac
   1.839 +        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
   1.840 +        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
   1.841 +          LD="${LD-ld}_sol2"
   1.842 +        fi
   1.843 +        ;;
   1.844        *)
   1.845  	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
   1.846  	  LD="${LD-ld} -64"
   1.847 @@ -1356,14 +1414,47 @@
   1.848  ])# _LT_ENABLE_LOCK
   1.849  
   1.850  
   1.851 +# _LT_PROG_AR
   1.852 +# -----------
   1.853 +m4_defun([_LT_PROG_AR],
   1.854 +[AC_CHECK_TOOLS(AR, [ar], false)
   1.855 +: ${AR=ar}
   1.856 +: ${AR_FLAGS=cru}
   1.857 +_LT_DECL([], [AR], [1], [The archiver])
   1.858 +_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
   1.859 +
   1.860 +AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
   1.861 +  [lt_cv_ar_at_file=no
   1.862 +   AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
   1.863 +     [echo conftest.$ac_objext > conftest.lst
   1.864 +      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
   1.865 +      AC_TRY_EVAL([lt_ar_try])
   1.866 +      if test "$ac_status" -eq 0; then
   1.867 +	# Ensure the archiver fails upon bogus file names.
   1.868 +	rm -f conftest.$ac_objext libconftest.a
   1.869 +	AC_TRY_EVAL([lt_ar_try])
   1.870 +	if test "$ac_status" -ne 0; then
   1.871 +          lt_cv_ar_at_file=@
   1.872 +        fi
   1.873 +      fi
   1.874 +      rm -f conftest.* libconftest.a
   1.875 +     ])
   1.876 +  ])
   1.877 +
   1.878 +if test "x$lt_cv_ar_at_file" = xno; then
   1.879 +  archiver_list_spec=
   1.880 +else
   1.881 +  archiver_list_spec=$lt_cv_ar_at_file
   1.882 +fi
   1.883 +_LT_DECL([], [archiver_list_spec], [1],
   1.884 +  [How to feed a file listing to the archiver])
   1.885 +])# _LT_PROG_AR
   1.886 +
   1.887 +
   1.888  # _LT_CMD_OLD_ARCHIVE
   1.889  # -------------------
   1.890  m4_defun([_LT_CMD_OLD_ARCHIVE],
   1.891 -[AC_CHECK_TOOL(AR, ar, false)
   1.892 -test -z "$AR" && AR=ar
   1.893 -test -z "$AR_FLAGS" && AR_FLAGS=cru
   1.894 -_LT_DECL([], [AR], [1], [The archiver])
   1.895 -_LT_DECL([], [AR_FLAGS], [1])
   1.896 +[_LT_PROG_AR
   1.897  
   1.898  AC_CHECK_TOOL(STRIP, strip, :)
   1.899  test -z "$STRIP" && STRIP=:
   1.900 @@ -1382,18 +1473,27 @@
   1.901  if test -n "$RANLIB"; then
   1.902    case $host_os in
   1.903    openbsd*)
   1.904 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
   1.905 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
   1.906      ;;
   1.907    *)
   1.908 -    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
   1.909 +    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
   1.910      ;;
   1.911    esac
   1.912 -  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
   1.913 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
   1.914  fi
   1.915 +
   1.916 +case $host_os in
   1.917 +  darwin*)
   1.918 +    lock_old_archive_extraction=yes ;;
   1.919 +  *)
   1.920 +    lock_old_archive_extraction=no ;;
   1.921 +esac
   1.922  _LT_DECL([], [old_postinstall_cmds], [2])
   1.923  _LT_DECL([], [old_postuninstall_cmds], [2])
   1.924  _LT_TAGDECL([], [old_archive_cmds], [2],
   1.925      [Commands used to build an old-style archive])
   1.926 +_LT_DECL([], [lock_old_archive_extraction], [0],
   1.927 +    [Whether to use a lock for old archive extraction])
   1.928  ])# _LT_CMD_OLD_ARCHIVE
   1.929  
   1.930  
   1.931 @@ -1418,15 +1518,15 @@
   1.932     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
   1.933     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
   1.934     -e 's:$: $lt_compiler_flag:'`
   1.935 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.936 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
   1.937     (eval "$lt_compile" 2>conftest.err)
   1.938     ac_status=$?
   1.939     cat conftest.err >&AS_MESSAGE_LOG_FD
   1.940 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.941 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
   1.942     if (exit $ac_status) && test -s "$ac_outfile"; then
   1.943       # The compiler can only warn and ignore the option if not recognized
   1.944       # So say no if there are warnings other than the usual output.
   1.945 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
   1.946 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
   1.947       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.948       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
   1.949         $2=yes
   1.950 @@ -1466,7 +1566,7 @@
   1.951       if test -s conftest.err; then
   1.952         # Append any errors to the config.log.
   1.953         cat conftest.err 1>&AS_MESSAGE_LOG_FD
   1.954 -       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
   1.955 +       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
   1.956         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
   1.957         if diff conftest.exp conftest.er2 >/dev/null; then
   1.958           $2=yes
   1.959 @@ -1529,9 +1629,8 @@
   1.960      lt_cv_sys_max_cmd_len=8192;
   1.961      ;;
   1.962  
   1.963 -  beos*)
   1.964 -    # On BeOS, this test takes a really really long time.
   1.965 -    # So we just punt and use a minimum line length of 8192.
   1.966 +  mint*)
   1.967 +    # On MiNT this can take a long time and run out of memory.
   1.968      lt_cv_sys_max_cmd_len=8192;
   1.969      ;;
   1.970  
   1.971 @@ -1560,6 +1659,11 @@
   1.972      lt_cv_sys_max_cmd_len=196608
   1.973      ;;
   1.974  
   1.975 +  os2*)
   1.976 +    # The test takes a long time on OS/2.
   1.977 +    lt_cv_sys_max_cmd_len=8192
   1.978 +    ;;
   1.979 +
   1.980    osf*)
   1.981      # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
   1.982      # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
   1.983 @@ -1599,8 +1703,8 @@
   1.984        # If test is not a shell built-in, we'll probably end up computing a
   1.985        # maximum length that is only half of the actual maximum length, but
   1.986        # we can't tell.
   1.987 -      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
   1.988 -	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
   1.989 +      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
   1.990 +	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
   1.991  	      test $i != 17 # 1/2 MB should be enough
   1.992        do
   1.993          i=`expr $i + 1`
   1.994 @@ -1651,7 +1755,7 @@
   1.995    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   1.996    lt_status=$lt_dlunknown
   1.997    cat > conftest.$ac_ext <<_LT_EOF
   1.998 -[#line __oline__ "configure"
   1.999 +[#line $LINENO "configure"
  1.1000  #include "confdefs.h"
  1.1001  
  1.1002  #if HAVE_DLFCN_H
  1.1003 @@ -1692,7 +1796,13 @@
  1.1004  #  endif
  1.1005  #endif
  1.1006  
  1.1007 -void fnord() { int i=42;}
  1.1008 +/* When -fvisbility=hidden is used, assume the code has been annotated
  1.1009 +   correspondingly for the symbols needed.  */
  1.1010 +#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1.1011 +int fnord () __attribute__((visibility("default")));
  1.1012 +#endif
  1.1013 +
  1.1014 +int fnord () { return 42; }
  1.1015  int main ()
  1.1016  {
  1.1017    void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1.1018 @@ -1701,7 +1811,11 @@
  1.1019    if (self)
  1.1020      {
  1.1021        if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
  1.1022 -      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1.1023 +      else
  1.1024 +        {
  1.1025 +	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
  1.1026 +          else puts (dlerror ());
  1.1027 +	}
  1.1028        /* dlclose (self); */
  1.1029      }
  1.1030    else
  1.1031 @@ -1877,16 +1991,16 @@
  1.1032     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1.1033     -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1.1034     -e 's:$: $lt_compiler_flag:'`
  1.1035 -   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1036 +   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1037     (eval "$lt_compile" 2>out/conftest.err)
  1.1038     ac_status=$?
  1.1039     cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1.1040 -   echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1041 +   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1.1042     if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1.1043     then
  1.1044       # The compiler can only warn and ignore the option if not recognized
  1.1045       # So say no if there are warnings
  1.1046 -     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.1047 +     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1.1048       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1.1049       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1.1050         _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.1051 @@ -2045,6 +2159,7 @@
  1.1052  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1053  m4_require([_LT_DECL_OBJDUMP])dnl
  1.1054  m4_require([_LT_DECL_SED])dnl
  1.1055 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1.1056  AC_MSG_CHECKING([dynamic linker characteristics])
  1.1057  m4_if([$1],
  1.1058  	[], [
  1.1059 @@ -2053,16 +2168,23 @@
  1.1060      darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1.1061      *) lt_awk_arg="/^libraries:/" ;;
  1.1062    esac
  1.1063 -  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1064 -  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1.1065 +  case $host_os in
  1.1066 +    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1.1067 +    *) lt_sed_strip_eq="s,=/,/,g" ;;
  1.1068 +  esac
  1.1069 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1.1070 +  case $lt_search_path_spec in
  1.1071 +  *\;*)
  1.1072      # if the path contains ";" then we assume it to be the separator
  1.1073      # otherwise default to the standard path separator (i.e. ":") - it is
  1.1074      # assumed that no part of a normal pathname contains ";" but that should
  1.1075      # okay in the real world where ";" in dirpaths is itself problematic.
  1.1076 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1.1077 -  else
  1.1078 -    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1079 -  fi
  1.1080 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1.1081 +    ;;
  1.1082 +  *)
  1.1083 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1.1084 +    ;;
  1.1085 +  esac
  1.1086    # Ok, now we have the path, separated by spaces, we can step through it
  1.1087    # and add multilib dir if necessary.
  1.1088    lt_tmp_lt_search_path_spec=
  1.1089 @@ -2075,7 +2197,7 @@
  1.1090  	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1.1091      fi
  1.1092    done
  1.1093 -  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1.1094 +  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1.1095  BEGIN {RS=" "; FS="/|\n";} {
  1.1096    lt_foo="";
  1.1097    lt_count=0;
  1.1098 @@ -2095,7 +2217,13 @@
  1.1099    if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1.1100    if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1.1101  }'`
  1.1102 -  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1.1103 +  # AWK program above erroneously prepends '/' to C:/dos/paths
  1.1104 +  # for these hosts.
  1.1105 +  case $host_os in
  1.1106 +    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1.1107 +      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1.1108 +  esac
  1.1109 +  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1.1110  else
  1.1111    sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.1112  fi])
  1.1113 @@ -2121,7 +2249,7 @@
  1.1114  
  1.1115  case $host_os in
  1.1116  aix3*)
  1.1117 -  version_type=linux
  1.1118 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1119    library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1.1120    shlibpath_var=LIBPATH
  1.1121  
  1.1122 @@ -2130,7 +2258,7 @@
  1.1123    ;;
  1.1124  
  1.1125  aix[[4-9]]*)
  1.1126 -  version_type=linux
  1.1127 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1128    need_lib_prefix=no
  1.1129    need_version=no
  1.1130    hardcode_into_libs=yes
  1.1131 @@ -2183,7 +2311,7 @@
  1.1132    m68k)
  1.1133      library_names_spec='$libname.ixlibrary $libname.a'
  1.1134      # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.1135 -    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.1136 +    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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.1137      ;;
  1.1138    esac
  1.1139    ;;
  1.1140 @@ -2195,7 +2323,7 @@
  1.1141    ;;
  1.1142  
  1.1143  bsdi[[45]]*)
  1.1144 -  version_type=linux
  1.1145 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1146    need_version=no
  1.1147    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1148    soname_spec='${libname}${release}${shared_ext}$major'
  1.1149 @@ -2214,8 +2342,9 @@
  1.1150    need_version=no
  1.1151    need_lib_prefix=no
  1.1152  
  1.1153 -  case $GCC,$host_os in
  1.1154 -  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1.1155 +  case $GCC,$cc_basename in
  1.1156 +  yes,*)
  1.1157 +    # gcc
  1.1158      library_names_spec='$libname.dll.a'
  1.1159      # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1160      postinstall_cmds='base_file=`basename \${file}`~
  1.1161 @@ -2235,39 +2364,84 @@
  1.1162      case $host_os in
  1.1163      cygwin*)
  1.1164        # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  1.1165 -      #soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1166 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.1167 -      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1.1168 +      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1169 +m4_if([$1], [],[
  1.1170 +      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  1.1171        ;;
  1.1172      mingw* | cegcc*)
  1.1173        # MinGW DLLs use traditional 'lib' prefix
  1.1174 -      #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1175 -      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  1.1176 -      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.1177 -      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1178 -        # It is most probably a Windows format PATH printed by
  1.1179 -        # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1.1180 -        # path with ; separators, and with drive letters. We can handle the
  1.1181 -        # drive letters (cygwin fileutils understands them), so leave them,
  1.1182 -        # especially as we might pass files found there to a mingw objdump,
  1.1183 -        # which wouldn't understand a cygwinified path. Ahh.
  1.1184 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1185 -      else
  1.1186 -        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.1187 -      fi
  1.1188 +      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1189        ;;
  1.1190      pw32*)
  1.1191        # pw32 DLLs use 'pw' prefix rather than 'lib'
  1.1192        library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1193        ;;
  1.1194      esac
  1.1195 +    dynamic_linker='Win32 ld.exe'
  1.1196      ;;
  1.1197  
  1.1198 +  *,cl*)
  1.1199 +    # Native MSVC
  1.1200 +    libname_spec='$name'
  1.1201 +    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.1202 +    library_names_spec='${libname}.dll.lib'
  1.1203 +
  1.1204 +    case $build_os in
  1.1205 +    mingw*)
  1.1206 +      sys_lib_search_path_spec=
  1.1207 +      lt_save_ifs=$IFS
  1.1208 +      IFS=';'
  1.1209 +      for lt_path in $LIB
  1.1210 +      do
  1.1211 +        IFS=$lt_save_ifs
  1.1212 +        # Let DOS variable expansion print the short 8.3 style file name.
  1.1213 +        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  1.1214 +        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  1.1215 +      done
  1.1216 +      IFS=$lt_save_ifs
  1.1217 +      # Convert to MSYS style.
  1.1218 +      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  1.1219 +      ;;
  1.1220 +    cygwin*)
  1.1221 +      # Convert to unix form, then to dos form, then back to unix form
  1.1222 +      # but this time dos style (no spaces!) so that the unix form looks
  1.1223 +      # like /cygdrive/c/PROGRA~1:/cygdr...
  1.1224 +      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  1.1225 +      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  1.1226 +      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1227 +      ;;
  1.1228 +    *)
  1.1229 +      sys_lib_search_path_spec="$LIB"
  1.1230 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.1231 +        # It is most probably a Windows format PATH.
  1.1232 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.1233 +      else
  1.1234 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1.1235 +      fi
  1.1236 +      # FIXME: find the short name or the path components, as spaces are
  1.1237 +      # common. (e.g. "Program Files" -> "PROGRA~1")
  1.1238 +      ;;
  1.1239 +    esac
  1.1240 +
  1.1241 +    # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.1242 +    postinstall_cmds='base_file=`basename \${file}`~
  1.1243 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1.1244 +      dldir=$destdir/`dirname \$dlpath`~
  1.1245 +      test -d \$dldir || mkdir -p \$dldir~
  1.1246 +      $install_prog $dir/$dlname \$dldir/$dlname'
  1.1247 +    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1.1248 +      dlpath=$dir/\$dldll~
  1.1249 +       $RM \$dlpath'
  1.1250 +    shlibpath_overrides_runpath=yes
  1.1251 +    dynamic_linker='Win32 link.exe'
  1.1252 +    ;;
  1.1253 +
  1.1254    *)
  1.1255 +    # Assume MSVC wrapper
  1.1256      library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  1.1257 +    dynamic_linker='Win32 ld.exe'
  1.1258      ;;
  1.1259    esac
  1.1260 -  dynamic_linker='Win32 ld.exe'
  1.1261    # FIXME: first we should search . and the directory the executable is in
  1.1262    shlibpath_var=PATH
  1.1263    ;;
  1.1264 @@ -2288,7 +2462,7 @@
  1.1265    ;;
  1.1266  
  1.1267  dgux*)
  1.1268 -  version_type=linux
  1.1269 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1270    need_lib_prefix=no
  1.1271    need_version=no
  1.1272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  1.1273 @@ -2296,10 +2470,6 @@
  1.1274    shlibpath_var=LD_LIBRARY_PATH
  1.1275    ;;
  1.1276  
  1.1277 -freebsd1*)
  1.1278 -  dynamic_linker=no
  1.1279 -  ;;
  1.1280 -
  1.1281  freebsd* | dragonfly*)
  1.1282    # DragonFly does not have aout.  When/if they implement a new
  1.1283    # versioning mechanism, adjust this.
  1.1284 @@ -2307,7 +2477,7 @@
  1.1285      objformat=`/usr/bin/objformat`
  1.1286    else
  1.1287      case $host_os in
  1.1288 -    freebsd[[123]]*) objformat=aout ;;
  1.1289 +    freebsd[[23]].*) objformat=aout ;;
  1.1290      *) objformat=elf ;;
  1.1291      esac
  1.1292    fi
  1.1293 @@ -2325,7 +2495,7 @@
  1.1294    esac
  1.1295    shlibpath_var=LD_LIBRARY_PATH
  1.1296    case $host_os in
  1.1297 -  freebsd2*)
  1.1298 +  freebsd2.*)
  1.1299      shlibpath_overrides_runpath=yes
  1.1300      ;;
  1.1301    freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  1.1302 @@ -2345,12 +2515,26 @@
  1.1303    ;;
  1.1304  
  1.1305  gnu*)
  1.1306 -  version_type=linux
  1.1307 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1308    need_lib_prefix=no
  1.1309    need_version=no
  1.1310    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1311    soname_spec='${libname}${release}${shared_ext}$major'
  1.1312    shlibpath_var=LD_LIBRARY_PATH
  1.1313 +  shlibpath_overrides_runpath=no
  1.1314 +  hardcode_into_libs=yes
  1.1315 +  ;;
  1.1316 +
  1.1317 +haiku*)
  1.1318 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1319 +  need_lib_prefix=no
  1.1320 +  need_version=no
  1.1321 +  dynamic_linker="$host_os runtime_loader"
  1.1322 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  1.1323 +  soname_spec='${libname}${release}${shared_ext}$major'
  1.1324 +  shlibpath_var=LIBRARY_PATH
  1.1325 +  shlibpath_overrides_runpath=yes
  1.1326 +  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  1.1327    hardcode_into_libs=yes
  1.1328    ;;
  1.1329  
  1.1330 @@ -2396,12 +2580,14 @@
  1.1331      soname_spec='${libname}${release}${shared_ext}$major'
  1.1332      ;;
  1.1333    esac
  1.1334 -  # HP-UX runs *really* slowly unless shared libraries are mode 555.
  1.1335 +  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  1.1336    postinstall_cmds='chmod 555 $lib'
  1.1337 +  # or fails outright, so override atomically:
  1.1338 +  install_override_mode=555
  1.1339    ;;
  1.1340  
  1.1341  interix[[3-9]]*)
  1.1342 -  version_type=linux
  1.1343 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1344    need_lib_prefix=no
  1.1345    need_version=no
  1.1346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.1347 @@ -2417,7 +2603,7 @@
  1.1348      nonstopux*) version_type=nonstopux ;;
  1.1349      *)
  1.1350  	if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1351 -		version_type=linux
  1.1352 +		version_type=linux # correct to gnu/linux during the next big refactor
  1.1353  	else
  1.1354  		version_type=irix
  1.1355  	fi ;;
  1.1356 @@ -2454,9 +2640,9 @@
  1.1357    dynamic_linker=no
  1.1358    ;;
  1.1359  
  1.1360 -# This must be Linux ELF.
  1.1361 -linux* | k*bsd*-gnu)
  1.1362 -  version_type=linux
  1.1363 +# This must be glibc/ELF.
  1.1364 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1365 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1366    need_lib_prefix=no
  1.1367    need_version=no
  1.1368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1369 @@ -2464,16 +2650,21 @@
  1.1370    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.1371    shlibpath_var=LD_LIBRARY_PATH
  1.1372    shlibpath_overrides_runpath=no
  1.1373 +
  1.1374    # Some binutils ld are patched to set DT_RUNPATH
  1.1375 -  save_LDFLAGS=$LDFLAGS
  1.1376 -  save_libdir=$libdir
  1.1377 -  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1378 -       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1379 -  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1380 -    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1381 -       [shlibpath_overrides_runpath=yes])])
  1.1382 -  LDFLAGS=$save_LDFLAGS
  1.1383 -  libdir=$save_libdir
  1.1384 +  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  1.1385 +    [lt_cv_shlibpath_overrides_runpath=no
  1.1386 +    save_LDFLAGS=$LDFLAGS
  1.1387 +    save_libdir=$libdir
  1.1388 +    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.1389 +	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.1390 +    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1391 +      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.1392 +	 [lt_cv_shlibpath_overrides_runpath=yes])])
  1.1393 +    LDFLAGS=$save_LDFLAGS
  1.1394 +    libdir=$save_libdir
  1.1395 +    ])
  1.1396 +  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  1.1397  
  1.1398    # This implies no fast_install, which is unacceptable.
  1.1399    # Some rework will be needed to allow for fast_install
  1.1400 @@ -2482,7 +2673,7 @@
  1.1401  
  1.1402    # Append ld.so.conf contents to the search path
  1.1403    if test -f /etc/ld.so.conf; then
  1.1404 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1.1405 +    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  1.1406      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1.1407    fi
  1.1408  
  1.1409 @@ -2514,7 +2705,7 @@
  1.1410    ;;
  1.1411  
  1.1412  newsos6)
  1.1413 -  version_type=linux
  1.1414 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1416    shlibpath_var=LD_LIBRARY_PATH
  1.1417    shlibpath_overrides_runpath=yes
  1.1418 @@ -2583,7 +2774,7 @@
  1.1419    ;;
  1.1420  
  1.1421  solaris*)
  1.1422 -  version_type=linux
  1.1423 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1424    need_lib_prefix=no
  1.1425    need_version=no
  1.1426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1427 @@ -2608,7 +2799,7 @@
  1.1428    ;;
  1.1429  
  1.1430  sysv4 | sysv4.3*)
  1.1431 -  version_type=linux
  1.1432 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1433    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1434    soname_spec='${libname}${release}${shared_ext}$major'
  1.1435    shlibpath_var=LD_LIBRARY_PATH
  1.1436 @@ -2632,7 +2823,7 @@
  1.1437  
  1.1438  sysv4*MP*)
  1.1439    if test -d /usr/nec ;then
  1.1440 -    version_type=linux
  1.1441 +    version_type=linux # correct to gnu/linux during the next big refactor
  1.1442      library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  1.1443      soname_spec='$libname${shared_ext}.$major'
  1.1444      shlibpath_var=LD_LIBRARY_PATH
  1.1445 @@ -2663,7 +2854,7 @@
  1.1446  
  1.1447  tpf*)
  1.1448    # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1.1449 -  version_type=linux
  1.1450 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1451    need_lib_prefix=no
  1.1452    need_version=no
  1.1453    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1454 @@ -2673,7 +2864,7 @@
  1.1455    ;;
  1.1456  
  1.1457  uts4*)
  1.1458 -  version_type=linux
  1.1459 +  version_type=linux # correct to gnu/linux during the next big refactor
  1.1460    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.1461    soname_spec='${libname}${release}${shared_ext}$major'
  1.1462    shlibpath_var=LD_LIBRARY_PATH
  1.1463 @@ -2715,6 +2906,8 @@
  1.1464      The last name is the one that the linker finds with -lNAME]])
  1.1465  _LT_DECL([], [soname_spec], [1],
  1.1466      [[The coded name of the library, if different from the real name]])
  1.1467 +_LT_DECL([], [install_override_mode], [1],
  1.1468 +    [Permission mode override for installation of shared libraries])
  1.1469  _LT_DECL([], [postinstall_cmds], [2],
  1.1470      [Command to use after installation of a shared archive])
  1.1471  _LT_DECL([], [postuninstall_cmds], [2],
  1.1472 @@ -2827,6 +3020,7 @@
  1.1473  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.1474  m4_require([_LT_DECL_SED])dnl
  1.1475  m4_require([_LT_DECL_EGREP])dnl
  1.1476 +m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  1.1477  
  1.1478  AC_ARG_WITH([gnu-ld],
  1.1479      [AS_HELP_STRING([--with-gnu-ld],
  1.1480 @@ -2948,6 +3142,11 @@
  1.1481  esac
  1.1482  reload_cmds='$LD$reload_flag -o $output$reload_objs'
  1.1483  case $host_os in
  1.1484 +  cygwin* | mingw* | pw32* | cegcc*)
  1.1485 +    if test "$GCC" != yes; then
  1.1486 +      reload_cmds=false
  1.1487 +    fi
  1.1488 +    ;;
  1.1489    darwin*)
  1.1490      if test "$GCC" = yes; then
  1.1491        reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  1.1492 @@ -2956,8 +3155,8 @@
  1.1493      fi
  1.1494      ;;
  1.1495  esac
  1.1496 -_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1497 -_LT_DECL([], [reload_cmds], [2])dnl
  1.1498 +_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.1499 +_LT_TAGDECL([], [reload_cmds], [2])dnl
  1.1500  ])# _LT_CMD_RELOAD
  1.1501  
  1.1502  
  1.1503 @@ -3002,7 +3201,6 @@
  1.1504  cygwin*)
  1.1505    # func_win32_libid is a shell function defined in ltmain.sh
  1.1506    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1507 -  lt_cv_deplibs_check_method=pass_all
  1.1508    lt_cv_file_magic_cmd='func_win32_libid'
  1.1509    ;;
  1.1510  
  1.1511 @@ -3010,17 +3208,18 @@
  1.1512    # Base MSYS/MinGW do not provide the 'file' command needed by
  1.1513    # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.1514    # unless we find 'file', for example because we are cross-compiling.
  1.1515 -  if ( file / ) >/dev/null 2>&1; then
  1.1516 +  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  1.1517 +  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  1.1518      lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.1519      lt_cv_file_magic_cmd='func_win32_libid'
  1.1520    else
  1.1521 +    # Keep this pattern in sync with the one in func_win32_libid.
  1.1522      lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  1.1523      lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1524    fi
  1.1525 -  lt_cv_deplibs_check_method=pass_all
  1.1526    ;;
  1.1527  
  1.1528 -cegcc)
  1.1529 +cegcc*)
  1.1530    # use the weaker test based on 'objdump'. See mingw*.
  1.1531    lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1.1532    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.1533 @@ -3050,6 +3249,10 @@
  1.1534    lt_cv_deplibs_check_method=pass_all
  1.1535    ;;
  1.1536  
  1.1537 +haiku*)
  1.1538 +  lt_cv_deplibs_check_method=pass_all
  1.1539 +  ;;
  1.1540 +
  1.1541  hpux10.20* | hpux11*)
  1.1542    lt_cv_file_magic_cmd=/usr/bin/file
  1.1543    case $host_cpu in
  1.1544 @@ -3058,11 +3261,11 @@
  1.1545      lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  1.1546      ;;
  1.1547    hppa*64*)
  1.1548 -    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  1.1549 +    [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  1.1550      lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  1.1551      ;;
  1.1552    *)
  1.1553 -    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1.1554 +    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  1.1555      lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1.1556      ;;
  1.1557    esac
  1.1558 @@ -3083,8 +3286,8 @@
  1.1559    lt_cv_deplibs_check_method=pass_all
  1.1560    ;;
  1.1561  
  1.1562 -# This must be Linux ELF.
  1.1563 -linux* | k*bsd*-gnu)
  1.1564 +# This must be glibc/ELF.
  1.1565 +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1566    lt_cv_deplibs_check_method=pass_all
  1.1567    ;;
  1.1568  
  1.1569 @@ -3162,6 +3365,21 @@
  1.1570    ;;
  1.1571  esac
  1.1572  ])
  1.1573 +
  1.1574 +file_magic_glob=
  1.1575 +want_nocaseglob=no
  1.1576 +if test "$build" = "$host"; then
  1.1577 +  case $host_os in
  1.1578 +  mingw* | pw32*)
  1.1579 +    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  1.1580 +      want_nocaseglob=yes
  1.1581 +    else
  1.1582 +      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  1.1583 +    fi
  1.1584 +    ;;
  1.1585 +  esac
  1.1586 +fi
  1.1587 +
  1.1588  file_magic_cmd=$lt_cv_file_magic_cmd
  1.1589  deplibs_check_method=$lt_cv_deplibs_check_method
  1.1590  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  1.1591 @@ -3169,7 +3387,11 @@
  1.1592  _LT_DECL([], [deplibs_check_method], [1],
  1.1593      [Method to check whether dependent libraries are shared objects])
  1.1594  _LT_DECL([], [file_magic_cmd], [1],
  1.1595 -    [Command to use when deplibs_check_method == "file_magic"])
  1.1596 +    [Command to use when deplibs_check_method = "file_magic"])
  1.1597 +_LT_DECL([], [file_magic_glob], [1],
  1.1598 +    [How to find potential files when deplibs_check_method = "file_magic"])
  1.1599 +_LT_DECL([], [want_nocaseglob], [1],
  1.1600 +    [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  1.1601  ])# _LT_CHECK_MAGIC_METHOD
  1.1602  
  1.1603  
  1.1604 @@ -3226,7 +3448,19 @@
  1.1605    NM="$lt_cv_path_NM"
  1.1606  else
  1.1607    # Didn't find any BSD compatible name lister, look for dumpbin.
  1.1608 -  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  1.1609 +  if test -n "$DUMPBIN"; then :
  1.1610 +    # Let the user override the test.
  1.1611 +  else
  1.1612 +    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  1.1613 +    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  1.1614 +    *COFF*)
  1.1615 +      DUMPBIN="$DUMPBIN -symbols"
  1.1616 +      ;;
  1.1617 +    *)
  1.1618 +      DUMPBIN=:
  1.1619 +      ;;
  1.1620 +    esac
  1.1621 +  fi
  1.1622    AC_SUBST([DUMPBIN])
  1.1623    if test "$DUMPBIN" != ":"; then
  1.1624      NM="$DUMPBIN"
  1.1625 @@ -3239,13 +3473,13 @@
  1.1626  AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  1.1627    [lt_cv_nm_interface="BSD nm"
  1.1628    echo "int some_variable = 0;" > conftest.$ac_ext
  1.1629 -  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1630 +  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.1631    (eval "$ac_compile" 2>conftest.err)
  1.1632    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1633 -  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1634 +  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.1635    (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  1.1636    cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1637 -  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  1.1638 +  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  1.1639    cat conftest.out >&AS_MESSAGE_LOG_FD
  1.1640    if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  1.1641      lt_cv_nm_interface="MS dumpbin"
  1.1642 @@ -3260,6 +3494,67 @@
  1.1643  dnl AC_DEFUN([AM_PROG_NM], [])
  1.1644  dnl AC_DEFUN([AC_PROG_NM], [])
  1.1645  
  1.1646 +# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1647 +# --------------------------------
  1.1648 +# how to determine the name of the shared library
  1.1649 +# associated with a specific link library.
  1.1650 +#  -- PORTME fill in with the dynamic library characteristics
  1.1651 +m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  1.1652 +[m4_require([_LT_DECL_EGREP])
  1.1653 +m4_require([_LT_DECL_OBJDUMP])
  1.1654 +m4_require([_LT_DECL_DLLTOOL])
  1.1655 +AC_CACHE_CHECK([how to associate runtime and link libraries],
  1.1656 +lt_cv_sharedlib_from_linklib_cmd,
  1.1657 +[lt_cv_sharedlib_from_linklib_cmd='unknown'
  1.1658 +
  1.1659 +case $host_os in
  1.1660 +cygwin* | mingw* | pw32* | cegcc*)
  1.1661 +  # two different shell functions defined in ltmain.sh
  1.1662 +  # decide which to use based on capabilities of $DLLTOOL
  1.1663 +  case `$DLLTOOL --help 2>&1` in
  1.1664 +  *--identify-strict*)
  1.1665 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  1.1666 +    ;;
  1.1667 +  *)
  1.1668 +    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  1.1669 +    ;;
  1.1670 +  esac
  1.1671 +  ;;
  1.1672 +*)
  1.1673 +  # fallback: assume linklib IS sharedlib
  1.1674 +  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  1.1675 +  ;;
  1.1676 +esac
  1.1677 +])
  1.1678 +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  1.1679 +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  1.1680 +
  1.1681 +_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  1.1682 +    [Command to associate shared and link libraries])
  1.1683 +])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  1.1684 +
  1.1685 +
  1.1686 +# _LT_PATH_MANIFEST_TOOL
  1.1687 +# ----------------------
  1.1688 +# locate the manifest tool
  1.1689 +m4_defun([_LT_PATH_MANIFEST_TOOL],
  1.1690 +[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  1.1691 +test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  1.1692 +AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  1.1693 +  [lt_cv_path_mainfest_tool=no
  1.1694 +  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  1.1695 +  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  1.1696 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1697 +  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  1.1698 +    lt_cv_path_mainfest_tool=yes
  1.1699 +  fi
  1.1700 +  rm -f conftest*])
  1.1701 +if test "x$lt_cv_path_mainfest_tool" != xyes; then
  1.1702 +  MANIFEST_TOOL=:
  1.1703 +fi
  1.1704 +_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  1.1705 +])# _LT_PATH_MANIFEST_TOOL
  1.1706 +
  1.1707  
  1.1708  # LT_LIB_M
  1.1709  # --------
  1.1710 @@ -3268,7 +3563,7 @@
  1.1711  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1712  LIBM=
  1.1713  case $host in
  1.1714 -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  1.1715 +*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  1.1716    # These system don't have libm, or don't need it
  1.1717    ;;
  1.1718  *-ncr-sysv4.3*)
  1.1719 @@ -3296,7 +3591,12 @@
  1.1720  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.1721  
  1.1722  if test "$GCC" = yes; then
  1.1723 -  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.1724 +  case $cc_basename in
  1.1725 +  nvcc*)
  1.1726 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  1.1727 +  *)
  1.1728 +    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  1.1729 +  esac
  1.1730  
  1.1731    _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.1732      lt_cv_prog_compiler_rtti_exceptions,
  1.1733 @@ -3313,6 +3613,7 @@
  1.1734  m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  1.1735  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.1736  AC_REQUIRE([AC_PROG_CC])dnl
  1.1737 +AC_REQUIRE([AC_PROG_AWK])dnl
  1.1738  AC_REQUIRE([LT_PATH_NM])dnl
  1.1739  AC_REQUIRE([LT_PATH_LD])dnl
  1.1740  m4_require([_LT_DECL_SED])dnl
  1.1741 @@ -3380,8 +3681,8 @@
  1.1742  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.1743  
  1.1744  # Transform an extracted symbol line into symbol name and symbol address
  1.1745 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  1.1746 -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  1.1747 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
  1.1748 +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
  1.1749  
  1.1750  # Handle CRLF in mingw tool chain
  1.1751  opt_cr=
  1.1752 @@ -3405,6 +3706,7 @@
  1.1753      # which start with @ or ?.
  1.1754      lt_cv_sys_global_symbol_pipe="$AWK ['"\
  1.1755  "     {last_section=section; section=\$ 3};"\
  1.1756 +"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  1.1757  "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1.1758  "     \$ 0!~/External *\|/{next};"\
  1.1759  "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1.1760 @@ -3417,6 +3719,7 @@
  1.1761    else
  1.1762      lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.1763    fi
  1.1764 +  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  1.1765  
  1.1766    # Check to see that the pipe works correctly.
  1.1767    pipe_works=no
  1.1768 @@ -3438,7 +3741,7 @@
  1.1769    if AC_TRY_EVAL(ac_compile); then
  1.1770      # Now try to grab the symbols.
  1.1771      nlist=conftest.nm
  1.1772 -    if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1.1773 +    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  1.1774        # Try sorting and uniquifying the output.
  1.1775        if sort "$nlist" | uniq > "$nlist"T; then
  1.1776  	mv -f "$nlist"T "$nlist"
  1.1777 @@ -3450,6 +3753,18 @@
  1.1778        if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1.1779  	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1.1780  	  cat <<_LT_EOF > conftest.$ac_ext
  1.1781 +/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
  1.1782 +#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  1.1783 +/* DATA imports from DLLs on WIN32 con't be const, because runtime
  1.1784 +   relocations are performed -- see ld's documentation on pseudo-relocs.  */
  1.1785 +# define LT@&t@_DLSYM_CONST
  1.1786 +#elif defined(__osf__)
  1.1787 +/* This system does not cope well with relocations in const data.  */
  1.1788 +# define LT@&t@_DLSYM_CONST
  1.1789 +#else
  1.1790 +# define LT@&t@_DLSYM_CONST const
  1.1791 +#endif
  1.1792 +
  1.1793  #ifdef __cplusplus
  1.1794  extern "C" {
  1.1795  #endif
  1.1796 @@ -3461,7 +3776,7 @@
  1.1797  	  cat <<_LT_EOF >> conftest.$ac_ext
  1.1798  
  1.1799  /* The mapping between symbol names and symbols.  */
  1.1800 -const struct {
  1.1801 +LT@&t@_DLSYM_CONST struct {
  1.1802    const char *name;
  1.1803    void       *address;
  1.1804  }
  1.1805 @@ -3487,15 +3802,15 @@
  1.1806  _LT_EOF
  1.1807  	  # Now try linking the two files.
  1.1808  	  mv conftest.$ac_objext conftstm.$ac_objext
  1.1809 -	  lt_save_LIBS="$LIBS"
  1.1810 -	  lt_save_CFLAGS="$CFLAGS"
  1.1811 +	  lt_globsym_save_LIBS=$LIBS
  1.1812 +	  lt_globsym_save_CFLAGS=$CFLAGS
  1.1813  	  LIBS="conftstm.$ac_objext"
  1.1814  	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.1815  	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  1.1816  	    pipe_works=yes
  1.1817  	  fi
  1.1818 -	  LIBS="$lt_save_LIBS"
  1.1819 -	  CFLAGS="$lt_save_CFLAGS"
  1.1820 +	  LIBS=$lt_globsym_save_LIBS
  1.1821 +	  CFLAGS=$lt_globsym_save_CFLAGS
  1.1822  	else
  1.1823  	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  1.1824  	fi
  1.1825 @@ -3528,6 +3843,13 @@
  1.1826    AC_MSG_RESULT(ok)
  1.1827  fi
  1.1828  
  1.1829 +# Response file support.
  1.1830 +if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1.1831 +  nm_file_list_spec='@'
  1.1832 +elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  1.1833 +  nm_file_list_spec='@'
  1.1834 +fi
  1.1835 +
  1.1836  _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  1.1837      [Take the output of nm and produce a listing of raw symbols and C names])
  1.1838  _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  1.1839 @@ -3538,6 +3860,8 @@
  1.1840  _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  1.1841      [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  1.1842      [Transform the output of nm in a C name address pair when lib prefix is needed])
  1.1843 +_LT_DECL([], [nm_file_list_spec], [1],
  1.1844 +    [Specify filename containing input files for $NM])
  1.1845  ]) # _LT_CMD_GLOBAL_SYMBOLS
  1.1846  
  1.1847  
  1.1848 @@ -3549,7 +3873,6 @@
  1.1849  _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1850  _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1851  
  1.1852 -AC_MSG_CHECKING([for $compiler option to produce PIC])
  1.1853  m4_if([$1], [CXX], [
  1.1854    # C++ specific cases for pic, static, wl, etc.
  1.1855    if test "$GXX" = yes; then
  1.1856 @@ -3600,6 +3923,11 @@
  1.1857        # DJGPP does not support shared libraries at all
  1.1858        _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1859        ;;
  1.1860 +    haiku*)
  1.1861 +      # PIC is the default for Haiku.
  1.1862 +      # The "-static" flag exists, but is broken.
  1.1863 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1864 +      ;;
  1.1865      interix[[3-9]]*)
  1.1866        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.1867        # Instead, we relocate shared libraries at runtime.
  1.1868 @@ -3649,6 +3977,12 @@
  1.1869  	  ;;
  1.1870  	esac
  1.1871  	;;
  1.1872 +      mingw* | cygwin* | os2* | pw32* | cegcc*)
  1.1873 +	# This hack is so that the source file can tell whether it is being
  1.1874 +	# built for inclusion in a dll (and should export symbols for example).
  1.1875 +	m4_if([$1], [GCJ], [],
  1.1876 +	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.1877 +	;;
  1.1878        dgux*)
  1.1879  	case $cc_basename in
  1.1880  	  ec++*)
  1.1881 @@ -3705,7 +4039,7 @@
  1.1882  	    ;;
  1.1883  	esac
  1.1884  	;;
  1.1885 -      linux* | k*bsd*-gnu)
  1.1886 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1887  	case $cc_basename in
  1.1888  	  KCC*)
  1.1889  	    # KAI C++ Compiler
  1.1890 @@ -3738,8 +4072,8 @@
  1.1891  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.1892  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1893  	    ;;
  1.1894 -	  xlc* | xlC*)
  1.1895 -	    # IBM XL 8.0 on PPC
  1.1896 +	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  1.1897 +	    # IBM XL 8.0, 9.0 on PPC and BlueGene
  1.1898  	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1899  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1900  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1901 @@ -3801,7 +4135,7 @@
  1.1902  	;;
  1.1903        solaris*)
  1.1904  	case $cc_basename in
  1.1905 -	  CC*)
  1.1906 +	  CC* | sunCC*)
  1.1907  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.1908  	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1909  	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1910 @@ -3905,6 +4239,12 @@
  1.1911        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.1912        ;;
  1.1913  
  1.1914 +    haiku*)
  1.1915 +      # PIC is the default for Haiku.
  1.1916 +      # The "-static" flag exists, but is broken.
  1.1917 +      _LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.1918 +      ;;
  1.1919 +
  1.1920      hpux*)
  1.1921        # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.1922        # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.1923 @@ -3947,6 +4287,15 @@
  1.1924        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.1925        ;;
  1.1926      esac
  1.1927 +
  1.1928 +    case $cc_basename in
  1.1929 +    nvcc*) # Cuda Compiler Driver 2.2
  1.1930 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  1.1931 +      if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.1932 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  1.1933 +      fi
  1.1934 +      ;;
  1.1935 +    esac
  1.1936    else
  1.1937      # PORTME Check for flag to pass linker flags through the system compiler.
  1.1938      case $host_os in
  1.1939 @@ -3989,7 +4338,7 @@
  1.1940        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1941        ;;
  1.1942  
  1.1943 -    linux* | k*bsd*-gnu)
  1.1944 +    linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.1945        case $cc_basename in
  1.1946        # old Intel for x86_64 which still supported -KPIC.
  1.1947        ecc*)
  1.1948 @@ -4010,7 +4359,13 @@
  1.1949  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  1.1950  	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  1.1951  	;;
  1.1952 -      pgcc* | pgf77* | pgf90* | pgf95*)
  1.1953 +      nagfor*)
  1.1954 +	# NAG Fortran compiler
  1.1955 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  1.1956 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.1957 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1958 +	;;
  1.1959 +      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  1.1960          # Portland Group compilers (*not* the Pentium gcc compiler,
  1.1961  	# which looks to be a dead project)
  1.1962  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1963 @@ -4022,25 +4377,40 @@
  1.1964          # All Alpha code is PIC.
  1.1965          _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.1966          ;;
  1.1967 -      xl*)
  1.1968 -	# IBM XL C 8.0/Fortran 10.1 on PPC
  1.1969 +      xl* | bgxl* | bgf* | mpixl*)
  1.1970 +	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  1.1971  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1972  	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.1973  	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.1974  	;;
  1.1975        *)
  1.1976  	case `$CC -V 2>&1 | sed 5q` in
  1.1977 +	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  1.1978 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1979 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1980 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1981 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.1982 +	  ;;
  1.1983 +	*Sun\ F* | *Sun*Fortran*)
  1.1984 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1985 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1986 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.1987 +	  ;;
  1.1988  	*Sun\ C*)
  1.1989  	  # Sun C 5.9
  1.1990  	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1991  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.1992  	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1993  	  ;;
  1.1994 -	*Sun\ F*)
  1.1995 -	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.1996 -	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.1997 +        *Intel*\ [[CF]]*Compiler*)
  1.1998 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.1999 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.2000 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.2001 +	  ;;
  1.2002 +	*Portland\ Group*)
  1.2003 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.2004 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.2005  	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2006 -	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.2007  	  ;;
  1.2008  	esac
  1.2009  	;;
  1.2010 @@ -4072,7 +4442,7 @@
  1.2011        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.2012        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.2013        case $cc_basename in
  1.2014 -      f77* | f90* | f95*)
  1.2015 +      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  1.2016  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.2017        *)
  1.2018  	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.2019 @@ -4129,9 +4499,11 @@
  1.2020      _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  1.2021      ;;
  1.2022  esac
  1.2023 -AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2024 -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2025 -	[How to pass a linker flag through the compiler])
  1.2026 +
  1.2027 +AC_CACHE_CHECK([for $compiler option to produce PIC],
  1.2028 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  1.2029 +  [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.2030 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  1.2031  
  1.2032  #
  1.2033  # Check to make sure the PIC flag actually works.
  1.2034 @@ -4150,6 +4522,8 @@
  1.2035  _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  1.2036  	[Additional compiler flags for building library objects])
  1.2037  
  1.2038 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.2039 +	[How to pass a linker flag through the compiler])
  1.2040  #
  1.2041  # Check to make sure the static flag actually works.
  1.2042  #
  1.2043 @@ -4170,6 +4544,7 @@
  1.2044  m4_defun([_LT_LINKER_SHLIBS],
  1.2045  [AC_REQUIRE([LT_PATH_LD])dnl
  1.2046  AC_REQUIRE([LT_PATH_NM])dnl
  1.2047 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2048  m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2049  m4_require([_LT_DECL_EGREP])dnl
  1.2050  m4_require([_LT_DECL_SED])dnl
  1.2051 @@ -4178,27 +4553,37 @@
  1.2052  AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.2053  m4_if([$1], [CXX], [
  1.2054    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2055 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2056    case $host_os in
  1.2057    aix[[4-9]]*)
  1.2058      # If we're using GNU nm, then we don't want the "-C" option.
  1.2059      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2060 +    # Also, AIX nm treats weak defined symbols like other global defined
  1.2061 +    # symbols, whereas GNU nm marks them as "W".
  1.2062      if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2063 -      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2064 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2065      else
  1.2066        _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2067      fi
  1.2068      ;;
  1.2069    pw32*)
  1.2070      _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.2071 -  ;;
  1.2072 +    ;;
  1.2073    cygwin* | mingw* | cegcc*)
  1.2074 -    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2075 -  ;;
  1.2076 +    case $cc_basename in
  1.2077 +    cl*)
  1.2078 +      _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2079 +      ;;
  1.2080 +    *)
  1.2081 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2082 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2083 +      ;;
  1.2084 +    esac
  1.2085 +    ;;
  1.2086    *)
  1.2087      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.2088 -  ;;
  1.2089 +    ;;
  1.2090    esac
  1.2091 -  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.2092  ], [
  1.2093    runpath_var=
  1.2094    _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2095 @@ -4213,7 +4598,6 @@
  1.2096    _LT_TAGVAR(hardcode_direct, $1)=no
  1.2097    _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2098    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2099 -  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2100    _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2101    _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2102    _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2103 @@ -4261,7 +4645,33 @@
  1.2104    esac
  1.2105  
  1.2106    _LT_TAGVAR(ld_shlibs, $1)=yes
  1.2107 +
  1.2108 +  # On some targets, GNU ld is compatible enough with the native linker
  1.2109 +  # that we're better off using the native interface for both.
  1.2110 +  lt_use_gnu_ld_interface=no
  1.2111    if test "$with_gnu_ld" = yes; then
  1.2112 +    case $host_os in
  1.2113 +      aix*)
  1.2114 +	# The AIX port of GNU ld has always aspired to compatibility
  1.2115 +	# with the native linker.  However, as the warning in the GNU ld
  1.2116 +	# block says, versions before 2.19.5* couldn't really create working
  1.2117 +	# shared libraries, regardless of the interface used.
  1.2118 +	case `$LD -v 2>&1` in
  1.2119 +	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  1.2120 +	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  1.2121 +	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  1.2122 +	  *)
  1.2123 +	    lt_use_gnu_ld_interface=yes
  1.2124 +	    ;;
  1.2125 +	esac
  1.2126 +	;;
  1.2127 +      *)
  1.2128 +	lt_use_gnu_ld_interface=yes
  1.2129 +	;;
  1.2130 +    esac
  1.2131 +  fi
  1.2132 +
  1.2133 +  if test "$lt_use_gnu_ld_interface" = yes; then
  1.2134      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.2135      wlarc='${wl}'
  1.2136  
  1.2137 @@ -4279,6 +4689,7 @@
  1.2138      fi
  1.2139      supports_anon_versioning=no
  1.2140      case `$LD -v 2>&1` in
  1.2141 +      *GNU\ gold*) supports_anon_versioning=yes ;;
  1.2142        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.2143        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.2144        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.2145 @@ -4294,11 +4705,12 @@
  1.2146  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2147  	cat <<_LT_EOF 1>&2
  1.2148  
  1.2149 -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.2150 +*** Warning: the GNU linker, at least up to release 2.19, is reported
  1.2151  *** to be unable to reliably create shared libraries on AIX.
  1.2152  *** Therefore, libtool is disabling shared libraries support.  If you
  1.2153 -*** really care for shared libraries, you may want to modify your PATH
  1.2154 -*** so that a non-GNU linker is found, and then restart.
  1.2155 +*** really care for shared libraries, you may want to install binutils
  1.2156 +*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  1.2157 +*** You will then need to restart the configuration process.
  1.2158  
  1.2159  _LT_EOF
  1.2160        fi
  1.2161 @@ -4334,10 +4746,12 @@
  1.2162        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2163        # as there is no search path for DLLs.
  1.2164        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2165 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2166        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2167        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2168        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2169 -      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  1.2170 +      _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  1.2171 +      _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  1.2172  
  1.2173        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2174          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2175 @@ -4355,6 +4769,11 @@
  1.2176        fi
  1.2177        ;;
  1.2178  
  1.2179 +    haiku*)
  1.2180 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2181 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2182 +      ;;
  1.2183 +
  1.2184      interix[[3-9]]*)
  1.2185        _LT_TAGVAR(hardcode_direct, $1)=no
  1.2186        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2187 @@ -4370,7 +4789,7 @@
  1.2188        _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  1.2189        ;;
  1.2190  
  1.2191 -    gnu* | linux* | tpf* | k*bsd*-gnu)
  1.2192 +    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  1.2193        tmp_diet=no
  1.2194        if test "$host_os" = linux-dietlibc; then
  1.2195  	case $cc_basename in
  1.2196 @@ -4380,15 +4799,16 @@
  1.2197        if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  1.2198  	 && test "$tmp_diet" = no
  1.2199        then
  1.2200 -	tmp_addflag=
  1.2201 +	tmp_addflag=' $pic_flag'
  1.2202  	tmp_sharedflag='-shared'
  1.2203  	case $cc_basename,$host_cpu in
  1.2204          pgcc*)				# Portland Group C compiler
  1.2205 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2206 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2207  	  tmp_addflag=' $pic_flag'
  1.2208  	  ;;
  1.2209 -	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.2210 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2211 +	pgf77* | pgf90* | pgf95* | pgfortran*)
  1.2212 +					# Portland Group f77 and f90 compilers
  1.2213 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2214  	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.2215  	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  1.2216  	  tmp_addflag=' -i_dynamic' ;;
  1.2217 @@ -4399,13 +4819,17 @@
  1.2218  	lf95*)				# Lahey Fortran 8.1
  1.2219  	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2220  	  tmp_sharedflag='--shared' ;;
  1.2221 -	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  1.2222 +	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  1.2223  	  tmp_sharedflag='-qmkshrobj'
  1.2224  	  tmp_addflag= ;;
  1.2225 +	nvcc*)	# Cuda Compiler Driver 2.2
  1.2226 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2227 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2228 +	  ;;
  1.2229  	esac
  1.2230  	case `$CC -V 2>&1 | sed 5q` in
  1.2231  	*Sun\ C*)			# Sun C 5.9
  1.2232 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2233 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.2234  	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.2235  	  tmp_sharedflag='-G' ;;
  1.2236  	*Sun\ F*)			# Sun Fortran 8.3
  1.2237 @@ -4421,17 +4845,16 @@
  1.2238          fi
  1.2239  
  1.2240  	case $cc_basename in
  1.2241 -	xlf*)
  1.2242 +	xlf* | bgf* | bgxlf* | mpixlf*)
  1.2243  	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1.2244  	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  1.2245 -	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2246 -	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.2247 -	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  1.2248 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2249 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  1.2250  	  if test "x$supports_anon_versioning" = xyes; then
  1.2251  	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.2252  	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.2253  	      echo "local: *; };" >> $output_objdir/$libname.ver~
  1.2254 -	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2255 +	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.2256  	  fi
  1.2257  	  ;;
  1.2258  	esac
  1.2259 @@ -4445,8 +4868,8 @@
  1.2260  	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.2261  	wlarc=
  1.2262        else
  1.2263 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2264 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2265 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2266 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2267        fi
  1.2268        ;;
  1.2269  
  1.2270 @@ -4464,8 +4887,8 @@
  1.2271  
  1.2272  _LT_EOF
  1.2273        elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2274 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2275 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2276 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2277 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2278        else
  1.2279  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2280        fi
  1.2281 @@ -4511,8 +4934,8 @@
  1.2282  
  1.2283      *)
  1.2284        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.2285 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2286 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2287 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2288 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2289        else
  1.2290  	_LT_TAGVAR(ld_shlibs, $1)=no
  1.2291        fi
  1.2292 @@ -4552,8 +4975,10 @@
  1.2293        else
  1.2294  	# If we're using GNU nm, then we don't want the "-C" option.
  1.2295  	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.2296 +	# Also, AIX nm treats weak defined symbols like other global
  1.2297 +	# defined symbols, whereas GNU nm marks them as "W".
  1.2298  	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.2299 -	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2300 +	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2301  	else
  1.2302  	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  1.2303  	fi
  1.2304 @@ -4640,9 +5065,9 @@
  1.2305  	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2306          # Determine the default libpath from the value encoded in an
  1.2307          # empty executable.
  1.2308 -        _LT_SYS_MODULE_PATH_AIX
  1.2309 +        _LT_SYS_MODULE_PATH_AIX([$1])
  1.2310          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2311 -        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2312 +        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2313        else
  1.2314  	if test "$host_cpu" = ia64; then
  1.2315  	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2316 @@ -4651,14 +5076,19 @@
  1.2317  	else
  1.2318  	 # Determine the default libpath from the value encoded in an
  1.2319  	 # empty executable.
  1.2320 -	 _LT_SYS_MODULE_PATH_AIX
  1.2321 +	 _LT_SYS_MODULE_PATH_AIX([$1])
  1.2322  	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2323  	  # Warning - without using the other run time loading flags,
  1.2324  	  # -berok will link without error, but may produce a broken library.
  1.2325  	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2326  	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2327 -	  # Exported symbols can be pulled into shared objects from archives
  1.2328 -	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2329 +	  if test "$with_gnu_ld" = yes; then
  1.2330 +	    # We only use this code for GNU lds that support --whole-archive.
  1.2331 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2332 +	  else
  1.2333 +	    # Exported symbols can be pulled into shared objects from archives
  1.2334 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2335 +	  fi
  1.2336  	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2337  	  # This is similar to how AIX traditionally builds its shared libraries.
  1.2338  	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  1.2339 @@ -4690,20 +5120,64 @@
  1.2340        # Microsoft Visual C++.
  1.2341        # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2342        # no search path for DLLs.
  1.2343 -      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2344 -      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2345 -      # Tell ltmain to make .lib files, not .a files.
  1.2346 -      libext=lib
  1.2347 -      # Tell ltmain to make .dll files, not .so files.
  1.2348 -      shrext_cmds=".dll"
  1.2349 -      # FIXME: Setting linknames here is a bad hack.
  1.2350 -      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2351 -      # The linker will automatically build a .lib file if we build a DLL.
  1.2352 -      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2353 -      # FIXME: Should let the user specify the lib program.
  1.2354 -      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2355 -      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.2356 -      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2357 +      case $cc_basename in
  1.2358 +      cl*)
  1.2359 +	# Native MSVC
  1.2360 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2361 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2362 +	_LT_TAGVAR(always_export_symbols, $1)=yes
  1.2363 +	_LT_TAGVAR(file_list_spec, $1)='@'
  1.2364 +	# Tell ltmain to make .lib files, not .a files.
  1.2365 +	libext=lib
  1.2366 +	# Tell ltmain to make .dll files, not .so files.
  1.2367 +	shrext_cmds=".dll"
  1.2368 +	# FIXME: Setting linknames here is a bad hack.
  1.2369 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2370 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2371 +	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2372 +	  else
  1.2373 +	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2374 +	  fi~
  1.2375 +	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  1.2376 +	  linknames='
  1.2377 +	# The linker will not automatically build a static lib if we build a DLL.
  1.2378 +	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2379 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2380 +	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  1.2381 +	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  1.2382 +	# Don't use ranlib
  1.2383 +	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2384 +	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2385 +	  lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2386 +	  case $lt_outputfile in
  1.2387 +	    *.exe|*.EXE) ;;
  1.2388 +	    *)
  1.2389 +	      lt_outputfile="$lt_outputfile.exe"
  1.2390 +	      lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2391 +	      ;;
  1.2392 +	  esac~
  1.2393 +	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2394 +	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2395 +	    $RM "$lt_outputfile.manifest";
  1.2396 +	  fi'
  1.2397 +	;;
  1.2398 +      *)
  1.2399 +	# Assume MSVC wrapper
  1.2400 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2401 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2402 +	# Tell ltmain to make .lib files, not .a files.
  1.2403 +	libext=lib
  1.2404 +	# Tell ltmain to make .dll files, not .so files.
  1.2405 +	shrext_cmds=".dll"
  1.2406 +	# FIXME: Setting linknames here is a bad hack.
  1.2407 +	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  1.2408 +	# The linker will automatically build a .lib file if we build a DLL.
  1.2409 +	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2410 +	# FIXME: Should let the user specify the lib program.
  1.2411 +	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.2412 +	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2413 +	;;
  1.2414 +      esac
  1.2415        ;;
  1.2416  
  1.2417      darwin* | rhapsody*)
  1.2418 @@ -4716,10 +5190,6 @@
  1.2419        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2420        ;;
  1.2421  
  1.2422 -    freebsd1*)
  1.2423 -      _LT_TAGVAR(ld_shlibs, $1)=no
  1.2424 -      ;;
  1.2425 -
  1.2426      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.2427      # support.  Future versions do this automatically, but an explicit c++rt0.o
  1.2428      # does not break anything, and helps significantly (at the cost of a little
  1.2429 @@ -4732,7 +5202,7 @@
  1.2430        ;;
  1.2431  
  1.2432      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.2433 -    freebsd2*)
  1.2434 +    freebsd2.*)
  1.2435        _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.2436        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2437        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2438 @@ -4741,7 +5211,7 @@
  1.2439  
  1.2440      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.2441      freebsd* | dragonfly*)
  1.2442 -      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.2443 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.2444        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.2445        _LT_TAGVAR(hardcode_direct, $1)=yes
  1.2446        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.2447 @@ -4749,7 +5219,7 @@
  1.2448  
  1.2449      hpux9*)
  1.2450        if test "$GCC" = yes; then
  1.2451 -	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2452 +	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2453        else
  1.2454  	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2455        fi
  1.2456 @@ -4764,14 +5234,13 @@
  1.2457        ;;
  1.2458  
  1.2459      hpux10*)
  1.2460 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2461 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2462 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2463 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2464        else
  1.2465  	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.2466        fi
  1.2467        if test "$with_gnu_ld" = no; then
  1.2468  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2469 -	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.2470  	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2471  	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.2472  	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.2473 @@ -4783,16 +5252,16 @@
  1.2474        ;;
  1.2475  
  1.2476      hpux11*)
  1.2477 -      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.2478 +      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  1.2479  	case $host_cpu in
  1.2480  	hppa*64*)
  1.2481  	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2482  	  ;;
  1.2483  	ia64*)
  1.2484 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2485 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2486  	  ;;
  1.2487  	*)
  1.2488 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2489 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2490  	  ;;
  1.2491  	esac
  1.2492        else
  1.2493 @@ -4804,7 +5273,14 @@
  1.2494  	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.2495  	  ;;
  1.2496  	*)
  1.2497 -	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.2498 +	m4_if($1, [], [
  1.2499 +	  # Older versions of the 11.00 compiler do not understand -b yet
  1.2500 +	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  1.2501 +	  _LT_LINKER_OPTION([if $CC understands -b],
  1.2502 +	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  1.2503 +	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  1.2504 +	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  1.2505 +	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  1.2506  	  ;;
  1.2507  	esac
  1.2508        fi
  1.2509 @@ -4832,19 +5308,34 @@
  1.2510  
  1.2511      irix5* | irix6* | nonstopux*)
  1.2512        if test "$GCC" = yes; then
  1.2513 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2514 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2515  	# Try to use the -exported_symbol ld option, if it does not
  1.2516  	# work, assume that -exports_file does not work either and
  1.2517  	# implicitly export all symbols.
  1.2518 -        save_LDFLAGS="$LDFLAGS"
  1.2519 -        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2520 -        AC_LINK_IFELSE(int foo(void) {},
  1.2521 -          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  1.2522 -        )
  1.2523 -        LDFLAGS="$save_LDFLAGS"
  1.2524 +	# This should be the same for all languages, so no per-tag cache variable.
  1.2525 +	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  1.2526 +	  [lt_cv_irix_exported_symbol],
  1.2527 +	  [save_LDFLAGS="$LDFLAGS"
  1.2528 +	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.2529 +	   AC_LINK_IFELSE(
  1.2530 +	     [AC_LANG_SOURCE(
  1.2531 +	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  1.2532 +			      [C++], [[int foo (void) { return 0; }]],
  1.2533 +			      [Fortran 77], [[
  1.2534 +      subroutine foo
  1.2535 +      end]],
  1.2536 +			      [Fortran], [[
  1.2537 +      subroutine foo
  1.2538 +      end]])])],
  1.2539 +	      [lt_cv_irix_exported_symbol=yes],
  1.2540 +	      [lt_cv_irix_exported_symbol=no])
  1.2541 +           LDFLAGS="$save_LDFLAGS"])
  1.2542 +	if test "$lt_cv_irix_exported_symbol" = yes; then
  1.2543 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  1.2544 +	fi
  1.2545        else
  1.2546 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2547 -	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  1.2548 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2549 +	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  1.2550        fi
  1.2551        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2552        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2553 @@ -4906,17 +5397,17 @@
  1.2554        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2555        _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.2556        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2557 -      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  1.2558 +      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  1.2559        _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  1.2560        ;;
  1.2561  
  1.2562      osf3*)
  1.2563        if test "$GCC" = yes; then
  1.2564  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2565 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2566 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2567        else
  1.2568  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2569 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2570 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2571        fi
  1.2572        _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.2573        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2574 @@ -4926,13 +5417,13 @@
  1.2575      osf4* | osf5*)	# as osf3* with the addition of -msym flag
  1.2576        if test "$GCC" = yes; then
  1.2577  	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.2578 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2579 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.2580  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2581        else
  1.2582  	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.2583 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2584 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2585  	_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  1.2586 -	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  1.2587 +	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  1.2588  
  1.2589  	# Both c and cxx compiler support -rpath directly
  1.2590  	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.2591 @@ -4945,9 +5436,9 @@
  1.2592        _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  1.2593        if test "$GCC" = yes; then
  1.2594  	wlarc='${wl}'
  1.2595 -	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2596 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.2597  	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.2598 -	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  1.2599 +	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  1.2600        else
  1.2601  	case `$CC -V 2>&1` in
  1.2602  	*"Compilers 5.0"*)
  1.2603 @@ -5123,36 +5614,38 @@
  1.2604        # Test whether the compiler implicitly links with -lc since on some
  1.2605        # systems, -lgcc has to come before -lc. If gcc already passes -lc
  1.2606        # to ld, don't add -lc before -lgcc.
  1.2607 -      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  1.2608 -      $RM conftest*
  1.2609 -      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2610 -
  1.2611 -      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2612 -        soname=conftest
  1.2613 -        lib=conftest
  1.2614 -        libobjs=conftest.$ac_objext
  1.2615 -        deplibs=
  1.2616 -        wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2617 -	pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2618 -        compiler_flags=-v
  1.2619 -        linker_flags=-v
  1.2620 -        verstring=
  1.2621 -        output_objdir=.
  1.2622 -        libname=conftest
  1.2623 -        lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2624 -        _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2625 -        if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2626 -        then
  1.2627 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2628 -        else
  1.2629 -	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2630 -        fi
  1.2631 -        _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2632 -      else
  1.2633 -        cat conftest.err 1>&5
  1.2634 -      fi
  1.2635 -      $RM conftest*
  1.2636 -      AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  1.2637 +      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  1.2638 +	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  1.2639 +	[$RM conftest*
  1.2640 +	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2641 +
  1.2642 +	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  1.2643 +	  soname=conftest
  1.2644 +	  lib=conftest
  1.2645 +	  libobjs=conftest.$ac_objext
  1.2646 +	  deplibs=
  1.2647 +	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  1.2648 +	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  1.2649 +	  compiler_flags=-v
  1.2650 +	  linker_flags=-v
  1.2651 +	  verstring=
  1.2652 +	  output_objdir=.
  1.2653 +	  libname=conftest
  1.2654 +	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  1.2655 +	  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.2656 +	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  1.2657 +	  then
  1.2658 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2659 +	  else
  1.2660 +	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2661 +	  fi
  1.2662 +	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  1.2663 +	else
  1.2664 +	  cat conftest.err 1>&5
  1.2665 +	fi
  1.2666 +	$RM conftest*
  1.2667 +	])
  1.2668 +      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  1.2669        ;;
  1.2670      esac
  1.2671    fi
  1.2672 @@ -5189,9 +5682,6 @@
  1.2673  _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  1.2674      [Flag to hardcode $libdir into a binary during linking.
  1.2675      This must work even if $libdir does not exist])
  1.2676 -_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  1.2677 -    [[If ld is used when linking, flag to hardcode $libdir into a binary
  1.2678 -    during linking.  This must work even if $libdir does not exist]])
  1.2679  _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  1.2680      [Whether we need a single "-rpath" flag with a separated argument])
  1.2681  _LT_TAGDECL([], [hardcode_direct], [0],
  1.2682 @@ -5217,8 +5707,6 @@
  1.2683      to runtime path list])
  1.2684  _LT_TAGDECL([], [link_all_deplibs], [0],
  1.2685      [Whether libtool must link a program against all its dependency libraries])
  1.2686 -_LT_TAGDECL([], [fix_srcfile_path], [1],
  1.2687 -    [Fix the shell variable $srcfile for the compiler])
  1.2688  _LT_TAGDECL([], [always_export_symbols], [0],
  1.2689      [Set to "yes" if exported symbols are required])
  1.2690  _LT_TAGDECL([], [export_symbols_cmds], [2],
  1.2691 @@ -5229,6 +5717,8 @@
  1.2692      [Symbols that must always be exported])
  1.2693  _LT_TAGDECL([], [prelink_cmds], [2],
  1.2694      [Commands necessary for linking programs (against libraries) with templates])
  1.2695 +_LT_TAGDECL([], [postlink_cmds], [2],
  1.2696 +    [Commands necessary for finishing linking programs])
  1.2697  _LT_TAGDECL([], [file_list_spec], [1],
  1.2698      [Specify filename containing input files])
  1.2699  dnl FIXME: Not yet implemented
  1.2700 @@ -5322,14 +5812,15 @@
  1.2701  ])# _LT_LANG_C_CONFIG
  1.2702  
  1.2703  
  1.2704 -# _LT_PROG_CXX
  1.2705 -# ------------
  1.2706 -# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  1.2707 -# compiler, we have our own version here.
  1.2708 -m4_defun([_LT_PROG_CXX],
  1.2709 -[
  1.2710 -pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  1.2711 -AC_PROG_CXX
  1.2712 +# _LT_LANG_CXX_CONFIG([TAG])
  1.2713 +# --------------------------
  1.2714 +# Ensure that the configuration variables for a C++ compiler are suitably
  1.2715 +# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2716 +# the compiler configuration to `libtool'.
  1.2717 +m4_defun([_LT_LANG_CXX_CONFIG],
  1.2718 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2719 +m4_require([_LT_DECL_EGREP])dnl
  1.2720 +m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  1.2721  if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.2722      ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.2723      (test "X$CXX" != "Xg++"))) ; then
  1.2724 @@ -5337,22 +5828,6 @@
  1.2725  else
  1.2726    _lt_caught_CXX_error=yes
  1.2727  fi
  1.2728 -popdef([AC_MSG_ERROR])
  1.2729 -])# _LT_PROG_CXX
  1.2730 -
  1.2731 -dnl aclocal-1.4 backwards compatibility:
  1.2732 -dnl AC_DEFUN([_LT_PROG_CXX], [])
  1.2733 -
  1.2734 -
  1.2735 -# _LT_LANG_CXX_CONFIG([TAG])
  1.2736 -# --------------------------
  1.2737 -# Ensure that the configuration variables for a C++ compiler are suitably
  1.2738 -# defined.  These variables are subsequently used by _LT_CONFIG to write
  1.2739 -# the compiler configuration to `libtool'.
  1.2740 -m4_defun([_LT_LANG_CXX_CONFIG],
  1.2741 -[AC_REQUIRE([_LT_PROG_CXX])dnl
  1.2742 -m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2743 -m4_require([_LT_DECL_EGREP])dnl
  1.2744  
  1.2745  AC_LANG_PUSH(C++)
  1.2746  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.2747 @@ -5364,7 +5839,6 @@
  1.2748  _LT_TAGVAR(hardcode_direct, $1)=no
  1.2749  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.2750  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.2751 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.2752  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.2753  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.2754  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.2755 @@ -5374,6 +5848,8 @@
  1.2756  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.2757  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.2758  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.2759 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.2760 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.2761  _LT_TAGVAR(no_undefined_flag, $1)=
  1.2762  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.2763  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.2764 @@ -5405,6 +5881,7 @@
  1.2765  
  1.2766    # Allow CC to be a program name with arguments.
  1.2767    lt_save_CC=$CC
  1.2768 +  lt_save_CFLAGS=$CFLAGS
  1.2769    lt_save_LD=$LD
  1.2770    lt_save_GCC=$GCC
  1.2771    GCC=$GXX
  1.2772 @@ -5422,6 +5899,7 @@
  1.2773    fi
  1.2774    test -z "${LDCXX+set}" || LD=$LDCXX
  1.2775    CC=${CXX-"c++"}
  1.2776 +  CFLAGS=$CXXFLAGS
  1.2777    compiler=$CC
  1.2778    _LT_TAGVAR(compiler, $1)=$CC
  1.2779    _LT_CC_BASENAME([$compiler])
  1.2780 @@ -5443,8 +5921,8 @@
  1.2781        # Check if GNU C++ uses GNU ld as the underlying linker, since the
  1.2782        # archiving commands below assume that GNU ld is being used.
  1.2783        if test "$with_gnu_ld" = yes; then
  1.2784 -        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2785 -        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2786 +        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2787 +        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.2788  
  1.2789          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.2790          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.2791 @@ -5476,7 +5954,7 @@
  1.2792        # Commands to make compiler produce verbose output that lists
  1.2793        # what "hidden" libraries, object files and flags are used when
  1.2794        # linking a shared library.
  1.2795 -      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.2796 +      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.2797  
  1.2798      else
  1.2799        GXX=no
  1.2800 @@ -5585,10 +6063,10 @@
  1.2801            _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.2802            # Determine the default libpath from the value encoded in an empty
  1.2803            # executable.
  1.2804 -          _LT_SYS_MODULE_PATH_AIX
  1.2805 +          _LT_SYS_MODULE_PATH_AIX([$1])
  1.2806            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2807  
  1.2808 -          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2809 +          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.2810          else
  1.2811            if test "$host_cpu" = ia64; then
  1.2812  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.2813 @@ -5597,14 +6075,19 @@
  1.2814            else
  1.2815  	    # Determine the default libpath from the value encoded in an
  1.2816  	    # empty executable.
  1.2817 -	    _LT_SYS_MODULE_PATH_AIX
  1.2818 +	    _LT_SYS_MODULE_PATH_AIX([$1])
  1.2819  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.2820  	    # Warning - without using the other run time loading flags,
  1.2821  	    # -berok will link without error, but may produce a broken library.
  1.2822  	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.2823  	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.2824 -	    # Exported symbols can be pulled into shared objects from archives
  1.2825 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2826 +	    if test "$with_gnu_ld" = yes; then
  1.2827 +	      # We only use this code for GNU lds that support --whole-archive.
  1.2828 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.2829 +	    else
  1.2830 +	      # Exported symbols can be pulled into shared objects from archives
  1.2831 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.2832 +	    fi
  1.2833  	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.2834  	    # This is similar to how AIX traditionally builds its shared
  1.2835  	    # libraries.
  1.2836 @@ -5634,28 +6117,75 @@
  1.2837          ;;
  1.2838  
  1.2839        cygwin* | mingw* | pw32* | cegcc*)
  1.2840 -        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2841 -        # as there is no search path for DLLs.
  1.2842 -        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2843 -        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2844 -        _LT_TAGVAR(always_export_symbols, $1)=no
  1.2845 -        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2846 -
  1.2847 -        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2848 -          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2849 -          # If the export-symbols file already is a .def file (1st line
  1.2850 -          # is EXPORTS), use it as is; otherwise, prepend...
  1.2851 -          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2852 -	    cp $export_symbols $output_objdir/$soname.def;
  1.2853 -          else
  1.2854 -	    echo EXPORTS > $output_objdir/$soname.def;
  1.2855 -	    cat $export_symbols >> $output_objdir/$soname.def;
  1.2856 -          fi~
  1.2857 -          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2858 -        else
  1.2859 -          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2860 -        fi
  1.2861 -        ;;
  1.2862 +	case $GXX,$cc_basename in
  1.2863 +	,cl* | no,cl*)
  1.2864 +	  # Native MSVC
  1.2865 +	  # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.2866 +	  # no search path for DLLs.
  1.2867 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.2868 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2869 +	  _LT_TAGVAR(always_export_symbols, $1)=yes
  1.2870 +	  _LT_TAGVAR(file_list_spec, $1)='@'
  1.2871 +	  # Tell ltmain to make .lib files, not .a files.
  1.2872 +	  libext=lib
  1.2873 +	  # Tell ltmain to make .dll files, not .so files.
  1.2874 +	  shrext_cmds=".dll"
  1.2875 +	  # FIXME: Setting linknames here is a bad hack.
  1.2876 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  1.2877 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2878 +	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  1.2879 +	    else
  1.2880 +	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  1.2881 +	    fi~
  1.2882 +	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  1.2883 +	    linknames='
  1.2884 +	  # The linker will not automatically build a static lib if we build a DLL.
  1.2885 +	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.2886 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2887 +	  # Don't use ranlib
  1.2888 +	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  1.2889 +	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  1.2890 +	    lt_tool_outputfile="@TOOL_OUTPUT@"~
  1.2891 +	    case $lt_outputfile in
  1.2892 +	      *.exe|*.EXE) ;;
  1.2893 +	      *)
  1.2894 +		lt_outputfile="$lt_outputfile.exe"
  1.2895 +		lt_tool_outputfile="$lt_tool_outputfile.exe"
  1.2896 +		;;
  1.2897 +	    esac~
  1.2898 +	    func_to_tool_file "$lt_outputfile"~
  1.2899 +	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  1.2900 +	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  1.2901 +	      $RM "$lt_outputfile.manifest";
  1.2902 +	    fi'
  1.2903 +	  ;;
  1.2904 +	*)
  1.2905 +	  # g++
  1.2906 +	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.2907 +	  # as there is no search path for DLLs.
  1.2908 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.2909 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  1.2910 +	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.2911 +	  _LT_TAGVAR(always_export_symbols, $1)=no
  1.2912 +	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.2913 +
  1.2914 +	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.2915 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2916 +	    # If the export-symbols file already is a .def file (1st line
  1.2917 +	    # is EXPORTS), use it as is; otherwise, prepend...
  1.2918 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.2919 +	      cp $export_symbols $output_objdir/$soname.def;
  1.2920 +	    else
  1.2921 +	      echo EXPORTS > $output_objdir/$soname.def;
  1.2922 +	      cat $export_symbols >> $output_objdir/$soname.def;
  1.2923 +	    fi~
  1.2924 +	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.2925 +	  else
  1.2926 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.2927 +	  fi
  1.2928 +	  ;;
  1.2929 +	esac
  1.2930 +	;;
  1.2931        darwin* | rhapsody*)
  1.2932          _LT_DARWIN_LINKER_FEATURES($1)
  1.2933  	;;
  1.2934 @@ -5678,7 +6208,7 @@
  1.2935          esac
  1.2936          ;;
  1.2937  
  1.2938 -      freebsd[[12]]*)
  1.2939 +      freebsd2.*)
  1.2940          # C++ shared libraries reported to be fairly broken before
  1.2941  	# switch to ELF
  1.2942          _LT_TAGVAR(ld_shlibs, $1)=no
  1.2943 @@ -5697,6 +6227,11 @@
  1.2944        gnu*)
  1.2945          ;;
  1.2946  
  1.2947 +      haiku*)
  1.2948 +        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.2949 +        _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.2950 +        ;;
  1.2951 +
  1.2952        hpux9*)
  1.2953          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.2954          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.2955 @@ -5721,11 +6256,11 @@
  1.2956              # explicitly linking system object files so we need to strip them
  1.2957              # from the output so that they don't get included in the library
  1.2958              # dependencies.
  1.2959 -            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.2960 +            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.2961              ;;
  1.2962            *)
  1.2963              if test "$GXX" = yes; then
  1.2964 -              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2965 +              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.2966              else
  1.2967                # FIXME: insert proper C++ library support
  1.2968                _LT_TAGVAR(ld_shlibs, $1)=no
  1.2969 @@ -5786,7 +6321,7 @@
  1.2970  	    # explicitly linking system object files so we need to strip them
  1.2971  	    # from the output so that they don't get included in the library
  1.2972  	    # dependencies.
  1.2973 -	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.2974 +	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.2975  	    ;;
  1.2976            *)
  1.2977  	    if test "$GXX" = yes; then
  1.2978 @@ -5796,10 +6331,10 @@
  1.2979  	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2980  	            ;;
  1.2981  	          ia64*)
  1.2982 -	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2983 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2984  	            ;;
  1.2985  	          *)
  1.2986 -	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2987 +	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.2988  	            ;;
  1.2989  	        esac
  1.2990  	      fi
  1.2991 @@ -5829,7 +6364,7 @@
  1.2992          case $cc_basename in
  1.2993            CC*)
  1.2994  	    # SGI C++
  1.2995 -	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2996 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.2997  
  1.2998  	    # Archives containing C++ object files must be created using
  1.2999  	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.3000 @@ -5840,9 +6375,9 @@
  1.3001            *)
  1.3002  	    if test "$GXX" = yes; then
  1.3003  	      if test "$with_gnu_ld" = no; then
  1.3004 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3005 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3006  	      else
  1.3007 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  1.3008 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  1.3009  	      fi
  1.3010  	    fi
  1.3011  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3012 @@ -5853,7 +6388,7 @@
  1.3013          _LT_TAGVAR(inherit_rpath, $1)=yes
  1.3014          ;;
  1.3015  
  1.3016 -      linux* | k*bsd*-gnu)
  1.3017 +      linux* | k*bsd*-gnu | kopensolaris*-gnu)
  1.3018          case $cc_basename in
  1.3019            KCC*)
  1.3020  	    # Kuck and Associates, Inc. (KAI) C++ Compiler
  1.3021 @@ -5871,7 +6406,7 @@
  1.3022  	    # explicitly linking system object files so we need to strip them
  1.3023  	    # from the output so that they don't get included in the library
  1.3024  	    # dependencies.
  1.3025 -	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3026 +	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.3027  
  1.3028  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.3029  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3030 @@ -5908,26 +6443,26 @@
  1.3031            pgCC* | pgcpp*)
  1.3032              # Portland Group C++ compiler
  1.3033  	    case `$CC -V` in
  1.3034 -	    *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  1.3035 +	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  1.3036  	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  1.3037  		rm -rf $tpldir~
  1.3038  		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  1.3039 -		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  1.3040 +		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  1.3041  	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  1.3042  		rm -rf $tpldir~
  1.3043  		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  1.3044 -		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  1.3045 +		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  1.3046  		$RANLIB $oldlib'
  1.3047  	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  1.3048  		rm -rf $tpldir~
  1.3049  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3050 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3051 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3052  	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  1.3053  		rm -rf $tpldir~
  1.3054  		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  1.3055 -		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3056 +		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3057  	      ;;
  1.3058 -	    *) # Version 6 will use weak symbols
  1.3059 +	    *) # Version 6 and above use weak symbols
  1.3060  	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.3061  	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  1.3062  	      ;;
  1.3063 @@ -5935,7 +6470,7 @@
  1.3064  
  1.3065  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.3066  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3067 -	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3068 +	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3069              ;;
  1.3070  	  cxx*)
  1.3071  	    # Compaq C++
  1.3072 @@ -5954,9 +6489,9 @@
  1.3073  	    # explicitly linking system object files so we need to strip them
  1.3074  	    # from the output so that they don't get included in the library
  1.3075  	    # dependencies.
  1.3076 -	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3077 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  1.3078  	    ;;
  1.3079 -	  xl*)
  1.3080 +	  xl* | mpixl* | bgxl*)
  1.3081  	    # IBM XL 8.0 on PPC, with GNU ld
  1.3082  	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3083  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.3084 @@ -5976,13 +6511,13 @@
  1.3085  	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.3086  	      _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  1.3087  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.3088 -	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3089 +	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  1.3090  	      _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.3091  
  1.3092  	      # Not sure whether something based on
  1.3093  	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  1.3094  	      # would be better.
  1.3095 -	      output_verbose_link_cmd='echo'
  1.3096 +	      output_verbose_link_cmd='func_echo_all'
  1.3097  
  1.3098  	      # Archives containing C++ object files must be created using
  1.3099  	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3100 @@ -6051,7 +6586,7 @@
  1.3101  	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.3102  	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.3103  	  fi
  1.3104 -	  output_verbose_link_cmd=echo
  1.3105 +	  output_verbose_link_cmd=func_echo_all
  1.3106  	else
  1.3107  	  _LT_TAGVAR(ld_shlibs, $1)=no
  1.3108  	fi
  1.3109 @@ -6086,15 +6621,15 @@
  1.3110  	    case $host in
  1.3111  	      osf3*)
  1.3112  	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3113 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3114 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3115  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.3116  		;;
  1.3117  	      *)
  1.3118  	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.3119 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3120 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  1.3121  	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.3122  	          echo "-hidden">> $lib.exp~
  1.3123 -	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  1.3124 +	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  1.3125  	          $RM $lib.exp'
  1.3126  	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.3127  		;;
  1.3128 @@ -6110,17 +6645,17 @@
  1.3129  	    # explicitly linking system object files so we need to strip them
  1.3130  	    # from the output so that they don't get included in the library
  1.3131  	    # dependencies.
  1.3132 -	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  1.3133 +	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  1.3134  	    ;;
  1.3135  	  *)
  1.3136  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3137  	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.3138  	      case $host in
  1.3139  	        osf3*)
  1.3140 -	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3141 +	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3142  		  ;;
  1.3143  	        *)
  1.3144 -	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3145 +	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.3146  		  ;;
  1.3147  	      esac
  1.3148  
  1.3149 @@ -6130,7 +6665,7 @@
  1.3150  	      # Commands to make compiler produce verbose output that lists
  1.3151  	      # what "hidden" libraries, object files and flags are used when
  1.3152  	      # linking a shared library.
  1.3153 -	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3154 +	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3155  
  1.3156  	    else
  1.3157  	      # FIXME: insert proper C++ library support
  1.3158 @@ -6166,7 +6701,7 @@
  1.3159  
  1.3160        solaris*)
  1.3161          case $cc_basename in
  1.3162 -          CC*)
  1.3163 +          CC* | sunCC*)
  1.3164  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.3165              _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.3166  	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.3167 @@ -6187,7 +6722,7 @@
  1.3168  	    esac
  1.3169  	    _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.3170  
  1.3171 -	    output_verbose_link_cmd='echo'
  1.3172 +	    output_verbose_link_cmd='func_echo_all'
  1.3173  
  1.3174  	    # Archives containing C++ object files must be created using
  1.3175  	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.3176 @@ -6207,14 +6742,14 @@
  1.3177  	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.3178  	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  1.3179  	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  1.3180 -	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.3181 +	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.3182  	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  1.3183 -		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3184 +		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  1.3185  
  1.3186  	        # Commands to make compiler produce verbose output that lists
  1.3187  	        # what "hidden" libraries, object files and flags are used when
  1.3188  	        # linking a shared library.
  1.3189 -	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3190 +	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3191  	      else
  1.3192  	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
  1.3193  	        # platform.
  1.3194 @@ -6225,7 +6760,7 @@
  1.3195  	        # Commands to make compiler produce verbose output that lists
  1.3196  	        # what "hidden" libraries, object files and flags are used when
  1.3197  	        # linking a shared library.
  1.3198 -	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  1.3199 +	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  1.3200  	      fi
  1.3201  
  1.3202  	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.3203 @@ -6279,6 +6814,10 @@
  1.3204            CC*)
  1.3205  	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3206  	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3207 +	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  1.3208 +	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
  1.3209 +	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  1.3210 +	      '"$_LT_TAGVAR(reload_cmds, $1)"
  1.3211  	    ;;
  1.3212  	  *)
  1.3213  	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.3214 @@ -6334,6 +6873,7 @@
  1.3215    fi # test -n "$compiler"
  1.3216  
  1.3217    CC=$lt_save_CC
  1.3218 +  CFLAGS=$lt_save_CFLAGS
  1.3219    LDCXX=$LD
  1.3220    LD=$lt_save_LD
  1.3221    GCC=$lt_save_GCC
  1.3222 @@ -6348,6 +6888,29 @@
  1.3223  ])# _LT_LANG_CXX_CONFIG
  1.3224  
  1.3225  
  1.3226 +# _LT_FUNC_STRIPNAME_CNF
  1.3227 +# ----------------------
  1.3228 +# func_stripname_cnf prefix suffix name
  1.3229 +# strip PREFIX and SUFFIX off of NAME.
  1.3230 +# PREFIX and SUFFIX must not contain globbing or regex special
  1.3231 +# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3232 +# dot (in which case that matches only a dot).
  1.3233 +#
  1.3234 +# This function is identical to the (non-XSI) version of func_stripname,
  1.3235 +# except this one can be used by m4 code that may be executed by configure,
  1.3236 +# rather than the libtool script.
  1.3237 +m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  1.3238 +AC_REQUIRE([_LT_DECL_SED])
  1.3239 +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  1.3240 +func_stripname_cnf ()
  1.3241 +{
  1.3242 +  case ${2} in
  1.3243 +  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  1.3244 +  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  1.3245 +  esac
  1.3246 +} # func_stripname_cnf
  1.3247 +])# _LT_FUNC_STRIPNAME_CNF
  1.3248 +
  1.3249  # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  1.3250  # ---------------------------------
  1.3251  # Figure out "hidden" library dependencies from verbose
  1.3252 @@ -6356,6 +6919,7 @@
  1.3253  # objects, libraries and library flags.
  1.3254  m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  1.3255  [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.3256 +AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  1.3257  # Dependencies to place before and after the object being linked:
  1.3258  _LT_TAGVAR(predep_objects, $1)=
  1.3259  _LT_TAGVAR(postdep_objects, $1)=
  1.3260 @@ -6405,7 +6969,20 @@
  1.3261    }
  1.3262  };
  1.3263  _LT_EOF
  1.3264 +], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  1.3265 +package foo
  1.3266 +func foo() {
  1.3267 +}
  1.3268 +_LT_EOF
  1.3269  ])
  1.3270 +
  1.3271 +_lt_libdeps_save_CFLAGS=$CFLAGS
  1.3272 +case "$CC $CFLAGS " in #(
  1.3273 +*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  1.3274 +*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  1.3275 +*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  1.3276 +esac
  1.3277 +
  1.3278  dnl Parse the compiler output and extract the necessary
  1.3279  dnl objects, libraries and library flags.
  1.3280  if AC_TRY_EVAL(ac_compile); then
  1.3281 @@ -6417,7 +6994,7 @@
  1.3282    pre_test_object_deps_done=no
  1.3283  
  1.3284    for p in `eval "$output_verbose_link_cmd"`; do
  1.3285 -    case $p in
  1.3286 +    case ${prev}${p} in
  1.3287  
  1.3288      -L* | -R* | -l*)
  1.3289         # Some compilers place space between "-{L,R}" and the path.
  1.3290 @@ -6426,13 +7003,22 @@
  1.3291            test $p = "-R"; then
  1.3292  	 prev=$p
  1.3293  	 continue
  1.3294 -       else
  1.3295 -	 prev=
  1.3296         fi
  1.3297  
  1.3298 +       # Expand the sysroot to ease extracting the directories later.
  1.3299 +       if test -z "$prev"; then
  1.3300 +         case $p in
  1.3301 +         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  1.3302 +         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  1.3303 +         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  1.3304 +         esac
  1.3305 +       fi
  1.3306 +       case $p in
  1.3307 +       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  1.3308 +       esac
  1.3309         if test "$pre_test_object_deps_done" = no; then
  1.3310 -	 case $p in
  1.3311 -	 -L* | -R*)
  1.3312 +	 case ${prev} in
  1.3313 +	 -L | -R)
  1.3314  	   # Internal compiler library paths should come after those
  1.3315  	   # provided the user.  The postdeps already come after the
  1.3316  	   # user supplied libs so there is no need to process them.
  1.3317 @@ -6452,8 +7038,10 @@
  1.3318  	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  1.3319  	 fi
  1.3320         fi
  1.3321 +       prev=
  1.3322         ;;
  1.3323  
  1.3324 +    *.lto.$objext) ;; # Ignore GCC LTO objects
  1.3325      *.$objext)
  1.3326         # This assumes that the test object file only shows up
  1.3327         # once in the compiler output.
  1.3328 @@ -6489,6 +7077,7 @@
  1.3329  fi
  1.3330  
  1.3331  $RM -f confest.$objext
  1.3332 +CFLAGS=$_lt_libdeps_save_CFLAGS
  1.3333  
  1.3334  # PORTME: override above test on systems where it is broken
  1.3335  m4_if([$1], [CXX],
  1.3336 @@ -6525,7 +7114,7 @@
  1.3337  
  1.3338  solaris*)
  1.3339    case $cc_basename in
  1.3340 -  CC*)
  1.3341 +  CC* | sunCC*)
  1.3342      # The more standards-conforming stlport4 library is
  1.3343      # incompatible with the Cstd library. Avoid specifying
  1.3344      # it if it's in CXXFLAGS. Ignore libCrun as
  1.3345 @@ -6569,32 +7158,16 @@
  1.3346  ])# _LT_SYS_HIDDEN_LIBDEPS
  1.3347  
  1.3348  
  1.3349 -# _LT_PROG_F77
  1.3350 -# ------------
  1.3351 -# Since AC_PROG_F77 is broken, in that it returns the empty string
  1.3352 -# if there is no fortran compiler, we have our own version here.
  1.3353 -m4_defun([_LT_PROG_F77],
  1.3354 -[
  1.3355 -pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  1.3356 -AC_PROG_F77
  1.3357 -if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3358 -  _lt_disable_F77=yes
  1.3359 -fi
  1.3360 -popdef([AC_MSG_ERROR])
  1.3361 -])# _LT_PROG_F77
  1.3362 -
  1.3363 -dnl aclocal-1.4 backwards compatibility:
  1.3364 -dnl AC_DEFUN([_LT_PROG_F77], [])
  1.3365 -
  1.3366 -
  1.3367  # _LT_LANG_F77_CONFIG([TAG])
  1.3368  # --------------------------
  1.3369  # Ensure that the configuration variables for a Fortran 77 compiler are
  1.3370  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3371  # to write the compiler configuration to `libtool'.
  1.3372  m4_defun([_LT_LANG_F77_CONFIG],
  1.3373 -[AC_REQUIRE([_LT_PROG_F77])dnl
  1.3374 -AC_LANG_PUSH(Fortran 77)
  1.3375 +[AC_LANG_PUSH(Fortran 77)
  1.3376 +if test -z "$F77" || test "X$F77" = "Xno"; then
  1.3377 +  _lt_disable_F77=yes
  1.3378 +fi
  1.3379  
  1.3380  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3381  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3382 @@ -6604,7 +7177,6 @@
  1.3383  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3384  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3385  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3386 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3387  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3388  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3389  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3390 @@ -6613,6 +7185,8 @@
  1.3391  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3392  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3393  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3394 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3395 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3396  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3397  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3398  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3399 @@ -6652,7 +7226,9 @@
  1.3400    # Allow CC to be a program name with arguments.
  1.3401    lt_save_CC="$CC"
  1.3402    lt_save_GCC=$GCC
  1.3403 +  lt_save_CFLAGS=$CFLAGS
  1.3404    CC=${F77-"f77"}
  1.3405 +  CFLAGS=$FFLAGS
  1.3406    compiler=$CC
  1.3407    _LT_TAGVAR(compiler, $1)=$CC
  1.3408    _LT_CC_BASENAME([$compiler])
  1.3409 @@ -6706,38 +7282,24 @@
  1.3410  
  1.3411    GCC=$lt_save_GCC
  1.3412    CC="$lt_save_CC"
  1.3413 +  CFLAGS="$lt_save_CFLAGS"
  1.3414  fi # test "$_lt_disable_F77" != yes
  1.3415  
  1.3416  AC_LANG_POP
  1.3417  ])# _LT_LANG_F77_CONFIG
  1.3418  
  1.3419  
  1.3420 -# _LT_PROG_FC
  1.3421 -# -----------
  1.3422 -# Since AC_PROG_FC is broken, in that it returns the empty string
  1.3423 -# if there is no fortran compiler, we have our own version here.
  1.3424 -m4_defun([_LT_PROG_FC],
  1.3425 -[
  1.3426 -pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  1.3427 -AC_PROG_FC
  1.3428 -if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3429 -  _lt_disable_FC=yes
  1.3430 -fi
  1.3431 -popdef([AC_MSG_ERROR])
  1.3432 -])# _LT_PROG_FC
  1.3433 -
  1.3434 -dnl aclocal-1.4 backwards compatibility:
  1.3435 -dnl AC_DEFUN([_LT_PROG_FC], [])
  1.3436 -
  1.3437 -
  1.3438  # _LT_LANG_FC_CONFIG([TAG])
  1.3439  # -------------------------
  1.3440  # Ensure that the configuration variables for a Fortran compiler are
  1.3441  # suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3442  # to write the compiler configuration to `libtool'.
  1.3443  m4_defun([_LT_LANG_FC_CONFIG],
  1.3444 -[AC_REQUIRE([_LT_PROG_FC])dnl
  1.3445 -AC_LANG_PUSH(Fortran)
  1.3446 +[AC_LANG_PUSH(Fortran)
  1.3447 +
  1.3448 +if test -z "$FC" || test "X$FC" = "Xno"; then
  1.3449 +  _lt_disable_FC=yes
  1.3450 +fi
  1.3451  
  1.3452  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3453  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.3454 @@ -6747,7 +7309,6 @@
  1.3455  _LT_TAGVAR(hardcode_direct, $1)=no
  1.3456  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.3457  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3458 -_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3459  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.3460  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.3461  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.3462 @@ -6756,6 +7317,8 @@
  1.3463  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.3464  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.3465  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3466 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3467 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3468  _LT_TAGVAR(no_undefined_flag, $1)=
  1.3469  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.3470  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3471 @@ -6795,7 +7358,9 @@
  1.3472    # Allow CC to be a program name with arguments.
  1.3473    lt_save_CC="$CC"
  1.3474    lt_save_GCC=$GCC
  1.3475 +  lt_save_CFLAGS=$CFLAGS
  1.3476    CC=${FC-"f95"}
  1.3477 +  CFLAGS=$FCFLAGS
  1.3478    compiler=$CC
  1.3479    GCC=$ac_cv_fc_compiler_gnu
  1.3480  
  1.3481 @@ -6851,7 +7416,8 @@
  1.3482    fi # test -n "$compiler"
  1.3483  
  1.3484    GCC=$lt_save_GCC
  1.3485 -  CC="$lt_save_CC"
  1.3486 +  CC=$lt_save_CC
  1.3487 +  CFLAGS=$lt_save_CFLAGS
  1.3488  fi # test "$_lt_disable_FC" != yes
  1.3489  
  1.3490  AC_LANG_POP
  1.3491 @@ -6888,10 +7454,12 @@
  1.3492  _LT_LINKER_BOILERPLATE
  1.3493  
  1.3494  # Allow CC to be a program name with arguments.
  1.3495 -lt_save_CC="$CC"
  1.3496 +lt_save_CC=$CC
  1.3497 +lt_save_CFLAGS=$CFLAGS
  1.3498  lt_save_GCC=$GCC
  1.3499  GCC=yes
  1.3500  CC=${GCJ-"gcj"}
  1.3501 +CFLAGS=$GCJFLAGS
  1.3502  compiler=$CC
  1.3503  _LT_TAGVAR(compiler, $1)=$CC
  1.3504  _LT_TAGVAR(LD, $1)="$LD"
  1.3505 @@ -6901,6 +7469,8 @@
  1.3506  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3507  
  1.3508  _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3509 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3510 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3511  
  1.3512  ## CAVEAT EMPTOR:
  1.3513  ## There is no encapsulation within the following macros, do not change
  1.3514 @@ -6920,10 +7490,82 @@
  1.3515  AC_LANG_RESTORE
  1.3516  
  1.3517  GCC=$lt_save_GCC
  1.3518 -CC="$lt_save_CC"
  1.3519 +CC=$lt_save_CC
  1.3520 +CFLAGS=$lt_save_CFLAGS
  1.3521  ])# _LT_LANG_GCJ_CONFIG
  1.3522  
  1.3523  
  1.3524 +# _LT_LANG_GO_CONFIG([TAG])
  1.3525 +# --------------------------
  1.3526 +# Ensure that the configuration variables for the GNU Go compiler
  1.3527 +# are suitably defined.  These variables are subsequently used by _LT_CONFIG
  1.3528 +# to write the compiler configuration to `libtool'.
  1.3529 +m4_defun([_LT_LANG_GO_CONFIG],
  1.3530 +[AC_REQUIRE([LT_PROG_GO])dnl
  1.3531 +AC_LANG_SAVE
  1.3532 +
  1.3533 +# Source file extension for Go test sources.
  1.3534 +ac_ext=go
  1.3535 +
  1.3536 +# Object file extension for compiled Go test sources.
  1.3537 +objext=o
  1.3538 +_LT_TAGVAR(objext, $1)=$objext
  1.3539 +
  1.3540 +# Code to be used in simple compile tests
  1.3541 +lt_simple_compile_test_code="package main; func main() { }"
  1.3542 +
  1.3543 +# Code to be used in simple link tests
  1.3544 +lt_simple_link_test_code='package main; func main() { }'
  1.3545 +
  1.3546 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.3547 +_LT_TAG_COMPILER
  1.3548 +
  1.3549 +# save warnings/boilerplate of simple test code
  1.3550 +_LT_COMPILER_BOILERPLATE
  1.3551 +_LT_LINKER_BOILERPLATE
  1.3552 +
  1.3553 +# Allow CC to be a program name with arguments.
  1.3554 +lt_save_CC=$CC
  1.3555 +lt_save_CFLAGS=$CFLAGS
  1.3556 +lt_save_GCC=$GCC
  1.3557 +GCC=yes
  1.3558 +CC=${GOC-"gccgo"}
  1.3559 +CFLAGS=$GOFLAGS
  1.3560 +compiler=$CC
  1.3561 +_LT_TAGVAR(compiler, $1)=$CC
  1.3562 +_LT_TAGVAR(LD, $1)="$LD"
  1.3563 +_LT_CC_BASENAME([$compiler])
  1.3564 +
  1.3565 +# Go did not exist at the time GCC didn't implicitly link libc in.
  1.3566 +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3567 +
  1.3568 +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3569 +_LT_TAGVAR(reload_flag, $1)=$reload_flag
  1.3570 +_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  1.3571 +
  1.3572 +## CAVEAT EMPTOR:
  1.3573 +## There is no encapsulation within the following macros, do not change
  1.3574 +## the running order or otherwise move them around unless you know exactly
  1.3575 +## what you are doing...
  1.3576 +if test -n "$compiler"; then
  1.3577 +  _LT_COMPILER_NO_RTTI($1)
  1.3578 +  _LT_COMPILER_PIC($1)
  1.3579 +  _LT_COMPILER_C_O($1)
  1.3580 +  _LT_COMPILER_FILE_LOCKS($1)
  1.3581 +  _LT_LINKER_SHLIBS($1)
  1.3582 +  _LT_LINKER_HARDCODE_LIBPATH($1)
  1.3583 +
  1.3584 +  _LT_CONFIG($1)
  1.3585 +fi
  1.3586 +
  1.3587 +AC_LANG_RESTORE
  1.3588 +
  1.3589 +GCC=$lt_save_GCC
  1.3590 +CC=$lt_save_CC
  1.3591 +CFLAGS=$lt_save_CFLAGS
  1.3592 +])# _LT_LANG_GO_CONFIG
  1.3593 +
  1.3594 +
  1.3595  # _LT_LANG_RC_CONFIG([TAG])
  1.3596  # -------------------------
  1.3597  # Ensure that the configuration variables for the Windows resource compiler
  1.3598 @@ -6955,9 +7597,11 @@
  1.3599  
  1.3600  # Allow CC to be a program name with arguments.
  1.3601  lt_save_CC="$CC"
  1.3602 +lt_save_CFLAGS=$CFLAGS
  1.3603  lt_save_GCC=$GCC
  1.3604  GCC=
  1.3605  CC=${RC-"windres"}
  1.3606 +CFLAGS=
  1.3607  compiler=$CC
  1.3608  _LT_TAGVAR(compiler, $1)=$CC
  1.3609  _LT_CC_BASENAME([$compiler])
  1.3610 @@ -6970,7 +7614,8 @@
  1.3611  
  1.3612  GCC=$lt_save_GCC
  1.3613  AC_LANG_RESTORE
  1.3614 -CC="$lt_save_CC"
  1.3615 +CC=$lt_save_CC
  1.3616 +CFLAGS=$lt_save_CFLAGS
  1.3617  ])# _LT_LANG_RC_CONFIG
  1.3618  
  1.3619  
  1.3620 @@ -6990,6 +7635,13 @@
  1.3621  dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  1.3622  
  1.3623  
  1.3624 +# LT_PROG_GO
  1.3625 +# ----------
  1.3626 +AC_DEFUN([LT_PROG_GO],
  1.3627 +[AC_CHECK_TOOL(GOC, gccgo,)
  1.3628 +])
  1.3629 +
  1.3630 +
  1.3631  # LT_PROG_RC
  1.3632  # ----------
  1.3633  AC_DEFUN([LT_PROG_RC],
  1.3634 @@ -7029,6 +7681,15 @@
  1.3635  AC_SUBST([OBJDUMP])
  1.3636  ])
  1.3637  
  1.3638 +# _LT_DECL_DLLTOOL
  1.3639 +# ----------------
  1.3640 +# Ensure DLLTOOL variable is set.
  1.3641 +m4_defun([_LT_DECL_DLLTOOL],
  1.3642 +[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1.3643 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1.3644 +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  1.3645 +AC_SUBST([DLLTOOL])
  1.3646 +])
  1.3647  
  1.3648  # _LT_DECL_SED
  1.3649  # ------------
  1.3650 @@ -7122,8 +7783,8 @@
  1.3651  # Try some XSI features
  1.3652  xsi_shell=no
  1.3653  ( _lt_dummy="a/b/c"
  1.3654 -  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  1.3655 -      = c,a/b,, \
  1.3656 +  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  1.3657 +      = c,a/b,b/c, \
  1.3658      && eval 'test $(( 1 + 1 )) -eq 2 \
  1.3659      && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  1.3660    && xsi_shell=yes
  1.3661 @@ -7162,209 +7823,162 @@
  1.3662  ])# _LT_CHECK_SHELL_FEATURES
  1.3663  
  1.3664  
  1.3665 -# _LT_PROG_XSI_SHELLFNS
  1.3666 -# ---------------------
  1.3667 -# Bourne and XSI compatible variants of some useful shell functions.
  1.3668 -m4_defun([_LT_PROG_XSI_SHELLFNS],
  1.3669 -[case $xsi_shell in
  1.3670 -  yes)
  1.3671 -    cat << \_LT_EOF >> "$cfgfile"
  1.3672 -
  1.3673 -# func_dirname file append nondir_replacement
  1.3674 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3675 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3676 -func_dirname ()
  1.3677 -{
  1.3678 -  case ${1} in
  1.3679 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3680 -    *  ) func_dirname_result="${3}" ;;
  1.3681 -  esac
  1.3682 -}
  1.3683 -
  1.3684 -# func_basename file
  1.3685 -func_basename ()
  1.3686 -{
  1.3687 -  func_basename_result="${1##*/}"
  1.3688 -}
  1.3689 -
  1.3690 -# func_dirname_and_basename file append nondir_replacement
  1.3691 -# perform func_basename and func_dirname in a single function
  1.3692 -# call:
  1.3693 -#   dirname:  Compute the dirname of FILE.  If nonempty,
  1.3694 -#             add APPEND to the result, otherwise set result
  1.3695 -#             to NONDIR_REPLACEMENT.
  1.3696 -#             value returned in "$func_dirname_result"
  1.3697 -#   basename: Compute filename of FILE.
  1.3698 -#             value retuned in "$func_basename_result"
  1.3699 -# Implementation must be kept synchronized with func_dirname
  1.3700 -# and func_basename. For efficiency, we do not delegate to
  1.3701 -# those functions but instead duplicate the functionality here.
  1.3702 -func_dirname_and_basename ()
  1.3703 -{
  1.3704 -  case ${1} in
  1.3705 -    */*) func_dirname_result="${1%/*}${2}" ;;
  1.3706 -    *  ) func_dirname_result="${3}" ;;
  1.3707 -  esac
  1.3708 -  func_basename_result="${1##*/}"
  1.3709 -}
  1.3710 -
  1.3711 -# func_stripname prefix suffix name
  1.3712 -# strip PREFIX and SUFFIX off of NAME.
  1.3713 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3714 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3715 -# dot (in which case that matches only a dot).
  1.3716 -func_stripname ()
  1.3717 -{
  1.3718 -  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3719 -  # positional parameters, so assign one to ordinary parameter first.
  1.3720 -  func_stripname_result=${3}
  1.3721 -  func_stripname_result=${func_stripname_result#"${1}"}
  1.3722 -  func_stripname_result=${func_stripname_result%"${2}"}
  1.3723 -}
  1.3724 -
  1.3725 -# func_opt_split
  1.3726 -func_opt_split ()
  1.3727 -{
  1.3728 -  func_opt_split_opt=${1%%=*}
  1.3729 -  func_opt_split_arg=${1#*=}
  1.3730 -}
  1.3731 -
  1.3732 -# func_lo2o object
  1.3733 -func_lo2o ()
  1.3734 -{
  1.3735 -  case ${1} in
  1.3736 -    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3737 -    *)    func_lo2o_result=${1} ;;
  1.3738 -  esac
  1.3739 -}
  1.3740 -
  1.3741 -# func_xform libobj-or-source
  1.3742 -func_xform ()
  1.3743 -{
  1.3744 -  func_xform_result=${1%.*}.lo
  1.3745 -}
  1.3746 -
  1.3747 -# func_arith arithmetic-term...
  1.3748 -func_arith ()
  1.3749 -{
  1.3750 -  func_arith_result=$(( $[*] ))
  1.3751 -}
  1.3752 -
  1.3753 -# func_len string
  1.3754 -# STRING may not start with a hyphen.
  1.3755 -func_len ()
  1.3756 -{
  1.3757 -  func_len_result=${#1}
  1.3758 -}
  1.3759 -
  1.3760 -_LT_EOF
  1.3761 +# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  1.3762 +# ------------------------------------------------------
  1.3763 +# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  1.3764 +# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  1.3765 +m4_defun([_LT_PROG_FUNCTION_REPLACE],
  1.3766 +[dnl {
  1.3767 +sed -e '/^$1 ()$/,/^} # $1 /c\
  1.3768 +$1 ()\
  1.3769 +{\
  1.3770 +m4_bpatsubsts([$2], [$], [\\], [^\([	 ]\)], [\\\1])
  1.3771 +} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  1.3772 +  && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3773 +    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3774 +test 0 -eq $? || _lt_function_replace_fail=:
  1.3775 +])
  1.3776 +
  1.3777 +
  1.3778 +# _LT_PROG_REPLACE_SHELLFNS
  1.3779 +# -------------------------
  1.3780 +# Replace existing portable implementations of several shell functions with
  1.3781 +# equivalent extended shell implementations where those features are available..
  1.3782 +m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  1.3783 +[if test x"$xsi_shell" = xyes; then
  1.3784 +  _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  1.3785 +    case ${1} in
  1.3786 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3787 +      *  ) func_dirname_result="${3}" ;;
  1.3788 +    esac])
  1.3789 +
  1.3790 +  _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  1.3791 +    func_basename_result="${1##*/}"])
  1.3792 +
  1.3793 +  _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  1.3794 +    case ${1} in
  1.3795 +      */*) func_dirname_result="${1%/*}${2}" ;;
  1.3796 +      *  ) func_dirname_result="${3}" ;;
  1.3797 +    esac
  1.3798 +    func_basename_result="${1##*/}"])
  1.3799 +
  1.3800 +  _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  1.3801 +    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  1.3802 +    # positional parameters, so assign one to ordinary parameter first.
  1.3803 +    func_stripname_result=${3}
  1.3804 +    func_stripname_result=${func_stripname_result#"${1}"}
  1.3805 +    func_stripname_result=${func_stripname_result%"${2}"}])
  1.3806 +
  1.3807 +  _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  1.3808 +    func_split_long_opt_name=${1%%=*}
  1.3809 +    func_split_long_opt_arg=${1#*=}])
  1.3810 +
  1.3811 +  _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  1.3812 +    func_split_short_opt_arg=${1#??}
  1.3813 +    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  1.3814 +
  1.3815 +  _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  1.3816 +    case ${1} in
  1.3817 +      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  1.3818 +      *)    func_lo2o_result=${1} ;;
  1.3819 +    esac])
  1.3820 +
  1.3821 +  _LT_PROG_FUNCTION_REPLACE([func_xform], [    func_xform_result=${1%.*}.lo])
  1.3822 +
  1.3823 +  _LT_PROG_FUNCTION_REPLACE([func_arith], [    func_arith_result=$(( $[*] ))])
  1.3824 +
  1.3825 +  _LT_PROG_FUNCTION_REPLACE([func_len], [    func_len_result=${#1}])
  1.3826 +fi
  1.3827 +
  1.3828 +if test x"$lt_shell_append" = xyes; then
  1.3829 +  _LT_PROG_FUNCTION_REPLACE([func_append], [    eval "${1}+=\\${2}"])
  1.3830 +
  1.3831 +  _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  1.3832 +    func_quote_for_eval "${2}"
  1.3833 +dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  1.3834 +    eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  1.3835 +
  1.3836 +  # Save a `func_append' function call where possible by direct use of '+='
  1.3837 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  1.3838 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3839 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3840 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.3841 +else
  1.3842 +  # Save a `func_append' function call even when '+=' is not available
  1.3843 +  sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  1.3844 +    && mv -f "$cfgfile.tmp" "$cfgfile" \
  1.3845 +      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  1.3846 +  test 0 -eq $? || _lt_function_replace_fail=:
  1.3847 +fi
  1.3848 +
  1.3849 +if test x"$_lt_function_replace_fail" = x":"; then
  1.3850 +  AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  1.3851 +fi
  1.3852 +])
  1.3853 +
  1.3854 +# _LT_PATH_CONVERSION_FUNCTIONS
  1.3855 +# -----------------------------
  1.3856 +# Determine which file name conversion functions should be used by
  1.3857 +# func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
  1.3858 +# for certain cross-compile configurations and native mingw.
  1.3859 +m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  1.3860 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3861 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.3862 +AC_MSG_CHECKING([how to convert $build file names to $host format])
  1.3863 +AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  1.3864 +[case $host in
  1.3865 +  *-*-mingw* )
  1.3866 +    case $build in
  1.3867 +      *-*-mingw* ) # actually msys
  1.3868 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  1.3869 +        ;;
  1.3870 +      *-*-cygwin* )
  1.3871 +        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  1.3872 +        ;;
  1.3873 +      * ) # otherwise, assume *nix
  1.3874 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  1.3875 +        ;;
  1.3876 +    esac
  1.3877      ;;
  1.3878 -  *) # Bourne compatible functions.
  1.3879 -    cat << \_LT_EOF >> "$cfgfile"
  1.3880 -
  1.3881 -# func_dirname file append nondir_replacement
  1.3882 -# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
  1.3883 -# otherwise set result to NONDIR_REPLACEMENT.
  1.3884 -func_dirname ()
  1.3885 -{
  1.3886 -  # Extract subdirectory from the argument.
  1.3887 -  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  1.3888 -  if test "X$func_dirname_result" = "X${1}"; then
  1.3889 -    func_dirname_result="${3}"
  1.3890 -  else
  1.3891 -    func_dirname_result="$func_dirname_result${2}"
  1.3892 -  fi
  1.3893 -}
  1.3894 -
  1.3895 -# func_basename file
  1.3896 -func_basename ()
  1.3897 -{
  1.3898 -  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  1.3899 -}
  1.3900 -
  1.3901 -dnl func_dirname_and_basename
  1.3902 -dnl A portable version of this function is already defined in general.m4sh
  1.3903 -dnl so there is no need for it here.
  1.3904 -
  1.3905 -# func_stripname prefix suffix name
  1.3906 -# strip PREFIX and SUFFIX off of NAME.
  1.3907 -# PREFIX and SUFFIX must not contain globbing or regex special
  1.3908 -# characters, hashes, percent signs, but SUFFIX may contain a leading
  1.3909 -# dot (in which case that matches only a dot).
  1.3910 -# func_strip_suffix prefix name
  1.3911 -func_stripname ()
  1.3912 -{
  1.3913 -  case ${2} in
  1.3914 -    .*) func_stripname_result=`$ECHO "X${3}" \
  1.3915 -           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  1.3916 -    *)  func_stripname_result=`$ECHO "X${3}" \
  1.3917 -           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  1.3918 -  esac
  1.3919 -}
  1.3920 -
  1.3921 -# sed scripts:
  1.3922 -my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  1.3923 -my_sed_long_arg='1s/^-[[^=]]*=//'
  1.3924 -
  1.3925 -# func_opt_split
  1.3926 -func_opt_split ()
  1.3927 -{
  1.3928 -  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  1.3929 -  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  1.3930 -}
  1.3931 -
  1.3932 -# func_lo2o object
  1.3933 -func_lo2o ()
  1.3934 -{
  1.3935 -  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  1.3936 -}
  1.3937 -
  1.3938 -# func_xform libobj-or-source
  1.3939 -func_xform ()
  1.3940 -{
  1.3941 -  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  1.3942 -}
  1.3943 -
  1.3944 -# func_arith arithmetic-term...
  1.3945 -func_arith ()
  1.3946 -{
  1.3947 -  func_arith_result=`expr "$[@]"`
  1.3948 -}
  1.3949 -
  1.3950 -# func_len string
  1.3951 -# STRING may not start with a hyphen.
  1.3952 -func_len ()
  1.3953 -{
  1.3954 -  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  1.3955 -}
  1.3956 -
  1.3957 -_LT_EOF
  1.3958 +  *-*-cygwin* )
  1.3959 +    case $build in
  1.3960 +      *-*-mingw* ) # actually msys
  1.3961 +        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  1.3962 +        ;;
  1.3963 +      *-*-cygwin* )
  1.3964 +        lt_cv_to_host_file_cmd=func_convert_file_noop
  1.3965 +        ;;
  1.3966 +      * ) # otherwise, assume *nix
  1.3967 +        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  1.3968 +        ;;
  1.3969 +    esac
  1.3970 +    ;;
  1.3971 +  * ) # unhandled hosts (and "normal" native builds)
  1.3972 +    lt_cv_to_host_file_cmd=func_convert_file_noop
  1.3973 +    ;;
  1.3974  esac
  1.3975 -
  1.3976 -case $lt_shell_append in
  1.3977 -  yes)
  1.3978 -    cat << \_LT_EOF >> "$cfgfile"
  1.3979 -
  1.3980 -# func_append var value
  1.3981 -# Append VALUE to the end of shell variable VAR.
  1.3982 -func_append ()
  1.3983 -{
  1.3984 -  eval "$[1]+=\$[2]"
  1.3985 -}
  1.3986 -_LT_EOF
  1.3987 +])
  1.3988 +to_host_file_cmd=$lt_cv_to_host_file_cmd
  1.3989 +AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  1.3990 +_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  1.3991 +         [0], [convert $build file names to $host format])dnl
  1.3992 +
  1.3993 +AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  1.3994 +AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  1.3995 +[#assume ordinary cross tools, or native build.
  1.3996 +lt_cv_to_tool_file_cmd=func_convert_file_noop
  1.3997 +case $host in
  1.3998 +  *-*-mingw* )
  1.3999 +    case $build in
  1.4000 +      *-*-mingw* ) # actually msys
  1.4001 +        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  1.4002 +        ;;
  1.4003 +    esac
  1.4004      ;;
  1.4005 -  *)
  1.4006 -    cat << \_LT_EOF >> "$cfgfile"
  1.4007 -
  1.4008 -# func_append var value
  1.4009 -# Append VALUE to the end of shell variable VAR.
  1.4010 -func_append ()
  1.4011 -{
  1.4012 -  eval "$[1]=\$$[1]\$[2]"
  1.4013 -}
  1.4014 -
  1.4015 -_LT_EOF
  1.4016 -    ;;
  1.4017 -  esac
  1.4018 +esac
  1.4019  ])
  1.4020 -
  1.4021 +to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  1.4022 +AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  1.4023 +_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  1.4024 +         [0], [convert $build files to toolchain format])dnl
  1.4025 +])# _LT_PATH_CONVERSION_FUNCTIONS