acinclude.m4
changeset 3085 4800979de337
parent 3012 7e30c2dc7783
     1.1 --- a/acinclude.m4	Tue Mar 03 09:48:00 2009 +0000
     1.2 +++ b/acinclude.m4	Wed Mar 04 08:57:30 2009 +0000
     1.3 @@ -329,111 +329,189 @@
     1.4  ])
     1.5  
     1.6  ##############################################################################
     1.7 -# Based on libtool-1.5.22
     1.8 +# Based on libtool-2.2.6a
     1.9  # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    1.10 -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
    1.11 -## Free Software Foundation, Inc.
    1.12 -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    1.13 -##
    1.14 -## This file is free software; the Free Software Foundation gives
    1.15 -## unlimited permission to copy and/or distribute it, with or without
    1.16 -## modifications, as long as this notice is preserved.
    1.17 -
    1.18 -# serial 48 AC_PROG_LIBTOOL
    1.19 -
    1.20 -
    1.21 -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
    1.22 -# -----------------------------------------------------------
    1.23 -# If this macro is not defined by Autoconf, define it here.
    1.24 -m4_ifdef([AC_PROVIDE_IFELSE],
    1.25 -         [],
    1.26 -         [m4_define([AC_PROVIDE_IFELSE],
    1.27 -	         [m4_ifdef([AC_PROVIDE_$1],
    1.28 -		           [$2], [$3])])])
    1.29 -
    1.30 -
    1.31 -# AC_PROG_LIBTOOL
    1.32 -# ---------------
    1.33 -AC_DEFUN([AC_PROG_LIBTOOL],
    1.34 -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
    1.35 -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
    1.36 -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
    1.37 -  AC_PROVIDE_IFELSE([AC_PROG_CXX],
    1.38 -    [AC_LIBTOOL_CXX],
    1.39 -    [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
    1.40 -  ])])
    1.41 -dnl And a similar setup for Fortran 77 support
    1.42 -  AC_PROVIDE_IFELSE([AC_PROG_F77],
    1.43 -    [AC_LIBTOOL_F77],
    1.44 -    [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
    1.45 -])])
    1.46 -
    1.47 -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
    1.48 -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
    1.49 -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
    1.50 -  AC_PROVIDE_IFELSE([AC_PROG_GCJ],
    1.51 -    [AC_LIBTOOL_GCJ],
    1.52 -    [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
    1.53 -      [AC_LIBTOOL_GCJ],
    1.54 -      [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
    1.55 -	[AC_LIBTOOL_GCJ],
    1.56 -      [ifdef([AC_PROG_GCJ],
    1.57 -	     [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    1.58 -       ifdef([A][M_PROG_GCJ],
    1.59 -	     [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
    1.60 -       ifdef([LT_AC_PROG_GCJ],
    1.61 -	     [define([LT_AC_PROG_GCJ],
    1.62 -		defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
    1.63 -])])# AC_PROG_LIBTOOL
    1.64 -
    1.65 -
    1.66 -# _AC_PROG_LIBTOOL
    1.67 -# ----------------
    1.68 -AC_DEFUN([_AC_PROG_LIBTOOL],
    1.69 -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
    1.70 -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
    1.71 -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
    1.72 -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
    1.73 +#
    1.74 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.75 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.76 +#   Written by Gordon Matzigkeit, 1996
    1.77 +#
    1.78 +# This file is free software; the Free Software Foundation gives
    1.79 +# unlimited permission to copy and/or distribute it, with or without
    1.80 +# modifications, as long as this notice is preserved.
    1.81 +
    1.82 +m4_define([_LT_COPYING], [dnl
    1.83 +#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
    1.84 +#                 2006, 2007, 2008 Free Software Foundation, Inc.
    1.85 +#   Written by Gordon Matzigkeit, 1996
    1.86 +#
    1.87 +#   This file is part of GNU Libtool.
    1.88 +#
    1.89 +# GNU Libtool is free software; you can redistribute it and/or
    1.90 +# modify it under the terms of the GNU General Public License as
    1.91 +# published by the Free Software Foundation; either version 2 of
    1.92 +# the License, or (at your option) any later version.
    1.93 +#
    1.94 +# As a special exception to the GNU General Public License,
    1.95 +# if you distribute this file as part of a program or library that
    1.96 +# is built using GNU Libtool, you may include this file under the
    1.97 +# same distribution terms that you use for the rest of that program.
    1.98 +#
    1.99 +# GNU Libtool is distributed in the hope that it will be useful,
   1.100 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   1.101 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   1.102 +# GNU General Public License for more details.
   1.103 +#
   1.104 +# You should have received a copy of the GNU General Public License
   1.105 +# along with GNU Libtool; see the file COPYING.  If not, a copy
   1.106 +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
   1.107 +# obtained by writing to the Free Software Foundation, Inc.,
   1.108 +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   1.109 +])
   1.110 +
   1.111 +# serial 56 LT_INIT
   1.112 +
   1.113 +
   1.114 +# LT_PREREQ(VERSION)
   1.115 +# ------------------
   1.116 +# Complain and exit if this libtool version is less that VERSION.
   1.117 +m4_defun([LT_PREREQ],
   1.118 +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
   1.119 +       [m4_default([$3],
   1.120 +		   [m4_fatal([Libtool version $1 or higher is required],
   1.121 +		             63)])],
   1.122 +       [$2])])
   1.123 +
   1.124 +
   1.125 +# _LT_CHECK_BUILDDIR
   1.126 +# ------------------
   1.127 +# Complain if the absolute build directory name contains unusual characters
   1.128 +m4_defun([_LT_CHECK_BUILDDIR],
   1.129 +[case `pwd` in
   1.130 +  *\ * | *\	*)
   1.131 +    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
   1.132 +esac
   1.133 +])
   1.134 +
   1.135 +
   1.136 +# LT_INIT([OPTIONS])
   1.137 +# ------------------
   1.138 +AC_DEFUN([LT_INIT],
   1.139 +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
   1.140 +AC_BEFORE([$0], [LT_LANG])dnl
   1.141 +AC_BEFORE([$0], [LT_OUTPUT])dnl
   1.142 +AC_BEFORE([$0], [LTDL_INIT])dnl
   1.143 +m4_require([_LT_CHECK_BUILDDIR])dnl
   1.144 +
   1.145 +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
   1.146 +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
   1.147 +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
   1.148 +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
   1.149 +dnl unless we require an AC_DEFUNed macro:
   1.150 +AC_REQUIRE([LTOPTIONS_VERSION])dnl
   1.151 +AC_REQUIRE([LTSUGAR_VERSION])dnl
   1.152 +AC_REQUIRE([LTVERSION_VERSION])dnl
   1.153 +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
   1.154 +m4_require([_LT_PROG_LTMAIN])dnl
   1.155 +
   1.156 +dnl Parse OPTIONS
   1.157 +_LT_SET_OPTIONS([$0], [$1])
   1.158  
   1.159  # This can be used to rebuild libtool when needed
   1.160 -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
   1.161 +LIBTOOL_DEPS="$ltmain"
   1.162  
   1.163  # Always use our own libtool.
   1.164  LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   1.165  AC_SUBST(LIBTOOL)dnl
   1.166  
   1.167 -# Prevent multiple expansion
   1.168 -define([AC_PROG_LIBTOOL], [])
   1.169 -])# _AC_PROG_LIBTOOL
   1.170 -
   1.171 -
   1.172 -# AC_LIBTOOL_SETUP
   1.173 -# ----------------
   1.174 -AC_DEFUN([AC_LIBTOOL_SETUP],
   1.175 -[AC_PREREQ(2.50)dnl
   1.176 -AC_REQUIRE([AC_ENABLE_SHARED])dnl
   1.177 -AC_REQUIRE([AC_ENABLE_STATIC])dnl
   1.178 -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
   1.179 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
   1.180 +_LT_SETUP
   1.181 +
   1.182 +# Only expand once:
   1.183 +m4_define([LT_INIT])
   1.184 +])# LT_INIT
   1.185 +
   1.186 +# Old names:
   1.187 +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
   1.188 +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
   1.189 +dnl aclocal-1.4 backwards compatibility:
   1.190 +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
   1.191 +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
   1.192 +
   1.193 +
   1.194 +# _LT_CC_BASENAME(CC)
   1.195 +# -------------------
   1.196 +# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
   1.197 +m4_defun([_LT_CC_BASENAME],
   1.198 +[for cc_temp in $1""; do
   1.199 +  case $cc_temp in
   1.200 +    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
   1.201 +    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
   1.202 +    \-*) ;;
   1.203 +    *) break;;
   1.204 +  esac
   1.205 +done
   1.206 +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
   1.207 +])
   1.208 +
   1.209 +
   1.210 +# _LT_FILEUTILS_DEFAULTS
   1.211 +# ----------------------
   1.212 +# It is okay to use these file commands and assume they have been set
   1.213 +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
   1.214 +m4_defun([_LT_FILEUTILS_DEFAULTS],
   1.215 +[: ${CP="cp -f"}
   1.216 +: ${MV="mv -f"}
   1.217 +: ${RM="rm -f"}
   1.218 +])# _LT_FILEUTILS_DEFAULTS
   1.219 +
   1.220 +
   1.221 +# _LT_SETUP
   1.222 +# ---------
   1.223 +m4_defun([_LT_SETUP],
   1.224 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
   1.225  AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   1.226 +_LT_DECL([], [host_alias], [0], [The host system])dnl
   1.227 +_LT_DECL([], [host], [0])dnl
   1.228 +_LT_DECL([], [host_os], [0])dnl
   1.229 +dnl
   1.230 +_LT_DECL([], [build_alias], [0], [The build system])dnl
   1.231 +_LT_DECL([], [build], [0])dnl
   1.232 +_LT_DECL([], [build_os], [0])dnl
   1.233 +dnl
   1.234  AC_REQUIRE([AC_PROG_CC])dnl
   1.235 -AC_REQUIRE([AC_PROG_LD])dnl
   1.236 -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
   1.237 -AC_REQUIRE([AC_PROG_NM])dnl
   1.238 -
   1.239 +AC_REQUIRE([LT_PATH_LD])dnl
   1.240 +AC_REQUIRE([LT_PATH_NM])dnl
   1.241 +dnl
   1.242  AC_REQUIRE([AC_PROG_LN_S])dnl
   1.243 -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
   1.244 -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
   1.245 -AC_REQUIRE([AC_OBJEXT])dnl
   1.246 -AC_REQUIRE([AC_EXEEXT])dnl
   1.247 +test -z "$LN_S" && LN_S="ln -s"
   1.248 +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
   1.249 +dnl
   1.250 +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
   1.251 +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
   1.252 +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
   1.253  dnl
   1.254 -
   1.255 -AC_LIBTOOL_SYS_MAX_CMD_LEN
   1.256 -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
   1.257 -AC_LIBTOOL_OBJDIR
   1.258 -
   1.259 -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
   1.260 -_LT_AC_PROG_ECHO_BACKSLASH
   1.261 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   1.262 +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
   1.263 +m4_require([_LT_CMD_RELOAD])dnl
   1.264 +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
   1.265 +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
   1.266 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
   1.267 +
   1.268 +_LT_CONFIG_LIBTOOL_INIT([
   1.269 +# See if we are running on zsh, and set the options which allow our
   1.270 +# commands through without removal of \ escapes INIT.
   1.271 +if test -n "\${ZSH_VERSION+set}" ; then
   1.272 +   setopt NO_GLOB_SUBST
   1.273 +fi
   1.274 +])
   1.275 +if test -n "${ZSH_VERSION+set}" ; then
   1.276 +   setopt NO_GLOB_SUBST
   1.277 +fi
   1.278 +
   1.279 +_LT_CHECK_OBJDIR
   1.280 +
   1.281 +m4_require([_LT_TAG_COMPILER])dnl
   1.282 +_LT_PROG_ECHO_BACKSLASH
   1.283  
   1.284  case $host_os in
   1.285  aix3*)
   1.286 @@ -449,60 +527,1185 @@
   1.287  
   1.288  # Sed substitution that helps us do robust quoting.  It backslashifies
   1.289  # metacharacters that are still active within double-quoted strings.
   1.290 -Xsed='sed -e 1s/^X//'
   1.291 -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
   1.292 +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
   1.293  
   1.294  # Same as above, but do not quote variable references.
   1.295 -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
   1.296 +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
   1.297  
   1.298  # Sed substitution to delay expansion of an escaped shell variable in a
   1.299  # double_quote_subst'ed string.
   1.300  delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
   1.301  
   1.302 +# Sed substitution to delay expansion of an escaped single quote.
   1.303 +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
   1.304 +
   1.305  # Sed substitution to avoid accidental globbing in evaled expressions
   1.306  no_glob_subst='s/\*/\\\*/g'
   1.307  
   1.308 -# Constants:
   1.309 -rm="rm -f"
   1.310 -
   1.311  # Global variables:
   1.312 -default_ofile=libtool
   1.313 +ofile=libtool
   1.314  can_build_shared=yes
   1.315  
   1.316  # All known linkers require a `.a' archive for static linking (except MSVC,
   1.317  # which needs '.lib').
   1.318  libext=a
   1.319 -ltmain="$ac_aux_dir/ltmain.sh"
   1.320 -ofile="$default_ofile"
   1.321 +
   1.322  with_gnu_ld="$lt_cv_prog_gnu_ld"
   1.323  
   1.324 -AC_CHECK_TOOL(AR, ar, false)
   1.325 -AC_CHECK_TOOL(RANLIB, ranlib, :)
   1.326 -AC_CHECK_TOOL(STRIP, strip, :)
   1.327 -
   1.328  old_CC="$CC"
   1.329  old_CFLAGS="$CFLAGS"
   1.330  
   1.331  # Set sane defaults for various variables
   1.332 -test -z "$AR" && AR=ar
   1.333 -test -z "$AR_FLAGS" && AR_FLAGS=cru
   1.334 -test -z "$AS" && AS=as
   1.335  test -z "$CC" && CC=cc
   1.336  test -z "$LTCC" && LTCC=$CC
   1.337  test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
   1.338 -test -z "$DLLTOOL" && DLLTOOL=dlltool
   1.339  test -z "$LD" && LD=ld
   1.340 -test -z "$LN_S" && LN_S="ln -s"
   1.341 +test -z "$ac_objext" && ac_objext=o
   1.342 +
   1.343 +_LT_CC_BASENAME([$compiler])
   1.344 +
   1.345 +# Only perform the check for file, if the check method requires it
   1.346  test -z "$MAGIC_CMD" && MAGIC_CMD=file
   1.347 -test -z "$NM" && NM=nm
   1.348 -test -z "$SED" && SED=sed
   1.349 -test -z "$OBJDUMP" && OBJDUMP=objdump
   1.350 +case $deplibs_check_method in
   1.351 +file_magic*)
   1.352 +  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
   1.353 +    _LT_PATH_MAGIC
   1.354 +  fi
   1.355 +  ;;
   1.356 +esac
   1.357 +
   1.358 +# Use C for the default configuration in the libtool script
   1.359 +LT_SUPPORTED_TAG([CC])
   1.360 +_LT_LANG_C_CONFIG
   1.361 +_LT_LANG_DEFAULT_CONFIG
   1.362 +_LT_CONFIG_COMMANDS
   1.363 +])# _LT_SETUP
   1.364 +
   1.365 +
   1.366 +# _LT_PROG_LTMAIN
   1.367 +# ---------------
   1.368 +# Note that this code is called both from `configure', and `config.status'
   1.369 +# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
   1.370 +# `config.status' has no value for ac_aux_dir unless we are using Automake,
   1.371 +# so we pass a copy along to make sure it has a sensible value anyway.
   1.372 +m4_defun([_LT_PROG_LTMAIN],
   1.373 +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
   1.374 +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
   1.375 +ltmain="$ac_aux_dir/ltmain.sh"
   1.376 +])# _LT_PROG_LTMAIN
   1.377 +
   1.378 +
   1.379 +## ------------------------------------- ##
   1.380 +## Accumulate code for creating libtool. ##
   1.381 +## ------------------------------------- ##
   1.382 +
   1.383 +# So that we can recreate a full libtool script including additional
   1.384 +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
   1.385 +# in macros and then make a single call at the end using the `libtool'
   1.386 +# label.
   1.387 +
   1.388 +
   1.389 +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
   1.390 +# ----------------------------------------
   1.391 +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   1.392 +m4_define([_LT_CONFIG_LIBTOOL_INIT],
   1.393 +[m4_ifval([$1],
   1.394 +          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
   1.395 +                     [$1
   1.396 +])])])
   1.397 +
   1.398 +# Initialize.
   1.399 +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
   1.400 +
   1.401 +
   1.402 +# _LT_CONFIG_LIBTOOL([COMMANDS])
   1.403 +# ------------------------------
   1.404 +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
   1.405 +m4_define([_LT_CONFIG_LIBTOOL],
   1.406 +[m4_ifval([$1],
   1.407 +          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
   1.408 +                     [$1
   1.409 +])])])
   1.410 +
   1.411 +# Initialize.
   1.412 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
   1.413 +
   1.414 +
   1.415 +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
   1.416 +# -----------------------------------------------------
   1.417 +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
   1.418 +[_LT_CONFIG_LIBTOOL([$1])
   1.419 +_LT_CONFIG_LIBTOOL_INIT([$2])
   1.420 +])
   1.421 +
   1.422 +
   1.423 +# _LT_FORMAT_COMMENT([COMMENT])
   1.424 +# -----------------------------
   1.425 +# Add leading comment marks to the start of each line, and a trailing
   1.426 +# full-stop to the whole comment if one is not present already.
   1.427 +m4_define([_LT_FORMAT_COMMENT],
   1.428 +[m4_ifval([$1], [
   1.429 +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
   1.430 +              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
   1.431 +)])
   1.432 +
   1.433 +
   1.434 +
   1.435 +## ------------------------ ##
   1.436 +## FIXME: Eliminate VARNAME ##
   1.437 +## ------------------------ ##
   1.438 +
   1.439 +
   1.440 +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
   1.441 +# -------------------------------------------------------------------
   1.442 +# CONFIGNAME is the name given to the value in the libtool script.
   1.443 +# VARNAME is the (base) name used in the configure script.
   1.444 +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
   1.445 +# VARNAME.  Any other value will be used directly.
   1.446 +m4_define([_LT_DECL],
   1.447 +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
   1.448 +    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
   1.449 +	[m4_ifval([$1], [$1], [$2])])
   1.450 +    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
   1.451 +    m4_ifval([$4],
   1.452 +	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
   1.453 +    lt_dict_add_subkey([lt_decl_dict], [$2],
   1.454 +	[tagged?], [m4_ifval([$5], [yes], [no])])])
   1.455 +])
   1.456 +
   1.457 +
   1.458 +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
   1.459 +# --------------------------------------------------------
   1.460 +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
   1.461 +
   1.462 +
   1.463 +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
   1.464 +# ------------------------------------------------
   1.465 +m4_define([lt_decl_tag_varnames],
   1.466 +[_lt_decl_filter([tagged?], [yes], $@)])
   1.467 +
   1.468 +
   1.469 +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
   1.470 +# ---------------------------------------------------------
   1.471 +m4_define([_lt_decl_filter],
   1.472 +[m4_case([$#],
   1.473 +  [0], [m4_fatal([$0: too few arguments: $#])],
   1.474 +  [1], [m4_fatal([$0: too few arguments: $#: $1])],
   1.475 +  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
   1.476 +  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
   1.477 +  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
   1.478 +])
   1.479 +
   1.480 +
   1.481 +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
   1.482 +# --------------------------------------------------
   1.483 +m4_define([lt_decl_quote_varnames],
   1.484 +[_lt_decl_filter([value], [1], $@)])
   1.485 +
   1.486 +
   1.487 +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
   1.488 +# ---------------------------------------------------
   1.489 +m4_define([lt_decl_dquote_varnames],
   1.490 +[_lt_decl_filter([value], [2], $@)])
   1.491 +
   1.492 +
   1.493 +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
   1.494 +# ---------------------------------------------------
   1.495 +m4_define([lt_decl_varnames_tagged],
   1.496 +[m4_assert([$# <= 2])dnl
   1.497 +_$0(m4_quote(m4_default([$1], [[, ]])),
   1.498 +    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
   1.499 +    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
   1.500 +m4_define([_lt_decl_varnames_tagged],
   1.501 +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
   1.502 +
   1.503 +
   1.504 +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
   1.505 +# ------------------------------------------------
   1.506 +m4_define([lt_decl_all_varnames],
   1.507 +[_$0(m4_quote(m4_default([$1], [[, ]])),
   1.508 +     m4_if([$2], [],
   1.509 +	   m4_quote(lt_decl_varnames),
   1.510 +	m4_quote(m4_shift($@))))[]dnl
   1.511 +])
   1.512 +m4_define([_lt_decl_all_varnames],
   1.513 +[lt_join($@, lt_decl_varnames_tagged([$1],
   1.514 +			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
   1.515 +])
   1.516 +
   1.517 +
   1.518 +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
   1.519 +# ------------------------------------
   1.520 +# Quote a variable value, and forward it to `config.status' so that its
   1.521 +# declaration there will have the same value as in `configure'.  VARNAME
   1.522 +# must have a single quote delimited value for this to work.
   1.523 +m4_define([_LT_CONFIG_STATUS_DECLARE],
   1.524 +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
   1.525 +
   1.526 +
   1.527 +# _LT_CONFIG_STATUS_DECLARATIONS
   1.528 +# ------------------------------
   1.529 +# We delimit libtool config variables with single quotes, so when
   1.530 +# we write them to config.status, we have to be sure to quote all
   1.531 +# embedded single quotes properly.  In configure, this macro expands
   1.532 +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
   1.533 +#
   1.534 +#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
   1.535 +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
   1.536 +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
   1.537 +    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
   1.538 +
   1.539 +
   1.540 +# _LT_LIBTOOL_TAGS
   1.541 +# ----------------
   1.542 +# Output comment and list of tags supported by the script
   1.543 +m4_defun([_LT_LIBTOOL_TAGS],
   1.544 +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
   1.545 +available_tags="_LT_TAGS"dnl
   1.546 +])
   1.547 +
   1.548 +
   1.549 +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
   1.550 +# -----------------------------------
   1.551 +# Extract the dictionary values for VARNAME (optionally with TAG) and
   1.552 +# expand to a commented shell variable setting:
   1.553 +#
   1.554 +#    # Some comment about what VAR is for.
   1.555 +#    visible_name=$lt_internal_name
   1.556 +m4_define([_LT_LIBTOOL_DECLARE],
   1.557 +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
   1.558 +					   [description])))[]dnl
   1.559 +m4_pushdef([_libtool_name],
   1.560 +    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
   1.561 +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
   1.562 +    [0], [_libtool_name=[$]$1],
   1.563 +    [1], [_libtool_name=$lt_[]$1],
   1.564 +    [2], [_libtool_name=$lt_[]$1],
   1.565 +    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
   1.566 +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
   1.567 +])
   1.568 +
   1.569 +
   1.570 +# _LT_LIBTOOL_CONFIG_VARS
   1.571 +# -----------------------
   1.572 +# Produce commented declarations of non-tagged libtool config variables
   1.573 +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
   1.574 +# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
   1.575 +# section) are produced by _LT_LIBTOOL_TAG_VARS.
   1.576 +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
   1.577 +[m4_foreach([_lt_var],
   1.578 +    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
   1.579 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
   1.580 +
   1.581 +
   1.582 +# _LT_LIBTOOL_TAG_VARS(TAG)
   1.583 +# -------------------------
   1.584 +m4_define([_LT_LIBTOOL_TAG_VARS],
   1.585 +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
   1.586 +    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
   1.587 +
   1.588 +
   1.589 +# _LT_TAGVAR(VARNAME, [TAGNAME])
   1.590 +# ------------------------------
   1.591 +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
   1.592 +
   1.593 +
   1.594 +# _LT_CONFIG_COMMANDS
   1.595 +# -------------------
   1.596 +# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
   1.597 +# variables for single and double quote escaping we saved from calls
   1.598 +# to _LT_DECL, we can put quote escaped variables declarations
   1.599 +# into `config.status', and then the shell code to quote escape them in
   1.600 +# for loops in `config.status'.  Finally, any additional code accumulated
   1.601 +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
   1.602 +m4_defun([_LT_CONFIG_COMMANDS],
   1.603 +[AC_PROVIDE_IFELSE([LT_OUTPUT],
   1.604 +	dnl If the libtool generation code has been placed in $CONFIG_LT,
   1.605 +	dnl instead of duplicating it all over again into config.status,
   1.606 +	dnl then we will have config.status run $CONFIG_LT later, so it
   1.607 +	dnl needs to know what name is stored there:
   1.608 +        [AC_CONFIG_COMMANDS([libtool],
   1.609 +            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
   1.610 +    dnl If the libtool generation code is destined for config.status,
   1.611 +    dnl expand the accumulated commands and init code now:
   1.612 +    [AC_CONFIG_COMMANDS([libtool],
   1.613 +        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
   1.614 +])#_LT_CONFIG_COMMANDS
   1.615 +
   1.616 +
   1.617 +# Initialize.
   1.618 +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
   1.619 +[
   1.620 +
   1.621 +# The HP-UX ksh and POSIX shell print the target directory to stdout
   1.622 +# if CDPATH is set.
   1.623 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   1.624 +
   1.625 +sed_quote_subst='$sed_quote_subst'
   1.626 +double_quote_subst='$double_quote_subst'
   1.627 +delay_variable_subst='$delay_variable_subst'
   1.628 +_LT_CONFIG_STATUS_DECLARATIONS
   1.629 +LTCC='$LTCC'
   1.630 +LTCFLAGS='$LTCFLAGS'
   1.631 +compiler='$compiler_DEFAULT'
   1.632 +
   1.633 +# Quote evaled strings.
   1.634 +for var in lt_decl_all_varnames([[ \
   1.635 +]], lt_decl_quote_varnames); do
   1.636 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.637 +    *[[\\\\\\\`\\"\\\$]]*)
   1.638 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
   1.639 +      ;;
   1.640 +    *)
   1.641 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.642 +      ;;
   1.643 +    esac
   1.644 +done
   1.645 +
   1.646 +# Double-quote double-evaled strings.
   1.647 +for var in lt_decl_all_varnames([[ \
   1.648 +]], lt_decl_dquote_varnames); do
   1.649 +    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
   1.650 +    *[[\\\\\\\`\\"\\\$]]*)
   1.651 +      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
   1.652 +      ;;
   1.653 +    *)
   1.654 +      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
   1.655 +      ;;
   1.656 +    esac
   1.657 +done
   1.658 +
   1.659 +# Fix-up fallback echo if it was mangled by the above quoting rules.
   1.660 +case \$lt_ECHO in
   1.661 +*'\\\[$]0 --fallback-echo"')dnl "
   1.662 +  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
   1.663 +  ;;
   1.664 +esac
   1.665 +
   1.666 +_LT_OUTPUT_LIBTOOL_INIT
   1.667 +])
   1.668 +
   1.669 +
   1.670 +# LT_OUTPUT
   1.671 +# ---------
   1.672 +# This macro allows early generation of the libtool script (before
   1.673 +# AC_OUTPUT is called), incase it is used in configure for compilation
   1.674 +# tests.
   1.675 +AC_DEFUN([LT_OUTPUT],
   1.676 +[: ${CONFIG_LT=./config.lt}
   1.677 +AC_MSG_NOTICE([creating $CONFIG_LT])
   1.678 +cat >"$CONFIG_LT" <<_LTEOF
   1.679 +#! $SHELL
   1.680 +# Generated by $as_me.
   1.681 +# Run this file to recreate a libtool stub with the current configuration.
   1.682 +
   1.683 +lt_cl_silent=false
   1.684 +SHELL=\${CONFIG_SHELL-$SHELL}
   1.685 +_LTEOF
   1.686 +
   1.687 +cat >>"$CONFIG_LT" <<\_LTEOF
   1.688 +AS_SHELL_SANITIZE
   1.689 +_AS_PREPARE
   1.690 +
   1.691 +exec AS_MESSAGE_FD>&1
   1.692 +exec AS_MESSAGE_LOG_FD>>config.log
   1.693 +{
   1.694 +  echo
   1.695 +  AS_BOX([Running $as_me.])
   1.696 +} >&AS_MESSAGE_LOG_FD
   1.697 +
   1.698 +lt_cl_help="\
   1.699 +\`$as_me' creates a local libtool stub from the current configuration,
   1.700 +for use in further configure time tests before the real libtool is
   1.701 +generated.
   1.702 +
   1.703 +Usage: $[0] [[OPTIONS]]
   1.704 +
   1.705 +  -h, --help      print this help, then exit
   1.706 +  -V, --version   print version number, then exit
   1.707 +  -q, --quiet     do not print progress messages
   1.708 +  -d, --debug     don't remove temporary files
   1.709 +
   1.710 +Report bugs to <bug-libtool@gnu.org>."
   1.711 +
   1.712 +lt_cl_version="\
   1.713 +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
   1.714 +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
   1.715 +configured by $[0], generated by m4_PACKAGE_STRING.
   1.716 +
   1.717 +Copyright (C) 2008 Free Software Foundation, Inc.
   1.718 +This config.lt script is free software; the Free Software Foundation
   1.719 +gives unlimited permision to copy, distribute and modify it."
   1.720 +
   1.721 +while test $[#] != 0
   1.722 +do
   1.723 +  case $[1] in
   1.724 +    --version | --v* | -V )
   1.725 +      echo "$lt_cl_version"; exit 0 ;;
   1.726 +    --help | --h* | -h )
   1.727 +      echo "$lt_cl_help"; exit 0 ;;
   1.728 +    --debug | --d* | -d )
   1.729 +      debug=: ;;
   1.730 +    --quiet | --q* | --silent | --s* | -q )
   1.731 +      lt_cl_silent=: ;;
   1.732 +
   1.733 +    -*) AC_MSG_ERROR([unrecognized option: $[1]
   1.734 +Try \`$[0] --help' for more information.]) ;;
   1.735 +
   1.736 +    *) AC_MSG_ERROR([unrecognized argument: $[1]
   1.737 +Try \`$[0] --help' for more information.]) ;;
   1.738 +  esac
   1.739 +  shift
   1.740 +done
   1.741 +
   1.742 +if $lt_cl_silent; then
   1.743 +  exec AS_MESSAGE_FD>/dev/null
   1.744 +fi
   1.745 +_LTEOF
   1.746 +
   1.747 +cat >>"$CONFIG_LT" <<_LTEOF
   1.748 +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
   1.749 +_LTEOF
   1.750 +
   1.751 +cat >>"$CONFIG_LT" <<\_LTEOF
   1.752 +AC_MSG_NOTICE([creating $ofile])
   1.753 +_LT_OUTPUT_LIBTOOL_COMMANDS
   1.754 +AS_EXIT(0)
   1.755 +_LTEOF
   1.756 +chmod +x "$CONFIG_LT"
   1.757 +
   1.758 +# configure is writing to config.log, but config.lt does its own redirection,
   1.759 +# appending to config.log, which fails on DOS, as config.log is still kept
   1.760 +# open by configure.  Here we exec the FD to /dev/null, effectively closing
   1.761 +# config.log, so it can be properly (re)opened and appended to by config.lt.
   1.762 +if test "$no_create" != yes; then
   1.763 +  lt_cl_success=:
   1.764 +  test "$silent" = yes &&
   1.765 +    lt_config_lt_args="$lt_config_lt_args --quiet"
   1.766 +  exec AS_MESSAGE_LOG_FD>/dev/null
   1.767 +  $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
   1.768 +  exec AS_MESSAGE_LOG_FD>>config.log
   1.769 +  $lt_cl_success || AS_EXIT(1)
   1.770 +fi
   1.771 +])# LT_OUTPUT
   1.772 +
   1.773 +
   1.774 +# _LT_CONFIG(TAG)
   1.775 +# ---------------
   1.776 +# If TAG is the built-in tag, create an initial libtool script with a
   1.777 +# default configuration from the untagged config vars.  Otherwise add code
   1.778 +# to config.status for appending the configuration named by TAG from the
   1.779 +# matching tagged config vars.
   1.780 +m4_defun([_LT_CONFIG],
   1.781 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
   1.782 +_LT_CONFIG_SAVE_COMMANDS([
   1.783 +  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
   1.784 +  m4_if(_LT_TAG, [C], [
   1.785 +    # See if we are running on zsh, and set the options which allow our
   1.786 +    # commands through without removal of \ escapes.
   1.787 +    if test -n "${ZSH_VERSION+set}" ; then
   1.788 +      setopt NO_GLOB_SUBST
   1.789 +    fi
   1.790 +
   1.791 +    cfgfile="${ofile}T"
   1.792 +    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
   1.793 +    $RM "$cfgfile"
   1.794 +
   1.795 +    cat <<_LT_EOF >> "$cfgfile"
   1.796 +#! $SHELL
   1.797 +
   1.798 +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
   1.799 +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
   1.800 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
   1.801 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
   1.802 +#
   1.803 +_LT_COPYING
   1.804 +_LT_LIBTOOL_TAGS
   1.805 +
   1.806 +# ### BEGIN LIBTOOL CONFIG
   1.807 +_LT_LIBTOOL_CONFIG_VARS
   1.808 +_LT_LIBTOOL_TAG_VARS
   1.809 +# ### END LIBTOOL CONFIG
   1.810 +
   1.811 +_LT_EOF
   1.812 +
   1.813 +  case $host_os in
   1.814 +  aix3*)
   1.815 +    cat <<\_LT_EOF >> "$cfgfile"
   1.816 +# AIX sometimes has problems with the GCC collect2 program.  For some
   1.817 +# reason, if we set the COLLECT_NAMES environment variable, the problems
   1.818 +# vanish in a puff of smoke.
   1.819 +if test "X${COLLECT_NAMES+set}" != Xset; then
   1.820 +  COLLECT_NAMES=
   1.821 +  export COLLECT_NAMES
   1.822 +fi
   1.823 +_LT_EOF
   1.824 +    ;;
   1.825 +  esac
   1.826 +
   1.827 +  _LT_PROG_LTMAIN
   1.828 +
   1.829 +  # We use sed instead of cat because bash on DJGPP gets confused if
   1.830 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
   1.831 +  # text mode, it properly converts lines to CR/LF.  This bash problem
   1.832 +  # is reportedly fixed, but why not run on old versions too?
   1.833 +  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
   1.834 +    || (rm -f "$cfgfile"; exit 1)
   1.835 +
   1.836 +  _LT_PROG_XSI_SHELLFNS
   1.837 +
   1.838 +  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
   1.839 +    || (rm -f "$cfgfile"; exit 1)
   1.840 +
   1.841 +  mv -f "$cfgfile" "$ofile" ||
   1.842 +    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
   1.843 +  chmod +x "$ofile"
   1.844 +],
   1.845 +[cat <<_LT_EOF >> "$ofile"
   1.846 +
   1.847 +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
   1.848 +dnl in a comment (ie after a #).
   1.849 +# ### BEGIN LIBTOOL TAG CONFIG: $1
   1.850 +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
   1.851 +# ### END LIBTOOL TAG CONFIG: $1
   1.852 +_LT_EOF
   1.853 +])dnl /m4_if
   1.854 +],
   1.855 +[m4_if([$1], [], [
   1.856 +    PACKAGE='$PACKAGE'
   1.857 +    VERSION='$VERSION'
   1.858 +    TIMESTAMP='$TIMESTAMP'
   1.859 +    RM='$RM'
   1.860 +    ofile='$ofile'], [])
   1.861 +])dnl /_LT_CONFIG_SAVE_COMMANDS
   1.862 +])# _LT_CONFIG
   1.863 +
   1.864 +
   1.865 +# LT_SUPPORTED_TAG(TAG)
   1.866 +# ---------------------
   1.867 +# Trace this macro to discover what tags are supported by the libtool
   1.868 +# --tag option, using:
   1.869 +#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
   1.870 +AC_DEFUN([LT_SUPPORTED_TAG], [])
   1.871 +
   1.872 +
   1.873 +# C support is built-in for now
   1.874 +m4_define([_LT_LANG_C_enabled], [])
   1.875 +m4_define([_LT_TAGS], [])
   1.876 +
   1.877 +
   1.878 +# LT_LANG(LANG)
   1.879 +# -------------
   1.880 +# Enable libtool support for the given language if not already enabled.
   1.881 +AC_DEFUN([LT_LANG],
   1.882 +[AC_BEFORE([$0], [LT_OUTPUT])dnl
   1.883 +m4_case([$1],
   1.884 +  [C],			[_LT_LANG(C)],
   1.885 +  [C++],		[_LT_LANG(CXX)],
   1.886 +  [Java],		[_LT_LANG(GCJ)],
   1.887 +  [Fortran 77],		[_LT_LANG(F77)],
   1.888 +  [Fortran],		[_LT_LANG(FC)],
   1.889 +  [Windows Resource],	[_LT_LANG(RC)],
   1.890 +  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
   1.891 +    [_LT_LANG($1)],
   1.892 +    [m4_fatal([$0: unsupported language: "$1"])])])dnl
   1.893 +])# LT_LANG
   1.894 +
   1.895 +
   1.896 +# _LT_LANG(LANGNAME)
   1.897 +# ------------------
   1.898 +m4_defun([_LT_LANG],
   1.899 +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
   1.900 +  [LT_SUPPORTED_TAG([$1])dnl
   1.901 +  m4_append([_LT_TAGS], [$1 ])dnl
   1.902 +  m4_define([_LT_LANG_]$1[_enabled], [])dnl
   1.903 +  _LT_LANG_$1_CONFIG($1)])dnl
   1.904 +])# _LT_LANG
   1.905 +
   1.906 +
   1.907 +# _LT_LANG_DEFAULT_CONFIG
   1.908 +# -----------------------
   1.909 +m4_defun([_LT_LANG_DEFAULT_CONFIG],
   1.910 +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
   1.911 +  [LT_LANG(CXX)],
   1.912 +  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
   1.913 +
   1.914 +AC_PROVIDE_IFELSE([AC_PROG_F77],
   1.915 +  [LT_LANG(F77)],
   1.916 +  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
   1.917 +
   1.918 +AC_PROVIDE_IFELSE([AC_PROG_FC],
   1.919 +  [LT_LANG(FC)],
   1.920 +  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
   1.921 +
   1.922 +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
   1.923 +dnl pulling things in needlessly.
   1.924 +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
   1.925 +  [LT_LANG(GCJ)],
   1.926 +  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
   1.927 +    [LT_LANG(GCJ)],
   1.928 +    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
   1.929 +      [LT_LANG(GCJ)],
   1.930 +      [m4_ifdef([AC_PROG_GCJ],
   1.931 +	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
   1.932 +       m4_ifdef([A][M_PROG_GCJ],
   1.933 +	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
   1.934 +       m4_ifdef([LT_PROG_GCJ],
   1.935 +	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
   1.936 +
   1.937 +AC_PROVIDE_IFELSE([LT_PROG_RC],
   1.938 +  [LT_LANG(RC)],
   1.939 +  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
   1.940 +])# _LT_LANG_DEFAULT_CONFIG
   1.941 +
   1.942 +# Obsolete macros:
   1.943 +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
   1.944 +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
   1.945 +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
   1.946 +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
   1.947 +dnl aclocal-1.4 backwards compatibility:
   1.948 +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
   1.949 +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
   1.950 +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
   1.951 +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
   1.952 +
   1.953 +
   1.954 +# _LT_TAG_COMPILER
   1.955 +# ----------------
   1.956 +m4_defun([_LT_TAG_COMPILER],
   1.957 +[AC_REQUIRE([AC_PROG_CC])dnl
   1.958 +
   1.959 +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
   1.960 +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
   1.961 +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
   1.962 +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
   1.963 +
   1.964 +# If no C compiler was specified, use CC.
   1.965 +LTCC=${LTCC-"$CC"}
   1.966 +
   1.967 +# If no C compiler flags were specified, use CFLAGS.
   1.968 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
   1.969 +
   1.970 +# Allow CC to be a program name with arguments.
   1.971 +compiler=$CC
   1.972 +])# _LT_TAG_COMPILER
   1.973 +
   1.974 +
   1.975 +# _LT_COMPILER_BOILERPLATE
   1.976 +# ------------------------
   1.977 +# Check for compiler boilerplate output or warnings with
   1.978 +# the simple compiler test code.
   1.979 +m4_defun([_LT_COMPILER_BOILERPLATE],
   1.980 +[m4_require([_LT_DECL_SED])dnl
   1.981 +ac_outfile=conftest.$ac_objext
   1.982 +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
   1.983 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.984 +_lt_compiler_boilerplate=`cat conftest.err`
   1.985 +$RM conftest*
   1.986 +])# _LT_COMPILER_BOILERPLATE
   1.987 +
   1.988 +
   1.989 +# _LT_LINKER_BOILERPLATE
   1.990 +# ----------------------
   1.991 +# Check for linker boilerplate output or warnings with
   1.992 +# the simple link test code.
   1.993 +m4_defun([_LT_LINKER_BOILERPLATE],
   1.994 +[m4_require([_LT_DECL_SED])dnl
   1.995 +ac_outfile=conftest.$ac_objext
   1.996 +echo "$lt_simple_link_test_code" >conftest.$ac_ext
   1.997 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
   1.998 +_lt_linker_boilerplate=`cat conftest.err`
   1.999 +$RM -r conftest*
  1.1000 +])# _LT_LINKER_BOILERPLATE
  1.1001 +
  1.1002 +# _LT_REQUIRED_DARWIN_CHECKS
  1.1003 +# -------------------------
  1.1004 +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1.1005 +  case $host_os in
  1.1006 +    rhapsody* | darwin*)
  1.1007 +    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1.1008 +    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1.1009 +    AC_CHECK_TOOL([LIPO], [lipo], [:])
  1.1010 +    AC_CHECK_TOOL([OTOOL], [otool], [:])
  1.1011 +    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1.1012 +    _LT_DECL([], [DSYMUTIL], [1],
  1.1013 +      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1.1014 +    _LT_DECL([], [NMEDIT], [1],
  1.1015 +      [Tool to change global to local symbols on Mac OS X])
  1.1016 +    _LT_DECL([], [LIPO], [1],
  1.1017 +      [Tool to manipulate fat objects and archives on Mac OS X])
  1.1018 +    _LT_DECL([], [OTOOL], [1],
  1.1019 +      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1.1020 +    _LT_DECL([], [OTOOL64], [1],
  1.1021 +      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1.1022 +
  1.1023 +    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1.1024 +      [lt_cv_apple_cc_single_mod=no
  1.1025 +      if test -z "${LT_MULTI_MODULE}"; then
  1.1026 +	# By default we will add the -single_module flag. You can override
  1.1027 +	# by either setting the environment variable LT_MULTI_MODULE
  1.1028 +	# non-empty at configure time, or by adding -multi_module to the
  1.1029 +	# link flags.
  1.1030 +	rm -rf libconftest.dylib*
  1.1031 +	echo "int foo(void){return 1;}" > conftest.c
  1.1032 +	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1.1033 +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1.1034 +	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1.1035 +	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1.1036 +        _lt_result=$?
  1.1037 +	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1.1038 +	  lt_cv_apple_cc_single_mod=yes
  1.1039 +	else
  1.1040 +	  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.1041 +	fi
  1.1042 +	rm -rf libconftest.dylib*
  1.1043 +	rm -f conftest.*
  1.1044 +      fi])
  1.1045 +    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1.1046 +      [lt_cv_ld_exported_symbols_list],
  1.1047 +      [lt_cv_ld_exported_symbols_list=no
  1.1048 +      save_LDFLAGS=$LDFLAGS
  1.1049 +      echo "_main" > conftest.sym
  1.1050 +      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1.1051 +      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.1052 +	[lt_cv_ld_exported_symbols_list=yes],
  1.1053 +	[lt_cv_ld_exported_symbols_list=no])
  1.1054 +	LDFLAGS="$save_LDFLAGS"
  1.1055 +    ])
  1.1056 +    case $host_os in
  1.1057 +    rhapsody* | darwin1.[[012]])
  1.1058 +      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1.1059 +    darwin1.*)
  1.1060 +      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1.1061 +    darwin*) # darwin 5.x on
  1.1062 +      # if running on 10.5 or later, the deployment target defaults
  1.1063 +      # to the OS version, if on x86, and 10.4, the deployment
  1.1064 +      # target defaults to 10.4. Don't you love it?
  1.1065 +      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1.1066 +	10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1.1067 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1.1068 +	10.[[012]]*)
  1.1069 +	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1.1070 +	10.*)
  1.1071 +	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1.1072 +      esac
  1.1073 +    ;;
  1.1074 +  esac
  1.1075 +    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1.1076 +      _lt_dar_single_mod='$single_module'
  1.1077 +    fi
  1.1078 +    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1.1079 +      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1.1080 +    else
  1.1081 +      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.1082 +    fi
  1.1083 +    if test "$DSYMUTIL" != ":"; then
  1.1084 +      _lt_dsymutil='~$DSYMUTIL $lib || :'
  1.1085 +    else
  1.1086 +      _lt_dsymutil=
  1.1087 +    fi
  1.1088 +    ;;
  1.1089 +  esac
  1.1090 +])
  1.1091 +
  1.1092 +
  1.1093 +# _LT_DARWIN_LINKER_FEATURES
  1.1094 +# --------------------------
  1.1095 +# Checks for linker and compiler features on darwin
  1.1096 +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1.1097 +[
  1.1098 +  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1.1099 +  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1.1100 +  _LT_TAGVAR(hardcode_direct, $1)=no
  1.1101 +  _LT_TAGVAR(hardcode_automatic, $1)=yes
  1.1102 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.1103 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1.1104 +  _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.1105 +  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1.1106 +  case $cc_basename in
  1.1107 +     ifort*) _lt_dar_can_shared=yes ;;
  1.1108 +     *) _lt_dar_can_shared=$GCC ;;
  1.1109 +  esac
  1.1110 +  if test "$_lt_dar_can_shared" = "yes"; then
  1.1111 +    output_verbose_link_cmd=echo
  1.1112 +    _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.1113 +    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1.1114 +    _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.1115 +    _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1.1116 +    m4_if([$1], [CXX],
  1.1117 +[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1.1118 +      _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1.1119 +      _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1.1120 +    fi
  1.1121 +],[])
  1.1122 +  else
  1.1123 +  _LT_TAGVAR(ld_shlibs, $1)=no
  1.1124 +  fi
  1.1125 +])
  1.1126 +
  1.1127 +# _LT_SYS_MODULE_PATH_AIX
  1.1128 +# -----------------------
  1.1129 +# Links a minimal program and checks the executable
  1.1130 +# for the system default hardcoded library path. In most cases,
  1.1131 +# this is /usr/lib:/lib, but when the MPI compilers are used
  1.1132 +# the location of the communication and MPI libs are included too.
  1.1133 +# If we don't find anything, use the default library path according
  1.1134 +# to the aix ld manual.
  1.1135 +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1.1136 +[m4_require([_LT_DECL_SED])dnl
  1.1137 +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1.1138 +lt_aix_libpath_sed='
  1.1139 +    /Import File Strings/,/^$/ {
  1.1140 +	/^0/ {
  1.1141 +	    s/^0  *\(.*\)$/\1/
  1.1142 +	    p
  1.1143 +	}
  1.1144 +    }'
  1.1145 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1.1146 +# Check for a 64-bit object if we didn't find anything.
  1.1147 +if test -z "$aix_libpath"; then
  1.1148 +  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1.1149 +fi],[])
  1.1150 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1.1151 +])# _LT_SYS_MODULE_PATH_AIX
  1.1152 +
  1.1153 +
  1.1154 +# _LT_SHELL_INIT(ARG)
  1.1155 +# -------------------
  1.1156 +m4_define([_LT_SHELL_INIT],
  1.1157 +[ifdef([AC_DIVERSION_NOTICE],
  1.1158 +	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1.1159 +	 [AC_DIVERT_PUSH(NOTICE)])
  1.1160 +$1
  1.1161 +AC_DIVERT_POP
  1.1162 +])# _LT_SHELL_INIT
  1.1163 +
  1.1164 +
  1.1165 +# _LT_PROG_ECHO_BACKSLASH
  1.1166 +# -----------------------
  1.1167 +# Add some code to the start of the generated configure script which
  1.1168 +# will find an echo command which doesn't interpret backslashes.
  1.1169 +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1.1170 +[_LT_SHELL_INIT([
  1.1171 +# Check that we are running under the correct shell.
  1.1172 +SHELL=${CONFIG_SHELL-/bin/sh}
  1.1173 +
  1.1174 +case X$lt_ECHO in
  1.1175 +X*--fallback-echo)
  1.1176 +  # Remove one level of quotation (which was required for Make).
  1.1177 +  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1.1178 +  ;;
  1.1179 +esac
  1.1180 +
  1.1181 +ECHO=${lt_ECHO-echo}
  1.1182 +if test "X[$]1" = X--no-reexec; then
  1.1183 +  # Discard the --no-reexec flag, and continue.
  1.1184 +  shift
  1.1185 +elif test "X[$]1" = X--fallback-echo; then
  1.1186 +  # Avoid inline document here, it may be left over
  1.1187 +  :
  1.1188 +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1.1189 +  # Yippee, $ECHO works!
  1.1190 +  :
  1.1191 +else
  1.1192 +  # Restart under the correct shell.
  1.1193 +  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1194 +fi
  1.1195 +
  1.1196 +if test "X[$]1" = X--fallback-echo; then
  1.1197 +  # used as fallback echo
  1.1198 +  shift
  1.1199 +  cat <<_LT_EOF
  1.1200 +[$]*
  1.1201 +_LT_EOF
  1.1202 +  exit 0
  1.1203 +fi
  1.1204 +
  1.1205 +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.1206 +# if CDPATH is set.
  1.1207 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.1208 +
  1.1209 +if test -z "$lt_ECHO"; then
  1.1210 +  if test "X${echo_test_string+set}" != Xset; then
  1.1211 +    # find a string as large as possible, as long as the shell can cope with it
  1.1212 +    for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1.1213 +      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1.1214 +      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1.1215 +	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1.1216 +      then
  1.1217 +        break
  1.1218 +      fi
  1.1219 +    done
  1.1220 +  fi
  1.1221 +
  1.1222 +  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1223 +     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1.1224 +     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1225 +    :
  1.1226 +  else
  1.1227 +    # The Solaris, AIX, and Digital Unix default echo programs unquote
  1.1228 +    # backslashes.  This makes it impossible to quote backslashes using
  1.1229 +    #   echo "$something" | sed 's/\\/\\\\/g'
  1.1230 +    #
  1.1231 +    # So, first we look for a working echo in the user's PATH.
  1.1232 +
  1.1233 +    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.1234 +    for dir in $PATH /usr/ucb; do
  1.1235 +      IFS="$lt_save_ifs"
  1.1236 +      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1.1237 +         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1.1238 +         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1.1239 +         test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1240 +        ECHO="$dir/echo"
  1.1241 +        break
  1.1242 +      fi
  1.1243 +    done
  1.1244 +    IFS="$lt_save_ifs"
  1.1245 +
  1.1246 +    if test "X$ECHO" = Xecho; then
  1.1247 +      # We didn't find a better echo, so look for alternatives.
  1.1248 +      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1249 +         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1.1250 +         test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1251 +        # This shell has a builtin print -r that does the trick.
  1.1252 +        ECHO='print -r'
  1.1253 +      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1.1254 +	   test "X$CONFIG_SHELL" != X/bin/ksh; then
  1.1255 +        # If we have ksh, try running configure again with it.
  1.1256 +        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1.1257 +        export ORIGINAL_CONFIG_SHELL
  1.1258 +        CONFIG_SHELL=/bin/ksh
  1.1259 +        export CONFIG_SHELL
  1.1260 +        exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1261 +      else
  1.1262 +        # Try using printf.
  1.1263 +        ECHO='printf %s\n'
  1.1264 +        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1.1265 +	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1.1266 +	   test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1267 +	  # Cool, printf works
  1.1268 +	  :
  1.1269 +        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1270 +	     test "X$echo_testing_string" = 'X\t' &&
  1.1271 +	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1272 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1273 +	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1.1274 +	  export CONFIG_SHELL
  1.1275 +	  SHELL="$CONFIG_SHELL"
  1.1276 +	  export SHELL
  1.1277 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1278 +        elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1279 +	     test "X$echo_testing_string" = 'X\t' &&
  1.1280 +	     echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1281 +	     test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1282 +	  ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1283 +        else
  1.1284 +	  # maybe with a smaller string...
  1.1285 +	  prev=:
  1.1286 +
  1.1287 +	  for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1.1288 +	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1.1289 +	    then
  1.1290 +	      break
  1.1291 +	    fi
  1.1292 +	    prev="$cmd"
  1.1293 +	  done
  1.1294 +
  1.1295 +	  if test "$prev" != 'sed 50q "[$]0"'; then
  1.1296 +	    echo_test_string=`eval $prev`
  1.1297 +	    export echo_test_string
  1.1298 +	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1.1299 +	  else
  1.1300 +	    # Oops.  We lost completely, so just stick with echo.
  1.1301 +	    ECHO=echo
  1.1302 +	  fi
  1.1303 +        fi
  1.1304 +      fi
  1.1305 +    fi
  1.1306 +  fi
  1.1307 +fi
  1.1308 +
  1.1309 +# Copy echo and quote the copy suitably for passing to libtool from
  1.1310 +# the Makefile, instead of quoting the original, which is used later.
  1.1311 +lt_ECHO=$ECHO
  1.1312 +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1.1313 +   lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1.1314 +fi
  1.1315 +
  1.1316 +AC_SUBST(lt_ECHO)
  1.1317 +])
  1.1318 +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1.1319 +_LT_DECL([], [ECHO], [1],
  1.1320 +    [An echo program that does not interpret backslashes])
  1.1321 +])# _LT_PROG_ECHO_BACKSLASH
  1.1322 +
  1.1323 +
  1.1324 +# _LT_ENABLE_LOCK
  1.1325 +# ---------------
  1.1326 +m4_defun([_LT_ENABLE_LOCK],
  1.1327 +[AC_ARG_ENABLE([libtool-lock],
  1.1328 +  [AS_HELP_STRING([--disable-libtool-lock],
  1.1329 +    [avoid locking (might break parallel builds)])])
  1.1330 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1.1331 +
  1.1332 +# Some flags need to be propagated to the compiler or linker for good
  1.1333 +# libtool support.
  1.1334 +case $host in
  1.1335 +ia64-*-hpux*)
  1.1336 +  # Find out which ABI we are using.
  1.1337 +  echo 'int i;' > conftest.$ac_ext
  1.1338 +  if AC_TRY_EVAL(ac_compile); then
  1.1339 +    case `/usr/bin/file conftest.$ac_objext` in
  1.1340 +      *ELF-32*)
  1.1341 +	HPUX_IA64_MODE="32"
  1.1342 +	;;
  1.1343 +      *ELF-64*)
  1.1344 +	HPUX_IA64_MODE="64"
  1.1345 +	;;
  1.1346 +    esac
  1.1347 +  fi
  1.1348 +  rm -rf conftest*
  1.1349 +  ;;
  1.1350 +*-*-irix6*)
  1.1351 +  # Find out which ABI we are using.
  1.1352 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1.1353 +  if AC_TRY_EVAL(ac_compile); then
  1.1354 +    if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1355 +      case `/usr/bin/file conftest.$ac_objext` in
  1.1356 +	*32-bit*)
  1.1357 +	  LD="${LD-ld} -melf32bsmip"
  1.1358 +	  ;;
  1.1359 +	*N32*)
  1.1360 +	  LD="${LD-ld} -melf32bmipn32"
  1.1361 +	  ;;
  1.1362 +	*64-bit*)
  1.1363 +	  LD="${LD-ld} -melf64bmip"
  1.1364 +	;;
  1.1365 +      esac
  1.1366 +    else
  1.1367 +      case `/usr/bin/file conftest.$ac_objext` in
  1.1368 +	*32-bit*)
  1.1369 +	  LD="${LD-ld} -32"
  1.1370 +	  ;;
  1.1371 +	*N32*)
  1.1372 +	  LD="${LD-ld} -n32"
  1.1373 +	  ;;
  1.1374 +	*64-bit*)
  1.1375 +	  LD="${LD-ld} -64"
  1.1376 +	  ;;
  1.1377 +      esac
  1.1378 +    fi
  1.1379 +  fi
  1.1380 +  rm -rf conftest*
  1.1381 +  ;;
  1.1382 +
  1.1383 +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1.1384 +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1.1385 +  # Find out which ABI we are using.
  1.1386 +  echo 'int i;' > conftest.$ac_ext
  1.1387 +  if AC_TRY_EVAL(ac_compile); then
  1.1388 +    case `/usr/bin/file conftest.o` in
  1.1389 +      *32-bit*)
  1.1390 +	case $host in
  1.1391 +	  x86_64-*kfreebsd*-gnu)
  1.1392 +	    LD="${LD-ld} -m elf_i386_fbsd"
  1.1393 +	    ;;
  1.1394 +	  x86_64-*linux*)
  1.1395 +	    LD="${LD-ld} -m elf_i386"
  1.1396 +	    ;;
  1.1397 +	  ppc64-*linux*|powerpc64-*linux*)
  1.1398 +	    LD="${LD-ld} -m elf32ppclinux"
  1.1399 +	    ;;
  1.1400 +	  s390x-*linux*)
  1.1401 +	    LD="${LD-ld} -m elf_s390"
  1.1402 +	    ;;
  1.1403 +	  sparc64-*linux*)
  1.1404 +	    LD="${LD-ld} -m elf32_sparc"
  1.1405 +	    ;;
  1.1406 +	esac
  1.1407 +	;;
  1.1408 +      *64-bit*)
  1.1409 +	case $host in
  1.1410 +	  x86_64-*kfreebsd*-gnu)
  1.1411 +	    LD="${LD-ld} -m elf_x86_64_fbsd"
  1.1412 +	    ;;
  1.1413 +	  x86_64-*linux*)
  1.1414 +	    LD="${LD-ld} -m elf_x86_64"
  1.1415 +	    ;;
  1.1416 +	  ppc*-*linux*|powerpc*-*linux*)
  1.1417 +	    LD="${LD-ld} -m elf64ppc"
  1.1418 +	    ;;
  1.1419 +	  s390*-*linux*|s390*-*tpf*)
  1.1420 +	    LD="${LD-ld} -m elf64_s390"
  1.1421 +	    ;;
  1.1422 +	  sparc*-*linux*)
  1.1423 +	    LD="${LD-ld} -m elf64_sparc"
  1.1424 +	    ;;
  1.1425 +	esac
  1.1426 +	;;
  1.1427 +    esac
  1.1428 +  fi
  1.1429 +  rm -rf conftest*
  1.1430 +  ;;
  1.1431 +
  1.1432 +*-*-sco3.2v5*)
  1.1433 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1.1434 +  SAVE_CFLAGS="$CFLAGS"
  1.1435 +  CFLAGS="$CFLAGS -belf"
  1.1436 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1.1437 +    [AC_LANG_PUSH(C)
  1.1438 +     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1.1439 +     AC_LANG_POP])
  1.1440 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1.1441 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1.1442 +    CFLAGS="$SAVE_CFLAGS"
  1.1443 +  fi
  1.1444 +  ;;
  1.1445 +sparc*-*solaris*)
  1.1446 +  # Find out which ABI we are using.
  1.1447 +  echo 'int i;' > conftest.$ac_ext
  1.1448 +  if AC_TRY_EVAL(ac_compile); then
  1.1449 +    case `/usr/bin/file conftest.o` in
  1.1450 +    *64-bit*)
  1.1451 +      case $lt_cv_prog_gnu_ld in
  1.1452 +      yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1.1453 +      *)
  1.1454 +	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1.1455 +	  LD="${LD-ld} -64"
  1.1456 +	fi
  1.1457 +	;;
  1.1458 +      esac
  1.1459 +      ;;
  1.1460 +    esac
  1.1461 +  fi
  1.1462 +  rm -rf conftest*
  1.1463 +  ;;
  1.1464 +esac
  1.1465 +
  1.1466 +need_locks="$enable_libtool_lock"
  1.1467 +])# _LT_ENABLE_LOCK
  1.1468 +
  1.1469 +
  1.1470 +# _LT_CMD_OLD_ARCHIVE
  1.1471 +# -------------------
  1.1472 +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1.1473 +[AC_CHECK_TOOL(AR, ar, false)
  1.1474 +test -z "$AR" && AR=ar
  1.1475 +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1.1476 +_LT_DECL([], [AR], [1], [The archiver])
  1.1477 +_LT_DECL([], [AR_FLAGS], [1])
  1.1478 +
  1.1479 +AC_CHECK_TOOL(STRIP, strip, :)
  1.1480 +test -z "$STRIP" && STRIP=:
  1.1481 +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1.1482 +
  1.1483 +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1.1484  test -z "$RANLIB" && RANLIB=:
  1.1485 -test -z "$STRIP" && STRIP=:
  1.1486 -test -z "$ac_objext" && ac_objext=o
  1.1487 +_LT_DECL([], [RANLIB], [1],
  1.1488 +    [Commands used to install an old-style archive])
  1.1489  
  1.1490  # Determine commands to create old-style static archives.
  1.1491 -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1.1492 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1.1493  old_postinstall_cmds='chmod 644 $oldlib'
  1.1494  old_postuninstall_cmds=
  1.1495  
  1.1496 @@ -517,439 +1720,24 @@
  1.1497    esac
  1.1498    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1.1499  fi
  1.1500 -
  1.1501 -_LT_CC_BASENAME([$compiler])
  1.1502 -
  1.1503 -# Only perform the check for file, if the check method requires it
  1.1504 -case $deplibs_check_method in
  1.1505 -file_magic*)
  1.1506 -  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1.1507 -    AC_PATH_MAGIC
  1.1508 -  fi
  1.1509 -  ;;
  1.1510 -esac
  1.1511 -
  1.1512 -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1.1513 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1.1514 -enable_win32_dll=yes, enable_win32_dll=no)
  1.1515 -
  1.1516 -AC_ARG_ENABLE([libtool-lock],
  1.1517 -    [AC_HELP_STRING([--disable-libtool-lock],
  1.1518 -	[avoid locking (might break parallel builds)])])
  1.1519 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1.1520 -
  1.1521 -AC_ARG_WITH([pic],
  1.1522 -    [AC_HELP_STRING([--with-pic],
  1.1523 -	[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1.1524 -    [pic_mode="$withval"],
  1.1525 -    [pic_mode=default])
  1.1526 -test -z "$pic_mode" && pic_mode=default
  1.1527 -
  1.1528 -# Use C for the default configuration in the libtool script
  1.1529 -tagname=
  1.1530 -AC_LIBTOOL_LANG_C_CONFIG
  1.1531 -_LT_AC_TAGCONFIG
  1.1532 -])# AC_LIBTOOL_SETUP
  1.1533 -
  1.1534 -
  1.1535 -# _LT_AC_SYS_COMPILER
  1.1536 -# -------------------
  1.1537 -AC_DEFUN([_LT_AC_SYS_COMPILER],
  1.1538 -[AC_REQUIRE([AC_PROG_CC])dnl
  1.1539 -
  1.1540 -# If no C compiler was specified, use CC.
  1.1541 -LTCC=${LTCC-"$CC"}
  1.1542 -
  1.1543 -# If no C compiler flags were specified, use CFLAGS.
  1.1544 -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1.1545 -
  1.1546 -# Allow CC to be a program name with arguments.
  1.1547 -compiler=$CC
  1.1548 -])# _LT_AC_SYS_COMPILER
  1.1549 -
  1.1550 -
  1.1551 -# _LT_CC_BASENAME(CC)
  1.1552 -# -------------------
  1.1553 -# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
  1.1554 -AC_DEFUN([_LT_CC_BASENAME],
  1.1555 -[for cc_temp in $1""; do
  1.1556 -  case $cc_temp in
  1.1557 -    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  1.1558 -    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  1.1559 -    \-*) ;;
  1.1560 -    *) break;;
  1.1561 -  esac
  1.1562 -done
  1.1563 -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  1.1564 -])
  1.1565 -
  1.1566 -
  1.1567 -# _LT_COMPILER_BOILERPLATE
  1.1568 -# ------------------------
  1.1569 -# Check for compiler boilerplate output or warnings with
  1.1570 -# the simple compiler test code.
  1.1571 -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  1.1572 -[ac_outfile=conftest.$ac_objext
  1.1573 -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  1.1574 -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1.1575 -_lt_compiler_boilerplate=`cat conftest.err`
  1.1576 -$rm conftest*
  1.1577 -])# _LT_COMPILER_BOILERPLATE
  1.1578 -
  1.1579 -
  1.1580 -# _LT_LINKER_BOILERPLATE
  1.1581 -# ----------------------
  1.1582 -# Check for linker boilerplate output or warnings with
  1.1583 -# the simple link test code.
  1.1584 -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  1.1585 -[ac_outfile=conftest.$ac_objext
  1.1586 -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  1.1587 -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1.1588 -_lt_linker_boilerplate=`cat conftest.err`
  1.1589 -$rm conftest*
  1.1590 -])# _LT_LINKER_BOILERPLATE
  1.1591 -
  1.1592 -
  1.1593 -# _LT_AC_SYS_LIBPATH_AIX
  1.1594 -# ----------------------
  1.1595 -# Links a minimal program and checks the executable
  1.1596 -# for the system default hardcoded library path. In most cases,
  1.1597 -# this is /usr/lib:/lib, but when the MPI compilers are used
  1.1598 -# the location of the communication and MPI libs are included too.
  1.1599 -# If we don't find anything, use the default library path according
  1.1600 -# to the aix ld manual.
  1.1601 -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1.1602 -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1.1603 -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  1.1604 -}'`
  1.1605 -# Check for a 64-bit object if we didn't find anything.
  1.1606 -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
  1.1607 -}'`; fi],[])
  1.1608 -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1.1609 -])# _LT_AC_SYS_LIBPATH_AIX
  1.1610 -
  1.1611 -
  1.1612 -# _LT_AC_SHELL_INIT(ARG)
  1.1613 -# ----------------------
  1.1614 -AC_DEFUN([_LT_AC_SHELL_INIT],
  1.1615 -[ifdef([AC_DIVERSION_NOTICE],
  1.1616 -	     [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1.1617 -	 [AC_DIVERT_PUSH(NOTICE)])
  1.1618 -$1
  1.1619 -AC_DIVERT_POP
  1.1620 -])# _LT_AC_SHELL_INIT
  1.1621 -
  1.1622 -
  1.1623 -# _LT_AC_PROG_ECHO_BACKSLASH
  1.1624 -# --------------------------
  1.1625 -# Add some code to the start of the generated configure script which
  1.1626 -# will find an echo command which doesn't interpret backslashes.
  1.1627 -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1.1628 -[_LT_AC_SHELL_INIT([
  1.1629 -# Check that we are running under the correct shell.
  1.1630 -SHELL=${CONFIG_SHELL-/bin/sh}
  1.1631 -
  1.1632 -case X$ECHO in
  1.1633 -X*--fallback-echo)
  1.1634 -  # Remove one level of quotation (which was required for Make).
  1.1635 -  ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1.1636 -  ;;
  1.1637 -esac
  1.1638 -
  1.1639 -echo=${ECHO-echo}
  1.1640 -if test "X[$]1" = X--no-reexec; then
  1.1641 -  # Discard the --no-reexec flag, and continue.
  1.1642 -  shift
  1.1643 -elif test "X[$]1" = X--fallback-echo; then
  1.1644 -  # Avoid inline document here, it may be left over
  1.1645 -  :
  1.1646 -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1.1647 -  # Yippee, $echo works!
  1.1648 -  :
  1.1649 -else
  1.1650 -  # Restart under the correct shell.
  1.1651 -  exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1652 -fi
  1.1653 -
  1.1654 -if test "X[$]1" = X--fallback-echo; then
  1.1655 -  # used as fallback echo
  1.1656 -  shift
  1.1657 -  cat <<EOF
  1.1658 -[$]*
  1.1659 -EOF
  1.1660 -  exit 0
  1.1661 -fi
  1.1662 -
  1.1663 -# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.1664 -# if CDPATH is set.
  1.1665 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.1666 -
  1.1667 -if test -z "$ECHO"; then
  1.1668 -if test "X${echo_test_string+set}" != Xset; then
  1.1669 -# find a string as large as possible, as long as the shell can cope with it
  1.1670 -  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1.1671 -    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1.1672 -    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1.1673 -       echo_test_string=`eval $cmd` &&
  1.1674 -       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1.1675 -    then
  1.1676 -      break
  1.1677 -    fi
  1.1678 -  done
  1.1679 -fi
  1.1680 -
  1.1681 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1.1682 -   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1.1683 -   test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1684 -  :
  1.1685 -else
  1.1686 -  # The Solaris, AIX, and Digital Unix default echo programs unquote
  1.1687 -  # backslashes.  This makes it impossible to quote backslashes using
  1.1688 -  #   echo "$something" | sed 's/\\/\\\\/g'
  1.1689 -  #
  1.1690 -  # So, first we look for a working echo in the user's PATH.
  1.1691 -
  1.1692 -  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1.1693 -  for dir in $PATH /usr/ucb; do
  1.1694 -    IFS="$lt_save_ifs"
  1.1695 -    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1.1696 -       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1.1697 -       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1.1698 -       test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1699 -      echo="$dir/echo"
  1.1700 -      break
  1.1701 -    fi
  1.1702 -  done
  1.1703 -  IFS="$lt_save_ifs"
  1.1704 -
  1.1705 -  if test "X$echo" = Xecho; then
  1.1706 -    # We didn't find a better echo, so look for alternatives.
  1.1707 -    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1.1708 -       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1.1709 -       test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1710 -      # This shell has a builtin print -r that does the trick.
  1.1711 -      echo='print -r'
  1.1712 -    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1.1713 -	 test "X$CONFIG_SHELL" != X/bin/ksh; then
  1.1714 -      # If we have ksh, try running configure again with it.
  1.1715 -      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1.1716 -      export ORIGINAL_CONFIG_SHELL
  1.1717 -      CONFIG_SHELL=/bin/ksh
  1.1718 -      export CONFIG_SHELL
  1.1719 -      exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1.1720 -    else
  1.1721 -      # Try using printf.
  1.1722 -      echo='printf %s\n'
  1.1723 -      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1.1724 -	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1.1725 -	 test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1726 -	# Cool, printf works
  1.1727 -	:
  1.1728 -      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1729 -	   test "X$echo_testing_string" = 'X\t' &&
  1.1730 -	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1731 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1732 -	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1.1733 -	export CONFIG_SHELL
  1.1734 -	SHELL="$CONFIG_SHELL"
  1.1735 -	export SHELL
  1.1736 -	echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1737 -      elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1.1738 -	   test "X$echo_testing_string" = 'X\t' &&
  1.1739 -	   echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1.1740 -	   test "X$echo_testing_string" = "X$echo_test_string"; then
  1.1741 -	echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1.1742 -      else
  1.1743 -	# maybe with a smaller string...
  1.1744 -	prev=:
  1.1745 -
  1.1746 -	for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1.1747 -	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1.1748 -	  then
  1.1749 -	    break
  1.1750 -	  fi
  1.1751 -	  prev="$cmd"
  1.1752 -	done
  1.1753 -
  1.1754 -	if test "$prev" != 'sed 50q "[$]0"'; then
  1.1755 -	  echo_test_string=`eval $prev`
  1.1756 -	  export echo_test_string
  1.1757 -	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1.1758 -	else
  1.1759 -	  # Oops.  We lost completely, so just stick with echo.
  1.1760 -	  echo=echo
  1.1761 -	fi
  1.1762 -      fi
  1.1763 -    fi
  1.1764 -  fi
  1.1765 -fi
  1.1766 -fi
  1.1767 -
  1.1768 -# Copy echo and quote the copy suitably for passing to libtool from
  1.1769 -# the Makefile, instead of quoting the original, which is used later.
  1.1770 -ECHO=$echo
  1.1771 -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1.1772 -   ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1.1773 -fi
  1.1774 -
  1.1775 -AC_SUBST(ECHO)
  1.1776 -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1.1777 -
  1.1778 -
  1.1779 -# _LT_AC_LOCK
  1.1780 -# -----------
  1.1781 -AC_DEFUN([_LT_AC_LOCK],
  1.1782 -[AC_ARG_ENABLE([libtool-lock],
  1.1783 -    [AC_HELP_STRING([--disable-libtool-lock],
  1.1784 -	[avoid locking (might break parallel builds)])])
  1.1785 -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1.1786 -
  1.1787 -# Some flags need to be propagated to the compiler or linker for good
  1.1788 -# libtool support.
  1.1789 -case $host in
  1.1790 -ia64-*-hpux*)
  1.1791 -  # Find out which ABI we are using.
  1.1792 -  echo 'int i;' > conftest.$ac_ext
  1.1793 -  if AC_TRY_EVAL(ac_compile); then
  1.1794 -    case `/usr/bin/file conftest.$ac_objext` in
  1.1795 -    *ELF-32*)
  1.1796 -      HPUX_IA64_MODE="32"
  1.1797 -      ;;
  1.1798 -    *ELF-64*)
  1.1799 -      HPUX_IA64_MODE="64"
  1.1800 -      ;;
  1.1801 -    esac
  1.1802 -  fi
  1.1803 -  rm -rf conftest*
  1.1804 -  ;;
  1.1805 -*-*-irix6*)
  1.1806 -  # Find out which ABI we are using.
  1.1807 -  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1.1808 -  if AC_TRY_EVAL(ac_compile); then
  1.1809 -   if test "$lt_cv_prog_gnu_ld" = yes; then
  1.1810 -    case `/usr/bin/file conftest.$ac_objext` in
  1.1811 -    *32-bit*)
  1.1812 -      LD="${LD-ld} -melf32bsmip"
  1.1813 -      ;;
  1.1814 -    *N32*)
  1.1815 -      LD="${LD-ld} -melf32bmipn32"
  1.1816 -      ;;
  1.1817 -    *64-bit*)
  1.1818 -      LD="${LD-ld} -melf64bmip"
  1.1819 -      ;;
  1.1820 -    esac
  1.1821 -   else
  1.1822 -    case `/usr/bin/file conftest.$ac_objext` in
  1.1823 -    *32-bit*)
  1.1824 -      LD="${LD-ld} -32"
  1.1825 -      ;;
  1.1826 -    *N32*)
  1.1827 -      LD="${LD-ld} -n32"
  1.1828 -      ;;
  1.1829 -    *64-bit*)
  1.1830 -      LD="${LD-ld} -64"
  1.1831 -      ;;
  1.1832 -    esac
  1.1833 -   fi
  1.1834 -  fi
  1.1835 -  rm -rf conftest*
  1.1836 -  ;;
  1.1837 -
  1.1838 -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  1.1839 -  # Find out which ABI we are using.
  1.1840 -  echo 'int i;' > conftest.$ac_ext
  1.1841 -  if AC_TRY_EVAL(ac_compile); then
  1.1842 -    case `/usr/bin/file conftest.o` in
  1.1843 -    *32-bit*)
  1.1844 -      case $host in
  1.1845 -        x86_64-*linux*)
  1.1846 -          LD="${LD-ld} -m elf_i386"
  1.1847 -          ;;
  1.1848 -        ppc64-*linux*|powerpc64-*linux*)
  1.1849 -          LD="${LD-ld} -m elf32ppclinux"
  1.1850 -          ;;
  1.1851 -        s390x-*linux*)
  1.1852 -          LD="${LD-ld} -m elf_s390"
  1.1853 -          ;;
  1.1854 -        sparc64-*linux*)
  1.1855 -          LD="${LD-ld} -m elf32_sparc"
  1.1856 -          ;;
  1.1857 -      esac
  1.1858 -      ;;
  1.1859 -    *64-bit*)
  1.1860 -      case $host in
  1.1861 -        x86_64-*linux*)
  1.1862 -          LD="${LD-ld} -m elf_x86_64"
  1.1863 -          ;;
  1.1864 -        ppc*-*linux*|powerpc*-*linux*)
  1.1865 -          LD="${LD-ld} -m elf64ppc"
  1.1866 -          ;;
  1.1867 -        s390*-*linux*)
  1.1868 -          LD="${LD-ld} -m elf64_s390"
  1.1869 -          ;;
  1.1870 -        sparc*-*linux*)
  1.1871 -          LD="${LD-ld} -m elf64_sparc"
  1.1872 -          ;;
  1.1873 -      esac
  1.1874 -      ;;
  1.1875 -    esac
  1.1876 -  fi
  1.1877 -  rm -rf conftest*
  1.1878 -  ;;
  1.1879 -
  1.1880 -*-*-sco3.2v5*)
  1.1881 -  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1.1882 -  SAVE_CFLAGS="$CFLAGS"
  1.1883 -  CFLAGS="$CFLAGS -belf"
  1.1884 -  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1.1885 -    [AC_LANG_PUSH(C)
  1.1886 -     AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1.1887 -     AC_LANG_POP])
  1.1888 -  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1.1889 -    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1.1890 -    CFLAGS="$SAVE_CFLAGS"
  1.1891 -  fi
  1.1892 -  ;;
  1.1893 -sparc*-*solaris*)
  1.1894 -  # Find out which ABI we are using.
  1.1895 -  echo 'int i;' > conftest.$ac_ext
  1.1896 -  if AC_TRY_EVAL(ac_compile); then
  1.1897 -    case `/usr/bin/file conftest.o` in
  1.1898 -    *64-bit*)
  1.1899 -      case $lt_cv_prog_gnu_ld in
  1.1900 -      yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1.1901 -      *)    LD="${LD-ld} -64" ;;
  1.1902 -      esac
  1.1903 -      ;;
  1.1904 -    esac
  1.1905 -  fi
  1.1906 -  rm -rf conftest*
  1.1907 -  ;;
  1.1908 -
  1.1909 -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1.1910 -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1.1911 -  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1.1912 -  AC_CHECK_TOOL(AS, as, false)
  1.1913 -  AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1.1914 -  ;;
  1.1915 -  ])
  1.1916 -esac
  1.1917 -
  1.1918 -need_locks="$enable_libtool_lock"
  1.1919 -
  1.1920 -])# _LT_AC_LOCK
  1.1921 -
  1.1922 -
  1.1923 -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.1924 +_LT_DECL([], [old_postinstall_cmds], [2])
  1.1925 +_LT_DECL([], [old_postuninstall_cmds], [2])
  1.1926 +_LT_TAGDECL([], [old_archive_cmds], [2],
  1.1927 +    [Commands used to build an old-style archive])
  1.1928 +])# _LT_CMD_OLD_ARCHIVE
  1.1929 +
  1.1930 +
  1.1931 +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.1932  #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1.1933  # ----------------------------------------------------------------
  1.1934  # Check whether the given compiler option works
  1.1935 -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1.1936 -[AC_REQUIRE([LT_AC_PROG_SED])
  1.1937 +AC_DEFUN([_LT_COMPILER_OPTION],
  1.1938 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1939 +m4_require([_LT_DECL_SED])dnl
  1.1940  AC_CACHE_CHECK([$1], [$2],
  1.1941    [$2=no
  1.1942 -  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1.1943 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.1944 +   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1.1945 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.1946     lt_compiler_flag="$3"
  1.1947     # Insert the option either (1) after the last *FLAGS variable, or
  1.1948     # (2) before a word containing "conftest.", or (3) at the end.
  1.1949 @@ -968,40 +1756,47 @@
  1.1950     if (exit $ac_status) && test -s "$ac_outfile"; then
  1.1951       # The compiler can only warn and ignore the option if not recognized
  1.1952       # So say no if there are warnings other than the usual output.
  1.1953 -     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1.1954 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1.1955       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1.1956       if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1.1957         $2=yes
  1.1958       fi
  1.1959     fi
  1.1960 -   $rm conftest*
  1.1961 +   $RM conftest*
  1.1962  ])
  1.1963  
  1.1964  if test x"[$]$2" = xyes; then
  1.1965 -    ifelse([$5], , :, [$5])
  1.1966 +    m4_if([$5], , :, [$5])
  1.1967  else
  1.1968 -    ifelse([$6], , :, [$6])
  1.1969 +    m4_if([$6], , :, [$6])
  1.1970  fi
  1.1971 -])# AC_LIBTOOL_COMPILER_OPTION
  1.1972 -
  1.1973 -
  1.1974 -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.1975 -#                          [ACTION-SUCCESS], [ACTION-FAILURE])
  1.1976 -# ------------------------------------------------------------
  1.1977 -# Check whether the given compiler option works
  1.1978 -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1.1979 -[AC_CACHE_CHECK([$1], [$2],
  1.1980 +])# _LT_COMPILER_OPTION
  1.1981 +
  1.1982 +# Old name:
  1.1983 +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1.1984 +dnl aclocal-1.4 backwards compatibility:
  1.1985 +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1.1986 +
  1.1987 +
  1.1988 +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1.1989 +#                  [ACTION-SUCCESS], [ACTION-FAILURE])
  1.1990 +# ----------------------------------------------------
  1.1991 +# Check whether the given linker option works
  1.1992 +AC_DEFUN([_LT_LINKER_OPTION],
  1.1993 +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.1994 +m4_require([_LT_DECL_SED])dnl
  1.1995 +AC_CACHE_CHECK([$1], [$2],
  1.1996    [$2=no
  1.1997     save_LDFLAGS="$LDFLAGS"
  1.1998     LDFLAGS="$LDFLAGS $3"
  1.1999 -   printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1.2000 +   echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1.2001     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1.2002       # The linker can only warn and ignore the option if not recognized
  1.2003       # So say no if there are warnings
  1.2004       if test -s conftest.err; then
  1.2005         # Append any errors to the config.log.
  1.2006         cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1.2007 -       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1.2008 +       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1.2009         $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1.2010         if diff conftest.exp conftest.er2 >/dev/null; then
  1.2011           $2=yes
  1.2012 @@ -1010,22 +1805,28 @@
  1.2013         $2=yes
  1.2014       fi
  1.2015     fi
  1.2016 -   $rm conftest*
  1.2017 +   $RM -r conftest*
  1.2018     LDFLAGS="$save_LDFLAGS"
  1.2019  ])
  1.2020  
  1.2021  if test x"[$]$2" = xyes; then
  1.2022 -    ifelse([$4], , :, [$4])
  1.2023 +    m4_if([$4], , :, [$4])
  1.2024  else
  1.2025 -    ifelse([$5], , :, [$5])
  1.2026 +    m4_if([$5], , :, [$5])
  1.2027  fi
  1.2028 -])# AC_LIBTOOL_LINKER_OPTION
  1.2029 -
  1.2030 -
  1.2031 -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1.2032 -# --------------------------
  1.2033 -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1.2034 -[# find the maximum length of command line arguments
  1.2035 +])# _LT_LINKER_OPTION
  1.2036 +
  1.2037 +# Old name:
  1.2038 +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1.2039 +dnl aclocal-1.4 backwards compatibility:
  1.2040 +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1.2041 +
  1.2042 +
  1.2043 +# LT_CMD_MAX_LEN
  1.2044 +#---------------
  1.2045 +AC_DEFUN([LT_CMD_MAX_LEN],
  1.2046 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.2047 +# find the maximum length of command line arguments
  1.2048  AC_MSG_CHECKING([the maximum length of command line arguments])
  1.2049  AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1.2050    i=0
  1.2051 @@ -1047,7 +1848,7 @@
  1.2052      lt_cv_sys_max_cmd_len=-1;
  1.2053      ;;
  1.2054  
  1.2055 -  cygwin* | mingw*)
  1.2056 +  cygwin* | mingw* | cegcc*)
  1.2057      # On Win9x/ME, this test blows up -- it succeeds, but takes
  1.2058      # about 5 minutes as the teststring grows exponentially.
  1.2059      # Worse, since 9x/ME are not pre-emptively multitasking,
  1.2060 @@ -1108,30 +1909,41 @@
  1.2061    sysv5* | sco5v6* | sysv4.2uw2*)
  1.2062      kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1.2063      if test -n "$kargmax"; then
  1.2064 -      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ 	]]//'`
  1.2065 +      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
  1.2066      else
  1.2067        lt_cv_sys_max_cmd_len=32768
  1.2068      fi
  1.2069      ;;
  1.2070    *)
  1.2071 -    # If test is not a shell built-in, we'll probably end up computing a
  1.2072 -    # maximum length that is only half of the actual maximum length, but
  1.2073 -    # we can't tell.
  1.2074 -    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1.2075 -    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1.2076 -	       = "XX$teststring") >/dev/null 2>&1 &&
  1.2077 -	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1.2078 -	    lt_cv_sys_max_cmd_len=$new_result &&
  1.2079 -	    test $i != 17 # 1/2 MB should be enough
  1.2080 -    do
  1.2081 -      i=`expr $i + 1`
  1.2082 -      teststring=$teststring$teststring
  1.2083 -    done
  1.2084 -    teststring=
  1.2085 -    # Add a significant safety factor because C++ compilers can tack on massive
  1.2086 -    # amounts of additional arguments before passing them to the linker.
  1.2087 -    # It appears as though 1/2 is a usable value.
  1.2088 -    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1.2089 +    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1.2090 +    if test -n "$lt_cv_sys_max_cmd_len"; then
  1.2091 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1.2092 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1.2093 +    else
  1.2094 +      # Make teststring a little bigger before we do anything with it.
  1.2095 +      # a 1K string should be a reasonable start.
  1.2096 +      for i in 1 2 3 4 5 6 7 8 ; do
  1.2097 +        teststring=$teststring$teststring
  1.2098 +      done
  1.2099 +      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1.2100 +      # If test is not a shell built-in, we'll probably end up computing a
  1.2101 +      # maximum length that is only half of the actual maximum length, but
  1.2102 +      # we can't tell.
  1.2103 +      while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1.2104 +	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1.2105 +	      test $i != 17 # 1/2 MB should be enough
  1.2106 +      do
  1.2107 +        i=`expr $i + 1`
  1.2108 +        teststring=$teststring$teststring
  1.2109 +      done
  1.2110 +      # Only check the string length outside the loop.
  1.2111 +      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1.2112 +      teststring=
  1.2113 +      # Add a significant safety factor because C++ compilers can tack on
  1.2114 +      # massive amounts of additional arguments before passing them to the
  1.2115 +      # linker.  It appears as though 1/2 is a usable value.
  1.2116 +      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1.2117 +    fi
  1.2118      ;;
  1.2119    esac
  1.2120  ])
  1.2121 @@ -1140,27 +1952,35 @@
  1.2122  else
  1.2123    AC_MSG_RESULT(none)
  1.2124  fi
  1.2125 -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1.2126 -
  1.2127 -
  1.2128 -# _LT_AC_CHECK_DLFCN
  1.2129 -# ------------------
  1.2130 -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1.2131 -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1.2132 -])# _LT_AC_CHECK_DLFCN
  1.2133 -
  1.2134 -
  1.2135 -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1.2136 -#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1.2137 -# ---------------------------------------------------------------------
  1.2138 -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1.2139 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1.2140 +max_cmd_len=$lt_cv_sys_max_cmd_len
  1.2141 +_LT_DECL([], [max_cmd_len], [0],
  1.2142 +    [What is the maximum length of a command?])
  1.2143 +])# LT_CMD_MAX_LEN
  1.2144 +
  1.2145 +# Old name:
  1.2146 +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1.2147 +dnl aclocal-1.4 backwards compatibility:
  1.2148 +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1.2149 +
  1.2150 +
  1.2151 +# _LT_HEADER_DLFCN
  1.2152 +# ----------------
  1.2153 +m4_defun([_LT_HEADER_DLFCN],
  1.2154 +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1.2155 +])# _LT_HEADER_DLFCN
  1.2156 +
  1.2157 +
  1.2158 +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1.2159 +#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1.2160 +# ----------------------------------------------------------------
  1.2161 +m4_defun([_LT_TRY_DLOPEN_SELF],
  1.2162 +[m4_require([_LT_HEADER_DLFCN])dnl
  1.2163  if test "$cross_compiling" = yes; then :
  1.2164    [$4]
  1.2165  else
  1.2166    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1.2167    lt_status=$lt_dlunknown
  1.2168 -  cat > conftest.$ac_ext <<EOF
  1.2169 +  cat > conftest.$ac_ext <<_LT_EOF
  1.2170  [#line __oline__ "configure"
  1.2171  #include "confdefs.h"
  1.2172  
  1.2173 @@ -1202,10 +2022,6 @@
  1.2174  #  endif
  1.2175  #endif
  1.2176  
  1.2177 -#ifdef __cplusplus
  1.2178 -extern "C" void exit (int);
  1.2179 -#endif
  1.2180 -
  1.2181  void fnord() { int i=42;}
  1.2182  int main ()
  1.2183  {
  1.2184 @@ -1221,9 +2037,9 @@
  1.2185    else
  1.2186      puts (dlerror ());
  1.2187  
  1.2188 -    exit (status);
  1.2189 +  return status;
  1.2190  }]
  1.2191 -EOF
  1.2192 +_LT_EOF
  1.2193    if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1.2194      (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1.2195      lt_status=$?
  1.2196 @@ -1238,13 +2054,13 @@
  1.2197    fi
  1.2198  fi
  1.2199  rm -fr conftest*
  1.2200 -])# _LT_AC_TRY_DLOPEN_SELF
  1.2201 -
  1.2202 -
  1.2203 -# AC_LIBTOOL_DLOPEN_SELF
  1.2204 -# ----------------------
  1.2205 -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1.2206 -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1.2207 +])# _LT_TRY_DLOPEN_SELF
  1.2208 +
  1.2209 +
  1.2210 +# LT_SYS_DLOPEN_SELF
  1.2211 +# ------------------
  1.2212 +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1.2213 +[m4_require([_LT_HEADER_DLFCN])dnl
  1.2214  if test "x$enable_dlopen" != xyes; then
  1.2215    enable_dlopen=unknown
  1.2216    enable_dlopen_self=unknown
  1.2217 @@ -1260,15 +2076,15 @@
  1.2218      lt_cv_dlopen_self=yes
  1.2219      ;;
  1.2220  
  1.2221 -  mingw* | pw32*)
  1.2222 +  mingw* | pw32* | cegcc*)
  1.2223      lt_cv_dlopen="LoadLibrary"
  1.2224      lt_cv_dlopen_libs=
  1.2225 -   ;;
  1.2226 +    ;;
  1.2227  
  1.2228    cygwin*)
  1.2229      lt_cv_dlopen="dlopen"
  1.2230      lt_cv_dlopen_libs=
  1.2231 -   ;;
  1.2232 +    ;;
  1.2233  
  1.2234    darwin*)
  1.2235    # if libdl is installed we need to link against it
  1.2236 @@ -1278,13 +2094,13 @@
  1.2237      lt_cv_dlopen_libs=
  1.2238      lt_cv_dlopen_self=yes
  1.2239      ])
  1.2240 -   ;;
  1.2241 +    ;;
  1.2242  
  1.2243    *)
  1.2244      AC_CHECK_FUNC([shl_load],
  1.2245  	  [lt_cv_dlopen="shl_load"],
  1.2246        [AC_CHECK_LIB([dld], [shl_load],
  1.2247 -	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1.2248 +	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1.2249  	[AC_CHECK_FUNC([dlopen],
  1.2250  	      [lt_cv_dlopen="dlopen"],
  1.2251  	  [AC_CHECK_LIB([dl], [dlopen],
  1.2252 @@ -1292,7 +2108,7 @@
  1.2253  	    [AC_CHECK_LIB([svld], [dlopen],
  1.2254  		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1.2255  	      [AC_CHECK_LIB([dld], [dld_link],
  1.2256 -		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1.2257 +		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1.2258  	      ])
  1.2259  	    ])
  1.2260  	  ])
  1.2261 @@ -1320,7 +2136,7 @@
  1.2262  
  1.2263      AC_CACHE_CHECK([whether a program can dlopen itself],
  1.2264  	  lt_cv_dlopen_self, [dnl
  1.2265 -	  _LT_AC_TRY_DLOPEN_SELF(
  1.2266 +	  _LT_TRY_DLOPEN_SELF(
  1.2267  	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1.2268  	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1.2269      ])
  1.2270 @@ -1328,8 +2144,8 @@
  1.2271      if test "x$lt_cv_dlopen_self" = xyes; then
  1.2272        wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1.2273        AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1.2274 -    	  lt_cv_dlopen_self_static, [dnl
  1.2275 -	  _LT_AC_TRY_DLOPEN_SELF(
  1.2276 +	  lt_cv_dlopen_self_static, [dnl
  1.2277 +	  _LT_TRY_DLOPEN_SELF(
  1.2278  	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1.2279  	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
  1.2280        ])
  1.2281 @@ -1351,22 +2167,36 @@
  1.2282    *) enable_dlopen_self_static=unknown ;;
  1.2283    esac
  1.2284  fi
  1.2285 -])# AC_LIBTOOL_DLOPEN_SELF
  1.2286 -
  1.2287 -
  1.2288 -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1.2289 -# ---------------------------------
  1.2290 -# Check to see if options -c and -o are simultaneously supported by compiler
  1.2291 -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1.2292 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1.2293 +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1.2294 +	 [Whether dlopen is supported])
  1.2295 +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1.2296 +	 [Whether dlopen of programs is supported])
  1.2297 +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1.2298 +	 [Whether dlopen of statically linked programs is supported])
  1.2299 +])# LT_SYS_DLOPEN_SELF
  1.2300 +
  1.2301 +# Old name:
  1.2302 +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1.2303 +dnl aclocal-1.4 backwards compatibility:
  1.2304 +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1.2305 +
  1.2306 +
  1.2307 +# _LT_COMPILER_C_O([TAGNAME])
  1.2308 +# ---------------------------
  1.2309 +# Check to see if options -c and -o are simultaneously supported by compiler.
  1.2310 +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1.2311 +m4_defun([_LT_COMPILER_C_O],
  1.2312 +[m4_require([_LT_DECL_SED])dnl
  1.2313 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2314 +m4_require([_LT_TAG_COMPILER])dnl
  1.2315  AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1.2316 -  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1.2317 -  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1.2318 -   $rm -r conftest 2>/dev/null
  1.2319 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1.2320 +  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1.2321 +   $RM -r conftest 2>/dev/null
  1.2322     mkdir conftest
  1.2323     cd conftest
  1.2324     mkdir out
  1.2325 -   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2326 +   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1.2327  
  1.2328     lt_compiler_flag="-o out/conftest2.$ac_objext"
  1.2329     # Insert the option either (1) after the last *FLAGS variable, or
  1.2330 @@ -1386,37 +2216,41 @@
  1.2331     then
  1.2332       # The compiler can only warn and ignore the option if not recognized
  1.2333       # So say no if there are warnings
  1.2334 -     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.2335 +     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1.2336       $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1.2337       if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1.2338 -       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.2339 +       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.2340       fi
  1.2341     fi
  1.2342     chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1.2343 -   $rm conftest*
  1.2344 +   $RM conftest*
  1.2345     # SGI C++ compiler will create directory out/ii_files/ for
  1.2346     # template instantiation
  1.2347 -   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1.2348 -   $rm out/* && rmdir out
  1.2349 +   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1.2350 +   $RM out/* && rmdir out
  1.2351     cd ..
  1.2352 -   rmdir conftest
  1.2353 -   $rm conftest*
  1.2354 +   $RM -r conftest
  1.2355 +   $RM conftest*
  1.2356  ])
  1.2357 -])# AC_LIBTOOL_PROG_CC_C_O
  1.2358 -
  1.2359 -
  1.2360 -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1.2361 -# -----------------------------------------
  1.2362 +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1.2363 +	[Does compiler simultaneously support -c and -o options?])
  1.2364 +])# _LT_COMPILER_C_O
  1.2365 +
  1.2366 +
  1.2367 +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1.2368 +# ----------------------------------
  1.2369  # Check to see if we can do hard links to lock some files if needed
  1.2370 -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1.2371 -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1.2372 +m4_defun([_LT_COMPILER_FILE_LOCKS],
  1.2373 +[m4_require([_LT_ENABLE_LOCK])dnl
  1.2374 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2375 +_LT_COMPILER_C_O([$1])
  1.2376  
  1.2377  hard_links="nottested"
  1.2378 -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1.2379 +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1.2380    # do not overwrite the value of need_locks provided by the user
  1.2381    AC_MSG_CHECKING([if we can lock with hard links])
  1.2382    hard_links=yes
  1.2383 -  $rm conftest*
  1.2384 +  $RM conftest*
  1.2385    ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1.2386    touch conftest.a
  1.2387    ln conftest.a conftest.b 2>&5 || hard_links=no
  1.2388 @@ -1429,12 +2263,13 @@
  1.2389  else
  1.2390    need_locks=no
  1.2391  fi
  1.2392 -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1.2393 -
  1.2394 -
  1.2395 -# AC_LIBTOOL_OBJDIR
  1.2396 -# -----------------
  1.2397 -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1.2398 +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1.2399 +])# _LT_COMPILER_FILE_LOCKS
  1.2400 +
  1.2401 +
  1.2402 +# _LT_CHECK_OBJDIR
  1.2403 +# ----------------
  1.2404 +m4_defun([_LT_CHECK_OBJDIR],
  1.2405  [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1.2406  [rm -f .libs 2>/dev/null
  1.2407  mkdir .libs 2>/dev/null
  1.2408 @@ -1446,40 +2281,46 @@
  1.2409  fi
  1.2410  rmdir .libs 2>/dev/null])
  1.2411  objdir=$lt_cv_objdir
  1.2412 -])# AC_LIBTOOL_OBJDIR
  1.2413 -
  1.2414 -
  1.2415 -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1.2416 -# ----------------------------------------------
  1.2417 +_LT_DECL([], [objdir], [0],
  1.2418 +         [The name of the directory that contains temporary libtool files])dnl
  1.2419 +m4_pattern_allow([LT_OBJDIR])dnl
  1.2420 +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1.2421 +  [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1.2422 +])# _LT_CHECK_OBJDIR
  1.2423 +
  1.2424 +
  1.2425 +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1.2426 +# --------------------------------------
  1.2427  # Check hardcoding attributes.
  1.2428 -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1.2429 +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1.2430  [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1.2431 -_LT_AC_TAGVAR(hardcode_action, $1)=
  1.2432 -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1.2433 -   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1.2434 -   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1.2435 -
  1.2436 -  # We can hardcode non-existant directories.
  1.2437 -  if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1.2438 +_LT_TAGVAR(hardcode_action, $1)=
  1.2439 +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1.2440 +   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1.2441 +   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1.2442 +
  1.2443 +  # We can hardcode non-existent directories.
  1.2444 +  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1.2445       # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1.2446       # have to relink, otherwise we might link with an installed library
  1.2447       # when we should be linking with a yet-to-be-installed one
  1.2448 -     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1.2449 -     test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1.2450 +     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1.2451 +     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1.2452      # Linking always hardcodes the temporary library directory.
  1.2453 -    _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1.2454 +    _LT_TAGVAR(hardcode_action, $1)=relink
  1.2455    else
  1.2456      # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1.2457 -    _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1.2458 +    _LT_TAGVAR(hardcode_action, $1)=immediate
  1.2459    fi
  1.2460  else
  1.2461    # We cannot hardcode anything, or else we can only hardcode existing
  1.2462    # directories.
  1.2463 -  _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1.2464 +  _LT_TAGVAR(hardcode_action, $1)=unsupported
  1.2465  fi
  1.2466 -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1.2467 -
  1.2468 -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1.2469 +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1.2470 +
  1.2471 +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1.2472 +   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1.2473    # Fast installation is not supported
  1.2474    enable_fast_install=no
  1.2475  elif test "$shlibpath_overrides_runpath" = yes ||
  1.2476 @@ -1487,43 +2328,107 @@
  1.2477    # Fast installation is not necessary
  1.2478    enable_fast_install=needless
  1.2479  fi
  1.2480 -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1.2481 -
  1.2482 -
  1.2483 -# AC_LIBTOOL_SYS_LIB_STRIP
  1.2484 -# ------------------------
  1.2485 -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1.2486 -[striplib=
  1.2487 +_LT_TAGDECL([], [hardcode_action], [0],
  1.2488 +    [How to hardcode a shared library path into an executable])
  1.2489 +])# _LT_LINKER_HARDCODE_LIBPATH
  1.2490 +
  1.2491 +
  1.2492 +# _LT_CMD_STRIPLIB
  1.2493 +# ----------------
  1.2494 +m4_defun([_LT_CMD_STRIPLIB],
  1.2495 +[m4_require([_LT_DECL_EGREP])
  1.2496 +striplib=
  1.2497  old_striplib=
  1.2498  AC_MSG_CHECKING([whether stripping libraries is possible])
  1.2499 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1.2500 +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1.2501    test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1.2502    test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1.2503    AC_MSG_RESULT([yes])
  1.2504  else
  1.2505  # FIXME - insert some real tests, host_os isn't really good enough
  1.2506    case $host_os in
  1.2507 -   darwin*)
  1.2508 -       if test -n "$STRIP" ; then
  1.2509 -         striplib="$STRIP -x"
  1.2510 -         AC_MSG_RESULT([yes])
  1.2511 -       else
  1.2512 -  AC_MSG_RESULT([no])
  1.2513 -fi
  1.2514 -       ;;
  1.2515 -   *)
  1.2516 -  AC_MSG_RESULT([no])
  1.2517 +  darwin*)
  1.2518 +    if test -n "$STRIP" ; then
  1.2519 +      striplib="$STRIP -x"
  1.2520 +      old_striplib="$STRIP -S"
  1.2521 +      AC_MSG_RESULT([yes])
  1.2522 +    else
  1.2523 +      AC_MSG_RESULT([no])
  1.2524 +    fi
  1.2525 +    ;;
  1.2526 +  *)
  1.2527 +    AC_MSG_RESULT([no])
  1.2528      ;;
  1.2529    esac
  1.2530  fi
  1.2531 -])# AC_LIBTOOL_SYS_LIB_STRIP
  1.2532 -
  1.2533 -
  1.2534 -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1.2535 +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1.2536 +_LT_DECL([], [striplib], [1])
  1.2537 +])# _LT_CMD_STRIPLIB
  1.2538 +
  1.2539 +
  1.2540 +# _LT_SYS_DYNAMIC_LINKER([TAG])
  1.2541  # -----------------------------
  1.2542  # PORTME Fill in your ld.so characteristics
  1.2543 -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1.2544 -[AC_MSG_CHECKING([dynamic linker characteristics])
  1.2545 +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1.2546 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.2547 +m4_require([_LT_DECL_EGREP])dnl
  1.2548 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.2549 +m4_require([_LT_DECL_OBJDUMP])dnl
  1.2550 +m4_require([_LT_DECL_SED])dnl
  1.2551 +AC_MSG_CHECKING([dynamic linker characteristics])
  1.2552 +m4_if([$1],
  1.2553 +	[], [
  1.2554 +if test "$GCC" = yes; then
  1.2555 +  case $host_os in
  1.2556 +    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1.2557 +    *) lt_awk_arg="/^libraries:/" ;;
  1.2558 +  esac
  1.2559 +  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2560 +  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  1.2561 +    # if the path contains ";" then we assume it to be the separator
  1.2562 +    # otherwise default to the standard path separator (i.e. ":") - it is
  1.2563 +    # assumed that no part of a normal pathname contains ";" but that should
  1.2564 +    # okay in the real world where ";" in dirpaths is itself problematic.
  1.2565 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  1.2566 +  else
  1.2567 +    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2568 +  fi
  1.2569 +  # Ok, now we have the path, separated by spaces, we can step through it
  1.2570 +  # and add multilib dir if necessary.
  1.2571 +  lt_tmp_lt_search_path_spec=
  1.2572 +  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1.2573 +  for lt_sys_path in $lt_search_path_spec; do
  1.2574 +    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1.2575 +      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1.2576 +    else
  1.2577 +      test -d "$lt_sys_path" && \
  1.2578 +	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1.2579 +    fi
  1.2580 +  done
  1.2581 +  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  1.2582 +BEGIN {RS=" "; FS="/|\n";} {
  1.2583 +  lt_foo="";
  1.2584 +  lt_count=0;
  1.2585 +  for (lt_i = NF; lt_i > 0; lt_i--) {
  1.2586 +    if ($lt_i != "" && $lt_i != ".") {
  1.2587 +      if ($lt_i == "..") {
  1.2588 +        lt_count++;
  1.2589 +      } else {
  1.2590 +        if (lt_count == 0) {
  1.2591 +          lt_foo="/" $lt_i lt_foo;
  1.2592 +        } else {
  1.2593 +          lt_count--;
  1.2594 +        }
  1.2595 +      }
  1.2596 +    }
  1.2597 +  }
  1.2598 +  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1.2599 +  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1.2600 +}'`
  1.2601 +  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  1.2602 +else
  1.2603 +  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.2604 +fi])
  1.2605  library_names_spec=
  1.2606  libname_spec='lib$name'
  1.2607  soname_spec=
  1.2608 @@ -1537,20 +2442,6 @@
  1.2609  version_type=none
  1.2610  dynamic_linker="$host_os ld.so"
  1.2611  sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1.2612 -if test "$GCC" = yes; then
  1.2613 -  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2614 -  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1.2615 -    # if the path contains ";" then we assume it to be the separator
  1.2616 -    # otherwise default to the standard path separator (i.e. ":") - it is
  1.2617 -    # assumed that no part of a normal pathname contains ";" but that should
  1.2618 -    # okay in the real world where ";" in dirpaths is itself problematic.
  1.2619 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.2620 -  else
  1.2621 -    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2622 -  fi
  1.2623 -else
  1.2624 -  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1.2625 -fi
  1.2626  need_lib_prefix=unknown
  1.2627  hardcode_into_libs=no
  1.2628  
  1.2629 @@ -1568,7 +2459,7 @@
  1.2630    soname_spec='${libname}${release}${shared_ext}$major'
  1.2631    ;;
  1.2632  
  1.2633 -aix4* | aix5*)
  1.2634 +aix[[4-9]]*)
  1.2635    version_type=linux
  1.2636    need_lib_prefix=no
  1.2637    need_version=no
  1.2638 @@ -1587,7 +2478,7 @@
  1.2639        aix4 | aix4.[[01]] | aix4.[[01]].*)
  1.2640        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1.2641  	   echo ' yes '
  1.2642 -	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  1.2643 +	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  1.2644  	:
  1.2645        else
  1.2646  	can_build_shared=no
  1.2647 @@ -1613,9 +2504,18 @@
  1.2648    ;;
  1.2649  
  1.2650  amigaos*)
  1.2651 -  library_names_spec='$libname.ixlibrary $libname.a'
  1.2652 -  # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.2653 -  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.2654 +  case $host_cpu in
  1.2655 +  powerpc)
  1.2656 +    # Since July 2007 AmigaOS4 officially supports .so libraries.
  1.2657 +    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  1.2658 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2659 +    ;;
  1.2660 +  m68k)
  1.2661 +    library_names_spec='$libname.ixlibrary $libname.a'
  1.2662 +    # Create ${libname}_ixlibrary.a entries in /sys/libs.
  1.2663 +    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.2664 +    ;;
  1.2665 +  esac
  1.2666    ;;
  1.2667  
  1.2668  beos*)
  1.2669 @@ -1638,25 +2538,28 @@
  1.2670    # libtool to hard-code these into programs
  1.2671    ;;
  1.2672  
  1.2673 -cygwin* | mingw* | pw32*)
  1.2674 +cygwin* | mingw* | pw32* | cegcc*)
  1.2675    version_type=windows
  1.2676    shrext_cmds=".dll"
  1.2677    need_version=no
  1.2678    need_lib_prefix=no
  1.2679  
  1.2680    case $GCC,$host_os in
  1.2681 -  yes,cygwin* | yes,mingw* | yes,pw32*)
  1.2682 +  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  1.2683      library_names_spec='$libname.dll.a'
  1.2684      # DLL is installed to $(libdir)/../bin by postinstall_cmds
  1.2685      postinstall_cmds='base_file=`basename \${file}`~
  1.2686 -      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  1.2687 +      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  1.2688        dldir=$destdir/`dirname \$dlpath`~
  1.2689        test -d \$dldir || mkdir -p \$dldir~
  1.2690        $install_prog $dir/$dlname \$dldir/$dlname~
  1.2691 -      chmod a+x \$dldir/$dlname'
  1.2692 +      chmod a+x \$dldir/$dlname~
  1.2693 +      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  1.2694 +        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  1.2695 +      fi'
  1.2696      postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  1.2697        dlpath=$dir/\$dldll~
  1.2698 -       $rm \$dlpath'
  1.2699 +       $RM \$dlpath'
  1.2700      shlibpath_overrides_runpath=yes
  1.2701  
  1.2702      case $host_os in
  1.2703 @@ -1666,21 +2569,21 @@
  1.2704        soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.2705        sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  1.2706        ;;
  1.2707 -    mingw*)
  1.2708 +    mingw* | cegcc*)
  1.2709        # MinGW DLLs use traditional 'lib' prefix
  1.2710        #soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  1.2711 -      soname_spec='`echo ${libname} | sed -e 's/^lib//'`${shared_ext}'
  1.2712 -      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2713 -      if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  1.2714 +      soname_spec='`echo ${libname} | $SED -e 's/^lib//'`${shared_ext}'
  1.2715 +      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1.2716 +      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  1.2717          # It is most probably a Windows format PATH printed by
  1.2718          # mingw gcc, but we are running on Cygwin. Gcc prints its search
  1.2719          # path with ; separators, and with drive letters. We can handle the
  1.2720          # drive letters (cygwin fileutils understands them), so leave them,
  1.2721          # especially as we might pass files found there to a mingw objdump,
  1.2722          # which wouldn't understand a cygwinified path. Ahh.
  1.2723 -        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.2724 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1.2725        else
  1.2726 -        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2727 +        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
  1.2728        fi
  1.2729        ;;
  1.2730      pw32*)
  1.2731 @@ -1704,17 +2607,13 @@
  1.2732    version_type=darwin
  1.2733    need_lib_prefix=no
  1.2734    need_version=no
  1.2735 -  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1.2736 +  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  1.2737    soname_spec='${libname}${release}${major}$shared_ext'
  1.2738    shlibpath_overrides_runpath=yes
  1.2739    shlibpath_var=DYLD_LIBRARY_PATH
  1.2740    shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  1.2741 -  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  1.2742 -  if test "$GCC" = yes; then
  1.2743 -    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  1.2744 -  else
  1.2745 -    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  1.2746 -  fi
  1.2747 +m4_if([$1], [],[
  1.2748 +  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  1.2749    sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  1.2750    ;;
  1.2751  
  1.2752 @@ -1731,18 +2630,6 @@
  1.2753    dynamic_linker=no
  1.2754    ;;
  1.2755  
  1.2756 -kfreebsd*-gnu)
  1.2757 -  version_type=linux
  1.2758 -  need_lib_prefix=no
  1.2759 -  need_version=no
  1.2760 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.2761 -  soname_spec='${libname}${release}${shared_ext}$major'
  1.2762 -  shlibpath_var=LD_LIBRARY_PATH
  1.2763 -  shlibpath_overrides_runpath=no
  1.2764 -  hardcode_into_libs=yes
  1.2765 -  dynamic_linker='GNU ld.so'
  1.2766 -  ;;
  1.2767 -
  1.2768  freebsd* | dragonfly*)
  1.2769    # DragonFly does not have aout.  When/if they implement a new
  1.2770    # versioning mechanism, adjust this.
  1.2771 @@ -1780,7 +2667,7 @@
  1.2772      shlibpath_overrides_runpath=no
  1.2773      hardcode_into_libs=yes
  1.2774      ;;
  1.2775 -  freebsd*) # from 4.6 on
  1.2776 +  *) # from 4.6 on, and DragonFly
  1.2777      shlibpath_overrides_runpath=yes
  1.2778      hardcode_into_libs=yes
  1.2779      ;;
  1.2780 @@ -1819,18 +2706,18 @@
  1.2781      fi
  1.2782      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1.2783      ;;
  1.2784 -   hppa*64*)
  1.2785 -     shrext_cmds='.sl'
  1.2786 -     hardcode_into_libs=yes
  1.2787 -     dynamic_linker="$host_os dld.sl"
  1.2788 -     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1.2789 -     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1.2790 -     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2791 -     soname_spec='${libname}${release}${shared_ext}$major'
  1.2792 -     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1.2793 -     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1.2794 -     ;;
  1.2795 -   *)
  1.2796 +  hppa*64*)
  1.2797 +    shrext_cmds='.sl'
  1.2798 +    hardcode_into_libs=yes
  1.2799 +    dynamic_linker="$host_os dld.sl"
  1.2800 +    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  1.2801 +    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  1.2802 +    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2803 +    soname_spec='${libname}${release}${shared_ext}$major'
  1.2804 +    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  1.2805 +    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  1.2806 +    ;;
  1.2807 +  *)
  1.2808      shrext_cmds='.sl'
  1.2809      dynamic_linker="$host_os dld.sl"
  1.2810      shlibpath_var=SHLIB_PATH
  1.2811 @@ -1843,7 +2730,7 @@
  1.2812    postinstall_cmds='chmod 555 $lib'
  1.2813    ;;
  1.2814  
  1.2815 -interix3*)
  1.2816 +interix[[3-9]]*)
  1.2817    version_type=linux
  1.2818    need_lib_prefix=no
  1.2819    need_version=no
  1.2820 @@ -1898,7 +2785,7 @@
  1.2821    ;;
  1.2822  
  1.2823  # This must be Linux ELF.
  1.2824 -linux*)
  1.2825 +linux* | k*bsd*-gnu)
  1.2826    version_type=linux
  1.2827    need_lib_prefix=no
  1.2828    need_version=no
  1.2829 @@ -1907,6 +2794,17 @@
  1.2830    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  1.2831    shlibpath_var=LD_LIBRARY_PATH
  1.2832    shlibpath_overrides_runpath=no
  1.2833 +  # Some binutils ld are patched to set DT_RUNPATH
  1.2834 +  save_LDFLAGS=$LDFLAGS
  1.2835 +  save_libdir=$libdir
  1.2836 +  eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  1.2837 +       LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  1.2838 +  AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1.2839 +    [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  1.2840 +       [shlibpath_overrides_runpath=yes])])
  1.2841 +  LDFLAGS=$save_LDFLAGS
  1.2842 +  libdir=$save_libdir
  1.2843 +
  1.2844    # This implies no fast_install, which is unacceptable.
  1.2845    # Some rework will be needed to allow for fast_install
  1.2846    # before this can be enabled.
  1.2847 @@ -1914,7 +2812,7 @@
  1.2848  
  1.2849    # Append ld.so.conf contents to the search path
  1.2850    if test -f /etc/ld.so.conf; then
  1.2851 -    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  1.2852 +    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.2853      sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  1.2854    fi
  1.2855  
  1.2856 @@ -1927,23 +2825,11 @@
  1.2857    dynamic_linker='GNU/Linux ld.so'
  1.2858    ;;
  1.2859  
  1.2860 -knetbsd*-gnu)
  1.2861 -  version_type=linux
  1.2862 -  need_lib_prefix=no
  1.2863 -  need_version=no
  1.2864 -  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  1.2865 -  soname_spec='${libname}${release}${shared_ext}$major'
  1.2866 -  shlibpath_var=LD_LIBRARY_PATH
  1.2867 -  shlibpath_overrides_runpath=no
  1.2868 -  hardcode_into_libs=yes
  1.2869 -  dynamic_linker='GNU ld.so'
  1.2870 -  ;;
  1.2871 -
  1.2872  netbsd*)
  1.2873    version_type=sunos
  1.2874    need_lib_prefix=no
  1.2875    need_version=no
  1.2876 -  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.2877 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.2878      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1.2879      finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.2880      dynamic_linker='NetBSD (a.out) ld.so'
  1.2881 @@ -1964,14 +2850,16 @@
  1.2882    shlibpath_overrides_runpath=yes
  1.2883    ;;
  1.2884  
  1.2885 -nto-qnx*)
  1.2886 -  version_type=linux
  1.2887 +*nto* | *qnx*)
  1.2888 +  version_type=qnx
  1.2889    need_lib_prefix=no
  1.2890    need_version=no
  1.2891    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2892    soname_spec='${libname}${release}${shared_ext}$major'
  1.2893    shlibpath_var=LD_LIBRARY_PATH
  1.2894 -  shlibpath_overrides_runpath=yes
  1.2895 +  shlibpath_overrides_runpath=no
  1.2896 +  hardcode_into_libs=yes
  1.2897 +  dynamic_linker='ldqnx.so'
  1.2898    ;;
  1.2899  
  1.2900  openbsd*)
  1.2901 @@ -1980,13 +2868,13 @@
  1.2902    need_lib_prefix=no
  1.2903    # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  1.2904    case $host_os in
  1.2905 -    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  1.2906 -    *)                         need_version=no  ;;
  1.2907 +    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
  1.2908 +    *)				need_version=no  ;;
  1.2909    esac
  1.2910    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  1.2911    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  1.2912    shlibpath_var=LD_LIBRARY_PATH
  1.2913 -  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.2914 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.2915      case $host_os in
  1.2916        openbsd2.[[89]] | openbsd2.[[89]].*)
  1.2917  	shlibpath_overrides_runpath=no
  1.2918 @@ -2020,6 +2908,10 @@
  1.2919    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1.2920    ;;
  1.2921  
  1.2922 +rdos*)
  1.2923 +  dynamic_linker=no
  1.2924 +  ;;
  1.2925 +
  1.2926  solaris*)
  1.2927    version_type=linux
  1.2928    need_lib_prefix=no
  1.2929 @@ -2054,7 +2946,6 @@
  1.2930      sni)
  1.2931        shlibpath_overrides_runpath=no
  1.2932        need_lib_prefix=no
  1.2933 -      export_dynamic_flag_spec='${wl}-Blargedynsym'
  1.2934        runpath_var=LD_RUN_PATH
  1.2935        ;;
  1.2936      siemens)
  1.2937 @@ -2085,13 +2976,12 @@
  1.2938    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  1.2939    soname_spec='${libname}${release}${shared_ext}$major'
  1.2940    shlibpath_var=LD_LIBRARY_PATH
  1.2941 +  shlibpath_overrides_runpath=yes
  1.2942    hardcode_into_libs=yes
  1.2943    if test "$with_gnu_ld" = yes; then
  1.2944      sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  1.2945 -    shlibpath_overrides_runpath=no
  1.2946    else
  1.2947      sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  1.2948 -    shlibpath_overrides_runpath=yes
  1.2949      case $host_os in
  1.2950        sco3.2v5*)
  1.2951          sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  1.2952 @@ -2101,6 +2991,17 @@
  1.2953    sys_lib_dlsearch_path_spec='/usr/lib'
  1.2954    ;;
  1.2955  
  1.2956 +tpf*)
  1.2957 +  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
  1.2958 +  version_type=linux
  1.2959 +  need_lib_prefix=no
  1.2960 +  need_version=no
  1.2961 +  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2962 +  shlibpath_var=LD_LIBRARY_PATH
  1.2963 +  shlibpath_overrides_runpath=no
  1.2964 +  hardcode_into_libs=yes
  1.2965 +  ;;
  1.2966 +
  1.2967  uts4*)
  1.2968    version_type=linux
  1.2969    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1.2970 @@ -2119,276 +3020,54 @@
  1.2971  if test "$GCC" = yes; then
  1.2972    variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  1.2973  fi
  1.2974 -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1.2975 -
  1.2976 -
  1.2977 -# _LT_AC_TAGCONFIG
  1.2978 -# ----------------
  1.2979 -AC_DEFUN([_LT_AC_TAGCONFIG],
  1.2980 -[AC_ARG_WITH([tags],
  1.2981 -    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  1.2982 -        [include additional configurations @<:@automatic@:>@])],
  1.2983 -    [tagnames="$withval"])
  1.2984 -
  1.2985 -if test -f "$ltmain" && test -n "$tagnames"; then
  1.2986 -  if test ! -f "${ofile}"; then
  1.2987 -    AC_MSG_WARN([output file `$ofile' does not exist])
  1.2988 -  fi
  1.2989 -
  1.2990 -  if test -z "$LTCC"; then
  1.2991 -    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  1.2992 -    if test -z "$LTCC"; then
  1.2993 -      AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  1.2994 -    else
  1.2995 -      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  1.2996 -    fi
  1.2997 -  fi
  1.2998 -  if test -z "$LTCFLAGS"; then
  1.2999 -    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  1.3000 -  fi
  1.3001 -
  1.3002 -  # Extract list of available tagged configurations in $ofile.
  1.3003 -  # Note that this assumes the entire list is on one line.
  1.3004 -  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  1.3005 -
  1.3006 -  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1.3007 -  for tagname in $tagnames; do
  1.3008 -    IFS="$lt_save_ifs"
  1.3009 -    # Check whether tagname contains only valid characters
  1.3010 -    case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  1.3011 -    "") ;;
  1.3012 -    *)  AC_MSG_ERROR([invalid tag name: $tagname])
  1.3013 -	;;
  1.3014 -    esac
  1.3015 -
  1.3016 -    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  1.3017 -    then
  1.3018 -      AC_MSG_ERROR([tag name \"$tagname\" already exists])
  1.3019 -    fi
  1.3020 -
  1.3021 -    # Update the list of available tags.
  1.3022 -    if test -n "$tagname"; then
  1.3023 -      echo appending configuration tag \"$tagname\" to $ofile
  1.3024 -
  1.3025 -      case $tagname in
  1.3026 -      CXX)
  1.3027 -	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.3028 -	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.3029 -	    (test "X$CXX" != "Xg++"))) ; then
  1.3030 -	  AC_LIBTOOL_LANG_CXX_CONFIG
  1.3031 -	else
  1.3032 -	  tagname=""
  1.3033 -	fi
  1.3034 -	;;
  1.3035 -
  1.3036 -      F77)
  1.3037 -	if test -n "$F77" && test "X$F77" != "Xno"; then
  1.3038 -	  AC_LIBTOOL_LANG_F77_CONFIG
  1.3039 -	else
  1.3040 -	  tagname=""
  1.3041 -	fi
  1.3042 -	;;
  1.3043 -
  1.3044 -      GCJ)
  1.3045 -	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  1.3046 -	  AC_LIBTOOL_LANG_GCJ_CONFIG
  1.3047 -	else
  1.3048 -	  tagname=""
  1.3049 -	fi
  1.3050 -	;;
  1.3051 -
  1.3052 -      RC)
  1.3053 -	AC_LIBTOOL_LANG_RC_CONFIG
  1.3054 -	;;
  1.3055 -
  1.3056 -      *)
  1.3057 -	AC_MSG_ERROR([Unsupported tag name: $tagname])
  1.3058 -	;;
  1.3059 -      esac
  1.3060 -
  1.3061 -      # Append the new tag name to the list of available tags.
  1.3062 -      if test -n "$tagname" ; then
  1.3063 -      available_tags="$available_tags $tagname"
  1.3064 -    fi
  1.3065 -    fi
  1.3066 -  done
  1.3067 -  IFS="$lt_save_ifs"
  1.3068 -
  1.3069 -  # Now substitute the updated list of available tags.
  1.3070 -  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  1.3071 -    mv "${ofile}T" "$ofile"
  1.3072 -    chmod +x "$ofile"
  1.3073 -  else
  1.3074 -    rm -f "${ofile}T"
  1.3075 -    AC_MSG_ERROR([unable to update list of available tagged configurations.])
  1.3076 -  fi
  1.3077 +
  1.3078 +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  1.3079 +  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  1.3080 +fi
  1.3081 +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  1.3082 +  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  1.3083  fi
  1.3084 -])# _LT_AC_TAGCONFIG
  1.3085 -
  1.3086 -
  1.3087 -# AC_LIBTOOL_DLOPEN
  1.3088 -# -----------------
  1.3089 -# enable checks for dlopen support
  1.3090 -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  1.3091 - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  1.3092 -])# AC_LIBTOOL_DLOPEN
  1.3093 -
  1.3094 -
  1.3095 -# AC_LIBTOOL_WIN32_DLL
  1.3096 -# --------------------
  1.3097 -# declare package support for building win32 DLLs
  1.3098 -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  1.3099 -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  1.3100 -])# AC_LIBTOOL_WIN32_DLL
  1.3101 -
  1.3102 -
  1.3103 -# AC_ENABLE_SHARED([DEFAULT])
  1.3104 -# ---------------------------
  1.3105 -# implement the --enable-shared flag
  1.3106 -# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1.3107 -AC_DEFUN([AC_ENABLE_SHARED],
  1.3108 -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  1.3109 -AC_ARG_ENABLE([shared],
  1.3110 -    [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  1.3111 -	[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  1.3112 -    [p=${PACKAGE-default}
  1.3113 -    case $enableval in
  1.3114 -    yes) enable_shared=yes ;;
  1.3115 -    no) enable_shared=no ;;
  1.3116 -    *)
  1.3117 -      enable_shared=no
  1.3118 -      # Look at the argument we got.  We use all the common list separators.
  1.3119 -      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1.3120 -      for pkg in $enableval; do
  1.3121 -	IFS="$lt_save_ifs"
  1.3122 -	if test "X$pkg" = "X$p"; then
  1.3123 -	  enable_shared=yes
  1.3124 -	fi
  1.3125 -      done
  1.3126 -      IFS="$lt_save_ifs"
  1.3127 -      ;;
  1.3128 -    esac],
  1.3129 -    [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  1.3130 -])# AC_ENABLE_SHARED
  1.3131 -
  1.3132 -
  1.3133 -# AC_DISABLE_SHARED
  1.3134 -# -----------------
  1.3135 -# set the default shared flag to --disable-shared
  1.3136 -AC_DEFUN([AC_DISABLE_SHARED],
  1.3137 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3138 -AC_ENABLE_SHARED(no)
  1.3139 -])# AC_DISABLE_SHARED
  1.3140 -
  1.3141 -
  1.3142 -# AC_ENABLE_STATIC([DEFAULT])
  1.3143 -# ---------------------------
  1.3144 -# implement the --enable-static flag
  1.3145 -# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1.3146 -AC_DEFUN([AC_ENABLE_STATIC],
  1.3147 -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  1.3148 -AC_ARG_ENABLE([static],
  1.3149 -    [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  1.3150 -	[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  1.3151 -    [p=${PACKAGE-default}
  1.3152 -    case $enableval in
  1.3153 -    yes) enable_static=yes ;;
  1.3154 -    no) enable_static=no ;;
  1.3155 -    *)
  1.3156 -     enable_static=no
  1.3157 -      # Look at the argument we got.  We use all the common list separators.
  1.3158 -      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1.3159 -      for pkg in $enableval; do
  1.3160 -	IFS="$lt_save_ifs"
  1.3161 -	if test "X$pkg" = "X$p"; then
  1.3162 -	  enable_static=yes
  1.3163 -	fi
  1.3164 -      done
  1.3165 -      IFS="$lt_save_ifs"
  1.3166 -      ;;
  1.3167 -    esac],
  1.3168 -    [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  1.3169 -])# AC_ENABLE_STATIC
  1.3170 -
  1.3171 -
  1.3172 -# AC_DISABLE_STATIC
  1.3173 -# -----------------
  1.3174 -# set the default static flag to --disable-static
  1.3175 -AC_DEFUN([AC_DISABLE_STATIC],
  1.3176 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3177 -AC_ENABLE_STATIC(no)
  1.3178 -])# AC_DISABLE_STATIC
  1.3179 -
  1.3180 -
  1.3181 -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  1.3182 -# ---------------------------------
  1.3183 -# implement the --enable-fast-install flag
  1.3184 -# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
  1.3185 -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  1.3186 -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  1.3187 -AC_ARG_ENABLE([fast-install],
  1.3188 -    [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  1.3189 -    [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  1.3190 -    [p=${PACKAGE-default}
  1.3191 -    case $enableval in
  1.3192 -    yes) enable_fast_install=yes ;;
  1.3193 -    no) enable_fast_install=no ;;
  1.3194 -    *)
  1.3195 -      enable_fast_install=no
  1.3196 -      # Look at the argument we got.  We use all the common list separators.
  1.3197 -      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  1.3198 -      for pkg in $enableval; do
  1.3199 -	IFS="$lt_save_ifs"
  1.3200 -	if test "X$pkg" = "X$p"; then
  1.3201 -	  enable_fast_install=yes
  1.3202 -	fi
  1.3203 -      done
  1.3204 -      IFS="$lt_save_ifs"
  1.3205 -      ;;
  1.3206 -    esac],
  1.3207 -    [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  1.3208 -])# AC_ENABLE_FAST_INSTALL
  1.3209 -
  1.3210 -
  1.3211 -# AC_DISABLE_FAST_INSTALL
  1.3212 -# -----------------------
  1.3213 -# set the default to --disable-fast-install
  1.3214 -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  1.3215 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3216 -AC_ENABLE_FAST_INSTALL(no)
  1.3217 -])# AC_DISABLE_FAST_INSTALL
  1.3218 -
  1.3219 -
  1.3220 -# AC_LIBTOOL_PICMODE([MODE])
  1.3221 +
  1.3222 +_LT_DECL([], [variables_saved_for_relink], [1],
  1.3223 +    [Variables whose values should be saved in libtool wrapper scripts and
  1.3224 +    restored at link time])
  1.3225 +_LT_DECL([], [need_lib_prefix], [0],
  1.3226 +    [Do we need the "lib" prefix for modules?])
  1.3227 +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  1.3228 +_LT_DECL([], [version_type], [0], [Library versioning type])
  1.3229 +_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
  1.3230 +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  1.3231 +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  1.3232 +    [Is shlibpath searched before the hard-coded library search path?])
  1.3233 +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  1.3234 +_LT_DECL([], [library_names_spec], [1],
  1.3235 +    [[List of archive names.  First name is the real one, the rest are links.
  1.3236 +    The last name is the one that the linker finds with -lNAME]])
  1.3237 +_LT_DECL([], [soname_spec], [1],
  1.3238 +    [[The coded name of the library, if different from the real name]])
  1.3239 +_LT_DECL([], [postinstall_cmds], [2],
  1.3240 +    [Command to use after installation of a shared archive])
  1.3241 +_LT_DECL([], [postuninstall_cmds], [2],
  1.3242 +    [Command to use after uninstallation of a shared archive])
  1.3243 +_LT_DECL([], [finish_cmds], [2],
  1.3244 +    [Commands used to finish a libtool library installation in a directory])
  1.3245 +_LT_DECL([], [finish_eval], [1],
  1.3246 +    [[As "finish_cmds", except a single script fragment to be evaled but
  1.3247 +    not shown]])
  1.3248 +_LT_DECL([], [hardcode_into_libs], [0],
  1.3249 +    [Whether we should hardcode library paths into libraries])
  1.3250 +_LT_DECL([], [sys_lib_search_path_spec], [2],
  1.3251 +    [Compile-time system search path for libraries])
  1.3252 +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  1.3253 +    [Run-time system search path for libraries])
  1.3254 +])# _LT_SYS_DYNAMIC_LINKER
  1.3255 +
  1.3256 +
  1.3257 +# _LT_PATH_TOOL_PREFIX(TOOL)
  1.3258  # --------------------------
  1.3259 -# implement the --with-pic flag
  1.3260 -# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
  1.3261 -AC_DEFUN([AC_LIBTOOL_PICMODE],
  1.3262 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3263 -pic_mode=ifelse($#,1,$1,default)
  1.3264 -])# AC_LIBTOOL_PICMODE
  1.3265 -
  1.3266 -
  1.3267 -# AC_PROG_EGREP
  1.3268 -# -------------
  1.3269 -# This is predefined starting with Autoconf 2.54, so this conditional
  1.3270 -# definition can be removed once we require Autoconf 2.54 or later.
  1.3271 -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  1.3272 -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  1.3273 -   [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1.3274 -    then ac_cv_prog_egrep='grep -E'
  1.3275 -    else ac_cv_prog_egrep='egrep'
  1.3276 -    fi])
  1.3277 - EGREP=$ac_cv_prog_egrep
  1.3278 - AC_SUBST([EGREP])
  1.3279 -])])
  1.3280 -
  1.3281 -
  1.3282 -# AC_PATH_TOOL_PREFIX
  1.3283 -# -------------------
  1.3284 -# find a file program which can recognise shared library
  1.3285 -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  1.3286 -[AC_REQUIRE([AC_PROG_EGREP])dnl
  1.3287 +# find a file program which can recognize shared library
  1.3288 +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  1.3289 +[m4_require([_LT_DECL_EGREP])dnl
  1.3290  AC_MSG_CHECKING([for $1])
  1.3291  AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  1.3292  [case $MAGIC_CMD in
  1.3293 @@ -2401,7 +3080,7 @@
  1.3294  dnl $ac_dummy forces splitting on constant user-supplied paths.
  1.3295  dnl POSIX.2 word splitting is done only on the output of word expansions,
  1.3296  dnl not every word.  This closes a longstanding sh security hole.
  1.3297 -  ac_dummy="ifelse([$2], , $PATH, [$2])"
  1.3298 +  ac_dummy="m4_if([$2], , $PATH, [$2])"
  1.3299    for ac_dir in $ac_dummy; do
  1.3300      IFS="$lt_save_ifs"
  1.3301      test -z "$ac_dir" && ac_dir=.
  1.3302 @@ -2416,7 +3095,7 @@
  1.3303  	    $EGREP "$file_magic_regex" > /dev/null; then
  1.3304  	    :
  1.3305  	  else
  1.3306 -	    cat <<EOF 1>&2
  1.3307 +	    cat <<_LT_EOF 1>&2
  1.3308  
  1.3309  *** Warning: the command libtool uses to detect shared libraries,
  1.3310  *** $file_magic_cmd, produces output that libtool cannot recognize.
  1.3311 @@ -2427,7 +3106,7 @@
  1.3312  *** may want to report the problem to your system manager and/or to
  1.3313  *** bug-libtool@gnu.org
  1.3314  
  1.3315 -EOF
  1.3316 +_LT_EOF
  1.3317  	  fi ;;
  1.3318  	esac
  1.3319        fi
  1.3320 @@ -2444,37 +3123,47 @@
  1.3321  else
  1.3322    AC_MSG_RESULT(no)
  1.3323  fi
  1.3324 -])# AC_PATH_TOOL_PREFIX
  1.3325 -
  1.3326 -
  1.3327 -# AC_PATH_MAGIC
  1.3328 -# -------------
  1.3329 -# find a file program which can recognise a shared library
  1.3330 -AC_DEFUN([AC_PATH_MAGIC],
  1.3331 -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3332 +_LT_DECL([], [MAGIC_CMD], [0],
  1.3333 +	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  1.3334 +])# _LT_PATH_TOOL_PREFIX
  1.3335 +
  1.3336 +# Old name:
  1.3337 +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  1.3338 +dnl aclocal-1.4 backwards compatibility:
  1.3339 +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  1.3340 +
  1.3341 +
  1.3342 +# _LT_PATH_MAGIC
  1.3343 +# --------------
  1.3344 +# find a file program which can recognize a shared library
  1.3345 +m4_defun([_LT_PATH_MAGIC],
  1.3346 +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3347  if test -z "$lt_cv_path_MAGIC_CMD"; then
  1.3348    if test -n "$ac_tool_prefix"; then
  1.3349 -    AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3350 +    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  1.3351    else
  1.3352      MAGIC_CMD=:
  1.3353    fi
  1.3354  fi
  1.3355 -])# AC_PATH_MAGIC
  1.3356 -
  1.3357 -
  1.3358 -# AC_PROG_LD
  1.3359 +])# _LT_PATH_MAGIC
  1.3360 +
  1.3361 +
  1.3362 +# LT_PATH_LD
  1.3363  # ----------
  1.3364  # find the pathname to the GNU or non-GNU linker
  1.3365 -AC_DEFUN([AC_PROG_LD],
  1.3366 -[AC_ARG_WITH([gnu-ld],
  1.3367 -    [AC_HELP_STRING([--with-gnu-ld],
  1.3368 +AC_DEFUN([LT_PATH_LD],
  1.3369 +[AC_REQUIRE([AC_PROG_CC])dnl
  1.3370 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3371 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.3372 +m4_require([_LT_DECL_SED])dnl
  1.3373 +m4_require([_LT_DECL_EGREP])dnl
  1.3374 +
  1.3375 +AC_ARG_WITH([gnu-ld],
  1.3376 +    [AS_HELP_STRING([--with-gnu-ld],
  1.3377  	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
  1.3378      [test "$withval" = no || with_gnu_ld=yes],
  1.3379 -    [with_gnu_ld=no])
  1.3380 -AC_REQUIRE([LT_AC_PROG_SED])dnl
  1.3381 -AC_REQUIRE([AC_PROG_CC])dnl
  1.3382 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3383 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1.3384 +    [with_gnu_ld=no])dnl
  1.3385 +
  1.3386  ac_prog=ld
  1.3387  if test "$GCC" = yes; then
  1.3388    # Check if gcc -print-prog-name=ld gives a path.
  1.3389 @@ -2491,9 +3180,9 @@
  1.3390      [[\\/]]* | ?:[[\\/]]*)
  1.3391        re_direlt='/[[^/]][[^/]]*/\.\./'
  1.3392        # Canonicalize the pathname of ld
  1.3393 -      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  1.3394 -      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1.3395 -	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  1.3396 +      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  1.3397 +      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  1.3398 +	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  1.3399        done
  1.3400        test -z "$LD" && LD="$ac_prog"
  1.3401        ;;
  1.3402 @@ -2543,15 +3232,24 @@
  1.3403    AC_MSG_RESULT(no)
  1.3404  fi
  1.3405  test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  1.3406 -AC_PROG_LD_GNU
  1.3407 -])# AC_PROG_LD
  1.3408 -
  1.3409 -
  1.3410 -# AC_PROG_LD_GNU
  1.3411 -# --------------
  1.3412 -AC_DEFUN([AC_PROG_LD_GNU],
  1.3413 -[AC_REQUIRE([AC_PROG_EGREP])dnl
  1.3414 -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1.3415 +_LT_PATH_LD_GNU
  1.3416 +AC_SUBST([LD])
  1.3417 +
  1.3418 +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  1.3419 +])# LT_PATH_LD
  1.3420 +
  1.3421 +# Old names:
  1.3422 +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  1.3423 +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  1.3424 +dnl aclocal-1.4 backwards compatibility:
  1.3425 +dnl AC_DEFUN([AM_PROG_LD], [])
  1.3426 +dnl AC_DEFUN([AC_PROG_LD], [])
  1.3427 +
  1.3428 +
  1.3429 +# _LT_PATH_LD_GNU
  1.3430 +#- --------------
  1.3431 +m4_defun([_LT_PATH_LD_GNU],
  1.3432 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  1.3433  [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  1.3434  case `$LD -v 2>&1 </dev/null` in
  1.3435  *GNU* | *'with BFD'*)
  1.3436 @@ -2562,14 +3260,14 @@
  1.3437    ;;
  1.3438  esac])
  1.3439  with_gnu_ld=$lt_cv_prog_gnu_ld
  1.3440 -])# AC_PROG_LD_GNU
  1.3441 -
  1.3442 -
  1.3443 -# AC_PROG_LD_RELOAD_FLAG
  1.3444 -# ----------------------
  1.3445 +])# _LT_PATH_LD_GNU
  1.3446 +
  1.3447 +
  1.3448 +# _LT_CMD_RELOAD
  1.3449 +# --------------
  1.3450  # find reload flag for linker
  1.3451  #   -- PORTME Some linkers may need a different reload flag.
  1.3452 -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  1.3453 +m4_defun([_LT_CMD_RELOAD],
  1.3454  [AC_CACHE_CHECK([for $LD option to reload object files],
  1.3455    lt_cv_ld_reload_flag,
  1.3456    [lt_cv_ld_reload_flag='-r'])
  1.3457 @@ -2588,15 +3286,19 @@
  1.3458      fi
  1.3459      ;;
  1.3460  esac
  1.3461 -])# AC_PROG_LD_RELOAD_FLAG
  1.3462 -
  1.3463 -
  1.3464 -# AC_DEPLIBS_CHECK_METHOD
  1.3465 -# -----------------------
  1.3466 +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  1.3467 +_LT_DECL([], [reload_cmds], [2])dnl
  1.3468 +])# _LT_CMD_RELOAD
  1.3469 +
  1.3470 +
  1.3471 +# _LT_CHECK_MAGIC_METHOD
  1.3472 +# ----------------------
  1.3473  # how to check for library dependencies
  1.3474  #  -- PORTME fill in with the dynamic library characteristics
  1.3475 -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1.3476 -[AC_CACHE_CHECK([how to recognise dependent libraries],
  1.3477 +m4_defun([_LT_CHECK_MAGIC_METHOD],
  1.3478 +[m4_require([_LT_DECL_EGREP])
  1.3479 +m4_require([_LT_DECL_OBJDUMP])
  1.3480 +AC_CACHE_CHECK([how to recognize dependent libraries],
  1.3481  lt_cv_deplibs_check_method,
  1.3482  [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1.3483  lt_cv_file_magic_test_file=
  1.3484 @@ -2613,7 +3315,7 @@
  1.3485  # whether `pass_all' will *always* work, you probably want this one.
  1.3486  
  1.3487  case $host_os in
  1.3488 -aix4* | aix5*)
  1.3489 +aix[[4-9]]*)
  1.3490    lt_cv_deplibs_check_method=pass_all
  1.3491    ;;
  1.3492  
  1.3493 @@ -2629,16 +3331,28 @@
  1.3494  
  1.3495  cygwin*)
  1.3496    # func_win32_libid is a shell function defined in ltmain.sh
  1.3497 -  #lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.3498 +  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.3499    lt_cv_deplibs_check_method=pass_all
  1.3500    lt_cv_file_magic_cmd='func_win32_libid'
  1.3501    ;;
  1.3502  
  1.3503  mingw* | pw32*)
  1.3504    # Base MSYS/MinGW do not provide the 'file' command needed by
  1.3505 -  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  1.3506 -  #lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1.3507 +  # func_win32_libid shell function, so use a weaker test based on 'objdump',
  1.3508 +  # unless we find 'file', for example because we are cross-compiling.
  1.3509 +  if ( file / ) >/dev/null 2>&1; then
  1.3510 +    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  1.3511 +    lt_cv_file_magic_cmd='func_win32_libid'
  1.3512 +  else
  1.3513 +    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  1.3514 +    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.3515 +  fi
  1.3516    lt_cv_deplibs_check_method=pass_all
  1.3517 +  ;;
  1.3518 +
  1.3519 +cegcc)
  1.3520 +  # use the weaker test based on 'objdump'. See mingw*.
  1.3521 +  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  1.3522    lt_cv_file_magic_cmd='$OBJDUMP -f'
  1.3523    ;;
  1.3524  
  1.3525 @@ -2646,8 +3360,8 @@
  1.3526    lt_cv_deplibs_check_method=pass_all
  1.3527    ;;
  1.3528  
  1.3529 -freebsd* | kfreebsd*-gnu | dragonfly*)
  1.3530 -  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1.3531 +freebsd* | dragonfly*)
  1.3532 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1.3533      case $host_cpu in
  1.3534      i*86 )
  1.3535        # Not sure whether the presence of OpenBSD here was a mistake.
  1.3536 @@ -2684,7 +3398,7 @@
  1.3537    esac
  1.3538    ;;
  1.3539  
  1.3540 -interix3*)
  1.3541 +interix[[3-9]]*)
  1.3542    # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  1.3543    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  1.3544    ;;
  1.3545 @@ -2700,12 +3414,12 @@
  1.3546    ;;
  1.3547  
  1.3548  # This must be Linux ELF.
  1.3549 -linux*)
  1.3550 +linux* | k*bsd*-gnu)
  1.3551    lt_cv_deplibs_check_method=pass_all
  1.3552    ;;
  1.3553  
  1.3554  netbsd*)
  1.3555 -  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1.3556 +  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  1.3557      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1.3558    else
  1.3559      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  1.3560 @@ -2718,12 +3432,12 @@
  1.3561    lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1.3562    ;;
  1.3563  
  1.3564 -nto-qnx*)
  1.3565 -  lt_cv_deplibs_check_method=unknown
  1.3566 +*nto* | *qnx*)
  1.3567 +  lt_cv_deplibs_check_method=pass_all
  1.3568    ;;
  1.3569  
  1.3570  openbsd*)
  1.3571 -  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3572 +  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.3573      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  1.3574    else
  1.3575      lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  1.3576 @@ -2734,10 +3448,18 @@
  1.3577    lt_cv_deplibs_check_method=pass_all
  1.3578    ;;
  1.3579  
  1.3580 +rdos*)
  1.3581 +  lt_cv_deplibs_check_method=pass_all
  1.3582 +  ;;
  1.3583 +
  1.3584  solaris*)
  1.3585    lt_cv_deplibs_check_method=pass_all
  1.3586    ;;
  1.3587  
  1.3588 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.3589 +  lt_cv_deplibs_check_method=pass_all
  1.3590 +  ;;
  1.3591 +
  1.3592  sysv4 | sysv4.3*)
  1.3593    case $host_vendor in
  1.3594    motorola)
  1.3595 @@ -2765,7 +3487,7 @@
  1.3596    esac
  1.3597    ;;
  1.3598  
  1.3599 -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  1.3600 +tpf*)
  1.3601    lt_cv_deplibs_check_method=pass_all
  1.3602    ;;
  1.3603  esac
  1.3604 @@ -2773,20 +3495,26 @@
  1.3605  file_magic_cmd=$lt_cv_file_magic_cmd
  1.3606  deplibs_check_method=$lt_cv_deplibs_check_method
  1.3607  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  1.3608 -])# AC_DEPLIBS_CHECK_METHOD
  1.3609 -
  1.3610 -
  1.3611 -# AC_PROG_NM
  1.3612 +
  1.3613 +_LT_DECL([], [deplibs_check_method], [1],
  1.3614 +    [Method to check whether dependent libraries are shared objects])
  1.3615 +_LT_DECL([], [file_magic_cmd], [1],
  1.3616 +    [Command to use when deplibs_check_method == "file_magic"])
  1.3617 +])# _LT_CHECK_MAGIC_METHOD
  1.3618 +
  1.3619 +
  1.3620 +# LT_PATH_NM
  1.3621  # ----------
  1.3622 -# find the pathname to a BSD-compatible name lister
  1.3623 -AC_DEFUN([AC_PROG_NM],
  1.3624 -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  1.3625 +# find the pathname to a BSD- or MS-compatible name lister
  1.3626 +AC_DEFUN([LT_PATH_NM],
  1.3627 +[AC_REQUIRE([AC_PROG_CC])dnl
  1.3628 +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  1.3629  [if test -n "$NM"; then
  1.3630    # Let the user override the test.
  1.3631    lt_cv_path_NM="$NM"
  1.3632  else
  1.3633    lt_nm_to_check="${ac_tool_prefix}nm"
  1.3634 -  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
  1.3635 +  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  1.3636      lt_nm_to_check="$lt_nm_to_check nm"
  1.3637    fi
  1.3638    for lt_tmp_nm in $lt_nm_to_check; do
  1.3639 @@ -2822,16 +3550,51 @@
  1.3640      done
  1.3641      IFS="$lt_save_ifs"
  1.3642    done
  1.3643 -  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  1.3644 +  : ${lt_cv_path_NM=no}
  1.3645  fi])
  1.3646 -NM="$lt_cv_path_NM"
  1.3647 -])# AC_PROG_NM
  1.3648 -
  1.3649 -
  1.3650 -# AC_CHECK_LIBM
  1.3651 -# -------------
  1.3652 +if test "$lt_cv_path_NM" != "no"; then
  1.3653 +  NM="$lt_cv_path_NM"
  1.3654 +else
  1.3655 +  # Didn't find any BSD compatible name lister, look for dumpbin.
  1.3656 +  AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  1.3657 +  AC_SUBST([DUMPBIN])
  1.3658 +  if test "$DUMPBIN" != ":"; then
  1.3659 +    NM="$DUMPBIN"
  1.3660 +  fi
  1.3661 +fi
  1.3662 +test -z "$NM" && NM=nm
  1.3663 +AC_SUBST([NM])
  1.3664 +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  1.3665 +
  1.3666 +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  1.3667 +  [lt_cv_nm_interface="BSD nm"
  1.3668 +  echo "int some_variable = 0;" > conftest.$ac_ext
  1.3669 +  (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  1.3670 +  (eval "$ac_compile" 2>conftest.err)
  1.3671 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.3672 +  (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  1.3673 +  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  1.3674 +  cat conftest.err >&AS_MESSAGE_LOG_FD
  1.3675 +  (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  1.3676 +  cat conftest.out >&AS_MESSAGE_LOG_FD
  1.3677 +  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  1.3678 +    lt_cv_nm_interface="MS dumpbin"
  1.3679 +  fi
  1.3680 +  rm -f conftest*])
  1.3681 +])# LT_PATH_NM
  1.3682 +
  1.3683 +# Old names:
  1.3684 +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  1.3685 +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  1.3686 +dnl aclocal-1.4 backwards compatibility:
  1.3687 +dnl AC_DEFUN([AM_PROG_NM], [])
  1.3688 +dnl AC_DEFUN([AC_PROG_NM], [])
  1.3689 +
  1.3690 +
  1.3691 +# LT_LIB_M
  1.3692 +# --------
  1.3693  # check for math library
  1.3694 -AC_DEFUN([AC_CHECK_LIBM],
  1.3695 +AC_DEFUN([LT_LIB_M],
  1.3696  [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.3697  LIBM=
  1.3698  case $host in
  1.3699 @@ -2846,2116 +3609,46 @@
  1.3700    AC_CHECK_LIB(m, cos, LIBM="-lm")
  1.3701    ;;
  1.3702  esac
  1.3703 -])# AC_CHECK_LIBM
  1.3704 -
  1.3705 -
  1.3706 -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  1.3707 -# -----------------------------------
  1.3708 -# sets LIBLTDL to the link flags for the libltdl convenience library and
  1.3709 -# LTDLINCL to the include flags for the libltdl header and adds
  1.3710 -# --enable-ltdl-convenience to the configure arguments.  Note that
  1.3711 -# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  1.3712 -# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
  1.3713 -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  1.3714 -# (note the single quotes!).  If your package is not flat and you're not
  1.3715 -# using automake, define top_builddir and top_srcdir appropriately in
  1.3716 -# the Makefiles.
  1.3717 -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  1.3718 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3719 -  case $enable_ltdl_convenience in
  1.3720 -  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  1.3721 -  "") enable_ltdl_convenience=yes
  1.3722 -      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  1.3723 -  esac
  1.3724 -  LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  1.3725 -  LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1.3726 -  # For backwards non-gettext consistent compatibility...
  1.3727 -  INCLTDL="$LTDLINCL"
  1.3728 -])# AC_LIBLTDL_CONVENIENCE
  1.3729 -
  1.3730 -
  1.3731 -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  1.3732 -# -----------------------------------
  1.3733 -# sets LIBLTDL to the link flags for the libltdl installable library and
  1.3734 -# LTDLINCL to the include flags for the libltdl header and adds
  1.3735 -# --enable-ltdl-install to the configure arguments.  Note that
  1.3736 -# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
  1.3737 -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  1.3738 -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  1.3739 -# '${top_srcdir}/' (note the single quotes!).  If your package is not
  1.3740 -# flat and you're not using automake, define top_builddir and top_srcdir
  1.3741 -# appropriately in the Makefiles.
  1.3742 -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  1.3743 -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  1.3744 -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  1.3745 -  AC_CHECK_LIB(ltdl, lt_dlinit,
  1.3746 -  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  1.3747 -  [if test x"$enable_ltdl_install" = xno; then
  1.3748 -     AC_MSG_WARN([libltdl not installed, but installation disabled])
  1.3749 -   else
  1.3750 -     enable_ltdl_install=yes
  1.3751 -   fi
  1.3752 -  ])
  1.3753 -  if test x"$enable_ltdl_install" = x"yes"; then
  1.3754 -    ac_configure_args="$ac_configure_args --enable-ltdl-install"
  1.3755 -    LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  1.3756 -    LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1.3757 -  else
  1.3758 -    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  1.3759 -    LIBLTDL="-lltdl"
  1.3760 -    LTDLINCL=
  1.3761 -  fi
  1.3762 -  # For backwards non-gettext consistent compatibility...
  1.3763 -  INCLTDL="$LTDLINCL"
  1.3764 -])# AC_LIBLTDL_INSTALLABLE
  1.3765 -
  1.3766 -
  1.3767 -# AC_LIBTOOL_CXX
  1.3768 -# --------------
  1.3769 -# enable support for C++ libraries
  1.3770 -AC_DEFUN([AC_LIBTOOL_CXX],
  1.3771 -[AC_REQUIRE([_LT_AC_LANG_CXX])
  1.3772 -])# AC_LIBTOOL_CXX
  1.3773 -
  1.3774 -
  1.3775 -# _LT_AC_LANG_CXX
  1.3776 -# ---------------
  1.3777 -AC_DEFUN([_LT_AC_LANG_CXX],
  1.3778 -[AC_REQUIRE([AC_PROG_CXX])
  1.3779 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  1.3780 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  1.3781 -])# _LT_AC_LANG_CXX
  1.3782 -
  1.3783 -# _LT_AC_PROG_CXXCPP
  1.3784 -# ------------------
  1.3785 -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  1.3786 -[
  1.3787 -AC_REQUIRE([AC_PROG_CXX])
  1.3788 -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  1.3789 -    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  1.3790 -    (test "X$CXX" != "Xg++"))) ; then
  1.3791 -  AC_PROG_CXXCPP
  1.3792 -fi
  1.3793 -])# _LT_AC_PROG_CXXCPP
  1.3794 -
  1.3795 -# AC_LIBTOOL_F77
  1.3796 -# --------------
  1.3797 -# enable support for Fortran 77 libraries
  1.3798 -AC_DEFUN([AC_LIBTOOL_F77],
  1.3799 -[AC_REQUIRE([_LT_AC_LANG_F77])
  1.3800 -])# AC_LIBTOOL_F77
  1.3801 -
  1.3802 -
  1.3803 -# _LT_AC_LANG_F77
  1.3804 -# ---------------
  1.3805 -AC_DEFUN([_LT_AC_LANG_F77],
  1.3806 -[AC_REQUIRE([AC_PROG_F77])
  1.3807 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  1.3808 -])# _LT_AC_LANG_F77
  1.3809 -
  1.3810 -
  1.3811 -# AC_LIBTOOL_GCJ
  1.3812 -# --------------
  1.3813 -# enable support for GCJ libraries
  1.3814 -AC_DEFUN([AC_LIBTOOL_GCJ],
  1.3815 -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  1.3816 -])# AC_LIBTOOL_GCJ
  1.3817 -
  1.3818 -
  1.3819 -# _LT_AC_LANG_GCJ
  1.3820 -# ---------------
  1.3821 -AC_DEFUN([_LT_AC_LANG_GCJ],
  1.3822 -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  1.3823 -  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  1.3824 -    [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  1.3825 -      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  1.3826 -	 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  1.3827 -	   [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  1.3828 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  1.3829 -])# _LT_AC_LANG_GCJ
  1.3830 -
  1.3831 -
  1.3832 -# AC_LIBTOOL_RC
  1.3833 -# -------------
  1.3834 -# enable support for Windows resource files
  1.3835 -AC_DEFUN([AC_LIBTOOL_RC],
  1.3836 -[AC_REQUIRE([LT_AC_PROG_RC])
  1.3837 -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  1.3838 -])# AC_LIBTOOL_RC
  1.3839 -
  1.3840 -
  1.3841 -# AC_LIBTOOL_LANG_C_CONFIG
  1.3842 -# ------------------------
  1.3843 -# Ensure that the configuration vars for the C compiler are
  1.3844 -# suitably defined.  Those variables are subsequently used by
  1.3845 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.3846 -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  1.3847 -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  1.3848 -[lt_save_CC="$CC"
  1.3849 -AC_LANG_PUSH(C)
  1.3850 -
  1.3851 -# Source file extension for C test sources.
  1.3852 -ac_ext=c
  1.3853 -
  1.3854 -# Object file extension for compiled C test sources.
  1.3855 -objext=o
  1.3856 -_LT_AC_TAGVAR(objext, $1)=$objext
  1.3857 -
  1.3858 -# Code to be used in simple compile tests
  1.3859 -lt_simple_compile_test_code="int some_variable = 0;\n"
  1.3860 -
  1.3861 -# Code to be used in simple link tests
  1.3862 -lt_simple_link_test_code='int main(){return(0);}\n'
  1.3863 -
  1.3864 -_LT_AC_SYS_COMPILER
  1.3865 -
  1.3866 -# save warnings/boilerplate of simple test code
  1.3867 -_LT_COMPILER_BOILERPLATE
  1.3868 -_LT_LINKER_BOILERPLATE
  1.3869 -
  1.3870 -## CAVEAT EMPTOR:
  1.3871 -## There is no encapsulation within the following macros, do not change
  1.3872 -## the running order or otherwise move them around unless you know exactly
  1.3873 -## what you are doing...
  1.3874 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1.3875 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.3876 -AC_LIBTOOL_PROG_CC_C_O($1)
  1.3877 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  1.3878 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.3879 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.3880 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.3881 -AC_LIBTOOL_SYS_LIB_STRIP
  1.3882 -AC_LIBTOOL_DLOPEN_SELF
  1.3883 -
  1.3884 -# Report which library types will actually be built
  1.3885 -AC_MSG_CHECKING([if libtool supports shared libraries])
  1.3886 -AC_MSG_RESULT([$can_build_shared])
  1.3887 -
  1.3888 -AC_MSG_CHECKING([whether to build shared libraries])
  1.3889 -test "$can_build_shared" = "no" && enable_shared=no
  1.3890 -
  1.3891 -# On AIX, shared libraries and static libraries use the same namespace, and
  1.3892 -# are all built from PIC.
  1.3893 -case $host_os in
  1.3894 -aix3*)
  1.3895 -  test "$enable_shared" = yes && enable_static=no
  1.3896 -  if test -n "$RANLIB"; then
  1.3897 -    archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.3898 -    postinstall_cmds='$RANLIB $lib'
  1.3899 -  fi
  1.3900 -  ;;
  1.3901 -
  1.3902 -aix4* | aix5*)
  1.3903 -  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.3904 -    test "$enable_shared" = yes && enable_static=no
  1.3905 -  fi
  1.3906 -    ;;
  1.3907 -esac
  1.3908 -AC_MSG_RESULT([$enable_shared])
  1.3909 -
  1.3910 -AC_MSG_CHECKING([whether to build static libraries])
  1.3911 -# Make sure either enable_shared or enable_static is yes.
  1.3912 -test "$enable_shared" = yes || enable_static=yes
  1.3913 -AC_MSG_RESULT([$enable_static])
  1.3914 -
  1.3915 -AC_LIBTOOL_CONFIG($1)
  1.3916 -
  1.3917 -AC_LANG_POP
  1.3918 -CC="$lt_save_CC"
  1.3919 -])# AC_LIBTOOL_LANG_C_CONFIG
  1.3920 -
  1.3921 -
  1.3922 -# AC_LIBTOOL_LANG_CXX_CONFIG
  1.3923 -# --------------------------
  1.3924 -# Ensure that the configuration vars for the C compiler are
  1.3925 -# suitably defined.  Those variables are subsequently used by
  1.3926 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.3927 -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  1.3928 -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  1.3929 -[AC_LANG_PUSH(C++)
  1.3930 -AC_REQUIRE([AC_PROG_CXX])
  1.3931 -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  1.3932 -
  1.3933 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.3934 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1.3935 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.3936 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  1.3937 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.3938 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.3939 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.3940 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.3941 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.3942 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.3943 -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.3944 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.3945 -_LT_AC_TAGVAR(module_cmds, $1)=
  1.3946 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.3947 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  1.3948 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.3949 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  1.3950 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.3951 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.3952 -
  1.3953 -# Dependencies to place before and after the object being linked:
  1.3954 -_LT_AC_TAGVAR(predep_objects, $1)=
  1.3955 -_LT_AC_TAGVAR(postdep_objects, $1)=
  1.3956 -_LT_AC_TAGVAR(predeps, $1)=
  1.3957 -_LT_AC_TAGVAR(postdeps, $1)=
  1.3958 -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  1.3959 -
  1.3960 -# Source file extension for C++ test sources.
  1.3961 -ac_ext=cpp
  1.3962 -
  1.3963 -# Object file extension for compiled C++ test sources.
  1.3964 -objext=o
  1.3965 -_LT_AC_TAGVAR(objext, $1)=$objext
  1.3966 -
  1.3967 -# Code to be used in simple compile tests
  1.3968 -lt_simple_compile_test_code="int some_variable = 0;\n"
  1.3969 -
  1.3970 -# Code to be used in simple link tests
  1.3971 -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  1.3972 -
  1.3973 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.3974 -_LT_AC_SYS_COMPILER
  1.3975 -
  1.3976 -# save warnings/boilerplate of simple test code
  1.3977 -_LT_COMPILER_BOILERPLATE
  1.3978 -_LT_LINKER_BOILERPLATE
  1.3979 -
  1.3980 -# Allow CC to be a program name with arguments.
  1.3981 -lt_save_CC=$CC
  1.3982 -lt_save_LD=$LD
  1.3983 -lt_save_GCC=$GCC
  1.3984 -GCC=$GXX
  1.3985 -lt_save_with_gnu_ld=$with_gnu_ld
  1.3986 -lt_save_path_LD=$lt_cv_path_LD
  1.3987 -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  1.3988 -  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  1.3989 -else
  1.3990 -  $as_unset lt_cv_prog_gnu_ld
  1.3991 -fi
  1.3992 -if test -n "${lt_cv_path_LDCXX+set}"; then
  1.3993 -  lt_cv_path_LD=$lt_cv_path_LDCXX
  1.3994 -else
  1.3995 -  $as_unset lt_cv_path_LD
  1.3996 -fi
  1.3997 -test -z "${LDCXX+set}" || LD=$LDCXX
  1.3998 -CC=${CXX-"c++"}
  1.3999 -compiler=$CC
  1.4000 -_LT_AC_TAGVAR(compiler, $1)=$CC
  1.4001 -_LT_CC_BASENAME([$compiler])
  1.4002 -
  1.4003 -# We don't want -fno-exception wen compiling C++ code, so set the
  1.4004 -# no_builtin_flag separately
  1.4005 -if test "$GXX" = yes; then
  1.4006 -  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.4007 -else
  1.4008 -  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.4009 -fi
  1.4010 -
  1.4011 -if test "$GXX" = yes; then
  1.4012 -  # Set up default GNU C++ configuration
  1.4013 -
  1.4014 -  AC_PROG_LD
  1.4015 -
  1.4016 -  # Check if GNU C++ uses GNU ld as the underlying linker, since the
  1.4017 -  # archiving commands below assume that GNU ld is being used.
  1.4018 -  if test "$with_gnu_ld" = yes; then
  1.4019 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.4020 -    _LT_AC_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.4021 -
  1.4022 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.4023 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.4024 -
  1.4025 -    # If archive_cmds runs LD, not CC, wlarc should be empty
  1.4026 -    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  1.4027 -    #     investigate it a little bit more. (MM)
  1.4028 -    wlarc='${wl}'
  1.4029 -
  1.4030 -    # ancient GNU ld didn't support --whole-archive et. al.
  1.4031 -    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  1.4032 -	grep 'no-whole-archive' > /dev/null; then
  1.4033 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.4034 -    else
  1.4035 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.4036 -    fi
  1.4037 -  else
  1.4038 -    with_gnu_ld=no
  1.4039 -    wlarc=
  1.4040 -
  1.4041 -    # A generic and very simple default shared library creation
  1.4042 -    # command for GNU C++ for the case where it uses the native
  1.4043 -    # linker, instead of GNU ld.  If possible, this setting should
  1.4044 -    # overridden to take advantage of the native linker features on
  1.4045 -    # the platform it is being used on.
  1.4046 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.4047 -  fi
  1.4048 -
  1.4049 -  # Commands to make compiler produce verbose output that lists
  1.4050 -  # what "hidden" libraries, object files and flags are used when
  1.4051 -  # linking a shared library.
  1.4052 -  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  1.4053 -
  1.4054 -else
  1.4055 -  GXX=no
  1.4056 -  with_gnu_ld=no
  1.4057 -  wlarc=
  1.4058 -fi
  1.4059 -
  1.4060 -# PORTME: fill in a description of your system's C++ link characteristics
  1.4061 -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.4062 -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  1.4063 -case $host_os in
  1.4064 -  aix3*)
  1.4065 -    # FIXME: insert proper C++ library support
  1.4066 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4067 -    ;;
  1.4068 -  aix4* | aix5*)
  1.4069 -    if test "$host_cpu" = ia64; then
  1.4070 -      # On IA64, the linker does run time linking by default, so we don't
  1.4071 -      # have to do anything special.
  1.4072 -      aix_use_runtimelinking=no
  1.4073 -      exp_sym_flag='-Bexport'
  1.4074 -      no_entry_flag=""
  1.4075 -    else
  1.4076 -      aix_use_runtimelinking=no
  1.4077 -
  1.4078 -      # Test if we are trying to use run time linking or normal
  1.4079 -      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.4080 -      # need to do runtime linking.
  1.4081 -      case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1.4082 -	for ld_flag in $LDFLAGS; do
  1.4083 -	  case $ld_flag in
  1.4084 -	  *-brtl*)
  1.4085 -	    aix_use_runtimelinking=yes
  1.4086 -	    break
  1.4087 -	    ;;
  1.4088 -	  esac
  1.4089 -	done
  1.4090 -	;;
  1.4091 -      esac
  1.4092 -
  1.4093 -      exp_sym_flag='-bexport'
  1.4094 -      no_entry_flag='-bnoentry'
  1.4095 -    fi
  1.4096 -
  1.4097 -    # When large executables or shared objects are built, AIX ld can
  1.4098 -    # have problems creating the table of contents.  If linking a library
  1.4099 -    # or program results in "error TOC overflow" add -mminimal-toc to
  1.4100 -    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  1.4101 -    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1.4102 -
  1.4103 -    _LT_AC_TAGVAR(archive_cmds, $1)=''
  1.4104 -    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4105 -    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.4106 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.4107 -
  1.4108 -    if test "$GXX" = yes; then
  1.4109 -      case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.4110 -      # We only want to do this on AIX 4.2 and lower, the check
  1.4111 -      # below for broken collect2 doesn't work under 4.3+
  1.4112 -	collect2name=`${CC} -print-prog-name=collect2`
  1.4113 -	if test -f "$collect2name" && \
  1.4114 -	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  1.4115 -	then
  1.4116 -	  # We have reworked collect2
  1.4117 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4118 -	else
  1.4119 -	  # We have old collect2
  1.4120 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.4121 -	  # It fails to find uninstalled libraries when the uninstalled
  1.4122 -	  # path is not listed in the libpath.  Setting hardcode_minus_L
  1.4123 -	  # to unsupported forces relinking
  1.4124 -	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.4125 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.4126 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.4127 -	fi
  1.4128 -	;;
  1.4129 -      esac
  1.4130 -      shared_flag='-shared'
  1.4131 -      if test "$aix_use_runtimelinking" = yes; then
  1.4132 -	shared_flag="$shared_flag "'${wl}-G'
  1.4133 -      fi
  1.4134 -    else
  1.4135 -      # not using gcc
  1.4136 -      if test "$host_cpu" = ia64; then
  1.4137 -	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  1.4138 -	# chokes on -Wl,-G. The following line is correct:
  1.4139 -	shared_flag='-G'
  1.4140 -      else
  1.4141 -	if test "$aix_use_runtimelinking" = yes; then
  1.4142 -	  shared_flag='${wl}-G'
  1.4143 -	else
  1.4144 -	  shared_flag='${wl}-bM:SRE'
  1.4145 -	fi
  1.4146 -      fi
  1.4147 -    fi
  1.4148 -
  1.4149 -    # It seems that -bexpall does not export symbols beginning with
  1.4150 -    # underscore (_), so it is better to generate a list of symbols to export.
  1.4151 -    _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.4152 -    if test "$aix_use_runtimelinking" = yes; then
  1.4153 -      # Warning - without using the other runtime loading flags (-brtl),
  1.4154 -      # -berok will link without error, but may produce a broken library.
  1.4155 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.4156 -      # Determine the default libpath from the value encoded in an empty executable.
  1.4157 -      _LT_AC_SYS_LIBPATH_AIX
  1.4158 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.4159 -
  1.4160 -      _LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.4161 -     else
  1.4162 -      if test "$host_cpu" = ia64; then
  1.4163 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.4164 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.4165 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  1.4166 -      else
  1.4167 -	# Determine the default libpath from the value encoded in an empty executable.
  1.4168 -	_LT_AC_SYS_LIBPATH_AIX
  1.4169 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.4170 -	# Warning - without using the other run time loading flags,
  1.4171 -	# -berok will link without error, but may produce a broken library.
  1.4172 -	_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.4173 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.4174 -	# Exported symbols can be pulled into shared objects from archives
  1.4175 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.4176 -	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.4177 -	# This is similar to how AIX traditionally builds its shared libraries.
  1.4178 -	_LT_AC_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.4179 -      fi
  1.4180 -    fi
  1.4181 -    ;;
  1.4182 -
  1.4183 -  beos*)
  1.4184 -    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.4185 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.4186 -      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.4187 -      # support --undefined.  This deserves some investigation.  FIXME
  1.4188 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.4189 -    else
  1.4190 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4191 -    fi
  1.4192 -    ;;
  1.4193 -
  1.4194 -  chorus*)
  1.4195 -    case $cc_basename in
  1.4196 -      *)
  1.4197 -	# FIXME: insert proper C++ library support
  1.4198 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4199 -	;;
  1.4200 -    esac
  1.4201 -    ;;
  1.4202 -
  1.4203 -  cygwin* | mingw* | pw32*)
  1.4204 -    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.4205 -    # as there is no search path for DLLs.
  1.4206 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.4207 -    _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.4208 -    _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.4209 -    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.4210 -
  1.4211 -    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.4212 -      _LT_AC_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.4213 -      # If the export-symbols file already is a .def file (1st line
  1.4214 -      # is EXPORTS), use it as is; otherwise, prepend...
  1.4215 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.4216 -	cp $export_symbols $output_objdir/$soname.def;
  1.4217 -      else
  1.4218 -	echo EXPORTS > $output_objdir/$soname.def;
  1.4219 -	cat $export_symbols >> $output_objdir/$soname.def;
  1.4220 -      fi~
  1.4221 -      $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.4222 -    else
  1.4223 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4224 -    fi
  1.4225 -  ;;
  1.4226 -      darwin* | rhapsody*)
  1.4227 -        case $host_os in
  1.4228 -        rhapsody* | darwin1.[[012]])
  1.4229 -         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.4230 -         ;;
  1.4231 -       *) # Darwin 1.3 on
  1.4232 -         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.4233 -           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.4234 -         else
  1.4235 -           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.4236 -             10.[[012]])
  1.4237 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.4238 -               ;;
  1.4239 -             10.*)
  1.4240 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.4241 -               ;;
  1.4242 -           esac
  1.4243 -         fi
  1.4244 -         ;;
  1.4245 -        esac
  1.4246 -      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.4247 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.4248 -      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.4249 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.4250 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.4251 -      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.4252 -
  1.4253 -    if test "$GXX" = yes ; then
  1.4254 -      lt_int_apple_cc_single_mod=no
  1.4255 -      output_verbose_link_cmd='echo'
  1.4256 -      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  1.4257 -       lt_int_apple_cc_single_mod=yes
  1.4258 -      fi
  1.4259 -      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.4260 -       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.4261 -      else
  1.4262 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.4263 -        fi
  1.4264 -        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.4265 -        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.4266 -          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  1.4267 -            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.4268 -          else
  1.4269 -            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.4270 -          fi
  1.4271 -            _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.4272 -      else
  1.4273 -      case $cc_basename in
  1.4274 -        xlc*)
  1.4275 -         output_verbose_link_cmd='echo'
  1.4276 -          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  1.4277 -          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.4278 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.4279 -          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.4280 -          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.4281 -          ;;
  1.4282 -       *)
  1.4283 -         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4284 -          ;;
  1.4285 -      esac
  1.4286 -      fi
  1.4287 -        ;;
  1.4288 -
  1.4289 -  dgux*)
  1.4290 -    case $cc_basename in
  1.4291 -      ec++*)
  1.4292 -	# FIXME: insert proper C++ library support
  1.4293 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4294 -	;;
  1.4295 -      ghcx*)
  1.4296 -	# Green Hills C++ Compiler
  1.4297 -	# FIXME: insert proper C++ library support
  1.4298 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4299 -	;;
  1.4300 -      *)
  1.4301 -	# FIXME: insert proper C++ library support
  1.4302 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4303 -	;;
  1.4304 -    esac
  1.4305 -    ;;
  1.4306 -  freebsd[[12]]*)
  1.4307 -    # C++ shared libraries reported to be fairly broken before switch to ELF
  1.4308 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4309 -    ;;
  1.4310 -  freebsd-elf*)
  1.4311 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.4312 -    ;;
  1.4313 -  freebsd* | kfreebsd*-gnu | dragonfly*)
  1.4314 -    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  1.4315 -    # conventions
  1.4316 -    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  1.4317 -    ;;
  1.4318 -  gnu*)
  1.4319 -    ;;
  1.4320 -  hpux9*)
  1.4321 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.4322 -    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4323 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.4324 -    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4325 -    _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.4326 -				# but as the default
  1.4327 -				# location of the library.
  1.4328 -
  1.4329 -    case $cc_basename in
  1.4330 -    CC*)
  1.4331 -      # FIXME: insert proper C++ library support
  1.4332 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4333 -      ;;
  1.4334 -    aCC*)
  1.4335 -      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  1.4336 -      # Commands to make compiler produce verbose output that lists
  1.4337 -      # what "hidden" libraries, object files and flags are used when
  1.4338 -      # linking a shared library.
  1.4339 -      #
  1.4340 -      # There doesn't appear to be a way to prevent this compiler from
  1.4341 -      # explicitly linking system object files so we need to strip them
  1.4342 -      # from the output so that they don't get included in the library
  1.4343 -      # dependencies.
  1.4344 -      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4345 -      ;;
  1.4346 -    *)
  1.4347 -      if test "$GXX" = yes; then
  1.4348 -        _LT_AC_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.4349 -      else
  1.4350 -        # FIXME: insert proper C++ library support
  1.4351 -        _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4352 -      fi
  1.4353 -      ;;
  1.4354 -    esac
  1.4355 -    ;;
  1.4356 -  hpux10*|hpux11*)
  1.4357 -    if test $with_gnu_ld = no; then
  1.4358 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.4359 -      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4360 -
  1.4361 -      case $host_cpu in
  1.4362 -      hppa*64*|ia64*)
  1.4363 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.4364 -        ;;
  1.4365 -      *)
  1.4366 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.4367 -        ;;
  1.4368 -      esac
  1.4369 -    fi
  1.4370 -    case $host_cpu in
  1.4371 -    hppa*64*|ia64*)
  1.4372 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.4373 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4374 -      ;;
  1.4375 -    *)
  1.4376 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4377 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  1.4378 -					      # but as the default
  1.4379 -					      # location of the library.
  1.4380 -      ;;
  1.4381 -    esac
  1.4382 -
  1.4383 -    case $cc_basename in
  1.4384 -      CC*)
  1.4385 -	# FIXME: insert proper C++ library support
  1.4386 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4387 -	;;
  1.4388 -      aCC*)
  1.4389 -	case $host_cpu in
  1.4390 -	hppa*64*)
  1.4391 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.4392 -	  ;;
  1.4393 -	ia64*)
  1.4394 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.4395 -	  ;;
  1.4396 -	*)
  1.4397 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.4398 -	  ;;
  1.4399 -	esac
  1.4400 -	# Commands to make compiler produce verbose output that lists
  1.4401 -	# what "hidden" libraries, object files and flags are used when
  1.4402 -	# linking a shared library.
  1.4403 -	#
  1.4404 -	# There doesn't appear to be a way to prevent this compiler from
  1.4405 -	# explicitly linking system object files so we need to strip them
  1.4406 -	# from the output so that they don't get included in the library
  1.4407 -	# dependencies.
  1.4408 -	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4409 -	;;
  1.4410 -      *)
  1.4411 -	if test "$GXX" = yes; then
  1.4412 -	  if test $with_gnu_ld = no; then
  1.4413 -	    case $host_cpu in
  1.4414 -	    hppa*64*)
  1.4415 -	      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.4416 -	      ;;
  1.4417 -	    ia64*)
  1.4418 -	      _LT_AC_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.4419 -	      ;;
  1.4420 -	    *)
  1.4421 -	      _LT_AC_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.4422 -	      ;;
  1.4423 -	    esac
  1.4424 -	  fi
  1.4425 -	else
  1.4426 -	  # FIXME: insert proper C++ library support
  1.4427 -	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4428 -	fi
  1.4429 -	;;
  1.4430 -    esac
  1.4431 -    ;;
  1.4432 -  interix3*)
  1.4433 -    _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.4434 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4435 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.4436 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.4437 -    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.4438 -    # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.4439 -    # default) and relocated if they conflict, which is a slow very memory
  1.4440 -    # consuming and fragmenting process.  To avoid this, we pick a random,
  1.4441 -    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.4442 -    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.4443 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  1.4444 -    _LT_AC_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.4445 -    ;;
  1.4446 -  irix5* | irix6*)
  1.4447 -    case $cc_basename in
  1.4448 -      CC*)
  1.4449 -	# SGI C++
  1.4450 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.4451 -
  1.4452 -	# Archives containing C++ object files must be created using
  1.4453 -	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
  1.4454 -	# necessary to make sure instantiated templates are included
  1.4455 -	# in the archive.
  1.4456 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  1.4457 -	;;
  1.4458 -      *)
  1.4459 -	if test "$GXX" = yes; then
  1.4460 -	  if test "$with_gnu_ld" = no; then
  1.4461 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.4462 -	  else
  1.4463 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  1.4464 -	  fi
  1.4465 -	fi
  1.4466 -	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.4467 -	;;
  1.4468 -    esac
  1.4469 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.4470 -    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4471 -    ;;
  1.4472 -  linux*)
  1.4473 -    case $cc_basename in
  1.4474 -      KCC*)
  1.4475 -	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.4476 -
  1.4477 -	# KCC will only create a shared library if the output file
  1.4478 -	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  1.4479 -	# to its proper name (with version) after linking.
  1.4480 -	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  1.4481 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  1.4482 -	# Commands to make compiler produce verbose output that lists
  1.4483 -	# what "hidden" libraries, object files and flags are used when
  1.4484 -	# linking a shared library.
  1.4485 -	#
  1.4486 -	# There doesn't appear to be a way to prevent this compiler from
  1.4487 -	# explicitly linking system object files so we need to strip them
  1.4488 -	# from the output so that they don't get included in the library
  1.4489 -	# dependencies.
  1.4490 -	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4491 -
  1.4492 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  1.4493 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.4494 -
  1.4495 -	# Archives containing C++ object files must be created using
  1.4496 -	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  1.4497 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.4498 -	;;
  1.4499 -      icpc*)
  1.4500 -	# Intel C++
  1.4501 -	with_gnu_ld=yes
  1.4502 -	# version 8.0 and above of icpc choke on multiply defined symbols
  1.4503 -	# if we add $predep_objects and $postdep_objects, however 7.1 and
  1.4504 -	# earlier do not add the objects themselves.
  1.4505 -	case `$CC -V 2>&1` in
  1.4506 -	*"Version 7."*)
  1.4507 -  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.4508 -  	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.4509 -	  ;;
  1.4510 -	*)  # Version 8.0 or newer
  1.4511 -	  tmp_idyn=
  1.4512 -	  case $host_cpu in
  1.4513 -	    ia64*) tmp_idyn=' -i_dynamic';;
  1.4514 -	  esac
  1.4515 -  	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.4516 -	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  1.4517 -	  ;;
  1.4518 -	esac
  1.4519 -	_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.4520 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.4521 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.4522 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  1.4523 -	;;
  1.4524 -      pgCC*)
  1.4525 -        # Portland Group C++ compiler
  1.4526 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  1.4527 -  	_LT_AC_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.4528 -
  1.4529 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.4530 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.4531 -	_LT_AC_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.4532 -        ;;
  1.4533 -      cxx*)
  1.4534 -	# Compaq C++
  1.4535 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.4536 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  1.4537 -
  1.4538 -	runpath_var=LD_RUN_PATH
  1.4539 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.4540 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4541 -
  1.4542 -	# Commands to make compiler produce verbose output that lists
  1.4543 -	# what "hidden" libraries, object files and flags are used when
  1.4544 -	# linking a shared library.
  1.4545 -	#
  1.4546 -	# There doesn't appear to be a way to prevent this compiler from
  1.4547 -	# explicitly linking system object files so we need to strip them
  1.4548 -	# from the output so that they don't get included in the library
  1.4549 -	# dependencies.
  1.4550 -	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4551 -	;;
  1.4552 -    esac
  1.4553 -    ;;
  1.4554 -  lynxos*)
  1.4555 -    # FIXME: insert proper C++ library support
  1.4556 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4557 -    ;;
  1.4558 -  m88k*)
  1.4559 -    # FIXME: insert proper C++ library support
  1.4560 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4561 -    ;;
  1.4562 -  mvs*)
  1.4563 -    case $cc_basename in
  1.4564 -      cxx*)
  1.4565 -	# FIXME: insert proper C++ library support
  1.4566 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4567 -	;;
  1.4568 -      *)
  1.4569 -	# FIXME: insert proper C++ library support
  1.4570 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4571 -	;;
  1.4572 -    esac
  1.4573 -    ;;
  1.4574 -  netbsd*)
  1.4575 -    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.4576 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  1.4577 -      wlarc=
  1.4578 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.4579 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4580 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4581 -    fi
  1.4582 -    # Workaround some broken pre-1.5 toolchains
  1.4583 -    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  1.4584 -    ;;
  1.4585 -  openbsd2*)
  1.4586 -    # C++ shared libraries are fairly broken
  1.4587 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4588 -    ;;
  1.4589 -  openbsd*)
  1.4590 -    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.4591 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4592 -    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  1.4593 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.4594 -    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.4595 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  1.4596 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.4597 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.4598 -    fi
  1.4599 -    output_verbose_link_cmd='echo'
  1.4600 -    ;;
  1.4601 -  osf3*)
  1.4602 -    case $cc_basename in
  1.4603 -      KCC*)
  1.4604 -	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.4605 -
  1.4606 -	# KCC will only create a shared library if the output file
  1.4607 -	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  1.4608 -	# to its proper name (with version) after linking.
  1.4609 -	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  1.4610 -
  1.4611 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.4612 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4613 -
  1.4614 -	# Archives containing C++ object files must be created using
  1.4615 -	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
  1.4616 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  1.4617 -
  1.4618 -	;;
  1.4619 -      RCC*)
  1.4620 -	# Rational C++ 2.4.1
  1.4621 -	# FIXME: insert proper C++ library support
  1.4622 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4623 -	;;
  1.4624 -      cxx*)
  1.4625 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.4626 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.4627 -
  1.4628 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.4629 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4630 -
  1.4631 -	# Commands to make compiler produce verbose output that lists
  1.4632 -	# what "hidden" libraries, object files and flags are used when
  1.4633 -	# linking a shared library.
  1.4634 -	#
  1.4635 -	# There doesn't appear to be a way to prevent this compiler from
  1.4636 -	# explicitly linking system object files so we need to strip them
  1.4637 -	# from the output so that they don't get included in the library
  1.4638 -	# dependencies.
  1.4639 -	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4640 -	;;
  1.4641 -      *)
  1.4642 -	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.4643 -	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.4644 -	  _LT_AC_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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.4645 -
  1.4646 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.4647 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4648 -
  1.4649 -	  # Commands to make compiler produce verbose output that lists
  1.4650 -	  # what "hidden" libraries, object files and flags are used when
  1.4651 -	  # linking a shared library.
  1.4652 -	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  1.4653 -
  1.4654 -	else
  1.4655 -	  # FIXME: insert proper C++ library support
  1.4656 -	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4657 -	fi
  1.4658 -	;;
  1.4659 -    esac
  1.4660 -    ;;
  1.4661 -  osf4* | osf5*)
  1.4662 -    case $cc_basename in
  1.4663 -      KCC*)
  1.4664 -	# Kuck and Associates, Inc. (KAI) C++ Compiler
  1.4665 -
  1.4666 -	# KCC will only create a shared library if the output file
  1.4667 -	# ends with ".so" (or ".sl" for HP-UX), so rename the library
  1.4668 -	# to its proper name (with version) after linking.
  1.4669 -	_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  1.4670 -
  1.4671 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.4672 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4673 -
  1.4674 -	# Archives containing C++ object files must be created using
  1.4675 -	# the KAI C++ compiler.
  1.4676 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  1.4677 -	;;
  1.4678 -      RCC*)
  1.4679 -	# Rational C++ 2.4.1
  1.4680 -	# FIXME: insert proper C++ library support
  1.4681 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4682 -	;;
  1.4683 -      cxx*)
  1.4684 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  1.4685 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.4686 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  1.4687 -	  echo "-hidden">> $lib.exp~
  1.4688 -	  $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.4689 -	  $rm $lib.exp'
  1.4690 -
  1.4691 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  1.4692 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4693 -
  1.4694 -	# Commands to make compiler produce verbose output that lists
  1.4695 -	# what "hidden" libraries, object files and flags are used when
  1.4696 -	# linking a shared library.
  1.4697 -	#
  1.4698 -	# There doesn't appear to be a way to prevent this compiler from
  1.4699 -	# explicitly linking system object files so we need to strip them
  1.4700 -	# from the output so that they don't get included in the library
  1.4701 -	# dependencies.
  1.4702 -	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  1.4703 -	;;
  1.4704 -      *)
  1.4705 -	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.4706 -	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  1.4707 -	 _LT_AC_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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.4708 -
  1.4709 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.4710 -	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.4711 -
  1.4712 -	  # Commands to make compiler produce verbose output that lists
  1.4713 -	  # what "hidden" libraries, object files and flags are used when
  1.4714 -	  # linking a shared library.
  1.4715 -	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  1.4716 -
  1.4717 -	else
  1.4718 -	  # FIXME: insert proper C++ library support
  1.4719 -	  _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4720 -	fi
  1.4721 -	;;
  1.4722 -    esac
  1.4723 -    ;;
  1.4724 -  psos*)
  1.4725 -    # FIXME: insert proper C++ library support
  1.4726 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4727 -    ;;
  1.4728 -  sunos4*)
  1.4729 -    case $cc_basename in
  1.4730 -      CC*)
  1.4731 -	# Sun C++ 4.x
  1.4732 -	# FIXME: insert proper C++ library support
  1.4733 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4734 -	;;
  1.4735 -      lcc*)
  1.4736 -	# Lucid
  1.4737 -	# FIXME: insert proper C++ library support
  1.4738 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4739 -	;;
  1.4740 -      *)
  1.4741 -	# FIXME: insert proper C++ library support
  1.4742 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4743 -	;;
  1.4744 -    esac
  1.4745 -    ;;
  1.4746 -  solaris*)
  1.4747 -    case $cc_basename in
  1.4748 -      CC*)
  1.4749 -	# Sun C++ 4.2, 5.x and Centerline C++
  1.4750 -        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  1.4751 -	_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  1.4752 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  1.4753 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.4754 -	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  1.4755 -
  1.4756 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.4757 -	_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4758 -	case $host_os in
  1.4759 -	  solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  1.4760 -	  *)
  1.4761 -	    # The C++ compiler is used as linker so we must use $wl
  1.4762 -	    # flag to pass the commands to the underlying system
  1.4763 -	    # linker. We must also pass each convience library through
  1.4764 -	    # to the system linker between allextract/defaultextract.
  1.4765 -	    # The C++ compiler will combine linker options so we
  1.4766 -	    # cannot just pass the convience library names through
  1.4767 -	    # without $wl.
  1.4768 -	    # Supported since Solaris 2.6 (maybe 2.5.1?)
  1.4769 -	    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  1.4770 -	    ;;
  1.4771 -	esac
  1.4772 -	_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.4773 -
  1.4774 -	output_verbose_link_cmd='echo'
  1.4775 -
  1.4776 -	# Archives containing C++ object files must be created using
  1.4777 -	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
  1.4778 -	# necessary to make sure instantiated templates are included
  1.4779 -	# in the archive.
  1.4780 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  1.4781 -	;;
  1.4782 -      gcx*)
  1.4783 -	# Green Hills C++ Compiler
  1.4784 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.4785 -
  1.4786 -	# The C++ compiler must be used to create the archive.
  1.4787 -	_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  1.4788 -	;;
  1.4789 -      *)
  1.4790 -	# GNU C++ compiler with Solaris linker
  1.4791 -	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  1.4792 -	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  1.4793 -	  if $CC --version | grep -v '^2\.7' > /dev/null; then
  1.4794 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.4795 -	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.4796 -		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  1.4797 -
  1.4798 -	    # Commands to make compiler produce verbose output that lists
  1.4799 -	    # what "hidden" libraries, object files and flags are used when
  1.4800 -	    # linking a shared library.
  1.4801 -	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  1.4802 -	  else
  1.4803 -	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
  1.4804 -	    # platform.
  1.4805 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  1.4806 -	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  1.4807 -		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  1.4808 -
  1.4809 -	    # Commands to make compiler produce verbose output that lists
  1.4810 -	    # what "hidden" libraries, object files and flags are used when
  1.4811 -	    # linking a shared library.
  1.4812 -	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  1.4813 -	  fi
  1.4814 -
  1.4815 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  1.4816 -	fi
  1.4817 -	;;
  1.4818 -    esac
  1.4819 -    ;;
  1.4820 -  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  1.4821 -    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.4822 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.4823 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4824 -    runpath_var='LD_RUN_PATH'
  1.4825 -
  1.4826 -    case $cc_basename in
  1.4827 -      CC*)
  1.4828 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4829 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4830 -	;;
  1.4831 -      *)
  1.4832 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4833 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4834 -	;;
  1.4835 -    esac
  1.4836 -    ;;
  1.4837 -  sysv5* | sco3.2v5* | sco5v6*)
  1.4838 -    # Note: We can NOT use -z defs as we might desire, because we do not
  1.4839 -    # link with -lc, and that would cause any symbols used from libc to
  1.4840 -    # always be unresolved, which means just about no library would
  1.4841 -    # ever link correctly.  If we're not using GNU ld we use -z text
  1.4842 -    # though, which does catch some bad symbols but isn't as heavy-handed
  1.4843 -    # as -z defs.
  1.4844 -    # For security reasons, it is highly recommended that you always
  1.4845 -    # use absolute paths for naming shared libraries, and exclude the
  1.4846 -    # DT_RUNPATH tag from executables and libraries.  But doing so
  1.4847 -    # requires that you compile everything twice, which is a pain.
  1.4848 -    # So that behaviour is only enabled if SCOABSPATH is set to a
  1.4849 -    # non-empty value in the environment.  Most likely only useful for
  1.4850 -    # creating official distributions of packages.
  1.4851 -    # This is a hack until libtool officially supports absolute path
  1.4852 -    # names for shared libraries.
  1.4853 -    _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  1.4854 -    _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  1.4855 -    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.4856 -    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.4857 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  1.4858 -    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.4859 -    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.4860 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  1.4861 -    runpath_var='LD_RUN_PATH'
  1.4862 -
  1.4863 -    case $cc_basename in
  1.4864 -      CC*)
  1.4865 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4866 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4867 -	;;
  1.4868 -      *)
  1.4869 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4870 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.4871 -	;;
  1.4872 -    esac
  1.4873 -    ;;
  1.4874 -  tandem*)
  1.4875 -    case $cc_basename in
  1.4876 -      NCC*)
  1.4877 -	# NonStop-UX NCC 3.20
  1.4878 -	# FIXME: insert proper C++ library support
  1.4879 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4880 -	;;
  1.4881 -      *)
  1.4882 -	# FIXME: insert proper C++ library support
  1.4883 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4884 -	;;
  1.4885 -    esac
  1.4886 -    ;;
  1.4887 -  vxworks*)
  1.4888 -    # FIXME: insert proper C++ library support
  1.4889 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4890 -    ;;
  1.4891 -  *)
  1.4892 -    # FIXME: insert proper C++ library support
  1.4893 -    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.4894 -    ;;
  1.4895 -esac
  1.4896 -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  1.4897 -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  1.4898 -
  1.4899 -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  1.4900 -_LT_AC_TAGVAR(LD, $1)="$LD"
  1.4901 -
  1.4902 -## CAVEAT EMPTOR:
  1.4903 -## There is no encapsulation within the following macros, do not change
  1.4904 -## the running order or otherwise move them around unless you know exactly
  1.4905 -## what you are doing...
  1.4906 -AC_LIBTOOL_POSTDEP_PREDEP($1)
  1.4907 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.4908 -AC_LIBTOOL_PROG_CC_C_O($1)
  1.4909 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  1.4910 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.4911 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.4912 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.4913 -
  1.4914 -AC_LIBTOOL_CONFIG($1)
  1.4915 -
  1.4916 -AC_LANG_POP
  1.4917 -CC=$lt_save_CC
  1.4918 -LDCXX=$LD
  1.4919 -LD=$lt_save_LD
  1.4920 -GCC=$lt_save_GCC
  1.4921 -with_gnu_ldcxx=$with_gnu_ld
  1.4922 -with_gnu_ld=$lt_save_with_gnu_ld
  1.4923 -lt_cv_path_LDCXX=$lt_cv_path_LD
  1.4924 -lt_cv_path_LD=$lt_save_path_LD
  1.4925 -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  1.4926 -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  1.4927 -])# AC_LIBTOOL_LANG_CXX_CONFIG
  1.4928 -
  1.4929 -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  1.4930 -# ------------------------------------
  1.4931 -# Figure out "hidden" library dependencies from verbose
  1.4932 -# compiler output when linking a shared library.
  1.4933 -# Parse the compiler output and extract the necessary
  1.4934 -# objects, libraries and library flags.
  1.4935 -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  1.4936 -dnl we can't use the lt_simple_compile_test_code here,
  1.4937 -dnl because it contains code intended for an executable,
  1.4938 -dnl not a library.  It's possible we should let each
  1.4939 -dnl tag define a new lt_????_link_test_code variable,
  1.4940 -dnl but it's only used here...
  1.4941 -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  1.4942 -int a;
  1.4943 -void foo (void) { a = 0; }
  1.4944 -EOF
  1.4945 -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  1.4946 -class Foo
  1.4947 -{
  1.4948 -public:
  1.4949 -  Foo (void) { a = 0; }
  1.4950 -private:
  1.4951 -  int a;
  1.4952 -};
  1.4953 -EOF
  1.4954 -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  1.4955 -      subroutine foo
  1.4956 -      implicit none
  1.4957 -      integer*4 a
  1.4958 -      a=0
  1.4959 -      return
  1.4960 -      end
  1.4961 -EOF
  1.4962 -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  1.4963 -public class foo {
  1.4964 -  private int a;
  1.4965 -  public void bar (void) {
  1.4966 -    a = 0;
  1.4967 -  }
  1.4968 -};
  1.4969 -EOF
  1.4970 -])
  1.4971 -dnl Parse the compiler output and extract the necessary
  1.4972 -dnl objects, libraries and library flags.
  1.4973 -if AC_TRY_EVAL(ac_compile); then
  1.4974 -  # Parse the compiler output and extract the necessary
  1.4975 -  # objects, libraries and library flags.
  1.4976 -
  1.4977 -  # Sentinel used to keep track of whether or not we are before
  1.4978 -  # the conftest object file.
  1.4979 -  pre_test_object_deps_done=no
  1.4980 -
  1.4981 -  # The `*' in the case matches for architectures that use `case' in
  1.4982 -  # $output_verbose_cmd can trigger glob expansion during the loop
  1.4983 -  # eval without this substitution.
  1.4984 -  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  1.4985 -
  1.4986 -  for p in `eval $output_verbose_link_cmd`; do
  1.4987 -    case $p in
  1.4988 -
  1.4989 -    -L* | -R* | -l*)
  1.4990 -       # Some compilers place space between "-{L,R}" and the path.
  1.4991 -       # Remove the space.
  1.4992 -       if test $p = "-L" \
  1.4993 -	  || test $p = "-R"; then
  1.4994 -	 prev=$p
  1.4995 -	 continue
  1.4996 -       else
  1.4997 -	 prev=
  1.4998 -       fi
  1.4999 -
  1.5000 -       if test "$pre_test_object_deps_done" = no; then
  1.5001 -	 case $p in
  1.5002 -	 -L* | -R*)
  1.5003 -	   # Internal compiler library paths should come after those
  1.5004 -	   # provided the user.  The postdeps already come after the
  1.5005 -	   # user supplied libs so there is no need to process them.
  1.5006 -	   if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  1.5007 -	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  1.5008 -	   else
  1.5009 -	     _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  1.5010 -	   fi
  1.5011 -	   ;;
  1.5012 -	 # The "-l" case would never come before the object being
  1.5013 -	 # linked, so don't bother handling this case.
  1.5014 -	 esac
  1.5015 -       else
  1.5016 -	 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  1.5017 -	   _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  1.5018 -	 else
  1.5019 -	   _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  1.5020 -	 fi
  1.5021 -       fi
  1.5022 -       ;;
  1.5023 -
  1.5024 -    *.$objext)
  1.5025 -       # This assumes that the test object file only shows up
  1.5026 -       # once in the compiler output.
  1.5027 -       if test "$p" = "conftest.$objext"; then
  1.5028 -	 pre_test_object_deps_done=yes
  1.5029 -	 continue
  1.5030 -       fi
  1.5031 -
  1.5032 -       if test "$pre_test_object_deps_done" = no; then
  1.5033 -	 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  1.5034 -	   _LT_AC_TAGVAR(predep_objects, $1)="$p"
  1.5035 -	 else
  1.5036 -	   _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  1.5037 -	 fi
  1.5038 -       else
  1.5039 -	 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  1.5040 -	   _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  1.5041 -	 else
  1.5042 -	   _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  1.5043 -	 fi
  1.5044 -       fi
  1.5045 -       ;;
  1.5046 -
  1.5047 -    *) ;; # Ignore the rest.
  1.5048 -
  1.5049 -    esac
  1.5050 -  done
  1.5051 -
  1.5052 -  # Clean up.
  1.5053 -  rm -f a.out a.exe
  1.5054 -else
  1.5055 -  echo "libtool.m4: error: problem compiling $1 test program"
  1.5056 -fi
  1.5057 -
  1.5058 -$rm -f confest.$objext
  1.5059 -
  1.5060 -# PORTME: override above test on systems where it is broken
  1.5061 -ifelse([$1],[CXX],
  1.5062 -[case $host_os in
  1.5063 -interix3*)
  1.5064 -  # Interix 3.5 installs completely hosed .la files for C++, so rather than
  1.5065 -  # hack all around it, let's just trust "g++" to DTRT.
  1.5066 -  _LT_AC_TAGVAR(predep_objects,$1)=
  1.5067 -  _LT_AC_TAGVAR(postdep_objects,$1)=
  1.5068 -  _LT_AC_TAGVAR(postdeps,$1)=
  1.5069 -  ;;
  1.5070 -
  1.5071 -solaris*)
  1.5072 -  case $cc_basename in
  1.5073 -  CC*)
  1.5074 -    # Adding this requires a known-good setup of shared libraries for
  1.5075 -    # Sun compiler versions before 5.6, else PIC objects from an old
  1.5076 -    # archive will be linked into the output, leading to subtle bugs.
  1.5077 -    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  1.5078 -    ;;
  1.5079 -  esac
  1.5080 -  ;;
  1.5081 -esac
  1.5082 -])
  1.5083 -
  1.5084 -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  1.5085 -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  1.5086 -esac
  1.5087 -])# AC_LIBTOOL_POSTDEP_PREDEP
  1.5088 -
  1.5089 -# AC_LIBTOOL_LANG_F77_CONFIG
  1.5090 -# --------------------------
  1.5091 -# Ensure that the configuration vars for the C compiler are
  1.5092 -# suitably defined.  Those variables are subsequently used by
  1.5093 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.5094 -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  1.5095 -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  1.5096 -[AC_REQUIRE([AC_PROG_F77])
  1.5097 -AC_LANG_PUSH(Fortran 77)
  1.5098 -
  1.5099 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.5100 -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1.5101 -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.5102 -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  1.5103 -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.5104 -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.5105 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.5106 -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.5107 -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.5108 -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.5109 -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.5110 -_LT_AC_TAGVAR(module_cmds, $1)=
  1.5111 -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.5112 -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  1.5113 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.5114 -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  1.5115 -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.5116 -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.5117 -
  1.5118 -# Source file extension for f77 test sources.
  1.5119 -ac_ext=f
  1.5120 -
  1.5121 -# Object file extension for compiled f77 test sources.
  1.5122 -objext=o
  1.5123 -_LT_AC_TAGVAR(objext, $1)=$objext
  1.5124 -
  1.5125 -# Code to be used in simple compile tests
  1.5126 -lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
  1.5127 -
  1.5128 -# Code to be used in simple link tests
  1.5129 -lt_simple_link_test_code="      program t\n      end\n"
  1.5130 -
  1.5131 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.5132 -_LT_AC_SYS_COMPILER
  1.5133 -
  1.5134 -# save warnings/boilerplate of simple test code
  1.5135 -_LT_COMPILER_BOILERPLATE
  1.5136 -_LT_LINKER_BOILERPLATE
  1.5137 -
  1.5138 -# Allow CC to be a program name with arguments.
  1.5139 -lt_save_CC="$CC"
  1.5140 -CC=${F77-"f77"}
  1.5141 -compiler=$CC
  1.5142 -_LT_AC_TAGVAR(compiler, $1)=$CC
  1.5143 -_LT_CC_BASENAME([$compiler])
  1.5144 -
  1.5145 -AC_MSG_CHECKING([if libtool supports shared libraries])
  1.5146 -AC_MSG_RESULT([$can_build_shared])
  1.5147 -
  1.5148 -AC_MSG_CHECKING([whether to build shared libraries])
  1.5149 -test "$can_build_shared" = "no" && enable_shared=no
  1.5150 -
  1.5151 -# On AIX, shared libraries and static libraries use the same namespace, and
  1.5152 -# are all built from PIC.
  1.5153 -case $host_os in
  1.5154 -aix3*)
  1.5155 -  test "$enable_shared" = yes && enable_static=no
  1.5156 -  if test -n "$RANLIB"; then
  1.5157 -    archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1.5158 -    postinstall_cmds='$RANLIB $lib'
  1.5159 -  fi
  1.5160 -  ;;
  1.5161 -aix4* | aix5*)
  1.5162 -  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1.5163 -    test "$enable_shared" = yes && enable_static=no
  1.5164 -  fi
  1.5165 -  ;;
  1.5166 -esac
  1.5167 -AC_MSG_RESULT([$enable_shared])
  1.5168 -
  1.5169 -AC_MSG_CHECKING([whether to build static libraries])
  1.5170 -# Make sure either enable_shared or enable_static is yes.
  1.5171 -test "$enable_shared" = yes || enable_static=yes
  1.5172 -AC_MSG_RESULT([$enable_static])
  1.5173 -
  1.5174 -_LT_AC_TAGVAR(GCC, $1)="$G77"
  1.5175 -_LT_AC_TAGVAR(LD, $1)="$LD"
  1.5176 -
  1.5177 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.5178 -AC_LIBTOOL_PROG_CC_C_O($1)
  1.5179 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  1.5180 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.5181 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.5182 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.5183 -
  1.5184 -AC_LIBTOOL_CONFIG($1)
  1.5185 -
  1.5186 -AC_LANG_POP
  1.5187 -CC="$lt_save_CC"
  1.5188 -])# AC_LIBTOOL_LANG_F77_CONFIG
  1.5189 -
  1.5190 -
  1.5191 -# AC_LIBTOOL_LANG_GCJ_CONFIG
  1.5192 -# --------------------------
  1.5193 -# Ensure that the configuration vars for the C compiler are
  1.5194 -# suitably defined.  Those variables are subsequently used by
  1.5195 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.5196 -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  1.5197 -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  1.5198 -[AC_LANG_SAVE
  1.5199 -
  1.5200 -# Source file extension for Java test sources.
  1.5201 -ac_ext=java
  1.5202 -
  1.5203 -# Object file extension for compiled Java test sources.
  1.5204 -objext=o
  1.5205 -_LT_AC_TAGVAR(objext, $1)=$objext
  1.5206 -
  1.5207 -# Code to be used in simple compile tests
  1.5208 -lt_simple_compile_test_code="class foo {}\n"
  1.5209 -
  1.5210 -# Code to be used in simple link tests
  1.5211 -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  1.5212 -
  1.5213 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.5214 -_LT_AC_SYS_COMPILER
  1.5215 -
  1.5216 -# save warnings/boilerplate of simple test code
  1.5217 -_LT_COMPILER_BOILERPLATE
  1.5218 -_LT_LINKER_BOILERPLATE
  1.5219 -
  1.5220 -# Allow CC to be a program name with arguments.
  1.5221 -lt_save_CC="$CC"
  1.5222 -CC=${GCJ-"gcj"}
  1.5223 -compiler=$CC
  1.5224 -_LT_AC_TAGVAR(compiler, $1)=$CC
  1.5225 -_LT_CC_BASENAME([$compiler])
  1.5226 -
  1.5227 -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  1.5228 -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.5229 -
  1.5230 -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  1.5231 -
  1.5232 -## CAVEAT EMPTOR:
  1.5233 -## There is no encapsulation within the following macros, do not change
  1.5234 -## the running order or otherwise move them around unless you know exactly
  1.5235 -## what you are doing...
  1.5236 -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  1.5237 -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  1.5238 -AC_LIBTOOL_PROG_CC_C_O($1)
  1.5239 -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  1.5240 -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  1.5241 -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  1.5242 -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  1.5243 -
  1.5244 -AC_LIBTOOL_CONFIG($1)
  1.5245 -
  1.5246 -AC_LANG_RESTORE
  1.5247 -CC="$lt_save_CC"
  1.5248 -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  1.5249 -
  1.5250 -
  1.5251 -# AC_LIBTOOL_LANG_RC_CONFIG
  1.5252 -# -------------------------
  1.5253 -# Ensure that the configuration vars for the Windows resource compiler are
  1.5254 -# suitably defined.  Those variables are subsequently used by
  1.5255 -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  1.5256 -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  1.5257 -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  1.5258 -[AC_LANG_SAVE
  1.5259 -
  1.5260 -# Source file extension for RC test sources.
  1.5261 -ac_ext=rc
  1.5262 -
  1.5263 -# Object file extension for compiled RC test sources.
  1.5264 -objext=o
  1.5265 -_LT_AC_TAGVAR(objext, $1)=$objext
  1.5266 -
  1.5267 -# Code to be used in simple compile tests
  1.5268 -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  1.5269 -
  1.5270 -# Code to be used in simple link tests
  1.5271 -lt_simple_link_test_code="$lt_simple_compile_test_code"
  1.5272 -
  1.5273 -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  1.5274 -_LT_AC_SYS_COMPILER
  1.5275 -
  1.5276 -# save warnings/boilerplate of simple test code
  1.5277 -_LT_COMPILER_BOILERPLATE
  1.5278 -_LT_LINKER_BOILERPLATE
  1.5279 -
  1.5280 -# Allow CC to be a program name with arguments.
  1.5281 -lt_save_CC="$CC"
  1.5282 -CC=${RC-"windres"}
  1.5283 -compiler=$CC
  1.5284 -_LT_AC_TAGVAR(compiler, $1)=$CC
  1.5285 -_LT_CC_BASENAME([$compiler])
  1.5286 -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1.5287 -
  1.5288 -AC_LIBTOOL_CONFIG($1)
  1.5289 -
  1.5290 -AC_LANG_RESTORE
  1.5291 -CC="$lt_save_CC"
  1.5292 -])# AC_LIBTOOL_LANG_RC_CONFIG
  1.5293 -
  1.5294 -
  1.5295 -# AC_LIBTOOL_CONFIG([TAGNAME])
  1.5296 -# ----------------------------
  1.5297 -# If TAGNAME is not passed, then create an initial libtool script
  1.5298 -# with a default configuration from the untagged config vars.  Otherwise
  1.5299 -# add code to config.status for appending the configuration named by
  1.5300 -# TAGNAME from the matching tagged config vars.
  1.5301 -AC_DEFUN([AC_LIBTOOL_CONFIG],
  1.5302 -[# The else clause should only fire when bootstrapping the
  1.5303 -# libtool distribution, otherwise you forgot to ship ltmain.sh
  1.5304 -# with your package, and you will get complaints that there are
  1.5305 -# no rules to generate ltmain.sh.
  1.5306 -if test -f "$ltmain"; then
  1.5307 -  # See if we are running on zsh, and set the options which allow our commands through
  1.5308 -  # without removal of \ escapes.
  1.5309 -  if test -n "${ZSH_VERSION+set}" ; then
  1.5310 -    setopt NO_GLOB_SUBST
  1.5311 -  fi
  1.5312 -  # Now quote all the things that may contain metacharacters while being
  1.5313 -  # careful not to overquote the AC_SUBSTed values.  We take copies of the
  1.5314 -  # variables and quote the copies for generation of the libtool script.
  1.5315 -  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  1.5316 -    SED SHELL STRIP \
  1.5317 -    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  1.5318 -    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  1.5319 -    deplibs_check_method reload_flag reload_cmds need_locks \
  1.5320 -    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  1.5321 -    lt_cv_sys_global_symbol_to_c_name_address \
  1.5322 -    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  1.5323 -    old_postinstall_cmds old_postuninstall_cmds \
  1.5324 -    _LT_AC_TAGVAR(compiler, $1) \
  1.5325 -    _LT_AC_TAGVAR(CC, $1) \
  1.5326 -    _LT_AC_TAGVAR(LD, $1) \
  1.5327 -    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  1.5328 -    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  1.5329 -    _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  1.5330 -    _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  1.5331 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  1.5332 -    _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  1.5333 -    _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  1.5334 -    _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  1.5335 -    _LT_AC_TAGVAR(old_archive_cmds, $1) \
  1.5336 -    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  1.5337 -    _LT_AC_TAGVAR(predep_objects, $1) \
  1.5338 -    _LT_AC_TAGVAR(postdep_objects, $1) \
  1.5339 -    _LT_AC_TAGVAR(predeps, $1) \
  1.5340 -    _LT_AC_TAGVAR(postdeps, $1) \
  1.5341 -    _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  1.5342 -    _LT_AC_TAGVAR(archive_cmds, $1) \
  1.5343 -    _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  1.5344 -    _LT_AC_TAGVAR(postinstall_cmds, $1) \
  1.5345 -    _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  1.5346 -    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  1.5347 -    _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  1.5348 -    _LT_AC_TAGVAR(no_undefined_flag, $1) \
  1.5349 -    _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  1.5350 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  1.5351 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  1.5352 -    _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  1.5353 -    _LT_AC_TAGVAR(hardcode_automatic, $1) \
  1.5354 -    _LT_AC_TAGVAR(module_cmds, $1) \
  1.5355 -    _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  1.5356 -    _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  1.5357 -    _LT_AC_TAGVAR(exclude_expsyms, $1) \
  1.5358 -    _LT_AC_TAGVAR(include_expsyms, $1); do
  1.5359 -
  1.5360 -    case $var in
  1.5361 -    _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  1.5362 -    _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  1.5363 -    _LT_AC_TAGVAR(archive_cmds, $1) | \
  1.5364 -    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  1.5365 -    _LT_AC_TAGVAR(module_cmds, $1) | \
  1.5366 -    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  1.5367 -    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  1.5368 -    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  1.5369 -    extract_expsyms_cmds | reload_cmds | finish_cmds | \
  1.5370 -    postinstall_cmds | postuninstall_cmds | \
  1.5371 -    old_postinstall_cmds | old_postuninstall_cmds | \
  1.5372 -    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  1.5373 -      # Double-quote double-evaled strings.
  1.5374 -      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  1.5375 -      ;;
  1.5376 -    *)
  1.5377 -      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  1.5378 -      ;;
  1.5379 -    esac
  1.5380 -  done
  1.5381 -
  1.5382 -  case $lt_echo in
  1.5383 -  *'\[$]0 --fallback-echo"')
  1.5384 -    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  1.5385 -    ;;
  1.5386 -  esac
  1.5387 -
  1.5388 -ifelse([$1], [],
  1.5389 -  [cfgfile="${ofile}T"
  1.5390 -  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  1.5391 -  $rm -f "$cfgfile"
  1.5392 -  AC_MSG_NOTICE([creating $ofile])],
  1.5393 -  [cfgfile="$ofile"])
  1.5394 -
  1.5395 -  cat <<__EOF__ >> "$cfgfile"
  1.5396 -ifelse([$1], [],
  1.5397 -[#! $SHELL
  1.5398 -
  1.5399 -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1.5400 -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  1.5401 -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1.5402 -#
  1.5403 -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  1.5404 -# Free Software Foundation, Inc.
  1.5405 -#
  1.5406 -# This file is part of GNU Libtool:
  1.5407 -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1.5408 -#
  1.5409 -# This program is free software; you can redistribute it and/or modify
  1.5410 -# it under the terms of the GNU General Public License as published by
  1.5411 -# the Free Software Foundation; either version 2 of the License, or
  1.5412 -# (at your option) any later version.
  1.5413 -#
  1.5414 -# This program is distributed in the hope that it will be useful, but
  1.5415 -# WITHOUT ANY WARRANTY; without even the implied warranty of
  1.5416 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  1.5417 -# General Public License for more details.
  1.5418 -#
  1.5419 -# You should have received a copy of the GNU General Public License
  1.5420 -# along with this program; if not, write to the Free Software
  1.5421 -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  1.5422 -#
  1.5423 -# As a special exception to the GNU General Public License, if you
  1.5424 -# distribute this file as part of a program that contains a
  1.5425 -# configuration script generated by Autoconf, you may include it under
  1.5426 -# the same distribution terms that you use for the rest of that program.
  1.5427 -
  1.5428 -# A sed program that does not truncate output.
  1.5429 -SED=$lt_SED
  1.5430 -
  1.5431 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1.5432 -Xsed="$SED -e 1s/^X//"
  1.5433 -
  1.5434 -# The HP-UX ksh and POSIX shell print the target directory to stdout
  1.5435 -# if CDPATH is set.
  1.5436 -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1.5437 -
  1.5438 -# The names of the tagged configurations supported by this script.
  1.5439 -available_tags=
  1.5440 -
  1.5441 -# ### BEGIN LIBTOOL CONFIG],
  1.5442 -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  1.5443 -
  1.5444 -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1.5445 -
  1.5446 -# Shell to use when invoking shell scripts.
  1.5447 -SHELL=$lt_SHELL
  1.5448 -
  1.5449 -# Whether or not to build shared libraries.
  1.5450 -build_libtool_libs=$enable_shared
  1.5451 -
  1.5452 -# Whether or not to build static libraries.
  1.5453 -build_old_libs=$enable_static
  1.5454 -
  1.5455 -# Whether or not to add -lc for building shared libraries.
  1.5456 -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  1.5457 -
  1.5458 -# Whether or not to disallow shared libs when runtime libs are static
  1.5459 -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  1.5460 -
  1.5461 -# Whether or not to optimize for fast installation.
  1.5462 -fast_install=$enable_fast_install
  1.5463 -
  1.5464 -# The host system.
  1.5465 -host_alias=$host_alias
  1.5466 -host=$host
  1.5467 -host_os=$host_os
  1.5468 -
  1.5469 -# The build system.
  1.5470 -build_alias=$build_alias
  1.5471 -build=$build
  1.5472 -build_os=$build_os
  1.5473 -
  1.5474 -# An echo program that does not interpret backslashes.
  1.5475 -echo=$lt_echo
  1.5476 -
  1.5477 -# The archiver.
  1.5478 -AR=$lt_AR
  1.5479 -AR_FLAGS=$lt_AR_FLAGS
  1.5480 -
  1.5481 -# A C compiler.
  1.5482 -LTCC=$lt_LTCC
  1.5483 -
  1.5484 -# LTCC compiler flags.
  1.5485 -LTCFLAGS=$lt_LTCFLAGS
  1.5486 -
  1.5487 -# A language-specific compiler.
  1.5488 -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  1.5489 -
  1.5490 -# Is the compiler the GNU C compiler?
  1.5491 -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  1.5492 -
  1.5493 -# An ERE matcher.
  1.5494 -EGREP=$lt_EGREP
  1.5495 -
  1.5496 -# The linker used to build libraries.
  1.5497 -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  1.5498 -
  1.5499 -# Whether we need hard or soft links.
  1.5500 -LN_S=$lt_LN_S
  1.5501 -
  1.5502 -# A BSD-compatible nm program.
  1.5503 -NM=$lt_NM
  1.5504 -
  1.5505 -# A symbol stripping program
  1.5506 -STRIP=$lt_STRIP
  1.5507 -
  1.5508 -# Used to examine libraries when file_magic_cmd begins "file"
  1.5509 -MAGIC_CMD=$MAGIC_CMD
  1.5510 -
  1.5511 -# Used on cygwin: DLL creation program.
  1.5512 -DLLTOOL="$DLLTOOL"
  1.5513 -
  1.5514 -# Used on cygwin: object dumper.
  1.5515 -OBJDUMP="$OBJDUMP"
  1.5516 -
  1.5517 -# Used on cygwin: assembler.
  1.5518 -AS="$AS"
  1.5519 -
  1.5520 -# The name of the directory that contains temporary libtool files.
  1.5521 -objdir=$objdir
  1.5522 -
  1.5523 -# How to create reloadable object files.
  1.5524 -reload_flag=$lt_reload_flag
  1.5525 -reload_cmds=$lt_reload_cmds
  1.5526 -
  1.5527 -# How to pass a linker flag through the compiler.
  1.5528 -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  1.5529 -
  1.5530 -# Object file suffix (normally "o").
  1.5531 -objext="$ac_objext"
  1.5532 -
  1.5533 -# Old archive suffix (normally "a").
  1.5534 -libext="$libext"
  1.5535 -
  1.5536 -# Shared library suffix (normally ".so").
  1.5537 -shrext_cmds='$shrext_cmds'
  1.5538 -
  1.5539 -# Executable file suffix (normally "").
  1.5540 -exeext="$exeext"
  1.5541 -
  1.5542 -# Additional compiler flags for building library objects.
  1.5543 -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  1.5544 -pic_mode=$pic_mode
  1.5545 -
  1.5546 -# What is the maximum length of a command?
  1.5547 -max_cmd_len=$lt_cv_sys_max_cmd_len
  1.5548 -
  1.5549 -# Does compiler simultaneously support -c and -o options?
  1.5550 -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  1.5551 -
  1.5552 -# Must we lock files when doing compilation?
  1.5553 -need_locks=$lt_need_locks
  1.5554 -
  1.5555 -# Do we need the lib prefix for modules?
  1.5556 -need_lib_prefix=$need_lib_prefix
  1.5557 -
  1.5558 -# Do we need a version for libraries?
  1.5559 -need_version=$need_version
  1.5560 -
  1.5561 -# Whether dlopen is supported.
  1.5562 -dlopen_support=$enable_dlopen
  1.5563 -
  1.5564 -# Whether dlopen of programs is supported.
  1.5565 -dlopen_self=$enable_dlopen_self
  1.5566 -
  1.5567 -# Whether dlopen of statically linked programs is supported.
  1.5568 -dlopen_self_static=$enable_dlopen_self_static
  1.5569 -
  1.5570 -# Compiler flag to prevent dynamic linking.
  1.5571 -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  1.5572 -
  1.5573 -# Compiler flag to turn off builtin functions.
  1.5574 -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  1.5575 -
  1.5576 -# Compiler flag to allow reflexive dlopens.
  1.5577 -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  1.5578 -
  1.5579 -# Compiler flag to generate shared objects directly from archives.
  1.5580 -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  1.5581 -
  1.5582 -# Compiler flag to generate thread-safe objects.
  1.5583 -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  1.5584 -
  1.5585 -# Library versioning type.
  1.5586 -version_type=$version_type
  1.5587 -
  1.5588 -# Format of library name prefix.
  1.5589 -libname_spec=$lt_libname_spec
  1.5590 -
  1.5591 -# List of archive names.  First name is the real one, the rest are links.
  1.5592 -# The last name is the one that the linker finds with -lNAME.
  1.5593 -library_names_spec=$lt_library_names_spec
  1.5594 -
  1.5595 -# The coded name of the library, if different from the real name.
  1.5596 -soname_spec=$lt_soname_spec
  1.5597 -
  1.5598 -# Commands used to build and install an old-style archive.
  1.5599 -RANLIB=$lt_RANLIB
  1.5600 -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  1.5601 -old_postinstall_cmds=$lt_old_postinstall_cmds
  1.5602 -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  1.5603 -
  1.5604 -# Create an old-style archive from a shared archive.
  1.5605 -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  1.5606 -
  1.5607 -# Create a temporary old-style archive to link instead of a shared archive.
  1.5608 -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  1.5609 -
  1.5610 -# Commands used to build and install a shared archive.
  1.5611 -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  1.5612 -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  1.5613 -postinstall_cmds=$lt_postinstall_cmds
  1.5614 -postuninstall_cmds=$lt_postuninstall_cmds
  1.5615 -
  1.5616 -# Commands used to build a loadable module (assumed same as above if empty)
  1.5617 -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  1.5618 -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  1.5619 -
  1.5620 -# Commands to strip libraries.
  1.5621 -old_striplib=$lt_old_striplib
  1.5622 -striplib=$lt_striplib
  1.5623 -
  1.5624 -# Dependencies to place before the objects being linked to create a
  1.5625 -# shared library.
  1.5626 -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  1.5627 -
  1.5628 -# Dependencies to place after the objects being linked to create a
  1.5629 -# shared library.
  1.5630 -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  1.5631 -
  1.5632 -# Dependencies to place before the objects being linked to create a
  1.5633 -# shared library.
  1.5634 -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  1.5635 -
  1.5636 -# Dependencies to place after the objects being linked to create a
  1.5637 -# shared library.
  1.5638 -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  1.5639 -
  1.5640 -# The library search path used internally by the compiler when linking
  1.5641 -# a shared library.
  1.5642 -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  1.5643 -
  1.5644 -# Method to check whether dependent libraries are shared objects.
  1.5645 -deplibs_check_method=$lt_deplibs_check_method
  1.5646 -
  1.5647 -# Command to use when deplibs_check_method == file_magic.
  1.5648 -file_magic_cmd=$lt_file_magic_cmd
  1.5649 -
  1.5650 -# Flag that allows shared libraries with undefined symbols to be built.
  1.5651 -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  1.5652 -
  1.5653 -# Flag that forces no undefined symbols.
  1.5654 -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  1.5655 -
  1.5656 -# Commands used to finish a libtool library installation in a directory.
  1.5657 -finish_cmds=$lt_finish_cmds
  1.5658 -
  1.5659 -# Same as above, but a single script fragment to be evaled but not shown.
  1.5660 -finish_eval=$lt_finish_eval
  1.5661 -
  1.5662 -# Take the output of nm and produce a listing of raw symbols and C names.
  1.5663 -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  1.5664 -
  1.5665 -# Transform the output of nm in a proper C declaration
  1.5666 -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  1.5667 -
  1.5668 -# Transform the output of nm in a C name address pair
  1.5669 -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  1.5670 -
  1.5671 -# This is the shared library runtime path variable.
  1.5672 -runpath_var=$runpath_var
  1.5673 -
  1.5674 -# This is the shared library path variable.
  1.5675 -shlibpath_var=$shlibpath_var
  1.5676 -
  1.5677 -# Is shlibpath searched before the hard-coded library search path?
  1.5678 -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  1.5679 -
  1.5680 -# How to hardcode a shared library path into an executable.
  1.5681 -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  1.5682 -
  1.5683 -# Whether we should hardcode library paths into libraries.
  1.5684 -hardcode_into_libs=$hardcode_into_libs
  1.5685 -
  1.5686 -# Flag to hardcode \$libdir into a binary during linking.
  1.5687 -# This must work even if \$libdir does not exist.
  1.5688 -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  1.5689 -
  1.5690 -# If ld is used when linking, flag to hardcode \$libdir into
  1.5691 -# a binary during linking. This must work even if \$libdir does
  1.5692 -# not exist.
  1.5693 -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  1.5694 -
  1.5695 -# Whether we need a single -rpath flag with a separated argument.
  1.5696 -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  1.5697 -
  1.5698 -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  1.5699 -# resulting binary.
  1.5700 -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  1.5701 -
  1.5702 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  1.5703 -# resulting binary.
  1.5704 -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  1.5705 -
  1.5706 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  1.5707 -# the resulting binary.
  1.5708 -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  1.5709 -
  1.5710 -# Set to yes if building a shared library automatically hardcodes DIR into the library
  1.5711 -# and all subsequent libraries and executables linked against it.
  1.5712 -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  1.5713 -
  1.5714 -# Variables whose values should be saved in libtool wrapper scripts and
  1.5715 -# restored at relink time.
  1.5716 -variables_saved_for_relink="$variables_saved_for_relink"
  1.5717 -
  1.5718 -# Whether libtool must link a program against all its dependency libraries.
  1.5719 -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  1.5720 -
  1.5721 -# Compile-time system search path for libraries
  1.5722 -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  1.5723 -
  1.5724 -# Run-time system search path for libraries
  1.5725 -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  1.5726 -
  1.5727 -# Fix the shell variable \$srcfile for the compiler.
  1.5728 -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  1.5729 -
  1.5730 -# Set to yes if exported symbols are required.
  1.5731 -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  1.5732 -
  1.5733 -# The commands to list exported symbols.
  1.5734 -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  1.5735 -
  1.5736 -# The commands to extract the exported symbol list from a shared archive.
  1.5737 -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  1.5738 -
  1.5739 -# Symbols that should not be listed in the preloaded symbols.
  1.5740 -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  1.5741 -
  1.5742 -# Symbols that must always be exported.
  1.5743 -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  1.5744 -
  1.5745 -ifelse([$1],[],
  1.5746 -[# ### END LIBTOOL CONFIG],
  1.5747 -[# ### END LIBTOOL TAG CONFIG: $tagname])
  1.5748 -
  1.5749 -__EOF__
  1.5750 -
  1.5751 -ifelse([$1],[], [
  1.5752 -  case $host_os in
  1.5753 -  aix3*)
  1.5754 -    cat <<\EOF >> "$cfgfile"
  1.5755 -
  1.5756 -# AIX sometimes has problems with the GCC collect2 program.  For some
  1.5757 -# reason, if we set the COLLECT_NAMES environment variable, the problems
  1.5758 -# vanish in a puff of smoke.
  1.5759 -if test "X${COLLECT_NAMES+set}" != Xset; then
  1.5760 -  COLLECT_NAMES=
  1.5761 -  export COLLECT_NAMES
  1.5762 -fi
  1.5763 -EOF
  1.5764 -    ;;
  1.5765 -  esac
  1.5766 -
  1.5767 -  # We use sed instead of cat because bash on DJGPP gets confused if
  1.5768 -  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  1.5769 -  # text mode, it properly converts lines to CR/LF.  This bash problem
  1.5770 -  # is reportedly fixed, but why not run on old versions too?
  1.5771 -  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  1.5772 -
  1.5773 -  mv -f "$cfgfile" "$ofile" || \
  1.5774 -    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1.5775 -  chmod +x "$ofile"
  1.5776 -])
  1.5777 -else
  1.5778 -  # If there is no Makefile yet, we rely on a make rule to execute
  1.5779 -  # `config.status --recheck' to rerun these tests and create the
  1.5780 -  # libtool script then.
  1.5781 -  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  1.5782 -  if test -f "$ltmain_in"; then
  1.5783 -    test -f Makefile && make "$ltmain"
  1.5784 -  fi
  1.5785 -fi
  1.5786 -])# AC_LIBTOOL_CONFIG
  1.5787 -
  1.5788 -
  1.5789 -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  1.5790 -# -------------------------------------------
  1.5791 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  1.5792 -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1.5793 -
  1.5794 -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.5795 +AC_SUBST([LIBM])
  1.5796 +])# LT_LIB_M
  1.5797 +
  1.5798 +# Old name:
  1.5799 +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  1.5800 +dnl aclocal-1.4 backwards compatibility:
  1.5801 +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  1.5802 +
  1.5803 +
  1.5804 +# _LT_COMPILER_NO_RTTI([TAGNAME])
  1.5805 +# -------------------------------
  1.5806 +m4_defun([_LT_COMPILER_NO_RTTI],
  1.5807 +[m4_require([_LT_TAG_COMPILER])dnl
  1.5808 +
  1.5809 +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  1.5810  
  1.5811  if test "$GCC" = yes; then
  1.5812 -  _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.5813 -
  1.5814 -  AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.5815 +  _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  1.5816 +
  1.5817 +  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  1.5818      lt_cv_prog_compiler_rtti_exceptions,
  1.5819      [-fno-rtti -fno-exceptions], [],
  1.5820 -    [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  1.5821 +    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  1.5822  fi
  1.5823 -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  1.5824 -
  1.5825 -
  1.5826 -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1.5827 -# ---------------------------------
  1.5828 -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  1.5829 -[AC_REQUIRE([AC_CANONICAL_HOST])
  1.5830 -AC_REQUIRE([AC_PROG_NM])
  1.5831 -AC_REQUIRE([AC_OBJEXT])
  1.5832 +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  1.5833 +	[Compiler flag to turn off builtin functions])
  1.5834 +])# _LT_COMPILER_NO_RTTI
  1.5835 +
  1.5836 +
  1.5837 +# _LT_CMD_GLOBAL_SYMBOLS
  1.5838 +# ----------------------
  1.5839 +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  1.5840 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1.5841 +AC_REQUIRE([AC_PROG_CC])dnl
  1.5842 +AC_REQUIRE([LT_PATH_NM])dnl
  1.5843 +AC_REQUIRE([LT_PATH_LD])dnl
  1.5844 +m4_require([_LT_DECL_SED])dnl
  1.5845 +m4_require([_LT_DECL_EGREP])dnl
  1.5846 +m4_require([_LT_TAG_COMPILER])dnl
  1.5847 +
  1.5848  # Check for command to grab the raw symbol name followed by C symbol from nm.
  1.5849  AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  1.5850  AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  1.5851 @@ -4969,33 +3662,18 @@
  1.5852  # Regexp to match symbols that can be accessed directly from C.
  1.5853  sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1.5854  
  1.5855 -# Transform an extracted symbol line into a proper C declaration
  1.5856 -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  1.5857 -
  1.5858 -# Transform an extracted symbol line into symbol name and symbol address
  1.5859 -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1.5860 -
  1.5861  # Define system-specific variables.
  1.5862  case $host_os in
  1.5863  aix*)
  1.5864    symcode='[[BCDT]]'
  1.5865    ;;
  1.5866 -cygwin* | mingw* | pw32*)
  1.5867 +cygwin* | mingw* | pw32* | cegcc*)
  1.5868    symcode='[[ABCDGISTW]]'
  1.5869    ;;
  1.5870 -hpux*) # Its linker distinguishes data from code symbols
  1.5871 +hpux*)
  1.5872    if test "$host_cpu" = ia64; then
  1.5873      symcode='[[ABCDEGRST]]'
  1.5874    fi
  1.5875 -  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.5876 -  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1.5877 -  ;;
  1.5878 -linux*)
  1.5879 -  if test "$host_cpu" = ia64; then
  1.5880 -    symcode='[[ABCDGIRSTW]]'
  1.5881 -    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.5882 -    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
  1.5883 -  fi
  1.5884    ;;
  1.5885  irix* | nonstopux*)
  1.5886    symcode='[[BCDEGRST]]'
  1.5887 @@ -5020,44 +3698,72 @@
  1.5888    ;;
  1.5889  esac
  1.5890  
  1.5891 -# Handle CRLF in mingw tool chain
  1.5892 -opt_cr=
  1.5893 -case $build_os in
  1.5894 -mingw*)
  1.5895 -  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1.5896 -  ;;
  1.5897 -esac
  1.5898 -
  1.5899  # If we're using GNU nm, then use its standard symbol codes.
  1.5900  case `$NM -V 2>&1` in
  1.5901  *GNU* | *'with BFD'*)
  1.5902    symcode='[[ABCDGIRSTW]]' ;;
  1.5903  esac
  1.5904  
  1.5905 -# Try without a prefix undercore, then with it.
  1.5906 +# Transform an extracted symbol line into a proper C declaration.
  1.5907 +# Some systems (esp. on ia64) link data and code symbols differently,
  1.5908 +# so use this general approach.
  1.5909 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1.5910 +
  1.5911 +# Transform an extracted symbol line into symbol name and symbol address
  1.5912 +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.5913 +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.5914 +
  1.5915 +# Handle CRLF in mingw tool chain
  1.5916 +opt_cr=
  1.5917 +case $build_os in
  1.5918 +mingw*)
  1.5919 +  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1.5920 +  ;;
  1.5921 +esac
  1.5922 +
  1.5923 +# Try without a prefix underscore, then with it.
  1.5924  for ac_symprfx in "" "_"; do
  1.5925  
  1.5926    # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  1.5927    symxfrm="\\1 $ac_symprfx\\2 \\2"
  1.5928  
  1.5929    # Write the raw and C identifiers.
  1.5930 -  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ 	]]\($symcode$symcode*\)[[ 	]][[ 	]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.5931 +  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  1.5932 +    # Fake it for dumpbin and say T for any non-static function
  1.5933 +    # and D for any global variable.
  1.5934 +    # Also find C++ and __fastcall symbols from MSVC++,
  1.5935 +    # which start with @ or ?.
  1.5936 +    lt_cv_sys_global_symbol_pipe="$AWK ['"\
  1.5937 +"     {last_section=section; section=\$ 3};"\
  1.5938 +"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  1.5939 +"     \$ 0!~/External *\|/{next};"\
  1.5940 +"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  1.5941 +"     {if(hide[section]) next};"\
  1.5942 +"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  1.5943 +"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  1.5944 +"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
  1.5945 +"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  1.5946 +"     ' prfx=^$ac_symprfx]"
  1.5947 +  else
  1.5948 +    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  1.5949 +  fi
  1.5950  
  1.5951    # Check to see that the pipe works correctly.
  1.5952    pipe_works=no
  1.5953  
  1.5954    rm -f conftest*
  1.5955 -  cat > conftest.$ac_ext <<EOF
  1.5956 +  cat > conftest.$ac_ext <<_LT_EOF
  1.5957  #ifdef __cplusplus
  1.5958  extern "C" {
  1.5959  #endif
  1.5960  char nm_test_var;
  1.5961 -void nm_test_func(){}
  1.5962 +void nm_test_func(void);
  1.5963 +void nm_test_func(void){}
  1.5964  #ifdef __cplusplus
  1.5965  }
  1.5966  #endif
  1.5967  int main(){nm_test_var='a';nm_test_func();return(0);}
  1.5968 -EOF
  1.5969 +_LT_EOF
  1.5970  
  1.5971    if AC_TRY_EVAL(ac_compile); then
  1.5972      # Now try to grab the symbols.
  1.5973 @@ -5071,48 +3777,50 @@
  1.5974        fi
  1.5975  
  1.5976        # Make sure that we snagged all the symbols we need.
  1.5977 -      if grep ' nm_test_var$' "$nlist" >/dev/null; then
  1.5978 -	if grep ' nm_test_func$' "$nlist" >/dev/null; then
  1.5979 -	  cat <<EOF > conftest.$ac_ext
  1.5980 +      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  1.5981 +	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  1.5982 +	  cat <<_LT_EOF > conftest.$ac_ext
  1.5983  #ifdef __cplusplus
  1.5984  extern "C" {
  1.5985  #endif
  1.5986  
  1.5987 -EOF
  1.5988 +_LT_EOF
  1.5989  	  # Now generate the symbol file.
  1.5990 -	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  1.5991 -
  1.5992 -	  cat <<EOF >> conftest.$ac_ext
  1.5993 -#if defined (__STDC__) && __STDC__
  1.5994 -# define lt_ptr_t void *
  1.5995 -#else
  1.5996 -# define lt_ptr_t char *
  1.5997 -# define const
  1.5998 -#endif
  1.5999 -
  1.6000 -/* The mapping between symbol names and symbols. */
  1.6001 +	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  1.6002 +
  1.6003 +	  cat <<_LT_EOF >> conftest.$ac_ext
  1.6004 +
  1.6005 +/* The mapping between symbol names and symbols.  */
  1.6006  const struct {
  1.6007    const char *name;
  1.6008 -  lt_ptr_t address;
  1.6009 +  void       *address;
  1.6010  }
  1.6011 -lt_preloaded_symbols[[]] =
  1.6012 +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  1.6013  {
  1.6014 -EOF
  1.6015 -	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  1.6016 -	  cat <<\EOF >> conftest.$ac_ext
  1.6017 -  {0, (lt_ptr_t) 0}
  1.6018 +  { "@PROGRAM@", (void *) 0 },
  1.6019 +_LT_EOF
  1.6020 +	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  1.6021 +	  cat <<\_LT_EOF >> conftest.$ac_ext
  1.6022 +  {0, (void *) 0}
  1.6023  };
  1.6024  
  1.6025 +/* This works around a problem in FreeBSD linker */
  1.6026 +#ifdef FREEBSD_WORKAROUND
  1.6027 +static const void *lt_preloaded_setup() {
  1.6028 +  return lt__PROGRAM__LTX_preloaded_symbols;
  1.6029 +}
  1.6030 +#endif
  1.6031 +
  1.6032  #ifdef __cplusplus
  1.6033  }
  1.6034  #endif
  1.6035 -EOF
  1.6036 +_LT_EOF
  1.6037  	  # Now try linking the two files.
  1.6038  	  mv conftest.$ac_objext conftstm.$ac_objext
  1.6039  	  lt_save_LIBS="$LIBS"
  1.6040  	  lt_save_CFLAGS="$CFLAGS"
  1.6041  	  LIBS="conftstm.$ac_objext"
  1.6042 -	  CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.6043 +	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  1.6044  	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  1.6045  	    pipe_works=yes
  1.6046  	  fi
  1.6047 @@ -5131,7 +3839,7 @@
  1.6048      echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  1.6049      cat conftest.$ac_ext >&5
  1.6050    fi
  1.6051 -  rm -f conftest* conftst*
  1.6052 +  rm -rf conftest* conftst*
  1.6053  
  1.6054    # Do not use the global_symbol_pipe unless it works.
  1.6055    if test "$pipe_works" = yes; then
  1.6056 @@ -5149,141 +3857,162 @@
  1.6057  else
  1.6058    AC_MSG_RESULT(ok)
  1.6059  fi
  1.6060 -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1.6061 -
  1.6062 -
  1.6063 -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  1.6064 -# ---------------------------------------
  1.6065 -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  1.6066 -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  1.6067 -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6068 -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  1.6069 +
  1.6070 +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  1.6071 +    [Take the output of nm and produce a listing of raw symbols and C names])
  1.6072 +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  1.6073 +    [Transform the output of nm in a proper C declaration])
  1.6074 +_LT_DECL([global_symbol_to_c_name_address],
  1.6075 +    [lt_cv_sys_global_symbol_to_c_name_address], [1],
  1.6076 +    [Transform the output of nm in a C name address pair])
  1.6077 +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  1.6078 +    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  1.6079 +    [Transform the output of nm in a C name address pair when lib prefix is needed])
  1.6080 +]) # _LT_CMD_GLOBAL_SYMBOLS
  1.6081 +
  1.6082 +
  1.6083 +# _LT_COMPILER_PIC([TAGNAME])
  1.6084 +# ---------------------------
  1.6085 +m4_defun([_LT_COMPILER_PIC],
  1.6086 +[m4_require([_LT_TAG_COMPILER])dnl
  1.6087 +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  1.6088 +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6089 +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  1.6090  
  1.6091  AC_MSG_CHECKING([for $compiler option to produce PIC])
  1.6092 - ifelse([$1],[CXX],[
  1.6093 +m4_if([$1], [CXX], [
  1.6094    # C++ specific cases for pic, static, wl, etc.
  1.6095    if test "$GXX" = yes; then
  1.6096 -    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6097 -    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6098 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6099 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6100  
  1.6101      case $host_os in
  1.6102      aix*)
  1.6103        # All AIX code is PIC.
  1.6104        if test "$host_cpu" = ia64; then
  1.6105  	# AIX 5 now supports IA64 processor
  1.6106 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6107 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6108        fi
  1.6109        ;;
  1.6110 +
  1.6111      amigaos*)
  1.6112 -      # FIXME: we need at least 68020 code to build shared libraries, but
  1.6113 -      # adding the `-m68020' flag to GCC prevents building anything better,
  1.6114 -      # like `-m68040'.
  1.6115 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.6116 +      case $host_cpu in
  1.6117 +      powerpc)
  1.6118 +            # see comment about AmigaOS4 .so support
  1.6119 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6120 +        ;;
  1.6121 +      m68k)
  1.6122 +            # FIXME: we need at least 68020 code to build shared libraries, but
  1.6123 +            # adding the `-m68020' flag to GCC prevents building anything better,
  1.6124 +            # like `-m68040'.
  1.6125 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.6126 +        ;;
  1.6127 +      esac
  1.6128        ;;
  1.6129 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.6130 +
  1.6131 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.6132        # PIC is the default for these OSes.
  1.6133        ;;
  1.6134 -    mingw* | os2* | pw32*)
  1.6135 +    mingw* | cygwin* | os2* | pw32* | cegcc*)
  1.6136        # This hack is so that the source file can tell whether it is being
  1.6137        # built for inclusion in a dll (and should export symbols for example).
  1.6138 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.6139 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.6140 +      # (--disable-auto-import) libraries
  1.6141 +      m4_if([$1], [GCJ], [],
  1.6142 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.6143        ;;
  1.6144      darwin* | rhapsody*)
  1.6145        # PIC is the default on this platform
  1.6146        # Common symbols not allowed in MH_DYLIB files
  1.6147 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.6148 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.6149        ;;
  1.6150      *djgpp*)
  1.6151        # DJGPP does not support shared libraries at all
  1.6152 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6153 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6154        ;;
  1.6155 -    interix3*)
  1.6156 +    interix[[3-9]]*)
  1.6157        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.6158        # Instead, we relocate shared libraries at runtime.
  1.6159        ;;
  1.6160      sysv4*MP*)
  1.6161        if test -d /usr/nec; then
  1.6162 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.6163 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.6164        fi
  1.6165        ;;
  1.6166      hpux*)
  1.6167 -      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.6168 -      # not for PA HP-UX.
  1.6169 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.6170 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.6171 +      # sets the default TLS model and affects inlining.
  1.6172        case $host_cpu in
  1.6173 -      hppa*64*|ia64*)
  1.6174 +      hppa*64*)
  1.6175  	;;
  1.6176        *)
  1.6177 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6178 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6179  	;;
  1.6180        esac
  1.6181        ;;
  1.6182 +    *qnx* | *nto*)
  1.6183 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.6184 +      # it will coredump.
  1.6185 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.6186 +      ;;
  1.6187      *)
  1.6188 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6189 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6190        ;;
  1.6191      esac
  1.6192    else
  1.6193      case $host_os in
  1.6194 -      aix4* | aix5*)
  1.6195 +      aix[[4-9]]*)
  1.6196  	# All AIX code is PIC.
  1.6197  	if test "$host_cpu" = ia64; then
  1.6198  	  # AIX 5 now supports IA64 processor
  1.6199 -	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6200 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6201  	else
  1.6202 -	  _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.6203 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.6204  	fi
  1.6205  	;;
  1.6206        chorus*)
  1.6207  	case $cc_basename in
  1.6208  	cxch68*)
  1.6209  	  # Green Hills C++ Compiler
  1.6210 -	  # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  1.6211 +	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  1.6212  	  ;;
  1.6213  	esac
  1.6214  	;;
  1.6215 -       darwin*)
  1.6216 -         # PIC is the default on this platform
  1.6217 -         # Common symbols not allowed in MH_DYLIB files
  1.6218 -         case $cc_basename in
  1.6219 -           xlc*)
  1.6220 -           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.6221 -           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6222 -           ;;
  1.6223 -         esac
  1.6224 -       ;;
  1.6225        dgux*)
  1.6226  	case $cc_basename in
  1.6227  	  ec++*)
  1.6228 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6229 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6230  	    ;;
  1.6231  	  ghcx*)
  1.6232  	    # Green Hills C++ Compiler
  1.6233 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6234 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6235  	    ;;
  1.6236  	  *)
  1.6237  	    ;;
  1.6238  	esac
  1.6239  	;;
  1.6240 -      freebsd* | kfreebsd*-gnu | dragonfly*)
  1.6241 +      freebsd* | dragonfly*)
  1.6242  	# FreeBSD uses GNU C++
  1.6243  	;;
  1.6244        hpux9* | hpux10* | hpux11*)
  1.6245  	case $cc_basename in
  1.6246  	  CC*)
  1.6247 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6248 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6249 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6250 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6251  	    if test "$host_cpu" != ia64; then
  1.6252 -	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6253 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6254  	    fi
  1.6255  	    ;;
  1.6256  	  aCC*)
  1.6257 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6258 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6259 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6260 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6261  	    case $host_cpu in
  1.6262  	    hppa*64*|ia64*)
  1.6263  	      # +Z the default
  1.6264  	      ;;
  1.6265  	    *)
  1.6266 -	      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6267 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6268  	      ;;
  1.6269  	    esac
  1.6270  	    ;;
  1.6271 @@ -5298,41 +4027,62 @@
  1.6272        irix5* | irix6* | nonstopux*)
  1.6273  	case $cc_basename in
  1.6274  	  CC*)
  1.6275 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6276 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6277 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6278 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6279  	    # CC pic flag -KPIC is the default.
  1.6280  	    ;;
  1.6281  	  *)
  1.6282  	    ;;
  1.6283  	esac
  1.6284  	;;
  1.6285 -      linux*)
  1.6286 +      linux* | k*bsd*-gnu)
  1.6287  	case $cc_basename in
  1.6288  	  KCC*)
  1.6289  	    # KAI C++ Compiler
  1.6290 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.6291 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6292 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.6293 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6294 +	    ;;
  1.6295 +	  ecpc* )
  1.6296 +	    # old Intel C++ for x86_64 which still supported -KPIC.
  1.6297 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6298 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6299 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6300  	    ;;
  1.6301 -	  icpc* | ecpc*)
  1.6302 -	    # Intel C++
  1.6303 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6304 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6305 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6306 +	  icpc* )
  1.6307 +	    # Intel C++, used to be incompatible with GCC.
  1.6308 +	    # ICC 10 doesn't accept -KPIC any more.
  1.6309 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6310 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6311 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6312  	    ;;
  1.6313 -	  pgCC*)
  1.6314 -	    # Portland Group C++ compiler.
  1.6315 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6316 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.6317 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6318 +	  pgCC* | pgcpp*)
  1.6319 +	    # Portland Group C++ compiler
  1.6320 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6321 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.6322 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6323  	    ;;
  1.6324  	  cxx*)
  1.6325  	    # Compaq C++
  1.6326  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.6327  	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.6328 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6329 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6330 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6331 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6332 +	    ;;
  1.6333 +	  xlc* | xlC*)
  1.6334 +	    # IBM XL 8.0 on PPC
  1.6335 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6336 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.6337 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.6338  	    ;;
  1.6339  	  *)
  1.6340 +	    case `$CC -V 2>&1 | sed 5q` in
  1.6341 +	    *Sun\ C*)
  1.6342 +	      # Sun C++ 5.9
  1.6343 +	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6344 +	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6345 +	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.6346 +	      ;;
  1.6347 +	    esac
  1.6348  	    ;;
  1.6349  	esac
  1.6350  	;;
  1.6351 @@ -5343,7 +4093,7 @@
  1.6352        mvs*)
  1.6353  	case $cc_basename in
  1.6354  	  cxx*)
  1.6355 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  1.6356 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  1.6357  	    ;;
  1.6358  	  *)
  1.6359  	    ;;
  1.6360 @@ -5351,22 +4101,27 @@
  1.6361  	;;
  1.6362        netbsd*)
  1.6363  	;;
  1.6364 +      *qnx* | *nto*)
  1.6365 +        # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.6366 +        # it will coredump.
  1.6367 +        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.6368 +        ;;
  1.6369        osf3* | osf4* | osf5*)
  1.6370  	case $cc_basename in
  1.6371  	  KCC*)
  1.6372 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.6373 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  1.6374  	    ;;
  1.6375  	  RCC*)
  1.6376  	    # Rational C++ 2.4.1
  1.6377 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6378 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6379  	    ;;
  1.6380  	  cxx*)
  1.6381  	    # Digital/Compaq C++
  1.6382 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6383 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6384  	    # Make sure the PIC flag is empty.  It appears that all Alpha
  1.6385  	    # Linux and Compaq Tru64 Unix objects are PIC.
  1.6386 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6387 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6388 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6389 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6390  	    ;;
  1.6391  	  *)
  1.6392  	    ;;
  1.6393 @@ -5378,13 +4133,13 @@
  1.6394  	case $cc_basename in
  1.6395  	  CC*)
  1.6396  	    # Sun C++ 4.2, 5.x and Centerline C++
  1.6397 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6398 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6399 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.6400 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6401 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6402 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.6403  	    ;;
  1.6404  	  gcx*)
  1.6405  	    # Green Hills C++ Compiler
  1.6406 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.6407 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.6408  	    ;;
  1.6409  	  *)
  1.6410  	    ;;
  1.6411 @@ -5394,22 +4149,12 @@
  1.6412  	case $cc_basename in
  1.6413  	  CC*)
  1.6414  	    # Sun C++ 4.x
  1.6415 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6416 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6417 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6418 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6419  	    ;;
  1.6420  	  lcc*)
  1.6421  	    # Lucid
  1.6422 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6423 -	    ;;
  1.6424 -	  *)
  1.6425 -	    ;;
  1.6426 -	esac
  1.6427 -	;;
  1.6428 -      tandem*)
  1.6429 -	case $cc_basename in
  1.6430 -	  NCC*)
  1.6431 -	    # NonStop-UX NCC 3.20
  1.6432 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6433 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6434  	    ;;
  1.6435  	  *)
  1.6436  	    ;;
  1.6437 @@ -5418,58 +4163,93 @@
  1.6438        sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.6439  	case $cc_basename in
  1.6440  	  CC*)
  1.6441 -	    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6442 -	    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6443 -	    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6444 +	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6445 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6446 +	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6447 +	    ;;
  1.6448 +	esac
  1.6449 +	;;
  1.6450 +      tandem*)
  1.6451 +	case $cc_basename in
  1.6452 +	  NCC*)
  1.6453 +	    # NonStop-UX NCC 3.20
  1.6454 +	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6455 +	    ;;
  1.6456 +	  *)
  1.6457  	    ;;
  1.6458  	esac
  1.6459  	;;
  1.6460        vxworks*)
  1.6461  	;;
  1.6462        *)
  1.6463 -	_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6464 +	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6465  	;;
  1.6466      esac
  1.6467    fi
  1.6468  ],
  1.6469  [
  1.6470    if test "$GCC" = yes; then
  1.6471 -    _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6472 -    _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6473 +    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6474 +    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6475  
  1.6476      case $host_os in
  1.6477        aix*)
  1.6478        # All AIX code is PIC.
  1.6479        if test "$host_cpu" = ia64; then
  1.6480  	# AIX 5 now supports IA64 processor
  1.6481 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6482 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6483        fi
  1.6484        ;;
  1.6485  
  1.6486      amigaos*)
  1.6487 -      # FIXME: we need at least 68020 code to build shared libraries, but
  1.6488 -      # adding the `-m68020' flag to GCC prevents building anything better,
  1.6489 -      # like `-m68040'.
  1.6490 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.6491 +      case $host_cpu in
  1.6492 +      powerpc)
  1.6493 +            # see comment about AmigaOS4 .so support
  1.6494 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6495 +        ;;
  1.6496 +      m68k)
  1.6497 +            # FIXME: we need at least 68020 code to build shared libraries, but
  1.6498 +            # adding the `-m68020' flag to GCC prevents building anything better,
  1.6499 +            # like `-m68040'.
  1.6500 +            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  1.6501 +        ;;
  1.6502 +      esac
  1.6503        ;;
  1.6504  
  1.6505 -    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.6506 +    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1.6507        # PIC is the default for these OSes.
  1.6508        ;;
  1.6509  
  1.6510 -    mingw* | pw32* | os2*)
  1.6511 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
  1.6512        # This hack is so that the source file can tell whether it is being
  1.6513        # built for inclusion in a dll (and should export symbols for example).
  1.6514 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.6515 +      # Although the cygwin gcc ignores -fPIC, still need this for old-style
  1.6516 +      # (--disable-auto-import) libraries
  1.6517 +      m4_if([$1], [GCJ], [],
  1.6518 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.6519        ;;
  1.6520  
  1.6521      darwin* | rhapsody*)
  1.6522        # PIC is the default on this platform
  1.6523        # Common symbols not allowed in MH_DYLIB files
  1.6524 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.6525 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  1.6526        ;;
  1.6527  
  1.6528 -    interix3*)
  1.6529 +    hpux*)
  1.6530 +      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  1.6531 +      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
  1.6532 +      # sets the default TLS model and affects inlining.
  1.6533 +      case $host_cpu in
  1.6534 +      hppa*64*)
  1.6535 +	# +Z the default
  1.6536 +	;;
  1.6537 +      *)
  1.6538 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6539 +	;;
  1.6540 +      esac
  1.6541 +      ;;
  1.6542 +
  1.6543 +    interix[[3-9]]*)
  1.6544        # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  1.6545        # Instead, we relocate shared libraries at runtime.
  1.6546        ;;
  1.6547 @@ -5477,64 +4257,48 @@
  1.6548      msdosdjgpp*)
  1.6549        # Just because we use GCC doesn't mean we suddenly get shared libraries
  1.6550        # on systems that don't support them.
  1.6551 -      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6552 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6553        enable_shared=no
  1.6554        ;;
  1.6555  
  1.6556 +    *nto* | *qnx*)
  1.6557 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.6558 +      # it will coredump.
  1.6559 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.6560 +      ;;
  1.6561 +
  1.6562      sysv4*MP*)
  1.6563        if test -d /usr/nec; then
  1.6564 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.6565 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  1.6566        fi
  1.6567        ;;
  1.6568  
  1.6569 -    hpux*)
  1.6570 -      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.6571 -      # not for PA HP-UX.
  1.6572 -      case $host_cpu in
  1.6573 -      hppa*64*|ia64*)
  1.6574 -	# +Z the default
  1.6575 -	;;
  1.6576 -      *)
  1.6577 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6578 -	;;
  1.6579 -      esac
  1.6580 -      ;;
  1.6581 -
  1.6582      *)
  1.6583 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6584 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6585        ;;
  1.6586      esac
  1.6587    else
  1.6588      # PORTME Check for flag to pass linker flags through the system compiler.
  1.6589      case $host_os in
  1.6590      aix*)
  1.6591 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6592 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6593        if test "$host_cpu" = ia64; then
  1.6594  	# AIX 5 now supports IA64 processor
  1.6595 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6596 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6597        else
  1.6598 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.6599 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  1.6600        fi
  1.6601        ;;
  1.6602 -      darwin*)
  1.6603 -        # PIC is the default on this platform
  1.6604 -        # Common symbols not allowed in MH_DYLIB files
  1.6605 -       case $cc_basename in
  1.6606 -         xlc*)
  1.6607 -         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  1.6608 -         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6609 -         ;;
  1.6610 -       esac
  1.6611 -       ;;
  1.6612 -
  1.6613 -    mingw* | pw32* | os2*)
  1.6614 +
  1.6615 +    mingw* | cygwin* | pw32* | os2* | cegcc*)
  1.6616        # This hack is so that the source file can tell whether it is being
  1.6617        # built for inclusion in a dll (and should export symbols for example).
  1.6618 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  1.6619 +      m4_if([$1], [GCJ], [],
  1.6620 +	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  1.6621        ;;
  1.6622  
  1.6623      hpux9* | hpux10* | hpux11*)
  1.6624 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6625 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6626        # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  1.6627        # not for PA HP-UX.
  1.6628        case $host_cpu in
  1.6629 @@ -5542,210 +4306,274 @@
  1.6630  	# +Z the default
  1.6631  	;;
  1.6632        *)
  1.6633 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6634 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  1.6635  	;;
  1.6636        esac
  1.6637        # Is there a better lt_prog_compiler_static that works with the bundled CC?
  1.6638 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6639 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  1.6640        ;;
  1.6641  
  1.6642      irix5* | irix6* | nonstopux*)
  1.6643 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6644 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6645        # PIC (with -KPIC) is the default.
  1.6646 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6647 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6648 +      ;;
  1.6649 +
  1.6650 +    linux* | k*bsd*-gnu)
  1.6651 +      case $cc_basename in
  1.6652 +      # old Intel for x86_64 which still supported -KPIC.
  1.6653 +      ecc*)
  1.6654 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6655 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6656 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6657 +        ;;
  1.6658 +      # icc used to be incompatible with GCC.
  1.6659 +      # ICC 10 doesn't accept -KPIC any more.
  1.6660 +      icc* | ifort*)
  1.6661 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6662 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  1.6663 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6664 +        ;;
  1.6665 +      # Lahey Fortran 8.1.
  1.6666 +      lf95*)
  1.6667 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6668 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  1.6669 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  1.6670 +	;;
  1.6671 +      pgcc* | pgf77* | pgf90* | pgf95*)
  1.6672 +        # Portland Group compilers (*not* the Pentium gcc compiler,
  1.6673 +	# which looks to be a dead project)
  1.6674 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6675 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.6676 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6677 +        ;;
  1.6678 +      ccc*)
  1.6679 +        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6680 +        # All Alpha code is PIC.
  1.6681 +        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6682 +        ;;
  1.6683 +      xl*)
  1.6684 +	# IBM XL C 8.0/Fortran 10.1 on PPC
  1.6685 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6686 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  1.6687 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  1.6688 +	;;
  1.6689 +      *)
  1.6690 +	case `$CC -V 2>&1 | sed 5q` in
  1.6691 +	*Sun\ C*)
  1.6692 +	  # Sun C 5.9
  1.6693 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6694 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6695 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6696 +	  ;;
  1.6697 +	*Sun\ F*)
  1.6698 +	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
  1.6699 +	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6700 +	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6701 +	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  1.6702 +	  ;;
  1.6703 +	esac
  1.6704 +	;;
  1.6705 +      esac
  1.6706        ;;
  1.6707  
  1.6708      newsos6)
  1.6709 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6710 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6711 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6712 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6713        ;;
  1.6714  
  1.6715 -    linux*)
  1.6716 -      case $cc_basename in
  1.6717 -      icc* | ecc*)
  1.6718 -	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6719 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6720 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  1.6721 -        ;;
  1.6722 -      pgcc* | pgf77* | pgf90* | pgf95*)
  1.6723 -        # Portland Group compilers (*not* the Pentium gcc compiler,
  1.6724 -	# which looks to be a dead project)
  1.6725 -	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6726 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  1.6727 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6728 -        ;;
  1.6729 -      ccc*)
  1.6730 -        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6731 -        # All Alpha code is PIC.
  1.6732 -        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6733 -        ;;
  1.6734 -      esac
  1.6735 +    *nto* | *qnx*)
  1.6736 +      # QNX uses GNU C++, but need to define -shared option too, otherwise
  1.6737 +      # it will coredump.
  1.6738 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  1.6739        ;;
  1.6740  
  1.6741      osf3* | osf4* | osf5*)
  1.6742 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6743 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6744        # All OSF/1 code is PIC.
  1.6745 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6746 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6747 +      ;;
  1.6748 +
  1.6749 +    rdos*)
  1.6750 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  1.6751        ;;
  1.6752  
  1.6753      solaris*)
  1.6754 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6755 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6756 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6757 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6758        case $cc_basename in
  1.6759        f77* | f90* | f95*)
  1.6760 -	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.6761 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  1.6762        *)
  1.6763 -	_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.6764 +	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  1.6765        esac
  1.6766        ;;
  1.6767  
  1.6768      sunos4*)
  1.6769 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.6770 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.6771 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6772 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  1.6773 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  1.6774 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6775        ;;
  1.6776  
  1.6777      sysv4 | sysv4.2uw2* | sysv4.3*)
  1.6778 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6779 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6780 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6781 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6782 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6783 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6784        ;;
  1.6785  
  1.6786      sysv4*MP*)
  1.6787        if test -d /usr/nec ;then
  1.6788 -	_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  1.6789 -	_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6790 +	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  1.6791 +	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6792        fi
  1.6793        ;;
  1.6794  
  1.6795      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  1.6796 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6797 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6798 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6799 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6800 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  1.6801 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6802        ;;
  1.6803  
  1.6804      unicos*)
  1.6805 -      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6806 -      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6807 +      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  1.6808 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6809        ;;
  1.6810  
  1.6811      uts4*)
  1.6812 -      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6813 -      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6814 +      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  1.6815 +      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  1.6816        ;;
  1.6817  
  1.6818      *)
  1.6819 -      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6820 +      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  1.6821        ;;
  1.6822      esac
  1.6823    fi
  1.6824  ])
  1.6825 -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  1.6826 +case $host_os in
  1.6827 +  # For platforms which do not support PIC, -DPIC is meaningless:
  1.6828 +  *djgpp*)
  1.6829 +    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6830 +    ;;
  1.6831 +  *)
  1.6832 +    _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.6833 +    ;;
  1.6834 +esac
  1.6835 +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  1.6836 +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  1.6837 +	[How to pass a linker flag through the compiler])
  1.6838  
  1.6839  #
  1.6840  # Check to make sure the PIC flag actually works.
  1.6841  #
  1.6842 -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.6843 -  AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  1.6844 -    _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  1.6845 -    [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  1.6846 -    [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  1.6847 +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  1.6848 +  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  1.6849 +    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  1.6850 +    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  1.6851 +    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  1.6852       "" | " "*) ;;
  1.6853 -     *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  1.6854 +     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  1.6855       esac],
  1.6856 -    [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6857 -     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  1.6858 +    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6859 +     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  1.6860  fi
  1.6861 -case $host_os in
  1.6862 -  # For platforms which do not support PIC, -DPIC is meaningless:
  1.6863 -  *djgpp*)
  1.6864 -    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  1.6865 -    ;;
  1.6866 -  *)
  1.6867 -    _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  1.6868 -    ;;
  1.6869 -esac
  1.6870 +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  1.6871 +	[Additional compiler flags for building library objects])
  1.6872  
  1.6873  #
  1.6874  # Check to make sure the static flag actually works.
  1.6875  #
  1.6876 -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  1.6877 -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  1.6878 -  _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  1.6879 +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  1.6880 +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  1.6881 +  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  1.6882    $lt_tmp_static_flag,
  1.6883    [],
  1.6884 -  [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  1.6885 -])
  1.6886 -
  1.6887 -
  1.6888 -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  1.6889 -# ------------------------------------
  1.6890 +  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  1.6891 +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  1.6892 +	[Compiler flag to prevent dynamic linking])
  1.6893 +])# _LT_COMPILER_PIC
  1.6894 +
  1.6895 +
  1.6896 +# _LT_LINKER_SHLIBS([TAGNAME])
  1.6897 +# ----------------------------
  1.6898  # See if the linker supports building shared libraries.
  1.6899 -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  1.6900 -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.6901 -ifelse([$1],[CXX],[
  1.6902 -  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6903 +m4_defun([_LT_LINKER_SHLIBS],
  1.6904 +[AC_REQUIRE([LT_PATH_LD])dnl
  1.6905 +AC_REQUIRE([LT_PATH_NM])dnl
  1.6906 +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1.6907 +m4_require([_LT_DECL_EGREP])dnl
  1.6908 +m4_require([_LT_DECL_SED])dnl
  1.6909 +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  1.6910 +m4_require([_LT_TAG_COMPILER])dnl
  1.6911 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  1.6912 +m4_if([$1], [CXX], [
  1.6913 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6914    case $host_os in
  1.6915 -  aix4* | aix5*)
  1.6916 +  aix[[4-9]]*)
  1.6917      # If we're using GNU nm, then we don't want the "-C" option.
  1.6918      # -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.6919 -    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  1.6920 -      _LT_AC_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.6921 +    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.6922 +      _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.6923      else
  1.6924 -      _LT_AC_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.6925 +      _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.6926      fi
  1.6927      ;;
  1.6928    pw32*)
  1.6929 -    _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.6930 +    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  1.6931    ;;
  1.6932 -  cygwin* | mingw*)
  1.6933 -    _LT_AC_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.6934 +  cygwin* | mingw* | cegcc*)
  1.6935 +    _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.6936    ;;
  1.6937    *)
  1.6938 -    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6939 +    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6940    ;;
  1.6941    esac
  1.6942 -],[
  1.6943 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.6944 +], [
  1.6945    runpath_var=
  1.6946 -  _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  1.6947 -  _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.6948 -  _LT_AC_TAGVAR(archive_cmds, $1)=
  1.6949 -  _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  1.6950 -  _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  1.6951 -  _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  1.6952 -  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.6953 -  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.6954 -  _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  1.6955 -  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.6956 -  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.6957 -  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.6958 -  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.6959 -  _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  1.6960 -  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.6961 -  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  1.6962 -  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  1.6963 -  _LT_AC_TAGVAR(module_cmds, $1)=
  1.6964 -  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  1.6965 -  _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.6966 -  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6967 +  _LT_TAGVAR(allow_undefined_flag, $1)=
  1.6968 +  _LT_TAGVAR(always_export_symbols, $1)=no
  1.6969 +  _LT_TAGVAR(archive_cmds, $1)=
  1.6970 +  _LT_TAGVAR(archive_expsym_cmds, $1)=
  1.6971 +  _LT_TAGVAR(compiler_needs_object, $1)=no
  1.6972 +  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  1.6973 +  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.6974 +  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  1.6975 +  _LT_TAGVAR(hardcode_automatic, $1)=no
  1.6976 +  _LT_TAGVAR(hardcode_direct, $1)=no
  1.6977 +  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  1.6978 +  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.6979 +  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  1.6980 +  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.6981 +  _LT_TAGVAR(hardcode_minus_L, $1)=no
  1.6982 +  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.6983 +  _LT_TAGVAR(inherit_rpath, $1)=no
  1.6984 +  _LT_TAGVAR(link_all_deplibs, $1)=unknown
  1.6985 +  _LT_TAGVAR(module_cmds, $1)=
  1.6986 +  _LT_TAGVAR(module_expsym_cmds, $1)=
  1.6987 +  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  1.6988 +  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  1.6989 +  _LT_TAGVAR(thread_safe_flag_spec, $1)=
  1.6990 +  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.6991    # include_expsyms should be a list of space-separated symbols to be *always*
  1.6992    # included in the symbol list
  1.6993 -  _LT_AC_TAGVAR(include_expsyms, $1)=
  1.6994 +  _LT_TAGVAR(include_expsyms, $1)=
  1.6995    # exclude_expsyms can be an extended regexp of symbols to exclude
  1.6996    # it will be wrapped by ` (' and `)$', so one must not match beginning or
  1.6997    # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  1.6998    # as well as any symbol that contains `d'.
  1.6999 -  _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  1.7000 +  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  1.7001    # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  1.7002    # platforms (ab)use it in PIC code, but their linkers get confused if
  1.7003    # the symbol is explicitly referenced.  Since portable code cannot
  1.7004    # rely on this symbol name, it's probably fine to never include it in
  1.7005    # preloaded symbol tables.
  1.7006 +  # Exclude shared library initialization/finalization symbols.
  1.7007 +dnl Note also adjust exclude_expsyms for C++ above.
  1.7008    extract_expsyms_cmds=
  1.7009 -  # Just being paranoid about ensuring that cc_basename is set.
  1.7010 -  _LT_CC_BASENAME([$compiler])
  1.7011 +
  1.7012    case $host_os in
  1.7013 -  cygwin* | mingw* | pw32*)
  1.7014 +  cygwin* | mingw* | pw32* | cegcc*)
  1.7015      # FIXME: the MSVC++ port hasn't been tested in a loooong time
  1.7016      # When not using gcc, we currently assume that we are using
  1.7017      # Microsoft Visual C++.
  1.7018 @@ -5762,7 +4590,7 @@
  1.7019      ;;
  1.7020    esac
  1.7021  
  1.7022 -  _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  1.7023 +  _LT_TAGVAR(ld_shlibs, $1)=yes
  1.7024    if test "$with_gnu_ld" = yes; then
  1.7025      # If archive_cmds runs LD, not CC, wlarc should be empty
  1.7026      wlarc='${wl}'
  1.7027 @@ -5771,16 +4599,16 @@
  1.7028      # are reset later if shared libraries are not supported. Putting them
  1.7029      # here allows them to be overridden if necessary.
  1.7030      runpath_var=LD_RUN_PATH
  1.7031 -    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  1.7032 -    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.7033 +    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7034 +    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  1.7035      # ancient GNU ld didn't support --whole-archive et. al.
  1.7036 -    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  1.7037 -	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.7038 -      else
  1.7039 -  	_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.7040 +    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  1.7041 +      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  1.7042 +    else
  1.7043 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.7044      fi
  1.7045      supports_anon_versioning=no
  1.7046 -    case `$LD -v 2>/dev/null` in
  1.7047 +    case `$LD -v 2>&1` in
  1.7048        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  1.7049        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  1.7050        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  1.7051 @@ -5790,11 +4618,11 @@
  1.7052  
  1.7053      # See if GNU ld supports shared libraries.
  1.7054      case $host_os in
  1.7055 -    aix3* | aix4* | aix5*)
  1.7056 +    aix[[3-9]]*)
  1.7057        # On AIX/PPC, the GNU linker is very broken
  1.7058        if test "$host_cpu" != ia64; then
  1.7059 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7060 -	cat <<EOF 1>&2
  1.7061 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7062 +	cat <<_LT_EOF 1>&2
  1.7063  
  1.7064  *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  1.7065  *** to be unable to reliably create shared libraries on AIX.
  1.7066 @@ -5802,49 +4630,50 @@
  1.7067  *** really care for shared libraries, you may want to modify your PATH
  1.7068  *** so that a non-GNU linker is found, and then restart.
  1.7069  
  1.7070 -EOF
  1.7071 +_LT_EOF
  1.7072        fi
  1.7073        ;;
  1.7074  
  1.7075      amigaos*)
  1.7076 -      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1.7077 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7078 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7079 -
  1.7080 -      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  1.7081 -      # that the semantics of dynamic libraries on AmigaOS, at least up
  1.7082 -      # to version 4, is to share data among multiple programs linked
  1.7083 -      # with the same dynamic library.  Since this doesn't match the
  1.7084 -      # behavior of shared libraries on other platforms, we can't use
  1.7085 -      # them.
  1.7086 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7087 +      case $host_cpu in
  1.7088 +      powerpc)
  1.7089 +            # see comment about AmigaOS4 .so support
  1.7090 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7091 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
  1.7092 +        ;;
  1.7093 +      m68k)
  1.7094 +            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1.7095 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7096 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7097 +        ;;
  1.7098 +      esac
  1.7099        ;;
  1.7100  
  1.7101      beos*)
  1.7102 -      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.7103 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7104 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.7105 +	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7106  	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  1.7107  	# support --undefined.  This deserves some investigation.  FIXME
  1.7108 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7109 +	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7110        else
  1.7111 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7112 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7113        fi
  1.7114        ;;
  1.7115  
  1.7116 -    cygwin* | mingw* | pw32*)
  1.7117 -      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.7118 +    cygwin* | mingw* | pw32* | cegcc*)
  1.7119 +      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  1.7120        # as there is no search path for DLLs.
  1.7121 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7122 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7123 -      _LT_AC_TAGVAR(always_export_symbols, $1)=no
  1.7124 -      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.7125 -      _LT_AC_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.7126 -
  1.7127 -      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  1.7128 -        _LT_AC_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.7129 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7130 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7131 +      _LT_TAGVAR(always_export_symbols, $1)=no
  1.7132 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.7133 +      _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.7134 +
  1.7135 +      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  1.7136 +        _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.7137  	# If the export-symbols file already is a .def file (1st line
  1.7138  	# is EXPORTS), use it as is; otherwise, prepend...
  1.7139 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.7140 +	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  1.7141  	  cp $export_symbols $output_objdir/$soname.def;
  1.7142  	else
  1.7143  	  echo EXPORTS > $output_objdir/$soname.def;
  1.7144 @@ -5852,70 +4681,109 @@
  1.7145  	fi~
  1.7146  	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  1.7147        else
  1.7148 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7149 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7150        fi
  1.7151        ;;
  1.7152  
  1.7153 -    interix3*)
  1.7154 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.7155 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7156 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7157 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7158 +    interix[[3-9]]*)
  1.7159 +      _LT_TAGVAR(hardcode_direct, $1)=no
  1.7160 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7161 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7162 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7163        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  1.7164        # Instead, shared libraries are loaded at an image base (0x10000000 by
  1.7165        # default) and relocated if they conflict, which is a slow very memory
  1.7166        # consuming and fragmenting process.  To avoid this, we pick a random,
  1.7167        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  1.7168        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
  1.7169 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  1.7170 -      _LT_AC_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.7171 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  1.7172 +      _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.7173        ;;
  1.7174  
  1.7175 -    linux*)
  1.7176 -      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.7177 +    gnu* | linux* | tpf* | k*bsd*-gnu)
  1.7178 +      tmp_diet=no
  1.7179 +      if test "$host_os" = linux-dietlibc; then
  1.7180 +	case $cc_basename in
  1.7181 +	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
  1.7182 +	esac
  1.7183 +      fi
  1.7184 +      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  1.7185 +	 && test "$tmp_diet" = no
  1.7186 +      then
  1.7187  	tmp_addflag=
  1.7188 +	tmp_sharedflag='-shared'
  1.7189  	case $cc_basename,$host_cpu in
  1.7190 -	pgcc*)				# Portland Group C compiler
  1.7191 -	  _LT_AC_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.7192 +        pgcc*)				# Portland Group C compiler
  1.7193 +	  _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.7194  	  tmp_addflag=' $pic_flag'
  1.7195  	  ;;
  1.7196  	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
  1.7197 -	  _LT_AC_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.7198 +	  _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.7199  	  tmp_addflag=' $pic_flag -Mnomain' ;;
  1.7200 -	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
  1.7201 +	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
  1.7202  	  tmp_addflag=' -i_dynamic' ;;
  1.7203  	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
  1.7204  	  tmp_addflag=' -i_dynamic -nofor_main' ;;
  1.7205  	ifc* | ifort*)			# Intel Fortran compiler
  1.7206  	  tmp_addflag=' -nofor_main' ;;
  1.7207 +	lf95*)				# Lahey Fortran 8.1
  1.7208 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.7209 +	  tmp_sharedflag='--shared' ;;
  1.7210 +	xl[[cC]]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
  1.7211 +	  tmp_sharedflag='-qmkshrobj'
  1.7212 +	  tmp_addflag= ;;
  1.7213  	esac
  1.7214 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7215 -
  1.7216 -	if test $supports_anon_versioning = yes; then
  1.7217 -	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  1.7218 -  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.7219 -  $echo "local: *; };" >> $output_objdir/$libname.ver~
  1.7220 -	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.7221 -	fi
  1.7222 +	case `$CC -V 2>&1 | sed 5q` in
  1.7223 +	*Sun\ C*)			# Sun C 5.9
  1.7224 +	  _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.7225 +	  _LT_TAGVAR(compiler_needs_object, $1)=yes
  1.7226 +	  tmp_sharedflag='-G' ;;
  1.7227 +	*Sun\ F*)			# Sun Fortran 8.3
  1.7228 +	  tmp_sharedflag='-G' ;;
  1.7229 +	esac
  1.7230 +	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7231 +
  1.7232 +        if test "x$supports_anon_versioning" = xyes; then
  1.7233 +          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.7234 +	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.7235 +	    echo "local: *; };" >> $output_objdir/$libname.ver~
  1.7236 +	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  1.7237 +        fi
  1.7238 +
  1.7239 +	case $cc_basename in
  1.7240 +	xlf*)
  1.7241 +	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  1.7242 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  1.7243 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.7244 +	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.7245 +	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  1.7246 +	  if test "x$supports_anon_versioning" = xyes; then
  1.7247 +	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  1.7248 +	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  1.7249 +	      echo "local: *; };" >> $output_objdir/$libname.ver~
  1.7250 +	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  1.7251 +	  fi
  1.7252 +	  ;;
  1.7253 +	esac
  1.7254        else
  1.7255 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7256 +        _LT_TAGVAR(ld_shlibs, $1)=no
  1.7257        fi
  1.7258        ;;
  1.7259  
  1.7260      netbsd*)
  1.7261 -      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.7262 -	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.7263 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.7264 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  1.7265  	wlarc=
  1.7266        else
  1.7267 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7268 -	_LT_AC_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.7269 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7270 +	_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.7271        fi
  1.7272        ;;
  1.7273  
  1.7274      solaris*)
  1.7275 -      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  1.7276 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7277 -	cat <<EOF 1>&2
  1.7278 +      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  1.7279 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7280 +	cat <<_LT_EOF 1>&2
  1.7281  
  1.7282  *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  1.7283  *** create shared libraries on Solaris systems.  Therefore, libtool
  1.7284 @@ -5924,19 +4792,19 @@
  1.7285  *** your PATH or compiler configuration so that the native linker is
  1.7286  *** used, and then restart.
  1.7287  
  1.7288 -EOF
  1.7289 -      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.7290 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7291 -	_LT_AC_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.7292 +_LT_EOF
  1.7293 +      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.7294 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7295 +	_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.7296        else
  1.7297 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7298 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7299        fi
  1.7300        ;;
  1.7301  
  1.7302      sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  1.7303        case `$LD -v 2>&1` in
  1.7304 -        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 
  1.7305 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7306 +        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  1.7307 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7308  	cat <<_LT_EOF 1>&2
  1.7309  
  1.7310  *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  1.7311 @@ -5949,58 +4817,62 @@
  1.7312  _LT_EOF
  1.7313  	;;
  1.7314  	*)
  1.7315 -	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.7316 -	    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  1.7317 -	    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  1.7318 -	    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  1.7319 +	  # For security reasons, it is highly recommended that you always
  1.7320 +	  # use absolute paths for naming shared libraries, and exclude the
  1.7321 +	  # DT_RUNPATH tag from executables and libraries.  But doing so
  1.7322 +	  # requires that you compile everything twice, which is a pain.
  1.7323 +	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.7324 +	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7325 +	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7326 +	    _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.7327  	  else
  1.7328 -	    _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7329 +	    _LT_TAGVAR(ld_shlibs, $1)=no
  1.7330  	  fi
  1.7331  	;;
  1.7332        esac
  1.7333        ;;
  1.7334  
  1.7335      sunos4*)
  1.7336 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7337 +      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7338        wlarc=
  1.7339 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7340 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7341 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7342 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7343        ;;
  1.7344  
  1.7345      *)
  1.7346 -      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  1.7347 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7348 -	_LT_AC_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.7349 +      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  1.7350 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7351 +	_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.7352        else
  1.7353 -	_LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7354 +	_LT_TAGVAR(ld_shlibs, $1)=no
  1.7355        fi
  1.7356        ;;
  1.7357      esac
  1.7358  
  1.7359 -    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  1.7360 +    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  1.7361        runpath_var=
  1.7362 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.7363 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  1.7364 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  1.7365 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  1.7366 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  1.7367 +      _LT_TAGVAR(whole_archive_flag_spec, $1)=
  1.7368      fi
  1.7369    else
  1.7370      # PORTME fill in a description of your system's linker (not GNU ld)
  1.7371      case $host_os in
  1.7372      aix3*)
  1.7373 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7374 -      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.7375 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  1.7376 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7377 +      _LT_TAGVAR(always_export_symbols, $1)=yes
  1.7378 +      _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  1.7379        # Note: this linker hardcodes the directories in LIBPATH if there
  1.7380        # are no directories specified by -L.
  1.7381 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7382 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7383        if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  1.7384  	# Neither direct hardcoding nor static linking is supported with a
  1.7385  	# broken collect2.
  1.7386 -	_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.7387 +	_LT_TAGVAR(hardcode_direct, $1)=unsupported
  1.7388        fi
  1.7389        ;;
  1.7390  
  1.7391 -    aix4* | aix5*)
  1.7392 +    aix[[4-9]]*)
  1.7393        if test "$host_cpu" = ia64; then
  1.7394  	# On IA64, the linker does run time linking by default, so we don't
  1.7395  	# have to do anything special.
  1.7396 @@ -6010,22 +4882,22 @@
  1.7397        else
  1.7398  	# If we're using GNU nm, then we don't want the "-C" option.
  1.7399  	# -C means demangle to AIX nm, but means don't demangle with GNU nm
  1.7400 -	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  1.7401 -	  _LT_AC_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.7402 +	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  1.7403 +	  _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.7404  	else
  1.7405 -	  _LT_AC_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.7406 +	  _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.7407  	fi
  1.7408  	aix_use_runtimelinking=no
  1.7409  
  1.7410  	# Test if we are trying to use run time linking or normal
  1.7411  	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
  1.7412  	# need to do runtime linking.
  1.7413 -	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  1.7414 +	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  1.7415  	  for ld_flag in $LDFLAGS; do
  1.7416 -  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  1.7417 -  	    aix_use_runtimelinking=yes
  1.7418 -  	    break
  1.7419 -  	  fi
  1.7420 +	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  1.7421 +	    aix_use_runtimelinking=yes
  1.7422 +	    break
  1.7423 +	  fi
  1.7424  	  done
  1.7425  	  ;;
  1.7426  	esac
  1.7427 @@ -6040,30 +4912,32 @@
  1.7428        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
  1.7429        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  1.7430  
  1.7431 -      _LT_AC_TAGVAR(archive_cmds, $1)=''
  1.7432 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7433 -      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.7434 -      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.7435 +      _LT_TAGVAR(archive_cmds, $1)=''
  1.7436 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7437 +      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.7438 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  1.7439 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.7440 +      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  1.7441  
  1.7442        if test "$GCC" = yes; then
  1.7443  	case $host_os in aix4.[[012]]|aix4.[[012]].*)
  1.7444  	# We only want to do this on AIX 4.2 and lower, the check
  1.7445  	# below for broken collect2 doesn't work under 4.3+
  1.7446  	  collect2name=`${CC} -print-prog-name=collect2`
  1.7447 -	  if test -f "$collect2name" && \
  1.7448 -  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
  1.7449 +	  if test -f "$collect2name" &&
  1.7450 +	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  1.7451  	  then
  1.7452 -  	  # We have reworked collect2
  1.7453 -  	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7454 +	  # We have reworked collect2
  1.7455 +	  :
  1.7456  	  else
  1.7457 -  	  # We have old collect2
  1.7458 -  	  _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  1.7459 -  	  # It fails to find uninstalled libraries when the uninstalled
  1.7460 -  	  # path is not listed in the libpath.  Setting hardcode_minus_L
  1.7461 -  	  # to unsupported forces relinking
  1.7462 -  	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7463 -  	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7464 -  	  _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  1.7465 +	  # We have old collect2
  1.7466 +	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
  1.7467 +	  # It fails to find uninstalled libraries when the uninstalled
  1.7468 +	  # path is not listed in the libpath.  Setting hardcode_minus_L
  1.7469 +	  # to unsupported forces relinking
  1.7470 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7471 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7472 +	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
  1.7473  	  fi
  1.7474  	  ;;
  1.7475  	esac
  1.7476 @@ -6074,8 +4948,8 @@
  1.7477        else
  1.7478  	# not using gcc
  1.7479  	if test "$host_cpu" = ia64; then
  1.7480 -  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  1.7481 -  	# chokes on -Wl,-G. The following line is correct:
  1.7482 +	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  1.7483 +	# chokes on -Wl,-G. The following line is correct:
  1.7484  	  shared_flag='-G'
  1.7485  	else
  1.7486  	  if test "$aix_use_runtimelinking" = yes; then
  1.7487 @@ -6086,130 +4960,94 @@
  1.7488  	fi
  1.7489        fi
  1.7490  
  1.7491 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  1.7492        # It seems that -bexpall does not export symbols beginning with
  1.7493        # underscore (_), so it is better to generate a list of symbols to export.
  1.7494 -      _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  1.7495 +      _LT_TAGVAR(always_export_symbols, $1)=yes
  1.7496        if test "$aix_use_runtimelinking" = yes; then
  1.7497  	# Warning - without using the other runtime loading flags (-brtl),
  1.7498  	# -berok will link without error, but may produce a broken library.
  1.7499 -	_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.7500 -       # Determine the default libpath from the value encoded in an empty executable.
  1.7501 -       _LT_AC_SYS_LIBPATH_AIX
  1.7502 -       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.7503 -	_LT_AC_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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  1.7504 -       else
  1.7505 +	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  1.7506 +        # Determine the default libpath from the value encoded in an
  1.7507 +        # empty executable.
  1.7508 +        _LT_SYS_MODULE_PATH_AIX
  1.7509 +        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.7510 +        _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.7511 +      else
  1.7512  	if test "$host_cpu" = ia64; then
  1.7513 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.7514 -	  _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.7515 -	  _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  1.7516 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  1.7517 +	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  1.7518 +	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  1.7519  	else
  1.7520 -	 # Determine the default libpath from the value encoded in an empty executable.
  1.7521 -	 _LT_AC_SYS_LIBPATH_AIX
  1.7522 -	 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.7523 +	 # Determine the default libpath from the value encoded in an
  1.7524 +	 # empty executable.
  1.7525 +	 _LT_SYS_MODULE_PATH_AIX
  1.7526 +	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  1.7527  	  # Warning - without using the other run time loading flags,
  1.7528  	  # -berok will link without error, but may produce a broken library.
  1.7529 -	  _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.7530 -	  _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.7531 +	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  1.7532 +	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  1.7533  	  # Exported symbols can be pulled into shared objects from archives
  1.7534 -	  _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.7535 -	  _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.7536 +	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  1.7537 +	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  1.7538  	  # This is similar to how AIX traditionally builds its shared libraries.
  1.7539 -	  _LT_AC_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.7540 +	  _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.7541  	fi
  1.7542        fi
  1.7543        ;;
  1.7544  
  1.7545      amigaos*)
  1.7546 -      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1.7547 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7548 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7549 -      # see comment about different semantics on the GNU ld section
  1.7550 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7551 +      case $host_cpu in
  1.7552 +      powerpc)
  1.7553 +            # see comment about AmigaOS4 .so support
  1.7554 +            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  1.7555 +            _LT_TAGVAR(archive_expsym_cmds, $1)=''
  1.7556 +        ;;
  1.7557 +      m68k)
  1.7558 +            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  1.7559 +            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7560 +            _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7561 +        ;;
  1.7562 +      esac
  1.7563        ;;
  1.7564  
  1.7565      bsdi[[45]]*)
  1.7566 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1.7567 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  1.7568        ;;
  1.7569  
  1.7570 -    cygwin* | mingw* | pw32*)
  1.7571 +    cygwin* | mingw* | pw32* | cegcc*)
  1.7572        # When not using gcc, we currently assume that we are using
  1.7573        # Microsoft Visual C++.
  1.7574        # hardcode_libdir_flag_spec is actually meaningless, as there is
  1.7575        # no search path for DLLs.
  1.7576 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.7577 -      _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7578 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  1.7579 +      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  1.7580        # Tell ltmain to make .lib files, not .a files.
  1.7581        libext=lib
  1.7582        # Tell ltmain to make .dll files, not .so files.
  1.7583        shrext_cmds=".dll"
  1.7584        # FIXME: Setting linknames here is a bad hack.
  1.7585 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.7586 +      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  1.7587        # The linker will automatically build a .lib file if we build a DLL.
  1.7588 -      _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  1.7589 +      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  1.7590        # FIXME: Should let the user specify the lib program.
  1.7591 -      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  1.7592 -      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.7593 -      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.7594 +      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  1.7595 +      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  1.7596 +      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  1.7597        ;;
  1.7598  
  1.7599      darwin* | rhapsody*)
  1.7600 -      case $host_os in
  1.7601 -        rhapsody* | darwin1.[[012]])
  1.7602 -         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  1.7603 -         ;;
  1.7604 -       *) # Darwin 1.3 on
  1.7605 -         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  1.7606 -           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.7607 -         else
  1.7608 -           case ${MACOSX_DEPLOYMENT_TARGET} in
  1.7609 -             10.[[012]])
  1.7610 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  1.7611 -               ;;
  1.7612 -             10.*)
  1.7613 -               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  1.7614 -               ;;
  1.7615 -           esac
  1.7616 -         fi
  1.7617 -         ;;
  1.7618 -      esac
  1.7619 -      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  1.7620 -      _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.7621 -      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  1.7622 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1.7623 -      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  1.7624 -      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.7625 -    if test "$GCC" = yes ; then
  1.7626 -    	output_verbose_link_cmd='echo'
  1.7627 -        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  1.7628 -      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.7629 -      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.7630 -      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.7631 -      _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.7632 -    else
  1.7633 -      case $cc_basename in
  1.7634 -        xlc*)
  1.7635 -         output_verbose_link_cmd='echo'
  1.7636 -         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  1.7637 -         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  1.7638 -          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  1.7639 -         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.7640 -          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1.7641 -          ;;
  1.7642 -       *)
  1.7643 -         _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7644 -          ;;
  1.7645 -      esac
  1.7646 -    fi
  1.7647 +      _LT_DARWIN_LINKER_FEATURES($1)
  1.7648        ;;
  1.7649  
  1.7650      dgux*)
  1.7651 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.7652 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7653 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7654 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.7655 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  1.7656 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7657        ;;
  1.7658  
  1.7659      freebsd1*)
  1.7660 -      _LT_AC_TAGVAR(ld_shlibs, $1)=no
  1.7661 +      _LT_TAGVAR(ld_shlibs, $1)=no
  1.7662        ;;
  1.7663  
  1.7664      # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  1.7665 @@ -6217,60 +5055,60 @@
  1.7666      # does not break anything, and helps significantly (at the cost of a little
  1.7667      # extra space).
  1.7668      freebsd2.2*)
  1.7669 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  1.7670 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7671 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7672 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7673 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  1.7674 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7675 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7676 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7677        ;;
  1.7678  
  1.7679      # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  1.7680      freebsd2*)
  1.7681 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7682 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7683 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7684 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7685 +      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7686 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7687 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7688 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7689        ;;
  1.7690  
  1.7691      # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  1.7692 -    freebsd* | kfreebsd*-gnu | dragonfly*)
  1.7693 -      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.7694 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7695 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7696 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7697 +    freebsd* | dragonfly*)
  1.7698 +      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  1.7699 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7700 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7701 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7702        ;;
  1.7703  
  1.7704      hpux9*)
  1.7705        if test "$GCC" = yes; then
  1.7706 -	_LT_AC_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.7707 +	_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.7708        else
  1.7709 -	_LT_AC_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.7710 +	_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.7711        fi
  1.7712 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7713 -      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7714 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7715 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7716 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7717 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7718  
  1.7719        # hardcode_minus_L: Not really in the search PATH,
  1.7720        # but as the default location of the library.
  1.7721 -      _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7722 -      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7723 +      _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7724 +      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7725        ;;
  1.7726  
  1.7727      hpux10*)
  1.7728        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.7729 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7730 +	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7731        else
  1.7732 -	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.7733 +	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  1.7734        fi
  1.7735        if test "$with_gnu_ld" = no; then
  1.7736 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7737 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7738 -
  1.7739 -	_LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7740 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7741 -
  1.7742 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7743 +	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.7744 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7745 +	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.7746 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.7747 +	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7748  	# hardcode_minus_L: Not really in the search PATH,
  1.7749  	# but as the default location of the library.
  1.7750 -	_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7751 +	_LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7752        fi
  1.7753        ;;
  1.7754  
  1.7755 @@ -6278,45 +5116,45 @@
  1.7756        if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  1.7757  	case $host_cpu in
  1.7758  	hppa*64*)
  1.7759 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.7760 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.7761  	  ;;
  1.7762  	ia64*)
  1.7763 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.7764 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.7765  	  ;;
  1.7766  	*)
  1.7767 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7768 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7769  	  ;;
  1.7770  	esac
  1.7771        else
  1.7772  	case $host_cpu in
  1.7773  	hppa*64*)
  1.7774 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.7775 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  1.7776  	  ;;
  1.7777  	ia64*)
  1.7778 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.7779 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  1.7780  	  ;;
  1.7781  	*)
  1.7782 -	  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7783 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  1.7784  	  ;;
  1.7785  	esac
  1.7786        fi
  1.7787        if test "$with_gnu_ld" = no; then
  1.7788 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7789 -	_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7790 +	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  1.7791 +	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7792  
  1.7793  	case $host_cpu in
  1.7794  	hppa*64*|ia64*)
  1.7795 -	  _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  1.7796 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=no
  1.7797 -	  _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7798 +	  _LT_TAGVAR(hardcode_direct, $1)=no
  1.7799 +	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7800  	  ;;
  1.7801  	*)
  1.7802 -	  _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7803 -	  _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7804 +	  _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7805 +	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.7806 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7807  
  1.7808  	  # hardcode_minus_L: Not really in the search PATH,
  1.7809  	  # but as the default location of the library.
  1.7810 -	  _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  1.7811 +	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
  1.7812  	  ;;
  1.7813  	esac
  1.7814        fi
  1.7815 @@ -6324,191 +5162,221 @@
  1.7816  
  1.7817      irix5* | irix6* | nonstopux*)
  1.7818        if test "$GCC" = yes; then
  1.7819 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  1.7820 +	_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.7821 +	# Try to use the -exported_symbol ld option, if it does not
  1.7822 +	# work, assume that -exports_file does not work either and
  1.7823 +	# implicitly export all symbols.
  1.7824 +        save_LDFLAGS="$LDFLAGS"
  1.7825 +        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  1.7826 +        AC_LINK_IFELSE(int foo(void) {},
  1.7827 +          _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.7828 +        )
  1.7829 +        LDFLAGS="$save_LDFLAGS"
  1.7830        else
  1.7831 -	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  1.7832 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  1.7833 +	_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.7834 +	_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.7835        fi
  1.7836 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7837 -      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7838 -      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  1.7839 +      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  1.7840 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7841 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7842 +      _LT_TAGVAR(inherit_rpath, $1)=yes
  1.7843 +      _LT_TAGVAR(link_all_deplibs, $1)=yes
  1.7844        ;;
  1.7845  
  1.7846      netbsd*)
  1.7847 -      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  1.7848 -	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1.7849 +      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  1.7850 +	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
  1.7851        else
  1.7852 -	_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  1.7853 +	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
  1.7854        fi
  1.7855 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7856 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7857 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7858 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7859 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7860 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7861        ;;
  1.7862  
  1.7863      newsos6)
  1.7864 -      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.7865 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7866 -      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7867 -      _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7868 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7869 +      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  1.7870 +      _LT_TAGVAR(hardcode_direct, $1)=yes
  1.7871 +      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  1.7872 +      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  1.7873 +      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7874 +      ;;
  1.7875 +
  1.7876 +    *nto* | *qnx*)
  1.7877        ;;
  1.7878  
  1.7879      openbsd*)
  1.7880 -      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  1.7881 -      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7882 -      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.7883 -	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.7884 -	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.7885 -	_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7886 -	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7887 +      if test -f /usr/libexec/ld.so; then
  1.7888 +	_LT_TAGVAR(hardcode_direct, $1)=yes
  1.7889 +	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  1.7890 +	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  1.7891 +	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1.7892 +	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.7893 +	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  1.7894 +	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7895 +	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  1.7896 +	else
  1.7897 +	  case $host_os in
  1.7898 +	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1.7899 +	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7900 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7901 +	     ;;
  1.7902 +	   *)
  1.7903 +	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.7904 +	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7905 +	     ;;
  1.7906 +	  esac
  1.7907 +	fi
  1.7908        else
  1.7909 -       case $host_os in
  1.7910 -	 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  1.7911 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  1.7912 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  1.7913 -	   ;;
  1.7914 -	 *)
  1.7915 -	   _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  1.7916 -	   _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  1.7917 -	   ;;
  1.7918 -       esac
  1.7919 +	_LT_TAG