libtool.m4 revision 9f00f3a1
19f00f3a1Smrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 29f00f3a1Smrg# 39f00f3a1Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 49f00f3a1Smrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 59f00f3a1Smrg# Foundation, Inc. 69f00f3a1Smrg# Written by Gordon Matzigkeit, 1996 79f00f3a1Smrg# 89f00f3a1Smrg# This file is free software; the Free Software Foundation gives 99f00f3a1Smrg# unlimited permission to copy and/or distribute it, with or without 109f00f3a1Smrg# modifications, as long as this notice is preserved. 119f00f3a1Smrg 129f00f3a1Smrgm4_define([_LT_COPYING], [dnl 139f00f3a1Smrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 149f00f3a1Smrg# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 159f00f3a1Smrg# Foundation, Inc. 169f00f3a1Smrg# Written by Gordon Matzigkeit, 1996 179f00f3a1Smrg# 189f00f3a1Smrg# This file is part of GNU Libtool. 199f00f3a1Smrg# 209f00f3a1Smrg# GNU Libtool is free software; you can redistribute it and/or 219f00f3a1Smrg# modify it under the terms of the GNU General Public License as 229f00f3a1Smrg# published by the Free Software Foundation; either version 2 of 239f00f3a1Smrg# the License, or (at your option) any later version. 249f00f3a1Smrg# 259f00f3a1Smrg# As a special exception to the GNU General Public License, 269f00f3a1Smrg# if you distribute this file as part of a program or library that 279f00f3a1Smrg# is built using GNU Libtool, you may include this file under the 289f00f3a1Smrg# same distribution terms that you use for the rest of that program. 299f00f3a1Smrg# 309f00f3a1Smrg# GNU Libtool is distributed in the hope that it will be useful, 319f00f3a1Smrg# but WITHOUT ANY WARRANTY; without even the implied warranty of 329f00f3a1Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 339f00f3a1Smrg# GNU General Public License for more details. 349f00f3a1Smrg# 359f00f3a1Smrg# You should have received a copy of the GNU General Public License 369f00f3a1Smrg# along with GNU Libtool; see the file COPYING. If not, a copy 379f00f3a1Smrg# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 389f00f3a1Smrg# obtained by writing to the Free Software Foundation, Inc., 399f00f3a1Smrg# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 409f00f3a1Smrg]) 419f00f3a1Smrg 429f00f3a1Smrg# serial 57 LT_INIT 439f00f3a1Smrg 449f00f3a1Smrg 459f00f3a1Smrg# LT_PREREQ(VERSION) 469f00f3a1Smrg# ------------------ 479f00f3a1Smrg# Complain and exit if this libtool version is less that VERSION. 489f00f3a1Smrgm4_defun([LT_PREREQ], 499f00f3a1Smrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 509f00f3a1Smrg [m4_default([$3], 519f00f3a1Smrg [m4_fatal([Libtool version $1 or higher is required], 529f00f3a1Smrg 63)])], 539f00f3a1Smrg [$2])]) 549f00f3a1Smrg 559f00f3a1Smrg 569f00f3a1Smrg# _LT_CHECK_BUILDDIR 579f00f3a1Smrg# ------------------ 589f00f3a1Smrg# Complain if the absolute build directory name contains unusual characters 599f00f3a1Smrgm4_defun([_LT_CHECK_BUILDDIR], 609f00f3a1Smrg[case `pwd` in 619f00f3a1Smrg *\ * | *\ *) 629f00f3a1Smrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 639f00f3a1Smrgesac 649f00f3a1Smrg]) 659f00f3a1Smrg 669f00f3a1Smrg 679f00f3a1Smrg# LT_INIT([OPTIONS]) 689f00f3a1Smrg# ------------------ 699f00f3a1SmrgAC_DEFUN([LT_INIT], 709f00f3a1Smrg[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 719f00f3a1SmrgAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 729f00f3a1SmrgAC_BEFORE([$0], [LT_LANG])dnl 739f00f3a1SmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 749f00f3a1SmrgAC_BEFORE([$0], [LTDL_INIT])dnl 759f00f3a1Smrgm4_require([_LT_CHECK_BUILDDIR])dnl 769f00f3a1Smrg 779f00f3a1Smrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 789f00f3a1Smrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 799f00f3a1Smrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 809f00f3a1Smrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 819f00f3a1Smrgdnl unless we require an AC_DEFUNed macro: 829f00f3a1SmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 839f00f3a1SmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 849f00f3a1SmrgAC_REQUIRE([LTVERSION_VERSION])dnl 859f00f3a1SmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 869f00f3a1Smrgm4_require([_LT_PROG_LTMAIN])dnl 879f00f3a1Smrg 889f00f3a1Smrg_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 899f00f3a1Smrg 909f00f3a1Smrgdnl Parse OPTIONS 919f00f3a1Smrg_LT_SET_OPTIONS([$0], [$1]) 929f00f3a1Smrg 939f00f3a1Smrg# This can be used to rebuild libtool when needed 949f00f3a1SmrgLIBTOOL_DEPS="$ltmain" 959f00f3a1Smrg 969f00f3a1Smrg# Always use our own libtool. 979f00f3a1SmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 989f00f3a1SmrgAC_SUBST(LIBTOOL)dnl 999f00f3a1Smrg 1009f00f3a1Smrg_LT_SETUP 1019f00f3a1Smrg 1029f00f3a1Smrg# Only expand once: 1039f00f3a1Smrgm4_define([LT_INIT]) 1049f00f3a1Smrg])# LT_INIT 1059f00f3a1Smrg 1069f00f3a1Smrg# Old names: 1079f00f3a1SmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1089f00f3a1SmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1099f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 1109f00f3a1Smrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1119f00f3a1Smrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1129f00f3a1Smrg 1139f00f3a1Smrg 1149f00f3a1Smrg# _LT_CC_BASENAME(CC) 1159f00f3a1Smrg# ------------------- 1169f00f3a1Smrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1179f00f3a1Smrgm4_defun([_LT_CC_BASENAME], 1189f00f3a1Smrg[for cc_temp in $1""; do 1199f00f3a1Smrg case $cc_temp in 1209f00f3a1Smrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1219f00f3a1Smrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1229f00f3a1Smrg \-*) ;; 1239f00f3a1Smrg *) break;; 1249f00f3a1Smrg esac 1259f00f3a1Smrgdone 1269f00f3a1Smrgcc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1279f00f3a1Smrg]) 1289f00f3a1Smrg 1299f00f3a1Smrg 1309f00f3a1Smrg# _LT_FILEUTILS_DEFAULTS 1319f00f3a1Smrg# ---------------------- 1329f00f3a1Smrg# It is okay to use these file commands and assume they have been set 1339f00f3a1Smrg# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 1349f00f3a1Smrgm4_defun([_LT_FILEUTILS_DEFAULTS], 1359f00f3a1Smrg[: ${CP="cp -f"} 1369f00f3a1Smrg: ${MV="mv -f"} 1379f00f3a1Smrg: ${RM="rm -f"} 1389f00f3a1Smrg])# _LT_FILEUTILS_DEFAULTS 1399f00f3a1Smrg 1409f00f3a1Smrg 1419f00f3a1Smrg# _LT_SETUP 1429f00f3a1Smrg# --------- 1439f00f3a1Smrgm4_defun([_LT_SETUP], 1449f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1459f00f3a1SmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1469f00f3a1SmrgAC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 1479f00f3a1SmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1489f00f3a1Smrg 1499f00f3a1Smrg_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 1509f00f3a1Smrgdnl 1519f00f3a1Smrg_LT_DECL([], [host_alias], [0], [The host system])dnl 1529f00f3a1Smrg_LT_DECL([], [host], [0])dnl 1539f00f3a1Smrg_LT_DECL([], [host_os], [0])dnl 1549f00f3a1Smrgdnl 1559f00f3a1Smrg_LT_DECL([], [build_alias], [0], [The build system])dnl 1569f00f3a1Smrg_LT_DECL([], [build], [0])dnl 1579f00f3a1Smrg_LT_DECL([], [build_os], [0])dnl 1589f00f3a1Smrgdnl 1599f00f3a1SmrgAC_REQUIRE([AC_PROG_CC])dnl 1609f00f3a1SmrgAC_REQUIRE([LT_PATH_LD])dnl 1619f00f3a1SmrgAC_REQUIRE([LT_PATH_NM])dnl 1629f00f3a1Smrgdnl 1639f00f3a1SmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1649f00f3a1Smrgtest -z "$LN_S" && LN_S="ln -s" 1659f00f3a1Smrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1669f00f3a1Smrgdnl 1679f00f3a1SmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 1689f00f3a1Smrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1699f00f3a1Smrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1709f00f3a1Smrgdnl 1719f00f3a1Smrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1729f00f3a1Smrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 1739f00f3a1Smrgm4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 1749f00f3a1Smrgm4_require([_LT_CMD_RELOAD])dnl 1759f00f3a1Smrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 1769f00f3a1Smrgm4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 1779f00f3a1Smrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 1789f00f3a1Smrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1799f00f3a1Smrgm4_require([_LT_WITH_SYSROOT])dnl 1809f00f3a1Smrg 1819f00f3a1Smrg_LT_CONFIG_LIBTOOL_INIT([ 1829f00f3a1Smrg# See if we are running on zsh, and set the options which allow our 1839f00f3a1Smrg# commands through without removal of \ escapes INIT. 1849f00f3a1Smrgif test -n "\${ZSH_VERSION+set}" ; then 1859f00f3a1Smrg setopt NO_GLOB_SUBST 1869f00f3a1Smrgfi 1879f00f3a1Smrg]) 1889f00f3a1Smrgif test -n "${ZSH_VERSION+set}" ; then 1899f00f3a1Smrg setopt NO_GLOB_SUBST 1909f00f3a1Smrgfi 1919f00f3a1Smrg 1929f00f3a1Smrg_LT_CHECK_OBJDIR 1939f00f3a1Smrg 1949f00f3a1Smrgm4_require([_LT_TAG_COMPILER])dnl 1959f00f3a1Smrg 1969f00f3a1Smrgcase $host_os in 1979f00f3a1Smrgaix3*) 1989f00f3a1Smrg # AIX sometimes has problems with the GCC collect2 program. For some 1999f00f3a1Smrg # reason, if we set the COLLECT_NAMES environment variable, the problems 2009f00f3a1Smrg # vanish in a puff of smoke. 2019f00f3a1Smrg if test "X${COLLECT_NAMES+set}" != Xset; then 2029f00f3a1Smrg COLLECT_NAMES= 2039f00f3a1Smrg export COLLECT_NAMES 2049f00f3a1Smrg fi 2059f00f3a1Smrg ;; 2069f00f3a1Smrgesac 2079f00f3a1Smrg 2089f00f3a1Smrg# Global variables: 2099f00f3a1Smrgofile=libtool 2109f00f3a1Smrgcan_build_shared=yes 2119f00f3a1Smrg 2129f00f3a1Smrg# All known linkers require a `.a' archive for static linking (except MSVC, 2139f00f3a1Smrg# which needs '.lib'). 2149f00f3a1Smrglibext=a 2159f00f3a1Smrg 2169f00f3a1Smrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 2179f00f3a1Smrg 2189f00f3a1Smrgold_CC="$CC" 2199f00f3a1Smrgold_CFLAGS="$CFLAGS" 2209f00f3a1Smrg 2219f00f3a1Smrg# Set sane defaults for various variables 2229f00f3a1Smrgtest -z "$CC" && CC=cc 2239f00f3a1Smrgtest -z "$LTCC" && LTCC=$CC 2249f00f3a1Smrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2259f00f3a1Smrgtest -z "$LD" && LD=ld 2269f00f3a1Smrgtest -z "$ac_objext" && ac_objext=o 2279f00f3a1Smrg 2289f00f3a1Smrg_LT_CC_BASENAME([$compiler]) 2299f00f3a1Smrg 2309f00f3a1Smrg# Only perform the check for file, if the check method requires it 2319f00f3a1Smrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 2329f00f3a1Smrgcase $deplibs_check_method in 2339f00f3a1Smrgfile_magic*) 2349f00f3a1Smrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2359f00f3a1Smrg _LT_PATH_MAGIC 2369f00f3a1Smrg fi 2379f00f3a1Smrg ;; 2389f00f3a1Smrgesac 2399f00f3a1Smrg 2409f00f3a1Smrg# Use C for the default configuration in the libtool script 2419f00f3a1SmrgLT_SUPPORTED_TAG([CC]) 2429f00f3a1Smrg_LT_LANG_C_CONFIG 2439f00f3a1Smrg_LT_LANG_DEFAULT_CONFIG 2449f00f3a1Smrg_LT_CONFIG_COMMANDS 2459f00f3a1Smrg])# _LT_SETUP 2469f00f3a1Smrg 2479f00f3a1Smrg 2489f00f3a1Smrg# _LT_PREPARE_SED_QUOTE_VARS 2499f00f3a1Smrg# -------------------------- 2509f00f3a1Smrg# Define a few sed substitution that help us do robust quoting. 2519f00f3a1Smrgm4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2529f00f3a1Smrg[# Backslashify metacharacters that are still active within 2539f00f3a1Smrg# double-quoted strings. 2549f00f3a1Smrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2559f00f3a1Smrg 2569f00f3a1Smrg# Same as above, but do not quote variable references. 2579f00f3a1Smrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 2589f00f3a1Smrg 2599f00f3a1Smrg# Sed substitution to delay expansion of an escaped shell variable in a 2609f00f3a1Smrg# double_quote_subst'ed string. 2619f00f3a1Smrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2629f00f3a1Smrg 2639f00f3a1Smrg# Sed substitution to delay expansion of an escaped single quote. 2649f00f3a1Smrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2659f00f3a1Smrg 2669f00f3a1Smrg# Sed substitution to avoid accidental globbing in evaled expressions 2679f00f3a1Smrgno_glob_subst='s/\*/\\\*/g' 2689f00f3a1Smrg]) 2699f00f3a1Smrg 2709f00f3a1Smrg# _LT_PROG_LTMAIN 2719f00f3a1Smrg# --------------- 2729f00f3a1Smrg# Note that this code is called both from `configure', and `config.status' 2739f00f3a1Smrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2749f00f3a1Smrg# `config.status' has no value for ac_aux_dir unless we are using Automake, 2759f00f3a1Smrg# so we pass a copy along to make sure it has a sensible value anyway. 2769f00f3a1Smrgm4_defun([_LT_PROG_LTMAIN], 2779f00f3a1Smrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2789f00f3a1Smrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2799f00f3a1Smrgltmain="$ac_aux_dir/ltmain.sh" 2809f00f3a1Smrg])# _LT_PROG_LTMAIN 2819f00f3a1Smrg 2829f00f3a1Smrg 2839f00f3a1Smrg## ------------------------------------- ## 2849f00f3a1Smrg## Accumulate code for creating libtool. ## 2859f00f3a1Smrg## ------------------------------------- ## 2869f00f3a1Smrg 2879f00f3a1Smrg# So that we can recreate a full libtool script including additional 2889f00f3a1Smrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 2899f00f3a1Smrg# in macros and then make a single call at the end using the `libtool' 2909f00f3a1Smrg# label. 2919f00f3a1Smrg 2929f00f3a1Smrg 2939f00f3a1Smrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 2949f00f3a1Smrg# ---------------------------------------- 2959f00f3a1Smrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 2969f00f3a1Smrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 2979f00f3a1Smrg[m4_ifval([$1], 2989f00f3a1Smrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 2999f00f3a1Smrg [$1 3009f00f3a1Smrg])])]) 3019f00f3a1Smrg 3029f00f3a1Smrg# Initialize. 3039f00f3a1Smrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3049f00f3a1Smrg 3059f00f3a1Smrg 3069f00f3a1Smrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 3079f00f3a1Smrg# ------------------------------ 3089f00f3a1Smrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3099f00f3a1Smrgm4_define([_LT_CONFIG_LIBTOOL], 3109f00f3a1Smrg[m4_ifval([$1], 3119f00f3a1Smrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3129f00f3a1Smrg [$1 3139f00f3a1Smrg])])]) 3149f00f3a1Smrg 3159f00f3a1Smrg# Initialize. 3169f00f3a1Smrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3179f00f3a1Smrg 3189f00f3a1Smrg 3199f00f3a1Smrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3209f00f3a1Smrg# ----------------------------------------------------- 3219f00f3a1Smrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 3229f00f3a1Smrg[_LT_CONFIG_LIBTOOL([$1]) 3239f00f3a1Smrg_LT_CONFIG_LIBTOOL_INIT([$2]) 3249f00f3a1Smrg]) 3259f00f3a1Smrg 3269f00f3a1Smrg 3279f00f3a1Smrg# _LT_FORMAT_COMMENT([COMMENT]) 3289f00f3a1Smrg# ----------------------------- 3299f00f3a1Smrg# Add leading comment marks to the start of each line, and a trailing 3309f00f3a1Smrg# full-stop to the whole comment if one is not present already. 3319f00f3a1Smrgm4_define([_LT_FORMAT_COMMENT], 3329f00f3a1Smrg[m4_ifval([$1], [ 3339f00f3a1Smrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3349f00f3a1Smrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3359f00f3a1Smrg)]) 3369f00f3a1Smrg 3379f00f3a1Smrg 3389f00f3a1Smrg 3399f00f3a1Smrg## ------------------------ ## 3409f00f3a1Smrg## FIXME: Eliminate VARNAME ## 3419f00f3a1Smrg## ------------------------ ## 3429f00f3a1Smrg 3439f00f3a1Smrg 3449f00f3a1Smrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3459f00f3a1Smrg# ------------------------------------------------------------------- 3469f00f3a1Smrg# CONFIGNAME is the name given to the value in the libtool script. 3479f00f3a1Smrg# VARNAME is the (base) name used in the configure script. 3489f00f3a1Smrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3499f00f3a1Smrg# VARNAME. Any other value will be used directly. 3509f00f3a1Smrgm4_define([_LT_DECL], 3519f00f3a1Smrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3529f00f3a1Smrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3539f00f3a1Smrg [m4_ifval([$1], [$1], [$2])]) 3549f00f3a1Smrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3559f00f3a1Smrg m4_ifval([$4], 3569f00f3a1Smrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3579f00f3a1Smrg lt_dict_add_subkey([lt_decl_dict], [$2], 3589f00f3a1Smrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 3599f00f3a1Smrg]) 3609f00f3a1Smrg 3619f00f3a1Smrg 3629f00f3a1Smrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3639f00f3a1Smrg# -------------------------------------------------------- 3649f00f3a1Smrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3659f00f3a1Smrg 3669f00f3a1Smrg 3679f00f3a1Smrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3689f00f3a1Smrg# ------------------------------------------------ 3699f00f3a1Smrgm4_define([lt_decl_tag_varnames], 3709f00f3a1Smrg[_lt_decl_filter([tagged?], [yes], $@)]) 3719f00f3a1Smrg 3729f00f3a1Smrg 3739f00f3a1Smrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3749f00f3a1Smrg# --------------------------------------------------------- 3759f00f3a1Smrgm4_define([_lt_decl_filter], 3769f00f3a1Smrg[m4_case([$#], 3779f00f3a1Smrg [0], [m4_fatal([$0: too few arguments: $#])], 3789f00f3a1Smrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 3799f00f3a1Smrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3809f00f3a1Smrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3819f00f3a1Smrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3829f00f3a1Smrg]) 3839f00f3a1Smrg 3849f00f3a1Smrg 3859f00f3a1Smrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3869f00f3a1Smrg# -------------------------------------------------- 3879f00f3a1Smrgm4_define([lt_decl_quote_varnames], 3889f00f3a1Smrg[_lt_decl_filter([value], [1], $@)]) 3899f00f3a1Smrg 3909f00f3a1Smrg 3919f00f3a1Smrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 3929f00f3a1Smrg# --------------------------------------------------- 3939f00f3a1Smrgm4_define([lt_decl_dquote_varnames], 3949f00f3a1Smrg[_lt_decl_filter([value], [2], $@)]) 3959f00f3a1Smrg 3969f00f3a1Smrg 3979f00f3a1Smrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 3989f00f3a1Smrg# --------------------------------------------------- 3999f00f3a1Smrgm4_define([lt_decl_varnames_tagged], 4009f00f3a1Smrg[m4_assert([$# <= 2])dnl 4019f00f3a1Smrg_$0(m4_quote(m4_default([$1], [[, ]])), 4029f00f3a1Smrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 4039f00f3a1Smrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 4049f00f3a1Smrgm4_define([_lt_decl_varnames_tagged], 4059f00f3a1Smrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 4069f00f3a1Smrg 4079f00f3a1Smrg 4089f00f3a1Smrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 4099f00f3a1Smrg# ------------------------------------------------ 4109f00f3a1Smrgm4_define([lt_decl_all_varnames], 4119f00f3a1Smrg[_$0(m4_quote(m4_default([$1], [[, ]])), 4129f00f3a1Smrg m4_if([$2], [], 4139f00f3a1Smrg m4_quote(lt_decl_varnames), 4149f00f3a1Smrg m4_quote(m4_shift($@))))[]dnl 4159f00f3a1Smrg]) 4169f00f3a1Smrgm4_define([_lt_decl_all_varnames], 4179f00f3a1Smrg[lt_join($@, lt_decl_varnames_tagged([$1], 4189f00f3a1Smrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 4199f00f3a1Smrg]) 4209f00f3a1Smrg 4219f00f3a1Smrg 4229f00f3a1Smrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 4239f00f3a1Smrg# ------------------------------------ 4249f00f3a1Smrg# Quote a variable value, and forward it to `config.status' so that its 4259f00f3a1Smrg# declaration there will have the same value as in `configure'. VARNAME 4269f00f3a1Smrg# must have a single quote delimited value for this to work. 4279f00f3a1Smrgm4_define([_LT_CONFIG_STATUS_DECLARE], 4289f00f3a1Smrg[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 4299f00f3a1Smrg 4309f00f3a1Smrg 4319f00f3a1Smrg# _LT_CONFIG_STATUS_DECLARATIONS 4329f00f3a1Smrg# ------------------------------ 4339f00f3a1Smrg# We delimit libtool config variables with single quotes, so when 4349f00f3a1Smrg# we write them to config.status, we have to be sure to quote all 4359f00f3a1Smrg# embedded single quotes properly. In configure, this macro expands 4369f00f3a1Smrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 4379f00f3a1Smrg# 4389f00f3a1Smrg# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 4399f00f3a1Smrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 4409f00f3a1Smrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 4419f00f3a1Smrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 4429f00f3a1Smrg 4439f00f3a1Smrg 4449f00f3a1Smrg# _LT_LIBTOOL_TAGS 4459f00f3a1Smrg# ---------------- 4469f00f3a1Smrg# Output comment and list of tags supported by the script 4479f00f3a1Smrgm4_defun([_LT_LIBTOOL_TAGS], 4489f00f3a1Smrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 4499f00f3a1Smrgavailable_tags="_LT_TAGS"dnl 4509f00f3a1Smrg]) 4519f00f3a1Smrg 4529f00f3a1Smrg 4539f00f3a1Smrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 4549f00f3a1Smrg# ----------------------------------- 4559f00f3a1Smrg# Extract the dictionary values for VARNAME (optionally with TAG) and 4569f00f3a1Smrg# expand to a commented shell variable setting: 4579f00f3a1Smrg# 4589f00f3a1Smrg# # Some comment about what VAR is for. 4599f00f3a1Smrg# visible_name=$lt_internal_name 4609f00f3a1Smrgm4_define([_LT_LIBTOOL_DECLARE], 4619f00f3a1Smrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 4629f00f3a1Smrg [description])))[]dnl 4639f00f3a1Smrgm4_pushdef([_libtool_name], 4649f00f3a1Smrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 4659f00f3a1Smrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 4669f00f3a1Smrg [0], [_libtool_name=[$]$1], 4679f00f3a1Smrg [1], [_libtool_name=$lt_[]$1], 4689f00f3a1Smrg [2], [_libtool_name=$lt_[]$1], 4699f00f3a1Smrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 4709f00f3a1Smrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 4719f00f3a1Smrg]) 4729f00f3a1Smrg 4739f00f3a1Smrg 4749f00f3a1Smrg# _LT_LIBTOOL_CONFIG_VARS 4759f00f3a1Smrg# ----------------------- 4769f00f3a1Smrg# Produce commented declarations of non-tagged libtool config variables 4779f00f3a1Smrg# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 4789f00f3a1Smrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 4799f00f3a1Smrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 4809f00f3a1Smrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 4819f00f3a1Smrg[m4_foreach([_lt_var], 4829f00f3a1Smrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 4839f00f3a1Smrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 4849f00f3a1Smrg 4859f00f3a1Smrg 4869f00f3a1Smrg# _LT_LIBTOOL_TAG_VARS(TAG) 4879f00f3a1Smrg# ------------------------- 4889f00f3a1Smrgm4_define([_LT_LIBTOOL_TAG_VARS], 4899f00f3a1Smrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 4909f00f3a1Smrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 4919f00f3a1Smrg 4929f00f3a1Smrg 4939f00f3a1Smrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 4949f00f3a1Smrg# ------------------------------ 4959f00f3a1Smrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 4969f00f3a1Smrg 4979f00f3a1Smrg 4989f00f3a1Smrg# _LT_CONFIG_COMMANDS 4999f00f3a1Smrg# ------------------- 5009f00f3a1Smrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 5019f00f3a1Smrg# variables for single and double quote escaping we saved from calls 5029f00f3a1Smrg# to _LT_DECL, we can put quote escaped variables declarations 5039f00f3a1Smrg# into `config.status', and then the shell code to quote escape them in 5049f00f3a1Smrg# for loops in `config.status'. Finally, any additional code accumulated 5059f00f3a1Smrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 5069f00f3a1Smrgm4_defun([_LT_CONFIG_COMMANDS], 5079f00f3a1Smrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 5089f00f3a1Smrg dnl If the libtool generation code has been placed in $CONFIG_LT, 5099f00f3a1Smrg dnl instead of duplicating it all over again into config.status, 5109f00f3a1Smrg dnl then we will have config.status run $CONFIG_LT later, so it 5119f00f3a1Smrg dnl needs to know what name is stored there: 5129f00f3a1Smrg [AC_CONFIG_COMMANDS([libtool], 5139f00f3a1Smrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 5149f00f3a1Smrg dnl If the libtool generation code is destined for config.status, 5159f00f3a1Smrg dnl expand the accumulated commands and init code now: 5169f00f3a1Smrg [AC_CONFIG_COMMANDS([libtool], 5179f00f3a1Smrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 5189f00f3a1Smrg])#_LT_CONFIG_COMMANDS 5199f00f3a1Smrg 5209f00f3a1Smrg 5219f00f3a1Smrg# Initialize. 5229f00f3a1Smrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 5239f00f3a1Smrg[ 5249f00f3a1Smrg 5259f00f3a1Smrg# The HP-UX ksh and POSIX shell print the target directory to stdout 5269f00f3a1Smrg# if CDPATH is set. 5279f00f3a1Smrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5289f00f3a1Smrg 5299f00f3a1Smrgsed_quote_subst='$sed_quote_subst' 5309f00f3a1Smrgdouble_quote_subst='$double_quote_subst' 5319f00f3a1Smrgdelay_variable_subst='$delay_variable_subst' 5329f00f3a1Smrg_LT_CONFIG_STATUS_DECLARATIONS 5339f00f3a1SmrgLTCC='$LTCC' 5349f00f3a1SmrgLTCFLAGS='$LTCFLAGS' 5359f00f3a1Smrgcompiler='$compiler_DEFAULT' 5369f00f3a1Smrg 5379f00f3a1Smrg# A function that is used when there is no print builtin or printf. 5389f00f3a1Smrgfunc_fallback_echo () 5399f00f3a1Smrg{ 5409f00f3a1Smrg eval 'cat <<_LTECHO_EOF 5419f00f3a1Smrg\$[]1 5429f00f3a1Smrg_LTECHO_EOF' 5439f00f3a1Smrg} 5449f00f3a1Smrg 5459f00f3a1Smrg# Quote evaled strings. 5469f00f3a1Smrgfor var in lt_decl_all_varnames([[ \ 5479f00f3a1Smrg]], lt_decl_quote_varnames); do 5489f00f3a1Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 5499f00f3a1Smrg *[[\\\\\\\`\\"\\\$]]*) 5509f00f3a1Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 5519f00f3a1Smrg ;; 5529f00f3a1Smrg *) 5539f00f3a1Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5549f00f3a1Smrg ;; 5559f00f3a1Smrg esac 5569f00f3a1Smrgdone 5579f00f3a1Smrg 5589f00f3a1Smrg# Double-quote double-evaled strings. 5599f00f3a1Smrgfor var in lt_decl_all_varnames([[ \ 5609f00f3a1Smrg]], lt_decl_dquote_varnames); do 5619f00f3a1Smrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 5629f00f3a1Smrg *[[\\\\\\\`\\"\\\$]]*) 5639f00f3a1Smrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 5649f00f3a1Smrg ;; 5659f00f3a1Smrg *) 5669f00f3a1Smrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5679f00f3a1Smrg ;; 5689f00f3a1Smrg esac 5699f00f3a1Smrgdone 5709f00f3a1Smrg 5719f00f3a1Smrg_LT_OUTPUT_LIBTOOL_INIT 5729f00f3a1Smrg]) 5739f00f3a1Smrg 5749f00f3a1Smrg# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 5759f00f3a1Smrg# ------------------------------------ 5769f00f3a1Smrg# Generate a child script FILE with all initialization necessary to 5779f00f3a1Smrg# reuse the environment learned by the parent script, and make the 5789f00f3a1Smrg# file executable. If COMMENT is supplied, it is inserted after the 5799f00f3a1Smrg# `#!' sequence but before initialization text begins. After this 5809f00f3a1Smrg# macro, additional text can be appended to FILE to form the body of 5819f00f3a1Smrg# the child script. The macro ends with non-zero status if the 5829f00f3a1Smrg# file could not be fully written (such as if the disk is full). 5839f00f3a1Smrgm4_ifdef([AS_INIT_GENERATED], 5849f00f3a1Smrg[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 5859f00f3a1Smrg[m4_defun([_LT_GENERATED_FILE_INIT], 5869f00f3a1Smrg[m4_require([AS_PREPARE])]dnl 5879f00f3a1Smrg[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 5889f00f3a1Smrg[lt_write_fail=0 5899f00f3a1Smrgcat >$1 <<_ASEOF || lt_write_fail=1 5909f00f3a1Smrg#! $SHELL 5919f00f3a1Smrg# Generated by $as_me. 5929f00f3a1Smrg$2 5939f00f3a1SmrgSHELL=\${CONFIG_SHELL-$SHELL} 5949f00f3a1Smrgexport SHELL 5959f00f3a1Smrg_ASEOF 5969f00f3a1Smrgcat >>$1 <<\_ASEOF || lt_write_fail=1 5979f00f3a1SmrgAS_SHELL_SANITIZE 5989f00f3a1Smrg_AS_PREPARE 5999f00f3a1Smrgexec AS_MESSAGE_FD>&1 6009f00f3a1Smrg_ASEOF 6019f00f3a1Smrgtest $lt_write_fail = 0 && chmod +x $1[]dnl 6029f00f3a1Smrgm4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 6039f00f3a1Smrg 6049f00f3a1Smrg# LT_OUTPUT 6059f00f3a1Smrg# --------- 6069f00f3a1Smrg# This macro allows early generation of the libtool script (before 6079f00f3a1Smrg# AC_OUTPUT is called), incase it is used in configure for compilation 6089f00f3a1Smrg# tests. 6099f00f3a1SmrgAC_DEFUN([LT_OUTPUT], 6109f00f3a1Smrg[: ${CONFIG_LT=./config.lt} 6119f00f3a1SmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 6129f00f3a1Smrg_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 6139f00f3a1Smrg[# Run this file to recreate a libtool stub with the current configuration.]) 6149f00f3a1Smrg 6159f00f3a1Smrgcat >>"$CONFIG_LT" <<\_LTEOF 6169f00f3a1Smrglt_cl_silent=false 6179f00f3a1Smrgexec AS_MESSAGE_LOG_FD>>config.log 6189f00f3a1Smrg{ 6199f00f3a1Smrg echo 6209f00f3a1Smrg AS_BOX([Running $as_me.]) 6219f00f3a1Smrg} >&AS_MESSAGE_LOG_FD 6229f00f3a1Smrg 6239f00f3a1Smrglt_cl_help="\ 6249f00f3a1Smrg\`$as_me' creates a local libtool stub from the current configuration, 6259f00f3a1Smrgfor use in further configure time tests before the real libtool is 6269f00f3a1Smrggenerated. 6279f00f3a1Smrg 6289f00f3a1SmrgUsage: $[0] [[OPTIONS]] 6299f00f3a1Smrg 6309f00f3a1Smrg -h, --help print this help, then exit 6319f00f3a1Smrg -V, --version print version number, then exit 6329f00f3a1Smrg -q, --quiet do not print progress messages 6339f00f3a1Smrg -d, --debug don't remove temporary files 6349f00f3a1Smrg 6359f00f3a1SmrgReport bugs to <bug-libtool@gnu.org>." 6369f00f3a1Smrg 6379f00f3a1Smrglt_cl_version="\ 6389f00f3a1Smrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 6399f00f3a1Smrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 6409f00f3a1Smrgconfigured by $[0], generated by m4_PACKAGE_STRING. 6419f00f3a1Smrg 6429f00f3a1SmrgCopyright (C) 2011 Free Software Foundation, Inc. 6439f00f3a1SmrgThis config.lt script is free software; the Free Software Foundation 6449f00f3a1Smrggives unlimited permision to copy, distribute and modify it." 6459f00f3a1Smrg 6469f00f3a1Smrgwhile test $[#] != 0 6479f00f3a1Smrgdo 6489f00f3a1Smrg case $[1] in 6499f00f3a1Smrg --version | --v* | -V ) 6509f00f3a1Smrg echo "$lt_cl_version"; exit 0 ;; 6519f00f3a1Smrg --help | --h* | -h ) 6529f00f3a1Smrg echo "$lt_cl_help"; exit 0 ;; 6539f00f3a1Smrg --debug | --d* | -d ) 6549f00f3a1Smrg debug=: ;; 6559f00f3a1Smrg --quiet | --q* | --silent | --s* | -q ) 6569f00f3a1Smrg lt_cl_silent=: ;; 6579f00f3a1Smrg 6589f00f3a1Smrg -*) AC_MSG_ERROR([unrecognized option: $[1] 6599f00f3a1SmrgTry \`$[0] --help' for more information.]) ;; 6609f00f3a1Smrg 6619f00f3a1Smrg *) AC_MSG_ERROR([unrecognized argument: $[1] 6629f00f3a1SmrgTry \`$[0] --help' for more information.]) ;; 6639f00f3a1Smrg esac 6649f00f3a1Smrg shift 6659f00f3a1Smrgdone 6669f00f3a1Smrg 6679f00f3a1Smrgif $lt_cl_silent; then 6689f00f3a1Smrg exec AS_MESSAGE_FD>/dev/null 6699f00f3a1Smrgfi 6709f00f3a1Smrg_LTEOF 6719f00f3a1Smrg 6729f00f3a1Smrgcat >>"$CONFIG_LT" <<_LTEOF 6739f00f3a1Smrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 6749f00f3a1Smrg_LTEOF 6759f00f3a1Smrg 6769f00f3a1Smrgcat >>"$CONFIG_LT" <<\_LTEOF 6779f00f3a1SmrgAC_MSG_NOTICE([creating $ofile]) 6789f00f3a1Smrg_LT_OUTPUT_LIBTOOL_COMMANDS 6799f00f3a1SmrgAS_EXIT(0) 6809f00f3a1Smrg_LTEOF 6819f00f3a1Smrgchmod +x "$CONFIG_LT" 6829f00f3a1Smrg 6839f00f3a1Smrg# configure is writing to config.log, but config.lt does its own redirection, 6849f00f3a1Smrg# appending to config.log, which fails on DOS, as config.log is still kept 6859f00f3a1Smrg# open by configure. Here we exec the FD to /dev/null, effectively closing 6869f00f3a1Smrg# config.log, so it can be properly (re)opened and appended to by config.lt. 6879f00f3a1Smrglt_cl_success=: 6889f00f3a1Smrgtest "$silent" = yes && 6899f00f3a1Smrg lt_config_lt_args="$lt_config_lt_args --quiet" 6909f00f3a1Smrgexec AS_MESSAGE_LOG_FD>/dev/null 6919f00f3a1Smrg$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 6929f00f3a1Smrgexec AS_MESSAGE_LOG_FD>>config.log 6939f00f3a1Smrg$lt_cl_success || AS_EXIT(1) 6949f00f3a1Smrg])# LT_OUTPUT 6959f00f3a1Smrg 6969f00f3a1Smrg 6979f00f3a1Smrg# _LT_CONFIG(TAG) 6989f00f3a1Smrg# --------------- 6999f00f3a1Smrg# If TAG is the built-in tag, create an initial libtool script with a 7009f00f3a1Smrg# default configuration from the untagged config vars. Otherwise add code 7019f00f3a1Smrg# to config.status for appending the configuration named by TAG from the 7029f00f3a1Smrg# matching tagged config vars. 7039f00f3a1Smrgm4_defun([_LT_CONFIG], 7049f00f3a1Smrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7059f00f3a1Smrg_LT_CONFIG_SAVE_COMMANDS([ 7069f00f3a1Smrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 7079f00f3a1Smrg m4_if(_LT_TAG, [C], [ 7089f00f3a1Smrg # See if we are running on zsh, and set the options which allow our 7099f00f3a1Smrg # commands through without removal of \ escapes. 7109f00f3a1Smrg if test -n "${ZSH_VERSION+set}" ; then 7119f00f3a1Smrg setopt NO_GLOB_SUBST 7129f00f3a1Smrg fi 7139f00f3a1Smrg 7149f00f3a1Smrg cfgfile="${ofile}T" 7159f00f3a1Smrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 7169f00f3a1Smrg $RM "$cfgfile" 7179f00f3a1Smrg 7189f00f3a1Smrg cat <<_LT_EOF >> "$cfgfile" 7199f00f3a1Smrg#! $SHELL 7209f00f3a1Smrg 7219f00f3a1Smrg# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7229f00f3a1Smrg# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 7239f00f3a1Smrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7249f00f3a1Smrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7259f00f3a1Smrg# 7269f00f3a1Smrg_LT_COPYING 7279f00f3a1Smrg_LT_LIBTOOL_TAGS 7289f00f3a1Smrg 7299f00f3a1Smrg# ### BEGIN LIBTOOL CONFIG 7309f00f3a1Smrg_LT_LIBTOOL_CONFIG_VARS 7319f00f3a1Smrg_LT_LIBTOOL_TAG_VARS 7329f00f3a1Smrg# ### END LIBTOOL CONFIG 7339f00f3a1Smrg 7349f00f3a1Smrg_LT_EOF 7359f00f3a1Smrg 7369f00f3a1Smrg case $host_os in 7379f00f3a1Smrg aix3*) 7389f00f3a1Smrg cat <<\_LT_EOF >> "$cfgfile" 7399f00f3a1Smrg# AIX sometimes has problems with the GCC collect2 program. For some 7409f00f3a1Smrg# reason, if we set the COLLECT_NAMES environment variable, the problems 7419f00f3a1Smrg# vanish in a puff of smoke. 7429f00f3a1Smrgif test "X${COLLECT_NAMES+set}" != Xset; then 7439f00f3a1Smrg COLLECT_NAMES= 7449f00f3a1Smrg export COLLECT_NAMES 7459f00f3a1Smrgfi 7469f00f3a1Smrg_LT_EOF 7479f00f3a1Smrg ;; 7489f00f3a1Smrg esac 7499f00f3a1Smrg 7509f00f3a1Smrg _LT_PROG_LTMAIN 7519f00f3a1Smrg 7529f00f3a1Smrg # We use sed instead of cat because bash on DJGPP gets confused if 7539f00f3a1Smrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 7549f00f3a1Smrg # text mode, it properly converts lines to CR/LF. This bash problem 7559f00f3a1Smrg # is reportedly fixed, but why not run on old versions too? 7569f00f3a1Smrg sed '$q' "$ltmain" >> "$cfgfile" \ 7579f00f3a1Smrg || (rm -f "$cfgfile"; exit 1) 7589f00f3a1Smrg 7599f00f3a1Smrg _LT_PROG_REPLACE_SHELLFNS 7609f00f3a1Smrg 7619f00f3a1Smrg mv -f "$cfgfile" "$ofile" || 7629f00f3a1Smrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7639f00f3a1Smrg chmod +x "$ofile" 7649f00f3a1Smrg], 7659f00f3a1Smrg[cat <<_LT_EOF >> "$ofile" 7669f00f3a1Smrg 7679f00f3a1Smrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 7689f00f3a1Smrgdnl in a comment (ie after a #). 7699f00f3a1Smrg# ### BEGIN LIBTOOL TAG CONFIG: $1 7709f00f3a1Smrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 7719f00f3a1Smrg# ### END LIBTOOL TAG CONFIG: $1 7729f00f3a1Smrg_LT_EOF 7739f00f3a1Smrg])dnl /m4_if 7749f00f3a1Smrg], 7759f00f3a1Smrg[m4_if([$1], [], [ 7769f00f3a1Smrg PACKAGE='$PACKAGE' 7779f00f3a1Smrg VERSION='$VERSION' 7789f00f3a1Smrg TIMESTAMP='$TIMESTAMP' 7799f00f3a1Smrg RM='$RM' 7809f00f3a1Smrg ofile='$ofile'], []) 7819f00f3a1Smrg])dnl /_LT_CONFIG_SAVE_COMMANDS 7829f00f3a1Smrg])# _LT_CONFIG 7839f00f3a1Smrg 7849f00f3a1Smrg 7859f00f3a1Smrg# LT_SUPPORTED_TAG(TAG) 7869f00f3a1Smrg# --------------------- 7879f00f3a1Smrg# Trace this macro to discover what tags are supported by the libtool 7889f00f3a1Smrg# --tag option, using: 7899f00f3a1Smrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 7909f00f3a1SmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 7919f00f3a1Smrg 7929f00f3a1Smrg 7939f00f3a1Smrg# C support is built-in for now 7949f00f3a1Smrgm4_define([_LT_LANG_C_enabled], []) 7959f00f3a1Smrgm4_define([_LT_TAGS], []) 7969f00f3a1Smrg 7979f00f3a1Smrg 7989f00f3a1Smrg# LT_LANG(LANG) 7999f00f3a1Smrg# ------------- 8009f00f3a1Smrg# Enable libtool support for the given language if not already enabled. 8019f00f3a1SmrgAC_DEFUN([LT_LANG], 8029f00f3a1Smrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 8039f00f3a1Smrgm4_case([$1], 8049f00f3a1Smrg [C], [_LT_LANG(C)], 8059f00f3a1Smrg [C++], [_LT_LANG(CXX)], 8069f00f3a1Smrg [Go], [_LT_LANG(GO)], 8079f00f3a1Smrg [Java], [_LT_LANG(GCJ)], 8089f00f3a1Smrg [Fortran 77], [_LT_LANG(F77)], 8099f00f3a1Smrg [Fortran], [_LT_LANG(FC)], 8109f00f3a1Smrg [Windows Resource], [_LT_LANG(RC)], 8119f00f3a1Smrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 8129f00f3a1Smrg [_LT_LANG($1)], 8139f00f3a1Smrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 8149f00f3a1Smrg])# LT_LANG 8159f00f3a1Smrg 8169f00f3a1Smrg 8179f00f3a1Smrg# _LT_LANG(LANGNAME) 8189f00f3a1Smrg# ------------------ 8199f00f3a1Smrgm4_defun([_LT_LANG], 8209f00f3a1Smrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 8219f00f3a1Smrg [LT_SUPPORTED_TAG([$1])dnl 8229f00f3a1Smrg m4_append([_LT_TAGS], [$1 ])dnl 8239f00f3a1Smrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 8249f00f3a1Smrg _LT_LANG_$1_CONFIG($1)])dnl 8259f00f3a1Smrg])# _LT_LANG 8269f00f3a1Smrg 8279f00f3a1Smrg 8289f00f3a1Smrgm4_ifndef([AC_PROG_GO], [ 8299f00f3a1Smrg############################################################ 8309f00f3a1Smrg# NOTE: This macro has been submitted for inclusion into # 8319f00f3a1Smrg# GNU Autoconf as AC_PROG_GO. When it is available in # 8329f00f3a1Smrg# a released version of Autoconf we should remove this # 8339f00f3a1Smrg# macro and use it instead. # 8349f00f3a1Smrg############################################################ 8359f00f3a1Smrgm4_defun([AC_PROG_GO], 8369f00f3a1Smrg[AC_LANG_PUSH(Go)dnl 8379f00f3a1SmrgAC_ARG_VAR([GOC], [Go compiler command])dnl 8389f00f3a1SmrgAC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 8399f00f3a1Smrg_AC_ARG_VAR_LDFLAGS()dnl 8409f00f3a1SmrgAC_CHECK_TOOL(GOC, gccgo) 8419f00f3a1Smrgif test -z "$GOC"; then 8429f00f3a1Smrg if test -n "$ac_tool_prefix"; then 8439f00f3a1Smrg AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 8449f00f3a1Smrg fi 8459f00f3a1Smrgfi 8469f00f3a1Smrgif test -z "$GOC"; then 8479f00f3a1Smrg AC_CHECK_PROG(GOC, gccgo, gccgo, false) 8489f00f3a1Smrgfi 8499f00f3a1Smrg])#m4_defun 8509f00f3a1Smrg])#m4_ifndef 8519f00f3a1Smrg 8529f00f3a1Smrg 8539f00f3a1Smrg# _LT_LANG_DEFAULT_CONFIG 8549f00f3a1Smrg# ----------------------- 8559f00f3a1Smrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 8569f00f3a1Smrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 8579f00f3a1Smrg [LT_LANG(CXX)], 8589f00f3a1Smrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 8599f00f3a1Smrg 8609f00f3a1SmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 8619f00f3a1Smrg [LT_LANG(F77)], 8629f00f3a1Smrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 8639f00f3a1Smrg 8649f00f3a1SmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 8659f00f3a1Smrg [LT_LANG(FC)], 8669f00f3a1Smrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 8679f00f3a1Smrg 8689f00f3a1Smrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 8699f00f3a1Smrgdnl pulling things in needlessly. 8709f00f3a1SmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 8719f00f3a1Smrg [LT_LANG(GCJ)], 8729f00f3a1Smrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 8739f00f3a1Smrg [LT_LANG(GCJ)], 8749f00f3a1Smrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 8759f00f3a1Smrg [LT_LANG(GCJ)], 8769f00f3a1Smrg [m4_ifdef([AC_PROG_GCJ], 8779f00f3a1Smrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 8789f00f3a1Smrg m4_ifdef([A][M_PROG_GCJ], 8799f00f3a1Smrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 8809f00f3a1Smrg m4_ifdef([LT_PROG_GCJ], 8819f00f3a1Smrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 8829f00f3a1Smrg 8839f00f3a1SmrgAC_PROVIDE_IFELSE([AC_PROG_GO], 8849f00f3a1Smrg [LT_LANG(GO)], 8859f00f3a1Smrg [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 8869f00f3a1Smrg 8879f00f3a1SmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 8889f00f3a1Smrg [LT_LANG(RC)], 8899f00f3a1Smrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 8909f00f3a1Smrg])# _LT_LANG_DEFAULT_CONFIG 8919f00f3a1Smrg 8929f00f3a1Smrg# Obsolete macros: 8939f00f3a1SmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 8949f00f3a1SmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 8959f00f3a1SmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 8969f00f3a1SmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 8979f00f3a1SmrgAU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 8989f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 8999f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 9009f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 9019f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 9029f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 9039f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_RC], []) 9049f00f3a1Smrg 9059f00f3a1Smrg 9069f00f3a1Smrg# _LT_TAG_COMPILER 9079f00f3a1Smrg# ---------------- 9089f00f3a1Smrgm4_defun([_LT_TAG_COMPILER], 9099f00f3a1Smrg[AC_REQUIRE([AC_PROG_CC])dnl 9109f00f3a1Smrg 9119f00f3a1Smrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 9129f00f3a1Smrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 9139f00f3a1Smrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 9149f00f3a1Smrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 9159f00f3a1Smrg 9169f00f3a1Smrg# If no C compiler was specified, use CC. 9179f00f3a1SmrgLTCC=${LTCC-"$CC"} 9189f00f3a1Smrg 9199f00f3a1Smrg# If no C compiler flags were specified, use CFLAGS. 9209f00f3a1SmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9219f00f3a1Smrg 9229f00f3a1Smrg# Allow CC to be a program name with arguments. 9239f00f3a1Smrgcompiler=$CC 9249f00f3a1Smrg])# _LT_TAG_COMPILER 9259f00f3a1Smrg 9269f00f3a1Smrg 9279f00f3a1Smrg# _LT_COMPILER_BOILERPLATE 9289f00f3a1Smrg# ------------------------ 9299f00f3a1Smrg# Check for compiler boilerplate output or warnings with 9309f00f3a1Smrg# the simple compiler test code. 9319f00f3a1Smrgm4_defun([_LT_COMPILER_BOILERPLATE], 9329f00f3a1Smrg[m4_require([_LT_DECL_SED])dnl 9339f00f3a1Smrgac_outfile=conftest.$ac_objext 9349f00f3a1Smrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 9359f00f3a1Smrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9369f00f3a1Smrg_lt_compiler_boilerplate=`cat conftest.err` 9379f00f3a1Smrg$RM conftest* 9389f00f3a1Smrg])# _LT_COMPILER_BOILERPLATE 9399f00f3a1Smrg 9409f00f3a1Smrg 9419f00f3a1Smrg# _LT_LINKER_BOILERPLATE 9429f00f3a1Smrg# ---------------------- 9439f00f3a1Smrg# Check for linker boilerplate output or warnings with 9449f00f3a1Smrg# the simple link test code. 9459f00f3a1Smrgm4_defun([_LT_LINKER_BOILERPLATE], 9469f00f3a1Smrg[m4_require([_LT_DECL_SED])dnl 9479f00f3a1Smrgac_outfile=conftest.$ac_objext 9489f00f3a1Smrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 9499f00f3a1Smrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9509f00f3a1Smrg_lt_linker_boilerplate=`cat conftest.err` 9519f00f3a1Smrg$RM -r conftest* 9529f00f3a1Smrg])# _LT_LINKER_BOILERPLATE 9539f00f3a1Smrg 9549f00f3a1Smrg# _LT_REQUIRED_DARWIN_CHECKS 9559f00f3a1Smrg# ------------------------- 9569f00f3a1Smrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 9579f00f3a1Smrg case $host_os in 9589f00f3a1Smrg rhapsody* | darwin*) 9599f00f3a1Smrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 9609f00f3a1Smrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 9619f00f3a1Smrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 9629f00f3a1Smrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 9639f00f3a1Smrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 9649f00f3a1Smrg _LT_DECL([], [DSYMUTIL], [1], 9659f00f3a1Smrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 9669f00f3a1Smrg _LT_DECL([], [NMEDIT], [1], 9679f00f3a1Smrg [Tool to change global to local symbols on Mac OS X]) 9689f00f3a1Smrg _LT_DECL([], [LIPO], [1], 9699f00f3a1Smrg [Tool to manipulate fat objects and archives on Mac OS X]) 9709f00f3a1Smrg _LT_DECL([], [OTOOL], [1], 9719f00f3a1Smrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 9729f00f3a1Smrg _LT_DECL([], [OTOOL64], [1], 9739f00f3a1Smrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 9749f00f3a1Smrg 9759f00f3a1Smrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 9769f00f3a1Smrg [lt_cv_apple_cc_single_mod=no 9779f00f3a1Smrg if test -z "${LT_MULTI_MODULE}"; then 9789f00f3a1Smrg # By default we will add the -single_module flag. You can override 9799f00f3a1Smrg # by either setting the environment variable LT_MULTI_MODULE 9809f00f3a1Smrg # non-empty at configure time, or by adding -multi_module to the 9819f00f3a1Smrg # link flags. 9829f00f3a1Smrg rm -rf libconftest.dylib* 9839f00f3a1Smrg echo "int foo(void){return 1;}" > conftest.c 9849f00f3a1Smrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9859f00f3a1Smrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 9869f00f3a1Smrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9879f00f3a1Smrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9889f00f3a1Smrg _lt_result=$? 9899f00f3a1Smrg # If there is a non-empty error log, and "single_module" 9909f00f3a1Smrg # appears in it, assume the flag caused a linker warning 9919f00f3a1Smrg if test -s conftest.err && $GREP single_module conftest.err; then 9929f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 9939f00f3a1Smrg # Otherwise, if the output was created with a 0 exit code from 9949f00f3a1Smrg # the compiler, it worked. 9959f00f3a1Smrg elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9969f00f3a1Smrg lt_cv_apple_cc_single_mod=yes 9979f00f3a1Smrg else 9989f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 9999f00f3a1Smrg fi 10009f00f3a1Smrg rm -rf libconftest.dylib* 10019f00f3a1Smrg rm -f conftest.* 10029f00f3a1Smrg fi]) 10039f00f3a1Smrg 10049f00f3a1Smrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 10059f00f3a1Smrg [lt_cv_ld_exported_symbols_list], 10069f00f3a1Smrg [lt_cv_ld_exported_symbols_list=no 10079f00f3a1Smrg save_LDFLAGS=$LDFLAGS 10089f00f3a1Smrg echo "_main" > conftest.sym 10099f00f3a1Smrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10109f00f3a1Smrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 10119f00f3a1Smrg [lt_cv_ld_exported_symbols_list=yes], 10129f00f3a1Smrg [lt_cv_ld_exported_symbols_list=no]) 10139f00f3a1Smrg LDFLAGS="$save_LDFLAGS" 10149f00f3a1Smrg ]) 10159f00f3a1Smrg 10169f00f3a1Smrg AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 10179f00f3a1Smrg [lt_cv_ld_force_load=no 10189f00f3a1Smrg cat > conftest.c << _LT_EOF 10199f00f3a1Smrgint forced_loaded() { return 2;} 10209f00f3a1Smrg_LT_EOF 10219f00f3a1Smrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 10229f00f3a1Smrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 10239f00f3a1Smrg echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 10249f00f3a1Smrg $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 10259f00f3a1Smrg echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 10269f00f3a1Smrg $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 10279f00f3a1Smrg cat > conftest.c << _LT_EOF 10289f00f3a1Smrgint main() { return 0;} 10299f00f3a1Smrg_LT_EOF 10309f00f3a1Smrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 10319f00f3a1Smrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10329f00f3a1Smrg _lt_result=$? 10339f00f3a1Smrg if test -s conftest.err && $GREP force_load conftest.err; then 10349f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 10359f00f3a1Smrg elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 10369f00f3a1Smrg lt_cv_ld_force_load=yes 10379f00f3a1Smrg else 10389f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 10399f00f3a1Smrg fi 10409f00f3a1Smrg rm -f conftest.err libconftest.a conftest conftest.c 10419f00f3a1Smrg rm -rf conftest.dSYM 10429f00f3a1Smrg ]) 10439f00f3a1Smrg case $host_os in 10449f00f3a1Smrg rhapsody* | darwin1.[[012]]) 10459f00f3a1Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 10469f00f3a1Smrg darwin1.*) 10479f00f3a1Smrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10489f00f3a1Smrg darwin*) # darwin 5.x on 10499f00f3a1Smrg # if running on 10.5 or later, the deployment target defaults 10509f00f3a1Smrg # to the OS version, if on x86, and 10.4, the deployment 10519f00f3a1Smrg # target defaults to 10.4. Don't you love it? 10529f00f3a1Smrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 10539f00f3a1Smrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 10549f00f3a1Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10559f00f3a1Smrg 10.[[012]]*) 10569f00f3a1Smrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 10579f00f3a1Smrg 10.*) 10589f00f3a1Smrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 10599f00f3a1Smrg esac 10609f00f3a1Smrg ;; 10619f00f3a1Smrg esac 10629f00f3a1Smrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 10639f00f3a1Smrg _lt_dar_single_mod='$single_module' 10649f00f3a1Smrg fi 10659f00f3a1Smrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 10669f00f3a1Smrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 10679f00f3a1Smrg else 10689f00f3a1Smrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 10699f00f3a1Smrg fi 10709f00f3a1Smrg if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 10719f00f3a1Smrg _lt_dsymutil='~$DSYMUTIL $lib || :' 10729f00f3a1Smrg else 10739f00f3a1Smrg _lt_dsymutil= 10749f00f3a1Smrg fi 10759f00f3a1Smrg ;; 10769f00f3a1Smrg esac 10779f00f3a1Smrg]) 10789f00f3a1Smrg 10799f00f3a1Smrg 10809f00f3a1Smrg# _LT_DARWIN_LINKER_FEATURES([TAG]) 10819f00f3a1Smrg# --------------------------------- 10829f00f3a1Smrg# Checks for linker and compiler features on darwin 10839f00f3a1Smrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 10849f00f3a1Smrg[ 10859f00f3a1Smrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 10869f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 10879f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 10889f00f3a1Smrg _LT_TAGVAR(hardcode_automatic, $1)=yes 10899f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 10909f00f3a1Smrg if test "$lt_cv_ld_force_load" = "yes"; then 10919f00f3a1Smrg _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\"`' 10929f00f3a1Smrg m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 10939f00f3a1Smrg [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 10949f00f3a1Smrg else 10959f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 10969f00f3a1Smrg fi 10979f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 10989f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 10999f00f3a1Smrg case $cc_basename in 11009f00f3a1Smrg ifort*) _lt_dar_can_shared=yes ;; 11019f00f3a1Smrg *) _lt_dar_can_shared=$GCC ;; 11029f00f3a1Smrg esac 11039f00f3a1Smrg if test "$_lt_dar_can_shared" = "yes"; then 11049f00f3a1Smrg output_verbose_link_cmd=func_echo_all 11059f00f3a1Smrg _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}" 11069f00f3a1Smrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11079f00f3a1Smrg _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}" 11089f00f3a1Smrg _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}" 11099f00f3a1Smrg m4_if([$1], [CXX], 11109f00f3a1Smrg[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 11119f00f3a1Smrg _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}" 11129f00f3a1Smrg _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}" 11139f00f3a1Smrg fi 11149f00f3a1Smrg],[]) 11159f00f3a1Smrg else 11169f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 11179f00f3a1Smrg fi 11189f00f3a1Smrg]) 11199f00f3a1Smrg 11209f00f3a1Smrg# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 11219f00f3a1Smrg# ---------------------------------- 11229f00f3a1Smrg# Links a minimal program and checks the executable 11239f00f3a1Smrg# for the system default hardcoded library path. In most cases, 11249f00f3a1Smrg# this is /usr/lib:/lib, but when the MPI compilers are used 11259f00f3a1Smrg# the location of the communication and MPI libs are included too. 11269f00f3a1Smrg# If we don't find anything, use the default library path according 11279f00f3a1Smrg# to the aix ld manual. 11289f00f3a1Smrg# Store the results from the different compilers for each TAGNAME. 11299f00f3a1Smrg# Allow to override them for all tags through lt_cv_aix_libpath. 11309f00f3a1Smrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 11319f00f3a1Smrg[m4_require([_LT_DECL_SED])dnl 11329f00f3a1Smrgif test "${lt_cv_aix_libpath+set}" = set; then 11339f00f3a1Smrg aix_libpath=$lt_cv_aix_libpath 11349f00f3a1Smrgelse 11359f00f3a1Smrg AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 11369f00f3a1Smrg [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 11379f00f3a1Smrg lt_aix_libpath_sed='[ 11389f00f3a1Smrg /Import File Strings/,/^$/ { 11399f00f3a1Smrg /^0/ { 11409f00f3a1Smrg s/^0 *\([^ ]*\) *$/\1/ 11419f00f3a1Smrg p 11429f00f3a1Smrg } 11439f00f3a1Smrg }]' 11449f00f3a1Smrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11459f00f3a1Smrg # Check for a 64-bit object if we didn't find anything. 11469f00f3a1Smrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 11479f00f3a1Smrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11489f00f3a1Smrg fi],[]) 11499f00f3a1Smrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 11509f00f3a1Smrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 11519f00f3a1Smrg fi 11529f00f3a1Smrg ]) 11539f00f3a1Smrg aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 11549f00f3a1Smrgfi 11559f00f3a1Smrg])# _LT_SYS_MODULE_PATH_AIX 11569f00f3a1Smrg 11579f00f3a1Smrg 11589f00f3a1Smrg# _LT_SHELL_INIT(ARG) 11599f00f3a1Smrg# ------------------- 11609f00f3a1Smrgm4_define([_LT_SHELL_INIT], 11619f00f3a1Smrg[m4_divert_text([M4SH-INIT], [$1 11629f00f3a1Smrg])])# _LT_SHELL_INIT 11639f00f3a1Smrg 11649f00f3a1Smrg 11659f00f3a1Smrg 11669f00f3a1Smrg# _LT_PROG_ECHO_BACKSLASH 11679f00f3a1Smrg# ----------------------- 11689f00f3a1Smrg# Find how we can fake an echo command that does not interpret backslash. 11699f00f3a1Smrg# In particular, with Autoconf 2.60 or later we add some code to the start 11709f00f3a1Smrg# of the generated configure script which will find a shell with a builtin 11719f00f3a1Smrg# printf (which we can use as an echo command). 11729f00f3a1Smrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 11739f00f3a1Smrg[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11749f00f3a1SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11759f00f3a1SmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11769f00f3a1Smrg 11779f00f3a1SmrgAC_MSG_CHECKING([how to print strings]) 11789f00f3a1Smrg# Test print first, because it will be a builtin if present. 11799f00f3a1Smrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11809f00f3a1Smrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11819f00f3a1Smrg ECHO='print -r --' 11829f00f3a1Smrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11839f00f3a1Smrg ECHO='printf %s\n' 11849f00f3a1Smrgelse 11859f00f3a1Smrg # Use this function as a fallback that always works. 11869f00f3a1Smrg func_fallback_echo () 11879f00f3a1Smrg { 11889f00f3a1Smrg eval 'cat <<_LTECHO_EOF 11899f00f3a1Smrg$[]1 11909f00f3a1Smrg_LTECHO_EOF' 11919f00f3a1Smrg } 11929f00f3a1Smrg ECHO='func_fallback_echo' 11939f00f3a1Smrgfi 11949f00f3a1Smrg 11959f00f3a1Smrg# func_echo_all arg... 11969f00f3a1Smrg# Invoke $ECHO with all args, space-separated. 11979f00f3a1Smrgfunc_echo_all () 11989f00f3a1Smrg{ 11999f00f3a1Smrg $ECHO "$*" 12009f00f3a1Smrg} 12019f00f3a1Smrg 12029f00f3a1Smrgcase "$ECHO" in 12039f00f3a1Smrg printf*) AC_MSG_RESULT([printf]) ;; 12049f00f3a1Smrg print*) AC_MSG_RESULT([print -r]) ;; 12059f00f3a1Smrg *) AC_MSG_RESULT([cat]) ;; 12069f00f3a1Smrgesac 12079f00f3a1Smrg 12089f00f3a1Smrgm4_ifdef([_AS_DETECT_SUGGESTED], 12099f00f3a1Smrg[_AS_DETECT_SUGGESTED([ 12109f00f3a1Smrg test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 12119f00f3a1Smrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12129f00f3a1Smrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12139f00f3a1Smrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12149f00f3a1Smrg PATH=/empty FPATH=/empty; export PATH FPATH 12159f00f3a1Smrg test "X`printf %s $ECHO`" = "X$ECHO" \ 12169f00f3a1Smrg || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 12179f00f3a1Smrg 12189f00f3a1Smrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 12199f00f3a1Smrg_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 12209f00f3a1Smrg])# _LT_PROG_ECHO_BACKSLASH 12219f00f3a1Smrg 12229f00f3a1Smrg 12239f00f3a1Smrg# _LT_WITH_SYSROOT 12249f00f3a1Smrg# ---------------- 12259f00f3a1SmrgAC_DEFUN([_LT_WITH_SYSROOT], 12269f00f3a1Smrg[AC_MSG_CHECKING([for sysroot]) 12279f00f3a1SmrgAC_ARG_WITH([sysroot], 12289f00f3a1Smrg[ --with-sysroot[=DIR] Search for dependent libraries within DIR 12299f00f3a1Smrg (or the compiler's sysroot if not specified).], 12309f00f3a1Smrg[], [with_sysroot=no]) 12319f00f3a1Smrg 12329f00f3a1Smrgdnl lt_sysroot will always be passed unquoted. We quote it here 12339f00f3a1Smrgdnl in case the user passed a directory name. 12349f00f3a1Smrglt_sysroot= 12359f00f3a1Smrgcase ${with_sysroot} in #( 12369f00f3a1Smrg yes) 12379f00f3a1Smrg if test "$GCC" = yes; then 12389f00f3a1Smrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12399f00f3a1Smrg fi 12409f00f3a1Smrg ;; #( 12419f00f3a1Smrg /*) 12429f00f3a1Smrg lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12439f00f3a1Smrg ;; #( 12449f00f3a1Smrg no|'') 12459f00f3a1Smrg ;; #( 12469f00f3a1Smrg *) 12479f00f3a1Smrg AC_MSG_RESULT([${with_sysroot}]) 12489f00f3a1Smrg AC_MSG_ERROR([The sysroot must be an absolute path.]) 12499f00f3a1Smrg ;; 12509f00f3a1Smrgesac 12519f00f3a1Smrg 12529f00f3a1Smrg AC_MSG_RESULT([${lt_sysroot:-no}]) 12539f00f3a1Smrg_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 12549f00f3a1Smrg[dependent libraries, and in which our libraries should be installed.])]) 12559f00f3a1Smrg 12569f00f3a1Smrg# _LT_ENABLE_LOCK 12579f00f3a1Smrg# --------------- 12589f00f3a1Smrgm4_defun([_LT_ENABLE_LOCK], 12599f00f3a1Smrg[AC_ARG_ENABLE([libtool-lock], 12609f00f3a1Smrg [AS_HELP_STRING([--disable-libtool-lock], 12619f00f3a1Smrg [avoid locking (might break parallel builds)])]) 12629f00f3a1Smrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12639f00f3a1Smrg 12649f00f3a1Smrg# Some flags need to be propagated to the compiler or linker for good 12659f00f3a1Smrg# libtool support. 12669f00f3a1Smrgcase $host in 12679f00f3a1Smrgia64-*-hpux*) 12689f00f3a1Smrg # Find out which ABI we are using. 12699f00f3a1Smrg echo 'int i;' > conftest.$ac_ext 12709f00f3a1Smrg if AC_TRY_EVAL(ac_compile); then 12719f00f3a1Smrg case `/usr/bin/file conftest.$ac_objext` in 12729f00f3a1Smrg *ELF-32*) 12739f00f3a1Smrg HPUX_IA64_MODE="32" 12749f00f3a1Smrg ;; 12759f00f3a1Smrg *ELF-64*) 12769f00f3a1Smrg HPUX_IA64_MODE="64" 12779f00f3a1Smrg ;; 12789f00f3a1Smrg esac 12799f00f3a1Smrg fi 12809f00f3a1Smrg rm -rf conftest* 12819f00f3a1Smrg ;; 12829f00f3a1Smrg*-*-irix6*) 12839f00f3a1Smrg # Find out which ABI we are using. 12849f00f3a1Smrg echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 12859f00f3a1Smrg if AC_TRY_EVAL(ac_compile); then 12869f00f3a1Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 12879f00f3a1Smrg case `/usr/bin/file conftest.$ac_objext` in 12889f00f3a1Smrg *32-bit*) 12899f00f3a1Smrg LD="${LD-ld} -melf32bsmip" 12909f00f3a1Smrg ;; 12919f00f3a1Smrg *N32*) 12929f00f3a1Smrg LD="${LD-ld} -melf32bmipn32" 12939f00f3a1Smrg ;; 12949f00f3a1Smrg *64-bit*) 12959f00f3a1Smrg LD="${LD-ld} -melf64bmip" 12969f00f3a1Smrg ;; 12979f00f3a1Smrg esac 12989f00f3a1Smrg else 12999f00f3a1Smrg case `/usr/bin/file conftest.$ac_objext` in 13009f00f3a1Smrg *32-bit*) 13019f00f3a1Smrg LD="${LD-ld} -32" 13029f00f3a1Smrg ;; 13039f00f3a1Smrg *N32*) 13049f00f3a1Smrg LD="${LD-ld} -n32" 13059f00f3a1Smrg ;; 13069f00f3a1Smrg *64-bit*) 13079f00f3a1Smrg LD="${LD-ld} -64" 13089f00f3a1Smrg ;; 13099f00f3a1Smrg esac 13109f00f3a1Smrg fi 13119f00f3a1Smrg fi 13129f00f3a1Smrg rm -rf conftest* 13139f00f3a1Smrg ;; 13149f00f3a1Smrg 13159f00f3a1Smrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13169f00f3a1Smrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13179f00f3a1Smrg # Find out which ABI we are using. 13189f00f3a1Smrg echo 'int i;' > conftest.$ac_ext 13199f00f3a1Smrg if AC_TRY_EVAL(ac_compile); then 13209f00f3a1Smrg case `/usr/bin/file conftest.o` in 13219f00f3a1Smrg *32-bit*) 13229f00f3a1Smrg case $host in 13239f00f3a1Smrg x86_64-*kfreebsd*-gnu) 13249f00f3a1Smrg LD="${LD-ld} -m elf_i386_fbsd" 13259f00f3a1Smrg ;; 13269f00f3a1Smrg x86_64-*linux*) 13279f00f3a1Smrg case `/usr/bin/file conftest.o` in 13289f00f3a1Smrg *x86-64*) 13299f00f3a1Smrg LD="${LD-ld} -m elf32_x86_64" 13309f00f3a1Smrg ;; 13319f00f3a1Smrg *) 13329f00f3a1Smrg LD="${LD-ld} -m elf_i386" 13339f00f3a1Smrg ;; 13349f00f3a1Smrg esac 13359f00f3a1Smrg ;; 13369f00f3a1Smrg powerpc64le-*) 13379f00f3a1Smrg LD="${LD-ld} -m elf32lppclinux" 13389f00f3a1Smrg ;; 13399f00f3a1Smrg powerpc64-*) 13409f00f3a1Smrg LD="${LD-ld} -m elf32ppclinux" 13419f00f3a1Smrg ;; 13429f00f3a1Smrg s390x-*linux*) 13439f00f3a1Smrg LD="${LD-ld} -m elf_s390" 13449f00f3a1Smrg ;; 13459f00f3a1Smrg sparc64-*linux*) 13469f00f3a1Smrg LD="${LD-ld} -m elf32_sparc" 13479f00f3a1Smrg ;; 13489f00f3a1Smrg esac 13499f00f3a1Smrg ;; 13509f00f3a1Smrg *64-bit*) 13519f00f3a1Smrg case $host in 13529f00f3a1Smrg x86_64-*kfreebsd*-gnu) 13539f00f3a1Smrg LD="${LD-ld} -m elf_x86_64_fbsd" 13549f00f3a1Smrg ;; 13559f00f3a1Smrg x86_64-*linux*) 13569f00f3a1Smrg LD="${LD-ld} -m elf_x86_64" 13579f00f3a1Smrg ;; 13589f00f3a1Smrg powerpcle-*) 13599f00f3a1Smrg LD="${LD-ld} -m elf64lppc" 13609f00f3a1Smrg ;; 13619f00f3a1Smrg powerpc-*) 13629f00f3a1Smrg LD="${LD-ld} -m elf64ppc" 13639f00f3a1Smrg ;; 13649f00f3a1Smrg s390*-*linux*|s390*-*tpf*) 13659f00f3a1Smrg LD="${LD-ld} -m elf64_s390" 13669f00f3a1Smrg ;; 13679f00f3a1Smrg sparc*-*linux*) 13689f00f3a1Smrg LD="${LD-ld} -m elf64_sparc" 13699f00f3a1Smrg ;; 13709f00f3a1Smrg esac 13719f00f3a1Smrg ;; 13729f00f3a1Smrg esac 13739f00f3a1Smrg fi 13749f00f3a1Smrg rm -rf conftest* 13759f00f3a1Smrg ;; 13769f00f3a1Smrg 13779f00f3a1Smrg*-*-sco3.2v5*) 13789f00f3a1Smrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13799f00f3a1Smrg SAVE_CFLAGS="$CFLAGS" 13809f00f3a1Smrg CFLAGS="$CFLAGS -belf" 13819f00f3a1Smrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 13829f00f3a1Smrg [AC_LANG_PUSH(C) 13839f00f3a1Smrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 13849f00f3a1Smrg AC_LANG_POP]) 13859f00f3a1Smrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13869f00f3a1Smrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13879f00f3a1Smrg CFLAGS="$SAVE_CFLAGS" 13889f00f3a1Smrg fi 13899f00f3a1Smrg ;; 13909f00f3a1Smrg*-*solaris*) 13919f00f3a1Smrg # Find out which ABI we are using. 13929f00f3a1Smrg echo 'int i;' > conftest.$ac_ext 13939f00f3a1Smrg if AC_TRY_EVAL(ac_compile); then 13949f00f3a1Smrg case `/usr/bin/file conftest.o` in 13959f00f3a1Smrg *64-bit*) 13969f00f3a1Smrg case $lt_cv_prog_gnu_ld in 13979f00f3a1Smrg yes*) 13989f00f3a1Smrg case $host in 13999f00f3a1Smrg i?86-*-solaris*) 14009f00f3a1Smrg LD="${LD-ld} -m elf_x86_64" 14019f00f3a1Smrg ;; 14029f00f3a1Smrg sparc*-*-solaris*) 14039f00f3a1Smrg LD="${LD-ld} -m elf64_sparc" 14049f00f3a1Smrg ;; 14059f00f3a1Smrg esac 14069f00f3a1Smrg # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14079f00f3a1Smrg if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14089f00f3a1Smrg LD="${LD-ld}_sol2" 14099f00f3a1Smrg fi 14109f00f3a1Smrg ;; 14119f00f3a1Smrg *) 14129f00f3a1Smrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14139f00f3a1Smrg LD="${LD-ld} -64" 14149f00f3a1Smrg fi 14159f00f3a1Smrg ;; 14169f00f3a1Smrg esac 14179f00f3a1Smrg ;; 14189f00f3a1Smrg esac 14199f00f3a1Smrg fi 14209f00f3a1Smrg rm -rf conftest* 14219f00f3a1Smrg ;; 14229f00f3a1Smrgesac 14239f00f3a1Smrg 14249f00f3a1Smrgneed_locks="$enable_libtool_lock" 14259f00f3a1Smrg])# _LT_ENABLE_LOCK 14269f00f3a1Smrg 14279f00f3a1Smrg 14289f00f3a1Smrg# _LT_PROG_AR 14299f00f3a1Smrg# ----------- 14309f00f3a1Smrgm4_defun([_LT_PROG_AR], 14319f00f3a1Smrg[AC_CHECK_TOOLS(AR, [ar], false) 14329f00f3a1Smrg: ${AR=ar} 14339f00f3a1Smrg: ${AR_FLAGS=cru} 14349f00f3a1Smrg_LT_DECL([], [AR], [1], [The archiver]) 14359f00f3a1Smrg_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 14369f00f3a1Smrg 14379f00f3a1SmrgAC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 14389f00f3a1Smrg [lt_cv_ar_at_file=no 14399f00f3a1Smrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 14409f00f3a1Smrg [echo conftest.$ac_objext > conftest.lst 14419f00f3a1Smrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 14429f00f3a1Smrg AC_TRY_EVAL([lt_ar_try]) 14439f00f3a1Smrg if test "$ac_status" -eq 0; then 14449f00f3a1Smrg # Ensure the archiver fails upon bogus file names. 14459f00f3a1Smrg rm -f conftest.$ac_objext libconftest.a 14469f00f3a1Smrg AC_TRY_EVAL([lt_ar_try]) 14479f00f3a1Smrg if test "$ac_status" -ne 0; then 14489f00f3a1Smrg lt_cv_ar_at_file=@ 14499f00f3a1Smrg fi 14509f00f3a1Smrg fi 14519f00f3a1Smrg rm -f conftest.* libconftest.a 14529f00f3a1Smrg ]) 14539f00f3a1Smrg ]) 14549f00f3a1Smrg 14559f00f3a1Smrgif test "x$lt_cv_ar_at_file" = xno; then 14569f00f3a1Smrg archiver_list_spec= 14579f00f3a1Smrgelse 14589f00f3a1Smrg archiver_list_spec=$lt_cv_ar_at_file 14599f00f3a1Smrgfi 14609f00f3a1Smrg_LT_DECL([], [archiver_list_spec], [1], 14619f00f3a1Smrg [How to feed a file listing to the archiver]) 14629f00f3a1Smrg])# _LT_PROG_AR 14639f00f3a1Smrg 14649f00f3a1Smrg 14659f00f3a1Smrg# _LT_CMD_OLD_ARCHIVE 14669f00f3a1Smrg# ------------------- 14679f00f3a1Smrgm4_defun([_LT_CMD_OLD_ARCHIVE], 14689f00f3a1Smrg[_LT_PROG_AR 14699f00f3a1Smrg 14709f00f3a1SmrgAC_CHECK_TOOL(STRIP, strip, :) 14719f00f3a1Smrgtest -z "$STRIP" && STRIP=: 14729f00f3a1Smrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 14739f00f3a1Smrg 14749f00f3a1SmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 14759f00f3a1Smrgtest -z "$RANLIB" && RANLIB=: 14769f00f3a1Smrg_LT_DECL([], [RANLIB], [1], 14779f00f3a1Smrg [Commands used to install an old-style archive]) 14789f00f3a1Smrg 14799f00f3a1Smrg# Determine commands to create old-style static archives. 14809f00f3a1Smrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 14819f00f3a1Smrgold_postinstall_cmds='chmod 644 $oldlib' 14829f00f3a1Smrgold_postuninstall_cmds= 14839f00f3a1Smrg 14849f00f3a1Smrgif test -n "$RANLIB"; then 14859f00f3a1Smrg case $host_os in 14869f00f3a1Smrg openbsd*) 14879f00f3a1Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 14889f00f3a1Smrg ;; 14899f00f3a1Smrg *) 14909f00f3a1Smrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 14919f00f3a1Smrg ;; 14929f00f3a1Smrg esac 14939f00f3a1Smrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 14949f00f3a1Smrgfi 14959f00f3a1Smrg 14969f00f3a1Smrgcase $host_os in 14979f00f3a1Smrg darwin*) 14989f00f3a1Smrg lock_old_archive_extraction=yes ;; 14999f00f3a1Smrg *) 15009f00f3a1Smrg lock_old_archive_extraction=no ;; 15019f00f3a1Smrgesac 15029f00f3a1Smrg_LT_DECL([], [old_postinstall_cmds], [2]) 15039f00f3a1Smrg_LT_DECL([], [old_postuninstall_cmds], [2]) 15049f00f3a1Smrg_LT_TAGDECL([], [old_archive_cmds], [2], 15059f00f3a1Smrg [Commands used to build an old-style archive]) 15069f00f3a1Smrg_LT_DECL([], [lock_old_archive_extraction], [0], 15079f00f3a1Smrg [Whether to use a lock for old archive extraction]) 15089f00f3a1Smrg])# _LT_CMD_OLD_ARCHIVE 15099f00f3a1Smrg 15109f00f3a1Smrg 15119f00f3a1Smrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 15129f00f3a1Smrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 15139f00f3a1Smrg# ---------------------------------------------------------------- 15149f00f3a1Smrg# Check whether the given compiler option works 15159f00f3a1SmrgAC_DEFUN([_LT_COMPILER_OPTION], 15169f00f3a1Smrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 15179f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 15189f00f3a1SmrgAC_CACHE_CHECK([$1], [$2], 15199f00f3a1Smrg [$2=no 15209f00f3a1Smrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 15219f00f3a1Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15229f00f3a1Smrg lt_compiler_flag="$3" 15239f00f3a1Smrg # Insert the option either (1) after the last *FLAGS variable, or 15249f00f3a1Smrg # (2) before a word containing "conftest.", or (3) at the end. 15259f00f3a1Smrg # Note that $ac_compile itself does not contain backslashes and begins 15269f00f3a1Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 15279f00f3a1Smrg # The option is referenced via a variable to avoid confusing sed. 15289f00f3a1Smrg lt_compile=`echo "$ac_compile" | $SED \ 15299f00f3a1Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15309f00f3a1Smrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 15319f00f3a1Smrg -e 's:$: $lt_compiler_flag:'` 15329f00f3a1Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 15339f00f3a1Smrg (eval "$lt_compile" 2>conftest.err) 15349f00f3a1Smrg ac_status=$? 15359f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 15369f00f3a1Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 15379f00f3a1Smrg if (exit $ac_status) && test -s "$ac_outfile"; then 15389f00f3a1Smrg # The compiler can only warn and ignore the option if not recognized 15399f00f3a1Smrg # So say no if there are warnings other than the usual output. 15409f00f3a1Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15419f00f3a1Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15429f00f3a1Smrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15439f00f3a1Smrg $2=yes 15449f00f3a1Smrg fi 15459f00f3a1Smrg fi 15469f00f3a1Smrg $RM conftest* 15479f00f3a1Smrg]) 15489f00f3a1Smrg 15499f00f3a1Smrgif test x"[$]$2" = xyes; then 15509f00f3a1Smrg m4_if([$5], , :, [$5]) 15519f00f3a1Smrgelse 15529f00f3a1Smrg m4_if([$6], , :, [$6]) 15539f00f3a1Smrgfi 15549f00f3a1Smrg])# _LT_COMPILER_OPTION 15559f00f3a1Smrg 15569f00f3a1Smrg# Old name: 15579f00f3a1SmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 15589f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 15599f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 15609f00f3a1Smrg 15619f00f3a1Smrg 15629f00f3a1Smrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 15639f00f3a1Smrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 15649f00f3a1Smrg# ---------------------------------------------------- 15659f00f3a1Smrg# Check whether the given linker option works 15669f00f3a1SmrgAC_DEFUN([_LT_LINKER_OPTION], 15679f00f3a1Smrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 15689f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 15699f00f3a1SmrgAC_CACHE_CHECK([$1], [$2], 15709f00f3a1Smrg [$2=no 15719f00f3a1Smrg save_LDFLAGS="$LDFLAGS" 15729f00f3a1Smrg LDFLAGS="$LDFLAGS $3" 15739f00f3a1Smrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 15749f00f3a1Smrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15759f00f3a1Smrg # The linker can only warn and ignore the option if not recognized 15769f00f3a1Smrg # So say no if there are warnings 15779f00f3a1Smrg if test -s conftest.err; then 15789f00f3a1Smrg # Append any errors to the config.log. 15799f00f3a1Smrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 15809f00f3a1Smrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15819f00f3a1Smrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15829f00f3a1Smrg if diff conftest.exp conftest.er2 >/dev/null; then 15839f00f3a1Smrg $2=yes 15849f00f3a1Smrg fi 15859f00f3a1Smrg else 15869f00f3a1Smrg $2=yes 15879f00f3a1Smrg fi 15889f00f3a1Smrg fi 15899f00f3a1Smrg $RM -r conftest* 15909f00f3a1Smrg LDFLAGS="$save_LDFLAGS" 15919f00f3a1Smrg]) 15929f00f3a1Smrg 15939f00f3a1Smrgif test x"[$]$2" = xyes; then 15949f00f3a1Smrg m4_if([$4], , :, [$4]) 15959f00f3a1Smrgelse 15969f00f3a1Smrg m4_if([$5], , :, [$5]) 15979f00f3a1Smrgfi 15989f00f3a1Smrg])# _LT_LINKER_OPTION 15999f00f3a1Smrg 16009f00f3a1Smrg# Old name: 16019f00f3a1SmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 16029f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 16039f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 16049f00f3a1Smrg 16059f00f3a1Smrg 16069f00f3a1Smrg# LT_CMD_MAX_LEN 16079f00f3a1Smrg#--------------- 16089f00f3a1SmrgAC_DEFUN([LT_CMD_MAX_LEN], 16099f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 16109f00f3a1Smrg# find the maximum length of command line arguments 16119f00f3a1SmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 16129f00f3a1SmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 16139f00f3a1Smrg i=0 16149f00f3a1Smrg teststring="ABCD" 16159f00f3a1Smrg 16169f00f3a1Smrg case $build_os in 16179f00f3a1Smrg msdosdjgpp*) 16189f00f3a1Smrg # On DJGPP, this test can blow up pretty badly due to problems in libc 16199f00f3a1Smrg # (any single argument exceeding 2000 bytes causes a buffer overrun 16209f00f3a1Smrg # during glob expansion). Even if it were fixed, the result of this 16219f00f3a1Smrg # check would be larger than it should be. 16229f00f3a1Smrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 16239f00f3a1Smrg ;; 16249f00f3a1Smrg 16259f00f3a1Smrg gnu*) 16269f00f3a1Smrg # Under GNU Hurd, this test is not required because there is 16279f00f3a1Smrg # no limit to the length of command line arguments. 16289f00f3a1Smrg # Libtool will interpret -1 as no limit whatsoever 16299f00f3a1Smrg lt_cv_sys_max_cmd_len=-1; 16309f00f3a1Smrg ;; 16319f00f3a1Smrg 16329f00f3a1Smrg cygwin* | mingw* | cegcc*) 16339f00f3a1Smrg # On Win9x/ME, this test blows up -- it succeeds, but takes 16349f00f3a1Smrg # about 5 minutes as the teststring grows exponentially. 16359f00f3a1Smrg # Worse, since 9x/ME are not pre-emptively multitasking, 16369f00f3a1Smrg # you end up with a "frozen" computer, even though with patience 16379f00f3a1Smrg # the test eventually succeeds (with a max line length of 256k). 16389f00f3a1Smrg # Instead, let's just punt: use the minimum linelength reported by 16399f00f3a1Smrg # all of the supported platforms: 8192 (on NT/2K/XP). 16409f00f3a1Smrg lt_cv_sys_max_cmd_len=8192; 16419f00f3a1Smrg ;; 16429f00f3a1Smrg 16439f00f3a1Smrg mint*) 16449f00f3a1Smrg # On MiNT this can take a long time and run out of memory. 16459f00f3a1Smrg lt_cv_sys_max_cmd_len=8192; 16469f00f3a1Smrg ;; 16479f00f3a1Smrg 16489f00f3a1Smrg amigaos*) 16499f00f3a1Smrg # On AmigaOS with pdksh, this test takes hours, literally. 16509f00f3a1Smrg # So we just punt and use a minimum line length of 8192. 16519f00f3a1Smrg lt_cv_sys_max_cmd_len=8192; 16529f00f3a1Smrg ;; 16539f00f3a1Smrg 16549f00f3a1Smrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 16559f00f3a1Smrg # This has been around since 386BSD, at least. Likely further. 16569f00f3a1Smrg if test -x /sbin/sysctl; then 16579f00f3a1Smrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16589f00f3a1Smrg elif test -x /usr/sbin/sysctl; then 16599f00f3a1Smrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16609f00f3a1Smrg else 16619f00f3a1Smrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16629f00f3a1Smrg fi 16639f00f3a1Smrg # And add a safety zone 16649f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16659f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16669f00f3a1Smrg ;; 16679f00f3a1Smrg 16689f00f3a1Smrg interix*) 16699f00f3a1Smrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 16709f00f3a1Smrg lt_cv_sys_max_cmd_len=196608 16719f00f3a1Smrg ;; 16729f00f3a1Smrg 16739f00f3a1Smrg os2*) 16749f00f3a1Smrg # The test takes a long time on OS/2. 16759f00f3a1Smrg lt_cv_sys_max_cmd_len=8192 16769f00f3a1Smrg ;; 16779f00f3a1Smrg 16789f00f3a1Smrg osf*) 16799f00f3a1Smrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16809f00f3a1Smrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16819f00f3a1Smrg # nice to cause kernel panics so lets avoid the loop below. 16829f00f3a1Smrg # First set a reasonable default. 16839f00f3a1Smrg lt_cv_sys_max_cmd_len=16384 16849f00f3a1Smrg # 16859f00f3a1Smrg if test -x /sbin/sysconfig; then 16869f00f3a1Smrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16879f00f3a1Smrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 16889f00f3a1Smrg esac 16899f00f3a1Smrg fi 16909f00f3a1Smrg ;; 16919f00f3a1Smrg sco3.2v5*) 16929f00f3a1Smrg lt_cv_sys_max_cmd_len=102400 16939f00f3a1Smrg ;; 16949f00f3a1Smrg sysv5* | sco5v6* | sysv4.2uw2*) 16959f00f3a1Smrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 16969f00f3a1Smrg if test -n "$kargmax"; then 16979f00f3a1Smrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 16989f00f3a1Smrg else 16999f00f3a1Smrg lt_cv_sys_max_cmd_len=32768 17009f00f3a1Smrg fi 17019f00f3a1Smrg ;; 17029f00f3a1Smrg *) 17039f00f3a1Smrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 17049f00f3a1Smrg if test -n "$lt_cv_sys_max_cmd_len" && \ 17059f00f3a1Smrg test undefined != "$lt_cv_sys_max_cmd_len"; then 17069f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 17079f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 17089f00f3a1Smrg else 17099f00f3a1Smrg # Make teststring a little bigger before we do anything with it. 17109f00f3a1Smrg # a 1K string should be a reasonable start. 17119f00f3a1Smrg for i in 1 2 3 4 5 6 7 8 ; do 17129f00f3a1Smrg teststring=$teststring$teststring 17139f00f3a1Smrg done 17149f00f3a1Smrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 17159f00f3a1Smrg # If test is not a shell built-in, we'll probably end up computing a 17169f00f3a1Smrg # maximum length that is only half of the actual maximum length, but 17179f00f3a1Smrg # we can't tell. 17189f00f3a1Smrg while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 17199f00f3a1Smrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 17209f00f3a1Smrg test $i != 17 # 1/2 MB should be enough 17219f00f3a1Smrg do 17229f00f3a1Smrg i=`expr $i + 1` 17239f00f3a1Smrg teststring=$teststring$teststring 17249f00f3a1Smrg done 17259f00f3a1Smrg # Only check the string length outside the loop. 17269f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 17279f00f3a1Smrg teststring= 17289f00f3a1Smrg # Add a significant safety factor because C++ compilers can tack on 17299f00f3a1Smrg # massive amounts of additional arguments before passing them to the 17309f00f3a1Smrg # linker. It appears as though 1/2 is a usable value. 17319f00f3a1Smrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 17329f00f3a1Smrg fi 17339f00f3a1Smrg ;; 17349f00f3a1Smrg esac 17359f00f3a1Smrg]) 17369f00f3a1Smrgif test -n $lt_cv_sys_max_cmd_len ; then 17379f00f3a1Smrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 17389f00f3a1Smrgelse 17399f00f3a1Smrg AC_MSG_RESULT(none) 17409f00f3a1Smrgfi 17419f00f3a1Smrgmax_cmd_len=$lt_cv_sys_max_cmd_len 17429f00f3a1Smrg_LT_DECL([], [max_cmd_len], [0], 17439f00f3a1Smrg [What is the maximum length of a command?]) 17449f00f3a1Smrg])# LT_CMD_MAX_LEN 17459f00f3a1Smrg 17469f00f3a1Smrg# Old name: 17479f00f3a1SmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 17489f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 17499f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 17509f00f3a1Smrg 17519f00f3a1Smrg 17529f00f3a1Smrg# _LT_HEADER_DLFCN 17539f00f3a1Smrg# ---------------- 17549f00f3a1Smrgm4_defun([_LT_HEADER_DLFCN], 17559f00f3a1Smrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 17569f00f3a1Smrg])# _LT_HEADER_DLFCN 17579f00f3a1Smrg 17589f00f3a1Smrg 17599f00f3a1Smrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 17609f00f3a1Smrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 17619f00f3a1Smrg# ---------------------------------------------------------------- 17629f00f3a1Smrgm4_defun([_LT_TRY_DLOPEN_SELF], 17639f00f3a1Smrg[m4_require([_LT_HEADER_DLFCN])dnl 17649f00f3a1Smrgif test "$cross_compiling" = yes; then : 17659f00f3a1Smrg [$4] 17669f00f3a1Smrgelse 17679f00f3a1Smrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17689f00f3a1Smrg lt_status=$lt_dlunknown 17699f00f3a1Smrg cat > conftest.$ac_ext <<_LT_EOF 17709f00f3a1Smrg[#line $LINENO "configure" 17719f00f3a1Smrg#include "confdefs.h" 17729f00f3a1Smrg 17739f00f3a1Smrg#if HAVE_DLFCN_H 17749f00f3a1Smrg#include <dlfcn.h> 17759f00f3a1Smrg#endif 17769f00f3a1Smrg 17779f00f3a1Smrg#include <stdio.h> 17789f00f3a1Smrg 17799f00f3a1Smrg#ifdef RTLD_GLOBAL 17809f00f3a1Smrg# define LT_DLGLOBAL RTLD_GLOBAL 17819f00f3a1Smrg#else 17829f00f3a1Smrg# ifdef DL_GLOBAL 17839f00f3a1Smrg# define LT_DLGLOBAL DL_GLOBAL 17849f00f3a1Smrg# else 17859f00f3a1Smrg# define LT_DLGLOBAL 0 17869f00f3a1Smrg# endif 17879f00f3a1Smrg#endif 17889f00f3a1Smrg 17899f00f3a1Smrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17909f00f3a1Smrg find out it does not work in some platform. */ 17919f00f3a1Smrg#ifndef LT_DLLAZY_OR_NOW 17929f00f3a1Smrg# ifdef RTLD_LAZY 17939f00f3a1Smrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 17949f00f3a1Smrg# else 17959f00f3a1Smrg# ifdef DL_LAZY 17969f00f3a1Smrg# define LT_DLLAZY_OR_NOW DL_LAZY 17979f00f3a1Smrg# else 17989f00f3a1Smrg# ifdef RTLD_NOW 17999f00f3a1Smrg# define LT_DLLAZY_OR_NOW RTLD_NOW 18009f00f3a1Smrg# else 18019f00f3a1Smrg# ifdef DL_NOW 18029f00f3a1Smrg# define LT_DLLAZY_OR_NOW DL_NOW 18039f00f3a1Smrg# else 18049f00f3a1Smrg# define LT_DLLAZY_OR_NOW 0 18059f00f3a1Smrg# endif 18069f00f3a1Smrg# endif 18079f00f3a1Smrg# endif 18089f00f3a1Smrg# endif 18099f00f3a1Smrg#endif 18109f00f3a1Smrg 18119f00f3a1Smrg/* When -fvisbility=hidden is used, assume the code has been annotated 18129f00f3a1Smrg correspondingly for the symbols needed. */ 18139f00f3a1Smrg#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18149f00f3a1Smrgint fnord () __attribute__((visibility("default"))); 18159f00f3a1Smrg#endif 18169f00f3a1Smrg 18179f00f3a1Smrgint fnord () { return 42; } 18189f00f3a1Smrgint main () 18199f00f3a1Smrg{ 18209f00f3a1Smrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18219f00f3a1Smrg int status = $lt_dlunknown; 18229f00f3a1Smrg 18239f00f3a1Smrg if (self) 18249f00f3a1Smrg { 18259f00f3a1Smrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18269f00f3a1Smrg else 18279f00f3a1Smrg { 18289f00f3a1Smrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18299f00f3a1Smrg else puts (dlerror ()); 18309f00f3a1Smrg } 18319f00f3a1Smrg /* dlclose (self); */ 18329f00f3a1Smrg } 18339f00f3a1Smrg else 18349f00f3a1Smrg puts (dlerror ()); 18359f00f3a1Smrg 18369f00f3a1Smrg return status; 18379f00f3a1Smrg}] 18389f00f3a1Smrg_LT_EOF 18399f00f3a1Smrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 18409f00f3a1Smrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 18419f00f3a1Smrg lt_status=$? 18429f00f3a1Smrg case x$lt_status in 18439f00f3a1Smrg x$lt_dlno_uscore) $1 ;; 18449f00f3a1Smrg x$lt_dlneed_uscore) $2 ;; 18459f00f3a1Smrg x$lt_dlunknown|x*) $3 ;; 18469f00f3a1Smrg esac 18479f00f3a1Smrg else : 18489f00f3a1Smrg # compilation failed 18499f00f3a1Smrg $3 18509f00f3a1Smrg fi 18519f00f3a1Smrgfi 18529f00f3a1Smrgrm -fr conftest* 18539f00f3a1Smrg])# _LT_TRY_DLOPEN_SELF 18549f00f3a1Smrg 18559f00f3a1Smrg 18569f00f3a1Smrg# LT_SYS_DLOPEN_SELF 18579f00f3a1Smrg# ------------------ 18589f00f3a1SmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 18599f00f3a1Smrg[m4_require([_LT_HEADER_DLFCN])dnl 18609f00f3a1Smrgif test "x$enable_dlopen" != xyes; then 18619f00f3a1Smrg enable_dlopen=unknown 18629f00f3a1Smrg enable_dlopen_self=unknown 18639f00f3a1Smrg enable_dlopen_self_static=unknown 18649f00f3a1Smrgelse 18659f00f3a1Smrg lt_cv_dlopen=no 18669f00f3a1Smrg lt_cv_dlopen_libs= 18679f00f3a1Smrg 18689f00f3a1Smrg case $host_os in 18699f00f3a1Smrg beos*) 18709f00f3a1Smrg lt_cv_dlopen="load_add_on" 18719f00f3a1Smrg lt_cv_dlopen_libs= 18729f00f3a1Smrg lt_cv_dlopen_self=yes 18739f00f3a1Smrg ;; 18749f00f3a1Smrg 18759f00f3a1Smrg mingw* | pw32* | cegcc*) 18769f00f3a1Smrg lt_cv_dlopen="LoadLibrary" 18779f00f3a1Smrg lt_cv_dlopen_libs= 18789f00f3a1Smrg ;; 18799f00f3a1Smrg 18809f00f3a1Smrg cygwin*) 18819f00f3a1Smrg lt_cv_dlopen="dlopen" 18829f00f3a1Smrg lt_cv_dlopen_libs= 18839f00f3a1Smrg ;; 18849f00f3a1Smrg 18859f00f3a1Smrg darwin*) 18869f00f3a1Smrg # if libdl is installed we need to link against it 18879f00f3a1Smrg AC_CHECK_LIB([dl], [dlopen], 18889f00f3a1Smrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 18899f00f3a1Smrg lt_cv_dlopen="dyld" 18909f00f3a1Smrg lt_cv_dlopen_libs= 18919f00f3a1Smrg lt_cv_dlopen_self=yes 18929f00f3a1Smrg ]) 18939f00f3a1Smrg ;; 18949f00f3a1Smrg 18959f00f3a1Smrg *) 18969f00f3a1Smrg AC_CHECK_FUNC([shl_load], 18979f00f3a1Smrg [lt_cv_dlopen="shl_load"], 18989f00f3a1Smrg [AC_CHECK_LIB([dld], [shl_load], 18999f00f3a1Smrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 19009f00f3a1Smrg [AC_CHECK_FUNC([dlopen], 19019f00f3a1Smrg [lt_cv_dlopen="dlopen"], 19029f00f3a1Smrg [AC_CHECK_LIB([dl], [dlopen], 19039f00f3a1Smrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 19049f00f3a1Smrg [AC_CHECK_LIB([svld], [dlopen], 19059f00f3a1Smrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 19069f00f3a1Smrg [AC_CHECK_LIB([dld], [dld_link], 19079f00f3a1Smrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 19089f00f3a1Smrg ]) 19099f00f3a1Smrg ]) 19109f00f3a1Smrg ]) 19119f00f3a1Smrg ]) 19129f00f3a1Smrg ]) 19139f00f3a1Smrg ;; 19149f00f3a1Smrg esac 19159f00f3a1Smrg 19169f00f3a1Smrg if test "x$lt_cv_dlopen" != xno; then 19179f00f3a1Smrg enable_dlopen=yes 19189f00f3a1Smrg else 19199f00f3a1Smrg enable_dlopen=no 19209f00f3a1Smrg fi 19219f00f3a1Smrg 19229f00f3a1Smrg case $lt_cv_dlopen in 19239f00f3a1Smrg dlopen) 19249f00f3a1Smrg save_CPPFLAGS="$CPPFLAGS" 19259f00f3a1Smrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 19269f00f3a1Smrg 19279f00f3a1Smrg save_LDFLAGS="$LDFLAGS" 19289f00f3a1Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 19299f00f3a1Smrg 19309f00f3a1Smrg save_LIBS="$LIBS" 19319f00f3a1Smrg LIBS="$lt_cv_dlopen_libs $LIBS" 19329f00f3a1Smrg 19339f00f3a1Smrg AC_CACHE_CHECK([whether a program can dlopen itself], 19349f00f3a1Smrg lt_cv_dlopen_self, [dnl 19359f00f3a1Smrg _LT_TRY_DLOPEN_SELF( 19369f00f3a1Smrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 19379f00f3a1Smrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 19389f00f3a1Smrg ]) 19399f00f3a1Smrg 19409f00f3a1Smrg if test "x$lt_cv_dlopen_self" = xyes; then 19419f00f3a1Smrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 19429f00f3a1Smrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 19439f00f3a1Smrg lt_cv_dlopen_self_static, [dnl 19449f00f3a1Smrg _LT_TRY_DLOPEN_SELF( 19459f00f3a1Smrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 19469f00f3a1Smrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 19479f00f3a1Smrg ]) 19489f00f3a1Smrg fi 19499f00f3a1Smrg 19509f00f3a1Smrg CPPFLAGS="$save_CPPFLAGS" 19519f00f3a1Smrg LDFLAGS="$save_LDFLAGS" 19529f00f3a1Smrg LIBS="$save_LIBS" 19539f00f3a1Smrg ;; 19549f00f3a1Smrg esac 19559f00f3a1Smrg 19569f00f3a1Smrg case $lt_cv_dlopen_self in 19579f00f3a1Smrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 19589f00f3a1Smrg *) enable_dlopen_self=unknown ;; 19599f00f3a1Smrg esac 19609f00f3a1Smrg 19619f00f3a1Smrg case $lt_cv_dlopen_self_static in 19629f00f3a1Smrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 19639f00f3a1Smrg *) enable_dlopen_self_static=unknown ;; 19649f00f3a1Smrg esac 19659f00f3a1Smrgfi 19669f00f3a1Smrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 19679f00f3a1Smrg [Whether dlopen is supported]) 19689f00f3a1Smrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 19699f00f3a1Smrg [Whether dlopen of programs is supported]) 19709f00f3a1Smrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 19719f00f3a1Smrg [Whether dlopen of statically linked programs is supported]) 19729f00f3a1Smrg])# LT_SYS_DLOPEN_SELF 19739f00f3a1Smrg 19749f00f3a1Smrg# Old name: 19759f00f3a1SmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 19769f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 19779f00f3a1Smrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 19789f00f3a1Smrg 19799f00f3a1Smrg 19809f00f3a1Smrg# _LT_COMPILER_C_O([TAGNAME]) 19819f00f3a1Smrg# --------------------------- 19829f00f3a1Smrg# Check to see if options -c and -o are simultaneously supported by compiler. 19839f00f3a1Smrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 19849f00f3a1Smrgm4_defun([_LT_COMPILER_C_O], 19859f00f3a1Smrg[m4_require([_LT_DECL_SED])dnl 19869f00f3a1Smrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 19879f00f3a1Smrgm4_require([_LT_TAG_COMPILER])dnl 19889f00f3a1SmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 19899f00f3a1Smrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 19909f00f3a1Smrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 19919f00f3a1Smrg $RM -r conftest 2>/dev/null 19929f00f3a1Smrg mkdir conftest 19939f00f3a1Smrg cd conftest 19949f00f3a1Smrg mkdir out 19959f00f3a1Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 19969f00f3a1Smrg 19979f00f3a1Smrg lt_compiler_flag="-o out/conftest2.$ac_objext" 19989f00f3a1Smrg # Insert the option either (1) after the last *FLAGS variable, or 19999f00f3a1Smrg # (2) before a word containing "conftest.", or (3) at the end. 20009f00f3a1Smrg # Note that $ac_compile itself does not contain backslashes and begins 20019f00f3a1Smrg # with a dollar sign (not a hyphen), so the echo should work correctly. 20029f00f3a1Smrg lt_compile=`echo "$ac_compile" | $SED \ 20039f00f3a1Smrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20049f00f3a1Smrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 20059f00f3a1Smrg -e 's:$: $lt_compiler_flag:'` 20069f00f3a1Smrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 20079f00f3a1Smrg (eval "$lt_compile" 2>out/conftest.err) 20089f00f3a1Smrg ac_status=$? 20099f00f3a1Smrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 20109f00f3a1Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 20119f00f3a1Smrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 20129f00f3a1Smrg then 20139f00f3a1Smrg # The compiler can only warn and ignore the option if not recognized 20149f00f3a1Smrg # So say no if there are warnings 20159f00f3a1Smrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20169f00f3a1Smrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20179f00f3a1Smrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20189f00f3a1Smrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 20199f00f3a1Smrg fi 20209f00f3a1Smrg fi 20219f00f3a1Smrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 20229f00f3a1Smrg $RM conftest* 20239f00f3a1Smrg # SGI C++ compiler will create directory out/ii_files/ for 20249f00f3a1Smrg # template instantiation 20259f00f3a1Smrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20269f00f3a1Smrg $RM out/* && rmdir out 20279f00f3a1Smrg cd .. 20289f00f3a1Smrg $RM -r conftest 20299f00f3a1Smrg $RM conftest* 20309f00f3a1Smrg]) 20319f00f3a1Smrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 20329f00f3a1Smrg [Does compiler simultaneously support -c and -o options?]) 20339f00f3a1Smrg])# _LT_COMPILER_C_O 20349f00f3a1Smrg 20359f00f3a1Smrg 20369f00f3a1Smrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 20379f00f3a1Smrg# ---------------------------------- 20389f00f3a1Smrg# Check to see if we can do hard links to lock some files if needed 20399f00f3a1Smrgm4_defun([_LT_COMPILER_FILE_LOCKS], 20409f00f3a1Smrg[m4_require([_LT_ENABLE_LOCK])dnl 20419f00f3a1Smrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 20429f00f3a1Smrg_LT_COMPILER_C_O([$1]) 20439f00f3a1Smrg 20449f00f3a1Smrghard_links="nottested" 20459f00f3a1Smrgif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 20469f00f3a1Smrg # do not overwrite the value of need_locks provided by the user 20479f00f3a1Smrg AC_MSG_CHECKING([if we can lock with hard links]) 20489f00f3a1Smrg hard_links=yes 20499f00f3a1Smrg $RM conftest* 20509f00f3a1Smrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 20519f00f3a1Smrg touch conftest.a 20529f00f3a1Smrg ln conftest.a conftest.b 2>&5 || hard_links=no 20539f00f3a1Smrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 20549f00f3a1Smrg AC_MSG_RESULT([$hard_links]) 20559f00f3a1Smrg if test "$hard_links" = no; then 20569f00f3a1Smrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 20579f00f3a1Smrg need_locks=warn 20589f00f3a1Smrg fi 20599f00f3a1Smrgelse 20609f00f3a1Smrg need_locks=no 20619f00f3a1Smrgfi 20629f00f3a1Smrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 20639f00f3a1Smrg])# _LT_COMPILER_FILE_LOCKS 20649f00f3a1Smrg 20659f00f3a1Smrg 20669f00f3a1Smrg# _LT_CHECK_OBJDIR 20679f00f3a1Smrg# ---------------- 20689f00f3a1Smrgm4_defun([_LT_CHECK_OBJDIR], 20699f00f3a1Smrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 20709f00f3a1Smrg[rm -f .libs 2>/dev/null 20719f00f3a1Smrgmkdir .libs 2>/dev/null 20729f00f3a1Smrgif test -d .libs; then 20739f00f3a1Smrg lt_cv_objdir=.libs 20749f00f3a1Smrgelse 20759f00f3a1Smrg # MS-DOS does not allow filenames that begin with a dot. 20769f00f3a1Smrg lt_cv_objdir=_libs 20779f00f3a1Smrgfi 20789f00f3a1Smrgrmdir .libs 2>/dev/null]) 20799f00f3a1Smrgobjdir=$lt_cv_objdir 20809f00f3a1Smrg_LT_DECL([], [objdir], [0], 20819f00f3a1Smrg [The name of the directory that contains temporary libtool files])dnl 20829f00f3a1Smrgm4_pattern_allow([LT_OBJDIR])dnl 20839f00f3a1SmrgAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 20849f00f3a1Smrg [Define to the sub-directory in which libtool stores uninstalled libraries.]) 20859f00f3a1Smrg])# _LT_CHECK_OBJDIR 20869f00f3a1Smrg 20879f00f3a1Smrg 20889f00f3a1Smrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 20899f00f3a1Smrg# -------------------------------------- 20909f00f3a1Smrg# Check hardcoding attributes. 20919f00f3a1Smrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 20929f00f3a1Smrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 20939f00f3a1Smrg_LT_TAGVAR(hardcode_action, $1)= 20949f00f3a1Smrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 20959f00f3a1Smrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 20969f00f3a1Smrg test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 20979f00f3a1Smrg 20989f00f3a1Smrg # We can hardcode non-existent directories. 20999f00f3a1Smrg if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 21009f00f3a1Smrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 21019f00f3a1Smrg # have to relink, otherwise we might link with an installed library 21029f00f3a1Smrg # when we should be linking with a yet-to-be-installed one 21039f00f3a1Smrg ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 21049f00f3a1Smrg test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 21059f00f3a1Smrg # Linking always hardcodes the temporary library directory. 21069f00f3a1Smrg _LT_TAGVAR(hardcode_action, $1)=relink 21079f00f3a1Smrg else 21089f00f3a1Smrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 21099f00f3a1Smrg _LT_TAGVAR(hardcode_action, $1)=immediate 21109f00f3a1Smrg fi 21119f00f3a1Smrgelse 21129f00f3a1Smrg # We cannot hardcode anything, or else we can only hardcode existing 21139f00f3a1Smrg # directories. 21149f00f3a1Smrg _LT_TAGVAR(hardcode_action, $1)=unsupported 21159f00f3a1Smrgfi 21169f00f3a1SmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 21179f00f3a1Smrg 21189f00f3a1Smrgif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 21199f00f3a1Smrg test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 21209f00f3a1Smrg # Fast installation is not supported 21219f00f3a1Smrg enable_fast_install=no 21229f00f3a1Smrgelif test "$shlibpath_overrides_runpath" = yes || 21239f00f3a1Smrg test "$enable_shared" = no; then 21249f00f3a1Smrg # Fast installation is not necessary 21259f00f3a1Smrg enable_fast_install=needless 21269f00f3a1Smrgfi 21279f00f3a1Smrg_LT_TAGDECL([], [hardcode_action], [0], 21289f00f3a1Smrg [How to hardcode a shared library path into an executable]) 21299f00f3a1Smrg])# _LT_LINKER_HARDCODE_LIBPATH 21309f00f3a1Smrg 21319f00f3a1Smrg 21329f00f3a1Smrg# _LT_CMD_STRIPLIB 21339f00f3a1Smrg# ---------------- 21349f00f3a1Smrgm4_defun([_LT_CMD_STRIPLIB], 21359f00f3a1Smrg[m4_require([_LT_DECL_EGREP]) 21369f00f3a1Smrgstriplib= 21379f00f3a1Smrgold_striplib= 21389f00f3a1SmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 21399f00f3a1Smrgif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 21409f00f3a1Smrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 21419f00f3a1Smrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 21429f00f3a1Smrg AC_MSG_RESULT([yes]) 21439f00f3a1Smrgelse 21449f00f3a1Smrg# FIXME - insert some real tests, host_os isn't really good enough 21459f00f3a1Smrg case $host_os in 21469f00f3a1Smrg darwin*) 21479f00f3a1Smrg if test -n "$STRIP" ; then 21489f00f3a1Smrg striplib="$STRIP -x" 21499f00f3a1Smrg old_striplib="$STRIP -S" 21509f00f3a1Smrg AC_MSG_RESULT([yes]) 21519f00f3a1Smrg else 21529f00f3a1Smrg AC_MSG_RESULT([no]) 21539f00f3a1Smrg fi 21549f00f3a1Smrg ;; 21559f00f3a1Smrg *) 21569f00f3a1Smrg AC_MSG_RESULT([no]) 21579f00f3a1Smrg ;; 21589f00f3a1Smrg esac 21599f00f3a1Smrgfi 21609f00f3a1Smrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 21619f00f3a1Smrg_LT_DECL([], [striplib], [1]) 21629f00f3a1Smrg])# _LT_CMD_STRIPLIB 21639f00f3a1Smrg 21649f00f3a1Smrg 21659f00f3a1Smrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 21669f00f3a1Smrg# ----------------------------- 21679f00f3a1Smrg# PORTME Fill in your ld.so characteristics 21689f00f3a1Smrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 21699f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 21709f00f3a1Smrgm4_require([_LT_DECL_EGREP])dnl 21719f00f3a1Smrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 21729f00f3a1Smrgm4_require([_LT_DECL_OBJDUMP])dnl 21739f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 21749f00f3a1Smrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 21759f00f3a1SmrgAC_MSG_CHECKING([dynamic linker characteristics]) 21769f00f3a1Smrgm4_if([$1], 21779f00f3a1Smrg [], [ 21789f00f3a1Smrgif test "$GCC" = yes; then 21799f00f3a1Smrg case $host_os in 21809f00f3a1Smrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 21819f00f3a1Smrg *) lt_awk_arg="/^libraries:/" ;; 21829f00f3a1Smrg esac 21839f00f3a1Smrg case $host_os in 21849f00f3a1Smrg mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 21859f00f3a1Smrg *) lt_sed_strip_eq="s,=/,/,g" ;; 21869f00f3a1Smrg esac 21879f00f3a1Smrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 21889f00f3a1Smrg case $lt_search_path_spec in 21899f00f3a1Smrg *\;*) 21909f00f3a1Smrg # if the path contains ";" then we assume it to be the separator 21919f00f3a1Smrg # otherwise default to the standard path separator (i.e. ":") - it is 21929f00f3a1Smrg # assumed that no part of a normal pathname contains ";" but that should 21939f00f3a1Smrg # okay in the real world where ";" in dirpaths is itself problematic. 21949f00f3a1Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 21959f00f3a1Smrg ;; 21969f00f3a1Smrg *) 21979f00f3a1Smrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 21989f00f3a1Smrg ;; 21999f00f3a1Smrg esac 22009f00f3a1Smrg # Ok, now we have the path, separated by spaces, we can step through it 22019f00f3a1Smrg # and add multilib dir if necessary. 22029f00f3a1Smrg lt_tmp_lt_search_path_spec= 22039f00f3a1Smrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 22049f00f3a1Smrg for lt_sys_path in $lt_search_path_spec; do 22059f00f3a1Smrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 22069f00f3a1Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 22079f00f3a1Smrg else 22089f00f3a1Smrg test -d "$lt_sys_path" && \ 22099f00f3a1Smrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 22109f00f3a1Smrg fi 22119f00f3a1Smrg done 22129f00f3a1Smrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 22139f00f3a1SmrgBEGIN {RS=" "; FS="/|\n";} { 22149f00f3a1Smrg lt_foo=""; 22159f00f3a1Smrg lt_count=0; 22169f00f3a1Smrg for (lt_i = NF; lt_i > 0; lt_i--) { 22179f00f3a1Smrg if ($lt_i != "" && $lt_i != ".") { 22189f00f3a1Smrg if ($lt_i == "..") { 22199f00f3a1Smrg lt_count++; 22209f00f3a1Smrg } else { 22219f00f3a1Smrg if (lt_count == 0) { 22229f00f3a1Smrg lt_foo="/" $lt_i lt_foo; 22239f00f3a1Smrg } else { 22249f00f3a1Smrg lt_count--; 22259f00f3a1Smrg } 22269f00f3a1Smrg } 22279f00f3a1Smrg } 22289f00f3a1Smrg } 22299f00f3a1Smrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 22309f00f3a1Smrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 22319f00f3a1Smrg}'` 22329f00f3a1Smrg # AWK program above erroneously prepends '/' to C:/dos/paths 22339f00f3a1Smrg # for these hosts. 22349f00f3a1Smrg case $host_os in 22359f00f3a1Smrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 22369f00f3a1Smrg $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 22379f00f3a1Smrg esac 22389f00f3a1Smrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 22399f00f3a1Smrgelse 22409f00f3a1Smrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 22419f00f3a1Smrgfi]) 22429f00f3a1Smrglibrary_names_spec= 22439f00f3a1Smrglibname_spec='lib$name' 22449f00f3a1Smrgsoname_spec= 22459f00f3a1Smrgshrext_cmds=".so" 22469f00f3a1Smrgpostinstall_cmds= 22479f00f3a1Smrgpostuninstall_cmds= 22489f00f3a1Smrgfinish_cmds= 22499f00f3a1Smrgfinish_eval= 22509f00f3a1Smrgshlibpath_var= 22519f00f3a1Smrgshlibpath_overrides_runpath=unknown 22529f00f3a1Smrgversion_type=none 22539f00f3a1Smrgdynamic_linker="$host_os ld.so" 22549f00f3a1Smrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 22559f00f3a1Smrgneed_lib_prefix=unknown 22569f00f3a1Smrghardcode_into_libs=no 22579f00f3a1Smrg 22589f00f3a1Smrg# when you set need_version to no, make sure it does not cause -set_version 22599f00f3a1Smrg# flags to be left without arguments 22609f00f3a1Smrgneed_version=unknown 22619f00f3a1Smrg 22629f00f3a1Smrgcase $host_os in 22639f00f3a1Smrgaix3*) 22649f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 22659f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 22669f00f3a1Smrg shlibpath_var=LIBPATH 22679f00f3a1Smrg 22689f00f3a1Smrg # AIX 3 has no versioning support, so we append a major version to the name. 22699f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 22709f00f3a1Smrg ;; 22719f00f3a1Smrg 22729f00f3a1Smrgaix[[4-9]]*) 22739f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 22749f00f3a1Smrg need_lib_prefix=no 22759f00f3a1Smrg need_version=no 22769f00f3a1Smrg hardcode_into_libs=yes 22779f00f3a1Smrg if test "$host_cpu" = ia64; then 22789f00f3a1Smrg # AIX 5 supports IA64 22799f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 22809f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 22819f00f3a1Smrg else 22829f00f3a1Smrg # With GCC up to 2.95.x, collect2 would create an import file 22839f00f3a1Smrg # for dependence libraries. The import file would start with 22849f00f3a1Smrg # the line `#! .'. This would cause the generated library to 22859f00f3a1Smrg # depend on `.', always an invalid library. This was fixed in 22869f00f3a1Smrg # development snapshots of GCC prior to 3.0. 22879f00f3a1Smrg case $host_os in 22889f00f3a1Smrg aix4 | aix4.[[01]] | aix4.[[01]].*) 22899f00f3a1Smrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 22909f00f3a1Smrg echo ' yes ' 22919f00f3a1Smrg echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 22929f00f3a1Smrg : 22939f00f3a1Smrg else 22949f00f3a1Smrg can_build_shared=no 22959f00f3a1Smrg fi 22969f00f3a1Smrg ;; 22979f00f3a1Smrg esac 22989f00f3a1Smrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 22999f00f3a1Smrg # soname into executable. Probably we can add versioning support to 23009f00f3a1Smrg # collect2, so additional links can be useful in future. 23019f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 23029f00f3a1Smrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 23039f00f3a1Smrg # instead of lib<name>.a to let people know that these are not 23049f00f3a1Smrg # typical AIX shared libraries. 23059f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23069f00f3a1Smrg else 23079f00f3a1Smrg # We preserve .a as extension for shared libraries through AIX4.2 23089f00f3a1Smrg # and later when we are not doing run time linking. 23099f00f3a1Smrg library_names_spec='${libname}${release}.a $libname.a' 23109f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 23119f00f3a1Smrg fi 23129f00f3a1Smrg shlibpath_var=LIBPATH 23139f00f3a1Smrg fi 23149f00f3a1Smrg ;; 23159f00f3a1Smrg 23169f00f3a1Smrgamigaos*) 23179f00f3a1Smrg case $host_cpu in 23189f00f3a1Smrg powerpc) 23199f00f3a1Smrg # Since July 2007 AmigaOS4 officially supports .so libraries. 23209f00f3a1Smrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 23219f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23229f00f3a1Smrg ;; 23239f00f3a1Smrg m68k) 23249f00f3a1Smrg library_names_spec='$libname.ixlibrary $libname.a' 23259f00f3a1Smrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 23269f00f3a1Smrg 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' 23279f00f3a1Smrg ;; 23289f00f3a1Smrg esac 23299f00f3a1Smrg ;; 23309f00f3a1Smrg 23319f00f3a1Smrgbeos*) 23329f00f3a1Smrg library_names_spec='${libname}${shared_ext}' 23339f00f3a1Smrg dynamic_linker="$host_os ld.so" 23349f00f3a1Smrg shlibpath_var=LIBRARY_PATH 23359f00f3a1Smrg ;; 23369f00f3a1Smrg 23379f00f3a1Smrgbsdi[[45]]*) 23389f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 23399f00f3a1Smrg need_version=no 23409f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23419f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 23429f00f3a1Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 23439f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 23449f00f3a1Smrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 23459f00f3a1Smrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 23469f00f3a1Smrg # the default ld.so.conf also contains /usr/contrib/lib and 23479f00f3a1Smrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 23489f00f3a1Smrg # libtool to hard-code these into programs 23499f00f3a1Smrg ;; 23509f00f3a1Smrg 23519f00f3a1Smrgcygwin* | mingw* | pw32* | cegcc*) 23529f00f3a1Smrg version_type=windows 23539f00f3a1Smrg shrext_cmds=".dll" 23549f00f3a1Smrg need_version=no 23559f00f3a1Smrg need_lib_prefix=no 23569f00f3a1Smrg 23579f00f3a1Smrg case $GCC,$cc_basename in 23589f00f3a1Smrg yes,*) 23599f00f3a1Smrg # gcc 23609f00f3a1Smrg library_names_spec='$libname.dll.a' 23619f00f3a1Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 23629f00f3a1Smrg postinstall_cmds='base_file=`basename \${file}`~ 23639f00f3a1Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 23649f00f3a1Smrg dldir=$destdir/`dirname \$dlpath`~ 23659f00f3a1Smrg test -d \$dldir || mkdir -p \$dldir~ 23669f00f3a1Smrg $install_prog $dir/$dlname \$dldir/$dlname~ 23679f00f3a1Smrg chmod a+x \$dldir/$dlname~ 23689f00f3a1Smrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 23699f00f3a1Smrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 23709f00f3a1Smrg fi' 23719f00f3a1Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 23729f00f3a1Smrg dlpath=$dir/\$dldll~ 23739f00f3a1Smrg $RM \$dlpath' 23749f00f3a1Smrg shlibpath_overrides_runpath=yes 23759f00f3a1Smrg 23769f00f3a1Smrg case $host_os in 23779f00f3a1Smrg cygwin*) 23789f00f3a1Smrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 23799f00f3a1Smrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 23809f00f3a1Smrgm4_if([$1], [],[ 23819f00f3a1Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 23829f00f3a1Smrg ;; 23839f00f3a1Smrg mingw* | cegcc*) 23849f00f3a1Smrg # MinGW DLLs use traditional 'lib' prefix 23859f00f3a1Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 23869f00f3a1Smrg ;; 23879f00f3a1Smrg pw32*) 23889f00f3a1Smrg # pw32 DLLs use 'pw' prefix rather than 'lib' 23899f00f3a1Smrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 23909f00f3a1Smrg ;; 23919f00f3a1Smrg esac 23929f00f3a1Smrg dynamic_linker='Win32 ld.exe' 23939f00f3a1Smrg ;; 23949f00f3a1Smrg 23959f00f3a1Smrg *,cl*) 23969f00f3a1Smrg # Native MSVC 23979f00f3a1Smrg libname_spec='$name' 23989f00f3a1Smrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 23999f00f3a1Smrg library_names_spec='${libname}.dll.lib' 24009f00f3a1Smrg 24019f00f3a1Smrg case $build_os in 24029f00f3a1Smrg mingw*) 24039f00f3a1Smrg sys_lib_search_path_spec= 24049f00f3a1Smrg lt_save_ifs=$IFS 24059f00f3a1Smrg IFS=';' 24069f00f3a1Smrg for lt_path in $LIB 24079f00f3a1Smrg do 24089f00f3a1Smrg IFS=$lt_save_ifs 24099f00f3a1Smrg # Let DOS variable expansion print the short 8.3 style file name. 24109f00f3a1Smrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 24119f00f3a1Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 24129f00f3a1Smrg done 24139f00f3a1Smrg IFS=$lt_save_ifs 24149f00f3a1Smrg # Convert to MSYS style. 24159f00f3a1Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 24169f00f3a1Smrg ;; 24179f00f3a1Smrg cygwin*) 24189f00f3a1Smrg # Convert to unix form, then to dos form, then back to unix form 24199f00f3a1Smrg # but this time dos style (no spaces!) so that the unix form looks 24209f00f3a1Smrg # like /cygdrive/c/PROGRA~1:/cygdr... 24219f00f3a1Smrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 24229f00f3a1Smrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 24239f00f3a1Smrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24249f00f3a1Smrg ;; 24259f00f3a1Smrg *) 24269f00f3a1Smrg sys_lib_search_path_spec="$LIB" 24279f00f3a1Smrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 24289f00f3a1Smrg # It is most probably a Windows format PATH. 24299f00f3a1Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 24309f00f3a1Smrg else 24319f00f3a1Smrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24329f00f3a1Smrg fi 24339f00f3a1Smrg # FIXME: find the short name or the path components, as spaces are 24349f00f3a1Smrg # common. (e.g. "Program Files" -> "PROGRA~1") 24359f00f3a1Smrg ;; 24369f00f3a1Smrg esac 24379f00f3a1Smrg 24389f00f3a1Smrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 24399f00f3a1Smrg postinstall_cmds='base_file=`basename \${file}`~ 24409f00f3a1Smrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 24419f00f3a1Smrg dldir=$destdir/`dirname \$dlpath`~ 24429f00f3a1Smrg test -d \$dldir || mkdir -p \$dldir~ 24439f00f3a1Smrg $install_prog $dir/$dlname \$dldir/$dlname' 24449f00f3a1Smrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24459f00f3a1Smrg dlpath=$dir/\$dldll~ 24469f00f3a1Smrg $RM \$dlpath' 24479f00f3a1Smrg shlibpath_overrides_runpath=yes 24489f00f3a1Smrg dynamic_linker='Win32 link.exe' 24499f00f3a1Smrg ;; 24509f00f3a1Smrg 24519f00f3a1Smrg *) 24529f00f3a1Smrg # Assume MSVC wrapper 24539f00f3a1Smrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 24549f00f3a1Smrg dynamic_linker='Win32 ld.exe' 24559f00f3a1Smrg ;; 24569f00f3a1Smrg esac 24579f00f3a1Smrg # FIXME: first we should search . and the directory the executable is in 24589f00f3a1Smrg shlibpath_var=PATH 24599f00f3a1Smrg ;; 24609f00f3a1Smrg 24619f00f3a1Smrgdarwin* | rhapsody*) 24629f00f3a1Smrg dynamic_linker="$host_os dyld" 24639f00f3a1Smrg version_type=darwin 24649f00f3a1Smrg need_lib_prefix=no 24659f00f3a1Smrg need_version=no 24669f00f3a1Smrg library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 24679f00f3a1Smrg soname_spec='${libname}${release}${major}$shared_ext' 24689f00f3a1Smrg shlibpath_overrides_runpath=yes 24699f00f3a1Smrg shlibpath_var=DYLD_LIBRARY_PATH 24709f00f3a1Smrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 24719f00f3a1Smrgm4_if([$1], [],[ 24729f00f3a1Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 24739f00f3a1Smrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 24749f00f3a1Smrg ;; 24759f00f3a1Smrg 24769f00f3a1Smrgdgux*) 24779f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 24789f00f3a1Smrg need_lib_prefix=no 24799f00f3a1Smrg need_version=no 24809f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 24819f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 24829f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 24839f00f3a1Smrg ;; 24849f00f3a1Smrg 24859f00f3a1Smrgfreebsd* | dragonfly*) 24869f00f3a1Smrg # DragonFly does not have aout. When/if they implement a new 24879f00f3a1Smrg # versioning mechanism, adjust this. 24889f00f3a1Smrg if test -x /usr/bin/objformat; then 24899f00f3a1Smrg objformat=`/usr/bin/objformat` 24909f00f3a1Smrg else 24919f00f3a1Smrg case $host_os in 24929f00f3a1Smrg freebsd[[23]].*) objformat=aout ;; 24939f00f3a1Smrg *) objformat=elf ;; 24949f00f3a1Smrg esac 24959f00f3a1Smrg fi 24969f00f3a1Smrg version_type=freebsd-$objformat 24979f00f3a1Smrg case $version_type in 24989f00f3a1Smrg freebsd-elf*) 24999f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 25009f00f3a1Smrg need_version=no 25019f00f3a1Smrg need_lib_prefix=no 25029f00f3a1Smrg ;; 25039f00f3a1Smrg freebsd-*) 25049f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 25059f00f3a1Smrg need_version=yes 25069f00f3a1Smrg ;; 25079f00f3a1Smrg esac 25089f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 25099f00f3a1Smrg case $host_os in 25109f00f3a1Smrg freebsd2.*) 25119f00f3a1Smrg shlibpath_overrides_runpath=yes 25129f00f3a1Smrg ;; 25139f00f3a1Smrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 25149f00f3a1Smrg shlibpath_overrides_runpath=yes 25159f00f3a1Smrg hardcode_into_libs=yes 25169f00f3a1Smrg ;; 25179f00f3a1Smrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 25189f00f3a1Smrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 25199f00f3a1Smrg shlibpath_overrides_runpath=no 25209f00f3a1Smrg hardcode_into_libs=yes 25219f00f3a1Smrg ;; 25229f00f3a1Smrg *) # from 4.6 on, and DragonFly 25239f00f3a1Smrg shlibpath_overrides_runpath=yes 25249f00f3a1Smrg hardcode_into_libs=yes 25259f00f3a1Smrg ;; 25269f00f3a1Smrg esac 25279f00f3a1Smrg ;; 25289f00f3a1Smrg 25299f00f3a1Smrghaiku*) 25309f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 25319f00f3a1Smrg need_lib_prefix=no 25329f00f3a1Smrg need_version=no 25339f00f3a1Smrg dynamic_linker="$host_os runtime_loader" 25349f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 25359f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 25369f00f3a1Smrg shlibpath_var=LIBRARY_PATH 25379f00f3a1Smrg shlibpath_overrides_runpath=yes 25389f00f3a1Smrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 25399f00f3a1Smrg hardcode_into_libs=yes 25409f00f3a1Smrg ;; 25419f00f3a1Smrg 25429f00f3a1Smrghpux9* | hpux10* | hpux11*) 25439f00f3a1Smrg # Give a soname corresponding to the major version so that dld.sl refuses to 25449f00f3a1Smrg # link against other versions. 25459f00f3a1Smrg version_type=sunos 25469f00f3a1Smrg need_lib_prefix=no 25479f00f3a1Smrg need_version=no 25489f00f3a1Smrg case $host_cpu in 25499f00f3a1Smrg ia64*) 25509f00f3a1Smrg shrext_cmds='.so' 25519f00f3a1Smrg hardcode_into_libs=yes 25529f00f3a1Smrg dynamic_linker="$host_os dld.so" 25539f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 25549f00f3a1Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 25559f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25569f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 25579f00f3a1Smrg if test "X$HPUX_IA64_MODE" = X32; then 25589f00f3a1Smrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 25599f00f3a1Smrg else 25609f00f3a1Smrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 25619f00f3a1Smrg fi 25629f00f3a1Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 25639f00f3a1Smrg ;; 25649f00f3a1Smrg hppa*64*) 25659f00f3a1Smrg shrext_cmds='.sl' 25669f00f3a1Smrg hardcode_into_libs=yes 25679f00f3a1Smrg dynamic_linker="$host_os dld.sl" 25689f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 25699f00f3a1Smrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 25709f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25719f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 25729f00f3a1Smrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 25739f00f3a1Smrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 25749f00f3a1Smrg ;; 25759f00f3a1Smrg *) 25769f00f3a1Smrg shrext_cmds='.sl' 25779f00f3a1Smrg dynamic_linker="$host_os dld.sl" 25789f00f3a1Smrg shlibpath_var=SHLIB_PATH 25799f00f3a1Smrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 25809f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 25819f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 25829f00f3a1Smrg ;; 25839f00f3a1Smrg esac 25849f00f3a1Smrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 25859f00f3a1Smrg postinstall_cmds='chmod 555 $lib' 25869f00f3a1Smrg # or fails outright, so override atomically: 25879f00f3a1Smrg install_override_mode=555 25889f00f3a1Smrg ;; 25899f00f3a1Smrg 25909f00f3a1Smrginterix[[3-9]]*) 25919f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 25929f00f3a1Smrg need_lib_prefix=no 25939f00f3a1Smrg need_version=no 25949f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 25959f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 25969f00f3a1Smrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 25979f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 25989f00f3a1Smrg shlibpath_overrides_runpath=no 25999f00f3a1Smrg hardcode_into_libs=yes 26009f00f3a1Smrg ;; 26019f00f3a1Smrg 26029f00f3a1Smrgirix5* | irix6* | nonstopux*) 26039f00f3a1Smrg case $host_os in 26049f00f3a1Smrg nonstopux*) version_type=nonstopux ;; 26059f00f3a1Smrg *) 26069f00f3a1Smrg if test "$lt_cv_prog_gnu_ld" = yes; then 26079f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 26089f00f3a1Smrg else 26099f00f3a1Smrg version_type=irix 26109f00f3a1Smrg fi ;; 26119f00f3a1Smrg esac 26129f00f3a1Smrg need_lib_prefix=no 26139f00f3a1Smrg need_version=no 26149f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 26159f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 26169f00f3a1Smrg case $host_os in 26179f00f3a1Smrg irix5* | nonstopux*) 26189f00f3a1Smrg libsuff= shlibsuff= 26199f00f3a1Smrg ;; 26209f00f3a1Smrg *) 26219f00f3a1Smrg case $LD in # libtool.m4 will add one of these switches to LD 26229f00f3a1Smrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 26239f00f3a1Smrg libsuff= shlibsuff= libmagic=32-bit;; 26249f00f3a1Smrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 26259f00f3a1Smrg libsuff=32 shlibsuff=N32 libmagic=N32;; 26269f00f3a1Smrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 26279f00f3a1Smrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 26289f00f3a1Smrg *) libsuff= shlibsuff= libmagic=never-match;; 26299f00f3a1Smrg esac 26309f00f3a1Smrg ;; 26319f00f3a1Smrg esac 26329f00f3a1Smrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 26339f00f3a1Smrg shlibpath_overrides_runpath=no 26349f00f3a1Smrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 26359f00f3a1Smrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 26369f00f3a1Smrg hardcode_into_libs=yes 26379f00f3a1Smrg ;; 26389f00f3a1Smrg 26399f00f3a1Smrg# No shared lib support for Linux oldld, aout, or coff. 26409f00f3a1Smrglinux*oldld* | linux*aout* | linux*coff*) 26419f00f3a1Smrg dynamic_linker=no 26429f00f3a1Smrg ;; 26439f00f3a1Smrg 26449f00f3a1Smrg# This must be glibc/ELF. 26459f00f3a1Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 26469f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 26479f00f3a1Smrg need_lib_prefix=no 26489f00f3a1Smrg need_version=no 26499f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 26509f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 26519f00f3a1Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 26529f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 26539f00f3a1Smrg shlibpath_overrides_runpath=no 26549f00f3a1Smrg 26559f00f3a1Smrg # Some binutils ld are patched to set DT_RUNPATH 26569f00f3a1Smrg AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 26579f00f3a1Smrg [lt_cv_shlibpath_overrides_runpath=no 26589f00f3a1Smrg save_LDFLAGS=$LDFLAGS 26599f00f3a1Smrg save_libdir=$libdir 26609f00f3a1Smrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 26619f00f3a1Smrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 26629f00f3a1Smrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 26639f00f3a1Smrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 26649f00f3a1Smrg [lt_cv_shlibpath_overrides_runpath=yes])]) 26659f00f3a1Smrg LDFLAGS=$save_LDFLAGS 26669f00f3a1Smrg libdir=$save_libdir 26679f00f3a1Smrg ]) 26689f00f3a1Smrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 26699f00f3a1Smrg 26709f00f3a1Smrg # This implies no fast_install, which is unacceptable. 26719f00f3a1Smrg # Some rework will be needed to allow for fast_install 26729f00f3a1Smrg # before this can be enabled. 26739f00f3a1Smrg hardcode_into_libs=yes 26749f00f3a1Smrg 26759f00f3a1Smrg # Append ld.so.conf contents to the search path 26769f00f3a1Smrg if test -f /etc/ld.so.conf; then 26779f00f3a1Smrg 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' ' '` 26789f00f3a1Smrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 26799f00f3a1Smrg fi 26809f00f3a1Smrg 26819f00f3a1Smrg # We used to test for /lib/ld.so.1 and disable shared libraries on 26829f00f3a1Smrg # powerpc, because MkLinux only supported shared libraries with the 26839f00f3a1Smrg # GNU dynamic linker. Since this was broken with cross compilers, 26849f00f3a1Smrg # most powerpc-linux boxes support dynamic linking these days and 26859f00f3a1Smrg # people can always --disable-shared, the test was removed, and we 26869f00f3a1Smrg # assume the GNU/Linux dynamic linker is in use. 26879f00f3a1Smrg dynamic_linker='GNU/Linux ld.so' 26889f00f3a1Smrg ;; 26899f00f3a1Smrg 26909f00f3a1Smrgnetbsdelf*-gnu) 26919f00f3a1Smrg version_type=linux 26929f00f3a1Smrg need_lib_prefix=no 26939f00f3a1Smrg need_version=no 26949f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 26959f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 26969f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 26979f00f3a1Smrg shlibpath_overrides_runpath=no 26989f00f3a1Smrg hardcode_into_libs=yes 26999f00f3a1Smrg dynamic_linker='NetBSD ld.elf_so' 27009f00f3a1Smrg ;; 27019f00f3a1Smrg 27029f00f3a1Smrgnetbsd*) 27039f00f3a1Smrg version_type=sunos 27049f00f3a1Smrg need_lib_prefix=no 27059f00f3a1Smrg need_version=no 27069f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 27079f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 27089f00f3a1Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 27099f00f3a1Smrg dynamic_linker='NetBSD (a.out) ld.so' 27109f00f3a1Smrg else 27119f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 27129f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 27139f00f3a1Smrg dynamic_linker='NetBSD ld.elf_so' 27149f00f3a1Smrg fi 27159f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27169f00f3a1Smrg shlibpath_overrides_runpath=yes 27179f00f3a1Smrg hardcode_into_libs=yes 27189f00f3a1Smrg ;; 27199f00f3a1Smrg 27209f00f3a1Smrgnewsos6) 27219f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 27229f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 27239f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27249f00f3a1Smrg shlibpath_overrides_runpath=yes 27259f00f3a1Smrg ;; 27269f00f3a1Smrg 27279f00f3a1Smrg*nto* | *qnx*) 27289f00f3a1Smrg version_type=qnx 27299f00f3a1Smrg need_lib_prefix=no 27309f00f3a1Smrg need_version=no 27319f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 27329f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 27339f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27349f00f3a1Smrg shlibpath_overrides_runpath=no 27359f00f3a1Smrg hardcode_into_libs=yes 27369f00f3a1Smrg dynamic_linker='ldqnx.so' 27379f00f3a1Smrg ;; 27389f00f3a1Smrg 27399f00f3a1Smrgopenbsd*) 27409f00f3a1Smrg version_type=sunos 27419f00f3a1Smrg sys_lib_dlsearch_path_spec="/usr/lib" 27429f00f3a1Smrg need_lib_prefix=no 27439f00f3a1Smrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 27449f00f3a1Smrg case $host_os in 27459f00f3a1Smrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 27469f00f3a1Smrg *) need_version=no ;; 27479f00f3a1Smrg esac 27489f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 27499f00f3a1Smrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 27509f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27519f00f3a1Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 27529f00f3a1Smrg case $host_os in 27539f00f3a1Smrg openbsd2.[[89]] | openbsd2.[[89]].*) 27549f00f3a1Smrg shlibpath_overrides_runpath=no 27559f00f3a1Smrg ;; 27569f00f3a1Smrg *) 27579f00f3a1Smrg shlibpath_overrides_runpath=yes 27589f00f3a1Smrg ;; 27599f00f3a1Smrg esac 27609f00f3a1Smrg else 27619f00f3a1Smrg shlibpath_overrides_runpath=yes 27629f00f3a1Smrg fi 27639f00f3a1Smrg ;; 27649f00f3a1Smrg 27659f00f3a1Smrgos2*) 27669f00f3a1Smrg libname_spec='$name' 27679f00f3a1Smrg shrext_cmds=".dll" 27689f00f3a1Smrg need_lib_prefix=no 27699f00f3a1Smrg library_names_spec='$libname${shared_ext} $libname.a' 27709f00f3a1Smrg dynamic_linker='OS/2 ld.exe' 27719f00f3a1Smrg shlibpath_var=LIBPATH 27729f00f3a1Smrg ;; 27739f00f3a1Smrg 27749f00f3a1Smrgosf3* | osf4* | osf5*) 27759f00f3a1Smrg version_type=osf 27769f00f3a1Smrg need_lib_prefix=no 27779f00f3a1Smrg need_version=no 27789f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 27799f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 27809f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27819f00f3a1Smrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 27829f00f3a1Smrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 27839f00f3a1Smrg ;; 27849f00f3a1Smrg 27859f00f3a1Smrgrdos*) 27869f00f3a1Smrg dynamic_linker=no 27879f00f3a1Smrg ;; 27889f00f3a1Smrg 27899f00f3a1Smrgsolaris*) 27909f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 27919f00f3a1Smrg need_lib_prefix=no 27929f00f3a1Smrg need_version=no 27939f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 27949f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 27959f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 27969f00f3a1Smrg shlibpath_overrides_runpath=yes 27979f00f3a1Smrg hardcode_into_libs=yes 27989f00f3a1Smrg # ldd complains unless libraries are executable 27999f00f3a1Smrg postinstall_cmds='chmod +x $lib' 28009f00f3a1Smrg ;; 28019f00f3a1Smrg 28029f00f3a1Smrgsunos4*) 28039f00f3a1Smrg version_type=sunos 28049f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 28059f00f3a1Smrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 28069f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28079f00f3a1Smrg shlibpath_overrides_runpath=yes 28089f00f3a1Smrg if test "$with_gnu_ld" = yes; then 28099f00f3a1Smrg need_lib_prefix=no 28109f00f3a1Smrg fi 28119f00f3a1Smrg need_version=yes 28129f00f3a1Smrg ;; 28139f00f3a1Smrg 28149f00f3a1Smrgsysv4 | sysv4.3*) 28159f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 28169f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28179f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 28189f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28199f00f3a1Smrg case $host_vendor in 28209f00f3a1Smrg sni) 28219f00f3a1Smrg shlibpath_overrides_runpath=no 28229f00f3a1Smrg need_lib_prefix=no 28239f00f3a1Smrg runpath_var=LD_RUN_PATH 28249f00f3a1Smrg ;; 28259f00f3a1Smrg siemens) 28269f00f3a1Smrg need_lib_prefix=no 28279f00f3a1Smrg ;; 28289f00f3a1Smrg motorola) 28299f00f3a1Smrg need_lib_prefix=no 28309f00f3a1Smrg need_version=no 28319f00f3a1Smrg shlibpath_overrides_runpath=no 28329f00f3a1Smrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 28339f00f3a1Smrg ;; 28349f00f3a1Smrg esac 28359f00f3a1Smrg ;; 28369f00f3a1Smrg 28379f00f3a1Smrgsysv4*MP*) 28389f00f3a1Smrg if test -d /usr/nec ;then 28399f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 28409f00f3a1Smrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 28419f00f3a1Smrg soname_spec='$libname${shared_ext}.$major' 28429f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28439f00f3a1Smrg fi 28449f00f3a1Smrg ;; 28459f00f3a1Smrg 28469f00f3a1Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 28479f00f3a1Smrg version_type=freebsd-elf 28489f00f3a1Smrg need_lib_prefix=no 28499f00f3a1Smrg need_version=no 28509f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 28519f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 28529f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28539f00f3a1Smrg shlibpath_overrides_runpath=yes 28549f00f3a1Smrg hardcode_into_libs=yes 28559f00f3a1Smrg if test "$with_gnu_ld" = yes; then 28569f00f3a1Smrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 28579f00f3a1Smrg else 28589f00f3a1Smrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 28599f00f3a1Smrg case $host_os in 28609f00f3a1Smrg sco3.2v5*) 28619f00f3a1Smrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 28629f00f3a1Smrg ;; 28639f00f3a1Smrg esac 28649f00f3a1Smrg fi 28659f00f3a1Smrg sys_lib_dlsearch_path_spec='/usr/lib' 28669f00f3a1Smrg ;; 28679f00f3a1Smrg 28689f00f3a1Smrgtpf*) 28699f00f3a1Smrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 28709f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 28719f00f3a1Smrg need_lib_prefix=no 28729f00f3a1Smrg need_version=no 28739f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28749f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28759f00f3a1Smrg shlibpath_overrides_runpath=no 28769f00f3a1Smrg hardcode_into_libs=yes 28779f00f3a1Smrg ;; 28789f00f3a1Smrg 28799f00f3a1Smrguts4*) 28809f00f3a1Smrg version_type=linux # correct to gnu/linux during the next big refactor 28819f00f3a1Smrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 28829f00f3a1Smrg soname_spec='${libname}${release}${shared_ext}$major' 28839f00f3a1Smrg shlibpath_var=LD_LIBRARY_PATH 28849f00f3a1Smrg ;; 28859f00f3a1Smrg 28869f00f3a1Smrg*) 28879f00f3a1Smrg dynamic_linker=no 28889f00f3a1Smrg ;; 28899f00f3a1Smrgesac 28909f00f3a1SmrgAC_MSG_RESULT([$dynamic_linker]) 28919f00f3a1Smrgtest "$dynamic_linker" = no && can_build_shared=no 28929f00f3a1Smrg 28939f00f3a1Smrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 28949f00f3a1Smrgif test "$GCC" = yes; then 28959f00f3a1Smrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 28969f00f3a1Smrgfi 28979f00f3a1Smrg 28989f00f3a1Smrgif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 28999f00f3a1Smrg sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 29009f00f3a1Smrgfi 29019f00f3a1Smrgif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 29029f00f3a1Smrg sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 29039f00f3a1Smrgfi 29049f00f3a1Smrg 29059f00f3a1Smrg_LT_DECL([], [variables_saved_for_relink], [1], 29069f00f3a1Smrg [Variables whose values should be saved in libtool wrapper scripts and 29079f00f3a1Smrg restored at link time]) 29089f00f3a1Smrg_LT_DECL([], [need_lib_prefix], [0], 29099f00f3a1Smrg [Do we need the "lib" prefix for modules?]) 29109f00f3a1Smrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 29119f00f3a1Smrg_LT_DECL([], [version_type], [0], [Library versioning type]) 29129f00f3a1Smrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 29139f00f3a1Smrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 29149f00f3a1Smrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 29159f00f3a1Smrg [Is shlibpath searched before the hard-coded library search path?]) 29169f00f3a1Smrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 29179f00f3a1Smrg_LT_DECL([], [library_names_spec], [1], 29189f00f3a1Smrg [[List of archive names. First name is the real one, the rest are links. 29199f00f3a1Smrg The last name is the one that the linker finds with -lNAME]]) 29209f00f3a1Smrg_LT_DECL([], [soname_spec], [1], 29219f00f3a1Smrg [[The coded name of the library, if different from the real name]]) 29229f00f3a1Smrg_LT_DECL([], [install_override_mode], [1], 29239f00f3a1Smrg [Permission mode override for installation of shared libraries]) 29249f00f3a1Smrg_LT_DECL([], [postinstall_cmds], [2], 29259f00f3a1Smrg [Command to use after installation of a shared archive]) 29269f00f3a1Smrg_LT_DECL([], [postuninstall_cmds], [2], 29279f00f3a1Smrg [Command to use after uninstallation of a shared archive]) 29289f00f3a1Smrg_LT_DECL([], [finish_cmds], [2], 29299f00f3a1Smrg [Commands used to finish a libtool library installation in a directory]) 29309f00f3a1Smrg_LT_DECL([], [finish_eval], [1], 29319f00f3a1Smrg [[As "finish_cmds", except a single script fragment to be evaled but 29329f00f3a1Smrg not shown]]) 29339f00f3a1Smrg_LT_DECL([], [hardcode_into_libs], [0], 29349f00f3a1Smrg [Whether we should hardcode library paths into libraries]) 29359f00f3a1Smrg_LT_DECL([], [sys_lib_search_path_spec], [2], 29369f00f3a1Smrg [Compile-time system search path for libraries]) 29379f00f3a1Smrg_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 29389f00f3a1Smrg [Run-time system search path for libraries]) 29399f00f3a1Smrg])# _LT_SYS_DYNAMIC_LINKER 29409f00f3a1Smrg 29419f00f3a1Smrg 29429f00f3a1Smrg# _LT_PATH_TOOL_PREFIX(TOOL) 29439f00f3a1Smrg# -------------------------- 29449f00f3a1Smrg# find a file program which can recognize shared library 29459f00f3a1SmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 29469f00f3a1Smrg[m4_require([_LT_DECL_EGREP])dnl 29479f00f3a1SmrgAC_MSG_CHECKING([for $1]) 29489f00f3a1SmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 29499f00f3a1Smrg[case $MAGIC_CMD in 29509f00f3a1Smrg[[\\/*] | ?:[\\/]*]) 29519f00f3a1Smrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 29529f00f3a1Smrg ;; 29539f00f3a1Smrg*) 29549f00f3a1Smrg lt_save_MAGIC_CMD="$MAGIC_CMD" 29559f00f3a1Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 29569f00f3a1Smrgdnl $ac_dummy forces splitting on constant user-supplied paths. 29579f00f3a1Smrgdnl POSIX.2 word splitting is done only on the output of word expansions, 29589f00f3a1Smrgdnl not every word. This closes a longstanding sh security hole. 29599f00f3a1Smrg ac_dummy="m4_if([$2], , $PATH, [$2])" 29609f00f3a1Smrg for ac_dir in $ac_dummy; do 29619f00f3a1Smrg IFS="$lt_save_ifs" 29629f00f3a1Smrg test -z "$ac_dir" && ac_dir=. 29639f00f3a1Smrg if test -f $ac_dir/$1; then 29649f00f3a1Smrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 29659f00f3a1Smrg if test -n "$file_magic_test_file"; then 29669f00f3a1Smrg case $deplibs_check_method in 29679f00f3a1Smrg "file_magic "*) 29689f00f3a1Smrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 29699f00f3a1Smrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 29709f00f3a1Smrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 29719f00f3a1Smrg $EGREP "$file_magic_regex" > /dev/null; then 29729f00f3a1Smrg : 29739f00f3a1Smrg else 29749f00f3a1Smrg cat <<_LT_EOF 1>&2 29759f00f3a1Smrg 29769f00f3a1Smrg*** Warning: the command libtool uses to detect shared libraries, 29779f00f3a1Smrg*** $file_magic_cmd, produces output that libtool cannot recognize. 29789f00f3a1Smrg*** The result is that libtool may fail to recognize shared libraries 29799f00f3a1Smrg*** as such. This will affect the creation of libtool libraries that 29809f00f3a1Smrg*** depend on shared libraries, but programs linked with such libtool 29819f00f3a1Smrg*** libraries will work regardless of this problem. Nevertheless, you 29829f00f3a1Smrg*** may want to report the problem to your system manager and/or to 29839f00f3a1Smrg*** bug-libtool@gnu.org 29849f00f3a1Smrg 29859f00f3a1Smrg_LT_EOF 29869f00f3a1Smrg fi ;; 29879f00f3a1Smrg esac 29889f00f3a1Smrg fi 29899f00f3a1Smrg break 29909f00f3a1Smrg fi 29919f00f3a1Smrg done 29929f00f3a1Smrg IFS="$lt_save_ifs" 29939f00f3a1Smrg MAGIC_CMD="$lt_save_MAGIC_CMD" 29949f00f3a1Smrg ;; 29959f00f3a1Smrgesac]) 29969f00f3a1SmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 29979f00f3a1Smrgif test -n "$MAGIC_CMD"; then 29989f00f3a1Smrg AC_MSG_RESULT($MAGIC_CMD) 29999f00f3a1Smrgelse 30009f00f3a1Smrg AC_MSG_RESULT(no) 30019f00f3a1Smrgfi 30029f00f3a1Smrg_LT_DECL([], [MAGIC_CMD], [0], 30039f00f3a1Smrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 30049f00f3a1Smrg])# _LT_PATH_TOOL_PREFIX 30059f00f3a1Smrg 30069f00f3a1Smrg# Old name: 30079f00f3a1SmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 30089f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 30099f00f3a1Smrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 30109f00f3a1Smrg 30119f00f3a1Smrg 30129f00f3a1Smrg# _LT_PATH_MAGIC 30139f00f3a1Smrg# -------------- 30149f00f3a1Smrg# find a file program which can recognize a shared library 30159f00f3a1Smrgm4_defun([_LT_PATH_MAGIC], 30169f00f3a1Smrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 30179f00f3a1Smrgif test -z "$lt_cv_path_MAGIC_CMD"; then 30189f00f3a1Smrg if test -n "$ac_tool_prefix"; then 30199f00f3a1Smrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 30209f00f3a1Smrg else 30219f00f3a1Smrg MAGIC_CMD=: 30229f00f3a1Smrg fi 30239f00f3a1Smrgfi 30249f00f3a1Smrg])# _LT_PATH_MAGIC 30259f00f3a1Smrg 30269f00f3a1Smrg 30279f00f3a1Smrg# LT_PATH_LD 30289f00f3a1Smrg# ---------- 30299f00f3a1Smrg# find the pathname to the GNU or non-GNU linker 30309f00f3a1SmrgAC_DEFUN([LT_PATH_LD], 30319f00f3a1Smrg[AC_REQUIRE([AC_PROG_CC])dnl 30329f00f3a1SmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 30339f00f3a1SmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 30349f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 30359f00f3a1Smrgm4_require([_LT_DECL_EGREP])dnl 30369f00f3a1Smrgm4_require([_LT_PROG_ECHO_BACKSLASH])dnl 30379f00f3a1Smrg 30389f00f3a1SmrgAC_ARG_WITH([gnu-ld], 30399f00f3a1Smrg [AS_HELP_STRING([--with-gnu-ld], 30409f00f3a1Smrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 30419f00f3a1Smrg [test "$withval" = no || with_gnu_ld=yes], 30429f00f3a1Smrg [with_gnu_ld=no])dnl 30439f00f3a1Smrg 30449f00f3a1Smrgac_prog=ld 30459f00f3a1Smrgif test "$GCC" = yes; then 30469f00f3a1Smrg # Check if gcc -print-prog-name=ld gives a path. 30479f00f3a1Smrg AC_MSG_CHECKING([for ld used by $CC]) 30489f00f3a1Smrg case $host in 30499f00f3a1Smrg *-*-mingw*) 30509f00f3a1Smrg # gcc leaves a trailing carriage return which upsets mingw 30519f00f3a1Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 30529f00f3a1Smrg *) 30539f00f3a1Smrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 30549f00f3a1Smrg esac 30559f00f3a1Smrg case $ac_prog in 30569f00f3a1Smrg # Accept absolute paths. 30579f00f3a1Smrg [[\\/]]* | ?:[[\\/]]*) 30589f00f3a1Smrg re_direlt='/[[^/]][[^/]]*/\.\./' 30599f00f3a1Smrg # Canonicalize the pathname of ld 30609f00f3a1Smrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 30619f00f3a1Smrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 30629f00f3a1Smrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 30639f00f3a1Smrg done 30649f00f3a1Smrg test -z "$LD" && LD="$ac_prog" 30659f00f3a1Smrg ;; 30669f00f3a1Smrg "") 30679f00f3a1Smrg # If it fails, then pretend we aren't using GCC. 30689f00f3a1Smrg ac_prog=ld 30699f00f3a1Smrg ;; 30709f00f3a1Smrg *) 30719f00f3a1Smrg # If it is relative, then search for the first ld in PATH. 30729f00f3a1Smrg with_gnu_ld=unknown 30739f00f3a1Smrg ;; 30749f00f3a1Smrg esac 30759f00f3a1Smrgelif test "$with_gnu_ld" = yes; then 30769f00f3a1Smrg AC_MSG_CHECKING([for GNU ld]) 30779f00f3a1Smrgelse 30789f00f3a1Smrg AC_MSG_CHECKING([for non-GNU ld]) 30799f00f3a1Smrgfi 30809f00f3a1SmrgAC_CACHE_VAL(lt_cv_path_LD, 30819f00f3a1Smrg[if test -z "$LD"; then 30829f00f3a1Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 30839f00f3a1Smrg for ac_dir in $PATH; do 30849f00f3a1Smrg IFS="$lt_save_ifs" 30859f00f3a1Smrg test -z "$ac_dir" && ac_dir=. 30869f00f3a1Smrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 30879f00f3a1Smrg lt_cv_path_LD="$ac_dir/$ac_prog" 30889f00f3a1Smrg # Check to see if the program is GNU ld. I'd rather use --version, 30899f00f3a1Smrg # but apparently some variants of GNU ld only accept -v. 30909f00f3a1Smrg # Break only if it was the GNU/non-GNU ld that we prefer. 30919f00f3a1Smrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 30929f00f3a1Smrg *GNU* | *'with BFD'*) 30939f00f3a1Smrg test "$with_gnu_ld" != no && break 30949f00f3a1Smrg ;; 30959f00f3a1Smrg *) 30969f00f3a1Smrg test "$with_gnu_ld" != yes && break 30979f00f3a1Smrg ;; 30989f00f3a1Smrg esac 30999f00f3a1Smrg fi 31009f00f3a1Smrg done 31019f00f3a1Smrg IFS="$lt_save_ifs" 31029f00f3a1Smrgelse 31039f00f3a1Smrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 31049f00f3a1Smrgfi]) 31059f00f3a1SmrgLD="$lt_cv_path_LD" 31069f00f3a1Smrgif test -n "$LD"; then 31079f00f3a1Smrg AC_MSG_RESULT($LD) 31089f00f3a1Smrgelse 31099f00f3a1Smrg AC_MSG_RESULT(no) 31109f00f3a1Smrgfi 31119f00f3a1Smrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 31129f00f3a1Smrg_LT_PATH_LD_GNU 31139f00f3a1SmrgAC_SUBST([LD]) 31149f00f3a1Smrg 31159f00f3a1Smrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 31169f00f3a1Smrg])# LT_PATH_LD 31179f00f3a1Smrg 31189f00f3a1Smrg# Old names: 31199f00f3a1SmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 31209f00f3a1SmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 31219f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 31229f00f3a1Smrgdnl AC_DEFUN([AM_PROG_LD], []) 31239f00f3a1Smrgdnl AC_DEFUN([AC_PROG_LD], []) 31249f00f3a1Smrg 31259f00f3a1Smrg 31269f00f3a1Smrg# _LT_PATH_LD_GNU 31279f00f3a1Smrg#- -------------- 31289f00f3a1Smrgm4_defun([_LT_PATH_LD_GNU], 31299f00f3a1Smrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 31309f00f3a1Smrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 31319f00f3a1Smrgcase `$LD -v 2>&1 </dev/null` in 31329f00f3a1Smrg*GNU* | *'with BFD'*) 31339f00f3a1Smrg lt_cv_prog_gnu_ld=yes 31349f00f3a1Smrg ;; 31359f00f3a1Smrg*) 31369f00f3a1Smrg lt_cv_prog_gnu_ld=no 31379f00f3a1Smrg ;; 31389f00f3a1Smrgesac]) 31399f00f3a1Smrgwith_gnu_ld=$lt_cv_prog_gnu_ld 31409f00f3a1Smrg])# _LT_PATH_LD_GNU 31419f00f3a1Smrg 31429f00f3a1Smrg 31439f00f3a1Smrg# _LT_CMD_RELOAD 31449f00f3a1Smrg# -------------- 31459f00f3a1Smrg# find reload flag for linker 31469f00f3a1Smrg# -- PORTME Some linkers may need a different reload flag. 31479f00f3a1Smrgm4_defun([_LT_CMD_RELOAD], 31489f00f3a1Smrg[AC_CACHE_CHECK([for $LD option to reload object files], 31499f00f3a1Smrg lt_cv_ld_reload_flag, 31509f00f3a1Smrg [lt_cv_ld_reload_flag='-r']) 31519f00f3a1Smrgreload_flag=$lt_cv_ld_reload_flag 31529f00f3a1Smrgcase $reload_flag in 31539f00f3a1Smrg"" | " "*) ;; 31549f00f3a1Smrg*) reload_flag=" $reload_flag" ;; 31559f00f3a1Smrgesac 31569f00f3a1Smrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 31579f00f3a1Smrgcase $host_os in 31589f00f3a1Smrg cygwin* | mingw* | pw32* | cegcc*) 31599f00f3a1Smrg if test "$GCC" != yes; then 31609f00f3a1Smrg reload_cmds=false 31619f00f3a1Smrg fi 31629f00f3a1Smrg ;; 31639f00f3a1Smrg darwin*) 31649f00f3a1Smrg if test "$GCC" = yes; then 31659f00f3a1Smrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 31669f00f3a1Smrg else 31679f00f3a1Smrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 31689f00f3a1Smrg fi 31699f00f3a1Smrg ;; 31709f00f3a1Smrgesac 31719f00f3a1Smrg_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 31729f00f3a1Smrg_LT_TAGDECL([], [reload_cmds], [2])dnl 31739f00f3a1Smrg])# _LT_CMD_RELOAD 31749f00f3a1Smrg 31759f00f3a1Smrg 31769f00f3a1Smrg# _LT_CHECK_MAGIC_METHOD 31779f00f3a1Smrg# ---------------------- 31789f00f3a1Smrg# how to check for library dependencies 31799f00f3a1Smrg# -- PORTME fill in with the dynamic library characteristics 31809f00f3a1Smrgm4_defun([_LT_CHECK_MAGIC_METHOD], 31819f00f3a1Smrg[m4_require([_LT_DECL_EGREP]) 31829f00f3a1Smrgm4_require([_LT_DECL_OBJDUMP]) 31839f00f3a1SmrgAC_CACHE_CHECK([how to recognize dependent libraries], 31849f00f3a1Smrglt_cv_deplibs_check_method, 31859f00f3a1Smrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 31869f00f3a1Smrglt_cv_file_magic_test_file= 31879f00f3a1Smrglt_cv_deplibs_check_method='unknown' 31889f00f3a1Smrg# Need to set the preceding variable on all platforms that support 31899f00f3a1Smrg# interlibrary dependencies. 31909f00f3a1Smrg# 'none' -- dependencies not supported. 31919f00f3a1Smrg# `unknown' -- same as none, but documents that we really don't know. 31929f00f3a1Smrg# 'pass_all' -- all dependencies passed with no checks. 31939f00f3a1Smrg# 'test_compile' -- check by making test program. 31949f00f3a1Smrg# 'file_magic [[regex]]' -- check by looking for files in library path 31959f00f3a1Smrg# which responds to the $file_magic_cmd with a given extended regex. 31969f00f3a1Smrg# If you have `file' or equivalent on your system and you're not sure 31979f00f3a1Smrg# whether `pass_all' will *always* work, you probably want this one. 31989f00f3a1Smrg 31999f00f3a1Smrgcase $host_os in 32009f00f3a1Smrgaix[[4-9]]*) 32019f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32029f00f3a1Smrg ;; 32039f00f3a1Smrg 32049f00f3a1Smrgbeos*) 32059f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32069f00f3a1Smrg ;; 32079f00f3a1Smrg 32089f00f3a1Smrgbsdi[[45]]*) 32099f00f3a1Smrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 32109f00f3a1Smrg lt_cv_file_magic_cmd='/usr/bin/file -L' 32119f00f3a1Smrg lt_cv_file_magic_test_file=/shlib/libc.so 32129f00f3a1Smrg ;; 32139f00f3a1Smrg 32149f00f3a1Smrgcygwin*) 32159f00f3a1Smrg # func_win32_libid is a shell function defined in ltmain.sh 32169f00f3a1Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 32179f00f3a1Smrg lt_cv_file_magic_cmd='func_win32_libid' 32189f00f3a1Smrg ;; 32199f00f3a1Smrg 32209f00f3a1Smrgmingw* | pw32*) 32219f00f3a1Smrg # Base MSYS/MinGW do not provide the 'file' command needed by 32229f00f3a1Smrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 32239f00f3a1Smrg # unless we find 'file', for example because we are cross-compiling. 32249f00f3a1Smrg # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 32259f00f3a1Smrg if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 32269f00f3a1Smrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 32279f00f3a1Smrg lt_cv_file_magic_cmd='func_win32_libid' 32289f00f3a1Smrg else 32299f00f3a1Smrg # Keep this pattern in sync with the one in func_win32_libid. 32309f00f3a1Smrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 32319f00f3a1Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 32329f00f3a1Smrg fi 32339f00f3a1Smrg ;; 32349f00f3a1Smrg 32359f00f3a1Smrgcegcc*) 32369f00f3a1Smrg # use the weaker test based on 'objdump'. See mingw*. 32379f00f3a1Smrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 32389f00f3a1Smrg lt_cv_file_magic_cmd='$OBJDUMP -f' 32399f00f3a1Smrg ;; 32409f00f3a1Smrg 32419f00f3a1Smrgdarwin* | rhapsody*) 32429f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32439f00f3a1Smrg ;; 32449f00f3a1Smrg 32459f00f3a1Smrgfreebsd* | dragonfly*) 32469f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 32479f00f3a1Smrg case $host_cpu in 32489f00f3a1Smrg i*86 ) 32499f00f3a1Smrg # Not sure whether the presence of OpenBSD here was a mistake. 32509f00f3a1Smrg # Let's accept both of them until this is cleared up. 32519f00f3a1Smrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 32529f00f3a1Smrg lt_cv_file_magic_cmd=/usr/bin/file 32539f00f3a1Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 32549f00f3a1Smrg ;; 32559f00f3a1Smrg esac 32569f00f3a1Smrg else 32579f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32589f00f3a1Smrg fi 32599f00f3a1Smrg ;; 32609f00f3a1Smrg 32619f00f3a1Smrghaiku*) 32629f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32639f00f3a1Smrg ;; 32649f00f3a1Smrg 32659f00f3a1Smrghpux10.20* | hpux11*) 32669f00f3a1Smrg lt_cv_file_magic_cmd=/usr/bin/file 32679f00f3a1Smrg case $host_cpu in 32689f00f3a1Smrg ia64*) 32699f00f3a1Smrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 32709f00f3a1Smrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 32719f00f3a1Smrg ;; 32729f00f3a1Smrg hppa*64*) 32739f00f3a1Smrg [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]'] 32749f00f3a1Smrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 32759f00f3a1Smrg ;; 32769f00f3a1Smrg *) 32779f00f3a1Smrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 32789f00f3a1Smrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 32799f00f3a1Smrg ;; 32809f00f3a1Smrg esac 32819f00f3a1Smrg ;; 32829f00f3a1Smrg 32839f00f3a1Smrginterix[[3-9]]*) 32849f00f3a1Smrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 32859f00f3a1Smrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 32869f00f3a1Smrg ;; 32879f00f3a1Smrg 32889f00f3a1Smrgirix5* | irix6* | nonstopux*) 32899f00f3a1Smrg case $LD in 32909f00f3a1Smrg *-32|*"-32 ") libmagic=32-bit;; 32919f00f3a1Smrg *-n32|*"-n32 ") libmagic=N32;; 32929f00f3a1Smrg *-64|*"-64 ") libmagic=64-bit;; 32939f00f3a1Smrg *) libmagic=never-match;; 32949f00f3a1Smrg esac 32959f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 32969f00f3a1Smrg ;; 32979f00f3a1Smrg 32989f00f3a1Smrg# This must be glibc/ELF. 32999f00f3a1Smrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 33009f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33019f00f3a1Smrg ;; 33029f00f3a1Smrg 33039f00f3a1Smrgnetbsd* | netbsdelf*-gnu) 33049f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 33059f00f3a1Smrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 33069f00f3a1Smrg else 33079f00f3a1Smrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 33089f00f3a1Smrg fi 33099f00f3a1Smrg ;; 33109f00f3a1Smrg 33119f00f3a1Smrgnewos6*) 33129f00f3a1Smrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 33139f00f3a1Smrg lt_cv_file_magic_cmd=/usr/bin/file 33149f00f3a1Smrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 33159f00f3a1Smrg ;; 33169f00f3a1Smrg 33179f00f3a1Smrg*nto* | *qnx*) 33189f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33199f00f3a1Smrg ;; 33209f00f3a1Smrg 33219f00f3a1Smrgopenbsd*) 33229f00f3a1Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 33239f00f3a1Smrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 33249f00f3a1Smrg else 33259f00f3a1Smrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 33269f00f3a1Smrg fi 33279f00f3a1Smrg ;; 33289f00f3a1Smrg 33299f00f3a1Smrgosf3* | osf4* | osf5*) 33309f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33319f00f3a1Smrg ;; 33329f00f3a1Smrg 33339f00f3a1Smrgrdos*) 33349f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33359f00f3a1Smrg ;; 33369f00f3a1Smrg 33379f00f3a1Smrgsolaris*) 33389f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33399f00f3a1Smrg ;; 33409f00f3a1Smrg 33419f00f3a1Smrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 33429f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33439f00f3a1Smrg ;; 33449f00f3a1Smrg 33459f00f3a1Smrgsysv4 | sysv4.3*) 33469f00f3a1Smrg case $host_vendor in 33479f00f3a1Smrg motorola) 33489f00f3a1Smrg 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]]' 33499f00f3a1Smrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 33509f00f3a1Smrg ;; 33519f00f3a1Smrg ncr) 33529f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33539f00f3a1Smrg ;; 33549f00f3a1Smrg sequent) 33559f00f3a1Smrg lt_cv_file_magic_cmd='/bin/file' 33569f00f3a1Smrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 33579f00f3a1Smrg ;; 33589f00f3a1Smrg sni) 33599f00f3a1Smrg lt_cv_file_magic_cmd='/bin/file' 33609f00f3a1Smrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 33619f00f3a1Smrg lt_cv_file_magic_test_file=/lib/libc.so 33629f00f3a1Smrg ;; 33639f00f3a1Smrg siemens) 33649f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33659f00f3a1Smrg ;; 33669f00f3a1Smrg pc) 33679f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33689f00f3a1Smrg ;; 33699f00f3a1Smrg esac 33709f00f3a1Smrg ;; 33719f00f3a1Smrg 33729f00f3a1Smrgtpf*) 33739f00f3a1Smrg lt_cv_deplibs_check_method=pass_all 33749f00f3a1Smrg ;; 33759f00f3a1Smrgesac 33769f00f3a1Smrg]) 33779f00f3a1Smrg 33789f00f3a1Smrgfile_magic_glob= 33799f00f3a1Smrgwant_nocaseglob=no 33809f00f3a1Smrgif test "$build" = "$host"; then 33819f00f3a1Smrg case $host_os in 33829f00f3a1Smrg mingw* | pw32*) 33839f00f3a1Smrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 33849f00f3a1Smrg want_nocaseglob=yes 33859f00f3a1Smrg else 33869f00f3a1Smrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 33879f00f3a1Smrg fi 33889f00f3a1Smrg ;; 33899f00f3a1Smrg esac 33909f00f3a1Smrgfi 33919f00f3a1Smrg 33929f00f3a1Smrgfile_magic_cmd=$lt_cv_file_magic_cmd 33939f00f3a1Smrgdeplibs_check_method=$lt_cv_deplibs_check_method 33949f00f3a1Smrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 33959f00f3a1Smrg 33969f00f3a1Smrg_LT_DECL([], [deplibs_check_method], [1], 33979f00f3a1Smrg [Method to check whether dependent libraries are shared objects]) 33989f00f3a1Smrg_LT_DECL([], [file_magic_cmd], [1], 33999f00f3a1Smrg [Command to use when deplibs_check_method = "file_magic"]) 34009f00f3a1Smrg_LT_DECL([], [file_magic_glob], [1], 34019f00f3a1Smrg [How to find potential files when deplibs_check_method = "file_magic"]) 34029f00f3a1Smrg_LT_DECL([], [want_nocaseglob], [1], 34039f00f3a1Smrg [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 34049f00f3a1Smrg])# _LT_CHECK_MAGIC_METHOD 34059f00f3a1Smrg 34069f00f3a1Smrg 34079f00f3a1Smrg# LT_PATH_NM 34089f00f3a1Smrg# ---------- 34099f00f3a1Smrg# find the pathname to a BSD- or MS-compatible name lister 34109f00f3a1SmrgAC_DEFUN([LT_PATH_NM], 34119f00f3a1Smrg[AC_REQUIRE([AC_PROG_CC])dnl 34129f00f3a1SmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 34139f00f3a1Smrg[if test -n "$NM"; then 34149f00f3a1Smrg # Let the user override the test. 34159f00f3a1Smrg lt_cv_path_NM="$NM" 34169f00f3a1Smrgelse 34179f00f3a1Smrg lt_nm_to_check="${ac_tool_prefix}nm" 34189f00f3a1Smrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 34199f00f3a1Smrg lt_nm_to_check="$lt_nm_to_check nm" 34209f00f3a1Smrg fi 34219f00f3a1Smrg for lt_tmp_nm in $lt_nm_to_check; do 34229f00f3a1Smrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 34239f00f3a1Smrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 34249f00f3a1Smrg IFS="$lt_save_ifs" 34259f00f3a1Smrg test -z "$ac_dir" && ac_dir=. 34269f00f3a1Smrg tmp_nm="$ac_dir/$lt_tmp_nm" 34279f00f3a1Smrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 34289f00f3a1Smrg # Check to see if the nm accepts a BSD-compat flag. 34299f00f3a1Smrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 34309f00f3a1Smrg # nm: unknown option "B" ignored 34319f00f3a1Smrg # Tru64's nm complains that /dev/null is an invalid object file 34329f00f3a1Smrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 34339f00f3a1Smrg */dev/null* | *'Invalid file or object type'*) 34349f00f3a1Smrg lt_cv_path_NM="$tmp_nm -B" 34359f00f3a1Smrg break 34369f00f3a1Smrg ;; 34379f00f3a1Smrg *) 34389f00f3a1Smrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 34399f00f3a1Smrg */dev/null*) 34409f00f3a1Smrg lt_cv_path_NM="$tmp_nm -p" 34419f00f3a1Smrg break 34429f00f3a1Smrg ;; 34439f00f3a1Smrg *) 34449f00f3a1Smrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 34459f00f3a1Smrg continue # so that we can try to find one that supports BSD flags 34469f00f3a1Smrg ;; 34479f00f3a1Smrg esac 34489f00f3a1Smrg ;; 34499f00f3a1Smrg esac 34509f00f3a1Smrg fi 34519f00f3a1Smrg done 34529f00f3a1Smrg IFS="$lt_save_ifs" 34539f00f3a1Smrg done 34549f00f3a1Smrg : ${lt_cv_path_NM=no} 34559f00f3a1Smrgfi]) 34569f00f3a1Smrgif test "$lt_cv_path_NM" != "no"; then 34579f00f3a1Smrg NM="$lt_cv_path_NM" 34589f00f3a1Smrgelse 34599f00f3a1Smrg # Didn't find any BSD compatible name lister, look for dumpbin. 34609f00f3a1Smrg if test -n "$DUMPBIN"; then : 34619f00f3a1Smrg # Let the user override the test. 34629f00f3a1Smrg else 34639f00f3a1Smrg AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 34649f00f3a1Smrg case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 34659f00f3a1Smrg *COFF*) 34669f00f3a1Smrg DUMPBIN="$DUMPBIN -symbols" 34679f00f3a1Smrg ;; 34689f00f3a1Smrg *) 34699f00f3a1Smrg DUMPBIN=: 34709f00f3a1Smrg ;; 34719f00f3a1Smrg esac 34729f00f3a1Smrg fi 34739f00f3a1Smrg AC_SUBST([DUMPBIN]) 34749f00f3a1Smrg if test "$DUMPBIN" != ":"; then 34759f00f3a1Smrg NM="$DUMPBIN" 34769f00f3a1Smrg fi 34779f00f3a1Smrgfi 34789f00f3a1Smrgtest -z "$NM" && NM=nm 34799f00f3a1SmrgAC_SUBST([NM]) 34809f00f3a1Smrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 34819f00f3a1Smrg 34829f00f3a1SmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 34839f00f3a1Smrg [lt_cv_nm_interface="BSD nm" 34849f00f3a1Smrg echo "int some_variable = 0;" > conftest.$ac_ext 34859f00f3a1Smrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 34869f00f3a1Smrg (eval "$ac_compile" 2>conftest.err) 34879f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 34889f00f3a1Smrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 34899f00f3a1Smrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 34909f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 34919f00f3a1Smrg (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 34929f00f3a1Smrg cat conftest.out >&AS_MESSAGE_LOG_FD 34939f00f3a1Smrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 34949f00f3a1Smrg lt_cv_nm_interface="MS dumpbin" 34959f00f3a1Smrg fi 34969f00f3a1Smrg rm -f conftest*]) 34979f00f3a1Smrg])# LT_PATH_NM 34989f00f3a1Smrg 34999f00f3a1Smrg# Old names: 35009f00f3a1SmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 35019f00f3a1SmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 35029f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 35039f00f3a1Smrgdnl AC_DEFUN([AM_PROG_NM], []) 35049f00f3a1Smrgdnl AC_DEFUN([AC_PROG_NM], []) 35059f00f3a1Smrg 35069f00f3a1Smrg# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 35079f00f3a1Smrg# -------------------------------- 35089f00f3a1Smrg# how to determine the name of the shared library 35099f00f3a1Smrg# associated with a specific link library. 35109f00f3a1Smrg# -- PORTME fill in with the dynamic library characteristics 35119f00f3a1Smrgm4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 35129f00f3a1Smrg[m4_require([_LT_DECL_EGREP]) 35139f00f3a1Smrgm4_require([_LT_DECL_OBJDUMP]) 35149f00f3a1Smrgm4_require([_LT_DECL_DLLTOOL]) 35159f00f3a1SmrgAC_CACHE_CHECK([how to associate runtime and link libraries], 35169f00f3a1Smrglt_cv_sharedlib_from_linklib_cmd, 35179f00f3a1Smrg[lt_cv_sharedlib_from_linklib_cmd='unknown' 35189f00f3a1Smrg 35199f00f3a1Smrgcase $host_os in 35209f00f3a1Smrgcygwin* | mingw* | pw32* | cegcc*) 35219f00f3a1Smrg # two different shell functions defined in ltmain.sh 35229f00f3a1Smrg # decide which to use based on capabilities of $DLLTOOL 35239f00f3a1Smrg case `$DLLTOOL --help 2>&1` in 35249f00f3a1Smrg *--identify-strict*) 35259f00f3a1Smrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 35269f00f3a1Smrg ;; 35279f00f3a1Smrg *) 35289f00f3a1Smrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 35299f00f3a1Smrg ;; 35309f00f3a1Smrg esac 35319f00f3a1Smrg ;; 35329f00f3a1Smrg*) 35339f00f3a1Smrg # fallback: assume linklib IS sharedlib 35349f00f3a1Smrg lt_cv_sharedlib_from_linklib_cmd="$ECHO" 35359f00f3a1Smrg ;; 35369f00f3a1Smrgesac 35379f00f3a1Smrg]) 35389f00f3a1Smrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 35399f00f3a1Smrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 35409f00f3a1Smrg 35419f00f3a1Smrg_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 35429f00f3a1Smrg [Command to associate shared and link libraries]) 35439f00f3a1Smrg])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 35449f00f3a1Smrg 35459f00f3a1Smrg 35469f00f3a1Smrg# _LT_PATH_MANIFEST_TOOL 35479f00f3a1Smrg# ---------------------- 35489f00f3a1Smrg# locate the manifest tool 35499f00f3a1Smrgm4_defun([_LT_PATH_MANIFEST_TOOL], 35509f00f3a1Smrg[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 35519f00f3a1Smrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 35529f00f3a1SmrgAC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 35539f00f3a1Smrg [lt_cv_path_mainfest_tool=no 35549f00f3a1Smrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 35559f00f3a1Smrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 35569f00f3a1Smrg cat conftest.err >&AS_MESSAGE_LOG_FD 35579f00f3a1Smrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 35589f00f3a1Smrg lt_cv_path_mainfest_tool=yes 35599f00f3a1Smrg fi 35609f00f3a1Smrg rm -f conftest*]) 35619f00f3a1Smrgif test "x$lt_cv_path_mainfest_tool" != xyes; then 35629f00f3a1Smrg MANIFEST_TOOL=: 35639f00f3a1Smrgfi 35649f00f3a1Smrg_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 35659f00f3a1Smrg])# _LT_PATH_MANIFEST_TOOL 35669f00f3a1Smrg 35679f00f3a1Smrg 35689f00f3a1Smrg# LT_LIB_M 35699f00f3a1Smrg# -------- 35709f00f3a1Smrg# check for math library 35719f00f3a1SmrgAC_DEFUN([LT_LIB_M], 35729f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 35739f00f3a1SmrgLIBM= 35749f00f3a1Smrgcase $host in 35759f00f3a1Smrg*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 35769f00f3a1Smrg # These system don't have libm, or don't need it 35779f00f3a1Smrg ;; 35789f00f3a1Smrg*-ncr-sysv4.3*) 35799f00f3a1Smrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 35809f00f3a1Smrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 35819f00f3a1Smrg ;; 35829f00f3a1Smrg*) 35839f00f3a1Smrg AC_CHECK_LIB(m, cos, LIBM="-lm") 35849f00f3a1Smrg ;; 35859f00f3a1Smrgesac 35869f00f3a1SmrgAC_SUBST([LIBM]) 35879f00f3a1Smrg])# LT_LIB_M 35889f00f3a1Smrg 35899f00f3a1Smrg# Old name: 35909f00f3a1SmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 35919f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 35929f00f3a1Smrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 35939f00f3a1Smrg 35949f00f3a1Smrg 35959f00f3a1Smrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 35969f00f3a1Smrg# ------------------------------- 35979f00f3a1Smrgm4_defun([_LT_COMPILER_NO_RTTI], 35989f00f3a1Smrg[m4_require([_LT_TAG_COMPILER])dnl 35999f00f3a1Smrg 36009f00f3a1Smrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 36019f00f3a1Smrg 36029f00f3a1Smrgif test "$GCC" = yes; then 36039f00f3a1Smrg case $cc_basename in 36049f00f3a1Smrg nvcc*) 36059f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 36069f00f3a1Smrg *) 36079f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 36089f00f3a1Smrg esac 36099f00f3a1Smrg 36109f00f3a1Smrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 36119f00f3a1Smrg lt_cv_prog_compiler_rtti_exceptions, 36129f00f3a1Smrg [-fno-rtti -fno-exceptions], [], 36139f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 36149f00f3a1Smrgfi 36159f00f3a1Smrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 36169f00f3a1Smrg [Compiler flag to turn off builtin functions]) 36179f00f3a1Smrg])# _LT_COMPILER_NO_RTTI 36189f00f3a1Smrg 36199f00f3a1Smrg 36209f00f3a1Smrg# _LT_CMD_GLOBAL_SYMBOLS 36219f00f3a1Smrg# ---------------------- 36229f00f3a1Smrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 36239f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 36249f00f3a1SmrgAC_REQUIRE([AC_PROG_CC])dnl 36259f00f3a1SmrgAC_REQUIRE([AC_PROG_AWK])dnl 36269f00f3a1SmrgAC_REQUIRE([LT_PATH_NM])dnl 36279f00f3a1SmrgAC_REQUIRE([LT_PATH_LD])dnl 36289f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 36299f00f3a1Smrgm4_require([_LT_DECL_EGREP])dnl 36309f00f3a1Smrgm4_require([_LT_TAG_COMPILER])dnl 36319f00f3a1Smrg 36329f00f3a1Smrg# Check for command to grab the raw symbol name followed by C symbol from nm. 36339f00f3a1SmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 36349f00f3a1SmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 36359f00f3a1Smrg[ 36369f00f3a1Smrg# These are sane defaults that work on at least a few old systems. 36379f00f3a1Smrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 36389f00f3a1Smrg 36399f00f3a1Smrg# Character class describing NM global symbol codes. 36409f00f3a1Smrgsymcode='[[BCDEGRST]]' 36419f00f3a1Smrg 36429f00f3a1Smrg# Regexp to match symbols that can be accessed directly from C. 36439f00f3a1Smrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 36449f00f3a1Smrg 36459f00f3a1Smrg# Define system-specific variables. 36469f00f3a1Smrgcase $host_os in 36479f00f3a1Smrgaix*) 36489f00f3a1Smrg symcode='[[BCDT]]' 36499f00f3a1Smrg ;; 36509f00f3a1Smrgcygwin* | mingw* | pw32* | cegcc*) 36519f00f3a1Smrg symcode='[[ABCDGISTW]]' 36529f00f3a1Smrg ;; 36539f00f3a1Smrghpux*) 36549f00f3a1Smrg if test "$host_cpu" = ia64; then 36559f00f3a1Smrg symcode='[[ABCDEGRST]]' 36569f00f3a1Smrg fi 36579f00f3a1Smrg ;; 36589f00f3a1Smrgirix* | nonstopux*) 36599f00f3a1Smrg symcode='[[BCDEGRST]]' 36609f00f3a1Smrg ;; 36619f00f3a1Smrgosf*) 36629f00f3a1Smrg symcode='[[BCDEGQRST]]' 36639f00f3a1Smrg ;; 36649f00f3a1Smrgsolaris*) 36659f00f3a1Smrg symcode='[[BDRT]]' 36669f00f3a1Smrg ;; 36679f00f3a1Smrgsco3.2v5*) 36689f00f3a1Smrg symcode='[[DT]]' 36699f00f3a1Smrg ;; 36709f00f3a1Smrgsysv4.2uw2*) 36719f00f3a1Smrg symcode='[[DT]]' 36729f00f3a1Smrg ;; 36739f00f3a1Smrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 36749f00f3a1Smrg symcode='[[ABDT]]' 36759f00f3a1Smrg ;; 36769f00f3a1Smrgsysv4) 36779f00f3a1Smrg symcode='[[DFNSTU]]' 36789f00f3a1Smrg ;; 36799f00f3a1Smrgesac 36809f00f3a1Smrg 36819f00f3a1Smrg# If we're using GNU nm, then use its standard symbol codes. 36829f00f3a1Smrgcase `$NM -V 2>&1` in 36839f00f3a1Smrg*GNU* | *'with BFD'*) 36849f00f3a1Smrg symcode='[[ABCDGIRSTW]]' ;; 36859f00f3a1Smrgesac 36869f00f3a1Smrg 36879f00f3a1Smrg# Transform an extracted symbol line into a proper C declaration. 36889f00f3a1Smrg# Some systems (esp. on ia64) link data and code symbols differently, 36899f00f3a1Smrg# so use this general approach. 36909f00f3a1Smrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 36919f00f3a1Smrg 36929f00f3a1Smrg# Transform an extracted symbol line into symbol name and symbol address 36939f00f3a1Smrglt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 36949f00f3a1Smrglt_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'" 36959f00f3a1Smrg 36969f00f3a1Smrg# Handle CRLF in mingw tool chain 36979f00f3a1Smrgopt_cr= 36989f00f3a1Smrgcase $build_os in 36999f00f3a1Smrgmingw*) 37009f00f3a1Smrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 37019f00f3a1Smrg ;; 37029f00f3a1Smrgesac 37039f00f3a1Smrg 37049f00f3a1Smrg# Try without a prefix underscore, then with it. 37059f00f3a1Smrgfor ac_symprfx in "" "_"; do 37069f00f3a1Smrg 37079f00f3a1Smrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 37089f00f3a1Smrg symxfrm="\\1 $ac_symprfx\\2 \\2" 37099f00f3a1Smrg 37109f00f3a1Smrg # Write the raw and C identifiers. 37119f00f3a1Smrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 37129f00f3a1Smrg # Fake it for dumpbin and say T for any non-static function 37139f00f3a1Smrg # and D for any global variable. 37149f00f3a1Smrg # Also find C++ and __fastcall symbols from MSVC++, 37159f00f3a1Smrg # which start with @ or ?. 37169f00f3a1Smrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 37179f00f3a1Smrg" {last_section=section; section=\$ 3};"\ 37189f00f3a1Smrg" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 37199f00f3a1Smrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 37209f00f3a1Smrg" \$ 0!~/External *\|/{next};"\ 37219f00f3a1Smrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 37229f00f3a1Smrg" {if(hide[section]) next};"\ 37239f00f3a1Smrg" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 37249f00f3a1Smrg" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 37259f00f3a1Smrg" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 37269f00f3a1Smrg" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 37279f00f3a1Smrg" ' prfx=^$ac_symprfx]" 37289f00f3a1Smrg else 37299f00f3a1Smrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 37309f00f3a1Smrg fi 37319f00f3a1Smrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 37329f00f3a1Smrg 37339f00f3a1Smrg # Check to see that the pipe works correctly. 37349f00f3a1Smrg pipe_works=no 37359f00f3a1Smrg 37369f00f3a1Smrg rm -f conftest* 37379f00f3a1Smrg cat > conftest.$ac_ext <<_LT_EOF 37389f00f3a1Smrg#ifdef __cplusplus 37399f00f3a1Smrgextern "C" { 37409f00f3a1Smrg#endif 37419f00f3a1Smrgchar nm_test_var; 37429f00f3a1Smrgvoid nm_test_func(void); 37439f00f3a1Smrgvoid nm_test_func(void){} 37449f00f3a1Smrg#ifdef __cplusplus 37459f00f3a1Smrg} 37469f00f3a1Smrg#endif 37479f00f3a1Smrgint main(){nm_test_var='a';nm_test_func();return(0);} 37489f00f3a1Smrg_LT_EOF 37499f00f3a1Smrg 37509f00f3a1Smrg if AC_TRY_EVAL(ac_compile); then 37519f00f3a1Smrg # Now try to grab the symbols. 37529f00f3a1Smrg nlist=conftest.nm 37539f00f3a1Smrg if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 37549f00f3a1Smrg # Try sorting and uniquifying the output. 37559f00f3a1Smrg if sort "$nlist" | uniq > "$nlist"T; then 37569f00f3a1Smrg mv -f "$nlist"T "$nlist" 37579f00f3a1Smrg else 37589f00f3a1Smrg rm -f "$nlist"T 37599f00f3a1Smrg fi 37609f00f3a1Smrg 37619f00f3a1Smrg # Make sure that we snagged all the symbols we need. 37629f00f3a1Smrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 37639f00f3a1Smrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 37649f00f3a1Smrg cat <<_LT_EOF > conftest.$ac_ext 37659f00f3a1Smrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 37669f00f3a1Smrg#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 37679f00f3a1Smrg/* DATA imports from DLLs on WIN32 con't be const, because runtime 37689f00f3a1Smrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 37699f00f3a1Smrg# define LT@&t@_DLSYM_CONST 37709f00f3a1Smrg#elif defined(__osf__) 37719f00f3a1Smrg/* This system does not cope well with relocations in const data. */ 37729f00f3a1Smrg# define LT@&t@_DLSYM_CONST 37739f00f3a1Smrg#else 37749f00f3a1Smrg# define LT@&t@_DLSYM_CONST const 37759f00f3a1Smrg#endif 37769f00f3a1Smrg 37779f00f3a1Smrg#ifdef __cplusplus 37789f00f3a1Smrgextern "C" { 37799f00f3a1Smrg#endif 37809f00f3a1Smrg 37819f00f3a1Smrg_LT_EOF 37829f00f3a1Smrg # Now generate the symbol file. 37839f00f3a1Smrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 37849f00f3a1Smrg 37859f00f3a1Smrg cat <<_LT_EOF >> conftest.$ac_ext 37869f00f3a1Smrg 37879f00f3a1Smrg/* The mapping between symbol names and symbols. */ 37889f00f3a1SmrgLT@&t@_DLSYM_CONST struct { 37899f00f3a1Smrg const char *name; 37909f00f3a1Smrg void *address; 37919f00f3a1Smrg} 37929f00f3a1Smrglt__PROGRAM__LTX_preloaded_symbols[[]] = 37939f00f3a1Smrg{ 37949f00f3a1Smrg { "@PROGRAM@", (void *) 0 }, 37959f00f3a1Smrg_LT_EOF 37969f00f3a1Smrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 37979f00f3a1Smrg cat <<\_LT_EOF >> conftest.$ac_ext 37989f00f3a1Smrg {0, (void *) 0} 37999f00f3a1Smrg}; 38009f00f3a1Smrg 38019f00f3a1Smrg/* This works around a problem in FreeBSD linker */ 38029f00f3a1Smrg#ifdef FREEBSD_WORKAROUND 38039f00f3a1Smrgstatic const void *lt_preloaded_setup() { 38049f00f3a1Smrg return lt__PROGRAM__LTX_preloaded_symbols; 38059f00f3a1Smrg} 38069f00f3a1Smrg#endif 38079f00f3a1Smrg 38089f00f3a1Smrg#ifdef __cplusplus 38099f00f3a1Smrg} 38109f00f3a1Smrg#endif 38119f00f3a1Smrg_LT_EOF 38129f00f3a1Smrg # Now try linking the two files. 38139f00f3a1Smrg mv conftest.$ac_objext conftstm.$ac_objext 38149f00f3a1Smrg lt_globsym_save_LIBS=$LIBS 38159f00f3a1Smrg lt_globsym_save_CFLAGS=$CFLAGS 38169f00f3a1Smrg LIBS="conftstm.$ac_objext" 38179f00f3a1Smrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 38189f00f3a1Smrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 38199f00f3a1Smrg pipe_works=yes 38209f00f3a1Smrg fi 38219f00f3a1Smrg LIBS=$lt_globsym_save_LIBS 38229f00f3a1Smrg CFLAGS=$lt_globsym_save_CFLAGS 38239f00f3a1Smrg else 38249f00f3a1Smrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 38259f00f3a1Smrg fi 38269f00f3a1Smrg else 38279f00f3a1Smrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 38289f00f3a1Smrg fi 38299f00f3a1Smrg else 38309f00f3a1Smrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 38319f00f3a1Smrg fi 38329f00f3a1Smrg else 38339f00f3a1Smrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 38349f00f3a1Smrg cat conftest.$ac_ext >&5 38359f00f3a1Smrg fi 38369f00f3a1Smrg rm -rf conftest* conftst* 38379f00f3a1Smrg 38389f00f3a1Smrg # Do not use the global_symbol_pipe unless it works. 38399f00f3a1Smrg if test "$pipe_works" = yes; then 38409f00f3a1Smrg break 38419f00f3a1Smrg else 38429f00f3a1Smrg lt_cv_sys_global_symbol_pipe= 38439f00f3a1Smrg fi 38449f00f3a1Smrgdone 38459f00f3a1Smrg]) 38469f00f3a1Smrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 38479f00f3a1Smrg lt_cv_sys_global_symbol_to_cdecl= 38489f00f3a1Smrgfi 38499f00f3a1Smrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 38509f00f3a1Smrg AC_MSG_RESULT(failed) 38519f00f3a1Smrgelse 38529f00f3a1Smrg AC_MSG_RESULT(ok) 38539f00f3a1Smrgfi 38549f00f3a1Smrg 38559f00f3a1Smrg# Response file support. 38569f00f3a1Smrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 38579f00f3a1Smrg nm_file_list_spec='@' 38589f00f3a1Smrgelif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 38599f00f3a1Smrg nm_file_list_spec='@' 38609f00f3a1Smrgfi 38619f00f3a1Smrg 38629f00f3a1Smrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 38639f00f3a1Smrg [Take the output of nm and produce a listing of raw symbols and C names]) 38649f00f3a1Smrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 38659f00f3a1Smrg [Transform the output of nm in a proper C declaration]) 38669f00f3a1Smrg_LT_DECL([global_symbol_to_c_name_address], 38679f00f3a1Smrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 38689f00f3a1Smrg [Transform the output of nm in a C name address pair]) 38699f00f3a1Smrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 38709f00f3a1Smrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 38719f00f3a1Smrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 38729f00f3a1Smrg_LT_DECL([], [nm_file_list_spec], [1], 38739f00f3a1Smrg [Specify filename containing input files for $NM]) 38749f00f3a1Smrg]) # _LT_CMD_GLOBAL_SYMBOLS 38759f00f3a1Smrg 38769f00f3a1Smrg 38779f00f3a1Smrg# _LT_COMPILER_PIC([TAGNAME]) 38789f00f3a1Smrg# --------------------------- 38799f00f3a1Smrgm4_defun([_LT_COMPILER_PIC], 38809f00f3a1Smrg[m4_require([_LT_TAG_COMPILER])dnl 38819f00f3a1Smrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 38829f00f3a1Smrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 38839f00f3a1Smrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 38849f00f3a1Smrg 38859f00f3a1Smrgm4_if([$1], [CXX], [ 38869f00f3a1Smrg # C++ specific cases for pic, static, wl, etc. 38879f00f3a1Smrg if test "$GXX" = yes; then 38889f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 38899f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 38909f00f3a1Smrg 38919f00f3a1Smrg case $host_os in 38929f00f3a1Smrg aix*) 38939f00f3a1Smrg # All AIX code is PIC. 38949f00f3a1Smrg if test "$host_cpu" = ia64; then 38959f00f3a1Smrg # AIX 5 now supports IA64 processor 38969f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 38979f00f3a1Smrg fi 38989f00f3a1Smrg ;; 38999f00f3a1Smrg 39009f00f3a1Smrg amigaos*) 39019f00f3a1Smrg case $host_cpu in 39029f00f3a1Smrg powerpc) 39039f00f3a1Smrg # see comment about AmigaOS4 .so support 39049f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39059f00f3a1Smrg ;; 39069f00f3a1Smrg m68k) 39079f00f3a1Smrg # FIXME: we need at least 68020 code to build shared libraries, but 39089f00f3a1Smrg # adding the `-m68020' flag to GCC prevents building anything better, 39099f00f3a1Smrg # like `-m68040'. 39109f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 39119f00f3a1Smrg ;; 39129f00f3a1Smrg esac 39139f00f3a1Smrg ;; 39149f00f3a1Smrg 39159f00f3a1Smrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 39169f00f3a1Smrg # PIC is the default for these OSes. 39179f00f3a1Smrg ;; 39189f00f3a1Smrg mingw* | cygwin* | os2* | pw32* | cegcc*) 39199f00f3a1Smrg # This hack is so that the source file can tell whether it is being 39209f00f3a1Smrg # built for inclusion in a dll (and should export symbols for example). 39219f00f3a1Smrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 39229f00f3a1Smrg # (--disable-auto-import) libraries 39239f00f3a1Smrg m4_if([$1], [GCJ], [], 39249f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39259f00f3a1Smrg ;; 39269f00f3a1Smrg darwin* | rhapsody*) 39279f00f3a1Smrg # PIC is the default on this platform 39289f00f3a1Smrg # Common symbols not allowed in MH_DYLIB files 39299f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 39309f00f3a1Smrg ;; 39319f00f3a1Smrg *djgpp*) 39329f00f3a1Smrg # DJGPP does not support shared libraries at all 39339f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 39349f00f3a1Smrg ;; 39359f00f3a1Smrg haiku*) 39369f00f3a1Smrg # PIC is the default for Haiku. 39379f00f3a1Smrg # The "-static" flag exists, but is broken. 39389f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 39399f00f3a1Smrg ;; 39409f00f3a1Smrg interix[[3-9]]*) 39419f00f3a1Smrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 39429f00f3a1Smrg # Instead, we relocate shared libraries at runtime. 39439f00f3a1Smrg ;; 39449f00f3a1Smrg sysv4*MP*) 39459f00f3a1Smrg if test -d /usr/nec; then 39469f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 39479f00f3a1Smrg fi 39489f00f3a1Smrg ;; 39499f00f3a1Smrg hpux*) 39509f00f3a1Smrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 39519f00f3a1Smrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 39529f00f3a1Smrg # sets the default TLS model and affects inlining. 39539f00f3a1Smrg case $host_cpu in 39549f00f3a1Smrg hppa*64*) 39559f00f3a1Smrg ;; 39569f00f3a1Smrg *) 39579f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39589f00f3a1Smrg ;; 39599f00f3a1Smrg esac 39609f00f3a1Smrg ;; 39619f00f3a1Smrg *qnx* | *nto*) 39629f00f3a1Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 39639f00f3a1Smrg # it will coredump. 39649f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 39659f00f3a1Smrg ;; 39669f00f3a1Smrg *) 39679f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 39689f00f3a1Smrg ;; 39699f00f3a1Smrg esac 39709f00f3a1Smrg else 39719f00f3a1Smrg case $host_os in 39729f00f3a1Smrg aix[[4-9]]*) 39739f00f3a1Smrg # All AIX code is PIC. 39749f00f3a1Smrg if test "$host_cpu" = ia64; then 39759f00f3a1Smrg # AIX 5 now supports IA64 processor 39769f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 39779f00f3a1Smrg else 39789f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 39799f00f3a1Smrg fi 39809f00f3a1Smrg ;; 39819f00f3a1Smrg chorus*) 39829f00f3a1Smrg case $cc_basename in 39839f00f3a1Smrg cxch68*) 39849f00f3a1Smrg # Green Hills C++ Compiler 39859f00f3a1Smrg # _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" 39869f00f3a1Smrg ;; 39879f00f3a1Smrg esac 39889f00f3a1Smrg ;; 39899f00f3a1Smrg mingw* | cygwin* | os2* | pw32* | cegcc*) 39909f00f3a1Smrg # This hack is so that the source file can tell whether it is being 39919f00f3a1Smrg # built for inclusion in a dll (and should export symbols for example). 39929f00f3a1Smrg m4_if([$1], [GCJ], [], 39939f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 39949f00f3a1Smrg ;; 39959f00f3a1Smrg dgux*) 39969f00f3a1Smrg case $cc_basename in 39979f00f3a1Smrg ec++*) 39989f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 39999f00f3a1Smrg ;; 40009f00f3a1Smrg ghcx*) 40019f00f3a1Smrg # Green Hills C++ Compiler 40029f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 40039f00f3a1Smrg ;; 40049f00f3a1Smrg *) 40059f00f3a1Smrg ;; 40069f00f3a1Smrg esac 40079f00f3a1Smrg ;; 40089f00f3a1Smrg freebsd* | dragonfly*) 40099f00f3a1Smrg # FreeBSD uses GNU C++ 40109f00f3a1Smrg ;; 40119f00f3a1Smrg hpux9* | hpux10* | hpux11*) 40129f00f3a1Smrg case $cc_basename in 40139f00f3a1Smrg CC*) 40149f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40159f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 40169f00f3a1Smrg if test "$host_cpu" != ia64; then 40179f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 40189f00f3a1Smrg fi 40199f00f3a1Smrg ;; 40209f00f3a1Smrg aCC*) 40219f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40229f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 40239f00f3a1Smrg case $host_cpu in 40249f00f3a1Smrg hppa*64*|ia64*) 40259f00f3a1Smrg # +Z the default 40269f00f3a1Smrg ;; 40279f00f3a1Smrg *) 40289f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 40299f00f3a1Smrg ;; 40309f00f3a1Smrg esac 40319f00f3a1Smrg ;; 40329f00f3a1Smrg *) 40339f00f3a1Smrg ;; 40349f00f3a1Smrg esac 40359f00f3a1Smrg ;; 40369f00f3a1Smrg interix*) 40379f00f3a1Smrg # This is c89, which is MS Visual C++ (no shared libs) 40389f00f3a1Smrg # Anyone wants to do a port? 40399f00f3a1Smrg ;; 40409f00f3a1Smrg irix5* | irix6* | nonstopux*) 40419f00f3a1Smrg case $cc_basename in 40429f00f3a1Smrg CC*) 40439f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40449f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40459f00f3a1Smrg # CC pic flag -KPIC is the default. 40469f00f3a1Smrg ;; 40479f00f3a1Smrg *) 40489f00f3a1Smrg ;; 40499f00f3a1Smrg esac 40509f00f3a1Smrg ;; 40519f00f3a1Smrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 40529f00f3a1Smrg case $cc_basename in 40539f00f3a1Smrg KCC*) 40549f00f3a1Smrg # KAI C++ Compiler 40559f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 40569f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 40579f00f3a1Smrg ;; 40589f00f3a1Smrg ecpc* ) 40599f00f3a1Smrg # old Intel C++ for x86_64 which still supported -KPIC. 40609f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40619f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40629f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40639f00f3a1Smrg ;; 40649f00f3a1Smrg icpc* ) 40659f00f3a1Smrg # Intel C++, used to be incompatible with GCC. 40669f00f3a1Smrg # ICC 10 doesn't accept -KPIC any more. 40679f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40689f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 40699f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 40709f00f3a1Smrg ;; 40719f00f3a1Smrg pgCC* | pgcpp*) 40729f00f3a1Smrg # Portland Group C++ compiler 40739f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40749f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 40759f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40769f00f3a1Smrg ;; 40779f00f3a1Smrg cxx*) 40789f00f3a1Smrg # Compaq C++ 40799f00f3a1Smrg # Make sure the PIC flag is empty. It appears that all Alpha 40809f00f3a1Smrg # Linux and Compaq Tru64 Unix objects are PIC. 40819f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 40829f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 40839f00f3a1Smrg ;; 40849f00f3a1Smrg xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 40859f00f3a1Smrg # IBM XL 8.0, 9.0 on PPC and BlueGene 40869f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 40879f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 40889f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 40899f00f3a1Smrg ;; 40909f00f3a1Smrg *) 40919f00f3a1Smrg case `$CC -V 2>&1 | sed 5q` in 40929f00f3a1Smrg *Sun\ C*) 40939f00f3a1Smrg # Sun C++ 5.9 40949f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 40959f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 40969f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 40979f00f3a1Smrg ;; 40989f00f3a1Smrg esac 40999f00f3a1Smrg ;; 41009f00f3a1Smrg esac 41019f00f3a1Smrg ;; 41029f00f3a1Smrg lynxos*) 41039f00f3a1Smrg ;; 41049f00f3a1Smrg m88k*) 41059f00f3a1Smrg ;; 41069f00f3a1Smrg mvs*) 41079f00f3a1Smrg case $cc_basename in 41089f00f3a1Smrg cxx*) 41099f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 41109f00f3a1Smrg ;; 41119f00f3a1Smrg *) 41129f00f3a1Smrg ;; 41139f00f3a1Smrg esac 41149f00f3a1Smrg ;; 41159f00f3a1Smrg netbsd* | netbsdelf*-gnu) 41169f00f3a1Smrg ;; 41179f00f3a1Smrg *qnx* | *nto*) 41189f00f3a1Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 41199f00f3a1Smrg # it will coredump. 41209f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 41219f00f3a1Smrg ;; 41229f00f3a1Smrg osf3* | osf4* | osf5*) 41239f00f3a1Smrg case $cc_basename in 41249f00f3a1Smrg KCC*) 41259f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 41269f00f3a1Smrg ;; 41279f00f3a1Smrg RCC*) 41289f00f3a1Smrg # Rational C++ 2.4.1 41299f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41309f00f3a1Smrg ;; 41319f00f3a1Smrg cxx*) 41329f00f3a1Smrg # Digital/Compaq C++ 41339f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41349f00f3a1Smrg # Make sure the PIC flag is empty. It appears that all Alpha 41359f00f3a1Smrg # Linux and Compaq Tru64 Unix objects are PIC. 41369f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 41379f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 41389f00f3a1Smrg ;; 41399f00f3a1Smrg *) 41409f00f3a1Smrg ;; 41419f00f3a1Smrg esac 41429f00f3a1Smrg ;; 41439f00f3a1Smrg psos*) 41449f00f3a1Smrg ;; 41459f00f3a1Smrg solaris*) 41469f00f3a1Smrg case $cc_basename in 41479f00f3a1Smrg CC* | sunCC*) 41489f00f3a1Smrg # Sun C++ 4.2, 5.x and Centerline C++ 41499f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41509f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41519f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 41529f00f3a1Smrg ;; 41539f00f3a1Smrg gcx*) 41549f00f3a1Smrg # Green Hills C++ Compiler 41559f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 41569f00f3a1Smrg ;; 41579f00f3a1Smrg *) 41589f00f3a1Smrg ;; 41599f00f3a1Smrg esac 41609f00f3a1Smrg ;; 41619f00f3a1Smrg sunos4*) 41629f00f3a1Smrg case $cc_basename in 41639f00f3a1Smrg CC*) 41649f00f3a1Smrg # Sun C++ 4.x 41659f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41669f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41679f00f3a1Smrg ;; 41689f00f3a1Smrg lcc*) 41699f00f3a1Smrg # Lucid 41709f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 41719f00f3a1Smrg ;; 41729f00f3a1Smrg *) 41739f00f3a1Smrg ;; 41749f00f3a1Smrg esac 41759f00f3a1Smrg ;; 41769f00f3a1Smrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 41779f00f3a1Smrg case $cc_basename in 41789f00f3a1Smrg CC*) 41799f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 41809f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41819f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 41829f00f3a1Smrg ;; 41839f00f3a1Smrg esac 41849f00f3a1Smrg ;; 41859f00f3a1Smrg tandem*) 41869f00f3a1Smrg case $cc_basename in 41879f00f3a1Smrg NCC*) 41889f00f3a1Smrg # NonStop-UX NCC 3.20 41899f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 41909f00f3a1Smrg ;; 41919f00f3a1Smrg *) 41929f00f3a1Smrg ;; 41939f00f3a1Smrg esac 41949f00f3a1Smrg ;; 41959f00f3a1Smrg vxworks*) 41969f00f3a1Smrg ;; 41979f00f3a1Smrg *) 41989f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 41999f00f3a1Smrg ;; 42009f00f3a1Smrg esac 42019f00f3a1Smrg fi 42029f00f3a1Smrg], 42039f00f3a1Smrg[ 42049f00f3a1Smrg if test "$GCC" = yes; then 42059f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 42069f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 42079f00f3a1Smrg 42089f00f3a1Smrg case $host_os in 42099f00f3a1Smrg aix*) 42109f00f3a1Smrg # All AIX code is PIC. 42119f00f3a1Smrg if test "$host_cpu" = ia64; then 42129f00f3a1Smrg # AIX 5 now supports IA64 processor 42139f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 42149f00f3a1Smrg fi 42159f00f3a1Smrg ;; 42169f00f3a1Smrg 42179f00f3a1Smrg amigaos*) 42189f00f3a1Smrg case $host_cpu in 42199f00f3a1Smrg powerpc) 42209f00f3a1Smrg # see comment about AmigaOS4 .so support 42219f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42229f00f3a1Smrg ;; 42239f00f3a1Smrg m68k) 42249f00f3a1Smrg # FIXME: we need at least 68020 code to build shared libraries, but 42259f00f3a1Smrg # adding the `-m68020' flag to GCC prevents building anything better, 42269f00f3a1Smrg # like `-m68040'. 42279f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 42289f00f3a1Smrg ;; 42299f00f3a1Smrg esac 42309f00f3a1Smrg ;; 42319f00f3a1Smrg 42329f00f3a1Smrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 42339f00f3a1Smrg # PIC is the default for these OSes. 42349f00f3a1Smrg ;; 42359f00f3a1Smrg 42369f00f3a1Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 42379f00f3a1Smrg # This hack is so that the source file can tell whether it is being 42389f00f3a1Smrg # built for inclusion in a dll (and should export symbols for example). 42399f00f3a1Smrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 42409f00f3a1Smrg # (--disable-auto-import) libraries 42419f00f3a1Smrg m4_if([$1], [GCJ], [], 42429f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 42439f00f3a1Smrg ;; 42449f00f3a1Smrg 42459f00f3a1Smrg darwin* | rhapsody*) 42469f00f3a1Smrg # PIC is the default on this platform 42479f00f3a1Smrg # Common symbols not allowed in MH_DYLIB files 42489f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 42499f00f3a1Smrg ;; 42509f00f3a1Smrg 42519f00f3a1Smrg haiku*) 42529f00f3a1Smrg # PIC is the default for Haiku. 42539f00f3a1Smrg # The "-static" flag exists, but is broken. 42549f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 42559f00f3a1Smrg ;; 42569f00f3a1Smrg 42579f00f3a1Smrg hpux*) 42589f00f3a1Smrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 42599f00f3a1Smrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 42609f00f3a1Smrg # sets the default TLS model and affects inlining. 42619f00f3a1Smrg case $host_cpu in 42629f00f3a1Smrg hppa*64*) 42639f00f3a1Smrg # +Z the default 42649f00f3a1Smrg ;; 42659f00f3a1Smrg *) 42669f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42679f00f3a1Smrg ;; 42689f00f3a1Smrg esac 42699f00f3a1Smrg ;; 42709f00f3a1Smrg 42719f00f3a1Smrg interix[[3-9]]*) 42729f00f3a1Smrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 42739f00f3a1Smrg # Instead, we relocate shared libraries at runtime. 42749f00f3a1Smrg ;; 42759f00f3a1Smrg 42769f00f3a1Smrg msdosdjgpp*) 42779f00f3a1Smrg # Just because we use GCC doesn't mean we suddenly get shared libraries 42789f00f3a1Smrg # on systems that don't support them. 42799f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 42809f00f3a1Smrg enable_shared=no 42819f00f3a1Smrg ;; 42829f00f3a1Smrg 42839f00f3a1Smrg *nto* | *qnx*) 42849f00f3a1Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 42859f00f3a1Smrg # it will coredump. 42869f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 42879f00f3a1Smrg ;; 42889f00f3a1Smrg 42899f00f3a1Smrg sysv4*MP*) 42909f00f3a1Smrg if test -d /usr/nec; then 42919f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 42929f00f3a1Smrg fi 42939f00f3a1Smrg ;; 42949f00f3a1Smrg 42959f00f3a1Smrg *) 42969f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42979f00f3a1Smrg ;; 42989f00f3a1Smrg esac 42999f00f3a1Smrg 43009f00f3a1Smrg case $cc_basename in 43019f00f3a1Smrg nvcc*) # Cuda Compiler Driver 2.2 43029f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 43039f00f3a1Smrg if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 43049f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 43059f00f3a1Smrg fi 43069f00f3a1Smrg ;; 43079f00f3a1Smrg esac 43089f00f3a1Smrg else 43099f00f3a1Smrg # PORTME Check for flag to pass linker flags through the system compiler. 43109f00f3a1Smrg case $host_os in 43119f00f3a1Smrg aix*) 43129f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43139f00f3a1Smrg if test "$host_cpu" = ia64; then 43149f00f3a1Smrg # AIX 5 now supports IA64 processor 43159f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 43169f00f3a1Smrg else 43179f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 43189f00f3a1Smrg fi 43199f00f3a1Smrg ;; 43209f00f3a1Smrg 43219f00f3a1Smrg mingw* | cygwin* | pw32* | os2* | cegcc*) 43229f00f3a1Smrg # This hack is so that the source file can tell whether it is being 43239f00f3a1Smrg # built for inclusion in a dll (and should export symbols for example). 43249f00f3a1Smrg m4_if([$1], [GCJ], [], 43259f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 43269f00f3a1Smrg ;; 43279f00f3a1Smrg 43289f00f3a1Smrg hpux9* | hpux10* | hpux11*) 43299f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43309f00f3a1Smrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 43319f00f3a1Smrg # not for PA HP-UX. 43329f00f3a1Smrg case $host_cpu in 43339f00f3a1Smrg hppa*64*|ia64*) 43349f00f3a1Smrg # +Z the default 43359f00f3a1Smrg ;; 43369f00f3a1Smrg *) 43379f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 43389f00f3a1Smrg ;; 43399f00f3a1Smrg esac 43409f00f3a1Smrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 43419f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 43429f00f3a1Smrg ;; 43439f00f3a1Smrg 43449f00f3a1Smrg irix5* | irix6* | nonstopux*) 43459f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43469f00f3a1Smrg # PIC (with -KPIC) is the default. 43479f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 43489f00f3a1Smrg ;; 43499f00f3a1Smrg 43509f00f3a1Smrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 43519f00f3a1Smrg case $cc_basename in 43529f00f3a1Smrg # old Intel for x86_64 which still supported -KPIC. 43539f00f3a1Smrg ecc*) 43549f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43559f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 43569f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 43579f00f3a1Smrg ;; 43589f00f3a1Smrg # icc used to be incompatible with GCC. 43599f00f3a1Smrg # ICC 10 doesn't accept -KPIC any more. 43609f00f3a1Smrg icc* | ifort*) 43619f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43629f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 43639f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 43649f00f3a1Smrg ;; 43659f00f3a1Smrg # Lahey Fortran 8.1. 43669f00f3a1Smrg lf95*) 43679f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43689f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 43699f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 43709f00f3a1Smrg ;; 43719f00f3a1Smrg nagfor*) 43729f00f3a1Smrg # NAG Fortran compiler 43739f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 43749f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 43759f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 43769f00f3a1Smrg ;; 43779f00f3a1Smrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 43789f00f3a1Smrg # Portland Group compilers (*not* the Pentium gcc compiler, 43799f00f3a1Smrg # which looks to be a dead project) 43809f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43819f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 43829f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 43839f00f3a1Smrg ;; 43849f00f3a1Smrg ccc*) 43859f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43869f00f3a1Smrg # All Alpha code is PIC. 43879f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 43889f00f3a1Smrg ;; 43899f00f3a1Smrg xl* | bgxl* | bgf* | mpixl*) 43909f00f3a1Smrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 43919f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43929f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 43939f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 43949f00f3a1Smrg ;; 43959f00f3a1Smrg *) 43969f00f3a1Smrg case `$CC -V 2>&1 | sed 5q` in 43979f00f3a1Smrg *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 43989f00f3a1Smrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 43999f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44009f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44019f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 44029f00f3a1Smrg ;; 44039f00f3a1Smrg *Sun\ F* | *Sun*Fortran*) 44049f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44059f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44069f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 44079f00f3a1Smrg ;; 44089f00f3a1Smrg *Sun\ C*) 44099f00f3a1Smrg # Sun C 5.9 44109f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44119f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44129f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44139f00f3a1Smrg ;; 44149f00f3a1Smrg *Intel*\ [[CF]]*Compiler*) 44159f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44169f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 44179f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 44189f00f3a1Smrg ;; 44199f00f3a1Smrg *Portland\ Group*) 44209f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44219f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 44229f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44239f00f3a1Smrg ;; 44249f00f3a1Smrg esac 44259f00f3a1Smrg ;; 44269f00f3a1Smrg esac 44279f00f3a1Smrg ;; 44289f00f3a1Smrg 44299f00f3a1Smrg newsos6) 44309f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44319f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44329f00f3a1Smrg ;; 44339f00f3a1Smrg 44349f00f3a1Smrg *nto* | *qnx*) 44359f00f3a1Smrg # QNX uses GNU C++, but need to define -shared option too, otherwise 44369f00f3a1Smrg # it will coredump. 44379f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 44389f00f3a1Smrg ;; 44399f00f3a1Smrg 44409f00f3a1Smrg osf3* | osf4* | osf5*) 44419f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44429f00f3a1Smrg # All OSF/1 code is PIC. 44439f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 44449f00f3a1Smrg ;; 44459f00f3a1Smrg 44469f00f3a1Smrg rdos*) 44479f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 44489f00f3a1Smrg ;; 44499f00f3a1Smrg 44509f00f3a1Smrg solaris*) 44519f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44529f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44539f00f3a1Smrg case $cc_basename in 44549f00f3a1Smrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 44559f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 44569f00f3a1Smrg *) 44579f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 44589f00f3a1Smrg esac 44599f00f3a1Smrg ;; 44609f00f3a1Smrg 44619f00f3a1Smrg sunos4*) 44629f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 44639f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 44649f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44659f00f3a1Smrg ;; 44669f00f3a1Smrg 44679f00f3a1Smrg sysv4 | sysv4.2uw2* | sysv4.3*) 44689f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44699f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44709f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44719f00f3a1Smrg ;; 44729f00f3a1Smrg 44739f00f3a1Smrg sysv4*MP*) 44749f00f3a1Smrg if test -d /usr/nec ;then 44759f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 44769f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44779f00f3a1Smrg fi 44789f00f3a1Smrg ;; 44799f00f3a1Smrg 44809f00f3a1Smrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 44819f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44829f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44839f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44849f00f3a1Smrg ;; 44859f00f3a1Smrg 44869f00f3a1Smrg unicos*) 44879f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44889f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 44899f00f3a1Smrg ;; 44909f00f3a1Smrg 44919f00f3a1Smrg uts4*) 44929f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 44939f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44949f00f3a1Smrg ;; 44959f00f3a1Smrg 44969f00f3a1Smrg *) 44979f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 44989f00f3a1Smrg ;; 44999f00f3a1Smrg esac 45009f00f3a1Smrg fi 45019f00f3a1Smrg]) 45029f00f3a1Smrgcase $host_os in 45039f00f3a1Smrg # For platforms which do not support PIC, -DPIC is meaningless: 45049f00f3a1Smrg *djgpp*) 45059f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 45069f00f3a1Smrg ;; 45079f00f3a1Smrg *) 45089f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 45099f00f3a1Smrg ;; 45109f00f3a1Smrgesac 45119f00f3a1Smrg 45129f00f3a1SmrgAC_CACHE_CHECK([for $compiler option to produce PIC], 45139f00f3a1Smrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 45149f00f3a1Smrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 45159f00f3a1Smrg_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 45169f00f3a1Smrg 45179f00f3a1Smrg# 45189f00f3a1Smrg# Check to make sure the PIC flag actually works. 45199f00f3a1Smrg# 45209f00f3a1Smrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 45219f00f3a1Smrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 45229f00f3a1Smrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 45239f00f3a1Smrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 45249f00f3a1Smrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 45259f00f3a1Smrg "" | " "*) ;; 45269f00f3a1Smrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 45279f00f3a1Smrg esac], 45289f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 45299f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 45309f00f3a1Smrgfi 45319f00f3a1Smrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 45329f00f3a1Smrg [Additional compiler flags for building library objects]) 45339f00f3a1Smrg 45349f00f3a1Smrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 45359f00f3a1Smrg [How to pass a linker flag through the compiler]) 45369f00f3a1Smrg# 45379f00f3a1Smrg# Check to make sure the static flag actually works. 45389f00f3a1Smrg# 45399f00f3a1Smrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 45409f00f3a1Smrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 45419f00f3a1Smrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 45429f00f3a1Smrg $lt_tmp_static_flag, 45439f00f3a1Smrg [], 45449f00f3a1Smrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 45459f00f3a1Smrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 45469f00f3a1Smrg [Compiler flag to prevent dynamic linking]) 45479f00f3a1Smrg])# _LT_COMPILER_PIC 45489f00f3a1Smrg 45499f00f3a1Smrg 45509f00f3a1Smrg# _LT_LINKER_SHLIBS([TAGNAME]) 45519f00f3a1Smrg# ---------------------------- 45529f00f3a1Smrg# See if the linker supports building shared libraries. 45539f00f3a1Smrgm4_defun([_LT_LINKER_SHLIBS], 45549f00f3a1Smrg[AC_REQUIRE([LT_PATH_LD])dnl 45559f00f3a1SmrgAC_REQUIRE([LT_PATH_NM])dnl 45569f00f3a1Smrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 45579f00f3a1Smrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 45589f00f3a1Smrgm4_require([_LT_DECL_EGREP])dnl 45599f00f3a1Smrgm4_require([_LT_DECL_SED])dnl 45609f00f3a1Smrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 45619f00f3a1Smrgm4_require([_LT_TAG_COMPILER])dnl 45629f00f3a1SmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 45639f00f3a1Smrgm4_if([$1], [CXX], [ 45649f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 45659f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 45669f00f3a1Smrg case $host_os in 45679f00f3a1Smrg aix[[4-9]]*) 45689f00f3a1Smrg # If we're using GNU nm, then we don't want the "-C" option. 45699f00f3a1Smrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 45709f00f3a1Smrg # Also, AIX nm treats weak defined symbols like other global defined 45719f00f3a1Smrg # symbols, whereas GNU nm marks them as "W". 45729f00f3a1Smrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 45739f00f3a1Smrg _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' 45749f00f3a1Smrg else 45759f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 45769f00f3a1Smrg fi 45779f00f3a1Smrg ;; 45789f00f3a1Smrg pw32*) 45799f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 45809f00f3a1Smrg ;; 45819f00f3a1Smrg cygwin* | mingw* | cegcc*) 45829f00f3a1Smrg case $cc_basename in 45839f00f3a1Smrg cl*) 45849f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 45859f00f3a1Smrg ;; 45869f00f3a1Smrg *) 45879f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 45889f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 45899f00f3a1Smrg ;; 45909f00f3a1Smrg esac 45919f00f3a1Smrg ;; 45929f00f3a1Smrg linux* | k*bsd*-gnu | gnu*) 45939f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=no 45949f00f3a1Smrg ;; 45959f00f3a1Smrg *) 45969f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 45979f00f3a1Smrg ;; 45989f00f3a1Smrg esac 45999f00f3a1Smrg], [ 46009f00f3a1Smrg runpath_var= 46019f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)= 46029f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=no 46039f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)= 46049f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)= 46059f00f3a1Smrg _LT_TAGVAR(compiler_needs_object, $1)=no 46069f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 46079f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 46089f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 46099f00f3a1Smrg _LT_TAGVAR(hardcode_automatic, $1)=no 46109f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 46119f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 46129f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 46139f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 46149f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=no 46159f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 46169f00f3a1Smrg _LT_TAGVAR(inherit_rpath, $1)=no 46179f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 46189f00f3a1Smrg _LT_TAGVAR(module_cmds, $1)= 46199f00f3a1Smrg _LT_TAGVAR(module_expsym_cmds, $1)= 46209f00f3a1Smrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 46219f00f3a1Smrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 46229f00f3a1Smrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 46239f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 46249f00f3a1Smrg # include_expsyms should be a list of space-separated symbols to be *always* 46259f00f3a1Smrg # included in the symbol list 46269f00f3a1Smrg _LT_TAGVAR(include_expsyms, $1)= 46279f00f3a1Smrg # exclude_expsyms can be an extended regexp of symbols to exclude 46289f00f3a1Smrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 46299f00f3a1Smrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 46309f00f3a1Smrg # as well as any symbol that contains `d'. 46319f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 46329f00f3a1Smrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 46339f00f3a1Smrg # platforms (ab)use it in PIC code, but their linkers get confused if 46349f00f3a1Smrg # the symbol is explicitly referenced. Since portable code cannot 46359f00f3a1Smrg # rely on this symbol name, it's probably fine to never include it in 46369f00f3a1Smrg # preloaded symbol tables. 46379f00f3a1Smrg # Exclude shared library initialization/finalization symbols. 46389f00f3a1Smrgdnl Note also adjust exclude_expsyms for C++ above. 46399f00f3a1Smrg extract_expsyms_cmds= 46409f00f3a1Smrg 46419f00f3a1Smrg case $host_os in 46429f00f3a1Smrg cygwin* | mingw* | pw32* | cegcc*) 46439f00f3a1Smrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 46449f00f3a1Smrg # When not using gcc, we currently assume that we are using 46459f00f3a1Smrg # Microsoft Visual C++. 46469f00f3a1Smrg if test "$GCC" != yes; then 46479f00f3a1Smrg with_gnu_ld=no 46489f00f3a1Smrg fi 46499f00f3a1Smrg ;; 46509f00f3a1Smrg interix*) 46519f00f3a1Smrg # we just hope/assume this is gcc and not c89 (= MSVC++) 46529f00f3a1Smrg with_gnu_ld=yes 46539f00f3a1Smrg ;; 46549f00f3a1Smrg openbsd*) 46559f00f3a1Smrg with_gnu_ld=no 46569f00f3a1Smrg ;; 46579f00f3a1Smrg linux* | k*bsd*-gnu | gnu*) 46589f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=no 46599f00f3a1Smrg ;; 46609f00f3a1Smrg esac 46619f00f3a1Smrg 46629f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=yes 46639f00f3a1Smrg 46649f00f3a1Smrg # On some targets, GNU ld is compatible enough with the native linker 46659f00f3a1Smrg # that we're better off using the native interface for both. 46669f00f3a1Smrg lt_use_gnu_ld_interface=no 46679f00f3a1Smrg if test "$with_gnu_ld" = yes; then 46689f00f3a1Smrg case $host_os in 46699f00f3a1Smrg aix*) 46709f00f3a1Smrg # The AIX port of GNU ld has always aspired to compatibility 46719f00f3a1Smrg # with the native linker. However, as the warning in the GNU ld 46729f00f3a1Smrg # block says, versions before 2.19.5* couldn't really create working 46739f00f3a1Smrg # shared libraries, regardless of the interface used. 46749f00f3a1Smrg case `$LD -v 2>&1` in 46759f00f3a1Smrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 46769f00f3a1Smrg *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 46779f00f3a1Smrg *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 46789f00f3a1Smrg *) 46799f00f3a1Smrg lt_use_gnu_ld_interface=yes 46809f00f3a1Smrg ;; 46819f00f3a1Smrg esac 46829f00f3a1Smrg ;; 46839f00f3a1Smrg *) 46849f00f3a1Smrg lt_use_gnu_ld_interface=yes 46859f00f3a1Smrg ;; 46869f00f3a1Smrg esac 46879f00f3a1Smrg fi 46889f00f3a1Smrg 46899f00f3a1Smrg if test "$lt_use_gnu_ld_interface" = yes; then 46909f00f3a1Smrg # If archive_cmds runs LD, not CC, wlarc should be empty 46919f00f3a1Smrg wlarc='${wl}' 46929f00f3a1Smrg 46939f00f3a1Smrg # Set some defaults for GNU ld with shared library support. These 46949f00f3a1Smrg # are reset later if shared libraries are not supported. Putting them 46959f00f3a1Smrg # here allows them to be overridden if necessary. 46969f00f3a1Smrg runpath_var=LD_RUN_PATH 46979f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 46989f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 46999f00f3a1Smrg # ancient GNU ld didn't support --whole-archive et. al. 47009f00f3a1Smrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 47019f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 47029f00f3a1Smrg else 47039f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 47049f00f3a1Smrg fi 47059f00f3a1Smrg supports_anon_versioning=no 47069f00f3a1Smrg case `$LD -v 2>&1` in 47079f00f3a1Smrg *GNU\ gold*) supports_anon_versioning=yes ;; 47089f00f3a1Smrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 47099f00f3a1Smrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 47109f00f3a1Smrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 47119f00f3a1Smrg *\ 2.11.*) ;; # other 2.11 versions 47129f00f3a1Smrg *) supports_anon_versioning=yes ;; 47139f00f3a1Smrg esac 47149f00f3a1Smrg 47159f00f3a1Smrg # See if GNU ld supports shared libraries. 47169f00f3a1Smrg case $host_os in 47179f00f3a1Smrg aix[[3-9]]*) 47189f00f3a1Smrg # On AIX/PPC, the GNU linker is very broken 47199f00f3a1Smrg if test "$host_cpu" != ia64; then 47209f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 47219f00f3a1Smrg cat <<_LT_EOF 1>&2 47229f00f3a1Smrg 47239f00f3a1Smrg*** Warning: the GNU linker, at least up to release 2.19, is reported 47249f00f3a1Smrg*** to be unable to reliably create shared libraries on AIX. 47259f00f3a1Smrg*** Therefore, libtool is disabling shared libraries support. If you 47269f00f3a1Smrg*** really care for shared libraries, you may want to install binutils 47279f00f3a1Smrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 47289f00f3a1Smrg*** You will then need to restart the configuration process. 47299f00f3a1Smrg 47309f00f3a1Smrg_LT_EOF 47319f00f3a1Smrg fi 47329f00f3a1Smrg ;; 47339f00f3a1Smrg 47349f00f3a1Smrg amigaos*) 47359f00f3a1Smrg case $host_cpu in 47369f00f3a1Smrg powerpc) 47379f00f3a1Smrg # see comment about AmigaOS4 .so support 47389f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 47399f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 47409f00f3a1Smrg ;; 47419f00f3a1Smrg m68k) 47429f00f3a1Smrg _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)' 47439f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47449f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 47459f00f3a1Smrg ;; 47469f00f3a1Smrg esac 47479f00f3a1Smrg ;; 47489f00f3a1Smrg 47499f00f3a1Smrg beos*) 47509f00f3a1Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 47519f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 47529f00f3a1Smrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 47539f00f3a1Smrg # support --undefined. This deserves some investigation. FIXME 47549f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 47559f00f3a1Smrg else 47569f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 47579f00f3a1Smrg fi 47589f00f3a1Smrg ;; 47599f00f3a1Smrg 47609f00f3a1Smrg cygwin* | mingw* | pw32* | cegcc*) 47619f00f3a1Smrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 47629f00f3a1Smrg # as there is no search path for DLLs. 47639f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 47649f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 47659f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 47669f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=no 47679f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 47689f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' 47699f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 47709f00f3a1Smrg 47719f00f3a1Smrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 47729f00f3a1Smrg _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' 47739f00f3a1Smrg # If the export-symbols file already is a .def file (1st line 47749f00f3a1Smrg # is EXPORTS), use it as is; otherwise, prepend... 47759f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 47769f00f3a1Smrg cp $export_symbols $output_objdir/$soname.def; 47779f00f3a1Smrg else 47789f00f3a1Smrg echo EXPORTS > $output_objdir/$soname.def; 47799f00f3a1Smrg cat $export_symbols >> $output_objdir/$soname.def; 47809f00f3a1Smrg fi~ 47819f00f3a1Smrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 47829f00f3a1Smrg else 47839f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 47849f00f3a1Smrg fi 47859f00f3a1Smrg ;; 47869f00f3a1Smrg 47879f00f3a1Smrg haiku*) 47889f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 47899f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 47909f00f3a1Smrg ;; 47919f00f3a1Smrg 47929f00f3a1Smrg interix[[3-9]]*) 47939f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 47949f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 47959f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 47969f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 47979f00f3a1Smrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 47989f00f3a1Smrg # Instead, shared libraries are loaded at an image base (0x10000000 by 47999f00f3a1Smrg # default) and relocated if they conflict, which is a slow very memory 48009f00f3a1Smrg # consuming and fragmenting process. To avoid this, we pick a random, 48019f00f3a1Smrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 48029f00f3a1Smrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 48039f00f3a1Smrg _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' 48049f00f3a1Smrg _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' 48059f00f3a1Smrg ;; 48069f00f3a1Smrg 48079f00f3a1Smrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 48089f00f3a1Smrg tmp_diet=no 48099f00f3a1Smrg if test "$host_os" = linux-dietlibc; then 48109f00f3a1Smrg case $cc_basename in 48119f00f3a1Smrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 48129f00f3a1Smrg esac 48139f00f3a1Smrg fi 48149f00f3a1Smrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 48159f00f3a1Smrg && test "$tmp_diet" = no 48169f00f3a1Smrg then 48179f00f3a1Smrg tmp_addflag=' $pic_flag' 48189f00f3a1Smrg tmp_sharedflag='-shared' 48199f00f3a1Smrg case $cc_basename,$host_cpu in 48209f00f3a1Smrg pgcc*) # Portland Group C compiler 48219f00f3a1Smrg _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' 48229f00f3a1Smrg tmp_addflag=' $pic_flag' 48239f00f3a1Smrg ;; 48249f00f3a1Smrg pgf77* | pgf90* | pgf95* | pgfortran*) 48259f00f3a1Smrg # Portland Group f77 and f90 compilers 48269f00f3a1Smrg _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' 48279f00f3a1Smrg tmp_addflag=' $pic_flag -Mnomain' ;; 48289f00f3a1Smrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 48299f00f3a1Smrg tmp_addflag=' -i_dynamic' ;; 48309f00f3a1Smrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 48319f00f3a1Smrg tmp_addflag=' -i_dynamic -nofor_main' ;; 48329f00f3a1Smrg ifc* | ifort*) # Intel Fortran compiler 48339f00f3a1Smrg tmp_addflag=' -nofor_main' ;; 48349f00f3a1Smrg lf95*) # Lahey Fortran 8.1 48359f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 48369f00f3a1Smrg tmp_sharedflag='--shared' ;; 48379f00f3a1Smrg xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 48389f00f3a1Smrg tmp_sharedflag='-qmkshrobj' 48399f00f3a1Smrg tmp_addflag= ;; 48409f00f3a1Smrg nvcc*) # Cuda Compiler Driver 2.2 48419f00f3a1Smrg _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' 48429f00f3a1Smrg _LT_TAGVAR(compiler_needs_object, $1)=yes 48439f00f3a1Smrg ;; 48449f00f3a1Smrg esac 48459f00f3a1Smrg case `$CC -V 2>&1 | sed 5q` in 48469f00f3a1Smrg *Sun\ C*) # Sun C 5.9 48479f00f3a1Smrg _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' 48489f00f3a1Smrg _LT_TAGVAR(compiler_needs_object, $1)=yes 48499f00f3a1Smrg tmp_sharedflag='-G' ;; 48509f00f3a1Smrg *Sun\ F*) # Sun Fortran 8.3 48519f00f3a1Smrg tmp_sharedflag='-G' ;; 48529f00f3a1Smrg esac 48539f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 48549f00f3a1Smrg 48559f00f3a1Smrg if test "x$supports_anon_versioning" = xyes; then 48569f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 48579f00f3a1Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 48589f00f3a1Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 48599f00f3a1Smrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 48609f00f3a1Smrg fi 48619f00f3a1Smrg 48629f00f3a1Smrg case $cc_basename in 48639f00f3a1Smrg xlf* | bgf* | bgxlf* | mpixlf*) 48649f00f3a1Smrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 48659f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 48669f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 48679f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 48689f00f3a1Smrg if test "x$supports_anon_versioning" = xyes; then 48699f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 48709f00f3a1Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 48719f00f3a1Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 48729f00f3a1Smrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 48739f00f3a1Smrg fi 48749f00f3a1Smrg ;; 48759f00f3a1Smrg esac 48769f00f3a1Smrg else 48779f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 48789f00f3a1Smrg fi 48799f00f3a1Smrg ;; 48809f00f3a1Smrg 48819f00f3a1Smrg netbsd* | netbsdelf*-gnu) 48829f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 48839f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 48849f00f3a1Smrg wlarc= 48859f00f3a1Smrg else 48869f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 48879f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 48889f00f3a1Smrg fi 48899f00f3a1Smrg ;; 48909f00f3a1Smrg 48919f00f3a1Smrg solaris*) 48929f00f3a1Smrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 48939f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 48949f00f3a1Smrg cat <<_LT_EOF 1>&2 48959f00f3a1Smrg 48969f00f3a1Smrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 48979f00f3a1Smrg*** create shared libraries on Solaris systems. Therefore, libtool 48989f00f3a1Smrg*** is disabling shared libraries support. We urge you to upgrade GNU 48999f00f3a1Smrg*** binutils to release 2.9.1 or newer. Another option is to modify 49009f00f3a1Smrg*** your PATH or compiler configuration so that the native linker is 49019f00f3a1Smrg*** used, and then restart. 49029f00f3a1Smrg 49039f00f3a1Smrg_LT_EOF 49049f00f3a1Smrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 49059f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 49069f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 49079f00f3a1Smrg else 49089f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 49099f00f3a1Smrg fi 49109f00f3a1Smrg ;; 49119f00f3a1Smrg 49129f00f3a1Smrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 49139f00f3a1Smrg case `$LD -v 2>&1` in 49149f00f3a1Smrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 49159f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 49169f00f3a1Smrg cat <<_LT_EOF 1>&2 49179f00f3a1Smrg 49189f00f3a1Smrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 49199f00f3a1Smrg*** reliably create shared libraries on SCO systems. Therefore, libtool 49209f00f3a1Smrg*** is disabling shared libraries support. We urge you to upgrade GNU 49219f00f3a1Smrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 49229f00f3a1Smrg*** your PATH or compiler configuration so that the native linker is 49239f00f3a1Smrg*** used, and then restart. 49249f00f3a1Smrg 49259f00f3a1Smrg_LT_EOF 49269f00f3a1Smrg ;; 49279f00f3a1Smrg *) 49289f00f3a1Smrg # For security reasons, it is highly recommended that you always 49299f00f3a1Smrg # use absolute paths for naming shared libraries, and exclude the 49309f00f3a1Smrg # DT_RUNPATH tag from executables and libraries. But doing so 49319f00f3a1Smrg # requires that you compile everything twice, which is a pain. 49329f00f3a1Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 49339f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 49349f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 49359f00f3a1Smrg _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' 49369f00f3a1Smrg else 49379f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 49389f00f3a1Smrg fi 49399f00f3a1Smrg ;; 49409f00f3a1Smrg esac 49419f00f3a1Smrg ;; 49429f00f3a1Smrg 49439f00f3a1Smrg sunos4*) 49449f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 49459f00f3a1Smrg wlarc= 49469f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 49479f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 49489f00f3a1Smrg ;; 49499f00f3a1Smrg 49509f00f3a1Smrg *) 49519f00f3a1Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 49529f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 49539f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 49549f00f3a1Smrg else 49559f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 49569f00f3a1Smrg fi 49579f00f3a1Smrg ;; 49589f00f3a1Smrg esac 49599f00f3a1Smrg 49609f00f3a1Smrg if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 49619f00f3a1Smrg runpath_var= 49629f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 49639f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 49649f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 49659f00f3a1Smrg fi 49669f00f3a1Smrg else 49679f00f3a1Smrg # PORTME fill in a description of your system's linker (not GNU ld) 49689f00f3a1Smrg case $host_os in 49699f00f3a1Smrg aix3*) 49709f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 49719f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=yes 49729f00f3a1Smrg _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' 49739f00f3a1Smrg # Note: this linker hardcodes the directories in LIBPATH if there 49749f00f3a1Smrg # are no directories specified by -L. 49759f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 49769f00f3a1Smrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 49779f00f3a1Smrg # Neither direct hardcoding nor static linking is supported with a 49789f00f3a1Smrg # broken collect2. 49799f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 49809f00f3a1Smrg fi 49819f00f3a1Smrg ;; 49829f00f3a1Smrg 49839f00f3a1Smrg aix[[4-9]]*) 49849f00f3a1Smrg if test "$host_cpu" = ia64; then 49859f00f3a1Smrg # On IA64, the linker does run time linking by default, so we don't 49869f00f3a1Smrg # have to do anything special. 49879f00f3a1Smrg aix_use_runtimelinking=no 49889f00f3a1Smrg exp_sym_flag='-Bexport' 49899f00f3a1Smrg no_entry_flag="" 49909f00f3a1Smrg else 49919f00f3a1Smrg # If we're using GNU nm, then we don't want the "-C" option. 49929f00f3a1Smrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 49939f00f3a1Smrg # Also, AIX nm treats weak defined symbols like other global 49949f00f3a1Smrg # defined symbols, whereas GNU nm marks them as "W". 49959f00f3a1Smrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 49969f00f3a1Smrg _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' 49979f00f3a1Smrg else 49989f00f3a1Smrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 49999f00f3a1Smrg fi 50009f00f3a1Smrg aix_use_runtimelinking=no 50019f00f3a1Smrg 50029f00f3a1Smrg # Test if we are trying to use run time linking or normal 50039f00f3a1Smrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 50049f00f3a1Smrg # need to do runtime linking. 50059f00f3a1Smrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 50069f00f3a1Smrg for ld_flag in $LDFLAGS; do 50079f00f3a1Smrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 50089f00f3a1Smrg aix_use_runtimelinking=yes 50099f00f3a1Smrg break 50109f00f3a1Smrg fi 50119f00f3a1Smrg done 50129f00f3a1Smrg ;; 50139f00f3a1Smrg esac 50149f00f3a1Smrg 50159f00f3a1Smrg exp_sym_flag='-bexport' 50169f00f3a1Smrg no_entry_flag='-bnoentry' 50179f00f3a1Smrg fi 50189f00f3a1Smrg 50199f00f3a1Smrg # When large executables or shared objects are built, AIX ld can 50209f00f3a1Smrg # have problems creating the table of contents. If linking a library 50219f00f3a1Smrg # or program results in "error TOC overflow" add -mminimal-toc to 50229f00f3a1Smrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 50239f00f3a1Smrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 50249f00f3a1Smrg 50259f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='' 50269f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 50279f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 50289f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 50299f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 50309f00f3a1Smrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 50319f00f3a1Smrg 50329f00f3a1Smrg if test "$GCC" = yes; then 50339f00f3a1Smrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 50349f00f3a1Smrg # We only want to do this on AIX 4.2 and lower, the check 50359f00f3a1Smrg # below for broken collect2 doesn't work under 4.3+ 50369f00f3a1Smrg collect2name=`${CC} -print-prog-name=collect2` 50379f00f3a1Smrg if test -f "$collect2name" && 50389f00f3a1Smrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 50399f00f3a1Smrg then 50409f00f3a1Smrg # We have reworked collect2 50419f00f3a1Smrg : 50429f00f3a1Smrg else 50439f00f3a1Smrg # We have old collect2 50449f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 50459f00f3a1Smrg # It fails to find uninstalled libraries when the uninstalled 50469f00f3a1Smrg # path is not listed in the libpath. Setting hardcode_minus_L 50479f00f3a1Smrg # to unsupported forces relinking 50489f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 50499f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 50509f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 50519f00f3a1Smrg fi 50529f00f3a1Smrg ;; 50539f00f3a1Smrg esac 50549f00f3a1Smrg shared_flag='-shared' 50559f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 50569f00f3a1Smrg shared_flag="$shared_flag "'${wl}-G' 50579f00f3a1Smrg fi 50589f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=no 50599f00f3a1Smrg else 50609f00f3a1Smrg # not using gcc 50619f00f3a1Smrg if test "$host_cpu" = ia64; then 50629f00f3a1Smrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 50639f00f3a1Smrg # chokes on -Wl,-G. The following line is correct: 50649f00f3a1Smrg shared_flag='-G' 50659f00f3a1Smrg else 50669f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 50679f00f3a1Smrg shared_flag='${wl}-G' 50689f00f3a1Smrg else 50699f00f3a1Smrg shared_flag='${wl}-bM:SRE' 50709f00f3a1Smrg fi 50719f00f3a1Smrg fi 50729f00f3a1Smrg fi 50739f00f3a1Smrg 50749f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 50759f00f3a1Smrg # It seems that -bexpall does not export symbols beginning with 50769f00f3a1Smrg # underscore (_), so it is better to generate a list of symbols to export. 50779f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=yes 50789f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 50799f00f3a1Smrg # Warning - without using the other runtime loading flags (-brtl), 50809f00f3a1Smrg # -berok will link without error, but may produce a broken library. 50819f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 50829f00f3a1Smrg # Determine the default libpath from the value encoded in an 50839f00f3a1Smrg # empty executable. 50849f00f3a1Smrg _LT_SYS_MODULE_PATH_AIX([$1]) 50859f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 50869f00f3a1Smrg _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" 50879f00f3a1Smrg else 50889f00f3a1Smrg if test "$host_cpu" = ia64; then 50899f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 50909f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 50919f00f3a1Smrg _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" 50929f00f3a1Smrg else 50939f00f3a1Smrg # Determine the default libpath from the value encoded in an 50949f00f3a1Smrg # empty executable. 50959f00f3a1Smrg _LT_SYS_MODULE_PATH_AIX([$1]) 50969f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 50979f00f3a1Smrg # Warning - without using the other run time loading flags, 50989f00f3a1Smrg # -berok will link without error, but may produce a broken library. 50999f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 51009f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 51019f00f3a1Smrg if test "$with_gnu_ld" = yes; then 51029f00f3a1Smrg # We only use this code for GNU lds that support --whole-archive. 51039f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 51049f00f3a1Smrg else 51059f00f3a1Smrg # Exported symbols can be pulled into shared objects from archives 51069f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 51079f00f3a1Smrg fi 51089f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 51099f00f3a1Smrg # This is similar to how AIX traditionally builds its shared libraries. 51109f00f3a1Smrg _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' 51119f00f3a1Smrg fi 51129f00f3a1Smrg fi 51139f00f3a1Smrg ;; 51149f00f3a1Smrg 51159f00f3a1Smrg amigaos*) 51169f00f3a1Smrg case $host_cpu in 51179f00f3a1Smrg powerpc) 51189f00f3a1Smrg # see comment about AmigaOS4 .so support 51199f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 51209f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 51219f00f3a1Smrg ;; 51229f00f3a1Smrg m68k) 51239f00f3a1Smrg _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)' 51249f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51259f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 51269f00f3a1Smrg ;; 51279f00f3a1Smrg esac 51289f00f3a1Smrg ;; 51299f00f3a1Smrg 51309f00f3a1Smrg bsdi[[45]]*) 51319f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 51329f00f3a1Smrg ;; 51339f00f3a1Smrg 51349f00f3a1Smrg cygwin* | mingw* | pw32* | cegcc*) 51359f00f3a1Smrg # When not using gcc, we currently assume that we are using 51369f00f3a1Smrg # Microsoft Visual C++. 51379f00f3a1Smrg # hardcode_libdir_flag_spec is actually meaningless, as there is 51389f00f3a1Smrg # no search path for DLLs. 51399f00f3a1Smrg case $cc_basename in 51409f00f3a1Smrg cl*) 51419f00f3a1Smrg # Native MSVC 51429f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 51439f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 51449f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=yes 51459f00f3a1Smrg _LT_TAGVAR(file_list_spec, $1)='@' 51469f00f3a1Smrg # Tell ltmain to make .lib files, not .a files. 51479f00f3a1Smrg libext=lib 51489f00f3a1Smrg # Tell ltmain to make .dll files, not .so files. 51499f00f3a1Smrg shrext_cmds=".dll" 51509f00f3a1Smrg # FIXME: Setting linknames here is a bad hack. 51519f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 51529f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 51539f00f3a1Smrg sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 51549f00f3a1Smrg else 51559f00f3a1Smrg sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 51569f00f3a1Smrg fi~ 51579f00f3a1Smrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 51589f00f3a1Smrg linknames=' 51599f00f3a1Smrg # The linker will not automatically build a static lib if we build a DLL. 51609f00f3a1Smrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 51619f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 51629f00f3a1Smrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 51639f00f3a1Smrg _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' 51649f00f3a1Smrg # Don't use ranlib 51659f00f3a1Smrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 51669f00f3a1Smrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 51679f00f3a1Smrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 51689f00f3a1Smrg case $lt_outputfile in 51699f00f3a1Smrg *.exe|*.EXE) ;; 51709f00f3a1Smrg *) 51719f00f3a1Smrg lt_outputfile="$lt_outputfile.exe" 51729f00f3a1Smrg lt_tool_outputfile="$lt_tool_outputfile.exe" 51739f00f3a1Smrg ;; 51749f00f3a1Smrg esac~ 51759f00f3a1Smrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 51769f00f3a1Smrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 51779f00f3a1Smrg $RM "$lt_outputfile.manifest"; 51789f00f3a1Smrg fi' 51799f00f3a1Smrg ;; 51809f00f3a1Smrg *) 51819f00f3a1Smrg # Assume MSVC wrapper 51829f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 51839f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 51849f00f3a1Smrg # Tell ltmain to make .lib files, not .a files. 51859f00f3a1Smrg libext=lib 51869f00f3a1Smrg # Tell ltmain to make .dll files, not .so files. 51879f00f3a1Smrg shrext_cmds=".dll" 51889f00f3a1Smrg # FIXME: Setting linknames here is a bad hack. 51899f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 51909f00f3a1Smrg # The linker will automatically build a .lib file if we build a DLL. 51919f00f3a1Smrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 51929f00f3a1Smrg # FIXME: Should let the user specify the lib program. 51939f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 51949f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 51959f00f3a1Smrg ;; 51969f00f3a1Smrg esac 51979f00f3a1Smrg ;; 51989f00f3a1Smrg 51999f00f3a1Smrg darwin* | rhapsody*) 52009f00f3a1Smrg _LT_DARWIN_LINKER_FEATURES($1) 52019f00f3a1Smrg ;; 52029f00f3a1Smrg 52039f00f3a1Smrg dgux*) 52049f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 52059f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 52069f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 52079f00f3a1Smrg ;; 52089f00f3a1Smrg 52099f00f3a1Smrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 52109f00f3a1Smrg # support. Future versions do this automatically, but an explicit c++rt0.o 52119f00f3a1Smrg # does not break anything, and helps significantly (at the cost of a little 52129f00f3a1Smrg # extra space). 52139f00f3a1Smrg freebsd2.2*) 52149f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 52159f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 52169f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 52179f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 52189f00f3a1Smrg ;; 52199f00f3a1Smrg 52209f00f3a1Smrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 52219f00f3a1Smrg freebsd2.*) 52229f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 52239f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 52249f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 52259f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 52269f00f3a1Smrg ;; 52279f00f3a1Smrg 52289f00f3a1Smrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 52299f00f3a1Smrg freebsd* | dragonfly*) 52309f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 52319f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 52329f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 52339f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 52349f00f3a1Smrg ;; 52359f00f3a1Smrg 52369f00f3a1Smrg hpux9*) 52379f00f3a1Smrg if test "$GCC" = yes; then 52389f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 52399f00f3a1Smrg else 52409f00f3a1Smrg _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' 52419f00f3a1Smrg fi 52429f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 52439f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 52449f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 52459f00f3a1Smrg 52469f00f3a1Smrg # hardcode_minus_L: Not really in the search PATH, 52479f00f3a1Smrg # but as the default location of the library. 52489f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 52499f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 52509f00f3a1Smrg ;; 52519f00f3a1Smrg 52529f00f3a1Smrg hpux10*) 52539f00f3a1Smrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 52549f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 52559f00f3a1Smrg else 52569f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 52579f00f3a1Smrg fi 52589f00f3a1Smrg if test "$with_gnu_ld" = no; then 52599f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 52609f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 52619f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 52629f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 52639f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 52649f00f3a1Smrg # hardcode_minus_L: Not really in the search PATH, 52659f00f3a1Smrg # but as the default location of the library. 52669f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 52679f00f3a1Smrg fi 52689f00f3a1Smrg ;; 52699f00f3a1Smrg 52709f00f3a1Smrg hpux11*) 52719f00f3a1Smrg if test "$GCC" = yes && test "$with_gnu_ld" = no; then 52729f00f3a1Smrg case $host_cpu in 52739f00f3a1Smrg hppa*64*) 52749f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 52759f00f3a1Smrg ;; 52769f00f3a1Smrg ia64*) 52779f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 52789f00f3a1Smrg ;; 52799f00f3a1Smrg *) 52809f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 52819f00f3a1Smrg ;; 52829f00f3a1Smrg esac 52839f00f3a1Smrg else 52849f00f3a1Smrg case $host_cpu in 52859f00f3a1Smrg hppa*64*) 52869f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 52879f00f3a1Smrg ;; 52889f00f3a1Smrg ia64*) 52899f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 52909f00f3a1Smrg ;; 52919f00f3a1Smrg *) 52929f00f3a1Smrg m4_if($1, [], [ 52939f00f3a1Smrg # Older versions of the 11.00 compiler do not understand -b yet 52949f00f3a1Smrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 52959f00f3a1Smrg _LT_LINKER_OPTION([if $CC understands -b], 52969f00f3a1Smrg _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 52979f00f3a1Smrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 52989f00f3a1Smrg [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 52999f00f3a1Smrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 53009f00f3a1Smrg ;; 53019f00f3a1Smrg esac 53029f00f3a1Smrg fi 53039f00f3a1Smrg if test "$with_gnu_ld" = no; then 53049f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 53059f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 53069f00f3a1Smrg 53079f00f3a1Smrg case $host_cpu in 53089f00f3a1Smrg hppa*64*|ia64*) 53099f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 53109f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 53119f00f3a1Smrg ;; 53129f00f3a1Smrg *) 53139f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 53149f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 53159f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 53169f00f3a1Smrg 53179f00f3a1Smrg # hardcode_minus_L: Not really in the search PATH, 53189f00f3a1Smrg # but as the default location of the library. 53199f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 53209f00f3a1Smrg ;; 53219f00f3a1Smrg esac 53229f00f3a1Smrg fi 53239f00f3a1Smrg ;; 53249f00f3a1Smrg 53259f00f3a1Smrg irix5* | irix6* | nonstopux*) 53269f00f3a1Smrg if test "$GCC" = yes; then 53279f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 53289f00f3a1Smrg # Try to use the -exported_symbol ld option, if it does not 53299f00f3a1Smrg # work, assume that -exports_file does not work either and 53309f00f3a1Smrg # implicitly export all symbols. 53319f00f3a1Smrg # This should be the same for all languages, so no per-tag cache variable. 53329f00f3a1Smrg AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 53339f00f3a1Smrg [lt_cv_irix_exported_symbol], 53349f00f3a1Smrg [save_LDFLAGS="$LDFLAGS" 53359f00f3a1Smrg LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 53369f00f3a1Smrg AC_LINK_IFELSE( 53379f00f3a1Smrg [AC_LANG_SOURCE( 53389f00f3a1Smrg [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 53399f00f3a1Smrg [C++], [[int foo (void) { return 0; }]], 53409f00f3a1Smrg [Fortran 77], [[ 53419f00f3a1Smrg subroutine foo 53429f00f3a1Smrg end]], 53439f00f3a1Smrg [Fortran], [[ 53449f00f3a1Smrg subroutine foo 53459f00f3a1Smrg end]])])], 53469f00f3a1Smrg [lt_cv_irix_exported_symbol=yes], 53479f00f3a1Smrg [lt_cv_irix_exported_symbol=no]) 53489f00f3a1Smrg LDFLAGS="$save_LDFLAGS"]) 53499f00f3a1Smrg if test "$lt_cv_irix_exported_symbol" = yes; then 53509f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 53519f00f3a1Smrg fi 53529f00f3a1Smrg else 53539f00f3a1Smrg _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' 53549f00f3a1Smrg _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' 53559f00f3a1Smrg fi 53569f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 53579f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 53589f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 53599f00f3a1Smrg _LT_TAGVAR(inherit_rpath, $1)=yes 53609f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 53619f00f3a1Smrg ;; 53629f00f3a1Smrg 53639f00f3a1Smrg netbsd* | netbsdelf*-gnu) 53649f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 53659f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 53669f00f3a1Smrg else 53679f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 53689f00f3a1Smrg fi 53699f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 53709f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 53719f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 53729f00f3a1Smrg ;; 53739f00f3a1Smrg 53749f00f3a1Smrg newsos6) 53759f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 53769f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 53779f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 53789f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 53799f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 53809f00f3a1Smrg ;; 53819f00f3a1Smrg 53829f00f3a1Smrg *nto* | *qnx*) 53839f00f3a1Smrg ;; 53849f00f3a1Smrg 53859f00f3a1Smrg openbsd*) 53869f00f3a1Smrg if test -f /usr/libexec/ld.so; then 53879f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 53889f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 53899f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 53909f00f3a1Smrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 53919f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 53929f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 53939f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 53949f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 53959f00f3a1Smrg else 53969f00f3a1Smrg case $host_os in 53979f00f3a1Smrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 53989f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 53999f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 54009f00f3a1Smrg ;; 54019f00f3a1Smrg *) 54029f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 54039f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 54049f00f3a1Smrg ;; 54059f00f3a1Smrg esac 54069f00f3a1Smrg fi 54079f00f3a1Smrg else 54089f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 54099f00f3a1Smrg fi 54109f00f3a1Smrg ;; 54119f00f3a1Smrg 54129f00f3a1Smrg os2*) 54139f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 54149f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 54159f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 54169f00f3a1Smrg _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' 54179f00f3a1Smrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 54189f00f3a1Smrg ;; 54199f00f3a1Smrg 54209f00f3a1Smrg osf3*) 54219f00f3a1Smrg if test "$GCC" = yes; then 54229f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 54239f00f3a1Smrg _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' 54249f00f3a1Smrg else 54259f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 54269f00f3a1Smrg _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' 54279f00f3a1Smrg fi 54289f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 54299f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 54309f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 54319f00f3a1Smrg ;; 54329f00f3a1Smrg 54339f00f3a1Smrg osf4* | osf5*) # as osf3* with the addition of -msym flag 54349f00f3a1Smrg if test "$GCC" = yes; then 54359f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 54369f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 54379f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 54389f00f3a1Smrg else 54399f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 54409f00f3a1Smrg _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' 54419f00f3a1Smrg _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~ 54429f00f3a1Smrg $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' 54439f00f3a1Smrg 54449f00f3a1Smrg # Both c and cxx compiler support -rpath directly 54459f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 54469f00f3a1Smrg fi 54479f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 54489f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 54499f00f3a1Smrg ;; 54509f00f3a1Smrg 54519f00f3a1Smrg solaris*) 54529f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 54539f00f3a1Smrg if test "$GCC" = yes; then 54549f00f3a1Smrg wlarc='${wl}' 54559f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 54569f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 54579f00f3a1Smrg $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 54589f00f3a1Smrg else 54599f00f3a1Smrg case `$CC -V 2>&1` in 54609f00f3a1Smrg *"Compilers 5.0"*) 54619f00f3a1Smrg wlarc='' 54629f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 54639f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 54649f00f3a1Smrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 54659f00f3a1Smrg ;; 54669f00f3a1Smrg *) 54679f00f3a1Smrg wlarc='${wl}' 54689f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 54699f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 54709f00f3a1Smrg $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 54719f00f3a1Smrg ;; 54729f00f3a1Smrg esac 54739f00f3a1Smrg fi 54749f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 54759f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 54769f00f3a1Smrg case $host_os in 54779f00f3a1Smrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 54789f00f3a1Smrg *) 54799f00f3a1Smrg # The compiler driver will combine and reorder linker options, 54809f00f3a1Smrg # but understands `-z linker_flag'. GCC discards it without `$wl', 54819f00f3a1Smrg # but is careful enough not to reorder. 54829f00f3a1Smrg # Supported since Solaris 2.6 (maybe 2.5.1?) 54839f00f3a1Smrg if test "$GCC" = yes; then 54849f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 54859f00f3a1Smrg else 54869f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 54879f00f3a1Smrg fi 54889f00f3a1Smrg ;; 54899f00f3a1Smrg esac 54909f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 54919f00f3a1Smrg ;; 54929f00f3a1Smrg 54939f00f3a1Smrg sunos4*) 54949f00f3a1Smrg if test "x$host_vendor" = xsequent; then 54959f00f3a1Smrg # Use $CC to link under sequent, because it throws in some extra .o 54969f00f3a1Smrg # files that make .init and .fini sections work. 54979f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 54989f00f3a1Smrg else 54999f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 55009f00f3a1Smrg fi 55019f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55029f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 55039f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 55049f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55059f00f3a1Smrg ;; 55069f00f3a1Smrg 55079f00f3a1Smrg sysv4) 55089f00f3a1Smrg case $host_vendor in 55099f00f3a1Smrg sni) 55109f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 55119f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 55129f00f3a1Smrg ;; 55139f00f3a1Smrg siemens) 55149f00f3a1Smrg ## LD is ld it makes a PLAMLIB 55159f00f3a1Smrg ## CC just makes a GrossModule. 55169f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 55179f00f3a1Smrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 55189f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 55199f00f3a1Smrg ;; 55209f00f3a1Smrg motorola) 55219f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 55229f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 55239f00f3a1Smrg ;; 55249f00f3a1Smrg esac 55259f00f3a1Smrg runpath_var='LD_RUN_PATH' 55269f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55279f00f3a1Smrg ;; 55289f00f3a1Smrg 55299f00f3a1Smrg sysv4.3*) 55309f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 55319f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55329f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 55339f00f3a1Smrg ;; 55349f00f3a1Smrg 55359f00f3a1Smrg sysv4*MP*) 55369f00f3a1Smrg if test -d /usr/nec; then 55379f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 55389f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55399f00f3a1Smrg runpath_var=LD_RUN_PATH 55409f00f3a1Smrg hardcode_runpath_var=yes 55419f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=yes 55429f00f3a1Smrg fi 55439f00f3a1Smrg ;; 55449f00f3a1Smrg 55459f00f3a1Smrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 55469f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 55479f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 55489f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55499f00f3a1Smrg runpath_var='LD_RUN_PATH' 55509f00f3a1Smrg 55519f00f3a1Smrg if test "$GCC" = yes; then 55529f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55539f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55549f00f3a1Smrg else 55559f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55569f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55579f00f3a1Smrg fi 55589f00f3a1Smrg ;; 55599f00f3a1Smrg 55609f00f3a1Smrg sysv5* | sco3.2v5* | sco5v6*) 55619f00f3a1Smrg # Note: We can NOT use -z defs as we might desire, because we do not 55629f00f3a1Smrg # link with -lc, and that would cause any symbols used from libc to 55639f00f3a1Smrg # always be unresolved, which means just about no library would 55649f00f3a1Smrg # ever link correctly. If we're not using GNU ld we use -z text 55659f00f3a1Smrg # though, which does catch some bad symbols but isn't as heavy-handed 55669f00f3a1Smrg # as -z defs. 55679f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 55689f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 55699f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 55709f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55719f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 55729f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 55739f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 55749f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 55759f00f3a1Smrg runpath_var='LD_RUN_PATH' 55769f00f3a1Smrg 55779f00f3a1Smrg if test "$GCC" = yes; then 55789f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55799f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55809f00f3a1Smrg else 55819f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55829f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 55839f00f3a1Smrg fi 55849f00f3a1Smrg ;; 55859f00f3a1Smrg 55869f00f3a1Smrg uts4*) 55879f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 55889f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55899f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 55909f00f3a1Smrg ;; 55919f00f3a1Smrg 55929f00f3a1Smrg *) 55939f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 55949f00f3a1Smrg ;; 55959f00f3a1Smrg esac 55969f00f3a1Smrg 55979f00f3a1Smrg if test x$host_vendor = xsni; then 55989f00f3a1Smrg case $host in 55999f00f3a1Smrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 56009f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 56019f00f3a1Smrg ;; 56029f00f3a1Smrg esac 56039f00f3a1Smrg fi 56049f00f3a1Smrg fi 56059f00f3a1Smrg]) 56069f00f3a1SmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 56079f00f3a1Smrgtest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 56089f00f3a1Smrg 56099f00f3a1Smrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 56109f00f3a1Smrg 56119f00f3a1Smrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 56129f00f3a1Smrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 56139f00f3a1Smrg_LT_DECL([], [extract_expsyms_cmds], [2], 56149f00f3a1Smrg [The commands to extract the exported symbol list from a shared archive]) 56159f00f3a1Smrg 56169f00f3a1Smrg# 56179f00f3a1Smrg# Do we need to explicitly link libc? 56189f00f3a1Smrg# 56199f00f3a1Smrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 56209f00f3a1Smrgx|xyes) 56219f00f3a1Smrg # Assume -lc should be added 56229f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 56239f00f3a1Smrg 56249f00f3a1Smrg if test "$enable_shared" = yes && test "$GCC" = yes; then 56259f00f3a1Smrg case $_LT_TAGVAR(archive_cmds, $1) in 56269f00f3a1Smrg *'~'*) 56279f00f3a1Smrg # FIXME: we may have to deal with multi-command sequences. 56289f00f3a1Smrg ;; 56299f00f3a1Smrg '$CC '*) 56309f00f3a1Smrg # Test whether the compiler implicitly links with -lc since on some 56319f00f3a1Smrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 56329f00f3a1Smrg # to ld, don't add -lc before -lgcc. 56339f00f3a1Smrg AC_CACHE_CHECK([whether -lc should be explicitly linked in], 56349f00f3a1Smrg [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 56359f00f3a1Smrg [$RM conftest* 56369f00f3a1Smrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 56379f00f3a1Smrg 56389f00f3a1Smrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 56399f00f3a1Smrg soname=conftest 56409f00f3a1Smrg lib=conftest 56419f00f3a1Smrg libobjs=conftest.$ac_objext 56429f00f3a1Smrg deplibs= 56439f00f3a1Smrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 56449f00f3a1Smrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 56459f00f3a1Smrg compiler_flags=-v 56469f00f3a1Smrg linker_flags=-v 56479f00f3a1Smrg verstring= 56489f00f3a1Smrg output_objdir=. 56499f00f3a1Smrg libname=conftest 56509f00f3a1Smrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 56519f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)= 56529f00f3a1Smrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 56539f00f3a1Smrg then 56549f00f3a1Smrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 56559f00f3a1Smrg else 56569f00f3a1Smrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 56579f00f3a1Smrg fi 56589f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 56599f00f3a1Smrg else 56609f00f3a1Smrg cat conftest.err 1>&5 56619f00f3a1Smrg fi 56629f00f3a1Smrg $RM conftest* 56639f00f3a1Smrg ]) 56649f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 56659f00f3a1Smrg ;; 56669f00f3a1Smrg esac 56679f00f3a1Smrg fi 56689f00f3a1Smrg ;; 56699f00f3a1Smrgesac 56709f00f3a1Smrg 56719f00f3a1Smrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 56729f00f3a1Smrg [Whether or not to add -lc for building shared libraries]) 56739f00f3a1Smrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 56749f00f3a1Smrg [enable_shared_with_static_runtimes], [0], 56759f00f3a1Smrg [Whether or not to disallow shared libs when runtime libs are static]) 56769f00f3a1Smrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 56779f00f3a1Smrg [Compiler flag to allow reflexive dlopens]) 56789f00f3a1Smrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 56799f00f3a1Smrg [Compiler flag to generate shared objects directly from archives]) 56809f00f3a1Smrg_LT_TAGDECL([], [compiler_needs_object], [1], 56819f00f3a1Smrg [Whether the compiler copes with passing no objects directly]) 56829f00f3a1Smrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 56839f00f3a1Smrg [Create an old-style archive from a shared archive]) 56849f00f3a1Smrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 56859f00f3a1Smrg [Create a temporary old-style archive to link instead of a shared archive]) 56869f00f3a1Smrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 56879f00f3a1Smrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 56889f00f3a1Smrg_LT_TAGDECL([], [module_cmds], [2], 56899f00f3a1Smrg [Commands used to build a loadable module if different from building 56909f00f3a1Smrg a shared archive.]) 56919f00f3a1Smrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 56929f00f3a1Smrg_LT_TAGDECL([], [with_gnu_ld], [1], 56939f00f3a1Smrg [Whether we are building with GNU ld or not]) 56949f00f3a1Smrg_LT_TAGDECL([], [allow_undefined_flag], [1], 56959f00f3a1Smrg [Flag that allows shared libraries with undefined symbols to be built]) 56969f00f3a1Smrg_LT_TAGDECL([], [no_undefined_flag], [1], 56979f00f3a1Smrg [Flag that enforces no undefined symbols]) 56989f00f3a1Smrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 56999f00f3a1Smrg [Flag to hardcode $libdir into a binary during linking. 57009f00f3a1Smrg This must work even if $libdir does not exist]) 57019f00f3a1Smrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 57029f00f3a1Smrg [Whether we need a single "-rpath" flag with a separated argument]) 57039f00f3a1Smrg_LT_TAGDECL([], [hardcode_direct], [0], 57049f00f3a1Smrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 57059f00f3a1Smrg DIR into the resulting binary]) 57069f00f3a1Smrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 57079f00f3a1Smrg [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 57089f00f3a1Smrg DIR into the resulting binary and the resulting library dependency is 57099f00f3a1Smrg "absolute", i.e impossible to change by setting ${shlibpath_var} if the 57109f00f3a1Smrg library is relocated]) 57119f00f3a1Smrg_LT_TAGDECL([], [hardcode_minus_L], [0], 57129f00f3a1Smrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 57139f00f3a1Smrg into the resulting binary]) 57149f00f3a1Smrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 57159f00f3a1Smrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 57169f00f3a1Smrg into the resulting binary]) 57179f00f3a1Smrg_LT_TAGDECL([], [hardcode_automatic], [0], 57189f00f3a1Smrg [Set to "yes" if building a shared library automatically hardcodes DIR 57199f00f3a1Smrg into the library and all subsequent libraries and executables linked 57209f00f3a1Smrg against it]) 57219f00f3a1Smrg_LT_TAGDECL([], [inherit_rpath], [0], 57229f00f3a1Smrg [Set to yes if linker adds runtime paths of dependent libraries 57239f00f3a1Smrg to runtime path list]) 57249f00f3a1Smrg_LT_TAGDECL([], [link_all_deplibs], [0], 57259f00f3a1Smrg [Whether libtool must link a program against all its dependency libraries]) 57269f00f3a1Smrg_LT_TAGDECL([], [always_export_symbols], [0], 57279f00f3a1Smrg [Set to "yes" if exported symbols are required]) 57289f00f3a1Smrg_LT_TAGDECL([], [export_symbols_cmds], [2], 57299f00f3a1Smrg [The commands to list exported symbols]) 57309f00f3a1Smrg_LT_TAGDECL([], [exclude_expsyms], [1], 57319f00f3a1Smrg [Symbols that should not be listed in the preloaded symbols]) 57329f00f3a1Smrg_LT_TAGDECL([], [include_expsyms], [1], 57339f00f3a1Smrg [Symbols that must always be exported]) 57349f00f3a1Smrg_LT_TAGDECL([], [prelink_cmds], [2], 57359f00f3a1Smrg [Commands necessary for linking programs (against libraries) with templates]) 57369f00f3a1Smrg_LT_TAGDECL([], [postlink_cmds], [2], 57379f00f3a1Smrg [Commands necessary for finishing linking programs]) 57389f00f3a1Smrg_LT_TAGDECL([], [file_list_spec], [1], 57399f00f3a1Smrg [Specify filename containing input files]) 57409f00f3a1Smrgdnl FIXME: Not yet implemented 57419f00f3a1Smrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 57429f00f3a1Smrgdnl [Compiler flag to generate thread safe objects]) 57439f00f3a1Smrg])# _LT_LINKER_SHLIBS 57449f00f3a1Smrg 57459f00f3a1Smrg 57469f00f3a1Smrg# _LT_LANG_C_CONFIG([TAG]) 57479f00f3a1Smrg# ------------------------ 57489f00f3a1Smrg# Ensure that the configuration variables for a C compiler are suitably 57499f00f3a1Smrg# defined. These variables are subsequently used by _LT_CONFIG to write 57509f00f3a1Smrg# the compiler configuration to `libtool'. 57519f00f3a1Smrgm4_defun([_LT_LANG_C_CONFIG], 57529f00f3a1Smrg[m4_require([_LT_DECL_EGREP])dnl 57539f00f3a1Smrglt_save_CC="$CC" 57549f00f3a1SmrgAC_LANG_PUSH(C) 57559f00f3a1Smrg 57569f00f3a1Smrg# Source file extension for C test sources. 57579f00f3a1Smrgac_ext=c 57589f00f3a1Smrg 57599f00f3a1Smrg# Object file extension for compiled C test sources. 57609f00f3a1Smrgobjext=o 57619f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 57629f00f3a1Smrg 57639f00f3a1Smrg# Code to be used in simple compile tests 57649f00f3a1Smrglt_simple_compile_test_code="int some_variable = 0;" 57659f00f3a1Smrg 57669f00f3a1Smrg# Code to be used in simple link tests 57679f00f3a1Smrglt_simple_link_test_code='int main(){return(0);}' 57689f00f3a1Smrg 57699f00f3a1Smrg_LT_TAG_COMPILER 57709f00f3a1Smrg# Save the default compiler, since it gets overwritten when the other 57719f00f3a1Smrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 57729f00f3a1Smrgcompiler_DEFAULT=$CC 57739f00f3a1Smrg 57749f00f3a1Smrg# save warnings/boilerplate of simple test code 57759f00f3a1Smrg_LT_COMPILER_BOILERPLATE 57769f00f3a1Smrg_LT_LINKER_BOILERPLATE 57779f00f3a1Smrg 57789f00f3a1Smrg## CAVEAT EMPTOR: 57799f00f3a1Smrg## There is no encapsulation within the following macros, do not change 57809f00f3a1Smrg## the running order or otherwise move them around unless you know exactly 57819f00f3a1Smrg## what you are doing... 57829f00f3a1Smrgif test -n "$compiler"; then 57839f00f3a1Smrg _LT_COMPILER_NO_RTTI($1) 57849f00f3a1Smrg _LT_COMPILER_PIC($1) 57859f00f3a1Smrg _LT_COMPILER_C_O($1) 57869f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 57879f00f3a1Smrg _LT_LINKER_SHLIBS($1) 57889f00f3a1Smrg _LT_SYS_DYNAMIC_LINKER($1) 57899f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 57909f00f3a1Smrg LT_SYS_DLOPEN_SELF 57919f00f3a1Smrg _LT_CMD_STRIPLIB 57929f00f3a1Smrg 57939f00f3a1Smrg # Report which library types will actually be built 57949f00f3a1Smrg AC_MSG_CHECKING([if libtool supports shared libraries]) 57959f00f3a1Smrg AC_MSG_RESULT([$can_build_shared]) 57969f00f3a1Smrg 57979f00f3a1Smrg AC_MSG_CHECKING([whether to build shared libraries]) 57989f00f3a1Smrg test "$can_build_shared" = "no" && enable_shared=no 57999f00f3a1Smrg 58009f00f3a1Smrg # On AIX, shared libraries and static libraries use the same namespace, and 58019f00f3a1Smrg # are all built from PIC. 58029f00f3a1Smrg case $host_os in 58039f00f3a1Smrg aix3*) 58049f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 58059f00f3a1Smrg if test -n "$RANLIB"; then 58069f00f3a1Smrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 58079f00f3a1Smrg postinstall_cmds='$RANLIB $lib' 58089f00f3a1Smrg fi 58099f00f3a1Smrg ;; 58109f00f3a1Smrg 58119f00f3a1Smrg aix[[4-9]]*) 58129f00f3a1Smrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 58139f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 58149f00f3a1Smrg fi 58159f00f3a1Smrg ;; 58169f00f3a1Smrg esac 58179f00f3a1Smrg AC_MSG_RESULT([$enable_shared]) 58189f00f3a1Smrg 58199f00f3a1Smrg AC_MSG_CHECKING([whether to build static libraries]) 58209f00f3a1Smrg # Make sure either enable_shared or enable_static is yes. 58219f00f3a1Smrg test "$enable_shared" = yes || enable_static=yes 58229f00f3a1Smrg AC_MSG_RESULT([$enable_static]) 58239f00f3a1Smrg 58249f00f3a1Smrg _LT_CONFIG($1) 58259f00f3a1Smrgfi 58269f00f3a1SmrgAC_LANG_POP 58279f00f3a1SmrgCC="$lt_save_CC" 58289f00f3a1Smrg])# _LT_LANG_C_CONFIG 58299f00f3a1Smrg 58309f00f3a1Smrg 58319f00f3a1Smrg# _LT_LANG_CXX_CONFIG([TAG]) 58329f00f3a1Smrg# -------------------------- 58339f00f3a1Smrg# Ensure that the configuration variables for a C++ compiler are suitably 58349f00f3a1Smrg# defined. These variables are subsequently used by _LT_CONFIG to write 58359f00f3a1Smrg# the compiler configuration to `libtool'. 58369f00f3a1Smrgm4_defun([_LT_LANG_CXX_CONFIG], 58379f00f3a1Smrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 58389f00f3a1Smrgm4_require([_LT_DECL_EGREP])dnl 58399f00f3a1Smrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 58409f00f3a1Smrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 58419f00f3a1Smrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 58429f00f3a1Smrg (test "X$CXX" != "Xg++"))) ; then 58439f00f3a1Smrg AC_PROG_CXXCPP 58449f00f3a1Smrgelse 58459f00f3a1Smrg _lt_caught_CXX_error=yes 58469f00f3a1Smrgfi 58479f00f3a1Smrg 58489f00f3a1SmrgAC_LANG_PUSH(C++) 58499f00f3a1Smrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 58509f00f3a1Smrg_LT_TAGVAR(allow_undefined_flag, $1)= 58519f00f3a1Smrg_LT_TAGVAR(always_export_symbols, $1)=no 58529f00f3a1Smrg_LT_TAGVAR(archive_expsym_cmds, $1)= 58539f00f3a1Smrg_LT_TAGVAR(compiler_needs_object, $1)=no 58549f00f3a1Smrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 58559f00f3a1Smrg_LT_TAGVAR(hardcode_direct, $1)=no 58569f00f3a1Smrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 58579f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 58589f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 58599f00f3a1Smrg_LT_TAGVAR(hardcode_minus_L, $1)=no 58609f00f3a1Smrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 58619f00f3a1Smrg_LT_TAGVAR(hardcode_automatic, $1)=no 58629f00f3a1Smrg_LT_TAGVAR(inherit_rpath, $1)=no 58639f00f3a1Smrg_LT_TAGVAR(module_cmds, $1)= 58649f00f3a1Smrg_LT_TAGVAR(module_expsym_cmds, $1)= 58659f00f3a1Smrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 58669f00f3a1Smrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 58679f00f3a1Smrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 58689f00f3a1Smrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 58699f00f3a1Smrg_LT_TAGVAR(no_undefined_flag, $1)= 58709f00f3a1Smrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 58719f00f3a1Smrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 58729f00f3a1Smrg 58739f00f3a1Smrg# Source file extension for C++ test sources. 58749f00f3a1Smrgac_ext=cpp 58759f00f3a1Smrg 58769f00f3a1Smrg# Object file extension for compiled C++ test sources. 58779f00f3a1Smrgobjext=o 58789f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 58799f00f3a1Smrg 58809f00f3a1Smrg# No sense in running all these tests if we already determined that 58819f00f3a1Smrg# the CXX compiler isn't working. Some variables (like enable_shared) 58829f00f3a1Smrg# are currently assumed to apply to all compilers on this platform, 58839f00f3a1Smrg# and will be corrupted by setting them based on a non-working compiler. 58849f00f3a1Smrgif test "$_lt_caught_CXX_error" != yes; then 58859f00f3a1Smrg # Code to be used in simple compile tests 58869f00f3a1Smrg lt_simple_compile_test_code="int some_variable = 0;" 58879f00f3a1Smrg 58889f00f3a1Smrg # Code to be used in simple link tests 58899f00f3a1Smrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 58909f00f3a1Smrg 58919f00f3a1Smrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 58929f00f3a1Smrg _LT_TAG_COMPILER 58939f00f3a1Smrg 58949f00f3a1Smrg # save warnings/boilerplate of simple test code 58959f00f3a1Smrg _LT_COMPILER_BOILERPLATE 58969f00f3a1Smrg _LT_LINKER_BOILERPLATE 58979f00f3a1Smrg 58989f00f3a1Smrg # Allow CC to be a program name with arguments. 58999f00f3a1Smrg lt_save_CC=$CC 59009f00f3a1Smrg lt_save_CFLAGS=$CFLAGS 59019f00f3a1Smrg lt_save_LD=$LD 59029f00f3a1Smrg lt_save_GCC=$GCC 59039f00f3a1Smrg GCC=$GXX 59049f00f3a1Smrg lt_save_with_gnu_ld=$with_gnu_ld 59059f00f3a1Smrg lt_save_path_LD=$lt_cv_path_LD 59069f00f3a1Smrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 59079f00f3a1Smrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 59089f00f3a1Smrg else 59099f00f3a1Smrg $as_unset lt_cv_prog_gnu_ld 59109f00f3a1Smrg fi 59119f00f3a1Smrg if test -n "${lt_cv_path_LDCXX+set}"; then 59129f00f3a1Smrg lt_cv_path_LD=$lt_cv_path_LDCXX 59139f00f3a1Smrg else 59149f00f3a1Smrg $as_unset lt_cv_path_LD 59159f00f3a1Smrg fi 59169f00f3a1Smrg test -z "${LDCXX+set}" || LD=$LDCXX 59179f00f3a1Smrg CC=${CXX-"c++"} 59189f00f3a1Smrg CFLAGS=$CXXFLAGS 59199f00f3a1Smrg compiler=$CC 59209f00f3a1Smrg _LT_TAGVAR(compiler, $1)=$CC 59219f00f3a1Smrg _LT_CC_BASENAME([$compiler]) 59229f00f3a1Smrg 59239f00f3a1Smrg if test -n "$compiler"; then 59249f00f3a1Smrg # We don't want -fno-exception when compiling C++ code, so set the 59259f00f3a1Smrg # no_builtin_flag separately 59269f00f3a1Smrg if test "$GXX" = yes; then 59279f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 59289f00f3a1Smrg else 59299f00f3a1Smrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 59309f00f3a1Smrg fi 59319f00f3a1Smrg 59329f00f3a1Smrg if test "$GXX" = yes; then 59339f00f3a1Smrg # Set up default GNU C++ configuration 59349f00f3a1Smrg 59359f00f3a1Smrg LT_PATH_LD 59369f00f3a1Smrg 59379f00f3a1Smrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 59389f00f3a1Smrg # archiving commands below assume that GNU ld is being used. 59399f00f3a1Smrg if test "$with_gnu_ld" = yes; then 59409f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 59419f00f3a1Smrg _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' 59429f00f3a1Smrg 59439f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59449f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 59459f00f3a1Smrg 59469f00f3a1Smrg # If archive_cmds runs LD, not CC, wlarc should be empty 59479f00f3a1Smrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 59489f00f3a1Smrg # investigate it a little bit more. (MM) 59499f00f3a1Smrg wlarc='${wl}' 59509f00f3a1Smrg 59519f00f3a1Smrg # ancient GNU ld didn't support --whole-archive et. al. 59529f00f3a1Smrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 59539f00f3a1Smrg $GREP 'no-whole-archive' > /dev/null; then 59549f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 59559f00f3a1Smrg else 59569f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 59579f00f3a1Smrg fi 59589f00f3a1Smrg else 59599f00f3a1Smrg with_gnu_ld=no 59609f00f3a1Smrg wlarc= 59619f00f3a1Smrg 59629f00f3a1Smrg # A generic and very simple default shared library creation 59639f00f3a1Smrg # command for GNU C++ for the case where it uses the native 59649f00f3a1Smrg # linker, instead of GNU ld. If possible, this setting should 59659f00f3a1Smrg # overridden to take advantage of the native linker features on 59669f00f3a1Smrg # the platform it is being used on. 59679f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 59689f00f3a1Smrg fi 59699f00f3a1Smrg 59709f00f3a1Smrg # Commands to make compiler produce verbose output that lists 59719f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 59729f00f3a1Smrg # linking a shared library. 59739f00f3a1Smrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 59749f00f3a1Smrg 59759f00f3a1Smrg else 59769f00f3a1Smrg GXX=no 59779f00f3a1Smrg with_gnu_ld=no 59789f00f3a1Smrg wlarc= 59799f00f3a1Smrg fi 59809f00f3a1Smrg 59819f00f3a1Smrg # PORTME: fill in a description of your system's C++ link characteristics 59829f00f3a1Smrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 59839f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=yes 59849f00f3a1Smrg case $host_os in 59859f00f3a1Smrg aix3*) 59869f00f3a1Smrg # FIXME: insert proper C++ library support 59879f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 59889f00f3a1Smrg ;; 59899f00f3a1Smrg aix[[4-9]]*) 59909f00f3a1Smrg if test "$host_cpu" = ia64; then 59919f00f3a1Smrg # On IA64, the linker does run time linking by default, so we don't 59929f00f3a1Smrg # have to do anything special. 59939f00f3a1Smrg aix_use_runtimelinking=no 59949f00f3a1Smrg exp_sym_flag='-Bexport' 59959f00f3a1Smrg no_entry_flag="" 59969f00f3a1Smrg else 59979f00f3a1Smrg aix_use_runtimelinking=no 59989f00f3a1Smrg 59999f00f3a1Smrg # Test if we are trying to use run time linking or normal 60009f00f3a1Smrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 60019f00f3a1Smrg # need to do runtime linking. 60029f00f3a1Smrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 60039f00f3a1Smrg for ld_flag in $LDFLAGS; do 60049f00f3a1Smrg case $ld_flag in 60059f00f3a1Smrg *-brtl*) 60069f00f3a1Smrg aix_use_runtimelinking=yes 60079f00f3a1Smrg break 60089f00f3a1Smrg ;; 60099f00f3a1Smrg esac 60109f00f3a1Smrg done 60119f00f3a1Smrg ;; 60129f00f3a1Smrg esac 60139f00f3a1Smrg 60149f00f3a1Smrg exp_sym_flag='-bexport' 60159f00f3a1Smrg no_entry_flag='-bnoentry' 60169f00f3a1Smrg fi 60179f00f3a1Smrg 60189f00f3a1Smrg # When large executables or shared objects are built, AIX ld can 60199f00f3a1Smrg # have problems creating the table of contents. If linking a library 60209f00f3a1Smrg # or program results in "error TOC overflow" add -mminimal-toc to 60219f00f3a1Smrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 60229f00f3a1Smrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 60239f00f3a1Smrg 60249f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='' 60259f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 60269f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 60279f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 60289f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 60299f00f3a1Smrg _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 60309f00f3a1Smrg 60319f00f3a1Smrg if test "$GXX" = yes; then 60329f00f3a1Smrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 60339f00f3a1Smrg # We only want to do this on AIX 4.2 and lower, the check 60349f00f3a1Smrg # below for broken collect2 doesn't work under 4.3+ 60359f00f3a1Smrg collect2name=`${CC} -print-prog-name=collect2` 60369f00f3a1Smrg if test -f "$collect2name" && 60379f00f3a1Smrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 60389f00f3a1Smrg then 60399f00f3a1Smrg # We have reworked collect2 60409f00f3a1Smrg : 60419f00f3a1Smrg else 60429f00f3a1Smrg # We have old collect2 60439f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 60449f00f3a1Smrg # It fails to find uninstalled libraries when the uninstalled 60459f00f3a1Smrg # path is not listed in the libpath. Setting hardcode_minus_L 60469f00f3a1Smrg # to unsupported forces relinking 60479f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 60489f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 60499f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 60509f00f3a1Smrg fi 60519f00f3a1Smrg esac 60529f00f3a1Smrg shared_flag='-shared' 60539f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 60549f00f3a1Smrg shared_flag="$shared_flag "'${wl}-G' 60559f00f3a1Smrg fi 60569f00f3a1Smrg else 60579f00f3a1Smrg # not using gcc 60589f00f3a1Smrg if test "$host_cpu" = ia64; then 60599f00f3a1Smrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 60609f00f3a1Smrg # chokes on -Wl,-G. The following line is correct: 60619f00f3a1Smrg shared_flag='-G' 60629f00f3a1Smrg else 60639f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 60649f00f3a1Smrg shared_flag='${wl}-G' 60659f00f3a1Smrg else 60669f00f3a1Smrg shared_flag='${wl}-bM:SRE' 60679f00f3a1Smrg fi 60689f00f3a1Smrg fi 60699f00f3a1Smrg fi 60709f00f3a1Smrg 60719f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 60729f00f3a1Smrg # It seems that -bexpall does not export symbols beginning with 60739f00f3a1Smrg # underscore (_), so it is better to generate a list of symbols to 60749f00f3a1Smrg # export. 60759f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=yes 60769f00f3a1Smrg if test "$aix_use_runtimelinking" = yes; then 60779f00f3a1Smrg # Warning - without using the other runtime loading flags (-brtl), 60789f00f3a1Smrg # -berok will link without error, but may produce a broken library. 60799f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 60809f00f3a1Smrg # Determine the default libpath from the value encoded in an empty 60819f00f3a1Smrg # executable. 60829f00f3a1Smrg _LT_SYS_MODULE_PATH_AIX([$1]) 60839f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 60849f00f3a1Smrg 60859f00f3a1Smrg _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" 60869f00f3a1Smrg else 60879f00f3a1Smrg if test "$host_cpu" = ia64; then 60889f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 60899f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 60909f00f3a1Smrg _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" 60919f00f3a1Smrg else 60929f00f3a1Smrg # Determine the default libpath from the value encoded in an 60939f00f3a1Smrg # empty executable. 60949f00f3a1Smrg _LT_SYS_MODULE_PATH_AIX([$1]) 60959f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 60969f00f3a1Smrg # Warning - without using the other run time loading flags, 60979f00f3a1Smrg # -berok will link without error, but may produce a broken library. 60989f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 60999f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 61009f00f3a1Smrg if test "$with_gnu_ld" = yes; then 61019f00f3a1Smrg # We only use this code for GNU lds that support --whole-archive. 61029f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 61039f00f3a1Smrg else 61049f00f3a1Smrg # Exported symbols can be pulled into shared objects from archives 61059f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 61069f00f3a1Smrg fi 61079f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 61089f00f3a1Smrg # This is similar to how AIX traditionally builds its shared 61099f00f3a1Smrg # libraries. 61109f00f3a1Smrg _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' 61119f00f3a1Smrg fi 61129f00f3a1Smrg fi 61139f00f3a1Smrg ;; 61149f00f3a1Smrg 61159f00f3a1Smrg beos*) 61169f00f3a1Smrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 61179f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 61189f00f3a1Smrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 61199f00f3a1Smrg # support --undefined. This deserves some investigation. FIXME 61209f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 61219f00f3a1Smrg else 61229f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 61239f00f3a1Smrg fi 61249f00f3a1Smrg ;; 61259f00f3a1Smrg 61269f00f3a1Smrg chorus*) 61279f00f3a1Smrg case $cc_basename in 61289f00f3a1Smrg *) 61299f00f3a1Smrg # FIXME: insert proper C++ library support 61309f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 61319f00f3a1Smrg ;; 61329f00f3a1Smrg esac 61339f00f3a1Smrg ;; 61349f00f3a1Smrg 61359f00f3a1Smrg cygwin* | mingw* | pw32* | cegcc*) 61369f00f3a1Smrg case $GXX,$cc_basename in 61379f00f3a1Smrg ,cl* | no,cl*) 61389f00f3a1Smrg # Native MSVC 61399f00f3a1Smrg # hardcode_libdir_flag_spec is actually meaningless, as there is 61409f00f3a1Smrg # no search path for DLLs. 61419f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 61429f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 61439f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=yes 61449f00f3a1Smrg _LT_TAGVAR(file_list_spec, $1)='@' 61459f00f3a1Smrg # Tell ltmain to make .lib files, not .a files. 61469f00f3a1Smrg libext=lib 61479f00f3a1Smrg # Tell ltmain to make .dll files, not .so files. 61489f00f3a1Smrg shrext_cmds=".dll" 61499f00f3a1Smrg # FIXME: Setting linknames here is a bad hack. 61509f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 61519f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 61529f00f3a1Smrg $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 61539f00f3a1Smrg else 61549f00f3a1Smrg $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 61559f00f3a1Smrg fi~ 61569f00f3a1Smrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 61579f00f3a1Smrg linknames=' 61589f00f3a1Smrg # The linker will not automatically build a static lib if we build a DLL. 61599f00f3a1Smrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 61609f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 61619f00f3a1Smrg # Don't use ranlib 61629f00f3a1Smrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 61639f00f3a1Smrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 61649f00f3a1Smrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 61659f00f3a1Smrg case $lt_outputfile in 61669f00f3a1Smrg *.exe|*.EXE) ;; 61679f00f3a1Smrg *) 61689f00f3a1Smrg lt_outputfile="$lt_outputfile.exe" 61699f00f3a1Smrg lt_tool_outputfile="$lt_tool_outputfile.exe" 61709f00f3a1Smrg ;; 61719f00f3a1Smrg esac~ 61729f00f3a1Smrg func_to_tool_file "$lt_outputfile"~ 61739f00f3a1Smrg if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 61749f00f3a1Smrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 61759f00f3a1Smrg $RM "$lt_outputfile.manifest"; 61769f00f3a1Smrg fi' 61779f00f3a1Smrg ;; 61789f00f3a1Smrg *) 61799f00f3a1Smrg # g++ 61809f00f3a1Smrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 61819f00f3a1Smrg # as there is no search path for DLLs. 61829f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 61839f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 61849f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 61859f00f3a1Smrg _LT_TAGVAR(always_export_symbols, $1)=no 61869f00f3a1Smrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 61879f00f3a1Smrg 61889f00f3a1Smrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 61899f00f3a1Smrg _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' 61909f00f3a1Smrg # If the export-symbols file already is a .def file (1st line 61919f00f3a1Smrg # is EXPORTS), use it as is; otherwise, prepend... 61929f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 61939f00f3a1Smrg cp $export_symbols $output_objdir/$soname.def; 61949f00f3a1Smrg else 61959f00f3a1Smrg echo EXPORTS > $output_objdir/$soname.def; 61969f00f3a1Smrg cat $export_symbols >> $output_objdir/$soname.def; 61979f00f3a1Smrg fi~ 61989f00f3a1Smrg $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' 61999f00f3a1Smrg else 62009f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62019f00f3a1Smrg fi 62029f00f3a1Smrg ;; 62039f00f3a1Smrg esac 62049f00f3a1Smrg ;; 62059f00f3a1Smrg darwin* | rhapsody*) 62069f00f3a1Smrg _LT_DARWIN_LINKER_FEATURES($1) 62079f00f3a1Smrg ;; 62089f00f3a1Smrg 62099f00f3a1Smrg dgux*) 62109f00f3a1Smrg case $cc_basename in 62119f00f3a1Smrg ec++*) 62129f00f3a1Smrg # FIXME: insert proper C++ library support 62139f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62149f00f3a1Smrg ;; 62159f00f3a1Smrg ghcx*) 62169f00f3a1Smrg # Green Hills C++ Compiler 62179f00f3a1Smrg # FIXME: insert proper C++ library support 62189f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62199f00f3a1Smrg ;; 62209f00f3a1Smrg *) 62219f00f3a1Smrg # FIXME: insert proper C++ library support 62229f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62239f00f3a1Smrg ;; 62249f00f3a1Smrg esac 62259f00f3a1Smrg ;; 62269f00f3a1Smrg 62279f00f3a1Smrg freebsd2.*) 62289f00f3a1Smrg # C++ shared libraries reported to be fairly broken before 62299f00f3a1Smrg # switch to ELF 62309f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62319f00f3a1Smrg ;; 62329f00f3a1Smrg 62339f00f3a1Smrg freebsd-elf*) 62349f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 62359f00f3a1Smrg ;; 62369f00f3a1Smrg 62379f00f3a1Smrg freebsd* | dragonfly*) 62389f00f3a1Smrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 62399f00f3a1Smrg # conventions 62409f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=yes 62419f00f3a1Smrg ;; 62429f00f3a1Smrg 62439f00f3a1Smrg haiku*) 62449f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 62459f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 62469f00f3a1Smrg ;; 62479f00f3a1Smrg 62489f00f3a1Smrg hpux9*) 62499f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 62509f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 62519f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 62529f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 62539f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 62549f00f3a1Smrg # but as the default 62559f00f3a1Smrg # location of the library. 62569f00f3a1Smrg 62579f00f3a1Smrg case $cc_basename in 62589f00f3a1Smrg CC*) 62599f00f3a1Smrg # FIXME: insert proper C++ library support 62609f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62619f00f3a1Smrg ;; 62629f00f3a1Smrg aCC*) 62639f00f3a1Smrg _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' 62649f00f3a1Smrg # Commands to make compiler produce verbose output that lists 62659f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 62669f00f3a1Smrg # linking a shared library. 62679f00f3a1Smrg # 62689f00f3a1Smrg # There doesn't appear to be a way to prevent this compiler from 62699f00f3a1Smrg # explicitly linking system object files so we need to strip them 62709f00f3a1Smrg # from the output so that they don't get included in the library 62719f00f3a1Smrg # dependencies. 62729f00f3a1Smrg 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"' 62739f00f3a1Smrg ;; 62749f00f3a1Smrg *) 62759f00f3a1Smrg if test "$GXX" = yes; then 62769f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 62779f00f3a1Smrg else 62789f00f3a1Smrg # FIXME: insert proper C++ library support 62799f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 62809f00f3a1Smrg fi 62819f00f3a1Smrg ;; 62829f00f3a1Smrg esac 62839f00f3a1Smrg ;; 62849f00f3a1Smrg 62859f00f3a1Smrg hpux10*|hpux11*) 62869f00f3a1Smrg if test $with_gnu_ld = no; then 62879f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 62889f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 62899f00f3a1Smrg 62909f00f3a1Smrg case $host_cpu in 62919f00f3a1Smrg hppa*64*|ia64*) 62929f00f3a1Smrg ;; 62939f00f3a1Smrg *) 62949f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 62959f00f3a1Smrg ;; 62969f00f3a1Smrg esac 62979f00f3a1Smrg fi 62989f00f3a1Smrg case $host_cpu in 62999f00f3a1Smrg hppa*64*|ia64*) 63009f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 63019f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 63029f00f3a1Smrg ;; 63039f00f3a1Smrg *) 63049f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 63059f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 63069f00f3a1Smrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 63079f00f3a1Smrg # but as the default 63089f00f3a1Smrg # location of the library. 63099f00f3a1Smrg ;; 63109f00f3a1Smrg esac 63119f00f3a1Smrg 63129f00f3a1Smrg case $cc_basename in 63139f00f3a1Smrg CC*) 63149f00f3a1Smrg # FIXME: insert proper C++ library support 63159f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 63169f00f3a1Smrg ;; 63179f00f3a1Smrg aCC*) 63189f00f3a1Smrg case $host_cpu in 63199f00f3a1Smrg hppa*64*) 63209f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 63219f00f3a1Smrg ;; 63229f00f3a1Smrg ia64*) 63239f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 63249f00f3a1Smrg ;; 63259f00f3a1Smrg *) 63269f00f3a1Smrg _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' 63279f00f3a1Smrg ;; 63289f00f3a1Smrg esac 63299f00f3a1Smrg # Commands to make compiler produce verbose output that lists 63309f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 63319f00f3a1Smrg # linking a shared library. 63329f00f3a1Smrg # 63339f00f3a1Smrg # There doesn't appear to be a way to prevent this compiler from 63349f00f3a1Smrg # explicitly linking system object files so we need to strip them 63359f00f3a1Smrg # from the output so that they don't get included in the library 63369f00f3a1Smrg # dependencies. 63379f00f3a1Smrg 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"' 63389f00f3a1Smrg ;; 63399f00f3a1Smrg *) 63409f00f3a1Smrg if test "$GXX" = yes; then 63419f00f3a1Smrg if test $with_gnu_ld = no; then 63429f00f3a1Smrg case $host_cpu in 63439f00f3a1Smrg hppa*64*) 63449f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 63459f00f3a1Smrg ;; 63469f00f3a1Smrg ia64*) 63479f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 63489f00f3a1Smrg ;; 63499f00f3a1Smrg *) 63509f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 63519f00f3a1Smrg ;; 63529f00f3a1Smrg esac 63539f00f3a1Smrg fi 63549f00f3a1Smrg else 63559f00f3a1Smrg # FIXME: insert proper C++ library support 63569f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 63579f00f3a1Smrg fi 63589f00f3a1Smrg ;; 63599f00f3a1Smrg esac 63609f00f3a1Smrg ;; 63619f00f3a1Smrg 63629f00f3a1Smrg interix[[3-9]]*) 63639f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=no 63649f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 63659f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 63669f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 63679f00f3a1Smrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 63689f00f3a1Smrg # Instead, shared libraries are loaded at an image base (0x10000000 by 63699f00f3a1Smrg # default) and relocated if they conflict, which is a slow very memory 63709f00f3a1Smrg # consuming and fragmenting process. To avoid this, we pick a random, 63719f00f3a1Smrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 63729f00f3a1Smrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 63739f00f3a1Smrg _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' 63749f00f3a1Smrg _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' 63759f00f3a1Smrg ;; 63769f00f3a1Smrg irix5* | irix6*) 63779f00f3a1Smrg case $cc_basename in 63789f00f3a1Smrg CC*) 63799f00f3a1Smrg # SGI C++ 63809f00f3a1Smrg _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' 63819f00f3a1Smrg 63829f00f3a1Smrg # Archives containing C++ object files must be created using 63839f00f3a1Smrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 63849f00f3a1Smrg # necessary to make sure instantiated templates are included 63859f00f3a1Smrg # in the archive. 63869f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 63879f00f3a1Smrg ;; 63889f00f3a1Smrg *) 63899f00f3a1Smrg if test "$GXX" = yes; then 63909f00f3a1Smrg if test "$with_gnu_ld" = no; then 63919f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 63929f00f3a1Smrg else 63939f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 63949f00f3a1Smrg fi 63959f00f3a1Smrg fi 63969f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 63979f00f3a1Smrg ;; 63989f00f3a1Smrg esac 63999f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 64009f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 64019f00f3a1Smrg _LT_TAGVAR(inherit_rpath, $1)=yes 64029f00f3a1Smrg ;; 64039f00f3a1Smrg 64049f00f3a1Smrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 64059f00f3a1Smrg case $cc_basename in 64069f00f3a1Smrg KCC*) 64079f00f3a1Smrg # Kuck and Associates, Inc. (KAI) C++ Compiler 64089f00f3a1Smrg 64099f00f3a1Smrg # KCC will only create a shared library if the output file 64109f00f3a1Smrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 64119f00f3a1Smrg # to its proper name (with version) after linking. 64129f00f3a1Smrg _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' 64139f00f3a1Smrg _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' 64149f00f3a1Smrg # Commands to make compiler produce verbose output that lists 64159f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 64169f00f3a1Smrg # linking a shared library. 64179f00f3a1Smrg # 64189f00f3a1Smrg # There doesn't appear to be a way to prevent this compiler from 64199f00f3a1Smrg # explicitly linking system object files so we need to strip them 64209f00f3a1Smrg # from the output so that they don't get included in the library 64219f00f3a1Smrg # dependencies. 64229f00f3a1Smrg 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"' 64239f00f3a1Smrg 64249f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 64259f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 64269f00f3a1Smrg 64279f00f3a1Smrg # Archives containing C++ object files must be created using 64289f00f3a1Smrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 64299f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 64309f00f3a1Smrg ;; 64319f00f3a1Smrg icpc* | ecpc* ) 64329f00f3a1Smrg # Intel C++ 64339f00f3a1Smrg with_gnu_ld=yes 64349f00f3a1Smrg # version 8.0 and above of icpc choke on multiply defined symbols 64359f00f3a1Smrg # if we add $predep_objects and $postdep_objects, however 7.1 and 64369f00f3a1Smrg # earlier do not add the objects themselves. 64379f00f3a1Smrg case `$CC -V 2>&1` in 64389f00f3a1Smrg *"Version 7."*) 64399f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 64409f00f3a1Smrg _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' 64419f00f3a1Smrg ;; 64429f00f3a1Smrg *) # Version 8.0 or newer 64439f00f3a1Smrg tmp_idyn= 64449f00f3a1Smrg case $host_cpu in 64459f00f3a1Smrg ia64*) tmp_idyn=' -i_dynamic';; 64469f00f3a1Smrg esac 64479f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 64489f00f3a1Smrg _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' 64499f00f3a1Smrg ;; 64509f00f3a1Smrg esac 64519f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 64529f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 64539f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 64549f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 64559f00f3a1Smrg ;; 64569f00f3a1Smrg pgCC* | pgcpp*) 64579f00f3a1Smrg # Portland Group C++ compiler 64589f00f3a1Smrg case `$CC -V` in 64599f00f3a1Smrg *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 64609f00f3a1Smrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 64619f00f3a1Smrg rm -rf $tpldir~ 64629f00f3a1Smrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 64639f00f3a1Smrg compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 64649f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 64659f00f3a1Smrg rm -rf $tpldir~ 64669f00f3a1Smrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 64679f00f3a1Smrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 64689f00f3a1Smrg $RANLIB $oldlib' 64699f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 64709f00f3a1Smrg rm -rf $tpldir~ 64719f00f3a1Smrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 64729f00f3a1Smrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 64739f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 64749f00f3a1Smrg rm -rf $tpldir~ 64759f00f3a1Smrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 64769f00f3a1Smrg $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' 64779f00f3a1Smrg ;; 64789f00f3a1Smrg *) # Version 6 and above use weak symbols 64799f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 64809f00f3a1Smrg _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' 64819f00f3a1Smrg ;; 64829f00f3a1Smrg esac 64839f00f3a1Smrg 64849f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 64859f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 64869f00f3a1Smrg _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' 64879f00f3a1Smrg ;; 64889f00f3a1Smrg cxx*) 64899f00f3a1Smrg # Compaq C++ 64909f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 64919f00f3a1Smrg _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' 64929f00f3a1Smrg 64939f00f3a1Smrg runpath_var=LD_RUN_PATH 64949f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 64959f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 64969f00f3a1Smrg 64979f00f3a1Smrg # Commands to make compiler produce verbose output that lists 64989f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 64999f00f3a1Smrg # linking a shared library. 65009f00f3a1Smrg # 65019f00f3a1Smrg # There doesn't appear to be a way to prevent this compiler from 65029f00f3a1Smrg # explicitly linking system object files so we need to strip them 65039f00f3a1Smrg # from the output so that they don't get included in the library 65049f00f3a1Smrg # dependencies. 65059f00f3a1Smrg 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' 65069f00f3a1Smrg ;; 65079f00f3a1Smrg xl* | mpixl* | bgxl*) 65089f00f3a1Smrg # IBM XL 8.0 on PPC, with GNU ld 65099f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 65109f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 65119f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 65129f00f3a1Smrg if test "x$supports_anon_versioning" = xyes; then 65139f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 65149f00f3a1Smrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 65159f00f3a1Smrg echo "local: *; };" >> $output_objdir/$libname.ver~ 65169f00f3a1Smrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 65179f00f3a1Smrg fi 65189f00f3a1Smrg ;; 65199f00f3a1Smrg *) 65209f00f3a1Smrg case `$CC -V 2>&1 | sed 5q` in 65219f00f3a1Smrg *Sun\ C*) 65229f00f3a1Smrg # Sun C++ 5.9 65239f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 65249f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 65259f00f3a1Smrg _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' 65269f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 65279f00f3a1Smrg _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' 65289f00f3a1Smrg _LT_TAGVAR(compiler_needs_object, $1)=yes 65299f00f3a1Smrg 65309f00f3a1Smrg # Not sure whether something based on 65319f00f3a1Smrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 65329f00f3a1Smrg # would be better. 65339f00f3a1Smrg output_verbose_link_cmd='func_echo_all' 65349f00f3a1Smrg 65359f00f3a1Smrg # Archives containing C++ object files must be created using 65369f00f3a1Smrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 65379f00f3a1Smrg # necessary to make sure instantiated templates are included 65389f00f3a1Smrg # in the archive. 65399f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 65409f00f3a1Smrg ;; 65419f00f3a1Smrg esac 65429f00f3a1Smrg ;; 65439f00f3a1Smrg esac 65449f00f3a1Smrg ;; 65459f00f3a1Smrg 65469f00f3a1Smrg lynxos*) 65479f00f3a1Smrg # FIXME: insert proper C++ library support 65489f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 65499f00f3a1Smrg ;; 65509f00f3a1Smrg 65519f00f3a1Smrg m88k*) 65529f00f3a1Smrg # FIXME: insert proper C++ library support 65539f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 65549f00f3a1Smrg ;; 65559f00f3a1Smrg 65569f00f3a1Smrg mvs*) 65579f00f3a1Smrg case $cc_basename in 65589f00f3a1Smrg cxx*) 65599f00f3a1Smrg # FIXME: insert proper C++ library support 65609f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 65619f00f3a1Smrg ;; 65629f00f3a1Smrg *) 65639f00f3a1Smrg # FIXME: insert proper C++ library support 65649f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 65659f00f3a1Smrg ;; 65669f00f3a1Smrg esac 65679f00f3a1Smrg ;; 65689f00f3a1Smrg 65699f00f3a1Smrg netbsd*) 65709f00f3a1Smrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 65719f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 65729f00f3a1Smrg wlarc= 65739f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 65749f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 65759f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 65769f00f3a1Smrg fi 65779f00f3a1Smrg # Workaround some broken pre-1.5 toolchains 65789f00f3a1Smrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 65799f00f3a1Smrg ;; 65809f00f3a1Smrg 65819f00f3a1Smrg *nto* | *qnx*) 65829f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=yes 65839f00f3a1Smrg ;; 65849f00f3a1Smrg 65859f00f3a1Smrg openbsd2*) 65869f00f3a1Smrg # C++ shared libraries are fairly broken 65879f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 65889f00f3a1Smrg ;; 65899f00f3a1Smrg 65909f00f3a1Smrg openbsd*) 65919f00f3a1Smrg if test -f /usr/libexec/ld.so; then 65929f00f3a1Smrg _LT_TAGVAR(hardcode_direct, $1)=yes 65939f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 65949f00f3a1Smrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 65959f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 65969f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 65979f00f3a1Smrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 65989f00f3a1Smrg _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' 65999f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 66009f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 66019f00f3a1Smrg fi 66029f00f3a1Smrg output_verbose_link_cmd=func_echo_all 66039f00f3a1Smrg else 66049f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 66059f00f3a1Smrg fi 66069f00f3a1Smrg ;; 66079f00f3a1Smrg 66089f00f3a1Smrg osf3* | osf4* | osf5*) 66099f00f3a1Smrg case $cc_basename in 66109f00f3a1Smrg KCC*) 66119f00f3a1Smrg # Kuck and Associates, Inc. (KAI) C++ Compiler 66129f00f3a1Smrg 66139f00f3a1Smrg # KCC will only create a shared library if the output file 66149f00f3a1Smrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 66159f00f3a1Smrg # to its proper name (with version) after linking. 66169f00f3a1Smrg _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' 66179f00f3a1Smrg 66189f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 66199f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 66209f00f3a1Smrg 66219f00f3a1Smrg # Archives containing C++ object files must be created using 66229f00f3a1Smrg # the KAI C++ compiler. 66239f00f3a1Smrg case $host in 66249f00f3a1Smrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 66259f00f3a1Smrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 66269f00f3a1Smrg esac 66279f00f3a1Smrg ;; 66289f00f3a1Smrg RCC*) 66299f00f3a1Smrg # Rational C++ 2.4.1 66309f00f3a1Smrg # FIXME: insert proper C++ library support 66319f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 66329f00f3a1Smrg ;; 66339f00f3a1Smrg cxx*) 66349f00f3a1Smrg case $host in 66359f00f3a1Smrg osf3*) 66369f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 66379f00f3a1Smrg _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' 66389f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 66399f00f3a1Smrg ;; 66409f00f3a1Smrg *) 66419f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 66429f00f3a1Smrg _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' 66439f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 66449f00f3a1Smrg echo "-hidden">> $lib.exp~ 66459f00f3a1Smrg $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~ 66469f00f3a1Smrg $RM $lib.exp' 66479f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 66489f00f3a1Smrg ;; 66499f00f3a1Smrg esac 66509f00f3a1Smrg 66519f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 66529f00f3a1Smrg 66539f00f3a1Smrg # Commands to make compiler produce verbose output that lists 66549f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 66559f00f3a1Smrg # linking a shared library. 66569f00f3a1Smrg # 66579f00f3a1Smrg # There doesn't appear to be a way to prevent this compiler from 66589f00f3a1Smrg # explicitly linking system object files so we need to strip them 66599f00f3a1Smrg # from the output so that they don't get included in the library 66609f00f3a1Smrg # dependencies. 66619f00f3a1Smrg 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"' 66629f00f3a1Smrg ;; 66639f00f3a1Smrg *) 66649f00f3a1Smrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 66659f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 66669f00f3a1Smrg case $host in 66679f00f3a1Smrg osf3*) 66689f00f3a1Smrg _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' 66699f00f3a1Smrg ;; 66709f00f3a1Smrg *) 66719f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 66729f00f3a1Smrg ;; 66739f00f3a1Smrg esac 66749f00f3a1Smrg 66759f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 66769f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 66779f00f3a1Smrg 66789f00f3a1Smrg # Commands to make compiler produce verbose output that lists 66799f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 66809f00f3a1Smrg # linking a shared library. 66819f00f3a1Smrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 66829f00f3a1Smrg 66839f00f3a1Smrg else 66849f00f3a1Smrg # FIXME: insert proper C++ library support 66859f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 66869f00f3a1Smrg fi 66879f00f3a1Smrg ;; 66889f00f3a1Smrg esac 66899f00f3a1Smrg ;; 66909f00f3a1Smrg 66919f00f3a1Smrg psos*) 66929f00f3a1Smrg # FIXME: insert proper C++ library support 66939f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 66949f00f3a1Smrg ;; 66959f00f3a1Smrg 66969f00f3a1Smrg sunos4*) 66979f00f3a1Smrg case $cc_basename in 66989f00f3a1Smrg CC*) 66999f00f3a1Smrg # Sun C++ 4.x 67009f00f3a1Smrg # FIXME: insert proper C++ library support 67019f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 67029f00f3a1Smrg ;; 67039f00f3a1Smrg lcc*) 67049f00f3a1Smrg # Lucid 67059f00f3a1Smrg # FIXME: insert proper C++ library support 67069f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 67079f00f3a1Smrg ;; 67089f00f3a1Smrg *) 67099f00f3a1Smrg # FIXME: insert proper C++ library support 67109f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 67119f00f3a1Smrg ;; 67129f00f3a1Smrg esac 67139f00f3a1Smrg ;; 67149f00f3a1Smrg 67159f00f3a1Smrg solaris*) 67169f00f3a1Smrg case $cc_basename in 67179f00f3a1Smrg CC* | sunCC*) 67189f00f3a1Smrg # Sun C++ 4.2, 5.x and Centerline C++ 67199f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 67209f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 67219f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 67229f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 67239f00f3a1Smrg $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' 67249f00f3a1Smrg 67259f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 67269f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 67279f00f3a1Smrg case $host_os in 67289f00f3a1Smrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 67299f00f3a1Smrg *) 67309f00f3a1Smrg # The compiler driver will combine and reorder linker options, 67319f00f3a1Smrg # but understands `-z linker_flag'. 67329f00f3a1Smrg # Supported since Solaris 2.6 (maybe 2.5.1?) 67339f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 67349f00f3a1Smrg ;; 67359f00f3a1Smrg esac 67369f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 67379f00f3a1Smrg 67389f00f3a1Smrg output_verbose_link_cmd='func_echo_all' 67399f00f3a1Smrg 67409f00f3a1Smrg # Archives containing C++ object files must be created using 67419f00f3a1Smrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 67429f00f3a1Smrg # necessary to make sure instantiated templates are included 67439f00f3a1Smrg # in the archive. 67449f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 67459f00f3a1Smrg ;; 67469f00f3a1Smrg gcx*) 67479f00f3a1Smrg # Green Hills C++ Compiler 67489f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 67499f00f3a1Smrg 67509f00f3a1Smrg # The C++ compiler must be used to create the archive. 67519f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 67529f00f3a1Smrg ;; 67539f00f3a1Smrg *) 67549f00f3a1Smrg # GNU C++ compiler with Solaris linker 67559f00f3a1Smrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 67569f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 67579f00f3a1Smrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 67589f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 67599f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 67609f00f3a1Smrg $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 67619f00f3a1Smrg 67629f00f3a1Smrg # Commands to make compiler produce verbose output that lists 67639f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 67649f00f3a1Smrg # linking a shared library. 67659f00f3a1Smrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 67669f00f3a1Smrg else 67679f00f3a1Smrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 67689f00f3a1Smrg # platform. 67699f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 67709f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 67719f00f3a1Smrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 67729f00f3a1Smrg 67739f00f3a1Smrg # Commands to make compiler produce verbose output that lists 67749f00f3a1Smrg # what "hidden" libraries, object files and flags are used when 67759f00f3a1Smrg # linking a shared library. 67769f00f3a1Smrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 67779f00f3a1Smrg fi 67789f00f3a1Smrg 67799f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 67809f00f3a1Smrg case $host_os in 67819f00f3a1Smrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 67829f00f3a1Smrg *) 67839f00f3a1Smrg _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 67849f00f3a1Smrg ;; 67859f00f3a1Smrg esac 67869f00f3a1Smrg fi 67879f00f3a1Smrg ;; 67889f00f3a1Smrg esac 67899f00f3a1Smrg ;; 67909f00f3a1Smrg 67919f00f3a1Smrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 67929f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 67939f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 67949f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 67959f00f3a1Smrg runpath_var='LD_RUN_PATH' 67969f00f3a1Smrg 67979f00f3a1Smrg case $cc_basename in 67989f00f3a1Smrg CC*) 67999f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68009f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68019f00f3a1Smrg ;; 68029f00f3a1Smrg *) 68039f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68049f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68059f00f3a1Smrg ;; 68069f00f3a1Smrg esac 68079f00f3a1Smrg ;; 68089f00f3a1Smrg 68099f00f3a1Smrg sysv5* | sco3.2v5* | sco5v6*) 68109f00f3a1Smrg # Note: We can NOT use -z defs as we might desire, because we do not 68119f00f3a1Smrg # link with -lc, and that would cause any symbols used from libc to 68129f00f3a1Smrg # always be unresolved, which means just about no library would 68139f00f3a1Smrg # ever link correctly. If we're not using GNU ld we use -z text 68149f00f3a1Smrg # though, which does catch some bad symbols but isn't as heavy-handed 68159f00f3a1Smrg # as -z defs. 68169f00f3a1Smrg _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 68179f00f3a1Smrg _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 68189f00f3a1Smrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 68199f00f3a1Smrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 68209f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 68219f00f3a1Smrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 68229f00f3a1Smrg _LT_TAGVAR(link_all_deplibs, $1)=yes 68239f00f3a1Smrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 68249f00f3a1Smrg runpath_var='LD_RUN_PATH' 68259f00f3a1Smrg 68269f00f3a1Smrg case $cc_basename in 68279f00f3a1Smrg CC*) 68289f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68299f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68309f00f3a1Smrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 68319f00f3a1Smrg '"$_LT_TAGVAR(old_archive_cmds, $1)" 68329f00f3a1Smrg _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 68339f00f3a1Smrg '"$_LT_TAGVAR(reload_cmds, $1)" 68349f00f3a1Smrg ;; 68359f00f3a1Smrg *) 68369f00f3a1Smrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68379f00f3a1Smrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 68389f00f3a1Smrg ;; 68399f00f3a1Smrg esac 68409f00f3a1Smrg ;; 68419f00f3a1Smrg 68429f00f3a1Smrg tandem*) 68439f00f3a1Smrg case $cc_basename in 68449f00f3a1Smrg NCC*) 68459f00f3a1Smrg # NonStop-UX NCC 3.20 68469f00f3a1Smrg # FIXME: insert proper C++ library support 68479f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 68489f00f3a1Smrg ;; 68499f00f3a1Smrg *) 68509f00f3a1Smrg # FIXME: insert proper C++ library support 68519f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 68529f00f3a1Smrg ;; 68539f00f3a1Smrg esac 68549f00f3a1Smrg ;; 68559f00f3a1Smrg 68569f00f3a1Smrg vxworks*) 68579f00f3a1Smrg # FIXME: insert proper C++ library support 68589f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 68599f00f3a1Smrg ;; 68609f00f3a1Smrg 68619f00f3a1Smrg *) 68629f00f3a1Smrg # FIXME: insert proper C++ library support 68639f00f3a1Smrg _LT_TAGVAR(ld_shlibs, $1)=no 68649f00f3a1Smrg ;; 68659f00f3a1Smrg esac 68669f00f3a1Smrg 68679f00f3a1Smrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 68689f00f3a1Smrg test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 68699f00f3a1Smrg 68709f00f3a1Smrg _LT_TAGVAR(GCC, $1)="$GXX" 68719f00f3a1Smrg _LT_TAGVAR(LD, $1)="$LD" 68729f00f3a1Smrg 68739f00f3a1Smrg ## CAVEAT EMPTOR: 68749f00f3a1Smrg ## There is no encapsulation within the following macros, do not change 68759f00f3a1Smrg ## the running order or otherwise move them around unless you know exactly 68769f00f3a1Smrg ## what you are doing... 68779f00f3a1Smrg _LT_SYS_HIDDEN_LIBDEPS($1) 68789f00f3a1Smrg _LT_COMPILER_PIC($1) 68799f00f3a1Smrg _LT_COMPILER_C_O($1) 68809f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 68819f00f3a1Smrg _LT_LINKER_SHLIBS($1) 68829f00f3a1Smrg _LT_SYS_DYNAMIC_LINKER($1) 68839f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 68849f00f3a1Smrg 68859f00f3a1Smrg _LT_CONFIG($1) 68869f00f3a1Smrg fi # test -n "$compiler" 68879f00f3a1Smrg 68889f00f3a1Smrg CC=$lt_save_CC 68899f00f3a1Smrg CFLAGS=$lt_save_CFLAGS 68909f00f3a1Smrg LDCXX=$LD 68919f00f3a1Smrg LD=$lt_save_LD 68929f00f3a1Smrg GCC=$lt_save_GCC 68939f00f3a1Smrg with_gnu_ld=$lt_save_with_gnu_ld 68949f00f3a1Smrg lt_cv_path_LDCXX=$lt_cv_path_LD 68959f00f3a1Smrg lt_cv_path_LD=$lt_save_path_LD 68969f00f3a1Smrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 68979f00f3a1Smrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 68989f00f3a1Smrgfi # test "$_lt_caught_CXX_error" != yes 68999f00f3a1Smrg 69009f00f3a1SmrgAC_LANG_POP 69019f00f3a1Smrg])# _LT_LANG_CXX_CONFIG 69029f00f3a1Smrg 69039f00f3a1Smrg 69049f00f3a1Smrg# _LT_FUNC_STRIPNAME_CNF 69059f00f3a1Smrg# ---------------------- 69069f00f3a1Smrg# func_stripname_cnf prefix suffix name 69079f00f3a1Smrg# strip PREFIX and SUFFIX off of NAME. 69089f00f3a1Smrg# PREFIX and SUFFIX must not contain globbing or regex special 69099f00f3a1Smrg# characters, hashes, percent signs, but SUFFIX may contain a leading 69109f00f3a1Smrg# dot (in which case that matches only a dot). 69119f00f3a1Smrg# 69129f00f3a1Smrg# This function is identical to the (non-XSI) version of func_stripname, 69139f00f3a1Smrg# except this one can be used by m4 code that may be executed by configure, 69149f00f3a1Smrg# rather than the libtool script. 69159f00f3a1Smrgm4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 69169f00f3a1SmrgAC_REQUIRE([_LT_DECL_SED]) 69179f00f3a1SmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 69189f00f3a1Smrgfunc_stripname_cnf () 69199f00f3a1Smrg{ 69209f00f3a1Smrg case ${2} in 69219f00f3a1Smrg .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 69229f00f3a1Smrg *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 69239f00f3a1Smrg esac 69249f00f3a1Smrg} # func_stripname_cnf 69259f00f3a1Smrg])# _LT_FUNC_STRIPNAME_CNF 69269f00f3a1Smrg 69279f00f3a1Smrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 69289f00f3a1Smrg# --------------------------------- 69299f00f3a1Smrg# Figure out "hidden" library dependencies from verbose 69309f00f3a1Smrg# compiler output when linking a shared library. 69319f00f3a1Smrg# Parse the compiler output and extract the necessary 69329f00f3a1Smrg# objects, libraries and library flags. 69339f00f3a1Smrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 69349f00f3a1Smrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 69359f00f3a1SmrgAC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 69369f00f3a1Smrg# Dependencies to place before and after the object being linked: 69379f00f3a1Smrg_LT_TAGVAR(predep_objects, $1)= 69389f00f3a1Smrg_LT_TAGVAR(postdep_objects, $1)= 69399f00f3a1Smrg_LT_TAGVAR(predeps, $1)= 69409f00f3a1Smrg_LT_TAGVAR(postdeps, $1)= 69419f00f3a1Smrg_LT_TAGVAR(compiler_lib_search_path, $1)= 69429f00f3a1Smrg 69439f00f3a1Smrgdnl we can't use the lt_simple_compile_test_code here, 69449f00f3a1Smrgdnl because it contains code intended for an executable, 69459f00f3a1Smrgdnl not a library. It's possible we should let each 69469f00f3a1Smrgdnl tag define a new lt_????_link_test_code variable, 69479f00f3a1Smrgdnl but it's only used here... 69489f00f3a1Smrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 69499f00f3a1Smrgint a; 69509f00f3a1Smrgvoid foo (void) { a = 0; } 69519f00f3a1Smrg_LT_EOF 69529f00f3a1Smrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 69539f00f3a1Smrgclass Foo 69549f00f3a1Smrg{ 69559f00f3a1Smrgpublic: 69569f00f3a1Smrg Foo (void) { a = 0; } 69579f00f3a1Smrgprivate: 69589f00f3a1Smrg int a; 69599f00f3a1Smrg}; 69609f00f3a1Smrg_LT_EOF 69619f00f3a1Smrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 69629f00f3a1Smrg subroutine foo 69639f00f3a1Smrg implicit none 69649f00f3a1Smrg integer*4 a 69659f00f3a1Smrg a=0 69669f00f3a1Smrg return 69679f00f3a1Smrg end 69689f00f3a1Smrg_LT_EOF 69699f00f3a1Smrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 69709f00f3a1Smrg subroutine foo 69719f00f3a1Smrg implicit none 69729f00f3a1Smrg integer a 69739f00f3a1Smrg a=0 69749f00f3a1Smrg return 69759f00f3a1Smrg end 69769f00f3a1Smrg_LT_EOF 69779f00f3a1Smrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 69789f00f3a1Smrgpublic class foo { 69799f00f3a1Smrg private int a; 69809f00f3a1Smrg public void bar (void) { 69819f00f3a1Smrg a = 0; 69829f00f3a1Smrg } 69839f00f3a1Smrg}; 69849f00f3a1Smrg_LT_EOF 69859f00f3a1Smrg], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 69869f00f3a1Smrgpackage foo 69879f00f3a1Smrgfunc foo() { 69889f00f3a1Smrg} 69899f00f3a1Smrg_LT_EOF 69909f00f3a1Smrg]) 69919f00f3a1Smrg 69929f00f3a1Smrg_lt_libdeps_save_CFLAGS=$CFLAGS 69939f00f3a1Smrgcase "$CC $CFLAGS " in #( 69949f00f3a1Smrg*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 69959f00f3a1Smrg*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 69969f00f3a1Smrg*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 69979f00f3a1Smrgesac 69989f00f3a1Smrg 69999f00f3a1Smrgdnl Parse the compiler output and extract the necessary 70009f00f3a1Smrgdnl objects, libraries and library flags. 70019f00f3a1Smrgif AC_TRY_EVAL(ac_compile); then 70029f00f3a1Smrg # Parse the compiler output and extract the necessary 70039f00f3a1Smrg # objects, libraries and library flags. 70049f00f3a1Smrg 70059f00f3a1Smrg # Sentinel used to keep track of whether or not we are before 70069f00f3a1Smrg # the conftest object file. 70079f00f3a1Smrg pre_test_object_deps_done=no 70089f00f3a1Smrg 70099f00f3a1Smrg for p in `eval "$output_verbose_link_cmd"`; do 70109f00f3a1Smrg case ${prev}${p} in 70119f00f3a1Smrg 70129f00f3a1Smrg -L* | -R* | -l*) 70139f00f3a1Smrg # Some compilers place space between "-{L,R}" and the path. 70149f00f3a1Smrg # Remove the space. 70159f00f3a1Smrg if test $p = "-L" || 70169f00f3a1Smrg test $p = "-R"; then 70179f00f3a1Smrg prev=$p 70189f00f3a1Smrg continue 70199f00f3a1Smrg fi 70209f00f3a1Smrg 70219f00f3a1Smrg # Expand the sysroot to ease extracting the directories later. 70229f00f3a1Smrg if test -z "$prev"; then 70239f00f3a1Smrg case $p in 70249f00f3a1Smrg -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 70259f00f3a1Smrg -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 70269f00f3a1Smrg -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 70279f00f3a1Smrg esac 70289f00f3a1Smrg fi 70299f00f3a1Smrg case $p in 70309f00f3a1Smrg =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 70319f00f3a1Smrg esac 70329f00f3a1Smrg if test "$pre_test_object_deps_done" = no; then 70339f00f3a1Smrg case ${prev} in 70349f00f3a1Smrg -L | -R) 70359f00f3a1Smrg # Internal compiler library paths should come after those 70369f00f3a1Smrg # provided the user. The postdeps already come after the 70379f00f3a1Smrg # user supplied libs so there is no need to process them. 70389f00f3a1Smrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 70399f00f3a1Smrg _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 70409f00f3a1Smrg else 70419f00f3a1Smrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 70429f00f3a1Smrg fi 70439f00f3a1Smrg ;; 70449f00f3a1Smrg # The "-l" case would never come before the object being 70459f00f3a1Smrg # linked, so don't bother handling this case. 70469f00f3a1Smrg esac 70479f00f3a1Smrg else 70489f00f3a1Smrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 70499f00f3a1Smrg _LT_TAGVAR(postdeps, $1)="${prev}${p}" 70509f00f3a1Smrg else 70519f00f3a1Smrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 70529f00f3a1Smrg fi 70539f00f3a1Smrg fi 70549f00f3a1Smrg prev= 70559f00f3a1Smrg ;; 70569f00f3a1Smrg 70579f00f3a1Smrg *.lto.$objext) ;; # Ignore GCC LTO objects 70589f00f3a1Smrg *.$objext) 70599f00f3a1Smrg # This assumes that the test object file only shows up 70609f00f3a1Smrg # once in the compiler output. 70619f00f3a1Smrg if test "$p" = "conftest.$objext"; then 70629f00f3a1Smrg pre_test_object_deps_done=yes 70639f00f3a1Smrg continue 70649f00f3a1Smrg fi 70659f00f3a1Smrg 70669f00f3a1Smrg if test "$pre_test_object_deps_done" = no; then 70679f00f3a1Smrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 70689f00f3a1Smrg _LT_TAGVAR(predep_objects, $1)="$p" 70699f00f3a1Smrg else 70709f00f3a1Smrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 70719f00f3a1Smrg fi 70729f00f3a1Smrg else 70739f00f3a1Smrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 70749f00f3a1Smrg _LT_TAGVAR(postdep_objects, $1)="$p" 70759f00f3a1Smrg else 70769f00f3a1Smrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 70779f00f3a1Smrg fi 70789f00f3a1Smrg fi 70799f00f3a1Smrg ;; 70809f00f3a1Smrg 70819f00f3a1Smrg *) ;; # Ignore the rest. 70829f00f3a1Smrg 70839f00f3a1Smrg esac 70849f00f3a1Smrg done 70859f00f3a1Smrg 70869f00f3a1Smrg # Clean up. 70879f00f3a1Smrg rm -f a.out a.exe 70889f00f3a1Smrgelse 70899f00f3a1Smrg echo "libtool.m4: error: problem compiling $1 test program" 70909f00f3a1Smrgfi 70919f00f3a1Smrg 70929f00f3a1Smrg$RM -f confest.$objext 70939f00f3a1SmrgCFLAGS=$_lt_libdeps_save_CFLAGS 70949f00f3a1Smrg 70959f00f3a1Smrg# PORTME: override above test on systems where it is broken 70969f00f3a1Smrgm4_if([$1], [CXX], 70979f00f3a1Smrg[case $host_os in 70989f00f3a1Smrginterix[[3-9]]*) 70999f00f3a1Smrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 71009f00f3a1Smrg # hack all around it, let's just trust "g++" to DTRT. 71019f00f3a1Smrg _LT_TAGVAR(predep_objects,$1)= 71029f00f3a1Smrg _LT_TAGVAR(postdep_objects,$1)= 71039f00f3a1Smrg _LT_TAGVAR(postdeps,$1)= 71049f00f3a1Smrg ;; 71059f00f3a1Smrg 71069f00f3a1Smrglinux*) 71079f00f3a1Smrg case `$CC -V 2>&1 | sed 5q` in 71089f00f3a1Smrg *Sun\ C*) 71099f00f3a1Smrg # Sun C++ 5.9 71109f00f3a1Smrg 71119f00f3a1Smrg # The more standards-conforming stlport4 library is 71129f00f3a1Smrg # incompatible with the Cstd library. Avoid specifying 71139f00f3a1Smrg # it if it's in CXXFLAGS. Ignore libCrun as 71149f00f3a1Smrg # -library=stlport4 depends on it. 71159f00f3a1Smrg case " $CXX $CXXFLAGS " in 71169f00f3a1Smrg *" -library=stlport4 "*) 71179f00f3a1Smrg solaris_use_stlport4=yes 71189f00f3a1Smrg ;; 71199f00f3a1Smrg esac 71209f00f3a1Smrg 71219f00f3a1Smrg if test "$solaris_use_stlport4" != yes; then 71229f00f3a1Smrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 71239f00f3a1Smrg fi 71249f00f3a1Smrg ;; 71259f00f3a1Smrg esac 71269f00f3a1Smrg ;; 71279f00f3a1Smrg 71289f00f3a1Smrgsolaris*) 71299f00f3a1Smrg case $cc_basename in 71309f00f3a1Smrg CC* | sunCC*) 71319f00f3a1Smrg # The more standards-conforming stlport4 library is 71329f00f3a1Smrg # incompatible with the Cstd library. Avoid specifying 71339f00f3a1Smrg # it if it's in CXXFLAGS. Ignore libCrun as 71349f00f3a1Smrg # -library=stlport4 depends on it. 71359f00f3a1Smrg case " $CXX $CXXFLAGS " in 71369f00f3a1Smrg *" -library=stlport4 "*) 71379f00f3a1Smrg solaris_use_stlport4=yes 71389f00f3a1Smrg ;; 71399f00f3a1Smrg esac 71409f00f3a1Smrg 71419f00f3a1Smrg # Adding this requires a known-good setup of shared libraries for 71429f00f3a1Smrg # Sun compiler versions before 5.6, else PIC objects from an old 71439f00f3a1Smrg # archive will be linked into the output, leading to subtle bugs. 71449f00f3a1Smrg if test "$solaris_use_stlport4" != yes; then 71459f00f3a1Smrg _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 71469f00f3a1Smrg fi 71479f00f3a1Smrg ;; 71489f00f3a1Smrg esac 71499f00f3a1Smrg ;; 71509f00f3a1Smrgesac 71519f00f3a1Smrg]) 71529f00f3a1Smrg 71539f00f3a1Smrgcase " $_LT_TAGVAR(postdeps, $1) " in 71549f00f3a1Smrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 71559f00f3a1Smrgesac 71569f00f3a1Smrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 71579f00f3a1Smrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 71589f00f3a1Smrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 71599f00f3a1Smrgfi 71609f00f3a1Smrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 71619f00f3a1Smrg [The directories searched by this compiler when creating a shared library]) 71629f00f3a1Smrg_LT_TAGDECL([], [predep_objects], [1], 71639f00f3a1Smrg [Dependencies to place before and after the objects being linked to 71649f00f3a1Smrg create a shared library]) 71659f00f3a1Smrg_LT_TAGDECL([], [postdep_objects], [1]) 71669f00f3a1Smrg_LT_TAGDECL([], [predeps], [1]) 71679f00f3a1Smrg_LT_TAGDECL([], [postdeps], [1]) 71689f00f3a1Smrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 71699f00f3a1Smrg [The library search path used internally by the compiler when linking 71709f00f3a1Smrg a shared library]) 71719f00f3a1Smrg])# _LT_SYS_HIDDEN_LIBDEPS 71729f00f3a1Smrg 71739f00f3a1Smrg 71749f00f3a1Smrg# _LT_LANG_F77_CONFIG([TAG]) 71759f00f3a1Smrg# -------------------------- 71769f00f3a1Smrg# Ensure that the configuration variables for a Fortran 77 compiler are 71779f00f3a1Smrg# suitably defined. These variables are subsequently used by _LT_CONFIG 71789f00f3a1Smrg# to write the compiler configuration to `libtool'. 71799f00f3a1Smrgm4_defun([_LT_LANG_F77_CONFIG], 71809f00f3a1Smrg[AC_LANG_PUSH(Fortran 77) 71819f00f3a1Smrgif test -z "$F77" || test "X$F77" = "Xno"; then 71829f00f3a1Smrg _lt_disable_F77=yes 71839f00f3a1Smrgfi 71849f00f3a1Smrg 71859f00f3a1Smrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 71869f00f3a1Smrg_LT_TAGVAR(allow_undefined_flag, $1)= 71879f00f3a1Smrg_LT_TAGVAR(always_export_symbols, $1)=no 71889f00f3a1Smrg_LT_TAGVAR(archive_expsym_cmds, $1)= 71899f00f3a1Smrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 71909f00f3a1Smrg_LT_TAGVAR(hardcode_direct, $1)=no 71919f00f3a1Smrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 71929f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 71939f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 71949f00f3a1Smrg_LT_TAGVAR(hardcode_minus_L, $1)=no 71959f00f3a1Smrg_LT_TAGVAR(hardcode_automatic, $1)=no 71969f00f3a1Smrg_LT_TAGVAR(inherit_rpath, $1)=no 71979f00f3a1Smrg_LT_TAGVAR(module_cmds, $1)= 71989f00f3a1Smrg_LT_TAGVAR(module_expsym_cmds, $1)= 71999f00f3a1Smrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 72009f00f3a1Smrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 72019f00f3a1Smrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 72029f00f3a1Smrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 72039f00f3a1Smrg_LT_TAGVAR(no_undefined_flag, $1)= 72049f00f3a1Smrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 72059f00f3a1Smrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 72069f00f3a1Smrg 72079f00f3a1Smrg# Source file extension for f77 test sources. 72089f00f3a1Smrgac_ext=f 72099f00f3a1Smrg 72109f00f3a1Smrg# Object file extension for compiled f77 test sources. 72119f00f3a1Smrgobjext=o 72129f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 72139f00f3a1Smrg 72149f00f3a1Smrg# No sense in running all these tests if we already determined that 72159f00f3a1Smrg# the F77 compiler isn't working. Some variables (like enable_shared) 72169f00f3a1Smrg# are currently assumed to apply to all compilers on this platform, 72179f00f3a1Smrg# and will be corrupted by setting them based on a non-working compiler. 72189f00f3a1Smrgif test "$_lt_disable_F77" != yes; then 72199f00f3a1Smrg # Code to be used in simple compile tests 72209f00f3a1Smrg lt_simple_compile_test_code="\ 72219f00f3a1Smrg subroutine t 72229f00f3a1Smrg return 72239f00f3a1Smrg end 72249f00f3a1Smrg" 72259f00f3a1Smrg 72269f00f3a1Smrg # Code to be used in simple link tests 72279f00f3a1Smrg lt_simple_link_test_code="\ 72289f00f3a1Smrg program t 72299f00f3a1Smrg end 72309f00f3a1Smrg" 72319f00f3a1Smrg 72329f00f3a1Smrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 72339f00f3a1Smrg _LT_TAG_COMPILER 72349f00f3a1Smrg 72359f00f3a1Smrg # save warnings/boilerplate of simple test code 72369f00f3a1Smrg _LT_COMPILER_BOILERPLATE 72379f00f3a1Smrg _LT_LINKER_BOILERPLATE 72389f00f3a1Smrg 72399f00f3a1Smrg # Allow CC to be a program name with arguments. 72409f00f3a1Smrg lt_save_CC="$CC" 72419f00f3a1Smrg lt_save_GCC=$GCC 72429f00f3a1Smrg lt_save_CFLAGS=$CFLAGS 72439f00f3a1Smrg CC=${F77-"f77"} 72449f00f3a1Smrg CFLAGS=$FFLAGS 72459f00f3a1Smrg compiler=$CC 72469f00f3a1Smrg _LT_TAGVAR(compiler, $1)=$CC 72479f00f3a1Smrg _LT_CC_BASENAME([$compiler]) 72489f00f3a1Smrg GCC=$G77 72499f00f3a1Smrg if test -n "$compiler"; then 72509f00f3a1Smrg AC_MSG_CHECKING([if libtool supports shared libraries]) 72519f00f3a1Smrg AC_MSG_RESULT([$can_build_shared]) 72529f00f3a1Smrg 72539f00f3a1Smrg AC_MSG_CHECKING([whether to build shared libraries]) 72549f00f3a1Smrg test "$can_build_shared" = "no" && enable_shared=no 72559f00f3a1Smrg 72569f00f3a1Smrg # On AIX, shared libraries and static libraries use the same namespace, and 72579f00f3a1Smrg # are all built from PIC. 72589f00f3a1Smrg case $host_os in 72599f00f3a1Smrg aix3*) 72609f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 72619f00f3a1Smrg if test -n "$RANLIB"; then 72629f00f3a1Smrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 72639f00f3a1Smrg postinstall_cmds='$RANLIB $lib' 72649f00f3a1Smrg fi 72659f00f3a1Smrg ;; 72669f00f3a1Smrg aix[[4-9]]*) 72679f00f3a1Smrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 72689f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 72699f00f3a1Smrg fi 72709f00f3a1Smrg ;; 72719f00f3a1Smrg esac 72729f00f3a1Smrg AC_MSG_RESULT([$enable_shared]) 72739f00f3a1Smrg 72749f00f3a1Smrg AC_MSG_CHECKING([whether to build static libraries]) 72759f00f3a1Smrg # Make sure either enable_shared or enable_static is yes. 72769f00f3a1Smrg test "$enable_shared" = yes || enable_static=yes 72779f00f3a1Smrg AC_MSG_RESULT([$enable_static]) 72789f00f3a1Smrg 72799f00f3a1Smrg _LT_TAGVAR(GCC, $1)="$G77" 72809f00f3a1Smrg _LT_TAGVAR(LD, $1)="$LD" 72819f00f3a1Smrg 72829f00f3a1Smrg ## CAVEAT EMPTOR: 72839f00f3a1Smrg ## There is no encapsulation within the following macros, do not change 72849f00f3a1Smrg ## the running order or otherwise move them around unless you know exactly 72859f00f3a1Smrg ## what you are doing... 72869f00f3a1Smrg _LT_COMPILER_PIC($1) 72879f00f3a1Smrg _LT_COMPILER_C_O($1) 72889f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 72899f00f3a1Smrg _LT_LINKER_SHLIBS($1) 72909f00f3a1Smrg _LT_SYS_DYNAMIC_LINKER($1) 72919f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 72929f00f3a1Smrg 72939f00f3a1Smrg _LT_CONFIG($1) 72949f00f3a1Smrg fi # test -n "$compiler" 72959f00f3a1Smrg 72969f00f3a1Smrg GCC=$lt_save_GCC 72979f00f3a1Smrg CC="$lt_save_CC" 72989f00f3a1Smrg CFLAGS="$lt_save_CFLAGS" 72999f00f3a1Smrgfi # test "$_lt_disable_F77" != yes 73009f00f3a1Smrg 73019f00f3a1SmrgAC_LANG_POP 73029f00f3a1Smrg])# _LT_LANG_F77_CONFIG 73039f00f3a1Smrg 73049f00f3a1Smrg 73059f00f3a1Smrg# _LT_LANG_FC_CONFIG([TAG]) 73069f00f3a1Smrg# ------------------------- 73079f00f3a1Smrg# Ensure that the configuration variables for a Fortran compiler are 73089f00f3a1Smrg# suitably defined. These variables are subsequently used by _LT_CONFIG 73099f00f3a1Smrg# to write the compiler configuration to `libtool'. 73109f00f3a1Smrgm4_defun([_LT_LANG_FC_CONFIG], 73119f00f3a1Smrg[AC_LANG_PUSH(Fortran) 73129f00f3a1Smrg 73139f00f3a1Smrgif test -z "$FC" || test "X$FC" = "Xno"; then 73149f00f3a1Smrg _lt_disable_FC=yes 73159f00f3a1Smrgfi 73169f00f3a1Smrg 73179f00f3a1Smrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 73189f00f3a1Smrg_LT_TAGVAR(allow_undefined_flag, $1)= 73199f00f3a1Smrg_LT_TAGVAR(always_export_symbols, $1)=no 73209f00f3a1Smrg_LT_TAGVAR(archive_expsym_cmds, $1)= 73219f00f3a1Smrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 73229f00f3a1Smrg_LT_TAGVAR(hardcode_direct, $1)=no 73239f00f3a1Smrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 73249f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 73259f00f3a1Smrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 73269f00f3a1Smrg_LT_TAGVAR(hardcode_minus_L, $1)=no 73279f00f3a1Smrg_LT_TAGVAR(hardcode_automatic, $1)=no 73289f00f3a1Smrg_LT_TAGVAR(inherit_rpath, $1)=no 73299f00f3a1Smrg_LT_TAGVAR(module_cmds, $1)= 73309f00f3a1Smrg_LT_TAGVAR(module_expsym_cmds, $1)= 73319f00f3a1Smrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 73329f00f3a1Smrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 73339f00f3a1Smrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 73349f00f3a1Smrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 73359f00f3a1Smrg_LT_TAGVAR(no_undefined_flag, $1)= 73369f00f3a1Smrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 73379f00f3a1Smrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 73389f00f3a1Smrg 73399f00f3a1Smrg# Source file extension for fc test sources. 73409f00f3a1Smrgac_ext=${ac_fc_srcext-f} 73419f00f3a1Smrg 73429f00f3a1Smrg# Object file extension for compiled fc test sources. 73439f00f3a1Smrgobjext=o 73449f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 73459f00f3a1Smrg 73469f00f3a1Smrg# No sense in running all these tests if we already determined that 73479f00f3a1Smrg# the FC compiler isn't working. Some variables (like enable_shared) 73489f00f3a1Smrg# are currently assumed to apply to all compilers on this platform, 73499f00f3a1Smrg# and will be corrupted by setting them based on a non-working compiler. 73509f00f3a1Smrgif test "$_lt_disable_FC" != yes; then 73519f00f3a1Smrg # Code to be used in simple compile tests 73529f00f3a1Smrg lt_simple_compile_test_code="\ 73539f00f3a1Smrg subroutine t 73549f00f3a1Smrg return 73559f00f3a1Smrg end 73569f00f3a1Smrg" 73579f00f3a1Smrg 73589f00f3a1Smrg # Code to be used in simple link tests 73599f00f3a1Smrg lt_simple_link_test_code="\ 73609f00f3a1Smrg program t 73619f00f3a1Smrg end 73629f00f3a1Smrg" 73639f00f3a1Smrg 73649f00f3a1Smrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 73659f00f3a1Smrg _LT_TAG_COMPILER 73669f00f3a1Smrg 73679f00f3a1Smrg # save warnings/boilerplate of simple test code 73689f00f3a1Smrg _LT_COMPILER_BOILERPLATE 73699f00f3a1Smrg _LT_LINKER_BOILERPLATE 73709f00f3a1Smrg 73719f00f3a1Smrg # Allow CC to be a program name with arguments. 73729f00f3a1Smrg lt_save_CC="$CC" 73739f00f3a1Smrg lt_save_GCC=$GCC 73749f00f3a1Smrg lt_save_CFLAGS=$CFLAGS 73759f00f3a1Smrg CC=${FC-"f95"} 73769f00f3a1Smrg CFLAGS=$FCFLAGS 73779f00f3a1Smrg compiler=$CC 73789f00f3a1Smrg GCC=$ac_cv_fc_compiler_gnu 73799f00f3a1Smrg 73809f00f3a1Smrg _LT_TAGVAR(compiler, $1)=$CC 73819f00f3a1Smrg _LT_CC_BASENAME([$compiler]) 73829f00f3a1Smrg 73839f00f3a1Smrg if test -n "$compiler"; then 73849f00f3a1Smrg AC_MSG_CHECKING([if libtool supports shared libraries]) 73859f00f3a1Smrg AC_MSG_RESULT([$can_build_shared]) 73869f00f3a1Smrg 73879f00f3a1Smrg AC_MSG_CHECKING([whether to build shared libraries]) 73889f00f3a1Smrg test "$can_build_shared" = "no" && enable_shared=no 73899f00f3a1Smrg 73909f00f3a1Smrg # On AIX, shared libraries and static libraries use the same namespace, and 73919f00f3a1Smrg # are all built from PIC. 73929f00f3a1Smrg case $host_os in 73939f00f3a1Smrg aix3*) 73949f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 73959f00f3a1Smrg if test -n "$RANLIB"; then 73969f00f3a1Smrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 73979f00f3a1Smrg postinstall_cmds='$RANLIB $lib' 73989f00f3a1Smrg fi 73999f00f3a1Smrg ;; 74009f00f3a1Smrg aix[[4-9]]*) 74019f00f3a1Smrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 74029f00f3a1Smrg test "$enable_shared" = yes && enable_static=no 74039f00f3a1Smrg fi 74049f00f3a1Smrg ;; 74059f00f3a1Smrg esac 74069f00f3a1Smrg AC_MSG_RESULT([$enable_shared]) 74079f00f3a1Smrg 74089f00f3a1Smrg AC_MSG_CHECKING([whether to build static libraries]) 74099f00f3a1Smrg # Make sure either enable_shared or enable_static is yes. 74109f00f3a1Smrg test "$enable_shared" = yes || enable_static=yes 74119f00f3a1Smrg AC_MSG_RESULT([$enable_static]) 74129f00f3a1Smrg 74139f00f3a1Smrg _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 74149f00f3a1Smrg _LT_TAGVAR(LD, $1)="$LD" 74159f00f3a1Smrg 74169f00f3a1Smrg ## CAVEAT EMPTOR: 74179f00f3a1Smrg ## There is no encapsulation within the following macros, do not change 74189f00f3a1Smrg ## the running order or otherwise move them around unless you know exactly 74199f00f3a1Smrg ## what you are doing... 74209f00f3a1Smrg _LT_SYS_HIDDEN_LIBDEPS($1) 74219f00f3a1Smrg _LT_COMPILER_PIC($1) 74229f00f3a1Smrg _LT_COMPILER_C_O($1) 74239f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 74249f00f3a1Smrg _LT_LINKER_SHLIBS($1) 74259f00f3a1Smrg _LT_SYS_DYNAMIC_LINKER($1) 74269f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 74279f00f3a1Smrg 74289f00f3a1Smrg _LT_CONFIG($1) 74299f00f3a1Smrg fi # test -n "$compiler" 74309f00f3a1Smrg 74319f00f3a1Smrg GCC=$lt_save_GCC 74329f00f3a1Smrg CC=$lt_save_CC 74339f00f3a1Smrg CFLAGS=$lt_save_CFLAGS 74349f00f3a1Smrgfi # test "$_lt_disable_FC" != yes 74359f00f3a1Smrg 74369f00f3a1SmrgAC_LANG_POP 74379f00f3a1Smrg])# _LT_LANG_FC_CONFIG 74389f00f3a1Smrg 74399f00f3a1Smrg 74409f00f3a1Smrg# _LT_LANG_GCJ_CONFIG([TAG]) 74419f00f3a1Smrg# -------------------------- 74429f00f3a1Smrg# Ensure that the configuration variables for the GNU Java Compiler compiler 74439f00f3a1Smrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 74449f00f3a1Smrg# to write the compiler configuration to `libtool'. 74459f00f3a1Smrgm4_defun([_LT_LANG_GCJ_CONFIG], 74469f00f3a1Smrg[AC_REQUIRE([LT_PROG_GCJ])dnl 74479f00f3a1SmrgAC_LANG_SAVE 74489f00f3a1Smrg 74499f00f3a1Smrg# Source file extension for Java test sources. 74509f00f3a1Smrgac_ext=java 74519f00f3a1Smrg 74529f00f3a1Smrg# Object file extension for compiled Java test sources. 74539f00f3a1Smrgobjext=o 74549f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 74559f00f3a1Smrg 74569f00f3a1Smrg# Code to be used in simple compile tests 74579f00f3a1Smrglt_simple_compile_test_code="class foo {}" 74589f00f3a1Smrg 74599f00f3a1Smrg# Code to be used in simple link tests 74609f00f3a1Smrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 74619f00f3a1Smrg 74629f00f3a1Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 74639f00f3a1Smrg_LT_TAG_COMPILER 74649f00f3a1Smrg 74659f00f3a1Smrg# save warnings/boilerplate of simple test code 74669f00f3a1Smrg_LT_COMPILER_BOILERPLATE 74679f00f3a1Smrg_LT_LINKER_BOILERPLATE 74689f00f3a1Smrg 74699f00f3a1Smrg# Allow CC to be a program name with arguments. 74709f00f3a1Smrglt_save_CC=$CC 74719f00f3a1Smrglt_save_CFLAGS=$CFLAGS 74729f00f3a1Smrglt_save_GCC=$GCC 74739f00f3a1SmrgGCC=yes 74749f00f3a1SmrgCC=${GCJ-"gcj"} 74759f00f3a1SmrgCFLAGS=$GCJFLAGS 74769f00f3a1Smrgcompiler=$CC 74779f00f3a1Smrg_LT_TAGVAR(compiler, $1)=$CC 74789f00f3a1Smrg_LT_TAGVAR(LD, $1)="$LD" 74799f00f3a1Smrg_LT_CC_BASENAME([$compiler]) 74809f00f3a1Smrg 74819f00f3a1Smrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 74829f00f3a1Smrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 74839f00f3a1Smrg 74849f00f3a1Smrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 74859f00f3a1Smrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 74869f00f3a1Smrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 74879f00f3a1Smrg 74889f00f3a1Smrg## CAVEAT EMPTOR: 74899f00f3a1Smrg## There is no encapsulation within the following macros, do not change 74909f00f3a1Smrg## the running order or otherwise move them around unless you know exactly 74919f00f3a1Smrg## what you are doing... 74929f00f3a1Smrgif test -n "$compiler"; then 74939f00f3a1Smrg _LT_COMPILER_NO_RTTI($1) 74949f00f3a1Smrg _LT_COMPILER_PIC($1) 74959f00f3a1Smrg _LT_COMPILER_C_O($1) 74969f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 74979f00f3a1Smrg _LT_LINKER_SHLIBS($1) 74989f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 74999f00f3a1Smrg 75009f00f3a1Smrg _LT_CONFIG($1) 75019f00f3a1Smrgfi 75029f00f3a1Smrg 75039f00f3a1SmrgAC_LANG_RESTORE 75049f00f3a1Smrg 75059f00f3a1SmrgGCC=$lt_save_GCC 75069f00f3a1SmrgCC=$lt_save_CC 75079f00f3a1SmrgCFLAGS=$lt_save_CFLAGS 75089f00f3a1Smrg])# _LT_LANG_GCJ_CONFIG 75099f00f3a1Smrg 75109f00f3a1Smrg 75119f00f3a1Smrg# _LT_LANG_GO_CONFIG([TAG]) 75129f00f3a1Smrg# -------------------------- 75139f00f3a1Smrg# Ensure that the configuration variables for the GNU Go compiler 75149f00f3a1Smrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 75159f00f3a1Smrg# to write the compiler configuration to `libtool'. 75169f00f3a1Smrgm4_defun([_LT_LANG_GO_CONFIG], 75179f00f3a1Smrg[AC_REQUIRE([LT_PROG_GO])dnl 75189f00f3a1SmrgAC_LANG_SAVE 75199f00f3a1Smrg 75209f00f3a1Smrg# Source file extension for Go test sources. 75219f00f3a1Smrgac_ext=go 75229f00f3a1Smrg 75239f00f3a1Smrg# Object file extension for compiled Go test sources. 75249f00f3a1Smrgobjext=o 75259f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 75269f00f3a1Smrg 75279f00f3a1Smrg# Code to be used in simple compile tests 75289f00f3a1Smrglt_simple_compile_test_code="package main; func main() { }" 75299f00f3a1Smrg 75309f00f3a1Smrg# Code to be used in simple link tests 75319f00f3a1Smrglt_simple_link_test_code='package main; func main() { }' 75329f00f3a1Smrg 75339f00f3a1Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 75349f00f3a1Smrg_LT_TAG_COMPILER 75359f00f3a1Smrg 75369f00f3a1Smrg# save warnings/boilerplate of simple test code 75379f00f3a1Smrg_LT_COMPILER_BOILERPLATE 75389f00f3a1Smrg_LT_LINKER_BOILERPLATE 75399f00f3a1Smrg 75409f00f3a1Smrg# Allow CC to be a program name with arguments. 75419f00f3a1Smrglt_save_CC=$CC 75429f00f3a1Smrglt_save_CFLAGS=$CFLAGS 75439f00f3a1Smrglt_save_GCC=$GCC 75449f00f3a1SmrgGCC=yes 75459f00f3a1SmrgCC=${GOC-"gccgo"} 75469f00f3a1SmrgCFLAGS=$GOFLAGS 75479f00f3a1Smrgcompiler=$CC 75489f00f3a1Smrg_LT_TAGVAR(compiler, $1)=$CC 75499f00f3a1Smrg_LT_TAGVAR(LD, $1)="$LD" 75509f00f3a1Smrg_LT_CC_BASENAME([$compiler]) 75519f00f3a1Smrg 75529f00f3a1Smrg# Go did not exist at the time GCC didn't implicitly link libc in. 75539f00f3a1Smrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 75549f00f3a1Smrg 75559f00f3a1Smrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 75569f00f3a1Smrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 75579f00f3a1Smrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 75589f00f3a1Smrg 75599f00f3a1Smrg## CAVEAT EMPTOR: 75609f00f3a1Smrg## There is no encapsulation within the following macros, do not change 75619f00f3a1Smrg## the running order or otherwise move them around unless you know exactly 75629f00f3a1Smrg## what you are doing... 75639f00f3a1Smrgif test -n "$compiler"; then 75649f00f3a1Smrg _LT_COMPILER_NO_RTTI($1) 75659f00f3a1Smrg _LT_COMPILER_PIC($1) 75669f00f3a1Smrg _LT_COMPILER_C_O($1) 75679f00f3a1Smrg _LT_COMPILER_FILE_LOCKS($1) 75689f00f3a1Smrg _LT_LINKER_SHLIBS($1) 75699f00f3a1Smrg _LT_LINKER_HARDCODE_LIBPATH($1) 75709f00f3a1Smrg 75719f00f3a1Smrg _LT_CONFIG($1) 75729f00f3a1Smrgfi 75739f00f3a1Smrg 75749f00f3a1SmrgAC_LANG_RESTORE 75759f00f3a1Smrg 75769f00f3a1SmrgGCC=$lt_save_GCC 75779f00f3a1SmrgCC=$lt_save_CC 75789f00f3a1SmrgCFLAGS=$lt_save_CFLAGS 75799f00f3a1Smrg])# _LT_LANG_GO_CONFIG 75809f00f3a1Smrg 75819f00f3a1Smrg 75829f00f3a1Smrg# _LT_LANG_RC_CONFIG([TAG]) 75839f00f3a1Smrg# ------------------------- 75849f00f3a1Smrg# Ensure that the configuration variables for the Windows resource compiler 75859f00f3a1Smrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 75869f00f3a1Smrg# to write the compiler configuration to `libtool'. 75879f00f3a1Smrgm4_defun([_LT_LANG_RC_CONFIG], 75889f00f3a1Smrg[AC_REQUIRE([LT_PROG_RC])dnl 75899f00f3a1SmrgAC_LANG_SAVE 75909f00f3a1Smrg 75919f00f3a1Smrg# Source file extension for RC test sources. 75929f00f3a1Smrgac_ext=rc 75939f00f3a1Smrg 75949f00f3a1Smrg# Object file extension for compiled RC test sources. 75959f00f3a1Smrgobjext=o 75969f00f3a1Smrg_LT_TAGVAR(objext, $1)=$objext 75979f00f3a1Smrg 75989f00f3a1Smrg# Code to be used in simple compile tests 75999f00f3a1Smrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 76009f00f3a1Smrg 76019f00f3a1Smrg# Code to be used in simple link tests 76029f00f3a1Smrglt_simple_link_test_code="$lt_simple_compile_test_code" 76039f00f3a1Smrg 76049f00f3a1Smrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 76059f00f3a1Smrg_LT_TAG_COMPILER 76069f00f3a1Smrg 76079f00f3a1Smrg# save warnings/boilerplate of simple test code 76089f00f3a1Smrg_LT_COMPILER_BOILERPLATE 76099f00f3a1Smrg_LT_LINKER_BOILERPLATE 76109f00f3a1Smrg 76119f00f3a1Smrg# Allow CC to be a program name with arguments. 76129f00f3a1Smrglt_save_CC="$CC" 76139f00f3a1Smrglt_save_CFLAGS=$CFLAGS 76149f00f3a1Smrglt_save_GCC=$GCC 76159f00f3a1SmrgGCC= 76169f00f3a1SmrgCC=${RC-"windres"} 76179f00f3a1SmrgCFLAGS= 76189f00f3a1Smrgcompiler=$CC 76199f00f3a1Smrg_LT_TAGVAR(compiler, $1)=$CC 76209f00f3a1Smrg_LT_CC_BASENAME([$compiler]) 76219f00f3a1Smrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 76229f00f3a1Smrg 76239f00f3a1Smrgif test -n "$compiler"; then 76249f00f3a1Smrg : 76259f00f3a1Smrg _LT_CONFIG($1) 76269f00f3a1Smrgfi 76279f00f3a1Smrg 76289f00f3a1SmrgGCC=$lt_save_GCC 76299f00f3a1SmrgAC_LANG_RESTORE 76309f00f3a1SmrgCC=$lt_save_CC 76319f00f3a1SmrgCFLAGS=$lt_save_CFLAGS 76329f00f3a1Smrg])# _LT_LANG_RC_CONFIG 76339f00f3a1Smrg 76349f00f3a1Smrg 76359f00f3a1Smrg# LT_PROG_GCJ 76369f00f3a1Smrg# ----------- 76379f00f3a1SmrgAC_DEFUN([LT_PROG_GCJ], 76389f00f3a1Smrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 76399f00f3a1Smrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 76409f00f3a1Smrg [AC_CHECK_TOOL(GCJ, gcj,) 76419f00f3a1Smrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 76429f00f3a1Smrg AC_SUBST(GCJFLAGS)])])[]dnl 76439f00f3a1Smrg]) 76449f00f3a1Smrg 76459f00f3a1Smrg# Old name: 76469f00f3a1SmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 76479f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 76489f00f3a1Smrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 76499f00f3a1Smrg 76509f00f3a1Smrg 76519f00f3a1Smrg# LT_PROG_GO 76529f00f3a1Smrg# ---------- 76539f00f3a1SmrgAC_DEFUN([LT_PROG_GO], 76549f00f3a1Smrg[AC_CHECK_TOOL(GOC, gccgo,) 76559f00f3a1Smrg]) 76569f00f3a1Smrg 76579f00f3a1Smrg 76589f00f3a1Smrg# LT_PROG_RC 76599f00f3a1Smrg# ---------- 76609f00f3a1SmrgAC_DEFUN([LT_PROG_RC], 76619f00f3a1Smrg[AC_CHECK_TOOL(RC, windres,) 76629f00f3a1Smrg]) 76639f00f3a1Smrg 76649f00f3a1Smrg# Old name: 76659f00f3a1SmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 76669f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 76679f00f3a1Smrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 76689f00f3a1Smrg 76699f00f3a1Smrg 76709f00f3a1Smrg# _LT_DECL_EGREP 76719f00f3a1Smrg# -------------- 76729f00f3a1Smrg# If we don't have a new enough Autoconf to choose the best grep 76739f00f3a1Smrg# available, choose the one first in the user's PATH. 76749f00f3a1Smrgm4_defun([_LT_DECL_EGREP], 76759f00f3a1Smrg[AC_REQUIRE([AC_PROG_EGREP])dnl 76769f00f3a1SmrgAC_REQUIRE([AC_PROG_FGREP])dnl 76779f00f3a1Smrgtest -z "$GREP" && GREP=grep 76789f00f3a1Smrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 76799f00f3a1Smrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 76809f00f3a1Smrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 76819f00f3a1Smrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 76829f00f3a1SmrgAC_SUBST([GREP]) 76839f00f3a1Smrg]) 76849f00f3a1Smrg 76859f00f3a1Smrg 76869f00f3a1Smrg# _LT_DECL_OBJDUMP 76879f00f3a1Smrg# -------------- 76889f00f3a1Smrg# If we don't have a new enough Autoconf to choose the best objdump 76899f00f3a1Smrg# available, choose the one first in the user's PATH. 76909f00f3a1Smrgm4_defun([_LT_DECL_OBJDUMP], 76919f00f3a1Smrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 76929f00f3a1Smrgtest -z "$OBJDUMP" && OBJDUMP=objdump 76939f00f3a1Smrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 76949f00f3a1SmrgAC_SUBST([OBJDUMP]) 76959f00f3a1Smrg]) 76969f00f3a1Smrg 76979f00f3a1Smrg# _LT_DECL_DLLTOOL 76989f00f3a1Smrg# ---------------- 76999f00f3a1Smrg# Ensure DLLTOOL variable is set. 77009f00f3a1Smrgm4_defun([_LT_DECL_DLLTOOL], 77019f00f3a1Smrg[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 77029f00f3a1Smrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 77039f00f3a1Smrg_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 77049f00f3a1SmrgAC_SUBST([DLLTOOL]) 77059f00f3a1Smrg]) 77069f00f3a1Smrg 77079f00f3a1Smrg# _LT_DECL_SED 77089f00f3a1Smrg# ------------ 77099f00f3a1Smrg# Check for a fully-functional sed program, that truncates 77109f00f3a1Smrg# as few characters as possible. Prefer GNU sed if found. 77119f00f3a1Smrgm4_defun([_LT_DECL_SED], 77129f00f3a1Smrg[AC_PROG_SED 77139f00f3a1Smrgtest -z "$SED" && SED=sed 77149f00f3a1SmrgXsed="$SED -e 1s/^X//" 77159f00f3a1Smrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 77169f00f3a1Smrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 77179f00f3a1Smrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 77189f00f3a1Smrg])# _LT_DECL_SED 77199f00f3a1Smrg 77209f00f3a1Smrgm4_ifndef([AC_PROG_SED], [ 77219f00f3a1Smrg############################################################ 77229f00f3a1Smrg# NOTE: This macro has been submitted for inclusion into # 77239f00f3a1Smrg# GNU Autoconf as AC_PROG_SED. When it is available in # 77249f00f3a1Smrg# a released version of Autoconf we should remove this # 77259f00f3a1Smrg# macro and use it instead. # 77269f00f3a1Smrg############################################################ 77279f00f3a1Smrg 77289f00f3a1Smrgm4_defun([AC_PROG_SED], 77299f00f3a1Smrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 77309f00f3a1SmrgAC_CACHE_VAL(lt_cv_path_SED, 77319f00f3a1Smrg[# Loop through the user's path and test for sed and gsed. 77329f00f3a1Smrg# Then use that list of sed's as ones to test for truncation. 77339f00f3a1Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 77349f00f3a1Smrgfor as_dir in $PATH 77359f00f3a1Smrgdo 77369f00f3a1Smrg IFS=$as_save_IFS 77379f00f3a1Smrg test -z "$as_dir" && as_dir=. 77389f00f3a1Smrg for lt_ac_prog in sed gsed; do 77399f00f3a1Smrg for ac_exec_ext in '' $ac_executable_extensions; do 77409f00f3a1Smrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 77419f00f3a1Smrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 77429f00f3a1Smrg fi 77439f00f3a1Smrg done 77449f00f3a1Smrg done 77459f00f3a1Smrgdone 77469f00f3a1SmrgIFS=$as_save_IFS 77479f00f3a1Smrglt_ac_max=0 77489f00f3a1Smrglt_ac_count=0 77499f00f3a1Smrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 77509f00f3a1Smrg# along with /bin/sed that truncates output. 77519f00f3a1Smrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 77529f00f3a1Smrg test ! -f $lt_ac_sed && continue 77539f00f3a1Smrg cat /dev/null > conftest.in 77549f00f3a1Smrg lt_ac_count=0 77559f00f3a1Smrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 77569f00f3a1Smrg # Check for GNU sed and select it if it is found. 77579f00f3a1Smrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 77589f00f3a1Smrg lt_cv_path_SED=$lt_ac_sed 77599f00f3a1Smrg break 77609f00f3a1Smrg fi 77619f00f3a1Smrg while true; do 77629f00f3a1Smrg cat conftest.in conftest.in >conftest.tmp 77639f00f3a1Smrg mv conftest.tmp conftest.in 77649f00f3a1Smrg cp conftest.in conftest.nl 77659f00f3a1Smrg echo >>conftest.nl 77669f00f3a1Smrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 77679f00f3a1Smrg cmp -s conftest.out conftest.nl || break 77689f00f3a1Smrg # 10000 chars as input seems more than enough 77699f00f3a1Smrg test $lt_ac_count -gt 10 && break 77709f00f3a1Smrg lt_ac_count=`expr $lt_ac_count + 1` 77719f00f3a1Smrg if test $lt_ac_count -gt $lt_ac_max; then 77729f00f3a1Smrg lt_ac_max=$lt_ac_count 77739f00f3a1Smrg lt_cv_path_SED=$lt_ac_sed 77749f00f3a1Smrg fi 77759f00f3a1Smrg done 77769f00f3a1Smrgdone 77779f00f3a1Smrg]) 77789f00f3a1SmrgSED=$lt_cv_path_SED 77799f00f3a1SmrgAC_SUBST([SED]) 77809f00f3a1SmrgAC_MSG_RESULT([$SED]) 77819f00f3a1Smrg])#AC_PROG_SED 77829f00f3a1Smrg])#m4_ifndef 77839f00f3a1Smrg 77849f00f3a1Smrg# Old name: 77859f00f3a1SmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 77869f00f3a1Smrgdnl aclocal-1.4 backwards compatibility: 77879f00f3a1Smrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 77889f00f3a1Smrg 77899f00f3a1Smrg 77909f00f3a1Smrg# _LT_CHECK_SHELL_FEATURES 77919f00f3a1Smrg# ------------------------ 77929f00f3a1Smrg# Find out whether the shell is Bourne or XSI compatible, 77939f00f3a1Smrg# or has some other useful features. 77949f00f3a1Smrgm4_defun([_LT_CHECK_SHELL_FEATURES], 77959f00f3a1Smrg[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 77969f00f3a1Smrg# Try some XSI features 77979f00f3a1Smrgxsi_shell=no 77989f00f3a1Smrg( _lt_dummy="a/b/c" 77999f00f3a1Smrg test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 78009f00f3a1Smrg = c,a/b,b/c, \ 78019f00f3a1Smrg && eval 'test $(( 1 + 1 )) -eq 2 \ 78029f00f3a1Smrg && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 78039f00f3a1Smrg && xsi_shell=yes 78049f00f3a1SmrgAC_MSG_RESULT([$xsi_shell]) 78059f00f3a1Smrg_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 78069f00f3a1Smrg 78079f00f3a1SmrgAC_MSG_CHECKING([whether the shell understands "+="]) 78089f00f3a1Smrglt_shell_append=no 78099f00f3a1Smrg( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 78109f00f3a1Smrg >/dev/null 2>&1 \ 78119f00f3a1Smrg && lt_shell_append=yes 78129f00f3a1SmrgAC_MSG_RESULT([$lt_shell_append]) 78139f00f3a1Smrg_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 78149f00f3a1Smrg 78159f00f3a1Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 78169f00f3a1Smrg lt_unset=unset 78179f00f3a1Smrgelse 78189f00f3a1Smrg lt_unset=false 78199f00f3a1Smrgfi 78209f00f3a1Smrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 78219f00f3a1Smrg 78229f00f3a1Smrg# test EBCDIC or ASCII 78239f00f3a1Smrgcase `echo X|tr X '\101'` in 78249f00f3a1Smrg A) # ASCII based system 78259f00f3a1Smrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 78269f00f3a1Smrg lt_SP2NL='tr \040 \012' 78279f00f3a1Smrg lt_NL2SP='tr \015\012 \040\040' 78289f00f3a1Smrg ;; 78299f00f3a1Smrg *) # EBCDIC based system 78309f00f3a1Smrg lt_SP2NL='tr \100 \n' 78319f00f3a1Smrg lt_NL2SP='tr \r\n \100\100' 78329f00f3a1Smrg ;; 78339f00f3a1Smrgesac 78349f00f3a1Smrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 78359f00f3a1Smrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 78369f00f3a1Smrg])# _LT_CHECK_SHELL_FEATURES 78379f00f3a1Smrg 78389f00f3a1Smrg 78399f00f3a1Smrg# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 78409f00f3a1Smrg# ------------------------------------------------------ 78419f00f3a1Smrg# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 78429f00f3a1Smrg# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 78439f00f3a1Smrgm4_defun([_LT_PROG_FUNCTION_REPLACE], 78449f00f3a1Smrg[dnl { 78459f00f3a1Smrgsed -e '/^$1 ()$/,/^} # $1 /c\ 78469f00f3a1Smrg$1 ()\ 78479f00f3a1Smrg{\ 78489f00f3a1Smrgm4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 78499f00f3a1Smrg} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 78509f00f3a1Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 78519f00f3a1Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 78529f00f3a1Smrgtest 0 -eq $? || _lt_function_replace_fail=: 78539f00f3a1Smrg]) 78549f00f3a1Smrg 78559f00f3a1Smrg 78569f00f3a1Smrg# _LT_PROG_REPLACE_SHELLFNS 78579f00f3a1Smrg# ------------------------- 78589f00f3a1Smrg# Replace existing portable implementations of several shell functions with 78599f00f3a1Smrg# equivalent extended shell implementations where those features are available.. 78609f00f3a1Smrgm4_defun([_LT_PROG_REPLACE_SHELLFNS], 78619f00f3a1Smrg[if test x"$xsi_shell" = xyes; then 78629f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 78639f00f3a1Smrg case ${1} in 78649f00f3a1Smrg */*) func_dirname_result="${1%/*}${2}" ;; 78659f00f3a1Smrg * ) func_dirname_result="${3}" ;; 78669f00f3a1Smrg esac]) 78679f00f3a1Smrg 78689f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 78699f00f3a1Smrg func_basename_result="${1##*/}"]) 78709f00f3a1Smrg 78719f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 78729f00f3a1Smrg case ${1} in 78739f00f3a1Smrg */*) func_dirname_result="${1%/*}${2}" ;; 78749f00f3a1Smrg * ) func_dirname_result="${3}" ;; 78759f00f3a1Smrg esac 78769f00f3a1Smrg func_basename_result="${1##*/}"]) 78779f00f3a1Smrg 78789f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 78799f00f3a1Smrg # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 78809f00f3a1Smrg # positional parameters, so assign one to ordinary parameter first. 78819f00f3a1Smrg func_stripname_result=${3} 78829f00f3a1Smrg func_stripname_result=${func_stripname_result#"${1}"} 78839f00f3a1Smrg func_stripname_result=${func_stripname_result%"${2}"}]) 78849f00f3a1Smrg 78859f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 78869f00f3a1Smrg func_split_long_opt_name=${1%%=*} 78879f00f3a1Smrg func_split_long_opt_arg=${1#*=}]) 78889f00f3a1Smrg 78899f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 78909f00f3a1Smrg func_split_short_opt_arg=${1#??} 78919f00f3a1Smrg func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 78929f00f3a1Smrg 78939f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 78949f00f3a1Smrg case ${1} in 78959f00f3a1Smrg *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 78969f00f3a1Smrg *) func_lo2o_result=${1} ;; 78979f00f3a1Smrg esac]) 78989f00f3a1Smrg 78999f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 79009f00f3a1Smrg 79019f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 79029f00f3a1Smrg 79039f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 79049f00f3a1Smrgfi 79059f00f3a1Smrg 79069f00f3a1Smrgif test x"$lt_shell_append" = xyes; then 79079f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 79089f00f3a1Smrg 79099f00f3a1Smrg _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 79109f00f3a1Smrg func_quote_for_eval "${2}" 79119f00f3a1Smrgdnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 79129f00f3a1Smrg eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 79139f00f3a1Smrg 79149f00f3a1Smrg # Save a `func_append' function call where possible by direct use of '+=' 79159f00f3a1Smrg sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 79169f00f3a1Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 79179f00f3a1Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 79189f00f3a1Smrg test 0 -eq $? || _lt_function_replace_fail=: 79199f00f3a1Smrgelse 79209f00f3a1Smrg # Save a `func_append' function call even when '+=' is not available 79219f00f3a1Smrg sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 79229f00f3a1Smrg && mv -f "$cfgfile.tmp" "$cfgfile" \ 79239f00f3a1Smrg || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 79249f00f3a1Smrg test 0 -eq $? || _lt_function_replace_fail=: 79259f00f3a1Smrgfi 79269f00f3a1Smrg 79279f00f3a1Smrgif test x"$_lt_function_replace_fail" = x":"; then 79289f00f3a1Smrg AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 79299f00f3a1Smrgfi 79309f00f3a1Smrg]) 79319f00f3a1Smrg 79329f00f3a1Smrg# _LT_PATH_CONVERSION_FUNCTIONS 79339f00f3a1Smrg# ----------------------------- 79349f00f3a1Smrg# Determine which file name conversion functions should be used by 79359f00f3a1Smrg# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 79369f00f3a1Smrg# for certain cross-compile configurations and native mingw. 79379f00f3a1Smrgm4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 79389f00f3a1Smrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 79399f00f3a1SmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 79409f00f3a1SmrgAC_MSG_CHECKING([how to convert $build file names to $host format]) 79419f00f3a1SmrgAC_CACHE_VAL(lt_cv_to_host_file_cmd, 79429f00f3a1Smrg[case $host in 79439f00f3a1Smrg *-*-mingw* ) 79449f00f3a1Smrg case $build in 79459f00f3a1Smrg *-*-mingw* ) # actually msys 79469f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 79479f00f3a1Smrg ;; 79489f00f3a1Smrg *-*-cygwin* ) 79499f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 79509f00f3a1Smrg ;; 79519f00f3a1Smrg * ) # otherwise, assume *nix 79529f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 79539f00f3a1Smrg ;; 79549f00f3a1Smrg esac 79559f00f3a1Smrg ;; 79569f00f3a1Smrg *-*-cygwin* ) 79579f00f3a1Smrg case $build in 79589f00f3a1Smrg *-*-mingw* ) # actually msys 79599f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 79609f00f3a1Smrg ;; 79619f00f3a1Smrg *-*-cygwin* ) 79629f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_noop 79639f00f3a1Smrg ;; 79649f00f3a1Smrg * ) # otherwise, assume *nix 79659f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 79669f00f3a1Smrg ;; 79679f00f3a1Smrg esac 79689f00f3a1Smrg ;; 79699f00f3a1Smrg * ) # unhandled hosts (and "normal" native builds) 79709f00f3a1Smrg lt_cv_to_host_file_cmd=func_convert_file_noop 79719f00f3a1Smrg ;; 79729f00f3a1Smrgesac 79739f00f3a1Smrg]) 79749f00f3a1Smrgto_host_file_cmd=$lt_cv_to_host_file_cmd 79759f00f3a1SmrgAC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 79769f00f3a1Smrg_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 79779f00f3a1Smrg [0], [convert $build file names to $host format])dnl 79789f00f3a1Smrg 79799f00f3a1SmrgAC_MSG_CHECKING([how to convert $build file names to toolchain format]) 79809f00f3a1SmrgAC_CACHE_VAL(lt_cv_to_tool_file_cmd, 79819f00f3a1Smrg[#assume ordinary cross tools, or native build. 79829f00f3a1Smrglt_cv_to_tool_file_cmd=func_convert_file_noop 79839f00f3a1Smrgcase $host in 79849f00f3a1Smrg *-*-mingw* ) 79859f00f3a1Smrg case $build in 79869f00f3a1Smrg *-*-mingw* ) # actually msys 79879f00f3a1Smrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 79889f00f3a1Smrg ;; 79899f00f3a1Smrg esac 79909f00f3a1Smrg ;; 79919f00f3a1Smrgesac 79929f00f3a1Smrg]) 79939f00f3a1Smrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 79949f00f3a1SmrgAC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 79959f00f3a1Smrg_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 79969f00f3a1Smrg [0], [convert $build files to toolchain format])dnl 79979f00f3a1Smrg])# _LT_PATH_CONVERSION_FUNCTIONS 7998