"Fossies" - the Fresh Open Source Software Archive

Member "xorg-server-1.20.8/m4/libtool.m4" (29 Mar 2020, 306304 Bytes) of package /linux/misc/xorg-server-1.20.8.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": 1.20.7_vs_1.20.8.

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