10c674dbdSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 20c674dbdSmrg# 30c674dbdSmrg# Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software 40c674dbdSmrg# Foundation, Inc. 50c674dbdSmrg# Written by Gordon Matzigkeit, 1996 60c674dbdSmrg# 70c674dbdSmrg# This file is free software; the Free Software Foundation gives 80c674dbdSmrg# unlimited permission to copy and/or distribute it, with or without 90c674dbdSmrg# modifications, as long as this notice is preserved. 100c674dbdSmrg 110c674dbdSmrgm4_define([_LT_COPYING], [dnl 120c674dbdSmrg# Copyright (C) 2014 Free Software Foundation, Inc. 130c674dbdSmrg# This is free software; see the source for copying conditions. There is NO 140c674dbdSmrg# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 150c674dbdSmrg 160c674dbdSmrg# GNU Libtool is free software; you can redistribute it and/or modify 170c674dbdSmrg# it under the terms of the GNU General Public License as published by 180c674dbdSmrg# the Free Software Foundation; either version 2 of of the License, or 190c674dbdSmrg# (at your option) any later version. 200c674dbdSmrg# 210c674dbdSmrg# As a special exception to the GNU General Public License, if you 220c674dbdSmrg# distribute this file as part of a program or library that is built 230c674dbdSmrg# using GNU Libtool, you may include this file under the same 240c674dbdSmrg# distribution terms that you use for the rest of that program. 250c674dbdSmrg# 260c674dbdSmrg# GNU Libtool is distributed in the hope that it will be useful, but 270c674dbdSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 280c674dbdSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 290c674dbdSmrg# GNU General Public License for more details. 300c674dbdSmrg# 310c674dbdSmrg# You should have received a copy of the GNU General Public License 320c674dbdSmrg# along with this program. If not, see <http://www.gnu.org/licenses/>. 330c674dbdSmrg]) 340c674dbdSmrg 350c674dbdSmrg# serial 59 LT_INIT 360c674dbdSmrg 370c674dbdSmrg 380c674dbdSmrg# LT_PREREQ(VERSION) 390c674dbdSmrg# ------------------ 400c674dbdSmrg# Complain and exit if this libtool version is less that VERSION. 410c674dbdSmrgm4_defun([LT_PREREQ], 420c674dbdSmrg[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 430c674dbdSmrg [m4_default([$3], 440c674dbdSmrg [m4_fatal([Libtool version $1 or higher is required], 450c674dbdSmrg 63)])], 460c674dbdSmrg [$2])]) 470c674dbdSmrg 480c674dbdSmrg 490c674dbdSmrg# _LT_CHECK_BUILDDIR 500c674dbdSmrg# ------------------ 510c674dbdSmrg# Complain if the absolute build directory name contains unusual characters 520c674dbdSmrgm4_defun([_LT_CHECK_BUILDDIR], 530c674dbdSmrg[case `pwd` in 540c674dbdSmrg *\ * | *\ *) 550c674dbdSmrg AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 560c674dbdSmrgesac 570c674dbdSmrg]) 580c674dbdSmrg 590c674dbdSmrg 600c674dbdSmrg# LT_INIT([OPTIONS]) 610c674dbdSmrg# ------------------ 620c674dbdSmrgAC_DEFUN([LT_INIT], 630c674dbdSmrg[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 640c674dbdSmrgAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 650c674dbdSmrgAC_BEFORE([$0], [LT_LANG])dnl 660c674dbdSmrgAC_BEFORE([$0], [LT_OUTPUT])dnl 670c674dbdSmrgAC_BEFORE([$0], [LTDL_INIT])dnl 680c674dbdSmrgm4_require([_LT_CHECK_BUILDDIR])dnl 690c674dbdSmrg 700c674dbdSmrgdnl Autoconf doesn't catch unexpanded LT_ macros by default: 710c674dbdSmrgm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 720c674dbdSmrgm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 730c674dbdSmrgdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 740c674dbdSmrgdnl unless we require an AC_DEFUNed macro: 750c674dbdSmrgAC_REQUIRE([LTOPTIONS_VERSION])dnl 760c674dbdSmrgAC_REQUIRE([LTSUGAR_VERSION])dnl 770c674dbdSmrgAC_REQUIRE([LTVERSION_VERSION])dnl 780c674dbdSmrgAC_REQUIRE([LTOBSOLETE_VERSION])dnl 790c674dbdSmrgm4_require([_LT_PROG_LTMAIN])dnl 800c674dbdSmrg 810c674dbdSmrg_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 820c674dbdSmrg 830c674dbdSmrgdnl Parse OPTIONS 840c674dbdSmrg_LT_SET_OPTIONS([$0], [$1]) 850c674dbdSmrg 860c674dbdSmrg# This can be used to rebuild libtool when needed 870c674dbdSmrgLIBTOOL_DEPS=$ltmain 880c674dbdSmrg 890c674dbdSmrg# Always use our own libtool. 900c674dbdSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 910c674dbdSmrgAC_SUBST(LIBTOOL)dnl 920c674dbdSmrg 930c674dbdSmrg_LT_SETUP 940c674dbdSmrg 950c674dbdSmrg# Only expand once: 960c674dbdSmrgm4_define([LT_INIT]) 970c674dbdSmrg])# LT_INIT 980c674dbdSmrg 990c674dbdSmrg# Old names: 1000c674dbdSmrgAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 1010c674dbdSmrgAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 1020c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 1030c674dbdSmrgdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 1040c674dbdSmrgdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 1050c674dbdSmrg 1060c674dbdSmrg 1070c674dbdSmrg# _LT_PREPARE_CC_BASENAME 1080c674dbdSmrg# ----------------------- 1090c674dbdSmrgm4_defun([_LT_PREPARE_CC_BASENAME], [ 1100c674dbdSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 1110c674dbdSmrgfunc_cc_basename () 1120c674dbdSmrg{ 1130c674dbdSmrg for cc_temp in @S|@*""; do 1140c674dbdSmrg case $cc_temp in 1150c674dbdSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 1160c674dbdSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 1170c674dbdSmrg \-*) ;; 1180c674dbdSmrg *) break;; 1190c674dbdSmrg esac 1200c674dbdSmrg done 1210c674dbdSmrg func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 1220c674dbdSmrg} 1230c674dbdSmrg])# _LT_PREPARE_CC_BASENAME 1240c674dbdSmrg 1250c674dbdSmrg 1260c674dbdSmrg# _LT_CC_BASENAME(CC) 1270c674dbdSmrg# ------------------- 1280c674dbdSmrg# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 1290c674dbdSmrg# but that macro is also expanded into generated libtool script, which 1300c674dbdSmrg# arranges for $SED and $ECHO to be set by different means. 1310c674dbdSmrgm4_defun([_LT_CC_BASENAME], 1320c674dbdSmrg[m4_require([_LT_PREPARE_CC_BASENAME])dnl 1330c674dbdSmrgAC_REQUIRE([_LT_DECL_SED])dnl 1340c674dbdSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1350c674dbdSmrgfunc_cc_basename $1 1360c674dbdSmrgcc_basename=$func_cc_basename_result 1370c674dbdSmrg]) 1380c674dbdSmrg 1390c674dbdSmrg 1400c674dbdSmrg# _LT_FILEUTILS_DEFAULTS 1410c674dbdSmrg# ---------------------- 1420c674dbdSmrg# It is okay to use these file commands and assume they have been set 1430c674dbdSmrg# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 1440c674dbdSmrgm4_defun([_LT_FILEUTILS_DEFAULTS], 1450c674dbdSmrg[: ${CP="cp -f"} 1460c674dbdSmrg: ${MV="mv -f"} 1470c674dbdSmrg: ${RM="rm -f"} 1480c674dbdSmrg])# _LT_FILEUTILS_DEFAULTS 1490c674dbdSmrg 1500c674dbdSmrg 1510c674dbdSmrg# _LT_SETUP 1520c674dbdSmrg# --------- 1530c674dbdSmrgm4_defun([_LT_SETUP], 1540c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1550c674dbdSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1560c674dbdSmrgAC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 1570c674dbdSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 1580c674dbdSmrg 1590c674dbdSmrg_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 1600c674dbdSmrgdnl 1610c674dbdSmrg_LT_DECL([], [host_alias], [0], [The host system])dnl 1620c674dbdSmrg_LT_DECL([], [host], [0])dnl 1630c674dbdSmrg_LT_DECL([], [host_os], [0])dnl 1640c674dbdSmrgdnl 1650c674dbdSmrg_LT_DECL([], [build_alias], [0], [The build system])dnl 1660c674dbdSmrg_LT_DECL([], [build], [0])dnl 1670c674dbdSmrg_LT_DECL([], [build_os], [0])dnl 1680c674dbdSmrgdnl 1690c674dbdSmrgAC_REQUIRE([AC_PROG_CC])dnl 1700c674dbdSmrgAC_REQUIRE([LT_PATH_LD])dnl 1710c674dbdSmrgAC_REQUIRE([LT_PATH_NM])dnl 1720c674dbdSmrgdnl 1730c674dbdSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1740c674dbdSmrgtest -z "$LN_S" && LN_S="ln -s" 1750c674dbdSmrg_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 1760c674dbdSmrgdnl 1770c674dbdSmrgAC_REQUIRE([LT_CMD_MAX_LEN])dnl 1780c674dbdSmrg_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 1790c674dbdSmrg_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 1800c674dbdSmrgdnl 1810c674dbdSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1820c674dbdSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 1830c674dbdSmrgm4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 1840c674dbdSmrgm4_require([_LT_CMD_RELOAD])dnl 1850c674dbdSmrgm4_require([_LT_DECL_FILECMD])dnl 1860c674dbdSmrgm4_require([_LT_CHECK_MAGIC_METHOD])dnl 1870c674dbdSmrgm4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 1880c674dbdSmrgm4_require([_LT_CMD_OLD_ARCHIVE])dnl 1890c674dbdSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 1900c674dbdSmrgm4_require([_LT_WITH_SYSROOT])dnl 1910c674dbdSmrgm4_require([_LT_CMD_TRUNCATE])dnl 1920c674dbdSmrg 1930c674dbdSmrg_LT_CONFIG_LIBTOOL_INIT([ 1940c674dbdSmrg# See if we are running on zsh, and set the options that allow our 1950c674dbdSmrg# commands through without removal of \ escapes INIT. 1960c674dbdSmrgif test -n "\${ZSH_VERSION+set}"; then 1970c674dbdSmrg setopt NO_GLOB_SUBST 1980c674dbdSmrgfi 1990c674dbdSmrg]) 2000c674dbdSmrgif test -n "${ZSH_VERSION+set}"; then 2010c674dbdSmrg setopt NO_GLOB_SUBST 2020c674dbdSmrgfi 2030c674dbdSmrg 2040c674dbdSmrg_LT_CHECK_OBJDIR 2050c674dbdSmrg 2060c674dbdSmrgm4_require([_LT_TAG_COMPILER])dnl 2070c674dbdSmrg 2080c674dbdSmrgcase $host_os in 2090c674dbdSmrgaix3*) 2100c674dbdSmrg # AIX sometimes has problems with the GCC collect2 program. For some 2110c674dbdSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 2120c674dbdSmrg # vanish in a puff of smoke. 2130c674dbdSmrg if test set != "${COLLECT_NAMES+set}"; then 2140c674dbdSmrg COLLECT_NAMES= 2150c674dbdSmrg export COLLECT_NAMES 2160c674dbdSmrg fi 2170c674dbdSmrg ;; 2180c674dbdSmrgesac 2190c674dbdSmrg 2200c674dbdSmrg# Global variables: 2210c674dbdSmrgofile=libtool 2220c674dbdSmrgcan_build_shared=yes 2230c674dbdSmrg 2240c674dbdSmrg# All known linkers require a '.a' archive for static linking (except MSVC and 2250c674dbdSmrg# ICC, which need '.lib'). 2260c674dbdSmrglibext=a 2270c674dbdSmrg 2280c674dbdSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 2290c674dbdSmrg 2300c674dbdSmrgold_CC=$CC 2310c674dbdSmrgold_CFLAGS=$CFLAGS 2320c674dbdSmrg 2330c674dbdSmrg# Set sane defaults for various variables 2340c674dbdSmrgtest -z "$CC" && CC=cc 2350c674dbdSmrgtest -z "$LTCC" && LTCC=$CC 2360c674dbdSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 2370c674dbdSmrgtest -z "$LD" && LD=ld 2380c674dbdSmrgtest -z "$ac_objext" && ac_objext=o 2390c674dbdSmrg 2400c674dbdSmrg_LT_CC_BASENAME([$compiler]) 2410c674dbdSmrg 2420c674dbdSmrg# Only perform the check for file, if the check method requires it 2430c674dbdSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 2440c674dbdSmrgcase $deplibs_check_method in 2450c674dbdSmrgfile_magic*) 2460c674dbdSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2470c674dbdSmrg _LT_PATH_MAGIC 2480c674dbdSmrg fi 2490c674dbdSmrg ;; 2500c674dbdSmrgesac 2510c674dbdSmrg 2520c674dbdSmrg# Use C for the default configuration in the libtool script 2530c674dbdSmrgLT_SUPPORTED_TAG([CC]) 2540c674dbdSmrg_LT_LANG_C_CONFIG 2550c674dbdSmrg_LT_LANG_DEFAULT_CONFIG 2560c674dbdSmrg_LT_CONFIG_COMMANDS 2570c674dbdSmrg])# _LT_SETUP 2580c674dbdSmrg 2590c674dbdSmrg 2600c674dbdSmrg# _LT_PREPARE_SED_QUOTE_VARS 2610c674dbdSmrg# -------------------------- 2620c674dbdSmrg# Define a few sed substitution that help us do robust quoting. 2630c674dbdSmrgm4_defun([_LT_PREPARE_SED_QUOTE_VARS], 2640c674dbdSmrg[# Backslashify metacharacters that are still active within 2650c674dbdSmrg# double-quoted strings. 2660c674dbdSmrgsed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 2670c674dbdSmrg 2680c674dbdSmrg# Same as above, but do not quote variable references. 2690c674dbdSmrgdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 2700c674dbdSmrg 2710c674dbdSmrg# Sed substitution to delay expansion of an escaped shell variable in a 2720c674dbdSmrg# double_quote_subst'ed string. 2730c674dbdSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2740c674dbdSmrg 2750c674dbdSmrg# Sed substitution to delay expansion of an escaped single quote. 2760c674dbdSmrgdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2770c674dbdSmrg 2780c674dbdSmrg# Sed substitution to avoid accidental globbing in evaled expressions 2790c674dbdSmrgno_glob_subst='s/\*/\\\*/g' 2800c674dbdSmrg]) 2810c674dbdSmrg 2820c674dbdSmrg# _LT_PROG_LTMAIN 2830c674dbdSmrg# --------------- 2840c674dbdSmrg# Note that this code is called both from 'configure', and 'config.status' 2850c674dbdSmrg# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 2860c674dbdSmrg# 'config.status' has no value for ac_aux_dir unless we are using Automake, 2870c674dbdSmrg# so we pass a copy along to make sure it has a sensible value anyway. 2880c674dbdSmrgm4_defun([_LT_PROG_LTMAIN], 2890c674dbdSmrg[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 2900c674dbdSmrg_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 2910c674dbdSmrgltmain=$ac_aux_dir/ltmain.sh 2920c674dbdSmrg])# _LT_PROG_LTMAIN 2930c674dbdSmrg 2940c674dbdSmrg 2950c674dbdSmrg## ------------------------------------- ## 2960c674dbdSmrg## Accumulate code for creating libtool. ## 2970c674dbdSmrg## ------------------------------------- ## 2980c674dbdSmrg 2990c674dbdSmrg# So that we can recreate a full libtool script including additional 3000c674dbdSmrg# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 3010c674dbdSmrg# in macros and then make a single call at the end using the 'libtool' 3020c674dbdSmrg# label. 3030c674dbdSmrg 3040c674dbdSmrg 3050c674dbdSmrg# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 3060c674dbdSmrg# ---------------------------------------- 3070c674dbdSmrg# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3080c674dbdSmrgm4_define([_LT_CONFIG_LIBTOOL_INIT], 3090c674dbdSmrg[m4_ifval([$1], 3100c674dbdSmrg [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 3110c674dbdSmrg [$1 3120c674dbdSmrg])])]) 3130c674dbdSmrg 3140c674dbdSmrg# Initialize. 3150c674dbdSmrgm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 3160c674dbdSmrg 3170c674dbdSmrg 3180c674dbdSmrg# _LT_CONFIG_LIBTOOL([COMMANDS]) 3190c674dbdSmrg# ------------------------------ 3200c674dbdSmrg# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 3210c674dbdSmrgm4_define([_LT_CONFIG_LIBTOOL], 3220c674dbdSmrg[m4_ifval([$1], 3230c674dbdSmrg [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 3240c674dbdSmrg [$1 3250c674dbdSmrg])])]) 3260c674dbdSmrg 3270c674dbdSmrg# Initialize. 3280c674dbdSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 3290c674dbdSmrg 3300c674dbdSmrg 3310c674dbdSmrg# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 3320c674dbdSmrg# ----------------------------------------------------- 3330c674dbdSmrgm4_defun([_LT_CONFIG_SAVE_COMMANDS], 3340c674dbdSmrg[_LT_CONFIG_LIBTOOL([$1]) 3350c674dbdSmrg_LT_CONFIG_LIBTOOL_INIT([$2]) 3360c674dbdSmrg]) 3370c674dbdSmrg 3380c674dbdSmrg 3390c674dbdSmrg# _LT_FORMAT_COMMENT([COMMENT]) 3400c674dbdSmrg# ----------------------------- 3410c674dbdSmrg# Add leading comment marks to the start of each line, and a trailing 3420c674dbdSmrg# full-stop to the whole comment if one is not present already. 3430c674dbdSmrgm4_define([_LT_FORMAT_COMMENT], 3440c674dbdSmrg[m4_ifval([$1], [ 3450c674dbdSmrgm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 3460c674dbdSmrg [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 3470c674dbdSmrg)]) 3480c674dbdSmrg 3490c674dbdSmrg 3500c674dbdSmrg 3510c674dbdSmrg## ------------------------ ## 3520c674dbdSmrg## FIXME: Eliminate VARNAME ## 3530c674dbdSmrg## ------------------------ ## 3540c674dbdSmrg 3550c674dbdSmrg 3560c674dbdSmrg# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 3570c674dbdSmrg# ------------------------------------------------------------------- 3580c674dbdSmrg# CONFIGNAME is the name given to the value in the libtool script. 3590c674dbdSmrg# VARNAME is the (base) name used in the configure script. 3600c674dbdSmrg# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 3610c674dbdSmrg# VARNAME. Any other value will be used directly. 3620c674dbdSmrgm4_define([_LT_DECL], 3630c674dbdSmrg[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 3640c674dbdSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 3650c674dbdSmrg [m4_ifval([$1], [$1], [$2])]) 3660c674dbdSmrg lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 3670c674dbdSmrg m4_ifval([$4], 3680c674dbdSmrg [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 3690c674dbdSmrg lt_dict_add_subkey([lt_decl_dict], [$2], 3700c674dbdSmrg [tagged?], [m4_ifval([$5], [yes], [no])])]) 3710c674dbdSmrg]) 3720c674dbdSmrg 3730c674dbdSmrg 3740c674dbdSmrg# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 3750c674dbdSmrg# -------------------------------------------------------- 3760c674dbdSmrgm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 3770c674dbdSmrg 3780c674dbdSmrg 3790c674dbdSmrg# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 3800c674dbdSmrg# ------------------------------------------------ 3810c674dbdSmrgm4_define([lt_decl_tag_varnames], 3820c674dbdSmrg[_lt_decl_filter([tagged?], [yes], $@)]) 3830c674dbdSmrg 3840c674dbdSmrg 3850c674dbdSmrg# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 3860c674dbdSmrg# --------------------------------------------------------- 3870c674dbdSmrgm4_define([_lt_decl_filter], 3880c674dbdSmrg[m4_case([$#], 3890c674dbdSmrg [0], [m4_fatal([$0: too few arguments: $#])], 3900c674dbdSmrg [1], [m4_fatal([$0: too few arguments: $#: $1])], 3910c674dbdSmrg [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 3920c674dbdSmrg [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 3930c674dbdSmrg [lt_dict_filter([lt_decl_dict], $@)])[]dnl 3940c674dbdSmrg]) 3950c674dbdSmrg 3960c674dbdSmrg 3970c674dbdSmrg# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 3980c674dbdSmrg# -------------------------------------------------- 3990c674dbdSmrgm4_define([lt_decl_quote_varnames], 4000c674dbdSmrg[_lt_decl_filter([value], [1], $@)]) 4010c674dbdSmrg 4020c674dbdSmrg 4030c674dbdSmrg# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 4040c674dbdSmrg# --------------------------------------------------- 4050c674dbdSmrgm4_define([lt_decl_dquote_varnames], 4060c674dbdSmrg[_lt_decl_filter([value], [2], $@)]) 4070c674dbdSmrg 4080c674dbdSmrg 4090c674dbdSmrg# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 4100c674dbdSmrg# --------------------------------------------------- 4110c674dbdSmrgm4_define([lt_decl_varnames_tagged], 4120c674dbdSmrg[m4_assert([$# <= 2])dnl 4130c674dbdSmrg_$0(m4_quote(m4_default([$1], [[, ]])), 4140c674dbdSmrg m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 4150c674dbdSmrg m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 4160c674dbdSmrgm4_define([_lt_decl_varnames_tagged], 4170c674dbdSmrg[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 4180c674dbdSmrg 4190c674dbdSmrg 4200c674dbdSmrg# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 4210c674dbdSmrg# ------------------------------------------------ 4220c674dbdSmrgm4_define([lt_decl_all_varnames], 4230c674dbdSmrg[_$0(m4_quote(m4_default([$1], [[, ]])), 4240c674dbdSmrg m4_if([$2], [], 4250c674dbdSmrg m4_quote(lt_decl_varnames), 4260c674dbdSmrg m4_quote(m4_shift($@))))[]dnl 4270c674dbdSmrg]) 4280c674dbdSmrgm4_define([_lt_decl_all_varnames], 4290c674dbdSmrg[lt_join($@, lt_decl_varnames_tagged([$1], 4300c674dbdSmrg lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 4310c674dbdSmrg]) 4320c674dbdSmrg 4330c674dbdSmrg 4340c674dbdSmrg# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 4350c674dbdSmrg# ------------------------------------ 4360c674dbdSmrg# Quote a variable value, and forward it to 'config.status' so that its 4370c674dbdSmrg# declaration there will have the same value as in 'configure'. VARNAME 4380c674dbdSmrg# must have a single quote delimited value for this to work. 4390c674dbdSmrgm4_define([_LT_CONFIG_STATUS_DECLARE], 4400c674dbdSmrg[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 4410c674dbdSmrg 4420c674dbdSmrg 4430c674dbdSmrg# _LT_CONFIG_STATUS_DECLARATIONS 4440c674dbdSmrg# ------------------------------ 4450c674dbdSmrg# We delimit libtool config variables with single quotes, so when 4460c674dbdSmrg# we write them to config.status, we have to be sure to quote all 4470c674dbdSmrg# embedded single quotes properly. In configure, this macro expands 4480c674dbdSmrg# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 4490c674dbdSmrg# 4500c674dbdSmrg# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 4510c674dbdSmrgm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 4520c674dbdSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 4530c674dbdSmrg [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 4540c674dbdSmrg 4550c674dbdSmrg 4560c674dbdSmrg# _LT_LIBTOOL_TAGS 4570c674dbdSmrg# ---------------- 4580c674dbdSmrg# Output comment and list of tags supported by the script 4590c674dbdSmrgm4_defun([_LT_LIBTOOL_TAGS], 4600c674dbdSmrg[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 4610c674dbdSmrgavailable_tags='_LT_TAGS'dnl 4620c674dbdSmrg]) 4630c674dbdSmrg 4640c674dbdSmrg 4650c674dbdSmrg# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 4660c674dbdSmrg# ----------------------------------- 4670c674dbdSmrg# Extract the dictionary values for VARNAME (optionally with TAG) and 4680c674dbdSmrg# expand to a commented shell variable setting: 4690c674dbdSmrg# 4700c674dbdSmrg# # Some comment about what VAR is for. 4710c674dbdSmrg# visible_name=$lt_internal_name 4720c674dbdSmrgm4_define([_LT_LIBTOOL_DECLARE], 4730c674dbdSmrg[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 4740c674dbdSmrg [description])))[]dnl 4750c674dbdSmrgm4_pushdef([_libtool_name], 4760c674dbdSmrg m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 4770c674dbdSmrgm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 4780c674dbdSmrg [0], [_libtool_name=[$]$1], 4790c674dbdSmrg [1], [_libtool_name=$lt_[]$1], 4800c674dbdSmrg [2], [_libtool_name=$lt_[]$1], 4810c674dbdSmrg [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 4820c674dbdSmrgm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 4830c674dbdSmrg]) 4840c674dbdSmrg 4850c674dbdSmrg 4860c674dbdSmrg# _LT_LIBTOOL_CONFIG_VARS 4870c674dbdSmrg# ----------------------- 4880c674dbdSmrg# Produce commented declarations of non-tagged libtool config variables 4890c674dbdSmrg# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 4900c674dbdSmrg# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 4910c674dbdSmrg# section) are produced by _LT_LIBTOOL_TAG_VARS. 4920c674dbdSmrgm4_defun([_LT_LIBTOOL_CONFIG_VARS], 4930c674dbdSmrg[m4_foreach([_lt_var], 4940c674dbdSmrg m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 4950c674dbdSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 4960c674dbdSmrg 4970c674dbdSmrg 4980c674dbdSmrg# _LT_LIBTOOL_TAG_VARS(TAG) 4990c674dbdSmrg# ------------------------- 5000c674dbdSmrgm4_define([_LT_LIBTOOL_TAG_VARS], 5010c674dbdSmrg[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 5020c674dbdSmrg [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 5030c674dbdSmrg 5040c674dbdSmrg 5050c674dbdSmrg# _LT_TAGVAR(VARNAME, [TAGNAME]) 5060c674dbdSmrg# ------------------------------ 5070c674dbdSmrgm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 5080c674dbdSmrg 5090c674dbdSmrg 5100c674dbdSmrg# _LT_CONFIG_COMMANDS 5110c674dbdSmrg# ------------------- 5120c674dbdSmrg# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 5130c674dbdSmrg# variables for single and double quote escaping we saved from calls 5140c674dbdSmrg# to _LT_DECL, we can put quote escaped variables declarations 5150c674dbdSmrg# into 'config.status', and then the shell code to quote escape them in 5160c674dbdSmrg# for loops in 'config.status'. Finally, any additional code accumulated 5170c674dbdSmrg# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 5180c674dbdSmrgm4_defun([_LT_CONFIG_COMMANDS], 5190c674dbdSmrg[AC_PROVIDE_IFELSE([LT_OUTPUT], 5200c674dbdSmrg dnl If the libtool generation code has been placed in $CONFIG_LT, 5210c674dbdSmrg dnl instead of duplicating it all over again into config.status, 5220c674dbdSmrg dnl then we will have config.status run $CONFIG_LT later, so it 5230c674dbdSmrg dnl needs to know what name is stored there: 5240c674dbdSmrg [AC_CONFIG_COMMANDS([libtool], 5250c674dbdSmrg [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 5260c674dbdSmrg dnl If the libtool generation code is destined for config.status, 5270c674dbdSmrg dnl expand the accumulated commands and init code now: 5280c674dbdSmrg [AC_CONFIG_COMMANDS([libtool], 5290c674dbdSmrg [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 5300c674dbdSmrg])#_LT_CONFIG_COMMANDS 5310c674dbdSmrg 5320c674dbdSmrg 5330c674dbdSmrg# Initialize. 5340c674dbdSmrgm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 5350c674dbdSmrg[ 5360c674dbdSmrg 5370c674dbdSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 5380c674dbdSmrg# if CDPATH is set. 5390c674dbdSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5400c674dbdSmrg 5410c674dbdSmrgsed_quote_subst='$sed_quote_subst' 5420c674dbdSmrgdouble_quote_subst='$double_quote_subst' 5430c674dbdSmrgdelay_variable_subst='$delay_variable_subst' 5440c674dbdSmrg_LT_CONFIG_STATUS_DECLARATIONS 5450c674dbdSmrgLTCC='$LTCC' 5460c674dbdSmrgLTCFLAGS='$LTCFLAGS' 5470c674dbdSmrgcompiler='$compiler_DEFAULT' 5480c674dbdSmrg 5490c674dbdSmrg# A function that is used when there is no print builtin or printf. 5500c674dbdSmrgfunc_fallback_echo () 5510c674dbdSmrg{ 5520c674dbdSmrg eval 'cat <<_LTECHO_EOF 5530c674dbdSmrg\$[]1 5540c674dbdSmrg_LTECHO_EOF' 5550c674dbdSmrg} 5560c674dbdSmrg 5570c674dbdSmrg# Quote evaled strings. 5580c674dbdSmrgfor var in lt_decl_all_varnames([[ \ 5590c674dbdSmrg]], lt_decl_quote_varnames); do 5600c674dbdSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 5610c674dbdSmrg *[[\\\\\\\`\\"\\\$]]*) 5620c674dbdSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 5630c674dbdSmrg ;; 5640c674dbdSmrg *) 5650c674dbdSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5660c674dbdSmrg ;; 5670c674dbdSmrg esac 5680c674dbdSmrgdone 5690c674dbdSmrg 5700c674dbdSmrg# Double-quote double-evaled strings. 5710c674dbdSmrgfor var in lt_decl_all_varnames([[ \ 5720c674dbdSmrg]], lt_decl_dquote_varnames); do 5730c674dbdSmrg case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 5740c674dbdSmrg *[[\\\\\\\`\\"\\\$]]*) 5750c674dbdSmrg eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 5760c674dbdSmrg ;; 5770c674dbdSmrg *) 5780c674dbdSmrg eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 5790c674dbdSmrg ;; 5800c674dbdSmrg esac 5810c674dbdSmrgdone 5820c674dbdSmrg 5830c674dbdSmrg_LT_OUTPUT_LIBTOOL_INIT 5840c674dbdSmrg]) 5850c674dbdSmrg 5860c674dbdSmrg# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 5870c674dbdSmrg# ------------------------------------ 5880c674dbdSmrg# Generate a child script FILE with all initialization necessary to 5890c674dbdSmrg# reuse the environment learned by the parent script, and make the 5900c674dbdSmrg# file executable. If COMMENT is supplied, it is inserted after the 5910c674dbdSmrg# '#!' sequence but before initialization text begins. After this 5920c674dbdSmrg# macro, additional text can be appended to FILE to form the body of 5930c674dbdSmrg# the child script. The macro ends with non-zero status if the 5940c674dbdSmrg# file could not be fully written (such as if the disk is full). 5950c674dbdSmrgm4_ifdef([AS_INIT_GENERATED], 5960c674dbdSmrg[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 5970c674dbdSmrg[m4_defun([_LT_GENERATED_FILE_INIT], 5980c674dbdSmrg[m4_require([AS_PREPARE])]dnl 5990c674dbdSmrg[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 6000c674dbdSmrg[lt_write_fail=0 6010c674dbdSmrgcat >$1 <<_ASEOF || lt_write_fail=1 6020c674dbdSmrg#! $SHELL 6030c674dbdSmrg# Generated by $as_me. 6040c674dbdSmrg$2 6050c674dbdSmrgSHELL=\${CONFIG_SHELL-$SHELL} 6060c674dbdSmrgexport SHELL 6070c674dbdSmrg_ASEOF 6080c674dbdSmrgcat >>$1 <<\_ASEOF || lt_write_fail=1 6090c674dbdSmrgAS_SHELL_SANITIZE 6100c674dbdSmrg_AS_PREPARE 6110c674dbdSmrgexec AS_MESSAGE_FD>&1 6120c674dbdSmrg_ASEOF 6130c674dbdSmrgtest 0 = "$lt_write_fail" && chmod +x $1[]dnl 6140c674dbdSmrgm4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 6150c674dbdSmrg 6160c674dbdSmrg# LT_OUTPUT 6170c674dbdSmrg# --------- 6180c674dbdSmrg# This macro allows early generation of the libtool script (before 6190c674dbdSmrg# AC_OUTPUT is called), incase it is used in configure for compilation 6200c674dbdSmrg# tests. 6210c674dbdSmrgAC_DEFUN([LT_OUTPUT], 6220c674dbdSmrg[: ${CONFIG_LT=./config.lt} 6230c674dbdSmrgAC_MSG_NOTICE([creating $CONFIG_LT]) 6240c674dbdSmrg_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 6250c674dbdSmrg[# Run this file to recreate a libtool stub with the current configuration.]) 6260c674dbdSmrg 6270c674dbdSmrgcat >>"$CONFIG_LT" <<\_LTEOF 6280c674dbdSmrglt_cl_silent=false 6290c674dbdSmrgexec AS_MESSAGE_LOG_FD>>config.log 6300c674dbdSmrg{ 6310c674dbdSmrg echo 6320c674dbdSmrg AS_BOX([Running $as_me.]) 6330c674dbdSmrg} >&AS_MESSAGE_LOG_FD 6340c674dbdSmrg 6350c674dbdSmrglt_cl_help="\ 6360c674dbdSmrg'$as_me' creates a local libtool stub from the current configuration, 6370c674dbdSmrgfor use in further configure time tests before the real libtool is 6380c674dbdSmrggenerated. 6390c674dbdSmrg 6400c674dbdSmrgUsage: $[0] [[OPTIONS]] 6410c674dbdSmrg 6420c674dbdSmrg -h, --help print this help, then exit 6430c674dbdSmrg -V, --version print version number, then exit 6440c674dbdSmrg -q, --quiet do not print progress messages 6450c674dbdSmrg -d, --debug don't remove temporary files 6460c674dbdSmrg 6470c674dbdSmrgReport bugs to <bug-libtool@gnu.org>." 6480c674dbdSmrg 6490c674dbdSmrglt_cl_version="\ 6500c674dbdSmrgm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 6510c674dbdSmrgm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 6520c674dbdSmrgconfigured by $[0], generated by m4_PACKAGE_STRING. 6530c674dbdSmrg 6540c674dbdSmrgCopyright (C) 2011 Free Software Foundation, Inc. 6550c674dbdSmrgThis config.lt script is free software; the Free Software Foundation 6560c674dbdSmrggives unlimited permision to copy, distribute and modify it." 6570c674dbdSmrg 6580c674dbdSmrgwhile test 0 != $[#] 6590c674dbdSmrgdo 6600c674dbdSmrg case $[1] in 6610c674dbdSmrg --version | --v* | -V ) 6620c674dbdSmrg echo "$lt_cl_version"; exit 0 ;; 6630c674dbdSmrg --help | --h* | -h ) 6640c674dbdSmrg echo "$lt_cl_help"; exit 0 ;; 6650c674dbdSmrg --debug | --d* | -d ) 6660c674dbdSmrg debug=: ;; 6670c674dbdSmrg --quiet | --q* | --silent | --s* | -q ) 6680c674dbdSmrg lt_cl_silent=: ;; 6690c674dbdSmrg 6700c674dbdSmrg -*) AC_MSG_ERROR([unrecognized option: $[1] 6710c674dbdSmrgTry '$[0] --help' for more information.]) ;; 6720c674dbdSmrg 6730c674dbdSmrg *) AC_MSG_ERROR([unrecognized argument: $[1] 6740c674dbdSmrgTry '$[0] --help' for more information.]) ;; 6750c674dbdSmrg esac 6760c674dbdSmrg shift 6770c674dbdSmrgdone 6780c674dbdSmrg 6790c674dbdSmrgif $lt_cl_silent; then 6800c674dbdSmrg exec AS_MESSAGE_FD>/dev/null 6810c674dbdSmrgfi 6820c674dbdSmrg_LTEOF 6830c674dbdSmrg 6840c674dbdSmrgcat >>"$CONFIG_LT" <<_LTEOF 6850c674dbdSmrg_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 6860c674dbdSmrg_LTEOF 6870c674dbdSmrg 6880c674dbdSmrgcat >>"$CONFIG_LT" <<\_LTEOF 6890c674dbdSmrgAC_MSG_NOTICE([creating $ofile]) 6900c674dbdSmrg_LT_OUTPUT_LIBTOOL_COMMANDS 6910c674dbdSmrgAS_EXIT(0) 6920c674dbdSmrg_LTEOF 6930c674dbdSmrgchmod +x "$CONFIG_LT" 6940c674dbdSmrg 6950c674dbdSmrg# configure is writing to config.log, but config.lt does its own redirection, 6960c674dbdSmrg# appending to config.log, which fails on DOS, as config.log is still kept 6970c674dbdSmrg# open by configure. Here we exec the FD to /dev/null, effectively closing 6980c674dbdSmrg# config.log, so it can be properly (re)opened and appended to by config.lt. 6990c674dbdSmrglt_cl_success=: 7000c674dbdSmrgtest yes = "$silent" && 7010c674dbdSmrg lt_config_lt_args="$lt_config_lt_args --quiet" 7020c674dbdSmrgexec AS_MESSAGE_LOG_FD>/dev/null 7030c674dbdSmrg$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 7040c674dbdSmrgexec AS_MESSAGE_LOG_FD>>config.log 7050c674dbdSmrg$lt_cl_success || AS_EXIT(1) 7060c674dbdSmrg])# LT_OUTPUT 7070c674dbdSmrg 7080c674dbdSmrg 7090c674dbdSmrg# _LT_CONFIG(TAG) 7100c674dbdSmrg# --------------- 7110c674dbdSmrg# If TAG is the built-in tag, create an initial libtool script with a 7120c674dbdSmrg# default configuration from the untagged config vars. Otherwise add code 7130c674dbdSmrg# to config.status for appending the configuration named by TAG from the 7140c674dbdSmrg# matching tagged config vars. 7150c674dbdSmrgm4_defun([_LT_CONFIG], 7160c674dbdSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7170c674dbdSmrg_LT_CONFIG_SAVE_COMMANDS([ 7180c674dbdSmrg m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 7190c674dbdSmrg m4_if(_LT_TAG, [C], [ 7200c674dbdSmrg # See if we are running on zsh, and set the options that allow our 7210c674dbdSmrg # commands through without removal of \ escapes. 7220c674dbdSmrg if test -n "${ZSH_VERSION+set}"; then 7230c674dbdSmrg setopt NO_GLOB_SUBST 7240c674dbdSmrg fi 7250c674dbdSmrg 7260c674dbdSmrg cfgfile=${ofile}T 7270c674dbdSmrg trap "$RM \"$cfgfile\"; exit 1" 1 2 15 7280c674dbdSmrg $RM "$cfgfile" 7290c674dbdSmrg 7300c674dbdSmrg cat <<_LT_EOF >> "$cfgfile" 7310c674dbdSmrg#! $SHELL 7320c674dbdSmrg# Generated automatically by $as_me ($PACKAGE) $VERSION 7330c674dbdSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7340c674dbdSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7350c674dbdSmrg 7360c674dbdSmrg# Provide generalized library-building support services. 7370c674dbdSmrg# Written by Gordon Matzigkeit, 1996 7380c674dbdSmrg 7390c674dbdSmrg_LT_COPYING 7400c674dbdSmrg_LT_LIBTOOL_TAGS 7410c674dbdSmrg 7420c674dbdSmrg# Configured defaults for sys_lib_dlsearch_path munging. 7430c674dbdSmrg: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 7440c674dbdSmrg 7450c674dbdSmrg# ### BEGIN LIBTOOL CONFIG 7460c674dbdSmrg_LT_LIBTOOL_CONFIG_VARS 7470c674dbdSmrg_LT_LIBTOOL_TAG_VARS 7480c674dbdSmrg# ### END LIBTOOL CONFIG 7490c674dbdSmrg 7500c674dbdSmrg_LT_EOF 7510c674dbdSmrg 7520c674dbdSmrg cat <<'_LT_EOF' >> "$cfgfile" 7530c674dbdSmrg 7540c674dbdSmrg# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 7550c674dbdSmrg 7560c674dbdSmrg_LT_PREPARE_MUNGE_PATH_LIST 7570c674dbdSmrg_LT_PREPARE_CC_BASENAME 7580c674dbdSmrg 7590c674dbdSmrg# ### END FUNCTIONS SHARED WITH CONFIGURE 7600c674dbdSmrg 7610c674dbdSmrg_LT_EOF 7620c674dbdSmrg 7630c674dbdSmrg case $host_os in 7640c674dbdSmrg aix3*) 7650c674dbdSmrg cat <<\_LT_EOF >> "$cfgfile" 7660c674dbdSmrg# AIX sometimes has problems with the GCC collect2 program. For some 7670c674dbdSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 7680c674dbdSmrg# vanish in a puff of smoke. 7690c674dbdSmrgif test set != "${COLLECT_NAMES+set}"; then 7700c674dbdSmrg COLLECT_NAMES= 7710c674dbdSmrg export COLLECT_NAMES 7720c674dbdSmrgfi 7730c674dbdSmrg_LT_EOF 7740c674dbdSmrg ;; 7750c674dbdSmrg esac 7760c674dbdSmrg 7770c674dbdSmrg _LT_PROG_LTMAIN 7780c674dbdSmrg 7790c674dbdSmrg # We use sed instead of cat because bash on DJGPP gets confused if 7800c674dbdSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 7810c674dbdSmrg # text mode, it properly converts lines to CR/LF. This bash problem 7820c674dbdSmrg # is reportedly fixed, but why not run on old versions too? 7830c674dbdSmrg $SED '$q' "$ltmain" >> "$cfgfile" \ 7840c674dbdSmrg || (rm -f "$cfgfile"; exit 1) 7850c674dbdSmrg 7860c674dbdSmrg mv -f "$cfgfile" "$ofile" || 7870c674dbdSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 7880c674dbdSmrg chmod +x "$ofile" 7890c674dbdSmrg], 7900c674dbdSmrg[cat <<_LT_EOF >> "$ofile" 7910c674dbdSmrg 7920c674dbdSmrgdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 7930c674dbdSmrgdnl in a comment (ie after a #). 7940c674dbdSmrg# ### BEGIN LIBTOOL TAG CONFIG: $1 7950c674dbdSmrg_LT_LIBTOOL_TAG_VARS(_LT_TAG) 7960c674dbdSmrg# ### END LIBTOOL TAG CONFIG: $1 7970c674dbdSmrg_LT_EOF 7980c674dbdSmrg])dnl /m4_if 7990c674dbdSmrg], 8000c674dbdSmrg[m4_if([$1], [], [ 8010c674dbdSmrg PACKAGE='$PACKAGE' 8020c674dbdSmrg VERSION='$VERSION' 8030c674dbdSmrg RM='$RM' 8040c674dbdSmrg ofile='$ofile'], []) 8050c674dbdSmrg])dnl /_LT_CONFIG_SAVE_COMMANDS 8060c674dbdSmrg])# _LT_CONFIG 8070c674dbdSmrg 8080c674dbdSmrg 8090c674dbdSmrg# LT_SUPPORTED_TAG(TAG) 8100c674dbdSmrg# --------------------- 8110c674dbdSmrg# Trace this macro to discover what tags are supported by the libtool 8120c674dbdSmrg# --tag option, using: 8130c674dbdSmrg# autoconf --trace 'LT_SUPPORTED_TAG:$1' 8140c674dbdSmrgAC_DEFUN([LT_SUPPORTED_TAG], []) 8150c674dbdSmrg 8160c674dbdSmrg 8170c674dbdSmrg# C support is built-in for now 8180c674dbdSmrgm4_define([_LT_LANG_C_enabled], []) 8190c674dbdSmrgm4_define([_LT_TAGS], []) 8200c674dbdSmrg 8210c674dbdSmrg 8220c674dbdSmrg# LT_LANG(LANG) 8230c674dbdSmrg# ------------- 8240c674dbdSmrg# Enable libtool support for the given language if not already enabled. 8250c674dbdSmrgAC_DEFUN([LT_LANG], 8260c674dbdSmrg[AC_BEFORE([$0], [LT_OUTPUT])dnl 8270c674dbdSmrgm4_case([$1], 8280c674dbdSmrg [C], [_LT_LANG(C)], 8290c674dbdSmrg [C++], [_LT_LANG(CXX)], 8300c674dbdSmrg [Go], [_LT_LANG(GO)], 8310c674dbdSmrg [Java], [_LT_LANG(GCJ)], 8320c674dbdSmrg [Fortran 77], [_LT_LANG(F77)], 8330c674dbdSmrg [Fortran], [_LT_LANG(FC)], 8340c674dbdSmrg [Windows Resource], [_LT_LANG(RC)], 8350c674dbdSmrg [m4_ifdef([_LT_LANG_]$1[_CONFIG], 8360c674dbdSmrg [_LT_LANG($1)], 8370c674dbdSmrg [m4_fatal([$0: unsupported language: "$1"])])])dnl 8380c674dbdSmrg])# LT_LANG 8390c674dbdSmrg 8400c674dbdSmrg 8410c674dbdSmrg# _LT_LANG(LANGNAME) 8420c674dbdSmrg# ------------------ 8430c674dbdSmrgm4_defun([_LT_LANG], 8440c674dbdSmrg[m4_ifdef([_LT_LANG_]$1[_enabled], [], 8450c674dbdSmrg [LT_SUPPORTED_TAG([$1])dnl 8460c674dbdSmrg m4_append([_LT_TAGS], [$1 ])dnl 8470c674dbdSmrg m4_define([_LT_LANG_]$1[_enabled], [])dnl 8480c674dbdSmrg _LT_LANG_$1_CONFIG($1)])dnl 8490c674dbdSmrg])# _LT_LANG 8500c674dbdSmrg 8510c674dbdSmrg 8520c674dbdSmrgm4_ifndef([AC_PROG_GO], [ 8530c674dbdSmrg############################################################ 8540c674dbdSmrg# NOTE: This macro has been submitted for inclusion into # 8550c674dbdSmrg# GNU Autoconf as AC_PROG_GO. When it is available in # 8560c674dbdSmrg# a released version of Autoconf we should remove this # 8570c674dbdSmrg# macro and use it instead. # 8580c674dbdSmrg############################################################ 8590c674dbdSmrgm4_defun([AC_PROG_GO], 8600c674dbdSmrg[AC_LANG_PUSH(Go)dnl 8610c674dbdSmrgAC_ARG_VAR([GOC], [Go compiler command])dnl 8620c674dbdSmrgAC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 8630c674dbdSmrg_AC_ARG_VAR_LDFLAGS()dnl 8640c674dbdSmrgAC_CHECK_TOOL(GOC, gccgo) 8650c674dbdSmrgif test -z "$GOC"; then 8660c674dbdSmrg if test -n "$ac_tool_prefix"; then 8670c674dbdSmrg AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 8680c674dbdSmrg fi 8690c674dbdSmrgfi 8700c674dbdSmrgif test -z "$GOC"; then 8710c674dbdSmrg AC_CHECK_PROG(GOC, gccgo, gccgo, false) 8720c674dbdSmrgfi 8730c674dbdSmrg])#m4_defun 8740c674dbdSmrg])#m4_ifndef 8750c674dbdSmrg 8760c674dbdSmrg 8770c674dbdSmrg# _LT_LANG_DEFAULT_CONFIG 8780c674dbdSmrg# ----------------------- 8790c674dbdSmrgm4_defun([_LT_LANG_DEFAULT_CONFIG], 8800c674dbdSmrg[AC_PROVIDE_IFELSE([AC_PROG_CXX], 8810c674dbdSmrg [LT_LANG(CXX)], 8820c674dbdSmrg [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 8830c674dbdSmrg 8840c674dbdSmrgAC_PROVIDE_IFELSE([AC_PROG_F77], 8850c674dbdSmrg [LT_LANG(F77)], 8860c674dbdSmrg [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 8870c674dbdSmrg 8880c674dbdSmrgAC_PROVIDE_IFELSE([AC_PROG_FC], 8890c674dbdSmrg [LT_LANG(FC)], 8900c674dbdSmrg [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 8910c674dbdSmrg 8920c674dbdSmrgdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 8930c674dbdSmrgdnl pulling things in needlessly. 8940c674dbdSmrgAC_PROVIDE_IFELSE([AC_PROG_GCJ], 8950c674dbdSmrg [LT_LANG(GCJ)], 8960c674dbdSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 8970c674dbdSmrg [LT_LANG(GCJ)], 8980c674dbdSmrg [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 8990c674dbdSmrg [LT_LANG(GCJ)], 9000c674dbdSmrg [m4_ifdef([AC_PROG_GCJ], 9010c674dbdSmrg [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 9020c674dbdSmrg m4_ifdef([A][M_PROG_GCJ], 9030c674dbdSmrg [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 9040c674dbdSmrg m4_ifdef([LT_PROG_GCJ], 9050c674dbdSmrg [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 9060c674dbdSmrg 9070c674dbdSmrgAC_PROVIDE_IFELSE([AC_PROG_GO], 9080c674dbdSmrg [LT_LANG(GO)], 9090c674dbdSmrg [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 9100c674dbdSmrg 9110c674dbdSmrgAC_PROVIDE_IFELSE([LT_PROG_RC], 9120c674dbdSmrg [LT_LANG(RC)], 9130c674dbdSmrg [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 9140c674dbdSmrg])# _LT_LANG_DEFAULT_CONFIG 9150c674dbdSmrg 9160c674dbdSmrg# Obsolete macros: 9170c674dbdSmrgAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 9180c674dbdSmrgAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 9190c674dbdSmrgAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 9200c674dbdSmrgAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 9210c674dbdSmrgAU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 9220c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 9230c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 9240c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_F77], []) 9250c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_FC], []) 9260c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 9270c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_RC], []) 9280c674dbdSmrg 9290c674dbdSmrg 9300c674dbdSmrg# _LT_TAG_COMPILER 9310c674dbdSmrg# ---------------- 9320c674dbdSmrgm4_defun([_LT_TAG_COMPILER], 9330c674dbdSmrg[AC_REQUIRE([AC_PROG_CC])dnl 9340c674dbdSmrg 9350c674dbdSmrg_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 9360c674dbdSmrg_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 9370c674dbdSmrg_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 9380c674dbdSmrg_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 9390c674dbdSmrg 9400c674dbdSmrg# If no C compiler was specified, use CC. 9410c674dbdSmrgLTCC=${LTCC-"$CC"} 9420c674dbdSmrg 9430c674dbdSmrg# If no C compiler flags were specified, use CFLAGS. 9440c674dbdSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9450c674dbdSmrg 9460c674dbdSmrg# Allow CC to be a program name with arguments. 9470c674dbdSmrgcompiler=$CC 9480c674dbdSmrg])# _LT_TAG_COMPILER 9490c674dbdSmrg 9500c674dbdSmrg 9510c674dbdSmrg# _LT_COMPILER_BOILERPLATE 9520c674dbdSmrg# ------------------------ 9530c674dbdSmrg# Check for compiler boilerplate output or warnings with 9540c674dbdSmrg# the simple compiler test code. 9550c674dbdSmrgm4_defun([_LT_COMPILER_BOILERPLATE], 9560c674dbdSmrg[m4_require([_LT_DECL_SED])dnl 9570c674dbdSmrgac_outfile=conftest.$ac_objext 9580c674dbdSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 9590c674dbdSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9600c674dbdSmrg_lt_compiler_boilerplate=`cat conftest.err` 9610c674dbdSmrg$RM conftest* 9620c674dbdSmrg])# _LT_COMPILER_BOILERPLATE 9630c674dbdSmrg 9640c674dbdSmrg 9650c674dbdSmrg# _LT_LINKER_BOILERPLATE 9660c674dbdSmrg# ---------------------- 9670c674dbdSmrg# Check for linker boilerplate output or warnings with 9680c674dbdSmrg# the simple link test code. 9690c674dbdSmrgm4_defun([_LT_LINKER_BOILERPLATE], 9700c674dbdSmrg[m4_require([_LT_DECL_SED])dnl 9710c674dbdSmrgac_outfile=conftest.$ac_objext 9720c674dbdSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 9730c674dbdSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9740c674dbdSmrg_lt_linker_boilerplate=`cat conftest.err` 9750c674dbdSmrg$RM -r conftest* 9760c674dbdSmrg])# _LT_LINKER_BOILERPLATE 9770c674dbdSmrg 9780c674dbdSmrg# _LT_REQUIRED_DARWIN_CHECKS 9790c674dbdSmrg# ------------------------- 9800c674dbdSmrgm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 9810c674dbdSmrg case $host_os in 9820c674dbdSmrg rhapsody* | darwin*) 9830c674dbdSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 9840c674dbdSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 9850c674dbdSmrg AC_CHECK_TOOL([LIPO], [lipo], [:]) 9860c674dbdSmrg AC_CHECK_TOOL([OTOOL], [otool], [:]) 9870c674dbdSmrg AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 9880c674dbdSmrg _LT_DECL([], [DSYMUTIL], [1], 9890c674dbdSmrg [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 9900c674dbdSmrg _LT_DECL([], [NMEDIT], [1], 9910c674dbdSmrg [Tool to change global to local symbols on Mac OS X]) 9920c674dbdSmrg _LT_DECL([], [LIPO], [1], 9930c674dbdSmrg [Tool to manipulate fat objects and archives on Mac OS X]) 9940c674dbdSmrg _LT_DECL([], [OTOOL], [1], 9950c674dbdSmrg [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 9960c674dbdSmrg _LT_DECL([], [OTOOL64], [1], 9970c674dbdSmrg [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 9980c674dbdSmrg 9990c674dbdSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 10000c674dbdSmrg [lt_cv_apple_cc_single_mod=no 10010c674dbdSmrg if test -z "$LT_MULTI_MODULE"; then 10020c674dbdSmrg # By default we will add the -single_module flag. You can override 10030c674dbdSmrg # by either setting the environment variable LT_MULTI_MODULE 10040c674dbdSmrg # non-empty at configure time, or by adding -multi_module to the 10050c674dbdSmrg # link flags. 10060c674dbdSmrg rm -rf libconftest.dylib* 10070c674dbdSmrg echo "int foo(void){return 1;}" > conftest.c 10080c674dbdSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10090c674dbdSmrg-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 10100c674dbdSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 10110c674dbdSmrg -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 10120c674dbdSmrg _lt_result=$? 10130c674dbdSmrg # If there is a non-empty error log, and "single_module" 10140c674dbdSmrg # appears in it, assume the flag caused a linker warning 10150c674dbdSmrg if test -s conftest.err && $GREP single_module conftest.err; then 10160c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 10170c674dbdSmrg # Otherwise, if the output was created with a 0 exit code from 10180c674dbdSmrg # the compiler, it worked. 10190c674dbdSmrg elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 10200c674dbdSmrg lt_cv_apple_cc_single_mod=yes 10210c674dbdSmrg else 10220c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 10230c674dbdSmrg fi 10240c674dbdSmrg rm -rf libconftest.dylib* 10250c674dbdSmrg rm -f conftest.* 10260c674dbdSmrg fi]) 10270c674dbdSmrg 10280c674dbdSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 10290c674dbdSmrg [lt_cv_ld_exported_symbols_list], 10300c674dbdSmrg [lt_cv_ld_exported_symbols_list=no 10310c674dbdSmrg save_LDFLAGS=$LDFLAGS 10320c674dbdSmrg echo "_main" > conftest.sym 10330c674dbdSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 10340c674dbdSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 10350c674dbdSmrg [lt_cv_ld_exported_symbols_list=yes], 10360c674dbdSmrg [lt_cv_ld_exported_symbols_list=no]) 10370c674dbdSmrg LDFLAGS=$save_LDFLAGS 10380c674dbdSmrg ]) 10390c674dbdSmrg 10400c674dbdSmrg AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 10410c674dbdSmrg [lt_cv_ld_force_load=no 10420c674dbdSmrg cat > conftest.c << _LT_EOF 10430c674dbdSmrgint forced_loaded() { return 2;} 10440c674dbdSmrg_LT_EOF 10450c674dbdSmrg echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 10460c674dbdSmrg $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 10470c674dbdSmrg echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 10480c674dbdSmrg $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 10490c674dbdSmrg echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 10500c674dbdSmrg $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 10510c674dbdSmrg cat > conftest.c << _LT_EOF 10520c674dbdSmrgint main() { return 0;} 10530c674dbdSmrg_LT_EOF 10540c674dbdSmrg echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 10550c674dbdSmrg $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 10560c674dbdSmrg _lt_result=$? 10570c674dbdSmrg if test -s conftest.err && $GREP force_load conftest.err; then 10580c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 10590c674dbdSmrg elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 10600c674dbdSmrg lt_cv_ld_force_load=yes 10610c674dbdSmrg else 10620c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 10630c674dbdSmrg fi 10640c674dbdSmrg rm -f conftest.err libconftest.a conftest conftest.c 10650c674dbdSmrg rm -rf conftest.dSYM 10660c674dbdSmrg ]) 10670c674dbdSmrg case $host_os in 10680c674dbdSmrg rhapsody* | darwin1.[[012]]) 10690c674dbdSmrg _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 10700c674dbdSmrg darwin1.*) 10710c674dbdSmrg _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10720c674dbdSmrg darwin*) 10730c674dbdSmrg case $MACOSX_DEPLOYMENT_TARGET,$host in 10740c674dbdSmrg 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) 10750c674dbdSmrg _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 10760c674dbdSmrg *) 10770c674dbdSmrg _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 10780c674dbdSmrg esac 10790c674dbdSmrg ;; 10800c674dbdSmrg esac 10810c674dbdSmrg if test yes = "$lt_cv_apple_cc_single_mod"; then 10820c674dbdSmrg _lt_dar_single_mod='$single_module' 10830c674dbdSmrg fi 10840c674dbdSmrg if test yes = "$lt_cv_ld_exported_symbols_list"; then 10850c674dbdSmrg _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 10860c674dbdSmrg else 10870c674dbdSmrg _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 10880c674dbdSmrg fi 10890c674dbdSmrg if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 10900c674dbdSmrg _lt_dsymutil='~$DSYMUTIL $lib || :' 10910c674dbdSmrg else 10920c674dbdSmrg _lt_dsymutil= 10930c674dbdSmrg fi 10940c674dbdSmrg ;; 10950c674dbdSmrg esac 10960c674dbdSmrg]) 10970c674dbdSmrg 10980c674dbdSmrg 10990c674dbdSmrg# _LT_DARWIN_LINKER_FEATURES([TAG]) 11000c674dbdSmrg# --------------------------------- 11010c674dbdSmrg# Checks for linker and compiler features on darwin 11020c674dbdSmrgm4_defun([_LT_DARWIN_LINKER_FEATURES], 11030c674dbdSmrg[ 11040c674dbdSmrg m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 11050c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 11060c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 11070c674dbdSmrg _LT_TAGVAR(hardcode_automatic, $1)=yes 11080c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 11090c674dbdSmrg if test yes = "$lt_cv_ld_force_load"; then 11100c674dbdSmrg _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\"`' 11110c674dbdSmrg m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 11120c674dbdSmrg [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 11130c674dbdSmrg else 11140c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='' 11150c674dbdSmrg fi 11160c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 11170c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 11180c674dbdSmrg case $cc_basename in 11190c674dbdSmrg ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11200c674dbdSmrg *) _lt_dar_can_shared=$GCC ;; 11210c674dbdSmrg esac 11220c674dbdSmrg if test yes = "$_lt_dar_can_shared"; then 11230c674dbdSmrg output_verbose_link_cmd=func_echo_all 11240c674dbdSmrg _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" 11250c674dbdSmrg _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11260c674dbdSmrg _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" 11270c674dbdSmrg _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" 11280c674dbdSmrg m4_if([$1], [CXX], 11290c674dbdSmrg[ if test yes != "$lt_cv_apple_cc_single_mod"; then 11300c674dbdSmrg _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" 11310c674dbdSmrg _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" 11320c674dbdSmrg fi 11330c674dbdSmrg],[]) 11340c674dbdSmrg else 11350c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 11360c674dbdSmrg fi 11370c674dbdSmrg]) 11380c674dbdSmrg 11390c674dbdSmrg# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 11400c674dbdSmrg# ---------------------------------- 11410c674dbdSmrg# Links a minimal program and checks the executable 11420c674dbdSmrg# for the system default hardcoded library path. In most cases, 11430c674dbdSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 11440c674dbdSmrg# the location of the communication and MPI libs are included too. 11450c674dbdSmrg# If we don't find anything, use the default library path according 11460c674dbdSmrg# to the aix ld manual. 11470c674dbdSmrg# Store the results from the different compilers for each TAGNAME. 11480c674dbdSmrg# Allow to override them for all tags through lt_cv_aix_libpath. 11490c674dbdSmrgm4_defun([_LT_SYS_MODULE_PATH_AIX], 11500c674dbdSmrg[m4_require([_LT_DECL_SED])dnl 11510c674dbdSmrgif test set = "${lt_cv_aix_libpath+set}"; then 11520c674dbdSmrg aix_libpath=$lt_cv_aix_libpath 11530c674dbdSmrgelse 11540c674dbdSmrg AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 11550c674dbdSmrg [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 11560c674dbdSmrg lt_aix_libpath_sed='[ 11570c674dbdSmrg /Import File Strings/,/^$/ { 11580c674dbdSmrg /^0/ { 11590c674dbdSmrg s/^0 *\([^ ]*\) *$/\1/ 11600c674dbdSmrg p 11610c674dbdSmrg } 11620c674dbdSmrg }]' 11630c674dbdSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11640c674dbdSmrg # Check for a 64-bit object if we didn't find anything. 11650c674dbdSmrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 11660c674dbdSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11670c674dbdSmrg fi],[]) 11680c674dbdSmrg if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 11690c674dbdSmrg _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 11700c674dbdSmrg fi 11710c674dbdSmrg ]) 11720c674dbdSmrg aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 11730c674dbdSmrgfi 11740c674dbdSmrg])# _LT_SYS_MODULE_PATH_AIX 11750c674dbdSmrg 11760c674dbdSmrg 11770c674dbdSmrg# _LT_SHELL_INIT(ARG) 11780c674dbdSmrg# ------------------- 11790c674dbdSmrgm4_define([_LT_SHELL_INIT], 11800c674dbdSmrg[m4_divert_text([M4SH-INIT], [$1 11810c674dbdSmrg])])# _LT_SHELL_INIT 11820c674dbdSmrg 11830c674dbdSmrg 11840c674dbdSmrg 11850c674dbdSmrg# _LT_PROG_ECHO_BACKSLASH 11860c674dbdSmrg# ----------------------- 11870c674dbdSmrg# Find how we can fake an echo command that does not interpret backslash. 11880c674dbdSmrg# In particular, with Autoconf 2.60 or later we add some code to the start 11890c674dbdSmrg# of the generated configure script that will find a shell with a builtin 11900c674dbdSmrg# printf (that we can use as an echo command). 11910c674dbdSmrgm4_defun([_LT_PROG_ECHO_BACKSLASH], 11920c674dbdSmrg[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11930c674dbdSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11940c674dbdSmrgECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11950c674dbdSmrg 11960c674dbdSmrgAC_MSG_CHECKING([how to print strings]) 11970c674dbdSmrg# Test print first, because it will be a builtin if present. 11980c674dbdSmrgif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11990c674dbdSmrg test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 12000c674dbdSmrg ECHO='print -r --' 12010c674dbdSmrgelif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 12020c674dbdSmrg ECHO='printf %s\n' 12030c674dbdSmrgelse 12040c674dbdSmrg # Use this function as a fallback that always works. 12050c674dbdSmrg func_fallback_echo () 12060c674dbdSmrg { 12070c674dbdSmrg eval 'cat <<_LTECHO_EOF 12080c674dbdSmrg$[]1 12090c674dbdSmrg_LTECHO_EOF' 12100c674dbdSmrg } 12110c674dbdSmrg ECHO='func_fallback_echo' 12120c674dbdSmrgfi 12130c674dbdSmrg 12140c674dbdSmrg# func_echo_all arg... 12150c674dbdSmrg# Invoke $ECHO with all args, space-separated. 12160c674dbdSmrgfunc_echo_all () 12170c674dbdSmrg{ 12180c674dbdSmrg $ECHO "$*" 12190c674dbdSmrg} 12200c674dbdSmrg 12210c674dbdSmrgcase $ECHO in 12220c674dbdSmrg printf*) AC_MSG_RESULT([printf]) ;; 12230c674dbdSmrg print*) AC_MSG_RESULT([print -r]) ;; 12240c674dbdSmrg *) AC_MSG_RESULT([cat]) ;; 12250c674dbdSmrgesac 12260c674dbdSmrg 12270c674dbdSmrgm4_ifdef([_AS_DETECT_SUGGESTED], 12280c674dbdSmrg[_AS_DETECT_SUGGESTED([ 12290c674dbdSmrg test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 12300c674dbdSmrg ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12310c674dbdSmrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 12320c674dbdSmrg ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 12330c674dbdSmrg PATH=/empty FPATH=/empty; export PATH FPATH 12340c674dbdSmrg test "X`printf %s $ECHO`" = "X$ECHO" \ 12350c674dbdSmrg || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 12360c674dbdSmrg 12370c674dbdSmrg_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 12380c674dbdSmrg_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 12390c674dbdSmrg])# _LT_PROG_ECHO_BACKSLASH 12400c674dbdSmrg 12410c674dbdSmrg 12420c674dbdSmrg# _LT_WITH_SYSROOT 12430c674dbdSmrg# ---------------- 12440c674dbdSmrgAC_DEFUN([_LT_WITH_SYSROOT], 12450c674dbdSmrg[m4_require([_LT_DECL_SED])dnl 12460c674dbdSmrgAC_MSG_CHECKING([for sysroot]) 12470c674dbdSmrgAC_ARG_WITH([sysroot], 12480c674dbdSmrg[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 12490c674dbdSmrg [Search for dependent libraries within DIR (or the compiler's sysroot 12500c674dbdSmrg if not specified).])], 12510c674dbdSmrg[], [with_sysroot=no]) 12520c674dbdSmrg 12530c674dbdSmrgdnl lt_sysroot will always be passed unquoted. We quote it here 12540c674dbdSmrgdnl in case the user passed a directory name. 12550c674dbdSmrglt_sysroot= 12560c674dbdSmrgcase $with_sysroot in #( 12570c674dbdSmrg yes) 12580c674dbdSmrg if test yes = "$GCC"; then 12590c674dbdSmrg lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12600c674dbdSmrg fi 12610c674dbdSmrg ;; #( 12620c674dbdSmrg /*) 12630c674dbdSmrg lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 12640c674dbdSmrg ;; #( 12650c674dbdSmrg no|'') 12660c674dbdSmrg ;; #( 12670c674dbdSmrg *) 12680c674dbdSmrg AC_MSG_RESULT([$with_sysroot]) 12690c674dbdSmrg AC_MSG_ERROR([The sysroot must be an absolute path.]) 12700c674dbdSmrg ;; 12710c674dbdSmrgesac 12720c674dbdSmrg 12730c674dbdSmrg AC_MSG_RESULT([${lt_sysroot:-no}]) 12740c674dbdSmrg_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 12750c674dbdSmrg[dependent libraries, and where our libraries should be installed.])]) 12760c674dbdSmrg 12770c674dbdSmrg# _LT_ENABLE_LOCK 12780c674dbdSmrg# --------------- 12790c674dbdSmrgm4_defun([_LT_ENABLE_LOCK], 12800c674dbdSmrg[AC_ARG_ENABLE([libtool-lock], 12810c674dbdSmrg [AS_HELP_STRING([--disable-libtool-lock], 12820c674dbdSmrg [avoid locking (might break parallel builds)])]) 12830c674dbdSmrgtest no = "$enable_libtool_lock" || enable_libtool_lock=yes 12840c674dbdSmrg 12850c674dbdSmrg# Some flags need to be propagated to the compiler or linker for good 12860c674dbdSmrg# libtool support. 12870c674dbdSmrgcase $host in 12880c674dbdSmrgia64-*-hpux*) 12890c674dbdSmrg # Find out what ABI is being produced by ac_compile, and set mode 12900c674dbdSmrg # options accordingly. 12910c674dbdSmrg echo 'int i;' > conftest.$ac_ext 12920c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 12930c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 12940c674dbdSmrg *ELF-32*) 12950c674dbdSmrg HPUX_IA64_MODE=32 12960c674dbdSmrg ;; 12970c674dbdSmrg *ELF-64*) 12980c674dbdSmrg HPUX_IA64_MODE=64 12990c674dbdSmrg ;; 13000c674dbdSmrg esac 13010c674dbdSmrg fi 13020c674dbdSmrg rm -rf conftest* 13030c674dbdSmrg ;; 13040c674dbdSmrg*-*-irix6*) 13050c674dbdSmrg # Find out what ABI is being produced by ac_compile, and set linker 13060c674dbdSmrg # options accordingly. 13070c674dbdSmrg echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 13080c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 13090c674dbdSmrg if test yes = "$lt_cv_prog_gnu_ld"; then 13100c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 13110c674dbdSmrg *32-bit*) 13120c674dbdSmrg LD="${LD-ld} -melf32bsmip" 13130c674dbdSmrg ;; 13140c674dbdSmrg *N32*) 13150c674dbdSmrg LD="${LD-ld} -melf32bmipn32" 13160c674dbdSmrg ;; 13170c674dbdSmrg *64-bit*) 13180c674dbdSmrg LD="${LD-ld} -melf64bmip" 13190c674dbdSmrg ;; 13200c674dbdSmrg esac 13210c674dbdSmrg else 13220c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 13230c674dbdSmrg *32-bit*) 13240c674dbdSmrg LD="${LD-ld} -32" 13250c674dbdSmrg ;; 13260c674dbdSmrg *N32*) 13270c674dbdSmrg LD="${LD-ld} -n32" 13280c674dbdSmrg ;; 13290c674dbdSmrg *64-bit*) 13300c674dbdSmrg LD="${LD-ld} -64" 13310c674dbdSmrg ;; 13320c674dbdSmrg esac 13330c674dbdSmrg fi 13340c674dbdSmrg fi 13350c674dbdSmrg rm -rf conftest* 13360c674dbdSmrg ;; 13370c674dbdSmrg 13380c674dbdSmrgmips64*-*linux*) 13390c674dbdSmrg # Find out what ABI is being produced by ac_compile, and set linker 13400c674dbdSmrg # options accordingly. 13410c674dbdSmrg echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 13420c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 13430c674dbdSmrg emul=elf 13440c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 13450c674dbdSmrg *32-bit*) 13460c674dbdSmrg emul="${emul}32" 13470c674dbdSmrg ;; 13480c674dbdSmrg *64-bit*) 13490c674dbdSmrg emul="${emul}64" 13500c674dbdSmrg ;; 13510c674dbdSmrg esac 13520c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 13530c674dbdSmrg *MSB*) 13540c674dbdSmrg emul="${emul}btsmip" 13550c674dbdSmrg ;; 13560c674dbdSmrg *LSB*) 13570c674dbdSmrg emul="${emul}ltsmip" 13580c674dbdSmrg ;; 13590c674dbdSmrg esac 13600c674dbdSmrg case `$FILECMD conftest.$ac_objext` in 13610c674dbdSmrg *N32*) 13620c674dbdSmrg emul="${emul}n32" 13630c674dbdSmrg ;; 13640c674dbdSmrg esac 13650c674dbdSmrg LD="${LD-ld} -m $emul" 13660c674dbdSmrg fi 13670c674dbdSmrg rm -rf conftest* 13680c674dbdSmrg ;; 13690c674dbdSmrg 13700c674dbdSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13710c674dbdSmrgs390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13720c674dbdSmrg # Find out what ABI is being produced by ac_compile, and set linker 13730c674dbdSmrg # options accordingly. Note that the listed cases only cover the 13740c674dbdSmrg # situations where additional linker options are needed (such as when 13750c674dbdSmrg # doing 32-bit compilation for a host where ld defaults to 64-bit, or 13760c674dbdSmrg # vice versa); the common cases where no linker options are needed do 13770c674dbdSmrg # not appear in the list. 13780c674dbdSmrg echo 'int i;' > conftest.$ac_ext 13790c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 13800c674dbdSmrg case `$FILECMD conftest.o` in 13810c674dbdSmrg *32-bit*) 13820c674dbdSmrg case $host in 13830c674dbdSmrg x86_64-*kfreebsd*-gnu) 13840c674dbdSmrg LD="${LD-ld} -m elf_i386_fbsd" 13850c674dbdSmrg ;; 13860c674dbdSmrg x86_64-*linux*) 13870c674dbdSmrg case `$FILECMD conftest.o` in 13880c674dbdSmrg *x86-64*) 13890c674dbdSmrg LD="${LD-ld} -m elf32_x86_64" 13900c674dbdSmrg ;; 13910c674dbdSmrg *) 13920c674dbdSmrg LD="${LD-ld} -m elf_i386" 13930c674dbdSmrg ;; 13940c674dbdSmrg esac 13950c674dbdSmrg ;; 13960c674dbdSmrg powerpc64le-*linux*) 13970c674dbdSmrg LD="${LD-ld} -m elf32lppclinux" 13980c674dbdSmrg ;; 13990c674dbdSmrg powerpc64-*linux*) 14000c674dbdSmrg LD="${LD-ld} -m elf32ppclinux" 14010c674dbdSmrg ;; 14020c674dbdSmrg s390x-*linux*) 14030c674dbdSmrg LD="${LD-ld} -m elf_s390" 14040c674dbdSmrg ;; 14050c674dbdSmrg sparc64-*linux*) 14060c674dbdSmrg LD="${LD-ld} -m elf32_sparc" 14070c674dbdSmrg ;; 14080c674dbdSmrg esac 14090c674dbdSmrg ;; 14100c674dbdSmrg *64-bit*) 14110c674dbdSmrg case $host in 14120c674dbdSmrg x86_64-*kfreebsd*-gnu) 14130c674dbdSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 14140c674dbdSmrg ;; 14150c674dbdSmrg x86_64-*linux*) 14160c674dbdSmrg LD="${LD-ld} -m elf_x86_64" 14170c674dbdSmrg ;; 14180c674dbdSmrg powerpcle-*linux*) 14190c674dbdSmrg LD="${LD-ld} -m elf64lppc" 14200c674dbdSmrg ;; 14210c674dbdSmrg powerpc-*linux*) 14220c674dbdSmrg LD="${LD-ld} -m elf64ppc" 14230c674dbdSmrg ;; 14240c674dbdSmrg s390*-*linux*|s390*-*tpf*) 14250c674dbdSmrg LD="${LD-ld} -m elf64_s390" 14260c674dbdSmrg ;; 14270c674dbdSmrg sparc*-*linux*) 14280c674dbdSmrg LD="${LD-ld} -m elf64_sparc" 14290c674dbdSmrg ;; 14300c674dbdSmrg esac 14310c674dbdSmrg ;; 14320c674dbdSmrg esac 14330c674dbdSmrg fi 14340c674dbdSmrg rm -rf conftest* 14350c674dbdSmrg ;; 14360c674dbdSmrg 14370c674dbdSmrg*-*-sco3.2v5*) 14380c674dbdSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 14390c674dbdSmrg SAVE_CFLAGS=$CFLAGS 14400c674dbdSmrg CFLAGS="$CFLAGS -belf" 14410c674dbdSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 14420c674dbdSmrg [AC_LANG_PUSH(C) 14430c674dbdSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 14440c674dbdSmrg AC_LANG_POP]) 14450c674dbdSmrg if test yes != "$lt_cv_cc_needs_belf"; then 14460c674dbdSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 14470c674dbdSmrg CFLAGS=$SAVE_CFLAGS 14480c674dbdSmrg fi 14490c674dbdSmrg ;; 14500c674dbdSmrg*-*solaris*) 14510c674dbdSmrg # Find out what ABI is being produced by ac_compile, and set linker 14520c674dbdSmrg # options accordingly. 14530c674dbdSmrg echo 'int i;' > conftest.$ac_ext 14540c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 14550c674dbdSmrg case `$FILECMD conftest.o` in 14560c674dbdSmrg *64-bit*) 14570c674dbdSmrg case $lt_cv_prog_gnu_ld in 14580c674dbdSmrg yes*) 14590c674dbdSmrg case $host in 14600c674dbdSmrg i?86-*-solaris*|x86_64-*-solaris*) 14610c674dbdSmrg LD="${LD-ld} -m elf_x86_64" 14620c674dbdSmrg ;; 14630c674dbdSmrg sparc*-*-solaris*) 14640c674dbdSmrg LD="${LD-ld} -m elf64_sparc" 14650c674dbdSmrg ;; 14660c674dbdSmrg esac 14670c674dbdSmrg # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 14680c674dbdSmrg if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 14690c674dbdSmrg LD=${LD-ld}_sol2 14700c674dbdSmrg fi 14710c674dbdSmrg ;; 14720c674dbdSmrg *) 14730c674dbdSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 14740c674dbdSmrg LD="${LD-ld} -64" 14750c674dbdSmrg fi 14760c674dbdSmrg ;; 14770c674dbdSmrg esac 14780c674dbdSmrg ;; 14790c674dbdSmrg esac 14800c674dbdSmrg fi 14810c674dbdSmrg rm -rf conftest* 14820c674dbdSmrg ;; 14830c674dbdSmrgesac 14840c674dbdSmrg 14850c674dbdSmrgneed_locks=$enable_libtool_lock 14860c674dbdSmrg])# _LT_ENABLE_LOCK 14870c674dbdSmrg 14880c674dbdSmrg 14890c674dbdSmrg# _LT_PROG_AR 14900c674dbdSmrg# ----------- 14910c674dbdSmrgm4_defun([_LT_PROG_AR], 14920c674dbdSmrg[AC_CHECK_TOOLS(AR, [ar], false) 14930c674dbdSmrg: ${AR=ar} 14940c674dbdSmrg_LT_DECL([], [AR], [1], [The archiver]) 14950c674dbdSmrg 14960c674dbdSmrg# Use ARFLAGS variable as AR's operation code to sync the variable naming with 14970c674dbdSmrg# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 14980c674dbdSmrg# higher priority because thats what people were doing historically (setting 14990c674dbdSmrg# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 15000c674dbdSmrg# variable obsoleted/removed. 15010c674dbdSmrg 15020c674dbdSmrgtest ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 15030c674dbdSmrglt_ar_flags=$AR_FLAGS 15040c674dbdSmrg_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) 15050c674dbdSmrg 15060c674dbdSmrg# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 15070c674dbdSmrg# by AR_FLAGS because that was never working and AR_FLAGS is about to die. 15080c674dbdSmrg_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], 15090c674dbdSmrg [Flags to create an archive]) 15100c674dbdSmrg 15110c674dbdSmrgAC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 15120c674dbdSmrg [lt_cv_ar_at_file=no 15130c674dbdSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 15140c674dbdSmrg [echo conftest.$ac_objext > conftest.lst 15150c674dbdSmrg lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 15160c674dbdSmrg AC_TRY_EVAL([lt_ar_try]) 15170c674dbdSmrg if test 0 -eq "$ac_status"; then 15180c674dbdSmrg # Ensure the archiver fails upon bogus file names. 15190c674dbdSmrg rm -f conftest.$ac_objext libconftest.a 15200c674dbdSmrg AC_TRY_EVAL([lt_ar_try]) 15210c674dbdSmrg if test 0 -ne "$ac_status"; then 15220c674dbdSmrg lt_cv_ar_at_file=@ 15230c674dbdSmrg fi 15240c674dbdSmrg fi 15250c674dbdSmrg rm -f conftest.* libconftest.a 15260c674dbdSmrg ]) 15270c674dbdSmrg ]) 15280c674dbdSmrg 15290c674dbdSmrgif test no = "$lt_cv_ar_at_file"; then 15300c674dbdSmrg archiver_list_spec= 15310c674dbdSmrgelse 15320c674dbdSmrg archiver_list_spec=$lt_cv_ar_at_file 15330c674dbdSmrgfi 15340c674dbdSmrg_LT_DECL([], [archiver_list_spec], [1], 15350c674dbdSmrg [How to feed a file listing to the archiver]) 15360c674dbdSmrg])# _LT_PROG_AR 15370c674dbdSmrg 15380c674dbdSmrg 15390c674dbdSmrg# _LT_CMD_OLD_ARCHIVE 15400c674dbdSmrg# ------------------- 15410c674dbdSmrgm4_defun([_LT_CMD_OLD_ARCHIVE], 15420c674dbdSmrg[_LT_PROG_AR 15430c674dbdSmrg 15440c674dbdSmrgAC_CHECK_TOOL(STRIP, strip, :) 15450c674dbdSmrgtest -z "$STRIP" && STRIP=: 15460c674dbdSmrg_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 15470c674dbdSmrg 15480c674dbdSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 15490c674dbdSmrgtest -z "$RANLIB" && RANLIB=: 15500c674dbdSmrg_LT_DECL([], [RANLIB], [1], 15510c674dbdSmrg [Commands used to install an old-style archive]) 15520c674dbdSmrg 15530c674dbdSmrg# Determine commands to create old-style static archives. 15540c674dbdSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 15550c674dbdSmrgold_postinstall_cmds='chmod 644 $oldlib' 15560c674dbdSmrgold_postuninstall_cmds= 15570c674dbdSmrg 15580c674dbdSmrgif test -n "$RANLIB"; then 15590c674dbdSmrg case $host_os in 15600c674dbdSmrg bitrig* | openbsd*) 15610c674dbdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 15620c674dbdSmrg ;; 15630c674dbdSmrg *) 15640c674dbdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 15650c674dbdSmrg ;; 15660c674dbdSmrg esac 15670c674dbdSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 15680c674dbdSmrgfi 15690c674dbdSmrg 15700c674dbdSmrgcase $host_os in 15710c674dbdSmrg darwin*) 15720c674dbdSmrg lock_old_archive_extraction=yes ;; 15730c674dbdSmrg *) 15740c674dbdSmrg lock_old_archive_extraction=no ;; 15750c674dbdSmrgesac 15760c674dbdSmrg_LT_DECL([], [old_postinstall_cmds], [2]) 15770c674dbdSmrg_LT_DECL([], [old_postuninstall_cmds], [2]) 15780c674dbdSmrg_LT_TAGDECL([], [old_archive_cmds], [2], 15790c674dbdSmrg [Commands used to build an old-style archive]) 15800c674dbdSmrg_LT_DECL([], [lock_old_archive_extraction], [0], 15810c674dbdSmrg [Whether to use a lock for old archive extraction]) 15820c674dbdSmrg])# _LT_CMD_OLD_ARCHIVE 15830c674dbdSmrg 15840c674dbdSmrg 15850c674dbdSmrg# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 15860c674dbdSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 15870c674dbdSmrg# ---------------------------------------------------------------- 15880c674dbdSmrg# Check whether the given compiler option works 15890c674dbdSmrgAC_DEFUN([_LT_COMPILER_OPTION], 15900c674dbdSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 15910c674dbdSmrgm4_require([_LT_DECL_SED])dnl 15920c674dbdSmrgAC_CACHE_CHECK([$1], [$2], 15930c674dbdSmrg [$2=no 15940c674dbdSmrg m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 15950c674dbdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15960c674dbdSmrg lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 15970c674dbdSmrg # Insert the option either (1) after the last *FLAGS variable, or 15980c674dbdSmrg # (2) before a word containing "conftest.", or (3) at the end. 15990c674dbdSmrg # Note that $ac_compile itself does not contain backslashes and begins 16000c674dbdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 16010c674dbdSmrg # The option is referenced via a variable to avoid confusing sed. 16020c674dbdSmrg lt_compile=`echo "$ac_compile" | $SED \ 16030c674dbdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16040c674dbdSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 16050c674dbdSmrg -e 's:$: $lt_compiler_flag:'` 16060c674dbdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 16070c674dbdSmrg (eval "$lt_compile" 2>conftest.err) 16080c674dbdSmrg ac_status=$? 16090c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 16100c674dbdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 16110c674dbdSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 16120c674dbdSmrg # The compiler can only warn and ignore the option if not recognized 16130c674dbdSmrg # So say no if there are warnings other than the usual output. 16140c674dbdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 16150c674dbdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16160c674dbdSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 16170c674dbdSmrg $2=yes 16180c674dbdSmrg fi 16190c674dbdSmrg fi 16200c674dbdSmrg $RM conftest* 16210c674dbdSmrg]) 16220c674dbdSmrg 16230c674dbdSmrgif test yes = "[$]$2"; then 16240c674dbdSmrg m4_if([$5], , :, [$5]) 16250c674dbdSmrgelse 16260c674dbdSmrg m4_if([$6], , :, [$6]) 16270c674dbdSmrgfi 16280c674dbdSmrg])# _LT_COMPILER_OPTION 16290c674dbdSmrg 16300c674dbdSmrg# Old name: 16310c674dbdSmrgAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 16320c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 16330c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 16340c674dbdSmrg 16350c674dbdSmrg 16360c674dbdSmrg# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 16370c674dbdSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 16380c674dbdSmrg# ---------------------------------------------------- 16390c674dbdSmrg# Check whether the given linker option works 16400c674dbdSmrgAC_DEFUN([_LT_LINKER_OPTION], 16410c674dbdSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 16420c674dbdSmrgm4_require([_LT_DECL_SED])dnl 16430c674dbdSmrgAC_CACHE_CHECK([$1], [$2], 16440c674dbdSmrg [$2=no 16450c674dbdSmrg save_LDFLAGS=$LDFLAGS 16460c674dbdSmrg LDFLAGS="$LDFLAGS $3" 16470c674dbdSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 16480c674dbdSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16490c674dbdSmrg # The linker can only warn and ignore the option if not recognized 16500c674dbdSmrg # So say no if there are warnings 16510c674dbdSmrg if test -s conftest.err; then 16520c674dbdSmrg # Append any errors to the config.log. 16530c674dbdSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 16540c674dbdSmrg $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16550c674dbdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16560c674dbdSmrg if diff conftest.exp conftest.er2 >/dev/null; then 16570c674dbdSmrg $2=yes 16580c674dbdSmrg fi 16590c674dbdSmrg else 16600c674dbdSmrg $2=yes 16610c674dbdSmrg fi 16620c674dbdSmrg fi 16630c674dbdSmrg $RM -r conftest* 16640c674dbdSmrg LDFLAGS=$save_LDFLAGS 16650c674dbdSmrg]) 16660c674dbdSmrg 16670c674dbdSmrgif test yes = "[$]$2"; then 16680c674dbdSmrg m4_if([$4], , :, [$4]) 16690c674dbdSmrgelse 16700c674dbdSmrg m4_if([$5], , :, [$5]) 16710c674dbdSmrgfi 16720c674dbdSmrg])# _LT_LINKER_OPTION 16730c674dbdSmrg 16740c674dbdSmrg# Old name: 16750c674dbdSmrgAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 16760c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 16770c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 16780c674dbdSmrg 16790c674dbdSmrg 16800c674dbdSmrg# LT_CMD_MAX_LEN 16810c674dbdSmrg#--------------- 16820c674dbdSmrgAC_DEFUN([LT_CMD_MAX_LEN], 16830c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 16840c674dbdSmrg# find the maximum length of command line arguments 16850c674dbdSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 16860c674dbdSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 16870c674dbdSmrg i=0 16880c674dbdSmrg teststring=ABCD 16890c674dbdSmrg 16900c674dbdSmrg case $build_os in 16910c674dbdSmrg msdosdjgpp*) 16920c674dbdSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 16930c674dbdSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 16940c674dbdSmrg # during glob expansion). Even if it were fixed, the result of this 16950c674dbdSmrg # check would be larger than it should be. 16960c674dbdSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 16970c674dbdSmrg ;; 16980c674dbdSmrg 16990c674dbdSmrg gnu*) 17000c674dbdSmrg # Under GNU Hurd, this test is not required because there is 17010c674dbdSmrg # no limit to the length of command line arguments. 17020c674dbdSmrg # Libtool will interpret -1 as no limit whatsoever 17030c674dbdSmrg lt_cv_sys_max_cmd_len=-1; 17040c674dbdSmrg ;; 17050c674dbdSmrg 17060c674dbdSmrg cygwin* | mingw* | cegcc*) 17070c674dbdSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 17080c674dbdSmrg # about 5 minutes as the teststring grows exponentially. 17090c674dbdSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 17100c674dbdSmrg # you end up with a "frozen" computer, even though with patience 17110c674dbdSmrg # the test eventually succeeds (with a max line length of 256k). 17120c674dbdSmrg # Instead, let's just punt: use the minimum linelength reported by 17130c674dbdSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 17140c674dbdSmrg lt_cv_sys_max_cmd_len=8192; 17150c674dbdSmrg ;; 17160c674dbdSmrg 17170c674dbdSmrg mint*) 17180c674dbdSmrg # On MiNT this can take a long time and run out of memory. 17190c674dbdSmrg lt_cv_sys_max_cmd_len=8192; 17200c674dbdSmrg ;; 17210c674dbdSmrg 17220c674dbdSmrg amigaos*) 17230c674dbdSmrg # On AmigaOS with pdksh, this test takes hours, literally. 17240c674dbdSmrg # So we just punt and use a minimum line length of 8192. 17250c674dbdSmrg lt_cv_sys_max_cmd_len=8192; 17260c674dbdSmrg ;; 17270c674dbdSmrg 17280c674dbdSmrg bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 17290c674dbdSmrg # This has been around since 386BSD, at least. Likely further. 17300c674dbdSmrg if test -x /sbin/sysctl; then 17310c674dbdSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 17320c674dbdSmrg elif test -x /usr/sbin/sysctl; then 17330c674dbdSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 17340c674dbdSmrg else 17350c674dbdSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 17360c674dbdSmrg fi 17370c674dbdSmrg # And add a safety zone 17380c674dbdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 17390c674dbdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 17400c674dbdSmrg ;; 17410c674dbdSmrg 17420c674dbdSmrg interix*) 17430c674dbdSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 17440c674dbdSmrg lt_cv_sys_max_cmd_len=196608 17450c674dbdSmrg ;; 17460c674dbdSmrg 17470c674dbdSmrg os2*) 17480c674dbdSmrg # The test takes a long time on OS/2. 17490c674dbdSmrg lt_cv_sys_max_cmd_len=8192 17500c674dbdSmrg ;; 17510c674dbdSmrg 17520c674dbdSmrg osf*) 17530c674dbdSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 17540c674dbdSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 17550c674dbdSmrg # nice to cause kernel panics so lets avoid the loop below. 17560c674dbdSmrg # First set a reasonable default. 17570c674dbdSmrg lt_cv_sys_max_cmd_len=16384 17580c674dbdSmrg # 17590c674dbdSmrg if test -x /sbin/sysconfig; then 17600c674dbdSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 17610c674dbdSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 17620c674dbdSmrg esac 17630c674dbdSmrg fi 17640c674dbdSmrg ;; 17650c674dbdSmrg sco3.2v5*) 17660c674dbdSmrg lt_cv_sys_max_cmd_len=102400 17670c674dbdSmrg ;; 17680c674dbdSmrg sysv5* | sco5v6* | sysv4.2uw2*) 17690c674dbdSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 17700c674dbdSmrg if test -n "$kargmax"; then 17710c674dbdSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` 17720c674dbdSmrg else 17730c674dbdSmrg lt_cv_sys_max_cmd_len=32768 17740c674dbdSmrg fi 17750c674dbdSmrg ;; 17760c674dbdSmrg *) 17770c674dbdSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 17780c674dbdSmrg if test -n "$lt_cv_sys_max_cmd_len" && \ 17790c674dbdSmrg test undefined != "$lt_cv_sys_max_cmd_len"; then 17800c674dbdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 17810c674dbdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 17820c674dbdSmrg else 17830c674dbdSmrg # Make teststring a little bigger before we do anything with it. 17840c674dbdSmrg # a 1K string should be a reasonable start. 17850c674dbdSmrg for i in 1 2 3 4 5 6 7 8; do 17860c674dbdSmrg teststring=$teststring$teststring 17870c674dbdSmrg done 17880c674dbdSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 17890c674dbdSmrg # If test is not a shell built-in, we'll probably end up computing a 17900c674dbdSmrg # maximum length that is only half of the actual maximum length, but 17910c674dbdSmrg # we can't tell. 17920c674dbdSmrg while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 17930c674dbdSmrg = "X$teststring$teststring"; } >/dev/null 2>&1 && 17940c674dbdSmrg test 17 != "$i" # 1/2 MB should be enough 17950c674dbdSmrg do 17960c674dbdSmrg i=`expr $i + 1` 17970c674dbdSmrg teststring=$teststring$teststring 17980c674dbdSmrg done 17990c674dbdSmrg # Only check the string length outside the loop. 18000c674dbdSmrg lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 18010c674dbdSmrg teststring= 18020c674dbdSmrg # Add a significant safety factor because C++ compilers can tack on 18030c674dbdSmrg # massive amounts of additional arguments before passing them to the 18040c674dbdSmrg # linker. It appears as though 1/2 is a usable value. 18050c674dbdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 18060c674dbdSmrg fi 18070c674dbdSmrg ;; 18080c674dbdSmrg esac 18090c674dbdSmrg]) 18100c674dbdSmrgif test -n "$lt_cv_sys_max_cmd_len"; then 18110c674dbdSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 18120c674dbdSmrgelse 18130c674dbdSmrg AC_MSG_RESULT(none) 18140c674dbdSmrgfi 18150c674dbdSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 18160c674dbdSmrg_LT_DECL([], [max_cmd_len], [0], 18170c674dbdSmrg [What is the maximum length of a command?]) 18180c674dbdSmrg])# LT_CMD_MAX_LEN 18190c674dbdSmrg 18200c674dbdSmrg# Old name: 18210c674dbdSmrgAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 18220c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 18230c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 18240c674dbdSmrg 18250c674dbdSmrg 18260c674dbdSmrg# _LT_HEADER_DLFCN 18270c674dbdSmrg# ---------------- 18280c674dbdSmrgm4_defun([_LT_HEADER_DLFCN], 18290c674dbdSmrg[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 18300c674dbdSmrg])# _LT_HEADER_DLFCN 18310c674dbdSmrg 18320c674dbdSmrg 18330c674dbdSmrg# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 18340c674dbdSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 18350c674dbdSmrg# ---------------------------------------------------------------- 18360c674dbdSmrgm4_defun([_LT_TRY_DLOPEN_SELF], 18370c674dbdSmrg[m4_require([_LT_HEADER_DLFCN])dnl 18380c674dbdSmrgif test yes = "$cross_compiling"; then : 18390c674dbdSmrg [$4] 18400c674dbdSmrgelse 18410c674dbdSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18420c674dbdSmrg lt_status=$lt_dlunknown 18430c674dbdSmrg cat > conftest.$ac_ext <<_LT_EOF 18440c674dbdSmrg[#line $LINENO "configure" 18450c674dbdSmrg#include "confdefs.h" 18460c674dbdSmrg 18470c674dbdSmrg#if HAVE_DLFCN_H 18480c674dbdSmrg#include <dlfcn.h> 18490c674dbdSmrg#endif 18500c674dbdSmrg 18510c674dbdSmrg#include <stdio.h> 18520c674dbdSmrg 18530c674dbdSmrg#ifdef RTLD_GLOBAL 18540c674dbdSmrg# define LT_DLGLOBAL RTLD_GLOBAL 18550c674dbdSmrg#else 18560c674dbdSmrg# ifdef DL_GLOBAL 18570c674dbdSmrg# define LT_DLGLOBAL DL_GLOBAL 18580c674dbdSmrg# else 18590c674dbdSmrg# define LT_DLGLOBAL 0 18600c674dbdSmrg# endif 18610c674dbdSmrg#endif 18620c674dbdSmrg 18630c674dbdSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18640c674dbdSmrg find out it does not work in some platform. */ 18650c674dbdSmrg#ifndef LT_DLLAZY_OR_NOW 18660c674dbdSmrg# ifdef RTLD_LAZY 18670c674dbdSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 18680c674dbdSmrg# else 18690c674dbdSmrg# ifdef DL_LAZY 18700c674dbdSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 18710c674dbdSmrg# else 18720c674dbdSmrg# ifdef RTLD_NOW 18730c674dbdSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 18740c674dbdSmrg# else 18750c674dbdSmrg# ifdef DL_NOW 18760c674dbdSmrg# define LT_DLLAZY_OR_NOW DL_NOW 18770c674dbdSmrg# else 18780c674dbdSmrg# define LT_DLLAZY_OR_NOW 0 18790c674dbdSmrg# endif 18800c674dbdSmrg# endif 18810c674dbdSmrg# endif 18820c674dbdSmrg# endif 18830c674dbdSmrg#endif 18840c674dbdSmrg 18850c674dbdSmrg/* When -fvisibility=hidden is used, assume the code has been annotated 18860c674dbdSmrg correspondingly for the symbols needed. */ 18870c674dbdSmrg#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18880c674dbdSmrgint fnord () __attribute__((visibility("default"))); 18890c674dbdSmrg#endif 18900c674dbdSmrg 18910c674dbdSmrgint fnord () { return 42; } 18920c674dbdSmrgint main () 18930c674dbdSmrg{ 18940c674dbdSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18950c674dbdSmrg int status = $lt_dlunknown; 18960c674dbdSmrg 18970c674dbdSmrg if (self) 18980c674dbdSmrg { 18990c674dbdSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 19000c674dbdSmrg else 19010c674dbdSmrg { 19020c674dbdSmrg if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 19030c674dbdSmrg else puts (dlerror ()); 19040c674dbdSmrg } 19050c674dbdSmrg /* dlclose (self); */ 19060c674dbdSmrg } 19070c674dbdSmrg else 19080c674dbdSmrg puts (dlerror ()); 19090c674dbdSmrg 19100c674dbdSmrg return status; 19110c674dbdSmrg}] 19120c674dbdSmrg_LT_EOF 19130c674dbdSmrg if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 19140c674dbdSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 19150c674dbdSmrg lt_status=$? 19160c674dbdSmrg case x$lt_status in 19170c674dbdSmrg x$lt_dlno_uscore) $1 ;; 19180c674dbdSmrg x$lt_dlneed_uscore) $2 ;; 19190c674dbdSmrg x$lt_dlunknown|x*) $3 ;; 19200c674dbdSmrg esac 19210c674dbdSmrg else : 19220c674dbdSmrg # compilation failed 19230c674dbdSmrg $3 19240c674dbdSmrg fi 19250c674dbdSmrgfi 19260c674dbdSmrgrm -fr conftest* 19270c674dbdSmrg])# _LT_TRY_DLOPEN_SELF 19280c674dbdSmrg 19290c674dbdSmrg 19300c674dbdSmrg# LT_SYS_DLOPEN_SELF 19310c674dbdSmrg# ------------------ 19320c674dbdSmrgAC_DEFUN([LT_SYS_DLOPEN_SELF], 19330c674dbdSmrg[m4_require([_LT_HEADER_DLFCN])dnl 19340c674dbdSmrgif test yes != "$enable_dlopen"; then 19350c674dbdSmrg enable_dlopen=unknown 19360c674dbdSmrg enable_dlopen_self=unknown 19370c674dbdSmrg enable_dlopen_self_static=unknown 19380c674dbdSmrgelse 19390c674dbdSmrg lt_cv_dlopen=no 19400c674dbdSmrg lt_cv_dlopen_libs= 19410c674dbdSmrg 19420c674dbdSmrg case $host_os in 19430c674dbdSmrg beos*) 19440c674dbdSmrg lt_cv_dlopen=load_add_on 19450c674dbdSmrg lt_cv_dlopen_libs= 19460c674dbdSmrg lt_cv_dlopen_self=yes 19470c674dbdSmrg ;; 19480c674dbdSmrg 19490c674dbdSmrg mingw* | pw32* | cegcc*) 19500c674dbdSmrg lt_cv_dlopen=LoadLibrary 19510c674dbdSmrg lt_cv_dlopen_libs= 19520c674dbdSmrg ;; 19530c674dbdSmrg 19540c674dbdSmrg cygwin*) 19550c674dbdSmrg lt_cv_dlopen=dlopen 19560c674dbdSmrg lt_cv_dlopen_libs= 19570c674dbdSmrg ;; 19580c674dbdSmrg 19590c674dbdSmrg darwin*) 19600c674dbdSmrg # if libdl is installed we need to link against it 19610c674dbdSmrg AC_CHECK_LIB([dl], [dlopen], 19620c674dbdSmrg [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 19630c674dbdSmrg lt_cv_dlopen=dyld 19640c674dbdSmrg lt_cv_dlopen_libs= 19650c674dbdSmrg lt_cv_dlopen_self=yes 19660c674dbdSmrg ]) 19670c674dbdSmrg ;; 19680c674dbdSmrg 19690c674dbdSmrg tpf*) 19700c674dbdSmrg # Don't try to run any link tests for TPF. We know it's impossible 19710c674dbdSmrg # because TPF is a cross-compiler, and we know how we open DSOs. 19720c674dbdSmrg lt_cv_dlopen=dlopen 19730c674dbdSmrg lt_cv_dlopen_libs= 19740c674dbdSmrg lt_cv_dlopen_self=no 19750c674dbdSmrg ;; 19760c674dbdSmrg 19770c674dbdSmrg *) 19780c674dbdSmrg AC_CHECK_FUNC([shl_load], 19790c674dbdSmrg [lt_cv_dlopen=shl_load], 19800c674dbdSmrg [AC_CHECK_LIB([dld], [shl_load], 19810c674dbdSmrg [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 19820c674dbdSmrg [AC_CHECK_FUNC([dlopen], 19830c674dbdSmrg [lt_cv_dlopen=dlopen], 19840c674dbdSmrg [AC_CHECK_LIB([dl], [dlopen], 19850c674dbdSmrg [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 19860c674dbdSmrg [AC_CHECK_LIB([svld], [dlopen], 19870c674dbdSmrg [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 19880c674dbdSmrg [AC_CHECK_LIB([dld], [dld_link], 19890c674dbdSmrg [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 19900c674dbdSmrg ]) 19910c674dbdSmrg ]) 19920c674dbdSmrg ]) 19930c674dbdSmrg ]) 19940c674dbdSmrg ]) 19950c674dbdSmrg ;; 19960c674dbdSmrg esac 19970c674dbdSmrg 19980c674dbdSmrg if test no = "$lt_cv_dlopen"; then 19990c674dbdSmrg enable_dlopen=no 20000c674dbdSmrg else 20010c674dbdSmrg enable_dlopen=yes 20020c674dbdSmrg fi 20030c674dbdSmrg 20040c674dbdSmrg case $lt_cv_dlopen in 20050c674dbdSmrg dlopen) 20060c674dbdSmrg save_CPPFLAGS=$CPPFLAGS 20070c674dbdSmrg test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 20080c674dbdSmrg 20090c674dbdSmrg save_LDFLAGS=$LDFLAGS 20100c674dbdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 20110c674dbdSmrg 20120c674dbdSmrg save_LIBS=$LIBS 20130c674dbdSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 20140c674dbdSmrg 20150c674dbdSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 20160c674dbdSmrg lt_cv_dlopen_self, [dnl 20170c674dbdSmrg _LT_TRY_DLOPEN_SELF( 20180c674dbdSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 20190c674dbdSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 20200c674dbdSmrg ]) 20210c674dbdSmrg 20220c674dbdSmrg if test yes = "$lt_cv_dlopen_self"; then 20230c674dbdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 20240c674dbdSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 20250c674dbdSmrg lt_cv_dlopen_self_static, [dnl 20260c674dbdSmrg _LT_TRY_DLOPEN_SELF( 20270c674dbdSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 20280c674dbdSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 20290c674dbdSmrg ]) 20300c674dbdSmrg fi 20310c674dbdSmrg 20320c674dbdSmrg CPPFLAGS=$save_CPPFLAGS 20330c674dbdSmrg LDFLAGS=$save_LDFLAGS 20340c674dbdSmrg LIBS=$save_LIBS 20350c674dbdSmrg ;; 20360c674dbdSmrg esac 20370c674dbdSmrg 20380c674dbdSmrg case $lt_cv_dlopen_self in 20390c674dbdSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 20400c674dbdSmrg *) enable_dlopen_self=unknown ;; 20410c674dbdSmrg esac 20420c674dbdSmrg 20430c674dbdSmrg case $lt_cv_dlopen_self_static in 20440c674dbdSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 20450c674dbdSmrg *) enable_dlopen_self_static=unknown ;; 20460c674dbdSmrg esac 20470c674dbdSmrgfi 20480c674dbdSmrg_LT_DECL([dlopen_support], [enable_dlopen], [0], 20490c674dbdSmrg [Whether dlopen is supported]) 20500c674dbdSmrg_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 20510c674dbdSmrg [Whether dlopen of programs is supported]) 20520c674dbdSmrg_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 20530c674dbdSmrg [Whether dlopen of statically linked programs is supported]) 20540c674dbdSmrg])# LT_SYS_DLOPEN_SELF 20550c674dbdSmrg 20560c674dbdSmrg# Old name: 20570c674dbdSmrgAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 20580c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 20590c674dbdSmrgdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 20600c674dbdSmrg 20610c674dbdSmrg 20620c674dbdSmrg# _LT_COMPILER_C_O([TAGNAME]) 20630c674dbdSmrg# --------------------------- 20640c674dbdSmrg# Check to see if options -c and -o are simultaneously supported by compiler. 20650c674dbdSmrg# This macro does not hard code the compiler like AC_PROG_CC_C_O. 20660c674dbdSmrgm4_defun([_LT_COMPILER_C_O], 20670c674dbdSmrg[m4_require([_LT_DECL_SED])dnl 20680c674dbdSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 20690c674dbdSmrgm4_require([_LT_TAG_COMPILER])dnl 20700c674dbdSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 20710c674dbdSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 20720c674dbdSmrg [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 20730c674dbdSmrg $RM -r conftest 2>/dev/null 20740c674dbdSmrg mkdir conftest 20750c674dbdSmrg cd conftest 20760c674dbdSmrg mkdir out 20770c674dbdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20780c674dbdSmrg 20790c674dbdSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 20800c674dbdSmrg # Insert the option either (1) after the last *FLAGS variable, or 20810c674dbdSmrg # (2) before a word containing "conftest.", or (3) at the end. 20820c674dbdSmrg # Note that $ac_compile itself does not contain backslashes and begins 20830c674dbdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 20840c674dbdSmrg lt_compile=`echo "$ac_compile" | $SED \ 20850c674dbdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20860c674dbdSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 20870c674dbdSmrg -e 's:$: $lt_compiler_flag:'` 20880c674dbdSmrg (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 20890c674dbdSmrg (eval "$lt_compile" 2>out/conftest.err) 20900c674dbdSmrg ac_status=$? 20910c674dbdSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 20920c674dbdSmrg echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 20930c674dbdSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 20940c674dbdSmrg then 20950c674dbdSmrg # The compiler can only warn and ignore the option if not recognized 20960c674dbdSmrg # So say no if there are warnings 20970c674dbdSmrg $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20980c674dbdSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20990c674dbdSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 21000c674dbdSmrg _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 21010c674dbdSmrg fi 21020c674dbdSmrg fi 21030c674dbdSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 21040c674dbdSmrg $RM conftest* 21050c674dbdSmrg # SGI C++ compiler will create directory out/ii_files/ for 21060c674dbdSmrg # template instantiation 21070c674dbdSmrg test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 21080c674dbdSmrg $RM out/* && rmdir out 21090c674dbdSmrg cd .. 21100c674dbdSmrg $RM -r conftest 21110c674dbdSmrg $RM conftest* 21120c674dbdSmrg]) 21130c674dbdSmrg_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 21140c674dbdSmrg [Does compiler simultaneously support -c and -o options?]) 21150c674dbdSmrg])# _LT_COMPILER_C_O 21160c674dbdSmrg 21170c674dbdSmrg 21180c674dbdSmrg# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 21190c674dbdSmrg# ---------------------------------- 21200c674dbdSmrg# Check to see if we can do hard links to lock some files if needed 21210c674dbdSmrgm4_defun([_LT_COMPILER_FILE_LOCKS], 21220c674dbdSmrg[m4_require([_LT_ENABLE_LOCK])dnl 21230c674dbdSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 21240c674dbdSmrg_LT_COMPILER_C_O([$1]) 21250c674dbdSmrg 21260c674dbdSmrghard_links=nottested 21270c674dbdSmrgif test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 21280c674dbdSmrg # do not overwrite the value of need_locks provided by the user 21290c674dbdSmrg AC_MSG_CHECKING([if we can lock with hard links]) 21300c674dbdSmrg hard_links=yes 21310c674dbdSmrg $RM conftest* 21320c674dbdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 21330c674dbdSmrg touch conftest.a 21340c674dbdSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 21350c674dbdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 21360c674dbdSmrg AC_MSG_RESULT([$hard_links]) 21370c674dbdSmrg if test no = "$hard_links"; then 21380c674dbdSmrg AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 21390c674dbdSmrg need_locks=warn 21400c674dbdSmrg fi 21410c674dbdSmrgelse 21420c674dbdSmrg need_locks=no 21430c674dbdSmrgfi 21440c674dbdSmrg_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 21450c674dbdSmrg])# _LT_COMPILER_FILE_LOCKS 21460c674dbdSmrg 21470c674dbdSmrg 21480c674dbdSmrg# _LT_CHECK_OBJDIR 21490c674dbdSmrg# ---------------- 21500c674dbdSmrgm4_defun([_LT_CHECK_OBJDIR], 21510c674dbdSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 21520c674dbdSmrg[rm -f .libs 2>/dev/null 21530c674dbdSmrgmkdir .libs 2>/dev/null 21540c674dbdSmrgif test -d .libs; then 21550c674dbdSmrg lt_cv_objdir=.libs 21560c674dbdSmrgelse 21570c674dbdSmrg # MS-DOS does not allow filenames that begin with a dot. 21580c674dbdSmrg lt_cv_objdir=_libs 21590c674dbdSmrgfi 21600c674dbdSmrgrmdir .libs 2>/dev/null]) 21610c674dbdSmrgobjdir=$lt_cv_objdir 21620c674dbdSmrg_LT_DECL([], [objdir], [0], 21630c674dbdSmrg [The name of the directory that contains temporary libtool files])dnl 21640c674dbdSmrgm4_pattern_allow([LT_OBJDIR])dnl 21650c674dbdSmrgAC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 21660c674dbdSmrg [Define to the sub-directory where libtool stores uninstalled libraries.]) 21670c674dbdSmrg])# _LT_CHECK_OBJDIR 21680c674dbdSmrg 21690c674dbdSmrg 21700c674dbdSmrg# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 21710c674dbdSmrg# -------------------------------------- 21720c674dbdSmrg# Check hardcoding attributes. 21730c674dbdSmrgm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 21740c674dbdSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 21750c674dbdSmrg_LT_TAGVAR(hardcode_action, $1)= 21760c674dbdSmrgif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 21770c674dbdSmrg test -n "$_LT_TAGVAR(runpath_var, $1)" || 21780c674dbdSmrg test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 21790c674dbdSmrg 21800c674dbdSmrg # We can hardcode non-existent directories. 21810c674dbdSmrg if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 21820c674dbdSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 21830c674dbdSmrg # have to relink, otherwise we might link with an installed library 21840c674dbdSmrg # when we should be linking with a yet-to-be-installed one 21850c674dbdSmrg ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 21860c674dbdSmrg test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 21870c674dbdSmrg # Linking always hardcodes the temporary library directory. 21880c674dbdSmrg _LT_TAGVAR(hardcode_action, $1)=relink 21890c674dbdSmrg else 21900c674dbdSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 21910c674dbdSmrg _LT_TAGVAR(hardcode_action, $1)=immediate 21920c674dbdSmrg fi 21930c674dbdSmrgelse 21940c674dbdSmrg # We cannot hardcode anything, or else we can only hardcode existing 21950c674dbdSmrg # directories. 21960c674dbdSmrg _LT_TAGVAR(hardcode_action, $1)=unsupported 21970c674dbdSmrgfi 21980c674dbdSmrgAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 21990c674dbdSmrg 22000c674dbdSmrgif test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 22010c674dbdSmrg test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 22020c674dbdSmrg # Fast installation is not supported 22030c674dbdSmrg enable_fast_install=no 22040c674dbdSmrgelif test yes = "$shlibpath_overrides_runpath" || 22050c674dbdSmrg test no = "$enable_shared"; then 22060c674dbdSmrg # Fast installation is not necessary 22070c674dbdSmrg enable_fast_install=needless 22080c674dbdSmrgfi 22090c674dbdSmrg_LT_TAGDECL([], [hardcode_action], [0], 22100c674dbdSmrg [How to hardcode a shared library path into an executable]) 22110c674dbdSmrg])# _LT_LINKER_HARDCODE_LIBPATH 22120c674dbdSmrg 22130c674dbdSmrg 22140c674dbdSmrg# _LT_CMD_STRIPLIB 22150c674dbdSmrg# ---------------- 22160c674dbdSmrgm4_defun([_LT_CMD_STRIPLIB], 22170c674dbdSmrg[m4_require([_LT_DECL_EGREP]) 22180c674dbdSmrgstriplib= 22190c674dbdSmrgold_striplib= 22200c674dbdSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 22210c674dbdSmrgif test -z "$STRIP"; then 22220c674dbdSmrg AC_MSG_RESULT([no]) 22230c674dbdSmrgelse 22240c674dbdSmrg if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 22250c674dbdSmrg old_striplib="$STRIP --strip-debug" 22260c674dbdSmrg striplib="$STRIP --strip-unneeded" 22270c674dbdSmrg AC_MSG_RESULT([yes]) 22280c674dbdSmrg else 22290c674dbdSmrg case $host_os in 22300c674dbdSmrg darwin*) 22310c674dbdSmrg # FIXME - insert some real tests, host_os isn't really good enough 22320c674dbdSmrg striplib="$STRIP -x" 22330c674dbdSmrg old_striplib="$STRIP -S" 22340c674dbdSmrg AC_MSG_RESULT([yes]) 22350c674dbdSmrg ;; 22360c674dbdSmrg freebsd*) 22370c674dbdSmrg if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 22380c674dbdSmrg old_striplib="$STRIP --strip-debug" 22390c674dbdSmrg striplib="$STRIP --strip-unneeded" 22400c674dbdSmrg AC_MSG_RESULT([yes]) 22410c674dbdSmrg else 22420c674dbdSmrg AC_MSG_RESULT([no]) 22430c674dbdSmrg fi 22440c674dbdSmrg ;; 22450c674dbdSmrg *) 22460c674dbdSmrg AC_MSG_RESULT([no]) 22470c674dbdSmrg ;; 22480c674dbdSmrg esac 22490c674dbdSmrg fi 22500c674dbdSmrgfi 22510c674dbdSmrg_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 22520c674dbdSmrg_LT_DECL([], [striplib], [1]) 22530c674dbdSmrg])# _LT_CMD_STRIPLIB 22540c674dbdSmrg 22550c674dbdSmrg 22560c674dbdSmrg# _LT_PREPARE_MUNGE_PATH_LIST 22570c674dbdSmrg# --------------------------- 22580c674dbdSmrg# Make sure func_munge_path_list() is defined correctly. 22590c674dbdSmrgm4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 22600c674dbdSmrg[[# func_munge_path_list VARIABLE PATH 22610c674dbdSmrg# ----------------------------------- 22620c674dbdSmrg# VARIABLE is name of variable containing _space_ separated list of 22630c674dbdSmrg# directories to be munged by the contents of PATH, which is string 22640c674dbdSmrg# having a format: 22650c674dbdSmrg# "DIR[:DIR]:" 22660c674dbdSmrg# string "DIR[ DIR]" will be prepended to VARIABLE 22670c674dbdSmrg# ":DIR[:DIR]" 22680c674dbdSmrg# string "DIR[ DIR]" will be appended to VARIABLE 22690c674dbdSmrg# "DIRP[:DIRP]::[DIRA:]DIRA" 22700c674dbdSmrg# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22710c674dbdSmrg# "DIRA[ DIRA]" will be appended to VARIABLE 22720c674dbdSmrg# "DIR[:DIR]" 22730c674dbdSmrg# VARIABLE will be replaced by "DIR[ DIR]" 22740c674dbdSmrgfunc_munge_path_list () 22750c674dbdSmrg{ 22760c674dbdSmrg case x@S|@2 in 22770c674dbdSmrg x) 22780c674dbdSmrg ;; 22790c674dbdSmrg *:) 22800c674dbdSmrg eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 22810c674dbdSmrg ;; 22820c674dbdSmrg x:*) 22830c674dbdSmrg eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 22840c674dbdSmrg ;; 22850c674dbdSmrg *::*) 22860c674dbdSmrg eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22870c674dbdSmrg eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 22880c674dbdSmrg ;; 22890c674dbdSmrg *) 22900c674dbdSmrg eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 22910c674dbdSmrg ;; 22920c674dbdSmrg esac 22930c674dbdSmrg} 22940c674dbdSmrg]])# _LT_PREPARE_PATH_LIST 22950c674dbdSmrg 22960c674dbdSmrg 22970c674dbdSmrg# _LT_SYS_DYNAMIC_LINKER([TAG]) 22980c674dbdSmrg# ----------------------------- 22990c674dbdSmrg# PORTME Fill in your ld.so characteristics 23000c674dbdSmrgm4_defun([_LT_SYS_DYNAMIC_LINKER], 23010c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 23020c674dbdSmrgm4_require([_LT_DECL_EGREP])dnl 23030c674dbdSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 23040c674dbdSmrgm4_require([_LT_DECL_OBJDUMP])dnl 23050c674dbdSmrgm4_require([_LT_DECL_SED])dnl 23060c674dbdSmrgm4_require([_LT_CHECK_SHELL_FEATURES])dnl 23070c674dbdSmrgm4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 23080c674dbdSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 23090c674dbdSmrgm4_if([$1], 23100c674dbdSmrg [], [ 23110c674dbdSmrgif test yes = "$GCC"; then 23120c674dbdSmrg case $host_os in 23130c674dbdSmrg darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 23140c674dbdSmrg *) lt_awk_arg='/^libraries:/' ;; 23150c674dbdSmrg esac 23160c674dbdSmrg case $host_os in 23170c674dbdSmrg mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 23180c674dbdSmrg *) lt_sed_strip_eq='s|=/|/|g' ;; 23190c674dbdSmrg esac 23200c674dbdSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 23210c674dbdSmrg case $lt_search_path_spec in 23220c674dbdSmrg *\;*) 23230c674dbdSmrg # if the path contains ";" then we assume it to be the separator 23240c674dbdSmrg # otherwise default to the standard path separator (i.e. ":") - it is 23250c674dbdSmrg # assumed that no part of a normal pathname contains ";" but that should 23260c674dbdSmrg # okay in the real world where ";" in dirpaths is itself problematic. 23270c674dbdSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 23280c674dbdSmrg ;; 23290c674dbdSmrg *) 23300c674dbdSmrg lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 23310c674dbdSmrg ;; 23320c674dbdSmrg esac 23330c674dbdSmrg # Ok, now we have the path, separated by spaces, we can step through it 23340c674dbdSmrg # and add multilib dir if necessary... 23350c674dbdSmrg lt_tmp_lt_search_path_spec= 23360c674dbdSmrg lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 23370c674dbdSmrg # ...but if some path component already ends with the multilib dir we assume 23380c674dbdSmrg # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 23390c674dbdSmrg case "$lt_multi_os_dir; $lt_search_path_spec " in 23400c674dbdSmrg "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 23410c674dbdSmrg lt_multi_os_dir= 23420c674dbdSmrg ;; 23430c674dbdSmrg esac 23440c674dbdSmrg for lt_sys_path in $lt_search_path_spec; do 23450c674dbdSmrg if test -d "$lt_sys_path$lt_multi_os_dir"; then 23460c674dbdSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 23470c674dbdSmrg elif test -n "$lt_multi_os_dir"; then 23480c674dbdSmrg test -d "$lt_sys_path" && \ 23490c674dbdSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 23500c674dbdSmrg fi 23510c674dbdSmrg done 23520c674dbdSmrg lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 23530c674dbdSmrgBEGIN {RS = " "; FS = "/|\n";} { 23540c674dbdSmrg lt_foo = ""; 23550c674dbdSmrg lt_count = 0; 23560c674dbdSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 23570c674dbdSmrg if ($lt_i != "" && $lt_i != ".") { 23580c674dbdSmrg if ($lt_i == "..") { 23590c674dbdSmrg lt_count++; 23600c674dbdSmrg } else { 23610c674dbdSmrg if (lt_count == 0) { 23620c674dbdSmrg lt_foo = "/" $lt_i lt_foo; 23630c674dbdSmrg } else { 23640c674dbdSmrg lt_count--; 23650c674dbdSmrg } 23660c674dbdSmrg } 23670c674dbdSmrg } 23680c674dbdSmrg } 23690c674dbdSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 23700c674dbdSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 23710c674dbdSmrg}'` 23720c674dbdSmrg # AWK program above erroneously prepends '/' to C:/dos/paths 23730c674dbdSmrg # for these hosts. 23740c674dbdSmrg case $host_os in 23750c674dbdSmrg mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 23760c674dbdSmrg $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 23770c674dbdSmrg esac 23780c674dbdSmrg sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 23790c674dbdSmrgelse 23800c674dbdSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 23810c674dbdSmrgfi]) 23820c674dbdSmrglibrary_names_spec= 23830c674dbdSmrglibname_spec='lib$name' 23840c674dbdSmrgsoname_spec= 23850c674dbdSmrgshrext_cmds=.so 23860c674dbdSmrgpostinstall_cmds= 23870c674dbdSmrgpostuninstall_cmds= 23880c674dbdSmrgfinish_cmds= 23890c674dbdSmrgfinish_eval= 23900c674dbdSmrgshlibpath_var= 23910c674dbdSmrgshlibpath_overrides_runpath=unknown 23920c674dbdSmrgversion_type=none 23930c674dbdSmrgdynamic_linker="$host_os ld.so" 23940c674dbdSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 23950c674dbdSmrgneed_lib_prefix=unknown 23960c674dbdSmrghardcode_into_libs=no 23970c674dbdSmrg 23980c674dbdSmrg# when you set need_version to no, make sure it does not cause -set_version 23990c674dbdSmrg# flags to be left without arguments 24000c674dbdSmrgneed_version=unknown 24010c674dbdSmrg 24020c674dbdSmrgAC_ARG_VAR([LT_SYS_LIBRARY_PATH], 24030c674dbdSmrg[User-defined run-time library search path.]) 24040c674dbdSmrg 24050c674dbdSmrgcase $host_os in 24060c674dbdSmrgaix3*) 24070c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 24080c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 24090c674dbdSmrg shlibpath_var=LIBPATH 24100c674dbdSmrg 24110c674dbdSmrg # AIX 3 has no versioning support, so we append a major version to the name. 24120c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 24130c674dbdSmrg ;; 24140c674dbdSmrg 24150c674dbdSmrgaix[[4-9]]*) 24160c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 24170c674dbdSmrg need_lib_prefix=no 24180c674dbdSmrg need_version=no 24190c674dbdSmrg hardcode_into_libs=yes 24200c674dbdSmrg if test ia64 = "$host_cpu"; then 24210c674dbdSmrg # AIX 5 supports IA64 24220c674dbdSmrg library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 24230c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 24240c674dbdSmrg else 24250c674dbdSmrg # With GCC up to 2.95.x, collect2 would create an import file 24260c674dbdSmrg # for dependence libraries. The import file would start with 24270c674dbdSmrg # the line '#! .'. This would cause the generated library to 24280c674dbdSmrg # depend on '.', always an invalid library. This was fixed in 24290c674dbdSmrg # development snapshots of GCC prior to 3.0. 24300c674dbdSmrg case $host_os in 24310c674dbdSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 24320c674dbdSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 24330c674dbdSmrg echo ' yes ' 24340c674dbdSmrg echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 24350c674dbdSmrg : 24360c674dbdSmrg else 24370c674dbdSmrg can_build_shared=no 24380c674dbdSmrg fi 24390c674dbdSmrg ;; 24400c674dbdSmrg esac 24410c674dbdSmrg # Using Import Files as archive members, it is possible to support 24420c674dbdSmrg # filename-based versioning of shared library archives on AIX. While 24430c674dbdSmrg # this would work for both with and without runtime linking, it will 24440c674dbdSmrg # prevent static linking of such archives. So we do filename-based 24450c674dbdSmrg # shared library versioning with .so extension only, which is used 24460c674dbdSmrg # when both runtime linking and shared linking is enabled. 24470c674dbdSmrg # Unfortunately, runtime linking may impact performance, so we do 24480c674dbdSmrg # not want this to be the default eventually. Also, we use the 24490c674dbdSmrg # versioned .so libs for executables only if there is the -brtl 24500c674dbdSmrg # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 24510c674dbdSmrg # To allow for filename-based versioning support, we need to create 24520c674dbdSmrg # libNAME.so.V as an archive file, containing: 24530c674dbdSmrg # *) an Import File, referring to the versioned filename of the 24540c674dbdSmrg # archive as well as the shared archive member, telling the 24550c674dbdSmrg # bitwidth (32 or 64) of that shared object, and providing the 24560c674dbdSmrg # list of exported symbols of that shared object, eventually 24570c674dbdSmrg # decorated with the 'weak' keyword 24580c674dbdSmrg # *) the shared object with the F_LOADONLY flag set, to really avoid 24590c674dbdSmrg # it being seen by the linker. 24600c674dbdSmrg # At run time we better use the real file rather than another symlink, 24610c674dbdSmrg # but for link time we create the symlink libNAME.so -> libNAME.so.V 24620c674dbdSmrg 24630c674dbdSmrg case $with_aix_soname,$aix_use_runtimelinking in 24640c674dbdSmrg # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 24650c674dbdSmrg # soname into executable. Probably we can add versioning support to 24660c674dbdSmrg # collect2, so additional links can be useful in future. 24670c674dbdSmrg aix,yes) # traditional libtool 24680c674dbdSmrg dynamic_linker='AIX unversionable lib.so' 24690c674dbdSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 24700c674dbdSmrg # instead of lib<name>.a to let people know that these are not 24710c674dbdSmrg # typical AIX shared libraries. 24720c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 24730c674dbdSmrg ;; 24740c674dbdSmrg aix,no) # traditional AIX only 24750c674dbdSmrg dynamic_linker='AIX lib.a[(]lib.so.V[)]' 24760c674dbdSmrg # We preserve .a as extension for shared libraries through AIX4.2 24770c674dbdSmrg # and later when we are not doing run time linking. 24780c674dbdSmrg library_names_spec='$libname$release.a $libname.a' 24790c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 24800c674dbdSmrg ;; 24810c674dbdSmrg svr4,*) # full svr4 only 24820c674dbdSmrg dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 24830c674dbdSmrg library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24840c674dbdSmrg # We do not specify a path in Import Files, so LIBPATH fires. 24850c674dbdSmrg shlibpath_overrides_runpath=yes 24860c674dbdSmrg ;; 24870c674dbdSmrg *,yes) # both, prefer svr4 24880c674dbdSmrg dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 24890c674dbdSmrg library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 24900c674dbdSmrg # unpreferred sharedlib libNAME.a needs extra handling 24910c674dbdSmrg postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 24920c674dbdSmrg postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 24930c674dbdSmrg # We do not specify a path in Import Files, so LIBPATH fires. 24940c674dbdSmrg shlibpath_overrides_runpath=yes 24950c674dbdSmrg ;; 24960c674dbdSmrg *,no) # both, prefer aix 24970c674dbdSmrg dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 24980c674dbdSmrg library_names_spec='$libname$release.a $libname.a' 24990c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 25000c674dbdSmrg # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 25010c674dbdSmrg postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 25020c674dbdSmrg postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 25030c674dbdSmrg ;; 25040c674dbdSmrg esac 25050c674dbdSmrg shlibpath_var=LIBPATH 25060c674dbdSmrg fi 25070c674dbdSmrg ;; 25080c674dbdSmrg 25090c674dbdSmrgamigaos*) 25100c674dbdSmrg case $host_cpu in 25110c674dbdSmrg powerpc) 25120c674dbdSmrg # Since July 2007 AmigaOS4 officially supports .so libraries. 25130c674dbdSmrg # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 25140c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 25150c674dbdSmrg ;; 25160c674dbdSmrg m68k) 25170c674dbdSmrg library_names_spec='$libname.ixlibrary $libname.a' 25180c674dbdSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 25190c674dbdSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 25200c674dbdSmrg ;; 25210c674dbdSmrg esac 25220c674dbdSmrg ;; 25230c674dbdSmrg 25240c674dbdSmrgbeos*) 25250c674dbdSmrg library_names_spec='$libname$shared_ext' 25260c674dbdSmrg dynamic_linker="$host_os ld.so" 25270c674dbdSmrg shlibpath_var=LIBRARY_PATH 25280c674dbdSmrg ;; 25290c674dbdSmrg 25300c674dbdSmrgbsdi[[45]]*) 25310c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 25320c674dbdSmrg need_version=no 25330c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 25340c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 25350c674dbdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 25360c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 25370c674dbdSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 25380c674dbdSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 25390c674dbdSmrg # the default ld.so.conf also contains /usr/contrib/lib and 25400c674dbdSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 25410c674dbdSmrg # libtool to hard-code these into programs 25420c674dbdSmrg ;; 25430c674dbdSmrg 25440c674dbdSmrgcygwin* | mingw* | pw32* | cegcc*) 25450c674dbdSmrg version_type=windows 25460c674dbdSmrg shrext_cmds=.dll 25470c674dbdSmrg need_version=no 25480c674dbdSmrg need_lib_prefix=no 25490c674dbdSmrg 25500c674dbdSmrg case $GCC,$cc_basename in 25510c674dbdSmrg yes,*) 25520c674dbdSmrg # gcc 25530c674dbdSmrg library_names_spec='$libname.dll.a' 25540c674dbdSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 25550c674dbdSmrg postinstall_cmds='base_file=`basename \$file`~ 25560c674dbdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 25570c674dbdSmrg dldir=$destdir/`dirname \$dlpath`~ 25580c674dbdSmrg test -d \$dldir || mkdir -p \$dldir~ 25590c674dbdSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 25600c674dbdSmrg chmod a+x \$dldir/$dlname~ 25610c674dbdSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 25620c674dbdSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 25630c674dbdSmrg fi' 25640c674dbdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 25650c674dbdSmrg dlpath=$dir/\$dldll~ 25660c674dbdSmrg $RM \$dlpath' 25670c674dbdSmrg shlibpath_overrides_runpath=yes 25680c674dbdSmrg 25690c674dbdSmrg case $host_os in 25700c674dbdSmrg cygwin*) 25710c674dbdSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 25720c674dbdSmrg soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 25730c674dbdSmrgm4_if([$1], [],[ 25740c674dbdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 25750c674dbdSmrg ;; 25760c674dbdSmrg mingw* | cegcc*) 25770c674dbdSmrg # MinGW DLLs use traditional 'lib' prefix 25780c674dbdSmrg soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 25790c674dbdSmrg ;; 25800c674dbdSmrg pw32*) 25810c674dbdSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 25820c674dbdSmrg library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 25830c674dbdSmrg ;; 25840c674dbdSmrg esac 25850c674dbdSmrg dynamic_linker='Win32 ld.exe' 25860c674dbdSmrg ;; 25870c674dbdSmrg 25880c674dbdSmrg *,cl* | *,icl*) 25890c674dbdSmrg # Native MSVC or ICC 25900c674dbdSmrg libname_spec='$name' 25910c674dbdSmrg soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 25920c674dbdSmrg library_names_spec='$libname.dll.lib' 25930c674dbdSmrg 25940c674dbdSmrg case $build_os in 25950c674dbdSmrg mingw*) 25960c674dbdSmrg sys_lib_search_path_spec= 25970c674dbdSmrg lt_save_ifs=$IFS 25980c674dbdSmrg IFS=';' 25990c674dbdSmrg for lt_path in $LIB 26000c674dbdSmrg do 26010c674dbdSmrg IFS=$lt_save_ifs 26020c674dbdSmrg # Let DOS variable expansion print the short 8.3 style file name. 26030c674dbdSmrg lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 26040c674dbdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 26050c674dbdSmrg done 26060c674dbdSmrg IFS=$lt_save_ifs 26070c674dbdSmrg # Convert to MSYS style. 26080c674dbdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 26090c674dbdSmrg ;; 26100c674dbdSmrg cygwin*) 26110c674dbdSmrg # Convert to unix form, then to dos form, then back to unix form 26120c674dbdSmrg # but this time dos style (no spaces!) so that the unix form looks 26130c674dbdSmrg # like /cygdrive/c/PROGRA~1:/cygdr... 26140c674dbdSmrg sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 26150c674dbdSmrg sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 26160c674dbdSmrg sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 26170c674dbdSmrg ;; 26180c674dbdSmrg *) 26190c674dbdSmrg sys_lib_search_path_spec=$LIB 26200c674dbdSmrg if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 26210c674dbdSmrg # It is most probably a Windows format PATH. 26220c674dbdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 26230c674dbdSmrg else 26240c674dbdSmrg sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 26250c674dbdSmrg fi 26260c674dbdSmrg # FIXME: find the short name or the path components, as spaces are 26270c674dbdSmrg # common. (e.g. "Program Files" -> "PROGRA~1") 26280c674dbdSmrg ;; 26290c674dbdSmrg esac 26300c674dbdSmrg 26310c674dbdSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 26320c674dbdSmrg postinstall_cmds='base_file=`basename \$file`~ 26330c674dbdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 26340c674dbdSmrg dldir=$destdir/`dirname \$dlpath`~ 26350c674dbdSmrg test -d \$dldir || mkdir -p \$dldir~ 26360c674dbdSmrg $install_prog $dir/$dlname \$dldir/$dlname' 26370c674dbdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 26380c674dbdSmrg dlpath=$dir/\$dldll~ 26390c674dbdSmrg $RM \$dlpath' 26400c674dbdSmrg shlibpath_overrides_runpath=yes 26410c674dbdSmrg dynamic_linker='Win32 link.exe' 26420c674dbdSmrg ;; 26430c674dbdSmrg 26440c674dbdSmrg *) 26450c674dbdSmrg # Assume MSVC and ICC wrapper 26460c674dbdSmrg library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 26470c674dbdSmrg dynamic_linker='Win32 ld.exe' 26480c674dbdSmrg ;; 26490c674dbdSmrg esac 26500c674dbdSmrg # FIXME: first we should search . and the directory the executable is in 26510c674dbdSmrg shlibpath_var=PATH 26520c674dbdSmrg ;; 26530c674dbdSmrg 26540c674dbdSmrgdarwin* | rhapsody*) 26550c674dbdSmrg dynamic_linker="$host_os dyld" 26560c674dbdSmrg version_type=darwin 26570c674dbdSmrg need_lib_prefix=no 26580c674dbdSmrg need_version=no 26590c674dbdSmrg library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 26600c674dbdSmrg soname_spec='$libname$release$major$shared_ext' 26610c674dbdSmrg shlibpath_overrides_runpath=yes 26620c674dbdSmrg shlibpath_var=DYLD_LIBRARY_PATH 26630c674dbdSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 26640c674dbdSmrgm4_if([$1], [],[ 26650c674dbdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 26660c674dbdSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 26670c674dbdSmrg ;; 26680c674dbdSmrg 26690c674dbdSmrgdgux*) 26700c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 26710c674dbdSmrg need_lib_prefix=no 26720c674dbdSmrg need_version=no 26730c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 26740c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 26750c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 26760c674dbdSmrg ;; 26770c674dbdSmrg 26780c674dbdSmrgfreebsd* | dragonfly* | midnightbsd*) 26790c674dbdSmrg # DragonFly does not have aout. When/if they implement a new 26800c674dbdSmrg # versioning mechanism, adjust this. 26810c674dbdSmrg if test -x /usr/bin/objformat; then 26820c674dbdSmrg objformat=`/usr/bin/objformat` 26830c674dbdSmrg else 26840c674dbdSmrg case $host_os in 26850c674dbdSmrg freebsd[[23]].*) objformat=aout ;; 26860c674dbdSmrg *) objformat=elf ;; 26870c674dbdSmrg esac 26880c674dbdSmrg fi 26890c674dbdSmrg version_type=freebsd-$objformat 26900c674dbdSmrg case $version_type in 26910c674dbdSmrg freebsd-elf*) 26920c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 26930c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 26940c674dbdSmrg need_version=no 26950c674dbdSmrg need_lib_prefix=no 26960c674dbdSmrg ;; 26970c674dbdSmrg freebsd-*) 26980c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 26990c674dbdSmrg need_version=yes 27000c674dbdSmrg ;; 27010c674dbdSmrg esac 27020c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 27030c674dbdSmrg case $host_os in 27040c674dbdSmrg freebsd2.*) 27050c674dbdSmrg shlibpath_overrides_runpath=yes 27060c674dbdSmrg ;; 27070c674dbdSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 27080c674dbdSmrg shlibpath_overrides_runpath=yes 27090c674dbdSmrg hardcode_into_libs=yes 27100c674dbdSmrg ;; 27110c674dbdSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 27120c674dbdSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 27130c674dbdSmrg shlibpath_overrides_runpath=no 27140c674dbdSmrg hardcode_into_libs=yes 27150c674dbdSmrg ;; 27160c674dbdSmrg *) # from 4.6 on, and DragonFly 27170c674dbdSmrg shlibpath_overrides_runpath=yes 27180c674dbdSmrg hardcode_into_libs=yes 27190c674dbdSmrg ;; 27200c674dbdSmrg esac 27210c674dbdSmrg ;; 27220c674dbdSmrg 27230c674dbdSmrghaiku*) 27240c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 27250c674dbdSmrg need_lib_prefix=no 27260c674dbdSmrg need_version=no 27270c674dbdSmrg dynamic_linker="$host_os runtime_loader" 27280c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27290c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 27300c674dbdSmrg shlibpath_var=LIBRARY_PATH 27310c674dbdSmrg shlibpath_overrides_runpath=no 27320c674dbdSmrg sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 27330c674dbdSmrg hardcode_into_libs=yes 27340c674dbdSmrg ;; 27350c674dbdSmrg 27360c674dbdSmrghpux9* | hpux10* | hpux11*) 27370c674dbdSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 27380c674dbdSmrg # link against other versions. 27390c674dbdSmrg version_type=sunos 27400c674dbdSmrg need_lib_prefix=no 27410c674dbdSmrg need_version=no 27420c674dbdSmrg case $host_cpu in 27430c674dbdSmrg ia64*) 27440c674dbdSmrg shrext_cmds='.so' 27450c674dbdSmrg hardcode_into_libs=yes 27460c674dbdSmrg dynamic_linker="$host_os dld.so" 27470c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 27480c674dbdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 27490c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27500c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 27510c674dbdSmrg if test 32 = "$HPUX_IA64_MODE"; then 27520c674dbdSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 27530c674dbdSmrg sys_lib_dlsearch_path_spec=/usr/lib/hpux32 27540c674dbdSmrg else 27550c674dbdSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 27560c674dbdSmrg sys_lib_dlsearch_path_spec=/usr/lib/hpux64 27570c674dbdSmrg fi 27580c674dbdSmrg ;; 27590c674dbdSmrg hppa*64*) 27600c674dbdSmrg shrext_cmds='.sl' 27610c674dbdSmrg hardcode_into_libs=yes 27620c674dbdSmrg dynamic_linker="$host_os dld.sl" 27630c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 27640c674dbdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 27650c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27660c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 27670c674dbdSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 27680c674dbdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 27690c674dbdSmrg ;; 27700c674dbdSmrg *) 27710c674dbdSmrg shrext_cmds='.sl' 27720c674dbdSmrg dynamic_linker="$host_os dld.sl" 27730c674dbdSmrg shlibpath_var=SHLIB_PATH 27740c674dbdSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 27750c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27760c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 27770c674dbdSmrg ;; 27780c674dbdSmrg esac 27790c674dbdSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 27800c674dbdSmrg postinstall_cmds='chmod 555 $lib' 27810c674dbdSmrg # or fails outright, so override atomically: 27820c674dbdSmrg install_override_mode=555 27830c674dbdSmrg ;; 27840c674dbdSmrg 27850c674dbdSmrginterix[[3-9]]*) 27860c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 27870c674dbdSmrg need_lib_prefix=no 27880c674dbdSmrg need_version=no 27890c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 27900c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 27910c674dbdSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 27920c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 27930c674dbdSmrg shlibpath_overrides_runpath=no 27940c674dbdSmrg hardcode_into_libs=yes 27950c674dbdSmrg ;; 27960c674dbdSmrg 27970c674dbdSmrgirix5* | irix6* | nonstopux*) 27980c674dbdSmrg case $host_os in 27990c674dbdSmrg nonstopux*) version_type=nonstopux ;; 28000c674dbdSmrg *) 28010c674dbdSmrg if test yes = "$lt_cv_prog_gnu_ld"; then 28020c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 28030c674dbdSmrg else 28040c674dbdSmrg version_type=irix 28050c674dbdSmrg fi ;; 28060c674dbdSmrg esac 28070c674dbdSmrg need_lib_prefix=no 28080c674dbdSmrg need_version=no 28090c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 28100c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 28110c674dbdSmrg case $host_os in 28120c674dbdSmrg irix5* | nonstopux*) 28130c674dbdSmrg libsuff= shlibsuff= 28140c674dbdSmrg ;; 28150c674dbdSmrg *) 28160c674dbdSmrg case $LD in # libtool.m4 will add one of these switches to LD 28170c674dbdSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 28180c674dbdSmrg libsuff= shlibsuff= libmagic=32-bit;; 28190c674dbdSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 28200c674dbdSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 28210c674dbdSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 28220c674dbdSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 28230c674dbdSmrg *) libsuff= shlibsuff= libmagic=never-match;; 28240c674dbdSmrg esac 28250c674dbdSmrg ;; 28260c674dbdSmrg esac 28270c674dbdSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 28280c674dbdSmrg shlibpath_overrides_runpath=no 28290c674dbdSmrg sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 28300c674dbdSmrg sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 28310c674dbdSmrg hardcode_into_libs=yes 28320c674dbdSmrg ;; 28330c674dbdSmrg 28340c674dbdSmrg# No shared lib support for Linux oldld, aout, or coff. 28350c674dbdSmrglinux*oldld* | linux*aout* | linux*coff*) 28360c674dbdSmrg dynamic_linker=no 28370c674dbdSmrg ;; 28380c674dbdSmrg 28390c674dbdSmrglinux*android*) 28400c674dbdSmrg version_type=none # Android doesn't support versioned libraries. 28410c674dbdSmrg need_lib_prefix=no 28420c674dbdSmrg need_version=no 28430c674dbdSmrg library_names_spec='$libname$release$shared_ext' 28440c674dbdSmrg soname_spec='$libname$release$shared_ext' 28450c674dbdSmrg finish_cmds= 28460c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 28470c674dbdSmrg shlibpath_overrides_runpath=yes 28480c674dbdSmrg 28490c674dbdSmrg # This implies no fast_install, which is unacceptable. 28500c674dbdSmrg # Some rework will be needed to allow for fast_install 28510c674dbdSmrg # before this can be enabled. 28520c674dbdSmrg hardcode_into_libs=yes 28530c674dbdSmrg 28540c674dbdSmrg dynamic_linker='Android linker' 28550c674dbdSmrg # Don't embed -rpath directories since the linker doesn't support them. 28560c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 28570c674dbdSmrg ;; 28580c674dbdSmrg 28590c674dbdSmrg# This must be glibc/ELF. 28600c674dbdSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 28610c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 28620c674dbdSmrg need_lib_prefix=no 28630c674dbdSmrg need_version=no 28640c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 28650c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 28660c674dbdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 28670c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 28680c674dbdSmrg shlibpath_overrides_runpath=no 28690c674dbdSmrg 28700c674dbdSmrg # Some binutils ld are patched to set DT_RUNPATH 28710c674dbdSmrg AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 28720c674dbdSmrg [lt_cv_shlibpath_overrides_runpath=no 28730c674dbdSmrg save_LDFLAGS=$LDFLAGS 28740c674dbdSmrg save_libdir=$libdir 28750c674dbdSmrg eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 28760c674dbdSmrg LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 28770c674dbdSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 28780c674dbdSmrg [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 28790c674dbdSmrg [lt_cv_shlibpath_overrides_runpath=yes])]) 28800c674dbdSmrg LDFLAGS=$save_LDFLAGS 28810c674dbdSmrg libdir=$save_libdir 28820c674dbdSmrg ]) 28830c674dbdSmrg shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 28840c674dbdSmrg 28850c674dbdSmrg # This implies no fast_install, which is unacceptable. 28860c674dbdSmrg # Some rework will be needed to allow for fast_install 28870c674dbdSmrg # before this can be enabled. 28880c674dbdSmrg hardcode_into_libs=yes 28890c674dbdSmrg 28900c674dbdSmrg # Ideally, we could use ldconfig to report *all* directores which are 28910c674dbdSmrg # searched for libraries, however this is still not possible. Aside from not 28920c674dbdSmrg # being certain /sbin/ldconfig is available, command 28930c674dbdSmrg # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 28940c674dbdSmrg # even though it is searched at run-time. Try to do the best guess by 28950c674dbdSmrg # appending ld.so.conf contents (and includes) to the search path. 28960c674dbdSmrg if test -f /etc/ld.so.conf; then 28970c674dbdSmrg 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' ' '` 28980c674dbdSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 28990c674dbdSmrg fi 29000c674dbdSmrg 29010c674dbdSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 29020c674dbdSmrg # powerpc, because MkLinux only supported shared libraries with the 29030c674dbdSmrg # GNU dynamic linker. Since this was broken with cross compilers, 29040c674dbdSmrg # most powerpc-linux boxes support dynamic linking these days and 29050c674dbdSmrg # people can always --disable-shared, the test was removed, and we 29060c674dbdSmrg # assume the GNU/Linux dynamic linker is in use. 29070c674dbdSmrg dynamic_linker='GNU/Linux ld.so' 29080c674dbdSmrg ;; 29090c674dbdSmrg 29100c674dbdSmrgnetbsd*) 29110c674dbdSmrg version_type=sunos 29120c674dbdSmrg need_lib_prefix=no 29130c674dbdSmrg need_version=no 29140c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 29150c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 29160c674dbdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29170c674dbdSmrg dynamic_linker='NetBSD (a.out) ld.so' 29180c674dbdSmrg else 29190c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 29200c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 29210c674dbdSmrg dynamic_linker='NetBSD ld.elf_so' 29220c674dbdSmrg fi 29230c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 29240c674dbdSmrg shlibpath_overrides_runpath=yes 29250c674dbdSmrg hardcode_into_libs=yes 29260c674dbdSmrg ;; 29270c674dbdSmrg 29280c674dbdSmrgnewsos6) 29290c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 29300c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 29310c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 29320c674dbdSmrg shlibpath_overrides_runpath=yes 29330c674dbdSmrg ;; 29340c674dbdSmrg 29350c674dbdSmrg*nto* | *qnx*) 29360c674dbdSmrg version_type=qnx 29370c674dbdSmrg need_lib_prefix=no 29380c674dbdSmrg need_version=no 29390c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 29400c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 29410c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 29420c674dbdSmrg shlibpath_overrides_runpath=no 29430c674dbdSmrg hardcode_into_libs=yes 29440c674dbdSmrg dynamic_linker='ldqnx.so' 29450c674dbdSmrg ;; 29460c674dbdSmrg 29470c674dbdSmrgopenbsd* | bitrig*) 29480c674dbdSmrg version_type=sunos 29490c674dbdSmrg sys_lib_dlsearch_path_spec=/usr/lib 29500c674dbdSmrg need_lib_prefix=no 29510c674dbdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 29520c674dbdSmrg need_version=no 29530c674dbdSmrg else 29540c674dbdSmrg need_version=yes 29550c674dbdSmrg fi 29560c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 29570c674dbdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 29580c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 29590c674dbdSmrg shlibpath_overrides_runpath=yes 29600c674dbdSmrg ;; 29610c674dbdSmrg 29620c674dbdSmrgos2*) 29630c674dbdSmrg libname_spec='$name' 29640c674dbdSmrg version_type=windows 29650c674dbdSmrg shrext_cmds=.dll 29660c674dbdSmrg need_version=no 29670c674dbdSmrg need_lib_prefix=no 29680c674dbdSmrg # OS/2 can only load a DLL with a base name of 8 characters or less. 29690c674dbdSmrg soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 29700c674dbdSmrg v=$($ECHO $release$versuffix | tr -d .-); 29710c674dbdSmrg n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 29720c674dbdSmrg $ECHO $n$v`$shared_ext' 29730c674dbdSmrg library_names_spec='${libname}_dll.$libext' 29740c674dbdSmrg dynamic_linker='OS/2 ld.exe' 29750c674dbdSmrg shlibpath_var=BEGINLIBPATH 29760c674dbdSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 29770c674dbdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 29780c674dbdSmrg postinstall_cmds='base_file=`basename \$file`~ 29790c674dbdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 29800c674dbdSmrg dldir=$destdir/`dirname \$dlpath`~ 29810c674dbdSmrg test -d \$dldir || mkdir -p \$dldir~ 29820c674dbdSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 29830c674dbdSmrg chmod a+x \$dldir/$dlname~ 29840c674dbdSmrg if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 29850c674dbdSmrg eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 29860c674dbdSmrg fi' 29870c674dbdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 29880c674dbdSmrg dlpath=$dir/\$dldll~ 29890c674dbdSmrg $RM \$dlpath' 29900c674dbdSmrg ;; 29910c674dbdSmrg 29920c674dbdSmrgosf3* | osf4* | osf5*) 29930c674dbdSmrg version_type=osf 29940c674dbdSmrg need_lib_prefix=no 29950c674dbdSmrg need_version=no 29960c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 29970c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 29980c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 29990c674dbdSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 30000c674dbdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 30010c674dbdSmrg ;; 30020c674dbdSmrg 30030c674dbdSmrgrdos*) 30040c674dbdSmrg dynamic_linker=no 30050c674dbdSmrg ;; 30060c674dbdSmrg 30070c674dbdSmrgsolaris*) 30080c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 30090c674dbdSmrg need_lib_prefix=no 30100c674dbdSmrg need_version=no 30110c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30120c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 30130c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30140c674dbdSmrg shlibpath_overrides_runpath=yes 30150c674dbdSmrg hardcode_into_libs=yes 30160c674dbdSmrg # ldd complains unless libraries are executable 30170c674dbdSmrg postinstall_cmds='chmod +x $lib' 30180c674dbdSmrg ;; 30190c674dbdSmrg 30200c674dbdSmrgsunos4*) 30210c674dbdSmrg version_type=sunos 30220c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 30230c674dbdSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 30240c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30250c674dbdSmrg shlibpath_overrides_runpath=yes 30260c674dbdSmrg if test yes = "$with_gnu_ld"; then 30270c674dbdSmrg need_lib_prefix=no 30280c674dbdSmrg fi 30290c674dbdSmrg need_version=yes 30300c674dbdSmrg ;; 30310c674dbdSmrg 30320c674dbdSmrgsysv4 | sysv4.3*) 30330c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 30340c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30350c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 30360c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30370c674dbdSmrg case $host_vendor in 30380c674dbdSmrg sni) 30390c674dbdSmrg shlibpath_overrides_runpath=no 30400c674dbdSmrg need_lib_prefix=no 30410c674dbdSmrg runpath_var=LD_RUN_PATH 30420c674dbdSmrg ;; 30430c674dbdSmrg siemens) 30440c674dbdSmrg need_lib_prefix=no 30450c674dbdSmrg ;; 30460c674dbdSmrg motorola) 30470c674dbdSmrg need_lib_prefix=no 30480c674dbdSmrg need_version=no 30490c674dbdSmrg shlibpath_overrides_runpath=no 30500c674dbdSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 30510c674dbdSmrg ;; 30520c674dbdSmrg esac 30530c674dbdSmrg ;; 30540c674dbdSmrg 30550c674dbdSmrgsysv4*MP*) 30560c674dbdSmrg if test -d /usr/nec; then 30570c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 30580c674dbdSmrg library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 30590c674dbdSmrg soname_spec='$libname$shared_ext.$major' 30600c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30610c674dbdSmrg fi 30620c674dbdSmrg ;; 30630c674dbdSmrg 30640c674dbdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 30650c674dbdSmrg version_type=sco 30660c674dbdSmrg need_lib_prefix=no 30670c674dbdSmrg need_version=no 30680c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 30690c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 30700c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30710c674dbdSmrg shlibpath_overrides_runpath=yes 30720c674dbdSmrg hardcode_into_libs=yes 30730c674dbdSmrg if test yes = "$with_gnu_ld"; then 30740c674dbdSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 30750c674dbdSmrg else 30760c674dbdSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 30770c674dbdSmrg case $host_os in 30780c674dbdSmrg sco3.2v5*) 30790c674dbdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 30800c674dbdSmrg ;; 30810c674dbdSmrg esac 30820c674dbdSmrg fi 30830c674dbdSmrg sys_lib_dlsearch_path_spec='/usr/lib' 30840c674dbdSmrg ;; 30850c674dbdSmrg 30860c674dbdSmrgtpf*) 30870c674dbdSmrg # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 30880c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 30890c674dbdSmrg need_lib_prefix=no 30900c674dbdSmrg need_version=no 30910c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 30920c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 30930c674dbdSmrg shlibpath_overrides_runpath=no 30940c674dbdSmrg hardcode_into_libs=yes 30950c674dbdSmrg ;; 30960c674dbdSmrg 30970c674dbdSmrguts4*) 30980c674dbdSmrg version_type=linux # correct to gnu/linux during the next big refactor 30990c674dbdSmrg library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 31000c674dbdSmrg soname_spec='$libname$release$shared_ext$major' 31010c674dbdSmrg shlibpath_var=LD_LIBRARY_PATH 31020c674dbdSmrg ;; 31030c674dbdSmrg 31040c674dbdSmrg*) 31050c674dbdSmrg dynamic_linker=no 31060c674dbdSmrg ;; 31070c674dbdSmrgesac 31080c674dbdSmrgAC_MSG_RESULT([$dynamic_linker]) 31090c674dbdSmrgtest no = "$dynamic_linker" && can_build_shared=no 31100c674dbdSmrg 31110c674dbdSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 31120c674dbdSmrgif test yes = "$GCC"; then 31130c674dbdSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 31140c674dbdSmrgfi 31150c674dbdSmrg 31160c674dbdSmrgif test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 31170c674dbdSmrg sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 31180c674dbdSmrgfi 31190c674dbdSmrg 31200c674dbdSmrgif test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 31210c674dbdSmrg sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 31220c674dbdSmrgfi 31230c674dbdSmrg 31240c674dbdSmrg# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 31250c674dbdSmrgconfigure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 31260c674dbdSmrg 31270c674dbdSmrg# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 31280c674dbdSmrgfunc_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 31290c674dbdSmrg 31300c674dbdSmrg# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 31310c674dbdSmrgconfigure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 31320c674dbdSmrg 31330c674dbdSmrg_LT_DECL([], [variables_saved_for_relink], [1], 31340c674dbdSmrg [Variables whose values should be saved in libtool wrapper scripts and 31350c674dbdSmrg restored at link time]) 31360c674dbdSmrg_LT_DECL([], [need_lib_prefix], [0], 31370c674dbdSmrg [Do we need the "lib" prefix for modules?]) 31380c674dbdSmrg_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 31390c674dbdSmrg_LT_DECL([], [version_type], [0], [Library versioning type]) 31400c674dbdSmrg_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 31410c674dbdSmrg_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 31420c674dbdSmrg_LT_DECL([], [shlibpath_overrides_runpath], [0], 31430c674dbdSmrg [Is shlibpath searched before the hard-coded library search path?]) 31440c674dbdSmrg_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 31450c674dbdSmrg_LT_DECL([], [library_names_spec], [1], 31460c674dbdSmrg [[List of archive names. First name is the real one, the rest are links. 31470c674dbdSmrg The last name is the one that the linker finds with -lNAME]]) 31480c674dbdSmrg_LT_DECL([], [soname_spec], [1], 31490c674dbdSmrg [[The coded name of the library, if different from the real name]]) 31500c674dbdSmrg_LT_DECL([], [install_override_mode], [1], 31510c674dbdSmrg [Permission mode override for installation of shared libraries]) 31520c674dbdSmrg_LT_DECL([], [postinstall_cmds], [2], 31530c674dbdSmrg [Command to use after installation of a shared archive]) 31540c674dbdSmrg_LT_DECL([], [postuninstall_cmds], [2], 31550c674dbdSmrg [Command to use after uninstallation of a shared archive]) 31560c674dbdSmrg_LT_DECL([], [finish_cmds], [2], 31570c674dbdSmrg [Commands used to finish a libtool library installation in a directory]) 31580c674dbdSmrg_LT_DECL([], [finish_eval], [1], 31590c674dbdSmrg [[As "finish_cmds", except a single script fragment to be evaled but 31600c674dbdSmrg not shown]]) 31610c674dbdSmrg_LT_DECL([], [hardcode_into_libs], [0], 31620c674dbdSmrg [Whether we should hardcode library paths into libraries]) 31630c674dbdSmrg_LT_DECL([], [sys_lib_search_path_spec], [2], 31640c674dbdSmrg [Compile-time system search path for libraries]) 31650c674dbdSmrg_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 31660c674dbdSmrg [Detected run-time system search path for libraries]) 31670c674dbdSmrg_LT_DECL([], [configure_time_lt_sys_library_path], [2], 31680c674dbdSmrg [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 31690c674dbdSmrg])# _LT_SYS_DYNAMIC_LINKER 31700c674dbdSmrg 31710c674dbdSmrg 31720c674dbdSmrg# _LT_PATH_TOOL_PREFIX(TOOL) 31730c674dbdSmrg# -------------------------- 31740c674dbdSmrg# find a file program that can recognize shared library 31750c674dbdSmrgAC_DEFUN([_LT_PATH_TOOL_PREFIX], 31760c674dbdSmrg[m4_require([_LT_DECL_EGREP])dnl 31770c674dbdSmrgAC_MSG_CHECKING([for $1]) 31780c674dbdSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 31790c674dbdSmrg[case $MAGIC_CMD in 31800c674dbdSmrg[[\\/*] | ?:[\\/]*]) 31810c674dbdSmrg lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 31820c674dbdSmrg ;; 31830c674dbdSmrg*) 31840c674dbdSmrg lt_save_MAGIC_CMD=$MAGIC_CMD 31850c674dbdSmrg lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 31860c674dbdSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 31870c674dbdSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 31880c674dbdSmrgdnl not every word. This closes a longstanding sh security hole. 31890c674dbdSmrg ac_dummy="m4_if([$2], , $PATH, [$2])" 31900c674dbdSmrg for ac_dir in $ac_dummy; do 31910c674dbdSmrg IFS=$lt_save_ifs 31920c674dbdSmrg test -z "$ac_dir" && ac_dir=. 31930c674dbdSmrg if test -f "$ac_dir/$1"; then 31940c674dbdSmrg lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 31950c674dbdSmrg if test -n "$file_magic_test_file"; then 31960c674dbdSmrg case $deplibs_check_method in 31970c674dbdSmrg "file_magic "*) 31980c674dbdSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 31990c674dbdSmrg MAGIC_CMD=$lt_cv_path_MAGIC_CMD 32000c674dbdSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 32010c674dbdSmrg $EGREP "$file_magic_regex" > /dev/null; then 32020c674dbdSmrg : 32030c674dbdSmrg else 32040c674dbdSmrg cat <<_LT_EOF 1>&2 32050c674dbdSmrg 32060c674dbdSmrg*** Warning: the command libtool uses to detect shared libraries, 32070c674dbdSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 32080c674dbdSmrg*** The result is that libtool may fail to recognize shared libraries 32090c674dbdSmrg*** as such. This will affect the creation of libtool libraries that 32100c674dbdSmrg*** depend on shared libraries, but programs linked with such libtool 32110c674dbdSmrg*** libraries will work regardless of this problem. Nevertheless, you 32120c674dbdSmrg*** may want to report the problem to your system manager and/or to 32130c674dbdSmrg*** bug-libtool@gnu.org 32140c674dbdSmrg 32150c674dbdSmrg_LT_EOF 32160c674dbdSmrg fi ;; 32170c674dbdSmrg esac 32180c674dbdSmrg fi 32190c674dbdSmrg break 32200c674dbdSmrg fi 32210c674dbdSmrg done 32220c674dbdSmrg IFS=$lt_save_ifs 32230c674dbdSmrg MAGIC_CMD=$lt_save_MAGIC_CMD 32240c674dbdSmrg ;; 32250c674dbdSmrgesac]) 32260c674dbdSmrgMAGIC_CMD=$lt_cv_path_MAGIC_CMD 32270c674dbdSmrgif test -n "$MAGIC_CMD"; then 32280c674dbdSmrg AC_MSG_RESULT($MAGIC_CMD) 32290c674dbdSmrgelse 32300c674dbdSmrg AC_MSG_RESULT(no) 32310c674dbdSmrgfi 32320c674dbdSmrg_LT_DECL([], [MAGIC_CMD], [0], 32330c674dbdSmrg [Used to examine libraries when file_magic_cmd begins with "file"])dnl 32340c674dbdSmrg])# _LT_PATH_TOOL_PREFIX 32350c674dbdSmrg 32360c674dbdSmrg# Old name: 32370c674dbdSmrgAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 32380c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 32390c674dbdSmrgdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 32400c674dbdSmrg 32410c674dbdSmrg 32420c674dbdSmrg# _LT_PATH_MAGIC 32430c674dbdSmrg# -------------- 32440c674dbdSmrg# find a file program that can recognize a shared library 32450c674dbdSmrgm4_defun([_LT_PATH_MAGIC], 32460c674dbdSmrg[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 32470c674dbdSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 32480c674dbdSmrg if test -n "$ac_tool_prefix"; then 32490c674dbdSmrg _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 32500c674dbdSmrg else 32510c674dbdSmrg MAGIC_CMD=: 32520c674dbdSmrg fi 32530c674dbdSmrgfi 32540c674dbdSmrg])# _LT_PATH_MAGIC 32550c674dbdSmrg 32560c674dbdSmrg 32570c674dbdSmrg# LT_PATH_LD 32580c674dbdSmrg# ---------- 32590c674dbdSmrg# find the pathname to the GNU or non-GNU linker 32600c674dbdSmrgAC_DEFUN([LT_PATH_LD], 32610c674dbdSmrg[AC_REQUIRE([AC_PROG_CC])dnl 32620c674dbdSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 32630c674dbdSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 32640c674dbdSmrgm4_require([_LT_DECL_SED])dnl 32650c674dbdSmrgm4_require([_LT_DECL_EGREP])dnl 32660c674dbdSmrgm4_require([_LT_PROG_ECHO_BACKSLASH])dnl 32670c674dbdSmrg 32680c674dbdSmrgAC_ARG_WITH([gnu-ld], 32690c674dbdSmrg [AS_HELP_STRING([--with-gnu-ld], 32700c674dbdSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 32710c674dbdSmrg [test no = "$withval" || with_gnu_ld=yes], 32720c674dbdSmrg [with_gnu_ld=no])dnl 32730c674dbdSmrg 32740c674dbdSmrgac_prog=ld 32750c674dbdSmrgif test yes = "$GCC"; then 32760c674dbdSmrg # Check if gcc -print-prog-name=ld gives a path. 32770c674dbdSmrg AC_MSG_CHECKING([for ld used by $CC]) 32780c674dbdSmrg case $host in 32790c674dbdSmrg *-*-mingw*) 32800c674dbdSmrg # gcc leaves a trailing carriage return, which upsets mingw 32810c674dbdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 32820c674dbdSmrg *) 32830c674dbdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 32840c674dbdSmrg esac 32850c674dbdSmrg case $ac_prog in 32860c674dbdSmrg # Accept absolute paths. 32870c674dbdSmrg [[\\/]]* | ?:[[\\/]]*) 32880c674dbdSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 32890c674dbdSmrg # Canonicalize the pathname of ld 32900c674dbdSmrg ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 32910c674dbdSmrg while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 32920c674dbdSmrg ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 32930c674dbdSmrg done 32940c674dbdSmrg test -z "$LD" && LD=$ac_prog 32950c674dbdSmrg ;; 32960c674dbdSmrg "") 32970c674dbdSmrg # If it fails, then pretend we aren't using GCC. 32980c674dbdSmrg ac_prog=ld 32990c674dbdSmrg ;; 33000c674dbdSmrg *) 33010c674dbdSmrg # If it is relative, then search for the first ld in PATH. 33020c674dbdSmrg with_gnu_ld=unknown 33030c674dbdSmrg ;; 33040c674dbdSmrg esac 33050c674dbdSmrgelif test yes = "$with_gnu_ld"; then 33060c674dbdSmrg AC_MSG_CHECKING([for GNU ld]) 33070c674dbdSmrgelse 33080c674dbdSmrg AC_MSG_CHECKING([for non-GNU ld]) 33090c674dbdSmrgfi 33100c674dbdSmrgAC_CACHE_VAL(lt_cv_path_LD, 33110c674dbdSmrg[if test -z "$LD"; then 33120c674dbdSmrg lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 33130c674dbdSmrg for ac_dir in $PATH; do 33140c674dbdSmrg IFS=$lt_save_ifs 33150c674dbdSmrg test -z "$ac_dir" && ac_dir=. 33160c674dbdSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 33170c674dbdSmrg lt_cv_path_LD=$ac_dir/$ac_prog 33180c674dbdSmrg # Check to see if the program is GNU ld. I'd rather use --version, 33190c674dbdSmrg # but apparently some variants of GNU ld only accept -v. 33200c674dbdSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 33210c674dbdSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 33220c674dbdSmrg *GNU* | *'with BFD'*) 33230c674dbdSmrg test no != "$with_gnu_ld" && break 33240c674dbdSmrg ;; 33250c674dbdSmrg *) 33260c674dbdSmrg test yes != "$with_gnu_ld" && break 33270c674dbdSmrg ;; 33280c674dbdSmrg esac 33290c674dbdSmrg fi 33300c674dbdSmrg done 33310c674dbdSmrg IFS=$lt_save_ifs 33320c674dbdSmrgelse 33330c674dbdSmrg lt_cv_path_LD=$LD # Let the user override the test with a path. 33340c674dbdSmrgfi]) 33350c674dbdSmrgLD=$lt_cv_path_LD 33360c674dbdSmrgif test -n "$LD"; then 33370c674dbdSmrg AC_MSG_RESULT($LD) 33380c674dbdSmrgelse 33390c674dbdSmrg AC_MSG_RESULT(no) 33400c674dbdSmrgfi 33410c674dbdSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 33420c674dbdSmrg_LT_PATH_LD_GNU 33430c674dbdSmrgAC_SUBST([LD]) 33440c674dbdSmrg 33450c674dbdSmrg_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 33460c674dbdSmrg])# LT_PATH_LD 33470c674dbdSmrg 33480c674dbdSmrg# Old names: 33490c674dbdSmrgAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 33500c674dbdSmrgAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 33510c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 33520c674dbdSmrgdnl AC_DEFUN([AM_PROG_LD], []) 33530c674dbdSmrgdnl AC_DEFUN([AC_PROG_LD], []) 33540c674dbdSmrg 33550c674dbdSmrg 33560c674dbdSmrg# _LT_PATH_LD_GNU 33570c674dbdSmrg#- -------------- 33580c674dbdSmrgm4_defun([_LT_PATH_LD_GNU], 33590c674dbdSmrg[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 33600c674dbdSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 33610c674dbdSmrgcase `$LD -v 2>&1 </dev/null` in 33620c674dbdSmrg*GNU* | *'with BFD'*) 33630c674dbdSmrg lt_cv_prog_gnu_ld=yes 33640c674dbdSmrg ;; 33650c674dbdSmrg*) 33660c674dbdSmrg lt_cv_prog_gnu_ld=no 33670c674dbdSmrg ;; 33680c674dbdSmrgesac]) 33690c674dbdSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 33700c674dbdSmrg])# _LT_PATH_LD_GNU 33710c674dbdSmrg 33720c674dbdSmrg 33730c674dbdSmrg# _LT_CMD_RELOAD 33740c674dbdSmrg# -------------- 33750c674dbdSmrg# find reload flag for linker 33760c674dbdSmrg# -- PORTME Some linkers may need a different reload flag. 33770c674dbdSmrgm4_defun([_LT_CMD_RELOAD], 33780c674dbdSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 33790c674dbdSmrg lt_cv_ld_reload_flag, 33800c674dbdSmrg [lt_cv_ld_reload_flag='-r']) 33810c674dbdSmrgreload_flag=$lt_cv_ld_reload_flag 33820c674dbdSmrgcase $reload_flag in 33830c674dbdSmrg"" | " "*) ;; 33840c674dbdSmrg*) reload_flag=" $reload_flag" ;; 33850c674dbdSmrgesac 33860c674dbdSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 33870c674dbdSmrgcase $host_os in 33880c674dbdSmrg cygwin* | mingw* | pw32* | cegcc*) 33890c674dbdSmrg if test yes != "$GCC"; then 33900c674dbdSmrg reload_cmds=false 33910c674dbdSmrg fi 33920c674dbdSmrg ;; 33930c674dbdSmrg darwin*) 33940c674dbdSmrg if test yes = "$GCC"; then 33950c674dbdSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 33960c674dbdSmrg else 33970c674dbdSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 33980c674dbdSmrg fi 33990c674dbdSmrg ;; 34000c674dbdSmrgesac 34010c674dbdSmrg_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 34020c674dbdSmrg_LT_TAGDECL([], [reload_cmds], [2])dnl 34030c674dbdSmrg])# _LT_CMD_RELOAD 34040c674dbdSmrg 34050c674dbdSmrg 34060c674dbdSmrg# _LT_PATH_DD 34070c674dbdSmrg# ----------- 34080c674dbdSmrg# find a working dd 34090c674dbdSmrgm4_defun([_LT_PATH_DD], 34100c674dbdSmrg[AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 34110c674dbdSmrg[printf 0123456789abcdef0123456789abcdef >conftest.i 34120c674dbdSmrgcat conftest.i conftest.i >conftest2.i 34130c674dbdSmrg: ${lt_DD:=$DD} 34140c674dbdSmrgAC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 34150c674dbdSmrg[if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 34160c674dbdSmrg cmp -s conftest.i conftest.out \ 34170c674dbdSmrg && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 34180c674dbdSmrgfi]) 34190c674dbdSmrgrm -f conftest.i conftest2.i conftest.out]) 34200c674dbdSmrg])# _LT_PATH_DD 34210c674dbdSmrg 34220c674dbdSmrg 34230c674dbdSmrg# _LT_CMD_TRUNCATE 34240c674dbdSmrg# ---------------- 34250c674dbdSmrg# find command to truncate a binary pipe 34260c674dbdSmrgm4_defun([_LT_CMD_TRUNCATE], 34270c674dbdSmrg[m4_require([_LT_PATH_DD]) 34280c674dbdSmrgAC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 34290c674dbdSmrg[printf 0123456789abcdef0123456789abcdef >conftest.i 34300c674dbdSmrgcat conftest.i conftest.i >conftest2.i 34310c674dbdSmrglt_cv_truncate_bin= 34320c674dbdSmrgif "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 34330c674dbdSmrg cmp -s conftest.i conftest.out \ 34340c674dbdSmrg && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 34350c674dbdSmrgfi 34360c674dbdSmrgrm -f conftest.i conftest2.i conftest.out 34370c674dbdSmrgtest -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 34380c674dbdSmrg_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 34390c674dbdSmrg [Command to truncate a binary pipe]) 34400c674dbdSmrg])# _LT_CMD_TRUNCATE 34410c674dbdSmrg 34420c674dbdSmrg 34430c674dbdSmrg# _LT_CHECK_MAGIC_METHOD 34440c674dbdSmrg# ---------------------- 34450c674dbdSmrg# how to check for library dependencies 34460c674dbdSmrg# -- PORTME fill in with the dynamic library characteristics 34470c674dbdSmrgm4_defun([_LT_CHECK_MAGIC_METHOD], 34480c674dbdSmrg[m4_require([_LT_DECL_EGREP]) 34490c674dbdSmrgm4_require([_LT_DECL_OBJDUMP]) 34500c674dbdSmrgAC_CACHE_CHECK([how to recognize dependent libraries], 34510c674dbdSmrglt_cv_deplibs_check_method, 34520c674dbdSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 34530c674dbdSmrglt_cv_file_magic_test_file= 34540c674dbdSmrglt_cv_deplibs_check_method='unknown' 34550c674dbdSmrg# Need to set the preceding variable on all platforms that support 34560c674dbdSmrg# interlibrary dependencies. 34570c674dbdSmrg# 'none' -- dependencies not supported. 34580c674dbdSmrg# 'unknown' -- same as none, but documents that we really don't know. 34590c674dbdSmrg# 'pass_all' -- all dependencies passed with no checks. 34600c674dbdSmrg# 'test_compile' -- check by making test program. 34610c674dbdSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 34620c674dbdSmrg# that responds to the $file_magic_cmd with a given extended regex. 34630c674dbdSmrg# If you have 'file' or equivalent on your system and you're not sure 34640c674dbdSmrg# whether 'pass_all' will *always* work, you probably want this one. 34650c674dbdSmrg 34660c674dbdSmrgcase $host_os in 34670c674dbdSmrgaix[[4-9]]*) 34680c674dbdSmrg lt_cv_deplibs_check_method=pass_all 34690c674dbdSmrg ;; 34700c674dbdSmrg 34710c674dbdSmrgbeos*) 34720c674dbdSmrg lt_cv_deplibs_check_method=pass_all 34730c674dbdSmrg ;; 34740c674dbdSmrg 34750c674dbdSmrgbsdi[[45]]*) 34760c674dbdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 34770c674dbdSmrg lt_cv_file_magic_cmd='$FILECMD -L' 34780c674dbdSmrg lt_cv_file_magic_test_file=/shlib/libc.so 34790c674dbdSmrg ;; 34800c674dbdSmrg 34810c674dbdSmrgcygwin*) 34820c674dbdSmrg # func_win32_libid is a shell function defined in ltmain.sh 34830c674dbdSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 34840c674dbdSmrg lt_cv_file_magic_cmd='func_win32_libid' 34850c674dbdSmrg ;; 34860c674dbdSmrg 34870c674dbdSmrgmingw* | pw32*) 34880c674dbdSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 34890c674dbdSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 34900c674dbdSmrg # unless we find 'file', for example because we are cross-compiling. 34910c674dbdSmrg if ( file / ) >/dev/null 2>&1; then 34920c674dbdSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 34930c674dbdSmrg lt_cv_file_magic_cmd='func_win32_libid' 34940c674dbdSmrg else 34950c674dbdSmrg # Keep this pattern in sync with the one in func_win32_libid. 34960c674dbdSmrg lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 34970c674dbdSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 34980c674dbdSmrg fi 34990c674dbdSmrg ;; 35000c674dbdSmrg 35010c674dbdSmrgcegcc*) 35020c674dbdSmrg # use the weaker test based on 'objdump'. See mingw*. 35030c674dbdSmrg lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 35040c674dbdSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 35050c674dbdSmrg ;; 35060c674dbdSmrg 35070c674dbdSmrgdarwin* | rhapsody*) 35080c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35090c674dbdSmrg ;; 35100c674dbdSmrg 35110c674dbdSmrgfreebsd* | dragonfly* | midnightbsd*) 35120c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 35130c674dbdSmrg case $host_cpu in 35140c674dbdSmrg i*86 ) 35150c674dbdSmrg # Not sure whether the presence of OpenBSD here was a mistake. 35160c674dbdSmrg # Let's accept both of them until this is cleared up. 35170c674dbdSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 35180c674dbdSmrg lt_cv_file_magic_cmd=$FILECMD 35190c674dbdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 35200c674dbdSmrg ;; 35210c674dbdSmrg esac 35220c674dbdSmrg else 35230c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35240c674dbdSmrg fi 35250c674dbdSmrg ;; 35260c674dbdSmrg 35270c674dbdSmrghaiku*) 35280c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35290c674dbdSmrg ;; 35300c674dbdSmrg 35310c674dbdSmrghpux10.20* | hpux11*) 35320c674dbdSmrg lt_cv_file_magic_cmd=$FILECMD 35330c674dbdSmrg case $host_cpu in 35340c674dbdSmrg ia64*) 35350c674dbdSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 35360c674dbdSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 35370c674dbdSmrg ;; 35380c674dbdSmrg hppa*64*) 35390c674dbdSmrg [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]'] 35400c674dbdSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 35410c674dbdSmrg ;; 35420c674dbdSmrg *) 35430c674dbdSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 35440c674dbdSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 35450c674dbdSmrg ;; 35460c674dbdSmrg esac 35470c674dbdSmrg ;; 35480c674dbdSmrg 35490c674dbdSmrginterix[[3-9]]*) 35500c674dbdSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 35510c674dbdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 35520c674dbdSmrg ;; 35530c674dbdSmrg 35540c674dbdSmrgirix5* | irix6* | nonstopux*) 35550c674dbdSmrg case $LD in 35560c674dbdSmrg *-32|*"-32 ") libmagic=32-bit;; 35570c674dbdSmrg *-n32|*"-n32 ") libmagic=N32;; 35580c674dbdSmrg *-64|*"-64 ") libmagic=64-bit;; 35590c674dbdSmrg *) libmagic=never-match;; 35600c674dbdSmrg esac 35610c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35620c674dbdSmrg ;; 35630c674dbdSmrg 35640c674dbdSmrg# This must be glibc/ELF. 35650c674dbdSmrglinux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 35660c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35670c674dbdSmrg ;; 35680c674dbdSmrg 35690c674dbdSmrgnetbsd*) 35700c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 35710c674dbdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 35720c674dbdSmrg else 35730c674dbdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 35740c674dbdSmrg fi 35750c674dbdSmrg ;; 35760c674dbdSmrg 35770c674dbdSmrgnewos6*) 35780c674dbdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 35790c674dbdSmrg lt_cv_file_magic_cmd=$FILECMD 35800c674dbdSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 35810c674dbdSmrg ;; 35820c674dbdSmrg 35830c674dbdSmrg*nto* | *qnx*) 35840c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35850c674dbdSmrg ;; 35860c674dbdSmrg 35870c674dbdSmrgopenbsd* | bitrig*) 35880c674dbdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 35890c674dbdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 35900c674dbdSmrg else 35910c674dbdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 35920c674dbdSmrg fi 35930c674dbdSmrg ;; 35940c674dbdSmrg 35950c674dbdSmrgosf3* | osf4* | osf5*) 35960c674dbdSmrg lt_cv_deplibs_check_method=pass_all 35970c674dbdSmrg ;; 35980c674dbdSmrg 35990c674dbdSmrgrdos*) 36000c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36010c674dbdSmrg ;; 36020c674dbdSmrg 36030c674dbdSmrgsolaris*) 36040c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36050c674dbdSmrg ;; 36060c674dbdSmrg 36070c674dbdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 36080c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36090c674dbdSmrg ;; 36100c674dbdSmrg 36110c674dbdSmrgsysv4 | sysv4.3*) 36120c674dbdSmrg case $host_vendor in 36130c674dbdSmrg motorola) 36140c674dbdSmrg 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]]' 36150c674dbdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 36160c674dbdSmrg ;; 36170c674dbdSmrg ncr) 36180c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36190c674dbdSmrg ;; 36200c674dbdSmrg sequent) 36210c674dbdSmrg lt_cv_file_magic_cmd='/bin/file' 36220c674dbdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 36230c674dbdSmrg ;; 36240c674dbdSmrg sni) 36250c674dbdSmrg lt_cv_file_magic_cmd='/bin/file' 36260c674dbdSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 36270c674dbdSmrg lt_cv_file_magic_test_file=/lib/libc.so 36280c674dbdSmrg ;; 36290c674dbdSmrg siemens) 36300c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36310c674dbdSmrg ;; 36320c674dbdSmrg pc) 36330c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36340c674dbdSmrg ;; 36350c674dbdSmrg esac 36360c674dbdSmrg ;; 36370c674dbdSmrg 36380c674dbdSmrgtpf*) 36390c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36400c674dbdSmrg ;; 36410c674dbdSmrgos2*) 36420c674dbdSmrg lt_cv_deplibs_check_method=pass_all 36430c674dbdSmrg ;; 36440c674dbdSmrgesac 36450c674dbdSmrg]) 36460c674dbdSmrg 36470c674dbdSmrgfile_magic_glob= 36480c674dbdSmrgwant_nocaseglob=no 36490c674dbdSmrgif test "$build" = "$host"; then 36500c674dbdSmrg case $host_os in 36510c674dbdSmrg mingw* | pw32*) 36520c674dbdSmrg if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 36530c674dbdSmrg want_nocaseglob=yes 36540c674dbdSmrg else 36550c674dbdSmrg file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 36560c674dbdSmrg fi 36570c674dbdSmrg ;; 36580c674dbdSmrg esac 36590c674dbdSmrgfi 36600c674dbdSmrg 36610c674dbdSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 36620c674dbdSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 36630c674dbdSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 36640c674dbdSmrg 36650c674dbdSmrg_LT_DECL([], [deplibs_check_method], [1], 36660c674dbdSmrg [Method to check whether dependent libraries are shared objects]) 36670c674dbdSmrg_LT_DECL([], [file_magic_cmd], [1], 36680c674dbdSmrg [Command to use when deplibs_check_method = "file_magic"]) 36690c674dbdSmrg_LT_DECL([], [file_magic_glob], [1], 36700c674dbdSmrg [How to find potential files when deplibs_check_method = "file_magic"]) 36710c674dbdSmrg_LT_DECL([], [want_nocaseglob], [1], 36720c674dbdSmrg [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 36730c674dbdSmrg])# _LT_CHECK_MAGIC_METHOD 36740c674dbdSmrg 36750c674dbdSmrg 36760c674dbdSmrg# LT_PATH_NM 36770c674dbdSmrg# ---------- 36780c674dbdSmrg# find the pathname to a BSD- or MS-compatible name lister 36790c674dbdSmrgAC_DEFUN([LT_PATH_NM], 36800c674dbdSmrg[AC_REQUIRE([AC_PROG_CC])dnl 36810c674dbdSmrgAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 36820c674dbdSmrg[if test -n "$NM"; then 36830c674dbdSmrg # Let the user override the test. 36840c674dbdSmrg lt_cv_path_NM=$NM 36850c674dbdSmrgelse 36860c674dbdSmrg lt_nm_to_check=${ac_tool_prefix}nm 36870c674dbdSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 36880c674dbdSmrg lt_nm_to_check="$lt_nm_to_check nm" 36890c674dbdSmrg fi 36900c674dbdSmrg for lt_tmp_nm in $lt_nm_to_check; do 36910c674dbdSmrg lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 36920c674dbdSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 36930c674dbdSmrg IFS=$lt_save_ifs 36940c674dbdSmrg test -z "$ac_dir" && ac_dir=. 36950c674dbdSmrg tmp_nm=$ac_dir/$lt_tmp_nm 36960c674dbdSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 36970c674dbdSmrg # Check to see if the nm accepts a BSD-compat flag. 36980c674dbdSmrg # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 36990c674dbdSmrg # nm: unknown option "B" ignored 37000c674dbdSmrg # Tru64's nm complains that /dev/null is an invalid object file 37010c674dbdSmrg # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 37020c674dbdSmrg case $build_os in 37030c674dbdSmrg mingw*) lt_bad_file=conftest.nm/nofile ;; 37040c674dbdSmrg *) lt_bad_file=/dev/null ;; 37050c674dbdSmrg esac 37060c674dbdSmrg case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 37070c674dbdSmrg *$lt_bad_file* | *'Invalid file or object type'*) 37080c674dbdSmrg lt_cv_path_NM="$tmp_nm -B" 37090c674dbdSmrg break 2 37100c674dbdSmrg ;; 37110c674dbdSmrg *) 37120c674dbdSmrg case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 37130c674dbdSmrg */dev/null*) 37140c674dbdSmrg lt_cv_path_NM="$tmp_nm -p" 37150c674dbdSmrg break 2 37160c674dbdSmrg ;; 37170c674dbdSmrg *) 37180c674dbdSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 37190c674dbdSmrg continue # so that we can try to find one that supports BSD flags 37200c674dbdSmrg ;; 37210c674dbdSmrg esac 37220c674dbdSmrg ;; 37230c674dbdSmrg esac 37240c674dbdSmrg fi 37250c674dbdSmrg done 37260c674dbdSmrg IFS=$lt_save_ifs 37270c674dbdSmrg done 37280c674dbdSmrg : ${lt_cv_path_NM=no} 37290c674dbdSmrgfi]) 37300c674dbdSmrgif test no != "$lt_cv_path_NM"; then 37310c674dbdSmrg NM=$lt_cv_path_NM 37320c674dbdSmrgelse 37330c674dbdSmrg # Didn't find any BSD compatible name lister, look for dumpbin. 37340c674dbdSmrg if test -n "$DUMPBIN"; then : 37350c674dbdSmrg # Let the user override the test. 37360c674dbdSmrg else 37370c674dbdSmrg AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 37380c674dbdSmrg case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 37390c674dbdSmrg *COFF*) 37400c674dbdSmrg DUMPBIN="$DUMPBIN -symbols -headers" 37410c674dbdSmrg ;; 37420c674dbdSmrg *) 37430c674dbdSmrg DUMPBIN=: 37440c674dbdSmrg ;; 37450c674dbdSmrg esac 37460c674dbdSmrg fi 37470c674dbdSmrg AC_SUBST([DUMPBIN]) 37480c674dbdSmrg if test : != "$DUMPBIN"; then 37490c674dbdSmrg NM=$DUMPBIN 37500c674dbdSmrg fi 37510c674dbdSmrgfi 37520c674dbdSmrgtest -z "$NM" && NM=nm 37530c674dbdSmrgAC_SUBST([NM]) 37540c674dbdSmrg_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 37550c674dbdSmrg 37560c674dbdSmrgAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 37570c674dbdSmrg [lt_cv_nm_interface="BSD nm" 37580c674dbdSmrg echo "int some_variable = 0;" > conftest.$ac_ext 37590c674dbdSmrg (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 37600c674dbdSmrg (eval "$ac_compile" 2>conftest.err) 37610c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 37620c674dbdSmrg (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 37630c674dbdSmrg (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 37640c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 37650c674dbdSmrg (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 37660c674dbdSmrg cat conftest.out >&AS_MESSAGE_LOG_FD 37670c674dbdSmrg if $GREP 'External.*some_variable' conftest.out > /dev/null; then 37680c674dbdSmrg lt_cv_nm_interface="MS dumpbin" 37690c674dbdSmrg fi 37700c674dbdSmrg rm -f conftest*]) 37710c674dbdSmrg])# LT_PATH_NM 37720c674dbdSmrg 37730c674dbdSmrg# Old names: 37740c674dbdSmrgAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 37750c674dbdSmrgAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 37760c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 37770c674dbdSmrgdnl AC_DEFUN([AM_PROG_NM], []) 37780c674dbdSmrgdnl AC_DEFUN([AC_PROG_NM], []) 37790c674dbdSmrg 37800c674dbdSmrg# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 37810c674dbdSmrg# -------------------------------- 37820c674dbdSmrg# how to determine the name of the shared library 37830c674dbdSmrg# associated with a specific link library. 37840c674dbdSmrg# -- PORTME fill in with the dynamic library characteristics 37850c674dbdSmrgm4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 37860c674dbdSmrg[m4_require([_LT_DECL_EGREP]) 37870c674dbdSmrgm4_require([_LT_DECL_OBJDUMP]) 37880c674dbdSmrgm4_require([_LT_DECL_DLLTOOL]) 37890c674dbdSmrgAC_CACHE_CHECK([how to associate runtime and link libraries], 37900c674dbdSmrglt_cv_sharedlib_from_linklib_cmd, 37910c674dbdSmrg[lt_cv_sharedlib_from_linklib_cmd='unknown' 37920c674dbdSmrg 37930c674dbdSmrgcase $host_os in 37940c674dbdSmrgcygwin* | mingw* | pw32* | cegcc*) 37950c674dbdSmrg # two different shell functions defined in ltmain.sh; 37960c674dbdSmrg # decide which one to use based on capabilities of $DLLTOOL 37970c674dbdSmrg case `$DLLTOOL --help 2>&1` in 37980c674dbdSmrg *--identify-strict*) 37990c674dbdSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 38000c674dbdSmrg ;; 38010c674dbdSmrg *) 38020c674dbdSmrg lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 38030c674dbdSmrg ;; 38040c674dbdSmrg esac 38050c674dbdSmrg ;; 38060c674dbdSmrg*) 38070c674dbdSmrg # fallback: assume linklib IS sharedlib 38080c674dbdSmrg lt_cv_sharedlib_from_linklib_cmd=$ECHO 38090c674dbdSmrg ;; 38100c674dbdSmrgesac 38110c674dbdSmrg]) 38120c674dbdSmrgsharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 38130c674dbdSmrgtest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 38140c674dbdSmrg 38150c674dbdSmrg_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 38160c674dbdSmrg [Command to associate shared and link libraries]) 38170c674dbdSmrg])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 38180c674dbdSmrg 38190c674dbdSmrg 38200c674dbdSmrg# _LT_PATH_MANIFEST_TOOL 38210c674dbdSmrg# ---------------------- 38220c674dbdSmrg# locate the manifest tool 38230c674dbdSmrgm4_defun([_LT_PATH_MANIFEST_TOOL], 38240c674dbdSmrg[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 38250c674dbdSmrgtest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 38260c674dbdSmrgAC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 38270c674dbdSmrg [lt_cv_path_mainfest_tool=no 38280c674dbdSmrg echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 38290c674dbdSmrg $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 38300c674dbdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 38310c674dbdSmrg if $GREP 'Manifest Tool' conftest.out > /dev/null; then 38320c674dbdSmrg lt_cv_path_mainfest_tool=yes 38330c674dbdSmrg fi 38340c674dbdSmrg rm -f conftest*]) 38350c674dbdSmrgif test yes != "$lt_cv_path_mainfest_tool"; then 38360c674dbdSmrg MANIFEST_TOOL=: 38370c674dbdSmrgfi 38380c674dbdSmrg_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 38390c674dbdSmrg])# _LT_PATH_MANIFEST_TOOL 38400c674dbdSmrg 38410c674dbdSmrg 38420c674dbdSmrg# _LT_DLL_DEF_P([FILE]) 38430c674dbdSmrg# --------------------- 38440c674dbdSmrg# True iff FILE is a Windows DLL '.def' file. 38450c674dbdSmrg# Keep in sync with func_dll_def_p in the libtool script 38460c674dbdSmrgAC_DEFUN([_LT_DLL_DEF_P], 38470c674dbdSmrg[dnl 38480c674dbdSmrg test DEF = "`$SED -n dnl 38490c674dbdSmrg -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 38500c674dbdSmrg -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 38510c674dbdSmrg -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 38520c674dbdSmrg -e q dnl Only consider the first "real" line 38530c674dbdSmrg $1`" dnl 38540c674dbdSmrg])# _LT_DLL_DEF_P 38550c674dbdSmrg 38560c674dbdSmrg 38570c674dbdSmrg# LT_LIB_M 38580c674dbdSmrg# -------- 38590c674dbdSmrg# check for math library 38600c674dbdSmrgAC_DEFUN([LT_LIB_M], 38610c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 38620c674dbdSmrgLIBM= 38630c674dbdSmrgcase $host in 38640c674dbdSmrg*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 38650c674dbdSmrg # These system don't have libm, or don't need it 38660c674dbdSmrg ;; 38670c674dbdSmrg*-ncr-sysv4.3*) 38680c674dbdSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 38690c674dbdSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 38700c674dbdSmrg ;; 38710c674dbdSmrg*) 38720c674dbdSmrg AC_CHECK_LIB(m, cos, LIBM=-lm) 38730c674dbdSmrg ;; 38740c674dbdSmrgesac 38750c674dbdSmrgAC_SUBST([LIBM]) 38760c674dbdSmrg])# LT_LIB_M 38770c674dbdSmrg 38780c674dbdSmrg# Old name: 38790c674dbdSmrgAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 38800c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 38810c674dbdSmrgdnl AC_DEFUN([AC_CHECK_LIBM], []) 38820c674dbdSmrg 38830c674dbdSmrg 38840c674dbdSmrg# _LT_COMPILER_NO_RTTI([TAGNAME]) 38850c674dbdSmrg# ------------------------------- 38860c674dbdSmrgm4_defun([_LT_COMPILER_NO_RTTI], 38870c674dbdSmrg[m4_require([_LT_TAG_COMPILER])dnl 38880c674dbdSmrg 38890c674dbdSmrg_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 38900c674dbdSmrg 38910c674dbdSmrgif test yes = "$GCC"; then 38920c674dbdSmrg case $cc_basename in 38930c674dbdSmrg nvcc*) 38940c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 38950c674dbdSmrg *) 38960c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 38970c674dbdSmrg esac 38980c674dbdSmrg 38990c674dbdSmrg _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 39000c674dbdSmrg lt_cv_prog_compiler_rtti_exceptions, 39010c674dbdSmrg [-fno-rtti -fno-exceptions], [], 39020c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 39030c674dbdSmrgfi 39040c674dbdSmrg_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 39050c674dbdSmrg [Compiler flag to turn off builtin functions]) 39060c674dbdSmrg])# _LT_COMPILER_NO_RTTI 39070c674dbdSmrg 39080c674dbdSmrg 39090c674dbdSmrg# _LT_CMD_GLOBAL_SYMBOLS 39100c674dbdSmrg# ---------------------- 39110c674dbdSmrgm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 39120c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 39130c674dbdSmrgAC_REQUIRE([AC_PROG_CC])dnl 39140c674dbdSmrgAC_REQUIRE([AC_PROG_AWK])dnl 39150c674dbdSmrgAC_REQUIRE([LT_PATH_NM])dnl 39160c674dbdSmrgAC_REQUIRE([LT_PATH_LD])dnl 39170c674dbdSmrgm4_require([_LT_DECL_SED])dnl 39180c674dbdSmrgm4_require([_LT_DECL_EGREP])dnl 39190c674dbdSmrgm4_require([_LT_TAG_COMPILER])dnl 39200c674dbdSmrg 39210c674dbdSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 39220c674dbdSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 39230c674dbdSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 39240c674dbdSmrg[ 39250c674dbdSmrg# These are sane defaults that work on at least a few old systems. 39260c674dbdSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 39270c674dbdSmrg 39280c674dbdSmrg# Character class describing NM global symbol codes. 39290c674dbdSmrgsymcode='[[BCDEGRST]]' 39300c674dbdSmrg 39310c674dbdSmrg# Regexp to match symbols that can be accessed directly from C. 39320c674dbdSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 39330c674dbdSmrg 39340c674dbdSmrg# Define system-specific variables. 39350c674dbdSmrgcase $host_os in 39360c674dbdSmrgaix*) 39370c674dbdSmrg symcode='[[BCDT]]' 39380c674dbdSmrg ;; 39390c674dbdSmrgcygwin* | mingw* | pw32* | cegcc*) 39400c674dbdSmrg symcode='[[ABCDGISTW]]' 39410c674dbdSmrg ;; 39420c674dbdSmrghpux*) 39430c674dbdSmrg if test ia64 = "$host_cpu"; then 39440c674dbdSmrg symcode='[[ABCDEGRST]]' 39450c674dbdSmrg fi 39460c674dbdSmrg ;; 39470c674dbdSmrgirix* | nonstopux*) 39480c674dbdSmrg symcode='[[BCDEGRST]]' 39490c674dbdSmrg ;; 39500c674dbdSmrgosf*) 39510c674dbdSmrg symcode='[[BCDEGQRST]]' 39520c674dbdSmrg ;; 39530c674dbdSmrgsolaris*) 39540c674dbdSmrg symcode='[[BDRT]]' 39550c674dbdSmrg ;; 39560c674dbdSmrgsco3.2v5*) 39570c674dbdSmrg symcode='[[DT]]' 39580c674dbdSmrg ;; 39590c674dbdSmrgsysv4.2uw2*) 39600c674dbdSmrg symcode='[[DT]]' 39610c674dbdSmrg ;; 39620c674dbdSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 39630c674dbdSmrg symcode='[[ABDT]]' 39640c674dbdSmrg ;; 39650c674dbdSmrgsysv4) 39660c674dbdSmrg symcode='[[DFNSTU]]' 39670c674dbdSmrg ;; 39680c674dbdSmrgesac 39690c674dbdSmrg 39700c674dbdSmrg# If we're using GNU nm, then use its standard symbol codes. 39710c674dbdSmrgcase `$NM -V 2>&1` in 39720c674dbdSmrg*GNU* | *'with BFD'*) 39730c674dbdSmrg symcode='[[ABCDGIRSTW]]' ;; 39740c674dbdSmrgesac 39750c674dbdSmrg 39760c674dbdSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 39770c674dbdSmrg # Gets list of data symbols to import. 39780c674dbdSmrg lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 39790c674dbdSmrg # Adjust the below global symbol transforms to fixup imported variables. 39800c674dbdSmrg lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 39810c674dbdSmrg lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 39820c674dbdSmrg lt_c_name_lib_hook="\ 39830c674dbdSmrg -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 39840c674dbdSmrg -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 39850c674dbdSmrgelse 39860c674dbdSmrg # Disable hooks by default. 39870c674dbdSmrg lt_cv_sys_global_symbol_to_import= 39880c674dbdSmrg lt_cdecl_hook= 39890c674dbdSmrg lt_c_name_hook= 39900c674dbdSmrg lt_c_name_lib_hook= 39910c674dbdSmrgfi 39920c674dbdSmrg 39930c674dbdSmrg# Transform an extracted symbol line into a proper C declaration. 39940c674dbdSmrg# Some systems (esp. on ia64) link data and code symbols differently, 39950c674dbdSmrg# so use this general approach. 39960c674dbdSmrglt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 39970c674dbdSmrg$lt_cdecl_hook\ 39980c674dbdSmrg" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 39990c674dbdSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 40000c674dbdSmrg 40010c674dbdSmrg# Transform an extracted symbol line into symbol name and symbol address 40020c674dbdSmrglt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 40030c674dbdSmrg$lt_c_name_hook\ 40040c674dbdSmrg" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 40050c674dbdSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 40060c674dbdSmrg 40070c674dbdSmrg# Transform an extracted symbol line into symbol name with lib prefix and 40080c674dbdSmrg# symbol address. 40090c674dbdSmrglt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 40100c674dbdSmrg$lt_c_name_lib_hook\ 40110c674dbdSmrg" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 40120c674dbdSmrg" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 40130c674dbdSmrg" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 40140c674dbdSmrg 40150c674dbdSmrg# Handle CRLF in mingw tool chain 40160c674dbdSmrgopt_cr= 40170c674dbdSmrgcase $build_os in 40180c674dbdSmrgmingw*) 40190c674dbdSmrg opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 40200c674dbdSmrg ;; 40210c674dbdSmrgesac 40220c674dbdSmrg 40230c674dbdSmrg# Try without a prefix underscore, then with it. 40240c674dbdSmrgfor ac_symprfx in "" "_"; do 40250c674dbdSmrg 40260c674dbdSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 40270c674dbdSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 40280c674dbdSmrg 40290c674dbdSmrg # Write the raw and C identifiers. 40300c674dbdSmrg if test "$lt_cv_nm_interface" = "MS dumpbin"; then 40310c674dbdSmrg # Fake it for dumpbin and say T for any non-static function, 40320c674dbdSmrg # D for any global variable and I for any imported variable. 40330c674dbdSmrg # Also find C++ and __fastcall symbols from MSVC++ or ICC, 40340c674dbdSmrg # which start with @ or ?. 40350c674dbdSmrg lt_cv_sys_global_symbol_pipe="$AWK ['"\ 40360c674dbdSmrg" {last_section=section; section=\$ 3};"\ 40370c674dbdSmrg" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 40380c674dbdSmrg" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 40390c674dbdSmrg" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 40400c674dbdSmrg" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 40410c674dbdSmrg" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 40420c674dbdSmrg" \$ 0!~/External *\|/{next};"\ 40430c674dbdSmrg" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 40440c674dbdSmrg" {if(hide[section]) next};"\ 40450c674dbdSmrg" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 40460c674dbdSmrg" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 40470c674dbdSmrg" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 40480c674dbdSmrg" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 40490c674dbdSmrg" ' prfx=^$ac_symprfx]" 40500c674dbdSmrg else 40510c674dbdSmrg lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 40520c674dbdSmrg fi 40530c674dbdSmrg lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 40540c674dbdSmrg 40550c674dbdSmrg # Check to see that the pipe works correctly. 40560c674dbdSmrg pipe_works=no 40570c674dbdSmrg 40580c674dbdSmrg rm -f conftest* 40590c674dbdSmrg cat > conftest.$ac_ext <<_LT_EOF 40600c674dbdSmrg#ifdef __cplusplus 40610c674dbdSmrgextern "C" { 40620c674dbdSmrg#endif 40630c674dbdSmrgchar nm_test_var; 40640c674dbdSmrgvoid nm_test_func(void); 40650c674dbdSmrgvoid nm_test_func(void){} 40660c674dbdSmrg#ifdef __cplusplus 40670c674dbdSmrg} 40680c674dbdSmrg#endif 40690c674dbdSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 40700c674dbdSmrg_LT_EOF 40710c674dbdSmrg 40720c674dbdSmrg if AC_TRY_EVAL(ac_compile); then 40730c674dbdSmrg # Now try to grab the symbols. 40740c674dbdSmrg nlist=conftest.nm 40750c674dbdSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 40760c674dbdSmrg # Try sorting and uniquifying the output. 40770c674dbdSmrg if sort "$nlist" | uniq > "$nlist"T; then 40780c674dbdSmrg mv -f "$nlist"T "$nlist" 40790c674dbdSmrg else 40800c674dbdSmrg rm -f "$nlist"T 40810c674dbdSmrg fi 40820c674dbdSmrg 40830c674dbdSmrg # Make sure that we snagged all the symbols we need. 40840c674dbdSmrg if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 40850c674dbdSmrg if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 40860c674dbdSmrg cat <<_LT_EOF > conftest.$ac_ext 40870c674dbdSmrg/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 40880c674dbdSmrg#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 40890c674dbdSmrg/* DATA imports from DLLs on WIN32 can't be const, because runtime 40900c674dbdSmrg relocations are performed -- see ld's documentation on pseudo-relocs. */ 40910c674dbdSmrg# define LT@&t@_DLSYM_CONST 40920c674dbdSmrg#elif defined __osf__ 40930c674dbdSmrg/* This system does not cope well with relocations in const data. */ 40940c674dbdSmrg# define LT@&t@_DLSYM_CONST 40950c674dbdSmrg#else 40960c674dbdSmrg# define LT@&t@_DLSYM_CONST const 40970c674dbdSmrg#endif 40980c674dbdSmrg 40990c674dbdSmrg#ifdef __cplusplus 41000c674dbdSmrgextern "C" { 41010c674dbdSmrg#endif 41020c674dbdSmrg 41030c674dbdSmrg_LT_EOF 41040c674dbdSmrg # Now generate the symbol file. 41050c674dbdSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 41060c674dbdSmrg 41070c674dbdSmrg cat <<_LT_EOF >> conftest.$ac_ext 41080c674dbdSmrg 41090c674dbdSmrg/* The mapping between symbol names and symbols. */ 41100c674dbdSmrgLT@&t@_DLSYM_CONST struct { 41110c674dbdSmrg const char *name; 41120c674dbdSmrg void *address; 41130c674dbdSmrg} 41140c674dbdSmrglt__PROGRAM__LTX_preloaded_symbols[[]] = 41150c674dbdSmrg{ 41160c674dbdSmrg { "@PROGRAM@", (void *) 0 }, 41170c674dbdSmrg_LT_EOF 41180c674dbdSmrg $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 41190c674dbdSmrg cat <<\_LT_EOF >> conftest.$ac_ext 41200c674dbdSmrg {0, (void *) 0} 41210c674dbdSmrg}; 41220c674dbdSmrg 41230c674dbdSmrg/* This works around a problem in FreeBSD linker */ 41240c674dbdSmrg#ifdef FREEBSD_WORKAROUND 41250c674dbdSmrgstatic const void *lt_preloaded_setup() { 41260c674dbdSmrg return lt__PROGRAM__LTX_preloaded_symbols; 41270c674dbdSmrg} 41280c674dbdSmrg#endif 41290c674dbdSmrg 41300c674dbdSmrg#ifdef __cplusplus 41310c674dbdSmrg} 41320c674dbdSmrg#endif 41330c674dbdSmrg_LT_EOF 41340c674dbdSmrg # Now try linking the two files. 41350c674dbdSmrg mv conftest.$ac_objext conftstm.$ac_objext 41360c674dbdSmrg lt_globsym_save_LIBS=$LIBS 41370c674dbdSmrg lt_globsym_save_CFLAGS=$CFLAGS 41380c674dbdSmrg LIBS=conftstm.$ac_objext 41390c674dbdSmrg CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 41400c674dbdSmrg if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 41410c674dbdSmrg pipe_works=yes 41420c674dbdSmrg fi 41430c674dbdSmrg LIBS=$lt_globsym_save_LIBS 41440c674dbdSmrg CFLAGS=$lt_globsym_save_CFLAGS 41450c674dbdSmrg else 41460c674dbdSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 41470c674dbdSmrg fi 41480c674dbdSmrg else 41490c674dbdSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 41500c674dbdSmrg fi 41510c674dbdSmrg else 41520c674dbdSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 41530c674dbdSmrg fi 41540c674dbdSmrg else 41550c674dbdSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 41560c674dbdSmrg cat conftest.$ac_ext >&5 41570c674dbdSmrg fi 41580c674dbdSmrg rm -rf conftest* conftst* 41590c674dbdSmrg 41600c674dbdSmrg # Do not use the global_symbol_pipe unless it works. 41610c674dbdSmrg if test yes = "$pipe_works"; then 41620c674dbdSmrg break 41630c674dbdSmrg else 41640c674dbdSmrg lt_cv_sys_global_symbol_pipe= 41650c674dbdSmrg fi 41660c674dbdSmrgdone 41670c674dbdSmrg]) 41680c674dbdSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 41690c674dbdSmrg lt_cv_sys_global_symbol_to_cdecl= 41700c674dbdSmrgfi 41710c674dbdSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 41720c674dbdSmrg AC_MSG_RESULT(failed) 41730c674dbdSmrgelse 41740c674dbdSmrg AC_MSG_RESULT(ok) 41750c674dbdSmrgfi 41760c674dbdSmrg 41770c674dbdSmrg# Response file support. 41780c674dbdSmrgif test "$lt_cv_nm_interface" = "MS dumpbin"; then 41790c674dbdSmrg nm_file_list_spec='@' 41800c674dbdSmrgelif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 41810c674dbdSmrg nm_file_list_spec='@' 41820c674dbdSmrgfi 41830c674dbdSmrg 41840c674dbdSmrg_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 41850c674dbdSmrg [Take the output of nm and produce a listing of raw symbols and C names]) 41860c674dbdSmrg_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 41870c674dbdSmrg [Transform the output of nm in a proper C declaration]) 41880c674dbdSmrg_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 41890c674dbdSmrg [Transform the output of nm into a list of symbols to manually relocate]) 41900c674dbdSmrg_LT_DECL([global_symbol_to_c_name_address], 41910c674dbdSmrg [lt_cv_sys_global_symbol_to_c_name_address], [1], 41920c674dbdSmrg [Transform the output of nm in a C name address pair]) 41930c674dbdSmrg_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 41940c674dbdSmrg [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 41950c674dbdSmrg [Transform the output of nm in a C name address pair when lib prefix is needed]) 41960c674dbdSmrg_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 41970c674dbdSmrg [The name lister interface]) 41980c674dbdSmrg_LT_DECL([], [nm_file_list_spec], [1], 41990c674dbdSmrg [Specify filename containing input files for $NM]) 42000c674dbdSmrg]) # _LT_CMD_GLOBAL_SYMBOLS 42010c674dbdSmrg 42020c674dbdSmrg 42030c674dbdSmrg# _LT_COMPILER_PIC([TAGNAME]) 42040c674dbdSmrg# --------------------------- 42050c674dbdSmrgm4_defun([_LT_COMPILER_PIC], 42060c674dbdSmrg[m4_require([_LT_TAG_COMPILER])dnl 42070c674dbdSmrg_LT_TAGVAR(lt_prog_compiler_wl, $1)= 42080c674dbdSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)= 42090c674dbdSmrg_LT_TAGVAR(lt_prog_compiler_static, $1)= 42100c674dbdSmrg 42110c674dbdSmrgm4_if([$1], [CXX], [ 42120c674dbdSmrg # C++ specific cases for pic, static, wl, etc. 42130c674dbdSmrg if test yes = "$GXX"; then 42140c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 42150c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 42160c674dbdSmrg 42170c674dbdSmrg case $host_os in 42180c674dbdSmrg aix*) 42190c674dbdSmrg # All AIX code is PIC. 42200c674dbdSmrg if test ia64 = "$host_cpu"; then 42210c674dbdSmrg # AIX 5 now supports IA64 processor 42220c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 42230c674dbdSmrg fi 42240c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42250c674dbdSmrg ;; 42260c674dbdSmrg 42270c674dbdSmrg amigaos*) 42280c674dbdSmrg case $host_cpu in 42290c674dbdSmrg powerpc) 42300c674dbdSmrg # see comment about AmigaOS4 .so support 42310c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42320c674dbdSmrg ;; 42330c674dbdSmrg m68k) 42340c674dbdSmrg # FIXME: we need at least 68020 code to build shared libraries, but 42350c674dbdSmrg # adding the '-m68020' flag to GCC prevents building anything better, 42360c674dbdSmrg # like '-m68040'. 42370c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 42380c674dbdSmrg ;; 42390c674dbdSmrg esac 42400c674dbdSmrg ;; 42410c674dbdSmrg 42420c674dbdSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 42430c674dbdSmrg # PIC is the default for these OSes. 42440c674dbdSmrg ;; 42450c674dbdSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 42460c674dbdSmrg # This hack is so that the source file can tell whether it is being 42470c674dbdSmrg # built for inclusion in a dll (and should export symbols for example). 42480c674dbdSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 42490c674dbdSmrg # (--disable-auto-import) libraries 42500c674dbdSmrg m4_if([$1], [GCJ], [], 42510c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 42520c674dbdSmrg case $host_os in 42530c674dbdSmrg os2*) 42540c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 42550c674dbdSmrg ;; 42560c674dbdSmrg esac 42570c674dbdSmrg ;; 42580c674dbdSmrg darwin* | rhapsody*) 42590c674dbdSmrg # PIC is the default on this platform 42600c674dbdSmrg # Common symbols not allowed in MH_DYLIB files 42610c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 42620c674dbdSmrg ;; 42630c674dbdSmrg *djgpp*) 42640c674dbdSmrg # DJGPP does not support shared libraries at all 42650c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 42660c674dbdSmrg ;; 42670c674dbdSmrg haiku*) 42680c674dbdSmrg # PIC is the default for Haiku. 42690c674dbdSmrg # The "-static" flag exists, but is broken. 42700c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 42710c674dbdSmrg ;; 42720c674dbdSmrg interix[[3-9]]*) 42730c674dbdSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 42740c674dbdSmrg # Instead, we relocate shared libraries at runtime. 42750c674dbdSmrg ;; 42760c674dbdSmrg sysv4*MP*) 42770c674dbdSmrg if test -d /usr/nec; then 42780c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 42790c674dbdSmrg fi 42800c674dbdSmrg ;; 42810c674dbdSmrg hpux*) 42820c674dbdSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 42830c674dbdSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 42840c674dbdSmrg # sets the default TLS model and affects inlining. 42850c674dbdSmrg case $host_cpu in 42860c674dbdSmrg hppa*64*) 42870c674dbdSmrg ;; 42880c674dbdSmrg *) 42890c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 42900c674dbdSmrg ;; 42910c674dbdSmrg esac 42920c674dbdSmrg ;; 42930c674dbdSmrg *qnx* | *nto*) 42940c674dbdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 42950c674dbdSmrg # it will coredump. 42960c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 42970c674dbdSmrg ;; 42980c674dbdSmrg *) 42990c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 43000c674dbdSmrg ;; 43010c674dbdSmrg esac 43020c674dbdSmrg else 43030c674dbdSmrg case $host_os in 43040c674dbdSmrg aix[[4-9]]*) 43050c674dbdSmrg # All AIX code is PIC. 43060c674dbdSmrg if test ia64 = "$host_cpu"; then 43070c674dbdSmrg # AIX 5 now supports IA64 processor 43080c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 43090c674dbdSmrg else 43100c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 43110c674dbdSmrg fi 43120c674dbdSmrg ;; 43130c674dbdSmrg chorus*) 43140c674dbdSmrg case $cc_basename in 43150c674dbdSmrg cxch68*) 43160c674dbdSmrg # Green Hills C++ Compiler 43170c674dbdSmrg # _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" 43180c674dbdSmrg ;; 43190c674dbdSmrg esac 43200c674dbdSmrg ;; 43210c674dbdSmrg mingw* | cygwin* | os2* | pw32* | cegcc*) 43220c674dbdSmrg # This hack is so that the source file can tell whether it is being 43230c674dbdSmrg # built for inclusion in a dll (and should export symbols for example). 43240c674dbdSmrg m4_if([$1], [GCJ], [], 43250c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 43260c674dbdSmrg ;; 43270c674dbdSmrg dgux*) 43280c674dbdSmrg case $cc_basename in 43290c674dbdSmrg ec++*) 43300c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 43310c674dbdSmrg ;; 43320c674dbdSmrg ghcx*) 43330c674dbdSmrg # Green Hills C++ Compiler 43340c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 43350c674dbdSmrg ;; 43360c674dbdSmrg *) 43370c674dbdSmrg ;; 43380c674dbdSmrg esac 43390c674dbdSmrg ;; 43400c674dbdSmrg freebsd* | dragonfly* | midnightbsd*) 43410c674dbdSmrg # FreeBSD uses GNU C++ 43420c674dbdSmrg ;; 43430c674dbdSmrg hpux9* | hpux10* | hpux11*) 43440c674dbdSmrg case $cc_basename in 43450c674dbdSmrg CC*) 43460c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43470c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 43480c674dbdSmrg if test ia64 != "$host_cpu"; then 43490c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 43500c674dbdSmrg fi 43510c674dbdSmrg ;; 43520c674dbdSmrg aCC*) 43530c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43540c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 43550c674dbdSmrg case $host_cpu in 43560c674dbdSmrg hppa*64*|ia64*) 43570c674dbdSmrg # +Z the default 43580c674dbdSmrg ;; 43590c674dbdSmrg *) 43600c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 43610c674dbdSmrg ;; 43620c674dbdSmrg esac 43630c674dbdSmrg ;; 43640c674dbdSmrg *) 43650c674dbdSmrg ;; 43660c674dbdSmrg esac 43670c674dbdSmrg ;; 43680c674dbdSmrg interix*) 43690c674dbdSmrg # This is c89, which is MS Visual C++ (no shared libs) 43700c674dbdSmrg # Anyone wants to do a port? 43710c674dbdSmrg ;; 43720c674dbdSmrg irix5* | irix6* | nonstopux*) 43730c674dbdSmrg case $cc_basename in 43740c674dbdSmrg CC*) 43750c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43760c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 43770c674dbdSmrg # CC pic flag -KPIC is the default. 43780c674dbdSmrg ;; 43790c674dbdSmrg *) 43800c674dbdSmrg ;; 43810c674dbdSmrg esac 43820c674dbdSmrg ;; 43830c674dbdSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 43840c674dbdSmrg case $cc_basename in 43850c674dbdSmrg KCC*) 43860c674dbdSmrg # KAI C++ Compiler 43870c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 43880c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 43890c674dbdSmrg ;; 43900c674dbdSmrg ecpc* ) 43910c674dbdSmrg # old Intel C++ for x86_64, which still supported -KPIC. 43920c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 43930c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 43940c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 43950c674dbdSmrg ;; 43960c674dbdSmrg icpc* ) 43970c674dbdSmrg # Intel C++, used to be incompatible with GCC. 43980c674dbdSmrg # ICC 10 doesn't accept -KPIC any more. 43990c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44000c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 44010c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 44020c674dbdSmrg ;; 44030c674dbdSmrg pgCC* | pgcpp*) 44040c674dbdSmrg # Portland Group C++ compiler 44050c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44060c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 44070c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44080c674dbdSmrg ;; 44090c674dbdSmrg cxx*) 44100c674dbdSmrg # Compaq C++ 44110c674dbdSmrg # Make sure the PIC flag is empty. It appears that all Alpha 44120c674dbdSmrg # Linux and Compaq Tru64 Unix objects are PIC. 44130c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 44140c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 44150c674dbdSmrg ;; 44160c674dbdSmrg xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 44170c674dbdSmrg # IBM XL 8.0, 9.0 on PPC and BlueGene 44180c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44190c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 44200c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 44210c674dbdSmrg ;; 44220c674dbdSmrg *) 44230c674dbdSmrg case `$CC -V 2>&1 | $SED 5q` in 44240c674dbdSmrg *Sun\ C*) 44250c674dbdSmrg # Sun C++ 5.9 44260c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44270c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44280c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 44290c674dbdSmrg ;; 44300c674dbdSmrg esac 44310c674dbdSmrg ;; 44320c674dbdSmrg esac 44330c674dbdSmrg ;; 44340c674dbdSmrg lynxos*) 44350c674dbdSmrg ;; 44360c674dbdSmrg m88k*) 44370c674dbdSmrg ;; 44380c674dbdSmrg mvs*) 44390c674dbdSmrg case $cc_basename in 44400c674dbdSmrg cxx*) 44410c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 44420c674dbdSmrg ;; 44430c674dbdSmrg *) 44440c674dbdSmrg ;; 44450c674dbdSmrg esac 44460c674dbdSmrg ;; 44470c674dbdSmrg netbsd*) 44480c674dbdSmrg ;; 44490c674dbdSmrg *qnx* | *nto*) 44500c674dbdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 44510c674dbdSmrg # it will coredump. 44520c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 44530c674dbdSmrg ;; 44540c674dbdSmrg osf3* | osf4* | osf5*) 44550c674dbdSmrg case $cc_basename in 44560c674dbdSmrg KCC*) 44570c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 44580c674dbdSmrg ;; 44590c674dbdSmrg RCC*) 44600c674dbdSmrg # Rational C++ 2.4.1 44610c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 44620c674dbdSmrg ;; 44630c674dbdSmrg cxx*) 44640c674dbdSmrg # Digital/Compaq C++ 44650c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 44660c674dbdSmrg # Make sure the PIC flag is empty. It appears that all Alpha 44670c674dbdSmrg # Linux and Compaq Tru64 Unix objects are PIC. 44680c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 44690c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 44700c674dbdSmrg ;; 44710c674dbdSmrg *) 44720c674dbdSmrg ;; 44730c674dbdSmrg esac 44740c674dbdSmrg ;; 44750c674dbdSmrg psos*) 44760c674dbdSmrg ;; 44770c674dbdSmrg solaris*) 44780c674dbdSmrg case $cc_basename in 44790c674dbdSmrg CC* | sunCC*) 44800c674dbdSmrg # Sun C++ 4.2, 5.x and Centerline C++ 44810c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 44820c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44830c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 44840c674dbdSmrg ;; 44850c674dbdSmrg gcx*) 44860c674dbdSmrg # Green Hills C++ Compiler 44870c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 44880c674dbdSmrg ;; 44890c674dbdSmrg *) 44900c674dbdSmrg ;; 44910c674dbdSmrg esac 44920c674dbdSmrg ;; 44930c674dbdSmrg sunos4*) 44940c674dbdSmrg case $cc_basename in 44950c674dbdSmrg CC*) 44960c674dbdSmrg # Sun C++ 4.x 44970c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 44980c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 44990c674dbdSmrg ;; 45000c674dbdSmrg lcc*) 45010c674dbdSmrg # Lucid 45020c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 45030c674dbdSmrg ;; 45040c674dbdSmrg *) 45050c674dbdSmrg ;; 45060c674dbdSmrg esac 45070c674dbdSmrg ;; 45080c674dbdSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 45090c674dbdSmrg case $cc_basename in 45100c674dbdSmrg CC*) 45110c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 45120c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 45130c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 45140c674dbdSmrg ;; 45150c674dbdSmrg esac 45160c674dbdSmrg ;; 45170c674dbdSmrg tandem*) 45180c674dbdSmrg case $cc_basename in 45190c674dbdSmrg NCC*) 45200c674dbdSmrg # NonStop-UX NCC 3.20 45210c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 45220c674dbdSmrg ;; 45230c674dbdSmrg *) 45240c674dbdSmrg ;; 45250c674dbdSmrg esac 45260c674dbdSmrg ;; 45270c674dbdSmrg vxworks*) 45280c674dbdSmrg ;; 45290c674dbdSmrg *) 45300c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 45310c674dbdSmrg ;; 45320c674dbdSmrg esac 45330c674dbdSmrg fi 45340c674dbdSmrg], 45350c674dbdSmrg[ 45360c674dbdSmrg if test yes = "$GCC"; then 45370c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 45380c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 45390c674dbdSmrg 45400c674dbdSmrg case $host_os in 45410c674dbdSmrg aix*) 45420c674dbdSmrg # All AIX code is PIC. 45430c674dbdSmrg if test ia64 = "$host_cpu"; then 45440c674dbdSmrg # AIX 5 now supports IA64 processor 45450c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 45460c674dbdSmrg fi 45470c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 45480c674dbdSmrg ;; 45490c674dbdSmrg 45500c674dbdSmrg amigaos*) 45510c674dbdSmrg case $host_cpu in 45520c674dbdSmrg powerpc) 45530c674dbdSmrg # see comment about AmigaOS4 .so support 45540c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 45550c674dbdSmrg ;; 45560c674dbdSmrg m68k) 45570c674dbdSmrg # FIXME: we need at least 68020 code to build shared libraries, but 45580c674dbdSmrg # adding the '-m68020' flag to GCC prevents building anything better, 45590c674dbdSmrg # like '-m68040'. 45600c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 45610c674dbdSmrg ;; 45620c674dbdSmrg esac 45630c674dbdSmrg ;; 45640c674dbdSmrg 45650c674dbdSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 45660c674dbdSmrg # PIC is the default for these OSes. 45670c674dbdSmrg ;; 45680c674dbdSmrg 45690c674dbdSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 45700c674dbdSmrg # This hack is so that the source file can tell whether it is being 45710c674dbdSmrg # built for inclusion in a dll (and should export symbols for example). 45720c674dbdSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 45730c674dbdSmrg # (--disable-auto-import) libraries 45740c674dbdSmrg m4_if([$1], [GCJ], [], 45750c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 45760c674dbdSmrg case $host_os in 45770c674dbdSmrg os2*) 45780c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 45790c674dbdSmrg ;; 45800c674dbdSmrg esac 45810c674dbdSmrg ;; 45820c674dbdSmrg 45830c674dbdSmrg darwin* | rhapsody*) 45840c674dbdSmrg # PIC is the default on this platform 45850c674dbdSmrg # Common symbols not allowed in MH_DYLIB files 45860c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 45870c674dbdSmrg ;; 45880c674dbdSmrg 45890c674dbdSmrg haiku*) 45900c674dbdSmrg # PIC is the default for Haiku. 45910c674dbdSmrg # The "-static" flag exists, but is broken. 45920c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)= 45930c674dbdSmrg ;; 45940c674dbdSmrg 45950c674dbdSmrg hpux*) 45960c674dbdSmrg # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 45970c674dbdSmrg # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 45980c674dbdSmrg # sets the default TLS model and affects inlining. 45990c674dbdSmrg case $host_cpu in 46000c674dbdSmrg hppa*64*) 46010c674dbdSmrg # +Z the default 46020c674dbdSmrg ;; 46030c674dbdSmrg *) 46040c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 46050c674dbdSmrg ;; 46060c674dbdSmrg esac 46070c674dbdSmrg ;; 46080c674dbdSmrg 46090c674dbdSmrg interix[[3-9]]*) 46100c674dbdSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 46110c674dbdSmrg # Instead, we relocate shared libraries at runtime. 46120c674dbdSmrg ;; 46130c674dbdSmrg 46140c674dbdSmrg msdosdjgpp*) 46150c674dbdSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 46160c674dbdSmrg # on systems that don't support them. 46170c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 46180c674dbdSmrg enable_shared=no 46190c674dbdSmrg ;; 46200c674dbdSmrg 46210c674dbdSmrg *nto* | *qnx*) 46220c674dbdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 46230c674dbdSmrg # it will coredump. 46240c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 46250c674dbdSmrg ;; 46260c674dbdSmrg 46270c674dbdSmrg sysv4*MP*) 46280c674dbdSmrg if test -d /usr/nec; then 46290c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 46300c674dbdSmrg fi 46310c674dbdSmrg ;; 46320c674dbdSmrg 46330c674dbdSmrg *) 46340c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 46350c674dbdSmrg ;; 46360c674dbdSmrg esac 46370c674dbdSmrg 46380c674dbdSmrg case $cc_basename in 46390c674dbdSmrg nvcc*) # Cuda Compiler Driver 2.2 46400c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 46410c674dbdSmrg if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 46420c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 46430c674dbdSmrg fi 46440c674dbdSmrg ;; 46450c674dbdSmrg esac 46460c674dbdSmrg else 46470c674dbdSmrg # PORTME Check for flag to pass linker flags through the system compiler. 46480c674dbdSmrg case $host_os in 46490c674dbdSmrg aix*) 46500c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 46510c674dbdSmrg if test ia64 = "$host_cpu"; then 46520c674dbdSmrg # AIX 5 now supports IA64 processor 46530c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 46540c674dbdSmrg else 46550c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 46560c674dbdSmrg fi 46570c674dbdSmrg ;; 46580c674dbdSmrg 46590c674dbdSmrg darwin* | rhapsody*) 46600c674dbdSmrg # PIC is the default on this platform 46610c674dbdSmrg # Common symbols not allowed in MH_DYLIB files 46620c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 46630c674dbdSmrg case $cc_basename in 46640c674dbdSmrg nagfor*) 46650c674dbdSmrg # NAG Fortran compiler 46660c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 46670c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 46680c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 46690c674dbdSmrg ;; 46700c674dbdSmrg esac 46710c674dbdSmrg ;; 46720c674dbdSmrg 46730c674dbdSmrg mingw* | cygwin* | pw32* | os2* | cegcc*) 46740c674dbdSmrg # This hack is so that the source file can tell whether it is being 46750c674dbdSmrg # built for inclusion in a dll (and should export symbols for example). 46760c674dbdSmrg m4_if([$1], [GCJ], [], 46770c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 46780c674dbdSmrg case $host_os in 46790c674dbdSmrg os2*) 46800c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 46810c674dbdSmrg ;; 46820c674dbdSmrg esac 46830c674dbdSmrg ;; 46840c674dbdSmrg 46850c674dbdSmrg hpux9* | hpux10* | hpux11*) 46860c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 46870c674dbdSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 46880c674dbdSmrg # not for PA HP-UX. 46890c674dbdSmrg case $host_cpu in 46900c674dbdSmrg hppa*64*|ia64*) 46910c674dbdSmrg # +Z the default 46920c674dbdSmrg ;; 46930c674dbdSmrg *) 46940c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 46950c674dbdSmrg ;; 46960c674dbdSmrg esac 46970c674dbdSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 46980c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 46990c674dbdSmrg ;; 47000c674dbdSmrg 47010c674dbdSmrg irix5* | irix6* | nonstopux*) 47020c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47030c674dbdSmrg # PIC (with -KPIC) is the default. 47040c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 47050c674dbdSmrg ;; 47060c674dbdSmrg 47070c674dbdSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 47080c674dbdSmrg case $cc_basename in 47090c674dbdSmrg # old Intel for x86_64, which still supported -KPIC. 47100c674dbdSmrg ecc*) 47110c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47120c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 47130c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 47140c674dbdSmrg ;; 47150c674dbdSmrg # icc used to be incompatible with GCC. 47160c674dbdSmrg # ICC 10 doesn't accept -KPIC any more. 47170c674dbdSmrg icc* | ifort*) 47180c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47190c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 47200c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 47210c674dbdSmrg ;; 47220c674dbdSmrg # Lahey Fortran 8.1. 47230c674dbdSmrg lf95*) 47240c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47250c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 47260c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 47270c674dbdSmrg ;; 47280c674dbdSmrg nagfor*) 47290c674dbdSmrg # NAG Fortran compiler 47300c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 47310c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 47320c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47330c674dbdSmrg ;; 47340c674dbdSmrg tcc*) 47350c674dbdSmrg # Fabrice Bellard et al's Tiny C Compiler 47360c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47370c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 47380c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 47390c674dbdSmrg ;; 47400c674dbdSmrg pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 47410c674dbdSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 47420c674dbdSmrg # which looks to be a dead project) 47430c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47440c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 47450c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47460c674dbdSmrg ;; 47470c674dbdSmrg ccc*) 47480c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47490c674dbdSmrg # All Alpha code is PIC. 47500c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 47510c674dbdSmrg ;; 47520c674dbdSmrg xl* | bgxl* | bgf* | mpixl*) 47530c674dbdSmrg # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 47540c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47550c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 47560c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 47570c674dbdSmrg ;; 47580c674dbdSmrg *) 47590c674dbdSmrg case `$CC -V 2>&1 | $SED 5q` in 47600c674dbdSmrg *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 47610c674dbdSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 47620c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 47630c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47640c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 47650c674dbdSmrg ;; 47660c674dbdSmrg *Sun\ F* | *Sun*Fortran*) 47670c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 47680c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47690c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 47700c674dbdSmrg ;; 47710c674dbdSmrg *Sun\ C*) 47720c674dbdSmrg # Sun C 5.9 47730c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 47740c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47750c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47760c674dbdSmrg ;; 47770c674dbdSmrg *Intel*\ [[CF]]*Compiler*) 47780c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47790c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 47800c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 47810c674dbdSmrg ;; 47820c674dbdSmrg *Portland\ Group*) 47830c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 47840c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 47850c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47860c674dbdSmrg ;; 47870c674dbdSmrg esac 47880c674dbdSmrg ;; 47890c674dbdSmrg esac 47900c674dbdSmrg ;; 47910c674dbdSmrg 47920c674dbdSmrg newsos6) 47930c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 47940c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 47950c674dbdSmrg ;; 47960c674dbdSmrg 47970c674dbdSmrg *nto* | *qnx*) 47980c674dbdSmrg # QNX uses GNU C++, but need to define -shared option too, otherwise 47990c674dbdSmrg # it will coredump. 48000c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 48010c674dbdSmrg ;; 48020c674dbdSmrg 48030c674dbdSmrg osf3* | osf4* | osf5*) 48040c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48050c674dbdSmrg # All OSF/1 code is PIC. 48060c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 48070c674dbdSmrg ;; 48080c674dbdSmrg 48090c674dbdSmrg rdos*) 48100c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 48110c674dbdSmrg ;; 48120c674dbdSmrg 48130c674dbdSmrg solaris*) 48140c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 48150c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48160c674dbdSmrg case $cc_basename in 48170c674dbdSmrg f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 48180c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 48190c674dbdSmrg *) 48200c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 48210c674dbdSmrg esac 48220c674dbdSmrg ;; 48230c674dbdSmrg 48240c674dbdSmrg sunos4*) 48250c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 48260c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 48270c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48280c674dbdSmrg ;; 48290c674dbdSmrg 48300c674dbdSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 48310c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48320c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 48330c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48340c674dbdSmrg ;; 48350c674dbdSmrg 48360c674dbdSmrg sysv4*MP*) 48370c674dbdSmrg if test -d /usr/nec; then 48380c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 48390c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48400c674dbdSmrg fi 48410c674dbdSmrg ;; 48420c674dbdSmrg 48430c674dbdSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 48440c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48450c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 48460c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48470c674dbdSmrg ;; 48480c674dbdSmrg 48490c674dbdSmrg unicos*) 48500c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48510c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 48520c674dbdSmrg ;; 48530c674dbdSmrg 48540c674dbdSmrg uts4*) 48550c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 48560c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48570c674dbdSmrg ;; 48580c674dbdSmrg 48590c674dbdSmrg *) 48600c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 48610c674dbdSmrg ;; 48620c674dbdSmrg esac 48630c674dbdSmrg fi 48640c674dbdSmrg]) 48650c674dbdSmrgcase $host_os in 48660c674dbdSmrg # For platforms that do not support PIC, -DPIC is meaningless: 48670c674dbdSmrg *djgpp*) 48680c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)= 48690c674dbdSmrg ;; 48700c674dbdSmrg *) 48710c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 48720c674dbdSmrg ;; 48730c674dbdSmrgesac 48740c674dbdSmrg 48750c674dbdSmrgAC_CACHE_CHECK([for $compiler option to produce PIC], 48760c674dbdSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 48770c674dbdSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 48780c674dbdSmrg_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 48790c674dbdSmrg 48800c674dbdSmrg# 48810c674dbdSmrg# Check to make sure the PIC flag actually works. 48820c674dbdSmrg# 48830c674dbdSmrgif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 48840c674dbdSmrg _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 48850c674dbdSmrg [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 48860c674dbdSmrg [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 48870c674dbdSmrg [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 48880c674dbdSmrg "" | " "*) ;; 48890c674dbdSmrg *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 48900c674dbdSmrg esac], 48910c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 48920c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 48930c674dbdSmrgfi 48940c674dbdSmrg_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 48950c674dbdSmrg [Additional compiler flags for building library objects]) 48960c674dbdSmrg 48970c674dbdSmrg_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 48980c674dbdSmrg [How to pass a linker flag through the compiler]) 48990c674dbdSmrg# 49000c674dbdSmrg# Check to make sure the static flag actually works. 49010c674dbdSmrg# 49020c674dbdSmrgwl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 49030c674dbdSmrg_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 49040c674dbdSmrg _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 49050c674dbdSmrg $lt_tmp_static_flag, 49060c674dbdSmrg [], 49070c674dbdSmrg [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 49080c674dbdSmrg_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 49090c674dbdSmrg [Compiler flag to prevent dynamic linking]) 49100c674dbdSmrg])# _LT_COMPILER_PIC 49110c674dbdSmrg 49120c674dbdSmrg 49130c674dbdSmrg# _LT_LINKER_SHLIBS([TAGNAME]) 49140c674dbdSmrg# ---------------------------- 49150c674dbdSmrg# See if the linker supports building shared libraries. 49160c674dbdSmrgm4_defun([_LT_LINKER_SHLIBS], 49170c674dbdSmrg[AC_REQUIRE([LT_PATH_LD])dnl 49180c674dbdSmrgAC_REQUIRE([LT_PATH_NM])dnl 49190c674dbdSmrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 49200c674dbdSmrgm4_require([_LT_FILEUTILS_DEFAULTS])dnl 49210c674dbdSmrgm4_require([_LT_DECL_EGREP])dnl 49220c674dbdSmrgm4_require([_LT_DECL_SED])dnl 49230c674dbdSmrgm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 49240c674dbdSmrgm4_require([_LT_TAG_COMPILER])dnl 49250c674dbdSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 49260c674dbdSmrgm4_if([$1], [CXX], [ 49270c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 49280c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 49290c674dbdSmrg case $host_os in 49300c674dbdSmrg aix[[4-9]]*) 49310c674dbdSmrg # If we're using GNU nm, then we don't want the "-C" option. 49320c674dbdSmrg # -C means demangle to GNU nm, but means don't demangle to AIX nm. 49330c674dbdSmrg # Without the "-l" option, or with the "-B" option, AIX nm treats 49340c674dbdSmrg # weak defined symbols like other global defined symbols, whereas 49350c674dbdSmrg # GNU nm marks them as "W". 49360c674dbdSmrg # While the 'weak' keyword is ignored in the Export File, we need 49370c674dbdSmrg # it in the Import File for the 'aix-soname' feature, so we have 49380c674dbdSmrg # to replace the "-B" option with "-P" for AIX nm. 49390c674dbdSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 49400c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 49410c674dbdSmrg else 49420c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 49430c674dbdSmrg fi 49440c674dbdSmrg ;; 49450c674dbdSmrg pw32*) 49460c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 49470c674dbdSmrg ;; 49480c674dbdSmrg cygwin* | mingw* | cegcc*) 49490c674dbdSmrg case $cc_basename in 49500c674dbdSmrg cl* | icl*) 49510c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 49520c674dbdSmrg ;; 49530c674dbdSmrg *) 49540c674dbdSmrg _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' 49550c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 49560c674dbdSmrg ;; 49570c674dbdSmrg esac 49580c674dbdSmrg ;; 49590c674dbdSmrg *) 49600c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 49610c674dbdSmrg ;; 49620c674dbdSmrg esac 49630c674dbdSmrg], [ 49640c674dbdSmrg runpath_var= 49650c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 49660c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=no 49670c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)= 49680c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)= 49690c674dbdSmrg _LT_TAGVAR(compiler_needs_object, $1)=no 49700c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 49710c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 49720c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 49730c674dbdSmrg _LT_TAGVAR(hardcode_automatic, $1)=no 49740c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 49750c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 49760c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 49770c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 49780c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=no 49790c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 49800c674dbdSmrg _LT_TAGVAR(inherit_rpath, $1)=no 49810c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=unknown 49820c674dbdSmrg _LT_TAGVAR(module_cmds, $1)= 49830c674dbdSmrg _LT_TAGVAR(module_expsym_cmds, $1)= 49840c674dbdSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)= 49850c674dbdSmrg _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 49860c674dbdSmrg _LT_TAGVAR(thread_safe_flag_spec, $1)= 49870c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 49880c674dbdSmrg # include_expsyms should be a list of space-separated symbols to be *always* 49890c674dbdSmrg # included in the symbol list 49900c674dbdSmrg _LT_TAGVAR(include_expsyms, $1)= 49910c674dbdSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 49920c674dbdSmrg # it will be wrapped by ' (' and ')$', so one must not match beginning or 49930c674dbdSmrg # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 49940c674dbdSmrg # as well as any symbol that contains 'd'. 49950c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 49960c674dbdSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 49970c674dbdSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 49980c674dbdSmrg # the symbol is explicitly referenced. Since portable code cannot 49990c674dbdSmrg # rely on this symbol name, it's probably fine to never include it in 50000c674dbdSmrg # preloaded symbol tables. 50010c674dbdSmrg # Exclude shared library initialization/finalization symbols. 50020c674dbdSmrgdnl Note also adjust exclude_expsyms for C++ above. 50030c674dbdSmrg extract_expsyms_cmds= 50040c674dbdSmrg 50050c674dbdSmrg case $host_os in 50060c674dbdSmrg cygwin* | mingw* | pw32* | cegcc*) 50070c674dbdSmrg # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 50080c674dbdSmrg # When not using gcc, we currently assume that we are using 50090c674dbdSmrg # Microsoft Visual C++ or Intel C++ Compiler. 50100c674dbdSmrg if test yes != "$GCC"; then 50110c674dbdSmrg with_gnu_ld=no 50120c674dbdSmrg fi 50130c674dbdSmrg ;; 50140c674dbdSmrg interix*) 50150c674dbdSmrg # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 50160c674dbdSmrg with_gnu_ld=yes 50170c674dbdSmrg ;; 50180c674dbdSmrg openbsd* | bitrig*) 50190c674dbdSmrg with_gnu_ld=no 50200c674dbdSmrg ;; 50210c674dbdSmrg esac 50220c674dbdSmrg 50230c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 50240c674dbdSmrg 50250c674dbdSmrg # On some targets, GNU ld is compatible enough with the native linker 50260c674dbdSmrg # that we're better off using the native interface for both. 50270c674dbdSmrg lt_use_gnu_ld_interface=no 50280c674dbdSmrg if test yes = "$with_gnu_ld"; then 50290c674dbdSmrg case $host_os in 50300c674dbdSmrg aix*) 50310c674dbdSmrg # The AIX port of GNU ld has always aspired to compatibility 50320c674dbdSmrg # with the native linker. However, as the warning in the GNU ld 50330c674dbdSmrg # block says, versions before 2.19.5* couldn't really create working 50340c674dbdSmrg # shared libraries, regardless of the interface used. 50350c674dbdSmrg case `$LD -v 2>&1` in 50360c674dbdSmrg *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 50370c674dbdSmrg *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 50380c674dbdSmrg *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 50390c674dbdSmrg *) 50400c674dbdSmrg lt_use_gnu_ld_interface=yes 50410c674dbdSmrg ;; 50420c674dbdSmrg esac 50430c674dbdSmrg ;; 50440c674dbdSmrg *) 50450c674dbdSmrg lt_use_gnu_ld_interface=yes 50460c674dbdSmrg ;; 50470c674dbdSmrg esac 50480c674dbdSmrg fi 50490c674dbdSmrg 50500c674dbdSmrg if test yes = "$lt_use_gnu_ld_interface"; then 50510c674dbdSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 50520c674dbdSmrg wlarc='$wl' 50530c674dbdSmrg 50540c674dbdSmrg # Set some defaults for GNU ld with shared library support. These 50550c674dbdSmrg # are reset later if shared libraries are not supported. Putting them 50560c674dbdSmrg # here allows them to be overridden if necessary. 50570c674dbdSmrg runpath_var=LD_RUN_PATH 50580c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 50590c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 50600c674dbdSmrg # ancient GNU ld didn't support --whole-archive et. al. 50610c674dbdSmrg if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 50620c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 50630c674dbdSmrg else 50640c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 50650c674dbdSmrg fi 50660c674dbdSmrg supports_anon_versioning=no 50670c674dbdSmrg case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in 50680c674dbdSmrg *GNU\ gold*) supports_anon_versioning=yes ;; 50690c674dbdSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 50700c674dbdSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 50710c674dbdSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 50720c674dbdSmrg *\ 2.11.*) ;; # other 2.11 versions 50730c674dbdSmrg *) supports_anon_versioning=yes ;; 50740c674dbdSmrg esac 50750c674dbdSmrg 50760c674dbdSmrg # See if GNU ld supports shared libraries. 50770c674dbdSmrg case $host_os in 50780c674dbdSmrg aix[[3-9]]*) 50790c674dbdSmrg # On AIX/PPC, the GNU linker is very broken 50800c674dbdSmrg if test ia64 != "$host_cpu"; then 50810c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 50820c674dbdSmrg cat <<_LT_EOF 1>&2 50830c674dbdSmrg 50840c674dbdSmrg*** Warning: the GNU linker, at least up to release 2.19, is reported 50850c674dbdSmrg*** to be unable to reliably create shared libraries on AIX. 50860c674dbdSmrg*** Therefore, libtool is disabling shared libraries support. If you 50870c674dbdSmrg*** really care for shared libraries, you may want to install binutils 50880c674dbdSmrg*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 50890c674dbdSmrg*** You will then need to restart the configuration process. 50900c674dbdSmrg 50910c674dbdSmrg_LT_EOF 50920c674dbdSmrg fi 50930c674dbdSmrg ;; 50940c674dbdSmrg 50950c674dbdSmrg amigaos*) 50960c674dbdSmrg case $host_cpu in 50970c674dbdSmrg powerpc) 50980c674dbdSmrg # see comment about AmigaOS4 .so support 50990c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 51000c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 51010c674dbdSmrg ;; 51020c674dbdSmrg m68k) 51030c674dbdSmrg _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)' 51040c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51050c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 51060c674dbdSmrg ;; 51070c674dbdSmrg esac 51080c674dbdSmrg ;; 51090c674dbdSmrg 51100c674dbdSmrg beos*) 51110c674dbdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 51120c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 51130c674dbdSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 51140c674dbdSmrg # support --undefined. This deserves some investigation. FIXME 51150c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 51160c674dbdSmrg else 51170c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 51180c674dbdSmrg fi 51190c674dbdSmrg ;; 51200c674dbdSmrg 51210c674dbdSmrg cygwin* | mingw* | pw32* | cegcc*) 51220c674dbdSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 51230c674dbdSmrg # as there is no search path for DLLs. 51240c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51250c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 51260c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 51270c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=no 51280c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 51290c674dbdSmrg _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' 51300c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 51310c674dbdSmrg 51320c674dbdSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 51330c674dbdSmrg _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' 51340c674dbdSmrg # If the export-symbols file already is a .def file, use it as 51350c674dbdSmrg # is; otherwise, prepend EXPORTS... 51360c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 51370c674dbdSmrg cp $export_symbols $output_objdir/$soname.def; 51380c674dbdSmrg else 51390c674dbdSmrg echo EXPORTS > $output_objdir/$soname.def; 51400c674dbdSmrg cat $export_symbols >> $output_objdir/$soname.def; 51410c674dbdSmrg fi~ 51420c674dbdSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 51430c674dbdSmrg else 51440c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 51450c674dbdSmrg fi 51460c674dbdSmrg ;; 51470c674dbdSmrg 51480c674dbdSmrg haiku*) 51490c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 51500c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 51510c674dbdSmrg ;; 51520c674dbdSmrg 51530c674dbdSmrg os2*) 51540c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 51550c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 51560c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 51570c674dbdSmrg shrext_cmds=.dll 51580c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 51590c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 51600c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 51610c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 51620c674dbdSmrg emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 51630c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 51640c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 51650c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 51660c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 51670c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 51680c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 51690c674dbdSmrg prefix_cmds="$SED"~ 51700c674dbdSmrg if test EXPORTS = "`$SED 1q $export_symbols`"; then 51710c674dbdSmrg prefix_cmds="$prefix_cmds -e 1d"; 51720c674dbdSmrg fi~ 51730c674dbdSmrg prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 51740c674dbdSmrg cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 51750c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 51760c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 51770c674dbdSmrg _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 51780c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 51790c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='@' 51800c674dbdSmrg ;; 51810c674dbdSmrg 51820c674dbdSmrg interix[[3-9]]*) 51830c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 51840c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 51850c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 51860c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 51870c674dbdSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 51880c674dbdSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 51890c674dbdSmrg # default) and relocated if they conflict, which is a slow very memory 51900c674dbdSmrg # consuming and fragmenting process. To avoid this, we pick a random, 51910c674dbdSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 51920c674dbdSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 51930c674dbdSmrg _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' 51940c674dbdSmrg _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' 51950c674dbdSmrg ;; 51960c674dbdSmrg 51970c674dbdSmrg gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 51980c674dbdSmrg tmp_diet=no 51990c674dbdSmrg if test linux-dietlibc = "$host_os"; then 52000c674dbdSmrg case $cc_basename in 52010c674dbdSmrg diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 52020c674dbdSmrg esac 52030c674dbdSmrg fi 52040c674dbdSmrg if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 52050c674dbdSmrg && test no = "$tmp_diet" 52060c674dbdSmrg then 52070c674dbdSmrg tmp_addflag=' $pic_flag' 52080c674dbdSmrg tmp_sharedflag='-shared' 52090c674dbdSmrg case $cc_basename,$host_cpu in 52100c674dbdSmrg pgcc*) # Portland Group C compiler 52110c674dbdSmrg _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' 52120c674dbdSmrg tmp_addflag=' $pic_flag' 52130c674dbdSmrg ;; 52140c674dbdSmrg pgf77* | pgf90* | pgf95* | pgfortran*) 52150c674dbdSmrg # Portland Group f77 and f90 compilers 52160c674dbdSmrg _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' 52170c674dbdSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 52180c674dbdSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 52190c674dbdSmrg tmp_addflag=' -i_dynamic' ;; 52200c674dbdSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 52210c674dbdSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 52220c674dbdSmrg ifc* | ifort*) # Intel Fortran compiler 52230c674dbdSmrg tmp_addflag=' -nofor_main' ;; 52240c674dbdSmrg lf95*) # Lahey Fortran 8.1 52250c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 52260c674dbdSmrg tmp_sharedflag='--shared' ;; 52270c674dbdSmrg nagfor*) # NAGFOR 5.3 52280c674dbdSmrg tmp_sharedflag='-Wl,-shared' ;; 52290c674dbdSmrg xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 52300c674dbdSmrg tmp_sharedflag='-qmkshrobj' 52310c674dbdSmrg tmp_addflag= ;; 52320c674dbdSmrg nvcc*) # Cuda Compiler Driver 2.2 52330c674dbdSmrg _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' 52340c674dbdSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 52350c674dbdSmrg ;; 52360c674dbdSmrg esac 52370c674dbdSmrg case `$CC -V 2>&1 | $SED 5q` in 52380c674dbdSmrg *Sun\ C*) # Sun C 5.9 52390c674dbdSmrg _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' 52400c674dbdSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 52410c674dbdSmrg tmp_sharedflag='-G' ;; 52420c674dbdSmrg *Sun\ F*) # Sun Fortran 8.3 52430c674dbdSmrg tmp_sharedflag='-G' ;; 52440c674dbdSmrg esac 52450c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 52460c674dbdSmrg 52470c674dbdSmrg if test yes = "$supports_anon_versioning"; then 52480c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 52490c674dbdSmrg cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 52500c674dbdSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 52510c674dbdSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 52520c674dbdSmrg fi 52530c674dbdSmrg 52540c674dbdSmrg case $cc_basename in 52550c674dbdSmrg tcc*) 52560c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 52570c674dbdSmrg ;; 52580c674dbdSmrg xlf* | bgf* | bgxlf* | mpixlf*) 52590c674dbdSmrg # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 52600c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 52610c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 52620c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 52630c674dbdSmrg if test yes = "$supports_anon_versioning"; then 52640c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 52650c674dbdSmrg cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 52660c674dbdSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 52670c674dbdSmrg $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 52680c674dbdSmrg fi 52690c674dbdSmrg ;; 52700c674dbdSmrg esac 52710c674dbdSmrg else 52720c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 52730c674dbdSmrg fi 52740c674dbdSmrg ;; 52750c674dbdSmrg 52760c674dbdSmrg netbsd*) 52770c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 52780c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 52790c674dbdSmrg wlarc= 52800c674dbdSmrg else 52810c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 52820c674dbdSmrg _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' 52830c674dbdSmrg fi 52840c674dbdSmrg ;; 52850c674dbdSmrg 52860c674dbdSmrg solaris*) 52870c674dbdSmrg if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 52880c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 52890c674dbdSmrg cat <<_LT_EOF 1>&2 52900c674dbdSmrg 52910c674dbdSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 52920c674dbdSmrg*** create shared libraries on Solaris systems. Therefore, libtool 52930c674dbdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 52940c674dbdSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 52950c674dbdSmrg*** your PATH or compiler configuration so that the native linker is 52960c674dbdSmrg*** used, and then restart. 52970c674dbdSmrg 52980c674dbdSmrg_LT_EOF 52990c674dbdSmrg elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 53000c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 53010c674dbdSmrg _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' 53020c674dbdSmrg else 53030c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 53040c674dbdSmrg fi 53050c674dbdSmrg ;; 53060c674dbdSmrg 53070c674dbdSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 53080c674dbdSmrg case `$LD -v 2>&1` in 53090c674dbdSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 53100c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 53110c674dbdSmrg cat <<_LT_EOF 1>&2 53120c674dbdSmrg 53130c674dbdSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 53140c674dbdSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 53150c674dbdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 53160c674dbdSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 53170c674dbdSmrg*** your PATH or compiler configuration so that the native linker is 53180c674dbdSmrg*** used, and then restart. 53190c674dbdSmrg 53200c674dbdSmrg_LT_EOF 53210c674dbdSmrg ;; 53220c674dbdSmrg *) 53230c674dbdSmrg # For security reasons, it is highly recommended that you always 53240c674dbdSmrg # use absolute paths for naming shared libraries, and exclude the 53250c674dbdSmrg # DT_RUNPATH tag from executables and libraries. But doing so 53260c674dbdSmrg # requires that you compile everything twice, which is a pain. 53270c674dbdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 53280c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 53290c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 53300c674dbdSmrg _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' 53310c674dbdSmrg else 53320c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 53330c674dbdSmrg fi 53340c674dbdSmrg ;; 53350c674dbdSmrg esac 53360c674dbdSmrg ;; 53370c674dbdSmrg 53380c674dbdSmrg sunos4*) 53390c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 53400c674dbdSmrg wlarc= 53410c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 53420c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 53430c674dbdSmrg ;; 53440c674dbdSmrg 53450c674dbdSmrg *) 53460c674dbdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 53470c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 53480c674dbdSmrg _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' 53490c674dbdSmrg else 53500c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 53510c674dbdSmrg fi 53520c674dbdSmrg ;; 53530c674dbdSmrg esac 53540c674dbdSmrg 53550c674dbdSmrg if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 53560c674dbdSmrg runpath_var= 53570c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 53580c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)= 53590c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 53600c674dbdSmrg fi 53610c674dbdSmrg else 53620c674dbdSmrg # PORTME fill in a description of your system's linker (not GNU ld) 53630c674dbdSmrg case $host_os in 53640c674dbdSmrg aix3*) 53650c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 53660c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 53670c674dbdSmrg _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' 53680c674dbdSmrg # Note: this linker hardcodes the directories in LIBPATH if there 53690c674dbdSmrg # are no directories specified by -L. 53700c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 53710c674dbdSmrg if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 53720c674dbdSmrg # Neither direct hardcoding nor static linking is supported with a 53730c674dbdSmrg # broken collect2. 53740c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 53750c674dbdSmrg fi 53760c674dbdSmrg ;; 53770c674dbdSmrg 53780c674dbdSmrg aix[[4-9]]*) 53790c674dbdSmrg if test ia64 = "$host_cpu"; then 53800c674dbdSmrg # On IA64, the linker does run time linking by default, so we don't 53810c674dbdSmrg # have to do anything special. 53820c674dbdSmrg aix_use_runtimelinking=no 53830c674dbdSmrg exp_sym_flag='-Bexport' 53840c674dbdSmrg no_entry_flag= 53850c674dbdSmrg else 53860c674dbdSmrg # If we're using GNU nm, then we don't want the "-C" option. 53870c674dbdSmrg # -C means demangle to GNU nm, but means don't demangle to AIX nm. 53880c674dbdSmrg # Without the "-l" option, or with the "-B" option, AIX nm treats 53890c674dbdSmrg # weak defined symbols like other global defined symbols, whereas 53900c674dbdSmrg # GNU nm marks them as "W". 53910c674dbdSmrg # While the 'weak' keyword is ignored in the Export File, we need 53920c674dbdSmrg # it in the Import File for the 'aix-soname' feature, so we have 53930c674dbdSmrg # to replace the "-B" option with "-P" for AIX nm. 53940c674dbdSmrg if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 53950c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 53960c674dbdSmrg else 53970c674dbdSmrg _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 53980c674dbdSmrg fi 53990c674dbdSmrg aix_use_runtimelinking=no 54000c674dbdSmrg 54010c674dbdSmrg # Test if we are trying to use run time linking or normal 54020c674dbdSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 54030c674dbdSmrg # have runtime linking enabled, and use it for executables. 54040c674dbdSmrg # For shared libraries, we enable/disable runtime linking 54050c674dbdSmrg # depending on the kind of the shared library created - 54060c674dbdSmrg # when "with_aix_soname,aix_use_runtimelinking" is: 54070c674dbdSmrg # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 54080c674dbdSmrg # "aix,yes" lib.so shared, rtl:yes, for executables 54090c674dbdSmrg # lib.a static archive 54100c674dbdSmrg # "both,no" lib.so.V(shr.o) shared, rtl:yes 54110c674dbdSmrg # lib.a(lib.so.V) shared, rtl:no, for executables 54120c674dbdSmrg # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 54130c674dbdSmrg # lib.a(lib.so.V) shared, rtl:no 54140c674dbdSmrg # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 54150c674dbdSmrg # lib.a static archive 54160c674dbdSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 54170c674dbdSmrg for ld_flag in $LDFLAGS; do 54180c674dbdSmrg if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 54190c674dbdSmrg aix_use_runtimelinking=yes 54200c674dbdSmrg break 54210c674dbdSmrg fi 54220c674dbdSmrg done 54230c674dbdSmrg if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 54240c674dbdSmrg # With aix-soname=svr4, we create the lib.so.V shared archives only, 54250c674dbdSmrg # so we don't have lib.a shared libs to link our executables. 54260c674dbdSmrg # We have to force runtime linking in this case. 54270c674dbdSmrg aix_use_runtimelinking=yes 54280c674dbdSmrg LDFLAGS="$LDFLAGS -Wl,-brtl" 54290c674dbdSmrg fi 54300c674dbdSmrg ;; 54310c674dbdSmrg esac 54320c674dbdSmrg 54330c674dbdSmrg exp_sym_flag='-bexport' 54340c674dbdSmrg no_entry_flag='-bnoentry' 54350c674dbdSmrg fi 54360c674dbdSmrg 54370c674dbdSmrg # When large executables or shared objects are built, AIX ld can 54380c674dbdSmrg # have problems creating the table of contents. If linking a library 54390c674dbdSmrg # or program results in "error TOC overflow" add -mminimal-toc to 54400c674dbdSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 54410c674dbdSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 54420c674dbdSmrg 54430c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='' 54440c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 54450c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 54460c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 54470c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 54480c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 54490c674dbdSmrg case $with_aix_soname,$aix_use_runtimelinking in 54500c674dbdSmrg aix,*) ;; # traditional, no import file 54510c674dbdSmrg svr4,* | *,yes) # use import file 54520c674dbdSmrg # The Import File defines what to hardcode. 54530c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 54540c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 54550c674dbdSmrg ;; 54560c674dbdSmrg esac 54570c674dbdSmrg 54580c674dbdSmrg if test yes = "$GCC"; then 54590c674dbdSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 54600c674dbdSmrg # We only want to do this on AIX 4.2 and lower, the check 54610c674dbdSmrg # below for broken collect2 doesn't work under 4.3+ 54620c674dbdSmrg collect2name=`$CC -print-prog-name=collect2` 54630c674dbdSmrg if test -f "$collect2name" && 54640c674dbdSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 54650c674dbdSmrg then 54660c674dbdSmrg # We have reworked collect2 54670c674dbdSmrg : 54680c674dbdSmrg else 54690c674dbdSmrg # We have old collect2 54700c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 54710c674dbdSmrg # It fails to find uninstalled libraries when the uninstalled 54720c674dbdSmrg # path is not listed in the libpath. Setting hardcode_minus_L 54730c674dbdSmrg # to unsupported forces relinking 54740c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 54750c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 54760c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 54770c674dbdSmrg fi 54780c674dbdSmrg ;; 54790c674dbdSmrg esac 54800c674dbdSmrg shared_flag='-shared' 54810c674dbdSmrg if test yes = "$aix_use_runtimelinking"; then 54820c674dbdSmrg shared_flag="$shared_flag "'$wl-G' 54830c674dbdSmrg fi 54840c674dbdSmrg # Need to ensure runtime linking is disabled for the traditional 54850c674dbdSmrg # shared library, or the linker may eventually find shared libraries 54860c674dbdSmrg # /with/ Import File - we do not want to mix them. 54870c674dbdSmrg shared_flag_aix='-shared' 54880c674dbdSmrg shared_flag_svr4='-shared $wl-G' 54890c674dbdSmrg else 54900c674dbdSmrg # not using gcc 54910c674dbdSmrg if test ia64 = "$host_cpu"; then 54920c674dbdSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 54930c674dbdSmrg # chokes on -Wl,-G. The following line is correct: 54940c674dbdSmrg shared_flag='-G' 54950c674dbdSmrg else 54960c674dbdSmrg if test yes = "$aix_use_runtimelinking"; then 54970c674dbdSmrg shared_flag='$wl-G' 54980c674dbdSmrg else 54990c674dbdSmrg shared_flag='$wl-bM:SRE' 55000c674dbdSmrg fi 55010c674dbdSmrg shared_flag_aix='$wl-bM:SRE' 55020c674dbdSmrg shared_flag_svr4='$wl-G' 55030c674dbdSmrg fi 55040c674dbdSmrg fi 55050c674dbdSmrg 55060c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 55070c674dbdSmrg # It seems that -bexpall does not export symbols beginning with 55080c674dbdSmrg # underscore (_), so it is better to generate a list of symbols to export. 55090c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 55100c674dbdSmrg if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 55110c674dbdSmrg # Warning - without using the other runtime loading flags (-brtl), 55120c674dbdSmrg # -berok will link without error, but may produce a broken library. 55130c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 55140c674dbdSmrg # Determine the default libpath from the value encoded in an 55150c674dbdSmrg # empty executable. 55160c674dbdSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 55170c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 55180c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 55190c674dbdSmrg else 55200c674dbdSmrg if test ia64 = "$host_cpu"; then 55210c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 55220c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 55230c674dbdSmrg _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" 55240c674dbdSmrg else 55250c674dbdSmrg # Determine the default libpath from the value encoded in an 55260c674dbdSmrg # empty executable. 55270c674dbdSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 55280c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 55290c674dbdSmrg # Warning - without using the other run time loading flags, 55300c674dbdSmrg # -berok will link without error, but may produce a broken library. 55310c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 55320c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 55330c674dbdSmrg if test yes = "$with_gnu_ld"; then 55340c674dbdSmrg # We only use this code for GNU lds that support --whole-archive. 55350c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 55360c674dbdSmrg else 55370c674dbdSmrg # Exported symbols can be pulled into shared objects from archives 55380c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 55390c674dbdSmrg fi 55400c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 55410c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 55420c674dbdSmrg # -brtl affects multiple linker settings, -berok does not and is overridden later 55430c674dbdSmrg compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 55440c674dbdSmrg if test svr4 != "$with_aix_soname"; then 55450c674dbdSmrg # This is similar to how AIX traditionally builds its shared libraries. 55460c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 55470c674dbdSmrg fi 55480c674dbdSmrg if test aix != "$with_aix_soname"; then 55490c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 55500c674dbdSmrg else 55510c674dbdSmrg # used by -dlpreopen to get the symbols 55520c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 55530c674dbdSmrg fi 55540c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 55550c674dbdSmrg fi 55560c674dbdSmrg fi 55570c674dbdSmrg ;; 55580c674dbdSmrg 55590c674dbdSmrg amigaos*) 55600c674dbdSmrg case $host_cpu in 55610c674dbdSmrg powerpc) 55620c674dbdSmrg # see comment about AmigaOS4 .so support 55630c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 55640c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='' 55650c674dbdSmrg ;; 55660c674dbdSmrg m68k) 55670c674dbdSmrg _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)' 55680c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 55690c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 55700c674dbdSmrg ;; 55710c674dbdSmrg esac 55720c674dbdSmrg ;; 55730c674dbdSmrg 55740c674dbdSmrg bsdi[[45]]*) 55750c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 55760c674dbdSmrg ;; 55770c674dbdSmrg 55780c674dbdSmrg cygwin* | mingw* | pw32* | cegcc*) 55790c674dbdSmrg # When not using gcc, we currently assume that we are using 55800c674dbdSmrg # Microsoft Visual C++ or Intel C++ Compiler. 55810c674dbdSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 55820c674dbdSmrg # no search path for DLLs. 55830c674dbdSmrg case $cc_basename in 55840c674dbdSmrg cl* | icl*) 55850c674dbdSmrg # Native MSVC or ICC 55860c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 55870c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 55880c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 55890c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='@' 55900c674dbdSmrg # Tell ltmain to make .lib files, not .a files. 55910c674dbdSmrg libext=lib 55920c674dbdSmrg # Tell ltmain to make .dll files, not .so files. 55930c674dbdSmrg shrext_cmds=.dll 55940c674dbdSmrg # FIXME: Setting linknames here is a bad hack. 55950c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 55960c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 55970c674dbdSmrg cp "$export_symbols" "$output_objdir/$soname.def"; 55980c674dbdSmrg echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 55990c674dbdSmrg else 56000c674dbdSmrg $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 56010c674dbdSmrg fi~ 56020c674dbdSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 56030c674dbdSmrg linknames=' 56040c674dbdSmrg # The linker will not automatically build a static lib if we build a DLL. 56050c674dbdSmrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 56060c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 56070c674dbdSmrg _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 56080c674dbdSmrg _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' 56090c674dbdSmrg # Don't use ranlib 56100c674dbdSmrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 56110c674dbdSmrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 56120c674dbdSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 56130c674dbdSmrg case $lt_outputfile in 56140c674dbdSmrg *.exe|*.EXE) ;; 56150c674dbdSmrg *) 56160c674dbdSmrg lt_outputfile=$lt_outputfile.exe 56170c674dbdSmrg lt_tool_outputfile=$lt_tool_outputfile.exe 56180c674dbdSmrg ;; 56190c674dbdSmrg esac~ 56200c674dbdSmrg if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 56210c674dbdSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 56220c674dbdSmrg $RM "$lt_outputfile.manifest"; 56230c674dbdSmrg fi' 56240c674dbdSmrg ;; 56250c674dbdSmrg *) 56260c674dbdSmrg # Assume MSVC and ICC wrapper 56270c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 56280c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 56290c674dbdSmrg # Tell ltmain to make .lib files, not .a files. 56300c674dbdSmrg libext=lib 56310c674dbdSmrg # Tell ltmain to make .dll files, not .so files. 56320c674dbdSmrg shrext_cmds=.dll 56330c674dbdSmrg # FIXME: Setting linknames here is a bad hack. 56340c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 56350c674dbdSmrg # The linker will automatically build a .lib file if we build a DLL. 56360c674dbdSmrg _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 56370c674dbdSmrg # FIXME: Should let the user specify the lib program. 56380c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 56390c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 56400c674dbdSmrg ;; 56410c674dbdSmrg esac 56420c674dbdSmrg ;; 56430c674dbdSmrg 56440c674dbdSmrg darwin* | rhapsody*) 56450c674dbdSmrg _LT_DARWIN_LINKER_FEATURES($1) 56460c674dbdSmrg ;; 56470c674dbdSmrg 56480c674dbdSmrg dgux*) 56490c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 56500c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 56510c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 56520c674dbdSmrg ;; 56530c674dbdSmrg 56540c674dbdSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 56550c674dbdSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 56560c674dbdSmrg # does not break anything, and helps significantly (at the cost of a little 56570c674dbdSmrg # extra space). 56580c674dbdSmrg freebsd2.2*) 56590c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 56600c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 56610c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 56620c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 56630c674dbdSmrg ;; 56640c674dbdSmrg 56650c674dbdSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 56660c674dbdSmrg freebsd2.*) 56670c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 56680c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 56690c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 56700c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 56710c674dbdSmrg ;; 56720c674dbdSmrg 56730c674dbdSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 56740c674dbdSmrg freebsd* | dragonfly* | midnightbsd*) 56750c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 56760c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 56770c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 56780c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 56790c674dbdSmrg ;; 56800c674dbdSmrg 56810c674dbdSmrg hpux9*) 56820c674dbdSmrg if test yes = "$GCC"; then 56830c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 56840c674dbdSmrg else 56850c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 56860c674dbdSmrg fi 56870c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 56880c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 56890c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 56900c674dbdSmrg 56910c674dbdSmrg # hardcode_minus_L: Not really in the search PATH, 56920c674dbdSmrg # but as the default location of the library. 56930c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 56940c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 56950c674dbdSmrg ;; 56960c674dbdSmrg 56970c674dbdSmrg hpux10*) 56980c674dbdSmrg if test yes,no = "$GCC,$with_gnu_ld"; then 56990c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 57000c674dbdSmrg else 57010c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 57020c674dbdSmrg fi 57030c674dbdSmrg if test no = "$with_gnu_ld"; then 57040c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 57050c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57060c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57070c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 57080c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 57090c674dbdSmrg # hardcode_minus_L: Not really in the search PATH, 57100c674dbdSmrg # but as the default location of the library. 57110c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 57120c674dbdSmrg fi 57130c674dbdSmrg ;; 57140c674dbdSmrg 57150c674dbdSmrg hpux11*) 57160c674dbdSmrg if test yes,no = "$GCC,$with_gnu_ld"; then 57170c674dbdSmrg case $host_cpu in 57180c674dbdSmrg hppa*64*) 57190c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 57200c674dbdSmrg ;; 57210c674dbdSmrg ia64*) 57220c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 57230c674dbdSmrg ;; 57240c674dbdSmrg *) 57250c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 57260c674dbdSmrg ;; 57270c674dbdSmrg esac 57280c674dbdSmrg else 57290c674dbdSmrg case $host_cpu in 57300c674dbdSmrg hppa*64*) 57310c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 57320c674dbdSmrg ;; 57330c674dbdSmrg ia64*) 57340c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 57350c674dbdSmrg ;; 57360c674dbdSmrg *) 57370c674dbdSmrg m4_if($1, [], [ 57380c674dbdSmrg # Older versions of the 11.00 compiler do not understand -b yet 57390c674dbdSmrg # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 57400c674dbdSmrg _LT_LINKER_OPTION([if $CC understands -b], 57410c674dbdSmrg _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 57420c674dbdSmrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 57430c674dbdSmrg [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 57440c674dbdSmrg [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 57450c674dbdSmrg ;; 57460c674dbdSmrg esac 57470c674dbdSmrg fi 57480c674dbdSmrg if test no = "$with_gnu_ld"; then 57490c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 57500c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 57510c674dbdSmrg 57520c674dbdSmrg case $host_cpu in 57530c674dbdSmrg hppa*64*|ia64*) 57540c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 57550c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 57560c674dbdSmrg ;; 57570c674dbdSmrg *) 57580c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 57590c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 57600c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 57610c674dbdSmrg 57620c674dbdSmrg # hardcode_minus_L: Not really in the search PATH, 57630c674dbdSmrg # but as the default location of the library. 57640c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 57650c674dbdSmrg ;; 57660c674dbdSmrg esac 57670c674dbdSmrg fi 57680c674dbdSmrg ;; 57690c674dbdSmrg 57700c674dbdSmrg irix5* | irix6* | nonstopux*) 57710c674dbdSmrg if test yes = "$GCC"; then 57720c674dbdSmrg _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' 57730c674dbdSmrg # Try to use the -exported_symbol ld option, if it does not 57740c674dbdSmrg # work, assume that -exports_file does not work either and 57750c674dbdSmrg # implicitly export all symbols. 57760c674dbdSmrg # This should be the same for all languages, so no per-tag cache variable. 57770c674dbdSmrg AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 57780c674dbdSmrg [lt_cv_irix_exported_symbol], 57790c674dbdSmrg [save_LDFLAGS=$LDFLAGS 57800c674dbdSmrg LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 57810c674dbdSmrg AC_LINK_IFELSE( 57820c674dbdSmrg [AC_LANG_SOURCE( 57830c674dbdSmrg [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 57840c674dbdSmrg [C++], [[int foo (void) { return 0; }]], 57850c674dbdSmrg [Fortran 77], [[ 57860c674dbdSmrg subroutine foo 57870c674dbdSmrg end]], 57880c674dbdSmrg [Fortran], [[ 57890c674dbdSmrg subroutine foo 57900c674dbdSmrg end]])])], 57910c674dbdSmrg [lt_cv_irix_exported_symbol=yes], 57920c674dbdSmrg [lt_cv_irix_exported_symbol=no]) 57930c674dbdSmrg LDFLAGS=$save_LDFLAGS]) 57940c674dbdSmrg if test yes = "$lt_cv_irix_exported_symbol"; then 57950c674dbdSmrg _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' 57960c674dbdSmrg fi 57970c674dbdSmrg else 57980c674dbdSmrg _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' 57990c674dbdSmrg _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' 58000c674dbdSmrg fi 58010c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 58020c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 58030c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58040c674dbdSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 58050c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 58060c674dbdSmrg ;; 58070c674dbdSmrg 58080c674dbdSmrg linux*) 58090c674dbdSmrg case $cc_basename in 58100c674dbdSmrg tcc*) 58110c674dbdSmrg # Fabrice Bellard et al's Tiny C Compiler 58120c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 58130c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 58140c674dbdSmrg ;; 58150c674dbdSmrg esac 58160c674dbdSmrg ;; 58170c674dbdSmrg 58180c674dbdSmrg netbsd*) 58190c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 58200c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 58210c674dbdSmrg else 58220c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 58230c674dbdSmrg fi 58240c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 58250c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 58260c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58270c674dbdSmrg ;; 58280c674dbdSmrg 58290c674dbdSmrg newsos6) 58300c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 58310c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 58320c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 58330c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58340c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58350c674dbdSmrg ;; 58360c674dbdSmrg 58370c674dbdSmrg *nto* | *qnx*) 58380c674dbdSmrg ;; 58390c674dbdSmrg 58400c674dbdSmrg openbsd* | bitrig*) 58410c674dbdSmrg if test -f /usr/libexec/ld.so; then 58420c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 58430c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 58440c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 58450c674dbdSmrg if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 58460c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 58470c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 58480c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 58490c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 58500c674dbdSmrg else 58510c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 58520c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 58530c674dbdSmrg fi 58540c674dbdSmrg else 58550c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 58560c674dbdSmrg fi 58570c674dbdSmrg ;; 58580c674dbdSmrg 58590c674dbdSmrg os2*) 58600c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 58610c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 58620c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 58630c674dbdSmrg shrext_cmds=.dll 58640c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 58650c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 58660c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 58670c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 58680c674dbdSmrg emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 58690c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 58700c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 58710c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 58720c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 58730c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 58740c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 58750c674dbdSmrg prefix_cmds="$SED"~ 58760c674dbdSmrg if test EXPORTS = "`$SED 1q $export_symbols`"; then 58770c674dbdSmrg prefix_cmds="$prefix_cmds -e 1d"; 58780c674dbdSmrg fi~ 58790c674dbdSmrg prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 58800c674dbdSmrg cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 58810c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 58820c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 58830c674dbdSmrg _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 58840c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 58850c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='@' 58860c674dbdSmrg ;; 58870c674dbdSmrg 58880c674dbdSmrg osf3*) 58890c674dbdSmrg if test yes = "$GCC"; then 58900c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 58910c674dbdSmrg _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' 58920c674dbdSmrg else 58930c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 58940c674dbdSmrg _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' 58950c674dbdSmrg fi 58960c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 58970c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 58980c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 58990c674dbdSmrg ;; 59000c674dbdSmrg 59010c674dbdSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 59020c674dbdSmrg if test yes = "$GCC"; then 59030c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 59040c674dbdSmrg _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' 59050c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 59060c674dbdSmrg else 59070c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 59080c674dbdSmrg _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' 59090c674dbdSmrg _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~ 59100c674dbdSmrg $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' 59110c674dbdSmrg 59120c674dbdSmrg # Both c and cxx compiler support -rpath directly 59130c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 59140c674dbdSmrg fi 59150c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 59160c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 59170c674dbdSmrg ;; 59180c674dbdSmrg 59190c674dbdSmrg solaris*) 59200c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 59210c674dbdSmrg if test yes = "$GCC"; then 59220c674dbdSmrg wlarc='$wl' 59230c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 59240c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 59250c674dbdSmrg $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' 59260c674dbdSmrg else 59270c674dbdSmrg case `$CC -V 2>&1` in 59280c674dbdSmrg *"Compilers 5.0"*) 59290c674dbdSmrg wlarc='' 59300c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 59310c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 59320c674dbdSmrg $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 59330c674dbdSmrg ;; 59340c674dbdSmrg *) 59350c674dbdSmrg wlarc='$wl' 59360c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 59370c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 59380c674dbdSmrg $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 59390c674dbdSmrg ;; 59400c674dbdSmrg esac 59410c674dbdSmrg fi 59420c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 59430c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 59440c674dbdSmrg case $host_os in 59450c674dbdSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 59460c674dbdSmrg *) 59470c674dbdSmrg # The compiler driver will combine and reorder linker options, 59480c674dbdSmrg # but understands '-z linker_flag'. GCC discards it without '$wl', 59490c674dbdSmrg # but is careful enough not to reorder. 59500c674dbdSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 59510c674dbdSmrg if test yes = "$GCC"; then 59520c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 59530c674dbdSmrg else 59540c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 59550c674dbdSmrg fi 59560c674dbdSmrg ;; 59570c674dbdSmrg esac 59580c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 59590c674dbdSmrg ;; 59600c674dbdSmrg 59610c674dbdSmrg sunos4*) 59620c674dbdSmrg if test sequent = "$host_vendor"; then 59630c674dbdSmrg # Use $CC to link under sequent, because it throws in some extra .o 59640c674dbdSmrg # files that make .init and .fini sections work. 59650c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 59660c674dbdSmrg else 59670c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 59680c674dbdSmrg fi 59690c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 59700c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 59710c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 59720c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 59730c674dbdSmrg ;; 59740c674dbdSmrg 59750c674dbdSmrg sysv4) 59760c674dbdSmrg case $host_vendor in 59770c674dbdSmrg sni) 59780c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 59790c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 59800c674dbdSmrg ;; 59810c674dbdSmrg siemens) 59820c674dbdSmrg ## LD is ld it makes a PLAMLIB 59830c674dbdSmrg ## CC just makes a GrossModule. 59840c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 59850c674dbdSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 59860c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 59870c674dbdSmrg ;; 59880c674dbdSmrg motorola) 59890c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 59900c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 59910c674dbdSmrg ;; 59920c674dbdSmrg esac 59930c674dbdSmrg runpath_var='LD_RUN_PATH' 59940c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 59950c674dbdSmrg ;; 59960c674dbdSmrg 59970c674dbdSmrg sysv4.3*) 59980c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 59990c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60000c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 60010c674dbdSmrg ;; 60020c674dbdSmrg 60030c674dbdSmrg sysv4*MP*) 60040c674dbdSmrg if test -d /usr/nec; then 60050c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 60060c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60070c674dbdSmrg runpath_var=LD_RUN_PATH 60080c674dbdSmrg hardcode_runpath_var=yes 60090c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 60100c674dbdSmrg fi 60110c674dbdSmrg ;; 60120c674dbdSmrg 60130c674dbdSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 60140c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 60150c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 60160c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60170c674dbdSmrg runpath_var='LD_RUN_PATH' 60180c674dbdSmrg 60190c674dbdSmrg if test yes = "$GCC"; then 60200c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60210c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60220c674dbdSmrg else 60230c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60240c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60250c674dbdSmrg fi 60260c674dbdSmrg ;; 60270c674dbdSmrg 60280c674dbdSmrg sysv5* | sco3.2v5* | sco5v6*) 60290c674dbdSmrg # Note: We CANNOT use -z defs as we might desire, because we do not 60300c674dbdSmrg # link with -lc, and that would cause any symbols used from libc to 60310c674dbdSmrg # always be unresolved, which means just about no library would 60320c674dbdSmrg # ever link correctly. If we're not using GNU ld we use -z text 60330c674dbdSmrg # though, which does catch some bad symbols but isn't as heavy-handed 60340c674dbdSmrg # as -z defs. 60350c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 60360c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 60370c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 60380c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60390c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 60400c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 60410c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 60420c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 60430c674dbdSmrg runpath_var='LD_RUN_PATH' 60440c674dbdSmrg 60450c674dbdSmrg if test yes = "$GCC"; then 60460c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60470c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60480c674dbdSmrg else 60490c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60500c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 60510c674dbdSmrg fi 60520c674dbdSmrg ;; 60530c674dbdSmrg 60540c674dbdSmrg uts4*) 60550c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 60560c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 60570c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 60580c674dbdSmrg ;; 60590c674dbdSmrg 60600c674dbdSmrg *) 60610c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 60620c674dbdSmrg ;; 60630c674dbdSmrg esac 60640c674dbdSmrg 60650c674dbdSmrg if test sni = "$host_vendor"; then 60660c674dbdSmrg case $host in 60670c674dbdSmrg sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 60680c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 60690c674dbdSmrg ;; 60700c674dbdSmrg esac 60710c674dbdSmrg fi 60720c674dbdSmrg fi 60730c674dbdSmrg]) 60740c674dbdSmrgAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 60750c674dbdSmrgtest no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 60760c674dbdSmrg 60770c674dbdSmrg_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 60780c674dbdSmrg 60790c674dbdSmrg_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 60800c674dbdSmrg_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 60810c674dbdSmrg_LT_DECL([], [extract_expsyms_cmds], [2], 60820c674dbdSmrg [The commands to extract the exported symbol list from a shared archive]) 60830c674dbdSmrg 60840c674dbdSmrg# 60850c674dbdSmrg# Do we need to explicitly link libc? 60860c674dbdSmrg# 60870c674dbdSmrgcase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 60880c674dbdSmrgx|xyes) 60890c674dbdSmrg # Assume -lc should be added 60900c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 60910c674dbdSmrg 60920c674dbdSmrg if test yes,yes = "$GCC,$enable_shared"; then 60930c674dbdSmrg case $_LT_TAGVAR(archive_cmds, $1) in 60940c674dbdSmrg *'~'*) 60950c674dbdSmrg # FIXME: we may have to deal with multi-command sequences. 60960c674dbdSmrg ;; 60970c674dbdSmrg '$CC '*) 60980c674dbdSmrg # Test whether the compiler implicitly links with -lc since on some 60990c674dbdSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 61000c674dbdSmrg # to ld, don't add -lc before -lgcc. 61010c674dbdSmrg AC_CACHE_CHECK([whether -lc should be explicitly linked in], 61020c674dbdSmrg [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 61030c674dbdSmrg [$RM conftest* 61040c674dbdSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 61050c674dbdSmrg 61060c674dbdSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 61070c674dbdSmrg soname=conftest 61080c674dbdSmrg lib=conftest 61090c674dbdSmrg libobjs=conftest.$ac_objext 61100c674dbdSmrg deplibs= 61110c674dbdSmrg wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 61120c674dbdSmrg pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 61130c674dbdSmrg compiler_flags=-v 61140c674dbdSmrg linker_flags=-v 61150c674dbdSmrg verstring= 61160c674dbdSmrg output_objdir=. 61170c674dbdSmrg libname=conftest 61180c674dbdSmrg lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 61190c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)= 61200c674dbdSmrg if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 61210c674dbdSmrg then 61220c674dbdSmrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 61230c674dbdSmrg else 61240c674dbdSmrg lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 61250c674dbdSmrg fi 61260c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 61270c674dbdSmrg else 61280c674dbdSmrg cat conftest.err 1>&5 61290c674dbdSmrg fi 61300c674dbdSmrg $RM conftest* 61310c674dbdSmrg ]) 61320c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 61330c674dbdSmrg ;; 61340c674dbdSmrg esac 61350c674dbdSmrg fi 61360c674dbdSmrg ;; 61370c674dbdSmrgesac 61380c674dbdSmrg 61390c674dbdSmrg_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 61400c674dbdSmrg [Whether or not to add -lc for building shared libraries]) 61410c674dbdSmrg_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 61420c674dbdSmrg [enable_shared_with_static_runtimes], [0], 61430c674dbdSmrg [Whether or not to disallow shared libs when runtime libs are static]) 61440c674dbdSmrg_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 61450c674dbdSmrg [Compiler flag to allow reflexive dlopens]) 61460c674dbdSmrg_LT_TAGDECL([], [whole_archive_flag_spec], [1], 61470c674dbdSmrg [Compiler flag to generate shared objects directly from archives]) 61480c674dbdSmrg_LT_TAGDECL([], [compiler_needs_object], [1], 61490c674dbdSmrg [Whether the compiler copes with passing no objects directly]) 61500c674dbdSmrg_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 61510c674dbdSmrg [Create an old-style archive from a shared archive]) 61520c674dbdSmrg_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 61530c674dbdSmrg [Create a temporary old-style archive to link instead of a shared archive]) 61540c674dbdSmrg_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 61550c674dbdSmrg_LT_TAGDECL([], [archive_expsym_cmds], [2]) 61560c674dbdSmrg_LT_TAGDECL([], [module_cmds], [2], 61570c674dbdSmrg [Commands used to build a loadable module if different from building 61580c674dbdSmrg a shared archive.]) 61590c674dbdSmrg_LT_TAGDECL([], [module_expsym_cmds], [2]) 61600c674dbdSmrg_LT_TAGDECL([], [with_gnu_ld], [1], 61610c674dbdSmrg [Whether we are building with GNU ld or not]) 61620c674dbdSmrg_LT_TAGDECL([], [allow_undefined_flag], [1], 61630c674dbdSmrg [Flag that allows shared libraries with undefined symbols to be built]) 61640c674dbdSmrg_LT_TAGDECL([], [no_undefined_flag], [1], 61650c674dbdSmrg [Flag that enforces no undefined symbols]) 61660c674dbdSmrg_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 61670c674dbdSmrg [Flag to hardcode $libdir into a binary during linking. 61680c674dbdSmrg This must work even if $libdir does not exist]) 61690c674dbdSmrg_LT_TAGDECL([], [hardcode_libdir_separator], [1], 61700c674dbdSmrg [Whether we need a single "-rpath" flag with a separated argument]) 61710c674dbdSmrg_LT_TAGDECL([], [hardcode_direct], [0], 61720c674dbdSmrg [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 61730c674dbdSmrg DIR into the resulting binary]) 61740c674dbdSmrg_LT_TAGDECL([], [hardcode_direct_absolute], [0], 61750c674dbdSmrg [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 61760c674dbdSmrg DIR into the resulting binary and the resulting library dependency is 61770c674dbdSmrg "absolute", i.e impossible to change by setting $shlibpath_var if the 61780c674dbdSmrg library is relocated]) 61790c674dbdSmrg_LT_TAGDECL([], [hardcode_minus_L], [0], 61800c674dbdSmrg [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 61810c674dbdSmrg into the resulting binary]) 61820c674dbdSmrg_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 61830c674dbdSmrg [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 61840c674dbdSmrg into the resulting binary]) 61850c674dbdSmrg_LT_TAGDECL([], [hardcode_automatic], [0], 61860c674dbdSmrg [Set to "yes" if building a shared library automatically hardcodes DIR 61870c674dbdSmrg into the library and all subsequent libraries and executables linked 61880c674dbdSmrg against it]) 61890c674dbdSmrg_LT_TAGDECL([], [inherit_rpath], [0], 61900c674dbdSmrg [Set to yes if linker adds runtime paths of dependent libraries 61910c674dbdSmrg to runtime path list]) 61920c674dbdSmrg_LT_TAGDECL([], [link_all_deplibs], [0], 61930c674dbdSmrg [Whether libtool must link a program against all its dependency libraries]) 61940c674dbdSmrg_LT_TAGDECL([], [always_export_symbols], [0], 61950c674dbdSmrg [Set to "yes" if exported symbols are required]) 61960c674dbdSmrg_LT_TAGDECL([], [export_symbols_cmds], [2], 61970c674dbdSmrg [The commands to list exported symbols]) 61980c674dbdSmrg_LT_TAGDECL([], [exclude_expsyms], [1], 61990c674dbdSmrg [Symbols that should not be listed in the preloaded symbols]) 62000c674dbdSmrg_LT_TAGDECL([], [include_expsyms], [1], 62010c674dbdSmrg [Symbols that must always be exported]) 62020c674dbdSmrg_LT_TAGDECL([], [prelink_cmds], [2], 62030c674dbdSmrg [Commands necessary for linking programs (against libraries) with templates]) 62040c674dbdSmrg_LT_TAGDECL([], [postlink_cmds], [2], 62050c674dbdSmrg [Commands necessary for finishing linking programs]) 62060c674dbdSmrg_LT_TAGDECL([], [file_list_spec], [1], 62070c674dbdSmrg [Specify filename containing input files]) 62080c674dbdSmrgdnl FIXME: Not yet implemented 62090c674dbdSmrgdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 62100c674dbdSmrgdnl [Compiler flag to generate thread safe objects]) 62110c674dbdSmrg])# _LT_LINKER_SHLIBS 62120c674dbdSmrg 62130c674dbdSmrg 62140c674dbdSmrg# _LT_LANG_C_CONFIG([TAG]) 62150c674dbdSmrg# ------------------------ 62160c674dbdSmrg# Ensure that the configuration variables for a C compiler are suitably 62170c674dbdSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 62180c674dbdSmrg# the compiler configuration to 'libtool'. 62190c674dbdSmrgm4_defun([_LT_LANG_C_CONFIG], 62200c674dbdSmrg[m4_require([_LT_DECL_EGREP])dnl 62210c674dbdSmrglt_save_CC=$CC 62220c674dbdSmrgAC_LANG_PUSH(C) 62230c674dbdSmrg 62240c674dbdSmrg# Source file extension for C test sources. 62250c674dbdSmrgac_ext=c 62260c674dbdSmrg 62270c674dbdSmrg# Object file extension for compiled C test sources. 62280c674dbdSmrgobjext=o 62290c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 62300c674dbdSmrg 62310c674dbdSmrg# Code to be used in simple compile tests 62320c674dbdSmrglt_simple_compile_test_code="int some_variable = 0;" 62330c674dbdSmrg 62340c674dbdSmrg# Code to be used in simple link tests 62350c674dbdSmrglt_simple_link_test_code='int main(){return(0);}' 62360c674dbdSmrg 62370c674dbdSmrg_LT_TAG_COMPILER 62380c674dbdSmrg# Save the default compiler, since it gets overwritten when the other 62390c674dbdSmrg# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 62400c674dbdSmrgcompiler_DEFAULT=$CC 62410c674dbdSmrg 62420c674dbdSmrg# save warnings/boilerplate of simple test code 62430c674dbdSmrg_LT_COMPILER_BOILERPLATE 62440c674dbdSmrg_LT_LINKER_BOILERPLATE 62450c674dbdSmrg 62460c674dbdSmrg## CAVEAT EMPTOR: 62470c674dbdSmrg## There is no encapsulation within the following macros, do not change 62480c674dbdSmrg## the running order or otherwise move them around unless you know exactly 62490c674dbdSmrg## what you are doing... 62500c674dbdSmrgif test -n "$compiler"; then 62510c674dbdSmrg _LT_COMPILER_NO_RTTI($1) 62520c674dbdSmrg _LT_COMPILER_PIC($1) 62530c674dbdSmrg _LT_COMPILER_C_O($1) 62540c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 62550c674dbdSmrg _LT_LINKER_SHLIBS($1) 62560c674dbdSmrg _LT_SYS_DYNAMIC_LINKER($1) 62570c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 62580c674dbdSmrg LT_SYS_DLOPEN_SELF 62590c674dbdSmrg _LT_CMD_STRIPLIB 62600c674dbdSmrg 62610c674dbdSmrg # Report what library types will actually be built 62620c674dbdSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 62630c674dbdSmrg AC_MSG_RESULT([$can_build_shared]) 62640c674dbdSmrg 62650c674dbdSmrg AC_MSG_CHECKING([whether to build shared libraries]) 62660c674dbdSmrg test no = "$can_build_shared" && enable_shared=no 62670c674dbdSmrg 62680c674dbdSmrg # On AIX, shared libraries and static libraries use the same namespace, and 62690c674dbdSmrg # are all built from PIC. 62700c674dbdSmrg case $host_os in 62710c674dbdSmrg aix3*) 62720c674dbdSmrg test yes = "$enable_shared" && enable_static=no 62730c674dbdSmrg if test -n "$RANLIB"; then 62740c674dbdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 62750c674dbdSmrg postinstall_cmds='$RANLIB $lib' 62760c674dbdSmrg fi 62770c674dbdSmrg ;; 62780c674dbdSmrg 62790c674dbdSmrg aix[[4-9]]*) 62800c674dbdSmrg if test ia64 != "$host_cpu"; then 62810c674dbdSmrg case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 62820c674dbdSmrg yes,aix,yes) ;; # shared object as lib.so file only 62830c674dbdSmrg yes,svr4,*) ;; # shared object as lib.so archive member only 62840c674dbdSmrg yes,*) enable_static=no ;; # shared object in lib.a archive as well 62850c674dbdSmrg esac 62860c674dbdSmrg fi 62870c674dbdSmrg ;; 62880c674dbdSmrg esac 62890c674dbdSmrg AC_MSG_RESULT([$enable_shared]) 62900c674dbdSmrg 62910c674dbdSmrg AC_MSG_CHECKING([whether to build static libraries]) 62920c674dbdSmrg # Make sure either enable_shared or enable_static is yes. 62930c674dbdSmrg test yes = "$enable_shared" || enable_static=yes 62940c674dbdSmrg AC_MSG_RESULT([$enable_static]) 62950c674dbdSmrg 62960c674dbdSmrg _LT_CONFIG($1) 62970c674dbdSmrgfi 62980c674dbdSmrgAC_LANG_POP 62990c674dbdSmrgCC=$lt_save_CC 63000c674dbdSmrg])# _LT_LANG_C_CONFIG 63010c674dbdSmrg 63020c674dbdSmrg 63030c674dbdSmrg# _LT_LANG_CXX_CONFIG([TAG]) 63040c674dbdSmrg# -------------------------- 63050c674dbdSmrg# Ensure that the configuration variables for a C++ compiler are suitably 63060c674dbdSmrg# defined. These variables are subsequently used by _LT_CONFIG to write 63070c674dbdSmrg# the compiler configuration to 'libtool'. 63080c674dbdSmrgm4_defun([_LT_LANG_CXX_CONFIG], 63090c674dbdSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 63100c674dbdSmrgm4_require([_LT_DECL_EGREP])dnl 63110c674dbdSmrgm4_require([_LT_PATH_MANIFEST_TOOL])dnl 63120c674dbdSmrgif test -n "$CXX" && ( test no != "$CXX" && 63130c674dbdSmrg ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 63140c674dbdSmrg (test g++ != "$CXX"))); then 63150c674dbdSmrg AC_PROG_CXXCPP 63160c674dbdSmrgelse 63170c674dbdSmrg _lt_caught_CXX_error=yes 63180c674dbdSmrgfi 63190c674dbdSmrg 63200c674dbdSmrgAC_LANG_PUSH(C++) 63210c674dbdSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 63220c674dbdSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 63230c674dbdSmrg_LT_TAGVAR(always_export_symbols, $1)=no 63240c674dbdSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 63250c674dbdSmrg_LT_TAGVAR(compiler_needs_object, $1)=no 63260c674dbdSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 63270c674dbdSmrg_LT_TAGVAR(hardcode_direct, $1)=no 63280c674dbdSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 63290c674dbdSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 63300c674dbdSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 63310c674dbdSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 63320c674dbdSmrg_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 63330c674dbdSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 63340c674dbdSmrg_LT_TAGVAR(inherit_rpath, $1)=no 63350c674dbdSmrg_LT_TAGVAR(module_cmds, $1)= 63360c674dbdSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 63370c674dbdSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 63380c674dbdSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 63390c674dbdSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 63400c674dbdSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 63410c674dbdSmrg_LT_TAGVAR(no_undefined_flag, $1)= 63420c674dbdSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 63430c674dbdSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 63440c674dbdSmrg 63450c674dbdSmrg# Source file extension for C++ test sources. 63460c674dbdSmrgac_ext=cpp 63470c674dbdSmrg 63480c674dbdSmrg# Object file extension for compiled C++ test sources. 63490c674dbdSmrgobjext=o 63500c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 63510c674dbdSmrg 63520c674dbdSmrg# No sense in running all these tests if we already determined that 63530c674dbdSmrg# the CXX compiler isn't working. Some variables (like enable_shared) 63540c674dbdSmrg# are currently assumed to apply to all compilers on this platform, 63550c674dbdSmrg# and will be corrupted by setting them based on a non-working compiler. 63560c674dbdSmrgif test yes != "$_lt_caught_CXX_error"; then 63570c674dbdSmrg # Code to be used in simple compile tests 63580c674dbdSmrg lt_simple_compile_test_code="int some_variable = 0;" 63590c674dbdSmrg 63600c674dbdSmrg # Code to be used in simple link tests 63610c674dbdSmrg lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 63620c674dbdSmrg 63630c674dbdSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 63640c674dbdSmrg _LT_TAG_COMPILER 63650c674dbdSmrg 63660c674dbdSmrg # save warnings/boilerplate of simple test code 63670c674dbdSmrg _LT_COMPILER_BOILERPLATE 63680c674dbdSmrg _LT_LINKER_BOILERPLATE 63690c674dbdSmrg 63700c674dbdSmrg # Allow CC to be a program name with arguments. 63710c674dbdSmrg lt_save_CC=$CC 63720c674dbdSmrg lt_save_CFLAGS=$CFLAGS 63730c674dbdSmrg lt_save_LD=$LD 63740c674dbdSmrg lt_save_GCC=$GCC 63750c674dbdSmrg GCC=$GXX 63760c674dbdSmrg lt_save_with_gnu_ld=$with_gnu_ld 63770c674dbdSmrg lt_save_path_LD=$lt_cv_path_LD 63780c674dbdSmrg if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 63790c674dbdSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 63800c674dbdSmrg else 63810c674dbdSmrg $as_unset lt_cv_prog_gnu_ld 63820c674dbdSmrg fi 63830c674dbdSmrg if test -n "${lt_cv_path_LDCXX+set}"; then 63840c674dbdSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 63850c674dbdSmrg else 63860c674dbdSmrg $as_unset lt_cv_path_LD 63870c674dbdSmrg fi 63880c674dbdSmrg test -z "${LDCXX+set}" || LD=$LDCXX 63890c674dbdSmrg CC=${CXX-"c++"} 63900c674dbdSmrg CFLAGS=$CXXFLAGS 63910c674dbdSmrg compiler=$CC 63920c674dbdSmrg _LT_TAGVAR(compiler, $1)=$CC 63930c674dbdSmrg _LT_CC_BASENAME([$compiler]) 63940c674dbdSmrg 63950c674dbdSmrg if test -n "$compiler"; then 63960c674dbdSmrg # We don't want -fno-exception when compiling C++ code, so set the 63970c674dbdSmrg # no_builtin_flag separately 63980c674dbdSmrg if test yes = "$GXX"; then 63990c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 64000c674dbdSmrg else 64010c674dbdSmrg _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 64020c674dbdSmrg fi 64030c674dbdSmrg 64040c674dbdSmrg if test yes = "$GXX"; then 64050c674dbdSmrg # Set up default GNU C++ configuration 64060c674dbdSmrg 64070c674dbdSmrg LT_PATH_LD 64080c674dbdSmrg 64090c674dbdSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 64100c674dbdSmrg # archiving commands below assume that GNU ld is being used. 64110c674dbdSmrg if test yes = "$with_gnu_ld"; then 64120c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 64130c674dbdSmrg _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' 64140c674dbdSmrg 64150c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 64160c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 64170c674dbdSmrg 64180c674dbdSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 64190c674dbdSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 64200c674dbdSmrg # investigate it a little bit more. (MM) 64210c674dbdSmrg wlarc='$wl' 64220c674dbdSmrg 64230c674dbdSmrg # ancient GNU ld didn't support --whole-archive et. al. 64240c674dbdSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | 64250c674dbdSmrg $GREP 'no-whole-archive' > /dev/null; then 64260c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 64270c674dbdSmrg else 64280c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)= 64290c674dbdSmrg fi 64300c674dbdSmrg else 64310c674dbdSmrg with_gnu_ld=no 64320c674dbdSmrg wlarc= 64330c674dbdSmrg 64340c674dbdSmrg # A generic and very simple default shared library creation 64350c674dbdSmrg # command for GNU C++ for the case where it uses the native 64360c674dbdSmrg # linker, instead of GNU ld. If possible, this setting should 64370c674dbdSmrg # overridden to take advantage of the native linker features on 64380c674dbdSmrg # the platform it is being used on. 64390c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 64400c674dbdSmrg fi 64410c674dbdSmrg 64420c674dbdSmrg # Commands to make compiler produce verbose output that lists 64430c674dbdSmrg # what "hidden" libraries, object files and flags are used when 64440c674dbdSmrg # linking a shared library. 64450c674dbdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 64460c674dbdSmrg 64470c674dbdSmrg else 64480c674dbdSmrg GXX=no 64490c674dbdSmrg with_gnu_ld=no 64500c674dbdSmrg wlarc= 64510c674dbdSmrg fi 64520c674dbdSmrg 64530c674dbdSmrg # PORTME: fill in a description of your system's C++ link characteristics 64540c674dbdSmrg AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 64550c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 64560c674dbdSmrg case $host_os in 64570c674dbdSmrg aix3*) 64580c674dbdSmrg # FIXME: insert proper C++ library support 64590c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 64600c674dbdSmrg ;; 64610c674dbdSmrg aix[[4-9]]*) 64620c674dbdSmrg if test ia64 = "$host_cpu"; then 64630c674dbdSmrg # On IA64, the linker does run time linking by default, so we don't 64640c674dbdSmrg # have to do anything special. 64650c674dbdSmrg aix_use_runtimelinking=no 64660c674dbdSmrg exp_sym_flag='-Bexport' 64670c674dbdSmrg no_entry_flag= 64680c674dbdSmrg else 64690c674dbdSmrg aix_use_runtimelinking=no 64700c674dbdSmrg 64710c674dbdSmrg # Test if we are trying to use run time linking or normal 64720c674dbdSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 64730c674dbdSmrg # have runtime linking enabled, and use it for executables. 64740c674dbdSmrg # For shared libraries, we enable/disable runtime linking 64750c674dbdSmrg # depending on the kind of the shared library created - 64760c674dbdSmrg # when "with_aix_soname,aix_use_runtimelinking" is: 64770c674dbdSmrg # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 64780c674dbdSmrg # "aix,yes" lib.so shared, rtl:yes, for executables 64790c674dbdSmrg # lib.a static archive 64800c674dbdSmrg # "both,no" lib.so.V(shr.o) shared, rtl:yes 64810c674dbdSmrg # lib.a(lib.so.V) shared, rtl:no, for executables 64820c674dbdSmrg # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 64830c674dbdSmrg # lib.a(lib.so.V) shared, rtl:no 64840c674dbdSmrg # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 64850c674dbdSmrg # lib.a static archive 64860c674dbdSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 64870c674dbdSmrg for ld_flag in $LDFLAGS; do 64880c674dbdSmrg case $ld_flag in 64890c674dbdSmrg *-brtl*) 64900c674dbdSmrg aix_use_runtimelinking=yes 64910c674dbdSmrg break 64920c674dbdSmrg ;; 64930c674dbdSmrg esac 64940c674dbdSmrg done 64950c674dbdSmrg if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 64960c674dbdSmrg # With aix-soname=svr4, we create the lib.so.V shared archives only, 64970c674dbdSmrg # so we don't have lib.a shared libs to link our executables. 64980c674dbdSmrg # We have to force runtime linking in this case. 64990c674dbdSmrg aix_use_runtimelinking=yes 65000c674dbdSmrg LDFLAGS="$LDFLAGS -Wl,-brtl" 65010c674dbdSmrg fi 65020c674dbdSmrg ;; 65030c674dbdSmrg esac 65040c674dbdSmrg 65050c674dbdSmrg exp_sym_flag='-bexport' 65060c674dbdSmrg no_entry_flag='-bnoentry' 65070c674dbdSmrg fi 65080c674dbdSmrg 65090c674dbdSmrg # When large executables or shared objects are built, AIX ld can 65100c674dbdSmrg # have problems creating the table of contents. If linking a library 65110c674dbdSmrg # or program results in "error TOC overflow" add -mminimal-toc to 65120c674dbdSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 65130c674dbdSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 65140c674dbdSmrg 65150c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='' 65160c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 65170c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 65180c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 65190c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 65200c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 65210c674dbdSmrg case $with_aix_soname,$aix_use_runtimelinking in 65220c674dbdSmrg aix,*) ;; # no import file 65230c674dbdSmrg svr4,* | *,yes) # use import file 65240c674dbdSmrg # The Import File defines what to hardcode. 65250c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 65260c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=no 65270c674dbdSmrg ;; 65280c674dbdSmrg esac 65290c674dbdSmrg 65300c674dbdSmrg if test yes = "$GXX"; then 65310c674dbdSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 65320c674dbdSmrg # We only want to do this on AIX 4.2 and lower, the check 65330c674dbdSmrg # below for broken collect2 doesn't work under 4.3+ 65340c674dbdSmrg collect2name=`$CC -print-prog-name=collect2` 65350c674dbdSmrg if test -f "$collect2name" && 65360c674dbdSmrg strings "$collect2name" | $GREP resolve_lib_name >/dev/null 65370c674dbdSmrg then 65380c674dbdSmrg # We have reworked collect2 65390c674dbdSmrg : 65400c674dbdSmrg else 65410c674dbdSmrg # We have old collect2 65420c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=unsupported 65430c674dbdSmrg # It fails to find uninstalled libraries when the uninstalled 65440c674dbdSmrg # path is not listed in the libpath. Setting hardcode_minus_L 65450c674dbdSmrg # to unsupported forces relinking 65460c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 65470c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 65480c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)= 65490c674dbdSmrg fi 65500c674dbdSmrg esac 65510c674dbdSmrg shared_flag='-shared' 65520c674dbdSmrg if test yes = "$aix_use_runtimelinking"; then 65530c674dbdSmrg shared_flag=$shared_flag' $wl-G' 65540c674dbdSmrg fi 65550c674dbdSmrg # Need to ensure runtime linking is disabled for the traditional 65560c674dbdSmrg # shared library, or the linker may eventually find shared libraries 65570c674dbdSmrg # /with/ Import File - we do not want to mix them. 65580c674dbdSmrg shared_flag_aix='-shared' 65590c674dbdSmrg shared_flag_svr4='-shared $wl-G' 65600c674dbdSmrg else 65610c674dbdSmrg # not using gcc 65620c674dbdSmrg if test ia64 = "$host_cpu"; then 65630c674dbdSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 65640c674dbdSmrg # chokes on -Wl,-G. The following line is correct: 65650c674dbdSmrg shared_flag='-G' 65660c674dbdSmrg else 65670c674dbdSmrg if test yes = "$aix_use_runtimelinking"; then 65680c674dbdSmrg shared_flag='$wl-G' 65690c674dbdSmrg else 65700c674dbdSmrg shared_flag='$wl-bM:SRE' 65710c674dbdSmrg fi 65720c674dbdSmrg shared_flag_aix='$wl-bM:SRE' 65730c674dbdSmrg shared_flag_svr4='$wl-G' 65740c674dbdSmrg fi 65750c674dbdSmrg fi 65760c674dbdSmrg 65770c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 65780c674dbdSmrg # It seems that -bexpall does not export symbols beginning with 65790c674dbdSmrg # underscore (_), so it is better to generate a list of symbols to 65800c674dbdSmrg # export. 65810c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 65820c674dbdSmrg if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 65830c674dbdSmrg # Warning - without using the other runtime loading flags (-brtl), 65840c674dbdSmrg # -berok will link without error, but may produce a broken library. 65850c674dbdSmrg # The "-G" linker flag allows undefined symbols. 65860c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 65870c674dbdSmrg # Determine the default libpath from the value encoded in an empty 65880c674dbdSmrg # executable. 65890c674dbdSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 65900c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 65910c674dbdSmrg 65920c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 65930c674dbdSmrg else 65940c674dbdSmrg if test ia64 = "$host_cpu"; then 65950c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 65960c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 65970c674dbdSmrg _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" 65980c674dbdSmrg else 65990c674dbdSmrg # Determine the default libpath from the value encoded in an 66000c674dbdSmrg # empty executable. 66010c674dbdSmrg _LT_SYS_MODULE_PATH_AIX([$1]) 66020c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 66030c674dbdSmrg # Warning - without using the other run time loading flags, 66040c674dbdSmrg # -berok will link without error, but may produce a broken library. 66050c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 66060c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 66070c674dbdSmrg if test yes = "$with_gnu_ld"; then 66080c674dbdSmrg # We only use this code for GNU lds that support --whole-archive. 66090c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 66100c674dbdSmrg else 66110c674dbdSmrg # Exported symbols can be pulled into shared objects from archives 66120c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 66130c674dbdSmrg fi 66140c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 66150c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 66160c674dbdSmrg # -brtl affects multiple linker settings, -berok does not and is overridden later 66170c674dbdSmrg compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 66180c674dbdSmrg if test svr4 != "$with_aix_soname"; then 66190c674dbdSmrg # This is similar to how AIX traditionally builds its shared 66200c674dbdSmrg # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 66210c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 66220c674dbdSmrg fi 66230c674dbdSmrg if test aix != "$with_aix_soname"; then 66240c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 66250c674dbdSmrg else 66260c674dbdSmrg # used by -dlpreopen to get the symbols 66270c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 66280c674dbdSmrg fi 66290c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 66300c674dbdSmrg fi 66310c674dbdSmrg fi 66320c674dbdSmrg ;; 66330c674dbdSmrg 66340c674dbdSmrg beos*) 66350c674dbdSmrg if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 66360c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 66370c674dbdSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 66380c674dbdSmrg # support --undefined. This deserves some investigation. FIXME 66390c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 66400c674dbdSmrg else 66410c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 66420c674dbdSmrg fi 66430c674dbdSmrg ;; 66440c674dbdSmrg 66450c674dbdSmrg chorus*) 66460c674dbdSmrg case $cc_basename in 66470c674dbdSmrg *) 66480c674dbdSmrg # FIXME: insert proper C++ library support 66490c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 66500c674dbdSmrg ;; 66510c674dbdSmrg esac 66520c674dbdSmrg ;; 66530c674dbdSmrg 66540c674dbdSmrg cygwin* | mingw* | pw32* | cegcc*) 66550c674dbdSmrg case $GXX,$cc_basename in 66560c674dbdSmrg ,cl* | no,cl* | ,icl* | no,icl*) 66570c674dbdSmrg # Native MSVC or ICC 66580c674dbdSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 66590c674dbdSmrg # no search path for DLLs. 66600c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 66610c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 66620c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=yes 66630c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='@' 66640c674dbdSmrg # Tell ltmain to make .lib files, not .a files. 66650c674dbdSmrg libext=lib 66660c674dbdSmrg # Tell ltmain to make .dll files, not .so files. 66670c674dbdSmrg shrext_cmds=.dll 66680c674dbdSmrg # FIXME: Setting linknames here is a bad hack. 66690c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 66700c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 66710c674dbdSmrg cp "$export_symbols" "$output_objdir/$soname.def"; 66720c674dbdSmrg echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 66730c674dbdSmrg else 66740c674dbdSmrg $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 66750c674dbdSmrg fi~ 66760c674dbdSmrg $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 66770c674dbdSmrg linknames=' 66780c674dbdSmrg # The linker will not automatically build a static lib if we build a DLL. 66790c674dbdSmrg # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 66800c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 66810c674dbdSmrg # Don't use ranlib 66820c674dbdSmrg _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 66830c674dbdSmrg _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 66840c674dbdSmrg lt_tool_outputfile="@TOOL_OUTPUT@"~ 66850c674dbdSmrg case $lt_outputfile in 66860c674dbdSmrg *.exe|*.EXE) ;; 66870c674dbdSmrg *) 66880c674dbdSmrg lt_outputfile=$lt_outputfile.exe 66890c674dbdSmrg lt_tool_outputfile=$lt_tool_outputfile.exe 66900c674dbdSmrg ;; 66910c674dbdSmrg esac~ 66920c674dbdSmrg func_to_tool_file "$lt_outputfile"~ 66930c674dbdSmrg if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 66940c674dbdSmrg $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 66950c674dbdSmrg $RM "$lt_outputfile.manifest"; 66960c674dbdSmrg fi' 66970c674dbdSmrg ;; 66980c674dbdSmrg *) 66990c674dbdSmrg # g++ 67000c674dbdSmrg # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 67010c674dbdSmrg # as there is no search path for DLLs. 67020c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 67030c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 67040c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 67050c674dbdSmrg _LT_TAGVAR(always_export_symbols, $1)=no 67060c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 67070c674dbdSmrg 67080c674dbdSmrg if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 67090c674dbdSmrg _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' 67100c674dbdSmrg # If the export-symbols file already is a .def file, use it as 67110c674dbdSmrg # is; otherwise, prepend EXPORTS... 67120c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 67130c674dbdSmrg cp $export_symbols $output_objdir/$soname.def; 67140c674dbdSmrg else 67150c674dbdSmrg echo EXPORTS > $output_objdir/$soname.def; 67160c674dbdSmrg cat $export_symbols >> $output_objdir/$soname.def; 67170c674dbdSmrg fi~ 67180c674dbdSmrg $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' 67190c674dbdSmrg else 67200c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 67210c674dbdSmrg fi 67220c674dbdSmrg ;; 67230c674dbdSmrg esac 67240c674dbdSmrg ;; 67250c674dbdSmrg darwin* | rhapsody*) 67260c674dbdSmrg _LT_DARWIN_LINKER_FEATURES($1) 67270c674dbdSmrg ;; 67280c674dbdSmrg 67290c674dbdSmrg os2*) 67300c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 67310c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes 67320c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 67330c674dbdSmrg shrext_cmds=.dll 67340c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 67350c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 67360c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 67370c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 67380c674dbdSmrg emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 67390c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 67400c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 67410c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 67420c674dbdSmrg $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 67430c674dbdSmrg $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 67440c674dbdSmrg $ECHO EXPORTS >> $output_objdir/$libname.def~ 67450c674dbdSmrg prefix_cmds="$SED"~ 67460c674dbdSmrg if test EXPORTS = "`$SED 1q $export_symbols`"; then 67470c674dbdSmrg prefix_cmds="$prefix_cmds -e 1d"; 67480c674dbdSmrg fi~ 67490c674dbdSmrg prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 67500c674dbdSmrg cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 67510c674dbdSmrg $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 67520c674dbdSmrg emximp -o $lib $output_objdir/$libname.def' 67530c674dbdSmrg _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 67540c674dbdSmrg _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 67550c674dbdSmrg _LT_TAGVAR(file_list_spec, $1)='@' 67560c674dbdSmrg ;; 67570c674dbdSmrg 67580c674dbdSmrg dgux*) 67590c674dbdSmrg case $cc_basename in 67600c674dbdSmrg ec++*) 67610c674dbdSmrg # FIXME: insert proper C++ library support 67620c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 67630c674dbdSmrg ;; 67640c674dbdSmrg ghcx*) 67650c674dbdSmrg # Green Hills C++ Compiler 67660c674dbdSmrg # FIXME: insert proper C++ library support 67670c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 67680c674dbdSmrg ;; 67690c674dbdSmrg *) 67700c674dbdSmrg # FIXME: insert proper C++ library support 67710c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 67720c674dbdSmrg ;; 67730c674dbdSmrg esac 67740c674dbdSmrg ;; 67750c674dbdSmrg 67760c674dbdSmrg freebsd2.*) 67770c674dbdSmrg # C++ shared libraries reported to be fairly broken before 67780c674dbdSmrg # switch to ELF 67790c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 67800c674dbdSmrg ;; 67810c674dbdSmrg 67820c674dbdSmrg freebsd-elf*) 67830c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 67840c674dbdSmrg ;; 67850c674dbdSmrg 67860c674dbdSmrg freebsd* | dragonfly* | midnightbsd*) 67870c674dbdSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 67880c674dbdSmrg # conventions 67890c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 67900c674dbdSmrg ;; 67910c674dbdSmrg 67920c674dbdSmrg haiku*) 67930c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 67940c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 67950c674dbdSmrg ;; 67960c674dbdSmrg 67970c674dbdSmrg hpux9*) 67980c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 67990c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 68000c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 68010c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 68020c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 68030c674dbdSmrg # but as the default 68040c674dbdSmrg # location of the library. 68050c674dbdSmrg 68060c674dbdSmrg case $cc_basename in 68070c674dbdSmrg CC*) 68080c674dbdSmrg # FIXME: insert proper C++ library support 68090c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 68100c674dbdSmrg ;; 68110c674dbdSmrg aCC*) 68120c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 68130c674dbdSmrg # Commands to make compiler produce verbose output that lists 68140c674dbdSmrg # what "hidden" libraries, object files and flags are used when 68150c674dbdSmrg # linking a shared library. 68160c674dbdSmrg # 68170c674dbdSmrg # There doesn't appear to be a way to prevent this compiler from 68180c674dbdSmrg # explicitly linking system object files so we need to strip them 68190c674dbdSmrg # from the output so that they don't get included in the library 68200c674dbdSmrg # dependencies. 68210c674dbdSmrg 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"' 68220c674dbdSmrg ;; 68230c674dbdSmrg *) 68240c674dbdSmrg if test yes = "$GXX"; then 68250c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 68260c674dbdSmrg else 68270c674dbdSmrg # FIXME: insert proper C++ library support 68280c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 68290c674dbdSmrg fi 68300c674dbdSmrg ;; 68310c674dbdSmrg esac 68320c674dbdSmrg ;; 68330c674dbdSmrg 68340c674dbdSmrg hpux10*|hpux11*) 68350c674dbdSmrg if test no = "$with_gnu_ld"; then 68360c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 68370c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 68380c674dbdSmrg 68390c674dbdSmrg case $host_cpu in 68400c674dbdSmrg hppa*64*|ia64*) 68410c674dbdSmrg ;; 68420c674dbdSmrg *) 68430c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 68440c674dbdSmrg ;; 68450c674dbdSmrg esac 68460c674dbdSmrg fi 68470c674dbdSmrg case $host_cpu in 68480c674dbdSmrg hppa*64*|ia64*) 68490c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 68500c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 68510c674dbdSmrg ;; 68520c674dbdSmrg *) 68530c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 68540c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 68550c674dbdSmrg _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 68560c674dbdSmrg # but as the default 68570c674dbdSmrg # location of the library. 68580c674dbdSmrg ;; 68590c674dbdSmrg esac 68600c674dbdSmrg 68610c674dbdSmrg case $cc_basename in 68620c674dbdSmrg CC*) 68630c674dbdSmrg # FIXME: insert proper C++ library support 68640c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 68650c674dbdSmrg ;; 68660c674dbdSmrg aCC*) 68670c674dbdSmrg case $host_cpu in 68680c674dbdSmrg hppa*64*) 68690c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 68700c674dbdSmrg ;; 68710c674dbdSmrg ia64*) 68720c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 68730c674dbdSmrg ;; 68740c674dbdSmrg *) 68750c674dbdSmrg _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' 68760c674dbdSmrg ;; 68770c674dbdSmrg esac 68780c674dbdSmrg # Commands to make compiler produce verbose output that lists 68790c674dbdSmrg # what "hidden" libraries, object files and flags are used when 68800c674dbdSmrg # linking a shared library. 68810c674dbdSmrg # 68820c674dbdSmrg # There doesn't appear to be a way to prevent this compiler from 68830c674dbdSmrg # explicitly linking system object files so we need to strip them 68840c674dbdSmrg # from the output so that they don't get included in the library 68850c674dbdSmrg # dependencies. 68860c674dbdSmrg 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"' 68870c674dbdSmrg ;; 68880c674dbdSmrg *) 68890c674dbdSmrg if test yes = "$GXX"; then 68900c674dbdSmrg if test no = "$with_gnu_ld"; then 68910c674dbdSmrg case $host_cpu in 68920c674dbdSmrg hppa*64*) 68930c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 68940c674dbdSmrg ;; 68950c674dbdSmrg ia64*) 68960c674dbdSmrg _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' 68970c674dbdSmrg ;; 68980c674dbdSmrg *) 68990c674dbdSmrg _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' 69000c674dbdSmrg ;; 69010c674dbdSmrg esac 69020c674dbdSmrg fi 69030c674dbdSmrg else 69040c674dbdSmrg # FIXME: insert proper C++ library support 69050c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 69060c674dbdSmrg fi 69070c674dbdSmrg ;; 69080c674dbdSmrg esac 69090c674dbdSmrg ;; 69100c674dbdSmrg 69110c674dbdSmrg interix[[3-9]]*) 69120c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=no 69130c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 69140c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 69150c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 69160c674dbdSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 69170c674dbdSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 69180c674dbdSmrg # default) and relocated if they conflict, which is a slow very memory 69190c674dbdSmrg # consuming and fragmenting process. To avoid this, we pick a random, 69200c674dbdSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 69210c674dbdSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 69220c674dbdSmrg _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' 69230c674dbdSmrg _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' 69240c674dbdSmrg ;; 69250c674dbdSmrg irix5* | irix6*) 69260c674dbdSmrg case $cc_basename in 69270c674dbdSmrg CC*) 69280c674dbdSmrg # SGI C++ 69290c674dbdSmrg _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' 69300c674dbdSmrg 69310c674dbdSmrg # Archives containing C++ object files must be created using 69320c674dbdSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 69330c674dbdSmrg # necessary to make sure instantiated templates are included 69340c674dbdSmrg # in the archive. 69350c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 69360c674dbdSmrg ;; 69370c674dbdSmrg *) 69380c674dbdSmrg if test yes = "$GXX"; then 69390c674dbdSmrg if test no = "$with_gnu_ld"; then 69400c674dbdSmrg _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' 69410c674dbdSmrg else 69420c674dbdSmrg _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' 69430c674dbdSmrg fi 69440c674dbdSmrg fi 69450c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 69460c674dbdSmrg ;; 69470c674dbdSmrg esac 69480c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 69490c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 69500c674dbdSmrg _LT_TAGVAR(inherit_rpath, $1)=yes 69510c674dbdSmrg ;; 69520c674dbdSmrg 69530c674dbdSmrg linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 69540c674dbdSmrg case $cc_basename in 69550c674dbdSmrg KCC*) 69560c674dbdSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 69570c674dbdSmrg 69580c674dbdSmrg # KCC will only create a shared library if the output file 69590c674dbdSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 69600c674dbdSmrg # to its proper name (with version) after linking. 69610c674dbdSmrg _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' 69620c674dbdSmrg _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' 69630c674dbdSmrg # Commands to make compiler produce verbose output that lists 69640c674dbdSmrg # what "hidden" libraries, object files and flags are used when 69650c674dbdSmrg # linking a shared library. 69660c674dbdSmrg # 69670c674dbdSmrg # There doesn't appear to be a way to prevent this compiler from 69680c674dbdSmrg # explicitly linking system object files so we need to strip them 69690c674dbdSmrg # from the output so that they don't get included in the library 69700c674dbdSmrg # dependencies. 69710c674dbdSmrg 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"' 69720c674dbdSmrg 69730c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 69740c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 69750c674dbdSmrg 69760c674dbdSmrg # Archives containing C++ object files must be created using 69770c674dbdSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 69780c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 69790c674dbdSmrg ;; 69800c674dbdSmrg icpc* | ecpc* ) 69810c674dbdSmrg # Intel C++ 69820c674dbdSmrg with_gnu_ld=yes 69830c674dbdSmrg # version 8.0 and above of icpc choke on multiply defined symbols 69840c674dbdSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 69850c674dbdSmrg # earlier do not add the objects themselves. 69860c674dbdSmrg case `$CC -V 2>&1` in 69870c674dbdSmrg *"Version 7."*) 69880c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 69890c674dbdSmrg _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' 69900c674dbdSmrg ;; 69910c674dbdSmrg *) # Version 8.0 or newer 69920c674dbdSmrg tmp_idyn= 69930c674dbdSmrg case $host_cpu in 69940c674dbdSmrg ia64*) tmp_idyn=' -i_dynamic';; 69950c674dbdSmrg esac 69960c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 69970c674dbdSmrg _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' 69980c674dbdSmrg ;; 69990c674dbdSmrg esac 70000c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 70010c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 70020c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 70030c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 70040c674dbdSmrg ;; 70050c674dbdSmrg pgCC* | pgcpp*) 70060c674dbdSmrg # Portland Group C++ compiler 70070c674dbdSmrg case `$CC -V` in 70080c674dbdSmrg *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 70090c674dbdSmrg _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 70100c674dbdSmrg rm -rf $tpldir~ 70110c674dbdSmrg $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 70120c674dbdSmrg compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 70130c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 70140c674dbdSmrg rm -rf $tpldir~ 70150c674dbdSmrg $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 70160c674dbdSmrg $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 70170c674dbdSmrg $RANLIB $oldlib' 70180c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 70190c674dbdSmrg rm -rf $tpldir~ 70200c674dbdSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 70210c674dbdSmrg $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 70220c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 70230c674dbdSmrg rm -rf $tpldir~ 70240c674dbdSmrg $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 70250c674dbdSmrg $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' 70260c674dbdSmrg ;; 70270c674dbdSmrg *) # Version 6 and above use weak symbols 70280c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 70290c674dbdSmrg _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' 70300c674dbdSmrg ;; 70310c674dbdSmrg esac 70320c674dbdSmrg 70330c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 70340c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 70350c674dbdSmrg _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' 70360c674dbdSmrg ;; 70370c674dbdSmrg cxx*) 70380c674dbdSmrg # Compaq C++ 70390c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 70400c674dbdSmrg _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' 70410c674dbdSmrg 70420c674dbdSmrg runpath_var=LD_RUN_PATH 70430c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 70440c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 70450c674dbdSmrg 70460c674dbdSmrg # Commands to make compiler produce verbose output that lists 70470c674dbdSmrg # what "hidden" libraries, object files and flags are used when 70480c674dbdSmrg # linking a shared library. 70490c674dbdSmrg # 70500c674dbdSmrg # There doesn't appear to be a way to prevent this compiler from 70510c674dbdSmrg # explicitly linking system object files so we need to strip them 70520c674dbdSmrg # from the output so that they don't get included in the library 70530c674dbdSmrg # dependencies. 70540c674dbdSmrg 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' 70550c674dbdSmrg ;; 70560c674dbdSmrg xl* | mpixl* | bgxl*) 70570c674dbdSmrg # IBM XL 8.0 on PPC, with GNU ld 70580c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 70590c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 70600c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 70610c674dbdSmrg if test yes = "$supports_anon_versioning"; then 70620c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 70630c674dbdSmrg cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 70640c674dbdSmrg echo "local: *; };" >> $output_objdir/$libname.ver~ 70650c674dbdSmrg $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 70660c674dbdSmrg fi 70670c674dbdSmrg ;; 70680c674dbdSmrg *) 70690c674dbdSmrg case `$CC -V 2>&1 | $SED 5q` in 70700c674dbdSmrg *Sun\ C*) 70710c674dbdSmrg # Sun C++ 5.9 70720c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 70730c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 70740c674dbdSmrg _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' 70750c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 70760c674dbdSmrg _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' 70770c674dbdSmrg _LT_TAGVAR(compiler_needs_object, $1)=yes 70780c674dbdSmrg 70790c674dbdSmrg # Not sure whether something based on 70800c674dbdSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 70810c674dbdSmrg # would be better. 70820c674dbdSmrg output_verbose_link_cmd='func_echo_all' 70830c674dbdSmrg 70840c674dbdSmrg # Archives containing C++ object files must be created using 70850c674dbdSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 70860c674dbdSmrg # necessary to make sure instantiated templates are included 70870c674dbdSmrg # in the archive. 70880c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 70890c674dbdSmrg ;; 70900c674dbdSmrg esac 70910c674dbdSmrg ;; 70920c674dbdSmrg esac 70930c674dbdSmrg ;; 70940c674dbdSmrg 70950c674dbdSmrg lynxos*) 70960c674dbdSmrg # FIXME: insert proper C++ library support 70970c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 70980c674dbdSmrg ;; 70990c674dbdSmrg 71000c674dbdSmrg m88k*) 71010c674dbdSmrg # FIXME: insert proper C++ library support 71020c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 71030c674dbdSmrg ;; 71040c674dbdSmrg 71050c674dbdSmrg mvs*) 71060c674dbdSmrg case $cc_basename in 71070c674dbdSmrg cxx*) 71080c674dbdSmrg # FIXME: insert proper C++ library support 71090c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 71100c674dbdSmrg ;; 71110c674dbdSmrg *) 71120c674dbdSmrg # FIXME: insert proper C++ library support 71130c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 71140c674dbdSmrg ;; 71150c674dbdSmrg esac 71160c674dbdSmrg ;; 71170c674dbdSmrg 71180c674dbdSmrg netbsd*) 71190c674dbdSmrg if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 71200c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 71210c674dbdSmrg wlarc= 71220c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 71230c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 71240c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 71250c674dbdSmrg fi 71260c674dbdSmrg # Workaround some broken pre-1.5 toolchains 71270c674dbdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 71280c674dbdSmrg ;; 71290c674dbdSmrg 71300c674dbdSmrg *nto* | *qnx*) 71310c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=yes 71320c674dbdSmrg ;; 71330c674dbdSmrg 71340c674dbdSmrg openbsd* | bitrig*) 71350c674dbdSmrg if test -f /usr/libexec/ld.so; then 71360c674dbdSmrg _LT_TAGVAR(hardcode_direct, $1)=yes 71370c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 71380c674dbdSmrg _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 71390c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 71400c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 71410c674dbdSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 71420c674dbdSmrg _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' 71430c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 71440c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 71450c674dbdSmrg fi 71460c674dbdSmrg output_verbose_link_cmd=func_echo_all 71470c674dbdSmrg else 71480c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 71490c674dbdSmrg fi 71500c674dbdSmrg ;; 71510c674dbdSmrg 71520c674dbdSmrg osf3* | osf4* | osf5*) 71530c674dbdSmrg case $cc_basename in 71540c674dbdSmrg KCC*) 71550c674dbdSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 71560c674dbdSmrg 71570c674dbdSmrg # KCC will only create a shared library if the output file 71580c674dbdSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 71590c674dbdSmrg # to its proper name (with version) after linking. 71600c674dbdSmrg _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' 71610c674dbdSmrg 71620c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 71630c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 71640c674dbdSmrg 71650c674dbdSmrg # Archives containing C++ object files must be created using 71660c674dbdSmrg # the KAI C++ compiler. 71670c674dbdSmrg case $host in 71680c674dbdSmrg osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 71690c674dbdSmrg *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 71700c674dbdSmrg esac 71710c674dbdSmrg ;; 71720c674dbdSmrg RCC*) 71730c674dbdSmrg # Rational C++ 2.4.1 71740c674dbdSmrg # FIXME: insert proper C++ library support 71750c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 71760c674dbdSmrg ;; 71770c674dbdSmrg cxx*) 71780c674dbdSmrg case $host in 71790c674dbdSmrg osf3*) 71800c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 71810c674dbdSmrg _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' 71820c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 71830c674dbdSmrg ;; 71840c674dbdSmrg *) 71850c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 71860c674dbdSmrg _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' 71870c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 71880c674dbdSmrg echo "-hidden">> $lib.exp~ 71890c674dbdSmrg $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~ 71900c674dbdSmrg $RM $lib.exp' 71910c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 71920c674dbdSmrg ;; 71930c674dbdSmrg esac 71940c674dbdSmrg 71950c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 71960c674dbdSmrg 71970c674dbdSmrg # Commands to make compiler produce verbose output that lists 71980c674dbdSmrg # what "hidden" libraries, object files and flags are used when 71990c674dbdSmrg # linking a shared library. 72000c674dbdSmrg # 72010c674dbdSmrg # There doesn't appear to be a way to prevent this compiler from 72020c674dbdSmrg # explicitly linking system object files so we need to strip them 72030c674dbdSmrg # from the output so that they don't get included in the library 72040c674dbdSmrg # dependencies. 72050c674dbdSmrg 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"' 72060c674dbdSmrg ;; 72070c674dbdSmrg *) 72080c674dbdSmrg if test yes,no = "$GXX,$with_gnu_ld"; then 72090c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 72100c674dbdSmrg case $host in 72110c674dbdSmrg osf3*) 72120c674dbdSmrg _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' 72130c674dbdSmrg ;; 72140c674dbdSmrg *) 72150c674dbdSmrg _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' 72160c674dbdSmrg ;; 72170c674dbdSmrg esac 72180c674dbdSmrg 72190c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 72200c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=: 72210c674dbdSmrg 72220c674dbdSmrg # Commands to make compiler produce verbose output that lists 72230c674dbdSmrg # what "hidden" libraries, object files and flags are used when 72240c674dbdSmrg # linking a shared library. 72250c674dbdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 72260c674dbdSmrg 72270c674dbdSmrg else 72280c674dbdSmrg # FIXME: insert proper C++ library support 72290c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 72300c674dbdSmrg fi 72310c674dbdSmrg ;; 72320c674dbdSmrg esac 72330c674dbdSmrg ;; 72340c674dbdSmrg 72350c674dbdSmrg psos*) 72360c674dbdSmrg # FIXME: insert proper C++ library support 72370c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 72380c674dbdSmrg ;; 72390c674dbdSmrg 72400c674dbdSmrg sunos4*) 72410c674dbdSmrg case $cc_basename in 72420c674dbdSmrg CC*) 72430c674dbdSmrg # Sun C++ 4.x 72440c674dbdSmrg # FIXME: insert proper C++ library support 72450c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 72460c674dbdSmrg ;; 72470c674dbdSmrg lcc*) 72480c674dbdSmrg # Lucid 72490c674dbdSmrg # FIXME: insert proper C++ library support 72500c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 72510c674dbdSmrg ;; 72520c674dbdSmrg *) 72530c674dbdSmrg # FIXME: insert proper C++ library support 72540c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 72550c674dbdSmrg ;; 72560c674dbdSmrg esac 72570c674dbdSmrg ;; 72580c674dbdSmrg 72590c674dbdSmrg solaris*) 72600c674dbdSmrg case $cc_basename in 72610c674dbdSmrg CC* | sunCC*) 72620c674dbdSmrg # Sun C++ 4.2, 5.x and Centerline C++ 72630c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 72640c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 72650c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 72660c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 72670c674dbdSmrg $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' 72680c674dbdSmrg 72690c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 72700c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 72710c674dbdSmrg case $host_os in 72720c674dbdSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 72730c674dbdSmrg *) 72740c674dbdSmrg # The compiler driver will combine and reorder linker options, 72750c674dbdSmrg # but understands '-z linker_flag'. 72760c674dbdSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 72770c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 72780c674dbdSmrg ;; 72790c674dbdSmrg esac 72800c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 72810c674dbdSmrg 72820c674dbdSmrg output_verbose_link_cmd='func_echo_all' 72830c674dbdSmrg 72840c674dbdSmrg # Archives containing C++ object files must be created using 72850c674dbdSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 72860c674dbdSmrg # necessary to make sure instantiated templates are included 72870c674dbdSmrg # in the archive. 72880c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 72890c674dbdSmrg ;; 72900c674dbdSmrg gcx*) 72910c674dbdSmrg # Green Hills C++ Compiler 72920c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 72930c674dbdSmrg 72940c674dbdSmrg # The C++ compiler must be used to create the archive. 72950c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 72960c674dbdSmrg ;; 72970c674dbdSmrg *) 72980c674dbdSmrg # GNU C++ compiler with Solaris linker 72990c674dbdSmrg if test yes,no = "$GXX,$with_gnu_ld"; then 73000c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 73010c674dbdSmrg if $CC --version | $GREP -v '^2\.7' > /dev/null; then 73020c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 73030c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 73040c674dbdSmrg $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 73050c674dbdSmrg 73060c674dbdSmrg # Commands to make compiler produce verbose output that lists 73070c674dbdSmrg # what "hidden" libraries, object files and flags are used when 73080c674dbdSmrg # linking a shared library. 73090c674dbdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 73100c674dbdSmrg else 73110c674dbdSmrg # g++ 2.7 appears to require '-G' NOT '-shared' on this 73120c674dbdSmrg # platform. 73130c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 73140c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 73150c674dbdSmrg $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 73160c674dbdSmrg 73170c674dbdSmrg # Commands to make compiler produce verbose output that lists 73180c674dbdSmrg # what "hidden" libraries, object files and flags are used when 73190c674dbdSmrg # linking a shared library. 73200c674dbdSmrg output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 73210c674dbdSmrg fi 73220c674dbdSmrg 73230c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 73240c674dbdSmrg case $host_os in 73250c674dbdSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 73260c674dbdSmrg *) 73270c674dbdSmrg _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 73280c674dbdSmrg ;; 73290c674dbdSmrg esac 73300c674dbdSmrg fi 73310c674dbdSmrg ;; 73320c674dbdSmrg esac 73330c674dbdSmrg ;; 73340c674dbdSmrg 73350c674dbdSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 73360c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 73370c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 73380c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 73390c674dbdSmrg runpath_var='LD_RUN_PATH' 73400c674dbdSmrg 73410c674dbdSmrg case $cc_basename in 73420c674dbdSmrg CC*) 73430c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73440c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73450c674dbdSmrg ;; 73460c674dbdSmrg *) 73470c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73480c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73490c674dbdSmrg ;; 73500c674dbdSmrg esac 73510c674dbdSmrg ;; 73520c674dbdSmrg 73530c674dbdSmrg sysv5* | sco3.2v5* | sco5v6*) 73540c674dbdSmrg # Note: We CANNOT use -z defs as we might desire, because we do not 73550c674dbdSmrg # link with -lc, and that would cause any symbols used from libc to 73560c674dbdSmrg # always be unresolved, which means just about no library would 73570c674dbdSmrg # ever link correctly. If we're not using GNU ld we use -z text 73580c674dbdSmrg # though, which does catch some bad symbols but isn't as heavy-handed 73590c674dbdSmrg # as -z defs. 73600c674dbdSmrg _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 73610c674dbdSmrg _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 73620c674dbdSmrg _LT_TAGVAR(archive_cmds_need_lc, $1)=no 73630c674dbdSmrg _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 73640c674dbdSmrg _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 73650c674dbdSmrg _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 73660c674dbdSmrg _LT_TAGVAR(link_all_deplibs, $1)=yes 73670c674dbdSmrg _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 73680c674dbdSmrg runpath_var='LD_RUN_PATH' 73690c674dbdSmrg 73700c674dbdSmrg case $cc_basename in 73710c674dbdSmrg CC*) 73720c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73730c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73740c674dbdSmrg _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 73750c674dbdSmrg '"$_LT_TAGVAR(old_archive_cmds, $1)" 73760c674dbdSmrg _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 73770c674dbdSmrg '"$_LT_TAGVAR(reload_cmds, $1)" 73780c674dbdSmrg ;; 73790c674dbdSmrg *) 73800c674dbdSmrg _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73810c674dbdSmrg _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 73820c674dbdSmrg ;; 73830c674dbdSmrg esac 73840c674dbdSmrg ;; 73850c674dbdSmrg 73860c674dbdSmrg tandem*) 73870c674dbdSmrg case $cc_basename in 73880c674dbdSmrg NCC*) 73890c674dbdSmrg # NonStop-UX NCC 3.20 73900c674dbdSmrg # FIXME: insert proper C++ library support 73910c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 73920c674dbdSmrg ;; 73930c674dbdSmrg *) 73940c674dbdSmrg # FIXME: insert proper C++ library support 73950c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 73960c674dbdSmrg ;; 73970c674dbdSmrg esac 73980c674dbdSmrg ;; 73990c674dbdSmrg 74000c674dbdSmrg vxworks*) 74010c674dbdSmrg # FIXME: insert proper C++ library support 74020c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 74030c674dbdSmrg ;; 74040c674dbdSmrg 74050c674dbdSmrg *) 74060c674dbdSmrg # FIXME: insert proper C++ library support 74070c674dbdSmrg _LT_TAGVAR(ld_shlibs, $1)=no 74080c674dbdSmrg ;; 74090c674dbdSmrg esac 74100c674dbdSmrg 74110c674dbdSmrg AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 74120c674dbdSmrg test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 74130c674dbdSmrg 74140c674dbdSmrg _LT_TAGVAR(GCC, $1)=$GXX 74150c674dbdSmrg _LT_TAGVAR(LD, $1)=$LD 74160c674dbdSmrg 74170c674dbdSmrg ## CAVEAT EMPTOR: 74180c674dbdSmrg ## There is no encapsulation within the following macros, do not change 74190c674dbdSmrg ## the running order or otherwise move them around unless you know exactly 74200c674dbdSmrg ## what you are doing... 74210c674dbdSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 74220c674dbdSmrg _LT_COMPILER_PIC($1) 74230c674dbdSmrg _LT_COMPILER_C_O($1) 74240c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 74250c674dbdSmrg _LT_LINKER_SHLIBS($1) 74260c674dbdSmrg _LT_SYS_DYNAMIC_LINKER($1) 74270c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 74280c674dbdSmrg 74290c674dbdSmrg _LT_CONFIG($1) 74300c674dbdSmrg fi # test -n "$compiler" 74310c674dbdSmrg 74320c674dbdSmrg CC=$lt_save_CC 74330c674dbdSmrg CFLAGS=$lt_save_CFLAGS 74340c674dbdSmrg LDCXX=$LD 74350c674dbdSmrg LD=$lt_save_LD 74360c674dbdSmrg GCC=$lt_save_GCC 74370c674dbdSmrg with_gnu_ld=$lt_save_with_gnu_ld 74380c674dbdSmrg lt_cv_path_LDCXX=$lt_cv_path_LD 74390c674dbdSmrg lt_cv_path_LD=$lt_save_path_LD 74400c674dbdSmrg lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 74410c674dbdSmrg lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 74420c674dbdSmrgfi # test yes != "$_lt_caught_CXX_error" 74430c674dbdSmrg 74440c674dbdSmrgAC_LANG_POP 74450c674dbdSmrg])# _LT_LANG_CXX_CONFIG 74460c674dbdSmrg 74470c674dbdSmrg 74480c674dbdSmrg# _LT_FUNC_STRIPNAME_CNF 74490c674dbdSmrg# ---------------------- 74500c674dbdSmrg# func_stripname_cnf prefix suffix name 74510c674dbdSmrg# strip PREFIX and SUFFIX off of NAME. 74520c674dbdSmrg# PREFIX and SUFFIX must not contain globbing or regex special 74530c674dbdSmrg# characters, hashes, percent signs, but SUFFIX may contain a leading 74540c674dbdSmrg# dot (in which case that matches only a dot). 74550c674dbdSmrg# 74560c674dbdSmrg# This function is identical to the (non-XSI) version of func_stripname, 74570c674dbdSmrg# except this one can be used by m4 code that may be executed by configure, 74580c674dbdSmrg# rather than the libtool script. 74590c674dbdSmrgm4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 74600c674dbdSmrgAC_REQUIRE([_LT_DECL_SED]) 74610c674dbdSmrgAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 74620c674dbdSmrgfunc_stripname_cnf () 74630c674dbdSmrg{ 74640c674dbdSmrg case @S|@2 in 74650c674dbdSmrg .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 74660c674dbdSmrg *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 74670c674dbdSmrg esac 74680c674dbdSmrg} # func_stripname_cnf 74690c674dbdSmrg])# _LT_FUNC_STRIPNAME_CNF 74700c674dbdSmrg 74710c674dbdSmrg 74720c674dbdSmrg# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 74730c674dbdSmrg# --------------------------------- 74740c674dbdSmrg# Figure out "hidden" library dependencies from verbose 74750c674dbdSmrg# compiler output when linking a shared library. 74760c674dbdSmrg# Parse the compiler output and extract the necessary 74770c674dbdSmrg# objects, libraries and library flags. 74780c674dbdSmrgm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 74790c674dbdSmrg[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 74800c674dbdSmrgAC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 74810c674dbdSmrg# Dependencies to place before and after the object being linked: 74820c674dbdSmrg_LT_TAGVAR(predep_objects, $1)= 74830c674dbdSmrg_LT_TAGVAR(postdep_objects, $1)= 74840c674dbdSmrg_LT_TAGVAR(predeps, $1)= 74850c674dbdSmrg_LT_TAGVAR(postdeps, $1)= 74860c674dbdSmrg_LT_TAGVAR(compiler_lib_search_path, $1)= 74870c674dbdSmrg 74880c674dbdSmrgdnl we can't use the lt_simple_compile_test_code here, 74890c674dbdSmrgdnl because it contains code intended for an executable, 74900c674dbdSmrgdnl not a library. It's possible we should let each 74910c674dbdSmrgdnl tag define a new lt_????_link_test_code variable, 74920c674dbdSmrgdnl but it's only used here... 74930c674dbdSmrgm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 74940c674dbdSmrgint a; 74950c674dbdSmrgvoid foo (void) { a = 0; } 74960c674dbdSmrg_LT_EOF 74970c674dbdSmrg], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 74980c674dbdSmrgclass Foo 74990c674dbdSmrg{ 75000c674dbdSmrgpublic: 75010c674dbdSmrg Foo (void) { a = 0; } 75020c674dbdSmrgprivate: 75030c674dbdSmrg int a; 75040c674dbdSmrg}; 75050c674dbdSmrg_LT_EOF 75060c674dbdSmrg], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 75070c674dbdSmrg subroutine foo 75080c674dbdSmrg implicit none 75090c674dbdSmrg integer*4 a 75100c674dbdSmrg a=0 75110c674dbdSmrg return 75120c674dbdSmrg end 75130c674dbdSmrg_LT_EOF 75140c674dbdSmrg], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 75150c674dbdSmrg subroutine foo 75160c674dbdSmrg implicit none 75170c674dbdSmrg integer a 75180c674dbdSmrg a=0 75190c674dbdSmrg return 75200c674dbdSmrg end 75210c674dbdSmrg_LT_EOF 75220c674dbdSmrg], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 75230c674dbdSmrgpublic class foo { 75240c674dbdSmrg private int a; 75250c674dbdSmrg public void bar (void) { 75260c674dbdSmrg a = 0; 75270c674dbdSmrg } 75280c674dbdSmrg}; 75290c674dbdSmrg_LT_EOF 75300c674dbdSmrg], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 75310c674dbdSmrgpackage foo 75320c674dbdSmrgfunc foo() { 75330c674dbdSmrg} 75340c674dbdSmrg_LT_EOF 75350c674dbdSmrg]) 75360c674dbdSmrg 75370c674dbdSmrg_lt_libdeps_save_CFLAGS=$CFLAGS 75380c674dbdSmrgcase "$CC $CFLAGS " in #( 75390c674dbdSmrg*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 75400c674dbdSmrg*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 75410c674dbdSmrg*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 75420c674dbdSmrgesac 75430c674dbdSmrg 75440c674dbdSmrgdnl Parse the compiler output and extract the necessary 75450c674dbdSmrgdnl objects, libraries and library flags. 75460c674dbdSmrgif AC_TRY_EVAL(ac_compile); then 75470c674dbdSmrg # Parse the compiler output and extract the necessary 75480c674dbdSmrg # objects, libraries and library flags. 75490c674dbdSmrg 75500c674dbdSmrg # Sentinel used to keep track of whether or not we are before 75510c674dbdSmrg # the conftest object file. 75520c674dbdSmrg pre_test_object_deps_done=no 75530c674dbdSmrg 75540c674dbdSmrg for p in `eval "$output_verbose_link_cmd"`; do 75550c674dbdSmrg case $prev$p in 75560c674dbdSmrg 75570c674dbdSmrg -L* | -R* | -l*) 75580c674dbdSmrg # Some compilers place space between "-{L,R}" and the path. 75590c674dbdSmrg # Remove the space. 75600c674dbdSmrg if test x-L = "$p" || 75610c674dbdSmrg test x-R = "$p"; then 75620c674dbdSmrg prev=$p 75630c674dbdSmrg continue 75640c674dbdSmrg fi 75650c674dbdSmrg 75660c674dbdSmrg # Expand the sysroot to ease extracting the directories later. 75670c674dbdSmrg if test -z "$prev"; then 75680c674dbdSmrg case $p in 75690c674dbdSmrg -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 75700c674dbdSmrg -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 75710c674dbdSmrg -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 75720c674dbdSmrg esac 75730c674dbdSmrg fi 75740c674dbdSmrg case $p in 75750c674dbdSmrg =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 75760c674dbdSmrg esac 75770c674dbdSmrg if test no = "$pre_test_object_deps_done"; then 75780c674dbdSmrg case $prev in 75790c674dbdSmrg -L | -R) 75800c674dbdSmrg # Internal compiler library paths should come after those 75810c674dbdSmrg # provided the user. The postdeps already come after the 75820c674dbdSmrg # user supplied libs so there is no need to process them. 75830c674dbdSmrg if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 75840c674dbdSmrg _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 75850c674dbdSmrg else 75860c674dbdSmrg _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 75870c674dbdSmrg fi 75880c674dbdSmrg ;; 75890c674dbdSmrg # The "-l" case would never come before the object being 75900c674dbdSmrg # linked, so don't bother handling this case. 75910c674dbdSmrg esac 75920c674dbdSmrg else 75930c674dbdSmrg if test -z "$_LT_TAGVAR(postdeps, $1)"; then 75940c674dbdSmrg _LT_TAGVAR(postdeps, $1)=$prev$p 75950c674dbdSmrg else 75960c674dbdSmrg _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 75970c674dbdSmrg fi 75980c674dbdSmrg fi 75990c674dbdSmrg prev= 76000c674dbdSmrg ;; 76010c674dbdSmrg 76020c674dbdSmrg *.lto.$objext) ;; # Ignore GCC LTO objects 76030c674dbdSmrg *.$objext) 76040c674dbdSmrg # This assumes that the test object file only shows up 76050c674dbdSmrg # once in the compiler output. 76060c674dbdSmrg if test "$p" = "conftest.$objext"; then 76070c674dbdSmrg pre_test_object_deps_done=yes 76080c674dbdSmrg continue 76090c674dbdSmrg fi 76100c674dbdSmrg 76110c674dbdSmrg if test no = "$pre_test_object_deps_done"; then 76120c674dbdSmrg if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 76130c674dbdSmrg _LT_TAGVAR(predep_objects, $1)=$p 76140c674dbdSmrg else 76150c674dbdSmrg _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 76160c674dbdSmrg fi 76170c674dbdSmrg else 76180c674dbdSmrg if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 76190c674dbdSmrg _LT_TAGVAR(postdep_objects, $1)=$p 76200c674dbdSmrg else 76210c674dbdSmrg _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 76220c674dbdSmrg fi 76230c674dbdSmrg fi 76240c674dbdSmrg ;; 76250c674dbdSmrg 76260c674dbdSmrg *) ;; # Ignore the rest. 76270c674dbdSmrg 76280c674dbdSmrg esac 76290c674dbdSmrg done 76300c674dbdSmrg 76310c674dbdSmrg # Clean up. 76320c674dbdSmrg rm -f a.out a.exe 76330c674dbdSmrgelse 76340c674dbdSmrg echo "libtool.m4: error: problem compiling $1 test program" 76350c674dbdSmrgfi 76360c674dbdSmrg 76370c674dbdSmrg$RM -f confest.$objext 76380c674dbdSmrgCFLAGS=$_lt_libdeps_save_CFLAGS 76390c674dbdSmrg 76400c674dbdSmrg# PORTME: override above test on systems where it is broken 76410c674dbdSmrgm4_if([$1], [CXX], 76420c674dbdSmrg[case $host_os in 76430c674dbdSmrginterix[[3-9]]*) 76440c674dbdSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 76450c674dbdSmrg # hack all around it, let's just trust "g++" to DTRT. 76460c674dbdSmrg _LT_TAGVAR(predep_objects,$1)= 76470c674dbdSmrg _LT_TAGVAR(postdep_objects,$1)= 76480c674dbdSmrg _LT_TAGVAR(postdeps,$1)= 76490c674dbdSmrg ;; 76500c674dbdSmrgesac 76510c674dbdSmrg]) 76520c674dbdSmrg 76530c674dbdSmrgcase " $_LT_TAGVAR(postdeps, $1) " in 76540c674dbdSmrg*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 76550c674dbdSmrgesac 76560c674dbdSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)= 76570c674dbdSmrgif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 76580c674dbdSmrg _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 76590c674dbdSmrgfi 76600c674dbdSmrg_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 76610c674dbdSmrg [The directories searched by this compiler when creating a shared library]) 76620c674dbdSmrg_LT_TAGDECL([], [predep_objects], [1], 76630c674dbdSmrg [Dependencies to place before and after the objects being linked to 76640c674dbdSmrg create a shared library]) 76650c674dbdSmrg_LT_TAGDECL([], [postdep_objects], [1]) 76660c674dbdSmrg_LT_TAGDECL([], [predeps], [1]) 76670c674dbdSmrg_LT_TAGDECL([], [postdeps], [1]) 76680c674dbdSmrg_LT_TAGDECL([], [compiler_lib_search_path], [1], 76690c674dbdSmrg [The library search path used internally by the compiler when linking 76700c674dbdSmrg a shared library]) 76710c674dbdSmrg])# _LT_SYS_HIDDEN_LIBDEPS 76720c674dbdSmrg 76730c674dbdSmrg 76740c674dbdSmrg# _LT_LANG_F77_CONFIG([TAG]) 76750c674dbdSmrg# -------------------------- 76760c674dbdSmrg# Ensure that the configuration variables for a Fortran 77 compiler are 76770c674dbdSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 76780c674dbdSmrg# to write the compiler configuration to 'libtool'. 76790c674dbdSmrgm4_defun([_LT_LANG_F77_CONFIG], 76800c674dbdSmrg[AC_LANG_PUSH(Fortran 77) 76810c674dbdSmrgif test -z "$F77" || test no = "$F77"; then 76820c674dbdSmrg _lt_disable_F77=yes 76830c674dbdSmrgfi 76840c674dbdSmrg 76850c674dbdSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 76860c674dbdSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 76870c674dbdSmrg_LT_TAGVAR(always_export_symbols, $1)=no 76880c674dbdSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 76890c674dbdSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 76900c674dbdSmrg_LT_TAGVAR(hardcode_direct, $1)=no 76910c674dbdSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 76920c674dbdSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 76930c674dbdSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 76940c674dbdSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 76950c674dbdSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 76960c674dbdSmrg_LT_TAGVAR(inherit_rpath, $1)=no 76970c674dbdSmrg_LT_TAGVAR(module_cmds, $1)= 76980c674dbdSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 76990c674dbdSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 77000c674dbdSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 77010c674dbdSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 77020c674dbdSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 77030c674dbdSmrg_LT_TAGVAR(no_undefined_flag, $1)= 77040c674dbdSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 77050c674dbdSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 77060c674dbdSmrg 77070c674dbdSmrg# Source file extension for f77 test sources. 77080c674dbdSmrgac_ext=f 77090c674dbdSmrg 77100c674dbdSmrg# Object file extension for compiled f77 test sources. 77110c674dbdSmrgobjext=o 77120c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 77130c674dbdSmrg 77140c674dbdSmrg# No sense in running all these tests if we already determined that 77150c674dbdSmrg# the F77 compiler isn't working. Some variables (like enable_shared) 77160c674dbdSmrg# are currently assumed to apply to all compilers on this platform, 77170c674dbdSmrg# and will be corrupted by setting them based on a non-working compiler. 77180c674dbdSmrgif test yes != "$_lt_disable_F77"; then 77190c674dbdSmrg # Code to be used in simple compile tests 77200c674dbdSmrg lt_simple_compile_test_code="\ 77210c674dbdSmrg subroutine t 77220c674dbdSmrg return 77230c674dbdSmrg end 77240c674dbdSmrg" 77250c674dbdSmrg 77260c674dbdSmrg # Code to be used in simple link tests 77270c674dbdSmrg lt_simple_link_test_code="\ 77280c674dbdSmrg program t 77290c674dbdSmrg end 77300c674dbdSmrg" 77310c674dbdSmrg 77320c674dbdSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 77330c674dbdSmrg _LT_TAG_COMPILER 77340c674dbdSmrg 77350c674dbdSmrg # save warnings/boilerplate of simple test code 77360c674dbdSmrg _LT_COMPILER_BOILERPLATE 77370c674dbdSmrg _LT_LINKER_BOILERPLATE 77380c674dbdSmrg 77390c674dbdSmrg # Allow CC to be a program name with arguments. 77400c674dbdSmrg lt_save_CC=$CC 77410c674dbdSmrg lt_save_GCC=$GCC 77420c674dbdSmrg lt_save_CFLAGS=$CFLAGS 77430c674dbdSmrg CC=${F77-"f77"} 77440c674dbdSmrg CFLAGS=$FFLAGS 77450c674dbdSmrg compiler=$CC 77460c674dbdSmrg _LT_TAGVAR(compiler, $1)=$CC 77470c674dbdSmrg _LT_CC_BASENAME([$compiler]) 77480c674dbdSmrg GCC=$G77 77490c674dbdSmrg if test -n "$compiler"; then 77500c674dbdSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 77510c674dbdSmrg AC_MSG_RESULT([$can_build_shared]) 77520c674dbdSmrg 77530c674dbdSmrg AC_MSG_CHECKING([whether to build shared libraries]) 77540c674dbdSmrg test no = "$can_build_shared" && enable_shared=no 77550c674dbdSmrg 77560c674dbdSmrg # On AIX, shared libraries and static libraries use the same namespace, and 77570c674dbdSmrg # are all built from PIC. 77580c674dbdSmrg case $host_os in 77590c674dbdSmrg aix3*) 77600c674dbdSmrg test yes = "$enable_shared" && enable_static=no 77610c674dbdSmrg if test -n "$RANLIB"; then 77620c674dbdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 77630c674dbdSmrg postinstall_cmds='$RANLIB $lib' 77640c674dbdSmrg fi 77650c674dbdSmrg ;; 77660c674dbdSmrg aix[[4-9]]*) 77670c674dbdSmrg if test ia64 != "$host_cpu"; then 77680c674dbdSmrg case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 77690c674dbdSmrg yes,aix,yes) ;; # shared object as lib.so file only 77700c674dbdSmrg yes,svr4,*) ;; # shared object as lib.so archive member only 77710c674dbdSmrg yes,*) enable_static=no ;; # shared object in lib.a archive as well 77720c674dbdSmrg esac 77730c674dbdSmrg fi 77740c674dbdSmrg ;; 77750c674dbdSmrg esac 77760c674dbdSmrg AC_MSG_RESULT([$enable_shared]) 77770c674dbdSmrg 77780c674dbdSmrg AC_MSG_CHECKING([whether to build static libraries]) 77790c674dbdSmrg # Make sure either enable_shared or enable_static is yes. 77800c674dbdSmrg test yes = "$enable_shared" || enable_static=yes 77810c674dbdSmrg AC_MSG_RESULT([$enable_static]) 77820c674dbdSmrg 77830c674dbdSmrg _LT_TAGVAR(GCC, $1)=$G77 77840c674dbdSmrg _LT_TAGVAR(LD, $1)=$LD 77850c674dbdSmrg 77860c674dbdSmrg ## CAVEAT EMPTOR: 77870c674dbdSmrg ## There is no encapsulation within the following macros, do not change 77880c674dbdSmrg ## the running order or otherwise move them around unless you know exactly 77890c674dbdSmrg ## what you are doing... 77900c674dbdSmrg _LT_COMPILER_PIC($1) 77910c674dbdSmrg _LT_COMPILER_C_O($1) 77920c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 77930c674dbdSmrg _LT_LINKER_SHLIBS($1) 77940c674dbdSmrg _LT_SYS_DYNAMIC_LINKER($1) 77950c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 77960c674dbdSmrg 77970c674dbdSmrg _LT_CONFIG($1) 77980c674dbdSmrg fi # test -n "$compiler" 77990c674dbdSmrg 78000c674dbdSmrg GCC=$lt_save_GCC 78010c674dbdSmrg CC=$lt_save_CC 78020c674dbdSmrg CFLAGS=$lt_save_CFLAGS 78030c674dbdSmrgfi # test yes != "$_lt_disable_F77" 78040c674dbdSmrg 78050c674dbdSmrgAC_LANG_POP 78060c674dbdSmrg])# _LT_LANG_F77_CONFIG 78070c674dbdSmrg 78080c674dbdSmrg 78090c674dbdSmrg# _LT_LANG_FC_CONFIG([TAG]) 78100c674dbdSmrg# ------------------------- 78110c674dbdSmrg# Ensure that the configuration variables for a Fortran compiler are 78120c674dbdSmrg# suitably defined. These variables are subsequently used by _LT_CONFIG 78130c674dbdSmrg# to write the compiler configuration to 'libtool'. 78140c674dbdSmrgm4_defun([_LT_LANG_FC_CONFIG], 78150c674dbdSmrg[AC_LANG_PUSH(Fortran) 78160c674dbdSmrg 78170c674dbdSmrgif test -z "$FC" || test no = "$FC"; then 78180c674dbdSmrg _lt_disable_FC=yes 78190c674dbdSmrgfi 78200c674dbdSmrg 78210c674dbdSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 78220c674dbdSmrg_LT_TAGVAR(allow_undefined_flag, $1)= 78230c674dbdSmrg_LT_TAGVAR(always_export_symbols, $1)=no 78240c674dbdSmrg_LT_TAGVAR(archive_expsym_cmds, $1)= 78250c674dbdSmrg_LT_TAGVAR(export_dynamic_flag_spec, $1)= 78260c674dbdSmrg_LT_TAGVAR(hardcode_direct, $1)=no 78270c674dbdSmrg_LT_TAGVAR(hardcode_direct_absolute, $1)=no 78280c674dbdSmrg_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 78290c674dbdSmrg_LT_TAGVAR(hardcode_libdir_separator, $1)= 78300c674dbdSmrg_LT_TAGVAR(hardcode_minus_L, $1)=no 78310c674dbdSmrg_LT_TAGVAR(hardcode_automatic, $1)=no 78320c674dbdSmrg_LT_TAGVAR(inherit_rpath, $1)=no 78330c674dbdSmrg_LT_TAGVAR(module_cmds, $1)= 78340c674dbdSmrg_LT_TAGVAR(module_expsym_cmds, $1)= 78350c674dbdSmrg_LT_TAGVAR(link_all_deplibs, $1)=unknown 78360c674dbdSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 78370c674dbdSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 78380c674dbdSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 78390c674dbdSmrg_LT_TAGVAR(no_undefined_flag, $1)= 78400c674dbdSmrg_LT_TAGVAR(whole_archive_flag_spec, $1)= 78410c674dbdSmrg_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 78420c674dbdSmrg 78430c674dbdSmrg# Source file extension for fc test sources. 78440c674dbdSmrgac_ext=${ac_fc_srcext-f} 78450c674dbdSmrg 78460c674dbdSmrg# Object file extension for compiled fc test sources. 78470c674dbdSmrgobjext=o 78480c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 78490c674dbdSmrg 78500c674dbdSmrg# No sense in running all these tests if we already determined that 78510c674dbdSmrg# the FC compiler isn't working. Some variables (like enable_shared) 78520c674dbdSmrg# are currently assumed to apply to all compilers on this platform, 78530c674dbdSmrg# and will be corrupted by setting them based on a non-working compiler. 78540c674dbdSmrgif test yes != "$_lt_disable_FC"; then 78550c674dbdSmrg # Code to be used in simple compile tests 78560c674dbdSmrg lt_simple_compile_test_code="\ 78570c674dbdSmrg subroutine t 78580c674dbdSmrg return 78590c674dbdSmrg end 78600c674dbdSmrg" 78610c674dbdSmrg 78620c674dbdSmrg # Code to be used in simple link tests 78630c674dbdSmrg lt_simple_link_test_code="\ 78640c674dbdSmrg program t 78650c674dbdSmrg end 78660c674dbdSmrg" 78670c674dbdSmrg 78680c674dbdSmrg # ltmain only uses $CC for tagged configurations so make sure $CC is set. 78690c674dbdSmrg _LT_TAG_COMPILER 78700c674dbdSmrg 78710c674dbdSmrg # save warnings/boilerplate of simple test code 78720c674dbdSmrg _LT_COMPILER_BOILERPLATE 78730c674dbdSmrg _LT_LINKER_BOILERPLATE 78740c674dbdSmrg 78750c674dbdSmrg # Allow CC to be a program name with arguments. 78760c674dbdSmrg lt_save_CC=$CC 78770c674dbdSmrg lt_save_GCC=$GCC 78780c674dbdSmrg lt_save_CFLAGS=$CFLAGS 78790c674dbdSmrg CC=${FC-"f95"} 78800c674dbdSmrg CFLAGS=$FCFLAGS 78810c674dbdSmrg compiler=$CC 78820c674dbdSmrg GCC=$ac_cv_fc_compiler_gnu 78830c674dbdSmrg 78840c674dbdSmrg _LT_TAGVAR(compiler, $1)=$CC 78850c674dbdSmrg _LT_CC_BASENAME([$compiler]) 78860c674dbdSmrg 78870c674dbdSmrg if test -n "$compiler"; then 78880c674dbdSmrg AC_MSG_CHECKING([if libtool supports shared libraries]) 78890c674dbdSmrg AC_MSG_RESULT([$can_build_shared]) 78900c674dbdSmrg 78910c674dbdSmrg AC_MSG_CHECKING([whether to build shared libraries]) 78920c674dbdSmrg test no = "$can_build_shared" && enable_shared=no 78930c674dbdSmrg 78940c674dbdSmrg # On AIX, shared libraries and static libraries use the same namespace, and 78950c674dbdSmrg # are all built from PIC. 78960c674dbdSmrg case $host_os in 78970c674dbdSmrg aix3*) 78980c674dbdSmrg test yes = "$enable_shared" && enable_static=no 78990c674dbdSmrg if test -n "$RANLIB"; then 79000c674dbdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 79010c674dbdSmrg postinstall_cmds='$RANLIB $lib' 79020c674dbdSmrg fi 79030c674dbdSmrg ;; 79040c674dbdSmrg aix[[4-9]]*) 79050c674dbdSmrg if test ia64 != "$host_cpu"; then 79060c674dbdSmrg case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 79070c674dbdSmrg yes,aix,yes) ;; # shared object as lib.so file only 79080c674dbdSmrg yes,svr4,*) ;; # shared object as lib.so archive member only 79090c674dbdSmrg yes,*) enable_static=no ;; # shared object in lib.a archive as well 79100c674dbdSmrg esac 79110c674dbdSmrg fi 79120c674dbdSmrg ;; 79130c674dbdSmrg esac 79140c674dbdSmrg AC_MSG_RESULT([$enable_shared]) 79150c674dbdSmrg 79160c674dbdSmrg AC_MSG_CHECKING([whether to build static libraries]) 79170c674dbdSmrg # Make sure either enable_shared or enable_static is yes. 79180c674dbdSmrg test yes = "$enable_shared" || enable_static=yes 79190c674dbdSmrg AC_MSG_RESULT([$enable_static]) 79200c674dbdSmrg 79210c674dbdSmrg _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 79220c674dbdSmrg _LT_TAGVAR(LD, $1)=$LD 79230c674dbdSmrg 79240c674dbdSmrg ## CAVEAT EMPTOR: 79250c674dbdSmrg ## There is no encapsulation within the following macros, do not change 79260c674dbdSmrg ## the running order or otherwise move them around unless you know exactly 79270c674dbdSmrg ## what you are doing... 79280c674dbdSmrg _LT_SYS_HIDDEN_LIBDEPS($1) 79290c674dbdSmrg _LT_COMPILER_PIC($1) 79300c674dbdSmrg _LT_COMPILER_C_O($1) 79310c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 79320c674dbdSmrg _LT_LINKER_SHLIBS($1) 79330c674dbdSmrg _LT_SYS_DYNAMIC_LINKER($1) 79340c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 79350c674dbdSmrg 79360c674dbdSmrg _LT_CONFIG($1) 79370c674dbdSmrg fi # test -n "$compiler" 79380c674dbdSmrg 79390c674dbdSmrg GCC=$lt_save_GCC 79400c674dbdSmrg CC=$lt_save_CC 79410c674dbdSmrg CFLAGS=$lt_save_CFLAGS 79420c674dbdSmrgfi # test yes != "$_lt_disable_FC" 79430c674dbdSmrg 79440c674dbdSmrgAC_LANG_POP 79450c674dbdSmrg])# _LT_LANG_FC_CONFIG 79460c674dbdSmrg 79470c674dbdSmrg 79480c674dbdSmrg# _LT_LANG_GCJ_CONFIG([TAG]) 79490c674dbdSmrg# -------------------------- 79500c674dbdSmrg# Ensure that the configuration variables for the GNU Java Compiler compiler 79510c674dbdSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 79520c674dbdSmrg# to write the compiler configuration to 'libtool'. 79530c674dbdSmrgm4_defun([_LT_LANG_GCJ_CONFIG], 79540c674dbdSmrg[AC_REQUIRE([LT_PROG_GCJ])dnl 79550c674dbdSmrgAC_LANG_SAVE 79560c674dbdSmrg 79570c674dbdSmrg# Source file extension for Java test sources. 79580c674dbdSmrgac_ext=java 79590c674dbdSmrg 79600c674dbdSmrg# Object file extension for compiled Java test sources. 79610c674dbdSmrgobjext=o 79620c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 79630c674dbdSmrg 79640c674dbdSmrg# Code to be used in simple compile tests 79650c674dbdSmrglt_simple_compile_test_code="class foo {}" 79660c674dbdSmrg 79670c674dbdSmrg# Code to be used in simple link tests 79680c674dbdSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 79690c674dbdSmrg 79700c674dbdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 79710c674dbdSmrg_LT_TAG_COMPILER 79720c674dbdSmrg 79730c674dbdSmrg# save warnings/boilerplate of simple test code 79740c674dbdSmrg_LT_COMPILER_BOILERPLATE 79750c674dbdSmrg_LT_LINKER_BOILERPLATE 79760c674dbdSmrg 79770c674dbdSmrg# Allow CC to be a program name with arguments. 79780c674dbdSmrglt_save_CC=$CC 79790c674dbdSmrglt_save_CFLAGS=$CFLAGS 79800c674dbdSmrglt_save_GCC=$GCC 79810c674dbdSmrgGCC=yes 79820c674dbdSmrgCC=${GCJ-"gcj"} 79830c674dbdSmrgCFLAGS=$GCJFLAGS 79840c674dbdSmrgcompiler=$CC 79850c674dbdSmrg_LT_TAGVAR(compiler, $1)=$CC 79860c674dbdSmrg_LT_TAGVAR(LD, $1)=$LD 79870c674dbdSmrg_LT_CC_BASENAME([$compiler]) 79880c674dbdSmrg 79890c674dbdSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 79900c674dbdSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 79910c674dbdSmrg 79920c674dbdSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 79930c674dbdSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 79940c674dbdSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 79950c674dbdSmrg 79960c674dbdSmrg## CAVEAT EMPTOR: 79970c674dbdSmrg## There is no encapsulation within the following macros, do not change 79980c674dbdSmrg## the running order or otherwise move them around unless you know exactly 79990c674dbdSmrg## what you are doing... 80000c674dbdSmrgif test -n "$compiler"; then 80010c674dbdSmrg _LT_COMPILER_NO_RTTI($1) 80020c674dbdSmrg _LT_COMPILER_PIC($1) 80030c674dbdSmrg _LT_COMPILER_C_O($1) 80040c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 80050c674dbdSmrg _LT_LINKER_SHLIBS($1) 80060c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 80070c674dbdSmrg 80080c674dbdSmrg _LT_CONFIG($1) 80090c674dbdSmrgfi 80100c674dbdSmrg 80110c674dbdSmrgAC_LANG_RESTORE 80120c674dbdSmrg 80130c674dbdSmrgGCC=$lt_save_GCC 80140c674dbdSmrgCC=$lt_save_CC 80150c674dbdSmrgCFLAGS=$lt_save_CFLAGS 80160c674dbdSmrg])# _LT_LANG_GCJ_CONFIG 80170c674dbdSmrg 80180c674dbdSmrg 80190c674dbdSmrg# _LT_LANG_GO_CONFIG([TAG]) 80200c674dbdSmrg# -------------------------- 80210c674dbdSmrg# Ensure that the configuration variables for the GNU Go compiler 80220c674dbdSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 80230c674dbdSmrg# to write the compiler configuration to 'libtool'. 80240c674dbdSmrgm4_defun([_LT_LANG_GO_CONFIG], 80250c674dbdSmrg[AC_REQUIRE([LT_PROG_GO])dnl 80260c674dbdSmrgAC_LANG_SAVE 80270c674dbdSmrg 80280c674dbdSmrg# Source file extension for Go test sources. 80290c674dbdSmrgac_ext=go 80300c674dbdSmrg 80310c674dbdSmrg# Object file extension for compiled Go test sources. 80320c674dbdSmrgobjext=o 80330c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 80340c674dbdSmrg 80350c674dbdSmrg# Code to be used in simple compile tests 80360c674dbdSmrglt_simple_compile_test_code="package main; func main() { }" 80370c674dbdSmrg 80380c674dbdSmrg# Code to be used in simple link tests 80390c674dbdSmrglt_simple_link_test_code='package main; func main() { }' 80400c674dbdSmrg 80410c674dbdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 80420c674dbdSmrg_LT_TAG_COMPILER 80430c674dbdSmrg 80440c674dbdSmrg# save warnings/boilerplate of simple test code 80450c674dbdSmrg_LT_COMPILER_BOILERPLATE 80460c674dbdSmrg_LT_LINKER_BOILERPLATE 80470c674dbdSmrg 80480c674dbdSmrg# Allow CC to be a program name with arguments. 80490c674dbdSmrglt_save_CC=$CC 80500c674dbdSmrglt_save_CFLAGS=$CFLAGS 80510c674dbdSmrglt_save_GCC=$GCC 80520c674dbdSmrgGCC=yes 80530c674dbdSmrgCC=${GOC-"gccgo"} 80540c674dbdSmrgCFLAGS=$GOFLAGS 80550c674dbdSmrgcompiler=$CC 80560c674dbdSmrg_LT_TAGVAR(compiler, $1)=$CC 80570c674dbdSmrg_LT_TAGVAR(LD, $1)=$LD 80580c674dbdSmrg_LT_CC_BASENAME([$compiler]) 80590c674dbdSmrg 80600c674dbdSmrg# Go did not exist at the time GCC didn't implicitly link libc in. 80610c674dbdSmrg_LT_TAGVAR(archive_cmds_need_lc, $1)=no 80620c674dbdSmrg 80630c674dbdSmrg_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 80640c674dbdSmrg_LT_TAGVAR(reload_flag, $1)=$reload_flag 80650c674dbdSmrg_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 80660c674dbdSmrg 80670c674dbdSmrg## CAVEAT EMPTOR: 80680c674dbdSmrg## There is no encapsulation within the following macros, do not change 80690c674dbdSmrg## the running order or otherwise move them around unless you know exactly 80700c674dbdSmrg## what you are doing... 80710c674dbdSmrgif test -n "$compiler"; then 80720c674dbdSmrg _LT_COMPILER_NO_RTTI($1) 80730c674dbdSmrg _LT_COMPILER_PIC($1) 80740c674dbdSmrg _LT_COMPILER_C_O($1) 80750c674dbdSmrg _LT_COMPILER_FILE_LOCKS($1) 80760c674dbdSmrg _LT_LINKER_SHLIBS($1) 80770c674dbdSmrg _LT_LINKER_HARDCODE_LIBPATH($1) 80780c674dbdSmrg 80790c674dbdSmrg _LT_CONFIG($1) 80800c674dbdSmrgfi 80810c674dbdSmrg 80820c674dbdSmrgAC_LANG_RESTORE 80830c674dbdSmrg 80840c674dbdSmrgGCC=$lt_save_GCC 80850c674dbdSmrgCC=$lt_save_CC 80860c674dbdSmrgCFLAGS=$lt_save_CFLAGS 80870c674dbdSmrg])# _LT_LANG_GO_CONFIG 80880c674dbdSmrg 80890c674dbdSmrg 80900c674dbdSmrg# _LT_LANG_RC_CONFIG([TAG]) 80910c674dbdSmrg# ------------------------- 80920c674dbdSmrg# Ensure that the configuration variables for the Windows resource compiler 80930c674dbdSmrg# are suitably defined. These variables are subsequently used by _LT_CONFIG 80940c674dbdSmrg# to write the compiler configuration to 'libtool'. 80950c674dbdSmrgm4_defun([_LT_LANG_RC_CONFIG], 80960c674dbdSmrg[AC_REQUIRE([LT_PROG_RC])dnl 80970c674dbdSmrgAC_LANG_SAVE 80980c674dbdSmrg 80990c674dbdSmrg# Source file extension for RC test sources. 81000c674dbdSmrgac_ext=rc 81010c674dbdSmrg 81020c674dbdSmrg# Object file extension for compiled RC test sources. 81030c674dbdSmrgobjext=o 81040c674dbdSmrg_LT_TAGVAR(objext, $1)=$objext 81050c674dbdSmrg 81060c674dbdSmrg# Code to be used in simple compile tests 81070c674dbdSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 81080c674dbdSmrg 81090c674dbdSmrg# Code to be used in simple link tests 81100c674dbdSmrglt_simple_link_test_code=$lt_simple_compile_test_code 81110c674dbdSmrg 81120c674dbdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 81130c674dbdSmrg_LT_TAG_COMPILER 81140c674dbdSmrg 81150c674dbdSmrg# save warnings/boilerplate of simple test code 81160c674dbdSmrg_LT_COMPILER_BOILERPLATE 81170c674dbdSmrg_LT_LINKER_BOILERPLATE 81180c674dbdSmrg 81190c674dbdSmrg# Allow CC to be a program name with arguments. 81200c674dbdSmrglt_save_CC=$CC 81210c674dbdSmrglt_save_CFLAGS=$CFLAGS 81220c674dbdSmrglt_save_GCC=$GCC 81230c674dbdSmrgGCC= 81240c674dbdSmrgCC=${RC-"windres"} 81250c674dbdSmrgCFLAGS= 81260c674dbdSmrgcompiler=$CC 81270c674dbdSmrg_LT_TAGVAR(compiler, $1)=$CC 81280c674dbdSmrg_LT_CC_BASENAME([$compiler]) 81290c674dbdSmrg_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 81300c674dbdSmrg 81310c674dbdSmrgif test -n "$compiler"; then 81320c674dbdSmrg : 81330c674dbdSmrg _LT_CONFIG($1) 81340c674dbdSmrgfi 81350c674dbdSmrg 81360c674dbdSmrgGCC=$lt_save_GCC 81370c674dbdSmrgAC_LANG_RESTORE 81380c674dbdSmrgCC=$lt_save_CC 81390c674dbdSmrgCFLAGS=$lt_save_CFLAGS 81400c674dbdSmrg])# _LT_LANG_RC_CONFIG 81410c674dbdSmrg 81420c674dbdSmrg 81430c674dbdSmrg# LT_PROG_GCJ 81440c674dbdSmrg# ----------- 81450c674dbdSmrgAC_DEFUN([LT_PROG_GCJ], 81460c674dbdSmrg[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 81470c674dbdSmrg [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 81480c674dbdSmrg [AC_CHECK_TOOL(GCJ, gcj,) 81490c674dbdSmrg test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 81500c674dbdSmrg AC_SUBST(GCJFLAGS)])])[]dnl 81510c674dbdSmrg]) 81520c674dbdSmrg 81530c674dbdSmrg# Old name: 81540c674dbdSmrgAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 81550c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 81560c674dbdSmrgdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 81570c674dbdSmrg 81580c674dbdSmrg 81590c674dbdSmrg# LT_PROG_GO 81600c674dbdSmrg# ---------- 81610c674dbdSmrgAC_DEFUN([LT_PROG_GO], 81620c674dbdSmrg[AC_CHECK_TOOL(GOC, gccgo,) 81630c674dbdSmrg]) 81640c674dbdSmrg 81650c674dbdSmrg 81660c674dbdSmrg# LT_PROG_RC 81670c674dbdSmrg# ---------- 81680c674dbdSmrgAC_DEFUN([LT_PROG_RC], 81690c674dbdSmrg[AC_CHECK_TOOL(RC, windres,) 81700c674dbdSmrg]) 81710c674dbdSmrg 81720c674dbdSmrg# Old name: 81730c674dbdSmrgAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 81740c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 81750c674dbdSmrgdnl AC_DEFUN([LT_AC_PROG_RC], []) 81760c674dbdSmrg 81770c674dbdSmrg 81780c674dbdSmrg# _LT_DECL_EGREP 81790c674dbdSmrg# -------------- 81800c674dbdSmrg# If we don't have a new enough Autoconf to choose the best grep 81810c674dbdSmrg# available, choose the one first in the user's PATH. 81820c674dbdSmrgm4_defun([_LT_DECL_EGREP], 81830c674dbdSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 81840c674dbdSmrgAC_REQUIRE([AC_PROG_FGREP])dnl 81850c674dbdSmrgtest -z "$GREP" && GREP=grep 81860c674dbdSmrg_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 81870c674dbdSmrg_LT_DECL([], [EGREP], [1], [An ERE matcher]) 81880c674dbdSmrg_LT_DECL([], [FGREP], [1], [A literal string matcher]) 81890c674dbdSmrgdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 81900c674dbdSmrgAC_SUBST([GREP]) 81910c674dbdSmrg]) 81920c674dbdSmrg 81930c674dbdSmrg 81940c674dbdSmrg# _LT_DECL_OBJDUMP 81950c674dbdSmrg# -------------- 81960c674dbdSmrg# If we don't have a new enough Autoconf to choose the best objdump 81970c674dbdSmrg# available, choose the one first in the user's PATH. 81980c674dbdSmrgm4_defun([_LT_DECL_OBJDUMP], 81990c674dbdSmrg[AC_CHECK_TOOL(OBJDUMP, objdump, false) 82000c674dbdSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 82010c674dbdSmrg_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 82020c674dbdSmrgAC_SUBST([OBJDUMP]) 82030c674dbdSmrg]) 82040c674dbdSmrg 82050c674dbdSmrg# _LT_DECL_DLLTOOL 82060c674dbdSmrg# ---------------- 82070c674dbdSmrg# Ensure DLLTOOL variable is set. 82080c674dbdSmrgm4_defun([_LT_DECL_DLLTOOL], 82090c674dbdSmrg[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 82100c674dbdSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 82110c674dbdSmrg_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 82120c674dbdSmrgAC_SUBST([DLLTOOL]) 82130c674dbdSmrg]) 82140c674dbdSmrg 82150c674dbdSmrg# _LT_DECL_FILECMD 82160c674dbdSmrg# ---------------- 82170c674dbdSmrg# Check for a file(cmd) program that can be used to detect file type and magic 82180c674dbdSmrgm4_defun([_LT_DECL_FILECMD], 82190c674dbdSmrg[AC_CHECK_TOOL([FILECMD], [file], [:]) 82200c674dbdSmrg_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) 82210c674dbdSmrg])# _LD_DECL_FILECMD 82220c674dbdSmrg 82230c674dbdSmrg# _LT_DECL_SED 82240c674dbdSmrg# ------------ 82250c674dbdSmrg# Check for a fully-functional sed program, that truncates 82260c674dbdSmrg# as few characters as possible. Prefer GNU sed if found. 82270c674dbdSmrgm4_defun([_LT_DECL_SED], 82280c674dbdSmrg[AC_PROG_SED 82290c674dbdSmrgtest -z "$SED" && SED=sed 82300c674dbdSmrgXsed="$SED -e 1s/^X//" 82310c674dbdSmrg_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 82320c674dbdSmrg_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 82330c674dbdSmrg [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 82340c674dbdSmrg])# _LT_DECL_SED 82350c674dbdSmrg 82360c674dbdSmrgm4_ifndef([AC_PROG_SED], [ 82370c674dbdSmrg############################################################ 82380c674dbdSmrg# NOTE: This macro has been submitted for inclusion into # 82390c674dbdSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 82400c674dbdSmrg# a released version of Autoconf we should remove this # 82410c674dbdSmrg# macro and use it instead. # 82420c674dbdSmrg############################################################ 82430c674dbdSmrg 82440c674dbdSmrgm4_defun([AC_PROG_SED], 82450c674dbdSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 82460c674dbdSmrgAC_CACHE_VAL(lt_cv_path_SED, 82470c674dbdSmrg[# Loop through the user's path and test for sed and gsed. 82480c674dbdSmrg# Then use that list of sed's as ones to test for truncation. 82490c674dbdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 82500c674dbdSmrgfor as_dir in $PATH 82510c674dbdSmrgdo 82520c674dbdSmrg IFS=$as_save_IFS 82530c674dbdSmrg test -z "$as_dir" && as_dir=. 82540c674dbdSmrg for lt_ac_prog in sed gsed; do 82550c674dbdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 82560c674dbdSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 82570c674dbdSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 82580c674dbdSmrg fi 82590c674dbdSmrg done 82600c674dbdSmrg done 82610c674dbdSmrgdone 82620c674dbdSmrgIFS=$as_save_IFS 82630c674dbdSmrglt_ac_max=0 82640c674dbdSmrglt_ac_count=0 82650c674dbdSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 82660c674dbdSmrg# along with /bin/sed that truncates output. 82670c674dbdSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 82680c674dbdSmrg test ! -f "$lt_ac_sed" && continue 82690c674dbdSmrg cat /dev/null > conftest.in 82700c674dbdSmrg lt_ac_count=0 82710c674dbdSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 82720c674dbdSmrg # Check for GNU sed and select it if it is found. 82730c674dbdSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 82740c674dbdSmrg lt_cv_path_SED=$lt_ac_sed 82750c674dbdSmrg break 82760c674dbdSmrg fi 82770c674dbdSmrg while true; do 82780c674dbdSmrg cat conftest.in conftest.in >conftest.tmp 82790c674dbdSmrg mv conftest.tmp conftest.in 82800c674dbdSmrg cp conftest.in conftest.nl 82810c674dbdSmrg echo >>conftest.nl 82820c674dbdSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 82830c674dbdSmrg cmp -s conftest.out conftest.nl || break 82840c674dbdSmrg # 10000 chars as input seems more than enough 82850c674dbdSmrg test 10 -lt "$lt_ac_count" && break 82860c674dbdSmrg lt_ac_count=`expr $lt_ac_count + 1` 82870c674dbdSmrg if test "$lt_ac_count" -gt "$lt_ac_max"; then 82880c674dbdSmrg lt_ac_max=$lt_ac_count 82890c674dbdSmrg lt_cv_path_SED=$lt_ac_sed 82900c674dbdSmrg fi 82910c674dbdSmrg done 82920c674dbdSmrgdone 82930c674dbdSmrg]) 82940c674dbdSmrgSED=$lt_cv_path_SED 82950c674dbdSmrgAC_SUBST([SED]) 82960c674dbdSmrgAC_MSG_RESULT([$SED]) 82970c674dbdSmrg])#AC_PROG_SED 82980c674dbdSmrg])#m4_ifndef 82990c674dbdSmrg 83000c674dbdSmrg# Old name: 83010c674dbdSmrgAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 83020c674dbdSmrgdnl aclocal-1.4 backwards compatibility: 83030c674dbdSmrgdnl AC_DEFUN([LT_AC_PROG_SED], []) 83040c674dbdSmrg 83050c674dbdSmrg 83060c674dbdSmrg# _LT_CHECK_SHELL_FEATURES 83070c674dbdSmrg# ------------------------ 83080c674dbdSmrg# Find out whether the shell is Bourne or XSI compatible, 83090c674dbdSmrg# or has some other useful features. 83100c674dbdSmrgm4_defun([_LT_CHECK_SHELL_FEATURES], 83110c674dbdSmrg[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 83120c674dbdSmrg lt_unset=unset 83130c674dbdSmrgelse 83140c674dbdSmrg lt_unset=false 83150c674dbdSmrgfi 83160c674dbdSmrg_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 83170c674dbdSmrg 83180c674dbdSmrg# test EBCDIC or ASCII 83190c674dbdSmrgcase `echo X|tr X '\101'` in 83200c674dbdSmrg A) # ASCII based system 83210c674dbdSmrg # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 83220c674dbdSmrg lt_SP2NL='tr \040 \012' 83230c674dbdSmrg lt_NL2SP='tr \015\012 \040\040' 83240c674dbdSmrg ;; 83250c674dbdSmrg *) # EBCDIC based system 83260c674dbdSmrg lt_SP2NL='tr \100 \n' 83270c674dbdSmrg lt_NL2SP='tr \r\n \100\100' 83280c674dbdSmrg ;; 83290c674dbdSmrgesac 83300c674dbdSmrg_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 83310c674dbdSmrg_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 83320c674dbdSmrg])# _LT_CHECK_SHELL_FEATURES 83330c674dbdSmrg 83340c674dbdSmrg 83350c674dbdSmrg# _LT_PATH_CONVERSION_FUNCTIONS 83360c674dbdSmrg# ----------------------------- 83370c674dbdSmrg# Determine what file name conversion functions should be used by 83380c674dbdSmrg# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 83390c674dbdSmrg# for certain cross-compile configurations and native mingw. 83400c674dbdSmrgm4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 83410c674dbdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 83420c674dbdSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 83430c674dbdSmrgAC_MSG_CHECKING([how to convert $build file names to $host format]) 83440c674dbdSmrgAC_CACHE_VAL(lt_cv_to_host_file_cmd, 83450c674dbdSmrg[case $host in 83460c674dbdSmrg *-*-mingw* ) 83470c674dbdSmrg case $build in 83480c674dbdSmrg *-*-mingw* ) # actually msys 83490c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 83500c674dbdSmrg ;; 83510c674dbdSmrg *-*-cygwin* ) 83520c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 83530c674dbdSmrg ;; 83540c674dbdSmrg * ) # otherwise, assume *nix 83550c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 83560c674dbdSmrg ;; 83570c674dbdSmrg esac 83580c674dbdSmrg ;; 83590c674dbdSmrg *-*-cygwin* ) 83600c674dbdSmrg case $build in 83610c674dbdSmrg *-*-mingw* ) # actually msys 83620c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 83630c674dbdSmrg ;; 83640c674dbdSmrg *-*-cygwin* ) 83650c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 83660c674dbdSmrg ;; 83670c674dbdSmrg * ) # otherwise, assume *nix 83680c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 83690c674dbdSmrg ;; 83700c674dbdSmrg esac 83710c674dbdSmrg ;; 83720c674dbdSmrg * ) # unhandled hosts (and "normal" native builds) 83730c674dbdSmrg lt_cv_to_host_file_cmd=func_convert_file_noop 83740c674dbdSmrg ;; 83750c674dbdSmrgesac 83760c674dbdSmrg]) 83770c674dbdSmrgto_host_file_cmd=$lt_cv_to_host_file_cmd 83780c674dbdSmrgAC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 83790c674dbdSmrg_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 83800c674dbdSmrg [0], [convert $build file names to $host format])dnl 83810c674dbdSmrg 83820c674dbdSmrgAC_MSG_CHECKING([how to convert $build file names to toolchain format]) 83830c674dbdSmrgAC_CACHE_VAL(lt_cv_to_tool_file_cmd, 83840c674dbdSmrg[#assume ordinary cross tools, or native build. 83850c674dbdSmrglt_cv_to_tool_file_cmd=func_convert_file_noop 83860c674dbdSmrgcase $host in 83870c674dbdSmrg *-*-mingw* ) 83880c674dbdSmrg case $build in 83890c674dbdSmrg *-*-mingw* ) # actually msys 83900c674dbdSmrg lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 83910c674dbdSmrg ;; 83920c674dbdSmrg esac 83930c674dbdSmrg ;; 83940c674dbdSmrgesac 83950c674dbdSmrg]) 83960c674dbdSmrgto_tool_file_cmd=$lt_cv_to_tool_file_cmd 83970c674dbdSmrgAC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 83980c674dbdSmrg_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 83990c674dbdSmrg [0], [convert $build files to toolchain format])dnl 84000c674dbdSmrg])# _LT_PATH_CONVERSION_FUNCTIONS 8401