"Fossies" - the Fresh Open Source Software Archive

Member "pcre-8.43/m4/libtool.m4" (23 Feb 2019, 306901 Bytes) of package /linux/misc/pcre-8.43.tar.bz2:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "libtool.m4": 8.42_vs_8.43.

    1 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
    2 #
    3 #   Copyright (C) 1996-2001, 2003-2018 Free Software Foundation, Inc.
    4 #   Written by Gordon Matzigkeit, 1996
    5 #
    6 # This file is free software; the Free Software Foundation gives
    7 # unlimited permission to copy and/or distribute it, with or without
    8 # modifications, as long as this notice is preserved.
    9 
   10 m4_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.
   19 #
   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.
   24 #
   25 # GNU Libtool is distributed in the hope that it will be useful, but
   26 # WITHOUT ANY WARRANTY; without even the implied warranty of
   27 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   28 # GNU General Public License for more details.
   29 #
   30 # 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/>.
   32 ])
   33 
   34 # serial 58 LT_INIT
   35 
   36 
   37 # LT_PREREQ(VERSION)
   38 # ------------------
   39 # Complain and exit if this libtool version is less that VERSION.
   40 m4_defun([LT_PREREQ],
   41 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
   42        [m4_default([$3],
   43 		   [m4_fatal([Libtool version $1 or higher is required],
   44 		             63)])],
   45        [$2])])
   46 
   47 
   48 # _LT_CHECK_BUILDDIR
   49 # ------------------
   50 # Complain if the absolute build directory name contains unusual characters
   51 m4_defun([_LT_CHECK_BUILDDIR],
   52 [case `pwd` in
   53   *\ * | *\	*)
   54     AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
   55 esac
   56 ])
   57 
   58 
   59 # LT_INIT([OPTIONS])
   60 # ------------------
   61 AC_DEFUN([LT_INIT],
   62 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
   63 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
   64 AC_BEFORE([$0], [LT_LANG])dnl
   65 AC_BEFORE([$0], [LT_OUTPUT])dnl
   66 AC_BEFORE([$0], [LTDL_INIT])dnl
   67 m4_require([_LT_CHECK_BUILDDIR])dnl
   68 
   69 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
   70 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
   71 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
   72 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
   73 dnl unless we require an AC_DEFUNed macro:
   74 AC_REQUIRE([LTOPTIONS_VERSION])dnl
   75 AC_REQUIRE([LTSUGAR_VERSION])dnl
   76 AC_REQUIRE([LTVERSION_VERSION])dnl
   77 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
   78 m4_require([_LT_PROG_LTMAIN])dnl
   79 
   80 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
   81 
   82 dnl Parse OPTIONS
   83 _LT_SET_OPTIONS([$0], [$1])
   84 
   85 # This can be used to rebuild libtool when needed
   86 LIBTOOL_DEPS=$ltmain
   87 
   88 # Always use our own libtool.
   89 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   90 AC_SUBST(LIBTOOL)dnl
   91 
   92 _LT_SETUP
   93 
   94 # Only expand once:
   95 m4_define([LT_INIT])
   96 ])# LT_INIT
   97 
   98 # Old names:
   99 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  100 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  101 dnl aclocal-1.4 backwards compatibility:
  102 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  103 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  104 
  105 
  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 
  125 # _LT_CC_BASENAME(CC)
  126 # -------------------
  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.
  130 m4_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
  136 ])
  137 
  138 
  139 # _LT_FILEUTILS_DEFAULTS
  140 # ----------------------
  141 # It is okay to use these file commands and assume they have been set
  142 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  143 m4_defun([_LT_FILEUTILS_DEFAULTS],
  144 [: ${CP="cp -f"}
  145 : ${MV="mv -f"}
  146 : ${RM="rm -f"}
  147 ])# _LT_FILEUTILS_DEFAULTS
  148 
  149 
  150 # _LT_SETUP
  151 # ---------
  152 m4_defun([_LT_SETUP],
  153 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  154 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  155 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  156 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  157 
  158 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  159 dnl
  160 _LT_DECL([], [host_alias], [0], [The host system])dnl
  161 _LT_DECL([], [host], [0])dnl
  162 _LT_DECL([], [host_os], [0])dnl
  163 dnl
  164 _LT_DECL([], [build_alias], [0], [The build system])dnl
  165 _LT_DECL([], [build], [0])dnl
  166 _LT_DECL([], [build_os], [0])dnl
  167 dnl
  168 AC_REQUIRE([AC_PROG_CC])dnl
  169 AC_REQUIRE([LT_PATH_LD])dnl
  170 AC_REQUIRE([LT_PATH_NM])dnl
  171 dnl
  172 AC_REQUIRE([AC_PROG_LN_S])dnl
  173 test -z "$LN_S" && LN_S="ln -s"
  174 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  175 dnl
  176 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  177 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  178 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  179 dnl
  180 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  181 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  182 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  183 m4_require([_LT_CMD_RELOAD])dnl
  184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  185 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  186 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  187 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  188 m4_require([_LT_WITH_SYSROOT])dnl
  189 m4_require([_LT_CMD_TRUNCATE])dnl
  190 
  191 _LT_CONFIG_LIBTOOL_INIT([
  192 # See if we are running on zsh, and set the options that allow our
  193 # commands through without removal of \ escapes INIT.
  194 if test -n "\${ZSH_VERSION+set}"; then
  195    setopt NO_GLOB_SUBST
  196 fi
  197 ])
  198 if test -n "${ZSH_VERSION+set}"; then
  199    setopt NO_GLOB_SUBST
  200 fi
  201 
  202 _LT_CHECK_OBJDIR
  203 
  204 m4_require([_LT_TAG_COMPILER])dnl
  205 
  206 case $host_os in
  207 aix3*)
  208   # AIX sometimes has problems with the GCC collect2 program.  For some
  209   # reason, if we set the COLLECT_NAMES environment variable, the problems
  210   # vanish in a puff of smoke.
  211   if test set != "${COLLECT_NAMES+set}"; then
  212     COLLECT_NAMES=
  213     export COLLECT_NAMES
  214   fi
  215   ;;
  216 esac
  217 
  218 # Global variables:
  219 ofile=libtool
  220 can_build_shared=yes
  221 
  222 # All known linkers require a '.a' archive for static linking (except MSVC and
  223 # ICC, which need '.lib').
  224 libext=a
  225 
  226 with_gnu_ld=$lt_cv_prog_gnu_ld
  227 
  228 old_CC=$CC
  229 old_CFLAGS=$CFLAGS
  230 
  231 # Set sane defaults for various variables
  232 test -z "$CC" && CC=cc
  233 test -z "$LTCC" && LTCC=$CC
  234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  235 test -z "$LD" && LD=ld
  236 test -z "$ac_objext" && ac_objext=o
  237 
  238 _LT_CC_BASENAME([$compiler])
  239 
  240 # Only perform the check for file, if the check method requires it
  241 test -z "$MAGIC_CMD" && MAGIC_CMD=file
  242 case $deplibs_check_method in
  243 file_magic*)
  244   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  245     _LT_PATH_MAGIC
  246   fi
  247   ;;
  248 esac
  249 
  250 # Use C for the default configuration in the libtool script
  251 LT_SUPPORTED_TAG([CC])
  252 _LT_LANG_C_CONFIG
  253 _LT_LANG_DEFAULT_CONFIG
  254 _LT_CONFIG_COMMANDS
  255 ])# _LT_SETUP
  256 
  257 
  258 # _LT_PREPARE_SED_QUOTE_VARS
  259 # --------------------------
  260 # Define a few sed substitution that help us do robust quoting.
  261 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  262 [# Backslashify metacharacters that are still active within
  263 # double-quoted strings.
  264 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  265 
  266 # Same as above, but do not quote variable references.
  267 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  268 
  269 # Sed substitution to delay expansion of an escaped shell variable in a
  270 # double_quote_subst'ed string.
  271 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  272 
  273 # Sed substitution to delay expansion of an escaped single quote.
  274 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  275 
  276 # Sed substitution to avoid accidental globbing in evaled expressions
  277 no_glob_subst='s/\*/\\\*/g'
  278 ])
  279 
  280 # _LT_PROG_LTMAIN
  281 # ---------------
  282 # Note that this code is called both from 'configure', and 'config.status'
  283 # 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,
  285 # so we pass a copy along to make sure it has a sensible value anyway.
  286 m4_defun([_LT_PROG_LTMAIN],
  287 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  288 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  289 ltmain=$ac_aux_dir/ltmain.sh
  290 ])# _LT_PROG_LTMAIN
  291 
  292 
  293 ## ------------------------------------- ##
  294 ## Accumulate code for creating libtool. ##
  295 ## ------------------------------------- ##
  296 
  297 # So that we can recreate a full libtool script including additional
  298 # 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'
  300 # label.
  301 
  302 
  303 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  304 # ----------------------------------------
  305 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  306 m4_define([_LT_CONFIG_LIBTOOL_INIT],
  307 [m4_ifval([$1],
  308           [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  309                      [$1
  310 ])])])
  311 
  312 # Initialize.
  313 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  314 
  315 
  316 # _LT_CONFIG_LIBTOOL([COMMANDS])
  317 # ------------------------------
  318 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  319 m4_define([_LT_CONFIG_LIBTOOL],
  320 [m4_ifval([$1],
  321           [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  322                      [$1
  323 ])])])
  324 
  325 # Initialize.
  326 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  327 
  328 
  329 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  330 # -----------------------------------------------------
  331 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  332 [_LT_CONFIG_LIBTOOL([$1])
  333 _LT_CONFIG_LIBTOOL_INIT([$2])
  334 ])
  335 
  336 
  337 # _LT_FORMAT_COMMENT([COMMENT])
  338 # -----------------------------
  339 # Add leading comment marks to the start of each line, and a trailing
  340 # full-stop to the whole comment if one is not present already.
  341 m4_define([_LT_FORMAT_COMMENT],
  342 [m4_ifval([$1], [
  343 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  344               [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  345 )])
  346 
  347 
  348 
  349 ## ------------------------ ##
  350 ## FIXME: Eliminate VARNAME ##
  351 ## ------------------------ ##
  352 
  353 
  354 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  355 # -------------------------------------------------------------------
  356 # CONFIGNAME is the name given to the value in the libtool script.
  357 # VARNAME is the (base) name used in the configure script.
  358 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  359 # VARNAME.  Any other value will be used directly.
  360 m4_define([_LT_DECL],
  361 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  362     [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  363 	[m4_ifval([$1], [$1], [$2])])
  364     lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  365     m4_ifval([$4],
  366 	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  367     lt_dict_add_subkey([lt_decl_dict], [$2],
  368 	[tagged?], [m4_ifval([$5], [yes], [no])])])
  369 ])
  370 
  371 
  372 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  373 # --------------------------------------------------------
  374 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  375 
  376 
  377 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  378 # ------------------------------------------------
  379 m4_define([lt_decl_tag_varnames],
  380 [_lt_decl_filter([tagged?], [yes], $@)])
  381 
  382 
  383 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  384 # ---------------------------------------------------------
  385 m4_define([_lt_decl_filter],
  386 [m4_case([$#],
  387   [0], [m4_fatal([$0: too few arguments: $#])],
  388   [1], [m4_fatal([$0: too few arguments: $#: $1])],
  389   [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  390   [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  391   [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  392 ])
  393 
  394 
  395 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  396 # --------------------------------------------------
  397 m4_define([lt_decl_quote_varnames],
  398 [_lt_decl_filter([value], [1], $@)])
  399 
  400 
  401 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  402 # ---------------------------------------------------
  403 m4_define([lt_decl_dquote_varnames],
  404 [_lt_decl_filter([value], [2], $@)])
  405 
  406 
  407 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  408 # ---------------------------------------------------
  409 m4_define([lt_decl_varnames_tagged],
  410 [m4_assert([$# <= 2])dnl
  411 _$0(m4_quote(m4_default([$1], [[, ]])),
  412     m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  413     m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  414 m4_define([_lt_decl_varnames_tagged],
  415 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  416 
  417 
  418 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  419 # ------------------------------------------------
  420 m4_define([lt_decl_all_varnames],
  421 [_$0(m4_quote(m4_default([$1], [[, ]])),
  422      m4_if([$2], [],
  423 	   m4_quote(lt_decl_varnames),
  424 	m4_quote(m4_shift($@))))[]dnl
  425 ])
  426 m4_define([_lt_decl_all_varnames],
  427 [lt_join($@, lt_decl_varnames_tagged([$1],
  428 			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  429 ])
  430 
  431 
  432 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  433 # ------------------------------------
  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
  436 # must have a single quote delimited value for this to work.
  437 m4_define([_LT_CONFIG_STATUS_DECLARE],
  438 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  439 
  440 
  441 # _LT_CONFIG_STATUS_DECLARATIONS
  442 # ------------------------------
  443 # We delimit libtool config variables with single quotes, so when
  444 # we write them to config.status, we have to be sure to quote all
  445 # embedded single quotes properly.  In configure, this macro expands
  446 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  447 #
  448 #    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  449 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  450 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  451     [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  452 
  453 
  454 # _LT_LIBTOOL_TAGS
  455 # ----------------
  456 # Output comment and list of tags supported by the script
  457 m4_defun([_LT_LIBTOOL_TAGS],
  458 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  459 available_tags='_LT_TAGS'dnl
  460 ])
  461 
  462 
  463 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  464 # -----------------------------------
  465 # Extract the dictionary values for VARNAME (optionally with TAG) and
  466 # expand to a commented shell variable setting:
  467 #
  468 #    # Some comment about what VAR is for.
  469 #    visible_name=$lt_internal_name
  470 m4_define([_LT_LIBTOOL_DECLARE],
  471 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  472 					   [description])))[]dnl
  473 m4_pushdef([_libtool_name],
  474     m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  475 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  476     [0], [_libtool_name=[$]$1],
  477     [1], [_libtool_name=$lt_[]$1],
  478     [2], [_libtool_name=$lt_[]$1],
  479     [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  480 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  481 ])
  482 
  483 
  484 # _LT_LIBTOOL_CONFIG_VARS
  485 # -----------------------
  486 # Produce commented declarations of non-tagged libtool config variables
  487 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  488 # script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
  489 # section) are produced by _LT_LIBTOOL_TAG_VARS.
  490 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  491 [m4_foreach([_lt_var],
  492     m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  493     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  494 
  495 
  496 # _LT_LIBTOOL_TAG_VARS(TAG)
  497 # -------------------------
  498 m4_define([_LT_LIBTOOL_TAG_VARS],
  499 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  500     [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  501 
  502 
  503 # _LT_TAGVAR(VARNAME, [TAGNAME])
  504 # ------------------------------
  505 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  506 
  507 
  508 # _LT_CONFIG_COMMANDS
  509 # -------------------
  510 # Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
  511 # variables for single and double quote escaping we saved from calls
  512 # 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
  515 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  516 m4_defun([_LT_CONFIG_COMMANDS],
  517 [AC_PROVIDE_IFELSE([LT_OUTPUT],
  518 	dnl If the libtool generation code has been placed in $CONFIG_LT,
  519 	dnl instead of duplicating it all over again into config.status,
  520 	dnl then we will have config.status run $CONFIG_LT later, so it
  521 	dnl needs to know what name is stored there:
  522         [AC_CONFIG_COMMANDS([libtool],
  523             [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  524     dnl If the libtool generation code is destined for config.status,
  525     dnl expand the accumulated commands and init code now:
  526     [AC_CONFIG_COMMANDS([libtool],
  527         [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  528 ])#_LT_CONFIG_COMMANDS
  529 
  530 
  531 # Initialize.
  532 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  533 [
  534 
  535 # The HP-UX ksh and POSIX shell print the target directory to stdout
  536 # if CDPATH is set.
  537 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  538 
  539 sed_quote_subst='$sed_quote_subst'
  540 double_quote_subst='$double_quote_subst'
  541 delay_variable_subst='$delay_variable_subst'
  542 _LT_CONFIG_STATUS_DECLARATIONS
  543 LTCC='$LTCC'
  544 LTCFLAGS='$LTCFLAGS'
  545 compiler='$compiler_DEFAULT'
  546 
  547 # A function that is used when there is no print builtin or printf.
  548 func_fallback_echo ()
  549 {
  550   eval 'cat <<_LTECHO_EOF
  551 \$[]1
  552 _LTECHO_EOF'
  553 }
  554 
  555 # Quote evaled strings.
  556 for var in lt_decl_all_varnames([[ \
  557 ]], lt_decl_quote_varnames); do
  558     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  559     *[[\\\\\\\`\\"\\\$]]*)
  560       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  561       ;;
  562     *)
  563       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  564       ;;
  565     esac
  566 done
  567 
  568 # Double-quote double-evaled strings.
  569 for var in lt_decl_all_varnames([[ \
  570 ]], lt_decl_dquote_varnames); do
  571     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  572     *[[\\\\\\\`\\"\\\$]]*)
  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
  574       ;;
  575     *)
  576       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  577       ;;
  578     esac
  579 done
  580 
  581 _LT_OUTPUT_LIBTOOL_INIT
  582 ])
  583 
  584 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  585 # ------------------------------------
  586 # Generate a child script FILE with all initialization necessary to
  587 # reuse the environment learned by the parent script, and make the
  588 # file executable.  If COMMENT is supplied, it is inserted after the
  589 # '#!' sequence but before initialization text begins.  After this
  590 # macro, additional text can be appended to FILE to form the body of
  591 # the child script.  The macro ends with non-zero status if the
  592 # file could not be fully written (such as if the disk is full).
  593 m4_ifdef([AS_INIT_GENERATED],
  594 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  595 [m4_defun([_LT_GENERATED_FILE_INIT],
  596 [m4_require([AS_PREPARE])]dnl
  597 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  598 [lt_write_fail=0
  599 cat >$1 <<_ASEOF || lt_write_fail=1
  600 #! $SHELL
  601 # Generated by $as_me.
  602 $2
  603 SHELL=\${CONFIG_SHELL-$SHELL}
  604 export SHELL
  605 _ASEOF
  606 cat >>$1 <<\_ASEOF || lt_write_fail=1
  607 AS_SHELL_SANITIZE
  608 _AS_PREPARE
  609 exec AS_MESSAGE_FD>&1
  610 _ASEOF
  611 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  612 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  613 
  614 # LT_OUTPUT
  615 # ---------
  616 # This macro allows early generation of the libtool script (before
  617 # AC_OUTPUT is called), incase it is used in configure for compilation
  618 # tests.
  619 AC_DEFUN([LT_OUTPUT],
  620 [: ${CONFIG_LT=./config.lt}
  621 AC_MSG_NOTICE([creating $CONFIG_LT])
  622 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  623 [# Run this file to recreate a libtool stub with the current configuration.])
  624 
  625 cat >>"$CONFIG_LT" <<\_LTEOF
  626 lt_cl_silent=false
  627 exec AS_MESSAGE_LOG_FD>>config.log
  628 {
  629   echo
  630   AS_BOX([Running $as_me.])
  631 } >&AS_MESSAGE_LOG_FD
  632 
  633 lt_cl_help="\
  634 '$as_me' creates a local libtool stub from the current configuration,
  635 for use in further configure time tests before the real libtool is
  636 generated.
  637 
  638 Usage: $[0] [[OPTIONS]]
  639 
  640   -h, --help      print this help, then exit
  641   -V, --version   print version number, then exit
  642   -q, --quiet     do not print progress messages
  643   -d, --debug     don't remove temporary files
  644 
  645 Report bugs to <bug-libtool@gnu.org>."
  646 
  647 lt_cl_version="\
  648 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  649 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  650 configured by $[0], generated by m4_PACKAGE_STRING.
  651 
  652 Copyright (C) 2011 Free Software Foundation, Inc.
  653 This config.lt script is free software; the Free Software Foundation
  654 gives unlimited permision to copy, distribute and modify it."
  655 
  656 while test 0 != $[#]
  657 do
  658   case $[1] in
  659     --version | --v* | -V )
  660       echo "$lt_cl_version"; exit 0 ;;
  661     --help | --h* | -h )
  662       echo "$lt_cl_help"; exit 0 ;;
  663     --debug | --d* | -d )
  664       debug=: ;;
  665     --quiet | --q* | --silent | --s* | -q )
  666       lt_cl_silent=: ;;
  667 
  668     -*) AC_MSG_ERROR([unrecognized option: $[1]
  669 Try '$[0] --help' for more information.]) ;;
  670 
  671     *) AC_MSG_ERROR([unrecognized argument: $[1]
  672 Try '$[0] --help' for more information.]) ;;
  673   esac
  674   shift
  675 done
  676 
  677 if $lt_cl_silent; then
  678   exec AS_MESSAGE_FD>/dev/null
  679 fi
  680 _LTEOF
  681 
  682 cat >>"$CONFIG_LT" <<_LTEOF
  683 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  684 _LTEOF
  685 
  686 cat >>"$CONFIG_LT" <<\_LTEOF
  687 AC_MSG_NOTICE([creating $ofile])
  688 _LT_OUTPUT_LIBTOOL_COMMANDS
  689 AS_EXIT(0)
  690 _LTEOF
  691 chmod +x "$CONFIG_LT"
  692 
  693 # configure is writing to config.log, but config.lt does its own redirection,
  694 # appending to config.log, which fails on DOS, as config.log is still kept
  695 # open by configure.  Here we exec the FD to /dev/null, effectively closing
  696 # config.log, so it can be properly (re)opened and appended to by config.lt.
  697 lt_cl_success=:
  698 test yes = "$silent" &&
  699   lt_config_lt_args="$lt_config_lt_args --quiet"
  700 exec AS_MESSAGE_LOG_FD>/dev/null
  701 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  702 exec AS_MESSAGE_LOG_FD>>config.log
  703 $lt_cl_success || AS_EXIT(1)
  704 ])# LT_OUTPUT
  705 
  706 
  707 # _LT_CONFIG(TAG)
  708 # ---------------
  709 # If TAG is the built-in tag, create an initial libtool script with a
  710 # default configuration from the untagged config vars.  Otherwise add code
  711 # to config.status for appending the configuration named by TAG from the
  712 # matching tagged config vars.
  713 m4_defun([_LT_CONFIG],
  714 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  715 _LT_CONFIG_SAVE_COMMANDS([
  716   m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  717   m4_if(_LT_TAG, [C], [
  718     # See if we are running on zsh, and set the options that allow our
  719     # commands through without removal of \ escapes.
  720     if test -n "${ZSH_VERSION+set}"; then
  721       setopt NO_GLOB_SUBST
  722     fi
  723 
  724     cfgfile=${ofile}T
  725     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  726     $RM "$cfgfile"
  727 
  728     cat <<_LT_EOF >> "$cfgfile"
  729 #! $SHELL
  730 # Generated automatically by $as_me ($PACKAGE) $VERSION
  731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  732 # 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 
  737 _LT_COPYING
  738 _LT_LIBTOOL_TAGS
  739 
  740 # Configured defaults for sys_lib_dlsearch_path munging.
  741 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  742 
  743 # ### BEGIN LIBTOOL CONFIG
  744 _LT_LIBTOOL_CONFIG_VARS
  745 _LT_LIBTOOL_TAG_VARS
  746 # ### 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
  758 
  759 _LT_EOF
  760 
  761   case $host_os in
  762   aix3*)
  763     cat <<\_LT_EOF >> "$cfgfile"
  764 # AIX sometimes has problems with the GCC collect2 program.  For some
  765 # reason, if we set the COLLECT_NAMES environment variable, the problems
  766 # vanish in a puff of smoke.
  767 if test set != "${COLLECT_NAMES+set}"; then
  768   COLLECT_NAMES=
  769   export COLLECT_NAMES
  770 fi
  771 _LT_EOF
  772     ;;
  773   esac
  774 
  775   _LT_PROG_LTMAIN
  776 
  777   # We use sed instead of cat because bash on DJGPP gets confused if
  778   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  779   # text mode, it properly converts lines to CR/LF.  This bash problem
  780   # is reportedly fixed, but why not run on old versions too?
  781   sed '$q' "$ltmain" >> "$cfgfile" \
  782      || (rm -f "$cfgfile"; exit 1)
  783 
  784    mv -f "$cfgfile" "$ofile" ||
  785     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  786   chmod +x "$ofile"
  787 ],
  788 [cat <<_LT_EOF >> "$ofile"
  789 
  790 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  791 dnl in a comment (ie after a #).
  792 # ### BEGIN LIBTOOL TAG CONFIG: $1
  793 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  794 # ### END LIBTOOL TAG CONFIG: $1
  795 _LT_EOF
  796 ])dnl /m4_if
  797 ],
  798 [m4_if([$1], [], [
  799     PACKAGE='$PACKAGE'
  800     VERSION='$VERSION'
  801     RM='$RM'
  802     ofile='$ofile'], [])
  803 ])dnl /_LT_CONFIG_SAVE_COMMANDS
  804 ])# _LT_CONFIG
  805 
  806 
  807 # LT_SUPPORTED_TAG(TAG)
  808 # ---------------------
  809 # Trace this macro to discover what tags are supported by the libtool
  810 # --tag option, using:
  811 #    autoconf --trace 'LT_SUPPORTED_TAG:$1'
  812 AC_DEFUN([LT_SUPPORTED_TAG], [])
  813 
  814 
  815 # C support is built-in for now
  816 m4_define([_LT_LANG_C_enabled], [])
  817 m4_define([_LT_TAGS], [])
  818 
  819 
  820 # LT_LANG(LANG)
  821 # -------------
  822 # Enable libtool support for the given language if not already enabled.
  823 AC_DEFUN([LT_LANG],
  824 [AC_BEFORE([$0], [LT_OUTPUT])dnl
  825 m4_case([$1],
  826   [C],			[_LT_LANG(C)],
  827   [C++],		[_LT_LANG(CXX)],
  828   [Go],			[_LT_LANG(GO)],
  829   [Java],		[_LT_LANG(GCJ)],
  830   [Fortran 77],		[_LT_LANG(F77)],
  831   [Fortran],		[_LT_LANG(FC)],
  832   [Windows Resource],	[_LT_LANG(RC)],
  833   [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  834     [_LT_LANG($1)],
  835     [m4_fatal([$0: unsupported language: "$1"])])])dnl
  836 ])# LT_LANG
  837 
  838 
  839 # _LT_LANG(LANGNAME)
  840 # ------------------
  841 m4_defun([_LT_LANG],
  842 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  843   [LT_SUPPORTED_TAG([$1])dnl
  844   m4_append([_LT_TAGS], [$1 ])dnl
  845   m4_define([_LT_LANG_]$1[_enabled], [])dnl
  846   _LT_LANG_$1_CONFIG($1)])dnl
  847 ])# _LT_LANG
  848 
  849 
  850 m4_ifndef([AC_PROG_GO], [
  851 ############################################################
  852 # NOTE: This macro has been submitted for inclusion into   #
  853 #  GNU Autoconf as AC_PROG_GO.  When it is available in    #
  854 #  a released version of Autoconf we should remove this    #
  855 #  macro and use it instead.                               #
  856 ############################################################
  857 m4_defun([AC_PROG_GO],
  858 [AC_LANG_PUSH(Go)dnl
  859 AC_ARG_VAR([GOC],     [Go compiler command])dnl
  860 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  861 _AC_ARG_VAR_LDFLAGS()dnl
  862 AC_CHECK_TOOL(GOC, gccgo)
  863 if test -z "$GOC"; then
  864   if test -n "$ac_tool_prefix"; then
  865     AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  866   fi
  867 fi
  868 if test -z "$GOC"; then
  869   AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  870 fi
  871 ])#m4_defun
  872 ])#m4_ifndef
  873 
  874 
  875 # _LT_LANG_DEFAULT_CONFIG
  876 # -----------------------
  877 m4_defun([_LT_LANG_DEFAULT_CONFIG],
  878 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  879   [LT_LANG(CXX)],
  880   [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  881 
  882 AC_PROVIDE_IFELSE([AC_PROG_F77],
  883   [LT_LANG(F77)],
  884   [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  885 
  886 AC_PROVIDE_IFELSE([AC_PROG_FC],
  887   [LT_LANG(FC)],
  888   [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  889 
  890 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  891 dnl pulling things in needlessly.
  892 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  893   [LT_LANG(GCJ)],
  894   [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  895     [LT_LANG(GCJ)],
  896     [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  897       [LT_LANG(GCJ)],
  898       [m4_ifdef([AC_PROG_GCJ],
  899 	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  900        m4_ifdef([A][M_PROG_GCJ],
  901 	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  902        m4_ifdef([LT_PROG_GCJ],
  903 	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  904 
  905 AC_PROVIDE_IFELSE([AC_PROG_GO],
  906   [LT_LANG(GO)],
  907   [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  908 
  909 AC_PROVIDE_IFELSE([LT_PROG_RC],
  910   [LT_LANG(RC)],
  911   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  912 ])# _LT_LANG_DEFAULT_CONFIG
  913 
  914 # Obsolete macros:
  915 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  916 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  917 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  918 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  919 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  920 dnl aclocal-1.4 backwards compatibility:
  921 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  922 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  923 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  924 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  925 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  926 
  927 
  928 # _LT_TAG_COMPILER
  929 # ----------------
  930 m4_defun([_LT_TAG_COMPILER],
  931 [AC_REQUIRE([AC_PROG_CC])dnl
  932 
  933 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  934 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  935 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  936 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  937 
  938 # If no C compiler was specified, use CC.
  939 LTCC=${LTCC-"$CC"}
  940 
  941 # If no C compiler flags were specified, use CFLAGS.
  942 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  943 
  944 # Allow CC to be a program name with arguments.
  945 compiler=$CC
  946 ])# _LT_TAG_COMPILER
  947 
  948 
  949 # _LT_COMPILER_BOILERPLATE
  950 # ------------------------
  951 # Check for compiler boilerplate output or warnings with
  952 # the simple compiler test code.
  953 m4_defun([_LT_COMPILER_BOILERPLATE],
  954 [m4_require([_LT_DECL_SED])dnl
  955 ac_outfile=conftest.$ac_objext
  956 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  957 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  958 _lt_compiler_boilerplate=`cat conftest.err`
  959 $RM conftest*
  960 ])# _LT_COMPILER_BOILERPLATE
  961 
  962 
  963 # _LT_LINKER_BOILERPLATE
  964 # ----------------------
  965 # Check for linker boilerplate output or warnings with
  966 # the simple link test code.
  967 m4_defun([_LT_LINKER_BOILERPLATE],
  968 [m4_require([_LT_DECL_SED])dnl
  969 ac_outfile=conftest.$ac_objext
  970 echo "$lt_simple_link_test_code" >conftest.$ac_ext
  971 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  972 _lt_linker_boilerplate=`cat conftest.err`
  973 $RM -r conftest*
  974 ])# _LT_LINKER_BOILERPLATE
  975 
  976 # _LT_REQUIRED_DARWIN_CHECKS
  977 # -------------------------
  978 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  979   case $host_os in
  980     rhapsody* | darwin*)
  981     AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  982     AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  983     AC_CHECK_TOOL([LIPO], [lipo], [:])
  984     AC_CHECK_TOOL([OTOOL], [otool], [:])
  985     AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  986     _LT_DECL([], [DSYMUTIL], [1],
  987       [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  988     _LT_DECL([], [NMEDIT], [1],
  989       [Tool to change global to local symbols on Mac OS X])
  990     _LT_DECL([], [LIPO], [1],
  991       [Tool to manipulate fat objects and archives on Mac OS X])
  992     _LT_DECL([], [OTOOL], [1],
  993       [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  994     _LT_DECL([], [OTOOL64], [1],
  995       [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  996 
  997     AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  998       [lt_cv_apple_cc_single_mod=no
  999       if test -z "$LT_MULTI_MODULE"; then
 1000 	# By default we will add the -single_module flag. You can override
 1001 	# by either setting the environment variable LT_MULTI_MODULE
 1002 	# non-empty at configure time, or by adding -multi_module to the
 1003 	# link flags.
 1004 	rm -rf libconftest.dylib*
 1005 	echo "int foo(void){return 1;}" > conftest.c
 1006 	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1007 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
 1008 	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 1009 	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 1010         _lt_result=$?
 1011 	# If there is a non-empty error log, and "single_module"
 1012 	# appears in it, assume the flag caused a linker warning
 1013         if test -s conftest.err && $GREP single_module conftest.err; then
 1014 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1015 	# Otherwise, if the output was created with a 0 exit code from
 1016 	# the compiler, it worked.
 1017 	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
 1018 	  lt_cv_apple_cc_single_mod=yes
 1019 	else
 1020 	  cat conftest.err >&AS_MESSAGE_LOG_FD
 1021 	fi
 1022 	rm -rf libconftest.dylib*
 1023 	rm -f conftest.*
 1024       fi])
 1025 
 1026     AC_CACHE_CHECK([for -exported_symbols_list linker flag],
 1027       [lt_cv_ld_exported_symbols_list],
 1028       [lt_cv_ld_exported_symbols_list=no
 1029       save_LDFLAGS=$LDFLAGS
 1030       echo "_main" > conftest.sym
 1031       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 1032       AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 1033 	[lt_cv_ld_exported_symbols_list=yes],
 1034 	[lt_cv_ld_exported_symbols_list=no])
 1035 	LDFLAGS=$save_LDFLAGS
 1036     ])
 1037 
 1038     AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
 1039       [lt_cv_ld_force_load=no
 1040       cat > conftest.c << _LT_EOF
 1041 int forced_loaded() { return 2;}
 1042 _LT_EOF
 1043       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
 1044       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
 1045       echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
 1046       $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
 1047       echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
 1048       $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
 1049       cat > conftest.c << _LT_EOF
 1050 int main() { return 0;}
 1051 _LT_EOF
 1052       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
 1053       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
 1054       _lt_result=$?
 1055       if test -s conftest.err && $GREP force_load conftest.err; then
 1056 	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
 1058 	lt_cv_ld_force_load=yes
 1059       else
 1060 	cat conftest.err >&AS_MESSAGE_LOG_FD
 1061       fi
 1062         rm -f conftest.err libconftest.a conftest conftest.c
 1063         rm -rf conftest.dSYM
 1064     ])
 1065     case $host_os in
 1066     rhapsody* | darwin1.[[012]])
 1067       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
 1068     darwin1.*)
 1069       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
 1070     darwin*) # darwin 5.x on
 1071       # if running on 10.5 or later, the deployment target defaults
 1072       # to the OS version, if on x86, and 10.4, the deployment
 1073       # target defaults to 10.4. Don't you love it?
 1074       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 1075 	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' ;;
 1079 	10.*)
 1080 	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
 1081       esac
 1082     ;;
 1083   esac
 1084     if test yes = "$lt_cv_apple_cc_single_mod"; then
 1085       _lt_dar_single_mod='$single_module'
 1086     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'
 1089     else
 1090       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
 1091     fi
 1092     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
 1093       _lt_dsymutil='~$DSYMUTIL $lib || :'
 1094     else
 1095       _lt_dsymutil=
 1096     fi
 1097     ;;
 1098   esac
 1099 ])
 1100 
 1101 
 1102 # _LT_DARWIN_LINKER_FEATURES([TAG])
 1103 # ---------------------------------
 1104 # Checks for linker and compiler features on darwin
 1105 m4_defun([_LT_DARWIN_LINKER_FEATURES],
 1106 [
 1107   m4_require([_LT_REQUIRED_DARWIN_CHECKS])
 1108   _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 1109   _LT_TAGVAR(hardcode_direct, $1)=no
 1110   _LT_TAGVAR(hardcode_automatic, $1)=yes
 1111   _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\"`'
 1114     m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
 1115                   [FC],  [_LT_TAGVAR(compiler_needs_object, $1)=yes])
 1116   else
 1117     _LT_TAGVAR(whole_archive_flag_spec, $1)=''
 1118   fi
 1119   _LT_TAGVAR(link_all_deplibs, $1)=yes
 1120   _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
 1121   case $cc_basename in
 1122      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
 1123      *) _lt_dar_can_shared=$GCC ;;
 1124   esac
 1125   if test yes = "$_lt_dar_can_shared"; then
 1126     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"
 1131     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"
 1135     fi
 1136 ],[])
 1137   else
 1138   _LT_TAGVAR(ld_shlibs, $1)=no
 1139   fi
 1140 ])
 1141 
 1142 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
 1143 # ----------------------------------
 1144 # Links a minimal program and checks the executable
 1145 # for the system default hardcoded library path. In most cases,
 1146 # this is /usr/lib:/lib, but when the MPI compilers are used
 1147 # the location of the communication and MPI libs are included too.
 1148 # If we don't find anything, use the default library path according
 1149 # to the aix ld manual.
 1150 # Store the results from the different compilers for each TAGNAME.
 1151 # Allow to override them for all tags through lt_cv_aix_libpath.
 1152 m4_defun([_LT_SYS_MODULE_PATH_AIX],
 1153 [m4_require([_LT_DECL_SED])dnl
 1154 if test set = "${lt_cv_aix_libpath+set}"; then
 1155   aix_libpath=$lt_cv_aix_libpath
 1156 else
 1157   AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
 1158   [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
 1159   lt_aix_libpath_sed='[
 1160       /Import File Strings/,/^$/ {
 1161 	  /^0/ {
 1162 	      s/^0  *\([^ ]*\) *$/\1/
 1163 	      p
 1164 	  }
 1165       }]'
 1166   _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1167   # Check for a 64-bit object if we didn't find anything.
 1168   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1169     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 1170   fi],[])
 1171   if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
 1172     _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
 1173   fi
 1174   ])
 1175   aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
 1176 fi
 1177 ])# _LT_SYS_MODULE_PATH_AIX
 1178 
 1179 
 1180 # _LT_SHELL_INIT(ARG)
 1181 # -------------------
 1182 m4_define([_LT_SHELL_INIT],
 1183 [m4_divert_text([M4SH-INIT], [$1
 1184 ])])# _LT_SHELL_INIT
 1185 
 1186 
 1187 
 1188 # _LT_PROG_ECHO_BACKSLASH
 1189 # -----------------------
 1190 # Find how we can fake an echo command that does not interpret backslash.
 1191 # 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).
 1194 m4_defun([_LT_PROG_ECHO_BACKSLASH],
 1195 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1196 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1197 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1198 
 1199 AC_MSG_CHECKING([how to print strings])
 1200 # Test print first, because it will be a builtin if present.
 1201 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
 1202    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
 1203   ECHO='print -r --'
 1204 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
 1205   ECHO='printf %s\n'
 1206 else
 1207   # Use this function as a fallback that always works.
 1208   func_fallback_echo ()
 1209   {
 1210     eval 'cat <<_LTECHO_EOF
 1211 $[]1
 1212 _LTECHO_EOF'
 1213   }
 1214   ECHO='func_fallback_echo'
 1215 fi
 1216 
 1217 # func_echo_all arg...
 1218 # Invoke $ECHO with all args, space-separated.
 1219 func_echo_all ()
 1220 {
 1221     $ECHO "$*"
 1222 }
 1223 
 1224 case $ECHO in
 1225   printf*) AC_MSG_RESULT([printf]) ;;
 1226   print*) AC_MSG_RESULT([print -r]) ;;
 1227   *) AC_MSG_RESULT([cat]) ;;
 1228 esac
 1229 
 1230 m4_ifdef([_AS_DETECT_SUGGESTED],
 1231 [_AS_DETECT_SUGGESTED([
 1232   test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
 1233     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 1234     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
 1235     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
 1236     PATH=/empty FPATH=/empty; export PATH FPATH
 1237     test "X`printf %s $ECHO`" = "X$ECHO" \
 1238       || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
 1239 
 1240 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
 1241 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
 1242 ])# _LT_PROG_ECHO_BACKSLASH
 1243 
 1244 
 1245 # _LT_WITH_SYSROOT
 1246 # ----------------
 1247 AC_DEFUN([_LT_WITH_SYSROOT],
 1248 [AC_MSG_CHECKING([for sysroot])
 1249 AC_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).])],
 1253 [], [with_sysroot=no])
 1254 
 1255 dnl lt_sysroot will always be passed unquoted.  We quote it here
 1256 dnl in case the user passed a directory name.
 1257 lt_sysroot=
 1258 case $with_sysroot in #(
 1259  yes)
 1260    if test yes = "$GCC"; then
 1261      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
 1262    fi
 1263    ;; #(
 1264  /*)
 1265    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
 1266    ;; #(
 1267  no|'')
 1268    ;; #(
 1269  *)
 1270    AC_MSG_RESULT([$with_sysroot])
 1271    AC_MSG_ERROR([The sysroot must be an absolute path.])
 1272    ;;
 1273 esac
 1274 
 1275  AC_MSG_RESULT([${lt_sysroot:-no}])
 1276 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
 1277 [dependent libraries, and where our libraries should be installed.])])
 1278 
 1279 # _LT_ENABLE_LOCK
 1280 # ---------------
 1281 m4_defun([_LT_ENABLE_LOCK],
 1282 [AC_ARG_ENABLE([libtool-lock],
 1283   [AS_HELP_STRING([--disable-libtool-lock],
 1284     [avoid locking (might break parallel builds)])])
 1285 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
 1286 
 1287 # Some flags need to be propagated to the compiler or linker for good
 1288 # libtool support.
 1289 case $host in
 1290 ia64-*-hpux*)
 1291   # Find out what ABI is being produced by ac_compile, and set mode
 1292   # options accordingly.
 1293   echo 'int i;' > conftest.$ac_ext
 1294   if AC_TRY_EVAL(ac_compile); then
 1295     case `/usr/bin/file conftest.$ac_objext` in
 1296       *ELF-32*)
 1297 	HPUX_IA64_MODE=32
 1298 	;;
 1299       *ELF-64*)
 1300 	HPUX_IA64_MODE=64
 1301 	;;
 1302     esac
 1303   fi
 1304   rm -rf conftest*
 1305   ;;
 1306 *-*-irix6*)
 1307   # Find out what ABI is being produced by ac_compile, and set linker
 1308   # options accordingly.
 1309   echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
 1310   if AC_TRY_EVAL(ac_compile); then
 1311     if test yes = "$lt_cv_prog_gnu_ld"; then
 1312       case `/usr/bin/file conftest.$ac_objext` in
 1313 	*32-bit*)
 1314 	  LD="${LD-ld} -melf32bsmip"
 1315 	  ;;
 1316 	*N32*)
 1317 	  LD="${LD-ld} -melf32bmipn32"
 1318 	  ;;
 1319 	*64-bit*)
 1320 	  LD="${LD-ld} -melf64bmip"
 1321 	;;
 1322       esac
 1323     else
 1324       case `/usr/bin/file conftest.$ac_objext` in
 1325 	*32-bit*)
 1326 	  LD="${LD-ld} -32"
 1327 	  ;;
 1328 	*N32*)
 1329 	  LD="${LD-ld} -n32"
 1330 	  ;;
 1331 	*64-bit*)
 1332 	  LD="${LD-ld} -64"
 1333 	  ;;
 1334       esac
 1335     fi
 1336   fi
 1337   rm -rf conftest*
 1338   ;;
 1339 
 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 
 1372 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 1373 s390*-*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.
 1380   echo 'int i;' > conftest.$ac_ext
 1381   if AC_TRY_EVAL(ac_compile); then
 1382     case `/usr/bin/file conftest.o` in
 1383       *32-bit*)
 1384 	case $host in
 1385 	  x86_64-*kfreebsd*-gnu)
 1386 	    LD="${LD-ld} -m elf_i386_fbsd"
 1387 	    ;;
 1388 	  x86_64-*linux*)
 1389 	    case `/usr/bin/file conftest.o` in
 1390 	      *x86-64*)
 1391 		LD="${LD-ld} -m elf32_x86_64"
 1392 		;;
 1393 	      *)
 1394 		LD="${LD-ld} -m elf_i386"
 1395 		;;
 1396 	    esac
 1397 	    ;;
 1398 	  powerpc64le-*linux*)
 1399 	    LD="${LD-ld} -m elf32lppclinux"
 1400 	    ;;
 1401 	  powerpc64-*linux*)
 1402 	    LD="${LD-ld} -m elf32ppclinux"
 1403 	    ;;
 1404 	  s390x-*linux*)
 1405 	    LD="${LD-ld} -m elf_s390"
 1406 	    ;;
 1407 	  sparc64-*linux*)
 1408 	    LD="${LD-ld} -m elf32_sparc"
 1409 	    ;;
 1410 	esac
 1411 	;;
 1412       *64-bit*)
 1413 	case $host in
 1414 	  x86_64-*kfreebsd*-gnu)
 1415 	    LD="${LD-ld} -m elf_x86_64_fbsd"
 1416 	    ;;
 1417 	  x86_64-*linux*)
 1418 	    LD="${LD-ld} -m elf_x86_64"
 1419 	    ;;
 1420 	  powerpcle-*linux*)
 1421 	    LD="${LD-ld} -m elf64lppc"
 1422 	    ;;
 1423 	  powerpc-*linux*)
 1424 	    LD="${LD-ld} -m elf64ppc"
 1425 	    ;;
 1426 	  s390*-*linux*|s390*-*tpf*)
 1427 	    LD="${LD-ld} -m elf64_s390"
 1428 	    ;;
 1429 	  sparc*-*linux*)
 1430 	    LD="${LD-ld} -m elf64_sparc"
 1431 	    ;;
 1432 	esac
 1433 	;;
 1434     esac
 1435   fi
 1436   rm -rf conftest*
 1437   ;;
 1438 
 1439 *-*-sco3.2v5*)
 1440   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 1441   SAVE_CFLAGS=$CFLAGS
 1442   CFLAGS="$CFLAGS -belf"
 1443   AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
 1444     [AC_LANG_PUSH(C)
 1445      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
 1446      AC_LANG_POP])
 1447   if test yes != "$lt_cv_cc_needs_belf"; then
 1448     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 1449     CFLAGS=$SAVE_CFLAGS
 1450   fi
 1451   ;;
 1452 *-*solaris*)
 1453   # Find out what ABI is being produced by ac_compile, and set linker
 1454   # options accordingly.
 1455   echo 'int i;' > conftest.$ac_ext
 1456   if AC_TRY_EVAL(ac_compile); then
 1457     case `/usr/bin/file conftest.o` in
 1458     *64-bit*)
 1459       case $lt_cv_prog_gnu_ld in
 1460       yes*)
 1461         case $host in
 1462         i?86-*-solaris*|x86_64-*-solaris*)
 1463           LD="${LD-ld} -m elf_x86_64"
 1464           ;;
 1465         sparc*-*-solaris*)
 1466           LD="${LD-ld} -m elf64_sparc"
 1467           ;;
 1468         esac
 1469         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
 1470         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
 1471           LD=${LD-ld}_sol2
 1472         fi
 1473         ;;
 1474       *)
 1475 	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 1476 	  LD="${LD-ld} -64"
 1477 	fi
 1478 	;;
 1479       esac
 1480       ;;
 1481     esac
 1482   fi
 1483   rm -rf conftest*
 1484   ;;
 1485 esac
 1486 
 1487 need_locks=$enable_libtool_lock
 1488 ])# _LT_ENABLE_LOCK
 1489 
 1490 
 1491 # _LT_PROG_AR
 1492 # -----------
 1493 m4_defun([_LT_PROG_AR],
 1494 [AC_CHECK_TOOLS(AR, [ar], false)
 1495 : ${AR=ar}
 1496 _LT_DECL([], [AR], [1], [The archiver])
 1497 
 1498 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
 1499 # Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
 1500 # higher priority because thats what people were doing historically (setting
 1501 # ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
 1502 # variable obsoleted/removed.
 1503 
 1504 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
 1505 lt_ar_flags=$AR_FLAGS
 1506 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
 1507 
 1508 # Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
 1509 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
 1510 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
 1511          [Flags to create an archive])
 1512 
 1513 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
 1514   [lt_cv_ar_at_file=no
 1515    AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
 1516      [echo conftest.$ac_objext > conftest.lst
 1517       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
 1518       AC_TRY_EVAL([lt_ar_try])
 1519       if test 0 -eq "$ac_status"; then
 1520 	# Ensure the archiver fails upon bogus file names.
 1521 	rm -f conftest.$ac_objext libconftest.a
 1522 	AC_TRY_EVAL([lt_ar_try])
 1523 	if test 0 -ne "$ac_status"; then
 1524           lt_cv_ar_at_file=@
 1525         fi
 1526       fi
 1527       rm -f conftest.* libconftest.a
 1528      ])
 1529   ])
 1530 
 1531 if test no = "$lt_cv_ar_at_file"; then
 1532   archiver_list_spec=
 1533 else
 1534   archiver_list_spec=$lt_cv_ar_at_file
 1535 fi
 1536 _LT_DECL([], [archiver_list_spec], [1],
 1537   [How to feed a file listing to the archiver])
 1538 ])# _LT_PROG_AR
 1539 
 1540 
 1541 # _LT_CMD_OLD_ARCHIVE
 1542 # -------------------
 1543 m4_defun([_LT_CMD_OLD_ARCHIVE],
 1544 [_LT_PROG_AR
 1545 
 1546 AC_CHECK_TOOL(STRIP, strip, :)
 1547 test -z "$STRIP" && STRIP=:
 1548 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
 1549 
 1550 AC_CHECK_TOOL(RANLIB, ranlib, :)
 1551 test -z "$RANLIB" && RANLIB=:
 1552 _LT_DECL([], [RANLIB], [1],
 1553     [Commands used to install an old-style archive])
 1554 
 1555 # Determine commands to create old-style static archives.
 1556 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 1557 old_postinstall_cmds='chmod 644 $oldlib'
 1558 old_postuninstall_cmds=
 1559 
 1560 if test -n "$RANLIB"; then
 1561   case $host_os in
 1562   bitrig* | openbsd*)
 1563     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 1564     ;;
 1565   *)
 1566     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 1567     ;;
 1568   esac
 1569   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
 1570 fi
 1571 
 1572 case $host_os in
 1573   darwin*)
 1574     lock_old_archive_extraction=yes ;;
 1575   *)
 1576     lock_old_archive_extraction=no ;;
 1577 esac
 1578 _LT_DECL([], [old_postinstall_cmds], [2])
 1579 _LT_DECL([], [old_postuninstall_cmds], [2])
 1580 _LT_TAGDECL([], [old_archive_cmds], [2],
 1581     [Commands used to build an old-style archive])
 1582 _LT_DECL([], [lock_old_archive_extraction], [0],
 1583     [Whether to use a lock for old archive extraction])
 1584 ])# _LT_CMD_OLD_ARCHIVE
 1585 
 1586 
 1587 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1588 #		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
 1589 # ----------------------------------------------------------------
 1590 # Check whether the given compiler option works
 1591 AC_DEFUN([_LT_COMPILER_OPTION],
 1592 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1593 m4_require([_LT_DECL_SED])dnl
 1594 AC_CACHE_CHECK([$1], [$2],
 1595   [$2=no
 1596    m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
 1597    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 1598    lt_compiler_flag="$3"  ## exclude from sc_useless_quotes_in_assignment
 1599    # Insert the option either (1) after the last *FLAGS variable, or
 1600    # (2) before a word containing "conftest.", or (3) at the end.
 1601    # Note that $ac_compile itself does not contain backslashes and begins
 1602    # with a dollar sign (not a hyphen), so the echo should work correctly.
 1603    # The option is referenced via a variable to avoid confusing sed.
 1604    lt_compile=`echo "$ac_compile" | $SED \
 1605    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 1606    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 1607    -e 's:$: $lt_compiler_flag:'`
 1608    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 1609    (eval "$lt_compile" 2>conftest.err)
 1610    ac_status=$?
 1611    cat conftest.err >&AS_MESSAGE_LOG_FD
 1612    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 1613    if (exit $ac_status) && test -s "$ac_outfile"; then
 1614      # The compiler can only warn and ignore the option if not recognized
 1615      # So say no if there are warnings other than the usual output.
 1616      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
 1617      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1618      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 1619        $2=yes
 1620      fi
 1621    fi
 1622    $RM conftest*
 1623 ])
 1624 
 1625 if test yes = "[$]$2"; then
 1626     m4_if([$5], , :, [$5])
 1627 else
 1628     m4_if([$6], , :, [$6])
 1629 fi
 1630 ])# _LT_COMPILER_OPTION
 1631 
 1632 # Old name:
 1633 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
 1634 dnl aclocal-1.4 backwards compatibility:
 1635 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
 1636 
 1637 
 1638 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
 1639 #                  [ACTION-SUCCESS], [ACTION-FAILURE])
 1640 # ----------------------------------------------------
 1641 # Check whether the given linker option works
 1642 AC_DEFUN([_LT_LINKER_OPTION],
 1643 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 1644 m4_require([_LT_DECL_SED])dnl
 1645 AC_CACHE_CHECK([$1], [$2],
 1646   [$2=no
 1647    save_LDFLAGS=$LDFLAGS
 1648    LDFLAGS="$LDFLAGS $3"
 1649    echo "$lt_simple_link_test_code" > conftest.$ac_ext
 1650    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 1651      # The linker can only warn and ignore the option if not recognized
 1652      # So say no if there are warnings
 1653      if test -s conftest.err; then
 1654        # Append any errors to the config.log.
 1655        cat conftest.err 1>&AS_MESSAGE_LOG_FD
 1656        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
 1657        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 1658        if diff conftest.exp conftest.er2 >/dev/null; then
 1659          $2=yes
 1660        fi
 1661      else
 1662        $2=yes
 1663      fi
 1664    fi
 1665    $RM -r conftest*
 1666    LDFLAGS=$save_LDFLAGS
 1667 ])
 1668 
 1669 if test yes = "[$]$2"; then
 1670     m4_if([$4], , :, [$4])
 1671 else
 1672     m4_if([$5], , :, [$5])
 1673 fi
 1674 ])# _LT_LINKER_OPTION
 1675 
 1676 # Old name:
 1677 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
 1678 dnl aclocal-1.4 backwards compatibility:
 1679 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
 1680 
 1681 
 1682 # LT_CMD_MAX_LEN
 1683 #---------------
 1684 AC_DEFUN([LT_CMD_MAX_LEN],
 1685 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 1686 # find the maximum length of command line arguments
 1687 AC_MSG_CHECKING([the maximum length of command line arguments])
 1688 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 1689   i=0
 1690   teststring=ABCD
 1691 
 1692   case $build_os in
 1693   msdosdjgpp*)
 1694     # On DJGPP, this test can blow up pretty badly due to problems in libc
 1695     # (any single argument exceeding 2000 bytes causes a buffer overrun
 1696     # during glob expansion).  Even if it were fixed, the result of this
 1697     # check would be larger than it should be.
 1698     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 1699     ;;
 1700 
 1701   gnu*)
 1702     # Under GNU Hurd, this test is not required because there is
 1703     # no limit to the length of command line arguments.
 1704     # Libtool will interpret -1 as no limit whatsoever
 1705     lt_cv_sys_max_cmd_len=-1;
 1706     ;;
 1707 
 1708   cygwin* | mingw* | cegcc*)
 1709     # On Win9x/ME, this test blows up -- it succeeds, but takes
 1710     # about 5 minutes as the teststring grows exponentially.
 1711     # Worse, since 9x/ME are not pre-emptively multitasking,
 1712     # you end up with a "frozen" computer, even though with patience
 1713     # the test eventually succeeds (with a max line length of 256k).
 1714     # Instead, let's just punt: use the minimum linelength reported by
 1715     # all of the supported platforms: 8192 (on NT/2K/XP).
 1716     lt_cv_sys_max_cmd_len=8192;
 1717     ;;
 1718 
 1719   mint*)
 1720     # On MiNT this can take a long time and run out of memory.
 1721     lt_cv_sys_max_cmd_len=8192;
 1722     ;;
 1723 
 1724   amigaos*)
 1725     # On AmigaOS with pdksh, this test takes hours, literally.
 1726     # So we just punt and use a minimum line length of 8192.
 1727     lt_cv_sys_max_cmd_len=8192;
 1728     ;;
 1729 
 1730   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
 1731     # This has been around since 386BSD, at least.  Likely further.
 1732     if test -x /sbin/sysctl; then
 1733       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 1734     elif test -x /usr/sbin/sysctl; then
 1735       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 1736     else
 1737       lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
 1738     fi
 1739     # And add a safety zone
 1740     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1741     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1742     ;;
 1743 
 1744   interix*)
 1745     # We know the value 262144 and hardcode it with a safety zone (like BSD)
 1746     lt_cv_sys_max_cmd_len=196608
 1747     ;;
 1748 
 1749   os2*)
 1750     # The test takes a long time on OS/2.
 1751     lt_cv_sys_max_cmd_len=8192
 1752     ;;
 1753 
 1754   osf*)
 1755     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 1756     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 1757     # nice to cause kernel panics so lets avoid the loop below.
 1758     # First set a reasonable default.
 1759     lt_cv_sys_max_cmd_len=16384
 1760     #
 1761     if test -x /sbin/sysconfig; then
 1762       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 1763         *1*) lt_cv_sys_max_cmd_len=-1 ;;
 1764       esac
 1765     fi
 1766     ;;
 1767   sco3.2v5*)
 1768     lt_cv_sys_max_cmd_len=102400
 1769     ;;
 1770   sysv5* | sco5v6* | sysv4.2uw2*)
 1771     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 1772     if test -n "$kargmax"; then
 1773       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
 1774     else
 1775       lt_cv_sys_max_cmd_len=32768
 1776     fi
 1777     ;;
 1778   *)
 1779     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 1780     if test -n "$lt_cv_sys_max_cmd_len" && \
 1781        test undefined != "$lt_cv_sys_max_cmd_len"; then
 1782       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 1783       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 1784     else
 1785       # Make teststring a little bigger before we do anything with it.
 1786       # a 1K string should be a reasonable start.
 1787       for i in 1 2 3 4 5 6 7 8; do
 1788         teststring=$teststring$teststring
 1789       done
 1790       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 1791       # If test is not a shell built-in, we'll probably end up computing a
 1792       # maximum length that is only half of the actual maximum length, but
 1793       # we can't tell.
 1794       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
 1795 	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
 1796 	      test 17 != "$i" # 1/2 MB should be enough
 1797       do
 1798         i=`expr $i + 1`
 1799         teststring=$teststring$teststring
 1800       done
 1801       # Only check the string length outside the loop.
 1802       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 1803       teststring=
 1804       # Add a significant safety factor because C++ compilers can tack on
 1805       # massive amounts of additional arguments before passing them to the
 1806       # linker.  It appears as though 1/2 is a usable value.
 1807       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 1808     fi
 1809     ;;
 1810   esac
 1811 ])
 1812 if test -n "$lt_cv_sys_max_cmd_len"; then
 1813   AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
 1814 else
 1815   AC_MSG_RESULT(none)
 1816 fi
 1817 max_cmd_len=$lt_cv_sys_max_cmd_len
 1818 _LT_DECL([], [max_cmd_len], [0],
 1819     [What is the maximum length of a command?])
 1820 ])# LT_CMD_MAX_LEN
 1821 
 1822 # Old name:
 1823 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
 1824 dnl aclocal-1.4 backwards compatibility:
 1825 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
 1826 
 1827 
 1828 # _LT_HEADER_DLFCN
 1829 # ----------------
 1830 m4_defun([_LT_HEADER_DLFCN],
 1831 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
 1832 ])# _LT_HEADER_DLFCN
 1833 
 1834 
 1835 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
 1836 #                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
 1837 # ----------------------------------------------------------------
 1838 m4_defun([_LT_TRY_DLOPEN_SELF],
 1839 [m4_require([_LT_HEADER_DLFCN])dnl
 1840 if test yes = "$cross_compiling"; then :
 1841   [$4]
 1842 else
 1843   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 1844   lt_status=$lt_dlunknown
 1845   cat > conftest.$ac_ext <<_LT_EOF
 1846 [#line $LINENO "configure"
 1847 #include "confdefs.h"
 1848 
 1849 #if HAVE_DLFCN_H
 1850 #include <dlfcn.h>
 1851 #endif
 1852 
 1853 #include <stdio.h>
 1854 
 1855 #ifdef RTLD_GLOBAL
 1856 #  define LT_DLGLOBAL		RTLD_GLOBAL
 1857 #else
 1858 #  ifdef DL_GLOBAL
 1859 #    define LT_DLGLOBAL		DL_GLOBAL
 1860 #  else
 1861 #    define LT_DLGLOBAL		0
 1862 #  endif
 1863 #endif
 1864 
 1865 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 1866    find out it does not work in some platform. */
 1867 #ifndef LT_DLLAZY_OR_NOW
 1868 #  ifdef RTLD_LAZY
 1869 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 1870 #  else
 1871 #    ifdef DL_LAZY
 1872 #      define LT_DLLAZY_OR_NOW		DL_LAZY
 1873 #    else
 1874 #      ifdef RTLD_NOW
 1875 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 1876 #      else
 1877 #        ifdef DL_NOW
 1878 #          define LT_DLLAZY_OR_NOW	DL_NOW
 1879 #        else
 1880 #          define LT_DLLAZY_OR_NOW	0
 1881 #        endif
 1882 #      endif
 1883 #    endif
 1884 #  endif
 1885 #endif
 1886 
 1887 /* When -fvisibility=hidden is used, assume the code has been annotated
 1888    correspondingly for the symbols needed.  */
 1889 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
 1890 int fnord () __attribute__((visibility("default")));
 1891 #endif
 1892 
 1893 int fnord () { return 42; }
 1894 int main ()
 1895 {
 1896   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 1897   int status = $lt_dlunknown;
 1898 
 1899   if (self)
 1900     {
 1901       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 1902       else
 1903         {
 1904 	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
 1905           else puts (dlerror ());
 1906 	}
 1907       /* dlclose (self); */
 1908     }
 1909   else
 1910     puts (dlerror ());
 1911 
 1912   return status;
 1913 }]
 1914 _LT_EOF
 1915   if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
 1916     (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
 1917     lt_status=$?
 1918     case x$lt_status in
 1919       x$lt_dlno_uscore) $1 ;;
 1920       x$lt_dlneed_uscore) $2 ;;
 1921       x$lt_dlunknown|x*) $3 ;;
 1922     esac
 1923   else :
 1924     # compilation failed
 1925     $3
 1926   fi
 1927 fi
 1928 rm -fr conftest*
 1929 ])# _LT_TRY_DLOPEN_SELF
 1930 
 1931 
 1932 # LT_SYS_DLOPEN_SELF
 1933 # ------------------
 1934 AC_DEFUN([LT_SYS_DLOPEN_SELF],
 1935 [m4_require([_LT_HEADER_DLFCN])dnl
 1936 if test yes != "$enable_dlopen"; then
 1937   enable_dlopen=unknown
 1938   enable_dlopen_self=unknown
 1939   enable_dlopen_self_static=unknown
 1940 else
 1941   lt_cv_dlopen=no
 1942   lt_cv_dlopen_libs=
 1943 
 1944   case $host_os in
 1945   beos*)
 1946     lt_cv_dlopen=load_add_on
 1947     lt_cv_dlopen_libs=
 1948     lt_cv_dlopen_self=yes
 1949     ;;
 1950 
 1951   mingw* | pw32* | cegcc*)
 1952     lt_cv_dlopen=LoadLibrary
 1953     lt_cv_dlopen_libs=
 1954     ;;
 1955 
 1956   cygwin*)
 1957     lt_cv_dlopen=dlopen
 1958     lt_cv_dlopen_libs=
 1959     ;;
 1960 
 1961   darwin*)
 1962     # if libdl is installed we need to link against it
 1963     AC_CHECK_LIB([dl], [dlopen],
 1964 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
 1965     lt_cv_dlopen=dyld
 1966     lt_cv_dlopen_libs=
 1967     lt_cv_dlopen_self=yes
 1968     ])
 1969     ;;
 1970 
 1971   tpf*)
 1972     # Don't try to run any link tests for TPF.  We know it's impossible
 1973     # because TPF is a cross-compiler, and we know how we open DSOs.
 1974     lt_cv_dlopen=dlopen
 1975     lt_cv_dlopen_libs=
 1976     lt_cv_dlopen_self=no
 1977     ;;
 1978 
 1979   *)
 1980     AC_CHECK_FUNC([shl_load],
 1981 	  [lt_cv_dlopen=shl_load],
 1982       [AC_CHECK_LIB([dld], [shl_load],
 1983 	    [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
 1984 	[AC_CHECK_FUNC([dlopen],
 1985 	      [lt_cv_dlopen=dlopen],
 1986 	  [AC_CHECK_LIB([dl], [dlopen],
 1987 		[lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
 1988 	    [AC_CHECK_LIB([svld], [dlopen],
 1989 		  [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
 1990 	      [AC_CHECK_LIB([dld], [dld_link],
 1991 		    [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
 1992 	      ])
 1993 	    ])
 1994 	  ])
 1995 	])
 1996       ])
 1997     ;;
 1998   esac
 1999 
 2000   if test no = "$lt_cv_dlopen"; then
 2001     enable_dlopen=no
 2002   else
 2003     enable_dlopen=yes
 2004   fi
 2005 
 2006   case $lt_cv_dlopen in
 2007   dlopen)
 2008     save_CPPFLAGS=$CPPFLAGS
 2009     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 2010 
 2011     save_LDFLAGS=$LDFLAGS
 2012     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 2013 
 2014     save_LIBS=$LIBS
 2015     LIBS="$lt_cv_dlopen_libs $LIBS"
 2016 
 2017     AC_CACHE_CHECK([whether a program can dlopen itself],
 2018 	  lt_cv_dlopen_self, [dnl
 2019 	  _LT_TRY_DLOPEN_SELF(
 2020 	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
 2021 	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
 2022     ])
 2023 
 2024     if test yes = "$lt_cv_dlopen_self"; then
 2025       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 2026       AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
 2027 	  lt_cv_dlopen_self_static, [dnl
 2028 	  _LT_TRY_DLOPEN_SELF(
 2029 	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
 2030 	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
 2031       ])
 2032     fi
 2033 
 2034     CPPFLAGS=$save_CPPFLAGS
 2035     LDFLAGS=$save_LDFLAGS
 2036     LIBS=$save_LIBS
 2037     ;;
 2038   esac
 2039 
 2040   case $lt_cv_dlopen_self in
 2041   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 2042   *) enable_dlopen_self=unknown ;;
 2043   esac
 2044 
 2045   case $lt_cv_dlopen_self_static in
 2046   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 2047   *) enable_dlopen_self_static=unknown ;;
 2048   esac
 2049 fi
 2050 _LT_DECL([dlopen_support], [enable_dlopen], [0],
 2051 	 [Whether dlopen is supported])
 2052 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
 2053 	 [Whether dlopen of programs is supported])
 2054 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
 2055 	 [Whether dlopen of statically linked programs is supported])
 2056 ])# LT_SYS_DLOPEN_SELF
 2057 
 2058 # Old name:
 2059 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
 2060 dnl aclocal-1.4 backwards compatibility:
 2061 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
 2062 
 2063 
 2064 # _LT_COMPILER_C_O([TAGNAME])
 2065 # ---------------------------
 2066 # Check to see if options -c and -o are simultaneously supported by compiler.
 2067 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
 2068 m4_defun([_LT_COMPILER_C_O],
 2069 [m4_require([_LT_DECL_SED])dnl
 2070 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2071 m4_require([_LT_TAG_COMPILER])dnl
 2072 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
 2073   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
 2074   [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
 2075    $RM -r conftest 2>/dev/null
 2076    mkdir conftest
 2077    cd conftest
 2078    mkdir out
 2079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 2080 
 2081    lt_compiler_flag="-o out/conftest2.$ac_objext"
 2082    # Insert the option either (1) after the last *FLAGS variable, or
 2083    # (2) before a word containing "conftest.", or (3) at the end.
 2084    # Note that $ac_compile itself does not contain backslashes and begins
 2085    # with a dollar sign (not a hyphen), so the echo should work correctly.
 2086    lt_compile=`echo "$ac_compile" | $SED \
 2087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 2088    -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
 2089    -e 's:$: $lt_compiler_flag:'`
 2090    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
 2091    (eval "$lt_compile" 2>out/conftest.err)
 2092    ac_status=$?
 2093    cat out/conftest.err >&AS_MESSAGE_LOG_FD
 2094    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
 2095    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 2096    then
 2097      # The compiler can only warn and ignore the option if not recognized
 2098      # So say no if there are warnings
 2099      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
 2100      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 2101      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 2102        _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 2103      fi
 2104    fi
 2105    chmod u+w . 2>&AS_MESSAGE_LOG_FD
 2106    $RM conftest*
 2107    # SGI C++ compiler will create directory out/ii_files/ for
 2108    # template instantiation
 2109    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 2110    $RM out/* && rmdir out
 2111    cd ..
 2112    $RM -r conftest
 2113    $RM conftest*
 2114 ])
 2115 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
 2116 	[Does compiler simultaneously support -c and -o options?])
 2117 ])# _LT_COMPILER_C_O
 2118 
 2119 
 2120 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
 2121 # ----------------------------------
 2122 # Check to see if we can do hard links to lock some files if needed
 2123 m4_defun([_LT_COMPILER_FILE_LOCKS],
 2124 [m4_require([_LT_ENABLE_LOCK])dnl
 2125 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2126 _LT_COMPILER_C_O([$1])
 2127 
 2128 hard_links=nottested
 2129 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
 2130   # do not overwrite the value of need_locks provided by the user
 2131   AC_MSG_CHECKING([if we can lock with hard links])
 2132   hard_links=yes
 2133   $RM conftest*
 2134   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2135   touch conftest.a
 2136   ln conftest.a conftest.b 2>&5 || hard_links=no
 2137   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 2138   AC_MSG_RESULT([$hard_links])
 2139   if test no = "$hard_links"; then
 2140     AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
 2141     need_locks=warn
 2142   fi
 2143 else
 2144   need_locks=no
 2145 fi
 2146 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
 2147 ])# _LT_COMPILER_FILE_LOCKS
 2148 
 2149 
 2150 # _LT_CHECK_OBJDIR
 2151 # ----------------
 2152 m4_defun([_LT_CHECK_OBJDIR],
 2153 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
 2154 [rm -f .libs 2>/dev/null
 2155 mkdir .libs 2>/dev/null
 2156 if test -d .libs; then
 2157   lt_cv_objdir=.libs
 2158 else
 2159   # MS-DOS does not allow filenames that begin with a dot.
 2160   lt_cv_objdir=_libs
 2161 fi
 2162 rmdir .libs 2>/dev/null])
 2163 objdir=$lt_cv_objdir
 2164 _LT_DECL([], [objdir], [0],
 2165          [The name of the directory that contains temporary libtool files])dnl
 2166 m4_pattern_allow([LT_OBJDIR])dnl
 2167 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
 2168   [Define to the sub-directory where libtool stores uninstalled libraries.])
 2169 ])# _LT_CHECK_OBJDIR
 2170 
 2171 
 2172 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
 2173 # --------------------------------------
 2174 # Check hardcoding attributes.
 2175 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
 2176 [AC_MSG_CHECKING([how to hardcode library paths into programs])
 2177 _LT_TAGVAR(hardcode_action, $1)=
 2178 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
 2179    test -n "$_LT_TAGVAR(runpath_var, $1)" ||
 2180    test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
 2181 
 2182   # We can hardcode non-existent directories.
 2183   if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
 2184      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 2185      # have to relink, otherwise we might link with an installed library
 2186      # when we should be linking with a yet-to-be-installed one
 2187      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
 2188      test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
 2189     # Linking always hardcodes the temporary library directory.
 2190     _LT_TAGVAR(hardcode_action, $1)=relink
 2191   else
 2192     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 2193     _LT_TAGVAR(hardcode_action, $1)=immediate
 2194   fi
 2195 else
 2196   # We cannot hardcode anything, or else we can only hardcode existing
 2197   # directories.
 2198   _LT_TAGVAR(hardcode_action, $1)=unsupported
 2199 fi
 2200 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
 2201 
 2202 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
 2203    test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
 2204   # Fast installation is not supported
 2205   enable_fast_install=no
 2206 elif test yes = "$shlibpath_overrides_runpath" ||
 2207      test no = "$enable_shared"; then
 2208   # Fast installation is not necessary
 2209   enable_fast_install=needless
 2210 fi
 2211 _LT_TAGDECL([], [hardcode_action], [0],
 2212     [How to hardcode a shared library path into an executable])
 2213 ])# _LT_LINKER_HARDCODE_LIBPATH
 2214 
 2215 
 2216 # _LT_CMD_STRIPLIB
 2217 # ----------------
 2218 m4_defun([_LT_CMD_STRIPLIB],
 2219 [m4_require([_LT_DECL_EGREP])
 2220 striplib=
 2221 old_striplib=
 2222 AC_MSG_CHECKING([whether stripping libraries is possible])
 2223 if test -z "$STRIP"; then
 2224   AC_MSG_RESULT([no])
 2225 else
 2226   if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 2227     old_striplib="$STRIP --strip-debug"
 2228     striplib="$STRIP --strip-unneeded"
 2229     AC_MSG_RESULT([yes])
 2230   else
 2231     case $host_os in
 2232     darwin*)
 2233       # FIXME - insert some real tests, host_os isn't really good enough
 2234       striplib="$STRIP -x"
 2235       old_striplib="$STRIP -S"
 2236       AC_MSG_RESULT([yes])
 2237       ;;
 2238     freebsd*)
 2239       if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
 2240         old_striplib="$STRIP --strip-debug"
 2241         striplib="$STRIP --strip-unneeded"
 2242         AC_MSG_RESULT([yes])
 2243       else
 2244         AC_MSG_RESULT([no])
 2245       fi
 2246       ;;
 2247     *)
 2248       AC_MSG_RESULT([no])
 2249       ;;
 2250     esac
 2251   fi
 2252 fi
 2253 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
 2254 _LT_DECL([], [striplib], [1])
 2255 ])# _LT_CMD_STRIPLIB
 2256 
 2257 
 2258 # _LT_PREPARE_MUNGE_PATH_LIST
 2259 # ---------------------------
 2260 # Make sure func_munge_path_list() is defined correctly.
 2261 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
 2262 [[# func_munge_path_list VARIABLE PATH
 2263 # -----------------------------------
 2264 # VARIABLE is name of variable containing _space_ separated list of
 2265 # directories to be munged by the contents of PATH, which is string
 2266 # having a format:
 2267 # "DIR[:DIR]:"
 2268 #       string "DIR[ DIR]" will be prepended to VARIABLE
 2269 # ":DIR[:DIR]"
 2270 #       string "DIR[ DIR]" will be appended to VARIABLE
 2271 # "DIRP[:DIRP]::[DIRA:]DIRA"
 2272 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
 2273 #       "DIRA[ DIRA]" will be appended to VARIABLE
 2274 # "DIR[:DIR]"
 2275 #       VARIABLE will be replaced by "DIR[ DIR]"
 2276 func_munge_path_list ()
 2277 {
 2278     case x@S|@2 in
 2279     x)
 2280         ;;
 2281     *:)
 2282         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
 2283         ;;
 2284     x:*)
 2285         eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2286         ;;
 2287     *::*)
 2288         eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
 2289         eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
 2290         ;;
 2291     *)
 2292         eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
 2293         ;;
 2294     esac
 2295 }
 2296 ]])# _LT_PREPARE_PATH_LIST
 2297 
 2298 
 2299 # _LT_SYS_DYNAMIC_LINKER([TAG])
 2300 # -----------------------------
 2301 # PORTME Fill in your ld.so characteristics
 2302 m4_defun([_LT_SYS_DYNAMIC_LINKER],
 2303 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 2304 m4_require([_LT_DECL_EGREP])dnl
 2305 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 2306 m4_require([_LT_DECL_OBJDUMP])dnl
 2307 m4_require([_LT_DECL_SED])dnl
 2308 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
 2309 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
 2310 AC_MSG_CHECKING([dynamic linker characteristics])
 2311 m4_if([$1],
 2312 	[], [
 2313 if test yes = "$GCC"; then
 2314   case $host_os in
 2315     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
 2316     *) lt_awk_arg='/^libraries:/' ;;
 2317   esac
 2318   case $host_os in
 2319     mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
 2320     *) lt_sed_strip_eq='s|=/|/|g' ;;
 2321   esac
 2322   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
 2323   case $lt_search_path_spec in
 2324   *\;*)
 2325     # if the path contains ";" then we assume it to be the separator
 2326     # otherwise default to the standard path separator (i.e. ":") - it is
 2327     # assumed that no part of a normal pathname contains ";" but that should
 2328     # okay in the real world where ";" in dirpaths is itself problematic.
 2329     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
 2330     ;;
 2331   *)
 2332     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
 2333     ;;
 2334   esac
 2335   # Ok, now we have the path, separated by spaces, we can step through it
 2336   # and add multilib dir if necessary...
 2337   lt_tmp_lt_search_path_spec=
 2338   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 2339   # ...but if some path component already ends with the multilib dir we assume
 2340   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
 2341   case "$lt_multi_os_dir; $lt_search_path_spec " in
 2342   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
 2343     lt_multi_os_dir=
 2344     ;;
 2345   esac
 2346   for lt_sys_path in $lt_search_path_spec; do
 2347     if test -d "$lt_sys_path$lt_multi_os_dir"; then
 2348       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
 2349     elif test -n "$lt_multi_os_dir"; then
 2350       test -d "$lt_sys_path" && \
 2351 	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 2352     fi
 2353   done
 2354   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
 2355 BEGIN {RS = " "; FS = "/|\n";} {
 2356   lt_foo = "";
 2357   lt_count = 0;
 2358   for (lt_i = NF; lt_i > 0; lt_i--) {
 2359     if ($lt_i != "" && $lt_i != ".") {
 2360       if ($lt_i == "..") {
 2361         lt_count++;
 2362       } else {
 2363         if (lt_count == 0) {
 2364           lt_foo = "/" $lt_i lt_foo;
 2365         } else {
 2366           lt_count--;
 2367         }
 2368       }
 2369     }
 2370   }
 2371   if (lt_foo != "") { lt_freq[[lt_foo]]++; }
 2372   if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
 2373 }'`
 2374   # AWK program above erroneously prepends '/' to C:/dos/paths
 2375   # for these hosts.
 2376   case $host_os in
 2377     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
 2378       $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
 2379   esac
 2380   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
 2381 else
 2382   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 2383 fi])
 2384 library_names_spec=
 2385 libname_spec='lib$name'
 2386 soname_spec=
 2387 shrext_cmds=.so
 2388 postinstall_cmds=
 2389 postuninstall_cmds=
 2390 finish_cmds=
 2391 finish_eval=
 2392 shlibpath_var=
 2393 shlibpath_overrides_runpath=unknown
 2394 version_type=none
 2395 dynamic_linker="$host_os ld.so"
 2396 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 2397 need_lib_prefix=unknown
 2398 hardcode_into_libs=no
 2399 
 2400 # when you set need_version to no, make sure it does not cause -set_version
 2401 # flags to be left without arguments
 2402 need_version=unknown
 2403 
 2404 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
 2405 [User-defined run-time library search path.])
 2406 
 2407 case $host_os in
 2408 aix3*)
 2409   version_type=linux # correct to gnu/linux during the next big refactor
 2410   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
 2411   shlibpath_var=LIBPATH
 2412 
 2413   # AIX 3 has no versioning support, so we append a major version to the name.
 2414   soname_spec='$libname$release$shared_ext$major'
 2415   ;;
 2416 
 2417 aix[[4-9]]*)
 2418   version_type=linux # correct to gnu/linux during the next big refactor
 2419   need_lib_prefix=no
 2420   need_version=no
 2421   hardcode_into_libs=yes
 2422   if test ia64 = "$host_cpu"; then
 2423     # AIX 5 supports IA64
 2424     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
 2425     shlibpath_var=LD_LIBRARY_PATH
 2426   else
 2427     # With GCC up to 2.95.x, collect2 would create an import file
 2428     # for dependence libraries.  The import file would start with
 2429     # the line '#! .'.  This would cause the generated library to
 2430     # depend on '.', always an invalid library.  This was fixed in
 2431     # development snapshots of GCC prior to 3.0.
 2432     case $host_os in
 2433       aix4 | aix4.[[01]] | aix4.[[01]].*)
 2434       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 2435 	   echo ' yes '
 2436 	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
 2437 	:
 2438       else
 2439 	can_build_shared=no
 2440       fi
 2441       ;;
 2442     esac
 2443     # Using Import Files as archive members, it is possible to support
 2444     # filename-based versioning of shared library archives on AIX. While
 2445     # this would work for both with and without runtime linking, it will
 2446     # prevent static linking of such archives. So we do filename-based
 2447     # shared library versioning with .so extension only, which is used
 2448     # when both runtime linking and shared linking is enabled.
 2449     # Unfortunately, runtime linking may impact performance, so we do
 2450     # not want this to be the default eventually. Also, we use the
 2451     # versioned .so libs for executables only if there is the -brtl
 2452     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
 2453     # To allow for filename-based versioning support, we need to create
 2454     # libNAME.so.V as an archive file, containing:
 2455     # *) an Import File, referring to the versioned filename of the
 2456     #    archive as well as the shared archive member, telling the
 2457     #    bitwidth (32 or 64) of that shared object, and providing the
 2458     #    list of exported symbols of that shared object, eventually
 2459     #    decorated with the 'weak' keyword
 2460     # *) the shared object with the F_LOADONLY flag set, to really avoid
 2461     #    it being seen by the linker.
 2462     # At run time we better use the real file rather than another symlink,
 2463     # but for link time we create the symlink libNAME.so -> libNAME.so.V
 2464 
 2465     case $with_aix_soname,$aix_use_runtimelinking in
 2466     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
 2467     # soname into executable. Probably we can add versioning support to
 2468     # collect2, so additional links can be useful in future.
 2469     aix,yes) # traditional libtool
 2470       dynamic_linker='AIX unversionable lib.so'
 2471       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 2472       # instead of lib<name>.a to let people know that these are not
 2473       # typical AIX shared libraries.
 2474       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2475       ;;
 2476     aix,no) # traditional AIX only
 2477       dynamic_linker='AIX lib.a[(]lib.so.V[)]'
 2478       # We preserve .a as extension for shared libraries through AIX4.2
 2479       # and later when we are not doing run time linking.
 2480       library_names_spec='$libname$release.a $libname.a'
 2481       soname_spec='$libname$release$shared_ext$major'
 2482       ;;
 2483     svr4,*) # full svr4 only
 2484       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
 2485       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2486       # We do not specify a path in Import Files, so LIBPATH fires.
 2487       shlibpath_overrides_runpath=yes
 2488       ;;
 2489     *,yes) # both, prefer svr4
 2490       dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
 2491       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
 2492       # unpreferred sharedlib libNAME.a needs extra handling
 2493       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"'
 2494       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"'
 2495       # We do not specify a path in Import Files, so LIBPATH fires.
 2496       shlibpath_overrides_runpath=yes
 2497       ;;
 2498     *,no) # both, prefer aix
 2499       dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
 2500       library_names_spec='$libname$release.a $libname.a'
 2501       soname_spec='$libname$release$shared_ext$major'
 2502       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
 2503       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)'
 2504       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"'
 2505       ;;
 2506     esac
 2507     shlibpath_var=LIBPATH
 2508   fi
 2509   ;;
 2510 
 2511 amigaos*)
 2512   case $host_cpu in
 2513   powerpc)
 2514     # Since July 2007 AmigaOS4 officially supports .so libraries.
 2515     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 2516     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2517     ;;
 2518   m68k)
 2519     library_names_spec='$libname.ixlibrary $libname.a'
 2520     # Create ${libname}_ixlibrary.a entries in /sys/libs.
 2521     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'
 2522     ;;
 2523   esac
 2524   ;;
 2525 
 2526 beos*)
 2527   library_names_spec='$libname$shared_ext'
 2528   dynamic_linker="$host_os ld.so"
 2529   shlibpath_var=LIBRARY_PATH
 2530   ;;
 2531 
 2532 bsdi[[45]]*)
 2533   version_type=linux # correct to gnu/linux during the next big refactor
 2534   need_version=no
 2535   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2536   soname_spec='$libname$release$shared_ext$major'
 2537   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 2538   shlibpath_var=LD_LIBRARY_PATH
 2539   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 2540   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 2541   # the default ld.so.conf also contains /usr/contrib/lib and
 2542   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 2543   # libtool to hard-code these into programs
 2544   ;;
 2545 
 2546 cygwin* | mingw* | pw32* | cegcc*)
 2547   version_type=windows
 2548   shrext_cmds=.dll
 2549   need_version=no
 2550   need_lib_prefix=no
 2551 
 2552   case $GCC,$cc_basename in
 2553   yes,*)
 2554     # gcc
 2555     library_names_spec='$libname.dll.a'
 2556     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2557     postinstall_cmds='base_file=`basename \$file`~
 2558       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2559       dldir=$destdir/`dirname \$dlpath`~
 2560       test -d \$dldir || mkdir -p \$dldir~
 2561       $install_prog $dir/$dlname \$dldir/$dlname~
 2562       chmod a+x \$dldir/$dlname~
 2563       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 2564         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 2565       fi'
 2566     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2567       dlpath=$dir/\$dldll~
 2568        $RM \$dlpath'
 2569     shlibpath_overrides_runpath=yes
 2570 
 2571     case $host_os in
 2572     cygwin*)
 2573       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 2574       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2575 m4_if([$1], [],[
 2576       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
 2577       ;;
 2578     mingw* | cegcc*)
 2579       # MinGW DLLs use traditional 'lib' prefix
 2580       soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2581       ;;
 2582     pw32*)
 2583       # pw32 DLLs use 'pw' prefix rather than 'lib'
 2584       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2585       ;;
 2586     esac
 2587     dynamic_linker='Win32 ld.exe'
 2588     ;;
 2589 
 2590   *,cl* | *,icl*)
 2591     # Native MSVC or ICC
 2592     libname_spec='$name'
 2593     soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
 2594     library_names_spec='$libname.dll.lib'
 2595 
 2596     case $build_os in
 2597     mingw*)
 2598       sys_lib_search_path_spec=
 2599       lt_save_ifs=$IFS
 2600       IFS=';'
 2601       for lt_path in $LIB
 2602       do
 2603         IFS=$lt_save_ifs
 2604         # Let DOS variable expansion print the short 8.3 style file name.
 2605         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
 2606         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
 2607       done
 2608       IFS=$lt_save_ifs
 2609       # Convert to MSYS style.
 2610       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
 2611       ;;
 2612     cygwin*)
 2613       # Convert to unix form, then to dos form, then back to unix form
 2614       # but this time dos style (no spaces!) so that the unix form looks
 2615       # like /cygdrive/c/PROGRA~1:/cygdr...
 2616       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
 2617       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
 2618       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2619       ;;
 2620     *)
 2621       sys_lib_search_path_spec=$LIB
 2622       if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
 2623         # It is most probably a Windows format PATH.
 2624         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 2625       else
 2626         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
 2627       fi
 2628       # FIXME: find the short name or the path components, as spaces are
 2629       # common. (e.g. "Program Files" -> "PROGRA~1")
 2630       ;;
 2631     esac
 2632 
 2633     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 2634     postinstall_cmds='base_file=`basename \$file`~
 2635       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
 2636       dldir=$destdir/`dirname \$dlpath`~
 2637       test -d \$dldir || mkdir -p \$dldir~
 2638       $install_prog $dir/$dlname \$dldir/$dlname'
 2639     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 2640       dlpath=$dir/\$dldll~
 2641        $RM \$dlpath'
 2642     shlibpath_overrides_runpath=yes
 2643     dynamic_linker='Win32 link.exe'
 2644     ;;
 2645 
 2646   *)
 2647     # Assume MSVC and ICC wrapper
 2648     library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
 2649     dynamic_linker='Win32 ld.exe'
 2650     ;;
 2651   esac
 2652   # FIXME: first we should search . and the directory the executable is in
 2653   shlibpath_var=PATH
 2654   ;;
 2655 
 2656 darwin* | rhapsody*)
 2657   dynamic_linker="$host_os dyld"
 2658   version_type=darwin
 2659   need_lib_prefix=no
 2660   need_version=no
 2661   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
 2662   soname_spec='$libname$release$major$shared_ext'
 2663   shlibpath_overrides_runpath=yes
 2664   shlibpath_var=DYLD_LIBRARY_PATH
 2665   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 2666 m4_if([$1], [],[
 2667   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
 2668   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 2669   ;;
 2670 
 2671 dgux*)
 2672   version_type=linux # correct to gnu/linux during the next big refactor
 2673   need_lib_prefix=no
 2674   need_version=no
 2675   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2676   soname_spec='$libname$release$shared_ext$major'
 2677   shlibpath_var=LD_LIBRARY_PATH
 2678   ;;
 2679 
 2680 freebsd* | dragonfly*)
 2681   # DragonFly does not have aout.  When/if they implement a new
 2682   # versioning mechanism, adjust this.
 2683   if test -x /usr/bin/objformat; then
 2684     objformat=`/usr/bin/objformat`
 2685   else
 2686     case $host_os in
 2687     freebsd[[23]].*) objformat=aout ;;
 2688     *) objformat=elf ;;
 2689     esac
 2690   fi
 2691   version_type=freebsd-$objformat
 2692   case $version_type in
 2693     freebsd-elf*)
 2694       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2695       soname_spec='$libname$release$shared_ext$major'
 2696       need_version=no
 2697       need_lib_prefix=no
 2698       ;;
 2699     freebsd-*)
 2700       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2701       need_version=yes
 2702       ;;
 2703   esac
 2704   shlibpath_var=LD_LIBRARY_PATH
 2705   case $host_os in
 2706   freebsd2.*)
 2707     shlibpath_overrides_runpath=yes
 2708     ;;
 2709   freebsd3.[[01]]* | freebsdelf3.[[01]]*)
 2710     shlibpath_overrides_runpath=yes
 2711     hardcode_into_libs=yes
 2712     ;;
 2713   freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
 2714   freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
 2715     shlibpath_overrides_runpath=no
 2716     hardcode_into_libs=yes
 2717     ;;
 2718   *) # from 4.6 on, and DragonFly
 2719     shlibpath_overrides_runpath=yes
 2720     hardcode_into_libs=yes
 2721     ;;
 2722   esac
 2723   ;;
 2724 
 2725 haiku*)
 2726   version_type=linux # correct to gnu/linux during the next big refactor
 2727   need_lib_prefix=no
 2728   need_version=no
 2729   dynamic_linker="$host_os runtime_loader"
 2730   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2731   soname_spec='$libname$release$shared_ext$major'
 2732   shlibpath_var=LIBRARY_PATH
 2733   shlibpath_overrides_runpath=no
 2734   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
 2735   hardcode_into_libs=yes
 2736   ;;
 2737 
 2738 hpux9* | hpux10* | hpux11*)
 2739   # Give a soname corresponding to the major version so that dld.sl refuses to
 2740   # link against other versions.
 2741   version_type=sunos
 2742   need_lib_prefix=no
 2743   need_version=no
 2744   case $host_cpu in
 2745   ia64*)
 2746     shrext_cmds='.so'
 2747     hardcode_into_libs=yes
 2748     dynamic_linker="$host_os dld.so"
 2749     shlibpath_var=LD_LIBRARY_PATH
 2750     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2751     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2752     soname_spec='$libname$release$shared_ext$major'
 2753     if test 32 = "$HPUX_IA64_MODE"; then
 2754       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 2755       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
 2756     else
 2757       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 2758       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
 2759     fi
 2760     ;;
 2761   hppa*64*)
 2762     shrext_cmds='.sl'
 2763     hardcode_into_libs=yes
 2764     dynamic_linker="$host_os dld.sl"
 2765     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 2766     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 2767     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2768     soname_spec='$libname$release$shared_ext$major'
 2769     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 2770     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2771     ;;
 2772   *)
 2773     shrext_cmds='.sl'
 2774     dynamic_linker="$host_os dld.sl"
 2775     shlibpath_var=SHLIB_PATH
 2776     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 2777     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     ;;
 2780   esac
 2781   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
 2782   postinstall_cmds='chmod 555 $lib'
 2783   # or fails outright, so override atomically:
 2784   install_override_mode=555
 2785   ;;
 2786 
 2787 interix[[3-9]]*)
 2788   version_type=linux # correct to gnu/linux during the next big refactor
 2789   need_lib_prefix=no
 2790   need_version=no
 2791   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2792   soname_spec='$libname$release$shared_ext$major'
 2793   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 2794   shlibpath_var=LD_LIBRARY_PATH
 2795   shlibpath_overrides_runpath=no
 2796   hardcode_into_libs=yes
 2797   ;;
 2798 
 2799 irix5* | irix6* | nonstopux*)
 2800   case $host_os in
 2801     nonstopux*) version_type=nonstopux ;;
 2802     *)
 2803 	if test yes = "$lt_cv_prog_gnu_ld"; then
 2804 		version_type=linux # correct to gnu/linux during the next big refactor
 2805 	else
 2806 		version_type=irix
 2807 	fi ;;
 2808   esac
 2809   need_lib_prefix=no
 2810   need_version=no
 2811   soname_spec='$libname$release$shared_ext$major'
 2812   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
 2813   case $host_os in
 2814   irix5* | nonstopux*)
 2815     libsuff= shlibsuff=
 2816     ;;
 2817   *)
 2818     case $LD in # libtool.m4 will add one of these switches to LD
 2819     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 2820       libsuff= shlibsuff= libmagic=32-bit;;
 2821     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 2822       libsuff=32 shlibsuff=N32 libmagic=N32;;
 2823     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 2824       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 2825     *) libsuff= shlibsuff= libmagic=never-match;;
 2826     esac
 2827     ;;
 2828   esac
 2829   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 2830   shlibpath_overrides_runpath=no
 2831   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
 2832   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
 2833   hardcode_into_libs=yes
 2834   ;;
 2835 
 2836 # No shared lib support for Linux oldld, aout, or coff.
 2837 linux*oldld* | linux*aout* | linux*coff*)
 2838   dynamic_linker=no
 2839   ;;
 2840 
 2841 linux*android*)
 2842   version_type=none # Android doesn't support versioned libraries.
 2843   need_lib_prefix=no
 2844   need_version=no
 2845   library_names_spec='$libname$release$shared_ext'
 2846   soname_spec='$libname$release$shared_ext'
 2847   finish_cmds=
 2848   shlibpath_var=LD_LIBRARY_PATH
 2849   shlibpath_overrides_runpath=yes
 2850 
 2851   # This implies no fast_install, which is unacceptable.
 2852   # Some rework will be needed to allow for fast_install
 2853   # before this can be enabled.
 2854   hardcode_into_libs=yes
 2855 
 2856   dynamic_linker='Android linker'
 2857   # Don't embed -rpath directories since the linker doesn't support them.
 2858   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 2859   ;;
 2860 
 2861 # This must be glibc/ELF.
 2862 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 2863   version_type=linux # correct to gnu/linux during the next big refactor
 2864   need_lib_prefix=no
 2865   need_version=no
 2866   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2867   soname_spec='$libname$release$shared_ext$major'
 2868   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 2869   shlibpath_var=LD_LIBRARY_PATH
 2870   shlibpath_overrides_runpath=no
 2871 
 2872   # Some binutils ld are patched to set DT_RUNPATH
 2873   AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
 2874     [lt_cv_shlibpath_overrides_runpath=no
 2875     save_LDFLAGS=$LDFLAGS
 2876     save_libdir=$libdir
 2877     eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
 2878 	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
 2879     AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
 2880       [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
 2881 	 [lt_cv_shlibpath_overrides_runpath=yes])])
 2882     LDFLAGS=$save_LDFLAGS
 2883     libdir=$save_libdir
 2884     ])
 2885   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 2886 
 2887   # This implies no fast_install, which is unacceptable.
 2888   # Some rework will be needed to allow for fast_install
 2889   # before this can be enabled.
 2890   hardcode_into_libs=yes
 2891 
 2892   # Ideally, we could use ldconfig to report *all* directores which are
 2893   # searched for libraries, however this is still not possible.  Aside from not
 2894   # being certain /sbin/ldconfig is available, command
 2895   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
 2896   # even though it is searched at run-time.  Try to do the best guess by
 2897   # appending ld.so.conf contents (and includes) to the search path.
 2898   if test -f /etc/ld.so.conf; then
 2899     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' ' '`
 2900     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 2901   fi
 2902 
 2903   # We used to test for /lib/ld.so.1 and disable shared libraries on
 2904   # powerpc, because MkLinux only supported shared libraries with the
 2905   # GNU dynamic linker.  Since this was broken with cross compilers,
 2906   # most powerpc-linux boxes support dynamic linking these days and
 2907   # people can always --disable-shared, the test was removed, and we
 2908   # assume the GNU/Linux dynamic linker is in use.
 2909   dynamic_linker='GNU/Linux ld.so'
 2910   ;;
 2911 
 2912 netbsd*)
 2913   version_type=sunos
 2914   need_lib_prefix=no
 2915   need_version=no
 2916   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 2917     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2918     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2919     dynamic_linker='NetBSD (a.out) ld.so'
 2920   else
 2921     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2922     soname_spec='$libname$release$shared_ext$major'
 2923     dynamic_linker='NetBSD ld.elf_so'
 2924   fi
 2925   shlibpath_var=LD_LIBRARY_PATH
 2926   shlibpath_overrides_runpath=yes
 2927   hardcode_into_libs=yes
 2928   ;;
 2929 
 2930 newsos6)
 2931   version_type=linux # correct to gnu/linux during the next big refactor
 2932   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2933   shlibpath_var=LD_LIBRARY_PATH
 2934   shlibpath_overrides_runpath=yes
 2935   ;;
 2936 
 2937 *nto* | *qnx*)
 2938   version_type=qnx
 2939   need_lib_prefix=no
 2940   need_version=no
 2941   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 2942   soname_spec='$libname$release$shared_ext$major'
 2943   shlibpath_var=LD_LIBRARY_PATH
 2944   shlibpath_overrides_runpath=no
 2945   hardcode_into_libs=yes
 2946   dynamic_linker='ldqnx.so'
 2947   ;;
 2948 
 2949 openbsd* | bitrig*)
 2950   version_type=sunos
 2951   sys_lib_dlsearch_path_spec=/usr/lib
 2952   need_lib_prefix=no
 2953   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 2954     need_version=no
 2955   else
 2956     need_version=yes
 2957   fi
 2958   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 2959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 2960   shlibpath_var=LD_LIBRARY_PATH
 2961   shlibpath_overrides_runpath=yes
 2962   ;;
 2963 
 2964 os2*)
 2965   libname_spec='$name'
 2966   version_type=windows
 2967   shrext_cmds=.dll
 2968   need_version=no
 2969   need_lib_prefix=no
 2970   # OS/2 can only load a DLL with a base name of 8 characters or less.
 2971   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
 2972     v=$($ECHO $release$versuffix | tr -d .-);
 2973     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
 2974     $ECHO $n$v`$shared_ext'
 2975   library_names_spec='${libname}_dll.$libext'
 2976   dynamic_linker='OS/2 ld.exe'
 2977   shlibpath_var=BEGINLIBPATH
 2978   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 2979   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 2980   postinstall_cmds='base_file=`basename \$file`~
 2981     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
 2982     dldir=$destdir/`dirname \$dlpath`~
 2983     test -d \$dldir || mkdir -p \$dldir~
 2984     $install_prog $dir/$dlname \$dldir/$dlname~
 2985     chmod a+x \$dldir/$dlname~
 2986     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 2987       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 2988     fi'
 2989   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
 2990     dlpath=$dir/\$dldll~
 2991     $RM \$dlpath'
 2992   ;;
 2993 
 2994 osf3* | osf4* | osf5*)
 2995   version_type=osf
 2996   need_lib_prefix=no
 2997   need_version=no
 2998   soname_spec='$libname$release$shared_ext$major'
 2999   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3000   shlibpath_var=LD_LIBRARY_PATH
 3001   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 3002   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 3003   ;;
 3004 
 3005 rdos*)
 3006   dynamic_linker=no
 3007   ;;
 3008 
 3009 solaris*)
 3010   version_type=linux # correct to gnu/linux during the next big refactor
 3011   need_lib_prefix=no
 3012   need_version=no
 3013   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3014   soname_spec='$libname$release$shared_ext$major'
 3015   shlibpath_var=LD_LIBRARY_PATH
 3016   shlibpath_overrides_runpath=yes
 3017   hardcode_into_libs=yes
 3018   # ldd complains unless libraries are executable
 3019   postinstall_cmds='chmod +x $lib'
 3020   ;;
 3021 
 3022 sunos4*)
 3023   version_type=sunos
 3024   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
 3025   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 3026   shlibpath_var=LD_LIBRARY_PATH
 3027   shlibpath_overrides_runpath=yes
 3028   if test yes = "$with_gnu_ld"; then
 3029     need_lib_prefix=no
 3030   fi
 3031   need_version=yes
 3032   ;;
 3033 
 3034 sysv4 | sysv4.3*)
 3035   version_type=linux # correct to gnu/linux during the next big refactor
 3036   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3037   soname_spec='$libname$release$shared_ext$major'
 3038   shlibpath_var=LD_LIBRARY_PATH
 3039   case $host_vendor in
 3040     sni)
 3041       shlibpath_overrides_runpath=no
 3042       need_lib_prefix=no
 3043       runpath_var=LD_RUN_PATH
 3044       ;;
 3045     siemens)
 3046       need_lib_prefix=no
 3047       ;;
 3048     motorola)
 3049       need_lib_prefix=no
 3050       need_version=no
 3051       shlibpath_overrides_runpath=no
 3052       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 3053       ;;
 3054   esac
 3055   ;;
 3056 
 3057 sysv4*MP*)
 3058   if test -d /usr/nec; then
 3059     version_type=linux # correct to gnu/linux during the next big refactor
 3060     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
 3061     soname_spec='$libname$shared_ext.$major'
 3062     shlibpath_var=LD_LIBRARY_PATH
 3063   fi
 3064   ;;
 3065 
 3066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3067   version_type=sco
 3068   need_lib_prefix=no
 3069   need_version=no
 3070   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
 3071   soname_spec='$libname$release$shared_ext$major'
 3072   shlibpath_var=LD_LIBRARY_PATH
 3073   shlibpath_overrides_runpath=yes
 3074   hardcode_into_libs=yes
 3075   if test yes = "$with_gnu_ld"; then
 3076     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 3077   else
 3078     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 3079     case $host_os in
 3080       sco3.2v5*)
 3081         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 3082 	;;
 3083     esac
 3084   fi
 3085   sys_lib_dlsearch_path_spec='/usr/lib'
 3086   ;;
 3087 
 3088 tpf*)
 3089   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 3090   version_type=linux # correct to gnu/linux during the next big refactor
 3091   need_lib_prefix=no
 3092   need_version=no
 3093   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3094   shlibpath_var=LD_LIBRARY_PATH
 3095   shlibpath_overrides_runpath=no
 3096   hardcode_into_libs=yes
 3097   ;;
 3098 
 3099 uts4*)
 3100   version_type=linux # correct to gnu/linux during the next big refactor
 3101   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
 3102   soname_spec='$libname$release$shared_ext$major'
 3103   shlibpath_var=LD_LIBRARY_PATH
 3104   ;;
 3105 
 3106 *)
 3107   dynamic_linker=no
 3108   ;;
 3109 esac
 3110 AC_MSG_RESULT([$dynamic_linker])
 3111 test no = "$dynamic_linker" && can_build_shared=no
 3112 
 3113 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 3114 if test yes = "$GCC"; then
 3115   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 3116 fi
 3117 
 3118 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
 3119   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
 3120 fi
 3121 
 3122 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
 3123   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
 3124 fi
 3125 
 3126 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
 3127 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
 3128 
 3129 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
 3130 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
 3131 
 3132 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
 3133 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
 3134 
 3135 _LT_DECL([], [variables_saved_for_relink], [1],
 3136     [Variables whose values should be saved in libtool wrapper scripts and
 3137     restored at link time])
 3138 _LT_DECL([], [need_lib_prefix], [0],
 3139     [Do we need the "lib" prefix for modules?])
 3140 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
 3141 _LT_DECL([], [version_type], [0], [Library versioning type])
 3142 _LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
 3143 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
 3144 _LT_DECL([], [shlibpath_overrides_runpath], [0],
 3145     [Is shlibpath searched before the hard-coded library search path?])
 3146 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
 3147 _LT_DECL([], [library_names_spec], [1],
 3148     [[List of archive names.  First name is the real one, the rest are links.
 3149     The last name is the one that the linker finds with -lNAME]])
 3150 _LT_DECL([], [soname_spec], [1],
 3151     [[The coded name of the library, if different from the real name]])
 3152 _LT_DECL([], [install_override_mode], [1],
 3153     [Permission mode override for installation of shared libraries])
 3154 _LT_DECL([], [postinstall_cmds], [2],
 3155     [Command to use after installation of a shared archive])
 3156 _LT_DECL([], [postuninstall_cmds], [2],
 3157     [Command to use after uninstallation of a shared archive])
 3158 _LT_DECL([], [finish_cmds], [2],
 3159     [Commands used to finish a libtool library installation in a directory])
 3160 _LT_DECL([], [finish_eval], [1],
 3161     [[As "finish_cmds", except a single script fragment to be evaled but
 3162     not shown]])
 3163 _LT_DECL([], [hardcode_into_libs], [0],
 3164     [Whether we should hardcode library paths into libraries])
 3165 _LT_DECL([], [sys_lib_search_path_spec], [2],
 3166     [Compile-time system search path for libraries])
 3167 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
 3168     [Detected run-time system search path for libraries])
 3169 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
 3170     [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
 3171 ])# _LT_SYS_DYNAMIC_LINKER
 3172 
 3173 
 3174 # _LT_PATH_TOOL_PREFIX(TOOL)
 3175 # --------------------------
 3176 # find a file program that can recognize shared library
 3177 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
 3178 [m4_require([_LT_DECL_EGREP])dnl
 3179 AC_MSG_CHECKING([for $1])
 3180 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
 3181 [case $MAGIC_CMD in
 3182 [[\\/*] |  ?:[\\/]*])
 3183   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
 3184   ;;
 3185 *)
 3186   lt_save_MAGIC_CMD=$MAGIC_CMD
 3187   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3188 dnl $ac_dummy forces splitting on constant user-supplied paths.
 3189 dnl POSIX.2 word splitting is done only on the output of word expansions,
 3190 dnl not every word.  This closes a longstanding sh security hole.
 3191   ac_dummy="m4_if([$2], , $PATH, [$2])"
 3192   for ac_dir in $ac_dummy; do
 3193     IFS=$lt_save_ifs
 3194     test -z "$ac_dir" && ac_dir=.
 3195     if test -f "$ac_dir/$1"; then
 3196       lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
 3197       if test -n "$file_magic_test_file"; then
 3198 	case $deplibs_check_method in
 3199 	"file_magic "*)
 3200 	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 3201 	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3202 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 3203 	    $EGREP "$file_magic_regex" > /dev/null; then
 3204 	    :
 3205 	  else
 3206 	    cat <<_LT_EOF 1>&2
 3207 
 3208 *** Warning: the command libtool uses to detect shared libraries,
 3209 *** $file_magic_cmd, produces output that libtool cannot recognize.
 3210 *** The result is that libtool may fail to recognize shared libraries
 3211 *** as such.  This will affect the creation of libtool libraries that
 3212 *** depend on shared libraries, but programs linked with such libtool
 3213 *** libraries will work regardless of this problem.  Nevertheless, you
 3214 *** may want to report the problem to your system manager and/or to
 3215 *** bug-libtool@gnu.org
 3216 
 3217 _LT_EOF
 3218 	  fi ;;
 3219 	esac
 3220       fi
 3221       break
 3222     fi
 3223   done
 3224   IFS=$lt_save_ifs
 3225   MAGIC_CMD=$lt_save_MAGIC_CMD
 3226   ;;
 3227 esac])
 3228 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
 3229 if test -n "$MAGIC_CMD"; then
 3230   AC_MSG_RESULT($MAGIC_CMD)
 3231 else
 3232   AC_MSG_RESULT(no)
 3233 fi
 3234 _LT_DECL([], [MAGIC_CMD], [0],
 3235 	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
 3236 ])# _LT_PATH_TOOL_PREFIX
 3237 
 3238 # Old name:
 3239 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
 3240 dnl aclocal-1.4 backwards compatibility:
 3241 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
 3242 
 3243 
 3244 # _LT_PATH_MAGIC
 3245 # --------------
 3246 # find a file program that can recognize a shared library
 3247 m4_defun([_LT_PATH_MAGIC],
 3248 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
 3249 if test -z "$lt_cv_path_MAGIC_CMD"; then
 3250   if test -n "$ac_tool_prefix"; then
 3251     _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
 3252   else
 3253     MAGIC_CMD=:
 3254   fi
 3255 fi
 3256 ])# _LT_PATH_MAGIC
 3257 
 3258 
 3259 # LT_PATH_LD
 3260 # ----------
 3261 # find the pathname to the GNU or non-GNU linker
 3262 AC_DEFUN([LT_PATH_LD],
 3263 [AC_REQUIRE([AC_PROG_CC])dnl
 3264 AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3265 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 3266 m4_require([_LT_DECL_SED])dnl
 3267 m4_require([_LT_DECL_EGREP])dnl
 3268 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
 3269 
 3270 AC_ARG_WITH([gnu-ld],
 3271     [AS_HELP_STRING([--with-gnu-ld],
 3272 	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
 3273     [test no = "$withval" || with_gnu_ld=yes],
 3274     [with_gnu_ld=no])dnl
 3275 
 3276 ac_prog=ld
 3277 if test yes = "$GCC"; then
 3278   # Check if gcc -print-prog-name=ld gives a path.
 3279   AC_MSG_CHECKING([for ld used by $CC])
 3280   case $host in
 3281   *-*-mingw*)
 3282     # gcc leaves a trailing carriage return, which upsets mingw
 3283     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 3284   *)
 3285     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 3286   esac
 3287   case $ac_prog in
 3288     # Accept absolute paths.
 3289     [[\\/]]* | ?:[[\\/]]*)
 3290       re_direlt='/[[^/]][[^/]]*/\.\./'
 3291       # Canonicalize the pathname of ld
 3292       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 3293       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 3294 	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 3295       done
 3296       test -z "$LD" && LD=$ac_prog
 3297       ;;
 3298   "")
 3299     # If it fails, then pretend we aren't using GCC.
 3300     ac_prog=ld
 3301     ;;
 3302   *)
 3303     # If it is relative, then search for the first ld in PATH.
 3304     with_gnu_ld=unknown
 3305     ;;
 3306   esac
 3307 elif test yes = "$with_gnu_ld"; then
 3308   AC_MSG_CHECKING([for GNU ld])
 3309 else
 3310   AC_MSG_CHECKING([for non-GNU ld])
 3311 fi
 3312 AC_CACHE_VAL(lt_cv_path_LD,
 3313 [if test -z "$LD"; then
 3314   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3315   for ac_dir in $PATH; do
 3316     IFS=$lt_save_ifs
 3317     test -z "$ac_dir" && ac_dir=.
 3318     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 3319       lt_cv_path_LD=$ac_dir/$ac_prog
 3320       # Check to see if the program is GNU ld.  I'd rather use --version,
 3321       # but apparently some variants of GNU ld only accept -v.
 3322       # Break only if it was the GNU/non-GNU ld that we prefer.
 3323       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 3324       *GNU* | *'with BFD'*)
 3325 	test no != "$with_gnu_ld" && break
 3326 	;;
 3327       *)
 3328 	test yes != "$with_gnu_ld" && break
 3329 	;;
 3330       esac
 3331     fi
 3332   done
 3333   IFS=$lt_save_ifs
 3334 else
 3335   lt_cv_path_LD=$LD # Let the user override the test with a path.
 3336 fi])
 3337 LD=$lt_cv_path_LD
 3338 if test -n "$LD"; then
 3339   AC_MSG_RESULT($LD)
 3340 else
 3341   AC_MSG_RESULT(no)
 3342 fi
 3343 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
 3344 _LT_PATH_LD_GNU
 3345 AC_SUBST([LD])
 3346 
 3347 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
 3348 ])# LT_PATH_LD
 3349 
 3350 # Old names:
 3351 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
 3352 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
 3353 dnl aclocal-1.4 backwards compatibility:
 3354 dnl AC_DEFUN([AM_PROG_LD], [])
 3355 dnl AC_DEFUN([AC_PROG_LD], [])
 3356 
 3357 
 3358 # _LT_PATH_LD_GNU
 3359 #- --------------
 3360 m4_defun([_LT_PATH_LD_GNU],
 3361 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
 3362 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
 3363 case `$LD -v 2>&1 </dev/null` in
 3364 *GNU* | *'with BFD'*)
 3365   lt_cv_prog_gnu_ld=yes
 3366   ;;
 3367 *)
 3368   lt_cv_prog_gnu_ld=no
 3369   ;;
 3370 esac])
 3371 with_gnu_ld=$lt_cv_prog_gnu_ld
 3372 ])# _LT_PATH_LD_GNU
 3373 
 3374 
 3375 # _LT_CMD_RELOAD
 3376 # --------------
 3377 # find reload flag for linker
 3378 #   -- PORTME Some linkers may need a different reload flag.
 3379 m4_defun([_LT_CMD_RELOAD],
 3380 [AC_CACHE_CHECK([for $LD option to reload object files],
 3381   lt_cv_ld_reload_flag,
 3382   [lt_cv_ld_reload_flag='-r'])
 3383 reload_flag=$lt_cv_ld_reload_flag
 3384 case $reload_flag in
 3385 "" | " "*) ;;
 3386 *) reload_flag=" $reload_flag" ;;
 3387 esac
 3388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3389 case $host_os in
 3390   cygwin* | mingw* | pw32* | cegcc*)
 3391     if test yes != "$GCC"; then
 3392       reload_cmds=false
 3393     fi
 3394     ;;
 3395   darwin*)
 3396     if test yes = "$GCC"; then
 3397       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
 3398     else
 3399       reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3400     fi
 3401     ;;
 3402 esac
 3403 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
 3404 _LT_TAGDECL([], [reload_cmds], [2])dnl
 3405 ])# _LT_CMD_RELOAD
 3406 
 3407 
 3408 # _LT_PATH_DD
 3409 # -----------
 3410 # find a working dd
 3411 m4_defun([_LT_PATH_DD],
 3412 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
 3413 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3414 cat conftest.i conftest.i >conftest2.i
 3415 : ${lt_DD:=$DD}
 3416 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
 3417 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3418   cmp -s conftest.i conftest.out \
 3419   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
 3420 fi])
 3421 rm -f conftest.i conftest2.i conftest.out])
 3422 ])# _LT_PATH_DD
 3423 
 3424 
 3425 # _LT_CMD_TRUNCATE
 3426 # ----------------
 3427 # find command to truncate a binary pipe
 3428 m4_defun([_LT_CMD_TRUNCATE],
 3429 [m4_require([_LT_PATH_DD])
 3430 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
 3431 [printf 0123456789abcdef0123456789abcdef >conftest.i
 3432 cat conftest.i conftest.i >conftest2.i
 3433 lt_cv_truncate_bin=
 3434 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
 3435   cmp -s conftest.i conftest.out \
 3436   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
 3437 fi
 3438 rm -f conftest.i conftest2.i conftest.out
 3439 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
 3440 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
 3441   [Command to truncate a binary pipe])
 3442 ])# _LT_CMD_TRUNCATE
 3443 
 3444 
 3445 # _LT_CHECK_MAGIC_METHOD
 3446 # ----------------------
 3447 # how to check for library dependencies
 3448 #  -- PORTME fill in with the dynamic library characteristics
 3449 m4_defun([_LT_CHECK_MAGIC_METHOD],
 3450 [m4_require([_LT_DECL_EGREP])
 3451 m4_require([_LT_DECL_OBJDUMP])
 3452 AC_CACHE_CHECK([how to recognize dependent libraries],
 3453 lt_cv_deplibs_check_method,
 3454 [lt_cv_file_magic_cmd='$MAGIC_CMD'
 3455 lt_cv_file_magic_test_file=
 3456 lt_cv_deplibs_check_method='unknown'
 3457 # Need to set the preceding variable on all platforms that support
 3458 # interlibrary dependencies.
 3459 # 'none' -- dependencies not supported.
 3460 # 'unknown' -- same as none, but documents that we really don't know.
 3461 # 'pass_all' -- all dependencies passed with no checks.
 3462 # 'test_compile' -- check by making test program.
 3463 # 'file_magic [[regex]]' -- check by looking for files in library path
 3464 # that responds to the $file_magic_cmd with a given extended regex.
 3465 # If you have 'file' or equivalent on your system and you're not sure
 3466 # whether 'pass_all' will *always* work, you probably want this one.
 3467 
 3468 case $host_os in
 3469 aix[[4-9]]*)
 3470   lt_cv_deplibs_check_method=pass_all
 3471   ;;
 3472 
 3473 beos*)
 3474   lt_cv_deplibs_check_method=pass_all
 3475   ;;
 3476 
 3477 bsdi[[45]]*)
 3478   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
 3479   lt_cv_file_magic_cmd='/usr/bin/file -L'
 3480   lt_cv_file_magic_test_file=/shlib/libc.so
 3481   ;;
 3482 
 3483 cygwin*)
 3484   # func_win32_libid is a shell function defined in ltmain.sh
 3485   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3486   lt_cv_file_magic_cmd='func_win32_libid'
 3487   ;;
 3488 
 3489 mingw* | pw32*)
 3490   # Base MSYS/MinGW do not provide the 'file' command needed by
 3491   # func_win32_libid shell function, so use a weaker test based on 'objdump',
 3492   # unless we find 'file', for example because we are cross-compiling.
 3493   if ( file / ) >/dev/null 2>&1; then
 3494     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3495     lt_cv_file_magic_cmd='func_win32_libid'
 3496   else
 3497     # Keep this pattern in sync with the one in func_win32_libid.
 3498     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
 3499     lt_cv_file_magic_cmd='$OBJDUMP -f'
 3500   fi
 3501   ;;
 3502 
 3503 cegcc*)
 3504   # use the weaker test based on 'objdump'. See mingw*.
 3505   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
 3506   lt_cv_file_magic_cmd='$OBJDUMP -f'
 3507   ;;
 3508 
 3509 darwin* | rhapsody*)
 3510   lt_cv_deplibs_check_method=pass_all
 3511   ;;
 3512 
 3513 freebsd* | dragonfly*)
 3514   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3515     case $host_cpu in
 3516     i*86 )
 3517       # Not sure whether the presence of OpenBSD here was a mistake.
 3518       # Let's accept both of them until this is cleared up.
 3519       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
 3520       lt_cv_file_magic_cmd=/usr/bin/file
 3521       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 3522       ;;
 3523     esac
 3524   else
 3525     lt_cv_deplibs_check_method=pass_all
 3526   fi
 3527   ;;
 3528 
 3529 haiku*)
 3530   lt_cv_deplibs_check_method=pass_all
 3531   ;;
 3532 
 3533 hpux10.20* | hpux11*)
 3534   lt_cv_file_magic_cmd=/usr/bin/file
 3535   case $host_cpu in
 3536   ia64*)
 3537     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
 3538     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 3539     ;;
 3540   hppa*64*)
 3541     [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
 3542     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 3543     ;;
 3544   *)
 3545     lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
 3546     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 3547     ;;
 3548   esac
 3549   ;;
 3550 
 3551 interix[[3-9]]*)
 3552   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 3553   lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
 3554   ;;
 3555 
 3556 irix5* | irix6* | nonstopux*)
 3557   case $LD in
 3558   *-32|*"-32 ") libmagic=32-bit;;
 3559   *-n32|*"-n32 ") libmagic=N32;;
 3560   *-64|*"-64 ") libmagic=64-bit;;
 3561   *) libmagic=never-match;;
 3562   esac
 3563   lt_cv_deplibs_check_method=pass_all
 3564   ;;
 3565 
 3566 # This must be glibc/ELF.
 3567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 3568   lt_cv_deplibs_check_method=pass_all
 3569   ;;
 3570 
 3571 netbsd*)
 3572   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 3573     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3574   else
 3575     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
 3576   fi
 3577   ;;
 3578 
 3579 newos6*)
 3580   lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
 3581   lt_cv_file_magic_cmd=/usr/bin/file
 3582   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 3583   ;;
 3584 
 3585 *nto* | *qnx*)
 3586   lt_cv_deplibs_check_method=pass_all
 3587   ;;
 3588 
 3589 openbsd* | bitrig*)
 3590   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 3591     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 3592   else
 3593     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
 3594   fi
 3595   ;;
 3596 
 3597 osf3* | osf4* | osf5*)
 3598   lt_cv_deplibs_check_method=pass_all
 3599   ;;
 3600 
 3601 rdos*)
 3602   lt_cv_deplibs_check_method=pass_all
 3603   ;;
 3604 
 3605 solaris*)
 3606   lt_cv_deplibs_check_method=pass_all
 3607   ;;
 3608 
 3609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 3610   lt_cv_deplibs_check_method=pass_all
 3611   ;;
 3612 
 3613 sysv4 | sysv4.3*)
 3614   case $host_vendor in
 3615   motorola)
 3616     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
 3617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 3618     ;;
 3619   ncr)
 3620     lt_cv_deplibs_check_method=pass_all
 3621     ;;
 3622   sequent)
 3623     lt_cv_file_magic_cmd='/bin/file'
 3624     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
 3625     ;;
 3626   sni)
 3627     lt_cv_file_magic_cmd='/bin/file'
 3628     lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
 3629     lt_cv_file_magic_test_file=/lib/libc.so
 3630     ;;
 3631   siemens)
 3632     lt_cv_deplibs_check_method=pass_all
 3633     ;;
 3634   pc)
 3635     lt_cv_deplibs_check_method=pass_all
 3636     ;;
 3637   esac
 3638   ;;
 3639 
 3640 tpf*)
 3641   lt_cv_deplibs_check_method=pass_all
 3642   ;;
 3643 os2*)
 3644   lt_cv_deplibs_check_method=pass_all
 3645   ;;
 3646 esac
 3647 ])
 3648 
 3649 file_magic_glob=
 3650 want_nocaseglob=no
 3651 if test "$build" = "$host"; then
 3652   case $host_os in
 3653   mingw* | pw32*)
 3654     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
 3655       want_nocaseglob=yes
 3656     else
 3657       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
 3658     fi
 3659     ;;
 3660   esac
 3661 fi
 3662 
 3663 file_magic_cmd=$lt_cv_file_magic_cmd
 3664 deplibs_check_method=$lt_cv_deplibs_check_method
 3665 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 3666 
 3667 _LT_DECL([], [deplibs_check_method], [1],
 3668     [Method to check whether dependent libraries are shared objects])
 3669 _LT_DECL([], [file_magic_cmd], [1],
 3670     [Command to use when deplibs_check_method = "file_magic"])
 3671 _LT_DECL([], [file_magic_glob], [1],
 3672     [How to find potential files when deplibs_check_method = "file_magic"])
 3673 _LT_DECL([], [want_nocaseglob], [1],
 3674     [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
 3675 ])# _LT_CHECK_MAGIC_METHOD
 3676 
 3677 
 3678 # LT_PATH_NM
 3679 # ----------
 3680 # find the pathname to a BSD- or MS-compatible name lister
 3681 AC_DEFUN([LT_PATH_NM],
 3682 [AC_REQUIRE([AC_PROG_CC])dnl
 3683 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
 3684 [if test -n "$NM"; then
 3685   # Let the user override the test.
 3686   lt_cv_path_NM=$NM
 3687 else
 3688   lt_nm_to_check=${ac_tool_prefix}nm
 3689   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 3690     lt_nm_to_check="$lt_nm_to_check nm"
 3691   fi
 3692   for lt_tmp_nm in $lt_nm_to_check; do
 3693     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
 3694     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 3695       IFS=$lt_save_ifs
 3696       test -z "$ac_dir" && ac_dir=.
 3697       tmp_nm=$ac_dir/$lt_tmp_nm
 3698       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
 3699 	# Check to see if the nm accepts a BSD-compat flag.
 3700 	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
 3701 	#   nm: unknown option "B" ignored
 3702 	# Tru64's nm complains that /dev/null is an invalid object file
 3703 	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
 3704 	case $build_os in
 3705 	mingw*) lt_bad_file=conftest.nm/nofile ;;
 3706 	*) lt_bad_file=/dev/null ;;
 3707 	esac
 3708 	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
 3709 	*$lt_bad_file* | *'Invalid file or object type'*)
 3710 	  lt_cv_path_NM="$tmp_nm -B"
 3711 	  break 2
 3712 	  ;;
 3713 	*)
 3714 	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 3715 	  */dev/null*)
 3716 	    lt_cv_path_NM="$tmp_nm -p"
 3717 	    break 2
 3718 	    ;;
 3719 	  *)
 3720 	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 3721 	    continue # so that we can try to find one that supports BSD flags
 3722 	    ;;
 3723 	  esac
 3724 	  ;;
 3725 	esac
 3726       fi
 3727     done
 3728     IFS=$lt_save_ifs
 3729   done
 3730   : ${lt_cv_path_NM=no}
 3731 fi])
 3732 if test no != "$lt_cv_path_NM"; then
 3733   NM=$lt_cv_path_NM
 3734 else
 3735   # Didn't find any BSD compatible name lister, look for dumpbin.
 3736   if test -n "$DUMPBIN"; then :
 3737     # Let the user override the test.
 3738   else
 3739     AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
 3740     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
 3741     *COFF*)
 3742       DUMPBIN="$DUMPBIN -symbols -headers"
 3743       ;;
 3744     *)
 3745       DUMPBIN=:
 3746       ;;
 3747     esac
 3748   fi
 3749   AC_SUBST([DUMPBIN])
 3750   if test : != "$DUMPBIN"; then
 3751     NM=$DUMPBIN
 3752   fi
 3753 fi
 3754 test -z "$NM" && NM=nm
 3755 AC_SUBST([NM])
 3756 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
 3757 
 3758 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
 3759   [lt_cv_nm_interface="BSD nm"
 3760   echo "int some_variable = 0;" > conftest.$ac_ext
 3761   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
 3762   (eval "$ac_compile" 2>conftest.err)
 3763   cat conftest.err >&AS_MESSAGE_LOG_FD
 3764   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
 3765   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 3766   cat conftest.err >&AS_MESSAGE_LOG_FD
 3767   (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
 3768   cat conftest.out >&AS_MESSAGE_LOG_FD
 3769   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 3770     lt_cv_nm_interface="MS dumpbin"
 3771   fi
 3772   rm -f conftest*])
 3773 ])# LT_PATH_NM
 3774 
 3775 # Old names:
 3776 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
 3777 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
 3778 dnl aclocal-1.4 backwards compatibility:
 3779 dnl AC_DEFUN([AM_PROG_NM], [])
 3780 dnl AC_DEFUN([AC_PROG_NM], [])
 3781 
 3782 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3783 # --------------------------------
 3784 # how to determine the name of the shared library
 3785 # associated with a specific link library.
 3786 #  -- PORTME fill in with the dynamic library characteristics
 3787 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
 3788 [m4_require([_LT_DECL_EGREP])
 3789 m4_require([_LT_DECL_OBJDUMP])
 3790 m4_require([_LT_DECL_DLLTOOL])
 3791 AC_CACHE_CHECK([how to associate runtime and link libraries],
 3792 lt_cv_sharedlib_from_linklib_cmd,
 3793 [lt_cv_sharedlib_from_linklib_cmd='unknown'
 3794 
 3795 case $host_os in
 3796 cygwin* | mingw* | pw32* | cegcc*)
 3797   # two different shell functions defined in ltmain.sh;
 3798   # decide which one to use based on capabilities of $DLLTOOL
 3799   case `$DLLTOOL --help 2>&1` in
 3800   *--identify-strict*)
 3801     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
 3802     ;;
 3803   *)
 3804     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
 3805     ;;
 3806   esac
 3807   ;;
 3808 *)
 3809   # fallback: assume linklib IS sharedlib
 3810   lt_cv_sharedlib_from_linklib_cmd=$ECHO
 3811   ;;
 3812 esac
 3813 ])
 3814 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
 3815 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
 3816 
 3817 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
 3818     [Command to associate shared and link libraries])
 3819 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
 3820 
 3821 
 3822 # _LT_PATH_MANIFEST_TOOL
 3823 # ----------------------
 3824 # locate the manifest tool
 3825 m4_defun([_LT_PATH_MANIFEST_TOOL],
 3826 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
 3827 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
 3828 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
 3829   [lt_cv_path_mainfest_tool=no
 3830   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
 3831   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
 3832   cat conftest.err >&AS_MESSAGE_LOG_FD
 3833   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
 3834     lt_cv_path_mainfest_tool=yes
 3835   fi
 3836   rm -f conftest*])
 3837 if test yes != "$lt_cv_path_mainfest_tool"; then
 3838   MANIFEST_TOOL=:
 3839 fi
 3840 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
 3841 ])# _LT_PATH_MANIFEST_TOOL
 3842 
 3843 
 3844 # _LT_DLL_DEF_P([FILE])
 3845 # ---------------------
 3846 # True iff FILE is a Windows DLL '.def' file.
 3847 # Keep in sync with func_dll_def_p in the libtool script
 3848 AC_DEFUN([_LT_DLL_DEF_P],
 3849 [dnl
 3850   test DEF = "`$SED -n dnl
 3851     -e '\''s/^[[	 ]]*//'\'' dnl Strip leading whitespace
 3852     -e '\''/^\(;.*\)*$/d'\'' dnl      Delete empty lines and comments
 3853     -e '\''s/^\(EXPORTS\|LIBRARY\)\([[	 ]].*\)*$/DEF/p'\'' dnl
 3854     -e q dnl                          Only consider the first "real" line
 3855     $1`" dnl
 3856 ])# _LT_DLL_DEF_P
 3857 
 3858 
 3859 # LT_LIB_M
 3860 # --------
 3861 # check for math library
 3862 AC_DEFUN([LT_LIB_M],
 3863 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3864 LIBM=
 3865 case $host in
 3866 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
 3867   # These system don't have libm, or don't need it
 3868   ;;
 3869 *-ncr-sysv4.3*)
 3870   AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
 3871   AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
 3872   ;;
 3873 *)
 3874   AC_CHECK_LIB(m, cos, LIBM=-lm)
 3875   ;;
 3876 esac
 3877 AC_SUBST([LIBM])
 3878 ])# LT_LIB_M
 3879 
 3880 # Old name:
 3881 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
 3882 dnl aclocal-1.4 backwards compatibility:
 3883 dnl AC_DEFUN([AC_CHECK_LIBM], [])
 3884 
 3885 
 3886 # _LT_COMPILER_NO_RTTI([TAGNAME])
 3887 # -------------------------------
 3888 m4_defun([_LT_COMPILER_NO_RTTI],
 3889 [m4_require([_LT_TAG_COMPILER])dnl
 3890 
 3891 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 3892 
 3893 if test yes = "$GCC"; then
 3894   case $cc_basename in
 3895   nvcc*)
 3896     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
 3897   *)
 3898     _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
 3899   esac
 3900 
 3901   _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
 3902     lt_cv_prog_compiler_rtti_exceptions,
 3903     [-fno-rtti -fno-exceptions], [],
 3904     [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
 3905 fi
 3906 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
 3907 	[Compiler flag to turn off builtin functions])
 3908 ])# _LT_COMPILER_NO_RTTI
 3909 
 3910 
 3911 # _LT_CMD_GLOBAL_SYMBOLS
 3912 # ----------------------
 3913 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
 3914 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 3915 AC_REQUIRE([AC_PROG_CC])dnl
 3916 AC_REQUIRE([AC_PROG_AWK])dnl
 3917 AC_REQUIRE([LT_PATH_NM])dnl
 3918 AC_REQUIRE([LT_PATH_LD])dnl
 3919 m4_require([_LT_DECL_SED])dnl
 3920 m4_require([_LT_DECL_EGREP])dnl
 3921 m4_require([_LT_TAG_COMPILER])dnl
 3922 
 3923 # Check for command to grab the raw symbol name followed by C symbol from nm.
 3924 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
 3925 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
 3926 [
 3927 # These are sane defaults that work on at least a few old systems.
 3928 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 3929 
 3930 # Character class describing NM global symbol codes.
 3931 symcode='[[BCDEGRST]]'
 3932 
 3933 # Regexp to match symbols that can be accessed directly from C.
 3934 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
 3935 
 3936 # Define system-specific variables.
 3937 case $host_os in
 3938 aix*)
 3939   symcode='[[BCDT]]'
 3940   ;;
 3941 cygwin* | mingw* | pw32* | cegcc*)
 3942   symcode='[[ABCDGISTW]]'
 3943   ;;
 3944 hpux*)
 3945   if test ia64 = "$host_cpu"; then
 3946     symcode='[[ABCDEGRST]]'
 3947   fi
 3948   ;;
 3949 irix* | nonstopux*)
 3950   symcode='[[BCDEGRST]]'
 3951   ;;
 3952 osf*)
 3953   symcode='[[BCDEGQRST]]'
 3954   ;;
 3955 solaris*)
 3956   symcode='[[BDRT]]'
 3957   ;;
 3958 sco3.2v5*)
 3959   symcode='[[DT]]'
 3960   ;;
 3961 sysv4.2uw2*)
 3962   symcode='[[DT]]'
 3963   ;;
 3964 sysv5* | sco5v6* | unixware* | OpenUNIX*)
 3965   symcode='[[ABDT]]'
 3966   ;;
 3967 sysv4)
 3968   symcode='[[DFNSTU]]'
 3969   ;;
 3970 esac
 3971 
 3972 # If we're using GNU nm, then use its standard symbol codes.
 3973 case `$NM -V 2>&1` in
 3974 *GNU* | *'with BFD'*)
 3975   symcode='[[ABCDGIRSTW]]' ;;
 3976 esac
 3977 
 3978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 3979   # Gets list of data symbols to import.
 3980   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
 3981   # Adjust the below global symbol transforms to fixup imported variables.
 3982   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
 3983   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
 3984   lt_c_name_lib_hook="\
 3985   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
 3986   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
 3987 else
 3988   # Disable hooks by default.
 3989   lt_cv_sys_global_symbol_to_import=
 3990   lt_cdecl_hook=
 3991   lt_c_name_hook=
 3992   lt_c_name_lib_hook=
 3993 fi
 3994 
 3995 # Transform an extracted symbol line into a proper C declaration.
 3996 # Some systems (esp. on ia64) link data and code symbols differently,
 3997 # so use this general approach.
 3998 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
 3999 $lt_cdecl_hook\
 4000 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
 4001 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
 4002 
 4003 # Transform an extracted symbol line into symbol name and symbol address
 4004 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
 4005 $lt_c_name_hook\
 4006 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4007 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
 4008 
 4009 # Transform an extracted symbol line into symbol name with lib prefix and
 4010 # symbol address.
 4011 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
 4012 $lt_c_name_lib_hook\
 4013 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
 4014 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
 4015 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
 4016 
 4017 # Handle CRLF in mingw tool chain
 4018 opt_cr=
 4019 case $build_os in
 4020 mingw*)
 4021   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 4022   ;;
 4023 esac
 4024 
 4025 # Try without a prefix underscore, then with it.
 4026 for ac_symprfx in "" "_"; do
 4027 
 4028   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 4029   symxfrm="\\1 $ac_symprfx\\2 \\2"
 4030 
 4031   # Write the raw and C identifiers.
 4032   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4033     # Fake it for dumpbin and say T for any non-static function,
 4034     # D for any global variable and I for any imported variable.
 4035     # Also find C++ and __fastcall symbols from MSVC++ or ICC,
 4036     # which start with @ or ?.
 4037     lt_cv_sys_global_symbol_pipe="$AWK ['"\
 4038 "     {last_section=section; section=\$ 3};"\
 4039 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
 4040 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 4041 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
 4042 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
 4043 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
 4044 "     \$ 0!~/External *\|/{next};"\
 4045 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 4046 "     {if(hide[section]) next};"\
 4047 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
 4048 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
 4049 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
 4050 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
 4051 "     ' prfx=^$ac_symprfx]"
 4052   else
 4053     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 4054   fi
 4055   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
 4056 
 4057   # Check to see that the pipe works correctly.
 4058   pipe_works=no
 4059 
 4060   rm -f conftest*
 4061   cat > conftest.$ac_ext <<_LT_EOF
 4062 #ifdef __cplusplus
 4063 extern "C" {
 4064 #endif
 4065 char nm_test_var;
 4066 void nm_test_func(void);
 4067 void nm_test_func(void){}
 4068 #ifdef __cplusplus
 4069 }
 4070 #endif
 4071 int main(){nm_test_var='a';nm_test_func();return(0);}
 4072 _LT_EOF
 4073 
 4074   if AC_TRY_EVAL(ac_compile); then
 4075     # Now try to grab the symbols.
 4076     nlist=conftest.nm
 4077     if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
 4078       # Try sorting and uniquifying the output.
 4079       if sort "$nlist" | uniq > "$nlist"T; then
 4080 	mv -f "$nlist"T "$nlist"
 4081       else
 4082 	rm -f "$nlist"T
 4083       fi
 4084 
 4085       # Make sure that we snagged all the symbols we need.
 4086       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 4087 	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 4088 	  cat <<_LT_EOF > conftest.$ac_ext
 4089 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
 4090 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
 4091 /* DATA imports from DLLs on WIN32 can't be const, because runtime
 4092    relocations are performed -- see ld's documentation on pseudo-relocs.  */
 4093 # define LT@&t@_DLSYM_CONST
 4094 #elif defined __osf__
 4095 /* This system does not cope well with relocations in const data.  */
 4096 # define LT@&t@_DLSYM_CONST
 4097 #else
 4098 # define LT@&t@_DLSYM_CONST const
 4099 #endif
 4100 
 4101 #ifdef __cplusplus
 4102 extern "C" {
 4103 #endif
 4104 
 4105 _LT_EOF
 4106 	  # Now generate the symbol file.
 4107 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 4108 
 4109 	  cat <<_LT_EOF >> conftest.$ac_ext
 4110 
 4111 /* The mapping between symbol names and symbols.  */
 4112 LT@&t@_DLSYM_CONST struct {
 4113   const char *name;
 4114   void       *address;
 4115 }
 4116 lt__PROGRAM__LTX_preloaded_symbols[[]] =
 4117 {
 4118   { "@PROGRAM@", (void *) 0 },
 4119 _LT_EOF
 4120 	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 4121 	  cat <<\_LT_EOF >> conftest.$ac_ext
 4122   {0, (void *) 0}
 4123 };
 4124 
 4125 /* This works around a problem in FreeBSD linker */
 4126 #ifdef FREEBSD_WORKAROUND
 4127 static const void *lt_preloaded_setup() {
 4128   return lt__PROGRAM__LTX_preloaded_symbols;
 4129 }
 4130 #endif
 4131 
 4132 #ifdef __cplusplus
 4133 }
 4134 #endif
 4135 _LT_EOF
 4136 	  # Now try linking the two files.
 4137 	  mv conftest.$ac_objext conftstm.$ac_objext
 4138 	  lt_globsym_save_LIBS=$LIBS
 4139 	  lt_globsym_save_CFLAGS=$CFLAGS
 4140 	  LIBS=conftstm.$ac_objext
 4141 	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
 4142 	  if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
 4143 	    pipe_works=yes
 4144 	  fi
 4145 	  LIBS=$lt_globsym_save_LIBS
 4146 	  CFLAGS=$lt_globsym_save_CFLAGS
 4147 	else
 4148 	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
 4149 	fi
 4150       else
 4151 	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
 4152       fi
 4153     else
 4154       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
 4155     fi
 4156   else
 4157     echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
 4158     cat conftest.$ac_ext >&5
 4159   fi
 4160   rm -rf conftest* conftst*
 4161 
 4162   # Do not use the global_symbol_pipe unless it works.
 4163   if test yes = "$pipe_works"; then
 4164     break
 4165   else
 4166     lt_cv_sys_global_symbol_pipe=
 4167   fi
 4168 done
 4169 ])
 4170 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 4171   lt_cv_sys_global_symbol_to_cdecl=
 4172 fi
 4173 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 4174   AC_MSG_RESULT(failed)
 4175 else
 4176   AC_MSG_RESULT(ok)
 4177 fi
 4178 
 4179 # Response file support.
 4180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 4181   nm_file_list_spec='@'
 4182 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
 4183   nm_file_list_spec='@'
 4184 fi
 4185 
 4186 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
 4187     [Take the output of nm and produce a listing of raw symbols and C names])
 4188 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
 4189     [Transform the output of nm in a proper C declaration])
 4190 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
 4191     [Transform the output of nm into a list of symbols to manually relocate])
 4192 _LT_DECL([global_symbol_to_c_name_address],
 4193     [lt_cv_sys_global_symbol_to_c_name_address], [1],
 4194     [Transform the output of nm in a C name address pair])
 4195 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
 4196     [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
 4197     [Transform the output of nm in a C name address pair when lib prefix is needed])
 4198 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
 4199     [The name lister interface])
 4200 _LT_DECL([], [nm_file_list_spec], [1],
 4201     [Specify filename containing input files for $NM])
 4202 ]) # _LT_CMD_GLOBAL_SYMBOLS
 4203 
 4204 
 4205 # _LT_COMPILER_PIC([TAGNAME])
 4206 # ---------------------------
 4207 m4_defun([_LT_COMPILER_PIC],
 4208 [m4_require([_LT_TAG_COMPILER])dnl
 4209 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
 4210 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4211 _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4212 
 4213 m4_if([$1], [CXX], [
 4214   # C++ specific cases for pic, static, wl, etc.
 4215   if test yes = "$GXX"; then
 4216     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4217     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4218 
 4219     case $host_os in
 4220     aix*)
 4221       # All AIX code is PIC.
 4222       if test ia64 = "$host_cpu"; then
 4223 	# AIX 5 now supports IA64 processor
 4224 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4225       fi
 4226       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4227       ;;
 4228 
 4229     amigaos*)
 4230       case $host_cpu in
 4231       powerpc)
 4232             # see comment about AmigaOS4 .so support
 4233             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4234         ;;
 4235       m68k)
 4236             # FIXME: we need at least 68020 code to build shared libraries, but
 4237             # adding the '-m68020' flag to GCC prevents building anything better,
 4238             # like '-m68040'.
 4239             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4240         ;;
 4241       esac
 4242       ;;
 4243 
 4244     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4245       # PIC is the default for these OSes.
 4246       ;;
 4247     mingw* | cygwin* | os2* | pw32* | cegcc*)
 4248       # This hack is so that the source file can tell whether it is being
 4249       # built for inclusion in a dll (and should export symbols for example).
 4250       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4251       # (--disable-auto-import) libraries
 4252       m4_if([$1], [GCJ], [],
 4253 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4254       case $host_os in
 4255       os2*)
 4256 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4257 	;;
 4258       esac
 4259       ;;
 4260     darwin* | rhapsody*)
 4261       # PIC is the default on this platform
 4262       # Common symbols not allowed in MH_DYLIB files
 4263       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4264       ;;
 4265     *djgpp*)
 4266       # DJGPP does not support shared libraries at all
 4267       _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4268       ;;
 4269     haiku*)
 4270       # PIC is the default for Haiku.
 4271       # The "-static" flag exists, but is broken.
 4272       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4273       ;;
 4274     interix[[3-9]]*)
 4275       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4276       # Instead, we relocate shared libraries at runtime.
 4277       ;;
 4278     sysv4*MP*)
 4279       if test -d /usr/nec; then
 4280 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4281       fi
 4282       ;;
 4283     hpux*)
 4284       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4285       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4286       # sets the default TLS model and affects inlining.
 4287       case $host_cpu in
 4288       hppa*64*)
 4289 	;;
 4290       *)
 4291 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4292 	;;
 4293       esac
 4294       ;;
 4295     *qnx* | *nto*)
 4296       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4297       # it will coredump.
 4298       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4299       ;;
 4300     *)
 4301       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4302       ;;
 4303     esac
 4304   else
 4305     case $host_os in
 4306       aix[[4-9]]*)
 4307 	# All AIX code is PIC.
 4308 	if test ia64 = "$host_cpu"; then
 4309 	  # AIX 5 now supports IA64 processor
 4310 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4311 	else
 4312 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4313 	fi
 4314 	;;
 4315       chorus*)
 4316 	case $cc_basename in
 4317 	cxch68*)
 4318 	  # Green Hills C++ Compiler
 4319 	  # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 4320 	  ;;
 4321 	esac
 4322 	;;
 4323       mingw* | cygwin* | os2* | pw32* | cegcc*)
 4324 	# This hack is so that the source file can tell whether it is being
 4325 	# built for inclusion in a dll (and should export symbols for example).
 4326 	m4_if([$1], [GCJ], [],
 4327 	  [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4328 	;;
 4329       dgux*)
 4330 	case $cc_basename in
 4331 	  ec++*)
 4332 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4333 	    ;;
 4334 	  ghcx*)
 4335 	    # Green Hills C++ Compiler
 4336 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4337 	    ;;
 4338 	  *)
 4339 	    ;;
 4340 	esac
 4341 	;;
 4342       freebsd* | dragonfly*)
 4343 	# FreeBSD uses GNU C++
 4344 	;;
 4345       hpux9* | hpux10* | hpux11*)
 4346 	case $cc_basename in
 4347 	  CC*)
 4348 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4349 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4350 	    if test ia64 != "$host_cpu"; then
 4351 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4352 	    fi
 4353 	    ;;
 4354 	  aCC*)
 4355 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4356 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4357 	    case $host_cpu in
 4358 	    hppa*64*|ia64*)
 4359 	      # +Z the default
 4360 	      ;;
 4361 	    *)
 4362 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4363 	      ;;
 4364 	    esac
 4365 	    ;;
 4366 	  *)
 4367 	    ;;
 4368 	esac
 4369 	;;
 4370       interix*)
 4371 	# This is c89, which is MS Visual C++ (no shared libs)
 4372 	# Anyone wants to do a port?
 4373 	;;
 4374       irix5* | irix6* | nonstopux*)
 4375 	case $cc_basename in
 4376 	  CC*)
 4377 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4378 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4379 	    # CC pic flag -KPIC is the default.
 4380 	    ;;
 4381 	  *)
 4382 	    ;;
 4383 	esac
 4384 	;;
 4385       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4386 	case $cc_basename in
 4387 	  KCC*)
 4388 	    # KAI C++ Compiler
 4389 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4390 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4391 	    ;;
 4392 	  ecpc* )
 4393 	    # old Intel C++ for x86_64, which still supported -KPIC.
 4394 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4395 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4396 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4397 	    ;;
 4398 	  icpc* )
 4399 	    # Intel C++, used to be incompatible with GCC.
 4400 	    # ICC 10 doesn't accept -KPIC any more.
 4401 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4402 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4403 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4404 	    ;;
 4405 	  pgCC* | pgcpp*)
 4406 	    # Portland Group C++ compiler
 4407 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4408 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4409 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4410 	    ;;
 4411 	  cxx*)
 4412 	    # Compaq C++
 4413 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4414 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4415 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4416 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4417 	    ;;
 4418 	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
 4419 	    # IBM XL 8.0, 9.0 on PPC and BlueGene
 4420 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4421 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4422 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4423 	    ;;
 4424 	  *)
 4425 	    case `$CC -V 2>&1 | sed 5q` in
 4426 	    *Sun\ C*)
 4427 	      # Sun C++ 5.9
 4428 	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4429 	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4430 	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4431 	      ;;
 4432 	    esac
 4433 	    ;;
 4434 	esac
 4435 	;;
 4436       lynxos*)
 4437 	;;
 4438       m88k*)
 4439 	;;
 4440       mvs*)
 4441 	case $cc_basename in
 4442 	  cxx*)
 4443 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
 4444 	    ;;
 4445 	  *)
 4446 	    ;;
 4447 	esac
 4448 	;;
 4449       netbsd*)
 4450 	;;
 4451       *qnx* | *nto*)
 4452         # QNX uses GNU C++, but need to define -shared option too, otherwise
 4453         # it will coredump.
 4454         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4455         ;;
 4456       osf3* | osf4* | osf5*)
 4457 	case $cc_basename in
 4458 	  KCC*)
 4459 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
 4460 	    ;;
 4461 	  RCC*)
 4462 	    # Rational C++ 2.4.1
 4463 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4464 	    ;;
 4465 	  cxx*)
 4466 	    # Digital/Compaq C++
 4467 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4468 	    # Make sure the PIC flag is empty.  It appears that all Alpha
 4469 	    # Linux and Compaq Tru64 Unix objects are PIC.
 4470 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4471 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4472 	    ;;
 4473 	  *)
 4474 	    ;;
 4475 	esac
 4476 	;;
 4477       psos*)
 4478 	;;
 4479       solaris*)
 4480 	case $cc_basename in
 4481 	  CC* | sunCC*)
 4482 	    # Sun C++ 4.2, 5.x and Centerline C++
 4483 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4484 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4485 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4486 	    ;;
 4487 	  gcx*)
 4488 	    # Green Hills C++ Compiler
 4489 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4490 	    ;;
 4491 	  *)
 4492 	    ;;
 4493 	esac
 4494 	;;
 4495       sunos4*)
 4496 	case $cc_basename in
 4497 	  CC*)
 4498 	    # Sun C++ 4.x
 4499 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4500 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4501 	    ;;
 4502 	  lcc*)
 4503 	    # Lucid
 4504 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4505 	    ;;
 4506 	  *)
 4507 	    ;;
 4508 	esac
 4509 	;;
 4510       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4511 	case $cc_basename in
 4512 	  CC*)
 4513 	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4514 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4515 	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4516 	    ;;
 4517 	esac
 4518 	;;
 4519       tandem*)
 4520 	case $cc_basename in
 4521 	  NCC*)
 4522 	    # NonStop-UX NCC 3.20
 4523 	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4524 	    ;;
 4525 	  *)
 4526 	    ;;
 4527 	esac
 4528 	;;
 4529       vxworks*)
 4530 	;;
 4531       *)
 4532 	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4533 	;;
 4534     esac
 4535   fi
 4536 ],
 4537 [
 4538   if test yes = "$GCC"; then
 4539     _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4540     _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4541 
 4542     case $host_os in
 4543       aix*)
 4544       # All AIX code is PIC.
 4545       if test ia64 = "$host_cpu"; then
 4546 	# AIX 5 now supports IA64 processor
 4547 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4548       fi
 4549       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4550       ;;
 4551 
 4552     amigaos*)
 4553       case $host_cpu in
 4554       powerpc)
 4555             # see comment about AmigaOS4 .so support
 4556             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4557         ;;
 4558       m68k)
 4559             # FIXME: we need at least 68020 code to build shared libraries, but
 4560             # adding the '-m68020' flag to GCC prevents building anything better,
 4561             # like '-m68040'.
 4562             _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
 4563         ;;
 4564       esac
 4565       ;;
 4566 
 4567     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 4568       # PIC is the default for these OSes.
 4569       ;;
 4570 
 4571     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4572       # This hack is so that the source file can tell whether it is being
 4573       # built for inclusion in a dll (and should export symbols for example).
 4574       # Although the cygwin gcc ignores -fPIC, still need this for old-style
 4575       # (--disable-auto-import) libraries
 4576       m4_if([$1], [GCJ], [],
 4577 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4578       case $host_os in
 4579       os2*)
 4580 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4581 	;;
 4582       esac
 4583       ;;
 4584 
 4585     darwin* | rhapsody*)
 4586       # PIC is the default on this platform
 4587       # Common symbols not allowed in MH_DYLIB files
 4588       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4589       ;;
 4590 
 4591     haiku*)
 4592       # PIC is the default for Haiku.
 4593       # The "-static" flag exists, but is broken.
 4594       _LT_TAGVAR(lt_prog_compiler_static, $1)=
 4595       ;;
 4596 
 4597     hpux*)
 4598       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
 4599       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
 4600       # sets the default TLS model and affects inlining.
 4601       case $host_cpu in
 4602       hppa*64*)
 4603 	# +Z the default
 4604 	;;
 4605       *)
 4606 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4607 	;;
 4608       esac
 4609       ;;
 4610 
 4611     interix[[3-9]]*)
 4612       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 4613       # Instead, we relocate shared libraries at runtime.
 4614       ;;
 4615 
 4616     msdosdjgpp*)
 4617       # Just because we use GCC doesn't mean we suddenly get shared libraries
 4618       # on systems that don't support them.
 4619       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4620       enable_shared=no
 4621       ;;
 4622 
 4623     *nto* | *qnx*)
 4624       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4625       # it will coredump.
 4626       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4627       ;;
 4628 
 4629     sysv4*MP*)
 4630       if test -d /usr/nec; then
 4631 	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
 4632       fi
 4633       ;;
 4634 
 4635     *)
 4636       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4637       ;;
 4638     esac
 4639 
 4640     case $cc_basename in
 4641     nvcc*) # Cuda Compiler Driver 2.2
 4642       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
 4643       if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4644         _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
 4645       fi
 4646       ;;
 4647     esac
 4648   else
 4649     # PORTME Check for flag to pass linker flags through the system compiler.
 4650     case $host_os in
 4651     aix*)
 4652       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4653       if test ia64 = "$host_cpu"; then
 4654 	# AIX 5 now supports IA64 processor
 4655 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4656       else
 4657 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
 4658       fi
 4659       ;;
 4660 
 4661     darwin* | rhapsody*)
 4662       # PIC is the default on this platform
 4663       # Common symbols not allowed in MH_DYLIB files
 4664       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
 4665       case $cc_basename in
 4666       nagfor*)
 4667         # NAG Fortran compiler
 4668         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4669         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4670         _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4671         ;;
 4672       esac
 4673       ;;
 4674 
 4675     mingw* | cygwin* | pw32* | os2* | cegcc*)
 4676       # This hack is so that the source file can tell whether it is being
 4677       # built for inclusion in a dll (and should export symbols for example).
 4678       m4_if([$1], [GCJ], [],
 4679 	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
 4680       case $host_os in
 4681       os2*)
 4682 	_LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
 4683 	;;
 4684       esac
 4685       ;;
 4686 
 4687     hpux9* | hpux10* | hpux11*)
 4688       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4689       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 4690       # not for PA HP-UX.
 4691       case $host_cpu in
 4692       hppa*64*|ia64*)
 4693 	# +Z the default
 4694 	;;
 4695       *)
 4696 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
 4697 	;;
 4698       esac
 4699       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 4700       _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
 4701       ;;
 4702 
 4703     irix5* | irix6* | nonstopux*)
 4704       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4705       # PIC (with -KPIC) is the default.
 4706       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4707       ;;
 4708 
 4709     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 4710       case $cc_basename in
 4711       # old Intel for x86_64, which still supported -KPIC.
 4712       ecc*)
 4713 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4714 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4715 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4716         ;;
 4717       # icc used to be incompatible with GCC.
 4718       # ICC 10 doesn't accept -KPIC any more.
 4719       icc* | ifort*)
 4720 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4721 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4722 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4723         ;;
 4724       # Lahey Fortran 8.1.
 4725       lf95*)
 4726 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4727 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
 4728 	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
 4729 	;;
 4730       nagfor*)
 4731 	# NAG Fortran compiler
 4732 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
 4733 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4734 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4735 	;;
 4736       tcc*)
 4737 	# Fabrice Bellard et al's Tiny C Compiler
 4738 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4739 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4740 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4741 	;;
 4742       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
 4743         # Portland Group compilers (*not* the Pentium gcc compiler,
 4744 	# which looks to be a dead project)
 4745 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4746 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4747 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4748         ;;
 4749       ccc*)
 4750         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4751         # All Alpha code is PIC.
 4752         _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4753         ;;
 4754       xl* | bgxl* | bgf* | mpixl*)
 4755 	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
 4756 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4757 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
 4758 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
 4759 	;;
 4760       *)
 4761 	case `$CC -V 2>&1 | sed 5q` in
 4762 	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
 4763 	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
 4764 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4765 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4766 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
 4767 	  ;;
 4768 	*Sun\ F* | *Sun*Fortran*)
 4769 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4770 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4771 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4772 	  ;;
 4773 	*Sun\ C*)
 4774 	  # Sun C 5.9
 4775 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4776 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4777 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4778 	  ;;
 4779         *Intel*\ [[CF]]*Compiler*)
 4780 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4781 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
 4782 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
 4783 	  ;;
 4784 	*Portland\ Group*)
 4785 	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4786 	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
 4787 	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4788 	  ;;
 4789 	esac
 4790 	;;
 4791       esac
 4792       ;;
 4793 
 4794     newsos6)
 4795       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4796       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4797       ;;
 4798 
 4799     *nto* | *qnx*)
 4800       # QNX uses GNU C++, but need to define -shared option too, otherwise
 4801       # it will coredump.
 4802       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
 4803       ;;
 4804 
 4805     osf3* | osf4* | osf5*)
 4806       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4807       # All OSF/1 code is PIC.
 4808       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4809       ;;
 4810 
 4811     rdos*)
 4812       _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
 4813       ;;
 4814 
 4815     solaris*)
 4816       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4817       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4818       case $cc_basename in
 4819       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
 4820 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
 4821       *)
 4822 	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
 4823       esac
 4824       ;;
 4825 
 4826     sunos4*)
 4827       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
 4828       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
 4829       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4830       ;;
 4831 
 4832     sysv4 | sysv4.2uw2* | sysv4.3*)
 4833       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4834       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4835       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4836       ;;
 4837 
 4838     sysv4*MP*)
 4839       if test -d /usr/nec; then
 4840 	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
 4841 	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4842       fi
 4843       ;;
 4844 
 4845     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 4846       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4847       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
 4848       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4849       ;;
 4850 
 4851     unicos*)
 4852       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
 4853       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4854       ;;
 4855 
 4856     uts4*)
 4857       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
 4858       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
 4859       ;;
 4860 
 4861     *)
 4862       _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
 4863       ;;
 4864     esac
 4865   fi
 4866 ])
 4867 case $host_os in
 4868   # For platforms that do not support PIC, -DPIC is meaningless:
 4869   *djgpp*)
 4870     _LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4871     ;;
 4872   *)
 4873     _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
 4874     ;;
 4875 esac
 4876 
 4877 AC_CACHE_CHECK([for $compiler option to produce PIC],
 4878   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
 4879   [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
 4880 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
 4881 
 4882 #
 4883 # Check to make sure the PIC flag actually works.
 4884 #
 4885 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
 4886   _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
 4887     [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
 4888     [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
 4889     [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
 4890      "" | " "*) ;;
 4891      *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
 4892      esac],
 4893     [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
 4894      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
 4895 fi
 4896 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
 4897 	[Additional compiler flags for building library objects])
 4898 
 4899 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
 4900 	[How to pass a linker flag through the compiler])
 4901 #
 4902 # Check to make sure the static flag actually works.
 4903 #
 4904 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
 4905 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
 4906   _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
 4907   $lt_tmp_static_flag,
 4908   [],
 4909   [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
 4910 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
 4911 	[Compiler flag to prevent dynamic linking])
 4912 ])# _LT_COMPILER_PIC
 4913 
 4914 
 4915 # _LT_LINKER_SHLIBS([TAGNAME])
 4916 # ----------------------------
 4917 # See if the linker supports building shared libraries.
 4918 m4_defun([_LT_LINKER_SHLIBS],
 4919 [AC_REQUIRE([LT_PATH_LD])dnl
 4920 AC_REQUIRE([LT_PATH_NM])dnl
 4921 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 4922 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 4923 m4_require([_LT_DECL_EGREP])dnl
 4924 m4_require([_LT_DECL_SED])dnl
 4925 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
 4926 m4_require([_LT_TAG_COMPILER])dnl
 4927 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 4928 m4_if([$1], [CXX], [
 4929   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 4930   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 4931   case $host_os in
 4932   aix[[4-9]]*)
 4933     # If we're using GNU nm, then we don't want the "-C" option.
 4934     # -C means demangle to GNU nm, but means don't demangle to AIX nm.
 4935     # Without the "-l" option, or with the "-B" option, AIX nm treats
 4936     # weak defined symbols like other global defined symbols, whereas
 4937     # GNU nm marks them as "W".
 4938     # While the 'weak' keyword is ignored in the Export File, we need
 4939     # it in the Import File for the 'aix-soname' feature, so we have
 4940     # to replace the "-B" option with "-P" for AIX nm.
 4941     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 4942       _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'
 4943     else
 4944       _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 == "L") || (\$ 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'
 4945     fi
 4946     ;;
 4947   pw32*)
 4948     _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
 4949     ;;
 4950   cygwin* | mingw* | cegcc*)
 4951     case $cc_basename in
 4952     cl* | icl*)
 4953       _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 4954       ;;
 4955     *)
 4956       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 4957       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 4958       ;;
 4959     esac
 4960     ;;
 4961   *)
 4962     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 4963     ;;
 4964   esac
 4965 ], [
 4966   runpath_var=
 4967   _LT_TAGVAR(allow_undefined_flag, $1)=
 4968   _LT_TAGVAR(always_export_symbols, $1)=no
 4969   _LT_TAGVAR(archive_cmds, $1)=
 4970   _LT_TAGVAR(archive_expsym_cmds, $1)=
 4971   _LT_TAGVAR(compiler_needs_object, $1)=no
 4972   _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 4973   _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 4974   _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 4975   _LT_TAGVAR(hardcode_automatic, $1)=no
 4976   _LT_TAGVAR(hardcode_direct, $1)=no
 4977   _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 4978   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 4979   _LT_TAGVAR(hardcode_libdir_separator, $1)=
 4980   _LT_TAGVAR(hardcode_minus_L, $1)=no
 4981   _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 4982   _LT_TAGVAR(inherit_rpath, $1)=no
 4983   _LT_TAGVAR(link_all_deplibs, $1)=unknown
 4984   _LT_TAGVAR(module_cmds, $1)=
 4985   _LT_TAGVAR(module_expsym_cmds, $1)=
 4986   _LT_TAGVAR(old_archive_from_new_cmds, $1)=
 4987   _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
 4988   _LT_TAGVAR(thread_safe_flag_spec, $1)=
 4989   _LT_TAGVAR(whole_archive_flag_spec, $1)=
 4990   # include_expsyms should be a list of space-separated symbols to be *always*
 4991   # included in the symbol list
 4992   _LT_TAGVAR(include_expsyms, $1)=
 4993   # exclude_expsyms can be an extended regexp of symbols to exclude
 4994   # it will be wrapped by ' (' and ')$', so one must not match beginning or
 4995   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
 4996   # as well as any symbol that contains 'd'.
 4997   _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
 4998   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 4999   # platforms (ab)use it in PIC code, but their linkers get confused if
 5000   # the symbol is explicitly referenced.  Since portable code cannot
 5001   # rely on this symbol name, it's probably fine to never include it in
 5002   # preloaded symbol tables.
 5003   # Exclude shared library initialization/finalization symbols.
 5004 dnl Note also adjust exclude_expsyms for C++ above.
 5005   extract_expsyms_cmds=
 5006 
 5007   case $host_os in
 5008   cygwin* | mingw* | pw32* | cegcc*)
 5009     # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
 5010     # When not using gcc, we currently assume that we are using
 5011     # Microsoft Visual C++ or Intel C++ Compiler.
 5012     if test yes != "$GCC"; then
 5013       with_gnu_ld=no
 5014     fi
 5015     ;;
 5016   interix*)
 5017     # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
 5018     with_gnu_ld=yes
 5019     ;;
 5020   openbsd* | bitrig*)
 5021     with_gnu_ld=no
 5022     ;;
 5023   esac
 5024 
 5025   _LT_TAGVAR(ld_shlibs, $1)=yes
 5026 
 5027   # On some targets, GNU ld is compatible enough with the native linker
 5028   # that we're better off using the native interface for both.
 5029   lt_use_gnu_ld_interface=no
 5030   if test yes = "$with_gnu_ld"; then
 5031     case $host_os in
 5032       aix*)
 5033 	# The AIX port of GNU ld has always aspired to compatibility
 5034 	# with the native linker.  However, as the warning in the GNU ld
 5035 	# block says, versions before 2.19.5* couldn't really create working
 5036 	# shared libraries, regardless of the interface used.
 5037 	case `$LD -v 2>&1` in
 5038 	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
 5039 	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
 5040 	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
 5041 	  *)
 5042 	    lt_use_gnu_ld_interface=yes
 5043 	    ;;
 5044 	esac
 5045 	;;
 5046       *)
 5047 	lt_use_gnu_ld_interface=yes
 5048 	;;
 5049     esac
 5050   fi
 5051 
 5052   if test yes = "$lt_use_gnu_ld_interface"; then
 5053     # If archive_cmds runs LD, not CC, wlarc should be empty
 5054     wlarc='$wl'
 5055 
 5056     # Set some defaults for GNU ld with shared library support. These
 5057     # are reset later if shared libraries are not supported. Putting them
 5058     # here allows them to be overridden if necessary.
 5059     runpath_var=LD_RUN_PATH
 5060     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5061     _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 5062     # ancient GNU ld didn't support --whole-archive et. al.
 5063     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 5064       _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 5065     else
 5066       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5067     fi
 5068     supports_anon_versioning=no
 5069     case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
 5070       *GNU\ gold*) supports_anon_versioning=yes ;;
 5071       *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
 5072       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 5073       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 5074       *\ 2.11.*) ;; # other 2.11 versions
 5075       *) supports_anon_versioning=yes ;;
 5076     esac
 5077 
 5078     # See if GNU ld supports shared libraries.
 5079     case $host_os in
 5080     aix[[3-9]]*)
 5081       # On AIX/PPC, the GNU linker is very broken
 5082       if test ia64 != "$host_cpu"; then
 5083 	_LT_TAGVAR(ld_shlibs, $1)=no
 5084 	cat <<_LT_EOF 1>&2
 5085 
 5086 *** Warning: the GNU linker, at least up to release 2.19, is reported
 5087 *** to be unable to reliably create shared libraries on AIX.
 5088 *** Therefore, libtool is disabling shared libraries support.  If you
 5089 *** really care for shared libraries, you may want to install binutils
 5090 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
 5091 *** You will then need to restart the configuration process.
 5092 
 5093 _LT_EOF
 5094       fi
 5095       ;;
 5096 
 5097     amigaos*)
 5098       case $host_cpu in
 5099       powerpc)
 5100             # see comment about AmigaOS4 .so support
 5101             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5102             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5103         ;;
 5104       m68k)
 5105             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 5106             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5107             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5108         ;;
 5109       esac
 5110       ;;
 5111 
 5112     beos*)
 5113       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5114 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5115 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 5116 	# support --undefined.  This deserves some investigation.  FIXME
 5117 	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5118       else
 5119 	_LT_TAGVAR(ld_shlibs, $1)=no
 5120       fi
 5121       ;;
 5122 
 5123     cygwin* | mingw* | pw32* | cegcc*)
 5124       # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 5125       # as there is no search path for DLLs.
 5126       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5127       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 5128       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5129       _LT_TAGVAR(always_export_symbols, $1)=no
 5130       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5131       _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
 5132       _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
 5133 
 5134       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 5135         _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'
 5136 	# If the export-symbols file already is a .def file, use it as
 5137 	# is; otherwise, prepend EXPORTS...
 5138 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5139           cp $export_symbols $output_objdir/$soname.def;
 5140         else
 5141           echo EXPORTS > $output_objdir/$soname.def;
 5142           cat $export_symbols >> $output_objdir/$soname.def;
 5143         fi~
 5144         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 5145       else
 5146 	_LT_TAGVAR(ld_shlibs, $1)=no
 5147       fi
 5148       ;;
 5149 
 5150     haiku*)
 5151       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5152       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5153       ;;
 5154 
 5155     os2*)
 5156       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5157       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5158       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5159       shrext_cmds=.dll
 5160       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5161 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5162 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5163 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5164 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5165 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5166 	emximp -o $lib $output_objdir/$libname.def'
 5167       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5168 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5169 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5170 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5171 	prefix_cmds="$SED"~
 5172 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5173 	  prefix_cmds="$prefix_cmds -e 1d";
 5174 	fi~
 5175 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5176 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5177 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5178 	emximp -o $lib $output_objdir/$libname.def'
 5179       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5180       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5181       _LT_TAGVAR(file_list_spec, $1)='@'
 5182       ;;
 5183 
 5184     interix[[3-9]]*)
 5185       _LT_TAGVAR(hardcode_direct, $1)=no
 5186       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5187       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5188       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5189       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 5190       # Instead, shared libraries are loaded at an image base (0x10000000 by
 5191       # default) and relocated if they conflict, which is a slow very memory
 5192       # consuming and fragmenting process.  To avoid this, we pick a random,
 5193       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 5194       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 5195       _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'
 5196       _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'
 5197       ;;
 5198 
 5199     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
 5200       tmp_diet=no
 5201       if test linux-dietlibc = "$host_os"; then
 5202 	case $cc_basename in
 5203 	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
 5204 	esac
 5205       fi
 5206       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 5207 	 && test no = "$tmp_diet"
 5208       then
 5209 	tmp_addflag=' $pic_flag'
 5210 	tmp_sharedflag='-shared'
 5211 	case $cc_basename,$host_cpu in
 5212         pgcc*)				# Portland Group C compiler
 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'
 5214 	  tmp_addflag=' $pic_flag'
 5215 	  ;;
 5216 	pgf77* | pgf90* | pgf95* | pgfortran*)
 5217 					# Portland Group f77 and f90 compilers
 5218 	  _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'
 5219 	  tmp_addflag=' $pic_flag -Mnomain' ;;
 5220 	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
 5221 	  tmp_addflag=' -i_dynamic' ;;
 5222 	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
 5223 	  tmp_addflag=' -i_dynamic -nofor_main' ;;
 5224 	ifc* | ifort*)			# Intel Fortran compiler
 5225 	  tmp_addflag=' -nofor_main' ;;
 5226 	lf95*)				# Lahey Fortran 8.1
 5227 	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5228 	  tmp_sharedflag='--shared' ;;
 5229         nagfor*)                        # NAGFOR 5.3
 5230           tmp_sharedflag='-Wl,-shared' ;;
 5231 	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
 5232 	  tmp_sharedflag='-qmkshrobj'
 5233 	  tmp_addflag= ;;
 5234 	nvcc*)	# Cuda Compiler Driver 2.2
 5235 	  _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'
 5236 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5237 	  ;;
 5238 	esac
 5239 	case `$CC -V 2>&1 | sed 5q` in
 5240 	*Sun\ C*)			# Sun C 5.9
 5241 	  _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'
 5242 	  _LT_TAGVAR(compiler_needs_object, $1)=yes
 5243 	  tmp_sharedflag='-G' ;;
 5244 	*Sun\ F*)			# Sun Fortran 8.3
 5245 	  tmp_sharedflag='-G' ;;
 5246 	esac
 5247 	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5248 
 5249         if test yes = "$supports_anon_versioning"; then
 5250           _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5251             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5252             echo "local: *; };" >> $output_objdir/$libname.ver~
 5253             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 5254         fi
 5255 
 5256 	case $cc_basename in
 5257 	tcc*)
 5258 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
 5259 	  ;;
 5260 	xlf* | bgf* | bgxlf* | mpixlf*)
 5261 	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 5262 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
 5263 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5264 	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
 5265 	  if test yes = "$supports_anon_versioning"; then
 5266 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 5267               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 5268               echo "local: *; };" >> $output_objdir/$libname.ver~
 5269               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 5270 	  fi
 5271 	  ;;
 5272 	esac
 5273       else
 5274         _LT_TAGVAR(ld_shlibs, $1)=no
 5275       fi
 5276       ;;
 5277 
 5278     netbsd*)
 5279       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5280 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 5281 	wlarc=
 5282       else
 5283 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5284 	_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'
 5285       fi
 5286       ;;
 5287 
 5288     solaris*)
 5289       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 5290 	_LT_TAGVAR(ld_shlibs, $1)=no
 5291 	cat <<_LT_EOF 1>&2
 5292 
 5293 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 5294 *** create shared libraries on Solaris systems.  Therefore, libtool
 5295 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5296 *** binutils to release 2.9.1 or newer.  Another option is to modify
 5297 *** your PATH or compiler configuration so that the native linker is
 5298 *** used, and then restart.
 5299 
 5300 _LT_EOF
 5301       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5302 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5303 	_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'
 5304       else
 5305 	_LT_TAGVAR(ld_shlibs, $1)=no
 5306       fi
 5307       ;;
 5308 
 5309     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 5310       case `$LD -v 2>&1` in
 5311         *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
 5312 	_LT_TAGVAR(ld_shlibs, $1)=no
 5313 	cat <<_LT_EOF 1>&2
 5314 
 5315 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
 5316 *** reliably create shared libraries on SCO systems.  Therefore, libtool
 5317 *** is disabling shared libraries support.  We urge you to upgrade GNU
 5318 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 5319 *** your PATH or compiler configuration so that the native linker is
 5320 *** used, and then restart.
 5321 
 5322 _LT_EOF
 5323 	;;
 5324 	*)
 5325 	  # For security reasons, it is highly recommended that you always
 5326 	  # use absolute paths for naming shared libraries, and exclude the
 5327 	  # DT_RUNPATH tag from executables and libraries.  But doing so
 5328 	  # requires that you compile everything twice, which is a pain.
 5329 	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5330 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5331 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5332 	    _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'
 5333 	  else
 5334 	    _LT_TAGVAR(ld_shlibs, $1)=no
 5335 	  fi
 5336 	;;
 5337       esac
 5338       ;;
 5339 
 5340     sunos4*)
 5341       _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5342       wlarc=
 5343       _LT_TAGVAR(hardcode_direct, $1)=yes
 5344       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5345       ;;
 5346 
 5347     *)
 5348       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 5349 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5350 	_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'
 5351       else
 5352 	_LT_TAGVAR(ld_shlibs, $1)=no
 5353       fi
 5354       ;;
 5355     esac
 5356 
 5357     if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
 5358       runpath_var=
 5359       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 5360       _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 5361       _LT_TAGVAR(whole_archive_flag_spec, $1)=
 5362     fi
 5363   else
 5364     # PORTME fill in a description of your system's linker (not GNU ld)
 5365     case $host_os in
 5366     aix3*)
 5367       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5368       _LT_TAGVAR(always_export_symbols, $1)=yes
 5369       _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 5370       # Note: this linker hardcodes the directories in LIBPATH if there
 5371       # are no directories specified by -L.
 5372       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5373       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
 5374 	# Neither direct hardcoding nor static linking is supported with a
 5375 	# broken collect2.
 5376 	_LT_TAGVAR(hardcode_direct, $1)=unsupported
 5377       fi
 5378       ;;
 5379 
 5380     aix[[4-9]]*)
 5381       if test ia64 = "$host_cpu"; then
 5382 	# On IA64, the linker does run time linking by default, so we don't
 5383 	# have to do anything special.
 5384 	aix_use_runtimelinking=no
 5385 	exp_sym_flag='-Bexport'
 5386 	no_entry_flag=
 5387       else
 5388 	# If we're using GNU nm, then we don't want the "-C" option.
 5389 	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
 5390 	# Without the "-l" option, or with the "-B" option, AIX nm treats
 5391 	# weak defined symbols like other global defined symbols, whereas
 5392 	# GNU nm marks them as "W".
 5393 	# While the 'weak' keyword is ignored in the Export File, we need
 5394 	# it in the Import File for the 'aix-soname' feature, so we have
 5395 	# to replace the "-B" option with "-P" for AIX nm.
 5396 	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 5397 	  _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'
 5398 	else
 5399 	  _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 == "L") || (\$ 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'
 5400 	fi
 5401 	aix_use_runtimelinking=no
 5402 
 5403 	# Test if we are trying to use run time linking or normal
 5404 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 5405 	# have runtime linking enabled, and use it for executables.
 5406 	# For shared libraries, we enable/disable runtime linking
 5407 	# depending on the kind of the shared library created -
 5408 	# when "with_aix_soname,aix_use_runtimelinking" is:
 5409 	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 5410 	# "aix,yes"  lib.so          shared, rtl:yes, for executables
 5411 	#            lib.a           static archive
 5412 	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
 5413 	#            lib.a(lib.so.V) shared, rtl:no,  for executables
 5414 	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 5415 	#            lib.a(lib.so.V) shared, rtl:no
 5416 	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 5417 	#            lib.a           static archive
 5418 	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 5419 	  for ld_flag in $LDFLAGS; do
 5420 	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
 5421 	    aix_use_runtimelinking=yes
 5422 	    break
 5423 	  fi
 5424 	  done
 5425 	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 5426 	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
 5427 	    # so we don't have lib.a shared libs to link our executables.
 5428 	    # We have to force runtime linking in this case.
 5429 	    aix_use_runtimelinking=yes
 5430 	    LDFLAGS="$LDFLAGS -Wl,-brtl"
 5431 	  fi
 5432 	  ;;
 5433 	esac
 5434 
 5435 	exp_sym_flag='-bexport'
 5436 	no_entry_flag='-bnoentry'
 5437       fi
 5438 
 5439       # When large executables or shared objects are built, AIX ld can
 5440       # have problems creating the table of contents.  If linking a library
 5441       # or program results in "error TOC overflow" add -mminimal-toc to
 5442       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 5443       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 5444 
 5445       _LT_TAGVAR(archive_cmds, $1)=''
 5446       _LT_TAGVAR(hardcode_direct, $1)=yes
 5447       _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5448       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 5449       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5450       _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 5451       case $with_aix_soname,$aix_use_runtimelinking in
 5452       aix,*) ;; # traditional, no import file
 5453       svr4,* | *,yes) # use import file
 5454 	# The Import File defines what to hardcode.
 5455 	_LT_TAGVAR(hardcode_direct, $1)=no
 5456 	_LT_TAGVAR(hardcode_direct_absolute, $1)=no
 5457 	;;
 5458       esac
 5459 
 5460       if test yes = "$GCC"; then
 5461 	case $host_os in aix4.[[012]]|aix4.[[012]].*)
 5462 	# We only want to do this on AIX 4.2 and lower, the check
 5463 	# below for broken collect2 doesn't work under 4.3+
 5464 	  collect2name=`$CC -print-prog-name=collect2`
 5465 	  if test -f "$collect2name" &&
 5466 	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 5467 	  then
 5468 	  # We have reworked collect2
 5469 	  :
 5470 	  else
 5471 	  # We have old collect2
 5472 	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
 5473 	  # It fails to find uninstalled libraries when the uninstalled
 5474 	  # path is not listed in the libpath.  Setting hardcode_minus_L
 5475 	  # to unsupported forces relinking
 5476 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5477 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5478 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
 5479 	  fi
 5480 	  ;;
 5481 	esac
 5482 	shared_flag='-shared'
 5483 	if test yes = "$aix_use_runtimelinking"; then
 5484 	  shared_flag="$shared_flag "'$wl-G'
 5485 	fi
 5486 	# Need to ensure runtime linking is disabled for the traditional
 5487 	# shared library, or the linker may eventually find shared libraries
 5488 	# /with/ Import File - we do not want to mix them.
 5489 	shared_flag_aix='-shared'
 5490 	shared_flag_svr4='-shared $wl-G'
 5491       else
 5492 	# not using gcc
 5493 	if test ia64 = "$host_cpu"; then
 5494 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 5495 	# chokes on -Wl,-G. The following line is correct:
 5496 	  shared_flag='-G'
 5497 	else
 5498 	  if test yes = "$aix_use_runtimelinking"; then
 5499 	    shared_flag='$wl-G'
 5500 	  else
 5501 	    shared_flag='$wl-bM:SRE'
 5502 	  fi
 5503 	  shared_flag_aix='$wl-bM:SRE'
 5504 	  shared_flag_svr4='$wl-G'
 5505 	fi
 5506       fi
 5507 
 5508       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 5509       # It seems that -bexpall does not export symbols beginning with
 5510       # underscore (_), so it is better to generate a list of symbols to export.
 5511       _LT_TAGVAR(always_export_symbols, $1)=yes
 5512       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 5513 	# Warning - without using the other runtime loading flags (-brtl),
 5514 	# -berok will link without error, but may produce a broken library.
 5515 	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
 5516         # Determine the default libpath from the value encoded in an
 5517         # empty executable.
 5518         _LT_SYS_MODULE_PATH_AIX([$1])
 5519         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5520         _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
 5521       else
 5522 	if test ia64 = "$host_cpu"; then
 5523 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 5524 	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 5525 	  _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"
 5526 	else
 5527 	 # Determine the default libpath from the value encoded in an
 5528 	 # empty executable.
 5529 	 _LT_SYS_MODULE_PATH_AIX([$1])
 5530 	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 5531 	  # Warning - without using the other run time loading flags,
 5532 	  # -berok will link without error, but may produce a broken library.
 5533 	  _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 5534 	  _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 5535 	  if test yes = "$with_gnu_ld"; then
 5536 	    # We only use this code for GNU lds that support --whole-archive.
 5537 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 5538 	  else
 5539 	    # Exported symbols can be pulled into shared objects from archives
 5540 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 5541 	  fi
 5542 	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 5543 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 5544 	  # -brtl affects multiple linker settings, -berok does not and is overridden later
 5545 	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 5546 	  if test svr4 != "$with_aix_soname"; then
 5547 	    # This is similar to how AIX traditionally builds its shared libraries.
 5548 	    _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'
 5549 	  fi
 5550 	  if test aix != "$with_aix_soname"; then
 5551 	    _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'
 5552 	  else
 5553 	    # used by -dlpreopen to get the symbols
 5554 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 5555 	  fi
 5556 	  _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 5557 	fi
 5558       fi
 5559       ;;
 5560 
 5561     amigaos*)
 5562       case $host_cpu in
 5563       powerpc)
 5564             # see comment about AmigaOS4 .so support
 5565             _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 5566             _LT_TAGVAR(archive_expsym_cmds, $1)=''
 5567         ;;
 5568       m68k)
 5569             _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 5570             _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5571             _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5572         ;;
 5573       esac
 5574       ;;
 5575 
 5576     bsdi[[45]]*)
 5577       _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
 5578       ;;
 5579 
 5580     cygwin* | mingw* | pw32* | cegcc*)
 5581       # When not using gcc, we currently assume that we are using
 5582       # Microsoft Visual C++ or Intel C++ Compiler.
 5583       # hardcode_libdir_flag_spec is actually meaningless, as there is
 5584       # no search path for DLLs.
 5585       case $cc_basename in
 5586       cl* | icl*)
 5587 	# Native MSVC or ICC
 5588 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5589 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5590 	_LT_TAGVAR(always_export_symbols, $1)=yes
 5591 	_LT_TAGVAR(file_list_spec, $1)='@'
 5592 	# Tell ltmain to make .lib files, not .a files.
 5593 	libext=lib
 5594 	# Tell ltmain to make .dll files, not .so files.
 5595 	shrext_cmds=.dll
 5596 	# FIXME: Setting linknames here is a bad hack.
 5597 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 5598 	_LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 5599             cp "$export_symbols" "$output_objdir/$soname.def";
 5600             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 5601           else
 5602             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 5603           fi~
 5604           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 5605           linknames='
 5606 	# The linker will not automatically build a static lib if we build a DLL.
 5607 	# _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5608 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5609 	_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
 5610 	_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
 5611 	# Don't use ranlib
 5612 	_LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 5613 	_LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 5614           lt_tool_outputfile="@TOOL_OUTPUT@"~
 5615           case $lt_outputfile in
 5616             *.exe|*.EXE) ;;
 5617             *)
 5618               lt_outputfile=$lt_outputfile.exe
 5619               lt_tool_outputfile=$lt_tool_outputfile.exe
 5620               ;;
 5621           esac~
 5622           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 5623             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 5624             $RM "$lt_outputfile.manifest";
 5625           fi'
 5626 	;;
 5627       *)
 5628 	# Assume MSVC and ICC wrapper
 5629 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 5630 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5631 	# Tell ltmain to make .lib files, not .a files.
 5632 	libext=lib
 5633 	# Tell ltmain to make .dll files, not .so files.
 5634 	shrext_cmds=.dll
 5635 	# FIXME: Setting linknames here is a bad hack.
 5636 	_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
 5637 	# The linker will automatically build a .lib file if we build a DLL.
 5638 	_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 5639 	# FIXME: Should let the user specify the lib program.
 5640 	_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
 5641 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5642 	;;
 5643       esac
 5644       ;;
 5645 
 5646     darwin* | rhapsody*)
 5647       _LT_DARWIN_LINKER_FEATURES($1)
 5648       ;;
 5649 
 5650     dgux*)
 5651       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5652       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5653       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5654       ;;
 5655 
 5656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 5657     # support.  Future versions do this automatically, but an explicit c++rt0.o
 5658     # does not break anything, and helps significantly (at the cost of a little
 5659     # extra space).
 5660     freebsd2.2*)
 5661       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 5662       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5663       _LT_TAGVAR(hardcode_direct, $1)=yes
 5664       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5665       ;;
 5666 
 5667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 5668     freebsd2.*)
 5669       _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 5670       _LT_TAGVAR(hardcode_direct, $1)=yes
 5671       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5672       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5673       ;;
 5674 
 5675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 5676     freebsd* | dragonfly*)
 5677       _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5678       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5679       _LT_TAGVAR(hardcode_direct, $1)=yes
 5680       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5681       ;;
 5682 
 5683     hpux9*)
 5684       if test yes = "$GCC"; then
 5685 	_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'
 5686       else
 5687 	_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'
 5688       fi
 5689       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5690       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5691       _LT_TAGVAR(hardcode_direct, $1)=yes
 5692 
 5693       # hardcode_minus_L: Not really in the search PATH,
 5694       # but as the default location of the library.
 5695       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5696       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5697       ;;
 5698 
 5699     hpux10*)
 5700       if test yes,no = "$GCC,$with_gnu_ld"; then
 5701 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5702       else
 5703 	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 5704       fi
 5705       if test no = "$with_gnu_ld"; then
 5706 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5707 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5708 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5709 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5710 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5711 	# hardcode_minus_L: Not really in the search PATH,
 5712 	# but as the default location of the library.
 5713 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 5714       fi
 5715       ;;
 5716 
 5717     hpux11*)
 5718       if test yes,no = "$GCC,$with_gnu_ld"; then
 5719 	case $host_cpu in
 5720 	hppa*64*)
 5721 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5722 	  ;;
 5723 	ia64*)
 5724 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5725 	  ;;
 5726 	*)
 5727 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 5728 	  ;;
 5729 	esac
 5730       else
 5731 	case $host_cpu in
 5732 	hppa*64*)
 5733 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5734 	  ;;
 5735 	ia64*)
 5736 	  _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 5737 	  ;;
 5738 	*)
 5739 	m4_if($1, [], [
 5740 	  # Older versions of the 11.00 compiler do not understand -b yet
 5741 	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
 5742 	  _LT_LINKER_OPTION([if $CC understands -b],
 5743 	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
 5744 	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
 5745 	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
 5746 	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
 5747 	  ;;
 5748 	esac
 5749       fi
 5750       if test no = "$with_gnu_ld"; then
 5751 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 5752 	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5753 
 5754 	case $host_cpu in
 5755 	hppa*64*|ia64*)
 5756 	  _LT_TAGVAR(hardcode_direct, $1)=no
 5757 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5758 	  ;;
 5759 	*)
 5760 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 5761 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5762 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5763 
 5764 	  # hardcode_minus_L: Not really in the search PATH,
 5765 	  # but as the default location of the library.
 5766 	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5767 	  ;;
 5768 	esac
 5769       fi
 5770       ;;
 5771 
 5772     irix5* | irix6* | nonstopux*)
 5773       if test yes = "$GCC"; then
 5774 	_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'
 5775 	# Try to use the -exported_symbol ld option, if it does not
 5776 	# work, assume that -exports_file does not work either and
 5777 	# implicitly export all symbols.
 5778 	# This should be the same for all languages, so no per-tag cache variable.
 5779 	AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
 5780 	  [lt_cv_irix_exported_symbol],
 5781 	  [save_LDFLAGS=$LDFLAGS
 5782 	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
 5783 	   AC_LINK_IFELSE(
 5784 	     [AC_LANG_SOURCE(
 5785 	        [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
 5786 			      [C++], [[int foo (void) { return 0; }]],
 5787 			      [Fortran 77], [[
 5788       subroutine foo
 5789       end]],
 5790 			      [Fortran], [[
 5791       subroutine foo
 5792       end]])])],
 5793 	      [lt_cv_irix_exported_symbol=yes],
 5794 	      [lt_cv_irix_exported_symbol=no])
 5795            LDFLAGS=$save_LDFLAGS])
 5796 	if test yes = "$lt_cv_irix_exported_symbol"; then
 5797           _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'
 5798 	fi
 5799       else
 5800 	_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'
 5801 	_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'
 5802       fi
 5803       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5804       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5805       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5806       _LT_TAGVAR(inherit_rpath, $1)=yes
 5807       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5808       ;;
 5809 
 5810     linux*)
 5811       case $cc_basename in
 5812       tcc*)
 5813 	# Fabrice Bellard et al's Tiny C Compiler
 5814 	_LT_TAGVAR(ld_shlibs, $1)=yes
 5815 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5816 	;;
 5817       esac
 5818       ;;
 5819 
 5820     netbsd*)
 5821       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 5822 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 5823       else
 5824 	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 5825       fi
 5826       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5827       _LT_TAGVAR(hardcode_direct, $1)=yes
 5828       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5829       ;;
 5830 
 5831     newsos6)
 5832       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5833       _LT_TAGVAR(hardcode_direct, $1)=yes
 5834       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5835       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5836       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5837       ;;
 5838 
 5839     *nto* | *qnx*)
 5840       ;;
 5841 
 5842     openbsd* | bitrig*)
 5843       if test -f /usr/libexec/ld.so; then
 5844 	_LT_TAGVAR(hardcode_direct, $1)=yes
 5845 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5846 	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 5847 	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 5848 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5849 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
 5850 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5851 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 5852 	else
 5853 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 5854 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 5855 	fi
 5856       else
 5857 	_LT_TAGVAR(ld_shlibs, $1)=no
 5858       fi
 5859       ;;
 5860 
 5861     os2*)
 5862       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5863       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5864       _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 5865       shrext_cmds=.dll
 5866       _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5867 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5868 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5869 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5870 	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 5871 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5872 	emximp -o $lib $output_objdir/$libname.def'
 5873       _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 5874 	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 5875 	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 5876 	$ECHO EXPORTS >> $output_objdir/$libname.def~
 5877 	prefix_cmds="$SED"~
 5878 	if test EXPORTS = "`$SED 1q $export_symbols`"; then
 5879 	  prefix_cmds="$prefix_cmds -e 1d";
 5880 	fi~
 5881 	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 5882 	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 5883 	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 5884 	emximp -o $lib $output_objdir/$libname.def'
 5885       _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 5886       _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 5887       _LT_TAGVAR(file_list_spec, $1)='@'
 5888       ;;
 5889 
 5890     osf3*)
 5891       if test yes = "$GCC"; then
 5892 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5893 	_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'
 5894       else
 5895 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5896 	_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'
 5897       fi
 5898       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5899       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5900       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5901       ;;
 5902 
 5903     osf4* | osf5*)	# as osf3* with the addition of -msym flag
 5904       if test yes = "$GCC"; then
 5905 	_LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 5906 	_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'
 5907 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 5908       else
 5909 	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 5910 	_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'
 5911 	_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~
 5912           $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'
 5913 
 5914 	# Both c and cxx compiler support -rpath directly
 5915 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 5916       fi
 5917       _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
 5918       _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 5919       ;;
 5920 
 5921     solaris*)
 5922       _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
 5923       if test yes = "$GCC"; then
 5924 	wlarc='$wl'
 5925 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
 5926 	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5927           $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'
 5928       else
 5929 	case `$CC -V 2>&1` in
 5930 	*"Compilers 5.0"*)
 5931 	  wlarc=''
 5932 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5933 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5934             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 5935 	  ;;
 5936 	*)
 5937 	  wlarc='$wl'
 5938 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 5939 	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 5940             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 5941 	  ;;
 5942 	esac
 5943       fi
 5944       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 5945       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5946       case $host_os in
 5947       solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 5948       *)
 5949 	# The compiler driver will combine and reorder linker options,
 5950 	# but understands '-z linker_flag'.  GCC discards it without '$wl',
 5951 	# but is careful enough not to reorder.
 5952 	# Supported since Solaris 2.6 (maybe 2.5.1?)
 5953 	if test yes = "$GCC"; then
 5954 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 5955 	else
 5956 	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 5957 	fi
 5958 	;;
 5959       esac
 5960       _LT_TAGVAR(link_all_deplibs, $1)=yes
 5961       ;;
 5962 
 5963     sunos4*)
 5964       if test sequent = "$host_vendor"; then
 5965 	# Use $CC to link under sequent, because it throws in some extra .o
 5966 	# files that make .init and .fini sections work.
 5967 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 5968       else
 5969 	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 5970       fi
 5971       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 5972       _LT_TAGVAR(hardcode_direct, $1)=yes
 5973       _LT_TAGVAR(hardcode_minus_L, $1)=yes
 5974       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5975       ;;
 5976 
 5977     sysv4)
 5978       case $host_vendor in
 5979 	sni)
 5980 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5981 	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
 5982 	;;
 5983 	siemens)
 5984 	  ## LD is ld it makes a PLAMLIB
 5985 	  ## CC just makes a GrossModule.
 5986 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 5987 	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
 5988 	  _LT_TAGVAR(hardcode_direct, $1)=no
 5989         ;;
 5990 	motorola)
 5991 	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 5992 	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
 5993 	;;
 5994       esac
 5995       runpath_var='LD_RUN_PATH'
 5996       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 5997       ;;
 5998 
 5999     sysv4.3*)
 6000       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6001       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6002       _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
 6003       ;;
 6004 
 6005     sysv4*MP*)
 6006       if test -d /usr/nec; then
 6007 	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6008 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6009 	runpath_var=LD_RUN_PATH
 6010 	hardcode_runpath_var=yes
 6011 	_LT_TAGVAR(ld_shlibs, $1)=yes
 6012       fi
 6013       ;;
 6014 
 6015     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 6016       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6017       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6018       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6019       runpath_var='LD_RUN_PATH'
 6020 
 6021       if test yes = "$GCC"; then
 6022 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6023 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6024       else
 6025 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6026 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6027       fi
 6028       ;;
 6029 
 6030     sysv5* | sco3.2v5* | sco5v6*)
 6031       # Note: We CANNOT use -z defs as we might desire, because we do not
 6032       # link with -lc, and that would cause any symbols used from libc to
 6033       # always be unresolved, which means just about no library would
 6034       # ever link correctly.  If we're not using GNU ld we use -z text
 6035       # though, which does catch some bad symbols but isn't as heavy-handed
 6036       # as -z defs.
 6037       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 6038       _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 6039       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6040       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6041       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 6042       _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6043       _LT_TAGVAR(link_all_deplibs, $1)=yes
 6044       _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 6045       runpath_var='LD_RUN_PATH'
 6046 
 6047       if test yes = "$GCC"; then
 6048 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6049 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6050       else
 6051 	_LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6052 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 6053       fi
 6054       ;;
 6055 
 6056     uts4*)
 6057       _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 6058       _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6059       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6060       ;;
 6061 
 6062     *)
 6063       _LT_TAGVAR(ld_shlibs, $1)=no
 6064       ;;
 6065     esac
 6066 
 6067     if test sni = "$host_vendor"; then
 6068       case $host in
 6069       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 6070 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
 6071 	;;
 6072       esac
 6073     fi
 6074   fi
 6075 ])
 6076 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 6077 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 6078 
 6079 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
 6080 
 6081 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
 6082 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
 6083 _LT_DECL([], [extract_expsyms_cmds], [2],
 6084     [The commands to extract the exported symbol list from a shared archive])
 6085 
 6086 #
 6087 # Do we need to explicitly link libc?
 6088 #
 6089 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
 6090 x|xyes)
 6091   # Assume -lc should be added
 6092   _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6093 
 6094   if test yes,yes = "$GCC,$enable_shared"; then
 6095     case $_LT_TAGVAR(archive_cmds, $1) in
 6096     *'~'*)
 6097       # FIXME: we may have to deal with multi-command sequences.
 6098       ;;
 6099     '$CC '*)
 6100       # Test whether the compiler implicitly links with -lc since on some
 6101       # systems, -lgcc has to come before -lc. If gcc already passes -lc
 6102       # to ld, don't add -lc before -lgcc.
 6103       AC_CACHE_CHECK([whether -lc should be explicitly linked in],
 6104 	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
 6105 	[$RM conftest*
 6106 	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 6107 
 6108 	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
 6109 	  soname=conftest
 6110 	  lib=conftest
 6111 	  libobjs=conftest.$ac_objext
 6112 	  deplibs=
 6113 	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
 6114 	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
 6115 	  compiler_flags=-v
 6116 	  linker_flags=-v
 6117 	  verstring=
 6118 	  output_objdir=.
 6119 	  libname=conftest
 6120 	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
 6121 	  _LT_TAGVAR(allow_undefined_flag, $1)=
 6122 	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
 6123 	  then
 6124 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6125 	  else
 6126 	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6127 	  fi
 6128 	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
 6129 	else
 6130 	  cat conftest.err 1>&5
 6131 	fi
 6132 	$RM conftest*
 6133 	])
 6134       _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
 6135       ;;
 6136     esac
 6137   fi
 6138   ;;
 6139 esac
 6140 
 6141 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
 6142     [Whether or not to add -lc for building shared libraries])
 6143 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
 6144     [enable_shared_with_static_runtimes], [0],
 6145     [Whether or not to disallow shared libs when runtime libs are static])
 6146 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
 6147     [Compiler flag to allow reflexive dlopens])
 6148 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
 6149     [Compiler flag to generate shared objects directly from archives])
 6150 _LT_TAGDECL([], [compiler_needs_object], [1],
 6151     [Whether the compiler copes with passing no objects directly])
 6152 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
 6153     [Create an old-style archive from a shared archive])
 6154 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
 6155     [Create a temporary old-style archive to link instead of a shared archive])
 6156 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
 6157 _LT_TAGDECL([], [archive_expsym_cmds], [2])
 6158 _LT_TAGDECL([], [module_cmds], [2],
 6159     [Commands used to build a loadable module if different from building
 6160     a shared archive.])
 6161 _LT_TAGDECL([], [module_expsym_cmds], [2])
 6162 _LT_TAGDECL([], [with_gnu_ld], [1],
 6163     [Whether we are building with GNU ld or not])
 6164 _LT_TAGDECL([], [allow_undefined_flag], [1],
 6165     [Flag that allows shared libraries with undefined symbols to be built])
 6166 _LT_TAGDECL([], [no_undefined_flag], [1],
 6167     [Flag that enforces no undefined symbols])
 6168 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
 6169     [Flag to hardcode $libdir into a binary during linking.
 6170     This must work even if $libdir does not exist])
 6171 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
 6172     [Whether we need a single "-rpath" flag with a separated argument])
 6173 _LT_TAGDECL([], [hardcode_direct], [0],
 6174     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6175     DIR into the resulting binary])
 6176 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
 6177     [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
 6178     DIR into the resulting binary and the resulting library dependency is
 6179     "absolute", i.e impossible to change by setting $shlibpath_var if the
 6180     library is relocated])
 6181 _LT_TAGDECL([], [hardcode_minus_L], [0],
 6182     [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 6183     into the resulting binary])
 6184 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
 6185     [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 6186     into the resulting binary])
 6187 _LT_TAGDECL([], [hardcode_automatic], [0],
 6188     [Set to "yes" if building a shared library automatically hardcodes DIR
 6189     into the library and all subsequent libraries and executables linked
 6190     against it])
 6191 _LT_TAGDECL([], [inherit_rpath], [0],
 6192     [Set to yes if linker adds runtime paths of dependent libraries
 6193     to runtime path list])
 6194 _LT_TAGDECL([], [link_all_deplibs], [0],
 6195     [Whether libtool must link a program against all its dependency libraries])
 6196 _LT_TAGDECL([], [always_export_symbols], [0],
 6197     [Set to "yes" if exported symbols are required])
 6198 _LT_TAGDECL([], [export_symbols_cmds], [2],
 6199     [The commands to list exported symbols])
 6200 _LT_TAGDECL([], [exclude_expsyms], [1],
 6201     [Symbols that should not be listed in the preloaded symbols])
 6202 _LT_TAGDECL([], [include_expsyms], [1],
 6203     [Symbols that must always be exported])
 6204 _LT_TAGDECL([], [prelink_cmds], [2],
 6205     [Commands necessary for linking programs (against libraries) with templates])
 6206 _LT_TAGDECL([], [postlink_cmds], [2],
 6207     [Commands necessary for finishing linking programs])
 6208 _LT_TAGDECL([], [file_list_spec], [1],
 6209     [Specify filename containing input files])
 6210 dnl FIXME: Not yet implemented
 6211 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
 6212 dnl    [Compiler flag to generate thread safe objects])
 6213 ])# _LT_LINKER_SHLIBS
 6214 
 6215 
 6216 # _LT_LANG_C_CONFIG([TAG])
 6217 # ------------------------
 6218 # Ensure that the configuration variables for a C compiler are suitably
 6219 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6220 # the compiler configuration to 'libtool'.
 6221 m4_defun([_LT_LANG_C_CONFIG],
 6222 [m4_require([_LT_DECL_EGREP])dnl
 6223 lt_save_CC=$CC
 6224 AC_LANG_PUSH(C)
 6225 
 6226 # Source file extension for C test sources.
 6227 ac_ext=c
 6228 
 6229 # Object file extension for compiled C test sources.
 6230 objext=o
 6231 _LT_TAGVAR(objext, $1)=$objext
 6232 
 6233 # Code to be used in simple compile tests
 6234 lt_simple_compile_test_code="int some_variable = 0;"
 6235 
 6236 # Code to be used in simple link tests
 6237 lt_simple_link_test_code='int main(){return(0);}'
 6238 
 6239 _LT_TAG_COMPILER
 6240 # Save the default compiler, since it gets overwritten when the other
 6241 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 6242 compiler_DEFAULT=$CC
 6243 
 6244 # save warnings/boilerplate of simple test code
 6245 _LT_COMPILER_BOILERPLATE
 6246 _LT_LINKER_BOILERPLATE
 6247 
 6248 ## CAVEAT EMPTOR:
 6249 ## There is no encapsulation within the following macros, do not change
 6250 ## the running order or otherwise move them around unless you know exactly
 6251 ## what you are doing...
 6252 if test -n "$compiler"; then
 6253   _LT_COMPILER_NO_RTTI($1)
 6254   _LT_COMPILER_PIC($1)
 6255   _LT_COMPILER_C_O($1)
 6256   _LT_COMPILER_FILE_LOCKS($1)
 6257   _LT_LINKER_SHLIBS($1)
 6258   _LT_SYS_DYNAMIC_LINKER($1)
 6259   _LT_LINKER_HARDCODE_LIBPATH($1)
 6260   LT_SYS_DLOPEN_SELF
 6261   _LT_CMD_STRIPLIB
 6262 
 6263   # Report what library types will actually be built
 6264   AC_MSG_CHECKING([if libtool supports shared libraries])
 6265   AC_MSG_RESULT([$can_build_shared])
 6266 
 6267   AC_MSG_CHECKING([whether to build shared libraries])
 6268   test no = "$can_build_shared" && enable_shared=no
 6269 
 6270   # On AIX, shared libraries and static libraries use the same namespace, and
 6271   # are all built from PIC.
 6272   case $host_os in
 6273   aix3*)
 6274     test yes = "$enable_shared" && enable_static=no
 6275     if test -n "$RANLIB"; then
 6276       archive_cmds="$archive_cmds~\$RANLIB \$lib"
 6277       postinstall_cmds='$RANLIB $lib'
 6278     fi
 6279     ;;
 6280 
 6281   aix[[4-9]]*)
 6282     if test ia64 != "$host_cpu"; then
 6283       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 6284       yes,aix,yes) ;;			# shared object as lib.so file only
 6285       yes,svr4,*) ;;			# shared object as lib.so archive member only
 6286       yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 6287       esac
 6288     fi
 6289     ;;
 6290   esac
 6291   AC_MSG_RESULT([$enable_shared])
 6292 
 6293   AC_MSG_CHECKING([whether to build static libraries])
 6294   # Make sure either enable_shared or enable_static is yes.
 6295   test yes = "$enable_shared" || enable_static=yes
 6296   AC_MSG_RESULT([$enable_static])
 6297 
 6298   _LT_CONFIG($1)
 6299 fi
 6300 AC_LANG_POP
 6301 CC=$lt_save_CC
 6302 ])# _LT_LANG_C_CONFIG
 6303 
 6304 
 6305 # _LT_LANG_CXX_CONFIG([TAG])
 6306 # --------------------------
 6307 # Ensure that the configuration variables for a C++ compiler are suitably
 6308 # defined.  These variables are subsequently used by _LT_CONFIG to write
 6309 # the compiler configuration to 'libtool'.
 6310 m4_defun([_LT_LANG_CXX_CONFIG],
 6311 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 6312 m4_require([_LT_DECL_EGREP])dnl
 6313 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
 6314 if test -n "$CXX" && ( test no != "$CXX" &&
 6315     ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
 6316     (test g++ != "$CXX"))); then
 6317   AC_PROG_CXXCPP
 6318 else
 6319   _lt_caught_CXX_error=yes
 6320 fi
 6321 
 6322 AC_LANG_PUSH(C++)
 6323 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6324 _LT_TAGVAR(allow_undefined_flag, $1)=
 6325 _LT_TAGVAR(always_export_symbols, $1)=no
 6326 _LT_TAGVAR(archive_expsym_cmds, $1)=
 6327 _LT_TAGVAR(compiler_needs_object, $1)=no
 6328 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 6329 _LT_TAGVAR(hardcode_direct, $1)=no
 6330 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6331 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 6332 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6333 _LT_TAGVAR(hardcode_minus_L, $1)=no
 6334 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
 6335 _LT_TAGVAR(hardcode_automatic, $1)=no
 6336 _LT_TAGVAR(inherit_rpath, $1)=no
 6337 _LT_TAGVAR(module_cmds, $1)=
 6338 _LT_TAGVAR(module_expsym_cmds, $1)=
 6339 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 6340 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 6341 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 6342 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 6343 _LT_TAGVAR(no_undefined_flag, $1)=
 6344 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6345 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 6346 
 6347 # Source file extension for C++ test sources.
 6348 ac_ext=cpp
 6349 
 6350 # Object file extension for compiled C++ test sources.
 6351 objext=o
 6352 _LT_TAGVAR(objext, $1)=$objext
 6353 
 6354 # No sense in running all these tests if we already determined that
 6355 # the CXX compiler isn't working.  Some variables (like enable_shared)
 6356 # are currently assumed to apply to all compilers on this platform,
 6357 # and will be corrupted by setting them based on a non-working compiler.
 6358 if test yes != "$_lt_caught_CXX_error"; then
 6359   # Code to be used in simple compile tests
 6360   lt_simple_compile_test_code="int some_variable = 0;"
 6361 
 6362   # Code to be used in simple link tests
 6363   lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
 6364 
 6365   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 6366   _LT_TAG_COMPILER
 6367 
 6368   # save warnings/boilerplate of simple test code
 6369   _LT_COMPILER_BOILERPLATE
 6370   _LT_LINKER_BOILERPLATE
 6371 
 6372   # Allow CC to be a program name with arguments.
 6373   lt_save_CC=$CC
 6374   lt_save_CFLAGS=$CFLAGS
 6375   lt_save_LD=$LD
 6376   lt_save_GCC=$GCC
 6377   GCC=$GXX
 6378   lt_save_with_gnu_ld=$with_gnu_ld
 6379   lt_save_path_LD=$lt_cv_path_LD
 6380   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 6381     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 6382   else
 6383     $as_unset lt_cv_prog_gnu_ld
 6384   fi
 6385   if test -n "${lt_cv_path_LDCXX+set}"; then
 6386     lt_cv_path_LD=$lt_cv_path_LDCXX
 6387   else
 6388     $as_unset lt_cv_path_LD
 6389   fi
 6390   test -z "${LDCXX+set}" || LD=$LDCXX
 6391   CC=${CXX-"c++"}
 6392   CFLAGS=$CXXFLAGS
 6393   compiler=$CC
 6394   _LT_TAGVAR(compiler, $1)=$CC
 6395   _LT_CC_BASENAME([$compiler])
 6396 
 6397   if test -n "$compiler"; then
 6398     # We don't want -fno-exception when compiling C++ code, so set the
 6399     # no_builtin_flag separately
 6400     if test yes = "$GXX"; then
 6401       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
 6402     else
 6403       _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
 6404     fi
 6405 
 6406     if test yes = "$GXX"; then
 6407       # Set up default GNU C++ configuration
 6408 
 6409       LT_PATH_LD
 6410 
 6411       # Check if GNU C++ uses GNU ld as the underlying linker, since the
 6412       # archiving commands below assume that GNU ld is being used.
 6413       if test yes = "$with_gnu_ld"; then
 6414         _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 6415         _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'
 6416 
 6417         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 6418         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 6419 
 6420         # If archive_cmds runs LD, not CC, wlarc should be empty
 6421         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 6422         #     investigate it a little bit more. (MM)
 6423         wlarc='$wl'
 6424 
 6425         # ancient GNU ld didn't support --whole-archive et. al.
 6426         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 6427 	  $GREP 'no-whole-archive' > /dev/null; then
 6428           _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 6429         else
 6430           _LT_TAGVAR(whole_archive_flag_spec, $1)=
 6431         fi
 6432       else
 6433         with_gnu_ld=no
 6434         wlarc=
 6435 
 6436         # A generic and very simple default shared library creation
 6437         # command for GNU C++ for the case where it uses the native
 6438         # linker, instead of GNU ld.  If possible, this setting should
 6439         # overridden to take advantage of the native linker features on
 6440         # the platform it is being used on.
 6441         _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 6442       fi
 6443 
 6444       # Commands to make compiler produce verbose output that lists
 6445       # what "hidden" libraries, object files and flags are used when
 6446       # linking a shared library.
 6447       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 6448 
 6449     else
 6450       GXX=no
 6451       with_gnu_ld=no
 6452       wlarc=
 6453     fi
 6454 
 6455     # PORTME: fill in a description of your system's C++ link characteristics
 6456     AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
 6457     _LT_TAGVAR(ld_shlibs, $1)=yes
 6458     case $host_os in
 6459       aix3*)
 6460         # FIXME: insert proper C++ library support
 6461         _LT_TAGVAR(ld_shlibs, $1)=no
 6462         ;;
 6463       aix[[4-9]]*)
 6464         if test ia64 = "$host_cpu"; then
 6465           # On IA64, the linker does run time linking by default, so we don't
 6466           # have to do anything special.
 6467           aix_use_runtimelinking=no
 6468           exp_sym_flag='-Bexport'
 6469           no_entry_flag=
 6470         else
 6471           aix_use_runtimelinking=no
 6472 
 6473           # Test if we are trying to use run time linking or normal
 6474           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 6475           # have runtime linking enabled, and use it for executables.
 6476           # For shared libraries, we enable/disable runtime linking
 6477           # depending on the kind of the shared library created -
 6478           # when "with_aix_soname,aix_use_runtimelinking" is:
 6479           # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
 6480           # "aix,yes"  lib.so          shared, rtl:yes, for executables
 6481           #            lib.a           static archive
 6482           # "both,no"  lib.so.V(shr.o) shared, rtl:yes
 6483           #            lib.a(lib.so.V) shared, rtl:no,  for executables
 6484           # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
 6485           #            lib.a(lib.so.V) shared, rtl:no
 6486           # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
 6487           #            lib.a           static archive
 6488           case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
 6489 	    for ld_flag in $LDFLAGS; do
 6490 	      case $ld_flag in
 6491 	      *-brtl*)
 6492 	        aix_use_runtimelinking=yes
 6493 	        break
 6494 	        ;;
 6495 	      esac
 6496 	    done
 6497 	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
 6498 	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
 6499 	      # so we don't have lib.a shared libs to link our executables.
 6500 	      # We have to force runtime linking in this case.
 6501 	      aix_use_runtimelinking=yes
 6502 	      LDFLAGS="$LDFLAGS -Wl,-brtl"
 6503 	    fi
 6504 	    ;;
 6505           esac
 6506 
 6507           exp_sym_flag='-bexport'
 6508           no_entry_flag='-bnoentry'
 6509         fi
 6510 
 6511         # When large executables or shared objects are built, AIX ld can
 6512         # have problems creating the table of contents.  If linking a library
 6513         # or program results in "error TOC overflow" add -mminimal-toc to
 6514         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 6515         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 6516 
 6517         _LT_TAGVAR(archive_cmds, $1)=''
 6518         _LT_TAGVAR(hardcode_direct, $1)=yes
 6519         _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6520         _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 6521         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6522         _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
 6523         case $with_aix_soname,$aix_use_runtimelinking in
 6524         aix,*) ;;	# no import file
 6525         svr4,* | *,yes) # use import file
 6526           # The Import File defines what to hardcode.
 6527           _LT_TAGVAR(hardcode_direct, $1)=no
 6528           _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 6529           ;;
 6530         esac
 6531 
 6532         if test yes = "$GXX"; then
 6533           case $host_os in aix4.[[012]]|aix4.[[012]].*)
 6534           # We only want to do this on AIX 4.2 and lower, the check
 6535           # below for broken collect2 doesn't work under 4.3+
 6536 	  collect2name=`$CC -print-prog-name=collect2`
 6537 	  if test -f "$collect2name" &&
 6538 	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 6539 	  then
 6540 	    # We have reworked collect2
 6541 	    :
 6542 	  else
 6543 	    # We have old collect2
 6544 	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
 6545 	    # It fails to find uninstalled libraries when the uninstalled
 6546 	    # path is not listed in the libpath.  Setting hardcode_minus_L
 6547 	    # to unsupported forces relinking
 6548 	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
 6549 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6550 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
 6551 	  fi
 6552           esac
 6553           shared_flag='-shared'
 6554 	  if test yes = "$aix_use_runtimelinking"; then
 6555 	    shared_flag=$shared_flag' $wl-G'
 6556 	  fi
 6557 	  # Need to ensure runtime linking is disabled for the traditional
 6558 	  # shared library, or the linker may eventually find shared libraries
 6559 	  # /with/ Import File - we do not want to mix them.
 6560 	  shared_flag_aix='-shared'
 6561 	  shared_flag_svr4='-shared $wl-G'
 6562         else
 6563           # not using gcc
 6564           if test ia64 = "$host_cpu"; then
 6565 	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 6566 	  # chokes on -Wl,-G. The following line is correct:
 6567 	  shared_flag='-G'
 6568           else
 6569 	    if test yes = "$aix_use_runtimelinking"; then
 6570 	      shared_flag='$wl-G'
 6571 	    else
 6572 	      shared_flag='$wl-bM:SRE'
 6573 	    fi
 6574 	    shared_flag_aix='$wl-bM:SRE'
 6575 	    shared_flag_svr4='$wl-G'
 6576           fi
 6577         fi
 6578 
 6579         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
 6580         # It seems that -bexpall does not export symbols beginning with
 6581         # underscore (_), so it is better to generate a list of symbols to
 6582 	# export.
 6583         _LT_TAGVAR(always_export_symbols, $1)=yes
 6584 	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
 6585           # Warning - without using the other runtime loading flags (-brtl),
 6586           # -berok will link without error, but may produce a broken library.
 6587           # The "-G" linker flag allows undefined symbols.
 6588           _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
 6589           # Determine the default libpath from the value encoded in an empty
 6590           # executable.
 6591           _LT_SYS_MODULE_PATH_AIX([$1])
 6592           _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6593 
 6594           _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
 6595         else
 6596           if test ia64 = "$host_cpu"; then
 6597 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
 6598 	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
 6599 	    _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"
 6600           else
 6601 	    # Determine the default libpath from the value encoded in an
 6602 	    # empty executable.
 6603 	    _LT_SYS_MODULE_PATH_AIX([$1])
 6604 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
 6605 	    # Warning - without using the other run time loading flags,
 6606 	    # -berok will link without error, but may produce a broken library.
 6607 	    _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
 6608 	    _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
 6609 	    if test yes = "$with_gnu_ld"; then
 6610 	      # We only use this code for GNU lds that support --whole-archive.
 6611 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 6612 	    else
 6613 	      # Exported symbols can be pulled into shared objects from archives
 6614 	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
 6615 	    fi
 6616 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
 6617 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
 6618 	    # -brtl affects multiple linker settings, -berok does not and is overridden later
 6619 	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
 6620 	    if test svr4 != "$with_aix_soname"; then
 6621 	      # This is similar to how AIX traditionally builds its shared
 6622 	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
 6623 	      _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'
 6624 	    fi
 6625 	    if test aix != "$with_aix_soname"; then
 6626 	      _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'
 6627 	    else
 6628 	      # used by -dlpreopen to get the symbols
 6629 	      _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
 6630 	    fi
 6631 	    _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
 6632           fi
 6633         fi
 6634         ;;
 6635 
 6636       beos*)
 6637 	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 6638 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6639 	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 6640 	  # support --undefined.  This deserves some investigation.  FIXME
 6641 	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6642 	else
 6643 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6644 	fi
 6645 	;;
 6646 
 6647       chorus*)
 6648         case $cc_basename in
 6649           *)
 6650 	  # FIXME: insert proper C++ library support
 6651 	  _LT_TAGVAR(ld_shlibs, $1)=no
 6652 	  ;;
 6653         esac
 6654         ;;
 6655 
 6656       cygwin* | mingw* | pw32* | cegcc*)
 6657 	case $GXX,$cc_basename in
 6658 	,cl* | no,cl* | ,icl* | no,icl*)
 6659 	  # Native MSVC or ICC
 6660 	  # hardcode_libdir_flag_spec is actually meaningless, as there is
 6661 	  # no search path for DLLs.
 6662 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
 6663 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6664 	  _LT_TAGVAR(always_export_symbols, $1)=yes
 6665 	  _LT_TAGVAR(file_list_spec, $1)='@'
 6666 	  # Tell ltmain to make .lib files, not .a files.
 6667 	  libext=lib
 6668 	  # Tell ltmain to make .dll files, not .so files.
 6669 	  shrext_cmds=.dll
 6670 	  # FIXME: Setting linknames here is a bad hack.
 6671 	  _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
 6672 	  _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6673               cp "$export_symbols" "$output_objdir/$soname.def";
 6674               echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
 6675             else
 6676               $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
 6677             fi~
 6678             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
 6679             linknames='
 6680 	  # The linker will not automatically build a static lib if we build a DLL.
 6681 	  # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
 6682 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6683 	  # Don't use ranlib
 6684 	  _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
 6685 	  _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
 6686             lt_tool_outputfile="@TOOL_OUTPUT@"~
 6687             case $lt_outputfile in
 6688               *.exe|*.EXE) ;;
 6689               *)
 6690                 lt_outputfile=$lt_outputfile.exe
 6691                 lt_tool_outputfile=$lt_tool_outputfile.exe
 6692                 ;;
 6693             esac~
 6694             func_to_tool_file "$lt_outputfile"~
 6695             if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
 6696               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
 6697               $RM "$lt_outputfile.manifest";
 6698             fi'
 6699 	  ;;
 6700 	*)
 6701 	  # g++
 6702 	  # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
 6703 	  # as there is no search path for DLLs.
 6704 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6705 	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
 6706 	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6707 	  _LT_TAGVAR(always_export_symbols, $1)=no
 6708 	  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6709 
 6710 	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 6711 	    _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'
 6712 	    # If the export-symbols file already is a .def file, use it as
 6713 	    # is; otherwise, prepend EXPORTS...
 6714 	    _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
 6715               cp $export_symbols $output_objdir/$soname.def;
 6716             else
 6717               echo EXPORTS > $output_objdir/$soname.def;
 6718               cat $export_symbols >> $output_objdir/$soname.def;
 6719             fi~
 6720             $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'
 6721 	  else
 6722 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6723 	  fi
 6724 	  ;;
 6725 	esac
 6726 	;;
 6727       darwin* | rhapsody*)
 6728         _LT_DARWIN_LINKER_FEATURES($1)
 6729 	;;
 6730 
 6731       os2*)
 6732 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
 6733 	_LT_TAGVAR(hardcode_minus_L, $1)=yes
 6734 	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
 6735 	shrext_cmds=.dll
 6736 	_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6737 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6738 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6739 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6740 	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
 6741 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6742 	  emximp -o $lib $output_objdir/$libname.def'
 6743 	_LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
 6744 	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
 6745 	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
 6746 	  $ECHO EXPORTS >> $output_objdir/$libname.def~
 6747 	  prefix_cmds="$SED"~
 6748 	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
 6749 	    prefix_cmds="$prefix_cmds -e 1d";
 6750 	  fi~
 6751 	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
 6752 	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
 6753 	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
 6754 	  emximp -o $lib $output_objdir/$libname.def'
 6755 	_LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
 6756 	_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
 6757 	_LT_TAGVAR(file_list_spec, $1)='@'
 6758 	;;
 6759 
 6760       dgux*)
 6761         case $cc_basename in
 6762           ec++*)
 6763 	    # FIXME: insert proper C++ library support
 6764 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6765 	    ;;
 6766           ghcx*)
 6767 	    # Green Hills C++ Compiler
 6768 	    # FIXME: insert proper C++ library support
 6769 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6770 	    ;;
 6771           *)
 6772 	    # FIXME: insert proper C++ library support
 6773 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6774 	    ;;
 6775         esac
 6776         ;;
 6777 
 6778       freebsd2.*)
 6779         # C++ shared libraries reported to be fairly broken before
 6780 	# switch to ELF
 6781         _LT_TAGVAR(ld_shlibs, $1)=no
 6782         ;;
 6783 
 6784       freebsd-elf*)
 6785         _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 6786         ;;
 6787 
 6788       freebsd* | dragonfly*)
 6789         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 6790         # conventions
 6791         _LT_TAGVAR(ld_shlibs, $1)=yes
 6792         ;;
 6793 
 6794       haiku*)
 6795         _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6796         _LT_TAGVAR(link_all_deplibs, $1)=yes
 6797         ;;
 6798 
 6799       hpux9*)
 6800         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6801         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6802         _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6803         _LT_TAGVAR(hardcode_direct, $1)=yes
 6804         _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6805 				             # but as the default
 6806 				             # location of the library.
 6807 
 6808         case $cc_basename in
 6809           CC*)
 6810             # FIXME: insert proper C++ library support
 6811             _LT_TAGVAR(ld_shlibs, $1)=no
 6812             ;;
 6813           aCC*)
 6814             _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'
 6815             # Commands to make compiler produce verbose output that lists
 6816             # what "hidden" libraries, object files and flags are used when
 6817             # linking a shared library.
 6818             #
 6819             # There doesn't appear to be a way to prevent this compiler from
 6820             # explicitly linking system object files so we need to strip them
 6821             # from the output so that they don't get included in the library
 6822             # dependencies.
 6823             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"'
 6824             ;;
 6825           *)
 6826             if test yes = "$GXX"; then
 6827               _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'
 6828             else
 6829               # FIXME: insert proper C++ library support
 6830               _LT_TAGVAR(ld_shlibs, $1)=no
 6831             fi
 6832             ;;
 6833         esac
 6834         ;;
 6835 
 6836       hpux10*|hpux11*)
 6837         if test no = "$with_gnu_ld"; then
 6838 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
 6839 	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6840 
 6841           case $host_cpu in
 6842             hppa*64*|ia64*)
 6843               ;;
 6844             *)
 6845 	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6846               ;;
 6847           esac
 6848         fi
 6849         case $host_cpu in
 6850           hppa*64*|ia64*)
 6851             _LT_TAGVAR(hardcode_direct, $1)=no
 6852             _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6853             ;;
 6854           *)
 6855             _LT_TAGVAR(hardcode_direct, $1)=yes
 6856             _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 6857             _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
 6858 					         # but as the default
 6859 					         # location of the library.
 6860             ;;
 6861         esac
 6862 
 6863         case $cc_basename in
 6864           CC*)
 6865 	    # FIXME: insert proper C++ library support
 6866 	    _LT_TAGVAR(ld_shlibs, $1)=no
 6867 	    ;;
 6868           aCC*)
 6869 	    case $host_cpu in
 6870 	      hppa*64*)
 6871 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6872 	        ;;
 6873 	      ia64*)
 6874 	        _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6875 	        ;;
 6876 	      *)
 6877 	        _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'
 6878 	        ;;
 6879 	    esac
 6880 	    # Commands to make compiler produce verbose output that lists
 6881 	    # what "hidden" libraries, object files and flags are used when
 6882 	    # linking a shared library.
 6883 	    #
 6884 	    # There doesn't appear to be a way to prevent this compiler from
 6885 	    # explicitly linking system object files so we need to strip them
 6886 	    # from the output so that they don't get included in the library
 6887 	    # dependencies.
 6888 	    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"'
 6889 	    ;;
 6890           *)
 6891 	    if test yes = "$GXX"; then
 6892 	      if test no = "$with_gnu_ld"; then
 6893 	        case $host_cpu in
 6894 	          hppa*64*)
 6895 	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 6896 	            ;;
 6897 	          ia64*)
 6898 	            _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'
 6899 	            ;;
 6900 	          *)
 6901 	            _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'
 6902 	            ;;
 6903 	        esac
 6904 	      fi
 6905 	    else
 6906 	      # FIXME: insert proper C++ library support
 6907 	      _LT_TAGVAR(ld_shlibs, $1)=no
 6908 	    fi
 6909 	    ;;
 6910         esac
 6911         ;;
 6912 
 6913       interix[[3-9]]*)
 6914 	_LT_TAGVAR(hardcode_direct, $1)=no
 6915 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 6916 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 6917 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 6918 	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 6919 	# Instead, shared libraries are loaded at an image base (0x10000000 by
 6920 	# default) and relocated if they conflict, which is a slow very memory
 6921 	# consuming and fragmenting process.  To avoid this, we pick a random,
 6922 	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 6923 	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 6924 	_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'
 6925 	_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'
 6926 	;;
 6927       irix5* | irix6*)
 6928         case $cc_basename in
 6929           CC*)
 6930 	    # SGI C++
 6931 	    _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'
 6932 
 6933 	    # Archives containing C++ object files must be created using
 6934 	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 6935 	    # necessary to make sure instantiated templates are included
 6936 	    # in the archive.
 6937 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
 6938 	    ;;
 6939           *)
 6940 	    if test yes = "$GXX"; then
 6941 	      if test no = "$with_gnu_ld"; then
 6942 	        _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'
 6943 	      else
 6944 	        _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'
 6945 	      fi
 6946 	    fi
 6947 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 6948 	    ;;
 6949         esac
 6950         _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 6951         _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 6952         _LT_TAGVAR(inherit_rpath, $1)=yes
 6953         ;;
 6954 
 6955       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
 6956         case $cc_basename in
 6957           KCC*)
 6958 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 6959 
 6960 	    # KCC will only create a shared library if the output file
 6961 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 6962 	    # to its proper name (with version) after linking.
 6963 	    _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'
 6964 	    _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'
 6965 	    # Commands to make compiler produce verbose output that lists
 6966 	    # what "hidden" libraries, object files and flags are used when
 6967 	    # linking a shared library.
 6968 	    #
 6969 	    # There doesn't appear to be a way to prevent this compiler from
 6970 	    # explicitly linking system object files so we need to strip them
 6971 	    # from the output so that they don't get included in the library
 6972 	    # dependencies.
 6973 	    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"'
 6974 
 6975 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 6976 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 6977 
 6978 	    # Archives containing C++ object files must be created using
 6979 	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 6980 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
 6981 	    ;;
 6982 	  icpc* | ecpc* )
 6983 	    # Intel C++
 6984 	    with_gnu_ld=yes
 6985 	    # version 8.0 and above of icpc choke on multiply defined symbols
 6986 	    # if we add $predep_objects and $postdep_objects, however 7.1 and
 6987 	    # earlier do not add the objects themselves.
 6988 	    case `$CC -V 2>&1` in
 6989 	      *"Version 7."*)
 6990 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 6991 		_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'
 6992 		;;
 6993 	      *)  # Version 8.0 or newer
 6994 	        tmp_idyn=
 6995 	        case $host_cpu in
 6996 		  ia64*) tmp_idyn=' -i_dynamic';;
 6997 		esac
 6998 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 6999 		_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'
 7000 		;;
 7001 	    esac
 7002 	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7003 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7004 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7005 	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
 7006 	    ;;
 7007           pgCC* | pgcpp*)
 7008             # Portland Group C++ compiler
 7009 	    case `$CC -V` in
 7010 	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
 7011 	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
 7012                rm -rf $tpldir~
 7013                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 7014                compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
 7015 	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
 7016                 rm -rf $tpldir~
 7017                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 7018                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
 7019                 $RANLIB $oldlib'
 7020 	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
 7021                 rm -rf $tpldir~
 7022                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7023                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7024 	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
 7025                 rm -rf $tpldir~
 7026                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 7027                 $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'
 7028 	      ;;
 7029 	    *) # Version 6 and above use weak symbols
 7030 	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7031 	      _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'
 7032 	      ;;
 7033 	    esac
 7034 
 7035 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
 7036 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7037 	    _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'
 7038             ;;
 7039 	  cxx*)
 7040 	    # Compaq C++
 7041 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
 7042 	    _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'
 7043 
 7044 	    runpath_var=LD_RUN_PATH
 7045 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7046 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7047 
 7048 	    # Commands to make compiler produce verbose output that lists
 7049 	    # what "hidden" libraries, object files and flags are used when
 7050 	    # linking a shared library.
 7051 	    #
 7052 	    # There doesn't appear to be a way to prevent this compiler from
 7053 	    # explicitly linking system object files so we need to strip them
 7054 	    # from the output so that they don't get included in the library
 7055 	    # dependencies.
 7056 	    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'
 7057 	    ;;
 7058 	  xl* | mpixl* | bgxl*)
 7059 	    # IBM XL 8.0 on PPC, with GNU ld
 7060 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7061 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
 7062 	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
 7063 	    if test yes = "$supports_anon_versioning"; then
 7064 	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
 7065                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 7066                 echo "local: *; };" >> $output_objdir/$libname.ver~
 7067                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
 7068 	    fi
 7069 	    ;;
 7070 	  *)
 7071 	    case `$CC -V 2>&1 | sed 5q` in
 7072 	    *Sun\ C*)
 7073 	      # Sun C++ 5.9
 7074 	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7075 	      _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7076 	      _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'
 7077 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7078 	      _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'
 7079 	      _LT_TAGVAR(compiler_needs_object, $1)=yes
 7080 
 7081 	      # Not sure whether something based on
 7082 	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 7083 	      # would be better.
 7084 	      output_verbose_link_cmd='func_echo_all'
 7085 
 7086 	      # Archives containing C++ object files must be created using
 7087 	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7088 	      # necessary to make sure instantiated templates are included
 7089 	      # in the archive.
 7090 	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7091 	      ;;
 7092 	    esac
 7093 	    ;;
 7094 	esac
 7095 	;;
 7096 
 7097       lynxos*)
 7098         # FIXME: insert proper C++ library support
 7099 	_LT_TAGVAR(ld_shlibs, $1)=no
 7100 	;;
 7101 
 7102       m88k*)
 7103         # FIXME: insert proper C++ library support
 7104         _LT_TAGVAR(ld_shlibs, $1)=no
 7105 	;;
 7106 
 7107       mvs*)
 7108         case $cc_basename in
 7109           cxx*)
 7110 	    # FIXME: insert proper C++ library support
 7111 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7112 	    ;;
 7113 	  *)
 7114 	    # FIXME: insert proper C++ library support
 7115 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7116 	    ;;
 7117 	esac
 7118 	;;
 7119 
 7120       netbsd*)
 7121         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 7122 	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 7123 	  wlarc=
 7124 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7125 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7126 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7127 	fi
 7128 	# Workaround some broken pre-1.5 toolchains
 7129 	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 7130 	;;
 7131 
 7132       *nto* | *qnx*)
 7133         _LT_TAGVAR(ld_shlibs, $1)=yes
 7134 	;;
 7135 
 7136       openbsd* | bitrig*)
 7137 	if test -f /usr/libexec/ld.so; then
 7138 	  _LT_TAGVAR(hardcode_direct, $1)=yes
 7139 	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7140 	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
 7141 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 7142 	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7143 	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
 7144 	    _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'
 7145 	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
 7146 	    _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
 7147 	  fi
 7148 	  output_verbose_link_cmd=func_echo_all
 7149 	else
 7150 	  _LT_TAGVAR(ld_shlibs, $1)=no
 7151 	fi
 7152 	;;
 7153 
 7154       osf3* | osf4* | osf5*)
 7155         case $cc_basename in
 7156           KCC*)
 7157 	    # Kuck and Associates, Inc. (KAI) C++ Compiler
 7158 
 7159 	    # KCC will only create a shared library if the output file
 7160 	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
 7161 	    # to its proper name (with version) after linking.
 7162 	    _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'
 7163 
 7164 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
 7165 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7166 
 7167 	    # Archives containing C++ object files must be created using
 7168 	    # the KAI C++ compiler.
 7169 	    case $host in
 7170 	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
 7171 	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
 7172 	    esac
 7173 	    ;;
 7174           RCC*)
 7175 	    # Rational C++ 2.4.1
 7176 	    # FIXME: insert proper C++ library support
 7177 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7178 	    ;;
 7179           cxx*)
 7180 	    case $host in
 7181 	      osf3*)
 7182 	        _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7183 	        _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'
 7184 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7185 		;;
 7186 	      *)
 7187 	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
 7188 	        _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'
 7189 	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 7190                   echo "-hidden">> $lib.exp~
 7191                   $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~
 7192                   $RM $lib.exp'
 7193 	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
 7194 		;;
 7195 	    esac
 7196 
 7197 	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7198 
 7199 	    # Commands to make compiler produce verbose output that lists
 7200 	    # what "hidden" libraries, object files and flags are used when
 7201 	    # linking a shared library.
 7202 	    #
 7203 	    # There doesn't appear to be a way to prevent this compiler from
 7204 	    # explicitly linking system object files so we need to strip them
 7205 	    # from the output so that they don't get included in the library
 7206 	    # dependencies.
 7207 	    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"'
 7208 	    ;;
 7209 	  *)
 7210 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7211 	      _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
 7212 	      case $host in
 7213 	        osf3*)
 7214 	          _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'
 7215 		  ;;
 7216 	        *)
 7217 	          _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'
 7218 		  ;;
 7219 	      esac
 7220 
 7221 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
 7222 	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
 7223 
 7224 	      # Commands to make compiler produce verbose output that lists
 7225 	      # what "hidden" libraries, object files and flags are used when
 7226 	      # linking a shared library.
 7227 	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7228 
 7229 	    else
 7230 	      # FIXME: insert proper C++ library support
 7231 	      _LT_TAGVAR(ld_shlibs, $1)=no
 7232 	    fi
 7233 	    ;;
 7234         esac
 7235         ;;
 7236 
 7237       psos*)
 7238         # FIXME: insert proper C++ library support
 7239         _LT_TAGVAR(ld_shlibs, $1)=no
 7240         ;;
 7241 
 7242       sunos4*)
 7243         case $cc_basename in
 7244           CC*)
 7245 	    # Sun C++ 4.x
 7246 	    # FIXME: insert proper C++ library support
 7247 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7248 	    ;;
 7249           lcc*)
 7250 	    # Lucid
 7251 	    # FIXME: insert proper C++ library support
 7252 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7253 	    ;;
 7254           *)
 7255 	    # FIXME: insert proper C++ library support
 7256 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7257 	    ;;
 7258         esac
 7259         ;;
 7260 
 7261       solaris*)
 7262         case $cc_basename in
 7263           CC* | sunCC*)
 7264 	    # Sun C++ 4.2, 5.x and Centerline C++
 7265             _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
 7266 	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
 7267 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 7268 	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7269               $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'
 7270 
 7271 	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
 7272 	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7273 	    case $host_os in
 7274 	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7275 	      *)
 7276 		# The compiler driver will combine and reorder linker options,
 7277 		# but understands '-z linker_flag'.
 7278 	        # Supported since Solaris 2.6 (maybe 2.5.1?)
 7279 		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
 7280 	        ;;
 7281 	    esac
 7282 	    _LT_TAGVAR(link_all_deplibs, $1)=yes
 7283 
 7284 	    output_verbose_link_cmd='func_echo_all'
 7285 
 7286 	    # Archives containing C++ object files must be created using
 7287 	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 7288 	    # necessary to make sure instantiated templates are included
 7289 	    # in the archive.
 7290 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
 7291 	    ;;
 7292           gcx*)
 7293 	    # Green Hills C++ Compiler
 7294 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7295 
 7296 	    # The C++ compiler must be used to create the archive.
 7297 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 7298 	    ;;
 7299           *)
 7300 	    # GNU C++ compiler with Solaris linker
 7301 	    if test yes,no = "$GXX,$with_gnu_ld"; then
 7302 	      _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
 7303 	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 7304 	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7305 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7306                   $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'
 7307 
 7308 	        # Commands to make compiler produce verbose output that lists
 7309 	        # what "hidden" libraries, object files and flags are used when
 7310 	        # linking a shared library.
 7311 	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7312 	      else
 7313 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
 7314 	        # platform.
 7315 	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
 7316 	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 7317                   $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'
 7318 
 7319 	        # Commands to make compiler produce verbose output that lists
 7320 	        # what "hidden" libraries, object files and flags are used when
 7321 	        # linking a shared library.
 7322 	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
 7323 	      fi
 7324 
 7325 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
 7326 	      case $host_os in
 7327 		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
 7328 		*)
 7329 		  _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
 7330 		  ;;
 7331 	      esac
 7332 	    fi
 7333 	    ;;
 7334         esac
 7335         ;;
 7336 
 7337     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
 7338       _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7339       _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7340       _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7341       runpath_var='LD_RUN_PATH'
 7342 
 7343       case $cc_basename in
 7344         CC*)
 7345 	  _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7346 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7347 	  ;;
 7348 	*)
 7349 	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7350 	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7351 	  ;;
 7352       esac
 7353       ;;
 7354 
 7355       sysv5* | sco3.2v5* | sco5v6*)
 7356 	# Note: We CANNOT use -z defs as we might desire, because we do not
 7357 	# link with -lc, and that would cause any symbols used from libc to
 7358 	# always be unresolved, which means just about no library would
 7359 	# ever link correctly.  If we're not using GNU ld we use -z text
 7360 	# though, which does catch some bad symbols but isn't as heavy-handed
 7361 	# as -z defs.
 7362 	_LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
 7363 	_LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
 7364 	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7365 	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 7366 	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
 7367 	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
 7368 	_LT_TAGVAR(link_all_deplibs, $1)=yes
 7369 	_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
 7370 	runpath_var='LD_RUN_PATH'
 7371 
 7372 	case $cc_basename in
 7373           CC*)
 7374 	    _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7375 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7376 	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
 7377               '"$_LT_TAGVAR(old_archive_cmds, $1)"
 7378 	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
 7379               '"$_LT_TAGVAR(reload_cmds, $1)"
 7380 	    ;;
 7381 	  *)
 7382 	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7383 	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 7384 	    ;;
 7385 	esac
 7386       ;;
 7387 
 7388       tandem*)
 7389         case $cc_basename in
 7390           NCC*)
 7391 	    # NonStop-UX NCC 3.20
 7392 	    # FIXME: insert proper C++ library support
 7393 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7394 	    ;;
 7395           *)
 7396 	    # FIXME: insert proper C++ library support
 7397 	    _LT_TAGVAR(ld_shlibs, $1)=no
 7398 	    ;;
 7399         esac
 7400         ;;
 7401 
 7402       vxworks*)
 7403         # FIXME: insert proper C++ library support
 7404         _LT_TAGVAR(ld_shlibs, $1)=no
 7405         ;;
 7406 
 7407       *)
 7408         # FIXME: insert proper C++ library support
 7409         _LT_TAGVAR(ld_shlibs, $1)=no
 7410         ;;
 7411     esac
 7412 
 7413     AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
 7414     test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
 7415 
 7416     _LT_TAGVAR(GCC, $1)=$GXX
 7417     _LT_TAGVAR(LD, $1)=$LD
 7418 
 7419     ## CAVEAT EMPTOR:
 7420     ## There is no encapsulation within the following macros, do not change
 7421     ## the running order or otherwise move them around unless you know exactly
 7422     ## what you are doing...
 7423     _LT_SYS_HIDDEN_LIBDEPS($1)
 7424     _LT_COMPILER_PIC($1)
 7425     _LT_COMPILER_C_O($1)
 7426     _LT_COMPILER_FILE_LOCKS($1)
 7427     _LT_LINKER_SHLIBS($1)
 7428     _LT_SYS_DYNAMIC_LINKER($1)
 7429     _LT_LINKER_HARDCODE_LIBPATH($1)
 7430 
 7431     _LT_CONFIG($1)
 7432   fi # test -n "$compiler"
 7433 
 7434   CC=$lt_save_CC
 7435   CFLAGS=$lt_save_CFLAGS
 7436   LDCXX=$LD
 7437   LD=$lt_save_LD
 7438   GCC=$lt_save_GCC
 7439   with_gnu_ld=$lt_save_with_gnu_ld
 7440   lt_cv_path_LDCXX=$lt_cv_path_LD
 7441   lt_cv_path_LD=$lt_save_path_LD
 7442   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 7443   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 7444 fi # test yes != "$_lt_caught_CXX_error"
 7445 
 7446 AC_LANG_POP
 7447 ])# _LT_LANG_CXX_CONFIG
 7448 
 7449 
 7450 # _LT_FUNC_STRIPNAME_CNF
 7451 # ----------------------
 7452 # func_stripname_cnf prefix suffix name
 7453 # strip PREFIX and SUFFIX off of NAME.
 7454 # PREFIX and SUFFIX must not contain globbing or regex special
 7455 # characters, hashes, percent signs, but SUFFIX may contain a leading
 7456 # dot (in which case that matches only a dot).
 7457 #
 7458 # This function is identical to the (non-XSI) version of func_stripname,
 7459 # except this one can be used by m4 code that may be executed by configure,
 7460 # rather than the libtool script.
 7461 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
 7462 AC_REQUIRE([_LT_DECL_SED])
 7463 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
 7464 func_stripname_cnf ()
 7465 {
 7466   case @S|@2 in
 7467   .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
 7468   *)  func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
 7469   esac
 7470 } # func_stripname_cnf
 7471 ])# _LT_FUNC_STRIPNAME_CNF
 7472 
 7473 
 7474 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
 7475 # ---------------------------------
 7476 # Figure out "hidden" library dependencies from verbose
 7477 # compiler output when linking a shared library.
 7478 # Parse the compiler output and extract the necessary
 7479 # objects, libraries and library flags.
 7480 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
 7481 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
 7482 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
 7483 # Dependencies to place before and after the object being linked:
 7484 _LT_TAGVAR(predep_objects, $1)=
 7485 _LT_TAGVAR(postdep_objects, $1)=
 7486 _LT_TAGVAR(predeps, $1)=
 7487 _LT_TAGVAR(postdeps, $1)=
 7488 _LT_TAGVAR(compiler_lib_search_path, $1)=
 7489 
 7490 dnl we can't use the lt_simple_compile_test_code here,
 7491 dnl because it contains code intended for an executable,
 7492 dnl not a library.  It's possible we should let each
 7493 dnl tag define a new lt_????_link_test_code variable,
 7494 dnl but it's only used here...
 7495 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
 7496 int a;
 7497 void foo (void) { a = 0; }
 7498 _LT_EOF
 7499 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
 7500 class Foo
 7501 {
 7502 public:
 7503   Foo (void) { a = 0; }
 7504 private:
 7505   int a;
 7506 };
 7507 _LT_EOF
 7508 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
 7509       subroutine foo
 7510       implicit none
 7511       integer*4 a
 7512       a=0
 7513       return
 7514       end
 7515 _LT_EOF
 7516 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
 7517       subroutine foo
 7518       implicit none
 7519       integer a
 7520       a=0
 7521       return
 7522       end
 7523 _LT_EOF
 7524 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
 7525 public class foo {
 7526   private int a;
 7527   public void bar (void) {
 7528     a = 0;
 7529   }
 7530 };
 7531 _LT_EOF
 7532 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
 7533 package foo
 7534 func foo() {
 7535 }
 7536 _LT_EOF
 7537 ])
 7538 
 7539 _lt_libdeps_save_CFLAGS=$CFLAGS
 7540 case "$CC $CFLAGS " in #(
 7541 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 7542 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
 7543 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 7544 esac
 7545 
 7546 dnl Parse the compiler output and extract the necessary
 7547 dnl objects, libraries and library flags.
 7548 if AC_TRY_EVAL(ac_compile); then
 7549   # Parse the compiler output and extract the necessary
 7550   # objects, libraries and library flags.
 7551 
 7552   # Sentinel used to keep track of whether or not we are before
 7553   # the conftest object file.
 7554   pre_test_object_deps_done=no
 7555 
 7556   for p in `eval "$output_verbose_link_cmd"`; do
 7557     case $prev$p in
 7558 
 7559     -L* | -R* | -l*)
 7560        # Some compilers place space between "-{L,R}" and the path.
 7561        # Remove the space.
 7562        if test x-L = "$p" ||
 7563           test x-R = "$p"; then
 7564 	 prev=$p
 7565 	 continue
 7566        fi
 7567 
 7568        # Expand the sysroot to ease extracting the directories later.
 7569        if test -z "$prev"; then
 7570          case $p in
 7571          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
 7572          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
 7573          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
 7574          esac
 7575        fi
 7576        case $p in
 7577        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
 7578        esac
 7579        if test no = "$pre_test_object_deps_done"; then
 7580 	 case $prev in
 7581 	 -L | -R)
 7582 	   # Internal compiler library paths should come after those
 7583 	   # provided the user.  The postdeps already come after the
 7584 	   # user supplied libs so there is no need to process them.
 7585 	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
 7586 	     _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
 7587 	   else
 7588 	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
 7589 	   fi
 7590 	   ;;
 7591 	 # The "-l" case would never come before the object being
 7592 	 # linked, so don't bother handling this case.
 7593 	 esac
 7594        else
 7595 	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
 7596 	   _LT_TAGVAR(postdeps, $1)=$prev$p
 7597 	 else
 7598 	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
 7599 	 fi
 7600        fi
 7601        prev=
 7602        ;;
 7603 
 7604     *.lto.$objext) ;; # Ignore GCC LTO objects
 7605     *.$objext)
 7606        # This assumes that the test object file only shows up
 7607        # once in the compiler output.
 7608        if test "$p" = "conftest.$objext"; then
 7609 	 pre_test_object_deps_done=yes
 7610 	 continue
 7611        fi
 7612 
 7613        if test no = "$pre_test_object_deps_done"; then
 7614 	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
 7615 	   _LT_TAGVAR(predep_objects, $1)=$p
 7616 	 else
 7617 	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
 7618 	 fi
 7619        else
 7620 	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
 7621 	   _LT_TAGVAR(postdep_objects, $1)=$p
 7622 	 else
 7623 	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
 7624 	 fi
 7625        fi
 7626        ;;
 7627 
 7628     *) ;; # Ignore the rest.
 7629 
 7630     esac
 7631   done
 7632 
 7633   # Clean up.
 7634   rm -f a.out a.exe
 7635 else
 7636   echo "libtool.m4: error: problem compiling $1 test program"
 7637 fi
 7638 
 7639 $RM -f confest.$objext
 7640 CFLAGS=$_lt_libdeps_save_CFLAGS
 7641 
 7642 # PORTME: override above test on systems where it is broken
 7643 m4_if([$1], [CXX],
 7644 [case $host_os in
 7645 interix[[3-9]]*)
 7646   # Interix 3.5 installs completely hosed .la files for C++, so rather than
 7647   # hack all around it, let's just trust "g++" to DTRT.
 7648   _LT_TAGVAR(predep_objects,$1)=
 7649   _LT_TAGVAR(postdep_objects,$1)=
 7650   _LT_TAGVAR(postdeps,$1)=
 7651   ;;
 7652 esac
 7653 ])
 7654 
 7655 case " $_LT_TAGVAR(postdeps, $1) " in
 7656 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
 7657 esac
 7658  _LT_TAGVAR(compiler_lib_search_dirs, $1)=
 7659 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
 7660  _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
 7661 fi
 7662 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
 7663     [The directories searched by this compiler when creating a shared library])
 7664 _LT_TAGDECL([], [predep_objects], [1],
 7665     [Dependencies to place before and after the objects being linked to
 7666     create a shared library])
 7667 _LT_TAGDECL([], [postdep_objects], [1])
 7668 _LT_TAGDECL([], [predeps], [1])
 7669 _LT_TAGDECL([], [postdeps], [1])
 7670 _LT_TAGDECL([], [compiler_lib_search_path], [1],
 7671     [The library search path used internally by the compiler when linking
 7672     a shared library])
 7673 ])# _LT_SYS_HIDDEN_LIBDEPS
 7674 
 7675 
 7676 # _LT_LANG_F77_CONFIG([TAG])
 7677 # --------------------------
 7678 # Ensure that the configuration variables for a Fortran 77 compiler are
 7679 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7680 # to write the compiler configuration to 'libtool'.
 7681 m4_defun([_LT_LANG_F77_CONFIG],
 7682 [AC_LANG_PUSH(Fortran 77)
 7683 if test -z "$F77" || test no = "$F77"; then
 7684   _lt_disable_F77=yes
 7685 fi
 7686 
 7687 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7688 _LT_TAGVAR(allow_undefined_flag, $1)=
 7689 _LT_TAGVAR(always_export_symbols, $1)=no
 7690 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7691 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7692 _LT_TAGVAR(hardcode_direct, $1)=no
 7693 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7694 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7695 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7696 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7697 _LT_TAGVAR(hardcode_automatic, $1)=no
 7698 _LT_TAGVAR(inherit_rpath, $1)=no
 7699 _LT_TAGVAR(module_cmds, $1)=
 7700 _LT_TAGVAR(module_expsym_cmds, $1)=
 7701 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7702 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7703 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7704 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7705 _LT_TAGVAR(no_undefined_flag, $1)=
 7706 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7707 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7708 
 7709 # Source file extension for f77 test sources.
 7710 ac_ext=f
 7711 
 7712 # Object file extension for compiled f77 test sources.
 7713 objext=o
 7714 _LT_TAGVAR(objext, $1)=$objext
 7715 
 7716 # No sense in running all these tests if we already determined that
 7717 # the F77 compiler isn't working.  Some variables (like enable_shared)
 7718 # are currently assumed to apply to all compilers on this platform,
 7719 # and will be corrupted by setting them based on a non-working compiler.
 7720 if test yes != "$_lt_disable_F77"; then
 7721   # Code to be used in simple compile tests
 7722   lt_simple_compile_test_code="\
 7723       subroutine t
 7724       return
 7725       end
 7726 "
 7727 
 7728   # Code to be used in simple link tests
 7729   lt_simple_link_test_code="\
 7730       program t
 7731       end
 7732 "
 7733 
 7734   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7735   _LT_TAG_COMPILER
 7736 
 7737   # save warnings/boilerplate of simple test code
 7738   _LT_COMPILER_BOILERPLATE
 7739   _LT_LINKER_BOILERPLATE
 7740 
 7741   # Allow CC to be a program name with arguments.
 7742   lt_save_CC=$CC
 7743   lt_save_GCC=$GCC
 7744   lt_save_CFLAGS=$CFLAGS
 7745   CC=${F77-"f77"}
 7746   CFLAGS=$FFLAGS
 7747   compiler=$CC
 7748   _LT_TAGVAR(compiler, $1)=$CC
 7749   _LT_CC_BASENAME([$compiler])
 7750   GCC=$G77
 7751   if test -n "$compiler"; then
 7752     AC_MSG_CHECKING([if libtool supports shared libraries])
 7753     AC_MSG_RESULT([$can_build_shared])
 7754 
 7755     AC_MSG_CHECKING([whether to build shared libraries])
 7756     test no = "$can_build_shared" && enable_shared=no
 7757 
 7758     # On AIX, shared libraries and static libraries use the same namespace, and
 7759     # are all built from PIC.
 7760     case $host_os in
 7761       aix3*)
 7762         test yes = "$enable_shared" && enable_static=no
 7763         if test -n "$RANLIB"; then
 7764           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7765           postinstall_cmds='$RANLIB $lib'
 7766         fi
 7767         ;;
 7768       aix[[4-9]]*)
 7769 	if test ia64 != "$host_cpu"; then
 7770 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7771 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7772 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7773 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7774 	  esac
 7775 	fi
 7776         ;;
 7777     esac
 7778     AC_MSG_RESULT([$enable_shared])
 7779 
 7780     AC_MSG_CHECKING([whether to build static libraries])
 7781     # Make sure either enable_shared or enable_static is yes.
 7782     test yes = "$enable_shared" || enable_static=yes
 7783     AC_MSG_RESULT([$enable_static])
 7784 
 7785     _LT_TAGVAR(GCC, $1)=$G77
 7786     _LT_TAGVAR(LD, $1)=$LD
 7787 
 7788     ## CAVEAT EMPTOR:
 7789     ## There is no encapsulation within the following macros, do not change
 7790     ## the running order or otherwise move them around unless you know exactly
 7791     ## what you are doing...
 7792     _LT_COMPILER_PIC($1)
 7793     _LT_COMPILER_C_O($1)
 7794     _LT_COMPILER_FILE_LOCKS($1)
 7795     _LT_LINKER_SHLIBS($1)
 7796     _LT_SYS_DYNAMIC_LINKER($1)
 7797     _LT_LINKER_HARDCODE_LIBPATH($1)
 7798 
 7799     _LT_CONFIG($1)
 7800   fi # test -n "$compiler"
 7801 
 7802   GCC=$lt_save_GCC
 7803   CC=$lt_save_CC
 7804   CFLAGS=$lt_save_CFLAGS
 7805 fi # test yes != "$_lt_disable_F77"
 7806 
 7807 AC_LANG_POP
 7808 ])# _LT_LANG_F77_CONFIG
 7809 
 7810 
 7811 # _LT_LANG_FC_CONFIG([TAG])
 7812 # -------------------------
 7813 # Ensure that the configuration variables for a Fortran compiler are
 7814 # suitably defined.  These variables are subsequently used by _LT_CONFIG
 7815 # to write the compiler configuration to 'libtool'.
 7816 m4_defun([_LT_LANG_FC_CONFIG],
 7817 [AC_LANG_PUSH(Fortran)
 7818 
 7819 if test -z "$FC" || test no = "$FC"; then
 7820   _lt_disable_FC=yes
 7821 fi
 7822 
 7823 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7824 _LT_TAGVAR(allow_undefined_flag, $1)=
 7825 _LT_TAGVAR(always_export_symbols, $1)=no
 7826 _LT_TAGVAR(archive_expsym_cmds, $1)=
 7827 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
 7828 _LT_TAGVAR(hardcode_direct, $1)=no
 7829 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
 7830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
 7831 _LT_TAGVAR(hardcode_libdir_separator, $1)=
 7832 _LT_TAGVAR(hardcode_minus_L, $1)=no
 7833 _LT_TAGVAR(hardcode_automatic, $1)=no
 7834 _LT_TAGVAR(inherit_rpath, $1)=no
 7835 _LT_TAGVAR(module_cmds, $1)=
 7836 _LT_TAGVAR(module_expsym_cmds, $1)=
 7837 _LT_TAGVAR(link_all_deplibs, $1)=unknown
 7838 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7839 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7840 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7841 _LT_TAGVAR(no_undefined_flag, $1)=
 7842 _LT_TAGVAR(whole_archive_flag_spec, $1)=
 7843 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
 7844 
 7845 # Source file extension for fc test sources.
 7846 ac_ext=${ac_fc_srcext-f}
 7847 
 7848 # Object file extension for compiled fc test sources.
 7849 objext=o
 7850 _LT_TAGVAR(objext, $1)=$objext
 7851 
 7852 # No sense in running all these tests if we already determined that
 7853 # the FC compiler isn't working.  Some variables (like enable_shared)
 7854 # are currently assumed to apply to all compilers on this platform,
 7855 # and will be corrupted by setting them based on a non-working compiler.
 7856 if test yes != "$_lt_disable_FC"; then
 7857   # Code to be used in simple compile tests
 7858   lt_simple_compile_test_code="\
 7859       subroutine t
 7860       return
 7861       end
 7862 "
 7863 
 7864   # Code to be used in simple link tests
 7865   lt_simple_link_test_code="\
 7866       program t
 7867       end
 7868 "
 7869 
 7870   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7871   _LT_TAG_COMPILER
 7872 
 7873   # save warnings/boilerplate of simple test code
 7874   _LT_COMPILER_BOILERPLATE
 7875   _LT_LINKER_BOILERPLATE
 7876 
 7877   # Allow CC to be a program name with arguments.
 7878   lt_save_CC=$CC
 7879   lt_save_GCC=$GCC
 7880   lt_save_CFLAGS=$CFLAGS
 7881   CC=${FC-"f95"}
 7882   CFLAGS=$FCFLAGS
 7883   compiler=$CC
 7884   GCC=$ac_cv_fc_compiler_gnu
 7885 
 7886   _LT_TAGVAR(compiler, $1)=$CC
 7887   _LT_CC_BASENAME([$compiler])
 7888 
 7889   if test -n "$compiler"; then
 7890     AC_MSG_CHECKING([if libtool supports shared libraries])
 7891     AC_MSG_RESULT([$can_build_shared])
 7892 
 7893     AC_MSG_CHECKING([whether to build shared libraries])
 7894     test no = "$can_build_shared" && enable_shared=no
 7895 
 7896     # On AIX, shared libraries and static libraries use the same namespace, and
 7897     # are all built from PIC.
 7898     case $host_os in
 7899       aix3*)
 7900         test yes = "$enable_shared" && enable_static=no
 7901         if test -n "$RANLIB"; then
 7902           archive_cmds="$archive_cmds~\$RANLIB \$lib"
 7903           postinstall_cmds='$RANLIB $lib'
 7904         fi
 7905         ;;
 7906       aix[[4-9]]*)
 7907 	if test ia64 != "$host_cpu"; then
 7908 	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
 7909 	  yes,aix,yes) ;;		# shared object as lib.so file only
 7910 	  yes,svr4,*) ;;		# shared object as lib.so archive member only
 7911 	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
 7912 	  esac
 7913 	fi
 7914         ;;
 7915     esac
 7916     AC_MSG_RESULT([$enable_shared])
 7917 
 7918     AC_MSG_CHECKING([whether to build static libraries])
 7919     # Make sure either enable_shared or enable_static is yes.
 7920     test yes = "$enable_shared" || enable_static=yes
 7921     AC_MSG_RESULT([$enable_static])
 7922 
 7923     _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
 7924     _LT_TAGVAR(LD, $1)=$LD
 7925 
 7926     ## CAVEAT EMPTOR:
 7927     ## There is no encapsulation within the following macros, do not change
 7928     ## the running order or otherwise move them around unless you know exactly
 7929     ## what you are doing...
 7930     _LT_SYS_HIDDEN_LIBDEPS($1)
 7931     _LT_COMPILER_PIC($1)
 7932     _LT_COMPILER_C_O($1)
 7933     _LT_COMPILER_FILE_LOCKS($1)
 7934     _LT_LINKER_SHLIBS($1)
 7935     _LT_SYS_DYNAMIC_LINKER($1)
 7936     _LT_LINKER_HARDCODE_LIBPATH($1)
 7937 
 7938     _LT_CONFIG($1)
 7939   fi # test -n "$compiler"
 7940 
 7941   GCC=$lt_save_GCC
 7942   CC=$lt_save_CC
 7943   CFLAGS=$lt_save_CFLAGS
 7944 fi # test yes != "$_lt_disable_FC"
 7945 
 7946 AC_LANG_POP
 7947 ])# _LT_LANG_FC_CONFIG
 7948 
 7949 
 7950 # _LT_LANG_GCJ_CONFIG([TAG])
 7951 # --------------------------
 7952 # Ensure that the configuration variables for the GNU Java Compiler compiler
 7953 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 7954 # to write the compiler configuration to 'libtool'.
 7955 m4_defun([_LT_LANG_GCJ_CONFIG],
 7956 [AC_REQUIRE([LT_PROG_GCJ])dnl
 7957 AC_LANG_SAVE
 7958 
 7959 # Source file extension for Java test sources.
 7960 ac_ext=java
 7961 
 7962 # Object file extension for compiled Java test sources.
 7963 objext=o
 7964 _LT_TAGVAR(objext, $1)=$objext
 7965 
 7966 # Code to be used in simple compile tests
 7967 lt_simple_compile_test_code="class foo {}"
 7968 
 7969 # Code to be used in simple link tests
 7970 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
 7971 
 7972 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 7973 _LT_TAG_COMPILER
 7974 
 7975 # save warnings/boilerplate of simple test code
 7976 _LT_COMPILER_BOILERPLATE
 7977 _LT_LINKER_BOILERPLATE
 7978 
 7979 # Allow CC to be a program name with arguments.
 7980 lt_save_CC=$CC
 7981 lt_save_CFLAGS=$CFLAGS
 7982 lt_save_GCC=$GCC
 7983 GCC=yes
 7984 CC=${GCJ-"gcj"}
 7985 CFLAGS=$GCJFLAGS
 7986 compiler=$CC
 7987 _LT_TAGVAR(compiler, $1)=$CC
 7988 _LT_TAGVAR(LD, $1)=$LD
 7989 _LT_CC_BASENAME([$compiler])
 7990 
 7991 # GCJ did not exist at the time GCC didn't implicitly link libc in.
 7992 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 7993 
 7994 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 7995 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 7996 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 7997 
 7998 ## CAVEAT EMPTOR:
 7999 ## There is no encapsulation within the following macros, do not change
 8000 ## the running order or otherwise move them around unless you know exactly
 8001 ## what you are doing...
 8002 if test -n "$compiler"; then
 8003   _LT_COMPILER_NO_RTTI($1)
 8004   _LT_COMPILER_PIC($1)
 8005   _LT_COMPILER_C_O($1)
 8006   _LT_COMPILER_FILE_LOCKS($1)
 8007   _LT_LINKER_SHLIBS($1)
 8008   _LT_LINKER_HARDCODE_LIBPATH($1)
 8009 
 8010   _LT_CONFIG($1)
 8011 fi
 8012 
 8013 AC_LANG_RESTORE
 8014 
 8015 GCC=$lt_save_GCC
 8016 CC=$lt_save_CC
 8017 CFLAGS=$lt_save_CFLAGS
 8018 ])# _LT_LANG_GCJ_CONFIG
 8019 
 8020 
 8021 # _LT_LANG_GO_CONFIG([TAG])
 8022 # --------------------------
 8023 # Ensure that the configuration variables for the GNU Go compiler
 8024 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8025 # to write the compiler configuration to 'libtool'.
 8026 m4_defun([_LT_LANG_GO_CONFIG],
 8027 [AC_REQUIRE([LT_PROG_GO])dnl
 8028 AC_LANG_SAVE
 8029 
 8030 # Source file extension for Go test sources.
 8031 ac_ext=go
 8032 
 8033 # Object file extension for compiled Go test sources.
 8034 objext=o
 8035 _LT_TAGVAR(objext, $1)=$objext
 8036 
 8037 # Code to be used in simple compile tests
 8038 lt_simple_compile_test_code="package main; func main() { }"
 8039 
 8040 # Code to be used in simple link tests
 8041 lt_simple_link_test_code='package main; func main() { }'
 8042 
 8043 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8044 _LT_TAG_COMPILER
 8045 
 8046 # save warnings/boilerplate of simple test code
 8047 _LT_COMPILER_BOILERPLATE
 8048 _LT_LINKER_BOILERPLATE
 8049 
 8050 # Allow CC to be a program name with arguments.
 8051 lt_save_CC=$CC
 8052 lt_save_CFLAGS=$CFLAGS
 8053 lt_save_GCC=$GCC
 8054 GCC=yes
 8055 CC=${GOC-"gccgo"}
 8056 CFLAGS=$GOFLAGS
 8057 compiler=$CC
 8058 _LT_TAGVAR(compiler, $1)=$CC
 8059 _LT_TAGVAR(LD, $1)=$LD
 8060 _LT_CC_BASENAME([$compiler])
 8061 
 8062 # Go did not exist at the time GCC didn't implicitly link libc in.
 8063 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
 8064 
 8065 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
 8066 _LT_TAGVAR(reload_flag, $1)=$reload_flag
 8067 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
 8068 
 8069 ## CAVEAT EMPTOR:
 8070 ## There is no encapsulation within the following macros, do not change
 8071 ## the running order or otherwise move them around unless you know exactly
 8072 ## what you are doing...
 8073 if test -n "$compiler"; then
 8074   _LT_COMPILER_NO_RTTI($1)
 8075   _LT_COMPILER_PIC($1)
 8076   _LT_COMPILER_C_O($1)
 8077   _LT_COMPILER_FILE_LOCKS($1)
 8078   _LT_LINKER_SHLIBS($1)
 8079   _LT_LINKER_HARDCODE_LIBPATH($1)
 8080 
 8081   _LT_CONFIG($1)
 8082 fi
 8083 
 8084 AC_LANG_RESTORE
 8085 
 8086 GCC=$lt_save_GCC
 8087 CC=$lt_save_CC
 8088 CFLAGS=$lt_save_CFLAGS
 8089 ])# _LT_LANG_GO_CONFIG
 8090 
 8091 
 8092 # _LT_LANG_RC_CONFIG([TAG])
 8093 # -------------------------
 8094 # Ensure that the configuration variables for the Windows resource compiler
 8095 # are suitably defined.  These variables are subsequently used by _LT_CONFIG
 8096 # to write the compiler configuration to 'libtool'.
 8097 m4_defun([_LT_LANG_RC_CONFIG],
 8098 [AC_REQUIRE([LT_PROG_RC])dnl
 8099 AC_LANG_SAVE
 8100 
 8101 # Source file extension for RC test sources.
 8102 ac_ext=rc
 8103 
 8104 # Object file extension for compiled RC test sources.
 8105 objext=o
 8106 _LT_TAGVAR(objext, $1)=$objext
 8107 
 8108 # Code to be used in simple compile tests
 8109 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 8110 
 8111 # Code to be used in simple link tests
 8112 lt_simple_link_test_code=$lt_simple_compile_test_code
 8113 
 8114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 8115 _LT_TAG_COMPILER
 8116 
 8117 # save warnings/boilerplate of simple test code
 8118 _LT_COMPILER_BOILERPLATE
 8119 _LT_LINKER_BOILERPLATE
 8120 
 8121 # Allow CC to be a program name with arguments.
 8122 lt_save_CC=$CC
 8123 lt_save_CFLAGS=$CFLAGS
 8124 lt_save_GCC=$GCC
 8125 GCC=
 8126 CC=${RC-"windres"}
 8127 CFLAGS=
 8128 compiler=$CC
 8129 _LT_TAGVAR(compiler, $1)=$CC
 8130 _LT_CC_BASENAME([$compiler])
 8131 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
 8132 
 8133 if test -n "$compiler"; then
 8134   :
 8135   _LT_CONFIG($1)
 8136 fi
 8137 
 8138 GCC=$lt_save_GCC
 8139 AC_LANG_RESTORE
 8140 CC=$lt_save_CC
 8141 CFLAGS=$lt_save_CFLAGS
 8142 ])# _LT_LANG_RC_CONFIG
 8143 
 8144 
 8145 # LT_PROG_GCJ
 8146 # -----------
 8147 AC_DEFUN([LT_PROG_GCJ],
 8148 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
 8149   [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
 8150     [AC_CHECK_TOOL(GCJ, gcj,)
 8151       test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
 8152       AC_SUBST(GCJFLAGS)])])[]dnl
 8153 ])
 8154 
 8155 # Old name:
 8156 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
 8157 dnl aclocal-1.4 backwards compatibility:
 8158 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 8159 
 8160 
 8161 # LT_PROG_GO
 8162 # ----------
 8163 AC_DEFUN([LT_PROG_GO],
 8164 [AC_CHECK_TOOL(GOC, gccgo,)
 8165 ])
 8166 
 8167 
 8168 # LT_PROG_RC
 8169 # ----------
 8170 AC_DEFUN([LT_PROG_RC],
 8171 [AC_CHECK_TOOL(RC, windres,)
 8172 ])
 8173 
 8174 # Old name:
 8175 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
 8176 dnl aclocal-1.4 backwards compatibility:
 8177 dnl AC_DEFUN([LT_AC_PROG_RC], [])
 8178 
 8179 
 8180 # _LT_DECL_EGREP
 8181 # --------------
 8182 # If we don't have a new enough Autoconf to choose the best grep
 8183 # available, choose the one first in the user's PATH.
 8184 m4_defun([_LT_DECL_EGREP],
 8185 [AC_REQUIRE([AC_PROG_EGREP])dnl
 8186 AC_REQUIRE([AC_PROG_FGREP])dnl
 8187 test -z "$GREP" && GREP=grep
 8188 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
 8189 _LT_DECL([], [EGREP], [1], [An ERE matcher])
 8190 _LT_DECL([], [FGREP], [1], [A literal string matcher])
 8191 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
 8192 AC_SUBST([GREP])
 8193 ])
 8194 
 8195 
 8196 # _LT_DECL_OBJDUMP
 8197 # --------------
 8198 # If we don't have a new enough Autoconf to choose the best objdump
 8199 # available, choose the one first in the user's PATH.
 8200 m4_defun([_LT_DECL_OBJDUMP],
 8201 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
 8202 test -z "$OBJDUMP" && OBJDUMP=objdump
 8203 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
 8204 AC_SUBST([OBJDUMP])
 8205 ])
 8206 
 8207 # _LT_DECL_DLLTOOL
 8208 # ----------------
 8209 # Ensure DLLTOOL variable is set.
 8210 m4_defun([_LT_DECL_DLLTOOL],
 8211 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
 8212 test -z "$DLLTOOL" && DLLTOOL=dlltool
 8213 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
 8214 AC_SUBST([DLLTOOL])
 8215 ])
 8216 
 8217 # _LT_DECL_SED
 8218 # ------------
 8219 # Check for a fully-functional sed program, that truncates
 8220 # as few characters as possible.  Prefer GNU sed if found.
 8221 m4_defun([_LT_DECL_SED],
 8222 [AC_PROG_SED
 8223 test -z "$SED" && SED=sed
 8224 Xsed="$SED -e 1s/^X//"
 8225 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
 8226 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
 8227     [Sed that helps us avoid accidentally triggering echo(1) options like -n])
 8228 ])# _LT_DECL_SED
 8229 
 8230 m4_ifndef([AC_PROG_SED], [
 8231 ############################################################
 8232 # NOTE: This macro has been submitted for inclusion into   #
 8233 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
 8234 #  a released version of Autoconf we should remove this    #
 8235 #  macro and use it instead.                               #
 8236 ############################################################
 8237 
 8238 m4_defun([AC_PROG_SED],
 8239 [AC_MSG_CHECKING([for a sed that does not truncate output])
 8240 AC_CACHE_VAL(lt_cv_path_SED,
 8241 [# Loop through the user's path and test for sed and gsed.
 8242 # Then use that list of sed's as ones to test for truncation.
 8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 8244 for as_dir in $PATH
 8245 do
 8246   IFS=$as_save_IFS
 8247   test -z "$as_dir" && as_dir=.
 8248   for lt_ac_prog in sed gsed; do
 8249     for ac_exec_ext in '' $ac_executable_extensions; do
 8250       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 8251         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 8252       fi
 8253     done
 8254   done
 8255 done
 8256 IFS=$as_save_IFS
 8257 lt_ac_max=0
 8258 lt_ac_count=0
 8259 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 8260 # along with /bin/sed that truncates output.
 8261 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 8262   test ! -f "$lt_ac_sed" && continue
 8263   cat /dev/null > conftest.in
 8264   lt_ac_count=0
 8265   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 8266   # Check for GNU sed and select it if it is found.
 8267   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 8268     lt_cv_path_SED=$lt_ac_sed
 8269     break
 8270   fi
 8271   while true; do
 8272     cat conftest.in conftest.in >conftest.tmp
 8273     mv conftest.tmp conftest.in
 8274     cp conftest.in conftest.nl
 8275     echo >>conftest.nl
 8276     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 8277     cmp -s conftest.out conftest.nl || break
 8278     # 10000 chars as input seems more than enough
 8279     test 10 -lt "$lt_ac_count" && break
 8280     lt_ac_count=`expr $lt_ac_count + 1`
 8281     if test "$lt_ac_count" -gt "$lt_ac_max"; then
 8282       lt_ac_max=$lt_ac_count
 8283       lt_cv_path_SED=$lt_ac_sed
 8284     fi
 8285   done
 8286 done
 8287 ])
 8288 SED=$lt_cv_path_SED
 8289 AC_SUBST([SED])
 8290 AC_MSG_RESULT([$SED])
 8291 ])#AC_PROG_SED
 8292 ])#m4_ifndef
 8293 
 8294 # Old name:
 8295 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
 8296 dnl aclocal-1.4 backwards compatibility:
 8297 dnl AC_DEFUN([LT_AC_PROG_SED], [])
 8298 
 8299 
 8300 # _LT_CHECK_SHELL_FEATURES
 8301 # ------------------------
 8302 # Find out whether the shell is Bourne or XSI compatible,
 8303 # or has some other useful features.
 8304 m4_defun([_LT_CHECK_SHELL_FEATURES],
 8305 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 8306   lt_unset=unset
 8307 else
 8308   lt_unset=false
 8309 fi
 8310 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
 8311 
 8312 # test EBCDIC or ASCII
 8313 case `echo X|tr X '\101'` in
 8314  A) # ASCII based system
 8315     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 8316   lt_SP2NL='tr \040 \012'
 8317   lt_NL2SP='tr \015\012 \040\040'
 8318   ;;
 8319  *) # EBCDIC based system
 8320   lt_SP2NL='tr \100 \n'
 8321   lt_NL2SP='tr \r\n \100\100'
 8322   ;;
 8323 esac
 8324 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
 8325 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
 8326 ])# _LT_CHECK_SHELL_FEATURES
 8327 
 8328 
 8329 # _LT_PATH_CONVERSION_FUNCTIONS
 8330 # -----------------------------
 8331 # Determine what file name conversion functions should be used by
 8332 # func_to_host_file (and, implicitly, by func_to_host_path).  These are needed
 8333 # for certain cross-compile configurations and native mingw.
 8334 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
 8335 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
 8336 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
 8337 AC_MSG_CHECKING([how to convert $build file names to $host format])
 8338 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
 8339 [case $host in
 8340   *-*-mingw* )
 8341     case $build in
 8342       *-*-mingw* ) # actually msys
 8343         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
 8344         ;;
 8345       *-*-cygwin* )
 8346         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
 8347         ;;
 8348       * ) # otherwise, assume *nix
 8349         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
 8350         ;;
 8351     esac
 8352     ;;
 8353   *-*-cygwin* )
 8354     case $build in
 8355       *-*-mingw* ) # actually msys
 8356         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
 8357         ;;
 8358       *-*-cygwin* )
 8359         lt_cv_to_host_file_cmd=func_convert_file_noop
 8360         ;;
 8361       * ) # otherwise, assume *nix
 8362         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
 8363         ;;
 8364     esac
 8365     ;;
 8366   * ) # unhandled hosts (and "normal" native builds)
 8367     lt_cv_to_host_file_cmd=func_convert_file_noop
 8368     ;;
 8369 esac
 8370 ])
 8371 to_host_file_cmd=$lt_cv_to_host_file_cmd
 8372 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
 8373 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
 8374          [0], [convert $build file names to $host format])dnl
 8375 
 8376 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
 8377 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
 8378 [#assume ordinary cross tools, or native build.
 8379 lt_cv_to_tool_file_cmd=func_convert_file_noop
 8380 case $host in
 8381   *-*-mingw* )
 8382     case $build in
 8383       *-*-mingw* ) # actually msys
 8384         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
 8385         ;;
 8386     esac
 8387     ;;
 8388 esac
 8389 ])
 8390 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
 8391 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
 8392 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
 8393          [0], [convert $build files to toolchain format])dnl
 8394 ])# _LT_PATH_CONVERSION_FUNCTIONS