xref: /netbsd-src/external/gpl3/gcc.old/dist/libtool.m4 (revision 8feb0f0b7eaff0608f8350bbfa3098827b4bb91b)
11debfc3dSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
21debfc3dSmrg#
31debfc3dSmrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41debfc3dSmrg#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
51debfc3dSmrg#   Written by Gordon Matzigkeit, 1996
61debfc3dSmrg#
71debfc3dSmrg# This file is free software; the Free Software Foundation gives
81debfc3dSmrg# unlimited permission to copy and/or distribute it, with or without
91debfc3dSmrg# modifications, as long as this notice is preserved.
101debfc3dSmrg
111debfc3dSmrgm4_define([_LT_COPYING], [dnl
121debfc3dSmrg#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
131debfc3dSmrg#                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
141debfc3dSmrg#   Written by Gordon Matzigkeit, 1996
151debfc3dSmrg#
161debfc3dSmrg#   This file is part of GNU Libtool.
171debfc3dSmrg#
181debfc3dSmrg# GNU Libtool is free software; you can redistribute it and/or
191debfc3dSmrg# modify it under the terms of the GNU General Public License as
201debfc3dSmrg# published by the Free Software Foundation; either version 2 of
211debfc3dSmrg# the License, or (at your option) any later version.
221debfc3dSmrg#
231debfc3dSmrg# As a special exception to the GNU General Public License,
241debfc3dSmrg# if you distribute this file as part of a program or library that
251debfc3dSmrg# is built using GNU Libtool, you may include this file under the
261debfc3dSmrg# same distribution terms that you use for the rest of that program.
271debfc3dSmrg#
281debfc3dSmrg# GNU Libtool is distributed in the hope that it will be useful,
291debfc3dSmrg# but WITHOUT ANY WARRANTY; without even the implied warranty of
301debfc3dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
311debfc3dSmrg# GNU General Public License for more details.
321debfc3dSmrg#
331debfc3dSmrg# You should have received a copy of the GNU General Public License
341debfc3dSmrg# along with GNU Libtool; see the file COPYING.  If not, a copy
351debfc3dSmrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
361debfc3dSmrg# obtained by writing to the Free Software Foundation, Inc.,
371debfc3dSmrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
381debfc3dSmrg])
391debfc3dSmrg
401debfc3dSmrg# serial 56 LT_INIT
411debfc3dSmrg
421debfc3dSmrg
431debfc3dSmrg# LT_PREREQ(VERSION)
441debfc3dSmrg# ------------------
451debfc3dSmrg# Complain and exit if this libtool version is less that VERSION.
461debfc3dSmrgm4_defun([LT_PREREQ],
471debfc3dSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
481debfc3dSmrg       [m4_default([$3],
491debfc3dSmrg		   [m4_fatal([Libtool version $1 or higher is required],
501debfc3dSmrg		             63)])],
511debfc3dSmrg       [$2])])
521debfc3dSmrg
531debfc3dSmrg
541debfc3dSmrg# _LT_CHECK_BUILDDIR
551debfc3dSmrg# ------------------
561debfc3dSmrg# Complain if the absolute build directory name contains unusual characters
571debfc3dSmrgm4_defun([_LT_CHECK_BUILDDIR],
581debfc3dSmrg[case `pwd` in
591debfc3dSmrg  *\ * | *\	*)
601debfc3dSmrg    AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
611debfc3dSmrgesac
621debfc3dSmrg])
631debfc3dSmrg
641debfc3dSmrg
651debfc3dSmrg# LT_INIT([OPTIONS])
661debfc3dSmrg# ------------------
671debfc3dSmrgAC_DEFUN([LT_INIT],
681debfc3dSmrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
691debfc3dSmrgAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
701debfc3dSmrgAC_BEFORE([$0], [LT_LANG])dnl
711debfc3dSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl
721debfc3dSmrgAC_BEFORE([$0], [LTDL_INIT])dnl
731debfc3dSmrgm4_require([_LT_CHECK_BUILDDIR])dnl
741debfc3dSmrg
751debfc3dSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default:
761debfc3dSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
771debfc3dSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
781debfc3dSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
791debfc3dSmrgdnl unless we require an AC_DEFUNed macro:
801debfc3dSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl
811debfc3dSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl
821debfc3dSmrgAC_REQUIRE([LTVERSION_VERSION])dnl
831debfc3dSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl
841debfc3dSmrgm4_require([_LT_PROG_LTMAIN])dnl
851debfc3dSmrg
861debfc3dSmrg_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
871debfc3dSmrg
881debfc3dSmrgdnl Parse OPTIONS
891debfc3dSmrg_LT_SET_OPTIONS([$0], [$1])
901debfc3dSmrg
911debfc3dSmrg# This can be used to rebuild libtool when needed
921debfc3dSmrgLIBTOOL_DEPS="$ltmain"
931debfc3dSmrg
941debfc3dSmrg# Always use our own libtool.
951debfc3dSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool'
961debfc3dSmrgAC_SUBST(LIBTOOL)dnl
971debfc3dSmrg
981debfc3dSmrg_LT_SETUP
991debfc3dSmrg
1001debfc3dSmrg# Only expand once:
1011debfc3dSmrgm4_define([LT_INIT])
1021debfc3dSmrg])# LT_INIT
1031debfc3dSmrg
1041debfc3dSmrg# Old names:
1051debfc3dSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1061debfc3dSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1071debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
1081debfc3dSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1091debfc3dSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1101debfc3dSmrg
1111debfc3dSmrg
1121debfc3dSmrg# _LT_CC_BASENAME(CC)
1131debfc3dSmrg# -------------------
1141debfc3dSmrg# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1151debfc3dSmrgm4_defun([_LT_CC_BASENAME],
1161debfc3dSmrg[for cc_temp in $1""; do
1171debfc3dSmrg  case $cc_temp in
1181debfc3dSmrg    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1191debfc3dSmrg    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1201debfc3dSmrg    \-*) ;;
1211debfc3dSmrg    *) break;;
1221debfc3dSmrg  esac
1231debfc3dSmrgdone
1241debfc3dSmrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
1251debfc3dSmrg])
1261debfc3dSmrg
1271debfc3dSmrg
1281debfc3dSmrg# _LT_FILEUTILS_DEFAULTS
1291debfc3dSmrg# ----------------------
1301debfc3dSmrg# It is okay to use these file commands and assume they have been set
1311debfc3dSmrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1321debfc3dSmrgm4_defun([_LT_FILEUTILS_DEFAULTS],
1331debfc3dSmrg[: ${CP="cp -f"}
1341debfc3dSmrg: ${MV="mv -f"}
1351debfc3dSmrg: ${RM="rm -f"}
1361debfc3dSmrg])# _LT_FILEUTILS_DEFAULTS
1371debfc3dSmrg
1381debfc3dSmrg
1391debfc3dSmrg# _LT_SETUP
1401debfc3dSmrg# ---------
1411debfc3dSmrgm4_defun([_LT_SETUP],
1421debfc3dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1431debfc3dSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl
1441debfc3dSmrgAC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
1451debfc3dSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
1461debfc3dSmrg
1471debfc3dSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl
1481debfc3dSmrg_LT_DECL([], [host], [0])dnl
1491debfc3dSmrg_LT_DECL([], [host_os], [0])dnl
1501debfc3dSmrgdnl
1511debfc3dSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl
1521debfc3dSmrg_LT_DECL([], [build], [0])dnl
1531debfc3dSmrg_LT_DECL([], [build_os], [0])dnl
1541debfc3dSmrgdnl
1551debfc3dSmrgAC_REQUIRE([AC_PROG_CC])dnl
1561debfc3dSmrgAC_REQUIRE([LT_PATH_LD])dnl
1571debfc3dSmrgAC_REQUIRE([LT_PATH_NM])dnl
1581debfc3dSmrgdnl
1591debfc3dSmrgAC_REQUIRE([AC_PROG_LN_S])dnl
1601debfc3dSmrgtest -z "$LN_S" && LN_S="ln -s"
1611debfc3dSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1621debfc3dSmrgdnl
1631debfc3dSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl
1641debfc3dSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1651debfc3dSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1661debfc3dSmrgdnl
1671debfc3dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl
1681debfc3dSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl
1691debfc3dSmrgm4_require([_LT_CMD_RELOAD])dnl
1701debfc3dSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl
1711debfc3dSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl
1721debfc3dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1731debfc3dSmrg
1741debfc3dSmrg_LT_CONFIG_LIBTOOL_INIT([
1751debfc3dSmrg# See if we are running on zsh, and set the options which allow our
1761debfc3dSmrg# commands through without removal of \ escapes INIT.
1771debfc3dSmrgif test -n "\${ZSH_VERSION+set}" ; then
1781debfc3dSmrg   setopt NO_GLOB_SUBST
1791debfc3dSmrgfi
1801debfc3dSmrg])
1811debfc3dSmrgif test -n "${ZSH_VERSION+set}" ; then
1821debfc3dSmrg   setopt NO_GLOB_SUBST
1831debfc3dSmrgfi
1841debfc3dSmrg
1851debfc3dSmrg_LT_CHECK_OBJDIR
1861debfc3dSmrg
1871debfc3dSmrgm4_require([_LT_TAG_COMPILER])dnl
1881debfc3dSmrg
1891debfc3dSmrgcase $host_os in
1901debfc3dSmrgaix3*)
1911debfc3dSmrg  # AIX sometimes has problems with the GCC collect2 program.  For some
1921debfc3dSmrg  # reason, if we set the COLLECT_NAMES environment variable, the problems
1931debfc3dSmrg  # vanish in a puff of smoke.
1941debfc3dSmrg  if test "X${COLLECT_NAMES+set}" != Xset; then
1951debfc3dSmrg    COLLECT_NAMES=
1961debfc3dSmrg    export COLLECT_NAMES
1971debfc3dSmrg  fi
1981debfc3dSmrg  ;;
1991debfc3dSmrgesac
2001debfc3dSmrg
2011debfc3dSmrg# Global variables:
2021debfc3dSmrgofile=libtool
2031debfc3dSmrgcan_build_shared=yes
2041debfc3dSmrg
2051debfc3dSmrg# All known linkers require a `.a' archive for static linking (except MSVC,
2061debfc3dSmrg# which needs '.lib').
2071debfc3dSmrglibext=a
2081debfc3dSmrg
2091debfc3dSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld"
2101debfc3dSmrg
2111debfc3dSmrgold_CC="$CC"
2121debfc3dSmrgold_CFLAGS="$CFLAGS"
2131debfc3dSmrg
2141debfc3dSmrg# Set sane defaults for various variables
2151debfc3dSmrgtest -z "$CC" && CC=cc
2161debfc3dSmrgtest -z "$LTCC" && LTCC=$CC
2171debfc3dSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
2181debfc3dSmrgtest -z "$LD" && LD=ld
2191debfc3dSmrgtest -z "$ac_objext" && ac_objext=o
2201debfc3dSmrg
2211debfc3dSmrg_LT_CC_BASENAME([$compiler])
2221debfc3dSmrg
2231debfc3dSmrg# Only perform the check for file, if the check method requires it
2241debfc3dSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file
2251debfc3dSmrgcase $deplibs_check_method in
2261debfc3dSmrgfile_magic*)
2271debfc3dSmrg  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2281debfc3dSmrg    _LT_PATH_MAGIC
2291debfc3dSmrg  fi
2301debfc3dSmrg  ;;
2311debfc3dSmrgesac
2321debfc3dSmrg
2331debfc3dSmrg# Use C for the default configuration in the libtool script
2341debfc3dSmrgLT_SUPPORTED_TAG([CC])
2351debfc3dSmrg_LT_LANG_C_CONFIG
2361debfc3dSmrg_LT_LANG_DEFAULT_CONFIG
2371debfc3dSmrg_LT_CONFIG_COMMANDS
2381debfc3dSmrg])# _LT_SETUP
2391debfc3dSmrg
2401debfc3dSmrg
2411debfc3dSmrg# _LT_PREPARE_SED_QUOTE_VARS
2421debfc3dSmrg# --------------------------
2431debfc3dSmrg# Define a few sed substitution that help us do robust quoting.
2441debfc3dSmrgm4_defun([_LT_PREPARE_SED_QUOTE_VARS],
2451debfc3dSmrg[# Backslashify metacharacters that are still active within
2461debfc3dSmrg# double-quoted strings.
2471debfc3dSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
2481debfc3dSmrg
2491debfc3dSmrg# Same as above, but do not quote variable references.
2501debfc3dSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g'
2511debfc3dSmrg
2521debfc3dSmrg# Sed substitution to delay expansion of an escaped shell variable in a
2531debfc3dSmrg# double_quote_subst'ed string.
2541debfc3dSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2551debfc3dSmrg
2561debfc3dSmrg# Sed substitution to delay expansion of an escaped single quote.
2571debfc3dSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2581debfc3dSmrg
2591debfc3dSmrg# Sed substitution to avoid accidental globbing in evaled expressions
2601debfc3dSmrgno_glob_subst='s/\*/\\\*/g'
2611debfc3dSmrg])
2621debfc3dSmrg
2631debfc3dSmrg# _LT_PROG_LTMAIN
2641debfc3dSmrg# ---------------
2651debfc3dSmrg# Note that this code is called both from `configure', and `config.status'
2661debfc3dSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
2671debfc3dSmrg# `config.status' has no value for ac_aux_dir unless we are using Automake,
2681debfc3dSmrg# so we pass a copy along to make sure it has a sensible value anyway.
2691debfc3dSmrgm4_defun([_LT_PROG_LTMAIN],
2701debfc3dSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
2711debfc3dSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
2721debfc3dSmrgltmain="$ac_aux_dir/ltmain.sh"
2731debfc3dSmrg])# _LT_PROG_LTMAIN
2741debfc3dSmrg
2751debfc3dSmrg
2761debfc3dSmrg## ------------------------------------- ##
2771debfc3dSmrg## Accumulate code for creating libtool. ##
2781debfc3dSmrg## ------------------------------------- ##
2791debfc3dSmrg
2801debfc3dSmrg# So that we can recreate a full libtool script including additional
2811debfc3dSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
2821debfc3dSmrg# in macros and then make a single call at the end using the `libtool'
2831debfc3dSmrg# label.
2841debfc3dSmrg
2851debfc3dSmrg
2861debfc3dSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
2871debfc3dSmrg# ----------------------------------------
2881debfc3dSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
2891debfc3dSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT],
2901debfc3dSmrg[m4_ifval([$1],
2911debfc3dSmrg          [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
2921debfc3dSmrg                     [$1
2931debfc3dSmrg])])])
2941debfc3dSmrg
2951debfc3dSmrg# Initialize.
2961debfc3dSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT])
2971debfc3dSmrg
2981debfc3dSmrg
2991debfc3dSmrg# _LT_CONFIG_LIBTOOL([COMMANDS])
3001debfc3dSmrg# ------------------------------
3011debfc3dSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
3021debfc3dSmrgm4_define([_LT_CONFIG_LIBTOOL],
3031debfc3dSmrg[m4_ifval([$1],
3041debfc3dSmrg          [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
3051debfc3dSmrg                     [$1
3061debfc3dSmrg])])])
3071debfc3dSmrg
3081debfc3dSmrg# Initialize.
3091debfc3dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
3101debfc3dSmrg
3111debfc3dSmrg
3121debfc3dSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
3131debfc3dSmrg# -----------------------------------------------------
3141debfc3dSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS],
3151debfc3dSmrg[_LT_CONFIG_LIBTOOL([$1])
3161debfc3dSmrg_LT_CONFIG_LIBTOOL_INIT([$2])
3171debfc3dSmrg])
3181debfc3dSmrg
3191debfc3dSmrg
3201debfc3dSmrg# _LT_FORMAT_COMMENT([COMMENT])
3211debfc3dSmrg# -----------------------------
3221debfc3dSmrg# Add leading comment marks to the start of each line, and a trailing
3231debfc3dSmrg# full-stop to the whole comment if one is not present already.
3241debfc3dSmrgm4_define([_LT_FORMAT_COMMENT],
3251debfc3dSmrg[m4_ifval([$1], [
3261debfc3dSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
3271debfc3dSmrg              [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
3281debfc3dSmrg)])
3291debfc3dSmrg
3301debfc3dSmrg
3311debfc3dSmrg
3321debfc3dSmrg## ------------------------ ##
3331debfc3dSmrg## FIXME: Eliminate VARNAME ##
3341debfc3dSmrg## ------------------------ ##
3351debfc3dSmrg
3361debfc3dSmrg
3371debfc3dSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
3381debfc3dSmrg# -------------------------------------------------------------------
3391debfc3dSmrg# CONFIGNAME is the name given to the value in the libtool script.
3401debfc3dSmrg# VARNAME is the (base) name used in the configure script.
3411debfc3dSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
3421debfc3dSmrg# VARNAME.  Any other value will be used directly.
3431debfc3dSmrgm4_define([_LT_DECL],
3441debfc3dSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
3451debfc3dSmrg    [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
3461debfc3dSmrg	[m4_ifval([$1], [$1], [$2])])
3471debfc3dSmrg    lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
3481debfc3dSmrg    m4_ifval([$4],
3491debfc3dSmrg	[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
3501debfc3dSmrg    lt_dict_add_subkey([lt_decl_dict], [$2],
3511debfc3dSmrg	[tagged?], [m4_ifval([$5], [yes], [no])])])
3521debfc3dSmrg])
3531debfc3dSmrg
3541debfc3dSmrg
3551debfc3dSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
3561debfc3dSmrg# --------------------------------------------------------
3571debfc3dSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
3581debfc3dSmrg
3591debfc3dSmrg
3601debfc3dSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
3611debfc3dSmrg# ------------------------------------------------
3621debfc3dSmrgm4_define([lt_decl_tag_varnames],
3631debfc3dSmrg[_lt_decl_filter([tagged?], [yes], $@)])
3641debfc3dSmrg
3651debfc3dSmrg
3661debfc3dSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
3671debfc3dSmrg# ---------------------------------------------------------
3681debfc3dSmrgm4_define([_lt_decl_filter],
3691debfc3dSmrg[m4_case([$#],
3701debfc3dSmrg  [0], [m4_fatal([$0: too few arguments: $#])],
3711debfc3dSmrg  [1], [m4_fatal([$0: too few arguments: $#: $1])],
3721debfc3dSmrg  [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
3731debfc3dSmrg  [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
3741debfc3dSmrg  [lt_dict_filter([lt_decl_dict], $@)])[]dnl
3751debfc3dSmrg])
3761debfc3dSmrg
3771debfc3dSmrg
3781debfc3dSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
3791debfc3dSmrg# --------------------------------------------------
3801debfc3dSmrgm4_define([lt_decl_quote_varnames],
3811debfc3dSmrg[_lt_decl_filter([value], [1], $@)])
3821debfc3dSmrg
3831debfc3dSmrg
3841debfc3dSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
3851debfc3dSmrg# ---------------------------------------------------
3861debfc3dSmrgm4_define([lt_decl_dquote_varnames],
3871debfc3dSmrg[_lt_decl_filter([value], [2], $@)])
3881debfc3dSmrg
3891debfc3dSmrg
3901debfc3dSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
3911debfc3dSmrg# ---------------------------------------------------
3921debfc3dSmrgm4_define([lt_decl_varnames_tagged],
3931debfc3dSmrg[m4_assert([$# <= 2])dnl
3941debfc3dSmrg_$0(m4_quote(m4_default([$1], [[, ]])),
3951debfc3dSmrg    m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
3961debfc3dSmrg    m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
3971debfc3dSmrgm4_define([_lt_decl_varnames_tagged],
3981debfc3dSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
3991debfc3dSmrg
4001debfc3dSmrg
4011debfc3dSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
4021debfc3dSmrg# ------------------------------------------------
4031debfc3dSmrgm4_define([lt_decl_all_varnames],
4041debfc3dSmrg[_$0(m4_quote(m4_default([$1], [[, ]])),
4051debfc3dSmrg     m4_if([$2], [],
4061debfc3dSmrg	   m4_quote(lt_decl_varnames),
4071debfc3dSmrg	m4_quote(m4_shift($@))))[]dnl
4081debfc3dSmrg])
4091debfc3dSmrgm4_define([_lt_decl_all_varnames],
4101debfc3dSmrg[lt_join($@, lt_decl_varnames_tagged([$1],
4111debfc3dSmrg			lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
4121debfc3dSmrg])
4131debfc3dSmrg
4141debfc3dSmrg
4151debfc3dSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME])
4161debfc3dSmrg# ------------------------------------
4171debfc3dSmrg# Quote a variable value, and forward it to `config.status' so that its
4181debfc3dSmrg# declaration there will have the same value as in `configure'.  VARNAME
4191debfc3dSmrg# must have a single quote delimited value for this to work.
4201debfc3dSmrgm4_define([_LT_CONFIG_STATUS_DECLARE],
4211debfc3dSmrg[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
4221debfc3dSmrg
4231debfc3dSmrg
4241debfc3dSmrg# _LT_CONFIG_STATUS_DECLARATIONS
4251debfc3dSmrg# ------------------------------
4261debfc3dSmrg# We delimit libtool config variables with single quotes, so when
4271debfc3dSmrg# we write them to config.status, we have to be sure to quote all
4281debfc3dSmrg# embedded single quotes properly.  In configure, this macro expands
4291debfc3dSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
4301debfc3dSmrg#
4311debfc3dSmrg#    <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
4321debfc3dSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
4331debfc3dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
4341debfc3dSmrg    [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
4351debfc3dSmrg
4361debfc3dSmrg
4371debfc3dSmrg# _LT_LIBTOOL_TAGS
4381debfc3dSmrg# ----------------
4391debfc3dSmrg# Output comment and list of tags supported by the script
4401debfc3dSmrgm4_defun([_LT_LIBTOOL_TAGS],
4411debfc3dSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
4421debfc3dSmrgavailable_tags="_LT_TAGS"dnl
4431debfc3dSmrg])
4441debfc3dSmrg
4451debfc3dSmrg
4461debfc3dSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
4471debfc3dSmrg# -----------------------------------
4481debfc3dSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and
4491debfc3dSmrg# expand to a commented shell variable setting:
4501debfc3dSmrg#
4511debfc3dSmrg#    # Some comment about what VAR is for.
4521debfc3dSmrg#    visible_name=$lt_internal_name
4531debfc3dSmrgm4_define([_LT_LIBTOOL_DECLARE],
4541debfc3dSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
4551debfc3dSmrg					   [description])))[]dnl
4561debfc3dSmrgm4_pushdef([_libtool_name],
4571debfc3dSmrg    m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
4581debfc3dSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
4591debfc3dSmrg    [0], [_libtool_name=[$]$1],
4601debfc3dSmrg    [1], [_libtool_name=$lt_[]$1],
4611debfc3dSmrg    [2], [_libtool_name=$lt_[]$1],
4621debfc3dSmrg    [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
4631debfc3dSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
4641debfc3dSmrg])
4651debfc3dSmrg
4661debfc3dSmrg
4671debfc3dSmrg# _LT_LIBTOOL_CONFIG_VARS
4681debfc3dSmrg# -----------------------
4691debfc3dSmrg# Produce commented declarations of non-tagged libtool config variables
4701debfc3dSmrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
4711debfc3dSmrg# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
4721debfc3dSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS.
4731debfc3dSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS],
4741debfc3dSmrg[m4_foreach([_lt_var],
4751debfc3dSmrg    m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
4761debfc3dSmrg    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
4771debfc3dSmrg
4781debfc3dSmrg
4791debfc3dSmrg# _LT_LIBTOOL_TAG_VARS(TAG)
4801debfc3dSmrg# -------------------------
4811debfc3dSmrgm4_define([_LT_LIBTOOL_TAG_VARS],
4821debfc3dSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
4831debfc3dSmrg    [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
4841debfc3dSmrg
4851debfc3dSmrg
4861debfc3dSmrg# _LT_TAGVAR(VARNAME, [TAGNAME])
4871debfc3dSmrg# ------------------------------
4881debfc3dSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
4891debfc3dSmrg
4901debfc3dSmrg
4911debfc3dSmrg# _LT_CONFIG_COMMANDS
4921debfc3dSmrg# -------------------
4931debfc3dSmrg# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
4941debfc3dSmrg# variables for single and double quote escaping we saved from calls
4951debfc3dSmrg# to _LT_DECL, we can put quote escaped variables declarations
4961debfc3dSmrg# into `config.status', and then the shell code to quote escape them in
4971debfc3dSmrg# for loops in `config.status'.  Finally, any additional code accumulated
4981debfc3dSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
4991debfc3dSmrgm4_defun([_LT_CONFIG_COMMANDS],
5001debfc3dSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT],
5011debfc3dSmrg	dnl If the libtool generation code has been placed in $CONFIG_LT,
5021debfc3dSmrg	dnl instead of duplicating it all over again into config.status,
5031debfc3dSmrg	dnl then we will have config.status run $CONFIG_LT later, so it
5041debfc3dSmrg	dnl needs to know what name is stored there:
5051debfc3dSmrg        [AC_CONFIG_COMMANDS([libtool],
5061debfc3dSmrg            [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
5071debfc3dSmrg    dnl If the libtool generation code is destined for config.status,
5081debfc3dSmrg    dnl expand the accumulated commands and init code now:
5091debfc3dSmrg    [AC_CONFIG_COMMANDS([libtool],
5101debfc3dSmrg        [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
5111debfc3dSmrg])#_LT_CONFIG_COMMANDS
5121debfc3dSmrg
5131debfc3dSmrg
5141debfc3dSmrg# Initialize.
5151debfc3dSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
5161debfc3dSmrg[
5171debfc3dSmrg
5181debfc3dSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout
5191debfc3dSmrg# if CDPATH is set.
5201debfc3dSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5211debfc3dSmrg
5221debfc3dSmrgsed_quote_subst='$sed_quote_subst'
5231debfc3dSmrgdouble_quote_subst='$double_quote_subst'
5241debfc3dSmrgdelay_variable_subst='$delay_variable_subst'
5251debfc3dSmrg_LT_CONFIG_STATUS_DECLARATIONS
5261debfc3dSmrgLTCC='$LTCC'
5271debfc3dSmrgLTCFLAGS='$LTCFLAGS'
5281debfc3dSmrgcompiler='$compiler_DEFAULT'
5291debfc3dSmrg
5301debfc3dSmrg# A function that is used when there is no print builtin or printf.
5311debfc3dSmrgfunc_fallback_echo ()
5321debfc3dSmrg{
5331debfc3dSmrg  eval 'cat <<_LTECHO_EOF
5341debfc3dSmrg\$[]1
5351debfc3dSmrg_LTECHO_EOF'
5361debfc3dSmrg}
5371debfc3dSmrg
5381debfc3dSmrg# Quote evaled strings.
5391debfc3dSmrgfor var in lt_decl_all_varnames([[ \
5401debfc3dSmrg]], lt_decl_quote_varnames); do
5411debfc3dSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5421debfc3dSmrg    *[[\\\\\\\`\\"\\\$]]*)
5431debfc3dSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
5441debfc3dSmrg      ;;
5451debfc3dSmrg    *)
5461debfc3dSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5471debfc3dSmrg      ;;
5481debfc3dSmrg    esac
5491debfc3dSmrgdone
5501debfc3dSmrg
5511debfc3dSmrg# Double-quote double-evaled strings.
5521debfc3dSmrgfor var in lt_decl_all_varnames([[ \
5531debfc3dSmrg]], lt_decl_dquote_varnames); do
5541debfc3dSmrg    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
5551debfc3dSmrg    *[[\\\\\\\`\\"\\\$]]*)
5561debfc3dSmrg      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
5571debfc3dSmrg      ;;
5581debfc3dSmrg    *)
5591debfc3dSmrg      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
5601debfc3dSmrg      ;;
5611debfc3dSmrg    esac
5621debfc3dSmrgdone
5631debfc3dSmrg
5641debfc3dSmrg_LT_OUTPUT_LIBTOOL_INIT
5651debfc3dSmrg])
5661debfc3dSmrg
5671debfc3dSmrg# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
5681debfc3dSmrg# ------------------------------------
5691debfc3dSmrg# Generate a child script FILE with all initialization necessary to
5701debfc3dSmrg# reuse the environment learned by the parent script, and make the
5711debfc3dSmrg# file executable.  If COMMENT is supplied, it is inserted after the
5721debfc3dSmrg# `#!' sequence but before initialization text begins.  After this
5731debfc3dSmrg# macro, additional text can be appended to FILE to form the body of
5741debfc3dSmrg# the child script.  The macro ends with non-zero status if the
5751debfc3dSmrg# file could not be fully written (such as if the disk is full).
5761debfc3dSmrgm4_ifdef([AS_INIT_GENERATED],
5771debfc3dSmrg[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
5781debfc3dSmrg[m4_defun([_LT_GENERATED_FILE_INIT],
5791debfc3dSmrg[m4_require([AS_PREPARE])]dnl
5801debfc3dSmrg[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
5811debfc3dSmrg[lt_write_fail=0
5821debfc3dSmrgcat >$1 <<_ASEOF || lt_write_fail=1
5831debfc3dSmrg#! $SHELL
5841debfc3dSmrg# Generated by $as_me.
5851debfc3dSmrg$2
5861debfc3dSmrgSHELL=\${CONFIG_SHELL-$SHELL}
5871debfc3dSmrgexport SHELL
5881debfc3dSmrg_ASEOF
5891debfc3dSmrgcat >>$1 <<\_ASEOF || lt_write_fail=1
5901debfc3dSmrgAS_SHELL_SANITIZE
5911debfc3dSmrg_AS_PREPARE
5921debfc3dSmrgexec AS_MESSAGE_FD>&1
5931debfc3dSmrg_ASEOF
5941debfc3dSmrgtest $lt_write_fail = 0 && chmod +x $1[]dnl
5951debfc3dSmrgm4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
5961debfc3dSmrg
5971debfc3dSmrg# LT_OUTPUT
5981debfc3dSmrg# ---------
5991debfc3dSmrg# This macro allows early generation of the libtool script (before
6001debfc3dSmrg# AC_OUTPUT is called), incase it is used in configure for compilation
6011debfc3dSmrg# tests.
6021debfc3dSmrgAC_DEFUN([LT_OUTPUT],
6031debfc3dSmrg[: ${CONFIG_LT=./config.lt}
6041debfc3dSmrgAC_MSG_NOTICE([creating $CONFIG_LT])
6051debfc3dSmrg_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
6061debfc3dSmrg[# Run this file to recreate a libtool stub with the current configuration.])
6071debfc3dSmrg
6081debfc3dSmrgcat >>"$CONFIG_LT" <<\_LTEOF
6091debfc3dSmrglt_cl_silent=false
6101debfc3dSmrgexec AS_MESSAGE_LOG_FD>>config.log
6111debfc3dSmrg{
6121debfc3dSmrg  echo
6131debfc3dSmrg  AS_BOX([Running $as_me.])
6141debfc3dSmrg} >&AS_MESSAGE_LOG_FD
6151debfc3dSmrg
6161debfc3dSmrglt_cl_help="\
6171debfc3dSmrg\`$as_me' creates a local libtool stub from the current configuration,
6181debfc3dSmrgfor use in further configure time tests before the real libtool is
6191debfc3dSmrggenerated.
6201debfc3dSmrg
6211debfc3dSmrgUsage: $[0] [[OPTIONS]]
6221debfc3dSmrg
6231debfc3dSmrg  -h, --help      print this help, then exit
6241debfc3dSmrg  -V, --version   print version number, then exit
6251debfc3dSmrg  -q, --quiet     do not print progress messages
6261debfc3dSmrg  -d, --debug     don't remove temporary files
6271debfc3dSmrg
6281debfc3dSmrgReport bugs to <bug-libtool@gnu.org>."
6291debfc3dSmrg
6301debfc3dSmrglt_cl_version="\
6311debfc3dSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
6321debfc3dSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
6331debfc3dSmrgconfigured by $[0], generated by m4_PACKAGE_STRING.
6341debfc3dSmrg
6351debfc3dSmrgCopyright (C) 2009 Free Software Foundation, Inc.
6361debfc3dSmrgThis config.lt script is free software; the Free Software Foundation
6371debfc3dSmrggives unlimited permision to copy, distribute and modify it."
6381debfc3dSmrg
6391debfc3dSmrgwhile test $[#] != 0
6401debfc3dSmrgdo
6411debfc3dSmrg  case $[1] in
6421debfc3dSmrg    --version | --v* | -V )
6431debfc3dSmrg      echo "$lt_cl_version"; exit 0 ;;
6441debfc3dSmrg    --help | --h* | -h )
6451debfc3dSmrg      echo "$lt_cl_help"; exit 0 ;;
6461debfc3dSmrg    --debug | --d* | -d )
6471debfc3dSmrg      debug=: ;;
6481debfc3dSmrg    --quiet | --q* | --silent | --s* | -q )
6491debfc3dSmrg      lt_cl_silent=: ;;
6501debfc3dSmrg
6511debfc3dSmrg    -*) AC_MSG_ERROR([unrecognized option: $[1]
6521debfc3dSmrgTry \`$[0] --help' for more information.]) ;;
6531debfc3dSmrg
6541debfc3dSmrg    *) AC_MSG_ERROR([unrecognized argument: $[1]
6551debfc3dSmrgTry \`$[0] --help' for more information.]) ;;
6561debfc3dSmrg  esac
6571debfc3dSmrg  shift
6581debfc3dSmrgdone
6591debfc3dSmrg
6601debfc3dSmrgif $lt_cl_silent; then
6611debfc3dSmrg  exec AS_MESSAGE_FD>/dev/null
6621debfc3dSmrgfi
6631debfc3dSmrg_LTEOF
6641debfc3dSmrg
6651debfc3dSmrgcat >>"$CONFIG_LT" <<_LTEOF
6661debfc3dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
6671debfc3dSmrg_LTEOF
6681debfc3dSmrg
6691debfc3dSmrgcat >>"$CONFIG_LT" <<\_LTEOF
6701debfc3dSmrgAC_MSG_NOTICE([creating $ofile])
6711debfc3dSmrg_LT_OUTPUT_LIBTOOL_COMMANDS
6721debfc3dSmrgAS_EXIT(0)
6731debfc3dSmrg_LTEOF
6741debfc3dSmrgchmod +x "$CONFIG_LT"
6751debfc3dSmrg
6761debfc3dSmrg# configure is writing to config.log, but config.lt does its own redirection,
6771debfc3dSmrg# appending to config.log, which fails on DOS, as config.log is still kept
6781debfc3dSmrg# open by configure.  Here we exec the FD to /dev/null, effectively closing
6791debfc3dSmrg# config.log, so it can be properly (re)opened and appended to by config.lt.
6801debfc3dSmrglt_cl_success=:
6811debfc3dSmrgtest "$silent" = yes &&
6821debfc3dSmrg  lt_config_lt_args="$lt_config_lt_args --quiet"
6831debfc3dSmrgexec AS_MESSAGE_LOG_FD>/dev/null
6841debfc3dSmrg$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
6851debfc3dSmrgexec AS_MESSAGE_LOG_FD>>config.log
6861debfc3dSmrg$lt_cl_success || AS_EXIT(1)
6871debfc3dSmrg])# LT_OUTPUT
6881debfc3dSmrg
6891debfc3dSmrg
6901debfc3dSmrg# _LT_CONFIG(TAG)
6911debfc3dSmrg# ---------------
6921debfc3dSmrg# If TAG is the built-in tag, create an initial libtool script with a
6931debfc3dSmrg# default configuration from the untagged config vars.  Otherwise add code
6941debfc3dSmrg# to config.status for appending the configuration named by TAG from the
6951debfc3dSmrg# matching tagged config vars.
6961debfc3dSmrgm4_defun([_LT_CONFIG],
6971debfc3dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6981debfc3dSmrg_LT_CONFIG_SAVE_COMMANDS([
6991debfc3dSmrg  m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
7001debfc3dSmrg  m4_if(_LT_TAG, [C], [
7011debfc3dSmrg    # See if we are running on zsh, and set the options which allow our
7021debfc3dSmrg    # commands through without removal of \ escapes.
7031debfc3dSmrg    if test -n "${ZSH_VERSION+set}" ; then
7041debfc3dSmrg      setopt NO_GLOB_SUBST
7051debfc3dSmrg    fi
7061debfc3dSmrg
7071debfc3dSmrg    cfgfile="${ofile}T"
7081debfc3dSmrg    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
7091debfc3dSmrg    $RM "$cfgfile"
7101debfc3dSmrg
7111debfc3dSmrg    cat <<_LT_EOF >> "$cfgfile"
7121debfc3dSmrg#! $SHELL
7131debfc3dSmrg
7141debfc3dSmrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7151debfc3dSmrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
7161debfc3dSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7171debfc3dSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7181debfc3dSmrg#
7191debfc3dSmrg_LT_COPYING
7201debfc3dSmrg_LT_LIBTOOL_TAGS
7211debfc3dSmrg
7221debfc3dSmrg# ### BEGIN LIBTOOL CONFIG
7231debfc3dSmrg_LT_LIBTOOL_CONFIG_VARS
7241debfc3dSmrg_LT_LIBTOOL_TAG_VARS
7251debfc3dSmrg# ### END LIBTOOL CONFIG
7261debfc3dSmrg
7271debfc3dSmrg_LT_EOF
7281debfc3dSmrg
7291debfc3dSmrg  case $host_os in
7301debfc3dSmrg  aix3*)
7311debfc3dSmrg    cat <<\_LT_EOF >> "$cfgfile"
7321debfc3dSmrg# AIX sometimes has problems with the GCC collect2 program.  For some
7331debfc3dSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems
7341debfc3dSmrg# vanish in a puff of smoke.
7351debfc3dSmrgif test "X${COLLECT_NAMES+set}" != Xset; then
7361debfc3dSmrg  COLLECT_NAMES=
7371debfc3dSmrg  export COLLECT_NAMES
7381debfc3dSmrgfi
7391debfc3dSmrg_LT_EOF
7401debfc3dSmrg    ;;
7411debfc3dSmrg  esac
7421debfc3dSmrg
7431debfc3dSmrg  _LT_PROG_LTMAIN
7441debfc3dSmrg
7451debfc3dSmrg  # We use sed instead of cat because bash on DJGPP gets confused if
7461debfc3dSmrg  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7471debfc3dSmrg  # text mode, it properly converts lines to CR/LF.  This bash problem
7481debfc3dSmrg  # is reportedly fixed, but why not run on old versions too?
7491debfc3dSmrg  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
7501debfc3dSmrg    || (rm -f "$cfgfile"; exit 1)
7511debfc3dSmrg
7521debfc3dSmrg  _LT_PROG_XSI_SHELLFNS
7531debfc3dSmrg
7541debfc3dSmrg  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
7551debfc3dSmrg    || (rm -f "$cfgfile"; exit 1)
7561debfc3dSmrg
7571debfc3dSmrg  mv -f "$cfgfile" "$ofile" ||
7581debfc3dSmrg    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7591debfc3dSmrg  chmod +x "$ofile"
7601debfc3dSmrg],
7611debfc3dSmrg[cat <<_LT_EOF >> "$ofile"
7621debfc3dSmrg
7631debfc3dSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
7641debfc3dSmrgdnl in a comment (ie after a #).
7651debfc3dSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1
7661debfc3dSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG)
7671debfc3dSmrg# ### END LIBTOOL TAG CONFIG: $1
7681debfc3dSmrg_LT_EOF
7691debfc3dSmrg])dnl /m4_if
7701debfc3dSmrg],
7711debfc3dSmrg[m4_if([$1], [], [
7721debfc3dSmrg    PACKAGE='$PACKAGE'
7731debfc3dSmrg    VERSION='$VERSION'
7741debfc3dSmrg    TIMESTAMP='$TIMESTAMP'
7751debfc3dSmrg    RM='$RM'
7761debfc3dSmrg    ofile='$ofile'], [])
7771debfc3dSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS
7781debfc3dSmrg])# _LT_CONFIG
7791debfc3dSmrg
7801debfc3dSmrg
7811debfc3dSmrg# LT_SUPPORTED_TAG(TAG)
7821debfc3dSmrg# ---------------------
7831debfc3dSmrg# Trace this macro to discover what tags are supported by the libtool
7841debfc3dSmrg# --tag option, using:
7851debfc3dSmrg#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
7861debfc3dSmrgAC_DEFUN([LT_SUPPORTED_TAG], [])
7871debfc3dSmrg
7881debfc3dSmrg
7891debfc3dSmrg# C support is built-in for now
7901debfc3dSmrgm4_define([_LT_LANG_C_enabled], [])
7911debfc3dSmrgm4_define([_LT_TAGS], [])
7921debfc3dSmrg
7931debfc3dSmrg
7941debfc3dSmrg# LT_LANG(LANG)
7951debfc3dSmrg# -------------
7961debfc3dSmrg# Enable libtool support for the given language if not already enabled.
7971debfc3dSmrgAC_DEFUN([LT_LANG],
7981debfc3dSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl
7991debfc3dSmrgm4_case([$1],
8001debfc3dSmrg  [C],			[_LT_LANG(C)],
8011debfc3dSmrg  [C++],		[_LT_LANG(CXX)],
8021debfc3dSmrg  [Java],		[_LT_LANG(GCJ)],
8031debfc3dSmrg  [Fortran 77],		[_LT_LANG(F77)],
8041debfc3dSmrg  [Fortran],		[_LT_LANG(FC)],
8051debfc3dSmrg  [Windows Resource],	[_LT_LANG(RC)],
8061debfc3dSmrg  [m4_ifdef([_LT_LANG_]$1[_CONFIG],
8071debfc3dSmrg    [_LT_LANG($1)],
8081debfc3dSmrg    [m4_fatal([$0: unsupported language: "$1"])])])dnl
8091debfc3dSmrg])# LT_LANG
8101debfc3dSmrg
8111debfc3dSmrg
8121debfc3dSmrg# _LT_LANG(LANGNAME)
8131debfc3dSmrg# ------------------
8141debfc3dSmrgm4_defun([_LT_LANG],
8151debfc3dSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [],
8161debfc3dSmrg  [LT_SUPPORTED_TAG([$1])dnl
8171debfc3dSmrg  m4_append([_LT_TAGS], [$1 ])dnl
8181debfc3dSmrg  m4_define([_LT_LANG_]$1[_enabled], [])dnl
8191debfc3dSmrg  _LT_LANG_$1_CONFIG($1)])dnl
8201debfc3dSmrg])# _LT_LANG
8211debfc3dSmrg
8221debfc3dSmrg
8231debfc3dSmrg# _LT_LANG_DEFAULT_CONFIG
8241debfc3dSmrg# -----------------------
8251debfc3dSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG],
8261debfc3dSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX],
8271debfc3dSmrg  [LT_LANG(CXX)],
8281debfc3dSmrg  [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
8291debfc3dSmrg
8301debfc3dSmrgAC_PROVIDE_IFELSE([AC_PROG_F77],
8311debfc3dSmrg  [LT_LANG(F77)],
8321debfc3dSmrg  [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
8331debfc3dSmrg
8341debfc3dSmrgAC_PROVIDE_IFELSE([AC_PROG_FC],
8351debfc3dSmrg  [LT_LANG(FC)],
8361debfc3dSmrg  [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
8371debfc3dSmrg
8381debfc3dSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
8391debfc3dSmrgdnl pulling things in needlessly.
8401debfc3dSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ],
8411debfc3dSmrg  [LT_LANG(GCJ)],
8421debfc3dSmrg  [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
8431debfc3dSmrg    [LT_LANG(GCJ)],
8441debfc3dSmrg    [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
8451debfc3dSmrg      [LT_LANG(GCJ)],
8461debfc3dSmrg      [m4_ifdef([AC_PROG_GCJ],
8471debfc3dSmrg	[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
8481debfc3dSmrg       m4_ifdef([A][M_PROG_GCJ],
8491debfc3dSmrg	[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
8501debfc3dSmrg       m4_ifdef([LT_PROG_GCJ],
8511debfc3dSmrg	[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
8521debfc3dSmrg
8531debfc3dSmrgAC_PROVIDE_IFELSE([LT_PROG_RC],
8541debfc3dSmrg  [LT_LANG(RC)],
8551debfc3dSmrg  [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
8561debfc3dSmrg])# _LT_LANG_DEFAULT_CONFIG
8571debfc3dSmrg
8581debfc3dSmrg# Obsolete macros:
8591debfc3dSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
8601debfc3dSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
8611debfc3dSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
8621debfc3dSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
8631debfc3dSmrgAU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
8641debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
8651debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], [])
8661debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], [])
8671debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], [])
8681debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
8691debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_RC], [])
8701debfc3dSmrg
8711debfc3dSmrg
8721debfc3dSmrg# _LT_TAG_COMPILER
8731debfc3dSmrg# ----------------
8741debfc3dSmrgm4_defun([_LT_TAG_COMPILER],
8751debfc3dSmrg[AC_REQUIRE([AC_PROG_CC])dnl
8761debfc3dSmrg
8771debfc3dSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
8781debfc3dSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
8791debfc3dSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
8801debfc3dSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
8811debfc3dSmrg
8821debfc3dSmrg# If no C compiler was specified, use CC.
8831debfc3dSmrgLTCC=${LTCC-"$CC"}
8841debfc3dSmrg
8851debfc3dSmrg# If no C compiler flags were specified, use CFLAGS.
8861debfc3dSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8871debfc3dSmrg
8881debfc3dSmrg# Allow CC to be a program name with arguments.
8891debfc3dSmrgcompiler=$CC
8901debfc3dSmrg])# _LT_TAG_COMPILER
8911debfc3dSmrg
8921debfc3dSmrg
8931debfc3dSmrg# _LT_COMPILER_BOILERPLATE
8941debfc3dSmrg# ------------------------
8951debfc3dSmrg# Check for compiler boilerplate output or warnings with
8961debfc3dSmrg# the simple compiler test code.
8971debfc3dSmrgm4_defun([_LT_COMPILER_BOILERPLATE],
8981debfc3dSmrg[m4_require([_LT_DECL_SED])dnl
8991debfc3dSmrgac_outfile=conftest.$ac_objext
9001debfc3dSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext
9011debfc3dSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9021debfc3dSmrg_lt_compiler_boilerplate=`cat conftest.err`
9031debfc3dSmrg$RM conftest*
9041debfc3dSmrg])# _LT_COMPILER_BOILERPLATE
9051debfc3dSmrg
9061debfc3dSmrg
9071debfc3dSmrg# _LT_LINKER_BOILERPLATE
9081debfc3dSmrg# ----------------------
9091debfc3dSmrg# Check for linker boilerplate output or warnings with
9101debfc3dSmrg# the simple link test code.
9111debfc3dSmrgm4_defun([_LT_LINKER_BOILERPLATE],
9121debfc3dSmrg[m4_require([_LT_DECL_SED])dnl
9131debfc3dSmrgac_outfile=conftest.$ac_objext
9141debfc3dSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext
9151debfc3dSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9161debfc3dSmrg_lt_linker_boilerplate=`cat conftest.err`
9171debfc3dSmrg$RM -r conftest*
9181debfc3dSmrg])# _LT_LINKER_BOILERPLATE
9191debfc3dSmrg
9201debfc3dSmrg# _LT_REQUIRED_DARWIN_CHECKS
9211debfc3dSmrg# -------------------------
9221debfc3dSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
9231debfc3dSmrg  case $host_os in
9241debfc3dSmrg    rhapsody* | darwin*)
9251debfc3dSmrg    AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
9261debfc3dSmrg    AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
9271debfc3dSmrg    AC_CHECK_TOOL([LIPO], [lipo], [:])
9281debfc3dSmrg    AC_CHECK_TOOL([OTOOL], [otool], [:])
9291debfc3dSmrg    AC_CHECK_TOOL([OTOOL64], [otool64], [:])
9301debfc3dSmrg    _LT_DECL([], [DSYMUTIL], [1],
9311debfc3dSmrg      [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
9321debfc3dSmrg    _LT_DECL([], [NMEDIT], [1],
9331debfc3dSmrg      [Tool to change global to local symbols on Mac OS X])
9341debfc3dSmrg    _LT_DECL([], [LIPO], [1],
9351debfc3dSmrg      [Tool to manipulate fat objects and archives on Mac OS X])
9361debfc3dSmrg    _LT_DECL([], [OTOOL], [1],
9371debfc3dSmrg      [ldd/readelf like tool for Mach-O binaries on Mac OS X])
9381debfc3dSmrg    _LT_DECL([], [OTOOL64], [1],
9391debfc3dSmrg      [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
9401debfc3dSmrg
9411debfc3dSmrg    AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
9421debfc3dSmrg      [lt_cv_apple_cc_single_mod=no
9431debfc3dSmrg      if test -z "${LT_MULTI_MODULE}"; then
9441debfc3dSmrg	# By default we will add the -single_module flag. You can override
9451debfc3dSmrg	# by either setting the environment variable LT_MULTI_MODULE
9461debfc3dSmrg	# non-empty at configure time, or by adding -multi_module to the
9471debfc3dSmrg	# link flags.
9481debfc3dSmrg	rm -rf libconftest.dylib*
9491debfc3dSmrg	echo "int foo(void){return 1;}" > conftest.c
9501debfc3dSmrg	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9511debfc3dSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
9521debfc3dSmrg	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9531debfc3dSmrg	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9541debfc3dSmrg        _lt_result=$?
9551debfc3dSmrg	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9561debfc3dSmrg	  lt_cv_apple_cc_single_mod=yes
9571debfc3dSmrg	else
9581debfc3dSmrg	  cat conftest.err >&AS_MESSAGE_LOG_FD
9591debfc3dSmrg	fi
9601debfc3dSmrg	rm -rf libconftest.dylib*
9611debfc3dSmrg	rm -f conftest.*
9621debfc3dSmrg      fi])
9631debfc3dSmrg    AC_CACHE_CHECK([for -exported_symbols_list linker flag],
9641debfc3dSmrg      [lt_cv_ld_exported_symbols_list],
9651debfc3dSmrg      [lt_cv_ld_exported_symbols_list=no
9661debfc3dSmrg      save_LDFLAGS=$LDFLAGS
9671debfc3dSmrg      echo "_main" > conftest.sym
9681debfc3dSmrg      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9691debfc3dSmrg      AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
9701debfc3dSmrg	[lt_cv_ld_exported_symbols_list=yes],
9711debfc3dSmrg	[lt_cv_ld_exported_symbols_list=no])
9721debfc3dSmrg	LDFLAGS="$save_LDFLAGS"
9731debfc3dSmrg    ])
9741debfc3dSmrg    AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
9751debfc3dSmrg      [lt_cv_ld_force_load=no
9761debfc3dSmrg      cat > conftest.c << _LT_EOF
9771debfc3dSmrgint forced_loaded() { return 2;}
9781debfc3dSmrg_LT_EOF
9791debfc3dSmrg      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
9801debfc3dSmrg      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
9811debfc3dSmrg      echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
9821debfc3dSmrg      $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
9831debfc3dSmrg      cat > conftest.c << _LT_EOF
9841debfc3dSmrgint main() { return 0;}
9851debfc3dSmrg_LT_EOF
9861debfc3dSmrg      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
9871debfc3dSmrg      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9881debfc3dSmrg      _lt_result=$?
9891debfc3dSmrg      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9901debfc3dSmrg	lt_cv_ld_force_load=yes
9911debfc3dSmrg      else
9921debfc3dSmrg	cat conftest.err >&AS_MESSAGE_LOG_FD
9931debfc3dSmrg      fi
9941debfc3dSmrg        rm -f conftest.err libconftest.a conftest conftest.c
9951debfc3dSmrg        rm -rf conftest.dSYM
9961debfc3dSmrg    ])
997*8feb0f0bSmrg    # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
998*8feb0f0bSmrg    # build without first building modern cctools / linker.
999*8feb0f0bSmrg    case $host_cpu-$host_os in
1000*8feb0f0bSmrg    *-rhapsody* | *-darwin1.[[012]])
10011debfc3dSmrg      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1002*8feb0f0bSmrg    *-darwin1.*)
10031debfc3dSmrg      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1004*8feb0f0bSmrg    *-darwin*)
1005*8feb0f0bSmrg      # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
1006*8feb0f0bSmrg      # deployment target is forced to an earlier version.
1007*8feb0f0bSmrg      case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
1008*8feb0f0bSmrg	UNSET,*-darwin[[89]]*|UNSET,*-darwin[[12]][[0123456789]]*)
1009*8feb0f0bSmrg	  ;;
10101debfc3dSmrg	10.[[012]][[,.]]*)
1011*8feb0f0bSmrg	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
1012*8feb0f0bSmrg	  ;;
1013*8feb0f0bSmrg	*)
1014*8feb0f0bSmrg	  ;;
10151debfc3dSmrg     esac
10161debfc3dSmrg    ;;
10171debfc3dSmrg  esac
10181debfc3dSmrg    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10191debfc3dSmrg      _lt_dar_single_mod='$single_module'
10201debfc3dSmrg    fi
10211debfc3dSmrg    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10221debfc3dSmrg      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10231debfc3dSmrg    else
10241debfc3dSmrg      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10251debfc3dSmrg    fi
10261debfc3dSmrg    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10271debfc3dSmrg      _lt_dsymutil='~$DSYMUTIL $lib || :'
10281debfc3dSmrg    else
10291debfc3dSmrg      _lt_dsymutil=
10301debfc3dSmrg    fi
10311debfc3dSmrg    ;;
10321debfc3dSmrg  esac
10331debfc3dSmrg])
10341debfc3dSmrg
10351debfc3dSmrg
10361debfc3dSmrg# _LT_DARWIN_LINKER_FEATURES
10371debfc3dSmrg# --------------------------
1038*8feb0f0bSmrg# Checks for linker and compiler features on Darwin / macOS / iOS
10391debfc3dSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES],
10401debfc3dSmrg[
10411debfc3dSmrg  m4_require([_LT_REQUIRED_DARWIN_CHECKS])
10421debfc3dSmrg  _LT_TAGVAR(archive_cmds_need_lc, $1)=no
10431debfc3dSmrg  _LT_TAGVAR(hardcode_direct, $1)=no
10441debfc3dSmrg  _LT_TAGVAR(hardcode_automatic, $1)=yes
10451debfc3dSmrg  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
10461debfc3dSmrg  if test "$lt_cv_ld_force_load" = "yes"; then
10471debfc3dSmrg    _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\"`'
10481debfc3dSmrg  else
10491debfc3dSmrg    _LT_TAGVAR(whole_archive_flag_spec, $1)=''
10501debfc3dSmrg  fi
10511debfc3dSmrg  _LT_TAGVAR(link_all_deplibs, $1)=yes
10521debfc3dSmrg  _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
10531debfc3dSmrg  case $cc_basename in
10541debfc3dSmrg     ifort*) _lt_dar_can_shared=yes ;;
10551debfc3dSmrg     *) _lt_dar_can_shared=$GCC ;;
10561debfc3dSmrg  esac
10571debfc3dSmrg  if test "$_lt_dar_can_shared" = "yes"; then
10581debfc3dSmrg    output_verbose_link_cmd=func_echo_all
10591debfc3dSmrg    _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}"
10601debfc3dSmrg    _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10611debfc3dSmrg    _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}"
10621debfc3dSmrg    _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}"
10631debfc3dSmrg    m4_if([$1], [CXX],
10641debfc3dSmrg[   if test "$lt_cv_apple_cc_single_mod" != "yes"; then
10651debfc3dSmrg      _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}"
10661debfc3dSmrg      _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}"
10671debfc3dSmrg    fi
10681debfc3dSmrg],[])
10691debfc3dSmrg  else
10701debfc3dSmrg  _LT_TAGVAR(ld_shlibs, $1)=no
10711debfc3dSmrg  fi
10721debfc3dSmrg])
10731debfc3dSmrg
10741debfc3dSmrg# _LT_SYS_MODULE_PATH_AIX
10751debfc3dSmrg# -----------------------
10761debfc3dSmrg# Links a minimal program and checks the executable
10771debfc3dSmrg# for the system default hardcoded library path. In most cases,
10781debfc3dSmrg# this is /usr/lib:/lib, but when the MPI compilers are used
10791debfc3dSmrg# the location of the communication and MPI libs are included too.
10801debfc3dSmrg# If we don't find anything, use the default library path according
10811debfc3dSmrg# to the aix ld manual.
10821debfc3dSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX],
10831debfc3dSmrg[m4_require([_LT_DECL_SED])dnl
1084c0a68be4SmrgAC_LINK_IFELSE([AC_LANG_SOURCE([AC_LANG_PROGRAM])],[
10851debfc3dSmrglt_aix_libpath_sed='
10861debfc3dSmrg    /Import File Strings/,/^$/ {
10871debfc3dSmrg	/^0/ {
10881debfc3dSmrg	    s/^0  *\(.*\)$/\1/
10891debfc3dSmrg	    p
10901debfc3dSmrg	}
10911debfc3dSmrg    }'
10921debfc3dSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10931debfc3dSmrg# Check for a 64-bit object if we didn't find anything.
10941debfc3dSmrgif test -z "$aix_libpath"; then
10951debfc3dSmrg  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10961debfc3dSmrgfi],[])
10971debfc3dSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10981debfc3dSmrg])# _LT_SYS_MODULE_PATH_AIX
10991debfc3dSmrg
11001debfc3dSmrg
11011debfc3dSmrg# _LT_SHELL_INIT(ARG)
11021debfc3dSmrg# -------------------
11031debfc3dSmrgm4_define([_LT_SHELL_INIT],
11041debfc3dSmrg[m4_divert_text([M4SH-INIT], [$1
11051debfc3dSmrg])])# _LT_SHELL_INIT
11061debfc3dSmrg
11071debfc3dSmrg
11081debfc3dSmrg
11091debfc3dSmrg# _LT_PROG_ECHO_BACKSLASH
11101debfc3dSmrg# -----------------------
11111debfc3dSmrg# Find how we can fake an echo command that does not interpret backslash.
11121debfc3dSmrg# In particular, with Autoconf 2.60 or later we add some code to the start
11131debfc3dSmrg# of the generated configure script which will find a shell with a builtin
11141debfc3dSmrg# printf (which we can use as an echo command).
11151debfc3dSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH],
11161debfc3dSmrg[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11171debfc3dSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11181debfc3dSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11191debfc3dSmrg
11201debfc3dSmrgAC_MSG_CHECKING([how to print strings])
11211debfc3dSmrg# Test print first, because it will be a builtin if present.
11221debfc3dSmrgif test "X`print -r -- -n 2>/dev/null`" = X-n && \
11231debfc3dSmrg   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11241debfc3dSmrg  ECHO='print -r --'
11251debfc3dSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11261debfc3dSmrg  ECHO='printf %s\n'
11271debfc3dSmrgelse
11281debfc3dSmrg  # Use this function as a fallback that always works.
11291debfc3dSmrg  func_fallback_echo ()
11301debfc3dSmrg  {
11311debfc3dSmrg    eval 'cat <<_LTECHO_EOF
11321debfc3dSmrg$[]1
11331debfc3dSmrg_LTECHO_EOF'
11341debfc3dSmrg  }
11351debfc3dSmrg  ECHO='func_fallback_echo'
11361debfc3dSmrgfi
11371debfc3dSmrg
11381debfc3dSmrg# func_echo_all arg...
11391debfc3dSmrg# Invoke $ECHO with all args, space-separated.
11401debfc3dSmrgfunc_echo_all ()
11411debfc3dSmrg{
11421debfc3dSmrg    $ECHO "$*"
11431debfc3dSmrg}
11441debfc3dSmrg
11451debfc3dSmrgcase "$ECHO" in
11461debfc3dSmrg  printf*) AC_MSG_RESULT([printf]) ;;
11471debfc3dSmrg  print*) AC_MSG_RESULT([print -r]) ;;
11481debfc3dSmrg  *) AC_MSG_RESULT([cat]) ;;
11491debfc3dSmrgesac
11501debfc3dSmrg
11511debfc3dSmrgm4_ifdef([_AS_DETECT_SUGGESTED],
11521debfc3dSmrg[_AS_DETECT_SUGGESTED([
11531debfc3dSmrg  test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
11541debfc3dSmrg    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11551debfc3dSmrg    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11561debfc3dSmrg    ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11571debfc3dSmrg    PATH=/empty FPATH=/empty; export PATH FPATH
11581debfc3dSmrg    test "X`printf %s $ECHO`" = "X$ECHO" \
11591debfc3dSmrg      || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
11601debfc3dSmrg
11611debfc3dSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
11621debfc3dSmrg_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
11631debfc3dSmrg])# _LT_PROG_ECHO_BACKSLASH
11641debfc3dSmrg
11651debfc3dSmrg
11661debfc3dSmrg# _LT_ENABLE_LOCK
11671debfc3dSmrg# ---------------
11681debfc3dSmrgm4_defun([_LT_ENABLE_LOCK],
11691debfc3dSmrg[AC_ARG_ENABLE([libtool-lock],
11701debfc3dSmrg  [AS_HELP_STRING([--disable-libtool-lock],
11711debfc3dSmrg    [avoid locking (might break parallel builds)])])
11721debfc3dSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11731debfc3dSmrg
11741debfc3dSmrg# Some flags need to be propagated to the compiler or linker for good
11751debfc3dSmrg# libtool support.
11761debfc3dSmrgcase $host in
11771debfc3dSmrgia64-*-hpux*)
11781debfc3dSmrg  # Find out which ABI we are using.
11791debfc3dSmrg  echo 'int i;' > conftest.$ac_ext
11801debfc3dSmrg  if AC_TRY_EVAL(ac_compile); then
11811debfc3dSmrg    case `/usr/bin/file conftest.$ac_objext` in
11821debfc3dSmrg      *ELF-32*)
11831debfc3dSmrg	HPUX_IA64_MODE="32"
11841debfc3dSmrg	;;
11851debfc3dSmrg      *ELF-64*)
11861debfc3dSmrg	HPUX_IA64_MODE="64"
11871debfc3dSmrg	;;
11881debfc3dSmrg    esac
11891debfc3dSmrg  fi
11901debfc3dSmrg  rm -rf conftest*
11911debfc3dSmrg  ;;
11921debfc3dSmrg*-*-irix6*)
11931debfc3dSmrg  # Find out which ABI we are using.
11941debfc3dSmrg  echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
11951debfc3dSmrg  if AC_TRY_EVAL(ac_compile); then
11961debfc3dSmrg    if test "$lt_cv_prog_gnu_ld" = yes; then
11971debfc3dSmrg      case `/usr/bin/file conftest.$ac_objext` in
11981debfc3dSmrg	*32-bit*)
11991debfc3dSmrg	  LD="${LD-ld} -melf32bsmip"
12001debfc3dSmrg	  ;;
12011debfc3dSmrg	*N32*)
12021debfc3dSmrg	  LD="${LD-ld} -melf32bmipn32"
12031debfc3dSmrg	  ;;
12041debfc3dSmrg	*64-bit*)
12051debfc3dSmrg	  LD="${LD-ld} -melf64bmip"
12061debfc3dSmrg	;;
12071debfc3dSmrg      esac
12081debfc3dSmrg    else
12091debfc3dSmrg      case `/usr/bin/file conftest.$ac_objext` in
12101debfc3dSmrg	*32-bit*)
12111debfc3dSmrg	  LD="${LD-ld} -32"
12121debfc3dSmrg	  ;;
12131debfc3dSmrg	*N32*)
12141debfc3dSmrg	  LD="${LD-ld} -n32"
12151debfc3dSmrg	  ;;
12161debfc3dSmrg	*64-bit*)
12171debfc3dSmrg	  LD="${LD-ld} -64"
12181debfc3dSmrg	  ;;
12191debfc3dSmrg      esac
12201debfc3dSmrg    fi
12211debfc3dSmrg  fi
12221debfc3dSmrg  rm -rf conftest*
12231debfc3dSmrg  ;;
12241debfc3dSmrg
12251debfc3dSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
12261debfc3dSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12271debfc3dSmrg  # Find out which ABI we are using.
12281debfc3dSmrg  echo 'int i;' > conftest.$ac_ext
12291debfc3dSmrg  if AC_TRY_EVAL(ac_compile); then
12301debfc3dSmrg    case `/usr/bin/file conftest.o` in
12311debfc3dSmrg      *32-bit*)
12321debfc3dSmrg	case $host in
12331debfc3dSmrg	  x86_64-*kfreebsd*-gnu)
12341debfc3dSmrg	    LD="${LD-ld} -m elf_i386_fbsd"
12351debfc3dSmrg	    ;;
12361debfc3dSmrg	  x86_64-*linux*)
12371debfc3dSmrg	    case `/usr/bin/file conftest.o` in
12381debfc3dSmrg	      *x86-64*)
12391debfc3dSmrg		LD="${LD-ld} -m elf32_x86_64"
12401debfc3dSmrg		;;
12411debfc3dSmrg	      *)
12421debfc3dSmrg		LD="${LD-ld} -m elf_i386"
12431debfc3dSmrg		;;
12441debfc3dSmrg	    esac
12451debfc3dSmrg	    ;;
12461debfc3dSmrg	  powerpc64le-*linux*)
12471debfc3dSmrg	    LD="${LD-ld} -m elf32lppclinux"
12481debfc3dSmrg	    ;;
12491debfc3dSmrg	  powerpc64-*linux*)
12501debfc3dSmrg	    LD="${LD-ld} -m elf32ppclinux"
12511debfc3dSmrg	    ;;
12521debfc3dSmrg	  s390x-*linux*)
12531debfc3dSmrg	    LD="${LD-ld} -m elf_s390"
12541debfc3dSmrg	    ;;
12551debfc3dSmrg	  sparc64-*linux*)
12561debfc3dSmrg	    LD="${LD-ld} -m elf32_sparc"
12571debfc3dSmrg	    ;;
12581debfc3dSmrg	esac
12591debfc3dSmrg	;;
12601debfc3dSmrg      *64-bit*)
12611debfc3dSmrg	case $host in
12621debfc3dSmrg	  x86_64-*kfreebsd*-gnu)
12631debfc3dSmrg	    LD="${LD-ld} -m elf_x86_64_fbsd"
12641debfc3dSmrg	    ;;
12651debfc3dSmrg	  x86_64-*linux*)
12661debfc3dSmrg	    LD="${LD-ld} -m elf_x86_64"
12671debfc3dSmrg	    ;;
12681debfc3dSmrg	  powerpcle-*linux*)
12691debfc3dSmrg	    LD="${LD-ld} -m elf64lppc"
12701debfc3dSmrg	    ;;
12711debfc3dSmrg	  powerpc-*linux*)
12721debfc3dSmrg	    LD="${LD-ld} -m elf64ppc"
12731debfc3dSmrg	    ;;
12741debfc3dSmrg	  s390*-*linux*|s390*-*tpf*)
12751debfc3dSmrg	    LD="${LD-ld} -m elf64_s390"
12761debfc3dSmrg	    ;;
12771debfc3dSmrg	  sparc*-*linux*)
12781debfc3dSmrg	    LD="${LD-ld} -m elf64_sparc"
12791debfc3dSmrg	    ;;
12801debfc3dSmrg	esac
12811debfc3dSmrg	;;
12821debfc3dSmrg    esac
12831debfc3dSmrg  fi
12841debfc3dSmrg  rm -rf conftest*
12851debfc3dSmrg  ;;
12861debfc3dSmrg
12871debfc3dSmrg*-*-sco3.2v5*)
12881debfc3dSmrg  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12891debfc3dSmrg  SAVE_CFLAGS="$CFLAGS"
12901debfc3dSmrg  CFLAGS="$CFLAGS -belf"
12911debfc3dSmrg  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
12921debfc3dSmrg    [AC_LANG_PUSH(C)
12931debfc3dSmrg     AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
12941debfc3dSmrg     AC_LANG_POP])
12951debfc3dSmrg  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12961debfc3dSmrg    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12971debfc3dSmrg    CFLAGS="$SAVE_CFLAGS"
12981debfc3dSmrg  fi
12991debfc3dSmrg  ;;
13001debfc3dSmrgsparc*-*solaris*)
13011debfc3dSmrg  # Find out which ABI we are using.
13021debfc3dSmrg  echo 'int i;' > conftest.$ac_ext
13031debfc3dSmrg  if AC_TRY_EVAL(ac_compile); then
13041debfc3dSmrg    case `/usr/bin/file conftest.o` in
13051debfc3dSmrg    *64-bit*)
13061debfc3dSmrg      case $lt_cv_prog_gnu_ld in
13071debfc3dSmrg      yes*) LD="${LD-ld} -m elf64_sparc" ;;
13081debfc3dSmrg      *)
13091debfc3dSmrg	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13101debfc3dSmrg	  LD="${LD-ld} -64"
13111debfc3dSmrg	fi
13121debfc3dSmrg	;;
13131debfc3dSmrg      esac
13141debfc3dSmrg      ;;
13151debfc3dSmrg    esac
13161debfc3dSmrg  fi
13171debfc3dSmrg  rm -rf conftest*
13181debfc3dSmrg  ;;
13191debfc3dSmrgesac
13201debfc3dSmrg
13211debfc3dSmrgneed_locks="$enable_libtool_lock"
13221debfc3dSmrg])# _LT_ENABLE_LOCK
13231debfc3dSmrg
13241debfc3dSmrg
13251debfc3dSmrg# _LT_CMD_OLD_ARCHIVE
13261debfc3dSmrg# -------------------
13271debfc3dSmrgm4_defun([_LT_CMD_OLD_ARCHIVE],
13281debfc3dSmrg[AC_CHECK_TOOL(AR, ar, false)
13291debfc3dSmrgtest -z "$AR" && AR=ar
13301debfc3dSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru
13311debfc3dSmrg_LT_DECL([], [AR], [1], [The archiver])
13321debfc3dSmrg_LT_DECL([], [AR_FLAGS], [1])
13331debfc3dSmrg
13341debfc3dSmrgAC_CHECK_TOOL(STRIP, strip, :)
13351debfc3dSmrgtest -z "$STRIP" && STRIP=:
13361debfc3dSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program])
13371debfc3dSmrg
13381debfc3dSmrgAC_CHECK_TOOL(RANLIB, ranlib, :)
13391debfc3dSmrgtest -z "$RANLIB" && RANLIB=:
13401debfc3dSmrg_LT_DECL([], [RANLIB], [1],
13411debfc3dSmrg    [Commands used to install an old-style archive])
13421debfc3dSmrg
13431debfc3dSmrg# Determine commands to create old-style static archives.
13441debfc3dSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13451debfc3dSmrgold_postinstall_cmds='chmod 644 $oldlib'
13461debfc3dSmrgold_postuninstall_cmds=
13471debfc3dSmrg
13481debfc3dSmrgif test -n "$RANLIB"; then
13491debfc3dSmrg  case $host_os in
13501debfc3dSmrg  openbsd*)
13511debfc3dSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13521debfc3dSmrg    ;;
13531debfc3dSmrg  *)
13541debfc3dSmrg    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13551debfc3dSmrg    ;;
13561debfc3dSmrg  esac
13571debfc3dSmrg  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13581debfc3dSmrgfi
13591debfc3dSmrg
13601debfc3dSmrgcase $host_os in
13611debfc3dSmrg  darwin*)
13621debfc3dSmrg    lock_old_archive_extraction=yes ;;
13631debfc3dSmrg  *)
13641debfc3dSmrg    lock_old_archive_extraction=no ;;
13651debfc3dSmrgesac
13661debfc3dSmrg_LT_DECL([], [old_postinstall_cmds], [2])
13671debfc3dSmrg_LT_DECL([], [old_postuninstall_cmds], [2])
13681debfc3dSmrg_LT_TAGDECL([], [old_archive_cmds], [2],
13691debfc3dSmrg    [Commands used to build an old-style archive])
13701debfc3dSmrg_LT_DECL([], [lock_old_archive_extraction], [0],
13711debfc3dSmrg    [Whether to use a lock for old archive extraction])
13721debfc3dSmrg])# _LT_CMD_OLD_ARCHIVE
13731debfc3dSmrg
13741debfc3dSmrg
13751debfc3dSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
13761debfc3dSmrg#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
13771debfc3dSmrg# ----------------------------------------------------------------
13781debfc3dSmrg# Check whether the given compiler option works
13791debfc3dSmrgAC_DEFUN([_LT_COMPILER_OPTION],
13801debfc3dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
13811debfc3dSmrgm4_require([_LT_DECL_SED])dnl
13821debfc3dSmrgAC_CACHE_CHECK([$1], [$2],
13831debfc3dSmrg  [$2=no
13841debfc3dSmrg   m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
13851debfc3dSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13861debfc3dSmrg   lt_compiler_flag="$3"
13871debfc3dSmrg   # Insert the option either (1) after the last *FLAGS variable, or
13881debfc3dSmrg   # (2) before a word containing "conftest.", or (3) at the end.
13891debfc3dSmrg   # Note that $ac_compile itself does not contain backslashes and begins
13901debfc3dSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
13911debfc3dSmrg   # The option is referenced via a variable to avoid confusing sed.
13921debfc3dSmrg   lt_compile=`echo "$ac_compile" | $SED \
13931debfc3dSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13941debfc3dSmrg   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
13951debfc3dSmrg   -e 's:$: $lt_compiler_flag:'`
13961debfc3dSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
13971debfc3dSmrg   (eval "$lt_compile" 2>conftest.err)
13981debfc3dSmrg   ac_status=$?
13991debfc3dSmrg   cat conftest.err >&AS_MESSAGE_LOG_FD
14001debfc3dSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
14011debfc3dSmrg   if (exit $ac_status) && test -s "$ac_outfile"; then
14021debfc3dSmrg     # The compiler can only warn and ignore the option if not recognized
14031debfc3dSmrg     # So say no if there are warnings other than the usual output.
14041debfc3dSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14051debfc3dSmrg     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14061debfc3dSmrg     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14071debfc3dSmrg       $2=yes
14081debfc3dSmrg     fi
14091debfc3dSmrg   fi
14101debfc3dSmrg   $RM conftest*
14111debfc3dSmrg])
14121debfc3dSmrg
14131debfc3dSmrgif test x"[$]$2" = xyes; then
14141debfc3dSmrg    m4_if([$5], , :, [$5])
14151debfc3dSmrgelse
14161debfc3dSmrg    m4_if([$6], , :, [$6])
14171debfc3dSmrgfi
14181debfc3dSmrg])# _LT_COMPILER_OPTION
14191debfc3dSmrg
14201debfc3dSmrg# Old name:
14211debfc3dSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
14221debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
14231debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
14241debfc3dSmrg
14251debfc3dSmrg
14261debfc3dSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
14271debfc3dSmrg#                  [ACTION-SUCCESS], [ACTION-FAILURE])
14281debfc3dSmrg# ----------------------------------------------------
14291debfc3dSmrg# Check whether the given linker option works
14301debfc3dSmrgAC_DEFUN([_LT_LINKER_OPTION],
14311debfc3dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
14321debfc3dSmrgm4_require([_LT_DECL_SED])dnl
14331debfc3dSmrgAC_CACHE_CHECK([$1], [$2],
14341debfc3dSmrg  [$2=no
14351debfc3dSmrg   save_LDFLAGS="$LDFLAGS"
14361debfc3dSmrg   LDFLAGS="$LDFLAGS $3"
14371debfc3dSmrg   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14381debfc3dSmrg   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14391debfc3dSmrg     # The linker can only warn and ignore the option if not recognized
14401debfc3dSmrg     # So say no if there are warnings
14411debfc3dSmrg     if test -s conftest.err; then
14421debfc3dSmrg       # Append any errors to the config.log.
14431debfc3dSmrg       cat conftest.err 1>&AS_MESSAGE_LOG_FD
14441debfc3dSmrg       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14451debfc3dSmrg       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14461debfc3dSmrg       if diff conftest.exp conftest.er2 >/dev/null; then
14471debfc3dSmrg         $2=yes
14481debfc3dSmrg       fi
14491debfc3dSmrg     else
14501debfc3dSmrg       $2=yes
14511debfc3dSmrg     fi
14521debfc3dSmrg   fi
14531debfc3dSmrg   $RM -r conftest*
14541debfc3dSmrg   LDFLAGS="$save_LDFLAGS"
14551debfc3dSmrg])
14561debfc3dSmrg
14571debfc3dSmrgif test x"[$]$2" = xyes; then
14581debfc3dSmrg    m4_if([$4], , :, [$4])
14591debfc3dSmrgelse
14601debfc3dSmrg    m4_if([$5], , :, [$5])
14611debfc3dSmrgfi
14621debfc3dSmrg])# _LT_LINKER_OPTION
14631debfc3dSmrg
14641debfc3dSmrg# Old name:
14651debfc3dSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
14661debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
14671debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
14681debfc3dSmrg
14691debfc3dSmrg
14701debfc3dSmrg# LT_CMD_MAX_LEN
14711debfc3dSmrg#---------------
14721debfc3dSmrgAC_DEFUN([LT_CMD_MAX_LEN],
14731debfc3dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl
14741debfc3dSmrg# find the maximum length of command line arguments
14751debfc3dSmrgAC_MSG_CHECKING([the maximum length of command line arguments])
14761debfc3dSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
14771debfc3dSmrg  i=0
14781debfc3dSmrg  teststring="ABCD"
14791debfc3dSmrg
14801debfc3dSmrg  case $build_os in
14811debfc3dSmrg  msdosdjgpp*)
14821debfc3dSmrg    # On DJGPP, this test can blow up pretty badly due to problems in libc
14831debfc3dSmrg    # (any single argument exceeding 2000 bytes causes a buffer overrun
14841debfc3dSmrg    # during glob expansion).  Even if it were fixed, the result of this
14851debfc3dSmrg    # check would be larger than it should be.
14861debfc3dSmrg    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
14871debfc3dSmrg    ;;
14881debfc3dSmrg
14891debfc3dSmrg  gnu*)
14901debfc3dSmrg    # Under GNU Hurd, this test is not required because there is
14911debfc3dSmrg    # no limit to the length of command line arguments.
14921debfc3dSmrg    # Libtool will interpret -1 as no limit whatsoever
14931debfc3dSmrg    lt_cv_sys_max_cmd_len=-1;
14941debfc3dSmrg    ;;
14951debfc3dSmrg
14961debfc3dSmrg  cygwin* | mingw* | cegcc*)
14971debfc3dSmrg    # On Win9x/ME, this test blows up -- it succeeds, but takes
14981debfc3dSmrg    # about 5 minutes as the teststring grows exponentially.
14991debfc3dSmrg    # Worse, since 9x/ME are not pre-emptively multitasking,
15001debfc3dSmrg    # you end up with a "frozen" computer, even though with patience
15011debfc3dSmrg    # the test eventually succeeds (with a max line length of 256k).
15021debfc3dSmrg    # Instead, let's just punt: use the minimum linelength reported by
15031debfc3dSmrg    # all of the supported platforms: 8192 (on NT/2K/XP).
15041debfc3dSmrg    lt_cv_sys_max_cmd_len=8192;
15051debfc3dSmrg    ;;
15061debfc3dSmrg
15071debfc3dSmrg  mint*)
15081debfc3dSmrg    # On MiNT this can take a long time and run out of memory.
15091debfc3dSmrg    lt_cv_sys_max_cmd_len=8192;
15101debfc3dSmrg    ;;
15111debfc3dSmrg
15121debfc3dSmrg  amigaos*)
15131debfc3dSmrg    # On AmigaOS with pdksh, this test takes hours, literally.
15141debfc3dSmrg    # So we just punt and use a minimum line length of 8192.
15151debfc3dSmrg    lt_cv_sys_max_cmd_len=8192;
15161debfc3dSmrg    ;;
15171debfc3dSmrg
15181debfc3dSmrg  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
15191debfc3dSmrg    # This has been around since 386BSD, at least.  Likely further.
15201debfc3dSmrg    if test -x /sbin/sysctl; then
15211debfc3dSmrg      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
15221debfc3dSmrg    elif test -x /usr/sbin/sysctl; then
15231debfc3dSmrg      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
15241debfc3dSmrg    else
15251debfc3dSmrg      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
15261debfc3dSmrg    fi
15271debfc3dSmrg    # And add a safety zone
15281debfc3dSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15291debfc3dSmrg    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15301debfc3dSmrg    ;;
15311debfc3dSmrg
15321debfc3dSmrg  interix*)
15331debfc3dSmrg    # We know the value 262144 and hardcode it with a safety zone (like BSD)
15341debfc3dSmrg    lt_cv_sys_max_cmd_len=196608
15351debfc3dSmrg    ;;
15361debfc3dSmrg
15371debfc3dSmrg  osf*)
15381debfc3dSmrg    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
15391debfc3dSmrg    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
15401debfc3dSmrg    # nice to cause kernel panics so lets avoid the loop below.
15411debfc3dSmrg    # First set a reasonable default.
15421debfc3dSmrg    lt_cv_sys_max_cmd_len=16384
15431debfc3dSmrg    #
15441debfc3dSmrg    if test -x /sbin/sysconfig; then
15451debfc3dSmrg      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
15461debfc3dSmrg        *1*) lt_cv_sys_max_cmd_len=-1 ;;
15471debfc3dSmrg      esac
15481debfc3dSmrg    fi
15491debfc3dSmrg    ;;
15501debfc3dSmrg  sco3.2v5*)
15511debfc3dSmrg    lt_cv_sys_max_cmd_len=102400
15521debfc3dSmrg    ;;
15531debfc3dSmrg  sysv5* | sco5v6* | sysv4.2uw2*)
15541debfc3dSmrg    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
15551debfc3dSmrg    if test -n "$kargmax"; then
15561debfc3dSmrg      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[	 ]]//'`
15571debfc3dSmrg    else
15581debfc3dSmrg      lt_cv_sys_max_cmd_len=32768
15591debfc3dSmrg    fi
15601debfc3dSmrg    ;;
15611debfc3dSmrg  *)
15621debfc3dSmrg    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
15631debfc3dSmrg    if test -n "$lt_cv_sys_max_cmd_len"; then
15641debfc3dSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
15651debfc3dSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
15661debfc3dSmrg    else
15671debfc3dSmrg      # Make teststring a little bigger before we do anything with it.
15681debfc3dSmrg      # a 1K string should be a reasonable start.
15691debfc3dSmrg      for i in 1 2 3 4 5 6 7 8 ; do
15701debfc3dSmrg        teststring=$teststring$teststring
15711debfc3dSmrg      done
15721debfc3dSmrg      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
15731debfc3dSmrg      # If test is not a shell built-in, we'll probably end up computing a
15741debfc3dSmrg      # maximum length that is only half of the actual maximum length, but
15751debfc3dSmrg      # we can't tell.
15761debfc3dSmrg      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
15771debfc3dSmrg	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
15781debfc3dSmrg	      test $i != 17 # 1/2 MB should be enough
15791debfc3dSmrg      do
15801debfc3dSmrg        i=`expr $i + 1`
15811debfc3dSmrg        teststring=$teststring$teststring
15821debfc3dSmrg      done
15831debfc3dSmrg      # Only check the string length outside the loop.
15841debfc3dSmrg      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
15851debfc3dSmrg      teststring=
15861debfc3dSmrg      # Add a significant safety factor because C++ compilers can tack on
15871debfc3dSmrg      # massive amounts of additional arguments before passing them to the
15881debfc3dSmrg      # linker.  It appears as though 1/2 is a usable value.
15891debfc3dSmrg      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
15901debfc3dSmrg    fi
15911debfc3dSmrg    ;;
15921debfc3dSmrg  esac
15931debfc3dSmrg])
15941debfc3dSmrgif test -n $lt_cv_sys_max_cmd_len ; then
15951debfc3dSmrg  AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
15961debfc3dSmrgelse
15971debfc3dSmrg  AC_MSG_RESULT(none)
15981debfc3dSmrgfi
15991debfc3dSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len
16001debfc3dSmrg_LT_DECL([], [max_cmd_len], [0],
16011debfc3dSmrg    [What is the maximum length of a command?])
16021debfc3dSmrg])# LT_CMD_MAX_LEN
16031debfc3dSmrg
16041debfc3dSmrg# Old name:
16051debfc3dSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
16061debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
16071debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
16081debfc3dSmrg
16091debfc3dSmrg
16101debfc3dSmrg# _LT_HEADER_DLFCN
16111debfc3dSmrg# ----------------
16121debfc3dSmrgm4_defun([_LT_HEADER_DLFCN],
16131debfc3dSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
16141debfc3dSmrg])# _LT_HEADER_DLFCN
16151debfc3dSmrg
16161debfc3dSmrg
16171debfc3dSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
16181debfc3dSmrg#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
16191debfc3dSmrg# ----------------------------------------------------------------
16201debfc3dSmrgm4_defun([_LT_TRY_DLOPEN_SELF],
16211debfc3dSmrg[m4_require([_LT_HEADER_DLFCN])dnl
16221debfc3dSmrgif test "$cross_compiling" = yes; then :
16231debfc3dSmrg  [$4]
16241debfc3dSmrgelse
16251debfc3dSmrg  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16261debfc3dSmrg  lt_status=$lt_dlunknown
16271debfc3dSmrg  cat > conftest.$ac_ext <<_LT_EOF
16281debfc3dSmrg[#line __oline__ "configure"
16291debfc3dSmrg#include "confdefs.h"
16301debfc3dSmrg
16311debfc3dSmrg#if HAVE_DLFCN_H
16321debfc3dSmrg#include <dlfcn.h>
16331debfc3dSmrg#endif
16341debfc3dSmrg
16351debfc3dSmrg#include <stdio.h>
16361debfc3dSmrg
16371debfc3dSmrg#ifdef RTLD_GLOBAL
16381debfc3dSmrg#  define LT_DLGLOBAL		RTLD_GLOBAL
16391debfc3dSmrg#else
16401debfc3dSmrg#  ifdef DL_GLOBAL
16411debfc3dSmrg#    define LT_DLGLOBAL		DL_GLOBAL
16421debfc3dSmrg#  else
16431debfc3dSmrg#    define LT_DLGLOBAL		0
16441debfc3dSmrg#  endif
16451debfc3dSmrg#endif
16461debfc3dSmrg
16471debfc3dSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16481debfc3dSmrg   find out it does not work in some platform. */
16491debfc3dSmrg#ifndef LT_DLLAZY_OR_NOW
16501debfc3dSmrg#  ifdef RTLD_LAZY
16511debfc3dSmrg#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16521debfc3dSmrg#  else
16531debfc3dSmrg#    ifdef DL_LAZY
16541debfc3dSmrg#      define LT_DLLAZY_OR_NOW		DL_LAZY
16551debfc3dSmrg#    else
16561debfc3dSmrg#      ifdef RTLD_NOW
16571debfc3dSmrg#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16581debfc3dSmrg#      else
16591debfc3dSmrg#        ifdef DL_NOW
16601debfc3dSmrg#          define LT_DLLAZY_OR_NOW	DL_NOW
16611debfc3dSmrg#        else
16621debfc3dSmrg#          define LT_DLLAZY_OR_NOW	0
16631debfc3dSmrg#        endif
16641debfc3dSmrg#      endif
16651debfc3dSmrg#    endif
16661debfc3dSmrg#  endif
16671debfc3dSmrg#endif
16681debfc3dSmrg
16691debfc3dSmrg/* When -fvisbility=hidden is used, assume the code has been annotated
16701debfc3dSmrg   correspondingly for the symbols needed.  */
16711debfc3dSmrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16721debfc3dSmrgvoid fnord () __attribute__((visibility("default")));
16731debfc3dSmrg#endif
16741debfc3dSmrg
16751debfc3dSmrgvoid fnord () { int i=42; }
16761debfc3dSmrgint main ()
16771debfc3dSmrg{
16781debfc3dSmrg  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16791debfc3dSmrg  int status = $lt_dlunknown;
16801debfc3dSmrg
16811debfc3dSmrg  if (self)
16821debfc3dSmrg    {
16831debfc3dSmrg      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16841debfc3dSmrg      else
16851debfc3dSmrg        {
16861debfc3dSmrg	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16871debfc3dSmrg          else puts (dlerror ());
16881debfc3dSmrg	}
16891debfc3dSmrg      /* dlclose (self); */
16901debfc3dSmrg    }
16911debfc3dSmrg  else
16921debfc3dSmrg    puts (dlerror ());
16931debfc3dSmrg
16941debfc3dSmrg  return status;
16951debfc3dSmrg}]
16961debfc3dSmrg_LT_EOF
16971debfc3dSmrg  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
16981debfc3dSmrg    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
16991debfc3dSmrg    lt_status=$?
17001debfc3dSmrg    case x$lt_status in
17011debfc3dSmrg      x$lt_dlno_uscore) $1 ;;
17021debfc3dSmrg      x$lt_dlneed_uscore) $2 ;;
17031debfc3dSmrg      x$lt_dlunknown|x*) $3 ;;
17041debfc3dSmrg    esac
17051debfc3dSmrg  else :
17061debfc3dSmrg    # compilation failed
17071debfc3dSmrg    $3
17081debfc3dSmrg  fi
17091debfc3dSmrgfi
17101debfc3dSmrgrm -fr conftest*
17111debfc3dSmrg])# _LT_TRY_DLOPEN_SELF
17121debfc3dSmrg
17131debfc3dSmrg
17141debfc3dSmrg# LT_SYS_DLOPEN_SELF
17151debfc3dSmrg# ------------------
17161debfc3dSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF],
17171debfc3dSmrg[m4_require([_LT_HEADER_DLFCN])dnl
17181debfc3dSmrgif test "x$enable_dlopen" != xyes; then
17191debfc3dSmrg  enable_dlopen=unknown
17201debfc3dSmrg  enable_dlopen_self=unknown
17211debfc3dSmrg  enable_dlopen_self_static=unknown
17221debfc3dSmrgelse
17231debfc3dSmrg  lt_cv_dlopen=no
17241debfc3dSmrg  lt_cv_dlopen_libs=
17251debfc3dSmrg
17261debfc3dSmrg  case $host_os in
17271debfc3dSmrg  beos*)
17281debfc3dSmrg    lt_cv_dlopen="load_add_on"
17291debfc3dSmrg    lt_cv_dlopen_libs=
17301debfc3dSmrg    lt_cv_dlopen_self=yes
17311debfc3dSmrg    ;;
17321debfc3dSmrg
17331debfc3dSmrg  mingw* | pw32* | cegcc*)
17341debfc3dSmrg    lt_cv_dlopen="LoadLibrary"
17351debfc3dSmrg    lt_cv_dlopen_libs=
17361debfc3dSmrg    ;;
17371debfc3dSmrg
17381debfc3dSmrg  cygwin*)
17391debfc3dSmrg    lt_cv_dlopen="dlopen"
17401debfc3dSmrg    lt_cv_dlopen_libs=
17411debfc3dSmrg    ;;
17421debfc3dSmrg
17431debfc3dSmrg  darwin*)
17441debfc3dSmrg  # if libdl is installed we need to link against it
17451debfc3dSmrg    AC_CHECK_LIB([dl], [dlopen],
17461debfc3dSmrg		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
17471debfc3dSmrg    lt_cv_dlopen="dyld"
17481debfc3dSmrg    lt_cv_dlopen_libs=
17491debfc3dSmrg    lt_cv_dlopen_self=yes
17501debfc3dSmrg    ])
17511debfc3dSmrg    ;;
17521debfc3dSmrg
17531debfc3dSmrg  *)
17541debfc3dSmrg    AC_CHECK_FUNC([shl_load],
17551debfc3dSmrg	  [lt_cv_dlopen="shl_load"],
17561debfc3dSmrg      [AC_CHECK_LIB([dld], [shl_load],
17571debfc3dSmrg	    [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
17581debfc3dSmrg	[AC_CHECK_FUNC([dlopen],
17591debfc3dSmrg	      [lt_cv_dlopen="dlopen"],
17601debfc3dSmrg	  [AC_CHECK_LIB([dl], [dlopen],
17611debfc3dSmrg		[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
17621debfc3dSmrg	    [AC_CHECK_LIB([svld], [dlopen],
17631debfc3dSmrg		  [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
17641debfc3dSmrg	      [AC_CHECK_LIB([dld], [dld_link],
17651debfc3dSmrg		    [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
17661debfc3dSmrg	      ])
17671debfc3dSmrg	    ])
17681debfc3dSmrg	  ])
17691debfc3dSmrg	])
17701debfc3dSmrg      ])
17711debfc3dSmrg    ;;
17721debfc3dSmrg  esac
17731debfc3dSmrg
17741debfc3dSmrg  if test "x$lt_cv_dlopen" != xno; then
17751debfc3dSmrg    enable_dlopen=yes
17761debfc3dSmrg  else
17771debfc3dSmrg    enable_dlopen=no
17781debfc3dSmrg  fi
17791debfc3dSmrg
17801debfc3dSmrg  case $lt_cv_dlopen in
17811debfc3dSmrg  dlopen)
17821debfc3dSmrg    save_CPPFLAGS="$CPPFLAGS"
17831debfc3dSmrg    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17841debfc3dSmrg
17851debfc3dSmrg    save_LDFLAGS="$LDFLAGS"
17861debfc3dSmrg    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17871debfc3dSmrg
17881debfc3dSmrg    save_LIBS="$LIBS"
17891debfc3dSmrg    LIBS="$lt_cv_dlopen_libs $LIBS"
17901debfc3dSmrg
17911debfc3dSmrg    AC_CACHE_CHECK([whether a program can dlopen itself],
17921debfc3dSmrg	  lt_cv_dlopen_self, [dnl
17931debfc3dSmrg	  _LT_TRY_DLOPEN_SELF(
17941debfc3dSmrg	    lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
17951debfc3dSmrg	    lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
17961debfc3dSmrg    ])
17971debfc3dSmrg
17981debfc3dSmrg    if test "x$lt_cv_dlopen_self" = xyes; then
17991debfc3dSmrg      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18001debfc3dSmrg      AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
18011debfc3dSmrg	  lt_cv_dlopen_self_static, [dnl
18021debfc3dSmrg	  _LT_TRY_DLOPEN_SELF(
18031debfc3dSmrg	    lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
18041debfc3dSmrg	    lt_cv_dlopen_self_static=no,  lt_cv_dlopen_self_static=cross)
18051debfc3dSmrg      ])
18061debfc3dSmrg    fi
18071debfc3dSmrg
18081debfc3dSmrg    CPPFLAGS="$save_CPPFLAGS"
18091debfc3dSmrg    LDFLAGS="$save_LDFLAGS"
18101debfc3dSmrg    LIBS="$save_LIBS"
18111debfc3dSmrg    ;;
18121debfc3dSmrg  esac
18131debfc3dSmrg
18141debfc3dSmrg  case $lt_cv_dlopen_self in
18151debfc3dSmrg  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18161debfc3dSmrg  *) enable_dlopen_self=unknown ;;
18171debfc3dSmrg  esac
18181debfc3dSmrg
18191debfc3dSmrg  case $lt_cv_dlopen_self_static in
18201debfc3dSmrg  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18211debfc3dSmrg  *) enable_dlopen_self_static=unknown ;;
18221debfc3dSmrg  esac
18231debfc3dSmrgfi
18241debfc3dSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0],
18251debfc3dSmrg	 [Whether dlopen is supported])
18261debfc3dSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
18271debfc3dSmrg	 [Whether dlopen of programs is supported])
18281debfc3dSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
18291debfc3dSmrg	 [Whether dlopen of statically linked programs is supported])
18301debfc3dSmrg])# LT_SYS_DLOPEN_SELF
18311debfc3dSmrg
18321debfc3dSmrg# Old name:
18331debfc3dSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
18341debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
18351debfc3dSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
18361debfc3dSmrg
18371debfc3dSmrg
18381debfc3dSmrg# _LT_COMPILER_C_O([TAGNAME])
18391debfc3dSmrg# ---------------------------
18401debfc3dSmrg# Check to see if options -c and -o are simultaneously supported by compiler.
18411debfc3dSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O.
18421debfc3dSmrgm4_defun([_LT_COMPILER_C_O],
18431debfc3dSmrg[m4_require([_LT_DECL_SED])dnl
18441debfc3dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl
18451debfc3dSmrgm4_require([_LT_TAG_COMPILER])dnl
18461debfc3dSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
18471debfc3dSmrg  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
18481debfc3dSmrg  [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
18491debfc3dSmrg   $RM -r conftest 2>/dev/null
18501debfc3dSmrg   mkdir conftest
18511debfc3dSmrg   cd conftest
18521debfc3dSmrg   mkdir out
18531debfc3dSmrg   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18541debfc3dSmrg
18551debfc3dSmrg   lt_compiler_flag="-o out/conftest2.$ac_objext"
18561debfc3dSmrg   # Insert the option either (1) after the last *FLAGS variable, or
18571debfc3dSmrg   # (2) before a word containing "conftest.", or (3) at the end.
18581debfc3dSmrg   # Note that $ac_compile itself does not contain backslashes and begins
18591debfc3dSmrg   # with a dollar sign (not a hyphen), so the echo should work correctly.
18601debfc3dSmrg   lt_compile=`echo "$ac_compile" | $SED \
18611debfc3dSmrg   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18621debfc3dSmrg   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
18631debfc3dSmrg   -e 's:$: $lt_compiler_flag:'`
18641debfc3dSmrg   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
18651debfc3dSmrg   (eval "$lt_compile" 2>out/conftest.err)
18661debfc3dSmrg   ac_status=$?
18671debfc3dSmrg   cat out/conftest.err >&AS_MESSAGE_LOG_FD
18681debfc3dSmrg   echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
18691debfc3dSmrg   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18701debfc3dSmrg   then
18711debfc3dSmrg     # The compiler can only warn and ignore the option if not recognized
18721debfc3dSmrg     # So say no if there are warnings
18731debfc3dSmrg     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18741debfc3dSmrg     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18751debfc3dSmrg     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18761debfc3dSmrg       _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
18771debfc3dSmrg     fi
18781debfc3dSmrg   fi
18791debfc3dSmrg   chmod u+w . 2>&AS_MESSAGE_LOG_FD
18801debfc3dSmrg   $RM conftest*
18811debfc3dSmrg   # SGI C++ compiler will create directory out/ii_files/ for
18821debfc3dSmrg   # template instantiation
18831debfc3dSmrg   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18841debfc3dSmrg   $RM out/* && rmdir out
18851debfc3dSmrg   cd ..
18861debfc3dSmrg   $RM -r conftest
18871debfc3dSmrg   $RM conftest*
18881debfc3dSmrg])
18891debfc3dSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
18901debfc3dSmrg	[Does compiler simultaneously support -c and -o options?])
18911debfc3dSmrg])# _LT_COMPILER_C_O
18921debfc3dSmrg
18931debfc3dSmrg
18941debfc3dSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME])
18951debfc3dSmrg# ----------------------------------
18961debfc3dSmrg# Check to see if we can do hard links to lock some files if needed
18971debfc3dSmrgm4_defun([_LT_COMPILER_FILE_LOCKS],
18981debfc3dSmrg[m4_require([_LT_ENABLE_LOCK])dnl
18991debfc3dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl
19001debfc3dSmrg_LT_COMPILER_C_O([$1])
19011debfc3dSmrg
19021debfc3dSmrghard_links="nottested"
19031debfc3dSmrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
19041debfc3dSmrg  # do not overwrite the value of need_locks provided by the user
19051debfc3dSmrg  AC_MSG_CHECKING([if we can lock with hard links])
19061debfc3dSmrg  hard_links=yes
19071debfc3dSmrg  $RM conftest*
19081debfc3dSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19091debfc3dSmrg  touch conftest.a
19101debfc3dSmrg  ln conftest.a conftest.b 2>&5 || hard_links=no
19111debfc3dSmrg  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19121debfc3dSmrg  AC_MSG_RESULT([$hard_links])
19131debfc3dSmrg  if test "$hard_links" = no; then
19141debfc3dSmrg    AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
19151debfc3dSmrg    need_locks=warn
19161debfc3dSmrg  fi
19171debfc3dSmrgelse
19181debfc3dSmrg  need_locks=no
19191debfc3dSmrgfi
19201debfc3dSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
19211debfc3dSmrg])# _LT_COMPILER_FILE_LOCKS
19221debfc3dSmrg
19231debfc3dSmrg
19241debfc3dSmrg# _LT_CHECK_OBJDIR
19251debfc3dSmrg# ----------------
19261debfc3dSmrgm4_defun([_LT_CHECK_OBJDIR],
19271debfc3dSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
19281debfc3dSmrg[rm -f .libs 2>/dev/null
19291debfc3dSmrgmkdir .libs 2>/dev/null
19301debfc3dSmrgif test -d .libs; then
19311debfc3dSmrg  lt_cv_objdir=.libs
19321debfc3dSmrgelse
19331debfc3dSmrg  # MS-DOS does not allow filenames that begin with a dot.
19341debfc3dSmrg  lt_cv_objdir=_libs
19351debfc3dSmrgfi
19361debfc3dSmrgrmdir .libs 2>/dev/null])
19371debfc3dSmrgobjdir=$lt_cv_objdir
19381debfc3dSmrg_LT_DECL([], [objdir], [0],
19391debfc3dSmrg         [The name of the directory that contains temporary libtool files])dnl
19401debfc3dSmrgm4_pattern_allow([LT_OBJDIR])dnl
19411debfc3dSmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
19421debfc3dSmrg  [Define to the sub-directory in which libtool stores uninstalled libraries.])
19431debfc3dSmrg])# _LT_CHECK_OBJDIR
19441debfc3dSmrg
19451debfc3dSmrg
19461debfc3dSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
19471debfc3dSmrg# --------------------------------------
19481debfc3dSmrg# Check hardcoding attributes.
19491debfc3dSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH],
19501debfc3dSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs])
19511debfc3dSmrg_LT_TAGVAR(hardcode_action, $1)=
19521debfc3dSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
19531debfc3dSmrg   test -n "$_LT_TAGVAR(runpath_var, $1)" ||
19541debfc3dSmrg   test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
19551debfc3dSmrg
19561debfc3dSmrg  # We can hardcode non-existent directories.
19571debfc3dSmrg  if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
19581debfc3dSmrg     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19591debfc3dSmrg     # have to relink, otherwise we might link with an installed library
19601debfc3dSmrg     # when we should be linking with a yet-to-be-installed one
19611debfc3dSmrg     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
19621debfc3dSmrg     test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
19631debfc3dSmrg    # Linking always hardcodes the temporary library directory.
19641debfc3dSmrg    _LT_TAGVAR(hardcode_action, $1)=relink
19651debfc3dSmrg  else
19661debfc3dSmrg    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19671debfc3dSmrg    _LT_TAGVAR(hardcode_action, $1)=immediate
19681debfc3dSmrg  fi
19691debfc3dSmrgelse
19701debfc3dSmrg  # We cannot hardcode anything, or else we can only hardcode existing
19711debfc3dSmrg  # directories.
19721debfc3dSmrg  _LT_TAGVAR(hardcode_action, $1)=unsupported
19731debfc3dSmrgfi
19741debfc3dSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
19751debfc3dSmrg
19761debfc3dSmrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
19771debfc3dSmrg   test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
19781debfc3dSmrg  # Fast installation is not supported
19791debfc3dSmrg  enable_fast_install=no
19801debfc3dSmrgelif test "$shlibpath_overrides_runpath" = yes ||
19811debfc3dSmrg     test "$enable_shared" = no; then
19821debfc3dSmrg  # Fast installation is not necessary
19831debfc3dSmrg  enable_fast_install=needless
19841debfc3dSmrgfi
19851debfc3dSmrg_LT_TAGDECL([], [hardcode_action], [0],
19861debfc3dSmrg    [How to hardcode a shared library path into an executable])
19871debfc3dSmrg])# _LT_LINKER_HARDCODE_LIBPATH
19881debfc3dSmrg
19891debfc3dSmrg
19901debfc3dSmrg# _LT_CMD_STRIPLIB
19911debfc3dSmrg# ----------------
19921debfc3dSmrgm4_defun([_LT_CMD_STRIPLIB],
19931debfc3dSmrg[m4_require([_LT_DECL_EGREP])
19941debfc3dSmrgstriplib=
19951debfc3dSmrgold_striplib=
19961debfc3dSmrgAC_MSG_CHECKING([whether stripping libraries is possible])
19971debfc3dSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19981debfc3dSmrg  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19991debfc3dSmrg  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20001debfc3dSmrg  AC_MSG_RESULT([yes])
20011debfc3dSmrgelse
20021debfc3dSmrg# FIXME - insert some real tests, host_os isn't really good enough
20031debfc3dSmrg  case $host_os in
20041debfc3dSmrg  darwin*)
20051debfc3dSmrg    if test -n "$STRIP" ; then
20061debfc3dSmrg      striplib="$STRIP -x"
20071debfc3dSmrg      old_striplib="$STRIP -S"
20081debfc3dSmrg      AC_MSG_RESULT([yes])
20091debfc3dSmrg    else
20101debfc3dSmrg      AC_MSG_RESULT([no])
20111debfc3dSmrg    fi
20121debfc3dSmrg    ;;
20131debfc3dSmrg  *)
20141debfc3dSmrg    AC_MSG_RESULT([no])
20151debfc3dSmrg    ;;
20161debfc3dSmrg  esac
20171debfc3dSmrgfi
20181debfc3dSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
20191debfc3dSmrg_LT_DECL([], [striplib], [1])
20201debfc3dSmrg])# _LT_CMD_STRIPLIB
20211debfc3dSmrg
20221debfc3dSmrg
20231debfc3dSmrg# _LT_SYS_DYNAMIC_LINKER([TAG])
20241debfc3dSmrg# -----------------------------
20251debfc3dSmrg# PORTME Fill in your ld.so characteristics
20261debfc3dSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER],
20271debfc3dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl
20281debfc3dSmrgm4_require([_LT_DECL_EGREP])dnl
20291debfc3dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl
20301debfc3dSmrgm4_require([_LT_DECL_OBJDUMP])dnl
20311debfc3dSmrgm4_require([_LT_DECL_SED])dnl
20321debfc3dSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl
20331debfc3dSmrgAC_MSG_CHECKING([dynamic linker characteristics])
20341debfc3dSmrgm4_if([$1],
20351debfc3dSmrg	[], [
20361debfc3dSmrgif test "$GCC" = yes; then
20371debfc3dSmrg  case $host_os in
20381debfc3dSmrg    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
20391debfc3dSmrg    *) lt_awk_arg="/^libraries:/" ;;
20401debfc3dSmrg  esac
20411debfc3dSmrg  case $host_os in
20421debfc3dSmrg    mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
20431debfc3dSmrg    *) lt_sed_strip_eq="s,=/,/,g" ;;
20441debfc3dSmrg  esac
20451debfc3dSmrg  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
20461debfc3dSmrg  case $lt_search_path_spec in
20471debfc3dSmrg  *\;*)
20481debfc3dSmrg    # if the path contains ";" then we assume it to be the separator
20491debfc3dSmrg    # otherwise default to the standard path separator (i.e. ":") - it is
20501debfc3dSmrg    # assumed that no part of a normal pathname contains ";" but that should
20511debfc3dSmrg    # okay in the real world where ";" in dirpaths is itself problematic.
20521debfc3dSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
20531debfc3dSmrg    ;;
20541debfc3dSmrg  *)
20551debfc3dSmrg    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
20561debfc3dSmrg    ;;
20571debfc3dSmrg  esac
20581debfc3dSmrg  # Ok, now we have the path, separated by spaces, we can step through it
20591debfc3dSmrg  # and add multilib dir if necessary.
20601debfc3dSmrg  lt_tmp_lt_search_path_spec=
20611debfc3dSmrg  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
20621debfc3dSmrg  for lt_sys_path in $lt_search_path_spec; do
20631debfc3dSmrg    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
20641debfc3dSmrg      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
20651debfc3dSmrg    else
20661debfc3dSmrg      test -d "$lt_sys_path" && \
20671debfc3dSmrg	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
20681debfc3dSmrg    fi
20691debfc3dSmrg  done
20701debfc3dSmrg  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
20711debfc3dSmrgBEGIN {RS=" "; FS="/|\n";} {
20721debfc3dSmrg  lt_foo="";
20731debfc3dSmrg  lt_count=0;
20741debfc3dSmrg  for (lt_i = NF; lt_i > 0; lt_i--) {
20751debfc3dSmrg    if ($lt_i != "" && $lt_i != ".") {
20761debfc3dSmrg      if ($lt_i == "..") {
20771debfc3dSmrg        lt_count++;
20781debfc3dSmrg      } else {
20791debfc3dSmrg        if (lt_count == 0) {
20801debfc3dSmrg          lt_foo="/" $lt_i lt_foo;
20811debfc3dSmrg        } else {
20821debfc3dSmrg          lt_count--;
20831debfc3dSmrg        }
20841debfc3dSmrg      }
20851debfc3dSmrg    }
20861debfc3dSmrg  }
20871debfc3dSmrg  if (lt_foo != "") { lt_freq[[lt_foo]]++; }
20881debfc3dSmrg  if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
20891debfc3dSmrg}'`
20901debfc3dSmrg  # AWK program above erroneously prepends '/' to C:/dos/paths
20911debfc3dSmrg  # for these hosts.
20921debfc3dSmrg  case $host_os in
20931debfc3dSmrg    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
20941debfc3dSmrg      $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
20951debfc3dSmrg  esac
20961debfc3dSmrg  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
20971debfc3dSmrgelse
20981debfc3dSmrg  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20991debfc3dSmrgfi])
21001debfc3dSmrglibrary_names_spec=
21011debfc3dSmrglibname_spec='lib$name'
21021debfc3dSmrgsoname_spec=
21031debfc3dSmrgshrext_cmds=".so"
21041debfc3dSmrgpostinstall_cmds=
21051debfc3dSmrgpostuninstall_cmds=
21061debfc3dSmrgfinish_cmds=
21071debfc3dSmrgfinish_eval=
21081debfc3dSmrgshlibpath_var=
21091debfc3dSmrgshlibpath_overrides_runpath=unknown
21101debfc3dSmrgversion_type=none
21111debfc3dSmrgdynamic_linker="$host_os ld.so"
21121debfc3dSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib"
21131debfc3dSmrgneed_lib_prefix=unknown
21141debfc3dSmrghardcode_into_libs=no
21151debfc3dSmrg
21161debfc3dSmrg# when you set need_version to no, make sure it does not cause -set_version
21171debfc3dSmrg# flags to be left without arguments
21181debfc3dSmrgneed_version=unknown
21191debfc3dSmrg
21201debfc3dSmrgcase $host_os in
21211debfc3dSmrgaix3*)
21221debfc3dSmrg  version_type=linux
21231debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21241debfc3dSmrg  shlibpath_var=LIBPATH
21251debfc3dSmrg
21261debfc3dSmrg  # AIX 3 has no versioning support, so we append a major version to the name.
21271debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
21281debfc3dSmrg  ;;
21291debfc3dSmrg
21301debfc3dSmrgaix[[4-9]]*)
21311debfc3dSmrg  version_type=linux
21321debfc3dSmrg  need_lib_prefix=no
21331debfc3dSmrg  need_version=no
21341debfc3dSmrg  hardcode_into_libs=yes
21351debfc3dSmrg  if test "$host_cpu" = ia64; then
21361debfc3dSmrg    # AIX 5 supports IA64
21371debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21381debfc3dSmrg    shlibpath_var=LD_LIBRARY_PATH
21391debfc3dSmrg  else
21401debfc3dSmrg    # With GCC up to 2.95.x, collect2 would create an import file
21411debfc3dSmrg    # for dependence libraries.  The import file would start with
21421debfc3dSmrg    # the line `#! .'.  This would cause the generated library to
21431debfc3dSmrg    # depend on `.', always an invalid library.  This was fixed in
21441debfc3dSmrg    # development snapshots of GCC prior to 3.0.
21451debfc3dSmrg    case $host_os in
21461debfc3dSmrg      aix4 | aix4.[[01]] | aix4.[[01]].*)
21471debfc3dSmrg      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21481debfc3dSmrg	   echo ' yes '
21491debfc3dSmrg	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21501debfc3dSmrg	:
21511debfc3dSmrg      else
21521debfc3dSmrg	can_build_shared=no
21531debfc3dSmrg      fi
21541debfc3dSmrg      ;;
21551debfc3dSmrg    esac
21561debfc3dSmrg    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21571debfc3dSmrg    # soname into executable. Probably we can add versioning support to
21581debfc3dSmrg    # collect2, so additional links can be useful in future.
21591debfc3dSmrg    if test "$aix_use_runtimelinking" = yes; then
21601debfc3dSmrg      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21611debfc3dSmrg      # instead of lib<name>.a to let people know that these are not
21621debfc3dSmrg      # typical AIX shared libraries.
21631debfc3dSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21641debfc3dSmrg    else
21651debfc3dSmrg      # We preserve .a as extension for shared libraries through AIX4.2
21661debfc3dSmrg      # and later when we are not doing run time linking.
21671debfc3dSmrg      library_names_spec='${libname}${release}.a $libname.a'
21681debfc3dSmrg      soname_spec='${libname}${release}${shared_ext}$major'
21691debfc3dSmrg    fi
21701debfc3dSmrg    shlibpath_var=LIBPATH
21711debfc3dSmrg  fi
21721debfc3dSmrg  ;;
21731debfc3dSmrg
21741debfc3dSmrgamigaos*)
21751debfc3dSmrg  case $host_cpu in
21761debfc3dSmrg  powerpc)
21771debfc3dSmrg    # Since July 2007 AmigaOS4 officially supports .so libraries.
21781debfc3dSmrg    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21791debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21801debfc3dSmrg    ;;
21811debfc3dSmrg  m68k)
21821debfc3dSmrg    library_names_spec='$libname.ixlibrary $libname.a'
21831debfc3dSmrg    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21841debfc3dSmrg    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
21851debfc3dSmrg    ;;
21861debfc3dSmrg  esac
21871debfc3dSmrg  ;;
21881debfc3dSmrg
21891debfc3dSmrgbeos*)
21901debfc3dSmrg  library_names_spec='${libname}${shared_ext}'
21911debfc3dSmrg  dynamic_linker="$host_os ld.so"
21921debfc3dSmrg  shlibpath_var=LIBRARY_PATH
21931debfc3dSmrg  ;;
21941debfc3dSmrg
21951debfc3dSmrgbsdi[[45]]*)
21961debfc3dSmrg  version_type=linux
21971debfc3dSmrg  need_version=no
21981debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21991debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
22001debfc3dSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22011debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
22021debfc3dSmrg  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22031debfc3dSmrg  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22041debfc3dSmrg  # the default ld.so.conf also contains /usr/contrib/lib and
22051debfc3dSmrg  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22061debfc3dSmrg  # libtool to hard-code these into programs
22071debfc3dSmrg  ;;
22081debfc3dSmrg
22091debfc3dSmrgcygwin* | mingw* | pw32* | cegcc*)
22101debfc3dSmrg  version_type=windows
22111debfc3dSmrg  shrext_cmds=".dll"
22121debfc3dSmrg  need_version=no
22131debfc3dSmrg  need_lib_prefix=no
22141debfc3dSmrg
22151debfc3dSmrg  case $GCC,$host_os in
22161debfc3dSmrg  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
22171debfc3dSmrg    library_names_spec='$libname.dll.a'
22181debfc3dSmrg    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22191debfc3dSmrg    postinstall_cmds='base_file=`basename \${file}`~
22201debfc3dSmrg      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
22211debfc3dSmrg      dldir=$destdir/`dirname \$dlpath`~
22221debfc3dSmrg      test -d \$dldir || mkdir -p \$dldir~
22231debfc3dSmrg      $install_prog $dir/$dlname \$dldir/$dlname~
22241debfc3dSmrg      chmod a+x \$dldir/$dlname~
22251debfc3dSmrg      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22261debfc3dSmrg        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22271debfc3dSmrg      fi'
22281debfc3dSmrg    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22291debfc3dSmrg      dlpath=$dir/\$dldll~
22301debfc3dSmrg       $RM \$dlpath'
22311debfc3dSmrg    shlibpath_overrides_runpath=yes
22321debfc3dSmrg
22331debfc3dSmrg    case $host_os in
22341debfc3dSmrg    cygwin*)
22351debfc3dSmrg      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22361debfc3dSmrg      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22371debfc3dSmrgm4_if([$1], [],[
22381debfc3dSmrg      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
22391debfc3dSmrg      ;;
22401debfc3dSmrg    mingw* | cegcc*)
22411debfc3dSmrg      # MinGW DLLs use traditional 'lib' prefix
22421debfc3dSmrg      soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22431debfc3dSmrg      ;;
22441debfc3dSmrg    pw32*)
22451debfc3dSmrg      # pw32 DLLs use 'pw' prefix rather than 'lib'
22461debfc3dSmrg      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
22471debfc3dSmrg      ;;
22481debfc3dSmrg    esac
22491debfc3dSmrg    ;;
22501debfc3dSmrg
22511debfc3dSmrg  *)
22521debfc3dSmrg    library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
22531debfc3dSmrg    ;;
22541debfc3dSmrg  esac
22551debfc3dSmrg  dynamic_linker='Win32 ld.exe'
22561debfc3dSmrg  # FIXME: first we should search . and the directory the executable is in
22571debfc3dSmrg  shlibpath_var=PATH
22581debfc3dSmrg  ;;
22591debfc3dSmrg
22601debfc3dSmrgdarwin* | rhapsody*)
22611debfc3dSmrg  dynamic_linker="$host_os dyld"
22621debfc3dSmrg  version_type=darwin
22631debfc3dSmrg  need_lib_prefix=no
22641debfc3dSmrg  need_version=no
22651debfc3dSmrg  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22661debfc3dSmrg  soname_spec='${libname}${release}${major}$shared_ext'
22671debfc3dSmrg  shlibpath_overrides_runpath=yes
22681debfc3dSmrg  shlibpath_var=DYLD_LIBRARY_PATH
22691debfc3dSmrg  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22701debfc3dSmrgm4_if([$1], [],[
22711debfc3dSmrg  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
22721debfc3dSmrg  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22731debfc3dSmrg  ;;
22741debfc3dSmrg
22751debfc3dSmrgdgux*)
22761debfc3dSmrg  version_type=linux
22771debfc3dSmrg  need_lib_prefix=no
22781debfc3dSmrg  need_version=no
22791debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22801debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
22811debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
22821debfc3dSmrg  ;;
22831debfc3dSmrg
22841debfc3dSmrgfreebsd* | dragonfly*)
22851debfc3dSmrg  # DragonFly does not have aout.  When/if they implement a new
22861debfc3dSmrg  # versioning mechanism, adjust this.
22871debfc3dSmrg  if test -x /usr/bin/objformat; then
22881debfc3dSmrg    objformat=`/usr/bin/objformat`
22891debfc3dSmrg  else
22901debfc3dSmrg    case $host_os in
22911debfc3dSmrg    freebsd[[23]].*) objformat=aout ;;
22921debfc3dSmrg    *) objformat=elf ;;
22931debfc3dSmrg    esac
22941debfc3dSmrg  fi
22951debfc3dSmrg  version_type=freebsd-$objformat
22961debfc3dSmrg  case $version_type in
22971debfc3dSmrg    freebsd-elf*)
22981debfc3dSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22991debfc3dSmrg      need_version=no
23001debfc3dSmrg      need_lib_prefix=no
23011debfc3dSmrg      ;;
23021debfc3dSmrg    freebsd-*)
23031debfc3dSmrg      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23041debfc3dSmrg      need_version=yes
23051debfc3dSmrg      ;;
23061debfc3dSmrg  esac
23071debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
23081debfc3dSmrg  case $host_os in
23091debfc3dSmrg  freebsd2.*)
23101debfc3dSmrg    shlibpath_overrides_runpath=yes
23111debfc3dSmrg    ;;
23121debfc3dSmrg  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
23131debfc3dSmrg    shlibpath_overrides_runpath=yes
23141debfc3dSmrg    hardcode_into_libs=yes
23151debfc3dSmrg    ;;
23161debfc3dSmrg  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
23171debfc3dSmrg  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
23181debfc3dSmrg    shlibpath_overrides_runpath=no
23191debfc3dSmrg    hardcode_into_libs=yes
23201debfc3dSmrg    ;;
23211debfc3dSmrg  *) # from 4.6 on, and DragonFly
23221debfc3dSmrg    shlibpath_overrides_runpath=yes
23231debfc3dSmrg    hardcode_into_libs=yes
23241debfc3dSmrg    ;;
23251debfc3dSmrg  esac
23261debfc3dSmrg  ;;
23271debfc3dSmrg
23281debfc3dSmrggnu*)
23291debfc3dSmrg  version_type=linux
23301debfc3dSmrg  need_lib_prefix=no
23311debfc3dSmrg  need_version=no
23321debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23331debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
23341debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
23351debfc3dSmrg  hardcode_into_libs=yes
23361debfc3dSmrg  ;;
23371debfc3dSmrg
23381debfc3dSmrghaiku*)
23391debfc3dSmrg  version_type=linux
23401debfc3dSmrg  need_lib_prefix=no
23411debfc3dSmrg  need_version=no
23421debfc3dSmrg  dynamic_linker="$host_os runtime_loader"
23431debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23441debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
23451debfc3dSmrg  shlibpath_var=LIBRARY_PATH
23461debfc3dSmrg  shlibpath_overrides_runpath=yes
23471debfc3dSmrg  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
23481debfc3dSmrg  hardcode_into_libs=yes
23491debfc3dSmrg  ;;
23501debfc3dSmrg
23511debfc3dSmrghpux9* | hpux10* | hpux11*)
23521debfc3dSmrg  # Give a soname corresponding to the major version so that dld.sl refuses to
23531debfc3dSmrg  # link against other versions.
23541debfc3dSmrg  version_type=sunos
23551debfc3dSmrg  need_lib_prefix=no
23561debfc3dSmrg  need_version=no
23571debfc3dSmrg  case $host_cpu in
23581debfc3dSmrg  ia64*)
23591debfc3dSmrg    shrext_cmds='.so'
23601debfc3dSmrg    hardcode_into_libs=yes
23611debfc3dSmrg    dynamic_linker="$host_os dld.so"
23621debfc3dSmrg    shlibpath_var=LD_LIBRARY_PATH
23631debfc3dSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23641debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23651debfc3dSmrg    soname_spec='${libname}${release}${shared_ext}$major'
23661debfc3dSmrg    if test "X$HPUX_IA64_MODE" = X32; then
23671debfc3dSmrg      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23681debfc3dSmrg    else
23691debfc3dSmrg      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23701debfc3dSmrg    fi
23711debfc3dSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23721debfc3dSmrg    ;;
23731debfc3dSmrg  hppa*64*)
23741debfc3dSmrg    shrext_cmds='.sl'
23751debfc3dSmrg    hardcode_into_libs=yes
23761debfc3dSmrg    dynamic_linker="$host_os dld.sl"
23771debfc3dSmrg    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23781debfc3dSmrg    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23791debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23801debfc3dSmrg    soname_spec='${libname}${release}${shared_ext}$major'
23811debfc3dSmrg    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23821debfc3dSmrg    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23831debfc3dSmrg    ;;
23841debfc3dSmrg  *)
23851debfc3dSmrg    shrext_cmds='.sl'
23861debfc3dSmrg    dynamic_linker="$host_os dld.sl"
23871debfc3dSmrg    shlibpath_var=SHLIB_PATH
23881debfc3dSmrg    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23891debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23901debfc3dSmrg    soname_spec='${libname}${release}${shared_ext}$major'
23911debfc3dSmrg    ;;
23921debfc3dSmrg  esac
23931debfc3dSmrg  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23941debfc3dSmrg  postinstall_cmds='chmod 555 $lib'
23951debfc3dSmrg  # or fails outright, so override atomically:
23961debfc3dSmrg  install_override_mode=555
23971debfc3dSmrg  ;;
23981debfc3dSmrg
23991debfc3dSmrginterix[[3-9]]*)
24001debfc3dSmrg  version_type=linux
24011debfc3dSmrg  need_lib_prefix=no
24021debfc3dSmrg  need_version=no
24031debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24041debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
24051debfc3dSmrg  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
24061debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
24071debfc3dSmrg  shlibpath_overrides_runpath=no
24081debfc3dSmrg  hardcode_into_libs=yes
24091debfc3dSmrg  ;;
24101debfc3dSmrg
24111debfc3dSmrgirix5* | irix6* | nonstopux*)
24121debfc3dSmrg  case $host_os in
24131debfc3dSmrg    nonstopux*) version_type=nonstopux ;;
24141debfc3dSmrg    *)
24151debfc3dSmrg	if test "$lt_cv_prog_gnu_ld" = yes; then
24161debfc3dSmrg		version_type=linux
24171debfc3dSmrg	else
24181debfc3dSmrg		version_type=irix
24191debfc3dSmrg	fi ;;
24201debfc3dSmrg  esac
24211debfc3dSmrg  need_lib_prefix=no
24221debfc3dSmrg  need_version=no
24231debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
24241debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24251debfc3dSmrg  case $host_os in
24261debfc3dSmrg  irix5* | nonstopux*)
24271debfc3dSmrg    libsuff= shlibsuff=
24281debfc3dSmrg    ;;
24291debfc3dSmrg  *)
24301debfc3dSmrg    case $LD in # libtool.m4 will add one of these switches to LD
24311debfc3dSmrg    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24321debfc3dSmrg      libsuff= shlibsuff= libmagic=32-bit;;
24331debfc3dSmrg    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24341debfc3dSmrg      libsuff=32 shlibsuff=N32 libmagic=N32;;
24351debfc3dSmrg    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24361debfc3dSmrg      libsuff=64 shlibsuff=64 libmagic=64-bit;;
24371debfc3dSmrg    *) libsuff= shlibsuff= libmagic=never-match;;
24381debfc3dSmrg    esac
24391debfc3dSmrg    ;;
24401debfc3dSmrg  esac
24411debfc3dSmrg  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24421debfc3dSmrg  shlibpath_overrides_runpath=no
24431debfc3dSmrg  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24441debfc3dSmrg  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24451debfc3dSmrg  hardcode_into_libs=yes
24461debfc3dSmrg  ;;
24471debfc3dSmrg
24481debfc3dSmrg# No shared lib support for Linux oldld, aout, or coff.
24491debfc3dSmrglinux*oldld* | linux*aout* | linux*coff*)
24501debfc3dSmrg  dynamic_linker=no
24511debfc3dSmrg  ;;
24521debfc3dSmrg
24531debfc3dSmrg# This must be Linux ELF.
2454*8feb0f0bSmrg
2455*8feb0f0bSmrg# uclinux* changes (here and below) have been submitted to the libtool
2456*8feb0f0bSmrg# project, but have not yet been accepted: they are GCC-local changes
2457*8feb0f0bSmrg# for the time being.  (See
2458*8feb0f0bSmrg# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
2459*8feb0f0bSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
24601debfc3dSmrg  version_type=linux
24611debfc3dSmrg  need_lib_prefix=no
24621debfc3dSmrg  need_version=no
24631debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24641debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
24651debfc3dSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24661debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
24671debfc3dSmrg  shlibpath_overrides_runpath=no
24681debfc3dSmrg
24691debfc3dSmrg  # Some binutils ld are patched to set DT_RUNPATH
24701debfc3dSmrg  AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
24711debfc3dSmrg    [lt_cv_shlibpath_overrides_runpath=no
24721debfc3dSmrg    save_LDFLAGS=$LDFLAGS
24731debfc3dSmrg    save_libdir=$libdir
24741debfc3dSmrg    eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
24751debfc3dSmrg	 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
24761debfc3dSmrg    AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
24771debfc3dSmrg      [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
24781debfc3dSmrg	 [lt_cv_shlibpath_overrides_runpath=yes])])
24791debfc3dSmrg    LDFLAGS=$save_LDFLAGS
24801debfc3dSmrg    libdir=$save_libdir
24811debfc3dSmrg    ])
24821debfc3dSmrg  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
24831debfc3dSmrg
24841debfc3dSmrg  # This implies no fast_install, which is unacceptable.
24851debfc3dSmrg  # Some rework will be needed to allow for fast_install
24861debfc3dSmrg  # before this can be enabled.
24871debfc3dSmrg  hardcode_into_libs=yes
24881debfc3dSmrg
24891debfc3dSmrg  # Append ld.so.conf contents to the search path
24901debfc3dSmrg  if test -f /etc/ld.so.conf; then
24911debfc3dSmrg    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' ' '`
24921debfc3dSmrg    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
24931debfc3dSmrg  fi
24941debfc3dSmrg
24951debfc3dSmrg  # We used to test for /lib/ld.so.1 and disable shared libraries on
24961debfc3dSmrg  # powerpc, because MkLinux only supported shared libraries with the
24971debfc3dSmrg  # GNU dynamic linker.  Since this was broken with cross compilers,
24981debfc3dSmrg  # most powerpc-linux boxes support dynamic linking these days and
24991debfc3dSmrg  # people can always --disable-shared, the test was removed, and we
25001debfc3dSmrg  # assume the GNU/Linux dynamic linker is in use.
25011debfc3dSmrg  dynamic_linker='GNU/Linux ld.so'
25021debfc3dSmrg  ;;
25031debfc3dSmrg
25041debfc3dSmrgnetbsd*)
25051debfc3dSmrg  version_type=sunos
25061debfc3dSmrg  need_lib_prefix=no
25071debfc3dSmrg  need_version=no
25081debfc3dSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
25091debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25101debfc3dSmrg    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25111debfc3dSmrg    dynamic_linker='NetBSD (a.out) ld.so'
25121debfc3dSmrg  else
25131debfc3dSmrg    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25141debfc3dSmrg    soname_spec='${libname}${release}${shared_ext}$major'
25151debfc3dSmrg    dynamic_linker='NetBSD ld.elf_so'
25161debfc3dSmrg  fi
25171debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25181debfc3dSmrg  shlibpath_overrides_runpath=yes
25191debfc3dSmrg  hardcode_into_libs=yes
25201debfc3dSmrg  ;;
25211debfc3dSmrg
25221debfc3dSmrgnewsos6)
25231debfc3dSmrg  version_type=linux
25241debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25251debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25261debfc3dSmrg  shlibpath_overrides_runpath=yes
25271debfc3dSmrg  ;;
25281debfc3dSmrg
25291debfc3dSmrg*nto* | *qnx*)
25301debfc3dSmrg  version_type=qnx
25311debfc3dSmrg  need_lib_prefix=no
25321debfc3dSmrg  need_version=no
25331debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25341debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
25351debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25361debfc3dSmrg  shlibpath_overrides_runpath=no
25371debfc3dSmrg  hardcode_into_libs=yes
25381debfc3dSmrg  dynamic_linker='ldqnx.so'
25391debfc3dSmrg  ;;
25401debfc3dSmrg
25411debfc3dSmrgopenbsd*)
25421debfc3dSmrg  version_type=sunos
25431debfc3dSmrg  sys_lib_dlsearch_path_spec="/usr/lib"
25441debfc3dSmrg  need_lib_prefix=no
25451debfc3dSmrg  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25461debfc3dSmrg  case $host_os in
25471debfc3dSmrg    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
25481debfc3dSmrg    *)				need_version=no  ;;
25491debfc3dSmrg  esac
25501debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25511debfc3dSmrg  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25521debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25531debfc3dSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25541debfc3dSmrg    case $host_os in
25551debfc3dSmrg      openbsd2.[[89]] | openbsd2.[[89]].*)
25561debfc3dSmrg	shlibpath_overrides_runpath=no
25571debfc3dSmrg	;;
25581debfc3dSmrg      *)
25591debfc3dSmrg	shlibpath_overrides_runpath=yes
25601debfc3dSmrg	;;
25611debfc3dSmrg      esac
25621debfc3dSmrg  else
25631debfc3dSmrg    shlibpath_overrides_runpath=yes
25641debfc3dSmrg  fi
25651debfc3dSmrg  ;;
25661debfc3dSmrg
25671debfc3dSmrgos2*)
25681debfc3dSmrg  libname_spec='$name'
25691debfc3dSmrg  shrext_cmds=".dll"
25701debfc3dSmrg  need_lib_prefix=no
25711debfc3dSmrg  library_names_spec='$libname${shared_ext} $libname.a'
25721debfc3dSmrg  dynamic_linker='OS/2 ld.exe'
25731debfc3dSmrg  shlibpath_var=LIBPATH
25741debfc3dSmrg  ;;
25751debfc3dSmrg
25761debfc3dSmrgosf3* | osf4* | osf5*)
25771debfc3dSmrg  version_type=osf
25781debfc3dSmrg  need_lib_prefix=no
25791debfc3dSmrg  need_version=no
25801debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
25811debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25821debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25831debfc3dSmrg  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25841debfc3dSmrg  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25851debfc3dSmrg  ;;
25861debfc3dSmrg
25871debfc3dSmrgrdos*)
25881debfc3dSmrg  dynamic_linker=no
25891debfc3dSmrg  ;;
25901debfc3dSmrg
25911debfc3dSmrgsolaris*)
25921debfc3dSmrg  version_type=linux
25931debfc3dSmrg  need_lib_prefix=no
25941debfc3dSmrg  need_version=no
25951debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25961debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
25971debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
25981debfc3dSmrg  shlibpath_overrides_runpath=yes
25991debfc3dSmrg  hardcode_into_libs=yes
26001debfc3dSmrg  # ldd complains unless libraries are executable
26011debfc3dSmrg  postinstall_cmds='chmod +x $lib'
26021debfc3dSmrg  ;;
26031debfc3dSmrg
26041debfc3dSmrgsunos4*)
26051debfc3dSmrg  version_type=sunos
26061debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
26071debfc3dSmrg  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
26081debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
26091debfc3dSmrg  shlibpath_overrides_runpath=yes
26101debfc3dSmrg  if test "$with_gnu_ld" = yes; then
26111debfc3dSmrg    need_lib_prefix=no
26121debfc3dSmrg  fi
26131debfc3dSmrg  need_version=yes
26141debfc3dSmrg  ;;
26151debfc3dSmrg
26161debfc3dSmrgsysv4 | sysv4.3*)
26171debfc3dSmrg  version_type=linux
26181debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26191debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
26201debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
26211debfc3dSmrg  case $host_vendor in
26221debfc3dSmrg    sni)
26231debfc3dSmrg      shlibpath_overrides_runpath=no
26241debfc3dSmrg      need_lib_prefix=no
26251debfc3dSmrg      runpath_var=LD_RUN_PATH
26261debfc3dSmrg      ;;
26271debfc3dSmrg    siemens)
26281debfc3dSmrg      need_lib_prefix=no
26291debfc3dSmrg      ;;
26301debfc3dSmrg    motorola)
26311debfc3dSmrg      need_lib_prefix=no
26321debfc3dSmrg      need_version=no
26331debfc3dSmrg      shlibpath_overrides_runpath=no
26341debfc3dSmrg      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26351debfc3dSmrg      ;;
26361debfc3dSmrg  esac
26371debfc3dSmrg  ;;
26381debfc3dSmrg
26391debfc3dSmrgsysv4*MP*)
26401debfc3dSmrg  if test -d /usr/nec ;then
26411debfc3dSmrg    version_type=linux
26421debfc3dSmrg    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26431debfc3dSmrg    soname_spec='$libname${shared_ext}.$major'
26441debfc3dSmrg    shlibpath_var=LD_LIBRARY_PATH
26451debfc3dSmrg  fi
26461debfc3dSmrg  ;;
26471debfc3dSmrg
26481debfc3dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26491debfc3dSmrg  version_type=freebsd-elf
26501debfc3dSmrg  need_lib_prefix=no
26511debfc3dSmrg  need_version=no
26521debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26531debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
26541debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
26551debfc3dSmrg  shlibpath_overrides_runpath=yes
26561debfc3dSmrg  hardcode_into_libs=yes
26571debfc3dSmrg  if test "$with_gnu_ld" = yes; then
26581debfc3dSmrg    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26591debfc3dSmrg  else
26601debfc3dSmrg    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26611debfc3dSmrg    case $host_os in
26621debfc3dSmrg      sco3.2v5*)
26631debfc3dSmrg        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26641debfc3dSmrg	;;
26651debfc3dSmrg    esac
26661debfc3dSmrg  fi
26671debfc3dSmrg  sys_lib_dlsearch_path_spec='/usr/lib'
26681debfc3dSmrg  ;;
26691debfc3dSmrg
26701debfc3dSmrgtpf*)
26711debfc3dSmrg  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
26721debfc3dSmrg  version_type=linux
26731debfc3dSmrg  need_lib_prefix=no
26741debfc3dSmrg  need_version=no
26751debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26761debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
26771debfc3dSmrg  shlibpath_overrides_runpath=no
26781debfc3dSmrg  hardcode_into_libs=yes
26791debfc3dSmrg  ;;
26801debfc3dSmrg
26811debfc3dSmrguts4*)
26821debfc3dSmrg  version_type=linux
26831debfc3dSmrg  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26841debfc3dSmrg  soname_spec='${libname}${release}${shared_ext}$major'
26851debfc3dSmrg  shlibpath_var=LD_LIBRARY_PATH
26861debfc3dSmrg  ;;
26871debfc3dSmrg
26881debfc3dSmrg*)
26891debfc3dSmrg  dynamic_linker=no
26901debfc3dSmrg  ;;
26911debfc3dSmrgesac
26921debfc3dSmrgAC_MSG_RESULT([$dynamic_linker])
26931debfc3dSmrgtest "$dynamic_linker" = no && can_build_shared=no
26941debfc3dSmrg
26951debfc3dSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26961debfc3dSmrgif test "$GCC" = yes; then
26971debfc3dSmrg  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26981debfc3dSmrgfi
26991debfc3dSmrg
27001debfc3dSmrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
27011debfc3dSmrg  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
27021debfc3dSmrgfi
27031debfc3dSmrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
27041debfc3dSmrg  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
27051debfc3dSmrgfi
27061debfc3dSmrg
27071debfc3dSmrg_LT_DECL([], [variables_saved_for_relink], [1],
27081debfc3dSmrg    [Variables whose values should be saved in libtool wrapper scripts and
27091debfc3dSmrg    restored at link time])
27101debfc3dSmrg_LT_DECL([], [need_lib_prefix], [0],
27111debfc3dSmrg    [Do we need the "lib" prefix for modules?])
27121debfc3dSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
27131debfc3dSmrg_LT_DECL([], [version_type], [0], [Library versioning type])
27141debfc3dSmrg_LT_DECL([], [runpath_var], [0],  [Shared library runtime path variable])
27151debfc3dSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
27161debfc3dSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0],
27171debfc3dSmrg    [Is shlibpath searched before the hard-coded library search path?])
27181debfc3dSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
27191debfc3dSmrg_LT_DECL([], [library_names_spec], [1],
27201debfc3dSmrg    [[List of archive names.  First name is the real one, the rest are links.
27211debfc3dSmrg    The last name is the one that the linker finds with -lNAME]])
27221debfc3dSmrg_LT_DECL([], [soname_spec], [1],
27231debfc3dSmrg    [[The coded name of the library, if different from the real name]])
27241debfc3dSmrg_LT_DECL([], [install_override_mode], [1],
27251debfc3dSmrg    [Permission mode override for installation of shared libraries])
27261debfc3dSmrg_LT_DECL([], [postinstall_cmds], [2],
27271debfc3dSmrg    [Command to use after installation of a shared archive])
27281debfc3dSmrg_LT_DECL([], [postuninstall_cmds], [2],
27291debfc3dSmrg    [Command to use after uninstallation of a shared archive])
27301debfc3dSmrg_LT_DECL([], [finish_cmds], [2],
27311debfc3dSmrg    [Commands used to finish a libtool library installation in a directory])
27321debfc3dSmrg_LT_DECL([], [finish_eval], [1],
27331debfc3dSmrg    [[As "finish_cmds", except a single script fragment to be evaled but
27341debfc3dSmrg    not shown]])
27351debfc3dSmrg_LT_DECL([], [hardcode_into_libs], [0],
27361debfc3dSmrg    [Whether we should hardcode library paths into libraries])
27371debfc3dSmrg_LT_DECL([], [sys_lib_search_path_spec], [2],
27381debfc3dSmrg    [Compile-time system search path for libraries])
27391debfc3dSmrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
27401debfc3dSmrg    [Run-time system search path for libraries])
27411debfc3dSmrg])# _LT_SYS_DYNAMIC_LINKER
27421debfc3dSmrg
27431debfc3dSmrg
27441debfc3dSmrg# _LT_PATH_TOOL_PREFIX(TOOL)
27451debfc3dSmrg# --------------------------
27461debfc3dSmrg# find a file program which can recognize shared library
27471debfc3dSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX],
27481debfc3dSmrg[m4_require([_LT_DECL_EGREP])dnl
27491debfc3dSmrgAC_MSG_CHECKING([for $1])
27501debfc3dSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
27511debfc3dSmrg[case $MAGIC_CMD in
27521debfc3dSmrg[[\\/*] |  ?:[\\/]*])
27531debfc3dSmrg  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
27541debfc3dSmrg  ;;
27551debfc3dSmrg*)
27561debfc3dSmrg  lt_save_MAGIC_CMD="$MAGIC_CMD"
27571debfc3dSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27581debfc3dSmrgdnl $ac_dummy forces splitting on constant user-supplied paths.
27591debfc3dSmrgdnl POSIX.2 word splitting is done only on the output of word expansions,
27601debfc3dSmrgdnl not every word.  This closes a longstanding sh security hole.
27611debfc3dSmrg  ac_dummy="m4_if([$2], , $PATH, [$2])"
27621debfc3dSmrg  for ac_dir in $ac_dummy; do
27631debfc3dSmrg    IFS="$lt_save_ifs"
27641debfc3dSmrg    test -z "$ac_dir" && ac_dir=.
27651debfc3dSmrg    if test -f $ac_dir/$1; then
27661debfc3dSmrg      lt_cv_path_MAGIC_CMD="$ac_dir/$1"
27671debfc3dSmrg      if test -n "$file_magic_test_file"; then
27681debfc3dSmrg	case $deplibs_check_method in
27691debfc3dSmrg	"file_magic "*)
27701debfc3dSmrg	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
27711debfc3dSmrg	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
27721debfc3dSmrg	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
27731debfc3dSmrg	    $EGREP "$file_magic_regex" > /dev/null; then
27741debfc3dSmrg	    :
27751debfc3dSmrg	  else
27761debfc3dSmrg	    cat <<_LT_EOF 1>&2
27771debfc3dSmrg
27781debfc3dSmrg*** Warning: the command libtool uses to detect shared libraries,
27791debfc3dSmrg*** $file_magic_cmd, produces output that libtool cannot recognize.
27801debfc3dSmrg*** The result is that libtool may fail to recognize shared libraries
27811debfc3dSmrg*** as such.  This will affect the creation of libtool libraries that
27821debfc3dSmrg*** depend on shared libraries, but programs linked with such libtool
27831debfc3dSmrg*** libraries will work regardless of this problem.  Nevertheless, you
27841debfc3dSmrg*** may want to report the problem to your system manager and/or to
27851debfc3dSmrg*** bug-libtool@gnu.org
27861debfc3dSmrg
27871debfc3dSmrg_LT_EOF
27881debfc3dSmrg	  fi ;;
27891debfc3dSmrg	esac
27901debfc3dSmrg      fi
27911debfc3dSmrg      break
27921debfc3dSmrg    fi
27931debfc3dSmrg  done
27941debfc3dSmrg  IFS="$lt_save_ifs"
27951debfc3dSmrg  MAGIC_CMD="$lt_save_MAGIC_CMD"
27961debfc3dSmrg  ;;
27971debfc3dSmrgesac])
27981debfc3dSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD"
27991debfc3dSmrgif test -n "$MAGIC_CMD"; then
28001debfc3dSmrg  AC_MSG_RESULT($MAGIC_CMD)
28011debfc3dSmrgelse
28021debfc3dSmrg  AC_MSG_RESULT(no)
28031debfc3dSmrgfi
28041debfc3dSmrg_LT_DECL([], [MAGIC_CMD], [0],
28051debfc3dSmrg	 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
28061debfc3dSmrg])# _LT_PATH_TOOL_PREFIX
28071debfc3dSmrg
28081debfc3dSmrg# Old name:
28091debfc3dSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
28101debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
28111debfc3dSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
28121debfc3dSmrg
28131debfc3dSmrg
28141debfc3dSmrg# _LT_PATH_MAGIC
28151debfc3dSmrg# --------------
28161debfc3dSmrg# find a file program which can recognize a shared library
28171debfc3dSmrgm4_defun([_LT_PATH_MAGIC],
28181debfc3dSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
28191debfc3dSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then
28201debfc3dSmrg  if test -n "$ac_tool_prefix"; then
28211debfc3dSmrg    _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
28221debfc3dSmrg  else
28231debfc3dSmrg    MAGIC_CMD=:
28241debfc3dSmrg  fi
28251debfc3dSmrgfi
28261debfc3dSmrg])# _LT_PATH_MAGIC
28271debfc3dSmrg
28281debfc3dSmrg
28291debfc3dSmrg# LT_PATH_LD
28301debfc3dSmrg# ----------
28311debfc3dSmrg# find the pathname to the GNU or non-GNU linker
28321debfc3dSmrgAC_DEFUN([LT_PATH_LD],
28331debfc3dSmrg[AC_REQUIRE([AC_PROG_CC])dnl
28341debfc3dSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl
28351debfc3dSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl
28361debfc3dSmrgm4_require([_LT_DECL_SED])dnl
28371debfc3dSmrgm4_require([_LT_DECL_EGREP])dnl
28381debfc3dSmrgm4_require([_LT_PROG_ECHO_BACKSLASH])dnl
28391debfc3dSmrg
28401debfc3dSmrgAC_ARG_WITH([gnu-ld],
28411debfc3dSmrg    [AS_HELP_STRING([--with-gnu-ld],
28421debfc3dSmrg	[assume the C compiler uses GNU ld @<:@default=no@:>@])],
28431debfc3dSmrg    [test "$withval" = no || with_gnu_ld=yes],
28441debfc3dSmrg    [with_gnu_ld=no])dnl
28451debfc3dSmrg
28461debfc3dSmrgac_prog=ld
28471debfc3dSmrgif test "$GCC" = yes; then
28481debfc3dSmrg  # Check if gcc -print-prog-name=ld gives a path.
28491debfc3dSmrg  AC_MSG_CHECKING([for ld used by $CC])
28501debfc3dSmrg  case $host in
28511debfc3dSmrg  *-*-mingw*)
28521debfc3dSmrg    # gcc leaves a trailing carriage return which upsets mingw
28531debfc3dSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
28541debfc3dSmrg  *)
28551debfc3dSmrg    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
28561debfc3dSmrg  esac
28571debfc3dSmrg  case $ac_prog in
28581debfc3dSmrg    # Accept absolute paths.
28591debfc3dSmrg    [[\\/]]* | ?:[[\\/]]*)
28601debfc3dSmrg      re_direlt='/[[^/]][[^/]]*/\.\./'
28611debfc3dSmrg      # Canonicalize the pathname of ld
28621debfc3dSmrg      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
28631debfc3dSmrg      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
28641debfc3dSmrg	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
28651debfc3dSmrg      done
28661debfc3dSmrg      test -z "$LD" && LD="$ac_prog"
28671debfc3dSmrg      ;;
28681debfc3dSmrg  "")
28691debfc3dSmrg    # If it fails, then pretend we aren't using GCC.
28701debfc3dSmrg    ac_prog=ld
28711debfc3dSmrg    ;;
28721debfc3dSmrg  *)
28731debfc3dSmrg    # If it is relative, then search for the first ld in PATH.
28741debfc3dSmrg    with_gnu_ld=unknown
28751debfc3dSmrg    ;;
28761debfc3dSmrg  esac
28771debfc3dSmrgelif test "$with_gnu_ld" = yes; then
28781debfc3dSmrg  AC_MSG_CHECKING([for GNU ld])
28791debfc3dSmrgelse
28801debfc3dSmrg  AC_MSG_CHECKING([for non-GNU ld])
28811debfc3dSmrgfi
28821debfc3dSmrgAC_CACHE_VAL(lt_cv_path_LD,
28831debfc3dSmrg[if test -z "$LD"; then
28841debfc3dSmrg  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
28851debfc3dSmrg  for ac_dir in $PATH; do
28861debfc3dSmrg    IFS="$lt_save_ifs"
28871debfc3dSmrg    test -z "$ac_dir" && ac_dir=.
28881debfc3dSmrg    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
28891debfc3dSmrg      lt_cv_path_LD="$ac_dir/$ac_prog"
28901debfc3dSmrg      # Check to see if the program is GNU ld.  I'd rather use --version,
28911debfc3dSmrg      # but apparently some variants of GNU ld only accept -v.
28921debfc3dSmrg      # Break only if it was the GNU/non-GNU ld that we prefer.
28931debfc3dSmrg      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
28941debfc3dSmrg      *GNU* | *'with BFD'*)
28951debfc3dSmrg	test "$with_gnu_ld" != no && break
28961debfc3dSmrg	;;
28971debfc3dSmrg      *)
28981debfc3dSmrg	test "$with_gnu_ld" != yes && break
28991debfc3dSmrg	;;
29001debfc3dSmrg      esac
29011debfc3dSmrg    fi
29021debfc3dSmrg  done
29031debfc3dSmrg  IFS="$lt_save_ifs"
29041debfc3dSmrgelse
29051debfc3dSmrg  lt_cv_path_LD="$LD" # Let the user override the test with a path.
29061debfc3dSmrgfi])
29071debfc3dSmrgLD="$lt_cv_path_LD"
29081debfc3dSmrgif test -n "$LD"; then
29091debfc3dSmrg  AC_MSG_RESULT($LD)
29101debfc3dSmrgelse
29111debfc3dSmrg  AC_MSG_RESULT(no)
29121debfc3dSmrgfi
29131debfc3dSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
29141debfc3dSmrg_LT_PATH_LD_GNU
29151debfc3dSmrgAC_SUBST([LD])
29161debfc3dSmrg
29171debfc3dSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
29181debfc3dSmrg])# LT_PATH_LD
29191debfc3dSmrg
29201debfc3dSmrg# Old names:
29211debfc3dSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
29221debfc3dSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
29231debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
29241debfc3dSmrgdnl AC_DEFUN([AM_PROG_LD], [])
29251debfc3dSmrgdnl AC_DEFUN([AC_PROG_LD], [])
29261debfc3dSmrg
29271debfc3dSmrg
29281debfc3dSmrg# _LT_PATH_LD_GNU
29291debfc3dSmrg#- --------------
29301debfc3dSmrgm4_defun([_LT_PATH_LD_GNU],
29311debfc3dSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
29321debfc3dSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v.
29331debfc3dSmrgcase `$LD -v 2>&1 </dev/null` in
29341debfc3dSmrg*GNU* | *'with BFD'*)
29351debfc3dSmrg  lt_cv_prog_gnu_ld=yes
29361debfc3dSmrg  ;;
29371debfc3dSmrg*)
29381debfc3dSmrg  lt_cv_prog_gnu_ld=no
29391debfc3dSmrg  ;;
29401debfc3dSmrgesac])
29411debfc3dSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld
29421debfc3dSmrg])# _LT_PATH_LD_GNU
29431debfc3dSmrg
29441debfc3dSmrg
29451debfc3dSmrg# _LT_CMD_RELOAD
29461debfc3dSmrg# --------------
29471debfc3dSmrg# find reload flag for linker
29481debfc3dSmrg#   -- PORTME Some linkers may need a different reload flag.
29491debfc3dSmrgm4_defun([_LT_CMD_RELOAD],
29501debfc3dSmrg[AC_CACHE_CHECK([for $LD option to reload object files],
29511debfc3dSmrg  lt_cv_ld_reload_flag,
29521debfc3dSmrg  [lt_cv_ld_reload_flag='-r'])
29531debfc3dSmrgreload_flag=$lt_cv_ld_reload_flag
29541debfc3dSmrgcase $reload_flag in
29551debfc3dSmrg"" | " "*) ;;
29561debfc3dSmrg*) reload_flag=" $reload_flag" ;;
29571debfc3dSmrgesac
29581debfc3dSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs'
29591debfc3dSmrgcase $host_os in
29601debfc3dSmrg  darwin*)
29611debfc3dSmrg    if test "$GCC" = yes; then
29621debfc3dSmrg      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
29631debfc3dSmrg    else
29641debfc3dSmrg      reload_cmds='$LD$reload_flag -o $output$reload_objs'
29651debfc3dSmrg    fi
29661debfc3dSmrg    ;;
29671debfc3dSmrgesac
29681debfc3dSmrg_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
29691debfc3dSmrg_LT_TAGDECL([], [reload_cmds], [2])dnl
29701debfc3dSmrg])# _LT_CMD_RELOAD
29711debfc3dSmrg
29721debfc3dSmrg
29731debfc3dSmrg# _LT_CHECK_MAGIC_METHOD
29741debfc3dSmrg# ----------------------
29751debfc3dSmrg# how to check for library dependencies
29761debfc3dSmrg#  -- PORTME fill in with the dynamic library characteristics
29771debfc3dSmrgm4_defun([_LT_CHECK_MAGIC_METHOD],
29781debfc3dSmrg[m4_require([_LT_DECL_EGREP])
29791debfc3dSmrgm4_require([_LT_DECL_OBJDUMP])
29801debfc3dSmrgAC_CACHE_CHECK([how to recognize dependent libraries],
29811debfc3dSmrglt_cv_deplibs_check_method,
29821debfc3dSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD'
29831debfc3dSmrglt_cv_file_magic_test_file=
29841debfc3dSmrglt_cv_deplibs_check_method='unknown'
29851debfc3dSmrg# Need to set the preceding variable on all platforms that support
29861debfc3dSmrg# interlibrary dependencies.
29871debfc3dSmrg# 'none' -- dependencies not supported.
29881debfc3dSmrg# `unknown' -- same as none, but documents that we really don't know.
29891debfc3dSmrg# 'pass_all' -- all dependencies passed with no checks.
29901debfc3dSmrg# 'test_compile' -- check by making test program.
29911debfc3dSmrg# 'file_magic [[regex]]' -- check by looking for files in library path
29921debfc3dSmrg# which responds to the $file_magic_cmd with a given extended regex.
29931debfc3dSmrg# If you have `file' or equivalent on your system and you're not sure
29941debfc3dSmrg# whether `pass_all' will *always* work, you probably want this one.
29951debfc3dSmrg
29961debfc3dSmrgcase $host_os in
29971debfc3dSmrgaix[[4-9]]*)
29981debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
29991debfc3dSmrg  ;;
30001debfc3dSmrg
30011debfc3dSmrgbeos*)
30021debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
30031debfc3dSmrg  ;;
30041debfc3dSmrg
30051debfc3dSmrgbsdi[[45]]*)
30061debfc3dSmrg  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
30071debfc3dSmrg  lt_cv_file_magic_cmd='/usr/bin/file -L'
30081debfc3dSmrg  lt_cv_file_magic_test_file=/shlib/libc.so
30091debfc3dSmrg  ;;
30101debfc3dSmrg
30111debfc3dSmrgcygwin*)
30121debfc3dSmrg  # func_win32_libid is a shell function defined in ltmain.sh
30131debfc3dSmrg  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30141debfc3dSmrg  lt_cv_file_magic_cmd='func_win32_libid'
30151debfc3dSmrg  ;;
30161debfc3dSmrg
30171debfc3dSmrgmingw* | pw32*)
30181debfc3dSmrg  # Base MSYS/MinGW do not provide the 'file' command needed by
30191debfc3dSmrg  # func_win32_libid shell function, so use a weaker test based on 'objdump',
30201debfc3dSmrg  # unless we find 'file', for example because we are cross-compiling.
30211debfc3dSmrg  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
30221debfc3dSmrg  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
30231debfc3dSmrg    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
30241debfc3dSmrg    lt_cv_file_magic_cmd='func_win32_libid'
30251debfc3dSmrg  else
30261debfc3dSmrg    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
30271debfc3dSmrg    lt_cv_file_magic_cmd='$OBJDUMP -f'
30281debfc3dSmrg  fi
30291debfc3dSmrg  ;;
30301debfc3dSmrg
30311debfc3dSmrgcegcc*)
30321debfc3dSmrg  # use the weaker test based on 'objdump'. See mingw*.
30331debfc3dSmrg  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
30341debfc3dSmrg  lt_cv_file_magic_cmd='$OBJDUMP -f'
30351debfc3dSmrg  ;;
30361debfc3dSmrg
30371debfc3dSmrgdarwin* | rhapsody*)
30381debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
30391debfc3dSmrg  ;;
30401debfc3dSmrg
30411debfc3dSmrgfreebsd* | dragonfly*)
30421debfc3dSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
30431debfc3dSmrg    case $host_cpu in
30441debfc3dSmrg    i*86 )
30451debfc3dSmrg      # Not sure whether the presence of OpenBSD here was a mistake.
30461debfc3dSmrg      # Let's accept both of them until this is cleared up.
30471debfc3dSmrg      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
30481debfc3dSmrg      lt_cv_file_magic_cmd=/usr/bin/file
30491debfc3dSmrg      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
30501debfc3dSmrg      ;;
30511debfc3dSmrg    esac
30521debfc3dSmrg  else
30531debfc3dSmrg    lt_cv_deplibs_check_method=pass_all
30541debfc3dSmrg  fi
30551debfc3dSmrg  ;;
30561debfc3dSmrg
30571debfc3dSmrggnu*)
30581debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
30591debfc3dSmrg  ;;
30601debfc3dSmrg
30611debfc3dSmrghaiku*)
30621debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
30631debfc3dSmrg  ;;
30641debfc3dSmrg
30651debfc3dSmrghpux10.20* | hpux11*)
30661debfc3dSmrg  lt_cv_file_magic_cmd=/usr/bin/file
30671debfc3dSmrg  case $host_cpu in
30681debfc3dSmrg  ia64*)
30691debfc3dSmrg    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
30701debfc3dSmrg    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
30711debfc3dSmrg    ;;
30721debfc3dSmrg  hppa*64*)
30731debfc3dSmrg    [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]']
30741debfc3dSmrg    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
30751debfc3dSmrg    ;;
30761debfc3dSmrg  *)
30771debfc3dSmrg    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
30781debfc3dSmrg    lt_cv_file_magic_test_file=/usr/lib/libc.sl
30791debfc3dSmrg    ;;
30801debfc3dSmrg  esac
30811debfc3dSmrg  ;;
30821debfc3dSmrg
30831debfc3dSmrginterix[[3-9]]*)
30841debfc3dSmrg  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
30851debfc3dSmrg  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
30861debfc3dSmrg  ;;
30871debfc3dSmrg
30881debfc3dSmrgirix5* | irix6* | nonstopux*)
30891debfc3dSmrg  case $LD in
30901debfc3dSmrg  *-32|*"-32 ") libmagic=32-bit;;
30911debfc3dSmrg  *-n32|*"-n32 ") libmagic=N32;;
30921debfc3dSmrg  *-64|*"-64 ") libmagic=64-bit;;
30931debfc3dSmrg  *) libmagic=never-match;;
30941debfc3dSmrg  esac
30951debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
30961debfc3dSmrg  ;;
30971debfc3dSmrg
30981debfc3dSmrg# This must be Linux ELF.
3099*8feb0f0bSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
31001debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31011debfc3dSmrg  ;;
31021debfc3dSmrg
31031debfc3dSmrgnetbsd*)
31041debfc3dSmrg  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
31051debfc3dSmrg    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
31061debfc3dSmrg  else
31071debfc3dSmrg    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
31081debfc3dSmrg  fi
31091debfc3dSmrg  ;;
31101debfc3dSmrg
31111debfc3dSmrgnewos6*)
31121debfc3dSmrg  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
31131debfc3dSmrg  lt_cv_file_magic_cmd=/usr/bin/file
31141debfc3dSmrg  lt_cv_file_magic_test_file=/usr/lib/libnls.so
31151debfc3dSmrg  ;;
31161debfc3dSmrg
31171debfc3dSmrg*nto* | *qnx*)
31181debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31191debfc3dSmrg  ;;
31201debfc3dSmrg
31211debfc3dSmrgopenbsd*)
31221debfc3dSmrg  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31231debfc3dSmrg    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
31241debfc3dSmrg  else
31251debfc3dSmrg    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
31261debfc3dSmrg  fi
31271debfc3dSmrg  ;;
31281debfc3dSmrg
31291debfc3dSmrgosf3* | osf4* | osf5*)
31301debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31311debfc3dSmrg  ;;
31321debfc3dSmrg
31331debfc3dSmrgrdos*)
31341debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31351debfc3dSmrg  ;;
31361debfc3dSmrg
31371debfc3dSmrgsolaris*)
31381debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31391debfc3dSmrg  ;;
31401debfc3dSmrg
31411debfc3dSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
31421debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31431debfc3dSmrg  ;;
31441debfc3dSmrg
31451debfc3dSmrgsysv4 | sysv4.3*)
31461debfc3dSmrg  case $host_vendor in
31471debfc3dSmrg  motorola)
31481debfc3dSmrg    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]]'
31491debfc3dSmrg    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
31501debfc3dSmrg    ;;
31511debfc3dSmrg  ncr)
31521debfc3dSmrg    lt_cv_deplibs_check_method=pass_all
31531debfc3dSmrg    ;;
31541debfc3dSmrg  sequent)
31551debfc3dSmrg    lt_cv_file_magic_cmd='/bin/file'
31561debfc3dSmrg    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
31571debfc3dSmrg    ;;
31581debfc3dSmrg  sni)
31591debfc3dSmrg    lt_cv_file_magic_cmd='/bin/file'
31601debfc3dSmrg    lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
31611debfc3dSmrg    lt_cv_file_magic_test_file=/lib/libc.so
31621debfc3dSmrg    ;;
31631debfc3dSmrg  siemens)
31641debfc3dSmrg    lt_cv_deplibs_check_method=pass_all
31651debfc3dSmrg    ;;
31661debfc3dSmrg  pc)
31671debfc3dSmrg    lt_cv_deplibs_check_method=pass_all
31681debfc3dSmrg    ;;
31691debfc3dSmrg  esac
31701debfc3dSmrg  ;;
31711debfc3dSmrg
31721debfc3dSmrgtpf*)
31731debfc3dSmrg  lt_cv_deplibs_check_method=pass_all
31741debfc3dSmrg  ;;
31751debfc3dSmrgesac
31761debfc3dSmrg])
31771debfc3dSmrgfile_magic_cmd=$lt_cv_file_magic_cmd
31781debfc3dSmrgdeplibs_check_method=$lt_cv_deplibs_check_method
31791debfc3dSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown
31801debfc3dSmrg
31811debfc3dSmrg_LT_DECL([], [deplibs_check_method], [1],
31821debfc3dSmrg    [Method to check whether dependent libraries are shared objects])
31831debfc3dSmrg_LT_DECL([], [file_magic_cmd], [1],
31841debfc3dSmrg    [Command to use when deplibs_check_method == "file_magic"])
31851debfc3dSmrg])# _LT_CHECK_MAGIC_METHOD
31861debfc3dSmrg
31871debfc3dSmrg
31881debfc3dSmrg# LT_PATH_NM
31891debfc3dSmrg# ----------
31901debfc3dSmrg# find the pathname to a BSD- or MS-compatible name lister
31911debfc3dSmrgAC_DEFUN([LT_PATH_NM],
31921debfc3dSmrg[AC_REQUIRE([AC_PROG_CC])dnl
31931debfc3dSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
31941debfc3dSmrg[if test -n "$NM"; then
31951debfc3dSmrg  # Let the user override the test.
31961debfc3dSmrg  lt_cv_path_NM="$NM"
31971debfc3dSmrgelse
31981debfc3dSmrg  lt_nm_to_check="${ac_tool_prefix}nm"
31991debfc3dSmrg  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
32001debfc3dSmrg    lt_nm_to_check="$lt_nm_to_check nm"
32011debfc3dSmrg  fi
32021debfc3dSmrg  for lt_tmp_nm in $lt_nm_to_check; do
32031debfc3dSmrg    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
32041debfc3dSmrg    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
32051debfc3dSmrg      IFS="$lt_save_ifs"
32061debfc3dSmrg      test -z "$ac_dir" && ac_dir=.
32071debfc3dSmrg      tmp_nm="$ac_dir/$lt_tmp_nm"
32081debfc3dSmrg      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
32091debfc3dSmrg	# Check to see if the nm accepts a BSD-compat flag.
32101debfc3dSmrg	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
32111debfc3dSmrg	#   nm: unknown option "B" ignored
32121debfc3dSmrg	# Tru64's nm complains that /dev/null is an invalid object file
32131debfc3dSmrg	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
32141debfc3dSmrg	*/dev/null* | *'Invalid file or object type'*)
32151debfc3dSmrg	  lt_cv_path_NM="$tmp_nm -B"
32161debfc3dSmrg	  break
32171debfc3dSmrg	  ;;
32181debfc3dSmrg	*)
32191debfc3dSmrg	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
32201debfc3dSmrg	  */dev/null*)
32211debfc3dSmrg	    lt_cv_path_NM="$tmp_nm -p"
32221debfc3dSmrg	    break
32231debfc3dSmrg	    ;;
32241debfc3dSmrg	  *)
32251debfc3dSmrg	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
32261debfc3dSmrg	    continue # so that we can try to find one that supports BSD flags
32271debfc3dSmrg	    ;;
32281debfc3dSmrg	  esac
32291debfc3dSmrg	  ;;
32301debfc3dSmrg	esac
32311debfc3dSmrg      fi
32321debfc3dSmrg    done
32331debfc3dSmrg    IFS="$lt_save_ifs"
32341debfc3dSmrg  done
32351debfc3dSmrg  : ${lt_cv_path_NM=no}
32361debfc3dSmrgfi])
32371debfc3dSmrgif test "$lt_cv_path_NM" != "no"; then
32381debfc3dSmrg  NM="$lt_cv_path_NM"
32391debfc3dSmrgelse
32401debfc3dSmrg  # Didn't find any BSD compatible name lister, look for dumpbin.
32411debfc3dSmrg  if test -n "$DUMPBIN"; then :
32421debfc3dSmrg    # Let the user override the test.
32431debfc3dSmrg  else
32441debfc3dSmrg    AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
32451debfc3dSmrg    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
32461debfc3dSmrg    *COFF*)
32471debfc3dSmrg      DUMPBIN="$DUMPBIN -symbols"
32481debfc3dSmrg      ;;
32491debfc3dSmrg    *)
32501debfc3dSmrg      DUMPBIN=:
32511debfc3dSmrg      ;;
32521debfc3dSmrg    esac
32531debfc3dSmrg  fi
32541debfc3dSmrg  AC_SUBST([DUMPBIN])
32551debfc3dSmrg  if test "$DUMPBIN" != ":"; then
32561debfc3dSmrg    NM="$DUMPBIN"
32571debfc3dSmrg  fi
32581debfc3dSmrgfi
32591debfc3dSmrgtest -z "$NM" && NM=nm
32601debfc3dSmrgAC_SUBST([NM])
32611debfc3dSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
32621debfc3dSmrg
32631debfc3dSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
32641debfc3dSmrg  [lt_cv_nm_interface="BSD nm"
32651debfc3dSmrg  echo "int some_variable = 0;" > conftest.$ac_ext
32661debfc3dSmrg  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
32671debfc3dSmrg  (eval "$ac_compile" 2>conftest.err)
32681debfc3dSmrg  cat conftest.err >&AS_MESSAGE_LOG_FD
32691debfc3dSmrg  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
32701debfc3dSmrg  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
32711debfc3dSmrg  cat conftest.err >&AS_MESSAGE_LOG_FD
32721debfc3dSmrg  (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
32731debfc3dSmrg  cat conftest.out >&AS_MESSAGE_LOG_FD
32741debfc3dSmrg  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
32751debfc3dSmrg    lt_cv_nm_interface="MS dumpbin"
32761debfc3dSmrg  fi
32771debfc3dSmrg  rm -f conftest*])
32781debfc3dSmrg])# LT_PATH_NM
32791debfc3dSmrg
32801debfc3dSmrg# Old names:
32811debfc3dSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
32821debfc3dSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
32831debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
32841debfc3dSmrgdnl AC_DEFUN([AM_PROG_NM], [])
32851debfc3dSmrgdnl AC_DEFUN([AC_PROG_NM], [])
32861debfc3dSmrg
32871debfc3dSmrg
32881debfc3dSmrg# LT_LIB_M
32891debfc3dSmrg# --------
32901debfc3dSmrg# check for math library
32911debfc3dSmrgAC_DEFUN([LT_LIB_M],
32921debfc3dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl
32931debfc3dSmrgLIBM=
32941debfc3dSmrgcase $host in
32951debfc3dSmrg*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
32961debfc3dSmrg  # These system don't have libm, or don't need it
32971debfc3dSmrg  ;;
32981debfc3dSmrg*-ncr-sysv4.3*)
32991debfc3dSmrg  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
33001debfc3dSmrg  AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
33011debfc3dSmrg  ;;
33021debfc3dSmrg*)
33031debfc3dSmrg  AC_CHECK_LIB(m, cos, LIBM="-lm")
33041debfc3dSmrg  ;;
33051debfc3dSmrgesac
33061debfc3dSmrgAC_SUBST([LIBM])
33071debfc3dSmrg])# LT_LIB_M
33081debfc3dSmrg
33091debfc3dSmrg# Old name:
33101debfc3dSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
33111debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
33121debfc3dSmrgdnl AC_DEFUN([AC_CHECK_LIBM], [])
33131debfc3dSmrg
33141debfc3dSmrg
33151debfc3dSmrg# _LT_COMPILER_NO_RTTI([TAGNAME])
33161debfc3dSmrg# -------------------------------
33171debfc3dSmrgm4_defun([_LT_COMPILER_NO_RTTI],
33181debfc3dSmrg[m4_require([_LT_TAG_COMPILER])dnl
33191debfc3dSmrg
33201debfc3dSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
33211debfc3dSmrg
33221debfc3dSmrgif test "$GCC" = yes; then
33231debfc3dSmrg  case $cc_basename in
33241debfc3dSmrg  nvcc*)
33251debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
33261debfc3dSmrg  *)
33271debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
33281debfc3dSmrg  esac
33291debfc3dSmrg
33301debfc3dSmrg  _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
33311debfc3dSmrg    lt_cv_prog_compiler_rtti_exceptions,
33321debfc3dSmrg    [-fno-rtti -fno-exceptions], [],
33331debfc3dSmrg    [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
33341debfc3dSmrgfi
33351debfc3dSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
33361debfc3dSmrg	[Compiler flag to turn off builtin functions])
33371debfc3dSmrg])# _LT_COMPILER_NO_RTTI
33381debfc3dSmrg
33391debfc3dSmrg
33401debfc3dSmrg# _LT_CMD_GLOBAL_SYMBOLS
33411debfc3dSmrg# ----------------------
33421debfc3dSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS],
33431debfc3dSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl
33441debfc3dSmrgAC_REQUIRE([AC_PROG_CC])dnl
33451debfc3dSmrgAC_REQUIRE([AC_PROG_AWK])dnl
33461debfc3dSmrgAC_REQUIRE([LT_PATH_NM])dnl
33471debfc3dSmrgAC_REQUIRE([LT_PATH_LD])dnl
33481debfc3dSmrgm4_require([_LT_DECL_SED])dnl
33491debfc3dSmrgm4_require([_LT_DECL_EGREP])dnl
33501debfc3dSmrgm4_require([_LT_TAG_COMPILER])dnl
33511debfc3dSmrg
33521debfc3dSmrg# Check for command to grab the raw symbol name followed by C symbol from nm.
33531debfc3dSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object])
33541debfc3dSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
33551debfc3dSmrg[
33561debfc3dSmrg# These are sane defaults that work on at least a few old systems.
33571debfc3dSmrg# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
33581debfc3dSmrg
33591debfc3dSmrg# Character class describing NM global symbol codes.
33601debfc3dSmrgsymcode='[[BCDEGRST]]'
33611debfc3dSmrg
33621debfc3dSmrg# Regexp to match symbols that can be accessed directly from C.
33631debfc3dSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
33641debfc3dSmrg
33651debfc3dSmrg# Define system-specific variables.
33661debfc3dSmrgcase $host_os in
33671debfc3dSmrgaix*)
33681debfc3dSmrg  symcode='[[BCDT]]'
33691debfc3dSmrg  ;;
33701debfc3dSmrgcygwin* | mingw* | pw32* | cegcc*)
33711debfc3dSmrg  symcode='[[ABCDGISTW]]'
33721debfc3dSmrg  ;;
33731debfc3dSmrghpux*)
33741debfc3dSmrg  if test "$host_cpu" = ia64; then
33751debfc3dSmrg    symcode='[[ABCDEGRST]]'
33761debfc3dSmrg  fi
33771debfc3dSmrg  ;;
33781debfc3dSmrgirix* | nonstopux*)
33791debfc3dSmrg  symcode='[[BCDEGRST]]'
33801debfc3dSmrg  ;;
33811debfc3dSmrgosf*)
33821debfc3dSmrg  symcode='[[BCDEGQRST]]'
33831debfc3dSmrg  ;;
33841debfc3dSmrgsolaris*)
33851debfc3dSmrg  symcode='[[BDRT]]'
33861debfc3dSmrg  ;;
33871debfc3dSmrgsco3.2v5*)
33881debfc3dSmrg  symcode='[[DT]]'
33891debfc3dSmrg  ;;
33901debfc3dSmrgsysv4.2uw2*)
33911debfc3dSmrg  symcode='[[DT]]'
33921debfc3dSmrg  ;;
33931debfc3dSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*)
33941debfc3dSmrg  symcode='[[ABDT]]'
33951debfc3dSmrg  ;;
33961debfc3dSmrgsysv4)
33971debfc3dSmrg  symcode='[[DFNSTU]]'
33981debfc3dSmrg  ;;
33991debfc3dSmrgesac
34001debfc3dSmrg
34011debfc3dSmrg# If we're using GNU nm, then use its standard symbol codes.
34021debfc3dSmrgcase `$NM -V 2>&1` in
34031debfc3dSmrg*GNU* | *'with BFD'*)
34041debfc3dSmrg  symcode='[[ABCDGIRSTW]]' ;;
34051debfc3dSmrgesac
34061debfc3dSmrg
34071debfc3dSmrg# Transform an extracted symbol line into a proper C declaration.
34081debfc3dSmrg# Some systems (esp. on ia64) link data and code symbols differently,
34091debfc3dSmrg# so use this general approach.
34101debfc3dSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
34111debfc3dSmrg
34121debfc3dSmrg# Transform an extracted symbol line into symbol name and symbol address
34131debfc3dSmrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p'"
34141debfc3dSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
34151debfc3dSmrg
34161debfc3dSmrg# Handle CRLF in mingw tool chain
34171debfc3dSmrgopt_cr=
34181debfc3dSmrgcase $build_os in
34191debfc3dSmrgmingw*)
34201debfc3dSmrg  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
34211debfc3dSmrg  ;;
34221debfc3dSmrgesac
34231debfc3dSmrg
34241debfc3dSmrg# Try without a prefix underscore, then with it.
34251debfc3dSmrgfor ac_symprfx in "" "_"; do
34261debfc3dSmrg
34271debfc3dSmrg  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
34281debfc3dSmrg  symxfrm="\\1 $ac_symprfx\\2 \\2"
34291debfc3dSmrg
34301debfc3dSmrg  # Write the raw and C identifiers.
34311debfc3dSmrg  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
34321debfc3dSmrg    # Fake it for dumpbin and say T for any non-static function
34331debfc3dSmrg    # and D for any global variable.
34341debfc3dSmrg    # Also find C++ and __fastcall symbols from MSVC++,
34351debfc3dSmrg    # which start with @ or ?.
34361debfc3dSmrg    lt_cv_sys_global_symbol_pipe="$AWK ['"\
34371debfc3dSmrg"     {last_section=section; section=\$ 3};"\
34381debfc3dSmrg"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
34391debfc3dSmrg"     \$ 0!~/External *\|/{next};"\
34401debfc3dSmrg"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
34411debfc3dSmrg"     {if(hide[section]) next};"\
34421debfc3dSmrg"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
34431debfc3dSmrg"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
34441debfc3dSmrg"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
34451debfc3dSmrg"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
34461debfc3dSmrg"     ' prfx=^$ac_symprfx]"
34471debfc3dSmrg  else
34481debfc3dSmrg    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[	 ]]\($symcode$symcode*\)[[	 ]][[	 ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
34491debfc3dSmrg  fi
34501debfc3dSmrg
34511debfc3dSmrg  # Check to see that the pipe works correctly.
34521debfc3dSmrg  pipe_works=no
34531debfc3dSmrg
34541debfc3dSmrg  rm -f conftest*
34551debfc3dSmrg  cat > conftest.$ac_ext <<_LT_EOF
34561debfc3dSmrg#ifdef __cplusplus
34571debfc3dSmrgextern "C" {
34581debfc3dSmrg#endif
34591debfc3dSmrgchar nm_test_var;
34601debfc3dSmrgvoid nm_test_func(void);
34611debfc3dSmrgvoid nm_test_func(void){}
34621debfc3dSmrg#ifdef __cplusplus
34631debfc3dSmrg}
34641debfc3dSmrg#endif
34651debfc3dSmrgint main(){nm_test_var='a';nm_test_func();return(0);}
34661debfc3dSmrg_LT_EOF
34671debfc3dSmrg
34681debfc3dSmrg  if AC_TRY_EVAL(ac_compile); then
34691debfc3dSmrg    # Now try to grab the symbols.
34701debfc3dSmrg    nlist=conftest.nm
34711debfc3dSmrg    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
34721debfc3dSmrg      # Try sorting and uniquifying the output.
34731debfc3dSmrg      if sort "$nlist" | uniq > "$nlist"T; then
34741debfc3dSmrg	mv -f "$nlist"T "$nlist"
34751debfc3dSmrg      else
34761debfc3dSmrg	rm -f "$nlist"T
34771debfc3dSmrg      fi
34781debfc3dSmrg
34791debfc3dSmrg      # Make sure that we snagged all the symbols we need.
34801debfc3dSmrg      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
34811debfc3dSmrg	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
34821debfc3dSmrg	  cat <<_LT_EOF > conftest.$ac_ext
34831debfc3dSmrg#ifdef __cplusplus
34841debfc3dSmrgextern "C" {
34851debfc3dSmrg#endif
34861debfc3dSmrg
34871debfc3dSmrg_LT_EOF
34881debfc3dSmrg	  # Now generate the symbol file.
34891debfc3dSmrg	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
34901debfc3dSmrg
34911debfc3dSmrg	  cat <<_LT_EOF >> conftest.$ac_ext
34921debfc3dSmrg
34931debfc3dSmrg/* The mapping between symbol names and symbols.  */
34941debfc3dSmrgconst struct {
34951debfc3dSmrg  const char *name;
34961debfc3dSmrg  void       *address;
34971debfc3dSmrg}
34981debfc3dSmrglt__PROGRAM__LTX_preloaded_symbols[[]] =
34991debfc3dSmrg{
35001debfc3dSmrg  { "@PROGRAM@", (void *) 0 },
35011debfc3dSmrg_LT_EOF
35021debfc3dSmrg	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
35031debfc3dSmrg	  cat <<\_LT_EOF >> conftest.$ac_ext
35041debfc3dSmrg  {0, (void *) 0}
35051debfc3dSmrg};
35061debfc3dSmrg
35071debfc3dSmrg/* This works around a problem in FreeBSD linker */
35081debfc3dSmrg#ifdef FREEBSD_WORKAROUND
35091debfc3dSmrgstatic const void *lt_preloaded_setup() {
35101debfc3dSmrg  return lt__PROGRAM__LTX_preloaded_symbols;
35111debfc3dSmrg}
35121debfc3dSmrg#endif
35131debfc3dSmrg
35141debfc3dSmrg#ifdef __cplusplus
35151debfc3dSmrg}
35161debfc3dSmrg#endif
35171debfc3dSmrg_LT_EOF
35181debfc3dSmrg	  # Now try linking the two files.
35191debfc3dSmrg	  mv conftest.$ac_objext conftstm.$ac_objext
35201debfc3dSmrg	  lt_save_LIBS="$LIBS"
35211debfc3dSmrg	  lt_save_CFLAGS="$CFLAGS"
35221debfc3dSmrg	  LIBS="conftstm.$ac_objext"
35231debfc3dSmrg	  CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
35241debfc3dSmrg	  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
35251debfc3dSmrg	    pipe_works=yes
35261debfc3dSmrg	  fi
35271debfc3dSmrg	  LIBS="$lt_save_LIBS"
35281debfc3dSmrg	  CFLAGS="$lt_save_CFLAGS"
35291debfc3dSmrg	else
35301debfc3dSmrg	  echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
35311debfc3dSmrg	fi
35321debfc3dSmrg      else
35331debfc3dSmrg	echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
35341debfc3dSmrg      fi
35351debfc3dSmrg    else
35361debfc3dSmrg      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
35371debfc3dSmrg    fi
35381debfc3dSmrg  else
35391debfc3dSmrg    echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
35401debfc3dSmrg    cat conftest.$ac_ext >&5
35411debfc3dSmrg  fi
35421debfc3dSmrg  rm -rf conftest* conftst*
35431debfc3dSmrg
35441debfc3dSmrg  # Do not use the global_symbol_pipe unless it works.
35451debfc3dSmrg  if test "$pipe_works" = yes; then
35461debfc3dSmrg    break
35471debfc3dSmrg  else
35481debfc3dSmrg    lt_cv_sys_global_symbol_pipe=
35491debfc3dSmrg  fi
35501debfc3dSmrgdone
35511debfc3dSmrg])
35521debfc3dSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then
35531debfc3dSmrg  lt_cv_sys_global_symbol_to_cdecl=
35541debfc3dSmrgfi
35551debfc3dSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
35561debfc3dSmrg  AC_MSG_RESULT(failed)
35571debfc3dSmrgelse
35581debfc3dSmrg  AC_MSG_RESULT(ok)
35591debfc3dSmrgfi
35601debfc3dSmrg
35611debfc3dSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
35621debfc3dSmrg    [Take the output of nm and produce a listing of raw symbols and C names])
35631debfc3dSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
35641debfc3dSmrg    [Transform the output of nm in a proper C declaration])
35651debfc3dSmrg_LT_DECL([global_symbol_to_c_name_address],
35661debfc3dSmrg    [lt_cv_sys_global_symbol_to_c_name_address], [1],
35671debfc3dSmrg    [Transform the output of nm in a C name address pair])
35681debfc3dSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
35691debfc3dSmrg    [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
35701debfc3dSmrg    [Transform the output of nm in a C name address pair when lib prefix is needed])
35711debfc3dSmrg]) # _LT_CMD_GLOBAL_SYMBOLS
35721debfc3dSmrg
35731debfc3dSmrg
35741debfc3dSmrg# _LT_COMPILER_PIC([TAGNAME])
35751debfc3dSmrg# ---------------------------
35761debfc3dSmrgm4_defun([_LT_COMPILER_PIC],
35771debfc3dSmrg[m4_require([_LT_TAG_COMPILER])dnl
35781debfc3dSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)=
35791debfc3dSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)=
35801debfc3dSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)=
35811debfc3dSmrg
35821debfc3dSmrgAC_MSG_CHECKING([for $compiler option to produce PIC])
35831debfc3dSmrgm4_if([$1], [CXX], [
35841debfc3dSmrg  # C++ specific cases for pic, static, wl, etc.
35851debfc3dSmrg  if test "$GXX" = yes; then
35861debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
35871debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
35881debfc3dSmrg
35891debfc3dSmrg    case $host_os in
35901debfc3dSmrg    aix*)
35911debfc3dSmrg      # All AIX code is PIC.
35921debfc3dSmrg      if test "$host_cpu" = ia64; then
35931debfc3dSmrg	# AIX 5 now supports IA64 processor
35941debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
35951debfc3dSmrg      fi
35961debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
35971debfc3dSmrg      ;;
35981debfc3dSmrg
35991debfc3dSmrg    amigaos*)
36001debfc3dSmrg      case $host_cpu in
36011debfc3dSmrg      powerpc)
36021debfc3dSmrg            # see comment about AmigaOS4 .so support
36031debfc3dSmrg            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
36041debfc3dSmrg        ;;
36051debfc3dSmrg      m68k)
36061debfc3dSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
36071debfc3dSmrg            # adding the `-m68020' flag to GCC prevents building anything better,
36081debfc3dSmrg            # like `-m68040'.
36091debfc3dSmrg            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
36101debfc3dSmrg        ;;
36111debfc3dSmrg      esac
36121debfc3dSmrg      ;;
36131debfc3dSmrg
36141debfc3dSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
36151debfc3dSmrg      # PIC is the default for these OSes.
36161debfc3dSmrg      ;;
36171debfc3dSmrg    mingw* | cygwin* | os2* | pw32* | cegcc*)
36181debfc3dSmrg      # This hack is so that the source file can tell whether it is being
36191debfc3dSmrg      # built for inclusion in a dll (and should export symbols for example).
36201debfc3dSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
36211debfc3dSmrg      # (--disable-auto-import) libraries
36221debfc3dSmrg      m4_if([$1], [GCJ], [],
36231debfc3dSmrg	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
36241debfc3dSmrg      ;;
36251debfc3dSmrg    darwin* | rhapsody*)
36261debfc3dSmrg      # PIC is the default on this platform
36271debfc3dSmrg      # Common symbols not allowed in MH_DYLIB files
36281debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
36291debfc3dSmrg      ;;
36301debfc3dSmrg    *djgpp*)
36311debfc3dSmrg      # DJGPP does not support shared libraries at all
36321debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)=
36331debfc3dSmrg      ;;
36341debfc3dSmrg    haiku*)
36351debfc3dSmrg      # PIC is the default for Haiku.
36361debfc3dSmrg      # The "-static" flag exists, but is broken.
36371debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)=
36381debfc3dSmrg      ;;
36391debfc3dSmrg    interix[[3-9]]*)
36401debfc3dSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
36411debfc3dSmrg      # Instead, we relocate shared libraries at runtime.
36421debfc3dSmrg      ;;
36431debfc3dSmrg    sysv4*MP*)
36441debfc3dSmrg      if test -d /usr/nec; then
36451debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
36461debfc3dSmrg      fi
36471debfc3dSmrg      ;;
36481debfc3dSmrg    hpux*)
36491debfc3dSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
36501debfc3dSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
36511debfc3dSmrg      # sets the default TLS model and affects inlining.
36521debfc3dSmrg      case $host_cpu in
36531debfc3dSmrg      hppa*64*)
36541debfc3dSmrg	;;
36551debfc3dSmrg      *)
36561debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
36571debfc3dSmrg	;;
36581debfc3dSmrg      esac
36591debfc3dSmrg      ;;
36601debfc3dSmrg    *qnx* | *nto*)
36611debfc3dSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
36621debfc3dSmrg      # it will coredump.
36631debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
36641debfc3dSmrg      ;;
36651debfc3dSmrg    *)
36661debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
36671debfc3dSmrg      ;;
36681debfc3dSmrg    esac
36691debfc3dSmrg  else
36701debfc3dSmrg    case $host_os in
36711debfc3dSmrg      aix[[4-9]]*)
36721debfc3dSmrg	# All AIX code is PIC.
36731debfc3dSmrg	if test "$host_cpu" = ia64; then
36741debfc3dSmrg	  # AIX 5 now supports IA64 processor
36751debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
36761debfc3dSmrg	else
36771debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
36781debfc3dSmrg	fi
36791debfc3dSmrg	;;
36801debfc3dSmrg      chorus*)
36811debfc3dSmrg	case $cc_basename in
36821debfc3dSmrg	cxch68*)
36831debfc3dSmrg	  # Green Hills C++ Compiler
36841debfc3dSmrg	  # _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"
36851debfc3dSmrg	  ;;
36861debfc3dSmrg	esac
36871debfc3dSmrg	;;
36881debfc3dSmrg      dgux*)
36891debfc3dSmrg	case $cc_basename in
36901debfc3dSmrg	  ec++*)
36911debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
36921debfc3dSmrg	    ;;
36931debfc3dSmrg	  ghcx*)
36941debfc3dSmrg	    # Green Hills C++ Compiler
36951debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
36961debfc3dSmrg	    ;;
36971debfc3dSmrg	  *)
36981debfc3dSmrg	    ;;
36991debfc3dSmrg	esac
37001debfc3dSmrg	;;
37011debfc3dSmrg      freebsd* | dragonfly*)
37021debfc3dSmrg	# FreeBSD uses GNU C++
37031debfc3dSmrg	;;
37041debfc3dSmrg      hpux9* | hpux10* | hpux11*)
37051debfc3dSmrg	case $cc_basename in
37061debfc3dSmrg	  CC*)
37071debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37081debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
37091debfc3dSmrg	    if test "$host_cpu" != ia64; then
37101debfc3dSmrg	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
37111debfc3dSmrg	    fi
37121debfc3dSmrg	    ;;
37131debfc3dSmrg	  aCC*)
37141debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37151debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
37161debfc3dSmrg	    case $host_cpu in
37171debfc3dSmrg	    hppa*64*|ia64*)
37181debfc3dSmrg	      # +Z the default
37191debfc3dSmrg	      ;;
37201debfc3dSmrg	    *)
37211debfc3dSmrg	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
37221debfc3dSmrg	      ;;
37231debfc3dSmrg	    esac
37241debfc3dSmrg	    ;;
37251debfc3dSmrg	  *)
37261debfc3dSmrg	    ;;
37271debfc3dSmrg	esac
37281debfc3dSmrg	;;
37291debfc3dSmrg      interix*)
37301debfc3dSmrg	# This is c89, which is MS Visual C++ (no shared libs)
37311debfc3dSmrg	# Anyone wants to do a port?
37321debfc3dSmrg	;;
37331debfc3dSmrg      irix5* | irix6* | nonstopux*)
37341debfc3dSmrg	case $cc_basename in
37351debfc3dSmrg	  CC*)
37361debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37371debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37381debfc3dSmrg	    # CC pic flag -KPIC is the default.
37391debfc3dSmrg	    ;;
37401debfc3dSmrg	  *)
37411debfc3dSmrg	    ;;
37421debfc3dSmrg	esac
37431debfc3dSmrg	;;
37441debfc3dSmrg      linux* | k*bsd*-gnu | kopensolaris*-gnu)
37451debfc3dSmrg	case $cc_basename in
37461debfc3dSmrg	  KCC*)
37471debfc3dSmrg	    # KAI C++ Compiler
37481debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
37491debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
37501debfc3dSmrg	    ;;
37511debfc3dSmrg	  ecpc* )
37521debfc3dSmrg	    # old Intel C++ for x86_64 which still supported -KPIC.
37531debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37541debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
37551debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
37561debfc3dSmrg	    ;;
37571debfc3dSmrg	  icpc* )
37581debfc3dSmrg	    # Intel C++, used to be incompatible with GCC.
37591debfc3dSmrg	    # ICC 10 doesn't accept -KPIC any more.
37601debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37611debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
37621debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
37631debfc3dSmrg	    ;;
37641debfc3dSmrg	  pgCC* | pgcpp*)
37651debfc3dSmrg	    # Portland Group C++ compiler
37661debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37671debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
37681debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
37691debfc3dSmrg	    ;;
37701debfc3dSmrg	  cxx*)
37711debfc3dSmrg	    # Compaq C++
37721debfc3dSmrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
37731debfc3dSmrg	    # Linux and Compaq Tru64 Unix objects are PIC.
37741debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
37751debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
37761debfc3dSmrg	    ;;
37771debfc3dSmrg	  xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
37781debfc3dSmrg	    # IBM XL 8.0, 9.0 on PPC and BlueGene
37791debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
37801debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
37811debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
37821debfc3dSmrg	    ;;
37831debfc3dSmrg	  *)
37841debfc3dSmrg	    case `$CC -V 2>&1 | sed 5q` in
37851debfc3dSmrg	    *Sun\ C*)
37861debfc3dSmrg	      # Sun C++ 5.9
37871debfc3dSmrg	      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
37881debfc3dSmrg	      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
37891debfc3dSmrg	      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
37901debfc3dSmrg	      ;;
37911debfc3dSmrg	    esac
37921debfc3dSmrg	    ;;
37931debfc3dSmrg	esac
37941debfc3dSmrg	;;
37951debfc3dSmrg      lynxos*)
37961debfc3dSmrg	;;
37971debfc3dSmrg      m88k*)
37981debfc3dSmrg	;;
37991debfc3dSmrg      mvs*)
38001debfc3dSmrg	case $cc_basename in
38011debfc3dSmrg	  cxx*)
38021debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
38031debfc3dSmrg	    ;;
38041debfc3dSmrg	  *)
38051debfc3dSmrg	    ;;
38061debfc3dSmrg	esac
38071debfc3dSmrg	;;
38081debfc3dSmrg      netbsd*)
38091debfc3dSmrg	;;
38101debfc3dSmrg      *qnx* | *nto*)
38111debfc3dSmrg        # QNX uses GNU C++, but need to define -shared option too, otherwise
38121debfc3dSmrg        # it will coredump.
38131debfc3dSmrg        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
38141debfc3dSmrg        ;;
38151debfc3dSmrg      osf3* | osf4* | osf5*)
38161debfc3dSmrg	case $cc_basename in
38171debfc3dSmrg	  KCC*)
38181debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
38191debfc3dSmrg	    ;;
38201debfc3dSmrg	  RCC*)
38211debfc3dSmrg	    # Rational C++ 2.4.1
38221debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38231debfc3dSmrg	    ;;
38241debfc3dSmrg	  cxx*)
38251debfc3dSmrg	    # Digital/Compaq C++
38261debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38271debfc3dSmrg	    # Make sure the PIC flag is empty.  It appears that all Alpha
38281debfc3dSmrg	    # Linux and Compaq Tru64 Unix objects are PIC.
38291debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
38301debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
38311debfc3dSmrg	    ;;
38321debfc3dSmrg	  *)
38331debfc3dSmrg	    ;;
38341debfc3dSmrg	esac
38351debfc3dSmrg	;;
38361debfc3dSmrg      psos*)
38371debfc3dSmrg	;;
38381debfc3dSmrg      solaris*)
38391debfc3dSmrg	case $cc_basename in
38401debfc3dSmrg	  CC*)
38411debfc3dSmrg	    # Sun C++ 4.2, 5.x and Centerline C++
38421debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38431debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38441debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
38451debfc3dSmrg	    ;;
38461debfc3dSmrg	  gcx*)
38471debfc3dSmrg	    # Green Hills C++ Compiler
38481debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
38491debfc3dSmrg	    ;;
38501debfc3dSmrg	  *)
38511debfc3dSmrg	    ;;
38521debfc3dSmrg	esac
38531debfc3dSmrg	;;
38541debfc3dSmrg      sunos4*)
38551debfc3dSmrg	case $cc_basename in
38561debfc3dSmrg	  CC*)
38571debfc3dSmrg	    # Sun C++ 4.x
38581debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38591debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38601debfc3dSmrg	    ;;
38611debfc3dSmrg	  lcc*)
38621debfc3dSmrg	    # Lucid
38631debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
38641debfc3dSmrg	    ;;
38651debfc3dSmrg	  *)
38661debfc3dSmrg	    ;;
38671debfc3dSmrg	esac
38681debfc3dSmrg	;;
38691debfc3dSmrg      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
38701debfc3dSmrg	case $cc_basename in
38711debfc3dSmrg	  CC*)
38721debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38731debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38741debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
38751debfc3dSmrg	    ;;
38761debfc3dSmrg	esac
38771debfc3dSmrg	;;
38781debfc3dSmrg      tandem*)
38791debfc3dSmrg	case $cc_basename in
38801debfc3dSmrg	  NCC*)
38811debfc3dSmrg	    # NonStop-UX NCC 3.20
38821debfc3dSmrg	    _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
38831debfc3dSmrg	    ;;
38841debfc3dSmrg	  *)
38851debfc3dSmrg	    ;;
38861debfc3dSmrg	esac
38871debfc3dSmrg	;;
38881debfc3dSmrg      vxworks*)
38891debfc3dSmrg	;;
38901debfc3dSmrg      *)
38911debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
38921debfc3dSmrg	;;
38931debfc3dSmrg    esac
38941debfc3dSmrg  fi
38951debfc3dSmrg],
38961debfc3dSmrg[
38971debfc3dSmrg  if test "$GCC" = yes; then
38981debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
38991debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
39001debfc3dSmrg
39011debfc3dSmrg    case $host_os in
39021debfc3dSmrg      aix*)
39031debfc3dSmrg      # All AIX code is PIC.
39041debfc3dSmrg      if test "$host_cpu" = ia64; then
39051debfc3dSmrg	# AIX 5 now supports IA64 processor
39061debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39071debfc3dSmrg      fi
39081debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39091debfc3dSmrg      ;;
39101debfc3dSmrg
39111debfc3dSmrg    amigaos*)
39121debfc3dSmrg      case $host_cpu in
39131debfc3dSmrg      powerpc)
39141debfc3dSmrg            # see comment about AmigaOS4 .so support
39151debfc3dSmrg            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39161debfc3dSmrg        ;;
39171debfc3dSmrg      m68k)
39181debfc3dSmrg            # FIXME: we need at least 68020 code to build shared libraries, but
39191debfc3dSmrg            # adding the `-m68020' flag to GCC prevents building anything better,
39201debfc3dSmrg            # like `-m68040'.
39211debfc3dSmrg            _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39221debfc3dSmrg        ;;
39231debfc3dSmrg      esac
39241debfc3dSmrg      ;;
39251debfc3dSmrg
39261debfc3dSmrg    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39271debfc3dSmrg      # PIC is the default for these OSes.
39281debfc3dSmrg      ;;
39291debfc3dSmrg
39301debfc3dSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
39311debfc3dSmrg      # This hack is so that the source file can tell whether it is being
39321debfc3dSmrg      # built for inclusion in a dll (and should export symbols for example).
39331debfc3dSmrg      # Although the cygwin gcc ignores -fPIC, still need this for old-style
39341debfc3dSmrg      # (--disable-auto-import) libraries
39351debfc3dSmrg      m4_if([$1], [GCJ], [],
39361debfc3dSmrg	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
39371debfc3dSmrg      ;;
39381debfc3dSmrg
39391debfc3dSmrg    darwin* | rhapsody*)
39401debfc3dSmrg      # PIC is the default on this platform
39411debfc3dSmrg      # Common symbols not allowed in MH_DYLIB files
39421debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
39431debfc3dSmrg      ;;
39441debfc3dSmrg
39451debfc3dSmrg    haiku*)
39461debfc3dSmrg      # PIC is the default for Haiku.
39471debfc3dSmrg      # The "-static" flag exists, but is broken.
39481debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)=
39491debfc3dSmrg      ;;
39501debfc3dSmrg
39511debfc3dSmrg    hpux*)
39521debfc3dSmrg      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
39531debfc3dSmrg      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
39541debfc3dSmrg      # sets the default TLS model and affects inlining.
39551debfc3dSmrg      case $host_cpu in
39561debfc3dSmrg      hppa*64*)
39571debfc3dSmrg	# +Z the default
39581debfc3dSmrg	;;
39591debfc3dSmrg      *)
39601debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39611debfc3dSmrg	;;
39621debfc3dSmrg      esac
39631debfc3dSmrg      ;;
39641debfc3dSmrg
39651debfc3dSmrg    interix[[3-9]]*)
39661debfc3dSmrg      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39671debfc3dSmrg      # Instead, we relocate shared libraries at runtime.
39681debfc3dSmrg      ;;
39691debfc3dSmrg
39701debfc3dSmrg    msdosdjgpp*)
39711debfc3dSmrg      # Just because we use GCC doesn't mean we suddenly get shared libraries
39721debfc3dSmrg      # on systems that don't support them.
39731debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
39741debfc3dSmrg      enable_shared=no
39751debfc3dSmrg      ;;
39761debfc3dSmrg
39771debfc3dSmrg    *nto* | *qnx*)
39781debfc3dSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
39791debfc3dSmrg      # it will coredump.
39801debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
39811debfc3dSmrg      ;;
39821debfc3dSmrg
39831debfc3dSmrg    sysv4*MP*)
39841debfc3dSmrg      if test -d /usr/nec; then
39851debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
39861debfc3dSmrg      fi
39871debfc3dSmrg      ;;
39881debfc3dSmrg
39891debfc3dSmrg    *)
39901debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39911debfc3dSmrg      ;;
39921debfc3dSmrg    esac
39931debfc3dSmrg
39941debfc3dSmrg    case $cc_basename in
39951debfc3dSmrg    nvcc*) # Cuda Compiler Driver 2.2
39961debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
39971debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
39981debfc3dSmrg      ;;
39991debfc3dSmrg    esac
40001debfc3dSmrg  else
40011debfc3dSmrg    # PORTME Check for flag to pass linker flags through the system compiler.
40021debfc3dSmrg    case $host_os in
40031debfc3dSmrg    aix*)
40041debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40051debfc3dSmrg      if test "$host_cpu" = ia64; then
40061debfc3dSmrg	# AIX 5 now supports IA64 processor
40071debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40081debfc3dSmrg      else
40091debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
40101debfc3dSmrg      fi
40111debfc3dSmrg      ;;
40121debfc3dSmrg
40131debfc3dSmrg    mingw* | cygwin* | pw32* | os2* | cegcc*)
40141debfc3dSmrg      # This hack is so that the source file can tell whether it is being
40151debfc3dSmrg      # built for inclusion in a dll (and should export symbols for example).
40161debfc3dSmrg      m4_if([$1], [GCJ], [],
40171debfc3dSmrg	[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
40181debfc3dSmrg      ;;
40191debfc3dSmrg
40201debfc3dSmrg    hpux9* | hpux10* | hpux11*)
40211debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40221debfc3dSmrg      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
40231debfc3dSmrg      # not for PA HP-UX.
40241debfc3dSmrg      case $host_cpu in
40251debfc3dSmrg      hppa*64*|ia64*)
40261debfc3dSmrg	# +Z the default
40271debfc3dSmrg	;;
40281debfc3dSmrg      *)
40291debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40301debfc3dSmrg	;;
40311debfc3dSmrg      esac
40321debfc3dSmrg      # Is there a better lt_prog_compiler_static that works with the bundled CC?
40331debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
40341debfc3dSmrg      ;;
40351debfc3dSmrg
40361debfc3dSmrg    irix5* | irix6* | nonstopux*)
40371debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40381debfc3dSmrg      # PIC (with -KPIC) is the default.
40391debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40401debfc3dSmrg      ;;
40411debfc3dSmrg
40421debfc3dSmrg    linux* | k*bsd*-gnu | kopensolaris*-gnu)
40431debfc3dSmrg      case $cc_basename in
40441debfc3dSmrg      # old Intel for x86_64 which still supported -KPIC.
40451debfc3dSmrg      ecc*)
40461debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40471debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40481debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
40491debfc3dSmrg        ;;
40501debfc3dSmrg      # icc used to be incompatible with GCC.
40511debfc3dSmrg      # ICC 10 doesn't accept -KPIC any more.
40521debfc3dSmrg      icc* | ifort*)
40531debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40541debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40551debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
40561debfc3dSmrg        ;;
40571debfc3dSmrg      # Lahey Fortran 8.1.
40581debfc3dSmrg      lf95*)
40591debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40601debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
40611debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
40621debfc3dSmrg	;;
40631debfc3dSmrg      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
40641debfc3dSmrg        # Portland Group compilers (*not* the Pentium gcc compiler,
40651debfc3dSmrg	# which looks to be a dead project)
40661debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40671debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
40681debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40691debfc3dSmrg        ;;
40701debfc3dSmrg      ccc*)
40711debfc3dSmrg        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40721debfc3dSmrg        # All Alpha code is PIC.
40731debfc3dSmrg        _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
40741debfc3dSmrg        ;;
40751debfc3dSmrg      xl* | bgxl* | bgf* | mpixl*)
40761debfc3dSmrg	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
40771debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40781debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
40791debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
40801debfc3dSmrg	;;
40811debfc3dSmrg      *)
40821debfc3dSmrg	case `$CC -V 2>&1 | sed 5q` in
40831debfc3dSmrg	*Sun\ F* | *Sun*Fortran*)
40841debfc3dSmrg	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
40851debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40861debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40871debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
40881debfc3dSmrg	  ;;
40891debfc3dSmrg	*Sun\ C*)
40901debfc3dSmrg	  # Sun C 5.9
40911debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40921debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
40931debfc3dSmrg	  _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40941debfc3dSmrg	  ;;
40951debfc3dSmrg	esac
40961debfc3dSmrg	;;
40971debfc3dSmrg      esac
40981debfc3dSmrg      ;;
40991debfc3dSmrg
41001debfc3dSmrg    newsos6)
41011debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
41021debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41031debfc3dSmrg      ;;
41041debfc3dSmrg
41051debfc3dSmrg    *nto* | *qnx*)
41061debfc3dSmrg      # QNX uses GNU C++, but need to define -shared option too, otherwise
41071debfc3dSmrg      # it will coredump.
41081debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
41091debfc3dSmrg      ;;
41101debfc3dSmrg
41111debfc3dSmrg    osf3* | osf4* | osf5*)
41121debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41131debfc3dSmrg      # All OSF/1 code is PIC.
41141debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
41151debfc3dSmrg      ;;
41161debfc3dSmrg
41171debfc3dSmrg    rdos*)
41181debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
41191debfc3dSmrg      ;;
41201debfc3dSmrg
41211debfc3dSmrg    solaris*)
41221debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
41231debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41241debfc3dSmrg      case $cc_basename in
41251debfc3dSmrg      f77* | f90* | f95*)
41261debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
41271debfc3dSmrg      *)
41281debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
41291debfc3dSmrg      esac
41301debfc3dSmrg      ;;
41311debfc3dSmrg
41321debfc3dSmrg    sunos4*)
41331debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
41341debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
41351debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41361debfc3dSmrg      ;;
41371debfc3dSmrg
41381debfc3dSmrg    sysv4 | sysv4.2uw2* | sysv4.3*)
41391debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41401debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
41411debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41421debfc3dSmrg      ;;
41431debfc3dSmrg
41441debfc3dSmrg    sysv4*MP*)
41451debfc3dSmrg      if test -d /usr/nec ;then
41461debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
41471debfc3dSmrg	_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41481debfc3dSmrg      fi
41491debfc3dSmrg      ;;
41501debfc3dSmrg
41511debfc3dSmrg    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
41521debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41531debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
41541debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41551debfc3dSmrg      ;;
41561debfc3dSmrg
41571debfc3dSmrg    unicos*)
41581debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
41591debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
41601debfc3dSmrg      ;;
41611debfc3dSmrg
41621debfc3dSmrg    uts4*)
41631debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
41641debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
41651debfc3dSmrg      ;;
41661debfc3dSmrg
41671debfc3dSmrg    *)
41681debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
41691debfc3dSmrg      ;;
41701debfc3dSmrg    esac
41711debfc3dSmrg  fi
41721debfc3dSmrg])
41731debfc3dSmrgcase $host_os in
41741debfc3dSmrg  # For platforms which do not support PIC, -DPIC is meaningless:
41751debfc3dSmrg  *djgpp*)
41761debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_pic, $1)=
41771debfc3dSmrg    ;;
41781debfc3dSmrg  *)
41791debfc3dSmrg    _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
41801debfc3dSmrg    ;;
41811debfc3dSmrgesac
41821debfc3dSmrgAC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
41831debfc3dSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
41841debfc3dSmrg	[How to pass a linker flag through the compiler])
41851debfc3dSmrg
41861debfc3dSmrg#
41871debfc3dSmrg# Check to make sure the PIC flag actually works.
41881debfc3dSmrg#
41891debfc3dSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
41901debfc3dSmrg  _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
41911debfc3dSmrg    [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
41921debfc3dSmrg    [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
41931debfc3dSmrg    [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
41941debfc3dSmrg     "" | " "*) ;;
41951debfc3dSmrg     *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
41961debfc3dSmrg     esac],
41971debfc3dSmrg    [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
41981debfc3dSmrg     _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
41991debfc3dSmrgfi
42001debfc3dSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
42011debfc3dSmrg	[Additional compiler flags for building library objects])
42021debfc3dSmrg
42031debfc3dSmrg#
42041debfc3dSmrg# Check to make sure the static flag actually works.
42051debfc3dSmrg#
42061debfc3dSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
42071debfc3dSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
42081debfc3dSmrg  _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
42091debfc3dSmrg  $lt_tmp_static_flag,
42101debfc3dSmrg  [],
42111debfc3dSmrg  [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
42121debfc3dSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
42131debfc3dSmrg	[Compiler flag to prevent dynamic linking])
42141debfc3dSmrg])# _LT_COMPILER_PIC
42151debfc3dSmrg
42161debfc3dSmrg
42171debfc3dSmrg# _LT_LINKER_SHLIBS([TAGNAME])
42181debfc3dSmrg# ----------------------------
42191debfc3dSmrg# See if the linker supports building shared libraries.
42201debfc3dSmrgm4_defun([_LT_LINKER_SHLIBS],
42211debfc3dSmrg[AC_REQUIRE([LT_PATH_LD])dnl
42221debfc3dSmrgAC_REQUIRE([LT_PATH_NM])dnl
42231debfc3dSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl
42241debfc3dSmrgm4_require([_LT_DECL_EGREP])dnl
42251debfc3dSmrgm4_require([_LT_DECL_SED])dnl
42261debfc3dSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
42271debfc3dSmrgm4_require([_LT_TAG_COMPILER])dnl
42281debfc3dSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
42291debfc3dSmrgm4_if([$1], [CXX], [
42301debfc3dSmrg  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42311debfc3dSmrg  case $host_os in
42321debfc3dSmrg  aix[[4-9]]*)
42331debfc3dSmrg    # If we're using GNU nm, then we don't want the "-C" option.
42341debfc3dSmrg    # -C means demangle to AIX nm, but means don't demangle with GNU nm
42351debfc3dSmrg    # Also, AIX nm treats weak defined symbols like other global defined
42361debfc3dSmrg    # symbols, whereas GNU nm marks them as "W".
42371debfc3dSmrg    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
42381debfc3dSmrg      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42391debfc3dSmrg    else
42401debfc3dSmrg      _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
42411debfc3dSmrg    fi
42421debfc3dSmrg    ;;
42431debfc3dSmrg  pw32*)
42441debfc3dSmrg    _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
42451debfc3dSmrg  ;;
42461debfc3dSmrg  cygwin* | mingw* | cegcc*)
42471debfc3dSmrg    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
42481debfc3dSmrg  ;;
42491debfc3dSmrg  *)
42501debfc3dSmrg    _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42511debfc3dSmrg  ;;
42521debfc3dSmrg  esac
42531debfc3dSmrg  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42541debfc3dSmrg], [
42551debfc3dSmrg  runpath_var=
42561debfc3dSmrg  _LT_TAGVAR(allow_undefined_flag, $1)=
42571debfc3dSmrg  _LT_TAGVAR(always_export_symbols, $1)=no
42581debfc3dSmrg  _LT_TAGVAR(archive_cmds, $1)=
42591debfc3dSmrg  _LT_TAGVAR(archive_expsym_cmds, $1)=
42601debfc3dSmrg  _LT_TAGVAR(compiler_needs_object, $1)=no
42611debfc3dSmrg  _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
42621debfc3dSmrg  _LT_TAGVAR(export_dynamic_flag_spec, $1)=
42631debfc3dSmrg  _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
42641debfc3dSmrg  _LT_TAGVAR(hardcode_automatic, $1)=no
42651debfc3dSmrg  _LT_TAGVAR(hardcode_direct, $1)=no
42661debfc3dSmrg  _LT_TAGVAR(hardcode_direct_absolute, $1)=no
42671debfc3dSmrg  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
42681debfc3dSmrg  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
42691debfc3dSmrg  _LT_TAGVAR(hardcode_libdir_separator, $1)=
42701debfc3dSmrg  _LT_TAGVAR(hardcode_minus_L, $1)=no
42711debfc3dSmrg  _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
42721debfc3dSmrg  _LT_TAGVAR(inherit_rpath, $1)=no
42731debfc3dSmrg  _LT_TAGVAR(link_all_deplibs, $1)=unknown
42741debfc3dSmrg  _LT_TAGVAR(module_cmds, $1)=
42751debfc3dSmrg  _LT_TAGVAR(module_expsym_cmds, $1)=
42761debfc3dSmrg  _LT_TAGVAR(old_archive_from_new_cmds, $1)=
42771debfc3dSmrg  _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
42781debfc3dSmrg  _LT_TAGVAR(thread_safe_flag_spec, $1)=
42791debfc3dSmrg  _LT_TAGVAR(whole_archive_flag_spec, $1)=
42801debfc3dSmrg  # include_expsyms should be a list of space-separated symbols to be *always*
42811debfc3dSmrg  # included in the symbol list
42821debfc3dSmrg  _LT_TAGVAR(include_expsyms, $1)=
42831debfc3dSmrg  # exclude_expsyms can be an extended regexp of symbols to exclude
42841debfc3dSmrg  # it will be wrapped by ` (' and `)$', so one must not match beginning or
42851debfc3dSmrg  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
42861debfc3dSmrg  # as well as any symbol that contains `d'.
42871debfc3dSmrg  _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
42881debfc3dSmrg  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
42891debfc3dSmrg  # platforms (ab)use it in PIC code, but their linkers get confused if
42901debfc3dSmrg  # the symbol is explicitly referenced.  Since portable code cannot
42911debfc3dSmrg  # rely on this symbol name, it's probably fine to never include it in
42921debfc3dSmrg  # preloaded symbol tables.
42931debfc3dSmrg  # Exclude shared library initialization/finalization symbols.
42941debfc3dSmrgdnl Note also adjust exclude_expsyms for C++ above.
42951debfc3dSmrg  extract_expsyms_cmds=
42961debfc3dSmrg
42971debfc3dSmrg  case $host_os in
42981debfc3dSmrg  cygwin* | mingw* | pw32* | cegcc*)
42991debfc3dSmrg    # FIXME: the MSVC++ port hasn't been tested in a loooong time
43001debfc3dSmrg    # When not using gcc, we currently assume that we are using
43011debfc3dSmrg    # Microsoft Visual C++.
43021debfc3dSmrg    if test "$GCC" != yes; then
43031debfc3dSmrg      with_gnu_ld=no
43041debfc3dSmrg    fi
43051debfc3dSmrg    ;;
43061debfc3dSmrg  interix*)
43071debfc3dSmrg    # we just hope/assume this is gcc and not c89 (= MSVC++)
43081debfc3dSmrg    with_gnu_ld=yes
43091debfc3dSmrg    ;;
43101debfc3dSmrg  openbsd*)
43111debfc3dSmrg    with_gnu_ld=no
43121debfc3dSmrg    ;;
43131debfc3dSmrg  esac
43141debfc3dSmrg
43151debfc3dSmrg  _LT_TAGVAR(ld_shlibs, $1)=yes
43161debfc3dSmrg
43171debfc3dSmrg  # On some targets, GNU ld is compatible enough with the native linker
43181debfc3dSmrg  # that we're better off using the native interface for both.
43191debfc3dSmrg  lt_use_gnu_ld_interface=no
43201debfc3dSmrg  if test "$with_gnu_ld" = yes; then
43211debfc3dSmrg    case $host_os in
43221debfc3dSmrg      aix*)
43231debfc3dSmrg	# The AIX port of GNU ld has always aspired to compatibility
43241debfc3dSmrg	# with the native linker.  However, as the warning in the GNU ld
43251debfc3dSmrg	# block says, versions before 2.19.5* couldn't really create working
43261debfc3dSmrg	# shared libraries, regardless of the interface used.
43271debfc3dSmrg	case `$LD -v 2>&1` in
43281debfc3dSmrg	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
43291debfc3dSmrg	  *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
43301debfc3dSmrg	  *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
43311debfc3dSmrg	  *)
43321debfc3dSmrg	    lt_use_gnu_ld_interface=yes
43331debfc3dSmrg	    ;;
43341debfc3dSmrg	esac
43351debfc3dSmrg	;;
43361debfc3dSmrg      *)
43371debfc3dSmrg	lt_use_gnu_ld_interface=yes
43381debfc3dSmrg	;;
43391debfc3dSmrg    esac
43401debfc3dSmrg  fi
43411debfc3dSmrg
43421debfc3dSmrg  if test "$lt_use_gnu_ld_interface" = yes; then
43431debfc3dSmrg    # If archive_cmds runs LD, not CC, wlarc should be empty
43441debfc3dSmrg    wlarc='${wl}'
43451debfc3dSmrg
43461debfc3dSmrg    # Set some defaults for GNU ld with shared library support. These
43471debfc3dSmrg    # are reset later if shared libraries are not supported. Putting them
43481debfc3dSmrg    # here allows them to be overridden if necessary.
43491debfc3dSmrg    runpath_var=LD_RUN_PATH
43501debfc3dSmrg    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
43511debfc3dSmrg    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
43521debfc3dSmrg    # ancient GNU ld didn't support --whole-archive et. al.
43531debfc3dSmrg    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
43541debfc3dSmrg      _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
43551debfc3dSmrg    else
43561debfc3dSmrg      _LT_TAGVAR(whole_archive_flag_spec, $1)=
43571debfc3dSmrg    fi
43581debfc3dSmrg    supports_anon_versioning=no
43591debfc3dSmrg    case `$LD -v 2>&1` in
43601debfc3dSmrg      *GNU\ gold*) supports_anon_versioning=yes ;;
43611debfc3dSmrg      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
43621debfc3dSmrg      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
43631debfc3dSmrg      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
43641debfc3dSmrg      *\ 2.11.*) ;; # other 2.11 versions
43651debfc3dSmrg      *) supports_anon_versioning=yes ;;
43661debfc3dSmrg    esac
43671debfc3dSmrg
43681debfc3dSmrg    # See if GNU ld supports shared libraries.
43691debfc3dSmrg    case $host_os in
43701debfc3dSmrg    aix[[3-9]]*)
43711debfc3dSmrg      # On AIX/PPC, the GNU linker is very broken
43721debfc3dSmrg      if test "$host_cpu" != ia64; then
43731debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
43741debfc3dSmrg	cat <<_LT_EOF 1>&2
43751debfc3dSmrg
43761debfc3dSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported
43771debfc3dSmrg*** to be unable to reliably create shared libraries on AIX.
43781debfc3dSmrg*** Therefore, libtool is disabling shared libraries support.  If you
43791debfc3dSmrg*** really care for shared libraries, you may want to install binutils
43801debfc3dSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
43811debfc3dSmrg*** You will then need to restart the configuration process.
43821debfc3dSmrg
43831debfc3dSmrg_LT_EOF
43841debfc3dSmrg      fi
43851debfc3dSmrg      ;;
43861debfc3dSmrg
43871debfc3dSmrg    amigaos*)
43881debfc3dSmrg      case $host_cpu in
43891debfc3dSmrg      powerpc)
43901debfc3dSmrg            # see comment about AmigaOS4 .so support
43911debfc3dSmrg            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
43921debfc3dSmrg            _LT_TAGVAR(archive_expsym_cmds, $1)=''
43931debfc3dSmrg        ;;
43941debfc3dSmrg      m68k)
43951debfc3dSmrg            _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)'
43961debfc3dSmrg            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
43971debfc3dSmrg            _LT_TAGVAR(hardcode_minus_L, $1)=yes
43981debfc3dSmrg        ;;
43991debfc3dSmrg      esac
44001debfc3dSmrg      ;;
44011debfc3dSmrg
44021debfc3dSmrg    beos*)
44031debfc3dSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
44041debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
44051debfc3dSmrg	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
44061debfc3dSmrg	# support --undefined.  This deserves some investigation.  FIXME
44071debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44081debfc3dSmrg      else
44091debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
44101debfc3dSmrg      fi
44111debfc3dSmrg      ;;
44121debfc3dSmrg
44131debfc3dSmrg    cygwin* | mingw* | pw32* | cegcc*)
44141debfc3dSmrg      # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
44151debfc3dSmrg      # as there is no search path for DLLs.
44161debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
44171debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
44181debfc3dSmrg      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
44191debfc3dSmrg      _LT_TAGVAR(always_export_symbols, $1)=no
44201debfc3dSmrg      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
44211debfc3dSmrg      _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'
44221debfc3dSmrg
44231debfc3dSmrg      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
44241debfc3dSmrg        _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'
44251debfc3dSmrg	# If the export-symbols file already is a .def file (1st line
44261debfc3dSmrg	# is EXPORTS), use it as is; otherwise, prepend...
44271debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
44281debfc3dSmrg	  cp $export_symbols $output_objdir/$soname.def;
44291debfc3dSmrg	else
44301debfc3dSmrg	  echo EXPORTS > $output_objdir/$soname.def;
44311debfc3dSmrg	  cat $export_symbols >> $output_objdir/$soname.def;
44321debfc3dSmrg	fi~
44331debfc3dSmrg	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
44341debfc3dSmrg      else
44351debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
44361debfc3dSmrg      fi
44371debfc3dSmrg      ;;
44381debfc3dSmrg
44391debfc3dSmrg    haiku*)
44401debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
44411debfc3dSmrg      _LT_TAGVAR(link_all_deplibs, $1)=yes
44421debfc3dSmrg      ;;
44431debfc3dSmrg
44441debfc3dSmrg    interix[[3-9]]*)
44451debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=no
44461debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
44471debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
44481debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
44491debfc3dSmrg      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
44501debfc3dSmrg      # Instead, shared libraries are loaded at an image base (0x10000000 by
44511debfc3dSmrg      # default) and relocated if they conflict, which is a slow very memory
44521debfc3dSmrg      # consuming and fragmenting process.  To avoid this, we pick a random,
44531debfc3dSmrg      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
44541debfc3dSmrg      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
44551debfc3dSmrg      _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'
44561debfc3dSmrg      _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'
44571debfc3dSmrg      ;;
44581debfc3dSmrg
4459*8feb0f0bSmrg    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
44601debfc3dSmrg      tmp_diet=no
44611debfc3dSmrg      if test "$host_os" = linux-dietlibc; then
44621debfc3dSmrg	case $cc_basename in
44631debfc3dSmrg	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
44641debfc3dSmrg	esac
44651debfc3dSmrg      fi
44661debfc3dSmrg      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
44671debfc3dSmrg	 && test "$tmp_diet" = no
44681debfc3dSmrg      then
44691debfc3dSmrg	tmp_addflag=' $pic_flag'
44701debfc3dSmrg	tmp_sharedflag='-shared'
44711debfc3dSmrg	case $cc_basename,$host_cpu in
44721debfc3dSmrg        pgcc*)				# Portland Group C compiler
44731debfc3dSmrg	  _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'
44741debfc3dSmrg	  tmp_addflag=' $pic_flag'
44751debfc3dSmrg	  ;;
44761debfc3dSmrg	pgf77* | pgf90* | pgf95* | pgfortran*)
44771debfc3dSmrg					# Portland Group f77 and f90 compilers
44781debfc3dSmrg	  _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'
44791debfc3dSmrg	  tmp_addflag=' $pic_flag -Mnomain' ;;
44801debfc3dSmrg	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
44811debfc3dSmrg	  tmp_addflag=' -i_dynamic' ;;
44821debfc3dSmrg	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
44831debfc3dSmrg	  tmp_addflag=' -i_dynamic -nofor_main' ;;
44841debfc3dSmrg	ifc* | ifort*)			# Intel Fortran compiler
44851debfc3dSmrg	  tmp_addflag=' -nofor_main' ;;
44861debfc3dSmrg	lf95*)				# Lahey Fortran 8.1
44871debfc3dSmrg	  _LT_TAGVAR(whole_archive_flag_spec, $1)=
44881debfc3dSmrg	  tmp_sharedflag='--shared' ;;
44891debfc3dSmrg	xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
44901debfc3dSmrg	  tmp_sharedflag='-qmkshrobj'
44911debfc3dSmrg	  tmp_addflag= ;;
44921debfc3dSmrg	nvcc*)	# Cuda Compiler Driver 2.2
44931debfc3dSmrg	  _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'
44941debfc3dSmrg	  _LT_TAGVAR(compiler_needs_object, $1)=yes
44951debfc3dSmrg	  ;;
44961debfc3dSmrg	esac
44971debfc3dSmrg	case `$CC -V 2>&1 | sed 5q` in
44981debfc3dSmrg	*Sun\ C*)			# Sun C 5.9
44991debfc3dSmrg	  _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'
45001debfc3dSmrg	  _LT_TAGVAR(compiler_needs_object, $1)=yes
45011debfc3dSmrg	  tmp_sharedflag='-G' ;;
45021debfc3dSmrg	*Sun\ F*)			# Sun Fortran 8.3
45031debfc3dSmrg	  tmp_sharedflag='-G' ;;
45041debfc3dSmrg	esac
45051debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45061debfc3dSmrg
45071debfc3dSmrg        if test "x$supports_anon_versioning" = xyes; then
45081debfc3dSmrg          _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
45091debfc3dSmrg	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45101debfc3dSmrg	    echo "local: *; };" >> $output_objdir/$libname.ver~
45111debfc3dSmrg	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
45121debfc3dSmrg        fi
45131debfc3dSmrg
45141debfc3dSmrg	case $cc_basename in
45151debfc3dSmrg	xlf* | bgf* | bgxlf* | mpixlf*)
45161debfc3dSmrg	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
45171debfc3dSmrg	  _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
45181debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
45191debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
45201debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
45211debfc3dSmrg	  if test "x$supports_anon_versioning" = xyes; then
45221debfc3dSmrg	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
45231debfc3dSmrg	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
45241debfc3dSmrg	      echo "local: *; };" >> $output_objdir/$libname.ver~
45251debfc3dSmrg	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
45261debfc3dSmrg	  fi
45271debfc3dSmrg	  ;;
45281debfc3dSmrg	esac
45291debfc3dSmrg      else
45301debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
45311debfc3dSmrg      fi
45321debfc3dSmrg      ;;
45331debfc3dSmrg
45341debfc3dSmrg    netbsd*)
45351debfc3dSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
45361debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
45371debfc3dSmrg	wlarc=
45381debfc3dSmrg      else
45391debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45401debfc3dSmrg	_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'
45411debfc3dSmrg      fi
45421debfc3dSmrg      ;;
45431debfc3dSmrg
45441debfc3dSmrg    solaris*)
45451debfc3dSmrg      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
45461debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
45471debfc3dSmrg	cat <<_LT_EOF 1>&2
45481debfc3dSmrg
45491debfc3dSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably
45501debfc3dSmrg*** create shared libraries on Solaris systems.  Therefore, libtool
45511debfc3dSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
45521debfc3dSmrg*** binutils to release 2.9.1 or newer.  Another option is to modify
45531debfc3dSmrg*** your PATH or compiler configuration so that the native linker is
45541debfc3dSmrg*** used, and then restart.
45551debfc3dSmrg
45561debfc3dSmrg_LT_EOF
45571debfc3dSmrg      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
45581debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45591debfc3dSmrg	_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'
45601debfc3dSmrg      else
45611debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
45621debfc3dSmrg      fi
45631debfc3dSmrg      ;;
45641debfc3dSmrg
45651debfc3dSmrg    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
45661debfc3dSmrg      case `$LD -v 2>&1` in
45671debfc3dSmrg        *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
45681debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
45691debfc3dSmrg	cat <<_LT_EOF 1>&2
45701debfc3dSmrg
45711debfc3dSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
45721debfc3dSmrg*** reliably create shared libraries on SCO systems.  Therefore, libtool
45731debfc3dSmrg*** is disabling shared libraries support.  We urge you to upgrade GNU
45741debfc3dSmrg*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
45751debfc3dSmrg*** your PATH or compiler configuration so that the native linker is
45761debfc3dSmrg*** used, and then restart.
45771debfc3dSmrg
45781debfc3dSmrg_LT_EOF
45791debfc3dSmrg	;;
45801debfc3dSmrg	*)
45811debfc3dSmrg	  # For security reasons, it is highly recommended that you always
45821debfc3dSmrg	  # use absolute paths for naming shared libraries, and exclude the
45831debfc3dSmrg	  # DT_RUNPATH tag from executables and libraries.  But doing so
45841debfc3dSmrg	  # requires that you compile everything twice, which is a pain.
45851debfc3dSmrg	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
45861debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
45871debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
45881debfc3dSmrg	    _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'
45891debfc3dSmrg	  else
45901debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
45911debfc3dSmrg	  fi
45921debfc3dSmrg	;;
45931debfc3dSmrg      esac
45941debfc3dSmrg      ;;
45951debfc3dSmrg
45961debfc3dSmrg    sunos4*)
45971debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
45981debfc3dSmrg      wlarc=
45991debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
46001debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
46011debfc3dSmrg      ;;
46021debfc3dSmrg
46031debfc3dSmrg    *)
46041debfc3dSmrg      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
46051debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
46061debfc3dSmrg	_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'
46071debfc3dSmrg      else
46081debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
46091debfc3dSmrg      fi
46101debfc3dSmrg      ;;
46111debfc3dSmrg    esac
46121debfc3dSmrg
46131debfc3dSmrg    if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
46141debfc3dSmrg      runpath_var=
46151debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
46161debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)=
46171debfc3dSmrg      _LT_TAGVAR(whole_archive_flag_spec, $1)=
46181debfc3dSmrg    fi
46191debfc3dSmrg  else
46201debfc3dSmrg    # PORTME fill in a description of your system's linker (not GNU ld)
46211debfc3dSmrg    case $host_os in
46221debfc3dSmrg    aix3*)
46231debfc3dSmrg      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
46241debfc3dSmrg      _LT_TAGVAR(always_export_symbols, $1)=yes
46251debfc3dSmrg      _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'
46261debfc3dSmrg      # Note: this linker hardcodes the directories in LIBPATH if there
46271debfc3dSmrg      # are no directories specified by -L.
46281debfc3dSmrg      _LT_TAGVAR(hardcode_minus_L, $1)=yes
46291debfc3dSmrg      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
46301debfc3dSmrg	# Neither direct hardcoding nor static linking is supported with a
46311debfc3dSmrg	# broken collect2.
46321debfc3dSmrg	_LT_TAGVAR(hardcode_direct, $1)=unsupported
46331debfc3dSmrg      fi
46341debfc3dSmrg      ;;
46351debfc3dSmrg
46361debfc3dSmrg    aix[[4-9]]*)
46371debfc3dSmrg      if test "$host_cpu" = ia64; then
46381debfc3dSmrg	# On IA64, the linker does run time linking by default, so we don't
46391debfc3dSmrg	# have to do anything special.
46401debfc3dSmrg	aix_use_runtimelinking=no
46411debfc3dSmrg	exp_sym_flag='-Bexport'
46421debfc3dSmrg	no_entry_flag=""
46431debfc3dSmrg      else
46441debfc3dSmrg	# If we're using GNU nm, then we don't want the "-C" option.
46451debfc3dSmrg	# -C means demangle to AIX nm, but means don't demangle with GNU nm
46461debfc3dSmrg	# Also, AIX nm treats weak defined symbols like other global
46471debfc3dSmrg	# defined symbols, whereas GNU nm marks them as "W".
46481debfc3dSmrg	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
46491debfc3dSmrg	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
46501debfc3dSmrg	else
46511debfc3dSmrg	  _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
46521debfc3dSmrg	fi
46531debfc3dSmrg	aix_use_runtimelinking=no
46541debfc3dSmrg
46551debfc3dSmrg	# Test if we are trying to use run time linking or normal
46561debfc3dSmrg	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
46571debfc3dSmrg	# need to do runtime linking.
46581debfc3dSmrg	case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
46591debfc3dSmrg	  for ld_flag in $LDFLAGS; do
46601debfc3dSmrg	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
46611debfc3dSmrg	    aix_use_runtimelinking=yes
46621debfc3dSmrg	    break
46631debfc3dSmrg	  fi
46641debfc3dSmrg	  done
46651debfc3dSmrg	  ;;
46661debfc3dSmrg	esac
46671debfc3dSmrg
46681debfc3dSmrg	exp_sym_flag='-bexport'
46691debfc3dSmrg	no_entry_flag='-bnoentry'
46701debfc3dSmrg      fi
46711debfc3dSmrg
46721debfc3dSmrg      # When large executables or shared objects are built, AIX ld can
46731debfc3dSmrg      # have problems creating the table of contents.  If linking a library
46741debfc3dSmrg      # or program results in "error TOC overflow" add -mminimal-toc to
46751debfc3dSmrg      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
46761debfc3dSmrg      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
46771debfc3dSmrg
46781debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)=''
46791debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
46801debfc3dSmrg      _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
46811debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
46821debfc3dSmrg      _LT_TAGVAR(link_all_deplibs, $1)=yes
46831debfc3dSmrg      _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
46841debfc3dSmrg
46851debfc3dSmrg      if test "$GCC" = yes; then
46861debfc3dSmrg	case $host_os in aix4.[[012]]|aix4.[[012]].*)
46871debfc3dSmrg	# We only want to do this on AIX 4.2 and lower, the check
46881debfc3dSmrg	# below for broken collect2 doesn't work under 4.3+
46891debfc3dSmrg	  collect2name=`${CC} -print-prog-name=collect2`
46901debfc3dSmrg	  if test -f "$collect2name" &&
46911debfc3dSmrg	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
46921debfc3dSmrg	  then
46931debfc3dSmrg	  # We have reworked collect2
46941debfc3dSmrg	  :
46951debfc3dSmrg	  else
46961debfc3dSmrg	  # We have old collect2
46971debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=unsupported
46981debfc3dSmrg	  # It fails to find uninstalled libraries when the uninstalled
46991debfc3dSmrg	  # path is not listed in the libpath.  Setting hardcode_minus_L
47001debfc3dSmrg	  # to unsupported forces relinking
47011debfc3dSmrg	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
47021debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47031debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_separator, $1)=
47041debfc3dSmrg	  fi
47051debfc3dSmrg	  ;;
47061debfc3dSmrg	esac
47071debfc3dSmrg	shared_flag='-shared'
47081debfc3dSmrg	if test "$aix_use_runtimelinking" = yes; then
47091debfc3dSmrg	  shared_flag="$shared_flag "'${wl}-G'
47101debfc3dSmrg	fi
47111debfc3dSmrg      else
47121debfc3dSmrg	# not using gcc
47131debfc3dSmrg	if test "$host_cpu" = ia64; then
47141debfc3dSmrg	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
47151debfc3dSmrg	# chokes on -Wl,-G. The following line is correct:
47161debfc3dSmrg	  shared_flag='-G'
47171debfc3dSmrg	else
47181debfc3dSmrg	  if test "$aix_use_runtimelinking" = yes; then
47191debfc3dSmrg	    shared_flag='${wl}-G'
47201debfc3dSmrg	  else
47211debfc3dSmrg	    shared_flag='${wl}-bM:SRE'
47221debfc3dSmrg	  fi
47231debfc3dSmrg	fi
47241debfc3dSmrg      fi
47251debfc3dSmrg
47261debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
47271debfc3dSmrg      # It seems that -bexpall does not export symbols beginning with
47281debfc3dSmrg      # underscore (_), so it is better to generate a list of symbols to export.
47291debfc3dSmrg      _LT_TAGVAR(always_export_symbols, $1)=yes
47301debfc3dSmrg      if test "$aix_use_runtimelinking" = yes; then
47311debfc3dSmrg	# Warning - without using the other runtime loading flags (-brtl),
47321debfc3dSmrg	# -berok will link without error, but may produce a broken library.
47331debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
47341debfc3dSmrg        # Determine the default libpath from the value encoded in an
47351debfc3dSmrg        # empty executable.
47361debfc3dSmrg        _LT_SYS_MODULE_PATH_AIX
47371debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
47381debfc3dSmrg        _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
47391debfc3dSmrg      else
47401debfc3dSmrg	if test "$host_cpu" = ia64; then
47411debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
47421debfc3dSmrg	  _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
47431debfc3dSmrg	  _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"
47441debfc3dSmrg	else
47451debfc3dSmrg	 # Determine the default libpath from the value encoded in an
47461debfc3dSmrg	 # empty executable.
47471debfc3dSmrg	 _LT_SYS_MODULE_PATH_AIX
47481debfc3dSmrg	 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
47491debfc3dSmrg	  # Warning - without using the other run time loading flags,
47501debfc3dSmrg	  # -berok will link without error, but may produce a broken library.
47511debfc3dSmrg	  _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
47521debfc3dSmrg	  _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
47531debfc3dSmrg	  if test "$with_gnu_ld" = yes; then
47541debfc3dSmrg	    # We only use this code for GNU lds that support --whole-archive.
47551debfc3dSmrg	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
47561debfc3dSmrg	  else
47571debfc3dSmrg	    # Exported symbols can be pulled into shared objects from archives
47581debfc3dSmrg	    _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
47591debfc3dSmrg	  fi
47601debfc3dSmrg	  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
47611debfc3dSmrg	  # This is similar to how AIX traditionally builds its shared libraries.
47621debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
47631debfc3dSmrg	fi
47641debfc3dSmrg      fi
47651debfc3dSmrg      ;;
47661debfc3dSmrg
47671debfc3dSmrg    amigaos*)
47681debfc3dSmrg      case $host_cpu in
47691debfc3dSmrg      powerpc)
47701debfc3dSmrg            # see comment about AmigaOS4 .so support
47711debfc3dSmrg            _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
47721debfc3dSmrg            _LT_TAGVAR(archive_expsym_cmds, $1)=''
47731debfc3dSmrg        ;;
47741debfc3dSmrg      m68k)
47751debfc3dSmrg            _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)'
47761debfc3dSmrg            _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
47771debfc3dSmrg            _LT_TAGVAR(hardcode_minus_L, $1)=yes
47781debfc3dSmrg        ;;
47791debfc3dSmrg      esac
47801debfc3dSmrg      ;;
47811debfc3dSmrg
47821debfc3dSmrg    bsdi[[45]]*)
47831debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
47841debfc3dSmrg      ;;
47851debfc3dSmrg
47861debfc3dSmrg    cygwin* | mingw* | pw32* | cegcc*)
47871debfc3dSmrg      # When not using gcc, we currently assume that we are using
47881debfc3dSmrg      # Microsoft Visual C++.
47891debfc3dSmrg      # hardcode_libdir_flag_spec is actually meaningless, as there is
47901debfc3dSmrg      # no search path for DLLs.
47911debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
47921debfc3dSmrg      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47931debfc3dSmrg      # Tell ltmain to make .lib files, not .a files.
47941debfc3dSmrg      libext=lib
47951debfc3dSmrg      # Tell ltmain to make .dll files, not .so files.
47961debfc3dSmrg      shrext_cmds=".dll"
47971debfc3dSmrg      # FIXME: Setting linknames here is a bad hack.
47981debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
47991debfc3dSmrg      # The linker will automatically build a .lib file if we build a DLL.
48001debfc3dSmrg      _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
48011debfc3dSmrg      # FIXME: Should let the user specify the lib program.
48021debfc3dSmrg      _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
48031debfc3dSmrg      _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
48041debfc3dSmrg      _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
48051debfc3dSmrg      ;;
48061debfc3dSmrg
48071debfc3dSmrg    darwin* | rhapsody*)
48081debfc3dSmrg      _LT_DARWIN_LINKER_FEATURES($1)
48091debfc3dSmrg      ;;
48101debfc3dSmrg
48111debfc3dSmrg    dgux*)
48121debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
48131debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
48141debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48151debfc3dSmrg      ;;
48161debfc3dSmrg
48171debfc3dSmrg    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
48181debfc3dSmrg    # support.  Future versions do this automatically, but an explicit c++rt0.o
48191debfc3dSmrg    # does not break anything, and helps significantly (at the cost of a little
48201debfc3dSmrg    # extra space).
48211debfc3dSmrg    freebsd2.2*)
48221debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
48231debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
48241debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
48251debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48261debfc3dSmrg      ;;
48271debfc3dSmrg
48281debfc3dSmrg    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
48291debfc3dSmrg    freebsd2.*)
48301debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
48311debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
48321debfc3dSmrg      _LT_TAGVAR(hardcode_minus_L, $1)=yes
48331debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48341debfc3dSmrg      ;;
48351debfc3dSmrg
48361debfc3dSmrg    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
48371debfc3dSmrg    freebsd* | dragonfly*)
48381debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
48391debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
48401debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
48411debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
48421debfc3dSmrg      ;;
48431debfc3dSmrg
48441debfc3dSmrg    hpux9*)
48451debfc3dSmrg      if test "$GCC" = yes; then
48461debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
48471debfc3dSmrg      else
48481debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
48491debfc3dSmrg      fi
48501debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
48511debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
48521debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
48531debfc3dSmrg
48541debfc3dSmrg      # hardcode_minus_L: Not really in the search PATH,
48551debfc3dSmrg      # but as the default location of the library.
48561debfc3dSmrg      _LT_TAGVAR(hardcode_minus_L, $1)=yes
48571debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
48581debfc3dSmrg      ;;
48591debfc3dSmrg
48601debfc3dSmrg    hpux10*)
48611debfc3dSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
48621debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48631debfc3dSmrg      else
48641debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
48651debfc3dSmrg      fi
48661debfc3dSmrg      if test "$with_gnu_ld" = no; then
48671debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
48681debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
48691debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
48701debfc3dSmrg	_LT_TAGVAR(hardcode_direct, $1)=yes
48711debfc3dSmrg	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
48721debfc3dSmrg	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
48731debfc3dSmrg	# hardcode_minus_L: Not really in the search PATH,
48741debfc3dSmrg	# but as the default location of the library.
48751debfc3dSmrg	_LT_TAGVAR(hardcode_minus_L, $1)=yes
48761debfc3dSmrg      fi
48771debfc3dSmrg      ;;
48781debfc3dSmrg
48791debfc3dSmrg    hpux11*)
48801debfc3dSmrg      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
48811debfc3dSmrg	case $host_cpu in
48821debfc3dSmrg	hppa*64*)
48831debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48841debfc3dSmrg	  ;;
48851debfc3dSmrg	ia64*)
48861debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48871debfc3dSmrg	  ;;
48881debfc3dSmrg	*)
48891debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
48901debfc3dSmrg	  ;;
48911debfc3dSmrg	esac
48921debfc3dSmrg      else
48931debfc3dSmrg	case $host_cpu in
48941debfc3dSmrg	hppa*64*)
48951debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
48961debfc3dSmrg	  ;;
48971debfc3dSmrg	ia64*)
48981debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
48991debfc3dSmrg	  ;;
49001debfc3dSmrg	*)
49011debfc3dSmrg	m4_if($1, [], [
49021debfc3dSmrg	  # Older versions of the 11.00 compiler do not understand -b yet
49031debfc3dSmrg	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
49041debfc3dSmrg	  _LT_LINKER_OPTION([if $CC understands -b],
49051debfc3dSmrg	    _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
49061debfc3dSmrg	    [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
49071debfc3dSmrg	    [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
49081debfc3dSmrg	  [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
49091debfc3dSmrg	  ;;
49101debfc3dSmrg	esac
49111debfc3dSmrg      fi
49121debfc3dSmrg      if test "$with_gnu_ld" = no; then
49131debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
49141debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_separator, $1)=:
49151debfc3dSmrg
49161debfc3dSmrg	case $host_cpu in
49171debfc3dSmrg	hppa*64*|ia64*)
49181debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=no
49191debfc3dSmrg	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
49201debfc3dSmrg	  ;;
49211debfc3dSmrg	*)
49221debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=yes
49231debfc3dSmrg	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
49241debfc3dSmrg	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
49251debfc3dSmrg
49261debfc3dSmrg	  # hardcode_minus_L: Not really in the search PATH,
49271debfc3dSmrg	  # but as the default location of the library.
49281debfc3dSmrg	  _LT_TAGVAR(hardcode_minus_L, $1)=yes
49291debfc3dSmrg	  ;;
49301debfc3dSmrg	esac
49311debfc3dSmrg      fi
49321debfc3dSmrg      ;;
49331debfc3dSmrg
49341debfc3dSmrg    irix5* | irix6* | nonstopux*)
49351debfc3dSmrg      if test "$GCC" = yes; then
49361debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $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'
49371debfc3dSmrg	# Try to use the -exported_symbol ld option, if it does not
49381debfc3dSmrg	# work, assume that -exports_file does not work either and
49391debfc3dSmrg	# implicitly export all symbols.
49401debfc3dSmrg        save_LDFLAGS="$LDFLAGS"
49411debfc3dSmrg        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4942c0a68be4Smrg        AC_LINK_IFELSE([AC_LANG_SOURCE([int foo(void) {}])],
49431debfc3dSmrg          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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'
49441debfc3dSmrg        )
49451debfc3dSmrg        LDFLAGS="$save_LDFLAGS"
49461debfc3dSmrg      else
49471debfc3dSmrg	_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'
49481debfc3dSmrg	_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'
49491debfc3dSmrg      fi
49501debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
49511debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49521debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
49531debfc3dSmrg      _LT_TAGVAR(inherit_rpath, $1)=yes
49541debfc3dSmrg      _LT_TAGVAR(link_all_deplibs, $1)=yes
49551debfc3dSmrg      ;;
49561debfc3dSmrg
49571debfc3dSmrg    netbsd*)
49581debfc3dSmrg      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
49591debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
49601debfc3dSmrg      else
49611debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
49621debfc3dSmrg      fi
49631debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
49641debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
49651debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
49661debfc3dSmrg      ;;
49671debfc3dSmrg
49681debfc3dSmrg    newsos6)
49691debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
49701debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
49711debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
49721debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
49731debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
49741debfc3dSmrg      ;;
49751debfc3dSmrg
49761debfc3dSmrg    *nto* | *qnx*)
49771debfc3dSmrg      ;;
49781debfc3dSmrg
49791debfc3dSmrg    openbsd*)
49801debfc3dSmrg      if test -f /usr/libexec/ld.so; then
49811debfc3dSmrg	_LT_TAGVAR(hardcode_direct, $1)=yes
49821debfc3dSmrg	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
49831debfc3dSmrg	_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
49841debfc3dSmrg	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
49851debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
49861debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
49871debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
49881debfc3dSmrg	  _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
49891debfc3dSmrg	else
49901debfc3dSmrg	  case $host_os in
49911debfc3dSmrg	   openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
49921debfc3dSmrg	     _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
49931debfc3dSmrg	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
49941debfc3dSmrg	     ;;
49951debfc3dSmrg	   *)
49961debfc3dSmrg	     _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
49971debfc3dSmrg	     _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
49981debfc3dSmrg	     ;;
49991debfc3dSmrg	  esac
50001debfc3dSmrg	fi
50011debfc3dSmrg      else
50021debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
50031debfc3dSmrg      fi
50041debfc3dSmrg      ;;
50051debfc3dSmrg
50061debfc3dSmrg    os2*)
50071debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
50081debfc3dSmrg      _LT_TAGVAR(hardcode_minus_L, $1)=yes
50091debfc3dSmrg      _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
50101debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
50111debfc3dSmrg      _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
50121debfc3dSmrg      ;;
50131debfc3dSmrg
50141debfc3dSmrg    osf3*)
50151debfc3dSmrg      if test "$GCC" = yes; then
50161debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
50171debfc3dSmrg	_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'
50181debfc3dSmrg      else
50191debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
50201debfc3dSmrg	_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'
50211debfc3dSmrg      fi
50221debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
50231debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
50241debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
50251debfc3dSmrg      ;;
50261debfc3dSmrg
50271debfc3dSmrg    osf4* | osf5*)	# as osf3* with the addition of -msym flag
50281debfc3dSmrg      if test "$GCC" = yes; then
50291debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
50301debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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'
50311debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
50321debfc3dSmrg      else
50331debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
50341debfc3dSmrg	_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'
50351debfc3dSmrg	_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~
50361debfc3dSmrg	$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'
50371debfc3dSmrg
50381debfc3dSmrg	# Both c and cxx compiler support -rpath directly
50391debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
50401debfc3dSmrg      fi
50411debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
50421debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
50431debfc3dSmrg      ;;
50441debfc3dSmrg
50451debfc3dSmrg    solaris*)
50461debfc3dSmrg      _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
50471debfc3dSmrg      if test "$GCC" = yes; then
50481debfc3dSmrg	wlarc='${wl}'
50491debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
50501debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50511debfc3dSmrg	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50521debfc3dSmrg      else
50531debfc3dSmrg	case `$CC -V 2>&1` in
50541debfc3dSmrg	*"Compilers 5.0"*)
50551debfc3dSmrg	  wlarc=''
50561debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
50571debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50581debfc3dSmrg	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
50591debfc3dSmrg	  ;;
50601debfc3dSmrg	*)
50611debfc3dSmrg	  wlarc='${wl}'
50621debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
50631debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
50641debfc3dSmrg	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
50651debfc3dSmrg	  ;;
50661debfc3dSmrg	esac
50671debfc3dSmrg      fi
50681debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
50691debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50701debfc3dSmrg      case $host_os in
50711debfc3dSmrg      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
50721debfc3dSmrg      *)
50731debfc3dSmrg	# The compiler driver will combine and reorder linker options,
50741debfc3dSmrg	# but understands `-z linker_flag'.  GCC discards it without `$wl',
50751debfc3dSmrg	# but is careful enough not to reorder.
50761debfc3dSmrg	# Supported since Solaris 2.6 (maybe 2.5.1?)
50771debfc3dSmrg	if test "$GCC" = yes; then
50781debfc3dSmrg	  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
50791debfc3dSmrg	else
50801debfc3dSmrg	  _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
50811debfc3dSmrg	fi
50821debfc3dSmrg	;;
50831debfc3dSmrg      esac
50841debfc3dSmrg      _LT_TAGVAR(link_all_deplibs, $1)=yes
50851debfc3dSmrg      ;;
50861debfc3dSmrg
50871debfc3dSmrg    sunos4*)
50881debfc3dSmrg      if test "x$host_vendor" = xsequent; then
50891debfc3dSmrg	# Use $CC to link under sequent, because it throws in some extra .o
50901debfc3dSmrg	# files that make .init and .fini sections work.
50911debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
50921debfc3dSmrg      else
50931debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
50941debfc3dSmrg      fi
50951debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
50961debfc3dSmrg      _LT_TAGVAR(hardcode_direct, $1)=yes
50971debfc3dSmrg      _LT_TAGVAR(hardcode_minus_L, $1)=yes
50981debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
50991debfc3dSmrg      ;;
51001debfc3dSmrg
51011debfc3dSmrg    sysv4)
51021debfc3dSmrg      case $host_vendor in
51031debfc3dSmrg	sni)
51041debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
51051debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
51061debfc3dSmrg	;;
51071debfc3dSmrg	siemens)
51081debfc3dSmrg	  ## LD is ld it makes a PLAMLIB
51091debfc3dSmrg	  ## CC just makes a GrossModule.
51101debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
51111debfc3dSmrg	  _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
51121debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=no
51131debfc3dSmrg        ;;
51141debfc3dSmrg	motorola)
51151debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
51161debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
51171debfc3dSmrg	;;
51181debfc3dSmrg      esac
51191debfc3dSmrg      runpath_var='LD_RUN_PATH'
51201debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51211debfc3dSmrg      ;;
51221debfc3dSmrg
51231debfc3dSmrg    sysv4.3*)
51241debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
51251debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51261debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
51271debfc3dSmrg      ;;
51281debfc3dSmrg
51291debfc3dSmrg    sysv4*MP*)
51301debfc3dSmrg      if test -d /usr/nec; then
51311debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
51321debfc3dSmrg	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51331debfc3dSmrg	runpath_var=LD_RUN_PATH
51341debfc3dSmrg	hardcode_runpath_var=yes
51351debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=yes
51361debfc3dSmrg      fi
51371debfc3dSmrg      ;;
51381debfc3dSmrg
51391debfc3dSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
51401debfc3dSmrg      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
51411debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
51421debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51431debfc3dSmrg      runpath_var='LD_RUN_PATH'
51441debfc3dSmrg
51451debfc3dSmrg      if test "$GCC" = yes; then
51461debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51471debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51481debfc3dSmrg      else
51491debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51501debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51511debfc3dSmrg      fi
51521debfc3dSmrg      ;;
51531debfc3dSmrg
51541debfc3dSmrg    sysv5* | sco3.2v5* | sco5v6*)
51551debfc3dSmrg      # Note: We can NOT use -z defs as we might desire, because we do not
51561debfc3dSmrg      # link with -lc, and that would cause any symbols used from libc to
51571debfc3dSmrg      # always be unresolved, which means just about no library would
51581debfc3dSmrg      # ever link correctly.  If we're not using GNU ld we use -z text
51591debfc3dSmrg      # though, which does catch some bad symbols but isn't as heavy-handed
51601debfc3dSmrg      # as -z defs.
51611debfc3dSmrg      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
51621debfc3dSmrg      _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
51631debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
51641debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51651debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
51661debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
51671debfc3dSmrg      _LT_TAGVAR(link_all_deplibs, $1)=yes
51681debfc3dSmrg      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
51691debfc3dSmrg      runpath_var='LD_RUN_PATH'
51701debfc3dSmrg
51711debfc3dSmrg      if test "$GCC" = yes; then
51721debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51731debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51741debfc3dSmrg      else
51751debfc3dSmrg	_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51761debfc3dSmrg	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
51771debfc3dSmrg      fi
51781debfc3dSmrg      ;;
51791debfc3dSmrg
51801debfc3dSmrg    uts4*)
51811debfc3dSmrg      _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
51821debfc3dSmrg      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
51831debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
51841debfc3dSmrg      ;;
51851debfc3dSmrg
51861debfc3dSmrg    *)
51871debfc3dSmrg      _LT_TAGVAR(ld_shlibs, $1)=no
51881debfc3dSmrg      ;;
51891debfc3dSmrg    esac
51901debfc3dSmrg
51911debfc3dSmrg    if test x$host_vendor = xsni; then
51921debfc3dSmrg      case $host in
51931debfc3dSmrg      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
51941debfc3dSmrg	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
51951debfc3dSmrg	;;
51961debfc3dSmrg      esac
51971debfc3dSmrg    fi
51981debfc3dSmrg  fi
51991debfc3dSmrg])
52001debfc3dSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
52011debfc3dSmrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
52021debfc3dSmrg
52031debfc3dSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
52041debfc3dSmrg
52051debfc3dSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
52061debfc3dSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
52071debfc3dSmrg_LT_DECL([], [extract_expsyms_cmds], [2],
52081debfc3dSmrg    [The commands to extract the exported symbol list from a shared archive])
52091debfc3dSmrg
52101debfc3dSmrg#
52111debfc3dSmrg# Do we need to explicitly link libc?
52121debfc3dSmrg#
52131debfc3dSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
52141debfc3dSmrgx|xyes)
52151debfc3dSmrg  # Assume -lc should be added
52161debfc3dSmrg  _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
52171debfc3dSmrg
52181debfc3dSmrg  if test "$enable_shared" = yes && test "$GCC" = yes; then
52191debfc3dSmrg    case $_LT_TAGVAR(archive_cmds, $1) in
52201debfc3dSmrg    *'~'*)
52211debfc3dSmrg      # FIXME: we may have to deal with multi-command sequences.
52221debfc3dSmrg      ;;
52231debfc3dSmrg    '$CC '*)
52241debfc3dSmrg      # Test whether the compiler implicitly links with -lc since on some
52251debfc3dSmrg      # systems, -lgcc has to come before -lc. If gcc already passes -lc
52261debfc3dSmrg      # to ld, don't add -lc before -lgcc.
52271debfc3dSmrg      AC_CACHE_CHECK([whether -lc should be explicitly linked in],
52281debfc3dSmrg	[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
52291debfc3dSmrg	[$RM conftest*
52301debfc3dSmrg	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
52311debfc3dSmrg
52321debfc3dSmrg	if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
52331debfc3dSmrg	  soname=conftest
52341debfc3dSmrg	  lib=conftest
52351debfc3dSmrg	  libobjs=conftest.$ac_objext
52361debfc3dSmrg	  deplibs=
52371debfc3dSmrg	  wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
52381debfc3dSmrg	  pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
52391debfc3dSmrg	  compiler_flags=-v
52401debfc3dSmrg	  linker_flags=-v
52411debfc3dSmrg	  verstring=
52421debfc3dSmrg	  output_objdir=.
52431debfc3dSmrg	  libname=conftest
52441debfc3dSmrg	  lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
52451debfc3dSmrg	  _LT_TAGVAR(allow_undefined_flag, $1)=
52461debfc3dSmrg	  if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
52471debfc3dSmrg	  then
52481debfc3dSmrg	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
52491debfc3dSmrg	  else
52501debfc3dSmrg	    lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
52511debfc3dSmrg	  fi
52521debfc3dSmrg	  _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
52531debfc3dSmrg	else
52541debfc3dSmrg	  cat conftest.err 1>&5
52551debfc3dSmrg	fi
52561debfc3dSmrg	$RM conftest*
52571debfc3dSmrg	])
52581debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
52591debfc3dSmrg      ;;
52601debfc3dSmrg    esac
52611debfc3dSmrg  fi
52621debfc3dSmrg  ;;
52631debfc3dSmrgesac
52641debfc3dSmrg
52651debfc3dSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
52661debfc3dSmrg    [Whether or not to add -lc for building shared libraries])
52671debfc3dSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
52681debfc3dSmrg    [enable_shared_with_static_runtimes], [0],
52691debfc3dSmrg    [Whether or not to disallow shared libs when runtime libs are static])
52701debfc3dSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
52711debfc3dSmrg    [Compiler flag to allow reflexive dlopens])
52721debfc3dSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1],
52731debfc3dSmrg    [Compiler flag to generate shared objects directly from archives])
52741debfc3dSmrg_LT_TAGDECL([], [compiler_needs_object], [1],
52751debfc3dSmrg    [Whether the compiler copes with passing no objects directly])
52761debfc3dSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
52771debfc3dSmrg    [Create an old-style archive from a shared archive])
52781debfc3dSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
52791debfc3dSmrg    [Create a temporary old-style archive to link instead of a shared archive])
52801debfc3dSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
52811debfc3dSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2])
52821debfc3dSmrg_LT_TAGDECL([], [module_cmds], [2],
52831debfc3dSmrg    [Commands used to build a loadable module if different from building
52841debfc3dSmrg    a shared archive.])
52851debfc3dSmrg_LT_TAGDECL([], [module_expsym_cmds], [2])
52861debfc3dSmrg_LT_TAGDECL([], [with_gnu_ld], [1],
52871debfc3dSmrg    [Whether we are building with GNU ld or not])
52881debfc3dSmrg_LT_TAGDECL([], [allow_undefined_flag], [1],
52891debfc3dSmrg    [Flag that allows shared libraries with undefined symbols to be built])
52901debfc3dSmrg_LT_TAGDECL([], [no_undefined_flag], [1],
52911debfc3dSmrg    [Flag that enforces no undefined symbols])
52921debfc3dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
52931debfc3dSmrg    [Flag to hardcode $libdir into a binary during linking.
52941debfc3dSmrg    This must work even if $libdir does not exist])
52951debfc3dSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
52961debfc3dSmrg    [[If ld is used when linking, flag to hardcode $libdir into a binary
52971debfc3dSmrg    during linking.  This must work even if $libdir does not exist]])
52981debfc3dSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1],
52991debfc3dSmrg    [Whether we need a single "-rpath" flag with a separated argument])
53001debfc3dSmrg_LT_TAGDECL([], [hardcode_direct], [0],
53011debfc3dSmrg    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
53021debfc3dSmrg    DIR into the resulting binary])
53031debfc3dSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0],
53041debfc3dSmrg    [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
53051debfc3dSmrg    DIR into the resulting binary and the resulting library dependency is
53061debfc3dSmrg    "absolute", i.e impossible to change by setting ${shlibpath_var} if the
53071debfc3dSmrg    library is relocated])
53081debfc3dSmrg_LT_TAGDECL([], [hardcode_minus_L], [0],
53091debfc3dSmrg    [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
53101debfc3dSmrg    into the resulting binary])
53111debfc3dSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
53121debfc3dSmrg    [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
53131debfc3dSmrg    into the resulting binary])
53141debfc3dSmrg_LT_TAGDECL([], [hardcode_automatic], [0],
53151debfc3dSmrg    [Set to "yes" if building a shared library automatically hardcodes DIR
53161debfc3dSmrg    into the library and all subsequent libraries and executables linked
53171debfc3dSmrg    against it])
53181debfc3dSmrg_LT_TAGDECL([], [inherit_rpath], [0],
53191debfc3dSmrg    [Set to yes if linker adds runtime paths of dependent libraries
53201debfc3dSmrg    to runtime path list])
53211debfc3dSmrg_LT_TAGDECL([], [link_all_deplibs], [0],
53221debfc3dSmrg    [Whether libtool must link a program against all its dependency libraries])
53231debfc3dSmrg_LT_TAGDECL([], [fix_srcfile_path], [1],
53241debfc3dSmrg    [Fix the shell variable $srcfile for the compiler])
53251debfc3dSmrg_LT_TAGDECL([], [always_export_symbols], [0],
53261debfc3dSmrg    [Set to "yes" if exported symbols are required])
53271debfc3dSmrg_LT_TAGDECL([], [export_symbols_cmds], [2],
53281debfc3dSmrg    [The commands to list exported symbols])
53291debfc3dSmrg_LT_TAGDECL([], [exclude_expsyms], [1],
53301debfc3dSmrg    [Symbols that should not be listed in the preloaded symbols])
53311debfc3dSmrg_LT_TAGDECL([], [include_expsyms], [1],
53321debfc3dSmrg    [Symbols that must always be exported])
53331debfc3dSmrg_LT_TAGDECL([], [prelink_cmds], [2],
53341debfc3dSmrg    [Commands necessary for linking programs (against libraries) with templates])
53351debfc3dSmrg_LT_TAGDECL([], [file_list_spec], [1],
53361debfc3dSmrg    [Specify filename containing input files])
53371debfc3dSmrgdnl FIXME: Not yet implemented
53381debfc3dSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
53391debfc3dSmrgdnl    [Compiler flag to generate thread safe objects])
53401debfc3dSmrg])# _LT_LINKER_SHLIBS
53411debfc3dSmrg
53421debfc3dSmrg
53431debfc3dSmrg# _LT_LANG_C_CONFIG([TAG])
53441debfc3dSmrg# ------------------------
53451debfc3dSmrg# Ensure that the configuration variables for a C compiler are suitably
53461debfc3dSmrg# defined.  These variables are subsequently used by _LT_CONFIG to write
53471debfc3dSmrg# the compiler configuration to `libtool'.
53481debfc3dSmrgm4_defun([_LT_LANG_C_CONFIG],
53491debfc3dSmrg[m4_require([_LT_DECL_EGREP])dnl
53501debfc3dSmrglt_save_CC="$CC"
53511debfc3dSmrgAC_LANG_PUSH(C)
53521debfc3dSmrg
53531debfc3dSmrg# Source file extension for C test sources.
53541debfc3dSmrgac_ext=c
53551debfc3dSmrg
53561debfc3dSmrg# Object file extension for compiled C test sources.
53571debfc3dSmrgobjext=o
53581debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
53591debfc3dSmrg
53601debfc3dSmrg# Code to be used in simple compile tests
53611debfc3dSmrglt_simple_compile_test_code="int some_variable = 0;"
53621debfc3dSmrg
53631debfc3dSmrg# Code to be used in simple link tests
53641debfc3dSmrglt_simple_link_test_code='int main(){return(0);}'
53651debfc3dSmrg
53661debfc3dSmrg_LT_TAG_COMPILER
53671debfc3dSmrg# Save the default compiler, since it gets overwritten when the other
53681debfc3dSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
53691debfc3dSmrgcompiler_DEFAULT=$CC
53701debfc3dSmrg
53711debfc3dSmrg# save warnings/boilerplate of simple test code
53721debfc3dSmrg_LT_COMPILER_BOILERPLATE
53731debfc3dSmrg_LT_LINKER_BOILERPLATE
53741debfc3dSmrg
53751debfc3dSmrg## CAVEAT EMPTOR:
53761debfc3dSmrg## There is no encapsulation within the following macros, do not change
53771debfc3dSmrg## the running order or otherwise move them around unless you know exactly
53781debfc3dSmrg## what you are doing...
53791debfc3dSmrgif test -n "$compiler"; then
53801debfc3dSmrg  _LT_COMPILER_NO_RTTI($1)
53811debfc3dSmrg  _LT_COMPILER_PIC($1)
53821debfc3dSmrg  _LT_COMPILER_C_O($1)
53831debfc3dSmrg  _LT_COMPILER_FILE_LOCKS($1)
53841debfc3dSmrg  _LT_LINKER_SHLIBS($1)
53851debfc3dSmrg  _LT_SYS_DYNAMIC_LINKER($1)
53861debfc3dSmrg  _LT_LINKER_HARDCODE_LIBPATH($1)
53871debfc3dSmrg  LT_SYS_DLOPEN_SELF
53881debfc3dSmrg  _LT_CMD_STRIPLIB
53891debfc3dSmrg
53901debfc3dSmrg  # Report which library types will actually be built
53911debfc3dSmrg  AC_MSG_CHECKING([if libtool supports shared libraries])
53921debfc3dSmrg  AC_MSG_RESULT([$can_build_shared])
53931debfc3dSmrg
53941debfc3dSmrg  AC_MSG_CHECKING([whether to build shared libraries])
53951debfc3dSmrg  test "$can_build_shared" = "no" && enable_shared=no
53961debfc3dSmrg
53971debfc3dSmrg  # On AIX, shared libraries and static libraries use the same namespace, and
53981debfc3dSmrg  # are all built from PIC.
53991debfc3dSmrg  case $host_os in
54001debfc3dSmrg  aix3*)
54011debfc3dSmrg    test "$enable_shared" = yes && enable_static=no
54021debfc3dSmrg    if test -n "$RANLIB"; then
54031debfc3dSmrg      archive_cmds="$archive_cmds~\$RANLIB \$lib"
54041debfc3dSmrg      postinstall_cmds='$RANLIB $lib'
54051debfc3dSmrg    fi
54061debfc3dSmrg    ;;
54071debfc3dSmrg
54081debfc3dSmrg  aix[[4-9]]*)
54091debfc3dSmrg    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
54101debfc3dSmrg      test "$enable_shared" = yes && enable_static=no
54111debfc3dSmrg    fi
54121debfc3dSmrg    ;;
54131debfc3dSmrg  esac
54141debfc3dSmrg  AC_MSG_RESULT([$enable_shared])
54151debfc3dSmrg
54161debfc3dSmrg  AC_MSG_CHECKING([whether to build static libraries])
54171debfc3dSmrg  # Make sure either enable_shared or enable_static is yes.
54181debfc3dSmrg  test "$enable_shared" = yes || enable_static=yes
54191debfc3dSmrg  AC_MSG_RESULT([$enable_static])
54201debfc3dSmrg
54211debfc3dSmrg  _LT_CONFIG($1)
54221debfc3dSmrgfi
54231debfc3dSmrgAC_LANG_POP
54241debfc3dSmrgCC="$lt_save_CC"
54251debfc3dSmrg])# _LT_LANG_C_CONFIG
54261debfc3dSmrg
54271debfc3dSmrg
54281debfc3dSmrg# _LT_LANG_CXX_CONFIG([TAG])
54291debfc3dSmrg# --------------------------
54301debfc3dSmrg# Ensure that the configuration variables for a C++ compiler are suitably
54311debfc3dSmrg# defined.  These variables are subsequently used by _LT_CONFIG to write
54321debfc3dSmrg# the compiler configuration to `libtool'.
54331debfc3dSmrgm4_defun([_LT_LANG_CXX_CONFIG],
54341debfc3dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
54351debfc3dSmrgm4_require([_LT_DECL_EGREP])dnl
54361debfc3dSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" &&
54371debfc3dSmrg    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
54381debfc3dSmrg    (test "X$CXX" != "Xg++"))) ; then
54391debfc3dSmrg  AC_PROG_CXXCPP
54401debfc3dSmrgelse
54411debfc3dSmrg  _lt_caught_CXX_error=yes
54421debfc3dSmrgfi
54431debfc3dSmrg
54441debfc3dSmrgAC_LANG_PUSH(C++)
54451debfc3dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no
54461debfc3dSmrg_LT_TAGVAR(allow_undefined_flag, $1)=
54471debfc3dSmrg_LT_TAGVAR(always_export_symbols, $1)=no
54481debfc3dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)=
54491debfc3dSmrg_LT_TAGVAR(compiler_needs_object, $1)=no
54501debfc3dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)=
54511debfc3dSmrg_LT_TAGVAR(hardcode_direct, $1)=no
54521debfc3dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no
54531debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
54541debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
54551debfc3dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)=
54561debfc3dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no
54571debfc3dSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
54581debfc3dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no
54591debfc3dSmrg_LT_TAGVAR(inherit_rpath, $1)=no
54601debfc3dSmrg_LT_TAGVAR(module_cmds, $1)=
54611debfc3dSmrg_LT_TAGVAR(module_expsym_cmds, $1)=
54621debfc3dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown
54631debfc3dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
54641debfc3dSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag
54651debfc3dSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
54661debfc3dSmrg_LT_TAGVAR(no_undefined_flag, $1)=
54671debfc3dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)=
54681debfc3dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
54691debfc3dSmrg
54701debfc3dSmrg# Source file extension for C++ test sources.
54711debfc3dSmrgac_ext=cpp
54721debfc3dSmrg
54731debfc3dSmrg# Object file extension for compiled C++ test sources.
54741debfc3dSmrgobjext=o
54751debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
54761debfc3dSmrg
54771debfc3dSmrg# No sense in running all these tests if we already determined that
54781debfc3dSmrg# the CXX compiler isn't working.  Some variables (like enable_shared)
54791debfc3dSmrg# are currently assumed to apply to all compilers on this platform,
54801debfc3dSmrg# and will be corrupted by setting them based on a non-working compiler.
54811debfc3dSmrgif test "$_lt_caught_CXX_error" != yes; then
54821debfc3dSmrg  # Code to be used in simple compile tests
54831debfc3dSmrg  lt_simple_compile_test_code="int some_variable = 0;"
54841debfc3dSmrg
54851debfc3dSmrg  # Code to be used in simple link tests
54861debfc3dSmrg  lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
54871debfc3dSmrg
54881debfc3dSmrg  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
54891debfc3dSmrg  _LT_TAG_COMPILER
54901debfc3dSmrg
54911debfc3dSmrg  # save warnings/boilerplate of simple test code
54921debfc3dSmrg  _LT_COMPILER_BOILERPLATE
54931debfc3dSmrg  _LT_LINKER_BOILERPLATE
54941debfc3dSmrg
54951debfc3dSmrg  # Allow CC to be a program name with arguments.
54961debfc3dSmrg  lt_save_CC=$CC
54971debfc3dSmrg  lt_save_LD=$LD
54981debfc3dSmrg  lt_save_GCC=$GCC
54991debfc3dSmrg  GCC=$GXX
55001debfc3dSmrg  lt_save_with_gnu_ld=$with_gnu_ld
55011debfc3dSmrg  lt_save_path_LD=$lt_cv_path_LD
55021debfc3dSmrg  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
55031debfc3dSmrg    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
55041debfc3dSmrg  else
55051debfc3dSmrg    $as_unset lt_cv_prog_gnu_ld
55061debfc3dSmrg  fi
55071debfc3dSmrg  if test -n "${lt_cv_path_LDCXX+set}"; then
55081debfc3dSmrg    lt_cv_path_LD=$lt_cv_path_LDCXX
55091debfc3dSmrg  else
55101debfc3dSmrg    $as_unset lt_cv_path_LD
55111debfc3dSmrg  fi
55121debfc3dSmrg  test -z "${LDCXX+set}" || LD=$LDCXX
55131debfc3dSmrg  CC=${CXX-"c++"}
55141debfc3dSmrg  compiler=$CC
55151debfc3dSmrg  _LT_TAGVAR(compiler, $1)=$CC
55161debfc3dSmrg  _LT_CC_BASENAME([$compiler])
55171debfc3dSmrg
55181debfc3dSmrg  if test -n "$compiler"; then
55191debfc3dSmrg    # We don't want -fno-exception when compiling C++ code, so set the
55201debfc3dSmrg    # no_builtin_flag separately
55211debfc3dSmrg    if test "$GXX" = yes; then
55221debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
55231debfc3dSmrg    else
55241debfc3dSmrg      _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
55251debfc3dSmrg    fi
55261debfc3dSmrg
55271debfc3dSmrg    if test "$GXX" = yes; then
55281debfc3dSmrg      # Set up default GNU C++ configuration
55291debfc3dSmrg
55301debfc3dSmrg      LT_PATH_LD
55311debfc3dSmrg
55321debfc3dSmrg      # Check if GNU C++ uses GNU ld as the underlying linker, since the
55331debfc3dSmrg      # archiving commands below assume that GNU ld is being used.
55341debfc3dSmrg      if test "$with_gnu_ld" = yes; then
55351debfc3dSmrg        _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
55361debfc3dSmrg        _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'
55371debfc3dSmrg
55381debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
55391debfc3dSmrg        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
55401debfc3dSmrg
55411debfc3dSmrg        # If archive_cmds runs LD, not CC, wlarc should be empty
55421debfc3dSmrg        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
55431debfc3dSmrg        #     investigate it a little bit more. (MM)
55441debfc3dSmrg        wlarc='${wl}'
55451debfc3dSmrg
55461debfc3dSmrg        # ancient GNU ld didn't support --whole-archive et. al.
55471debfc3dSmrg        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
55481debfc3dSmrg	  $GREP 'no-whole-archive' > /dev/null; then
55491debfc3dSmrg          _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
55501debfc3dSmrg        else
55511debfc3dSmrg          _LT_TAGVAR(whole_archive_flag_spec, $1)=
55521debfc3dSmrg        fi
55531debfc3dSmrg      else
55541debfc3dSmrg        with_gnu_ld=no
55551debfc3dSmrg        wlarc=
55561debfc3dSmrg
55571debfc3dSmrg        # A generic and very simple default shared library creation
55581debfc3dSmrg        # command for GNU C++ for the case where it uses the native
55591debfc3dSmrg        # linker, instead of GNU ld.  If possible, this setting should
55601debfc3dSmrg        # overridden to take advantage of the native linker features on
55611debfc3dSmrg        # the platform it is being used on.
55621debfc3dSmrg        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
55631debfc3dSmrg      fi
55641debfc3dSmrg
55651debfc3dSmrg      # Commands to make compiler produce verbose output that lists
55661debfc3dSmrg      # what "hidden" libraries, object files and flags are used when
55671debfc3dSmrg      # linking a shared library.
55681debfc3dSmrg      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
55691debfc3dSmrg
55701debfc3dSmrg    else
55711debfc3dSmrg      GXX=no
55721debfc3dSmrg      with_gnu_ld=no
55731debfc3dSmrg      wlarc=
55741debfc3dSmrg    fi
55751debfc3dSmrg
55761debfc3dSmrg    # PORTME: fill in a description of your system's C++ link characteristics
55771debfc3dSmrg    AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
55781debfc3dSmrg    _LT_TAGVAR(ld_shlibs, $1)=yes
55791debfc3dSmrg    case $host_os in
55801debfc3dSmrg      aix3*)
55811debfc3dSmrg        # FIXME: insert proper C++ library support
55821debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
55831debfc3dSmrg        ;;
55841debfc3dSmrg      aix[[4-9]]*)
55851debfc3dSmrg        if test "$host_cpu" = ia64; then
55861debfc3dSmrg          # On IA64, the linker does run time linking by default, so we don't
55871debfc3dSmrg          # have to do anything special.
55881debfc3dSmrg          aix_use_runtimelinking=no
55891debfc3dSmrg          exp_sym_flag='-Bexport'
55901debfc3dSmrg          no_entry_flag=""
55911debfc3dSmrg        else
55921debfc3dSmrg          aix_use_runtimelinking=no
55931debfc3dSmrg
55941debfc3dSmrg          # Test if we are trying to use run time linking or normal
55951debfc3dSmrg          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
55961debfc3dSmrg          # need to do runtime linking.
55971debfc3dSmrg          case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
55981debfc3dSmrg	    for ld_flag in $LDFLAGS; do
55991debfc3dSmrg	      case $ld_flag in
56001debfc3dSmrg	      *-brtl*)
56011debfc3dSmrg	        aix_use_runtimelinking=yes
56021debfc3dSmrg	        break
56031debfc3dSmrg	        ;;
56041debfc3dSmrg	      esac
56051debfc3dSmrg	    done
56061debfc3dSmrg	    ;;
56071debfc3dSmrg          esac
56081debfc3dSmrg
56091debfc3dSmrg          exp_sym_flag='-bexport'
56101debfc3dSmrg          no_entry_flag='-bnoentry'
56111debfc3dSmrg        fi
56121debfc3dSmrg
56131debfc3dSmrg        # When large executables or shared objects are built, AIX ld can
56141debfc3dSmrg        # have problems creating the table of contents.  If linking a library
56151debfc3dSmrg        # or program results in "error TOC overflow" add -mminimal-toc to
56161debfc3dSmrg        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
56171debfc3dSmrg        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
56181debfc3dSmrg
56191debfc3dSmrg        _LT_TAGVAR(archive_cmds, $1)=''
56201debfc3dSmrg        _LT_TAGVAR(hardcode_direct, $1)=yes
56211debfc3dSmrg        _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
56221debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
56231debfc3dSmrg        _LT_TAGVAR(link_all_deplibs, $1)=yes
56241debfc3dSmrg        _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
56251debfc3dSmrg
56261debfc3dSmrg        if test "$GXX" = yes; then
56271debfc3dSmrg          case $host_os in aix4.[[012]]|aix4.[[012]].*)
56281debfc3dSmrg          # We only want to do this on AIX 4.2 and lower, the check
56291debfc3dSmrg          # below for broken collect2 doesn't work under 4.3+
56301debfc3dSmrg	  collect2name=`${CC} -print-prog-name=collect2`
56311debfc3dSmrg	  if test -f "$collect2name" &&
56321debfc3dSmrg	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
56331debfc3dSmrg	  then
56341debfc3dSmrg	    # We have reworked collect2
56351debfc3dSmrg	    :
56361debfc3dSmrg	  else
56371debfc3dSmrg	    # We have old collect2
56381debfc3dSmrg	    _LT_TAGVAR(hardcode_direct, $1)=unsupported
56391debfc3dSmrg	    # It fails to find uninstalled libraries when the uninstalled
56401debfc3dSmrg	    # path is not listed in the libpath.  Setting hardcode_minus_L
56411debfc3dSmrg	    # to unsupported forces relinking
56421debfc3dSmrg	    _LT_TAGVAR(hardcode_minus_L, $1)=yes
56431debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
56441debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_separator, $1)=
56451debfc3dSmrg	  fi
56461debfc3dSmrg          esac
56471debfc3dSmrg          shared_flag='-shared'
56481debfc3dSmrg	  if test "$aix_use_runtimelinking" = yes; then
56491debfc3dSmrg	    shared_flag="$shared_flag "'${wl}-G'
56501debfc3dSmrg	  fi
56511debfc3dSmrg        else
56521debfc3dSmrg          # not using gcc
56531debfc3dSmrg          if test "$host_cpu" = ia64; then
56541debfc3dSmrg	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
56551debfc3dSmrg	  # chokes on -Wl,-G. The following line is correct:
56561debfc3dSmrg	  shared_flag='-G'
56571debfc3dSmrg          else
56581debfc3dSmrg	    if test "$aix_use_runtimelinking" = yes; then
56591debfc3dSmrg	      shared_flag='${wl}-G'
56601debfc3dSmrg	    else
56611debfc3dSmrg	      shared_flag='${wl}-bM:SRE'
56621debfc3dSmrg	    fi
56631debfc3dSmrg          fi
56641debfc3dSmrg        fi
56651debfc3dSmrg
56661debfc3dSmrg        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
56671debfc3dSmrg        # It seems that -bexpall does not export symbols beginning with
56681debfc3dSmrg        # underscore (_), so it is better to generate a list of symbols to
56691debfc3dSmrg	# export.
56701debfc3dSmrg        _LT_TAGVAR(always_export_symbols, $1)=yes
56711debfc3dSmrg        if test "$aix_use_runtimelinking" = yes; then
56721debfc3dSmrg          # Warning - without using the other runtime loading flags (-brtl),
56731debfc3dSmrg          # -berok will link without error, but may produce a broken library.
56741debfc3dSmrg          _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
56751debfc3dSmrg          # Determine the default libpath from the value encoded in an empty
56761debfc3dSmrg          # executable.
56771debfc3dSmrg          _LT_SYS_MODULE_PATH_AIX
56781debfc3dSmrg          _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56791debfc3dSmrg
56801debfc3dSmrg          _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
56811debfc3dSmrg        else
56821debfc3dSmrg          if test "$host_cpu" = ia64; then
56831debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
56841debfc3dSmrg	    _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
56851debfc3dSmrg	    _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"
56861debfc3dSmrg          else
56871debfc3dSmrg	    # Determine the default libpath from the value encoded in an
56881debfc3dSmrg	    # empty executable.
56891debfc3dSmrg	    _LT_SYS_MODULE_PATH_AIX
56901debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
56911debfc3dSmrg	    # Warning - without using the other run time loading flags,
56921debfc3dSmrg	    # -berok will link without error, but may produce a broken library.
56931debfc3dSmrg	    _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
56941debfc3dSmrg	    _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
56951debfc3dSmrg	    if test "$with_gnu_ld" = yes; then
56961debfc3dSmrg	      # We only use this code for GNU lds that support --whole-archive.
56971debfc3dSmrg	      _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
56981debfc3dSmrg	    else
56991debfc3dSmrg	      # Exported symbols can be pulled into shared objects from archives
57001debfc3dSmrg	      _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
57011debfc3dSmrg	    fi
57021debfc3dSmrg	    _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
57031debfc3dSmrg	    # This is similar to how AIX traditionally builds its shared
57041debfc3dSmrg	    # libraries.
57051debfc3dSmrg	    _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
57061debfc3dSmrg          fi
57071debfc3dSmrg        fi
57081debfc3dSmrg        ;;
57091debfc3dSmrg
57101debfc3dSmrg      beos*)
57111debfc3dSmrg	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
57121debfc3dSmrg	  _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
57131debfc3dSmrg	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
57141debfc3dSmrg	  # support --undefined.  This deserves some investigation.  FIXME
57151debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
57161debfc3dSmrg	else
57171debfc3dSmrg	  _LT_TAGVAR(ld_shlibs, $1)=no
57181debfc3dSmrg	fi
57191debfc3dSmrg	;;
57201debfc3dSmrg
57211debfc3dSmrg      chorus*)
57221debfc3dSmrg        case $cc_basename in
57231debfc3dSmrg          *)
57241debfc3dSmrg	  # FIXME: insert proper C++ library support
57251debfc3dSmrg	  _LT_TAGVAR(ld_shlibs, $1)=no
57261debfc3dSmrg	  ;;
57271debfc3dSmrg        esac
57281debfc3dSmrg        ;;
57291debfc3dSmrg
57301debfc3dSmrg      cygwin* | mingw* | pw32* | cegcc*)
57311debfc3dSmrg        # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
57321debfc3dSmrg        # as there is no search path for DLLs.
57331debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
57341debfc3dSmrg        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
57351debfc3dSmrg        _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
57361debfc3dSmrg        _LT_TAGVAR(always_export_symbols, $1)=no
57371debfc3dSmrg        _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
57381debfc3dSmrg
57391debfc3dSmrg        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
57401debfc3dSmrg          _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'
57411debfc3dSmrg          # If the export-symbols file already is a .def file (1st line
57421debfc3dSmrg          # is EXPORTS), use it as is; otherwise, prepend...
57431debfc3dSmrg          _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
57441debfc3dSmrg	    cp $export_symbols $output_objdir/$soname.def;
57451debfc3dSmrg          else
57461debfc3dSmrg	    echo EXPORTS > $output_objdir/$soname.def;
57471debfc3dSmrg	    cat $export_symbols >> $output_objdir/$soname.def;
57481debfc3dSmrg          fi~
57491debfc3dSmrg          $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'
57501debfc3dSmrg        else
57511debfc3dSmrg          _LT_TAGVAR(ld_shlibs, $1)=no
57521debfc3dSmrg        fi
57531debfc3dSmrg        ;;
57541debfc3dSmrg      darwin* | rhapsody*)
57551debfc3dSmrg        _LT_DARWIN_LINKER_FEATURES($1)
57561debfc3dSmrg	;;
57571debfc3dSmrg
57581debfc3dSmrg      dgux*)
57591debfc3dSmrg        case $cc_basename in
57601debfc3dSmrg          ec++*)
57611debfc3dSmrg	    # FIXME: insert proper C++ library support
57621debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
57631debfc3dSmrg	    ;;
57641debfc3dSmrg          ghcx*)
57651debfc3dSmrg	    # Green Hills C++ Compiler
57661debfc3dSmrg	    # FIXME: insert proper C++ library support
57671debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
57681debfc3dSmrg	    ;;
57691debfc3dSmrg          *)
57701debfc3dSmrg	    # FIXME: insert proper C++ library support
57711debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
57721debfc3dSmrg	    ;;
57731debfc3dSmrg        esac
57741debfc3dSmrg        ;;
57751debfc3dSmrg
57761debfc3dSmrg      freebsd2.*)
57771debfc3dSmrg        # C++ shared libraries reported to be fairly broken before
57781debfc3dSmrg	# switch to ELF
57791debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
57801debfc3dSmrg        ;;
57811debfc3dSmrg
57821debfc3dSmrg      freebsd-elf*)
57831debfc3dSmrg        _LT_TAGVAR(archive_cmds_need_lc, $1)=no
57841debfc3dSmrg        ;;
57851debfc3dSmrg
57861debfc3dSmrg      freebsd* | dragonfly*)
57871debfc3dSmrg        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
57881debfc3dSmrg        # conventions
57891debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=yes
57901debfc3dSmrg        ;;
57911debfc3dSmrg
57921debfc3dSmrg      gnu*)
57931debfc3dSmrg        ;;
57941debfc3dSmrg
57951debfc3dSmrg      haiku*)
57961debfc3dSmrg        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
57971debfc3dSmrg        _LT_TAGVAR(link_all_deplibs, $1)=yes
57981debfc3dSmrg        ;;
57991debfc3dSmrg
58001debfc3dSmrg      hpux9*)
58011debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
58021debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
58031debfc3dSmrg        _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
58041debfc3dSmrg        _LT_TAGVAR(hardcode_direct, $1)=yes
58051debfc3dSmrg        _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
58061debfc3dSmrg				             # but as the default
58071debfc3dSmrg				             # location of the library.
58081debfc3dSmrg
58091debfc3dSmrg        case $cc_basename in
58101debfc3dSmrg          CC*)
58111debfc3dSmrg            # FIXME: insert proper C++ library support
58121debfc3dSmrg            _LT_TAGVAR(ld_shlibs, $1)=no
58131debfc3dSmrg            ;;
58141debfc3dSmrg          aCC*)
58151debfc3dSmrg            _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
58161debfc3dSmrg            # Commands to make compiler produce verbose output that lists
58171debfc3dSmrg            # what "hidden" libraries, object files and flags are used when
58181debfc3dSmrg            # linking a shared library.
58191debfc3dSmrg            #
58201debfc3dSmrg            # There doesn't appear to be a way to prevent this compiler from
58211debfc3dSmrg            # explicitly linking system object files so we need to strip them
58221debfc3dSmrg            # from the output so that they don't get included in the library
58231debfc3dSmrg            # dependencies.
58241debfc3dSmrg            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"'
58251debfc3dSmrg            ;;
58261debfc3dSmrg          *)
58271debfc3dSmrg            if test "$GXX" = yes; then
58281debfc3dSmrg              _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
58291debfc3dSmrg            else
58301debfc3dSmrg              # FIXME: insert proper C++ library support
58311debfc3dSmrg              _LT_TAGVAR(ld_shlibs, $1)=no
58321debfc3dSmrg            fi
58331debfc3dSmrg            ;;
58341debfc3dSmrg        esac
58351debfc3dSmrg        ;;
58361debfc3dSmrg
58371debfc3dSmrg      hpux10*|hpux11*)
58381debfc3dSmrg        if test $with_gnu_ld = no; then
58391debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
58401debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_separator, $1)=:
58411debfc3dSmrg
58421debfc3dSmrg          case $host_cpu in
58431debfc3dSmrg            hppa*64*|ia64*)
58441debfc3dSmrg              ;;
58451debfc3dSmrg            *)
58461debfc3dSmrg	      _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
58471debfc3dSmrg              ;;
58481debfc3dSmrg          esac
58491debfc3dSmrg        fi
58501debfc3dSmrg        case $host_cpu in
58511debfc3dSmrg          hppa*64*|ia64*)
58521debfc3dSmrg            _LT_TAGVAR(hardcode_direct, $1)=no
58531debfc3dSmrg            _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
58541debfc3dSmrg            ;;
58551debfc3dSmrg          *)
58561debfc3dSmrg            _LT_TAGVAR(hardcode_direct, $1)=yes
58571debfc3dSmrg            _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
58581debfc3dSmrg            _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
58591debfc3dSmrg					         # but as the default
58601debfc3dSmrg					         # location of the library.
58611debfc3dSmrg            ;;
58621debfc3dSmrg        esac
58631debfc3dSmrg
58641debfc3dSmrg        case $cc_basename in
58651debfc3dSmrg          CC*)
58661debfc3dSmrg	    # FIXME: insert proper C++ library support
58671debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
58681debfc3dSmrg	    ;;
58691debfc3dSmrg          aCC*)
58701debfc3dSmrg	    case $host_cpu in
58711debfc3dSmrg	      hppa*64*)
58721debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58731debfc3dSmrg	        ;;
58741debfc3dSmrg	      ia64*)
58751debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58761debfc3dSmrg	        ;;
58771debfc3dSmrg	      *)
58781debfc3dSmrg	        _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'
58791debfc3dSmrg	        ;;
58801debfc3dSmrg	    esac
58811debfc3dSmrg	    # Commands to make compiler produce verbose output that lists
58821debfc3dSmrg	    # what "hidden" libraries, object files and flags are used when
58831debfc3dSmrg	    # linking a shared library.
58841debfc3dSmrg	    #
58851debfc3dSmrg	    # There doesn't appear to be a way to prevent this compiler from
58861debfc3dSmrg	    # explicitly linking system object files so we need to strip them
58871debfc3dSmrg	    # from the output so that they don't get included in the library
58881debfc3dSmrg	    # dependencies.
58891debfc3dSmrg	    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"'
58901debfc3dSmrg	    ;;
58911debfc3dSmrg          *)
58921debfc3dSmrg	    if test "$GXX" = yes; then
58931debfc3dSmrg	      if test $with_gnu_ld = no; then
58941debfc3dSmrg	        case $host_cpu in
58951debfc3dSmrg	          hppa*64*)
58961debfc3dSmrg	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
58971debfc3dSmrg	            ;;
58981debfc3dSmrg	          ia64*)
58991debfc3dSmrg	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59001debfc3dSmrg	            ;;
59011debfc3dSmrg	          *)
59021debfc3dSmrg	            _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
59031debfc3dSmrg	            ;;
59041debfc3dSmrg	        esac
59051debfc3dSmrg	      fi
59061debfc3dSmrg	    else
59071debfc3dSmrg	      # FIXME: insert proper C++ library support
59081debfc3dSmrg	      _LT_TAGVAR(ld_shlibs, $1)=no
59091debfc3dSmrg	    fi
59101debfc3dSmrg	    ;;
59111debfc3dSmrg        esac
59121debfc3dSmrg        ;;
59131debfc3dSmrg
59141debfc3dSmrg      interix[[3-9]]*)
59151debfc3dSmrg	_LT_TAGVAR(hardcode_direct, $1)=no
59161debfc3dSmrg	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
59171debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
59181debfc3dSmrg	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
59191debfc3dSmrg	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
59201debfc3dSmrg	# Instead, shared libraries are loaded at an image base (0x10000000 by
59211debfc3dSmrg	# default) and relocated if they conflict, which is a slow very memory
59221debfc3dSmrg	# consuming and fragmenting process.  To avoid this, we pick a random,
59231debfc3dSmrg	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
59241debfc3dSmrg	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
59251debfc3dSmrg	_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'
59261debfc3dSmrg	_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'
59271debfc3dSmrg	;;
59281debfc3dSmrg      irix5* | irix6*)
59291debfc3dSmrg        case $cc_basename in
59301debfc3dSmrg          CC*)
59311debfc3dSmrg	    # SGI C++
59321debfc3dSmrg	    _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'
59331debfc3dSmrg
59341debfc3dSmrg	    # Archives containing C++ object files must be created using
59351debfc3dSmrg	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
59361debfc3dSmrg	    # necessary to make sure instantiated templates are included
59371debfc3dSmrg	    # in the archive.
59381debfc3dSmrg	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
59391debfc3dSmrg	    ;;
59401debfc3dSmrg          *)
59411debfc3dSmrg	    if test "$GXX" = yes; then
59421debfc3dSmrg	      if test "$with_gnu_ld" = no; then
59431debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
59441debfc3dSmrg	      else
59451debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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'
59461debfc3dSmrg	      fi
59471debfc3dSmrg	    fi
59481debfc3dSmrg	    _LT_TAGVAR(link_all_deplibs, $1)=yes
59491debfc3dSmrg	    ;;
59501debfc3dSmrg        esac
59511debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
59521debfc3dSmrg        _LT_TAGVAR(hardcode_libdir_separator, $1)=:
59531debfc3dSmrg        _LT_TAGVAR(inherit_rpath, $1)=yes
59541debfc3dSmrg        ;;
59551debfc3dSmrg
59561debfc3dSmrg      linux* | k*bsd*-gnu | kopensolaris*-gnu)
59571debfc3dSmrg        case $cc_basename in
59581debfc3dSmrg          KCC*)
59591debfc3dSmrg	    # Kuck and Associates, Inc. (KAI) C++ Compiler
59601debfc3dSmrg
59611debfc3dSmrg	    # KCC will only create a shared library if the output file
59621debfc3dSmrg	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
59631debfc3dSmrg	    # to its proper name (with version) after linking.
59641debfc3dSmrg	    _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'
59651debfc3dSmrg	    _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'
59661debfc3dSmrg	    # Commands to make compiler produce verbose output that lists
59671debfc3dSmrg	    # what "hidden" libraries, object files and flags are used when
59681debfc3dSmrg	    # linking a shared library.
59691debfc3dSmrg	    #
59701debfc3dSmrg	    # There doesn't appear to be a way to prevent this compiler from
59711debfc3dSmrg	    # explicitly linking system object files so we need to strip them
59721debfc3dSmrg	    # from the output so that they don't get included in the library
59731debfc3dSmrg	    # dependencies.
59741debfc3dSmrg	    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"'
59751debfc3dSmrg
59761debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
59771debfc3dSmrg	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
59781debfc3dSmrg
59791debfc3dSmrg	    # Archives containing C++ object files must be created using
59801debfc3dSmrg	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
59811debfc3dSmrg	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
59821debfc3dSmrg	    ;;
59831debfc3dSmrg	  icpc* | ecpc* )
59841debfc3dSmrg	    # Intel C++
59851debfc3dSmrg	    with_gnu_ld=yes
59861debfc3dSmrg	    # version 8.0 and above of icpc choke on multiply defined symbols
59871debfc3dSmrg	    # if we add $predep_objects and $postdep_objects, however 7.1 and
59881debfc3dSmrg	    # earlier do not add the objects themselves.
59891debfc3dSmrg	    case `$CC -V 2>&1` in
59901debfc3dSmrg	      *"Version 7."*)
59911debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
59921debfc3dSmrg		_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'
59931debfc3dSmrg		;;
59941debfc3dSmrg	      *)  # Version 8.0 or newer
59951debfc3dSmrg	        tmp_idyn=
59961debfc3dSmrg	        case $host_cpu in
59971debfc3dSmrg		  ia64*) tmp_idyn=' -i_dynamic';;
59981debfc3dSmrg		esac
59991debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
60001debfc3dSmrg		_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'
60011debfc3dSmrg		;;
60021debfc3dSmrg	    esac
60031debfc3dSmrg	    _LT_TAGVAR(archive_cmds_need_lc, $1)=no
60041debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
60051debfc3dSmrg	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
60061debfc3dSmrg	    _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
60071debfc3dSmrg	    ;;
60081debfc3dSmrg          pgCC* | pgcpp*)
60091debfc3dSmrg            # Portland Group C++ compiler
60101debfc3dSmrg	    case `$CC -V` in
60111debfc3dSmrg	    *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
60121debfc3dSmrg	      _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
60131debfc3dSmrg		rm -rf $tpldir~
60141debfc3dSmrg		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6015c0a68be4Smrg		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
60161debfc3dSmrg	      _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
60171debfc3dSmrg		rm -rf $tpldir~
60181debfc3dSmrg		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6019c0a68be4Smrg		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
60201debfc3dSmrg		$RANLIB $oldlib'
60211debfc3dSmrg	      _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
60221debfc3dSmrg		rm -rf $tpldir~
60231debfc3dSmrg		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6024c0a68be4Smrg		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
60251debfc3dSmrg	      _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
60261debfc3dSmrg		rm -rf $tpldir~
60271debfc3dSmrg		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6028c0a68be4Smrg		$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'
60291debfc3dSmrg	      ;;
60301debfc3dSmrg	    *) # Version 6 and above use weak symbols
60311debfc3dSmrg	      _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
60321debfc3dSmrg	      _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'
60331debfc3dSmrg	      ;;
60341debfc3dSmrg	    esac
60351debfc3dSmrg
60361debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
60371debfc3dSmrg	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
60381debfc3dSmrg	    _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'
60391debfc3dSmrg            ;;
60401debfc3dSmrg	  cxx*)
60411debfc3dSmrg	    # Compaq C++
60421debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
60431debfc3dSmrg	    _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'
60441debfc3dSmrg
60451debfc3dSmrg	    runpath_var=LD_RUN_PATH
60461debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
60471debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
60481debfc3dSmrg
60491debfc3dSmrg	    # Commands to make compiler produce verbose output that lists
60501debfc3dSmrg	    # what "hidden" libraries, object files and flags are used when
60511debfc3dSmrg	    # linking a shared library.
60521debfc3dSmrg	    #
60531debfc3dSmrg	    # There doesn't appear to be a way to prevent this compiler from
60541debfc3dSmrg	    # explicitly linking system object files so we need to strip them
60551debfc3dSmrg	    # from the output so that they don't get included in the library
60561debfc3dSmrg	    # dependencies.
60571debfc3dSmrg	    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'
60581debfc3dSmrg	    ;;
60591debfc3dSmrg	  xl* | mpixl* | bgxl*)
60601debfc3dSmrg	    # IBM XL 8.0 on PPC, with GNU ld
60611debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
60621debfc3dSmrg	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
60631debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
60641debfc3dSmrg	    if test "x$supports_anon_versioning" = xyes; then
60651debfc3dSmrg	      _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
60661debfc3dSmrg		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
60671debfc3dSmrg		echo "local: *; };" >> $output_objdir/$libname.ver~
60681debfc3dSmrg		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
60691debfc3dSmrg	    fi
60701debfc3dSmrg	    ;;
60711debfc3dSmrg	  *)
60721debfc3dSmrg	    case `$CC -V 2>&1 | sed 5q` in
60731debfc3dSmrg	    *Sun\ C*)
60741debfc3dSmrg	      # Sun C++ 5.9
60751debfc3dSmrg	      _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
60761debfc3dSmrg	      _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
60771debfc3dSmrg	      _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'
60781debfc3dSmrg	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
60791debfc3dSmrg	      _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'
60801debfc3dSmrg	      _LT_TAGVAR(compiler_needs_object, $1)=yes
60811debfc3dSmrg
60821debfc3dSmrg	      # Not sure whether something based on
60831debfc3dSmrg	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
60841debfc3dSmrg	      # would be better.
60851debfc3dSmrg	      output_verbose_link_cmd='func_echo_all'
60861debfc3dSmrg
60871debfc3dSmrg	      # Archives containing C++ object files must be created using
60881debfc3dSmrg	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
60891debfc3dSmrg	      # necessary to make sure instantiated templates are included
60901debfc3dSmrg	      # in the archive.
60911debfc3dSmrg	      _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
60921debfc3dSmrg	      ;;
60931debfc3dSmrg	    esac
60941debfc3dSmrg	    ;;
60951debfc3dSmrg	esac
60961debfc3dSmrg	;;
60971debfc3dSmrg
60981debfc3dSmrg      lynxos*)
60991debfc3dSmrg        # FIXME: insert proper C++ library support
61001debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
61011debfc3dSmrg	;;
61021debfc3dSmrg
61031debfc3dSmrg      m88k*)
61041debfc3dSmrg        # FIXME: insert proper C++ library support
61051debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
61061debfc3dSmrg	;;
61071debfc3dSmrg
61081debfc3dSmrg      mvs*)
61091debfc3dSmrg        case $cc_basename in
61101debfc3dSmrg          cxx*)
61111debfc3dSmrg	    # FIXME: insert proper C++ library support
61121debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
61131debfc3dSmrg	    ;;
61141debfc3dSmrg	  *)
61151debfc3dSmrg	    # FIXME: insert proper C++ library support
61161debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
61171debfc3dSmrg	    ;;
61181debfc3dSmrg	esac
61191debfc3dSmrg	;;
61201debfc3dSmrg
61211debfc3dSmrg      netbsd*)
61221debfc3dSmrg        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
61231debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
61241debfc3dSmrg	  wlarc=
61251debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
61261debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=yes
61271debfc3dSmrg	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61281debfc3dSmrg	fi
61291debfc3dSmrg	# Workaround some broken pre-1.5 toolchains
61301debfc3dSmrg	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
61311debfc3dSmrg	;;
61321debfc3dSmrg
61331debfc3dSmrg      *nto* | *qnx*)
61341debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=yes
61351debfc3dSmrg	;;
61361debfc3dSmrg
61371debfc3dSmrg      openbsd2*)
61381debfc3dSmrg        # C++ shared libraries are fairly broken
61391debfc3dSmrg	_LT_TAGVAR(ld_shlibs, $1)=no
61401debfc3dSmrg	;;
61411debfc3dSmrg
61421debfc3dSmrg      openbsd*)
61431debfc3dSmrg	if test -f /usr/libexec/ld.so; then
61441debfc3dSmrg	  _LT_TAGVAR(hardcode_direct, $1)=yes
61451debfc3dSmrg	  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61461debfc3dSmrg	  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
61471debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
61481debfc3dSmrg	  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
61491debfc3dSmrg	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
61501debfc3dSmrg	    _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'
61511debfc3dSmrg	    _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
61521debfc3dSmrg	    _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
61531debfc3dSmrg	  fi
61541debfc3dSmrg	  output_verbose_link_cmd=func_echo_all
61551debfc3dSmrg	else
61561debfc3dSmrg	  _LT_TAGVAR(ld_shlibs, $1)=no
61571debfc3dSmrg	fi
61581debfc3dSmrg	;;
61591debfc3dSmrg
61601debfc3dSmrg      osf3* | osf4* | osf5*)
61611debfc3dSmrg        case $cc_basename in
61621debfc3dSmrg          KCC*)
61631debfc3dSmrg	    # Kuck and Associates, Inc. (KAI) C++ Compiler
61641debfc3dSmrg
61651debfc3dSmrg	    # KCC will only create a shared library if the output file
61661debfc3dSmrg	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
61671debfc3dSmrg	    # to its proper name (with version) after linking.
61681debfc3dSmrg	    _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'
61691debfc3dSmrg
61701debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
61711debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
61721debfc3dSmrg
61731debfc3dSmrg	    # Archives containing C++ object files must be created using
61741debfc3dSmrg	    # the KAI C++ compiler.
61751debfc3dSmrg	    case $host in
61761debfc3dSmrg	      osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
61771debfc3dSmrg	      *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
61781debfc3dSmrg	    esac
61791debfc3dSmrg	    ;;
61801debfc3dSmrg          RCC*)
61811debfc3dSmrg	    # Rational C++ 2.4.1
61821debfc3dSmrg	    # FIXME: insert proper C++ library support
61831debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
61841debfc3dSmrg	    ;;
61851debfc3dSmrg          cxx*)
61861debfc3dSmrg	    case $host in
61871debfc3dSmrg	      osf3*)
61881debfc3dSmrg	        _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
61891debfc3dSmrg	        _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'
61901debfc3dSmrg	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
61911debfc3dSmrg		;;
61921debfc3dSmrg	      *)
61931debfc3dSmrg	        _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
61941debfc3dSmrg	        _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'
61951debfc3dSmrg	        _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
61961debfc3dSmrg	          echo "-hidden">> $lib.exp~
61971debfc3dSmrg	          $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~
61981debfc3dSmrg	          $RM $lib.exp'
61991debfc3dSmrg	        _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
62001debfc3dSmrg		;;
62011debfc3dSmrg	    esac
62021debfc3dSmrg
62031debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62041debfc3dSmrg
62051debfc3dSmrg	    # Commands to make compiler produce verbose output that lists
62061debfc3dSmrg	    # what "hidden" libraries, object files and flags are used when
62071debfc3dSmrg	    # linking a shared library.
62081debfc3dSmrg	    #
62091debfc3dSmrg	    # There doesn't appear to be a way to prevent this compiler from
62101debfc3dSmrg	    # explicitly linking system object files so we need to strip them
62111debfc3dSmrg	    # from the output so that they don't get included in the library
62121debfc3dSmrg	    # dependencies.
62131debfc3dSmrg	    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"'
62141debfc3dSmrg	    ;;
62151debfc3dSmrg	  *)
62161debfc3dSmrg	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
62171debfc3dSmrg	      _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
62181debfc3dSmrg	      case $host in
62191debfc3dSmrg	        osf3*)
62201debfc3dSmrg	          _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'
62211debfc3dSmrg		  ;;
62221debfc3dSmrg	        *)
62231debfc3dSmrg	          _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
62241debfc3dSmrg		  ;;
62251debfc3dSmrg	      esac
62261debfc3dSmrg
62271debfc3dSmrg	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
62281debfc3dSmrg	      _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62291debfc3dSmrg
62301debfc3dSmrg	      # Commands to make compiler produce verbose output that lists
62311debfc3dSmrg	      # what "hidden" libraries, object files and flags are used when
62321debfc3dSmrg	      # linking a shared library.
62331debfc3dSmrg	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
62341debfc3dSmrg
62351debfc3dSmrg	    else
62361debfc3dSmrg	      # FIXME: insert proper C++ library support
62371debfc3dSmrg	      _LT_TAGVAR(ld_shlibs, $1)=no
62381debfc3dSmrg	    fi
62391debfc3dSmrg	    ;;
62401debfc3dSmrg        esac
62411debfc3dSmrg        ;;
62421debfc3dSmrg
62431debfc3dSmrg      psos*)
62441debfc3dSmrg        # FIXME: insert proper C++ library support
62451debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
62461debfc3dSmrg        ;;
62471debfc3dSmrg
62481debfc3dSmrg      sunos4*)
62491debfc3dSmrg        case $cc_basename in
62501debfc3dSmrg          CC*)
62511debfc3dSmrg	    # Sun C++ 4.x
62521debfc3dSmrg	    # FIXME: insert proper C++ library support
62531debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
62541debfc3dSmrg	    ;;
62551debfc3dSmrg          lcc*)
62561debfc3dSmrg	    # Lucid
62571debfc3dSmrg	    # FIXME: insert proper C++ library support
62581debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
62591debfc3dSmrg	    ;;
62601debfc3dSmrg          *)
62611debfc3dSmrg	    # FIXME: insert proper C++ library support
62621debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
62631debfc3dSmrg	    ;;
62641debfc3dSmrg        esac
62651debfc3dSmrg        ;;
62661debfc3dSmrg
62671debfc3dSmrg      solaris*)
62681debfc3dSmrg        case $cc_basename in
62691debfc3dSmrg          CC*)
62701debfc3dSmrg	    # Sun C++ 4.2, 5.x and Centerline C++
62711debfc3dSmrg            _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
62721debfc3dSmrg	    _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
62731debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
62741debfc3dSmrg	    _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
62751debfc3dSmrg	      $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'
62761debfc3dSmrg
62771debfc3dSmrg	    _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
62781debfc3dSmrg	    _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62791debfc3dSmrg	    case $host_os in
62801debfc3dSmrg	      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
62811debfc3dSmrg	      *)
62821debfc3dSmrg		# The compiler driver will combine and reorder linker options,
62831debfc3dSmrg		# but understands `-z linker_flag'.
62841debfc3dSmrg	        # Supported since Solaris 2.6 (maybe 2.5.1?)
62851debfc3dSmrg		_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
62861debfc3dSmrg	        ;;
62871debfc3dSmrg	    esac
62881debfc3dSmrg	    _LT_TAGVAR(link_all_deplibs, $1)=yes
62891debfc3dSmrg
62901debfc3dSmrg	    output_verbose_link_cmd='func_echo_all'
62911debfc3dSmrg
62921debfc3dSmrg	    # Archives containing C++ object files must be created using
62931debfc3dSmrg	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
62941debfc3dSmrg	    # necessary to make sure instantiated templates are included
62951debfc3dSmrg	    # in the archive.
62961debfc3dSmrg	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
62971debfc3dSmrg	    ;;
62981debfc3dSmrg          gcx*)
62991debfc3dSmrg	    # Green Hills C++ Compiler
63001debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
63011debfc3dSmrg
63021debfc3dSmrg	    # The C++ compiler must be used to create the archive.
63031debfc3dSmrg	    _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
63041debfc3dSmrg	    ;;
63051debfc3dSmrg          *)
63061debfc3dSmrg	    # GNU C++ compiler with Solaris linker
63071debfc3dSmrg	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
63081debfc3dSmrg	      _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
63091debfc3dSmrg	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
63101debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
63111debfc3dSmrg	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
63121debfc3dSmrg		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63131debfc3dSmrg
63141debfc3dSmrg	        # Commands to make compiler produce verbose output that lists
63151debfc3dSmrg	        # what "hidden" libraries, object files and flags are used when
63161debfc3dSmrg	        # linking a shared library.
63171debfc3dSmrg	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
63181debfc3dSmrg	      else
63191debfc3dSmrg	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
63201debfc3dSmrg	        # platform.
63211debfc3dSmrg	        _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
63221debfc3dSmrg	        _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
63231debfc3dSmrg		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
63241debfc3dSmrg
63251debfc3dSmrg	        # Commands to make compiler produce verbose output that lists
63261debfc3dSmrg	        # what "hidden" libraries, object files and flags are used when
63271debfc3dSmrg	        # linking a shared library.
63281debfc3dSmrg	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
63291debfc3dSmrg	      fi
63301debfc3dSmrg
63311debfc3dSmrg	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
63321debfc3dSmrg	      case $host_os in
63331debfc3dSmrg		solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
63341debfc3dSmrg		*)
63351debfc3dSmrg		  _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
63361debfc3dSmrg		  ;;
63371debfc3dSmrg	      esac
63381debfc3dSmrg	    fi
63391debfc3dSmrg	    ;;
63401debfc3dSmrg        esac
63411debfc3dSmrg        ;;
63421debfc3dSmrg
63431debfc3dSmrg    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
63441debfc3dSmrg      _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
63451debfc3dSmrg      _LT_TAGVAR(archive_cmds_need_lc, $1)=no
63461debfc3dSmrg      _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63471debfc3dSmrg      runpath_var='LD_RUN_PATH'
63481debfc3dSmrg
63491debfc3dSmrg      case $cc_basename in
63501debfc3dSmrg        CC*)
63511debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63521debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63531debfc3dSmrg	  ;;
63541debfc3dSmrg	*)
63551debfc3dSmrg	  _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63561debfc3dSmrg	  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63571debfc3dSmrg	  ;;
63581debfc3dSmrg      esac
63591debfc3dSmrg      ;;
63601debfc3dSmrg
63611debfc3dSmrg      sysv5* | sco3.2v5* | sco5v6*)
63621debfc3dSmrg	# Note: We can NOT use -z defs as we might desire, because we do not
63631debfc3dSmrg	# link with -lc, and that would cause any symbols used from libc to
63641debfc3dSmrg	# always be unresolved, which means just about no library would
63651debfc3dSmrg	# ever link correctly.  If we're not using GNU ld we use -z text
63661debfc3dSmrg	# though, which does catch some bad symbols but isn't as heavy-handed
63671debfc3dSmrg	# as -z defs.
63681debfc3dSmrg	_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
63691debfc3dSmrg	_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
63701debfc3dSmrg	_LT_TAGVAR(archive_cmds_need_lc, $1)=no
63711debfc3dSmrg	_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63721debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
63731debfc3dSmrg	_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
63741debfc3dSmrg	_LT_TAGVAR(link_all_deplibs, $1)=yes
63751debfc3dSmrg	_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
63761debfc3dSmrg	runpath_var='LD_RUN_PATH'
63771debfc3dSmrg
63781debfc3dSmrg	case $cc_basename in
63791debfc3dSmrg          CC*)
63801debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63811debfc3dSmrg	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63821debfc3dSmrg	    _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
63831debfc3dSmrg	      '"$_LT_TAGVAR(old_archive_cmds, $1)"
63841debfc3dSmrg	    _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
63851debfc3dSmrg	      '"$_LT_TAGVAR(reload_cmds, $1)"
63861debfc3dSmrg	    ;;
63871debfc3dSmrg	  *)
63881debfc3dSmrg	    _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63891debfc3dSmrg	    _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
63901debfc3dSmrg	    ;;
63911debfc3dSmrg	esac
63921debfc3dSmrg      ;;
63931debfc3dSmrg
63941debfc3dSmrg      tandem*)
63951debfc3dSmrg        case $cc_basename in
63961debfc3dSmrg          NCC*)
63971debfc3dSmrg	    # NonStop-UX NCC 3.20
63981debfc3dSmrg	    # FIXME: insert proper C++ library support
63991debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
64001debfc3dSmrg	    ;;
64011debfc3dSmrg          *)
64021debfc3dSmrg	    # FIXME: insert proper C++ library support
64031debfc3dSmrg	    _LT_TAGVAR(ld_shlibs, $1)=no
64041debfc3dSmrg	    ;;
64051debfc3dSmrg        esac
64061debfc3dSmrg        ;;
64071debfc3dSmrg
64081debfc3dSmrg      vxworks*)
64091debfc3dSmrg        # FIXME: insert proper C++ library support
64101debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
64111debfc3dSmrg        ;;
64121debfc3dSmrg
64131debfc3dSmrg      *)
64141debfc3dSmrg        # FIXME: insert proper C++ library support
64151debfc3dSmrg        _LT_TAGVAR(ld_shlibs, $1)=no
64161debfc3dSmrg        ;;
64171debfc3dSmrg    esac
64181debfc3dSmrg
64191debfc3dSmrg    AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
64201debfc3dSmrg    test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
64211debfc3dSmrg
64221debfc3dSmrg    _LT_TAGVAR(GCC, $1)="$GXX"
64231debfc3dSmrg    _LT_TAGVAR(LD, $1)="$LD"
64241debfc3dSmrg
64251debfc3dSmrg    ## CAVEAT EMPTOR:
64261debfc3dSmrg    ## There is no encapsulation within the following macros, do not change
64271debfc3dSmrg    ## the running order or otherwise move them around unless you know exactly
64281debfc3dSmrg    ## what you are doing...
64291debfc3dSmrg    _LT_SYS_HIDDEN_LIBDEPS($1)
64301debfc3dSmrg    _LT_COMPILER_PIC($1)
64311debfc3dSmrg    _LT_COMPILER_C_O($1)
64321debfc3dSmrg    _LT_COMPILER_FILE_LOCKS($1)
64331debfc3dSmrg    _LT_LINKER_SHLIBS($1)
64341debfc3dSmrg    _LT_SYS_DYNAMIC_LINKER($1)
64351debfc3dSmrg    _LT_LINKER_HARDCODE_LIBPATH($1)
64361debfc3dSmrg
64371debfc3dSmrg    _LT_CONFIG($1)
64381debfc3dSmrg  fi # test -n "$compiler"
64391debfc3dSmrg
64401debfc3dSmrg  CC=$lt_save_CC
64411debfc3dSmrg  LDCXX=$LD
64421debfc3dSmrg  LD=$lt_save_LD
64431debfc3dSmrg  GCC=$lt_save_GCC
64441debfc3dSmrg  with_gnu_ld=$lt_save_with_gnu_ld
64451debfc3dSmrg  lt_cv_path_LDCXX=$lt_cv_path_LD
64461debfc3dSmrg  lt_cv_path_LD=$lt_save_path_LD
64471debfc3dSmrg  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
64481debfc3dSmrg  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
64491debfc3dSmrgfi # test "$_lt_caught_CXX_error" != yes
64501debfc3dSmrg
64511debfc3dSmrgAC_LANG_POP
64521debfc3dSmrg])# _LT_LANG_CXX_CONFIG
64531debfc3dSmrg
64541debfc3dSmrg
64551debfc3dSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
64561debfc3dSmrg# ---------------------------------
64571debfc3dSmrg# Figure out "hidden" library dependencies from verbose
64581debfc3dSmrg# compiler output when linking a shared library.
64591debfc3dSmrg# Parse the compiler output and extract the necessary
64601debfc3dSmrg# objects, libraries and library flags.
64611debfc3dSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS],
64621debfc3dSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
64631debfc3dSmrg# Dependencies to place before and after the object being linked:
64641debfc3dSmrg_LT_TAGVAR(predep_objects, $1)=
64651debfc3dSmrg_LT_TAGVAR(postdep_objects, $1)=
64661debfc3dSmrg_LT_TAGVAR(predeps, $1)=
64671debfc3dSmrg_LT_TAGVAR(postdeps, $1)=
64681debfc3dSmrg_LT_TAGVAR(compiler_lib_search_path, $1)=
64691debfc3dSmrg
64701debfc3dSmrgdnl we can't use the lt_simple_compile_test_code here,
64711debfc3dSmrgdnl because it contains code intended for an executable,
64721debfc3dSmrgdnl not a library.  It's possible we should let each
64731debfc3dSmrgdnl tag define a new lt_????_link_test_code variable,
64741debfc3dSmrgdnl but it's only used here...
64751debfc3dSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
64761debfc3dSmrgint a;
64771debfc3dSmrgvoid foo (void) { a = 0; }
64781debfc3dSmrg_LT_EOF
64791debfc3dSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
64801debfc3dSmrgclass Foo
64811debfc3dSmrg{
64821debfc3dSmrgpublic:
64831debfc3dSmrg  Foo (void) { a = 0; }
64841debfc3dSmrgprivate:
64851debfc3dSmrg  int a;
64861debfc3dSmrg};
64871debfc3dSmrg_LT_EOF
64881debfc3dSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
64891debfc3dSmrg      subroutine foo
64901debfc3dSmrg      implicit none
64911debfc3dSmrg      integer*4 a
64921debfc3dSmrg      a=0
64931debfc3dSmrg      return
64941debfc3dSmrg      end
64951debfc3dSmrg_LT_EOF
64961debfc3dSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
64971debfc3dSmrg      subroutine foo
64981debfc3dSmrg      implicit none
64991debfc3dSmrg      integer a
65001debfc3dSmrg      a=0
65011debfc3dSmrg      return
65021debfc3dSmrg      end
65031debfc3dSmrg_LT_EOF
65041debfc3dSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
65051debfc3dSmrgpublic class foo {
65061debfc3dSmrg  private int a;
65071debfc3dSmrg  public void bar (void) {
65081debfc3dSmrg    a = 0;
65091debfc3dSmrg  }
65101debfc3dSmrg};
65111debfc3dSmrg_LT_EOF
65121debfc3dSmrg])
65131debfc3dSmrgdnl Parse the compiler output and extract the necessary
65141debfc3dSmrgdnl objects, libraries and library flags.
65151debfc3dSmrgif AC_TRY_EVAL(ac_compile); then
65161debfc3dSmrg  # Parse the compiler output and extract the necessary
65171debfc3dSmrg  # objects, libraries and library flags.
65181debfc3dSmrg
65191debfc3dSmrg  # Sentinel used to keep track of whether or not we are before
65201debfc3dSmrg  # the conftest object file.
65211debfc3dSmrg  pre_test_object_deps_done=no
65221debfc3dSmrg
65231debfc3dSmrg  for p in `eval "$output_verbose_link_cmd"`; do
65241debfc3dSmrg    case $p in
65251debfc3dSmrg
65261debfc3dSmrg    -L* | -R* | -l*)
65271debfc3dSmrg       # Some compilers place space between "-{L,R}" and the path.
65281debfc3dSmrg       # Remove the space.
65291debfc3dSmrg       if test $p = "-L" ||
65301debfc3dSmrg          test $p = "-R"; then
65311debfc3dSmrg	 prev=$p
65321debfc3dSmrg	 continue
65331debfc3dSmrg       else
65341debfc3dSmrg	 prev=
65351debfc3dSmrg       fi
65361debfc3dSmrg
65371debfc3dSmrg       if test "$pre_test_object_deps_done" = no; then
65381debfc3dSmrg	 case $p in
65391debfc3dSmrg	 -L* | -R*)
65401debfc3dSmrg	   # Internal compiler library paths should come after those
65411debfc3dSmrg	   # provided the user.  The postdeps already come after the
65421debfc3dSmrg	   # user supplied libs so there is no need to process them.
65431debfc3dSmrg	   if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
65441debfc3dSmrg	     _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
65451debfc3dSmrg	   else
65461debfc3dSmrg	     _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
65471debfc3dSmrg	   fi
65481debfc3dSmrg	   ;;
65491debfc3dSmrg	 # The "-l" case would never come before the object being
65501debfc3dSmrg	 # linked, so don't bother handling this case.
65511debfc3dSmrg	 esac
65521debfc3dSmrg       else
65531debfc3dSmrg	 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
65541debfc3dSmrg	   _LT_TAGVAR(postdeps, $1)="${prev}${p}"
65551debfc3dSmrg	 else
65561debfc3dSmrg	   _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
65571debfc3dSmrg	 fi
65581debfc3dSmrg       fi
65591debfc3dSmrg       ;;
65601debfc3dSmrg
65611debfc3dSmrg    *.$objext)
65621debfc3dSmrg       # This assumes that the test object file only shows up
65631debfc3dSmrg       # once in the compiler output.
65641debfc3dSmrg       if test "$p" = "conftest.$objext"; then
65651debfc3dSmrg	 pre_test_object_deps_done=yes
65661debfc3dSmrg	 continue
65671debfc3dSmrg       fi
65681debfc3dSmrg
65691debfc3dSmrg       if test "$pre_test_object_deps_done" = no; then
65701debfc3dSmrg	 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
65711debfc3dSmrg	   _LT_TAGVAR(predep_objects, $1)="$p"
65721debfc3dSmrg	 else
65731debfc3dSmrg	   _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
65741debfc3dSmrg	 fi
65751debfc3dSmrg       else
65761debfc3dSmrg	 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
65771debfc3dSmrg	   _LT_TAGVAR(postdep_objects, $1)="$p"
65781debfc3dSmrg	 else
65791debfc3dSmrg	   _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
65801debfc3dSmrg	 fi
65811debfc3dSmrg       fi
65821debfc3dSmrg       ;;
65831debfc3dSmrg
65841debfc3dSmrg    *) ;; # Ignore the rest.
65851debfc3dSmrg
65861debfc3dSmrg    esac
65871debfc3dSmrg  done
65881debfc3dSmrg
65891debfc3dSmrg  # Clean up.
65901debfc3dSmrg  rm -f a.out a.exe
65911debfc3dSmrgelse
65921debfc3dSmrg  echo "libtool.m4: error: problem compiling $1 test program"
65931debfc3dSmrgfi
65941debfc3dSmrg
65951debfc3dSmrg$RM -f confest.$objext
65961debfc3dSmrg
65971debfc3dSmrg# PORTME: override above test on systems where it is broken
65981debfc3dSmrgm4_if([$1], [CXX],
65991debfc3dSmrg[case $host_os in
66001debfc3dSmrginterix[[3-9]]*)
66011debfc3dSmrg  # Interix 3.5 installs completely hosed .la files for C++, so rather than
66021debfc3dSmrg  # hack all around it, let's just trust "g++" to DTRT.
66031debfc3dSmrg  _LT_TAGVAR(predep_objects,$1)=
66041debfc3dSmrg  _LT_TAGVAR(postdep_objects,$1)=
66051debfc3dSmrg  _LT_TAGVAR(postdeps,$1)=
66061debfc3dSmrg  ;;
66071debfc3dSmrg
66081debfc3dSmrglinux*)
66091debfc3dSmrg  case `$CC -V 2>&1 | sed 5q` in
66101debfc3dSmrg  *Sun\ C*)
66111debfc3dSmrg    # Sun C++ 5.9
66121debfc3dSmrg
66131debfc3dSmrg    # The more standards-conforming stlport4 library is
66141debfc3dSmrg    # incompatible with the Cstd library. Avoid specifying
66151debfc3dSmrg    # it if it's in CXXFLAGS. Ignore libCrun as
66161debfc3dSmrg    # -library=stlport4 depends on it.
66171debfc3dSmrg    case " $CXX $CXXFLAGS " in
66181debfc3dSmrg    *" -library=stlport4 "*)
66191debfc3dSmrg      solaris_use_stlport4=yes
66201debfc3dSmrg      ;;
66211debfc3dSmrg    esac
66221debfc3dSmrg
66231debfc3dSmrg    if test "$solaris_use_stlport4" != yes; then
66241debfc3dSmrg      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
66251debfc3dSmrg    fi
66261debfc3dSmrg    ;;
66271debfc3dSmrg  esac
66281debfc3dSmrg  ;;
66291debfc3dSmrg
66301debfc3dSmrgsolaris*)
66311debfc3dSmrg  case $cc_basename in
66321debfc3dSmrg  CC*)
66331debfc3dSmrg    # The more standards-conforming stlport4 library is
66341debfc3dSmrg    # incompatible with the Cstd library. Avoid specifying
66351debfc3dSmrg    # it if it's in CXXFLAGS. Ignore libCrun as
66361debfc3dSmrg    # -library=stlport4 depends on it.
66371debfc3dSmrg    case " $CXX $CXXFLAGS " in
66381debfc3dSmrg    *" -library=stlport4 "*)
66391debfc3dSmrg      solaris_use_stlport4=yes
66401debfc3dSmrg      ;;
66411debfc3dSmrg    esac
66421debfc3dSmrg
66431debfc3dSmrg    # Adding this requires a known-good setup of shared libraries for
66441debfc3dSmrg    # Sun compiler versions before 5.6, else PIC objects from an old
66451debfc3dSmrg    # archive will be linked into the output, leading to subtle bugs.
66461debfc3dSmrg    if test "$solaris_use_stlport4" != yes; then
66471debfc3dSmrg      _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
66481debfc3dSmrg    fi
66491debfc3dSmrg    ;;
66501debfc3dSmrg  esac
66511debfc3dSmrg  ;;
66521debfc3dSmrgesac
66531debfc3dSmrg])
66541debfc3dSmrg
66551debfc3dSmrgcase " $_LT_TAGVAR(postdeps, $1) " in
66561debfc3dSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
66571debfc3dSmrgesac
66581debfc3dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=
66591debfc3dSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
66601debfc3dSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
66611debfc3dSmrgfi
66621debfc3dSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
66631debfc3dSmrg    [The directories searched by this compiler when creating a shared library])
66641debfc3dSmrg_LT_TAGDECL([], [predep_objects], [1],
66651debfc3dSmrg    [Dependencies to place before and after the objects being linked to
66661debfc3dSmrg    create a shared library])
66671debfc3dSmrg_LT_TAGDECL([], [postdep_objects], [1])
66681debfc3dSmrg_LT_TAGDECL([], [predeps], [1])
66691debfc3dSmrg_LT_TAGDECL([], [postdeps], [1])
66701debfc3dSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1],
66711debfc3dSmrg    [The library search path used internally by the compiler when linking
66721debfc3dSmrg    a shared library])
66731debfc3dSmrg])# _LT_SYS_HIDDEN_LIBDEPS
66741debfc3dSmrg
66751debfc3dSmrg
66761debfc3dSmrg# _LT_LANG_F77_CONFIG([TAG])
66771debfc3dSmrg# --------------------------
66781debfc3dSmrg# Ensure that the configuration variables for a Fortran 77 compiler are
66791debfc3dSmrg# suitably defined.  These variables are subsequently used by _LT_CONFIG
66801debfc3dSmrg# to write the compiler configuration to `libtool'.
66811debfc3dSmrgm4_defun([_LT_LANG_F77_CONFIG],
66821debfc3dSmrg[AC_LANG_PUSH(Fortran 77)
66831debfc3dSmrgif test -z "$F77" || test "X$F77" = "Xno"; then
66841debfc3dSmrg  _lt_disable_F77=yes
66851debfc3dSmrgfi
66861debfc3dSmrg
66871debfc3dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no
66881debfc3dSmrg_LT_TAGVAR(allow_undefined_flag, $1)=
66891debfc3dSmrg_LT_TAGVAR(always_export_symbols, $1)=no
66901debfc3dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)=
66911debfc3dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)=
66921debfc3dSmrg_LT_TAGVAR(hardcode_direct, $1)=no
66931debfc3dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no
66941debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
66951debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
66961debfc3dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)=
66971debfc3dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no
66981debfc3dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no
66991debfc3dSmrg_LT_TAGVAR(inherit_rpath, $1)=no
67001debfc3dSmrg_LT_TAGVAR(module_cmds, $1)=
67011debfc3dSmrg_LT_TAGVAR(module_expsym_cmds, $1)=
67021debfc3dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown
67031debfc3dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
67041debfc3dSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag
67051debfc3dSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
67061debfc3dSmrg_LT_TAGVAR(no_undefined_flag, $1)=
67071debfc3dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)=
67081debfc3dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
67091debfc3dSmrg
67101debfc3dSmrg# Source file extension for f77 test sources.
67111debfc3dSmrgac_ext=f
67121debfc3dSmrg
67131debfc3dSmrg# Object file extension for compiled f77 test sources.
67141debfc3dSmrgobjext=o
67151debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
67161debfc3dSmrg
67171debfc3dSmrg# No sense in running all these tests if we already determined that
67181debfc3dSmrg# the F77 compiler isn't working.  Some variables (like enable_shared)
67191debfc3dSmrg# are currently assumed to apply to all compilers on this platform,
67201debfc3dSmrg# and will be corrupted by setting them based on a non-working compiler.
67211debfc3dSmrgif test "$_lt_disable_F77" != yes; then
67221debfc3dSmrg  # Code to be used in simple compile tests
67231debfc3dSmrg  lt_simple_compile_test_code="\
67241debfc3dSmrg      subroutine t
67251debfc3dSmrg      return
67261debfc3dSmrg      end
67271debfc3dSmrg"
67281debfc3dSmrg
67291debfc3dSmrg  # Code to be used in simple link tests
67301debfc3dSmrg  lt_simple_link_test_code="\
67311debfc3dSmrg      program t
67321debfc3dSmrg      end
67331debfc3dSmrg"
67341debfc3dSmrg
67351debfc3dSmrg  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
67361debfc3dSmrg  _LT_TAG_COMPILER
67371debfc3dSmrg
67381debfc3dSmrg  # save warnings/boilerplate of simple test code
67391debfc3dSmrg  _LT_COMPILER_BOILERPLATE
67401debfc3dSmrg  _LT_LINKER_BOILERPLATE
67411debfc3dSmrg
67421debfc3dSmrg  # Allow CC to be a program name with arguments.
67431debfc3dSmrg  lt_save_CC="$CC"
67441debfc3dSmrg  lt_save_GCC=$GCC
67451debfc3dSmrg  CC=${F77-"f77"}
67461debfc3dSmrg  compiler=$CC
67471debfc3dSmrg  _LT_TAGVAR(compiler, $1)=$CC
67481debfc3dSmrg  _LT_CC_BASENAME([$compiler])
67491debfc3dSmrg  GCC=$G77
67501debfc3dSmrg  if test -n "$compiler"; then
67511debfc3dSmrg    AC_MSG_CHECKING([if libtool supports shared libraries])
67521debfc3dSmrg    AC_MSG_RESULT([$can_build_shared])
67531debfc3dSmrg
67541debfc3dSmrg    AC_MSG_CHECKING([whether to build shared libraries])
67551debfc3dSmrg    test "$can_build_shared" = "no" && enable_shared=no
67561debfc3dSmrg
67571debfc3dSmrg    # On AIX, shared libraries and static libraries use the same namespace, and
67581debfc3dSmrg    # are all built from PIC.
67591debfc3dSmrg    case $host_os in
67601debfc3dSmrg      aix3*)
67611debfc3dSmrg        test "$enable_shared" = yes && enable_static=no
67621debfc3dSmrg        if test -n "$RANLIB"; then
67631debfc3dSmrg          archive_cmds="$archive_cmds~\$RANLIB \$lib"
67641debfc3dSmrg          postinstall_cmds='$RANLIB $lib'
67651debfc3dSmrg        fi
67661debfc3dSmrg        ;;
67671debfc3dSmrg      aix[[4-9]]*)
67681debfc3dSmrg	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
67691debfc3dSmrg	  test "$enable_shared" = yes && enable_static=no
67701debfc3dSmrg	fi
67711debfc3dSmrg        ;;
67721debfc3dSmrg    esac
67731debfc3dSmrg    AC_MSG_RESULT([$enable_shared])
67741debfc3dSmrg
67751debfc3dSmrg    AC_MSG_CHECKING([whether to build static libraries])
67761debfc3dSmrg    # Make sure either enable_shared or enable_static is yes.
67771debfc3dSmrg    test "$enable_shared" = yes || enable_static=yes
67781debfc3dSmrg    AC_MSG_RESULT([$enable_static])
67791debfc3dSmrg
67801debfc3dSmrg    _LT_TAGVAR(GCC, $1)="$G77"
67811debfc3dSmrg    _LT_TAGVAR(LD, $1)="$LD"
67821debfc3dSmrg
67831debfc3dSmrg    ## CAVEAT EMPTOR:
67841debfc3dSmrg    ## There is no encapsulation within the following macros, do not change
67851debfc3dSmrg    ## the running order or otherwise move them around unless you know exactly
67861debfc3dSmrg    ## what you are doing...
67871debfc3dSmrg    _LT_COMPILER_PIC($1)
67881debfc3dSmrg    _LT_COMPILER_C_O($1)
67891debfc3dSmrg    _LT_COMPILER_FILE_LOCKS($1)
67901debfc3dSmrg    _LT_LINKER_SHLIBS($1)
67911debfc3dSmrg    _LT_SYS_DYNAMIC_LINKER($1)
67921debfc3dSmrg    _LT_LINKER_HARDCODE_LIBPATH($1)
67931debfc3dSmrg
67941debfc3dSmrg    _LT_CONFIG($1)
67951debfc3dSmrg  fi # test -n "$compiler"
67961debfc3dSmrg
67971debfc3dSmrg  GCC=$lt_save_GCC
67981debfc3dSmrg  CC="$lt_save_CC"
67991debfc3dSmrgfi # test "$_lt_disable_F77" != yes
68001debfc3dSmrg
68011debfc3dSmrgAC_LANG_POP
68021debfc3dSmrg])# _LT_LANG_F77_CONFIG
68031debfc3dSmrg
68041debfc3dSmrg
68051debfc3dSmrg# _LT_LANG_FC_CONFIG([TAG])
68061debfc3dSmrg# -------------------------
68071debfc3dSmrg# Ensure that the configuration variables for a Fortran compiler are
68081debfc3dSmrg# suitably defined.  These variables are subsequently used by _LT_CONFIG
68091debfc3dSmrg# to write the compiler configuration to `libtool'.
68101debfc3dSmrgm4_defun([_LT_LANG_FC_CONFIG],
68111debfc3dSmrg[AC_LANG_PUSH(Fortran)
68121debfc3dSmrg
68131debfc3dSmrgif test -z "$FC" || test "X$FC" = "Xno"; then
68141debfc3dSmrg  _lt_disable_FC=yes
68151debfc3dSmrgfi
68161debfc3dSmrg
68171debfc3dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no
68181debfc3dSmrg_LT_TAGVAR(allow_undefined_flag, $1)=
68191debfc3dSmrg_LT_TAGVAR(always_export_symbols, $1)=no
68201debfc3dSmrg_LT_TAGVAR(archive_expsym_cmds, $1)=
68211debfc3dSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)=
68221debfc3dSmrg_LT_TAGVAR(hardcode_direct, $1)=no
68231debfc3dSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no
68241debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
68251debfc3dSmrg_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
68261debfc3dSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)=
68271debfc3dSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no
68281debfc3dSmrg_LT_TAGVAR(hardcode_automatic, $1)=no
68291debfc3dSmrg_LT_TAGVAR(inherit_rpath, $1)=no
68301debfc3dSmrg_LT_TAGVAR(module_cmds, $1)=
68311debfc3dSmrg_LT_TAGVAR(module_expsym_cmds, $1)=
68321debfc3dSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown
68331debfc3dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
68341debfc3dSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag
68351debfc3dSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
68361debfc3dSmrg_LT_TAGVAR(no_undefined_flag, $1)=
68371debfc3dSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)=
68381debfc3dSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
68391debfc3dSmrg
68401debfc3dSmrg# Source file extension for fc test sources.
68411debfc3dSmrgac_ext=${ac_fc_srcext-f}
68421debfc3dSmrg
68431debfc3dSmrg# Object file extension for compiled fc test sources.
68441debfc3dSmrgobjext=o
68451debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
68461debfc3dSmrg
68471debfc3dSmrg# No sense in running all these tests if we already determined that
68481debfc3dSmrg# the FC compiler isn't working.  Some variables (like enable_shared)
68491debfc3dSmrg# are currently assumed to apply to all compilers on this platform,
68501debfc3dSmrg# and will be corrupted by setting them based on a non-working compiler.
68511debfc3dSmrgif test "$_lt_disable_FC" != yes; then
68521debfc3dSmrg  # Code to be used in simple compile tests
68531debfc3dSmrg  lt_simple_compile_test_code="\
68541debfc3dSmrg      subroutine t
68551debfc3dSmrg      return
68561debfc3dSmrg      end
68571debfc3dSmrg"
68581debfc3dSmrg
68591debfc3dSmrg  # Code to be used in simple link tests
68601debfc3dSmrg  lt_simple_link_test_code="\
68611debfc3dSmrg      program t
68621debfc3dSmrg      end
68631debfc3dSmrg"
68641debfc3dSmrg
68651debfc3dSmrg  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
68661debfc3dSmrg  _LT_TAG_COMPILER
68671debfc3dSmrg
68681debfc3dSmrg  # save warnings/boilerplate of simple test code
68691debfc3dSmrg  _LT_COMPILER_BOILERPLATE
68701debfc3dSmrg  _LT_LINKER_BOILERPLATE
68711debfc3dSmrg
68721debfc3dSmrg  # Allow CC to be a program name with arguments.
68731debfc3dSmrg  lt_save_CC="$CC"
68741debfc3dSmrg  lt_save_GCC=$GCC
68751debfc3dSmrg  CC=${FC-"f95"}
68761debfc3dSmrg  compiler=$CC
68771debfc3dSmrg  GCC=$ac_cv_fc_compiler_gnu
68781debfc3dSmrg
68791debfc3dSmrg  _LT_TAGVAR(compiler, $1)=$CC
68801debfc3dSmrg  _LT_CC_BASENAME([$compiler])
68811debfc3dSmrg
68821debfc3dSmrg  if test -n "$compiler"; then
68831debfc3dSmrg    AC_MSG_CHECKING([if libtool supports shared libraries])
68841debfc3dSmrg    AC_MSG_RESULT([$can_build_shared])
68851debfc3dSmrg
68861debfc3dSmrg    AC_MSG_CHECKING([whether to build shared libraries])
68871debfc3dSmrg    test "$can_build_shared" = "no" && enable_shared=no
68881debfc3dSmrg
68891debfc3dSmrg    # On AIX, shared libraries and static libraries use the same namespace, and
68901debfc3dSmrg    # are all built from PIC.
68911debfc3dSmrg    case $host_os in
68921debfc3dSmrg      aix3*)
68931debfc3dSmrg        test "$enable_shared" = yes && enable_static=no
68941debfc3dSmrg        if test -n "$RANLIB"; then
68951debfc3dSmrg          archive_cmds="$archive_cmds~\$RANLIB \$lib"
68961debfc3dSmrg          postinstall_cmds='$RANLIB $lib'
68971debfc3dSmrg        fi
68981debfc3dSmrg        ;;
68991debfc3dSmrg      aix[[4-9]]*)
69001debfc3dSmrg	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
69011debfc3dSmrg	  test "$enable_shared" = yes && enable_static=no
69021debfc3dSmrg	fi
69031debfc3dSmrg        ;;
69041debfc3dSmrg    esac
69051debfc3dSmrg    AC_MSG_RESULT([$enable_shared])
69061debfc3dSmrg
69071debfc3dSmrg    AC_MSG_CHECKING([whether to build static libraries])
69081debfc3dSmrg    # Make sure either enable_shared or enable_static is yes.
69091debfc3dSmrg    test "$enable_shared" = yes || enable_static=yes
69101debfc3dSmrg    AC_MSG_RESULT([$enable_static])
69111debfc3dSmrg
69121debfc3dSmrg    _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
69131debfc3dSmrg    _LT_TAGVAR(LD, $1)="$LD"
69141debfc3dSmrg
69151debfc3dSmrg    ## CAVEAT EMPTOR:
69161debfc3dSmrg    ## There is no encapsulation within the following macros, do not change
69171debfc3dSmrg    ## the running order or otherwise move them around unless you know exactly
69181debfc3dSmrg    ## what you are doing...
69191debfc3dSmrg    _LT_SYS_HIDDEN_LIBDEPS($1)
69201debfc3dSmrg    _LT_COMPILER_PIC($1)
69211debfc3dSmrg    _LT_COMPILER_C_O($1)
69221debfc3dSmrg    _LT_COMPILER_FILE_LOCKS($1)
69231debfc3dSmrg    _LT_LINKER_SHLIBS($1)
69241debfc3dSmrg    _LT_SYS_DYNAMIC_LINKER($1)
69251debfc3dSmrg    _LT_LINKER_HARDCODE_LIBPATH($1)
69261debfc3dSmrg
69271debfc3dSmrg    _LT_CONFIG($1)
69281debfc3dSmrg  fi # test -n "$compiler"
69291debfc3dSmrg
69301debfc3dSmrg  GCC=$lt_save_GCC
69311debfc3dSmrg  CC="$lt_save_CC"
69321debfc3dSmrgfi # test "$_lt_disable_FC" != yes
69331debfc3dSmrg
69341debfc3dSmrgAC_LANG_POP
69351debfc3dSmrg])# _LT_LANG_FC_CONFIG
69361debfc3dSmrg
69371debfc3dSmrg
69381debfc3dSmrg# _LT_LANG_GCJ_CONFIG([TAG])
69391debfc3dSmrg# --------------------------
69401debfc3dSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler
69411debfc3dSmrg# are suitably defined.  These variables are subsequently used by _LT_CONFIG
69421debfc3dSmrg# to write the compiler configuration to `libtool'.
69431debfc3dSmrgm4_defun([_LT_LANG_GCJ_CONFIG],
69441debfc3dSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl
69451debfc3dSmrgAC_LANG_SAVE
69461debfc3dSmrg
69471debfc3dSmrg# Source file extension for Java test sources.
69481debfc3dSmrgac_ext=java
69491debfc3dSmrg
69501debfc3dSmrg# Object file extension for compiled Java test sources.
69511debfc3dSmrgobjext=o
69521debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
69531debfc3dSmrg
69541debfc3dSmrg# Code to be used in simple compile tests
69551debfc3dSmrglt_simple_compile_test_code="class foo {}"
69561debfc3dSmrg
69571debfc3dSmrg# Code to be used in simple link tests
69581debfc3dSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
69591debfc3dSmrg
69601debfc3dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
69611debfc3dSmrg_LT_TAG_COMPILER
69621debfc3dSmrg
69631debfc3dSmrg# save warnings/boilerplate of simple test code
69641debfc3dSmrg_LT_COMPILER_BOILERPLATE
69651debfc3dSmrg_LT_LINKER_BOILERPLATE
69661debfc3dSmrg
69671debfc3dSmrg# Allow CC to be a program name with arguments.
69681debfc3dSmrglt_save_CC="$CC"
69691debfc3dSmrglt_save_GCC=$GCC
69701debfc3dSmrgGCC=yes
69711debfc3dSmrgCC=${GCJ-"gcj"}
69721debfc3dSmrgcompiler=$CC
69731debfc3dSmrg_LT_TAGVAR(compiler, $1)=$CC
69741debfc3dSmrg_LT_TAGVAR(LD, $1)="$LD"
69751debfc3dSmrg_LT_CC_BASENAME([$compiler])
69761debfc3dSmrg
69771debfc3dSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in.
69781debfc3dSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no
69791debfc3dSmrg
69801debfc3dSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
69811debfc3dSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag
69821debfc3dSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
69831debfc3dSmrg
69841debfc3dSmrg## CAVEAT EMPTOR:
69851debfc3dSmrg## There is no encapsulation within the following macros, do not change
69861debfc3dSmrg## the running order or otherwise move them around unless you know exactly
69871debfc3dSmrg## what you are doing...
69881debfc3dSmrgif test -n "$compiler"; then
69891debfc3dSmrg  _LT_COMPILER_NO_RTTI($1)
69901debfc3dSmrg  _LT_COMPILER_PIC($1)
69911debfc3dSmrg  _LT_COMPILER_C_O($1)
69921debfc3dSmrg  _LT_COMPILER_FILE_LOCKS($1)
69931debfc3dSmrg  _LT_LINKER_SHLIBS($1)
69941debfc3dSmrg  _LT_LINKER_HARDCODE_LIBPATH($1)
69951debfc3dSmrg
69961debfc3dSmrg  _LT_CONFIG($1)
69971debfc3dSmrgfi
69981debfc3dSmrg
69991debfc3dSmrgAC_LANG_RESTORE
70001debfc3dSmrg
70011debfc3dSmrgGCC=$lt_save_GCC
70021debfc3dSmrgCC="$lt_save_CC"
70031debfc3dSmrg])# _LT_LANG_GCJ_CONFIG
70041debfc3dSmrg
70051debfc3dSmrg
70061debfc3dSmrg# _LT_LANG_RC_CONFIG([TAG])
70071debfc3dSmrg# -------------------------
70081debfc3dSmrg# Ensure that the configuration variables for the Windows resource compiler
70091debfc3dSmrg# are suitably defined.  These variables are subsequently used by _LT_CONFIG
70101debfc3dSmrg# to write the compiler configuration to `libtool'.
70111debfc3dSmrgm4_defun([_LT_LANG_RC_CONFIG],
70121debfc3dSmrg[AC_REQUIRE([LT_PROG_RC])dnl
70131debfc3dSmrgAC_LANG_SAVE
70141debfc3dSmrg
70151debfc3dSmrg# Source file extension for RC test sources.
70161debfc3dSmrgac_ext=rc
70171debfc3dSmrg
70181debfc3dSmrg# Object file extension for compiled RC test sources.
70191debfc3dSmrgobjext=o
70201debfc3dSmrg_LT_TAGVAR(objext, $1)=$objext
70211debfc3dSmrg
70221debfc3dSmrg# Code to be used in simple compile tests
70231debfc3dSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
70241debfc3dSmrg
70251debfc3dSmrg# Code to be used in simple link tests
70261debfc3dSmrglt_simple_link_test_code="$lt_simple_compile_test_code"
70271debfc3dSmrg
70281debfc3dSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set.
70291debfc3dSmrg_LT_TAG_COMPILER
70301debfc3dSmrg
70311debfc3dSmrg# save warnings/boilerplate of simple test code
70321debfc3dSmrg_LT_COMPILER_BOILERPLATE
70331debfc3dSmrg_LT_LINKER_BOILERPLATE
70341debfc3dSmrg
70351debfc3dSmrg# Allow CC to be a program name with arguments.
70361debfc3dSmrglt_save_CC="$CC"
70371debfc3dSmrglt_save_GCC=$GCC
70381debfc3dSmrgGCC=
70391debfc3dSmrgCC=${RC-"windres"}
70401debfc3dSmrgcompiler=$CC
70411debfc3dSmrg_LT_TAGVAR(compiler, $1)=$CC
70421debfc3dSmrg_LT_CC_BASENAME([$compiler])
70431debfc3dSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
70441debfc3dSmrg
70451debfc3dSmrgif test -n "$compiler"; then
70461debfc3dSmrg  :
70471debfc3dSmrg  _LT_CONFIG($1)
70481debfc3dSmrgfi
70491debfc3dSmrg
70501debfc3dSmrgGCC=$lt_save_GCC
70511debfc3dSmrgAC_LANG_RESTORE
70521debfc3dSmrgCC="$lt_save_CC"
70531debfc3dSmrg])# _LT_LANG_RC_CONFIG
70541debfc3dSmrg
70551debfc3dSmrg
70561debfc3dSmrg# LT_PROG_GCJ
70571debfc3dSmrg# -----------
70581debfc3dSmrgAC_DEFUN([LT_PROG_GCJ],
70591debfc3dSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
70601debfc3dSmrg  [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
70611debfc3dSmrg    [AC_CHECK_TOOL(GCJ, gcj,)
70621debfc3dSmrg      test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
70631debfc3dSmrg      AC_SUBST(GCJFLAGS)])])[]dnl
70641debfc3dSmrg])
70651debfc3dSmrg
70661debfc3dSmrg# Old name:
70671debfc3dSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
70681debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
70691debfc3dSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], [])
70701debfc3dSmrg
70711debfc3dSmrg
70721debfc3dSmrg# LT_PROG_RC
70731debfc3dSmrg# ----------
70741debfc3dSmrgAC_DEFUN([LT_PROG_RC],
70751debfc3dSmrg[AC_CHECK_TOOL(RC, windres,)
70761debfc3dSmrg])
70771debfc3dSmrg
70781debfc3dSmrg# Old name:
70791debfc3dSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
70801debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
70811debfc3dSmrgdnl AC_DEFUN([LT_AC_PROG_RC], [])
70821debfc3dSmrg
70831debfc3dSmrg
70841debfc3dSmrg# _LT_DECL_EGREP
70851debfc3dSmrg# --------------
70861debfc3dSmrg# If we don't have a new enough Autoconf to choose the best grep
70871debfc3dSmrg# available, choose the one first in the user's PATH.
70881debfc3dSmrgm4_defun([_LT_DECL_EGREP],
70891debfc3dSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl
70901debfc3dSmrgAC_REQUIRE([AC_PROG_FGREP])dnl
70911debfc3dSmrgtest -z "$GREP" && GREP=grep
70921debfc3dSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
70931debfc3dSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher])
70941debfc3dSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher])
70951debfc3dSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
70961debfc3dSmrgAC_SUBST([GREP])
70971debfc3dSmrg])
70981debfc3dSmrg
70991debfc3dSmrg
71001debfc3dSmrg# _LT_DECL_OBJDUMP
71011debfc3dSmrg# --------------
71021debfc3dSmrg# If we don't have a new enough Autoconf to choose the best objdump
71031debfc3dSmrg# available, choose the one first in the user's PATH.
71041debfc3dSmrgm4_defun([_LT_DECL_OBJDUMP],
71051debfc3dSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false)
71061debfc3dSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump
71071debfc3dSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
71081debfc3dSmrgAC_SUBST([OBJDUMP])
71091debfc3dSmrg])
71101debfc3dSmrg
71111debfc3dSmrg
71121debfc3dSmrg# _LT_DECL_SED
71131debfc3dSmrg# ------------
71141debfc3dSmrg# Check for a fully-functional sed program, that truncates
71151debfc3dSmrg# as few characters as possible.  Prefer GNU sed if found.
71161debfc3dSmrgm4_defun([_LT_DECL_SED],
71171debfc3dSmrg[AC_PROG_SED
71181debfc3dSmrgtest -z "$SED" && SED=sed
71191debfc3dSmrgXsed="$SED -e 1s/^X//"
71201debfc3dSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
71211debfc3dSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
71221debfc3dSmrg    [Sed that helps us avoid accidentally triggering echo(1) options like -n])
71231debfc3dSmrg])# _LT_DECL_SED
71241debfc3dSmrg
71251debfc3dSmrgm4_ifndef([AC_PROG_SED], [
71261debfc3dSmrg############################################################
71271debfc3dSmrg# NOTE: This macro has been submitted for inclusion into   #
71281debfc3dSmrg#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
71291debfc3dSmrg#  a released version of Autoconf we should remove this    #
71301debfc3dSmrg#  macro and use it instead.                               #
71311debfc3dSmrg############################################################
71321debfc3dSmrg
71331debfc3dSmrgm4_defun([AC_PROG_SED],
71341debfc3dSmrg[AC_MSG_CHECKING([for a sed that does not truncate output])
71351debfc3dSmrgAC_CACHE_VAL(lt_cv_path_SED,
71361debfc3dSmrg[# Loop through the user's path and test for sed and gsed.
71371debfc3dSmrg# Then use that list of sed's as ones to test for truncation.
71381debfc3dSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
71391debfc3dSmrgfor as_dir in $PATH
71401debfc3dSmrgdo
71411debfc3dSmrg  IFS=$as_save_IFS
71421debfc3dSmrg  test -z "$as_dir" && as_dir=.
71431debfc3dSmrg  for lt_ac_prog in sed gsed; do
71441debfc3dSmrg    for ac_exec_ext in '' $ac_executable_extensions; do
71451debfc3dSmrg      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
71461debfc3dSmrg        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
71471debfc3dSmrg      fi
71481debfc3dSmrg    done
71491debfc3dSmrg  done
71501debfc3dSmrgdone
71511debfc3dSmrgIFS=$as_save_IFS
71521debfc3dSmrglt_ac_max=0
71531debfc3dSmrglt_ac_count=0
71541debfc3dSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris
71551debfc3dSmrg# along with /bin/sed that truncates output.
71561debfc3dSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
71571debfc3dSmrg  test ! -f $lt_ac_sed && continue
71581debfc3dSmrg  cat /dev/null > conftest.in
71591debfc3dSmrg  lt_ac_count=0
71601debfc3dSmrg  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
71611debfc3dSmrg  # Check for GNU sed and select it if it is found.
71621debfc3dSmrg  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
71631debfc3dSmrg    lt_cv_path_SED=$lt_ac_sed
71641debfc3dSmrg    break
71651debfc3dSmrg  fi
71661debfc3dSmrg  while true; do
71671debfc3dSmrg    cat conftest.in conftest.in >conftest.tmp
71681debfc3dSmrg    mv conftest.tmp conftest.in
71691debfc3dSmrg    cp conftest.in conftest.nl
71701debfc3dSmrg    echo >>conftest.nl
71711debfc3dSmrg    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
71721debfc3dSmrg    cmp -s conftest.out conftest.nl || break
71731debfc3dSmrg    # 10000 chars as input seems more than enough
71741debfc3dSmrg    test $lt_ac_count -gt 10 && break
71751debfc3dSmrg    lt_ac_count=`expr $lt_ac_count + 1`
71761debfc3dSmrg    if test $lt_ac_count -gt $lt_ac_max; then
71771debfc3dSmrg      lt_ac_max=$lt_ac_count
71781debfc3dSmrg      lt_cv_path_SED=$lt_ac_sed
71791debfc3dSmrg    fi
71801debfc3dSmrg  done
71811debfc3dSmrgdone
71821debfc3dSmrg])
71831debfc3dSmrgSED=$lt_cv_path_SED
71841debfc3dSmrgAC_SUBST([SED])
71851debfc3dSmrgAC_MSG_RESULT([$SED])
71861debfc3dSmrg])#AC_PROG_SED
71871debfc3dSmrg])#m4_ifndef
71881debfc3dSmrg
71891debfc3dSmrg# Old name:
71901debfc3dSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
71911debfc3dSmrgdnl aclocal-1.4 backwards compatibility:
71921debfc3dSmrgdnl AC_DEFUN([LT_AC_PROG_SED], [])
71931debfc3dSmrg
71941debfc3dSmrg
71951debfc3dSmrg# _LT_CHECK_SHELL_FEATURES
71961debfc3dSmrg# ------------------------
71971debfc3dSmrg# Find out whether the shell is Bourne or XSI compatible,
71981debfc3dSmrg# or has some other useful features.
71991debfc3dSmrgm4_defun([_LT_CHECK_SHELL_FEATURES],
72001debfc3dSmrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
72011debfc3dSmrg# Try some XSI features
72021debfc3dSmrgxsi_shell=no
72031debfc3dSmrg( _lt_dummy="a/b/c"
72041debfc3dSmrg  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
72051debfc3dSmrg      = c,a/b,, \
72061debfc3dSmrg    && eval 'test $(( 1 + 1 )) -eq 2 \
72071debfc3dSmrg    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
72081debfc3dSmrg  && xsi_shell=yes
72091debfc3dSmrgAC_MSG_RESULT([$xsi_shell])
72101debfc3dSmrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
72111debfc3dSmrg
72121debfc3dSmrgAC_MSG_CHECKING([whether the shell understands "+="])
72131debfc3dSmrglt_shell_append=no
72141debfc3dSmrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
72151debfc3dSmrg    >/dev/null 2>&1 \
72161debfc3dSmrg  && lt_shell_append=yes
72171debfc3dSmrgAC_MSG_RESULT([$lt_shell_append])
72181debfc3dSmrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
72191debfc3dSmrg
72201debfc3dSmrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
72211debfc3dSmrg  lt_unset=unset
72221debfc3dSmrgelse
72231debfc3dSmrg  lt_unset=false
72241debfc3dSmrgfi
72251debfc3dSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
72261debfc3dSmrg
72271debfc3dSmrg# test EBCDIC or ASCII
72281debfc3dSmrgcase `echo X|tr X '\101'` in
72291debfc3dSmrg A) # ASCII based system
72301debfc3dSmrg    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
72311debfc3dSmrg  lt_SP2NL='tr \040 \012'
72321debfc3dSmrg  lt_NL2SP='tr \015\012 \040\040'
72331debfc3dSmrg  ;;
72341debfc3dSmrg *) # EBCDIC based system
72351debfc3dSmrg  lt_SP2NL='tr \100 \n'
72361debfc3dSmrg  lt_NL2SP='tr \r\n \100\100'
72371debfc3dSmrg  ;;
72381debfc3dSmrgesac
72391debfc3dSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
72401debfc3dSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
72411debfc3dSmrg])# _LT_CHECK_SHELL_FEATURES
72421debfc3dSmrg
72431debfc3dSmrg
72441debfc3dSmrg# _LT_PROG_XSI_SHELLFNS
72451debfc3dSmrg# ---------------------
72461debfc3dSmrg# Bourne and XSI compatible variants of some useful shell functions.
72471debfc3dSmrgm4_defun([_LT_PROG_XSI_SHELLFNS],
72481debfc3dSmrg[case $xsi_shell in
72491debfc3dSmrg  yes)
72501debfc3dSmrg    cat << \_LT_EOF >> "$cfgfile"
72511debfc3dSmrg
72521debfc3dSmrg# func_dirname file append nondir_replacement
72531debfc3dSmrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
72541debfc3dSmrg# otherwise set result to NONDIR_REPLACEMENT.
72551debfc3dSmrgfunc_dirname ()
72561debfc3dSmrg{
72571debfc3dSmrg  case ${1} in
72581debfc3dSmrg    */*) func_dirname_result="${1%/*}${2}" ;;
72591debfc3dSmrg    *  ) func_dirname_result="${3}" ;;
72601debfc3dSmrg  esac
72611debfc3dSmrg}
72621debfc3dSmrg
72631debfc3dSmrg# func_basename file
72641debfc3dSmrgfunc_basename ()
72651debfc3dSmrg{
72661debfc3dSmrg  func_basename_result="${1##*/}"
72671debfc3dSmrg}
72681debfc3dSmrg
72691debfc3dSmrg# func_dirname_and_basename file append nondir_replacement
72701debfc3dSmrg# perform func_basename and func_dirname in a single function
72711debfc3dSmrg# call:
72721debfc3dSmrg#   dirname:  Compute the dirname of FILE.  If nonempty,
72731debfc3dSmrg#             add APPEND to the result, otherwise set result
72741debfc3dSmrg#             to NONDIR_REPLACEMENT.
72751debfc3dSmrg#             value returned in "$func_dirname_result"
72761debfc3dSmrg#   basename: Compute filename of FILE.
72771debfc3dSmrg#             value retuned in "$func_basename_result"
72781debfc3dSmrg# Implementation must be kept synchronized with func_dirname
72791debfc3dSmrg# and func_basename. For efficiency, we do not delegate to
72801debfc3dSmrg# those functions but instead duplicate the functionality here.
72811debfc3dSmrgfunc_dirname_and_basename ()
72821debfc3dSmrg{
72831debfc3dSmrg  case ${1} in
72841debfc3dSmrg    */*) func_dirname_result="${1%/*}${2}" ;;
72851debfc3dSmrg    *  ) func_dirname_result="${3}" ;;
72861debfc3dSmrg  esac
72871debfc3dSmrg  func_basename_result="${1##*/}"
72881debfc3dSmrg}
72891debfc3dSmrg
72901debfc3dSmrg# func_stripname prefix suffix name
72911debfc3dSmrg# strip PREFIX and SUFFIX off of NAME.
72921debfc3dSmrg# PREFIX and SUFFIX must not contain globbing or regex special
72931debfc3dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading
72941debfc3dSmrg# dot (in which case that matches only a dot).
72951debfc3dSmrgfunc_stripname ()
72961debfc3dSmrg{
72971debfc3dSmrg  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
72981debfc3dSmrg  # positional parameters, so assign one to ordinary parameter first.
72991debfc3dSmrg  func_stripname_result=${3}
73001debfc3dSmrg  func_stripname_result=${func_stripname_result#"${1}"}
73011debfc3dSmrg  func_stripname_result=${func_stripname_result%"${2}"}
73021debfc3dSmrg}
73031debfc3dSmrg
73041debfc3dSmrg# func_opt_split
73051debfc3dSmrgfunc_opt_split ()
73061debfc3dSmrg{
73071debfc3dSmrg  func_opt_split_opt=${1%%=*}
73081debfc3dSmrg  func_opt_split_arg=${1#*=}
73091debfc3dSmrg}
73101debfc3dSmrg
73111debfc3dSmrg# func_lo2o object
73121debfc3dSmrgfunc_lo2o ()
73131debfc3dSmrg{
73141debfc3dSmrg  case ${1} in
73151debfc3dSmrg    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
73161debfc3dSmrg    *)    func_lo2o_result=${1} ;;
73171debfc3dSmrg  esac
73181debfc3dSmrg}
73191debfc3dSmrg
73201debfc3dSmrg# func_xform libobj-or-source
73211debfc3dSmrgfunc_xform ()
73221debfc3dSmrg{
73231debfc3dSmrg  func_xform_result=${1%.*}.lo
73241debfc3dSmrg}
73251debfc3dSmrg
73261debfc3dSmrg# func_arith arithmetic-term...
73271debfc3dSmrgfunc_arith ()
73281debfc3dSmrg{
73291debfc3dSmrg  func_arith_result=$(( $[*] ))
73301debfc3dSmrg}
73311debfc3dSmrg
73321debfc3dSmrg# func_len string
73331debfc3dSmrg# STRING may not start with a hyphen.
73341debfc3dSmrgfunc_len ()
73351debfc3dSmrg{
73361debfc3dSmrg  func_len_result=${#1}
73371debfc3dSmrg}
73381debfc3dSmrg
73391debfc3dSmrg_LT_EOF
73401debfc3dSmrg    ;;
73411debfc3dSmrg  *) # Bourne compatible functions.
73421debfc3dSmrg    cat << \_LT_EOF >> "$cfgfile"
73431debfc3dSmrg
73441debfc3dSmrg# func_dirname file append nondir_replacement
73451debfc3dSmrg# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
73461debfc3dSmrg# otherwise set result to NONDIR_REPLACEMENT.
73471debfc3dSmrgfunc_dirname ()
73481debfc3dSmrg{
73491debfc3dSmrg  # Extract subdirectory from the argument.
73501debfc3dSmrg  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
73511debfc3dSmrg  if test "X$func_dirname_result" = "X${1}"; then
73521debfc3dSmrg    func_dirname_result="${3}"
73531debfc3dSmrg  else
73541debfc3dSmrg    func_dirname_result="$func_dirname_result${2}"
73551debfc3dSmrg  fi
73561debfc3dSmrg}
73571debfc3dSmrg
73581debfc3dSmrg# func_basename file
73591debfc3dSmrgfunc_basename ()
73601debfc3dSmrg{
73611debfc3dSmrg  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
73621debfc3dSmrg}
73631debfc3dSmrg
73641debfc3dSmrgdnl func_dirname_and_basename
73651debfc3dSmrgdnl A portable version of this function is already defined in general.m4sh
73661debfc3dSmrgdnl so there is no need for it here.
73671debfc3dSmrg
73681debfc3dSmrg# func_stripname prefix suffix name
73691debfc3dSmrg# strip PREFIX and SUFFIX off of NAME.
73701debfc3dSmrg# PREFIX and SUFFIX must not contain globbing or regex special
73711debfc3dSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading
73721debfc3dSmrg# dot (in which case that matches only a dot).
73731debfc3dSmrg# func_strip_suffix prefix name
73741debfc3dSmrgfunc_stripname ()
73751debfc3dSmrg{
73761debfc3dSmrg  case ${2} in
73771debfc3dSmrg    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
73781debfc3dSmrg    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
73791debfc3dSmrg  esac
73801debfc3dSmrg}
73811debfc3dSmrg
73821debfc3dSmrg# sed scripts:
73831debfc3dSmrgmy_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
73841debfc3dSmrgmy_sed_long_arg='1s/^-[[^=]]*=//'
73851debfc3dSmrg
73861debfc3dSmrg# func_opt_split
73871debfc3dSmrgfunc_opt_split ()
73881debfc3dSmrg{
73891debfc3dSmrg  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
73901debfc3dSmrg  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
73911debfc3dSmrg}
73921debfc3dSmrg
73931debfc3dSmrg# func_lo2o object
73941debfc3dSmrgfunc_lo2o ()
73951debfc3dSmrg{
73961debfc3dSmrg  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
73971debfc3dSmrg}
73981debfc3dSmrg
73991debfc3dSmrg# func_xform libobj-or-source
74001debfc3dSmrgfunc_xform ()
74011debfc3dSmrg{
74021debfc3dSmrg  func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'`
74031debfc3dSmrg}
74041debfc3dSmrg
74051debfc3dSmrg# func_arith arithmetic-term...
74061debfc3dSmrgfunc_arith ()
74071debfc3dSmrg{
74081debfc3dSmrg  func_arith_result=`expr "$[@]"`
74091debfc3dSmrg}
74101debfc3dSmrg
74111debfc3dSmrg# func_len string
74121debfc3dSmrg# STRING may not start with a hyphen.
74131debfc3dSmrgfunc_len ()
74141debfc3dSmrg{
74151debfc3dSmrg  func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
74161debfc3dSmrg}
74171debfc3dSmrg
74181debfc3dSmrg_LT_EOF
74191debfc3dSmrgesac
74201debfc3dSmrg
74211debfc3dSmrgcase $lt_shell_append in
74221debfc3dSmrg  yes)
74231debfc3dSmrg    cat << \_LT_EOF >> "$cfgfile"
74241debfc3dSmrg
74251debfc3dSmrg# func_append var value
74261debfc3dSmrg# Append VALUE to the end of shell variable VAR.
74271debfc3dSmrgfunc_append ()
74281debfc3dSmrg{
74291debfc3dSmrg  eval "$[1]+=\$[2]"
74301debfc3dSmrg}
74311debfc3dSmrg_LT_EOF
74321debfc3dSmrg    ;;
74331debfc3dSmrg  *)
74341debfc3dSmrg    cat << \_LT_EOF >> "$cfgfile"
74351debfc3dSmrg
74361debfc3dSmrg# func_append var value
74371debfc3dSmrg# Append VALUE to the end of shell variable VAR.
74381debfc3dSmrgfunc_append ()
74391debfc3dSmrg{
74401debfc3dSmrg  eval "$[1]=\$$[1]\$[2]"
74411debfc3dSmrg}
74421debfc3dSmrg
74431debfc3dSmrg_LT_EOF
74441debfc3dSmrg    ;;
74451debfc3dSmrg  esac
74461debfc3dSmrg])
7447