Ignore:
Timestamp:
Jul 13, 2017, 9:01:05 AM (22 months ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/libltdl/m4/libtool.m4

    r5495 r5496  
    11# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    22#
    3 #   Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
     3#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     4#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     5#                 Foundation, Inc.
    46#   Written by Gordon Matzigkeit, 1996
    57#
     
    911
    1012m4_define([_LT_COPYING], [dnl
    11 # Copyright (C) 2014 Free Software Foundation, Inc.
    12 # This is free software; see the source for copying conditions.  There is NO
    13 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    14 
    15 # GNU Libtool is free software; you can redistribute it and/or modify
    16 # it under the terms of the GNU General Public License as published by
    17 # the Free Software Foundation; either version 2 of of the License, or
    18 # (at your option) any later version.
     13#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
     14#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
     15#                 Foundation, Inc.
     16#   Written by Gordon Matzigkeit, 1996
    1917#
    20 # As a special exception to the GNU General Public License, if you
    21 # distribute this file as part of a program or library that is built
    22 # using GNU Libtool, you may include this file under the  same
    23 # distribution terms that you use for the rest of that program.
     18#   This file is part of GNU Libtool.
    2419#
    25 # GNU Libtool is distributed in the hope that it will be useful, but
    26 # WITHOUT ANY WARRANTY; without even the implied warranty of
     20# GNU Libtool is free software; you can redistribute it and/or
     21# modify it under the terms of the GNU General Public License as
     22# published by the Free Software Foundation; either version 2 of
     23# the License, or (at your option) any later version.
     24#
     25# As a special exception to the GNU General Public License,
     26# if you distribute this file as part of a program or library that
     27# is built using GNU Libtool, you may include this file under the
     28# same distribution terms that you use for the rest of that program.
     29#
     30# GNU Libtool is distributed in the hope that it will be useful,
     31# but WITHOUT ANY WARRANTY; without even the implied warranty of
    2732# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    2833# GNU General Public License for more details.
    2934#
    3035# You should have received a copy of the GNU General Public License
    31 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     36# along with GNU Libtool; see the file COPYING.  If not, a copy
     37# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
     38# obtained by writing to the Free Software Foundation, Inc.,
     39# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    3240])
    3341
    34 # serial 58 LT_INIT
     42# serial 57 LT_INIT
    3543
    3644
     
    6068# ------------------
    6169AC_DEFUN([LT_INIT],
    62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
     70[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
    6371AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
    6472AC_BEFORE([$0], [LT_LANG])dnl
     
    8492
    8593# This can be used to rebuild libtool when needed
    86 LIBTOOL_DEPS=$ltmain
     94LIBTOOL_DEPS="$ltmain"
    8795
    8896# Always use our own libtool.
     
    104112
    105113
    106 # _LT_PREPARE_CC_BASENAME
    107 # -----------------------
    108 m4_defun([_LT_PREPARE_CC_BASENAME], [
    109 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
    110 func_cc_basename ()
    111 {
    112     for cc_temp in @S|@*""; do
    113       case $cc_temp in
    114         compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
    115         distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
    116         \-*) ;;
    117         *) break;;
    118       esac
    119     done
    120     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    121 }
    122 ])# _LT_PREPARE_CC_BASENAME
    123 
    124 
    125114# _LT_CC_BASENAME(CC)
    126115# -------------------
    127 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
    128 # but that macro is also expanded into generated libtool script, which
    129 # arranges for $SED and $ECHO to be set by different means.
     116# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
    130117m4_defun([_LT_CC_BASENAME],
    131 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
    132 AC_REQUIRE([_LT_DECL_SED])dnl
    133 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
    134 func_cc_basename $1
    135 cc_basename=$func_cc_basename_result
     118[for cc_temp in $1""; do
     119  case $cc_temp in
     120    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
     121    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
     122    \-*) ;;
     123    *) break;;
     124  esac
     125done
     126cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
    136127])
    137128
     
    140131# ----------------------
    141132# It is okay to use these file commands and assume they have been set
    142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
     133# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
    143134m4_defun([_LT_FILEUTILS_DEFAULTS],
    144135[: ${CP="cp -f"}
     
    187178m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
    188179m4_require([_LT_WITH_SYSROOT])dnl
    189 m4_require([_LT_CMD_TRUNCATE])dnl
    190180
    191181_LT_CONFIG_LIBTOOL_INIT([
    192 # See if we are running on zsh, and set the options that allow our
     182# See if we are running on zsh, and set the options which allow our
    193183# commands through without removal of \ escapes INIT.
    194 if test -n "\${ZSH_VERSION+set}"; then
     184if test -n "\${ZSH_VERSION+set}" ; then
    195185   setopt NO_GLOB_SUBST
    196186fi
    197187])
    198 if test -n "${ZSH_VERSION+set}"; then
     188if test -n "${ZSH_VERSION+set}" ; then
    199189   setopt NO_GLOB_SUBST
    200190fi
     
    209199  # reason, if we set the COLLECT_NAMES environment variable, the problems
    210200  # vanish in a puff of smoke.
    211   if test set != "${COLLECT_NAMES+set}"; then
     201  if test "X${COLLECT_NAMES+set}" != Xset; then
    212202    COLLECT_NAMES=
    213203    export COLLECT_NAMES
     
    220210can_build_shared=yes
    221211
    222 # All known linkers require a '.a' archive for static linking (except MSVC,
     212# All known linkers require a `.a' archive for static linking (except MSVC,
    223213# which needs '.lib').
    224214libext=a
    225215
    226 with_gnu_ld=$lt_cv_prog_gnu_ld
    227 
    228 old_CC=$CC
    229 old_CFLAGS=$CFLAGS
     216with_gnu_ld="$lt_cv_prog_gnu_ld"
     217
     218old_CC="$CC"
     219old_CFLAGS="$CFLAGS"
    230220
    231221# Set sane defaults for various variables
     
    280270# _LT_PROG_LTMAIN
    281271# ---------------
    282 # Note that this code is called both from 'configure', and 'config.status'
     272# Note that this code is called both from `configure', and `config.status'
    283273# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
    284 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
     274# `config.status' has no value for ac_aux_dir unless we are using Automake,
    285275# so we pass a copy along to make sure it has a sensible value anyway.
    286276m4_defun([_LT_PROG_LTMAIN],
    287277[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
    288278_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
    289 ltmain=$ac_aux_dir/ltmain.sh
     279ltmain="$ac_aux_dir/ltmain.sh"
    290280])# _LT_PROG_LTMAIN
    291281
     
    297287# So that we can recreate a full libtool script including additional
    298288# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
    299 # in macros and then make a single call at the end using the 'libtool'
     289# in macros and then make a single call at the end using the `libtool'
    300290# label.
    301291
     
    432422# _LT_CONFIG_STATUS_DECLARE([VARNAME])
    433423# ------------------------------------
    434 # Quote a variable value, and forward it to 'config.status' so that its
    435 # declaration there will have the same value as in 'configure'.  VARNAME
     424# Quote a variable value, and forward it to `config.status' so that its
     425# declaration there will have the same value as in `configure'.  VARNAME
    436426# must have a single quote delimited value for this to work.
    437427m4_define([_LT_CONFIG_STATUS_DECLARE],
     
    457447m4_defun([_LT_LIBTOOL_TAGS],
    458448[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
    459 available_tags='_LT_TAGS'dnl
     449available_tags="_LT_TAGS"dnl
    460450])
    461451
     
    485475# -----------------------
    486476# Produce commented declarations of non-tagged libtool config variables
    487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
     477# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
    488478# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
    489479# section) are produced by _LT_LIBTOOL_TAG_VARS.
     
    511501# variables for single and double quote escaping we saved from calls
    512502# to _LT_DECL, we can put quote escaped variables declarations
    513 # into 'config.status', and then the shell code to quote escape them in
    514 # for loops in 'config.status'.  Finally, any additional code accumulated
     503# into `config.status', and then the shell code to quote escape them in
     504# for loops in `config.status'.  Finally, any additional code accumulated
    515505# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
    516506m4_defun([_LT_CONFIG_COMMANDS],
     
    558548    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    559549    *[[\\\\\\\`\\"\\\$]]*)
    560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
     550      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
    561551      ;;
    562552    *)
     
    571561    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
    572562    *[[\\\\\\\`\\"\\\$]]*)
    573       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
     563      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
    574564      ;;
    575565    *)
     
    587577# reuse the environment learned by the parent script, and make the
    588578# file executable.  If COMMENT is supplied, it is inserted after the
    589 # '#!' sequence but before initialization text begins.  After this
     579# `#!' sequence but before initialization text begins.  After this
    590580# macro, additional text can be appended to FILE to form the body of
    591581# the child script.  The macro ends with non-zero status if the
     
    609599exec AS_MESSAGE_FD>&1
    610600_ASEOF
    611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
     601test $lt_write_fail = 0 && chmod +x $1[]dnl
    612602m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
    613603
     
    632622
    633623lt_cl_help="\
    634 '$as_me' creates a local libtool stub from the current configuration,
     624\`$as_me' creates a local libtool stub from the current configuration,
    635625for use in further configure time tests before the real libtool is
    636626generated.
     
    654644gives unlimited permision to copy, distribute and modify it."
    655645
    656 while test 0 != $[#]
     646while test $[#] != 0
    657647do
    658648  case $[1] in
     
    667657
    668658    -*) AC_MSG_ERROR([unrecognized option: $[1]
    669 Try '$[0] --help' for more information.]) ;;
     659Try \`$[0] --help' for more information.]) ;;
    670660
    671661    *) AC_MSG_ERROR([unrecognized argument: $[1]
    672 Try '$[0] --help' for more information.]) ;;
     662Try \`$[0] --help' for more information.]) ;;
    673663  esac
    674664  shift
     
    696686# config.log, so it can be properly (re)opened and appended to by config.lt.
    697687lt_cl_success=:
    698 test yes = "$silent" &&
     688test "$silent" = yes &&
    699689  lt_config_lt_args="$lt_config_lt_args --quiet"
    700690exec AS_MESSAGE_LOG_FD>/dev/null
     
    716706  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
    717707  m4_if(_LT_TAG, [C], [
    718     # See if we are running on zsh, and set the options that allow our
     708    # See if we are running on zsh, and set the options which allow our
    719709    # commands through without removal of \ escapes.
    720     if test -n "${ZSH_VERSION+set}"; then
     710    if test -n "${ZSH_VERSION+set}" ; then
    721711      setopt NO_GLOB_SUBST
    722712    fi
    723713
    724     cfgfile=${ofile}T
     714    cfgfile="${ofile}T"
    725715    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
    726716    $RM "$cfgfile"
     
    728718    cat <<_LT_EOF >> "$cfgfile"
    729719#! $SHELL
    730 # Generated automatically by $as_me ($PACKAGE) $VERSION
     720
     721# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
     722# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
    731723# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
    732724# NOTE: Changes made to this file will be lost: look at ltmain.sh.
    733 
    734 # Provide generalized library-building support services.
    735 # Written by Gordon Matzigkeit, 1996
    736 
     725#
    737726_LT_COPYING
    738727_LT_LIBTOOL_TAGS
    739 
    740 # Configured defaults for sys_lib_dlsearch_path munging.
    741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
    742728
    743729# ### BEGIN LIBTOOL CONFIG
     
    745731_LT_LIBTOOL_TAG_VARS
    746732# ### END LIBTOOL CONFIG
    747 
    748 _LT_EOF
    749 
    750     cat <<'_LT_EOF' >> "$cfgfile"
    751 
    752 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
    753 
    754 _LT_PREPARE_MUNGE_PATH_LIST
    755 _LT_PREPARE_CC_BASENAME
    756 
    757 # ### END FUNCTIONS SHARED WITH CONFIGURE
    758733
    759734_LT_EOF
     
    765740# reason, if we set the COLLECT_NAMES environment variable, the problems
    766741# vanish in a puff of smoke.
    767 if test set != "${COLLECT_NAMES+set}"; then
     742if test "X${COLLECT_NAMES+set}" != Xset; then
    768743  COLLECT_NAMES=
    769744  export COLLECT_NAMES
     
    781756  sed '$q' "$ltmain" >> "$cfgfile" \
    782757     || (rm -f "$cfgfile"; exit 1)
     758
     759  _LT_PROG_REPLACE_SHELLFNS
    783760
    784761   mv -f "$cfgfile" "$ofile" ||
     
    799776    PACKAGE='$PACKAGE'
    800777    VERSION='$VERSION'
     778    TIMESTAMP='$TIMESTAMP'
    801779    RM='$RM'
    802780    ofile='$ofile'], [])
     
    997975    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
    998976      [lt_cv_apple_cc_single_mod=no
    999       if test -z "$LT_MULTI_MODULE"; then
     977      if test -z "${LT_MULTI_MODULE}"; then
    1000978        # By default we will add the -single_module flag. You can override
    1001979        # by either setting the environment variable LT_MULTI_MODULE
     
    1015993        # Otherwise, if the output was created with a 0 exit code from
    1016994        # the compiler, it worked.
    1017         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
     995        elif test -f libconftest.dylib && test $_lt_result -eq 0; then
    1018996          lt_cv_apple_cc_single_mod=yes
    1019997        else
     
    10331011        [lt_cv_ld_exported_symbols_list=yes],
    10341012        [lt_cv_ld_exported_symbols_list=no])
    1035         LDFLAGS=$save_LDFLAGS
     1013        LDFLAGS="$save_LDFLAGS"
    10361014    ])
    10371015
     
    10551033      if test -s conftest.err && $GREP force_load conftest.err; then
    10561034        cat conftest.err >&AS_MESSAGE_LOG_FD
    1057       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
     1035      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
    10581036        lt_cv_ld_force_load=yes
    10591037      else
     
    10651043    case $host_os in
    10661044    rhapsody* | darwin1.[[012]])
    1067       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
     1045      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
    10681046    darwin1.*)
    1069       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
     1047      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    10701048    darwin*) # darwin 5.x on
    10711049      # if running on 10.5 or later, the deployment target defaults
     
    10741052      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
    10751053        10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
    1076           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
    1077         10.[[012]][[,.]]*)
    1078           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
     1054          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
     1055        10.[[012]]*)
     1056          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
    10791057        10.*)
    1080           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
     1058          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
    10811059      esac
    10821060    ;;
    10831061  esac
    1084     if test yes = "$lt_cv_apple_cc_single_mod"; then
     1062    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
    10851063      _lt_dar_single_mod='$single_module'
    10861064    fi
    1087     if test yes = "$lt_cv_ld_exported_symbols_list"; then
    1088       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
     1065    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
     1066      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
    10891067    else
    1090       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
     1068      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
    10911069    fi
    1092     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
     1070    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
    10931071      _lt_dsymutil='~$DSYMUTIL $lib || :'
    10941072    else
     
    11101088  _LT_TAGVAR(hardcode_automatic, $1)=yes
    11111089  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    1112   if test yes = "$lt_cv_ld_force_load"; then
    1113     _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
     1090  if test "$lt_cv_ld_force_load" = "yes"; then
     1091    _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
    11141092    m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
    11151093                  [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
     
    11181096  fi
    11191097  _LT_TAGVAR(link_all_deplibs, $1)=yes
    1120   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
     1098  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
    11211099  case $cc_basename in
    1122      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
     1100     ifort*) _lt_dar_can_shared=yes ;;
    11231101     *) _lt_dar_can_shared=$GCC ;;
    11241102  esac
    1125   if test yes = "$_lt_dar_can_shared"; then
     1103  if test "$_lt_dar_can_shared" = "yes"; then
    11261104    output_verbose_link_cmd=func_echo_all
    1127     _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"
    1128     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
    1129     _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"
    1130     _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"
     1105    _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}"
     1106    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
     1107    _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}"
     1108    _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}"
    11311109    m4_if([$1], [CXX],
    1132 [   if test yes != "$lt_cv_apple_cc_single_mod"; then
    1133       _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"
    1134       _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"
     1110[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
     1111      _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}"
     1112      _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}"
    11351113    fi
    11361114],[])
     
    11521130m4_defun([_LT_SYS_MODULE_PATH_AIX],
    11531131[m4_require([_LT_DECL_SED])dnl
    1154 if test set = "${lt_cv_aix_libpath+set}"; then
     1132if test "${lt_cv_aix_libpath+set}" = set; then
    11551133  aix_libpath=$lt_cv_aix_libpath
    11561134else
     
    11701148  fi],[])
    11711149  if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
    1172     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
     1150    _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
    11731151  fi
    11741152  ])
     
    11901168# Find how we can fake an echo command that does not interpret backslash.
    11911169# In particular, with Autoconf 2.60 or later we add some code to the start
    1192 # of the generated configure script that will find a shell with a builtin
    1193 # printf (that we can use as an echo command).
     1170# of the generated configure script which will find a shell with a builtin
     1171# printf (which we can use as an echo command).
    11941172m4_defun([_LT_PROG_ECHO_BACKSLASH],
    11951173[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     
    12191197func_echo_all ()
    12201198{
    1221     $ECHO "$*"
     1199    $ECHO "$*" 
    12221200}
    12231201
    1224 case $ECHO in
     1202case "$ECHO" in
    12251203  printf*) AC_MSG_RESULT([printf]) ;;
    12261204  print*) AC_MSG_RESULT([print -r]) ;;
     
    12481226[AC_MSG_CHECKING([for sysroot])
    12491227AC_ARG_WITH([sysroot],
    1250 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
    1251   [Search for dependent libraries within DIR (or the compiler's sysroot
    1252    if not specified).])],
     1228[  --with-sysroot[=DIR] Search for dependent libraries within DIR
     1229                        (or the compiler's sysroot if not specified).],
    12531230[], [with_sysroot=no])
    12541231
     
    12561233dnl in case the user passed a directory name.
    12571234lt_sysroot=
    1258 case $with_sysroot in #(
     1235case ${with_sysroot} in #(
    12591236 yes)
    1260    if test yes = "$GCC"; then
     1237   if test "$GCC" = yes; then
    12611238     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
    12621239   fi
     
    12681245   ;; #(
    12691246 *)
    1270    AC_MSG_RESULT([$with_sysroot])
     1247   AC_MSG_RESULT([${with_sysroot}])
    12711248   AC_MSG_ERROR([The sysroot must be an absolute path.])
    12721249   ;;
     
    12751252 AC_MSG_RESULT([${lt_sysroot:-no}])
    12761253_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
    1277 [dependent libraries, and where our libraries should be installed.])])
     1254[dependent libraries, and in which our libraries should be installed.])])
    12781255
    12791256# _LT_ENABLE_LOCK
     
    12831260  [AS_HELP_STRING([--disable-libtool-lock],
    12841261    [avoid locking (might break parallel builds)])])
    1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
     1262test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
    12861263
    12871264# Some flags need to be propagated to the compiler or linker for good
     
    12891266case $host in
    12901267ia64-*-hpux*)
    1291   # Find out what ABI is being produced by ac_compile, and set mode
    1292   # options accordingly.
     1268  # Find out which ABI we are using.
    12931269  echo 'int i;' > conftest.$ac_ext
    12941270  if AC_TRY_EVAL(ac_compile); then
    12951271    case `/usr/bin/file conftest.$ac_objext` in
    12961272      *ELF-32*)
    1297         HPUX_IA64_MODE=32
     1273        HPUX_IA64_MODE="32"
    12981274        ;;
    12991275      *ELF-64*)
    1300         HPUX_IA64_MODE=64
     1276        HPUX_IA64_MODE="64"
    13011277        ;;
    13021278    esac
     
    13051281  ;;
    13061282*-*-irix6*)
    1307   # Find out what ABI is being produced by ac_compile, and set linker
    1308   # options accordingly.
     1283  # Find out which ABI we are using.
    13091284  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
    13101285  if AC_TRY_EVAL(ac_compile); then
    1311     if test yes = "$lt_cv_prog_gnu_ld"; then
     1286    if test "$lt_cv_prog_gnu_ld" = yes; then
    13121287      case `/usr/bin/file conftest.$ac_objext` in
    13131288        *32-bit*)
     
    13381313  ;;
    13391314
    1340 mips64*-*linux*)
    1341   # Find out what ABI is being produced by ac_compile, and set linker
    1342   # options accordingly.
    1343   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
    1344   if AC_TRY_EVAL(ac_compile); then
    1345     emul=elf
    1346     case `/usr/bin/file conftest.$ac_objext` in
    1347       *32-bit*)
    1348         emul="${emul}32"
    1349         ;;
    1350       *64-bit*)
    1351         emul="${emul}64"
    1352         ;;
    1353     esac
    1354     case `/usr/bin/file conftest.$ac_objext` in
    1355       *MSB*)
    1356         emul="${emul}btsmip"
    1357         ;;
    1358       *LSB*)
    1359         emul="${emul}ltsmip"
    1360         ;;
    1361     esac
    1362     case `/usr/bin/file conftest.$ac_objext` in
    1363       *N32*)
    1364         emul="${emul}n32"
    1365         ;;
    1366     esac
    1367     LD="${LD-ld} -m $emul"
    1368   fi
    1369   rm -rf conftest*
    1370   ;;
    1371 
    13721315x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
    13731316s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
    1374   # Find out what ABI is being produced by ac_compile, and set linker
    1375   # options accordingly.  Note that the listed cases only cover the
    1376   # situations where additional linker options are needed (such as when
    1377   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
    1378   # vice versa); the common cases where no linker options are needed do
    1379   # not appear in the list.
     1317  # Find out which ABI we are using.
    13801318  echo 'int i;' > conftest.$ac_ext
    13811319  if AC_TRY_EVAL(ac_compile); then
     
    13961334            esac
    13971335            ;;
    1398           powerpc64le-*linux*)
     1336          powerpc64le-*)
    13991337            LD="${LD-ld} -m elf32lppclinux"
    14001338            ;;
    1401           powerpc64-*linux*)
     1339          powerpc64-*)
    14021340            LD="${LD-ld} -m elf32ppclinux"
    14031341            ;;
     
    14181356            LD="${LD-ld} -m elf_x86_64"
    14191357            ;;
    1420           powerpcle-*linux*)
     1358          powerpcle-*)
    14211359            LD="${LD-ld} -m elf64lppc"
    14221360            ;;
    1423           powerpc-*linux*)
     1361          powerpc-*)
    14241362            LD="${LD-ld} -m elf64ppc"
    14251363            ;;
     
    14391377*-*-sco3.2v5*)
    14401378  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
    1441   SAVE_CFLAGS=$CFLAGS
     1379  SAVE_CFLAGS="$CFLAGS"
    14421380  CFLAGS="$CFLAGS -belf"
    14431381  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
     
    14451383     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
    14461384     AC_LANG_POP])
    1447   if test yes != "$lt_cv_cc_needs_belf"; then
     1385  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
    14481386    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
    1449     CFLAGS=$SAVE_CFLAGS
     1387    CFLAGS="$SAVE_CFLAGS"
    14501388  fi
    14511389  ;;
    14521390*-*solaris*)
    1453   # Find out what ABI is being produced by ac_compile, and set linker
    1454   # options accordingly.
     1391  # Find out which ABI we are using.
    14551392  echo 'int i;' > conftest.$ac_ext
    14561393  if AC_TRY_EVAL(ac_compile); then
     
    14601397      yes*)
    14611398        case $host in
    1462         i?86-*-solaris*|x86_64-*-solaris*)
     1399        i?86-*-solaris*)
    14631400          LD="${LD-ld} -m elf_x86_64"
    14641401          ;;
     
    14691406        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
    14701407        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
    1471           LD=${LD-ld}_sol2
     1408          LD="${LD-ld}_sol2"
    14721409        fi
    14731410        ;;
     
    14851422esac
    14861423
    1487 need_locks=$enable_libtool_lock
     1424need_locks="$enable_libtool_lock"
    14881425])# _LT_ENABLE_LOCK
    14891426
     
    15041441      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
    15051442      AC_TRY_EVAL([lt_ar_try])
    1506       if test 0 -eq "$ac_status"; then
     1443      if test "$ac_status" -eq 0; then
    15071444        # Ensure the archiver fails upon bogus file names.
    15081445        rm -f conftest.$ac_objext libconftest.a
    15091446        AC_TRY_EVAL([lt_ar_try])
    1510         if test 0 -ne "$ac_status"; then
     1447        if test "$ac_status" -ne 0; then
    15111448          lt_cv_ar_at_file=@
    15121449        fi
     
    15161453  ])
    15171454
    1518 if test no = "$lt_cv_ar_at_file"; then
     1455if test "x$lt_cv_ar_at_file" = xno; then
    15191456  archiver_list_spec=
    15201457else
     
    15471484if test -n "$RANLIB"; then
    15481485  case $host_os in
    1549   bitrig* | openbsd*)
     1486  openbsd*)
    15501487    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
    15511488    ;;
     
    15831520   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
    15841521   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
    1585    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
     1522   lt_compiler_flag="$3"
    15861523   # Insert the option either (1) after the last *FLAGS variable, or
    15871524   # (2) before a word containing "conftest.", or (3) at the end.
     
    16101547])
    16111548
    1612 if test yes = "[$]$2"; then
     1549if test x"[$]$2" = xyes; then
    16131550    m4_if([$5], , :, [$5])
    16141551else
     
    16321569AC_CACHE_CHECK([$1], [$2],
    16331570  [$2=no
    1634    save_LDFLAGS=$LDFLAGS
     1571   save_LDFLAGS="$LDFLAGS"
    16351572   LDFLAGS="$LDFLAGS $3"
    16361573   echo "$lt_simple_link_test_code" > conftest.$ac_ext
     
    16511588   fi
    16521589   $RM -r conftest*
    1653    LDFLAGS=$save_LDFLAGS
     1590   LDFLAGS="$save_LDFLAGS"
    16541591])
    16551592
    1656 if test yes = "[$]$2"; then
     1593if test x"[$]$2" = xyes; then
    16571594    m4_if([$4], , :, [$4])
    16581595else
     
    16751612AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
    16761613  i=0
    1677   teststring=ABCD
     1614  teststring="ABCD"
    16781615
    16791616  case $build_os in
     
    17151652    ;;
    17161653
    1717   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
     1654  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
    17181655    # This has been around since 386BSD, at least.  Likely further.
    17191656    if test -x /sbin/sysctl; then
     
    17661703    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
    17671704    if test -n "$lt_cv_sys_max_cmd_len" && \
    1768        test undefined != "$lt_cv_sys_max_cmd_len"; then
     1705        test undefined != "$lt_cv_sys_max_cmd_len"; then
    17691706      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
    17701707      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     
    17721709      # Make teststring a little bigger before we do anything with it.
    17731710      # a 1K string should be a reasonable start.
    1774       for i in 1 2 3 4 5 6 7 8; do
     1711      for i in 1 2 3 4 5 6 7 8 ; do
    17751712        teststring=$teststring$teststring
    17761713      done
     
    17791716      # maximum length that is only half of the actual maximum length, but
    17801717      # we can't tell.
    1781       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
     1718      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
    17821719                 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
    1783               test 17 != "$i" # 1/2 MB should be enough
     1720              test $i != 17 # 1/2 MB should be enough
    17841721      do
    17851722        i=`expr $i + 1`
     
    17971734  esac
    17981735])
    1799 if test -n "$lt_cv_sys_max_cmd_len"; then
     1736if test -n $lt_cv_sys_max_cmd_len ; then
    18001737  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
    18011738else
     
    18251762m4_defun([_LT_TRY_DLOPEN_SELF],
    18261763[m4_require([_LT_HEADER_DLFCN])dnl
    1827 if test yes = "$cross_compiling"; then :
     1764if test "$cross_compiling" = yes; then :
    18281765  [$4]
    18291766else
     
    18721809#endif
    18731810
    1874 /* When -fvisibility=hidden is used, assume the code has been annotated
     1811/* When -fvisbility=hidden is used, assume the code has been annotated
    18751812   correspondingly for the symbols needed.  */
    1876 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
     1813#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
    18771814int fnord () __attribute__((visibility("default")));
    18781815#endif
     
    19001837}]
    19011838_LT_EOF
    1902   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
     1839  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
    19031840    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    19041841    lt_status=$?
     
    19211858AC_DEFUN([LT_SYS_DLOPEN_SELF],
    19221859[m4_require([_LT_HEADER_DLFCN])dnl
    1923 if test yes != "$enable_dlopen"; then
     1860if test "x$enable_dlopen" != xyes; then
    19241861  enable_dlopen=unknown
    19251862  enable_dlopen_self=unknown
     
    19311868  case $host_os in
    19321869  beos*)
    1933     lt_cv_dlopen=load_add_on
     1870    lt_cv_dlopen="load_add_on"
    19341871    lt_cv_dlopen_libs=
    19351872    lt_cv_dlopen_self=yes
     
    19371874
    19381875  mingw* | pw32* | cegcc*)
    1939     lt_cv_dlopen=LoadLibrary
     1876    lt_cv_dlopen="LoadLibrary"
    19401877    lt_cv_dlopen_libs=
    19411878    ;;
    19421879
    19431880  cygwin*)
    1944     lt_cv_dlopen=dlopen
     1881    lt_cv_dlopen="dlopen"
    19451882    lt_cv_dlopen_libs=
    19461883    ;;
    19471884
    19481885  darwin*)
    1949     # if libdl is installed we need to link against it
     1886  # if libdl is installed we need to link against it
    19501887    AC_CHECK_LIB([dl], [dlopen],
    1951                 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
    1952     lt_cv_dlopen=dyld
     1888                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
     1889    lt_cv_dlopen="dyld"
    19531890    lt_cv_dlopen_libs=
    19541891    lt_cv_dlopen_self=yes
     
    19561893    ;;
    19571894
    1958   tpf*)
    1959     # Don't try to run any link tests for TPF.  We know it's impossible
    1960     # because TPF is a cross-compiler, and we know how we open DSOs.
    1961     lt_cv_dlopen=dlopen
    1962     lt_cv_dlopen_libs=
    1963     lt_cv_dlopen_self=no
    1964     ;;
    1965 
    19661895  *)
    19671896    AC_CHECK_FUNC([shl_load],
    1968           [lt_cv_dlopen=shl_load],
     1897          [lt_cv_dlopen="shl_load"],
    19691898      [AC_CHECK_LIB([dld], [shl_load],
    1970             [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
     1899            [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
    19711900        [AC_CHECK_FUNC([dlopen],
    1972               [lt_cv_dlopen=dlopen],
     1901              [lt_cv_dlopen="dlopen"],
    19731902          [AC_CHECK_LIB([dl], [dlopen],
    1974                 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
     1903                [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
    19751904            [AC_CHECK_LIB([svld], [dlopen],
    1976                   [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
     1905                  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
    19771906              [AC_CHECK_LIB([dld], [dld_link],
    1978                     [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
     1907                    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
    19791908              ])
    19801909            ])
     
    19851914  esac
    19861915
    1987   if test no = "$lt_cv_dlopen"; then
     1916  if test "x$lt_cv_dlopen" != xno; then
     1917    enable_dlopen=yes
     1918  else
    19881919    enable_dlopen=no
    1989   else
    1990     enable_dlopen=yes
    19911920  fi
    19921921
    19931922  case $lt_cv_dlopen in
    19941923  dlopen)
    1995     save_CPPFLAGS=$CPPFLAGS
    1996     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
    1997 
    1998     save_LDFLAGS=$LDFLAGS
     1924    save_CPPFLAGS="$CPPFLAGS"
     1925    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
     1926
     1927    save_LDFLAGS="$LDFLAGS"
    19991928    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
    20001929
    2001     save_LIBS=$LIBS
     1930    save_LIBS="$LIBS"
    20021931    LIBS="$lt_cv_dlopen_libs $LIBS"
    20031932
     
    20091938    ])
    20101939
    2011     if test yes = "$lt_cv_dlopen_self"; then
     1940    if test "x$lt_cv_dlopen_self" = xyes; then
    20121941      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
    20131942      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
     
    20191948    fi
    20201949
    2021     CPPFLAGS=$save_CPPFLAGS
    2022     LDFLAGS=$save_LDFLAGS
    2023     LIBS=$save_LIBS
     1950    CPPFLAGS="$save_CPPFLAGS"
     1951    LDFLAGS="$save_LDFLAGS"
     1952    LIBS="$save_LIBS"
    20241953    ;;
    20251954  esac
     
    21132042_LT_COMPILER_C_O([$1])
    21142043
    2115 hard_links=nottested
    2116 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
     2044hard_links="nottested"
     2045if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
    21172046  # do not overwrite the value of need_locks provided by the user
    21182047  AC_MSG_CHECKING([if we can lock with hard links])
     
    21242053  ln conftest.a conftest.b 2>/dev/null && hard_links=no
    21252054  AC_MSG_RESULT([$hard_links])
    2126   if test no = "$hard_links"; then
    2127     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
     2055  if test "$hard_links" = no; then
     2056    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
    21282057    need_locks=warn
    21292058  fi
     
    21522081         [The name of the directory that contains temporary libtool files])dnl
    21532082m4_pattern_allow([LT_OBJDIR])dnl
    2154 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
    2155   [Define to the sub-directory where libtool stores uninstalled libraries.])
     2083AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
     2084  [Define to the sub-directory in which libtool stores uninstalled libraries.])
    21562085])# _LT_CHECK_OBJDIR
    21572086
     
    21652094if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
    21662095   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
    2167    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
     2096   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
    21682097
    21692098  # We can hardcode non-existent directories.
    2170   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
     2099  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
    21712100     # If the only mechanism to avoid hardcoding is shlibpath_var, we
    21722101     # have to relink, otherwise we might link with an installed library
    21732102     # when we should be linking with a yet-to-be-installed one
    2174      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
    2175      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
     2103     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
     2104     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
    21762105    # Linking always hardcodes the temporary library directory.
    21772106    _LT_TAGVAR(hardcode_action, $1)=relink
     
    21872116AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
    21882117
    2189 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
    2190    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
     2118if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
     2119   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
    21912120  # Fast installation is not supported
    21922121  enable_fast_install=no
    2193 elif test yes = "$shlibpath_overrides_runpath" ||
    2194      test no = "$enable_shared"; then
     2122elif test "$shlibpath_overrides_runpath" = yes ||
     2123     test "$enable_shared" = no; then
    21952124  # Fast installation is not necessary
    21962125  enable_fast_install=needless
     
    22162145  case $host_os in
    22172146  darwin*)
    2218     if test -n "$STRIP"; then
     2147    if test -n "$STRIP" ; then
    22192148      striplib="$STRIP -x"
    22202149      old_striplib="$STRIP -S"
     
    22342163
    22352164
    2236 # _LT_PREPARE_MUNGE_PATH_LIST
    2237 # ---------------------------
    2238 # Make sure func_munge_path_list() is defined correctly.
    2239 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
    2240 [[# func_munge_path_list VARIABLE PATH
    2241 # -----------------------------------
    2242 # VARIABLE is name of variable containing _space_ separated list of
    2243 # directories to be munged by the contents of PATH, which is string
    2244 # having a format:
    2245 # "DIR[:DIR]:"
    2246 #       string "DIR[ DIR]" will be prepended to VARIABLE
    2247 # ":DIR[:DIR]"
    2248 #       string "DIR[ DIR]" will be appended to VARIABLE
    2249 # "DIRP[:DIRP]::[DIRA:]DIRA"
    2250 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
    2251 #       "DIRA[ DIRA]" will be appended to VARIABLE
    2252 # "DIR[:DIR]"
    2253 #       VARIABLE will be replaced by "DIR[ DIR]"
    2254 func_munge_path_list ()
    2255 {
    2256     case x@S|@2 in
    2257     x)
    2258         ;;
    2259     *:)
    2260         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
    2261         ;;
    2262     x:*)
    2263         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
    2264         ;;
    2265     *::*)
    2266         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
    2267         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
    2268         ;;
    2269     *)
    2270         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
    2271         ;;
    2272     esac
    2273 }
    2274 ]])# _LT_PREPARE_PATH_LIST
    2275 
    2276 
    22772165# _LT_SYS_DYNAMIC_LINKER([TAG])
    22782166# -----------------------------
     
    22852173m4_require([_LT_DECL_SED])dnl
    22862174m4_require([_LT_CHECK_SHELL_FEATURES])dnl
    2287 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
    22882175AC_MSG_CHECKING([dynamic linker characteristics])
    22892176m4_if([$1],
    22902177        [], [
    2291 if test yes = "$GCC"; then
     2178if test "$GCC" = yes; then
    22922179  case $host_os in
    2293     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
    2294     *) lt_awk_arg='/^libraries:/' ;;
     2180    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
     2181    *) lt_awk_arg="/^libraries:/" ;;
    22952182  esac
    22962183  case $host_os in
    2297     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
    2298     *) lt_sed_strip_eq='s|=/|/|g' ;;
     2184    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
     2185    *) lt_sed_strip_eq="s,=/,/,g" ;;
    22992186  esac
    23002187  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
     
    23122199  esac
    23132200  # Ok, now we have the path, separated by spaces, we can step through it
    2314   # and add multilib dir if necessary...
     2201  # and add multilib dir if necessary.
    23152202  lt_tmp_lt_search_path_spec=
    2316   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
    2317   # ...but if some path component already ends with the multilib dir we assume
    2318   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
    2319   case "$lt_multi_os_dir; $lt_search_path_spec " in
    2320   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
    2321     lt_multi_os_dir=
    2322     ;;
    2323   esac
     2203  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
    23242204  for lt_sys_path in $lt_search_path_spec; do
    2325     if test -d "$lt_sys_path$lt_multi_os_dir"; then
    2326       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
    2327     elif test -n "$lt_multi_os_dir"; then
     2205    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
     2206      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
     2207    else
    23282208      test -d "$lt_sys_path" && \
    23292209        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
     
    23312211  done
    23322212  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
    2333 BEGIN {RS = " "; FS = "/|\n";} {
    2334   lt_foo = "";
    2335   lt_count = 0;
     2213BEGIN {RS=" "; FS="/|\n";} {
     2214  lt_foo="";
     2215  lt_count=0;
    23362216  for (lt_i = NF; lt_i > 0; lt_i--) {
    23372217    if ($lt_i != "" && $lt_i != ".") {
     
    23402220      } else {
    23412221        if (lt_count == 0) {
    2342           lt_foo = "/" $lt_i lt_foo;
     2222          lt_foo="/" $lt_i lt_foo;
    23432223        } else {
    23442224          lt_count--;
     
    23542234  case $host_os in
    23552235    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
    2356       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
     2236      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
    23572237  esac
    23582238  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
     
    23632243libname_spec='lib$name'
    23642244soname_spec=
    2365 shrext_cmds=.so
     2245shrext_cmds=".so"
    23662246postinstall_cmds=
    23672247postuninstall_cmds=
     
    23802260need_version=unknown
    23812261
    2382 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
    2383 [User-defined run-time library search path.])
    2384 
    23852262case $host_os in
    23862263aix3*)
    23872264  version_type=linux # correct to gnu/linux during the next big refactor
    2388   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
     2265  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
    23892266  shlibpath_var=LIBPATH
    23902267
    23912268  # AIX 3 has no versioning support, so we append a major version to the name.
    2392   soname_spec='$libname$release$shared_ext$major'
     2269  soname_spec='${libname}${release}${shared_ext}$major'
    23932270  ;;
    23942271
     
    23982275  need_version=no
    23992276  hardcode_into_libs=yes
    2400   if test ia64 = "$host_cpu"; then
     2277  if test "$host_cpu" = ia64; then
    24012278    # AIX 5 supports IA64
    2402     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
     2279    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
    24032280    shlibpath_var=LD_LIBRARY_PATH
    24042281  else
    24052282    # With GCC up to 2.95.x, collect2 would create an import file
    24062283    # for dependence libraries.  The import file would start with
    2407     # the line '#! .'.  This would cause the generated library to
    2408     # depend on '.', always an invalid library.  This was fixed in
     2284    # the line `#! .'.  This would cause the generated library to
     2285    # depend on `.', always an invalid library.  This was fixed in
    24092286    # development snapshots of GCC prior to 3.0.
    24102287    case $host_os in
     
    24122289      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
    24132290           echo ' yes '
    2414            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
     2291           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
    24152292        :
    24162293      else
     
    24192296      ;;
    24202297    esac
    2421     # Using Import Files as archive members, it is possible to support
    2422     # filename-based versioning of shared library archives on AIX. While
    2423     # this would work for both with and without runtime linking, it will
    2424     # prevent static linking of such archives. So we do filename-based
    2425     # shared library versioning with .so extension only, which is used
    2426     # when both runtime linking and shared linking is enabled.
    2427     # Unfortunately, runtime linking may impact performance, so we do
    2428     # not want this to be the default eventually. Also, we use the
    2429     # versioned .so libs for executables only if there is the -brtl
    2430     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
    2431     # To allow for filename-based versioning support, we need to create
    2432     # libNAME.so.V as an archive file, containing:
    2433     # *) an Import File, referring to the versioned filename of the
    2434     #    archive as well as the shared archive member, telling the
    2435     #    bitwidth (32 or 64) of that shared object, and providing the
    2436     #    list of exported symbols of that shared object, eventually
    2437     #    decorated with the 'weak' keyword
    2438     # *) the shared object with the F_LOADONLY flag set, to really avoid
    2439     #    it being seen by the linker.
    2440     # At run time we better use the real file rather than another symlink,
    2441     # but for link time we create the symlink libNAME.so -> libNAME.so.V
    2442 
    2443     case $with_aix_soname,$aix_use_runtimelinking in
    2444     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
     2298    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
    24452299    # soname into executable. Probably we can add versioning support to
    24462300    # collect2, so additional links can be useful in future.
    2447     aix,yes) # traditional libtool
    2448       dynamic_linker='AIX unversionable lib.so'
     2301    if test "$aix_use_runtimelinking" = yes; then
    24492302      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
    24502303      # instead of lib<name>.a to let people know that these are not
    24512304      # typical AIX shared libraries.
    2452       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2453       ;;
    2454     aix,no) # traditional AIX only
    2455       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
     2305      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2306    else
    24562307      # We preserve .a as extension for shared libraries through AIX4.2
    24572308      # and later when we are not doing run time linking.
    2458       library_names_spec='$libname$release.a $libname.a'
    2459       soname_spec='$libname$release$shared_ext$major'
    2460       ;;
    2461     svr4,*) # full svr4 only
    2462       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
    2463       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
    2464       # We do not specify a path in Import Files, so LIBPATH fires.
    2465       shlibpath_overrides_runpath=yes
    2466       ;;
    2467     *,yes) # both, prefer svr4
    2468       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
    2469       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
    2470       # unpreferred sharedlib libNAME.a needs extra handling
    2471       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
    2472       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
    2473       # We do not specify a path in Import Files, so LIBPATH fires.
    2474       shlibpath_overrides_runpath=yes
    2475       ;;
    2476     *,no) # both, prefer aix
    2477       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
    2478       library_names_spec='$libname$release.a $libname.a'
    2479       soname_spec='$libname$release$shared_ext$major'
    2480       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
    2481       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
    2482       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
    2483       ;;
    2484     esac
     2309      library_names_spec='${libname}${release}.a $libname.a'
     2310      soname_spec='${libname}${release}${shared_ext}$major'
     2311    fi
    24852312    shlibpath_var=LIBPATH
    24862313  fi
     
    24922319    # Since July 2007 AmigaOS4 officially supports .so libraries.
    24932320    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
    2494     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
     2321    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    24952322    ;;
    24962323  m68k)
    24972324    library_names_spec='$libname.ixlibrary $libname.a'
    24982325    # Create ${libname}_ixlibrary.a entries in /sys/libs.
    2499     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
     2326    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
    25002327    ;;
    25012328  esac
     
    25032330
    25042331beos*)
    2505   library_names_spec='$libname$shared_ext'
     2332  library_names_spec='${libname}${shared_ext}'
    25062333  dynamic_linker="$host_os ld.so"
    25072334  shlibpath_var=LIBRARY_PATH
     
    25112338  version_type=linux # correct to gnu/linux during the next big refactor
    25122339  need_version=no
    2513   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2514   soname_spec='$libname$release$shared_ext$major'
     2340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2341  soname_spec='${libname}${release}${shared_ext}$major'
    25152342  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
    25162343  shlibpath_var=LD_LIBRARY_PATH
     
    25242351cygwin* | mingw* | pw32* | cegcc*)
    25252352  version_type=windows
    2526   shrext_cmds=.dll
     2353  shrext_cmds=".dll"
    25272354  need_version=no
    25282355  need_lib_prefix=no
     
    25332360    library_names_spec='$libname.dll.a'
    25342361    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    2535     postinstall_cmds='base_file=`basename \$file`~
    2536       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
     2362    postinstall_cmds='base_file=`basename \${file}`~
     2363      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
    25372364      dldir=$destdir/`dirname \$dlpath`~
    25382365      test -d \$dldir || mkdir -p \$dldir~
     
    25502377    cygwin*)
    25512378      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
    2552       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
     2379      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    25532380m4_if([$1], [],[
    25542381      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
     
    25562383    mingw* | cegcc*)
    25572384      # MinGW DLLs use traditional 'lib' prefix
    2558       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
     2385      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    25592386      ;;
    25602387    pw32*)
    25612388      # pw32 DLLs use 'pw' prefix rather than 'lib'
    2562       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
     2389      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    25632390      ;;
    25642391    esac
     
    25692396    # Native MSVC
    25702397    libname_spec='$name'
    2571     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
    2572     library_names_spec='$libname.dll.lib'
     2398    soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
     2399    library_names_spec='${libname}.dll.lib'
    25732400
    25742401    case $build_os in
     
    25972424      ;;
    25982425    *)
    2599       sys_lib_search_path_spec=$LIB
     2426      sys_lib_search_path_spec="$LIB"
    26002427      if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
    26012428        # It is most probably a Windows format PATH.
     
    26102437
    26112438    # DLL is installed to $(libdir)/../bin by postinstall_cmds
    2612     postinstall_cmds='base_file=`basename \$file`~
    2613       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
     2439    postinstall_cmds='base_file=`basename \${file}`~
     2440      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
    26142441      dldir=$destdir/`dirname \$dlpath`~
    26152442      test -d \$dldir || mkdir -p \$dldir~
     
    26242451  *)
    26252452    # Assume MSVC wrapper
    2626     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
     2453    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
    26272454    dynamic_linker='Win32 ld.exe'
    26282455    ;;
     
    26372464  need_lib_prefix=no
    26382465  need_version=no
    2639   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
    2640   soname_spec='$libname$release$major$shared_ext'
     2466  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
     2467  soname_spec='${libname}${release}${major}$shared_ext'
    26412468  shlibpath_overrides_runpath=yes
    26422469  shlibpath_var=DYLD_LIBRARY_PATH
     
    26512478  need_lib_prefix=no
    26522479  need_version=no
    2653   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2654   soname_spec='$libname$release$shared_ext$major'
     2480  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
     2481  soname_spec='${libname}${release}${shared_ext}$major'
    26552482  shlibpath_var=LD_LIBRARY_PATH
    26562483  ;;
     
    26702497  case $version_type in
    26712498    freebsd-elf*)
    2672       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2673       soname_spec='$libname$release$shared_ext$major'
     2499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
    26742500      need_version=no
    26752501      need_lib_prefix=no
    26762502      ;;
    26772503    freebsd-*)
    2678       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
     2504      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
    26792505      need_version=yes
    26802506      ;;
     
    27062532  need_version=no
    27072533  dynamic_linker="$host_os runtime_loader"
    2708   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2709   soname_spec='$libname$release$shared_ext$major'
     2534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
     2535  soname_spec='${libname}${release}${shared_ext}$major'
    27102536  shlibpath_var=LIBRARY_PATH
    2711   shlibpath_overrides_runpath=no
     2537  shlibpath_overrides_runpath=yes
    27122538  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
    27132539  hardcode_into_libs=yes
     
    27272553    shlibpath_var=LD_LIBRARY_PATH
    27282554    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    2729     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2730     soname_spec='$libname$release$shared_ext$major'
    2731     if test 32 = "$HPUX_IA64_MODE"; then
     2555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2556    soname_spec='${libname}${release}${shared_ext}$major'
     2557    if test "X$HPUX_IA64_MODE" = X32; then
    27322558      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
    2733       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
    27342559    else
    27352560      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
    2736       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
    27372561    fi
     2562    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    27382563    ;;
    27392564  hppa*64*)
     
    27432568    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
    27442569    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
    2745     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2746     soname_spec='$libname$release$shared_ext$major'
     2570    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2571    soname_spec='${libname}${release}${shared_ext}$major'
    27472572    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
    27482573    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     
    27532578    shlibpath_var=SHLIB_PATH
    27542579    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
    2755     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2756     soname_spec='$libname$release$shared_ext$major'
     2580    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2581    soname_spec='${libname}${release}${shared_ext}$major'
    27572582    ;;
    27582583  esac
     
    27672592  need_lib_prefix=no
    27682593  need_version=no
    2769   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2770   soname_spec='$libname$release$shared_ext$major'
     2594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     2595  soname_spec='${libname}${release}${shared_ext}$major'
    27712596  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
    27722597  shlibpath_var=LD_LIBRARY_PATH
     
    27792604    nonstopux*) version_type=nonstopux ;;
    27802605    *)
    2781         if test yes = "$lt_cv_prog_gnu_ld"; then
     2606        if test "$lt_cv_prog_gnu_ld" = yes; then
    27822607                version_type=linux # correct to gnu/linux during the next big refactor
    27832608        else
     
    27872612  need_lib_prefix=no
    27882613  need_version=no
    2789   soname_spec='$libname$release$shared_ext$major'
    2790   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
     2614  soname_spec='${libname}${release}${shared_ext}$major'
     2615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
    27912616  case $host_os in
    27922617  irix5* | nonstopux*)
     
    28072632  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
    28082633  shlibpath_overrides_runpath=no
    2809   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
    2810   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
     2634  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
     2635  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
    28112636  hardcode_into_libs=yes
    28122637  ;;
     
    28152640linux*oldld* | linux*aout* | linux*coff*)
    28162641  dynamic_linker=no
    2817   ;;
    2818 
    2819 linux*android*)
    2820   version_type=none # Android doesn't support versioned libraries.
    2821   need_lib_prefix=no
    2822   need_version=no
    2823   library_names_spec='$libname$release$shared_ext'
    2824   soname_spec='$libname$release$shared_ext'
    2825   finish_cmds=
    2826   shlibpath_var=LD_LIBRARY_PATH
    2827   shlibpath_overrides_runpath=yes
    2828 
    2829   # This implies no fast_install, which is unacceptable.
    2830   # Some rework will be needed to allow for fast_install
    2831   # before this can be enabled.
    2832   hardcode_into_libs=yes
    2833 
    2834   dynamic_linker='Android linker'
    2835   # Don't embed -rpath directories since the linker doesn't support them.
    2836   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    28372642  ;;
    28382643
     
    28422647  need_lib_prefix=no
    28432648  need_version=no
    2844   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2845   soname_spec='$libname$release$shared_ext$major'
     2649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2650  soname_spec='${libname}${release}${shared_ext}$major'
    28462651  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
    28472652  shlibpath_var=LD_LIBRARY_PATH
     
    28682673  hardcode_into_libs=yes
    28692674
    2870   # Ideally, we could use ldconfig to report *all* directores which are
    2871   # searched for libraries, however this is still not possible.  Aside from not
    2872   # being certain /sbin/ldconfig is available, command
    2873   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
    2874   # even though it is searched at run-time.  Try to do the best guess by
    2875   # appending ld.so.conf contents (and includes) to the search path.
     2675  # Append ld.so.conf contents to the search path
    28762676  if test -f /etc/ld.so.conf; then
    28772677    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[   ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
     
    29052705  need_version=no
    29062706  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
    2907     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
     2707    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    29082708    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    29092709    dynamic_linker='NetBSD (a.out) ld.so'
    29102710  else
    2911     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2912     soname_spec='$libname$release$shared_ext$major'
     2711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
     2712    soname_spec='${libname}${release}${shared_ext}$major'
    29132713    dynamic_linker='NetBSD ld.elf_so'
    29142714  fi
     
    29202720newsos6)
    29212721  version_type=linux # correct to gnu/linux during the next big refactor
    2922   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
     2722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    29232723  shlibpath_var=LD_LIBRARY_PATH
    29242724  shlibpath_overrides_runpath=yes
     
    29292729  need_lib_prefix=no
    29302730  need_version=no
    2931   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    2932   soname_spec='$libname$release$shared_ext$major'
     2731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2732  soname_spec='${libname}${release}${shared_ext}$major'
    29332733  shlibpath_var=LD_LIBRARY_PATH
    29342734  shlibpath_overrides_runpath=no
     
    29372737  ;;
    29382738
    2939 openbsd* | bitrig*)
     2739openbsd*)
    29402740  version_type=sunos
    2941   sys_lib_dlsearch_path_spec=/usr/lib
     2741  sys_lib_dlsearch_path_spec="/usr/lib"
    29422742  need_lib_prefix=no
    2943   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
    2944     need_version=no
    2945   else
    2946     need_version=yes
    2947   fi
    2948   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
     2743  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     2744  case $host_os in
     2745    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
     2746    *)                          need_version=no  ;;
     2747  esac
     2748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    29492749  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    29502750  shlibpath_var=LD_LIBRARY_PATH
    2951   shlibpath_overrides_runpath=yes
     2751  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     2752    case $host_os in
     2753      openbsd2.[[89]] | openbsd2.[[89]].*)
     2754        shlibpath_overrides_runpath=no
     2755        ;;
     2756      *)
     2757        shlibpath_overrides_runpath=yes
     2758        ;;
     2759      esac
     2760  else
     2761    shlibpath_overrides_runpath=yes
     2762  fi
    29522763  ;;
    29532764
    29542765os2*)
    29552766  libname_spec='$name'
    2956   version_type=windows
    2957   shrext_cmds=.dll
    2958   need_version=no
     2767  shrext_cmds=".dll"
    29592768  need_lib_prefix=no
    2960   # OS/2 can only load a DLL with a base name of 8 characters or less.
    2961   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
    2962     v=$($ECHO $release$versuffix | tr -d .-);
    2963     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
    2964     $ECHO $n$v`$shared_ext'
    2965   library_names_spec='${libname}_dll.$libext'
     2769  library_names_spec='$libname${shared_ext} $libname.a'
    29662770  dynamic_linker='OS/2 ld.exe'
    2967   shlibpath_var=BEGINLIBPATH
    2968   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
    2969   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
    2970   postinstall_cmds='base_file=`basename \$file`~
    2971     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
    2972     dldir=$destdir/`dirname \$dlpath`~
    2973     test -d \$dldir || mkdir -p \$dldir~
    2974     $install_prog $dir/$dlname \$dldir/$dlname~
    2975     chmod a+x \$dldir/$dlname~
    2976     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
    2977       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
    2978     fi'
    2979   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
    2980     dlpath=$dir/\$dldll~
    2981     $RM \$dlpath'
     2771  shlibpath_var=LIBPATH
    29822772  ;;
    29832773
     
    29862776  need_lib_prefix=no
    29872777  need_version=no
    2988   soname_spec='$libname$release$shared_ext$major'
    2989   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
     2778  soname_spec='${libname}${release}${shared_ext}$major'
     2779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    29902780  shlibpath_var=LD_LIBRARY_PATH
    29912781  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
    2992   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
     2782  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
    29932783  ;;
    29942784
     
    30012791  need_lib_prefix=no
    30022792  need_version=no
    3003   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    3004   soname_spec='$libname$release$shared_ext$major'
     2793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2794  soname_spec='${libname}${release}${shared_ext}$major'
    30052795  shlibpath_var=LD_LIBRARY_PATH
    30062796  shlibpath_overrides_runpath=yes
     
    30122802sunos4*)
    30132803  version_type=sunos
    3014   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
     2804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    30152805  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
    30162806  shlibpath_var=LD_LIBRARY_PATH
    30172807  shlibpath_overrides_runpath=yes
    3018   if test yes = "$with_gnu_ld"; then
     2808  if test "$with_gnu_ld" = yes; then
    30192809    need_lib_prefix=no
    30202810  fi
     
    30242814sysv4 | sysv4.3*)
    30252815  version_type=linux # correct to gnu/linux during the next big refactor
    3026   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    3027   soname_spec='$libname$release$shared_ext$major'
     2816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2817  soname_spec='${libname}${release}${shared_ext}$major'
    30282818  shlibpath_var=LD_LIBRARY_PATH
    30292819  case $host_vendor in
     
    30462836
    30472837sysv4*MP*)
    3048   if test -d /usr/nec; then
     2838  if test -d /usr/nec ;then
    30492839    version_type=linux # correct to gnu/linux during the next big refactor
    3050     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
    3051     soname_spec='$libname$shared_ext.$major'
     2840    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
     2841    soname_spec='$libname${shared_ext}.$major'
    30522842    shlibpath_var=LD_LIBRARY_PATH
    30532843  fi
     
    30552845
    30562846sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
    3057   version_type=sco
     2847  version_type=freebsd-elf
    30582848  need_lib_prefix=no
    30592849  need_version=no
    3060   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
    3061   soname_spec='$libname$release$shared_ext$major'
     2850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
     2851  soname_spec='${libname}${release}${shared_ext}$major'
    30622852  shlibpath_var=LD_LIBRARY_PATH
    30632853  shlibpath_overrides_runpath=yes
    30642854  hardcode_into_libs=yes
    3065   if test yes = "$with_gnu_ld"; then
     2855  if test "$with_gnu_ld" = yes; then
    30662856    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
    30672857  else
     
    30812871  need_lib_prefix=no
    30822872  need_version=no
    3083   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
     2873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
    30842874  shlibpath_var=LD_LIBRARY_PATH
    30852875  shlibpath_overrides_runpath=no
     
    30892879uts4*)
    30902880  version_type=linux # correct to gnu/linux during the next big refactor
    3091   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
    3092   soname_spec='$libname$release$shared_ext$major'
     2881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
     2882  soname_spec='${libname}${release}${shared_ext}$major'
    30932883  shlibpath_var=LD_LIBRARY_PATH
    30942884  ;;
     
    30992889esac
    31002890AC_MSG_RESULT([$dynamic_linker])
    3101 test no = "$dynamic_linker" && can_build_shared=no
     2891test "$dynamic_linker" = no && can_build_shared=no
    31022892
    31032893variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
    3104 if test yes = "$GCC"; then
     2894if test "$GCC" = yes; then
    31052895  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
    31062896fi
    31072897
    3108 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
    3109   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
     2898if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
     2899  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
    31102900fi
    3111 
    3112 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
    3113   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
     2901if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
     2902  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
    31142903fi
    3115 
    3116 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
    3117 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
    3118 
    3119 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
    3120 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
    3121 
    3122 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
    3123 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
    31242904
    31252905_LT_DECL([], [variables_saved_for_relink], [1],
     
    31552935_LT_DECL([], [sys_lib_search_path_spec], [2],
    31562936    [Compile-time system search path for libraries])
    3157 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
    3158     [Detected run-time system search path for libraries])
    3159 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
    3160     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
     2937_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
     2938    [Run-time system search path for libraries])
    31612939])# _LT_SYS_DYNAMIC_LINKER
    31622940
     
    31642942# _LT_PATH_TOOL_PREFIX(TOOL)
    31652943# --------------------------
    3166 # find a file program that can recognize shared library
     2944# find a file program which can recognize shared library
    31672945AC_DEFUN([_LT_PATH_TOOL_PREFIX],
    31682946[m4_require([_LT_DECL_EGREP])dnl
     
    31712949[case $MAGIC_CMD in
    31722950[[\\/*] |  ?:[\\/]*])
    3173   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
     2951  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
    31742952  ;;
    31752953*)
    3176   lt_save_MAGIC_CMD=$MAGIC_CMD
    3177   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
     2954  lt_save_MAGIC_CMD="$MAGIC_CMD"
     2955  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    31782956dnl $ac_dummy forces splitting on constant user-supplied paths.
    31792957dnl POSIX.2 word splitting is done only on the output of word expansions,
     
    31812959  ac_dummy="m4_if([$2], , $PATH, [$2])"
    31822960  for ac_dir in $ac_dummy; do
    3183     IFS=$lt_save_ifs
     2961    IFS="$lt_save_ifs"
    31842962    test -z "$ac_dir" && ac_dir=.
    3185     if test -f "$ac_dir/$1"; then
    3186       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
     2963    if test -f $ac_dir/$1; then
     2964      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
    31872965      if test -n "$file_magic_test_file"; then
    31882966        case $deplibs_check_method in
    31892967        "file_magic "*)
    31902968          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
    3191           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
     2969          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    31922970          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
    31932971            $EGREP "$file_magic_regex" > /dev/null; then
     
    32122990    fi
    32132991  done
    3214   IFS=$lt_save_ifs
    3215   MAGIC_CMD=$lt_save_MAGIC_CMD
     2992  IFS="$lt_save_ifs"
     2993  MAGIC_CMD="$lt_save_MAGIC_CMD"
    32162994  ;;
    32172995esac])
    3218 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
     2996MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    32192997if test -n "$MAGIC_CMD"; then
    32202998  AC_MSG_RESULT($MAGIC_CMD)
     
    32343012# _LT_PATH_MAGIC
    32353013# --------------
    3236 # find a file program that can recognize a shared library
     3014# find a file program which can recognize a shared library
    32373015m4_defun([_LT_PATH_MAGIC],
    32383016[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
     
    32613039    [AS_HELP_STRING([--with-gnu-ld],
    32623040        [assume the C compiler uses GNU ld @<:@default=no@:>@])],
    3263     [test no = "$withval" || with_gnu_ld=yes],
     3041    [test "$withval" = no || with_gnu_ld=yes],
    32643042    [with_gnu_ld=no])dnl
    32653043
    32663044ac_prog=ld
    3267 if test yes = "$GCC"; then
     3045if test "$GCC" = yes; then
    32683046  # Check if gcc -print-prog-name=ld gives a path.
    32693047  AC_MSG_CHECKING([for ld used by $CC])
    32703048  case $host in
    32713049  *-*-mingw*)
    3272     # gcc leaves a trailing carriage return, which upsets mingw
     3050    # gcc leaves a trailing carriage return which upsets mingw
    32733051    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
    32743052  *)
     
    32843062        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
    32853063      done
    3286       test -z "$LD" && LD=$ac_prog
     3064      test -z "$LD" && LD="$ac_prog"
    32873065      ;;
    32883066  "")
     
    32953073    ;;
    32963074  esac
    3297 elif test yes = "$with_gnu_ld"; then
     3075elif test "$with_gnu_ld" = yes; then
    32983076  AC_MSG_CHECKING([for GNU ld])
    32993077else
     
    33023080AC_CACHE_VAL(lt_cv_path_LD,
    33033081[if test -z "$LD"; then
    3304   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
     3082  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    33053083  for ac_dir in $PATH; do
    3306     IFS=$lt_save_ifs
     3084    IFS="$lt_save_ifs"
    33073085    test -z "$ac_dir" && ac_dir=.
    33083086    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
    3309       lt_cv_path_LD=$ac_dir/$ac_prog
     3087      lt_cv_path_LD="$ac_dir/$ac_prog"
    33103088      # Check to see if the program is GNU ld.  I'd rather use --version,
    33113089      # but apparently some variants of GNU ld only accept -v.
     
    33133091      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
    33143092      *GNU* | *'with BFD'*)
    3315         test no != "$with_gnu_ld" && break
     3093        test "$with_gnu_ld" != no && break
    33163094        ;;
    33173095      *)
    3318         test yes != "$with_gnu_ld" && break
     3096        test "$with_gnu_ld" != yes && break
    33193097        ;;
    33203098      esac
    33213099    fi
    33223100  done
    3323   IFS=$lt_save_ifs
     3101  IFS="$lt_save_ifs"
    33243102else
    3325   lt_cv_path_LD=$LD # Let the user override the test with a path.
     3103  lt_cv_path_LD="$LD" # Let the user override the test with a path.
    33263104fi])
    3327 LD=$lt_cv_path_LD
     3105LD="$lt_cv_path_LD"
    33283106if test -n "$LD"; then
    33293107  AC_MSG_RESULT($LD)
     
    33793157case $host_os in
    33803158  cygwin* | mingw* | pw32* | cegcc*)
    3381     if test yes != "$GCC"; then
     3159    if test "$GCC" != yes; then
    33823160      reload_cmds=false
    33833161    fi
    33843162    ;;
    33853163  darwin*)
    3386     if test yes = "$GCC"; then
    3387       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
     3164    if test "$GCC" = yes; then
     3165      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
    33883166    else
    33893167      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     
    33943172_LT_TAGDECL([], [reload_cmds], [2])dnl
    33953173])# _LT_CMD_RELOAD
    3396 
    3397 
    3398 # _LT_PATH_DD
    3399 # -----------
    3400 # find a working dd
    3401 m4_defun([_LT_PATH_DD],
    3402 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
    3403 [printf 0123456789abcdef0123456789abcdef >conftest.i
    3404 cat conftest.i conftest.i >conftest2.i
    3405 : ${lt_DD:=$DD}
    3406 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
    3407 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
    3408   cmp -s conftest.i conftest.out \
    3409   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
    3410 fi])
    3411 rm -f conftest.i conftest2.i conftest.out])
    3412 ])# _LT_PATH_DD
    3413 
    3414 
    3415 # _LT_CMD_TRUNCATE
    3416 # ----------------
    3417 # find command to truncate a binary pipe
    3418 m4_defun([_LT_CMD_TRUNCATE],
    3419 [m4_require([_LT_PATH_DD])
    3420 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
    3421 [printf 0123456789abcdef0123456789abcdef >conftest.i
    3422 cat conftest.i conftest.i >conftest2.i
    3423 lt_cv_truncate_bin=
    3424 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
    3425   cmp -s conftest.i conftest.out \
    3426   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
    3427 fi
    3428 rm -f conftest.i conftest2.i conftest.out
    3429 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
    3430 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
    3431   [Command to truncate a binary pipe])
    3432 ])# _LT_CMD_TRUNCATE
    34333174
    34343175
     
    34483189# interlibrary dependencies.
    34493190# 'none' -- dependencies not supported.
    3450 # 'unknown' -- same as none, but documents that we really don't know.
     3191# `unknown' -- same as none, but documents that we really don't know.
    34513192# 'pass_all' -- all dependencies passed with no checks.
    34523193# 'test_compile' -- check by making test program.
    34533194# 'file_magic [[regex]]' -- check by looking for files in library path
    3454 # that responds to the $file_magic_cmd with a given extended regex.
    3455 # If you have 'file' or equivalent on your system and you're not sure
    3456 # whether 'pass_all' will *always* work, you probably want this one.
     3195# which responds to the $file_magic_cmd with a given extended regex.
     3196# If you have `file' or equivalent on your system and you're not sure
     3197# whether `pass_all' will *always* work, you probably want this one.
    34573198
    34583199case $host_os in
     
    34813222  # func_win32_libid shell function, so use a weaker test based on 'objdump',
    34823223  # unless we find 'file', for example because we are cross-compiling.
    3483   if ( file / ) >/dev/null 2>&1; then
     3224  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
     3225  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
    34843226    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
    34853227    lt_cv_file_magic_cmd='func_win32_libid'
     
    35773319  ;;
    35783320
    3579 openbsd* | bitrig*)
    3580   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
     3321openbsd*)
     3322  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    35813323    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
    35823324  else
     
    36313373  lt_cv_deplibs_check_method=pass_all
    36323374  ;;
    3633 os2*)
    3634   lt_cv_deplibs_check_method=pass_all
    3635   ;;
    36363375esac
    36373376])
     
    36743413[if test -n "$NM"; then
    36753414  # Let the user override the test.
    3676   lt_cv_path_NM=$NM
     3415  lt_cv_path_NM="$NM"
    36773416else
    3678   lt_nm_to_check=${ac_tool_prefix}nm
     3417  lt_nm_to_check="${ac_tool_prefix}nm"
    36793418  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
    36803419    lt_nm_to_check="$lt_nm_to_check nm"
    36813420  fi
    36823421  for lt_tmp_nm in $lt_nm_to_check; do
    3683     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
     3422    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
    36843423    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
    3685       IFS=$lt_save_ifs
     3424      IFS="$lt_save_ifs"
    36863425      test -z "$ac_dir" && ac_dir=.
    3687       tmp_nm=$ac_dir/$lt_tmp_nm
    3688       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
     3426      tmp_nm="$ac_dir/$lt_tmp_nm"
     3427      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
    36893428        # Check to see if the nm accepts a BSD-compat flag.
    3690         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
     3429        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
    36913430        #   nm: unknown option "B" ignored
    36923431        # Tru64's nm complains that /dev/null is an invalid object file
    3693         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
    3694         case $build_os in
    3695         mingw*) lt_bad_file=conftest.nm/nofile ;;
    3696         *) lt_bad_file=/dev/null ;;
    3697         esac
    3698         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
    3699         *$lt_bad_file* | *'Invalid file or object type'*)
     3432        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
     3433        */dev/null* | *'Invalid file or object type'*)
    37003434          lt_cv_path_NM="$tmp_nm -B"
    3701           break 2
     3435          break
    37023436          ;;
    37033437        *)
     
    37053439          */dev/null*)
    37063440            lt_cv_path_NM="$tmp_nm -p"
    3707             break 2
     3441            break
    37083442            ;;
    37093443          *)
     
    37163450      fi
    37173451    done
    3718     IFS=$lt_save_ifs
     3452    IFS="$lt_save_ifs"
    37193453  done
    37203454  : ${lt_cv_path_NM=no}
    37213455fi])
    3722 if test no != "$lt_cv_path_NM"; then
    3723   NM=$lt_cv_path_NM
     3456if test "$lt_cv_path_NM" != "no"; then
     3457  NM="$lt_cv_path_NM"
    37243458else
    37253459  # Didn't find any BSD compatible name lister, look for dumpbin.
     
    37283462  else
    37293463    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
    3730     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
     3464    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
    37313465    *COFF*)
    3732       DUMPBIN="$DUMPBIN -symbols -headers"
     3466      DUMPBIN="$DUMPBIN -symbols"
    37333467      ;;
    37343468    *)
     
    37383472  fi
    37393473  AC_SUBST([DUMPBIN])
    3740   if test : != "$DUMPBIN"; then
    3741     NM=$DUMPBIN
     3474  if test "$DUMPBIN" != ":"; then
     3475    NM="$DUMPBIN"
    37423476  fi
    37433477fi
     
    37853519case $host_os in
    37863520cygwin* | mingw* | pw32* | cegcc*)
    3787   # two different shell functions defined in ltmain.sh;
    3788   # decide which one to use based on capabilities of $DLLTOOL
     3521  # two different shell functions defined in ltmain.sh
     3522  # decide which to use based on capabilities of $DLLTOOL
    37893523  case `$DLLTOOL --help 2>&1` in
    37903524  *--identify-strict*)
     
    37983532*)
    37993533  # fallback: assume linklib IS sharedlib
    3800   lt_cv_sharedlib_from_linklib_cmd=$ECHO
     3534  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
    38013535  ;;
    38023536esac
     
    38253559  fi
    38263560  rm -f conftest*])
    3827 if test yes != "$lt_cv_path_mainfest_tool"; then
     3561if test "x$lt_cv_path_mainfest_tool" != xyes; then
    38283562  MANIFEST_TOOL=:
    38293563fi
    38303564_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
    38313565])# _LT_PATH_MANIFEST_TOOL
    3832 
    3833 
    3834 # _LT_DLL_DEF_P([FILE])
    3835 # ---------------------
    3836 # True iff FILE is a Windows DLL '.def' file.
    3837 # Keep in sync with func_dll_def_p in the libtool script
    3838 AC_DEFUN([_LT_DLL_DEF_P],
    3839 [dnl
    3840   test DEF = "`$SED -n dnl
    3841     -e '\''s/^[[         ]]*//'\'' dnl Strip leading whitespace
    3842     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
    3843     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[   ]].*\)*$/DEF/p'\'' dnl
    3844     -e q dnl                          Only consider the first "real" line
    3845     $1`" dnl
    3846 ])# _LT_DLL_DEF_P
    38473566
    38483567
     
    38583577  ;;
    38593578*-ncr-sysv4.3*)
    3860   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
     3579  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
    38613580  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
    38623581  ;;
    38633582*)
    3864   AC_CHECK_LIB(m, cos, LIBM=-lm)
     3583  AC_CHECK_LIB(m, cos, LIBM="-lm")
    38653584  ;;
    38663585esac
     
    38813600_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
    38823601
    3883 if test yes = "$GCC"; then
     3602if test "$GCC" = yes; then
    38843603  case $cc_basename in
    38853604  nvcc*)
     
    39333652  ;;
    39343653hpux*)
    3935   if test ia64 = "$host_cpu"; then
     3654  if test "$host_cpu" = ia64; then
    39363655    symcode='[[ABCDEGRST]]'
    39373656  fi
     
    39663685esac
    39673686
    3968 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    3969   # Gets list of data symbols to import.
    3970   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
    3971   # Adjust the below global symbol transforms to fixup imported variables.
    3972   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
    3973   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
    3974   lt_c_name_lib_hook="\
    3975   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
    3976   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
    3977 else
    3978   # Disable hooks by default.
    3979   lt_cv_sys_global_symbol_to_import=
    3980   lt_cdecl_hook=
    3981   lt_c_name_hook=
    3982   lt_c_name_lib_hook=
    3983 fi
    3984 
    39853687# Transform an extracted symbol line into a proper C declaration.
    39863688# Some systems (esp. on ia64) link data and code symbols differently,
    39873689# so use this general approach.
    3988 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
    3989 $lt_cdecl_hook\
    3990 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
    3991 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
     3690lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
    39923691
    39933692# Transform an extracted symbol line into symbol name and symbol address
    3994 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
    3995 $lt_c_name_hook\
    3996 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
    3997 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
    3998 
    3999 # Transform an extracted symbol line into symbol name with lib prefix and
    4000 # symbol address.
    4001 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
    4002 $lt_c_name_lib_hook\
    4003 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
    4004 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
    4005 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
     3693lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
     3694lt_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'"
    40063695
    40073696# Handle CRLF in mingw tool chain
     
    40213710  # Write the raw and C identifiers.
    40223711  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
    4023     # Fake it for dumpbin and say T for any non-static function,
    4024     # D for any global variable and I for any imported variable.
     3712    # Fake it for dumpbin and say T for any non-static function
     3713    # and D for any global variable.
    40253714    # Also find C++ and __fastcall symbols from MSVC++,
    40263715    # which start with @ or ?.
     
    40293718"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
    40303719"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
    4031 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
    4032 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
    4033 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
    40343720"     \$ 0!~/External *\|/{next};"\
    40353721"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
    40363722"     {if(hide[section]) next};"\
    4037 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
    4038 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
    4039 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
    4040 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
     3723"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
     3724"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
     3725"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
     3726"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
    40413727"     ' prfx=^$ac_symprfx]"
    40423728  else
     
    40783764          cat <<_LT_EOF > conftest.$ac_ext
    40793765/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
    4080 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
    4081 /* DATA imports from DLLs on WIN32 can't be const, because runtime
     3766#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
     3767/* DATA imports from DLLs on WIN32 con't be const, because runtime
    40823768   relocations are performed -- see ld's documentation on pseudo-relocs.  */
    40833769# define LT@&t@_DLSYM_CONST
    4084 #elif defined __osf__
     3770#elif defined(__osf__)
    40853771/* This system does not cope well with relocations in const data.  */
    40863772# define LT@&t@_DLSYM_CONST
     
    41083794  { "@PROGRAM@", (void *) 0 },
    41093795_LT_EOF
    4110           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
     3796          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
    41113797          cat <<\_LT_EOF >> conftest.$ac_ext
    41123798  {0, (void *) 0}
     
    41283814          lt_globsym_save_LIBS=$LIBS
    41293815          lt_globsym_save_CFLAGS=$CFLAGS
    4130           LIBS=conftstm.$ac_objext
     3816          LIBS="conftstm.$ac_objext"
    41313817          CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
    4132           if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
     3818          if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
    41333819            pipe_works=yes
    41343820          fi
     
    41513837
    41523838  # Do not use the global_symbol_pipe unless it works.
    4153   if test yes = "$pipe_works"; then
     3839  if test "$pipe_works" = yes; then
    41543840    break
    41553841  else
     
    41783864_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
    41793865    [Transform the output of nm in a proper C declaration])
    4180 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
    4181     [Transform the output of nm into a list of symbols to manually relocate])
    41823866_LT_DECL([global_symbol_to_c_name_address],
    41833867    [lt_cv_sys_global_symbol_to_c_name_address], [1],
     
    41863870    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
    41873871    [Transform the output of nm in a C name address pair when lib prefix is needed])
    4188 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
    4189     [The name lister interface])
    41903872_LT_DECL([], [nm_file_list_spec], [1],
    41913873    [Specify filename containing input files for $NM])
     
    42033885m4_if([$1], [CXX], [
    42043886  # C++ specific cases for pic, static, wl, etc.
    4205   if test yes = "$GXX"; then
     3887  if test "$GXX" = yes; then
    42063888    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    42073889    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     
    42103892    aix*)
    42113893      # All AIX code is PIC.
    4212       if test ia64 = "$host_cpu"; then
     3894      if test "$host_cpu" = ia64; then
    42133895        # AIX 5 now supports IA64 processor
    42143896        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    42153897      fi
    4216       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    42173898      ;;
    42183899
     
    42253906      m68k)
    42263907            # FIXME: we need at least 68020 code to build shared libraries, but
    4227             # adding the '-m68020' flag to GCC prevents building anything better,
    4228             # like '-m68040'.
     3908            # adding the `-m68020' flag to GCC prevents building anything better,
     3909            # like `-m68040'.
    42293910            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    42303911        ;;
     
    42423923      m4_if([$1], [GCJ], [],
    42433924        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    4244       case $host_os in
    4245       os2*)
    4246         _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
    4247         ;;
    4248       esac
    42493925      ;;
    42503926    darwin* | rhapsody*)
     
    42963972      aix[[4-9]]*)
    42973973        # All AIX code is PIC.
    4298         if test ia64 = "$host_cpu"; then
     3974        if test "$host_cpu" = ia64; then
    42993975          # AIX 5 now supports IA64 processor
    43003976          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     
    43374013          CC*)
    43384014            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4339             _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
    4340             if test ia64 != "$host_cpu"; then
     4015            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
     4016            if test "$host_cpu" != ia64; then
    43414017              _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
    43424018            fi
     
    43444020          aCC*)
    43454021            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4346             _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
     4022            _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    43474023            case $host_cpu in
    43484024            hppa*64*|ia64*)
     
    43814057            ;;
    43824058          ecpc* )
    4383             # old Intel C++ for x86_64, which still supported -KPIC.
     4059            # old Intel C++ for x86_64 which still supported -KPIC.
    43844060            _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    43854061            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    45264202],
    45274203[
    4528   if test yes = "$GCC"; then
     4204  if test "$GCC" = yes; then
    45294205    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    45304206    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
     
    45334209      aix*)
    45344210      # All AIX code is PIC.
    4535       if test ia64 = "$host_cpu"; then
     4211      if test "$host_cpu" = ia64; then
    45364212        # AIX 5 now supports IA64 processor
    45374213        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    45384214      fi
    4539       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    45404215      ;;
    45414216
     
    45484223      m68k)
    45494224            # FIXME: we need at least 68020 code to build shared libraries, but
    4550             # adding the '-m68020' flag to GCC prevents building anything better,
    4551             # like '-m68040'.
     4225            # adding the `-m68020' flag to GCC prevents building anything better,
     4226            # like `-m68040'.
    45524227            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
    45534228        ;;
     
    45664241      m4_if([$1], [GCJ], [],
    45674242        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    4568       case $host_os in
    4569       os2*)
    4570         _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
    4571         ;;
    4572       esac
    45734243      ;;
    45744244
     
    46414311    aix*)
    46424312      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4643       if test ia64 = "$host_cpu"; then
     4313      if test "$host_cpu" = ia64; then
    46444314        # AIX 5 now supports IA64 processor
    46454315        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     
    46494319      ;;
    46504320
    4651     darwin* | rhapsody*)
    4652       # PIC is the default on this platform
    4653       # Common symbols not allowed in MH_DYLIB files
    4654       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
    4655       case $cc_basename in
    4656       nagfor*)
    4657         # NAG Fortran compiler
    4658         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
    4659         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
    4660         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4661         ;;
    4662       esac
    4663       ;;
    4664 
    46654321    mingw* | cygwin* | pw32* | os2* | cegcc*)
    46664322      # This hack is so that the source file can tell whether it is being
     
    46684324      m4_if([$1], [GCJ], [],
    46694325        [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
    4670       case $host_os in
    4671       os2*)
    4672         _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
    4673         ;;
    4674       esac
    46754326      ;;
    46764327
     
    46884339      esac
    46894340      # Is there a better lt_prog_compiler_static that works with the bundled CC?
    4690       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
     4341      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
    46914342      ;;
    46924343
     
    46994350    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
    47004351      case $cc_basename in
    4701       # old Intel for x86_64, which still supported -KPIC.
     4352      # old Intel for x86_64 which still supported -KPIC.
    47024353      ecc*)
    47034354        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    47234374        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
    47244375        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    4725         ;;
    4726       tcc*)
    4727         # Fabrice Bellard et al's Tiny C Compiler
    4728         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    4729         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    4730         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
    47314376        ;;
    47324377      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
     
    48274472
    48284473    sysv4*MP*)
    4829       if test -d /usr/nec; then
     4474      if test -d /usr/nec ;then
    48304475        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
    48314476        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     
    48564501])
    48574502case $host_os in
    4858   # For platforms that do not support PIC, -DPIC is meaningless:
     4503  # For platforms which do not support PIC, -DPIC is meaningless:
    48594504  *djgpp*)
    48604505    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
     
    49224567  aix[[4-9]]*)
    49234568    # If we're using GNU nm, then we don't want the "-C" option.
    4924     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
    4925     # Without the "-l" option, or with the "-B" option, AIX nm treats
    4926     # weak defined symbols like other global defined symbols, whereas
    4927     # GNU nm marks them as "W".
    4928     # While the 'weak' keyword is ignored in the Export File, we need
    4929     # it in the Import File for the 'aix-soname' feature, so we have
    4930     # to replace the "-B" option with "-P" for AIX nm.
     4569    # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4570    # Also, AIX nm treats weak defined symbols like other global defined
     4571    # symbols, whereas GNU nm marks them as "W".
    49314572    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    4932       _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
     4573      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    49334574    else
    4934       _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
     4575      _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'
    49354576    fi
    49364577    ;;
    49374578  pw32*)
    4938     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
     4579    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
    49394580    ;;
    49404581  cygwin* | mingw* | cegcc*)
     
    49854626  _LT_TAGVAR(include_expsyms, $1)=
    49864627  # exclude_expsyms can be an extended regexp of symbols to exclude
    4987   # it will be wrapped by ' (' and ')$', so one must not match beginning or
    4988   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
    4989   # as well as any symbol that contains 'd'.
     4628  # it will be wrapped by ` (' and `)$', so one must not match beginning or
     4629  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
     4630  # as well as any symbol that contains `d'.
    49904631  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
    49914632  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
     
    50034644    # When not using gcc, we currently assume that we are using
    50044645    # Microsoft Visual C++.
    5005     if test yes != "$GCC"; then
     4646    if test "$GCC" != yes; then
    50064647      with_gnu_ld=no
    50074648    fi
     
    50114652    with_gnu_ld=yes
    50124653    ;;
    5013   openbsd* | bitrig*)
     4654  openbsd*)
    50144655    with_gnu_ld=no
    50154656    ;;
     
    50244665  # that we're better off using the native interface for both.
    50254666  lt_use_gnu_ld_interface=no
    5026   if test yes = "$with_gnu_ld"; then
     4667  if test "$with_gnu_ld" = yes; then
    50274668    case $host_os in
    50284669      aix*)
     
    50464687  fi
    50474688
    5048   if test yes = "$lt_use_gnu_ld_interface"; then
     4689  if test "$lt_use_gnu_ld_interface" = yes; then
    50494690    # If archive_cmds runs LD, not CC, wlarc should be empty
    5050     wlarc='$wl'
     4691    wlarc='${wl}'
    50514692
    50524693    # Set some defaults for GNU ld with shared library support. These
     
    50544695    # here allows them to be overridden if necessary.
    50554696    runpath_var=LD_RUN_PATH
    5056     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
    5057     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
     4697    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     4698    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    50584699    # ancient GNU ld didn't support --whole-archive et. al.
    50594700    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
    5060       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
     4701      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    50614702    else
    50624703      _LT_TAGVAR(whole_archive_flag_spec, $1)=
    50634704    fi
    50644705    supports_anon_versioning=no
    5065     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
     4706    case `$LD -v 2>&1` in
    50664707      *GNU\ gold*) supports_anon_versioning=yes ;;
    50674708      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
     
    50764717    aix[[3-9]]*)
    50774718      # On AIX/PPC, the GNU linker is very broken
    5078       if test ia64 != "$host_cpu"; then
     4719      if test "$host_cpu" != ia64; then
    50794720        _LT_TAGVAR(ld_shlibs, $1)=no
    50804721        cat <<_LT_EOF 1>&2
     
    50954736      powerpc)
    50964737            # see comment about AmigaOS4 .so support
    5097             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     4738            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    50984739            _LT_TAGVAR(archive_expsym_cmds, $1)=''
    50994740        ;;
     
    51114752        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    51124753        # support --undefined.  This deserves some investigation.  FIXME
    5113         _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     4754        _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    51144755      else
    51154756        _LT_TAGVAR(ld_shlibs, $1)=no
     
    51214762      # as there is no search path for DLLs.
    51224763      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5123       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
     4764      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
    51244765      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    51254766      _LT_TAGVAR(always_export_symbols, $1)=no
     
    51294770
    51304771      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    5131         _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'
    5132         # If the export-symbols file already is a .def file, use it as
    5133         # is; otherwise, prepend EXPORTS...
    5134         _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
    5135           cp $export_symbols $output_objdir/$soname.def;
    5136         else
    5137           echo EXPORTS > $output_objdir/$soname.def;
    5138           cat $export_symbols >> $output_objdir/$soname.def;
    5139         fi~
    5140         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     4772        _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'
     4773        # If the export-symbols file already is a .def file (1st line
     4774        # is EXPORTS), use it as is; otherwise, prepend...
     4775        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     4776          cp $export_symbols $output_objdir/$soname.def;
     4777        else
     4778          echo EXPORTS > $output_objdir/$soname.def;
     4779          cat $export_symbols >> $output_objdir/$soname.def;
     4780        fi~
     4781        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    51414782      else
    51424783        _LT_TAGVAR(ld_shlibs, $1)=no
     
    51454786
    51464787    haiku*)
    5147       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     4788      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    51484789      _LT_TAGVAR(link_all_deplibs, $1)=yes
    5149       ;;
    5150 
    5151     os2*)
    5152       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    5153       _LT_TAGVAR(hardcode_minus_L, $1)=yes
    5154       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    5155       shrext_cmds=.dll
    5156       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    5157         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    5158         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    5159         $ECHO EXPORTS >> $output_objdir/$libname.def~
    5160         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
    5161         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    5162         emximp -o $lib $output_objdir/$libname.def'
    5163       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    5164         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    5165         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    5166         $ECHO EXPORTS >> $output_objdir/$libname.def~
    5167         prefix_cmds="$SED"~
    5168         if test EXPORTS = "`$SED 1q $export_symbols`"; then
    5169           prefix_cmds="$prefix_cmds -e 1d";
    5170         fi~
    5171         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
    5172         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
    5173         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    5174         emximp -o $lib $output_objdir/$libname.def'
    5175       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
    5176       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    51774790      ;;
    51784791
     
    51804793      _LT_TAGVAR(hardcode_direct, $1)=no
    51814794      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    5182       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    5183       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     4795      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     4796      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    51844797      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    51854798      # Instead, shared libraries are loaded at an image base (0x10000000 by
     
    51884801      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    51894802      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    5190       _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'
    5191       _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'
     4803      _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'
     4804      _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'
    51924805      ;;
    51934806
    51944807    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
    51954808      tmp_diet=no
    5196       if test linux-dietlibc = "$host_os"; then
     4809      if test "$host_os" = linux-dietlibc; then
    51974810        case $cc_basename in
    51984811          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
     
    52004813      fi
    52014814      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
    5202          && test no = "$tmp_diet"
     4815         && test "$tmp_diet" = no
    52034816      then
    52044817        tmp_addflag=' $pic_flag'
     
    52064819        case $cc_basename,$host_cpu in
    52074820        pgcc*)                          # Portland Group C compiler
    5208           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     4821          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    52094822          tmp_addflag=' $pic_flag'
    52104823          ;;
    52114824        pgf77* | pgf90* | pgf95* | pgfortran*)
    52124825                                        # Portland Group f77 and f90 compilers
    5213           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     4826          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    52144827          tmp_addflag=' $pic_flag -Mnomain' ;;
    52154828        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
     
    52224835          _LT_TAGVAR(whole_archive_flag_spec, $1)=
    52234836          tmp_sharedflag='--shared' ;;
    5224         nagfor*)                        # NAGFOR 5.3
    5225           tmp_sharedflag='-Wl,-shared' ;;
    52264837        xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
    52274838          tmp_sharedflag='-qmkshrobj'
    52284839          tmp_addflag= ;;
    52294840        nvcc*)  # Cuda Compiler Driver 2.2
    5230           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     4841          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    52314842          _LT_TAGVAR(compiler_needs_object, $1)=yes
    52324843          ;;
     
    52344845        case `$CC -V 2>&1 | sed 5q` in
    52354846        *Sun\ C*)                       # Sun C 5.9
    5236           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     4847          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    52374848          _LT_TAGVAR(compiler_needs_object, $1)=yes
    52384849          tmp_sharedflag='-G' ;;
     
    52404851          tmp_sharedflag='-G' ;;
    52414852        esac
    5242         _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    5243 
    5244         if test yes = "$supports_anon_versioning"; then
     4853        _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4854
     4855        if test "x$supports_anon_versioning" = xyes; then
    52454856          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    5246             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5247             echo "local: *; };" >> $output_objdir/$libname.ver~
    5248             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
     4857            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     4858            echo "local: *; };" >> $output_objdir/$libname.ver~
     4859            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    52494860        fi
    52504861
    52514862        case $cc_basename in
    5252         tcc*)
    5253           _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
    5254           ;;
    52554863        xlf* | bgf* | bgxlf* | mpixlf*)
    52564864          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
    52574865          _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
    5258           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     4866          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    52594867          _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
    5260           if test yes = "$supports_anon_versioning"; then
     4868          if test "x$supports_anon_versioning" = xyes; then
    52614869            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    5262               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5263               echo "local: *; };" >> $output_objdir/$libname.ver~
    5264               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
     4870              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     4871              echo "local: *; };" >> $output_objdir/$libname.ver~
     4872              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
    52654873          fi
    52664874          ;;
     
    52764884        wlarc=
    52774885      else
    5278         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    5279         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
     4886        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4887        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    52804888      fi
    52814889      ;;
     
    52954903_LT_EOF
    52964904      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    5297         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    5298         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
     4905        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4906        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    52994907      else
    53004908        _LT_TAGVAR(ld_shlibs, $1)=no
     
    53084916        cat <<_LT_EOF 1>&2
    53094917
    5310 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
     4918*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
    53114919*** reliably create shared libraries on SCO systems.  Therefore, libtool
    53124920*** is disabling shared libraries support.  We urge you to upgrade GNU
     
    53234931          # requires that you compile everything twice, which is a pain.
    53244932          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    5325             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
    5326             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    5327             _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'
     4933            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     4934            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4935            _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'
    53284936          else
    53294937            _LT_TAGVAR(ld_shlibs, $1)=no
     
    53424950    *)
    53434951      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
    5344         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    5345         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
     4952        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     4953        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    53464954      else
    53474955        _LT_TAGVAR(ld_shlibs, $1)=no
     
    53504958    esac
    53514959
    5352     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
     4960    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
    53534961      runpath_var=
    53544962      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
     
    53664974      # are no directories specified by -L.
    53674975      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    5368       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
     4976      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
    53694977        # Neither direct hardcoding nor static linking is supported with a
    53704978        # broken collect2.
     
    53744982
    53754983    aix[[4-9]]*)
    5376       if test ia64 = "$host_cpu"; then
     4984      if test "$host_cpu" = ia64; then
    53774985        # On IA64, the linker does run time linking by default, so we don't
    53784986        # have to do anything special.
    53794987        aix_use_runtimelinking=no
    53804988        exp_sym_flag='-Bexport'
    5381         no_entry_flag=
     4989        no_entry_flag=""
    53824990      else
    53834991        # If we're using GNU nm, then we don't want the "-C" option.
    5384         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
    5385         # Without the "-l" option, or with the "-B" option, AIX nm treats
    5386         # weak defined symbols like other global defined symbols, whereas
    5387         # GNU nm marks them as "W".
    5388         # While the 'weak' keyword is ignored in the Export File, we need
    5389         # it in the Import File for the 'aix-soname' feature, so we have
    5390         # to replace the "-B" option with "-P" for AIX nm.
     4992        # -C means demangle to AIX nm, but means don't demangle with GNU nm
     4993        # Also, AIX nm treats weak defined symbols like other global
     4994        # defined symbols, whereas GNU nm marks them as "W".
    53914995        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
    5392           _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
     4996          _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
    53934997        else
    5394           _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
     4998          _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'
    53954999        fi
    53965000        aix_use_runtimelinking=no
     
    53985002        # Test if we are trying to use run time linking or normal
    53995003        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    5400         # have runtime linking enabled, and use it for executables.
    5401         # For shared libraries, we enable/disable runtime linking
    5402         # depending on the kind of the shared library created -
    5403         # when "with_aix_soname,aix_use_runtimelinking" is:
    5404         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
    5405         # "aix,yes"  lib.so          shared, rtl:yes, for executables
    5406         #            lib.a           static archive
    5407         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
    5408         #            lib.a(lib.so.V) shared, rtl:no,  for executables
    5409         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
    5410         #            lib.a(lib.so.V) shared, rtl:no
    5411         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
    5412         #            lib.a           static archive
     5004        # need to do runtime linking.
    54135005        case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
    54145006          for ld_flag in $LDFLAGS; do
    5415           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
     5007          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
    54165008            aix_use_runtimelinking=yes
    54175009            break
    54185010          fi
    54195011          done
    5420           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
    5421             # With aix-soname=svr4, we create the lib.so.V shared archives only,
    5422             # so we don't have lib.a shared libs to link our executables.
    5423             # We have to force runtime linking in this case.
    5424             aix_use_runtimelinking=yes
    5425             LDFLAGS="$LDFLAGS -Wl,-brtl"
    5426           fi
    54275012          ;;
    54285013        esac
     
    54435028      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
    54445029      _LT_TAGVAR(link_all_deplibs, $1)=yes
    5445       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
    5446       case $with_aix_soname,$aix_use_runtimelinking in
    5447       aix,*) ;; # traditional, no import file
    5448       svr4,* | *,yes) # use import file
    5449         # The Import File defines what to hardcode.
    5450         _LT_TAGVAR(hardcode_direct, $1)=no
    5451         _LT_TAGVAR(hardcode_direct_absolute, $1)=no
    5452         ;;
    5453       esac
    5454 
    5455       if test yes = "$GCC"; then
     5030      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
     5031
     5032      if test "$GCC" = yes; then
    54565033        case $host_os in aix4.[[012]]|aix4.[[012]].*)
    54575034        # We only want to do this on AIX 4.2 and lower, the check
    54585035        # below for broken collect2 doesn't work under 4.3+
    5459           collect2name=`$CC -print-prog-name=collect2`
     5036          collect2name=`${CC} -print-prog-name=collect2`
    54605037          if test -f "$collect2name" &&
    54615038           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
     
    54765053        esac
    54775054        shared_flag='-shared'
    5478         if test yes = "$aix_use_runtimelinking"; then
    5479           shared_flag="$shared_flag "'$wl-G'
     5055        if test "$aix_use_runtimelinking" = yes; then
     5056          shared_flag="$shared_flag "'${wl}-G'
    54805057        fi
    5481         # Need to ensure runtime linking is disabled for the traditional
    5482         # shared library, or the linker may eventually find shared libraries
    5483         # /with/ Import File - we do not want to mix them.
    5484         shared_flag_aix='-shared'
    5485         shared_flag_svr4='-shared $wl-G'
     5058        _LT_TAGVAR(link_all_deplibs, $1)=no
    54865059      else
    54875060        # not using gcc
    5488         if test ia64 = "$host_cpu"; then
     5061        if test "$host_cpu" = ia64; then
    54895062        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    54905063        # chokes on -Wl,-G. The following line is correct:
    54915064          shared_flag='-G'
    54925065        else
    5493           if test yes = "$aix_use_runtimelinking"; then
    5494             shared_flag='$wl-G'
     5066          if test "$aix_use_runtimelinking" = yes; then
     5067            shared_flag='${wl}-G'
    54955068          else
    5496             shared_flag='$wl-bM:SRE'
     5069            shared_flag='${wl}-bM:SRE'
    54975070          fi
    5498           shared_flag_aix='$wl-bM:SRE'
    5499           shared_flag_svr4='$wl-G'
    55005071        fi
    55015072      fi
    55025073
    5503       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
     5074      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
    55045075      # It seems that -bexpall does not export symbols beginning with
    55055076      # underscore (_), so it is better to generate a list of symbols to export.
    55065077      _LT_TAGVAR(always_export_symbols, $1)=yes
    5507       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
     5078      if test "$aix_use_runtimelinking" = yes; then
    55085079        # Warning - without using the other runtime loading flags (-brtl),
    55095080        # -berok will link without error, but may produce a broken library.
     
    55125083        # empty executable.
    55135084        _LT_SYS_MODULE_PATH_AIX([$1])
    5514         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
    5515         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
     5085        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     5086        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    55165087      else
    5517         if test ia64 = "$host_cpu"; then
    5518           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
     5088        if test "$host_cpu" = ia64; then
     5089          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    55195090          _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    5520           _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"
     5091          _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"
    55215092        else
    55225093         # Determine the default libpath from the value encoded in an
    55235094         # empty executable.
    55245095         _LT_SYS_MODULE_PATH_AIX([$1])
    5525          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
     5096         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    55265097          # Warning - without using the other run time loading flags,
    55275098          # -berok will link without error, but may produce a broken library.
    5528           _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
    5529           _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
    5530           if test yes = "$with_gnu_ld"; then
     5099          _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
     5100          _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
     5101          if test "$with_gnu_ld" = yes; then
    55315102            # We only use this code for GNU lds that support --whole-archive.
    5532             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
     5103            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    55335104          else
    55345105            # Exported symbols can be pulled into shared objects from archives
     
    55365107          fi
    55375108          _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    5538           _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
    5539           # -brtl affects multiple linker settings, -berok does not and is overridden later
    5540           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
    5541           if test svr4 != "$with_aix_soname"; then
    5542             # This is similar to how AIX traditionally builds its shared libraries.
    5543             _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
    5544           fi
    5545           if test aix != "$with_aix_soname"; then
    5546             _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
    5547           else
    5548             # used by -dlpreopen to get the symbols
    5549             _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
    5550           fi
    5551           _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
     5109          # This is similar to how AIX traditionally builds its shared libraries.
     5110          _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'
    55525111        fi
    55535112      fi
     
    55585117      powerpc)
    55595118            # see comment about AmigaOS4 .so support
    5560             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     5119            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    55615120            _LT_TAGVAR(archive_expsym_cmds, $1)=''
    55625121        ;;
     
    55885147        libext=lib
    55895148        # Tell ltmain to make .dll files, not .so files.
    5590         shrext_cmds=.dll
     5149        shrext_cmds=".dll"
    55915150        # FIXME: Setting linknames here is a bad hack.
    5592         _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
    5593         _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
    5594             cp "$export_symbols" "$output_objdir/$soname.def";
    5595             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
    5596           else
    5597             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
    5598           fi~
    5599           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
    5600           linknames='
     5151        _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     5152        _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     5153            sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     5154          else
     5155            sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     5156          fi~
     5157          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     5158          linknames='
    56015159        # The linker will not automatically build a static lib if we build a DLL.
    56025160        # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     
    56075165        _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
    56085166        _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
    5609           lt_tool_outputfile="@TOOL_OUTPUT@"~
    5610           case $lt_outputfile in
    5611             *.exe|*.EXE) ;;
    5612             *)
    5613               lt_outputfile=$lt_outputfile.exe
    5614               lt_tool_outputfile=$lt_tool_outputfile.exe
    5615               ;;
    5616           esac~
    5617           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
    5618             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
    5619             $RM "$lt_outputfile.manifest";
    5620           fi'
     5167          lt_tool_outputfile="@TOOL_OUTPUT@"~
     5168          case $lt_outputfile in
     5169            *.exe|*.EXE) ;;
     5170            *)
     5171              lt_outputfile="$lt_outputfile.exe"
     5172              lt_tool_outputfile="$lt_tool_outputfile.exe"
     5173              ;;
     5174          esac~
     5175          if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     5176            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     5177            $RM "$lt_outputfile.manifest";
     5178          fi'
    56215179        ;;
    56225180      *)
     
    56275185        libext=lib
    56285186        # Tell ltmain to make .dll files, not .so files.
    5629         shrext_cmds=.dll
     5187        shrext_cmds=".dll"
    56305188        # FIXME: Setting linknames here is a bad hack.
    56315189        _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
     
    56775235
    56785236    hpux9*)
    5679       if test yes = "$GCC"; then
    5680         _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
     5237      if test "$GCC" = yes; then
     5238        _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    56815239      else
    5682         _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
     5240        _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'
    56835241      fi
    5684       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
     5242      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    56855243      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    56865244      _LT_TAGVAR(hardcode_direct, $1)=yes
     
    56895247      # but as the default location of the library.
    56905248      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    5691       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     5249      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    56925250      ;;
    56935251
    56945252    hpux10*)
    5695       if test yes,no = "$GCC,$with_gnu_ld"; then
    5696         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5253      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
     5254        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    56975255      else
    56985256        _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
    56995257      fi
    5700       if test no = "$with_gnu_ld"; then
    5701         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
     5258      if test "$with_gnu_ld" = no; then
     5259        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    57025260        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    57035261        _LT_TAGVAR(hardcode_direct, $1)=yes
    57045262        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
    5705         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     5263        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    57065264        # hardcode_minus_L: Not really in the search PATH,
    57075265        # but as the default location of the library.
     
    57115269
    57125270    hpux11*)
    5713       if test yes,no = "$GCC,$with_gnu_ld"; then
     5271      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
    57145272        case $host_cpu in
    57155273        hppa*64*)
    5716           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
     5274          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    57175275          ;;
    57185276        ia64*)
    5719           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5277          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    57205278          ;;
    57215279        *)
    5722           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
     5280          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
    57235281          ;;
    57245282        esac
     
    57265284        case $host_cpu in
    57275285        hppa*64*)
    5728           _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
     5286          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    57295287          ;;
    57305288        ia64*)
    5731           _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
     5289          _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
    57325290          ;;
    57335291        *)
     
    57375295          _LT_LINKER_OPTION([if $CC understands -b],
    57385296            _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
    5739             [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
     5297            [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
    57405298            [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
    5741           [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
     5299          [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
    57425300          ;;
    57435301        esac
    57445302      fi
    5745       if test no = "$with_gnu_ld"; then
    5746         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
     5303      if test "$with_gnu_ld" = no; then
     5304        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    57475305        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    57485306
     
    57555313          _LT_TAGVAR(hardcode_direct, $1)=yes
    57565314          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
    5757           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     5315          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    57585316
    57595317          # hardcode_minus_L: Not really in the search PATH,
     
    57665324
    57675325    irix5* | irix6* | nonstopux*)
    5768       if test yes = "$GCC"; then
    5769         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
     5326      if test "$GCC" = yes; then
     5327        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    57705328        # Try to use the -exported_symbol ld option, if it does not
    57715329        # work, assume that -exports_file does not work either and
     
    57745332        AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
    57755333          [lt_cv_irix_exported_symbol],
    5776           [save_LDFLAGS=$LDFLAGS
    5777            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
     5334          [save_LDFLAGS="$LDFLAGS"
     5335           LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
    57785336           AC_LINK_IFELSE(
    57795337             [AC_LANG_SOURCE(
     
    57885346              [lt_cv_irix_exported_symbol=yes],
    57895347              [lt_cv_irix_exported_symbol=no])
    5790            LDFLAGS=$save_LDFLAGS])
    5791         if test yes = "$lt_cv_irix_exported_symbol"; then
    5792           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
     5348           LDFLAGS="$save_LDFLAGS"])
     5349        if test "$lt_cv_irix_exported_symbol" = yes; then
     5350          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
    57935351        fi
    5794         _LT_TAGVAR(link_all_deplibs, $1)=no
    57955352      else
    5796         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
    5797         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
     5353        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     5354        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
    57985355      fi
    57995356      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
    5800       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     5357      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    58015358      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    58025359      _LT_TAGVAR(inherit_rpath, $1)=yes
    58035360      _LT_TAGVAR(link_all_deplibs, $1)=yes
    5804       ;;
    5805 
    5806     linux*)
    5807       case $cc_basename in
    5808       tcc*)
    5809         # Fabrice Bellard et al's Tiny C Compiler
    5810         _LT_TAGVAR(ld_shlibs, $1)=yes
    5811         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5812         ;;
    5813       esac
    58145361      ;;
    58155362
     
    58285375      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
    58295376      _LT_TAGVAR(hardcode_direct, $1)=yes
    5830       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     5377      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    58315378      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    58325379      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     
    58365383      ;;
    58375384
    5838     openbsd* | bitrig*)
     5385    openbsd*)
    58395386      if test -f /usr/libexec/ld.so; then
    58405387        _LT_TAGVAR(hardcode_direct, $1)=yes
    58415388        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    58425389        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
    5843         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
     5390        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    58445391          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5845           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
    5846           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    5847           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     5392          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
     5393          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5394          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    58485395        else
    5849           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
    5850           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
     5396          case $host_os in
     5397           openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
     5398             _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
     5399             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     5400             ;;
     5401           *)
     5402             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5403             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     5404             ;;
     5405          esac
    58515406        fi
    58525407      else
     
    58595414      _LT_TAGVAR(hardcode_minus_L, $1)=yes
    58605415      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    5861       shrext_cmds=.dll
    5862       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    5863         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    5864         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    5865         $ECHO EXPORTS >> $output_objdir/$libname.def~
    5866         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
    5867         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    5868         emximp -o $lib $output_objdir/$libname.def'
    5869       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    5870         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    5871         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    5872         $ECHO EXPORTS >> $output_objdir/$libname.def~
    5873         prefix_cmds="$SED"~
    5874         if test EXPORTS = "`$SED 1q $export_symbols`"; then
    5875           prefix_cmds="$prefix_cmds -e 1d";
    5876         fi~
    5877         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
    5878         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
    5879         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    5880         emximp -o $lib $output_objdir/$libname.def'
    5881       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
    5882       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
     5416      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
     5417      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
    58835418      ;;
    58845419
    58855420    osf3*)
    5886       if test yes = "$GCC"; then
    5887         _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
    5888         _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
     5421      if test "$GCC" = yes; then
     5422        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     5423        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    58895424      else
    58905425        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    5891         _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
     5426        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    58925427      fi
    58935428      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
    5894       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     5429      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    58955430      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    58965431      ;;
    58975432
    58985433    osf4* | osf5*)      # as osf3* with the addition of -msym flag
    5899       if test yes = "$GCC"; then
    5900         _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
    5901         _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
    5902         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     5434      if test "$GCC" = yes; then
     5435        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     5436        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
     5437        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    59035438      else
    59045439        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    5905         _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
     5440        _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    59065441        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
    5907           $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
     5442        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
    59085443
    59095444        # Both c and cxx compiler support -rpath directly
     
    59165451    solaris*)
    59175452      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
    5918       if test yes = "$GCC"; then
    5919         wlarc='$wl'
    5920         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
     5453      if test "$GCC" = yes; then
     5454        wlarc='${wl}'
     5455        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    59215456        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    5922           $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5457          $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
    59235458      else
    59245459        case `$CC -V 2>&1` in
    59255460        *"Compilers 5.0"*)
    59265461          wlarc=''
    5927           _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
     5462          _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    59285463          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    5929             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
     5464          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
    59305465          ;;
    59315466        *)
    5932           wlarc='$wl'
    5933           _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
     5467          wlarc='${wl}'
     5468          _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
    59345469          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    5935             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
     5470          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
    59365471          ;;
    59375472        esac
     
    59435478      *)
    59445479        # The compiler driver will combine and reorder linker options,
    5945         # but understands '-z linker_flag'.  GCC discards it without '$wl',
     5480        # but understands `-z linker_flag'.  GCC discards it without `$wl',
    59465481        # but is careful enough not to reorder.
    59475482        # Supported since Solaris 2.6 (maybe 2.5.1?)
    5948         if test yes = "$GCC"; then
    5949           _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
     5483        if test "$GCC" = yes; then
     5484          _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
    59505485        else
    59515486          _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     
    59575492
    59585493    sunos4*)
    5959       if test sequent = "$host_vendor"; then
     5494      if test "x$host_vendor" = xsequent; then
    59605495        # Use $CC to link under sequent, because it throws in some extra .o
    59615496        # files that make .init and .fini sections work.
    5962         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
     5497        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
    59635498      else
    59645499        _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
     
    60095544
    60105545    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
    6011       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
     5546      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
    60125547      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    60135548      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    60145549      runpath_var='LD_RUN_PATH'
    60155550
    6016       if test yes = "$GCC"; then
    6017         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    6018         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5551      if test "$GCC" = yes; then
     5552        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5553        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    60195554      else
    6020         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    6021         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5555        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5556        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    60225557      fi
    60235558      ;;
    60245559
    60255560    sysv5* | sco3.2v5* | sco5v6*)
    6026       # Note: We CANNOT use -z defs as we might desire, because we do not
     5561      # Note: We can NOT use -z defs as we might desire, because we do not
    60275562      # link with -lc, and that would cause any symbols used from libc to
    60285563      # always be unresolved, which means just about no library would
     
    60305565      # though, which does catch some bad symbols but isn't as heavy-handed
    60315566      # as -z defs.
    6032       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
    6033       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
     5567      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     5568      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
    60345569      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    60355570      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    6036       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
     5571      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
    60375572      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
    60385573      _LT_TAGVAR(link_all_deplibs, $1)=yes
    6039       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
     5574      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
    60405575      runpath_var='LD_RUN_PATH'
    60415576
    6042       if test yes = "$GCC"; then
    6043         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    6044         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5577      if test "$GCC" = yes; then
     5578        _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5579        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    60455580      else
    6046         _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    6047         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5581        _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     5582        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    60485583      fi
    60495584      ;;
     
    60605595    esac
    60615596
    6062     if test sni = "$host_vendor"; then
     5597    if test x$host_vendor = xsni; then
    60635598      case $host in
    60645599      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    6065         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
     5600        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
    60665601        ;;
    60675602      esac
     
    60705605])
    60715606AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
    6072 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
     5607test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
    60735608
    60745609_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
     
    60875622  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    60885623
    6089   if test yes,yes = "$GCC,$enable_shared"; then
     5624  if test "$enable_shared" = yes && test "$GCC" = yes; then
    60905625    case $_LT_TAGVAR(archive_cmds, $1) in
    60915626    *'~'*)
     
    61675702    [Whether we need a single "-rpath" flag with a separated argument])
    61685703_LT_TAGDECL([], [hardcode_direct], [0],
    6169     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
     5704    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
    61705705    DIR into the resulting binary])
    61715706_LT_TAGDECL([], [hardcode_direct_absolute], [0],
    6172     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
     5707    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
    61735708    DIR into the resulting binary and the resulting library dependency is
    6174     "absolute", i.e impossible to change by setting $shlibpath_var if the
     5709    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
    61755710    library is relocated])
    61765711_LT_TAGDECL([], [hardcode_minus_L], [0],
     
    62135748# Ensure that the configuration variables for a C compiler are suitably
    62145749# defined.  These variables are subsequently used by _LT_CONFIG to write
    6215 # the compiler configuration to 'libtool'.
     5750# the compiler configuration to `libtool'.
    62165751m4_defun([_LT_LANG_C_CONFIG],
    62175752[m4_require([_LT_DECL_EGREP])dnl
    6218 lt_save_CC=$CC
     5753lt_save_CC="$CC"
    62195754AC_LANG_PUSH(C)
    62205755
     
    62565791  _LT_CMD_STRIPLIB
    62575792
    6258   # Report what library types will actually be built
     5793  # Report which library types will actually be built
    62595794  AC_MSG_CHECKING([if libtool supports shared libraries])
    62605795  AC_MSG_RESULT([$can_build_shared])
    62615796
    62625797  AC_MSG_CHECKING([whether to build shared libraries])
    6263   test no = "$can_build_shared" && enable_shared=no
     5798  test "$can_build_shared" = "no" && enable_shared=no
    62645799
    62655800  # On AIX, shared libraries and static libraries use the same namespace, and
     
    62675802  case $host_os in
    62685803  aix3*)
    6269     test yes = "$enable_shared" && enable_static=no
     5804    test "$enable_shared" = yes && enable_static=no
    62705805    if test -n "$RANLIB"; then
    62715806      archive_cmds="$archive_cmds~\$RANLIB \$lib"
     
    62755810
    62765811  aix[[4-9]]*)
    6277     if test ia64 != "$host_cpu"; then
    6278       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
    6279       yes,aix,yes) ;;                   # shared object as lib.so file only
    6280       yes,svr4,*) ;;                    # shared object as lib.so archive member only
    6281       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
    6282       esac
     5812    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     5813      test "$enable_shared" = yes && enable_static=no
    62835814    fi
    62845815    ;;
     
    62885819  AC_MSG_CHECKING([whether to build static libraries])
    62895820  # Make sure either enable_shared or enable_static is yes.
    6290   test yes = "$enable_shared" || enable_static=yes
     5821  test "$enable_shared" = yes || enable_static=yes
    62915822  AC_MSG_RESULT([$enable_static])
    62925823
     
    62945825fi
    62955826AC_LANG_POP
    6296 CC=$lt_save_CC
     5827CC="$lt_save_CC"
    62975828])# _LT_LANG_C_CONFIG
    62985829
     
    63025833# Ensure that the configuration variables for a C++ compiler are suitably
    63035834# defined.  These variables are subsequently used by _LT_CONFIG to write
    6304 # the compiler configuration to 'libtool'.
     5835# the compiler configuration to `libtool'.
    63055836m4_defun([_LT_LANG_CXX_CONFIG],
    63065837[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
    63075838m4_require([_LT_DECL_EGREP])dnl
    63085839m4_require([_LT_PATH_MANIFEST_TOOL])dnl
    6309 if test -n "$CXX" && ( test no != "$CXX" &&
    6310     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
    6311     (test g++ != "$CXX"))); then
     5840if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     5841    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     5842    (test "X$CXX" != "Xg++"))) ; then
    63125843  AC_PROG_CXXCPP
    63135844else
     
    63515882# are currently assumed to apply to all compilers on this platform,
    63525883# and will be corrupted by setting them based on a non-working compiler.
    6353 if test yes != "$_lt_caught_CXX_error"; then
     5884if test "$_lt_caught_CXX_error" != yes; then
    63545885  # Code to be used in simple compile tests
    63555886  lt_simple_compile_test_code="int some_variable = 0;"
     
    63935924    # We don't want -fno-exception when compiling C++ code, so set the
    63945925    # no_builtin_flag separately
    6395     if test yes = "$GXX"; then
     5926    if test "$GXX" = yes; then
    63965927      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
    63975928    else
     
    63995930    fi
    64005931
    6401     if test yes = "$GXX"; then
     5932    if test "$GXX" = yes; then
    64025933      # Set up default GNU C++ configuration
    64035934
     
    64065937      # Check if GNU C++ uses GNU ld as the underlying linker, since the
    64075938      # archiving commands below assume that GNU ld is being used.
    6408       if test yes = "$with_gnu_ld"; then
    6409         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
    6410         _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
    6411 
    6412         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
    6413         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
     5939      if test "$with_gnu_ld" = yes; then
     5940        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5941        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     5942
     5943        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     5944        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    64145945
    64155946        # If archive_cmds runs LD, not CC, wlarc should be empty
    64165947        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
    64175948        #     investigate it a little bit more. (MM)
    6418         wlarc='$wl'
     5949        wlarc='${wl}'
    64195950
    64205951        # ancient GNU ld didn't support --whole-archive et. al.
    64215952        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
    64225953          $GREP 'no-whole-archive' > /dev/null; then
    6423           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
     5954          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    64245955        else
    64255956          _LT_TAGVAR(whole_archive_flag_spec, $1)=
     
    64575988        ;;
    64585989      aix[[4-9]]*)
    6459         if test ia64 = "$host_cpu"; then
     5990        if test "$host_cpu" = ia64; then
    64605991          # On IA64, the linker does run time linking by default, so we don't
    64615992          # have to do anything special.
    64625993          aix_use_runtimelinking=no
    64635994          exp_sym_flag='-Bexport'
    6464           no_entry_flag=
     5995          no_entry_flag=""
    64655996        else
    64665997          aix_use_runtimelinking=no
     
    64685999          # Test if we are trying to use run time linking or normal
    64696000          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
    6470           # have runtime linking enabled, and use it for executables.
    6471           # For shared libraries, we enable/disable runtime linking
    6472           # depending on the kind of the shared library created -
    6473           # when "with_aix_soname,aix_use_runtimelinking" is:
    6474           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
    6475           # "aix,yes"  lib.so          shared, rtl:yes, for executables
    6476           #            lib.a           static archive
    6477           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
    6478           #            lib.a(lib.so.V) shared, rtl:no,  for executables
    6479           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
    6480           #            lib.a(lib.so.V) shared, rtl:no
    6481           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
    6482           #            lib.a           static archive
     6001          # need to do runtime linking.
    64836002          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
    64846003            for ld_flag in $LDFLAGS; do
     
    64906009              esac
    64916010            done
    6492             if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
    6493               # With aix-soname=svr4, we create the lib.so.V shared archives only,
    6494               # so we don't have lib.a shared libs to link our executables.
    6495               # We have to force runtime linking in this case.
    6496               aix_use_runtimelinking=yes
    6497               LDFLAGS="$LDFLAGS -Wl,-brtl"
    6498             fi
    64996011            ;;
    65006012          esac
     
    65156027        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
    65166028        _LT_TAGVAR(link_all_deplibs, $1)=yes
    6517         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
    6518         case $with_aix_soname,$aix_use_runtimelinking in
    6519         aix,*) ;;       # no import file
    6520         svr4,* | *,yes) # use import file
    6521           # The Import File defines what to hardcode.
    6522           _LT_TAGVAR(hardcode_direct, $1)=no
    6523           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
    6524           ;;
    6525         esac
    6526 
    6527         if test yes = "$GXX"; then
     6029        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
     6030
     6031        if test "$GXX" = yes; then
    65286032          case $host_os in aix4.[[012]]|aix4.[[012]].*)
    65296033          # We only want to do this on AIX 4.2 and lower, the check
    65306034          # below for broken collect2 doesn't work under 4.3+
    6531           collect2name=`$CC -print-prog-name=collect2`
     6035          collect2name=`${CC} -print-prog-name=collect2`
    65326036          if test -f "$collect2name" &&
    65336037             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
     
    65476051          esac
    65486052          shared_flag='-shared'
    6549           if test yes = "$aix_use_runtimelinking"; then
    6550             shared_flag=$shared_flag' $wl-G'
     6053          if test "$aix_use_runtimelinking" = yes; then
     6054            shared_flag="$shared_flag "'${wl}-G'
    65516055          fi
    6552           # Need to ensure runtime linking is disabled for the traditional
    6553           # shared library, or the linker may eventually find shared libraries
    6554           # /with/ Import File - we do not want to mix them.
    6555           shared_flag_aix='-shared'
    6556           shared_flag_svr4='-shared $wl-G'
    65576056        else
    65586057          # not using gcc
    6559           if test ia64 = "$host_cpu"; then
     6058          if test "$host_cpu" = ia64; then
    65606059          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
    65616060          # chokes on -Wl,-G. The following line is correct:
    65626061          shared_flag='-G'
    65636062          else
    6564             if test yes = "$aix_use_runtimelinking"; then
    6565               shared_flag='$wl-G'
     6063            if test "$aix_use_runtimelinking" = yes; then
     6064              shared_flag='${wl}-G'
    65666065            else
    6567               shared_flag='$wl-bM:SRE'
     6066              shared_flag='${wl}-bM:SRE'
    65686067            fi
    6569             shared_flag_aix='$wl-bM:SRE'
    6570             shared_flag_svr4='$wl-G'
    65716068          fi
    65726069        fi
    65736070
    6574         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
     6071        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
    65756072        # It seems that -bexpall does not export symbols beginning with
    65766073        # underscore (_), so it is better to generate a list of symbols to
    65776074        # export.
    65786075        _LT_TAGVAR(always_export_symbols, $1)=yes
    6579         if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
     6076        if test "$aix_use_runtimelinking" = yes; then
    65806077          # Warning - without using the other runtime loading flags (-brtl),
    65816078          # -berok will link without error, but may produce a broken library.
    6582           # The "-G" linker flag allows undefined symbols.
    6583           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
     6079          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
    65846080          # Determine the default libpath from the value encoded in an empty
    65856081          # executable.
    65866082          _LT_SYS_MODULE_PATH_AIX([$1])
    6587           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
    6588 
    6589           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
     6083          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
     6084
     6085          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
    65906086        else
    6591           if test ia64 = "$host_cpu"; then
    6592             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
     6087          if test "$host_cpu" = ia64; then
     6088            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
    65936089            _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
    6594             _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"
     6090            _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"
    65956091          else
    65966092            # Determine the default libpath from the value encoded in an
    65976093            # empty executable.
    65986094            _LT_SYS_MODULE_PATH_AIX([$1])
    6599             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
     6095            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
    66006096            # Warning - without using the other run time loading flags,
    66016097            # -berok will link without error, but may produce a broken library.
    6602             _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
    6603             _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
    6604             if test yes = "$with_gnu_ld"; then
     6098            _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
     6099            _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
     6100            if test "$with_gnu_ld" = yes; then
    66056101              # We only use this code for GNU lds that support --whole-archive.
    6606               _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
     6102              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    66076103            else
    66086104              # Exported symbols can be pulled into shared objects from archives
     
    66106106            fi
    66116107            _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
    6612             _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
    6613             # -brtl affects multiple linker settings, -berok does not and is overridden later
    6614             compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
    6615             if test svr4 != "$with_aix_soname"; then
    6616               # This is similar to how AIX traditionally builds its shared
    6617               # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
    6618               _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
    6619             fi
    6620             if test aix != "$with_aix_soname"; then
    6621               _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
    6622             else
    6623               # used by -dlpreopen to get the symbols
    6624               _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
    6625             fi
    6626             _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
     6108            # This is similar to how AIX traditionally builds its shared
     6109            # libraries.
     6110            _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'
    66276111          fi
    66286112        fi
     
    66346118          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
    66356119          # support --undefined.  This deserves some investigation.  FIXME
    6636           _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     6120          _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    66376121        else
    66386122          _LT_TAGVAR(ld_shlibs, $1)=no
     
    66626146          libext=lib
    66636147          # Tell ltmain to make .dll files, not .so files.
    6664           shrext_cmds=.dll
     6148          shrext_cmds=".dll"
    66656149          # FIXME: Setting linknames here is a bad hack.
    6666           _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
    6667           _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
    6668               cp "$export_symbols" "$output_objdir/$soname.def";
    6669               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
    6670             else
    6671               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
    6672             fi~
    6673             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
    6674             linknames='
     6150          _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
     6151          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6152              $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
     6153            else
     6154              $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
     6155            fi~
     6156            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
     6157            linknames='
    66756158          # The linker will not automatically build a static lib if we build a DLL.
    66766159          # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
     
    66796162          _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
    66806163          _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
    6681             lt_tool_outputfile="@TOOL_OUTPUT@"~
    6682             case $lt_outputfile in
    6683               *.exe|*.EXE) ;;
    6684               *)
    6685                 lt_outputfile=$lt_outputfile.exe
    6686                 lt_tool_outputfile=$lt_tool_outputfile.exe
    6687                 ;;
    6688             esac~
    6689             func_to_tool_file "$lt_outputfile"~
    6690             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
    6691               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
    6692               $RM "$lt_outputfile.manifest";
    6693             fi'
     6164            lt_tool_outputfile="@TOOL_OUTPUT@"~
     6165            case $lt_outputfile in
     6166              *.exe|*.EXE) ;;
     6167              *)
     6168                lt_outputfile="$lt_outputfile.exe"
     6169                lt_tool_outputfile="$lt_tool_outputfile.exe"
     6170                ;;
     6171            esac~
     6172            func_to_tool_file "$lt_outputfile"~
     6173            if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
     6174              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
     6175              $RM "$lt_outputfile.manifest";
     6176            fi'
    66946177          ;;
    66956178        *)
     
    66986181          # as there is no search path for DLLs.
    66996182          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    6700           _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
     6183          _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
    67016184          _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    67026185          _LT_TAGVAR(always_export_symbols, $1)=no
     
    67046187
    67056188          if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
    6706             _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
    6707             # If the export-symbols file already is a .def file, use it as
    6708             # is; otherwise, prepend EXPORTS...
    6709             _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
    6710               cp $export_symbols $output_objdir/$soname.def;
    6711             else
    6712               echo EXPORTS > $output_objdir/$soname.def;
    6713               cat $export_symbols >> $output_objdir/$soname.def;
    6714             fi~
    6715             $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'
     6189            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
     6190            # If the export-symbols file already is a .def file (1st line
     6191            # is EXPORTS), use it as is; otherwise, prepend...
     6192            _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
     6193              cp $export_symbols $output_objdir/$soname.def;
     6194            else
     6195              echo EXPORTS > $output_objdir/$soname.def;
     6196              cat $export_symbols >> $output_objdir/$soname.def;
     6197            fi~
     6198            $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'
    67166199          else
    67176200            _LT_TAGVAR(ld_shlibs, $1)=no
     
    67226205      darwin* | rhapsody*)
    67236206        _LT_DARWIN_LINKER_FEATURES($1)
    6724         ;;
    6725 
    6726       os2*)
    6727         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
    6728         _LT_TAGVAR(hardcode_minus_L, $1)=yes
    6729         _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
    6730         shrext_cmds=.dll
    6731         _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    6732           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    6733           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    6734           $ECHO EXPORTS >> $output_objdir/$libname.def~
    6735           emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
    6736           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    6737           emximp -o $lib $output_objdir/$libname.def'
    6738         _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
    6739           $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
    6740           $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
    6741           $ECHO EXPORTS >> $output_objdir/$libname.def~
    6742           prefix_cmds="$SED"~
    6743           if test EXPORTS = "`$SED 1q $export_symbols`"; then
    6744             prefix_cmds="$prefix_cmds -e 1d";
    6745           fi~
    6746           prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
    6747           cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
    6748           $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
    6749           emximp -o $lib $output_objdir/$libname.def'
    6750         _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
    6751         _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    67526207        ;;
    67536208
     
    67876242
    67886243      haiku*)
    6789         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
     6244        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    67906245        _LT_TAGVAR(link_all_deplibs, $1)=yes
    67916246        ;;
    67926247
    67936248      hpux9*)
    6794         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
     6249        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    67956250        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    6796         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     6251        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    67976252        _LT_TAGVAR(hardcode_direct, $1)=yes
    67986253        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
     
    68066261            ;;
    68076262          aCC*)
    6808             _LT_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
     6263            _LT_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'
    68096264            # Commands to make compiler produce verbose output that lists
    68106265            # what "hidden" libraries, object files and flags are used when
     
    68156270            # from the output so that they don't get included in the library
    68166271            # dependencies.
    6817             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
     6272            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    68186273            ;;
    68196274          *)
    6820             if test yes = "$GXX"; then
    6821               _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
     6275            if test "$GXX" = yes; then
     6276              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    68226277            else
    68236278              # FIXME: insert proper C++ library support
     
    68296284
    68306285      hpux10*|hpux11*)
    6831         if test no = "$with_gnu_ld"; then
    6832           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
     6286        if test $with_gnu_ld = no; then
     6287          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
    68336288          _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    68346289
     
    68376292              ;;
    68386293            *)
    6839               _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     6294              _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    68406295              ;;
    68416296          esac
     
    68636318            case $host_cpu in
    68646319              hppa*64*)
    6865                 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6320                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    68666321                ;;
    68676322              ia64*)
    6868                 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6323                _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    68696324                ;;
    68706325              *)
    6871                 _LT_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'
     6326                _LT_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'
    68726327                ;;
    68736328            esac
     
    68806335            # from the output so that they don't get included in the library
    68816336            # dependencies.
    6882             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
     6337            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    68836338            ;;
    68846339          *)
    6885             if test yes = "$GXX"; then
    6886               if test no = "$with_gnu_ld"; then
     6340            if test "$GXX" = yes; then
     6341              if test $with_gnu_ld = no; then
    68876342                case $host_cpu in
    68886343                  hppa*64*)
    6889                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6344                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    68906345                    ;;
    68916346                  ia64*)
    6892                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6347                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    68936348                    ;;
    68946349                  *)
    6895                     _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6350                    _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    68966351                    ;;
    68976352                esac
     
    69086363        _LT_TAGVAR(hardcode_direct, $1)=no
    69096364        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    6910         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    6911         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
     6365        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6366        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
    69126367        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
    69136368        # Instead, shared libraries are loaded at an image base (0x10000000 by
     
    69166371        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
    69176372        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
    6918         _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'
    6919         _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'
     6373        _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'
     6374        _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'
    69206375        ;;
    69216376      irix5* | irix6*)
     
    69236378          CC*)
    69246379            # SGI C++
    6925             _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
     6380            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    69266381
    69276382            # Archives containing C++ object files must be created using
     
    69326387            ;;
    69336388          *)
    6934             if test yes = "$GXX"; then
    6935               if test no = "$with_gnu_ld"; then
    6936                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
     6389            if test "$GXX" = yes; then
     6390              if test "$with_gnu_ld" = no; then
     6391                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    69376392              else
    6938                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
     6393                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
    69396394              fi
    69406395            fi
     
    69426397            ;;
    69436398        esac
    6944         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     6399        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    69456400        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    69466401        _LT_TAGVAR(inherit_rpath, $1)=yes
     
    69556410            # ends with ".so" (or ".sl" for HP-UX), so rename the library
    69566411            # to its proper name (with version) after linking.
    6957             _LT_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'
    6958             _LT_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'
     6412            _LT_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'
     6413            _LT_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'
    69596414            # Commands to make compiler produce verbose output that lists
    69606415            # what "hidden" libraries, object files and flags are used when
     
    69656420            # from the output so that they don't get included in the library
    69666421            # dependencies.
    6967             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    6968 
    6969             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    6970             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
     6422            output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
     6423
     6424            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6425            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    69716426
    69726427            # Archives containing C++ object files must be created using
     
    69826437            case `$CC -V 2>&1` in
    69836438              *"Version 7."*)
    6984                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
    6985                 _LT_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'
     6439                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6440                _LT_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'
    69866441                ;;
    69876442              *)  # Version 8.0 or newer
     
    69906445                  ia64*) tmp_idyn=' -i_dynamic';;
    69916446                esac
    6992                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    6993                 _LT_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'
     6447                _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6448                _LT_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'
    69946449                ;;
    69956450            esac
    69966451            _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    6997             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    6998             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
    6999             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
     6452            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6453            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6454            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    70006455            ;;
    70016456          pgCC* | pgcpp*)
     
    70046459            *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
    70056460              _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
    7006                rm -rf $tpldir~
    7007                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
    7008                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
     6461                rm -rf $tpldir~
     6462                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
     6463                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
    70096464              _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
    7010                 rm -rf $tpldir~
    7011                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
    7012                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
    7013                 $RANLIB $oldlib'
     6465                rm -rf $tpldir~
     6466                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
     6467                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
     6468                $RANLIB $oldlib'
    70146469              _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
    7015                 rm -rf $tpldir~
    7016                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    7017                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
     6470                rm -rf $tpldir~
     6471                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     6472                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
    70186473              _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
    7019                 rm -rf $tpldir~
    7020                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
    7021                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
     6474                rm -rf $tpldir~
     6475                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
     6476                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
    70226477              ;;
    70236478            *) # Version 6 and above use weak symbols
    7024               _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
    7025               _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
     6479              _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     6480              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
    70266481              ;;
    70276482            esac
    70286483
    7029             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
    7030             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
    7031             _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     6484            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     6485            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6486            _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    70326487            ;;
    70336488          cxx*)
    70346489            # Compaq C++
    7035             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
    7036             _LT_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'
     6490            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6491            _LT_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'
    70376492
    70386493            runpath_var=LD_RUN_PATH
     
    70486503            # from the output so that they don't get included in the library
    70496504            # dependencies.
    7050             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
     6505            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
    70516506            ;;
    70526507          xl* | mpixl* | bgxl*)
    70536508            # IBM XL 8.0 on PPC, with GNU ld
    7054             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
    7055             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
    7056             _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
    7057             if test yes = "$supports_anon_versioning"; then
     6509            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     6510            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     6511            _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     6512            if test "x$supports_anon_versioning" = xyes; then
    70586513              _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
    7059                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    7060                 echo "local: *; };" >> $output_objdir/$libname.ver~
    7061                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
     6514                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     6515                echo "local: *; };" >> $output_objdir/$libname.ver~
     6516                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    70626517            fi
    70636518            ;;
     
    70676522              # Sun C++ 5.9
    70686523              _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    7069               _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    7070               _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
     6524              _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6525              _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
    70716526              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    7072               _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
     6527              _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
    70736528              _LT_TAGVAR(compiler_needs_object, $1)=yes
    70746529
     
    71286583        ;;
    71296584
    7130       openbsd* | bitrig*)
     6585      openbsd2*)
     6586        # C++ shared libraries are fairly broken
     6587        _LT_TAGVAR(ld_shlibs, $1)=no
     6588        ;;
     6589
     6590      openbsd*)
    71316591        if test -f /usr/libexec/ld.so; then
    71326592          _LT_TAGVAR(hardcode_direct, $1)=yes
     
    71346594          _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
    71356595          _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
    7136           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
    7137           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
    7138             _LT_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'
    7139             _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
    7140             _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
     6596          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     6597          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     6598            _LT_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'
     6599            _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     6600            _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    71416601          fi
    71426602          output_verbose_link_cmd=func_echo_all
     
    71546614            # ends with ".so" (or ".sl" for HP-UX), so rename the library
    71556615            # to its proper name (with version) after linking.
    7156             _LT_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'
    7157 
    7158             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
     6616            _LT_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'
     6617
     6618            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    71596619            _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    71606620
     
    71746634            case $host in
    71756635              osf3*)
    7176                 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
    7177                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
    7178                 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     6636                _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
     6637                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
     6638                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    71796639                ;;
    71806640              *)
    71816641                _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    7182                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
     6642                _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
    71836643                _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    7184                   echo "-hidden">> $lib.exp~
    7185                   $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~
    7186                   $RM $lib.exp'
     6644                  echo "-hidden">> $lib.exp~
     6645                  $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~
     6646                  $RM $lib.exp'
    71876647                _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
    71886648                ;;
     
    71996659            # from the output so that they don't get included in the library
    72006660            # dependencies.
    7201             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
     6661            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
    72026662            ;;
    72036663          *)
    7204             if test yes,no = "$GXX,$with_gnu_ld"; then
    7205               _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
     6664            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     6665              _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    72066666              case $host in
    72076667                osf3*)
    7208                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
     6668                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    72096669                  ;;
    72106670                *)
    7211                   _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
     6671                  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    72126672                  ;;
    72136673              esac
    72146674
    7215               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
     6675              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
    72166676              _LT_TAGVAR(hardcode_libdir_separator, $1)=:
    72176677
     
    72596719            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
    72606720            _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    7261             _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     6721            _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    72626722            _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    7263               $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'
     6723              $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'
    72646724
    72656725            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     
    72696729              *)
    72706730                # The compiler driver will combine and reorder linker options,
    7271                 # but understands '-z linker_flag'.
     6731                # but understands `-z linker_flag'.
    72726732                # Supported since Solaris 2.6 (maybe 2.5.1?)
    72736733                _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
     
    72866746          gcx*)
    72876747            # Green Hills C++ Compiler
    7288             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
     6748            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    72896749
    72906750            # The C++ compiler must be used to create the archive.
     
    72936753          *)
    72946754            # GNU C++ compiler with Solaris linker
    7295             if test yes,no = "$GXX,$with_gnu_ld"; then
    7296               _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
     6755            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
     6756              _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
    72976757              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
    7298                 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
     6758                _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    72996759                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    7300                   $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6760                  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    73016761
    73026762                # Commands to make compiler produce verbose output that lists
     
    73056765                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
    73066766              else
    7307                 # g++ 2.7 appears to require '-G' NOT '-shared' on this
     6767                # g++ 2.7 appears to require `-G' NOT `-shared' on this
    73086768                # platform.
    7309                 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
     6769                _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
    73106770                _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
    7311                   $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
     6771                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
    73126772
    73136773                # Commands to make compiler produce verbose output that lists
     
    73176777              fi
    73186778
    7319               _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
     6779              _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
    73206780              case $host_os in
    73216781                solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    73226782                *)
    7323                   _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
     6783                  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
    73246784                  ;;
    73256785              esac
     
    73306790
    73316791    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
    7332       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
     6792      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
    73336793      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    73346794      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
     
    73376797      case $cc_basename in
    73386798        CC*)
    7339           _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    7340           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6799          _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6800          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    73416801          ;;
    73426802        *)
    7343           _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    7344           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6803          _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6804          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    73456805          ;;
    73466806      esac
     
    73486808
    73496809      sysv5* | sco3.2v5* | sco5v6*)
    7350         # Note: We CANNOT use -z defs as we might desire, because we do not
     6810        # Note: We can NOT use -z defs as we might desire, because we do not
    73516811        # link with -lc, and that would cause any symbols used from libc to
    73526812        # always be unresolved, which means just about no library would
     
    73546814        # though, which does catch some bad symbols but isn't as heavy-handed
    73556815        # as -z defs.
    7356         _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
    7357         _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
     6816        _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
     6817        _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
    73586818        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
    73596819        _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
    7360         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
     6820        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
    73616821        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
    73626822        _LT_TAGVAR(link_all_deplibs, $1)=yes
    7363         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
     6823        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
    73646824        runpath_var='LD_RUN_PATH'
    73656825
    73666826        case $cc_basename in
    73676827          CC*)
    7368             _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    7369             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6828            _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6829            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    73706830            _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
    7371               '"$_LT_TAGVAR(old_archive_cmds, $1)"
     6831              '"$_LT_TAGVAR(old_archive_cmds, $1)"
    73726832            _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
    7373               '"$_LT_TAGVAR(reload_cmds, $1)"
     6833              '"$_LT_TAGVAR(reload_cmds, $1)"
    73746834            ;;
    73756835          *)
    7376             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    7377             _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6836            _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
     6837            _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
    73786838            ;;
    73796839        esac
     
    74066866
    74076867    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
    7408     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
    7409 
    7410     _LT_TAGVAR(GCC, $1)=$GXX
    7411     _LT_TAGVAR(LD, $1)=$LD
     6868    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
     6869
     6870    _LT_TAGVAR(GCC, $1)="$GXX"
     6871    _LT_TAGVAR(LD, $1)="$LD"
    74126872
    74136873    ## CAVEAT EMPTOR:
     
    74366896  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
    74376897  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
    7438 fi # test yes != "$_lt_caught_CXX_error"
     6898fi # test "$_lt_caught_CXX_error" != yes
    74396899
    74406900AC_LANG_POP
     
    74586918func_stripname_cnf ()
    74596919{
    7460   case @S|@2 in
    7461   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
    7462   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
     6920  case ${2} in
     6921  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
     6922  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
    74636923  esac
    74646924} # func_stripname_cnf
    74656925])# _LT_FUNC_STRIPNAME_CNF
    7466 
    74676926
    74686927# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
     
    75497008
    75507009  for p in `eval "$output_verbose_link_cmd"`; do
    7551     case $prev$p in
     7010    case ${prev}${p} in
    75527011
    75537012    -L* | -R* | -l*)
    75547013       # Some compilers place space between "-{L,R}" and the path.
    75557014       # Remove the space.
    7556        if test x-L = "$p" ||
    7557           test x-R = "$p"; then
     7015       if test $p = "-L" ||
     7016          test $p = "-R"; then
    75587017         prev=$p
    75597018         continue
     
    75717030       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
    75727031       esac
    7573        if test no = "$pre_test_object_deps_done"; then
    7574          case $prev in
     7032       if test "$pre_test_object_deps_done" = no; then
     7033         case ${prev} in
    75757034         -L | -R)
    75767035           # Internal compiler library paths should come after those
     
    75787037           # user supplied libs so there is no need to process them.
    75797038           if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
    7580              _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
     7039             _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
    75817040           else
    7582              _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
     7041             _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
    75837042           fi
    75847043           ;;
     
    75887047       else
    75897048         if test -z "$_LT_TAGVAR(postdeps, $1)"; then
    7590            _LT_TAGVAR(postdeps, $1)=$prev$p
     7049           _LT_TAGVAR(postdeps, $1)="${prev}${p}"
    75917050         else
    7592            _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
     7051           _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
    75937052         fi
    75947053       fi
     
    76057064       fi
    76067065
    7607        if test no = "$pre_test_object_deps_done"; then
     7066       if test "$pre_test_object_deps_done" = no; then
    76087067         if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
    7609            _LT_TAGVAR(predep_objects, $1)=$p
     7068           _LT_TAGVAR(predep_objects, $1)="$p"
    76107069         else
    76117070           _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
     
    76137072       else
    76147073         if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
    7615            _LT_TAGVAR(postdep_objects, $1)=$p
     7074           _LT_TAGVAR(postdep_objects, $1)="$p"
    76167075         else
    76177076           _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
     
    76447103  _LT_TAGVAR(postdeps,$1)=
    76457104  ;;
     7105
     7106linux*)
     7107  case `$CC -V 2>&1 | sed 5q` in
     7108  *Sun\ C*)
     7109    # Sun C++ 5.9
     7110
     7111    # The more standards-conforming stlport4 library is
     7112    # incompatible with the Cstd library. Avoid specifying
     7113    # it if it's in CXXFLAGS. Ignore libCrun as
     7114    # -library=stlport4 depends on it.
     7115    case " $CXX $CXXFLAGS " in
     7116    *" -library=stlport4 "*)
     7117      solaris_use_stlport4=yes
     7118      ;;
     7119    esac
     7120
     7121    if test "$solaris_use_stlport4" != yes; then
     7122      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     7123    fi
     7124    ;;
     7125  esac
     7126  ;;
     7127
     7128solaris*)
     7129  case $cc_basename in
     7130  CC* | sunCC*)
     7131    # The more standards-conforming stlport4 library is
     7132    # incompatible with the Cstd library. Avoid specifying
     7133    # it if it's in CXXFLAGS. Ignore libCrun as
     7134    # -library=stlport4 depends on it.
     7135    case " $CXX $CXXFLAGS " in
     7136    *" -library=stlport4 "*)
     7137      solaris_use_stlport4=yes
     7138      ;;
     7139    esac
     7140
     7141    # Adding this requires a known-good setup of shared libraries for
     7142    # Sun compiler versions before 5.6, else PIC objects from an old
     7143    # archive will be linked into the output, leading to subtle bugs.
     7144    if test "$solaris_use_stlport4" != yes; then
     7145      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
     7146    fi
     7147    ;;
     7148  esac
     7149  ;;
    76467150esac
    76477151])
     
    76527156 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
    76537157if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
    7654  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
     7158 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
    76557159fi
    76567160_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
     
    76727176# Ensure that the configuration variables for a Fortran 77 compiler are
    76737177# suitably defined.  These variables are subsequently used by _LT_CONFIG
    7674 # to write the compiler configuration to 'libtool'.
     7178# to write the compiler configuration to `libtool'.
    76757179m4_defun([_LT_LANG_F77_CONFIG],
    76767180[AC_LANG_PUSH(Fortran 77)
    7677 if test -z "$F77" || test no = "$F77"; then
     7181if test -z "$F77" || test "X$F77" = "Xno"; then
    76787182  _lt_disable_F77=yes
    76797183fi
     
    77127216# are currently assumed to apply to all compilers on this platform,
    77137217# and will be corrupted by setting them based on a non-working compiler.
    7714 if test yes != "$_lt_disable_F77"; then
     7218if test "$_lt_disable_F77" != yes; then
    77157219  # Code to be used in simple compile tests
    77167220  lt_simple_compile_test_code="\
     
    77347238
    77357239  # Allow CC to be a program name with arguments.
    7736   lt_save_CC=$CC
     7240  lt_save_CC="$CC"
    77377241  lt_save_GCC=$GCC
    77387242  lt_save_CFLAGS=$CFLAGS
     
    77487252
    77497253    AC_MSG_CHECKING([whether to build shared libraries])
    7750     test no = "$can_build_shared" && enable_shared=no
     7254    test "$can_build_shared" = "no" && enable_shared=no
    77517255
    77527256    # On AIX, shared libraries and static libraries use the same namespace, and
     
    77547258    case $host_os in
    77557259      aix3*)
    7756         test yes = "$enable_shared" && enable_static=no
     7260        test "$enable_shared" = yes && enable_static=no
    77577261        if test -n "$RANLIB"; then
    77587262          archive_cmds="$archive_cmds~\$RANLIB \$lib"
     
    77617265        ;;
    77627266      aix[[4-9]]*)
    7763         if test ia64 != "$host_cpu"; then
    7764           case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
    7765           yes,aix,yes) ;;               # shared object as lib.so file only
    7766           yes,svr4,*) ;;                # shared object as lib.so archive member only
    7767           yes,*) enable_static=no ;;    # shared object in lib.a archive as well
    7768           esac
     7267        if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     7268          test "$enable_shared" = yes && enable_static=no
    77697269        fi
    77707270        ;;
     
    77747274    AC_MSG_CHECKING([whether to build static libraries])
    77757275    # Make sure either enable_shared or enable_static is yes.
    7776     test yes = "$enable_shared" || enable_static=yes
     7276    test "$enable_shared" = yes || enable_static=yes
    77777277    AC_MSG_RESULT([$enable_static])
    77787278
    7779     _LT_TAGVAR(GCC, $1)=$G77
    7780     _LT_TAGVAR(LD, $1)=$LD
     7279    _LT_TAGVAR(GCC, $1)="$G77"
     7280    _LT_TAGVAR(LD, $1)="$LD"
    77817281
    77827282    ## CAVEAT EMPTOR:
     
    77957295
    77967296  GCC=$lt_save_GCC
    7797   CC=$lt_save_CC
    7798   CFLAGS=$lt_save_CFLAGS
    7799 fi # test yes != "$_lt_disable_F77"
     7297  CC="$lt_save_CC"
     7298  CFLAGS="$lt_save_CFLAGS"
     7299fi # test "$_lt_disable_F77" != yes
    78007300
    78017301AC_LANG_POP
     
    78077307# Ensure that the configuration variables for a Fortran compiler are
    78087308# suitably defined.  These variables are subsequently used by _LT_CONFIG
    7809 # to write the compiler configuration to 'libtool'.
     7309# to write the compiler configuration to `libtool'.
    78107310m4_defun([_LT_LANG_FC_CONFIG],
    78117311[AC_LANG_PUSH(Fortran)
    78127312
    7813 if test -z "$FC" || test no = "$FC"; then
     7313if test -z "$FC" || test "X$FC" = "Xno"; then
    78147314  _lt_disable_FC=yes
    78157315fi
     
    78487348# are currently assumed to apply to all compilers on this platform,
    78497349# and will be corrupted by setting them based on a non-working compiler.
    7850 if test yes != "$_lt_disable_FC"; then
     7350if test "$_lt_disable_FC" != yes; then
    78517351  # Code to be used in simple compile tests
    78527352  lt_simple_compile_test_code="\
     
    78707370
    78717371  # Allow CC to be a program name with arguments.
    7872   lt_save_CC=$CC
     7372  lt_save_CC="$CC"
    78737373  lt_save_GCC=$GCC
    78747374  lt_save_CFLAGS=$CFLAGS
     
    78867386
    78877387    AC_MSG_CHECKING([whether to build shared libraries])
    7888     test no = "$can_build_shared" && enable_shared=no
     7388    test "$can_build_shared" = "no" && enable_shared=no
    78897389
    78907390    # On AIX, shared libraries and static libraries use the same namespace, and
     
    78927392    case $host_os in
    78937393      aix3*)
    7894         test yes = "$enable_shared" && enable_static=no
     7394        test "$enable_shared" = yes && enable_static=no
    78957395        if test -n "$RANLIB"; then
    78967396          archive_cmds="$archive_cmds~\$RANLIB \$lib"
     
    78997399        ;;
    79007400      aix[[4-9]]*)
    7901         if test ia64 != "$host_cpu"; then