1238104Sdes# generated automatically by aclocal 1.11.3 -*- Autoconf -*- 2238104Sdes 3238104Sdes# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4238104Sdes# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, 5238104Sdes# Inc. 6238104Sdes# This file is free software; the Free Software Foundation 7238104Sdes# gives unlimited permission to copy and/or distribute it, 8238104Sdes# with or without modifications, as long as this notice is preserved. 9238104Sdes 10238104Sdes# This program is distributed in the hope that it will be useful, 11238104Sdes# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12238104Sdes# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13238104Sdes# PARTICULAR PURPOSE. 14238104Sdes 15238104Sdes# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 16238104Sdes# 17238104Sdes# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 18238104Sdes# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19238104Sdes# Foundation, Inc. 20238104Sdes# Written by Gordon Matzigkeit, 1996 21238104Sdes# 22238104Sdes# This file is free software; the Free Software Foundation gives 23238104Sdes# unlimited permission to copy and/or distribute it, with or without 24238104Sdes# modifications, as long as this notice is preserved. 25238104Sdes 26238104Sdesm4_define([_LT_COPYING], [dnl 27238104Sdes# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 28238104Sdes# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 29238104Sdes# Foundation, Inc. 30238104Sdes# Written by Gordon Matzigkeit, 1996 31238104Sdes# 32238104Sdes# This file is part of GNU Libtool. 33238104Sdes# 34238104Sdes# GNU Libtool is free software; you can redistribute it and/or 35238104Sdes# modify it under the terms of the GNU General Public License as 36238104Sdes# published by the Free Software Foundation; either version 2 of 37238104Sdes# the License, or (at your option) any later version. 38238104Sdes# 39238104Sdes# As a special exception to the GNU General Public License, 40238104Sdes# if you distribute this file as part of a program or library that 41238104Sdes# is built using GNU Libtool, you may include this file under the 42238104Sdes# same distribution terms that you use for the rest of that program. 43238104Sdes# 44238104Sdes# GNU Libtool is distributed in the hope that it will be useful, 45238104Sdes# but WITHOUT ANY WARRANTY; without even the implied warranty of 46238104Sdes# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 47238104Sdes# GNU General Public License for more details. 48238104Sdes# 49238104Sdes# You should have received a copy of the GNU General Public License 50238104Sdes# along with GNU Libtool; see the file COPYING. If not, a copy 51238104Sdes# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 52238104Sdes# obtained by writing to the Free Software Foundation, Inc., 53238104Sdes# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 54238104Sdes]) 55238104Sdes 56238104Sdes# serial 57 LT_INIT 57238104Sdes 58238104Sdes 59238104Sdes# LT_PREREQ(VERSION) 60238104Sdes# ------------------ 61238104Sdes# Complain and exit if this libtool version is less that VERSION. 62238104Sdesm4_defun([LT_PREREQ], 63238104Sdes[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 64238104Sdes [m4_default([$3], 65238104Sdes [m4_fatal([Libtool version $1 or higher is required], 66238104Sdes 63)])], 67238104Sdes [$2])]) 68238104Sdes 69238104Sdes 70238104Sdes# _LT_CHECK_BUILDDIR 71238104Sdes# ------------------ 72238104Sdes# Complain if the absolute build directory name contains unusual characters 73238104Sdesm4_defun([_LT_CHECK_BUILDDIR], 74238104Sdes[case `pwd` in 75238104Sdes *\ * | *\ *) 76238104Sdes AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 77238104Sdesesac 78238104Sdes]) 79238104Sdes 80238104Sdes 81238104Sdes# LT_INIT([OPTIONS]) 82238104Sdes# ------------------ 83238104SdesAC_DEFUN([LT_INIT], 84238104Sdes[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT 85238104SdesAC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 86238104SdesAC_BEFORE([$0], [LT_LANG])dnl 87238104SdesAC_BEFORE([$0], [LT_OUTPUT])dnl 88238104SdesAC_BEFORE([$0], [LTDL_INIT])dnl 89238104Sdesm4_require([_LT_CHECK_BUILDDIR])dnl 90238104Sdes 91238104Sdesdnl Autoconf doesn't catch unexpanded LT_ macros by default: 92238104Sdesm4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 93238104Sdesm4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 94238104Sdesdnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 95238104Sdesdnl unless we require an AC_DEFUNed macro: 96238104SdesAC_REQUIRE([LTOPTIONS_VERSION])dnl 97238104SdesAC_REQUIRE([LTSUGAR_VERSION])dnl 98238104SdesAC_REQUIRE([LTVERSION_VERSION])dnl 99238104SdesAC_REQUIRE([LTOBSOLETE_VERSION])dnl 100238104Sdesm4_require([_LT_PROG_LTMAIN])dnl 101238104Sdes 102238104Sdes_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 103238104Sdes 104238104Sdesdnl Parse OPTIONS 105238104Sdes_LT_SET_OPTIONS([$0], [$1]) 106238104Sdes 107238104Sdes# This can be used to rebuild libtool when needed 108238104SdesLIBTOOL_DEPS="$ltmain" 109238104Sdes 110238104Sdes# Always use our own libtool. 111238104SdesLIBTOOL='$(SHELL) $(top_builddir)/libtool' 112238104SdesAC_SUBST(LIBTOOL)dnl 113238104Sdes 114238104Sdes_LT_SETUP 115238104Sdes 116238104Sdes# Only expand once: 117238104Sdesm4_define([LT_INIT]) 118238104Sdes])# LT_INIT 119238104Sdes 120238104Sdes# Old names: 121238104SdesAU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 122238104SdesAU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 123238104Sdesdnl aclocal-1.4 backwards compatibility: 124238104Sdesdnl AC_DEFUN([AC_PROG_LIBTOOL], []) 125238104Sdesdnl AC_DEFUN([AM_PROG_LIBTOOL], []) 126238104Sdes 127238104Sdes 128238104Sdes# _LT_CC_BASENAME(CC) 129238104Sdes# ------------------- 130238104Sdes# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 131238104Sdesm4_defun([_LT_CC_BASENAME], 132238104Sdes[for cc_temp in $1""; do 133238104Sdes case $cc_temp in 134238104Sdes compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 135238104Sdes distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 136238104Sdes \-*) ;; 137238104Sdes *) break;; 138238104Sdes esac 139238104Sdesdone 140238104Sdescc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 141238104Sdes]) 142238104Sdes 143238104Sdes 144238104Sdes# _LT_FILEUTILS_DEFAULTS 145238104Sdes# ---------------------- 146238104Sdes# It is okay to use these file commands and assume they have been set 147238104Sdes# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. 148238104Sdesm4_defun([_LT_FILEUTILS_DEFAULTS], 149238104Sdes[: ${CP="cp -f"} 150238104Sdes: ${MV="mv -f"} 151238104Sdes: ${RM="rm -f"} 152238104Sdes])# _LT_FILEUTILS_DEFAULTS 153238104Sdes 154238104Sdes 155238104Sdes# _LT_SETUP 156238104Sdes# --------- 157238104Sdesm4_defun([_LT_SETUP], 158238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 159238104SdesAC_REQUIRE([AC_CANONICAL_BUILD])dnl 160238104SdesAC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 161238104SdesAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 162238104Sdes 163238104Sdes_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 164238104Sdesdnl 165238104Sdes_LT_DECL([], [host_alias], [0], [The host system])dnl 166238104Sdes_LT_DECL([], [host], [0])dnl 167238104Sdes_LT_DECL([], [host_os], [0])dnl 168238104Sdesdnl 169238104Sdes_LT_DECL([], [build_alias], [0], [The build system])dnl 170238104Sdes_LT_DECL([], [build], [0])dnl 171238104Sdes_LT_DECL([], [build_os], [0])dnl 172238104Sdesdnl 173238104SdesAC_REQUIRE([AC_PROG_CC])dnl 174238104SdesAC_REQUIRE([LT_PATH_LD])dnl 175238104SdesAC_REQUIRE([LT_PATH_NM])dnl 176238104Sdesdnl 177238104SdesAC_REQUIRE([AC_PROG_LN_S])dnl 178238104Sdestest -z "$LN_S" && LN_S="ln -s" 179238104Sdes_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 180238104Sdesdnl 181238104SdesAC_REQUIRE([LT_CMD_MAX_LEN])dnl 182238104Sdes_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 183238104Sdes_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 184238104Sdesdnl 185238104Sdesm4_require([_LT_FILEUTILS_DEFAULTS])dnl 186238104Sdesm4_require([_LT_CHECK_SHELL_FEATURES])dnl 187238104Sdesm4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 188238104Sdesm4_require([_LT_CMD_RELOAD])dnl 189238104Sdesm4_require([_LT_CHECK_MAGIC_METHOD])dnl 190238104Sdesm4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 191238104Sdesm4_require([_LT_CMD_OLD_ARCHIVE])dnl 192238104Sdesm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 193238104Sdesm4_require([_LT_WITH_SYSROOT])dnl 194238104Sdes 195238104Sdes_LT_CONFIG_LIBTOOL_INIT([ 196238104Sdes# See if we are running on zsh, and set the options which allow our 197238104Sdes# commands through without removal of \ escapes INIT. 198238104Sdesif test -n "\${ZSH_VERSION+set}" ; then 199238104Sdes setopt NO_GLOB_SUBST 200238104Sdesfi 201238104Sdes]) 202238104Sdesif test -n "${ZSH_VERSION+set}" ; then 203238104Sdes setopt NO_GLOB_SUBST 204238104Sdesfi 205238104Sdes 206238104Sdes_LT_CHECK_OBJDIR 207238104Sdes 208238104Sdesm4_require([_LT_TAG_COMPILER])dnl 209238104Sdes 210238104Sdescase $host_os in 211238104Sdesaix3*) 212238104Sdes # AIX sometimes has problems with the GCC collect2 program. For some 213238104Sdes # reason, if we set the COLLECT_NAMES environment variable, the problems 214238104Sdes # vanish in a puff of smoke. 215238104Sdes if test "X${COLLECT_NAMES+set}" != Xset; then 216238104Sdes COLLECT_NAMES= 217238104Sdes export COLLECT_NAMES 218238104Sdes fi 219238104Sdes ;; 220238104Sdesesac 221238104Sdes 222238104Sdes# Global variables: 223238104Sdesofile=libtool 224238104Sdescan_build_shared=yes 225238104Sdes 226238104Sdes# All known linkers require a `.a' archive for static linking (except MSVC, 227238104Sdes# which needs '.lib'). 228238104Sdeslibext=a 229238104Sdes 230238104Sdeswith_gnu_ld="$lt_cv_prog_gnu_ld" 231238104Sdes 232238104Sdesold_CC="$CC" 233238104Sdesold_CFLAGS="$CFLAGS" 234238104Sdes 235238104Sdes# Set sane defaults for various variables 236238104Sdestest -z "$CC" && CC=cc 237238104Sdestest -z "$LTCC" && LTCC=$CC 238238104Sdestest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 239238104Sdestest -z "$LD" && LD=ld 240238104Sdestest -z "$ac_objext" && ac_objext=o 241238104Sdes 242238104Sdes_LT_CC_BASENAME([$compiler]) 243238104Sdes 244238104Sdes# Only perform the check for file, if the check method requires it 245238104Sdestest -z "$MAGIC_CMD" && MAGIC_CMD=file 246238104Sdescase $deplibs_check_method in 247238104Sdesfile_magic*) 248238104Sdes if test "$file_magic_cmd" = '$MAGIC_CMD'; then 249238104Sdes _LT_PATH_MAGIC 250238104Sdes fi 251238104Sdes ;; 252238104Sdesesac 253238104Sdes 254238104Sdes# Use C for the default configuration in the libtool script 255238104SdesLT_SUPPORTED_TAG([CC]) 256238104Sdes_LT_LANG_C_CONFIG 257238104Sdes_LT_LANG_DEFAULT_CONFIG 258238104Sdes_LT_CONFIG_COMMANDS 259238104Sdes])# _LT_SETUP 260238104Sdes 261238104Sdes 262238104Sdes# _LT_PREPARE_SED_QUOTE_VARS 263238104Sdes# -------------------------- 264238104Sdes# Define a few sed substitution that help us do robust quoting. 265238104Sdesm4_defun([_LT_PREPARE_SED_QUOTE_VARS], 266238104Sdes[# Backslashify metacharacters that are still active within 267238104Sdes# double-quoted strings. 268238104Sdessed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 269238104Sdes 270238104Sdes# Same as above, but do not quote variable references. 271238104Sdesdouble_quote_subst='s/\([["`\\]]\)/\\\1/g' 272238104Sdes 273238104Sdes# Sed substitution to delay expansion of an escaped shell variable in a 274238104Sdes# double_quote_subst'ed string. 275238104Sdesdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 276238104Sdes 277238104Sdes# Sed substitution to delay expansion of an escaped single quote. 278238104Sdesdelay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 279238104Sdes 280238104Sdes# Sed substitution to avoid accidental globbing in evaled expressions 281238104Sdesno_glob_subst='s/\*/\\\*/g' 282238104Sdes]) 283238104Sdes 284238104Sdes# _LT_PROG_LTMAIN 285238104Sdes# --------------- 286238104Sdes# Note that this code is called both from `configure', and `config.status' 287238104Sdes# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 288238104Sdes# `config.status' has no value for ac_aux_dir unless we are using Automake, 289238104Sdes# so we pass a copy along to make sure it has a sensible value anyway. 290238104Sdesm4_defun([_LT_PROG_LTMAIN], 291238104Sdes[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 292238104Sdes_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 293238104Sdesltmain="$ac_aux_dir/ltmain.sh" 294238104Sdes])# _LT_PROG_LTMAIN 295238104Sdes 296238104Sdes 297238104Sdes 298238104Sdes# So that we can recreate a full libtool script including additional 299238104Sdes# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 300238104Sdes# in macros and then make a single call at the end using the `libtool' 301238104Sdes# label. 302238104Sdes 303238104Sdes 304238104Sdes# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 305238104Sdes# ---------------------------------------- 306238104Sdes# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 307238104Sdesm4_define([_LT_CONFIG_LIBTOOL_INIT], 308238104Sdes[m4_ifval([$1], 309238104Sdes [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 310238104Sdes [$1 311238104Sdes])])]) 312238104Sdes 313238104Sdes# Initialize. 314238104Sdesm4_define([_LT_OUTPUT_LIBTOOL_INIT]) 315238104Sdes 316238104Sdes 317238104Sdes# _LT_CONFIG_LIBTOOL([COMMANDS]) 318238104Sdes# ------------------------------ 319238104Sdes# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 320238104Sdesm4_define([_LT_CONFIG_LIBTOOL], 321238104Sdes[m4_ifval([$1], 322238104Sdes [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 323238104Sdes [$1 324238104Sdes])])]) 325238104Sdes 326238104Sdes# Initialize. 327238104Sdesm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 328238104Sdes 329238104Sdes 330238104Sdes# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 331238104Sdes# ----------------------------------------------------- 332238104Sdesm4_defun([_LT_CONFIG_SAVE_COMMANDS], 333238104Sdes[_LT_CONFIG_LIBTOOL([$1]) 334238104Sdes_LT_CONFIG_LIBTOOL_INIT([$2]) 335238104Sdes]) 336238104Sdes 337238104Sdes 338238104Sdes# _LT_FORMAT_COMMENT([COMMENT]) 339238104Sdes# ----------------------------- 340238104Sdes# Add leading comment marks to the start of each line, and a trailing 341238104Sdes# full-stop to the whole comment if one is not present already. 342238104Sdesm4_define([_LT_FORMAT_COMMENT], 343238104Sdes[m4_ifval([$1], [ 344238104Sdesm4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 345238104Sdes [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 346238104Sdes)]) 347238104Sdes 348238104Sdes 349238104Sdes 350238104Sdes 351238104Sdes 352238104Sdes# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 353238104Sdes# ------------------------------------------------------------------- 354238104Sdes# CONFIGNAME is the name given to the value in the libtool script. 355238104Sdes# VARNAME is the (base) name used in the configure script. 356238104Sdes# VALUE may be 0, 1 or 2 for a computed quote escaped value based on 357238104Sdes# VARNAME. Any other value will be used directly. 358238104Sdesm4_define([_LT_DECL], 359238104Sdes[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 360238104Sdes [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 361238104Sdes [m4_ifval([$1], [$1], [$2])]) 362238104Sdes lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 363238104Sdes m4_ifval([$4], 364238104Sdes [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 365238104Sdes lt_dict_add_subkey([lt_decl_dict], [$2], 366238104Sdes [tagged?], [m4_ifval([$5], [yes], [no])])]) 367238104Sdes]) 368238104Sdes 369238104Sdes 370238104Sdes# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 371238104Sdes# -------------------------------------------------------- 372238104Sdesm4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 373238104Sdes 374238104Sdes 375238104Sdes# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 376238104Sdes# ------------------------------------------------ 377238104Sdesm4_define([lt_decl_tag_varnames], 378238104Sdes[_lt_decl_filter([tagged?], [yes], $@)]) 379238104Sdes 380238104Sdes 381238104Sdes# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 382238104Sdes# --------------------------------------------------------- 383238104Sdesm4_define([_lt_decl_filter], 384238104Sdes[m4_case([$#], 385238104Sdes [0], [m4_fatal([$0: too few arguments: $#])], 386238104Sdes [1], [m4_fatal([$0: too few arguments: $#: $1])], 387238104Sdes [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 388238104Sdes [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 389238104Sdes [lt_dict_filter([lt_decl_dict], $@)])[]dnl 390238104Sdes]) 391238104Sdes 392238104Sdes 393238104Sdes# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 394238104Sdes# -------------------------------------------------- 395238104Sdesm4_define([lt_decl_quote_varnames], 396238104Sdes[_lt_decl_filter([value], [1], $@)]) 397238104Sdes 398238104Sdes 399238104Sdes# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 400238104Sdes# --------------------------------------------------- 401238104Sdesm4_define([lt_decl_dquote_varnames], 402238104Sdes[_lt_decl_filter([value], [2], $@)]) 403238104Sdes 404238104Sdes 405238104Sdes# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 406238104Sdes# --------------------------------------------------- 407238104Sdesm4_define([lt_decl_varnames_tagged], 408238104Sdes[m4_assert([$# <= 2])dnl 409238104Sdes_$0(m4_quote(m4_default([$1], [[, ]])), 410238104Sdes m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 411238104Sdes m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 412238104Sdesm4_define([_lt_decl_varnames_tagged], 413238104Sdes[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 414238104Sdes 415238104Sdes 416238104Sdes# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 417238104Sdes# ------------------------------------------------ 418238104Sdesm4_define([lt_decl_all_varnames], 419238104Sdes[_$0(m4_quote(m4_default([$1], [[, ]])), 420238104Sdes m4_if([$2], [], 421238104Sdes m4_quote(lt_decl_varnames), 422238104Sdes m4_quote(m4_shift($@))))[]dnl 423238104Sdes]) 424238104Sdesm4_define([_lt_decl_all_varnames], 425238104Sdes[lt_join($@, lt_decl_varnames_tagged([$1], 426238104Sdes lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 427238104Sdes]) 428238104Sdes 429238104Sdes 430238104Sdes# _LT_CONFIG_STATUS_DECLARE([VARNAME]) 431238104Sdes# ------------------------------------ 432238104Sdes# Quote a variable value, and forward it to `config.status' so that its 433238104Sdes# declaration there will have the same value as in `configure'. VARNAME 434238104Sdes# must have a single quote delimited value for this to work. 435238104Sdesm4_define([_LT_CONFIG_STATUS_DECLARE], 436238104Sdes[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 437238104Sdes 438238104Sdes 439238104Sdes# _LT_CONFIG_STATUS_DECLARATIONS 440238104Sdes# ------------------------------ 441238104Sdes# We delimit libtool config variables with single quotes, so when 442238104Sdes# we write them to config.status, we have to be sure to quote all 443238104Sdes# embedded single quotes properly. In configure, this macro expands 444238104Sdes# each variable declared with _LT_DECL (and _LT_TAGDECL) into: 445238104Sdes# 446238104Sdes# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 447238104Sdesm4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 448238104Sdes[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 449238104Sdes [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 450238104Sdes 451238104Sdes 452238104Sdes# _LT_LIBTOOL_TAGS 453238104Sdes# ---------------- 454238104Sdes# Output comment and list of tags supported by the script 455238104Sdesm4_defun([_LT_LIBTOOL_TAGS], 456238104Sdes[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 457238104Sdesavailable_tags="_LT_TAGS"dnl 458238104Sdes]) 459238104Sdes 460238104Sdes 461238104Sdes# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 462238104Sdes# ----------------------------------- 463238104Sdes# Extract the dictionary values for VARNAME (optionally with TAG) and 464238104Sdes# expand to a commented shell variable setting: 465238104Sdes# 466238104Sdes# # Some comment about what VAR is for. 467238104Sdes# visible_name=$lt_internal_name 468238104Sdesm4_define([_LT_LIBTOOL_DECLARE], 469238104Sdes[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 470238104Sdes [description])))[]dnl 471238104Sdesm4_pushdef([_libtool_name], 472238104Sdes m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 473238104Sdesm4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 474238104Sdes [0], [_libtool_name=[$]$1], 475238104Sdes [1], [_libtool_name=$lt_[]$1], 476238104Sdes [2], [_libtool_name=$lt_[]$1], 477238104Sdes [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 478238104Sdesm4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 479238104Sdes]) 480238104Sdes 481238104Sdes 482238104Sdes# _LT_LIBTOOL_CONFIG_VARS 483238104Sdes# ----------------------- 484238104Sdes# Produce commented declarations of non-tagged libtool config variables 485238104Sdes# suitable for insertion in the LIBTOOL CONFIG section of the `libtool' 486238104Sdes# script. Tagged libtool config variables (even for the LIBTOOL CONFIG 487238104Sdes# section) are produced by _LT_LIBTOOL_TAG_VARS. 488238104Sdesm4_defun([_LT_LIBTOOL_CONFIG_VARS], 489238104Sdes[m4_foreach([_lt_var], 490238104Sdes m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 491238104Sdes [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 492238104Sdes 493238104Sdes 494238104Sdes# _LT_LIBTOOL_TAG_VARS(TAG) 495238104Sdes# ------------------------- 496238104Sdesm4_define([_LT_LIBTOOL_TAG_VARS], 497238104Sdes[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 498238104Sdes [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 499238104Sdes 500238104Sdes 501238104Sdes# _LT_TAGVAR(VARNAME, [TAGNAME]) 502238104Sdes# ------------------------------ 503238104Sdesm4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 504238104Sdes 505238104Sdes 506238104Sdes# _LT_CONFIG_COMMANDS 507238104Sdes# ------------------- 508238104Sdes# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 509238104Sdes# variables for single and double quote escaping we saved from calls 510238104Sdes# to _LT_DECL, we can put quote escaped variables declarations 511238104Sdes# into `config.status', and then the shell code to quote escape them in 512238104Sdes# for loops in `config.status'. Finally, any additional code accumulated 513238104Sdes# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 514238104Sdesm4_defun([_LT_CONFIG_COMMANDS], 515238104Sdes[AC_PROVIDE_IFELSE([LT_OUTPUT], 516238104Sdes dnl If the libtool generation code has been placed in $CONFIG_LT, 517238104Sdes dnl instead of duplicating it all over again into config.status, 518238104Sdes dnl then we will have config.status run $CONFIG_LT later, so it 519238104Sdes dnl needs to know what name is stored there: 520238104Sdes [AC_CONFIG_COMMANDS([libtool], 521238104Sdes [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 522238104Sdes dnl If the libtool generation code is destined for config.status, 523238104Sdes dnl expand the accumulated commands and init code now: 524238104Sdes [AC_CONFIG_COMMANDS([libtool], 525238104Sdes [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 526238104Sdes])#_LT_CONFIG_COMMANDS 527238104Sdes 528238104Sdes 529238104Sdes# Initialize. 530238104Sdesm4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 531238104Sdes[ 532238104Sdes 533238104Sdes# The HP-UX ksh and POSIX shell print the target directory to stdout 534238104Sdes# if CDPATH is set. 535238104Sdes(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 536238104Sdes 537238104Sdessed_quote_subst='$sed_quote_subst' 538238104Sdesdouble_quote_subst='$double_quote_subst' 539238104Sdesdelay_variable_subst='$delay_variable_subst' 540238104Sdes_LT_CONFIG_STATUS_DECLARATIONS 541238104SdesLTCC='$LTCC' 542238104SdesLTCFLAGS='$LTCFLAGS' 543238104Sdescompiler='$compiler_DEFAULT' 544238104Sdes 545238104Sdes# A function that is used when there is no print builtin or printf. 546238104Sdesfunc_fallback_echo () 547238104Sdes{ 548238104Sdes eval 'cat <<_LTECHO_EOF 549238104Sdes\$[]1 550238104Sdes_LTECHO_EOF' 551238104Sdes} 552238104Sdes 553238104Sdes# Quote evaled strings. 554238104Sdesfor var in lt_decl_all_varnames([[ \ 555238104Sdes]], lt_decl_quote_varnames); do 556238104Sdes case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 557238104Sdes *[[\\\\\\\`\\"\\\$]]*) 558238104Sdes eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 559238104Sdes ;; 560238104Sdes *) 561238104Sdes eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 562238104Sdes ;; 563238104Sdes esac 564238104Sdesdone 565238104Sdes 566238104Sdes# Double-quote double-evaled strings. 567238104Sdesfor var in lt_decl_all_varnames([[ \ 568238104Sdes]], lt_decl_dquote_varnames); do 569238104Sdes case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 570238104Sdes *[[\\\\\\\`\\"\\\$]]*) 571238104Sdes eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 572238104Sdes ;; 573238104Sdes *) 574238104Sdes eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 575238104Sdes ;; 576238104Sdes esac 577238104Sdesdone 578238104Sdes 579238104Sdes_LT_OUTPUT_LIBTOOL_INIT 580238104Sdes]) 581238104Sdes 582238104Sdes# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 583238104Sdes# ------------------------------------ 584238104Sdes# Generate a child script FILE with all initialization necessary to 585238104Sdes# reuse the environment learned by the parent script, and make the 586238104Sdes# file executable. If COMMENT is supplied, it is inserted after the 587238104Sdes# `#!' sequence but before initialization text begins. After this 588238104Sdes# macro, additional text can be appended to FILE to form the body of 589238104Sdes# the child script. The macro ends with non-zero status if the 590238104Sdes# file could not be fully written (such as if the disk is full). 591238104Sdesm4_ifdef([AS_INIT_GENERATED], 592238104Sdes[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 593238104Sdes[m4_defun([_LT_GENERATED_FILE_INIT], 594238104Sdes[m4_require([AS_PREPARE])]dnl 595238104Sdes[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 596238104Sdes[lt_write_fail=0 597238104Sdescat >$1 <<_ASEOF || lt_write_fail=1 598238104Sdes#! $SHELL 599238104Sdes# Generated by $as_me. 600238104Sdes$2 601238104SdesSHELL=\${CONFIG_SHELL-$SHELL} 602238104Sdesexport SHELL 603238104Sdes_ASEOF 604238104Sdescat >>$1 <<\_ASEOF || lt_write_fail=1 605238104SdesAS_SHELL_SANITIZE 606238104Sdes_AS_PREPARE 607238104Sdesexec AS_MESSAGE_FD>&1 608238104Sdes_ASEOF 609238104Sdestest $lt_write_fail = 0 && chmod +x $1[]dnl 610238104Sdesm4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 611238104Sdes 612238104Sdes# LT_OUTPUT 613238104Sdes# --------- 614238104Sdes# This macro allows early generation of the libtool script (before 615238104Sdes# AC_OUTPUT is called), incase it is used in configure for compilation 616238104Sdes# tests. 617238104SdesAC_DEFUN([LT_OUTPUT], 618238104Sdes[: ${CONFIG_LT=./config.lt} 619238104SdesAC_MSG_NOTICE([creating $CONFIG_LT]) 620238104Sdes_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 621238104Sdes[# Run this file to recreate a libtool stub with the current configuration.]) 622238104Sdes 623238104Sdescat >>"$CONFIG_LT" <<\_LTEOF 624238104Sdeslt_cl_silent=false 625238104Sdesexec AS_MESSAGE_LOG_FD>>config.log 626238104Sdes{ 627238104Sdes echo 628238104Sdes AS_BOX([Running $as_me.]) 629238104Sdes} >&AS_MESSAGE_LOG_FD 630238104Sdes 631238104Sdeslt_cl_help="\ 632238104Sdes\`$as_me' creates a local libtool stub from the current configuration, 633238104Sdesfor use in further configure time tests before the real libtool is 634238104Sdesgenerated. 635238104Sdes 636238104SdesUsage: $[0] [[OPTIONS]] 637238104Sdes 638238104Sdes -h, --help print this help, then exit 639238104Sdes -V, --version print version number, then exit 640238104Sdes -q, --quiet do not print progress messages 641238104Sdes -d, --debug don't remove temporary files 642238104Sdes 643238104SdesReport bugs to <bug-libtool@gnu.org>." 644238104Sdes 645238104Sdeslt_cl_version="\ 646238104Sdesm4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 647238104Sdesm4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 648238104Sdesconfigured by $[0], generated by m4_PACKAGE_STRING. 649238104Sdes 650238104SdesCopyright (C) 2011 Free Software Foundation, Inc. 651238104SdesThis config.lt script is free software; the Free Software Foundation 652238104Sdesgives unlimited permision to copy, distribute and modify it." 653238104Sdes 654238104Sdeswhile test $[#] != 0 655238104Sdesdo 656238104Sdes case $[1] in 657238104Sdes --version | --v* | -V ) 658238104Sdes echo "$lt_cl_version"; exit 0 ;; 659238104Sdes --help | --h* | -h ) 660238104Sdes echo "$lt_cl_help"; exit 0 ;; 661238104Sdes --debug | --d* | -d ) 662238104Sdes debug=: ;; 663238104Sdes --quiet | --q* | --silent | --s* | -q ) 664238104Sdes lt_cl_silent=: ;; 665238104Sdes 666238104Sdes -*) AC_MSG_ERROR([unrecognized option: $[1] 667238104SdesTry \`$[0] --help' for more information.]) ;; 668238104Sdes 669238104Sdes *) AC_MSG_ERROR([unrecognized argument: $[1] 670238104SdesTry \`$[0] --help' for more information.]) ;; 671238104Sdes esac 672238104Sdes shift 673238104Sdesdone 674238104Sdes 675238104Sdesif $lt_cl_silent; then 676238104Sdes exec AS_MESSAGE_FD>/dev/null 677238104Sdesfi 678238104Sdes_LTEOF 679238104Sdes 680238104Sdescat >>"$CONFIG_LT" <<_LTEOF 681238104Sdes_LT_OUTPUT_LIBTOOL_COMMANDS_INIT 682238104Sdes_LTEOF 683238104Sdes 684238104Sdescat >>"$CONFIG_LT" <<\_LTEOF 685238104SdesAC_MSG_NOTICE([creating $ofile]) 686238104Sdes_LT_OUTPUT_LIBTOOL_COMMANDS 687238104SdesAS_EXIT(0) 688238104Sdes_LTEOF 689238104Sdeschmod +x "$CONFIG_LT" 690238104Sdes 691238104Sdes# configure is writing to config.log, but config.lt does its own redirection, 692238104Sdes# appending to config.log, which fails on DOS, as config.log is still kept 693238104Sdes# open by configure. Here we exec the FD to /dev/null, effectively closing 694238104Sdes# config.log, so it can be properly (re)opened and appended to by config.lt. 695238104Sdeslt_cl_success=: 696238104Sdestest "$silent" = yes && 697238104Sdes lt_config_lt_args="$lt_config_lt_args --quiet" 698238104Sdesexec AS_MESSAGE_LOG_FD>/dev/null 699238104Sdes$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 700238104Sdesexec AS_MESSAGE_LOG_FD>>config.log 701238104Sdes$lt_cl_success || AS_EXIT(1) 702238104Sdes])# LT_OUTPUT 703238104Sdes 704238104Sdes 705238104Sdes# _LT_CONFIG(TAG) 706238104Sdes# --------------- 707238104Sdes# If TAG is the built-in tag, create an initial libtool script with a 708238104Sdes# default configuration from the untagged config vars. Otherwise add code 709238104Sdes# to config.status for appending the configuration named by TAG from the 710238104Sdes# matching tagged config vars. 711238104Sdesm4_defun([_LT_CONFIG], 712238104Sdes[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 713238104Sdes_LT_CONFIG_SAVE_COMMANDS([ 714238104Sdes m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 715238104Sdes m4_if(_LT_TAG, [C], [ 716238104Sdes # See if we are running on zsh, and set the options which allow our 717238104Sdes # commands through without removal of \ escapes. 718238104Sdes if test -n "${ZSH_VERSION+set}" ; then 719238104Sdes setopt NO_GLOB_SUBST 720238104Sdes fi 721238104Sdes 722238104Sdes cfgfile="${ofile}T" 723238104Sdes trap "$RM \"$cfgfile\"; exit 1" 1 2 15 724238104Sdes $RM "$cfgfile" 725238104Sdes 726238104Sdes cat <<_LT_EOF >> "$cfgfile" 727238104Sdes#! $SHELL 728238104Sdes 729238104Sdes# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 730238104Sdes# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 731238104Sdes# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 732238104Sdes# NOTE: Changes made to this file will be lost: look at ltmain.sh. 733238104Sdes# 734238104Sdes_LT_COPYING 735238104Sdes_LT_LIBTOOL_TAGS 736238104Sdes 737238104Sdes# ### BEGIN LIBTOOL CONFIG 738238104Sdes_LT_LIBTOOL_CONFIG_VARS 739238104Sdes_LT_LIBTOOL_TAG_VARS 740238104Sdes# ### END LIBTOOL CONFIG 741238104Sdes 742238104Sdes_LT_EOF 743238104Sdes 744238104Sdes case $host_os in 745238104Sdes aix3*) 746238104Sdes cat <<\_LT_EOF >> "$cfgfile" 747238104Sdes# AIX sometimes has problems with the GCC collect2 program. For some 748238104Sdes# reason, if we set the COLLECT_NAMES environment variable, the problems 749238104Sdes# vanish in a puff of smoke. 750238104Sdesif test "X${COLLECT_NAMES+set}" != Xset; then 751238104Sdes COLLECT_NAMES= 752238104Sdes export COLLECT_NAMES 753238104Sdesfi 754238104Sdes_LT_EOF 755238104Sdes ;; 756238104Sdes esac 757238104Sdes 758238104Sdes _LT_PROG_LTMAIN 759238104Sdes 760238104Sdes # We use sed instead of cat because bash on DJGPP gets confused if 761238104Sdes # if finds mixed CR/LF and LF-only lines. Since sed operates in 762238104Sdes # text mode, it properly converts lines to CR/LF. This bash problem 763238104Sdes # is reportedly fixed, but why not run on old versions too? 764238104Sdes sed '$q' "$ltmain" >> "$cfgfile" \ 765238104Sdes || (rm -f "$cfgfile"; exit 1) 766238104Sdes 767238104Sdes _LT_PROG_REPLACE_SHELLFNS 768238104Sdes 769238104Sdes mv -f "$cfgfile" "$ofile" || 770238104Sdes (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 771238104Sdes chmod +x "$ofile" 772238104Sdes], 773238104Sdes[cat <<_LT_EOF >> "$ofile" 774238104Sdes 775238104Sdesdnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 776238104Sdesdnl in a comment (ie after a #). 777238104Sdes# ### BEGIN LIBTOOL TAG CONFIG: $1 778238104Sdes_LT_LIBTOOL_TAG_VARS(_LT_TAG) 779238104Sdes# ### END LIBTOOL TAG CONFIG: $1 780238104Sdes_LT_EOF 781238104Sdes])dnl /m4_if 782238104Sdes], 783238104Sdes[m4_if([$1], [], [ 784238104Sdes PACKAGE='$PACKAGE' 785238104Sdes VERSION='$VERSION' 786238104Sdes TIMESTAMP='$TIMESTAMP' 787238104Sdes RM='$RM' 788238104Sdes ofile='$ofile'], []) 789238104Sdes])dnl /_LT_CONFIG_SAVE_COMMANDS 790238104Sdes])# _LT_CONFIG 791238104Sdes 792238104Sdes 793238104Sdes# LT_SUPPORTED_TAG(TAG) 794238104Sdes# --------------------- 795238104Sdes# Trace this macro to discover what tags are supported by the libtool 796238104Sdes# --tag option, using: 797238104Sdes# autoconf --trace 'LT_SUPPORTED_TAG:$1' 798238104SdesAC_DEFUN([LT_SUPPORTED_TAG], []) 799238104Sdes 800238104Sdes 801238104Sdes# C support is built-in for now 802238104Sdesm4_define([_LT_LANG_C_enabled], []) 803238104Sdesm4_define([_LT_TAGS], []) 804238104Sdes 805238104Sdes 806238104Sdes# LT_LANG(LANG) 807238104Sdes# ------------- 808238104Sdes# Enable libtool support for the given language if not already enabled. 809238104SdesAC_DEFUN([LT_LANG], 810238104Sdes[AC_BEFORE([$0], [LT_OUTPUT])dnl 811238104Sdesm4_case([$1], 812238104Sdes [C], [_LT_LANG(C)], 813238104Sdes [C++], [_LT_LANG(CXX)], 814238104Sdes [Go], [_LT_LANG(GO)], 815238104Sdes [Java], [_LT_LANG(GCJ)], 816238104Sdes [Fortran 77], [_LT_LANG(F77)], 817238104Sdes [Fortran], [_LT_LANG(FC)], 818238104Sdes [Windows Resource], [_LT_LANG(RC)], 819238104Sdes [m4_ifdef([_LT_LANG_]$1[_CONFIG], 820238104Sdes [_LT_LANG($1)], 821238104Sdes [m4_fatal([$0: unsupported language: "$1"])])])dnl 822238104Sdes])# LT_LANG 823238104Sdes 824238104Sdes 825238104Sdes# _LT_LANG(LANGNAME) 826238104Sdes# ------------------ 827238104Sdesm4_defun([_LT_LANG], 828238104Sdes[m4_ifdef([_LT_LANG_]$1[_enabled], [], 829238104Sdes [LT_SUPPORTED_TAG([$1])dnl 830238104Sdes m4_append([_LT_TAGS], [$1 ])dnl 831238104Sdes m4_define([_LT_LANG_]$1[_enabled], [])dnl 832238104Sdes _LT_LANG_$1_CONFIG($1)])dnl 833238104Sdes])# _LT_LANG 834238104Sdes 835238104Sdes 836238104Sdesm4_ifndef([AC_PROG_GO], [ 837238104Sdes# NOTE: This macro has been submitted for inclusion into # 838238104Sdes# GNU Autoconf as AC_PROG_GO. When it is available in # 839238104Sdes# a released version of Autoconf we should remove this # 840238104Sdes# macro and use it instead. # 841238104Sdesm4_defun([AC_PROG_GO], 842238104Sdes[AC_LANG_PUSH(Go)dnl 843238104SdesAC_ARG_VAR([GOC], [Go compiler command])dnl 844238104SdesAC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 845238104Sdes_AC_ARG_VAR_LDFLAGS()dnl 846238104SdesAC_CHECK_TOOL(GOC, gccgo) 847238104Sdesif test -z "$GOC"; then 848238104Sdes if test -n "$ac_tool_prefix"; then 849238104Sdes AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 850238104Sdes fi 851238104Sdesfi 852238104Sdesif test -z "$GOC"; then 853238104Sdes AC_CHECK_PROG(GOC, gccgo, gccgo, false) 854238104Sdesfi 855238104Sdes])#m4_defun 856238104Sdes])#m4_ifndef 857238104Sdes 858238104Sdes 859238104Sdes# _LT_LANG_DEFAULT_CONFIG 860238104Sdes# ----------------------- 861238104Sdesm4_defun([_LT_LANG_DEFAULT_CONFIG], 862238104Sdes[AC_PROVIDE_IFELSE([AC_PROG_CXX], 863238104Sdes [LT_LANG(CXX)], 864238104Sdes [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 865238104Sdes 866238104SdesAC_PROVIDE_IFELSE([AC_PROG_F77], 867238104Sdes [LT_LANG(F77)], 868238104Sdes [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 869238104Sdes 870238104SdesAC_PROVIDE_IFELSE([AC_PROG_FC], 871238104Sdes [LT_LANG(FC)], 872238104Sdes [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 873238104Sdes 874238104Sdesdnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 875238104Sdesdnl pulling things in needlessly. 876238104SdesAC_PROVIDE_IFELSE([AC_PROG_GCJ], 877238104Sdes [LT_LANG(GCJ)], 878238104Sdes [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 879238104Sdes [LT_LANG(GCJ)], 880238104Sdes [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 881238104Sdes [LT_LANG(GCJ)], 882238104Sdes [m4_ifdef([AC_PROG_GCJ], 883238104Sdes [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 884238104Sdes m4_ifdef([A][M_PROG_GCJ], 885238104Sdes [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 886238104Sdes m4_ifdef([LT_PROG_GCJ], 887238104Sdes [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 888238104Sdes 889238104SdesAC_PROVIDE_IFELSE([AC_PROG_GO], 890238104Sdes [LT_LANG(GO)], 891238104Sdes [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 892238104Sdes 893238104SdesAC_PROVIDE_IFELSE([LT_PROG_RC], 894238104Sdes [LT_LANG(RC)], 895238104Sdes [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 896238104Sdes])# _LT_LANG_DEFAULT_CONFIG 897238104Sdes 898238104Sdes# Obsolete macros: 899238104SdesAU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 900238104SdesAU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 901238104SdesAU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 902238104SdesAU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 903238104SdesAU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 904238104Sdesdnl aclocal-1.4 backwards compatibility: 905238104Sdesdnl AC_DEFUN([AC_LIBTOOL_CXX], []) 906238104Sdesdnl AC_DEFUN([AC_LIBTOOL_F77], []) 907238104Sdesdnl AC_DEFUN([AC_LIBTOOL_FC], []) 908238104Sdesdnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 909238104Sdesdnl AC_DEFUN([AC_LIBTOOL_RC], []) 910238104Sdes 911238104Sdes 912238104Sdes# _LT_TAG_COMPILER 913238104Sdes# ---------------- 914238104Sdesm4_defun([_LT_TAG_COMPILER], 915238104Sdes[AC_REQUIRE([AC_PROG_CC])dnl 916238104Sdes 917238104Sdes_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 918238104Sdes_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 919238104Sdes_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 920238104Sdes_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 921238104Sdes 922238104Sdes# If no C compiler was specified, use CC. 923238104SdesLTCC=${LTCC-"$CC"} 924238104Sdes 925238104Sdes# If no C compiler flags were specified, use CFLAGS. 926238104SdesLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 927238104Sdes 928238104Sdes# Allow CC to be a program name with arguments. 929238104Sdescompiler=$CC 930238104Sdes])# _LT_TAG_COMPILER 931238104Sdes 932238104Sdes 933238104Sdes# _LT_COMPILER_BOILERPLATE 934238104Sdes# ------------------------ 935238104Sdes# Check for compiler boilerplate output or warnings with 936238104Sdes# the simple compiler test code. 937238104Sdesm4_defun([_LT_COMPILER_BOILERPLATE], 938238104Sdes[m4_require([_LT_DECL_SED])dnl 939238104Sdesac_outfile=conftest.$ac_objext 940238104Sdesecho "$lt_simple_compile_test_code" >conftest.$ac_ext 941238104Sdeseval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 942238104Sdes_lt_compiler_boilerplate=`cat conftest.err` 943238104Sdes$RM conftest* 944238104Sdes])# _LT_COMPILER_BOILERPLATE 945238104Sdes 946238104Sdes 947238104Sdes# _LT_LINKER_BOILERPLATE 948238104Sdes# ---------------------- 949238104Sdes# Check for linker boilerplate output or warnings with 950238104Sdes# the simple link test code. 951238104Sdesm4_defun([_LT_LINKER_BOILERPLATE], 952238104Sdes[m4_require([_LT_DECL_SED])dnl 953238104Sdesac_outfile=conftest.$ac_objext 954238104Sdesecho "$lt_simple_link_test_code" >conftest.$ac_ext 955238104Sdeseval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 956238104Sdes_lt_linker_boilerplate=`cat conftest.err` 957238104Sdes$RM -r conftest* 958238104Sdes])# _LT_LINKER_BOILERPLATE 959238104Sdes 960238104Sdes# _LT_REQUIRED_DARWIN_CHECKS 961238104Sdes# ------------------------- 962238104Sdesm4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 963238104Sdes case $host_os in 964238104Sdes rhapsody* | darwin*) 965238104Sdes AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 966238104Sdes AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 967238104Sdes AC_CHECK_TOOL([LIPO], [lipo], [:]) 968238104Sdes AC_CHECK_TOOL([OTOOL], [otool], [:]) 969238104Sdes AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 970238104Sdes _LT_DECL([], [DSYMUTIL], [1], 971238104Sdes [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 972238104Sdes _LT_DECL([], [NMEDIT], [1], 973238104Sdes [Tool to change global to local symbols on Mac OS X]) 974238104Sdes _LT_DECL([], [LIPO], [1], 975238104Sdes [Tool to manipulate fat objects and archives on Mac OS X]) 976238104Sdes _LT_DECL([], [OTOOL], [1], 977238104Sdes [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 978238104Sdes _LT_DECL([], [OTOOL64], [1], 979238104Sdes [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 980238104Sdes 981238104Sdes AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 982238104Sdes [lt_cv_apple_cc_single_mod=no 983238104Sdes if test -z "${LT_MULTI_MODULE}"; then 984238104Sdes # By default we will add the -single_module flag. You can override 985238104Sdes # by either setting the environment variable LT_MULTI_MODULE 986238104Sdes # non-empty at configure time, or by adding -multi_module to the 987238104Sdes # link flags. 988238104Sdes rm -rf libconftest.dylib* 989238104Sdes echo "int foo(void){return 1;}" > conftest.c 990238104Sdes echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 991238104Sdes-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 992238104Sdes $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 993238104Sdes -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 994238104Sdes _lt_result=$? 995238104Sdes # If there is a non-empty error log, and "single_module" 996238104Sdes # appears in it, assume the flag caused a linker warning 997238104Sdes if test -s conftest.err && $GREP single_module conftest.err; then 998238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 999238104Sdes # Otherwise, if the output was created with a 0 exit code from 1000238104Sdes # the compiler, it worked. 1001238104Sdes elif test -f libconftest.dylib && test $_lt_result -eq 0; then 1002238104Sdes lt_cv_apple_cc_single_mod=yes 1003238104Sdes else 1004238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 1005238104Sdes fi 1006238104Sdes rm -rf libconftest.dylib* 1007238104Sdes rm -f conftest.* 1008238104Sdes fi]) 1009238104Sdes 1010238104Sdes AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1011238104Sdes [lt_cv_ld_exported_symbols_list], 1012238104Sdes [lt_cv_ld_exported_symbols_list=no 1013238104Sdes save_LDFLAGS=$LDFLAGS 1014238104Sdes echo "_main" > conftest.sym 1015238104Sdes LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1016238104Sdes AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1017238104Sdes [lt_cv_ld_exported_symbols_list=yes], 1018238104Sdes [lt_cv_ld_exported_symbols_list=no]) 1019238104Sdes LDFLAGS="$save_LDFLAGS" 1020238104Sdes ]) 1021238104Sdes 1022238104Sdes AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1023238104Sdes [lt_cv_ld_force_load=no 1024238104Sdes cat > conftest.c << _LT_EOF 1025238104Sdesint forced_loaded() { return 2;} 1026238104Sdes_LT_EOF 1027238104Sdes echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1028238104Sdes $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1029238104Sdes echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1030238104Sdes $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1031238104Sdes echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1032238104Sdes $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1033238104Sdes cat > conftest.c << _LT_EOF 1034238104Sdesint main() { return 0;} 1035238104Sdes_LT_EOF 1036238104Sdes echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1037238104Sdes $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1038238104Sdes _lt_result=$? 1039238104Sdes if test -s conftest.err && $GREP force_load conftest.err; then 1040238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 1041238104Sdes elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 1042238104Sdes lt_cv_ld_force_load=yes 1043238104Sdes else 1044238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 1045238104Sdes fi 1046238104Sdes rm -f conftest.err libconftest.a conftest conftest.c 1047238104Sdes rm -rf conftest.dSYM 1048238104Sdes ]) 1049238104Sdes case $host_os in 1050238104Sdes rhapsody* | darwin1.[[012]]) 1051238104Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 1052238104Sdes darwin1.*) 1053238104Sdes _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1054238104Sdes darwin*) # darwin 5.x on 1055238104Sdes # if running on 10.5 or later, the deployment target defaults 1056238104Sdes # to the OS version, if on x86, and 10.4, the deployment 1057238104Sdes # target defaults to 10.4. Don't you love it? 1058238104Sdes case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 1059238104Sdes 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 1060238104Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1061238104Sdes 10.[[012]]*) 1062238104Sdes _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 1063238104Sdes 10.*) 1064238104Sdes _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 1065238104Sdes esac 1066238104Sdes ;; 1067238104Sdes esac 1068238104Sdes if test "$lt_cv_apple_cc_single_mod" = "yes"; then 1069238104Sdes _lt_dar_single_mod='$single_module' 1070238104Sdes fi 1071238104Sdes if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 1072238104Sdes _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 1073238104Sdes else 1074238104Sdes _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 1075238104Sdes fi 1076238104Sdes if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 1077238104Sdes _lt_dsymutil='~$DSYMUTIL $lib || :' 1078238104Sdes else 1079238104Sdes _lt_dsymutil= 1080238104Sdes fi 1081238104Sdes ;; 1082238104Sdes esac 1083238104Sdes]) 1084238104Sdes 1085238104Sdes 1086238104Sdes# _LT_DARWIN_LINKER_FEATURES([TAG]) 1087238104Sdes# --------------------------------- 1088238104Sdes# Checks for linker and compiler features on darwin 1089238104Sdesm4_defun([_LT_DARWIN_LINKER_FEATURES], 1090238104Sdes[ 1091238104Sdes m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1092238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1093238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 1094238104Sdes _LT_TAGVAR(hardcode_automatic, $1)=yes 1095238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1096238104Sdes if test "$lt_cv_ld_force_load" = "yes"; then 1097238104Sdes _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\"`' 1098238104Sdes m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1099238104Sdes [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1100238104Sdes else 1101238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1102238104Sdes fi 1103238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 1104238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 1105238104Sdes case $cc_basename in 1106238104Sdes ifort*) _lt_dar_can_shared=yes ;; 1107238104Sdes *) _lt_dar_can_shared=$GCC ;; 1108238104Sdes esac 1109238104Sdes if test "$_lt_dar_can_shared" = "yes"; then 1110238104Sdes output_verbose_link_cmd=func_echo_all 1111238104Sdes _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}" 1112238104Sdes _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 1113238104Sdes _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}" 1114238104Sdes _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}" 1115238104Sdes m4_if([$1], [CXX], 1116238104Sdes[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then 1117238104Sdes _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}" 1118238104Sdes _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}" 1119238104Sdes fi 1120238104Sdes],[]) 1121238104Sdes else 1122238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 1123238104Sdes fi 1124238104Sdes]) 1125238104Sdes 1126238104Sdes# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1127238104Sdes# ---------------------------------- 1128238104Sdes# Links a minimal program and checks the executable 1129238104Sdes# for the system default hardcoded library path. In most cases, 1130238104Sdes# this is /usr/lib:/lib, but when the MPI compilers are used 1131238104Sdes# the location of the communication and MPI libs are included too. 1132238104Sdes# If we don't find anything, use the default library path according 1133238104Sdes# to the aix ld manual. 1134238104Sdes# Store the results from the different compilers for each TAGNAME. 1135238104Sdes# Allow to override them for all tags through lt_cv_aix_libpath. 1136238104Sdesm4_defun([_LT_SYS_MODULE_PATH_AIX], 1137238104Sdes[m4_require([_LT_DECL_SED])dnl 1138238104Sdesif test "${lt_cv_aix_libpath+set}" = set; then 1139238104Sdes aix_libpath=$lt_cv_aix_libpath 1140238104Sdeselse 1141238104Sdes AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1142238104Sdes [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1143238104Sdes lt_aix_libpath_sed='[ 1144238104Sdes /Import File Strings/,/^$/ { 1145238104Sdes /^0/ { 1146238104Sdes s/^0 *\([^ ]*\) *$/\1/ 1147238104Sdes p 1148238104Sdes } 1149238104Sdes }]' 1150238104Sdes _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1151238104Sdes # Check for a 64-bit object if we didn't find anything. 1152238104Sdes if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1153238104Sdes _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1154238104Sdes fi],[]) 1155238104Sdes if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1156238104Sdes _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" 1157238104Sdes fi 1158238104Sdes ]) 1159238104Sdes aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1160238104Sdesfi 1161238104Sdes])# _LT_SYS_MODULE_PATH_AIX 1162238104Sdes 1163238104Sdes 1164238104Sdes# _LT_SHELL_INIT(ARG) 1165238104Sdes# ------------------- 1166238104Sdesm4_define([_LT_SHELL_INIT], 1167238104Sdes[m4_divert_text([M4SH-INIT], [$1 1168238104Sdes])])# _LT_SHELL_INIT 1169238104Sdes 1170238104Sdes 1171238104Sdes 1172238104Sdes# _LT_PROG_ECHO_BACKSLASH 1173238104Sdes# ----------------------- 1174238104Sdes# Find how we can fake an echo command that does not interpret backslash. 1175238104Sdes# In particular, with Autoconf 2.60 or later we add some code to the start 1176238104Sdes# of the generated configure script which will find a shell with a builtin 1177238104Sdes# printf (which we can use as an echo command). 1178238104Sdesm4_defun([_LT_PROG_ECHO_BACKSLASH], 1179238104Sdes[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1180238104SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1181238104SdesECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1182238104Sdes 1183238104SdesAC_MSG_CHECKING([how to print strings]) 1184238104Sdes# Test print first, because it will be a builtin if present. 1185238104Sdesif test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1186238104Sdes test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1187238104Sdes ECHO='print -r --' 1188238104Sdeselif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1189238104Sdes ECHO='printf %s\n' 1190238104Sdeselse 1191238104Sdes # Use this function as a fallback that always works. 1192238104Sdes func_fallback_echo () 1193238104Sdes { 1194238104Sdes eval 'cat <<_LTECHO_EOF 1195238104Sdes$[]1 1196238104Sdes_LTECHO_EOF' 1197238104Sdes } 1198238104Sdes ECHO='func_fallback_echo' 1199238104Sdesfi 1200238104Sdes 1201238104Sdes# func_echo_all arg... 1202238104Sdes# Invoke $ECHO with all args, space-separated. 1203238104Sdesfunc_echo_all () 1204238104Sdes{ 1205238104Sdes $ECHO "$*" 1206238104Sdes} 1207238104Sdes 1208238104Sdescase "$ECHO" in 1209238104Sdes printf*) AC_MSG_RESULT([printf]) ;; 1210238104Sdes print*) AC_MSG_RESULT([print -r]) ;; 1211238104Sdes *) AC_MSG_RESULT([cat]) ;; 1212238104Sdesesac 1213238104Sdes 1214238104Sdesm4_ifdef([_AS_DETECT_SUGGESTED], 1215238104Sdes[_AS_DETECT_SUGGESTED([ 1216238104Sdes test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1217238104Sdes ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1218238104Sdes ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1219238104Sdes ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1220238104Sdes PATH=/empty FPATH=/empty; export PATH FPATH 1221238104Sdes test "X`printf %s $ECHO`" = "X$ECHO" \ 1222238104Sdes || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1223238104Sdes 1224238104Sdes_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1225238104Sdes_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1226238104Sdes])# _LT_PROG_ECHO_BACKSLASH 1227238104Sdes 1228238104Sdes 1229238104Sdes# _LT_WITH_SYSROOT 1230238104Sdes# ---------------- 1231238104SdesAC_DEFUN([_LT_WITH_SYSROOT], 1232238104Sdes[AC_MSG_CHECKING([for sysroot]) 1233238104SdesAC_ARG_WITH([sysroot], 1234238104Sdes[ --with-sysroot[=DIR] Search for dependent libraries within DIR 1235238104Sdes (or the compiler's sysroot if not specified).], 1236238104Sdes[], [with_sysroot=no]) 1237238104Sdes 1238238104Sdesdnl lt_sysroot will always be passed unquoted. We quote it here 1239238104Sdesdnl in case the user passed a directory name. 1240238104Sdeslt_sysroot= 1241238104Sdescase ${with_sysroot} in #( 1242238104Sdes yes) 1243238104Sdes if test "$GCC" = yes; then 1244238104Sdes lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1245238104Sdes fi 1246238104Sdes ;; #( 1247238104Sdes /*) 1248238104Sdes lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 1249238104Sdes ;; #( 1250238104Sdes no|'') 1251238104Sdes ;; #( 1252238104Sdes *) 1253238104Sdes AC_MSG_RESULT([${with_sysroot}]) 1254238104Sdes AC_MSG_ERROR([The sysroot must be an absolute path.]) 1255238104Sdes ;; 1256238104Sdesesac 1257238104Sdes 1258238104Sdes AC_MSG_RESULT([${lt_sysroot:-no}]) 1259238104Sdes_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1260238104Sdes[dependent libraries, and in which our libraries should be installed.])]) 1261238104Sdes 1262238104Sdes# _LT_ENABLE_LOCK 1263238104Sdes# --------------- 1264238104Sdesm4_defun([_LT_ENABLE_LOCK], 1265238104Sdes[AC_ARG_ENABLE([libtool-lock], 1266238104Sdes [AS_HELP_STRING([--disable-libtool-lock], 1267238104Sdes [avoid locking (might break parallel builds)])]) 1268238104Sdestest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 1269238104Sdes 1270238104Sdes# Some flags need to be propagated to the compiler or linker for good 1271238104Sdes# libtool support. 1272238104Sdescase $host in 1273238104Sdesia64-*-hpux*) 1274238104Sdes # Find out which ABI we are using. 1275238104Sdes echo 'int i;' > conftest.$ac_ext 1276238104Sdes if AC_TRY_EVAL(ac_compile); then 1277238104Sdes case `/usr/bin/file conftest.$ac_objext` in 1278238104Sdes *ELF-32*) 1279238104Sdes HPUX_IA64_MODE="32" 1280238104Sdes ;; 1281238104Sdes *ELF-64*) 1282238104Sdes HPUX_IA64_MODE="64" 1283238104Sdes ;; 1284238104Sdes esac 1285238104Sdes fi 1286238104Sdes rm -rf conftest* 1287238104Sdes ;; 1288238104Sdes*-*-irix6*) 1289238104Sdes # Find out which ABI we are using. 1290238104Sdes echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1291238104Sdes if AC_TRY_EVAL(ac_compile); then 1292238104Sdes if test "$lt_cv_prog_gnu_ld" = yes; then 1293238104Sdes case `/usr/bin/file conftest.$ac_objext` in 1294238104Sdes *32-bit*) 1295238104Sdes LD="${LD-ld} -melf32bsmip" 1296238104Sdes ;; 1297238104Sdes *N32*) 1298238104Sdes LD="${LD-ld} -melf32bmipn32" 1299238104Sdes ;; 1300238104Sdes *64-bit*) 1301238104Sdes LD="${LD-ld} -melf64bmip" 1302238104Sdes ;; 1303238104Sdes esac 1304238104Sdes else 1305238104Sdes case `/usr/bin/file conftest.$ac_objext` in 1306238104Sdes *32-bit*) 1307238104Sdes LD="${LD-ld} -32" 1308238104Sdes ;; 1309238104Sdes *N32*) 1310238104Sdes LD="${LD-ld} -n32" 1311238104Sdes ;; 1312238104Sdes *64-bit*) 1313238104Sdes LD="${LD-ld} -64" 1314238104Sdes ;; 1315238104Sdes esac 1316238104Sdes fi 1317238104Sdes fi 1318238104Sdes rm -rf conftest* 1319238104Sdes ;; 1320238104Sdes 1321238104Sdesx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 1322238104Sdess390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1323238104Sdes # Find out which ABI we are using. 1324238104Sdes echo 'int i;' > conftest.$ac_ext 1325238104Sdes if AC_TRY_EVAL(ac_compile); then 1326238104Sdes case `/usr/bin/file conftest.o` in 1327238104Sdes *32-bit*) 1328238104Sdes case $host in 1329238104Sdes x86_64-*kfreebsd*-gnu) 1330238104Sdes LD="${LD-ld} -m elf_i386_fbsd" 1331238104Sdes ;; 1332238104Sdes x86_64-*linux*) 1333238104Sdes LD="${LD-ld} -m elf_i386" 1334238104Sdes ;; 1335238104Sdes ppc64-*linux*|powerpc64-*linux*) 1336238104Sdes LD="${LD-ld} -m elf32ppclinux" 1337238104Sdes ;; 1338238104Sdes s390x-*linux*) 1339238104Sdes LD="${LD-ld} -m elf_s390" 1340238104Sdes ;; 1341238104Sdes sparc64-*linux*) 1342238104Sdes LD="${LD-ld} -m elf32_sparc" 1343238104Sdes ;; 1344238104Sdes esac 1345238104Sdes ;; 1346238104Sdes *64-bit*) 1347238104Sdes case $host in 1348238104Sdes x86_64-*kfreebsd*-gnu) 1349238104Sdes LD="${LD-ld} -m elf_x86_64_fbsd" 1350238104Sdes ;; 1351238104Sdes x86_64-*linux*) 1352238104Sdes LD="${LD-ld} -m elf_x86_64" 1353238104Sdes ;; 1354238104Sdes ppc*-*linux*|powerpc*-*linux*) 1355238104Sdes LD="${LD-ld} -m elf64ppc" 1356238104Sdes ;; 1357238104Sdes s390*-*linux*|s390*-*tpf*) 1358238104Sdes LD="${LD-ld} -m elf64_s390" 1359238104Sdes ;; 1360238104Sdes sparc*-*linux*) 1361238104Sdes LD="${LD-ld} -m elf64_sparc" 1362238104Sdes ;; 1363238104Sdes esac 1364238104Sdes ;; 1365238104Sdes esac 1366238104Sdes fi 1367238104Sdes rm -rf conftest* 1368238104Sdes ;; 1369238104Sdes 1370238104Sdes*-*-sco3.2v5*) 1371238104Sdes # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1372238104Sdes SAVE_CFLAGS="$CFLAGS" 1373238104Sdes CFLAGS="$CFLAGS -belf" 1374238104Sdes AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1375238104Sdes [AC_LANG_PUSH(C) 1376238104Sdes AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1377238104Sdes AC_LANG_POP]) 1378238104Sdes if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1379238104Sdes # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1380238104Sdes CFLAGS="$SAVE_CFLAGS" 1381238104Sdes fi 1382238104Sdes ;; 1383238104Sdes*-*solaris*) 1384238104Sdes # Find out which ABI we are using. 1385238104Sdes echo 'int i;' > conftest.$ac_ext 1386238104Sdes if AC_TRY_EVAL(ac_compile); then 1387238104Sdes case `/usr/bin/file conftest.o` in 1388238104Sdes *64-bit*) 1389238104Sdes case $lt_cv_prog_gnu_ld in 1390238104Sdes yes*) 1391238104Sdes case $host in 1392238104Sdes i?86-*-solaris*) 1393238104Sdes LD="${LD-ld} -m elf_x86_64" 1394238104Sdes ;; 1395238104Sdes sparc*-*-solaris*) 1396238104Sdes LD="${LD-ld} -m elf64_sparc" 1397238104Sdes ;; 1398238104Sdes esac 1399238104Sdes # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1400238104Sdes if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 1401238104Sdes LD="${LD-ld}_sol2" 1402238104Sdes fi 1403238104Sdes ;; 1404238104Sdes *) 1405238104Sdes if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1406238104Sdes LD="${LD-ld} -64" 1407238104Sdes fi 1408238104Sdes ;; 1409238104Sdes esac 1410238104Sdes ;; 1411238104Sdes esac 1412238104Sdes fi 1413238104Sdes rm -rf conftest* 1414238104Sdes ;; 1415238104Sdesesac 1416238104Sdes 1417238104Sdesneed_locks="$enable_libtool_lock" 1418238104Sdes])# _LT_ENABLE_LOCK 1419238104Sdes 1420238104Sdes 1421238104Sdes# _LT_PROG_AR 1422238104Sdes# ----------- 1423238104Sdesm4_defun([_LT_PROG_AR], 1424238104Sdes[AC_CHECK_TOOLS(AR, [ar], false) 1425238104Sdes: ${AR=ar} 1426238104Sdes: ${AR_FLAGS=cru} 1427238104Sdes_LT_DECL([], [AR], [1], [The archiver]) 1428238104Sdes_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) 1429238104Sdes 1430238104SdesAC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1431238104Sdes [lt_cv_ar_at_file=no 1432238104Sdes AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1433238104Sdes [echo conftest.$ac_objext > conftest.lst 1434238104Sdes lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1435238104Sdes AC_TRY_EVAL([lt_ar_try]) 1436238104Sdes if test "$ac_status" -eq 0; then 1437238104Sdes # Ensure the archiver fails upon bogus file names. 1438238104Sdes rm -f conftest.$ac_objext libconftest.a 1439238104Sdes AC_TRY_EVAL([lt_ar_try]) 1440238104Sdes if test "$ac_status" -ne 0; then 1441238104Sdes lt_cv_ar_at_file=@ 1442238104Sdes fi 1443238104Sdes fi 1444238104Sdes rm -f conftest.* libconftest.a 1445238104Sdes ]) 1446238104Sdes ]) 1447238104Sdes 1448238104Sdesif test "x$lt_cv_ar_at_file" = xno; then 1449238104Sdes archiver_list_spec= 1450238104Sdeselse 1451238104Sdes archiver_list_spec=$lt_cv_ar_at_file 1452238104Sdesfi 1453238104Sdes_LT_DECL([], [archiver_list_spec], [1], 1454238104Sdes [How to feed a file listing to the archiver]) 1455238104Sdes])# _LT_PROG_AR 1456238104Sdes 1457238104Sdes 1458238104Sdes# _LT_CMD_OLD_ARCHIVE 1459238104Sdes# ------------------- 1460238104Sdesm4_defun([_LT_CMD_OLD_ARCHIVE], 1461238104Sdes[_LT_PROG_AR 1462238104Sdes 1463238104SdesAC_CHECK_TOOL(STRIP, strip, :) 1464238104Sdestest -z "$STRIP" && STRIP=: 1465238104Sdes_LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1466238104Sdes 1467238104SdesAC_CHECK_TOOL(RANLIB, ranlib, :) 1468238104Sdestest -z "$RANLIB" && RANLIB=: 1469238104Sdes_LT_DECL([], [RANLIB], [1], 1470238104Sdes [Commands used to install an old-style archive]) 1471238104Sdes 1472238104Sdes# Determine commands to create old-style static archives. 1473238104Sdesold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1474238104Sdesold_postinstall_cmds='chmod 644 $oldlib' 1475238104Sdesold_postuninstall_cmds= 1476238104Sdes 1477238104Sdesif test -n "$RANLIB"; then 1478238104Sdes case $host_os in 1479238104Sdes openbsd*) 1480238104Sdes old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1481238104Sdes ;; 1482238104Sdes *) 1483238104Sdes old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1484238104Sdes ;; 1485238104Sdes esac 1486238104Sdes old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1487238104Sdesfi 1488238104Sdes 1489238104Sdescase $host_os in 1490238104Sdes darwin*) 1491238104Sdes lock_old_archive_extraction=yes ;; 1492238104Sdes *) 1493238104Sdes lock_old_archive_extraction=no ;; 1494238104Sdesesac 1495238104Sdes_LT_DECL([], [old_postinstall_cmds], [2]) 1496238104Sdes_LT_DECL([], [old_postuninstall_cmds], [2]) 1497238104Sdes_LT_TAGDECL([], [old_archive_cmds], [2], 1498238104Sdes [Commands used to build an old-style archive]) 1499238104Sdes_LT_DECL([], [lock_old_archive_extraction], [0], 1500238104Sdes [Whether to use a lock for old archive extraction]) 1501238104Sdes])# _LT_CMD_OLD_ARCHIVE 1502238104Sdes 1503238104Sdes 1504238104Sdes# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1505238104Sdes# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1506238104Sdes# ---------------------------------------------------------------- 1507238104Sdes# Check whether the given compiler option works 1508238104SdesAC_DEFUN([_LT_COMPILER_OPTION], 1509238104Sdes[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1510238104Sdesm4_require([_LT_DECL_SED])dnl 1511238104SdesAC_CACHE_CHECK([$1], [$2], 1512238104Sdes [$2=no 1513238104Sdes m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1514238104Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1515238104Sdes lt_compiler_flag="$3" 1516238104Sdes # Insert the option either (1) after the last *FLAGS variable, or 1517238104Sdes # (2) before a word containing "conftest.", or (3) at the end. 1518238104Sdes # Note that $ac_compile itself does not contain backslashes and begins 1519238104Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 1520238104Sdes # The option is referenced via a variable to avoid confusing sed. 1521238104Sdes lt_compile=`echo "$ac_compile" | $SED \ 1522238104Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1523238104Sdes -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1524238104Sdes -e 's:$: $lt_compiler_flag:'` 1525238104Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1526238104Sdes (eval "$lt_compile" 2>conftest.err) 1527238104Sdes ac_status=$? 1528238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 1529238104Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1530238104Sdes if (exit $ac_status) && test -s "$ac_outfile"; then 1531238104Sdes # The compiler can only warn and ignore the option if not recognized 1532238104Sdes # So say no if there are warnings other than the usual output. 1533238104Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1534238104Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1535238104Sdes if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1536238104Sdes $2=yes 1537238104Sdes fi 1538238104Sdes fi 1539238104Sdes $RM conftest* 1540238104Sdes]) 1541238104Sdes 1542238104Sdesif test x"[$]$2" = xyes; then 1543238104Sdes m4_if([$5], , :, [$5]) 1544238104Sdeselse 1545238104Sdes m4_if([$6], , :, [$6]) 1546238104Sdesfi 1547238104Sdes])# _LT_COMPILER_OPTION 1548238104Sdes 1549238104Sdes# Old name: 1550238104SdesAU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1551238104Sdesdnl aclocal-1.4 backwards compatibility: 1552238104Sdesdnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1553238104Sdes 1554238104Sdes 1555238104Sdes# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1556238104Sdes# [ACTION-SUCCESS], [ACTION-FAILURE]) 1557238104Sdes# ---------------------------------------------------- 1558238104Sdes# Check whether the given linker option works 1559238104SdesAC_DEFUN([_LT_LINKER_OPTION], 1560238104Sdes[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1561238104Sdesm4_require([_LT_DECL_SED])dnl 1562238104SdesAC_CACHE_CHECK([$1], [$2], 1563238104Sdes [$2=no 1564238104Sdes save_LDFLAGS="$LDFLAGS" 1565238104Sdes LDFLAGS="$LDFLAGS $3" 1566238104Sdes echo "$lt_simple_link_test_code" > conftest.$ac_ext 1567238104Sdes if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1568238104Sdes # The linker can only warn and ignore the option if not recognized 1569238104Sdes # So say no if there are warnings 1570238104Sdes if test -s conftest.err; then 1571238104Sdes # Append any errors to the config.log. 1572238104Sdes cat conftest.err 1>&AS_MESSAGE_LOG_FD 1573238104Sdes $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1574238104Sdes $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1575238104Sdes if diff conftest.exp conftest.er2 >/dev/null; then 1576238104Sdes $2=yes 1577238104Sdes fi 1578238104Sdes else 1579238104Sdes $2=yes 1580238104Sdes fi 1581238104Sdes fi 1582238104Sdes $RM -r conftest* 1583238104Sdes LDFLAGS="$save_LDFLAGS" 1584238104Sdes]) 1585238104Sdes 1586238104Sdesif test x"[$]$2" = xyes; then 1587238104Sdes m4_if([$4], , :, [$4]) 1588238104Sdeselse 1589238104Sdes m4_if([$5], , :, [$5]) 1590238104Sdesfi 1591238104Sdes])# _LT_LINKER_OPTION 1592238104Sdes 1593238104Sdes# Old name: 1594238104SdesAU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1595238104Sdesdnl aclocal-1.4 backwards compatibility: 1596238104Sdesdnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1597238104Sdes 1598238104Sdes 1599238104Sdes# LT_CMD_MAX_LEN 1600238104Sdes#--------------- 1601238104SdesAC_DEFUN([LT_CMD_MAX_LEN], 1602238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 1603238104Sdes# find the maximum length of command line arguments 1604238104SdesAC_MSG_CHECKING([the maximum length of command line arguments]) 1605238104SdesAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1606238104Sdes i=0 1607238104Sdes teststring="ABCD" 1608238104Sdes 1609238104Sdes case $build_os in 1610238104Sdes msdosdjgpp*) 1611238104Sdes # On DJGPP, this test can blow up pretty badly due to problems in libc 1612238104Sdes # (any single argument exceeding 2000 bytes causes a buffer overrun 1613238104Sdes # during glob expansion). Even if it were fixed, the result of this 1614238104Sdes # check would be larger than it should be. 1615238104Sdes lt_cv_sys_max_cmd_len=12288; # 12K is about right 1616238104Sdes ;; 1617238104Sdes 1618238104Sdes gnu*) 1619238104Sdes # Under GNU Hurd, this test is not required because there is 1620238104Sdes # no limit to the length of command line arguments. 1621238104Sdes # Libtool will interpret -1 as no limit whatsoever 1622238104Sdes lt_cv_sys_max_cmd_len=-1; 1623238104Sdes ;; 1624238104Sdes 1625238104Sdes cygwin* | mingw* | cegcc*) 1626238104Sdes # On Win9x/ME, this test blows up -- it succeeds, but takes 1627238104Sdes # about 5 minutes as the teststring grows exponentially. 1628238104Sdes # Worse, since 9x/ME are not pre-emptively multitasking, 1629238104Sdes # you end up with a "frozen" computer, even though with patience 1630238104Sdes # the test eventually succeeds (with a max line length of 256k). 1631238104Sdes # Instead, let's just punt: use the minimum linelength reported by 1632238104Sdes # all of the supported platforms: 8192 (on NT/2K/XP). 1633238104Sdes lt_cv_sys_max_cmd_len=8192; 1634238104Sdes ;; 1635238104Sdes 1636238104Sdes mint*) 1637238104Sdes # On MiNT this can take a long time and run out of memory. 1638238104Sdes lt_cv_sys_max_cmd_len=8192; 1639238104Sdes ;; 1640238104Sdes 1641238104Sdes amigaos*) 1642238104Sdes # On AmigaOS with pdksh, this test takes hours, literally. 1643238104Sdes # So we just punt and use a minimum line length of 8192. 1644238104Sdes lt_cv_sys_max_cmd_len=8192; 1645238104Sdes ;; 1646238104Sdes 1647238104Sdes netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 1648238104Sdes # This has been around since 386BSD, at least. Likely further. 1649238104Sdes if test -x /sbin/sysctl; then 1650238104Sdes lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1651238104Sdes elif test -x /usr/sbin/sysctl; then 1652238104Sdes lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1653238104Sdes else 1654238104Sdes lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1655238104Sdes fi 1656238104Sdes # And add a safety zone 1657238104Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1658238104Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1659238104Sdes ;; 1660238104Sdes 1661238104Sdes interix*) 1662238104Sdes # We know the value 262144 and hardcode it with a safety zone (like BSD) 1663238104Sdes lt_cv_sys_max_cmd_len=196608 1664238104Sdes ;; 1665238104Sdes 1666238104Sdes os2*) 1667238104Sdes # The test takes a long time on OS/2. 1668238104Sdes lt_cv_sys_max_cmd_len=8192 1669238104Sdes ;; 1670238104Sdes 1671238104Sdes osf*) 1672238104Sdes # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1673238104Sdes # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1674238104Sdes # nice to cause kernel panics so lets avoid the loop below. 1675238104Sdes # First set a reasonable default. 1676238104Sdes lt_cv_sys_max_cmd_len=16384 1677238104Sdes # 1678238104Sdes if test -x /sbin/sysconfig; then 1679238104Sdes case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1680238104Sdes *1*) lt_cv_sys_max_cmd_len=-1 ;; 1681238104Sdes esac 1682238104Sdes fi 1683238104Sdes ;; 1684238104Sdes sco3.2v5*) 1685238104Sdes lt_cv_sys_max_cmd_len=102400 1686238104Sdes ;; 1687238104Sdes sysv5* | sco5v6* | sysv4.2uw2*) 1688238104Sdes kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1689238104Sdes if test -n "$kargmax"; then 1690238104Sdes lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 1691238104Sdes else 1692238104Sdes lt_cv_sys_max_cmd_len=32768 1693238104Sdes fi 1694238104Sdes ;; 1695238104Sdes *) 1696238104Sdes lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1697238104Sdes if test -n "$lt_cv_sys_max_cmd_len"; then 1698238104Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1699238104Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1700238104Sdes else 1701238104Sdes # Make teststring a little bigger before we do anything with it. 1702238104Sdes # a 1K string should be a reasonable start. 1703238104Sdes for i in 1 2 3 4 5 6 7 8 ; do 1704238104Sdes teststring=$teststring$teststring 1705238104Sdes done 1706238104Sdes SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1707238104Sdes # If test is not a shell built-in, we'll probably end up computing a 1708238104Sdes # maximum length that is only half of the actual maximum length, but 1709238104Sdes # we can't tell. 1710238104Sdes while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 1711238104Sdes = "X$teststring$teststring"; } >/dev/null 2>&1 && 1712238104Sdes test $i != 17 # 1/2 MB should be enough 1713238104Sdes do 1714238104Sdes i=`expr $i + 1` 1715238104Sdes teststring=$teststring$teststring 1716238104Sdes done 1717238104Sdes # Only check the string length outside the loop. 1718238104Sdes lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1719238104Sdes teststring= 1720238104Sdes # Add a significant safety factor because C++ compilers can tack on 1721238104Sdes # massive amounts of additional arguments before passing them to the 1722238104Sdes # linker. It appears as though 1/2 is a usable value. 1723238104Sdes lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1724238104Sdes fi 1725238104Sdes ;; 1726238104Sdes esac 1727238104Sdes]) 1728238104Sdesif test -n $lt_cv_sys_max_cmd_len ; then 1729238104Sdes AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1730238104Sdeselse 1731238104Sdes AC_MSG_RESULT(none) 1732238104Sdesfi 1733238104Sdesmax_cmd_len=$lt_cv_sys_max_cmd_len 1734238104Sdes_LT_DECL([], [max_cmd_len], [0], 1735238104Sdes [What is the maximum length of a command?]) 1736238104Sdes])# LT_CMD_MAX_LEN 1737238104Sdes 1738238104Sdes# Old name: 1739238104SdesAU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1740238104Sdesdnl aclocal-1.4 backwards compatibility: 1741238104Sdesdnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1742238104Sdes 1743238104Sdes 1744238104Sdes# _LT_HEADER_DLFCN 1745238104Sdes# ---------------- 1746238104Sdesm4_defun([_LT_HEADER_DLFCN], 1747238104Sdes[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1748238104Sdes])# _LT_HEADER_DLFCN 1749238104Sdes 1750238104Sdes 1751238104Sdes# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1752238104Sdes# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1753238104Sdes# ---------------------------------------------------------------- 1754238104Sdesm4_defun([_LT_TRY_DLOPEN_SELF], 1755238104Sdes[m4_require([_LT_HEADER_DLFCN])dnl 1756238104Sdesif test "$cross_compiling" = yes; then : 1757238104Sdes [$4] 1758238104Sdeselse 1759238104Sdes lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1760238104Sdes lt_status=$lt_dlunknown 1761238104Sdes cat > conftest.$ac_ext <<_LT_EOF 1762238104Sdes[#line $LINENO "configure" 1763238104Sdes#include "confdefs.h" 1764238104Sdes 1765238104Sdes#if HAVE_DLFCN_H 1766238104Sdes#include <dlfcn.h> 1767238104Sdes#endif 1768238104Sdes 1769238104Sdes#include <stdio.h> 1770238104Sdes 1771238104Sdes#ifdef RTLD_GLOBAL 1772238104Sdes# define LT_DLGLOBAL RTLD_GLOBAL 1773238104Sdes#else 1774238104Sdes# ifdef DL_GLOBAL 1775238104Sdes# define LT_DLGLOBAL DL_GLOBAL 1776238104Sdes# else 1777238104Sdes# define LT_DLGLOBAL 0 1778238104Sdes# endif 1779238104Sdes#endif 1780238104Sdes 1781238104Sdes/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1782238104Sdes find out it does not work in some platform. */ 1783238104Sdes#ifndef LT_DLLAZY_OR_NOW 1784238104Sdes# ifdef RTLD_LAZY 1785238104Sdes# define LT_DLLAZY_OR_NOW RTLD_LAZY 1786238104Sdes# else 1787238104Sdes# ifdef DL_LAZY 1788238104Sdes# define LT_DLLAZY_OR_NOW DL_LAZY 1789238104Sdes# else 1790238104Sdes# ifdef RTLD_NOW 1791238104Sdes# define LT_DLLAZY_OR_NOW RTLD_NOW 1792238104Sdes# else 1793238104Sdes# ifdef DL_NOW 1794238104Sdes# define LT_DLLAZY_OR_NOW DL_NOW 1795238104Sdes# else 1796238104Sdes# define LT_DLLAZY_OR_NOW 0 1797238104Sdes# endif 1798238104Sdes# endif 1799238104Sdes# endif 1800238104Sdes# endif 1801238104Sdes#endif 1802238104Sdes 1803238104Sdes/* When -fvisbility=hidden is used, assume the code has been annotated 1804238104Sdes correspondingly for the symbols needed. */ 1805238104Sdes#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1806238104Sdesint fnord () __attribute__((visibility("default"))); 1807238104Sdes#endif 1808238104Sdes 1809238104Sdesint fnord () { return 42; } 1810238104Sdesint main () 1811238104Sdes{ 1812238104Sdes void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1813238104Sdes int status = $lt_dlunknown; 1814238104Sdes 1815238104Sdes if (self) 1816238104Sdes { 1817238104Sdes if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1818238104Sdes else 1819238104Sdes { 1820238104Sdes if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1821238104Sdes else puts (dlerror ()); 1822238104Sdes } 1823238104Sdes /* dlclose (self); */ 1824238104Sdes } 1825238104Sdes else 1826238104Sdes puts (dlerror ()); 1827238104Sdes 1828238104Sdes return status; 1829238104Sdes}] 1830238104Sdes_LT_EOF 1831238104Sdes if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1832238104Sdes (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1833238104Sdes lt_status=$? 1834238104Sdes case x$lt_status in 1835238104Sdes x$lt_dlno_uscore) $1 ;; 1836238104Sdes x$lt_dlneed_uscore) $2 ;; 1837238104Sdes x$lt_dlunknown|x*) $3 ;; 1838238104Sdes esac 1839238104Sdes else : 1840238104Sdes # compilation failed 1841238104Sdes $3 1842238104Sdes fi 1843238104Sdesfi 1844238104Sdesrm -fr conftest* 1845238104Sdes])# _LT_TRY_DLOPEN_SELF 1846238104Sdes 1847238104Sdes 1848238104Sdes# LT_SYS_DLOPEN_SELF 1849238104Sdes# ------------------ 1850238104SdesAC_DEFUN([LT_SYS_DLOPEN_SELF], 1851238104Sdes[m4_require([_LT_HEADER_DLFCN])dnl 1852238104Sdesif test "x$enable_dlopen" != xyes; then 1853238104Sdes enable_dlopen=unknown 1854238104Sdes enable_dlopen_self=unknown 1855238104Sdes enable_dlopen_self_static=unknown 1856238104Sdeselse 1857238104Sdes lt_cv_dlopen=no 1858238104Sdes lt_cv_dlopen_libs= 1859238104Sdes 1860238104Sdes case $host_os in 1861238104Sdes beos*) 1862238104Sdes lt_cv_dlopen="load_add_on" 1863238104Sdes lt_cv_dlopen_libs= 1864238104Sdes lt_cv_dlopen_self=yes 1865238104Sdes ;; 1866238104Sdes 1867238104Sdes mingw* | pw32* | cegcc*) 1868238104Sdes lt_cv_dlopen="LoadLibrary" 1869238104Sdes lt_cv_dlopen_libs= 1870238104Sdes ;; 1871238104Sdes 1872238104Sdes cygwin*) 1873238104Sdes lt_cv_dlopen="dlopen" 1874238104Sdes lt_cv_dlopen_libs= 1875238104Sdes ;; 1876238104Sdes 1877238104Sdes darwin*) 1878238104Sdes # if libdl is installed we need to link against it 1879238104Sdes AC_CHECK_LIB([dl], [dlopen], 1880238104Sdes [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1881238104Sdes lt_cv_dlopen="dyld" 1882238104Sdes lt_cv_dlopen_libs= 1883238104Sdes lt_cv_dlopen_self=yes 1884238104Sdes ]) 1885238104Sdes ;; 1886238104Sdes 1887238104Sdes *) 1888238104Sdes AC_CHECK_FUNC([shl_load], 1889238104Sdes [lt_cv_dlopen="shl_load"], 1890238104Sdes [AC_CHECK_LIB([dld], [shl_load], 1891238104Sdes [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 1892238104Sdes [AC_CHECK_FUNC([dlopen], 1893238104Sdes [lt_cv_dlopen="dlopen"], 1894238104Sdes [AC_CHECK_LIB([dl], [dlopen], 1895238104Sdes [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1896238104Sdes [AC_CHECK_LIB([svld], [dlopen], 1897238104Sdes [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1898238104Sdes [AC_CHECK_LIB([dld], [dld_link], 1899238104Sdes [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 1900238104Sdes ]) 1901238104Sdes ]) 1902238104Sdes ]) 1903238104Sdes ]) 1904238104Sdes ]) 1905238104Sdes ;; 1906238104Sdes esac 1907238104Sdes 1908238104Sdes if test "x$lt_cv_dlopen" != xno; then 1909238104Sdes enable_dlopen=yes 1910238104Sdes else 1911238104Sdes enable_dlopen=no 1912238104Sdes fi 1913238104Sdes 1914238104Sdes case $lt_cv_dlopen in 1915238104Sdes dlopen) 1916238104Sdes save_CPPFLAGS="$CPPFLAGS" 1917238104Sdes test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1918238104Sdes 1919238104Sdes save_LDFLAGS="$LDFLAGS" 1920238104Sdes wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1921238104Sdes 1922238104Sdes save_LIBS="$LIBS" 1923238104Sdes LIBS="$lt_cv_dlopen_libs $LIBS" 1924238104Sdes 1925238104Sdes AC_CACHE_CHECK([whether a program can dlopen itself], 1926238104Sdes lt_cv_dlopen_self, [dnl 1927238104Sdes _LT_TRY_DLOPEN_SELF( 1928238104Sdes lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1929238104Sdes lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1930238104Sdes ]) 1931238104Sdes 1932238104Sdes if test "x$lt_cv_dlopen_self" = xyes; then 1933238104Sdes wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1934238104Sdes AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1935238104Sdes lt_cv_dlopen_self_static, [dnl 1936238104Sdes _LT_TRY_DLOPEN_SELF( 1937238104Sdes lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1938238104Sdes lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1939238104Sdes ]) 1940238104Sdes fi 1941238104Sdes 1942238104Sdes CPPFLAGS="$save_CPPFLAGS" 1943238104Sdes LDFLAGS="$save_LDFLAGS" 1944238104Sdes LIBS="$save_LIBS" 1945238104Sdes ;; 1946238104Sdes esac 1947238104Sdes 1948238104Sdes case $lt_cv_dlopen_self in 1949238104Sdes yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1950238104Sdes *) enable_dlopen_self=unknown ;; 1951238104Sdes esac 1952238104Sdes 1953238104Sdes case $lt_cv_dlopen_self_static in 1954238104Sdes yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1955238104Sdes *) enable_dlopen_self_static=unknown ;; 1956238104Sdes esac 1957238104Sdesfi 1958238104Sdes_LT_DECL([dlopen_support], [enable_dlopen], [0], 1959238104Sdes [Whether dlopen is supported]) 1960238104Sdes_LT_DECL([dlopen_self], [enable_dlopen_self], [0], 1961238104Sdes [Whether dlopen of programs is supported]) 1962238104Sdes_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 1963238104Sdes [Whether dlopen of statically linked programs is supported]) 1964238104Sdes])# LT_SYS_DLOPEN_SELF 1965238104Sdes 1966238104Sdes# Old name: 1967238104SdesAU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 1968238104Sdesdnl aclocal-1.4 backwards compatibility: 1969238104Sdesdnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 1970238104Sdes 1971238104Sdes 1972238104Sdes# _LT_COMPILER_C_O([TAGNAME]) 1973238104Sdes# --------------------------- 1974238104Sdes# Check to see if options -c and -o are simultaneously supported by compiler. 1975238104Sdes# This macro does not hard code the compiler like AC_PROG_CC_C_O. 1976238104Sdesm4_defun([_LT_COMPILER_C_O], 1977238104Sdes[m4_require([_LT_DECL_SED])dnl 1978238104Sdesm4_require([_LT_FILEUTILS_DEFAULTS])dnl 1979238104Sdesm4_require([_LT_TAG_COMPILER])dnl 1980238104SdesAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1981238104Sdes [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1982238104Sdes [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1983238104Sdes $RM -r conftest 2>/dev/null 1984238104Sdes mkdir conftest 1985238104Sdes cd conftest 1986238104Sdes mkdir out 1987238104Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1988238104Sdes 1989238104Sdes lt_compiler_flag="-o out/conftest2.$ac_objext" 1990238104Sdes # Insert the option either (1) after the last *FLAGS variable, or 1991238104Sdes # (2) before a word containing "conftest.", or (3) at the end. 1992238104Sdes # Note that $ac_compile itself does not contain backslashes and begins 1993238104Sdes # with a dollar sign (not a hyphen), so the echo should work correctly. 1994238104Sdes lt_compile=`echo "$ac_compile" | $SED \ 1995238104Sdes -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1996238104Sdes -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1997238104Sdes -e 's:$: $lt_compiler_flag:'` 1998238104Sdes (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1999238104Sdes (eval "$lt_compile" 2>out/conftest.err) 2000238104Sdes ac_status=$? 2001238104Sdes cat out/conftest.err >&AS_MESSAGE_LOG_FD 2002238104Sdes echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2003238104Sdes if (exit $ac_status) && test -s out/conftest2.$ac_objext 2004238104Sdes then 2005238104Sdes # The compiler can only warn and ignore the option if not recognized 2006238104Sdes # So say no if there are warnings 2007238104Sdes $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 2008238104Sdes $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2009238104Sdes if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2010238104Sdes _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2011238104Sdes fi 2012238104Sdes fi 2013238104Sdes chmod u+w . 2>&AS_MESSAGE_LOG_FD 2014238104Sdes $RM conftest* 2015238104Sdes # SGI C++ compiler will create directory out/ii_files/ for 2016238104Sdes # template instantiation 2017238104Sdes test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2018238104Sdes $RM out/* && rmdir out 2019238104Sdes cd .. 2020238104Sdes $RM -r conftest 2021238104Sdes $RM conftest* 2022238104Sdes]) 2023238104Sdes_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2024238104Sdes [Does compiler simultaneously support -c and -o options?]) 2025238104Sdes])# _LT_COMPILER_C_O 2026238104Sdes 2027238104Sdes 2028238104Sdes# _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2029238104Sdes# ---------------------------------- 2030238104Sdes# Check to see if we can do hard links to lock some files if needed 2031238104Sdesm4_defun([_LT_COMPILER_FILE_LOCKS], 2032238104Sdes[m4_require([_LT_ENABLE_LOCK])dnl 2033238104Sdesm4_require([_LT_FILEUTILS_DEFAULTS])dnl 2034238104Sdes_LT_COMPILER_C_O([$1]) 2035238104Sdes 2036238104Sdeshard_links="nottested" 2037238104Sdesif test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 2038238104Sdes # do not overwrite the value of need_locks provided by the user 2039238104Sdes AC_MSG_CHECKING([if we can lock with hard links]) 2040238104Sdes hard_links=yes 2041238104Sdes $RM conftest* 2042238104Sdes ln conftest.a conftest.b 2>/dev/null && hard_links=no 2043238104Sdes touch conftest.a 2044238104Sdes ln conftest.a conftest.b 2>&5 || hard_links=no 2045238104Sdes ln conftest.a conftest.b 2>/dev/null && hard_links=no 2046238104Sdes AC_MSG_RESULT([$hard_links]) 2047238104Sdes if test "$hard_links" = no; then 2048238104Sdes AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 2049238104Sdes need_locks=warn 2050238104Sdes fi 2051238104Sdeselse 2052238104Sdes need_locks=no 2053238104Sdesfi 2054238104Sdes_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2055238104Sdes])# _LT_COMPILER_FILE_LOCKS 2056238104Sdes 2057238104Sdes 2058238104Sdes# _LT_CHECK_OBJDIR 2059238104Sdes# ---------------- 2060238104Sdesm4_defun([_LT_CHECK_OBJDIR], 2061238104Sdes[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2062238104Sdes[rm -f .libs 2>/dev/null 2063238104Sdesmkdir .libs 2>/dev/null 2064238104Sdesif test -d .libs; then 2065238104Sdes lt_cv_objdir=.libs 2066238104Sdeselse 2067238104Sdes # MS-DOS does not allow filenames that begin with a dot. 2068238104Sdes lt_cv_objdir=_libs 2069238104Sdesfi 2070238104Sdesrmdir .libs 2>/dev/null]) 2071238104Sdesobjdir=$lt_cv_objdir 2072238104Sdes_LT_DECL([], [objdir], [0], 2073238104Sdes [The name of the directory that contains temporary libtool files])dnl 2074238104Sdesm4_pattern_allow([LT_OBJDIR])dnl 2075238104SdesAC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", 2076238104Sdes [Define to the sub-directory in which libtool stores uninstalled libraries.]) 2077238104Sdes])# _LT_CHECK_OBJDIR 2078238104Sdes 2079238104Sdes 2080238104Sdes# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2081238104Sdes# -------------------------------------- 2082238104Sdes# Check hardcoding attributes. 2083238104Sdesm4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2084238104Sdes[AC_MSG_CHECKING([how to hardcode library paths into programs]) 2085238104Sdes_LT_TAGVAR(hardcode_action, $1)= 2086238104Sdesif test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2087238104Sdes test -n "$_LT_TAGVAR(runpath_var, $1)" || 2088238104Sdes test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 2089238104Sdes 2090238104Sdes # We can hardcode non-existent directories. 2091238104Sdes if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && 2092238104Sdes # If the only mechanism to avoid hardcoding is shlibpath_var, we 2093238104Sdes # have to relink, otherwise we might link with an installed library 2094238104Sdes # when we should be linking with a yet-to-be-installed one 2095238104Sdes ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && 2096238104Sdes test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then 2097238104Sdes # Linking always hardcodes the temporary library directory. 2098238104Sdes _LT_TAGVAR(hardcode_action, $1)=relink 2099238104Sdes else 2100238104Sdes # We can link without hardcoding, and we can hardcode nonexisting dirs. 2101238104Sdes _LT_TAGVAR(hardcode_action, $1)=immediate 2102238104Sdes fi 2103238104Sdeselse 2104238104Sdes # We cannot hardcode anything, or else we can only hardcode existing 2105238104Sdes # directories. 2106238104Sdes _LT_TAGVAR(hardcode_action, $1)=unsupported 2107238104Sdesfi 2108238104SdesAC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2109238104Sdes 2110238104Sdesif test "$_LT_TAGVAR(hardcode_action, $1)" = relink || 2111238104Sdes test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then 2112238104Sdes # Fast installation is not supported 2113238104Sdes enable_fast_install=no 2114238104Sdeselif test "$shlibpath_overrides_runpath" = yes || 2115238104Sdes test "$enable_shared" = no; then 2116238104Sdes # Fast installation is not necessary 2117238104Sdes enable_fast_install=needless 2118238104Sdesfi 2119238104Sdes_LT_TAGDECL([], [hardcode_action], [0], 2120238104Sdes [How to hardcode a shared library path into an executable]) 2121238104Sdes])# _LT_LINKER_HARDCODE_LIBPATH 2122238104Sdes 2123238104Sdes 2124238104Sdes# _LT_CMD_STRIPLIB 2125238104Sdes# ---------------- 2126238104Sdesm4_defun([_LT_CMD_STRIPLIB], 2127238104Sdes[m4_require([_LT_DECL_EGREP]) 2128238104Sdesstriplib= 2129238104Sdesold_striplib= 2130238104SdesAC_MSG_CHECKING([whether stripping libraries is possible]) 2131238104Sdesif test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2132238104Sdes test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 2133238104Sdes test -z "$striplib" && striplib="$STRIP --strip-unneeded" 2134238104Sdes AC_MSG_RESULT([yes]) 2135238104Sdeselse 2136238104Sdes# FIXME - insert some real tests, host_os isn't really good enough 2137238104Sdes case $host_os in 2138238104Sdes darwin*) 2139238104Sdes if test -n "$STRIP" ; then 2140238104Sdes striplib="$STRIP -x" 2141238104Sdes old_striplib="$STRIP -S" 2142238104Sdes AC_MSG_RESULT([yes]) 2143238104Sdes else 2144238104Sdes AC_MSG_RESULT([no]) 2145238104Sdes fi 2146238104Sdes ;; 2147238104Sdes *) 2148238104Sdes AC_MSG_RESULT([no]) 2149238104Sdes ;; 2150238104Sdes esac 2151238104Sdesfi 2152238104Sdes_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2153238104Sdes_LT_DECL([], [striplib], [1]) 2154238104Sdes])# _LT_CMD_STRIPLIB 2155238104Sdes 2156238104Sdes 2157238104Sdes# _LT_SYS_DYNAMIC_LINKER([TAG]) 2158238104Sdes# ----------------------------- 2159238104Sdes# PORTME Fill in your ld.so characteristics 2160238104Sdesm4_defun([_LT_SYS_DYNAMIC_LINKER], 2161238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2162238104Sdesm4_require([_LT_DECL_EGREP])dnl 2163238104Sdesm4_require([_LT_FILEUTILS_DEFAULTS])dnl 2164238104Sdesm4_require([_LT_DECL_OBJDUMP])dnl 2165238104Sdesm4_require([_LT_DECL_SED])dnl 2166238104Sdesm4_require([_LT_CHECK_SHELL_FEATURES])dnl 2167238104SdesAC_MSG_CHECKING([dynamic linker characteristics]) 2168238104Sdesm4_if([$1], 2169238104Sdes [], [ 2170238104Sdesif test "$GCC" = yes; then 2171238104Sdes case $host_os in 2172238104Sdes darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 2173238104Sdes *) lt_awk_arg="/^libraries:/" ;; 2174238104Sdes esac 2175238104Sdes case $host_os in 2176238104Sdes mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; 2177238104Sdes *) lt_sed_strip_eq="s,=/,/,g" ;; 2178238104Sdes esac 2179238104Sdes lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2180238104Sdes case $lt_search_path_spec in 2181238104Sdes *\;*) 2182238104Sdes # if the path contains ";" then we assume it to be the separator 2183238104Sdes # otherwise default to the standard path separator (i.e. ":") - it is 2184238104Sdes # assumed that no part of a normal pathname contains ";" but that should 2185238104Sdes # okay in the real world where ";" in dirpaths is itself problematic. 2186238104Sdes lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2187238104Sdes ;; 2188238104Sdes *) 2189238104Sdes lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2190238104Sdes ;; 2191238104Sdes esac 2192238104Sdes # Ok, now we have the path, separated by spaces, we can step through it 2193238104Sdes # and add multilib dir if necessary. 2194238104Sdes lt_tmp_lt_search_path_spec= 2195238104Sdes lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2196238104Sdes for lt_sys_path in $lt_search_path_spec; do 2197238104Sdes if test -d "$lt_sys_path/$lt_multi_os_dir"; then 2198238104Sdes lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 2199238104Sdes else 2200238104Sdes test -d "$lt_sys_path" && \ 2201238104Sdes lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2202238104Sdes fi 2203238104Sdes done 2204238104Sdes lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2205238104SdesBEGIN {RS=" "; FS="/|\n";} { 2206238104Sdes lt_foo=""; 2207238104Sdes lt_count=0; 2208238104Sdes for (lt_i = NF; lt_i > 0; lt_i--) { 2209238104Sdes if ($lt_i != "" && $lt_i != ".") { 2210238104Sdes if ($lt_i == "..") { 2211238104Sdes lt_count++; 2212238104Sdes } else { 2213238104Sdes if (lt_count == 0) { 2214238104Sdes lt_foo="/" $lt_i lt_foo; 2215238104Sdes } else { 2216238104Sdes lt_count--; 2217238104Sdes } 2218238104Sdes } 2219238104Sdes } 2220238104Sdes } 2221238104Sdes if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2222238104Sdes if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2223238104Sdes}'` 2224238104Sdes # AWK program above erroneously prepends '/' to C:/dos/paths 2225238104Sdes # for these hosts. 2226238104Sdes case $host_os in 2227238104Sdes mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2228238104Sdes $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; 2229238104Sdes esac 2230238104Sdes sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2231238104Sdeselse 2232238104Sdes sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2233238104Sdesfi]) 2234238104Sdeslibrary_names_spec= 2235238104Sdeslibname_spec='lib$name' 2236238104Sdessoname_spec= 2237238104Sdesshrext_cmds=".so" 2238238104Sdespostinstall_cmds= 2239238104Sdespostuninstall_cmds= 2240238104Sdesfinish_cmds= 2241238104Sdesfinish_eval= 2242238104Sdesshlibpath_var= 2243238104Sdesshlibpath_overrides_runpath=unknown 2244238104Sdesversion_type=none 2245238104Sdesdynamic_linker="$host_os ld.so" 2246238104Sdessys_lib_dlsearch_path_spec="/lib /usr/lib" 2247238104Sdesneed_lib_prefix=unknown 2248238104Sdeshardcode_into_libs=no 2249238104Sdes 2250238104Sdes# when you set need_version to no, make sure it does not cause -set_version 2251238104Sdes# flags to be left without arguments 2252238104Sdesneed_version=unknown 2253238104Sdes 2254238104Sdescase $host_os in 2255238104Sdesaix3*) 2256238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2257238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 2258238104Sdes shlibpath_var=LIBPATH 2259238104Sdes 2260238104Sdes # AIX 3 has no versioning support, so we append a major version to the name. 2261238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2262238104Sdes ;; 2263238104Sdes 2264238104Sdesaix[[4-9]]*) 2265238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2266238104Sdes need_lib_prefix=no 2267238104Sdes need_version=no 2268238104Sdes hardcode_into_libs=yes 2269238104Sdes if test "$host_cpu" = ia64; then 2270238104Sdes # AIX 5 supports IA64 2271238104Sdes library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 2272238104Sdes shlibpath_var=LD_LIBRARY_PATH 2273238104Sdes else 2274238104Sdes # With GCC up to 2.95.x, collect2 would create an import file 2275238104Sdes # for dependence libraries. The import file would start with 2276238104Sdes # the line `#! .'. This would cause the generated library to 2277238104Sdes # depend on `.', always an invalid library. This was fixed in 2278238104Sdes # development snapshots of GCC prior to 3.0. 2279238104Sdes case $host_os in 2280238104Sdes aix4 | aix4.[[01]] | aix4.[[01]].*) 2281238104Sdes if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2282238104Sdes echo ' yes ' 2283238104Sdes echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 2284238104Sdes : 2285238104Sdes else 2286238104Sdes can_build_shared=no 2287238104Sdes fi 2288238104Sdes ;; 2289238104Sdes esac 2290238104Sdes # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 2291238104Sdes # soname into executable. Probably we can add versioning support to 2292238104Sdes # collect2, so additional links can be useful in future. 2293238104Sdes if test "$aix_use_runtimelinking" = yes; then 2294238104Sdes # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2295238104Sdes # instead of lib<name>.a to let people know that these are not 2296238104Sdes # typical AIX shared libraries. 2297238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2298238104Sdes else 2299238104Sdes # We preserve .a as extension for shared libraries through AIX4.2 2300238104Sdes # and later when we are not doing run time linking. 2301238104Sdes library_names_spec='${libname}${release}.a $libname.a' 2302238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2303238104Sdes fi 2304238104Sdes shlibpath_var=LIBPATH 2305238104Sdes fi 2306238104Sdes ;; 2307238104Sdes 2308238104Sdesamigaos*) 2309238104Sdes case $host_cpu in 2310238104Sdes powerpc) 2311238104Sdes # Since July 2007 AmigaOS4 officially supports .so libraries. 2312238104Sdes # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2313238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2314238104Sdes ;; 2315238104Sdes m68k) 2316238104Sdes library_names_spec='$libname.ixlibrary $libname.a' 2317238104Sdes # Create ${libname}_ixlibrary.a entries in /sys/libs. 2318238104Sdes finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 2319238104Sdes ;; 2320238104Sdes esac 2321238104Sdes ;; 2322238104Sdes 2323238104Sdesbeos*) 2324238104Sdes library_names_spec='${libname}${shared_ext}' 2325238104Sdes dynamic_linker="$host_os ld.so" 2326238104Sdes shlibpath_var=LIBRARY_PATH 2327238104Sdes ;; 2328238104Sdes 2329238104Sdesbsdi[[45]]*) 2330238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2331238104Sdes need_version=no 2332238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2333238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2334238104Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2335238104Sdes shlibpath_var=LD_LIBRARY_PATH 2336238104Sdes sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2337238104Sdes sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2338238104Sdes # the default ld.so.conf also contains /usr/contrib/lib and 2339238104Sdes # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2340238104Sdes # libtool to hard-code these into programs 2341238104Sdes ;; 2342238104Sdes 2343238104Sdescygwin* | mingw* | pw32* | cegcc*) 2344238104Sdes version_type=windows 2345238104Sdes shrext_cmds=".dll" 2346238104Sdes need_version=no 2347238104Sdes need_lib_prefix=no 2348238104Sdes 2349238104Sdes case $GCC,$cc_basename in 2350238104Sdes yes,*) 2351238104Sdes # gcc 2352238104Sdes library_names_spec='$libname.dll.a' 2353238104Sdes # DLL is installed to $(libdir)/../bin by postinstall_cmds 2354238104Sdes postinstall_cmds='base_file=`basename \${file}`~ 2355238104Sdes dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2356238104Sdes dldir=$destdir/`dirname \$dlpath`~ 2357238104Sdes test -d \$dldir || mkdir -p \$dldir~ 2358238104Sdes $install_prog $dir/$dlname \$dldir/$dlname~ 2359238104Sdes chmod a+x \$dldir/$dlname~ 2360238104Sdes if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2361238104Sdes eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2362238104Sdes fi' 2363238104Sdes postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2364238104Sdes dlpath=$dir/\$dldll~ 2365238104Sdes $RM \$dlpath' 2366238104Sdes shlibpath_overrides_runpath=yes 2367238104Sdes 2368238104Sdes case $host_os in 2369238104Sdes cygwin*) 2370238104Sdes # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2371238104Sdes soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2372238104Sdesm4_if([$1], [],[ 2373238104Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2374238104Sdes ;; 2375238104Sdes mingw* | cegcc*) 2376238104Sdes # MinGW DLLs use traditional 'lib' prefix 2377238104Sdes soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2378238104Sdes ;; 2379238104Sdes pw32*) 2380238104Sdes # pw32 DLLs use 'pw' prefix rather than 'lib' 2381238104Sdes library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2382238104Sdes ;; 2383238104Sdes esac 2384238104Sdes dynamic_linker='Win32 ld.exe' 2385238104Sdes ;; 2386238104Sdes 2387238104Sdes *,cl*) 2388238104Sdes # Native MSVC 2389238104Sdes libname_spec='$name' 2390238104Sdes soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 2391238104Sdes library_names_spec='${libname}.dll.lib' 2392238104Sdes 2393238104Sdes case $build_os in 2394238104Sdes mingw*) 2395238104Sdes sys_lib_search_path_spec= 2396238104Sdes lt_save_ifs=$IFS 2397238104Sdes IFS=';' 2398238104Sdes for lt_path in $LIB 2399238104Sdes do 2400238104Sdes IFS=$lt_save_ifs 2401238104Sdes # Let DOS variable expansion print the short 8.3 style file name. 2402238104Sdes lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 2403238104Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 2404238104Sdes done 2405238104Sdes IFS=$lt_save_ifs 2406238104Sdes # Convert to MSYS style. 2407238104Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 2408238104Sdes ;; 2409238104Sdes cygwin*) 2410238104Sdes # Convert to unix form, then to dos form, then back to unix form 2411238104Sdes # but this time dos style (no spaces!) so that the unix form looks 2412238104Sdes # like /cygdrive/c/PROGRA~1:/cygdr... 2413238104Sdes sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2414238104Sdes sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2415238104Sdes sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2416238104Sdes ;; 2417238104Sdes *) 2418238104Sdes sys_lib_search_path_spec="$LIB" 2419238104Sdes if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2420238104Sdes # It is most probably a Windows format PATH. 2421238104Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2422238104Sdes else 2423238104Sdes sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2424238104Sdes fi 2425238104Sdes # FIXME: find the short name or the path components, as spaces are 2426238104Sdes # common. (e.g. "Program Files" -> "PROGRA~1") 2427238104Sdes ;; 2428238104Sdes esac 2429238104Sdes 2430238104Sdes # DLL is installed to $(libdir)/../bin by postinstall_cmds 2431238104Sdes postinstall_cmds='base_file=`basename \${file}`~ 2432238104Sdes dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 2433238104Sdes dldir=$destdir/`dirname \$dlpath`~ 2434238104Sdes test -d \$dldir || mkdir -p \$dldir~ 2435238104Sdes $install_prog $dir/$dlname \$dldir/$dlname' 2436238104Sdes postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2437238104Sdes dlpath=$dir/\$dldll~ 2438238104Sdes $RM \$dlpath' 2439238104Sdes shlibpath_overrides_runpath=yes 2440238104Sdes dynamic_linker='Win32 link.exe' 2441238104Sdes ;; 2442238104Sdes 2443238104Sdes *) 2444238104Sdes # Assume MSVC wrapper 2445238104Sdes library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 2446238104Sdes dynamic_linker='Win32 ld.exe' 2447238104Sdes ;; 2448238104Sdes esac 2449238104Sdes # FIXME: first we should search . and the directory the executable is in 2450238104Sdes shlibpath_var=PATH 2451238104Sdes ;; 2452238104Sdes 2453238104Sdesdarwin* | rhapsody*) 2454238104Sdes dynamic_linker="$host_os dyld" 2455238104Sdes version_type=darwin 2456238104Sdes need_lib_prefix=no 2457238104Sdes need_version=no 2458238104Sdes library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2459238104Sdes soname_spec='${libname}${release}${major}$shared_ext' 2460238104Sdes shlibpath_overrides_runpath=yes 2461238104Sdes shlibpath_var=DYLD_LIBRARY_PATH 2462238104Sdes shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2463238104Sdesm4_if([$1], [],[ 2464238104Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2465238104Sdes sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2466238104Sdes ;; 2467238104Sdes 2468238104Sdesdgux*) 2469238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2470238104Sdes need_lib_prefix=no 2471238104Sdes need_version=no 2472238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 2473238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2474238104Sdes shlibpath_var=LD_LIBRARY_PATH 2475238104Sdes ;; 2476238104Sdes 2477238104Sdesfreebsd* | dragonfly*) 2478238104Sdes # DragonFly does not have aout. When/if they implement a new 2479238104Sdes # versioning mechanism, adjust this. 2480238104Sdes if test -x /usr/bin/objformat; then 2481238104Sdes objformat=`/usr/bin/objformat` 2482238104Sdes else 2483238104Sdes case $host_os in 2484238104Sdes freebsd[[23]].*) objformat=aout ;; 2485238104Sdes *) objformat=elf ;; 2486238104Sdes esac 2487238104Sdes fi 2488238104Sdes version_type=freebsd-$objformat 2489238104Sdes case $version_type in 2490238104Sdes freebsd-elf*) 2491238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2492238104Sdes need_version=no 2493238104Sdes need_lib_prefix=no 2494238104Sdes ;; 2495238104Sdes freebsd-*) 2496238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 2497238104Sdes need_version=yes 2498238104Sdes ;; 2499238104Sdes esac 2500238104Sdes shlibpath_var=LD_LIBRARY_PATH 2501238104Sdes case $host_os in 2502238104Sdes freebsd2.*) 2503238104Sdes shlibpath_overrides_runpath=yes 2504238104Sdes ;; 2505238104Sdes freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2506238104Sdes shlibpath_overrides_runpath=yes 2507238104Sdes hardcode_into_libs=yes 2508238104Sdes ;; 2509238104Sdes freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2510238104Sdes freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2511238104Sdes shlibpath_overrides_runpath=no 2512238104Sdes hardcode_into_libs=yes 2513238104Sdes ;; 2514238104Sdes *) # from 4.6 on, and DragonFly 2515238104Sdes shlibpath_overrides_runpath=yes 2516238104Sdes hardcode_into_libs=yes 2517238104Sdes ;; 2518238104Sdes esac 2519238104Sdes ;; 2520238104Sdes 2521238104Sdesgnu*) 2522238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2523238104Sdes need_lib_prefix=no 2524238104Sdes need_version=no 2525238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2526238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2527238104Sdes shlibpath_var=LD_LIBRARY_PATH 2528238104Sdes shlibpath_overrides_runpath=no 2529238104Sdes hardcode_into_libs=yes 2530238104Sdes ;; 2531238104Sdes 2532238104Sdeshaiku*) 2533238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2534238104Sdes need_lib_prefix=no 2535238104Sdes need_version=no 2536238104Sdes dynamic_linker="$host_os runtime_loader" 2537238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 2538238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2539238104Sdes shlibpath_var=LIBRARY_PATH 2540238104Sdes shlibpath_overrides_runpath=yes 2541238104Sdes sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2542238104Sdes hardcode_into_libs=yes 2543238104Sdes ;; 2544238104Sdes 2545238104Sdeshpux9* | hpux10* | hpux11*) 2546238104Sdes # Give a soname corresponding to the major version so that dld.sl refuses to 2547238104Sdes # link against other versions. 2548238104Sdes version_type=sunos 2549238104Sdes need_lib_prefix=no 2550238104Sdes need_version=no 2551238104Sdes case $host_cpu in 2552238104Sdes ia64*) 2553238104Sdes shrext_cmds='.so' 2554238104Sdes hardcode_into_libs=yes 2555238104Sdes dynamic_linker="$host_os dld.so" 2556238104Sdes shlibpath_var=LD_LIBRARY_PATH 2557238104Sdes shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2558238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2559238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2560238104Sdes if test "X$HPUX_IA64_MODE" = X32; then 2561238104Sdes sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2562238104Sdes else 2563238104Sdes sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2564238104Sdes fi 2565238104Sdes sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2566238104Sdes ;; 2567238104Sdes hppa*64*) 2568238104Sdes shrext_cmds='.sl' 2569238104Sdes hardcode_into_libs=yes 2570238104Sdes dynamic_linker="$host_os dld.sl" 2571238104Sdes shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2572238104Sdes shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2573238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2574238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2575238104Sdes sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2576238104Sdes sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2577238104Sdes ;; 2578238104Sdes *) 2579238104Sdes shrext_cmds='.sl' 2580238104Sdes dynamic_linker="$host_os dld.sl" 2581238104Sdes shlibpath_var=SHLIB_PATH 2582238104Sdes shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2583238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2584238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2585238104Sdes ;; 2586238104Sdes esac 2587238104Sdes # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2588238104Sdes postinstall_cmds='chmod 555 $lib' 2589238104Sdes # or fails outright, so override atomically: 2590238104Sdes install_override_mode=555 2591238104Sdes ;; 2592238104Sdes 2593238104Sdesinterix[[3-9]]*) 2594238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2595238104Sdes need_lib_prefix=no 2596238104Sdes need_version=no 2597238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2598238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2599238104Sdes dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2600238104Sdes shlibpath_var=LD_LIBRARY_PATH 2601238104Sdes shlibpath_overrides_runpath=no 2602238104Sdes hardcode_into_libs=yes 2603238104Sdes ;; 2604238104Sdes 2605238104Sdesirix5* | irix6* | nonstopux*) 2606238104Sdes case $host_os in 2607238104Sdes nonstopux*) version_type=nonstopux ;; 2608238104Sdes *) 2609238104Sdes if test "$lt_cv_prog_gnu_ld" = yes; then 2610238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2611238104Sdes else 2612238104Sdes version_type=irix 2613238104Sdes fi ;; 2614238104Sdes esac 2615238104Sdes need_lib_prefix=no 2616238104Sdes need_version=no 2617238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2618238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 2619238104Sdes case $host_os in 2620238104Sdes irix5* | nonstopux*) 2621238104Sdes libsuff= shlibsuff= 2622238104Sdes ;; 2623238104Sdes *) 2624238104Sdes case $LD in # libtool.m4 will add one of these switches to LD 2625238104Sdes *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2626238104Sdes libsuff= shlibsuff= libmagic=32-bit;; 2627238104Sdes *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2628238104Sdes libsuff=32 shlibsuff=N32 libmagic=N32;; 2629238104Sdes *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2630238104Sdes libsuff=64 shlibsuff=64 libmagic=64-bit;; 2631238104Sdes *) libsuff= shlibsuff= libmagic=never-match;; 2632238104Sdes esac 2633238104Sdes ;; 2634238104Sdes esac 2635238104Sdes shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2636238104Sdes shlibpath_overrides_runpath=no 2637238104Sdes sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 2638238104Sdes sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 2639238104Sdes hardcode_into_libs=yes 2640238104Sdes ;; 2641238104Sdes 2642238104Sdes# No shared lib support for Linux oldld, aout, or coff. 2643238104Sdeslinux*oldld* | linux*aout* | linux*coff*) 2644238104Sdes dynamic_linker=no 2645238104Sdes ;; 2646238104Sdes 2647238104Sdes# This must be glibc/ELF. 2648238104Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu) 2649238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2650238104Sdes need_lib_prefix=no 2651238104Sdes need_version=no 2652238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2653238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2654238104Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2655238104Sdes shlibpath_var=LD_LIBRARY_PATH 2656238104Sdes shlibpath_overrides_runpath=no 2657238104Sdes 2658238104Sdes # Some binutils ld are patched to set DT_RUNPATH 2659238104Sdes AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2660238104Sdes [lt_cv_shlibpath_overrides_runpath=no 2661238104Sdes save_LDFLAGS=$LDFLAGS 2662238104Sdes save_libdir=$libdir 2663238104Sdes eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2664238104Sdes LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2665238104Sdes AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2666238104Sdes [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2667238104Sdes [lt_cv_shlibpath_overrides_runpath=yes])]) 2668238104Sdes LDFLAGS=$save_LDFLAGS 2669238104Sdes libdir=$save_libdir 2670238104Sdes ]) 2671238104Sdes shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2672238104Sdes 2673238104Sdes # This implies no fast_install, which is unacceptable. 2674238104Sdes # Some rework will be needed to allow for fast_install 2675238104Sdes # before this can be enabled. 2676238104Sdes hardcode_into_libs=yes 2677238104Sdes 2678238104Sdes # Append ld.so.conf contents to the search path 2679238104Sdes if test -f /etc/ld.so.conf; then 2680238104Sdes 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' ' '` 2681238104Sdes sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 2682238104Sdes fi 2683238104Sdes 2684238104Sdes # We used to test for /lib/ld.so.1 and disable shared libraries on 2685238104Sdes # powerpc, because MkLinux only supported shared libraries with the 2686238104Sdes # GNU dynamic linker. Since this was broken with cross compilers, 2687238104Sdes # most powerpc-linux boxes support dynamic linking these days and 2688238104Sdes # people can always --disable-shared, the test was removed, and we 2689238104Sdes # assume the GNU/Linux dynamic linker is in use. 2690238104Sdes dynamic_linker='GNU/Linux ld.so' 2691238104Sdes ;; 2692238104Sdes 2693238104Sdesnetbsdelf*-gnu) 2694238104Sdes version_type=linux 2695238104Sdes need_lib_prefix=no 2696238104Sdes need_version=no 2697238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2698238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2699238104Sdes shlibpath_var=LD_LIBRARY_PATH 2700238104Sdes shlibpath_overrides_runpath=no 2701238104Sdes hardcode_into_libs=yes 2702238104Sdes dynamic_linker='NetBSD ld.elf_so' 2703238104Sdes ;; 2704238104Sdes 2705238104Sdesnetbsd*) 2706238104Sdes version_type=sunos 2707238104Sdes need_lib_prefix=no 2708238104Sdes need_version=no 2709238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2710238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2711238104Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2712238104Sdes dynamic_linker='NetBSD (a.out) ld.so' 2713238104Sdes else 2714238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2715238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2716238104Sdes dynamic_linker='NetBSD ld.elf_so' 2717238104Sdes fi 2718238104Sdes shlibpath_var=LD_LIBRARY_PATH 2719238104Sdes shlibpath_overrides_runpath=yes 2720238104Sdes hardcode_into_libs=yes 2721238104Sdes ;; 2722238104Sdes 2723238104Sdesnewsos6) 2724238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2725238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2726238104Sdes shlibpath_var=LD_LIBRARY_PATH 2727238104Sdes shlibpath_overrides_runpath=yes 2728238104Sdes ;; 2729238104Sdes 2730238104Sdes*nto* | *qnx*) 2731238104Sdes version_type=qnx 2732238104Sdes need_lib_prefix=no 2733238104Sdes need_version=no 2734238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2735238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2736238104Sdes shlibpath_var=LD_LIBRARY_PATH 2737238104Sdes shlibpath_overrides_runpath=no 2738238104Sdes hardcode_into_libs=yes 2739238104Sdes dynamic_linker='ldqnx.so' 2740238104Sdes ;; 2741238104Sdes 2742238104Sdesopenbsd*) 2743238104Sdes version_type=sunos 2744238104Sdes sys_lib_dlsearch_path_spec="/usr/lib" 2745238104Sdes need_lib_prefix=no 2746238104Sdes # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 2747238104Sdes case $host_os in 2748238104Sdes openbsd3.3 | openbsd3.3.*) need_version=yes ;; 2749238104Sdes *) need_version=no ;; 2750238104Sdes esac 2751238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2752238104Sdes finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2753238104Sdes shlibpath_var=LD_LIBRARY_PATH 2754238104Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2755238104Sdes case $host_os in 2756238104Sdes openbsd2.[[89]] | openbsd2.[[89]].*) 2757238104Sdes shlibpath_overrides_runpath=no 2758238104Sdes ;; 2759238104Sdes *) 2760238104Sdes shlibpath_overrides_runpath=yes 2761238104Sdes ;; 2762238104Sdes esac 2763238104Sdes else 2764238104Sdes shlibpath_overrides_runpath=yes 2765238104Sdes fi 2766238104Sdes ;; 2767238104Sdes 2768238104Sdesos2*) 2769238104Sdes libname_spec='$name' 2770238104Sdes shrext_cmds=".dll" 2771238104Sdes need_lib_prefix=no 2772238104Sdes library_names_spec='$libname${shared_ext} $libname.a' 2773238104Sdes dynamic_linker='OS/2 ld.exe' 2774238104Sdes shlibpath_var=LIBPATH 2775238104Sdes ;; 2776238104Sdes 2777238104Sdesosf3* | osf4* | osf5*) 2778238104Sdes version_type=osf 2779238104Sdes need_lib_prefix=no 2780238104Sdes need_version=no 2781238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2782238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2783238104Sdes shlibpath_var=LD_LIBRARY_PATH 2784238104Sdes sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2785238104Sdes sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2786238104Sdes ;; 2787238104Sdes 2788238104Sdesrdos*) 2789238104Sdes dynamic_linker=no 2790238104Sdes ;; 2791238104Sdes 2792238104Sdessolaris*) 2793238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2794238104Sdes need_lib_prefix=no 2795238104Sdes need_version=no 2796238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2797238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2798238104Sdes shlibpath_var=LD_LIBRARY_PATH 2799238104Sdes shlibpath_overrides_runpath=yes 2800238104Sdes hardcode_into_libs=yes 2801238104Sdes # ldd complains unless libraries are executable 2802238104Sdes postinstall_cmds='chmod +x $lib' 2803238104Sdes ;; 2804238104Sdes 2805238104Sdessunos4*) 2806238104Sdes version_type=sunos 2807238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2808238104Sdes finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 2809238104Sdes shlibpath_var=LD_LIBRARY_PATH 2810238104Sdes shlibpath_overrides_runpath=yes 2811238104Sdes if test "$with_gnu_ld" = yes; then 2812238104Sdes need_lib_prefix=no 2813238104Sdes fi 2814238104Sdes need_version=yes 2815238104Sdes ;; 2816238104Sdes 2817238104Sdessysv4 | sysv4.3*) 2818238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2819238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2820238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2821238104Sdes shlibpath_var=LD_LIBRARY_PATH 2822238104Sdes case $host_vendor in 2823238104Sdes sni) 2824238104Sdes shlibpath_overrides_runpath=no 2825238104Sdes need_lib_prefix=no 2826238104Sdes runpath_var=LD_RUN_PATH 2827238104Sdes ;; 2828238104Sdes siemens) 2829238104Sdes need_lib_prefix=no 2830238104Sdes ;; 2831238104Sdes motorola) 2832238104Sdes need_lib_prefix=no 2833238104Sdes need_version=no 2834238104Sdes shlibpath_overrides_runpath=no 2835238104Sdes sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 2836238104Sdes ;; 2837238104Sdes esac 2838238104Sdes ;; 2839238104Sdes 2840238104Sdessysv4*MP*) 2841238104Sdes if test -d /usr/nec ;then 2842238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2843238104Sdes library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 2844238104Sdes soname_spec='$libname${shared_ext}.$major' 2845238104Sdes shlibpath_var=LD_LIBRARY_PATH 2846238104Sdes fi 2847238104Sdes ;; 2848238104Sdes 2849238104Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2850238104Sdes version_type=freebsd-elf 2851238104Sdes need_lib_prefix=no 2852238104Sdes need_version=no 2853238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2854238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2855238104Sdes shlibpath_var=LD_LIBRARY_PATH 2856238104Sdes shlibpath_overrides_runpath=yes 2857238104Sdes hardcode_into_libs=yes 2858238104Sdes if test "$with_gnu_ld" = yes; then 2859238104Sdes sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 2860238104Sdes else 2861238104Sdes sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 2862238104Sdes case $host_os in 2863238104Sdes sco3.2v5*) 2864238104Sdes sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 2865238104Sdes ;; 2866238104Sdes esac 2867238104Sdes fi 2868238104Sdes sys_lib_dlsearch_path_spec='/usr/lib' 2869238104Sdes ;; 2870238104Sdes 2871238104Sdestpf*) 2872238104Sdes # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 2873238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2874238104Sdes need_lib_prefix=no 2875238104Sdes need_version=no 2876238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2877238104Sdes shlibpath_var=LD_LIBRARY_PATH 2878238104Sdes shlibpath_overrides_runpath=no 2879238104Sdes hardcode_into_libs=yes 2880238104Sdes ;; 2881238104Sdes 2882238104Sdesuts4*) 2883238104Sdes version_type=linux # correct to gnu/linux during the next big refactor 2884238104Sdes library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2885238104Sdes soname_spec='${libname}${release}${shared_ext}$major' 2886238104Sdes shlibpath_var=LD_LIBRARY_PATH 2887238104Sdes ;; 2888238104Sdes 2889238104Sdes*) 2890238104Sdes dynamic_linker=no 2891238104Sdes ;; 2892238104Sdesesac 2893238104SdesAC_MSG_RESULT([$dynamic_linker]) 2894238104Sdestest "$dynamic_linker" = no && can_build_shared=no 2895238104Sdes 2896238104Sdesvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 2897238104Sdesif test "$GCC" = yes; then 2898238104Sdes variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 2899238104Sdesfi 2900238104Sdes 2901238104Sdesif test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 2902238104Sdes sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 2903238104Sdesfi 2904238104Sdesif test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 2905238104Sdes sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 2906238104Sdesfi 2907238104Sdes 2908238104Sdes_LT_DECL([], [variables_saved_for_relink], [1], 2909238104Sdes [Variables whose values should be saved in libtool wrapper scripts and 2910238104Sdes restored at link time]) 2911238104Sdes_LT_DECL([], [need_lib_prefix], [0], 2912238104Sdes [Do we need the "lib" prefix for modules?]) 2913238104Sdes_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 2914238104Sdes_LT_DECL([], [version_type], [0], [Library versioning type]) 2915238104Sdes_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 2916238104Sdes_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 2917238104Sdes_LT_DECL([], [shlibpath_overrides_runpath], [0], 2918238104Sdes [Is shlibpath searched before the hard-coded library search path?]) 2919238104Sdes_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 2920238104Sdes_LT_DECL([], [library_names_spec], [1], 2921238104Sdes [[List of archive names. First name is the real one, the rest are links. 2922238104Sdes The last name is the one that the linker finds with -lNAME]]) 2923238104Sdes_LT_DECL([], [soname_spec], [1], 2924238104Sdes [[The coded name of the library, if different from the real name]]) 2925238104Sdes_LT_DECL([], [install_override_mode], [1], 2926238104Sdes [Permission mode override for installation of shared libraries]) 2927238104Sdes_LT_DECL([], [postinstall_cmds], [2], 2928238104Sdes [Command to use after installation of a shared archive]) 2929238104Sdes_LT_DECL([], [postuninstall_cmds], [2], 2930238104Sdes [Command to use after uninstallation of a shared archive]) 2931238104Sdes_LT_DECL([], [finish_cmds], [2], 2932238104Sdes [Commands used to finish a libtool library installation in a directory]) 2933238104Sdes_LT_DECL([], [finish_eval], [1], 2934238104Sdes [[As "finish_cmds", except a single script fragment to be evaled but 2935238104Sdes not shown]]) 2936238104Sdes_LT_DECL([], [hardcode_into_libs], [0], 2937238104Sdes [Whether we should hardcode library paths into libraries]) 2938238104Sdes_LT_DECL([], [sys_lib_search_path_spec], [2], 2939238104Sdes [Compile-time system search path for libraries]) 2940238104Sdes_LT_DECL([], [sys_lib_dlsearch_path_spec], [2], 2941238104Sdes [Run-time system search path for libraries]) 2942238104Sdes])# _LT_SYS_DYNAMIC_LINKER 2943238104Sdes 2944238104Sdes 2945238104Sdes# _LT_PATH_TOOL_PREFIX(TOOL) 2946238104Sdes# -------------------------- 2947238104Sdes# find a file program which can recognize shared library 2948238104SdesAC_DEFUN([_LT_PATH_TOOL_PREFIX], 2949238104Sdes[m4_require([_LT_DECL_EGREP])dnl 2950238104SdesAC_MSG_CHECKING([for $1]) 2951238104SdesAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2952238104Sdes[case $MAGIC_CMD in 2953238104Sdes[[\\/*] | ?:[\\/]*]) 2954238104Sdes lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2955238104Sdes ;; 2956238104Sdes*) 2957238104Sdes lt_save_MAGIC_CMD="$MAGIC_CMD" 2958238104Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2959238104Sdesdnl $ac_dummy forces splitting on constant user-supplied paths. 2960238104Sdesdnl POSIX.2 word splitting is done only on the output of word expansions, 2961238104Sdesdnl not every word. This closes a longstanding sh security hole. 2962238104Sdes ac_dummy="m4_if([$2], , $PATH, [$2])" 2963238104Sdes for ac_dir in $ac_dummy; do 2964238104Sdes IFS="$lt_save_ifs" 2965238104Sdes test -z "$ac_dir" && ac_dir=. 2966238104Sdes if test -f $ac_dir/$1; then 2967238104Sdes lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2968238104Sdes if test -n "$file_magic_test_file"; then 2969238104Sdes case $deplibs_check_method in 2970238104Sdes "file_magic "*) 2971238104Sdes file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2972238104Sdes MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2973238104Sdes if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2974238104Sdes $EGREP "$file_magic_regex" > /dev/null; then 2975238104Sdes : 2976238104Sdes else 2977238104Sdes cat <<_LT_EOF 1>&2 2978238104Sdes 2979238104Sdes*** Warning: the command libtool uses to detect shared libraries, 2980238104Sdes*** $file_magic_cmd, produces output that libtool cannot recognize. 2981238104Sdes*** The result is that libtool may fail to recognize shared libraries 2982238104Sdes*** as such. This will affect the creation of libtool libraries that 2983238104Sdes*** depend on shared libraries, but programs linked with such libtool 2984238104Sdes*** libraries will work regardless of this problem. Nevertheless, you 2985238104Sdes*** may want to report the problem to your system manager and/or to 2986238104Sdes*** bug-libtool@gnu.org 2987238104Sdes 2988238104Sdes_LT_EOF 2989238104Sdes fi ;; 2990238104Sdes esac 2991238104Sdes fi 2992238104Sdes break 2993238104Sdes fi 2994238104Sdes done 2995238104Sdes IFS="$lt_save_ifs" 2996238104Sdes MAGIC_CMD="$lt_save_MAGIC_CMD" 2997238104Sdes ;; 2998238104Sdesesac]) 2999238104SdesMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 3000238104Sdesif test -n "$MAGIC_CMD"; then 3001238104Sdes AC_MSG_RESULT($MAGIC_CMD) 3002238104Sdeselse 3003238104Sdes AC_MSG_RESULT(no) 3004238104Sdesfi 3005238104Sdes_LT_DECL([], [MAGIC_CMD], [0], 3006238104Sdes [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3007238104Sdes])# _LT_PATH_TOOL_PREFIX 3008238104Sdes 3009238104Sdes# Old name: 3010238104SdesAU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3011238104Sdesdnl aclocal-1.4 backwards compatibility: 3012238104Sdesdnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3013238104Sdes 3014238104Sdes 3015238104Sdes# _LT_PATH_MAGIC 3016238104Sdes# -------------- 3017238104Sdes# find a file program which can recognize a shared library 3018238104Sdesm4_defun([_LT_PATH_MAGIC], 3019238104Sdes[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3020238104Sdesif test -z "$lt_cv_path_MAGIC_CMD"; then 3021238104Sdes if test -n "$ac_tool_prefix"; then 3022238104Sdes _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3023238104Sdes else 3024238104Sdes MAGIC_CMD=: 3025238104Sdes fi 3026238104Sdesfi 3027238104Sdes])# _LT_PATH_MAGIC 3028238104Sdes 3029238104Sdes 3030238104Sdes# LT_PATH_LD 3031238104Sdes# ---------- 3032238104Sdes# find the pathname to the GNU or non-GNU linker 3033238104SdesAC_DEFUN([LT_PATH_LD], 3034238104Sdes[AC_REQUIRE([AC_PROG_CC])dnl 3035238104SdesAC_REQUIRE([AC_CANONICAL_HOST])dnl 3036238104SdesAC_REQUIRE([AC_CANONICAL_BUILD])dnl 3037238104Sdesm4_require([_LT_DECL_SED])dnl 3038238104Sdesm4_require([_LT_DECL_EGREP])dnl 3039238104Sdesm4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3040238104Sdes 3041238104SdesAC_ARG_WITH([gnu-ld], 3042238104Sdes [AS_HELP_STRING([--with-gnu-ld], 3043238104Sdes [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3044238104Sdes [test "$withval" = no || with_gnu_ld=yes], 3045238104Sdes [with_gnu_ld=no])dnl 3046238104Sdes 3047238104Sdesac_prog=ld 3048238104Sdesif test "$GCC" = yes; then 3049238104Sdes # Check if gcc -print-prog-name=ld gives a path. 3050238104Sdes AC_MSG_CHECKING([for ld used by $CC]) 3051238104Sdes case $host in 3052238104Sdes *-*-mingw*) 3053238104Sdes # gcc leaves a trailing carriage return which upsets mingw 3054238104Sdes ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3055238104Sdes *) 3056238104Sdes ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3057238104Sdes esac 3058238104Sdes case $ac_prog in 3059238104Sdes # Accept absolute paths. 3060238104Sdes [[\\/]]* | ?:[[\\/]]*) 3061238104Sdes re_direlt='/[[^/]][[^/]]*/\.\./' 3062238104Sdes # Canonicalize the pathname of ld 3063238104Sdes ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3064238104Sdes while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3065238104Sdes ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3066238104Sdes done 3067238104Sdes test -z "$LD" && LD="$ac_prog" 3068238104Sdes ;; 3069238104Sdes "") 3070238104Sdes # If it fails, then pretend we aren't using GCC. 3071238104Sdes ac_prog=ld 3072238104Sdes ;; 3073238104Sdes *) 3074238104Sdes # If it is relative, then search for the first ld in PATH. 3075238104Sdes with_gnu_ld=unknown 3076238104Sdes ;; 3077238104Sdes esac 3078238104Sdeselif test "$with_gnu_ld" = yes; then 3079238104Sdes AC_MSG_CHECKING([for GNU ld]) 3080238104Sdeselse 3081238104Sdes AC_MSG_CHECKING([for non-GNU ld]) 3082238104Sdesfi 3083238104SdesAC_CACHE_VAL(lt_cv_path_LD, 3084238104Sdes[if test -z "$LD"; then 3085238104Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3086238104Sdes for ac_dir in $PATH; do 3087238104Sdes IFS="$lt_save_ifs" 3088238104Sdes test -z "$ac_dir" && ac_dir=. 3089238104Sdes if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3090238104Sdes lt_cv_path_LD="$ac_dir/$ac_prog" 3091238104Sdes # Check to see if the program is GNU ld. I'd rather use --version, 3092238104Sdes # but apparently some variants of GNU ld only accept -v. 3093238104Sdes # Break only if it was the GNU/non-GNU ld that we prefer. 3094238104Sdes case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3095238104Sdes *GNU* | *'with BFD'*) 3096238104Sdes test "$with_gnu_ld" != no && break 3097238104Sdes ;; 3098238104Sdes *) 3099238104Sdes test "$with_gnu_ld" != yes && break 3100238104Sdes ;; 3101238104Sdes esac 3102238104Sdes fi 3103238104Sdes done 3104238104Sdes IFS="$lt_save_ifs" 3105238104Sdeselse 3106238104Sdes lt_cv_path_LD="$LD" # Let the user override the test with a path. 3107238104Sdesfi]) 3108238104SdesLD="$lt_cv_path_LD" 3109238104Sdesif test -n "$LD"; then 3110238104Sdes AC_MSG_RESULT($LD) 3111238104Sdeselse 3112238104Sdes AC_MSG_RESULT(no) 3113238104Sdesfi 3114238104Sdestest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3115238104Sdes_LT_PATH_LD_GNU 3116238104SdesAC_SUBST([LD]) 3117238104Sdes 3118238104Sdes_LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3119238104Sdes])# LT_PATH_LD 3120238104Sdes 3121238104Sdes# Old names: 3122238104SdesAU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3123238104SdesAU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3124238104Sdesdnl aclocal-1.4 backwards compatibility: 3125238104Sdesdnl AC_DEFUN([AM_PROG_LD], []) 3126238104Sdesdnl AC_DEFUN([AC_PROG_LD], []) 3127238104Sdes 3128238104Sdes 3129238104Sdes# _LT_PATH_LD_GNU 3130238104Sdes#- -------------- 3131238104Sdesm4_defun([_LT_PATH_LD_GNU], 3132238104Sdes[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3133238104Sdes[# I'd rather use --version here, but apparently some GNU lds only accept -v. 3134238104Sdescase `$LD -v 2>&1 </dev/null` in 3135238104Sdes*GNU* | *'with BFD'*) 3136238104Sdes lt_cv_prog_gnu_ld=yes 3137238104Sdes ;; 3138238104Sdes*) 3139238104Sdes lt_cv_prog_gnu_ld=no 3140238104Sdes ;; 3141238104Sdesesac]) 3142238104Sdeswith_gnu_ld=$lt_cv_prog_gnu_ld 3143238104Sdes])# _LT_PATH_LD_GNU 3144238104Sdes 3145238104Sdes 3146238104Sdes# _LT_CMD_RELOAD 3147238104Sdes# -------------- 3148238104Sdes# find reload flag for linker 3149238104Sdes# -- PORTME Some linkers may need a different reload flag. 3150238104Sdesm4_defun([_LT_CMD_RELOAD], 3151238104Sdes[AC_CACHE_CHECK([for $LD option to reload object files], 3152238104Sdes lt_cv_ld_reload_flag, 3153238104Sdes [lt_cv_ld_reload_flag='-r']) 3154238104Sdesreload_flag=$lt_cv_ld_reload_flag 3155238104Sdescase $reload_flag in 3156238104Sdes"" | " "*) ;; 3157238104Sdes*) reload_flag=" $reload_flag" ;; 3158238104Sdesesac 3159238104Sdesreload_cmds='$LD$reload_flag -o $output$reload_objs' 3160238104Sdescase $host_os in 3161238104Sdes cygwin* | mingw* | pw32* | cegcc*) 3162238104Sdes if test "$GCC" != yes; then 3163238104Sdes reload_cmds=false 3164238104Sdes fi 3165238104Sdes ;; 3166238104Sdes darwin*) 3167238104Sdes if test "$GCC" = yes; then 3168238104Sdes reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 3169238104Sdes else 3170238104Sdes reload_cmds='$LD$reload_flag -o $output$reload_objs' 3171238104Sdes fi 3172238104Sdes ;; 3173238104Sdesesac 3174238104Sdes_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3175238104Sdes_LT_TAGDECL([], [reload_cmds], [2])dnl 3176238104Sdes])# _LT_CMD_RELOAD 3177238104Sdes 3178238104Sdes 3179238104Sdes# _LT_CHECK_MAGIC_METHOD 3180238104Sdes# ---------------------- 3181238104Sdes# how to check for library dependencies 3182238104Sdes# -- PORTME fill in with the dynamic library characteristics 3183238104Sdesm4_defun([_LT_CHECK_MAGIC_METHOD], 3184238104Sdes[m4_require([_LT_DECL_EGREP]) 3185238104Sdesm4_require([_LT_DECL_OBJDUMP]) 3186238104SdesAC_CACHE_CHECK([how to recognize dependent libraries], 3187238104Sdeslt_cv_deplibs_check_method, 3188238104Sdes[lt_cv_file_magic_cmd='$MAGIC_CMD' 3189238104Sdeslt_cv_file_magic_test_file= 3190238104Sdeslt_cv_deplibs_check_method='unknown' 3191238104Sdes# Need to set the preceding variable on all platforms that support 3192238104Sdes# interlibrary dependencies. 3193238104Sdes# 'none' -- dependencies not supported. 3194238104Sdes# `unknown' -- same as none, but documents that we really don't know. 3195238104Sdes# 'pass_all' -- all dependencies passed with no checks. 3196238104Sdes# 'test_compile' -- check by making test program. 3197238104Sdes# 'file_magic [[regex]]' -- check by looking for files in library path 3198238104Sdes# which responds to the $file_magic_cmd with a given extended regex. 3199238104Sdes# If you have `file' or equivalent on your system and you're not sure 3200238104Sdes# whether `pass_all' will *always* work, you probably want this one. 3201238104Sdes 3202238104Sdescase $host_os in 3203238104Sdesaix[[4-9]]*) 3204238104Sdes lt_cv_deplibs_check_method=pass_all 3205238104Sdes ;; 3206238104Sdes 3207238104Sdesbeos*) 3208238104Sdes lt_cv_deplibs_check_method=pass_all 3209238104Sdes ;; 3210238104Sdes 3211238104Sdesbsdi[[45]]*) 3212238104Sdes lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3213238104Sdes lt_cv_file_magic_cmd='/usr/bin/file -L' 3214238104Sdes lt_cv_file_magic_test_file=/shlib/libc.so 3215238104Sdes ;; 3216238104Sdes 3217238104Sdescygwin*) 3218238104Sdes # func_win32_libid is a shell function defined in ltmain.sh 3219238104Sdes lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3220238104Sdes lt_cv_file_magic_cmd='func_win32_libid' 3221238104Sdes ;; 3222238104Sdes 3223238104Sdesmingw* | pw32*) 3224238104Sdes # Base MSYS/MinGW do not provide the 'file' command needed by 3225238104Sdes # func_win32_libid shell function, so use a weaker test based on 'objdump', 3226238104Sdes # unless we find 'file', for example because we are cross-compiling. 3227238104Sdes # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 3228238104Sdes if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 3229238104Sdes lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3230238104Sdes lt_cv_file_magic_cmd='func_win32_libid' 3231238104Sdes else 3232238104Sdes # Keep this pattern in sync with the one in func_win32_libid. 3233238104Sdes lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3234238104Sdes lt_cv_file_magic_cmd='$OBJDUMP -f' 3235238104Sdes fi 3236238104Sdes ;; 3237238104Sdes 3238238104Sdescegcc*) 3239238104Sdes # use the weaker test based on 'objdump'. See mingw*. 3240238104Sdes lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3241238104Sdes lt_cv_file_magic_cmd='$OBJDUMP -f' 3242238104Sdes ;; 3243238104Sdes 3244238104Sdesdarwin* | rhapsody*) 3245238104Sdes lt_cv_deplibs_check_method=pass_all 3246238104Sdes ;; 3247238104Sdes 3248238104Sdesfreebsd* | dragonfly*) 3249238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3250238104Sdes case $host_cpu in 3251238104Sdes i*86 ) 3252238104Sdes # Not sure whether the presence of OpenBSD here was a mistake. 3253238104Sdes # Let's accept both of them until this is cleared up. 3254238104Sdes lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3255238104Sdes lt_cv_file_magic_cmd=/usr/bin/file 3256238104Sdes lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3257238104Sdes ;; 3258238104Sdes esac 3259238104Sdes else 3260238104Sdes lt_cv_deplibs_check_method=pass_all 3261238104Sdes fi 3262238104Sdes ;; 3263238104Sdes 3264238104Sdesgnu*) 3265238104Sdes lt_cv_deplibs_check_method=pass_all 3266238104Sdes ;; 3267238104Sdes 3268238104Sdeshaiku*) 3269238104Sdes lt_cv_deplibs_check_method=pass_all 3270238104Sdes ;; 3271238104Sdes 3272238104Sdeshpux10.20* | hpux11*) 3273238104Sdes lt_cv_file_magic_cmd=/usr/bin/file 3274238104Sdes case $host_cpu in 3275238104Sdes ia64*) 3276238104Sdes lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3277238104Sdes lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3278238104Sdes ;; 3279238104Sdes hppa*64*) 3280238104Sdes [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]'] 3281238104Sdes lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3282238104Sdes ;; 3283238104Sdes *) 3284238104Sdes lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 3285238104Sdes lt_cv_file_magic_test_file=/usr/lib/libc.sl 3286238104Sdes ;; 3287238104Sdes esac 3288238104Sdes ;; 3289238104Sdes 3290238104Sdesinterix[[3-9]]*) 3291238104Sdes # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3292238104Sdes lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3293238104Sdes ;; 3294238104Sdes 3295238104Sdesirix5* | irix6* | nonstopux*) 3296238104Sdes case $LD in 3297238104Sdes *-32|*"-32 ") libmagic=32-bit;; 3298238104Sdes *-n32|*"-n32 ") libmagic=N32;; 3299238104Sdes *-64|*"-64 ") libmagic=64-bit;; 3300238104Sdes *) libmagic=never-match;; 3301238104Sdes esac 3302238104Sdes lt_cv_deplibs_check_method=pass_all 3303238104Sdes ;; 3304238104Sdes 3305238104Sdes# This must be glibc/ELF. 3306238104Sdeslinux* | k*bsd*-gnu | kopensolaris*-gnu) 3307238104Sdes lt_cv_deplibs_check_method=pass_all 3308238104Sdes ;; 3309238104Sdes 3310238104Sdesnetbsd* | netbsdelf*-gnu) 3311238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3312238104Sdes lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3313238104Sdes else 3314238104Sdes lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3315238104Sdes fi 3316238104Sdes ;; 3317238104Sdes 3318238104Sdesnewos6*) 3319238104Sdes lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3320238104Sdes lt_cv_file_magic_cmd=/usr/bin/file 3321238104Sdes lt_cv_file_magic_test_file=/usr/lib/libnls.so 3322238104Sdes ;; 3323238104Sdes 3324238104Sdes*nto* | *qnx*) 3325238104Sdes lt_cv_deplibs_check_method=pass_all 3326238104Sdes ;; 3327238104Sdes 3328238104Sdesopenbsd*) 3329238104Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3330238104Sdes lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3331238104Sdes else 3332238104Sdes lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3333238104Sdes fi 3334238104Sdes ;; 3335238104Sdes 3336238104Sdesosf3* | osf4* | osf5*) 3337238104Sdes lt_cv_deplibs_check_method=pass_all 3338238104Sdes ;; 3339238104Sdes 3340238104Sdesrdos*) 3341238104Sdes lt_cv_deplibs_check_method=pass_all 3342238104Sdes ;; 3343238104Sdes 3344238104Sdessolaris*) 3345238104Sdes lt_cv_deplibs_check_method=pass_all 3346238104Sdes ;; 3347238104Sdes 3348238104Sdessysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3349238104Sdes lt_cv_deplibs_check_method=pass_all 3350238104Sdes ;; 3351238104Sdes 3352238104Sdessysv4 | sysv4.3*) 3353238104Sdes case $host_vendor in 3354238104Sdes motorola) 3355238104Sdes 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]]' 3356238104Sdes lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3357238104Sdes ;; 3358238104Sdes ncr) 3359238104Sdes lt_cv_deplibs_check_method=pass_all 3360238104Sdes ;; 3361238104Sdes sequent) 3362238104Sdes lt_cv_file_magic_cmd='/bin/file' 3363238104Sdes lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3364238104Sdes ;; 3365238104Sdes sni) 3366238104Sdes lt_cv_file_magic_cmd='/bin/file' 3367238104Sdes lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3368238104Sdes lt_cv_file_magic_test_file=/lib/libc.so 3369238104Sdes ;; 3370238104Sdes siemens) 3371238104Sdes lt_cv_deplibs_check_method=pass_all 3372238104Sdes ;; 3373238104Sdes pc) 3374238104Sdes lt_cv_deplibs_check_method=pass_all 3375238104Sdes ;; 3376238104Sdes esac 3377238104Sdes ;; 3378238104Sdes 3379238104Sdestpf*) 3380238104Sdes lt_cv_deplibs_check_method=pass_all 3381238104Sdes ;; 3382238104Sdesesac 3383238104Sdes]) 3384238104Sdes 3385238104Sdesfile_magic_glob= 3386238104Sdeswant_nocaseglob=no 3387238104Sdesif test "$build" = "$host"; then 3388238104Sdes case $host_os in 3389238104Sdes mingw* | pw32*) 3390238104Sdes if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 3391238104Sdes want_nocaseglob=yes 3392238104Sdes else 3393238104Sdes file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 3394238104Sdes fi 3395238104Sdes ;; 3396238104Sdes esac 3397238104Sdesfi 3398238104Sdes 3399238104Sdesfile_magic_cmd=$lt_cv_file_magic_cmd 3400238104Sdesdeplibs_check_method=$lt_cv_deplibs_check_method 3401238104Sdestest -z "$deplibs_check_method" && deplibs_check_method=unknown 3402238104Sdes 3403238104Sdes_LT_DECL([], [deplibs_check_method], [1], 3404238104Sdes [Method to check whether dependent libraries are shared objects]) 3405238104Sdes_LT_DECL([], [file_magic_cmd], [1], 3406238104Sdes [Command to use when deplibs_check_method = "file_magic"]) 3407238104Sdes_LT_DECL([], [file_magic_glob], [1], 3408238104Sdes [How to find potential files when deplibs_check_method = "file_magic"]) 3409238104Sdes_LT_DECL([], [want_nocaseglob], [1], 3410238104Sdes [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 3411238104Sdes])# _LT_CHECK_MAGIC_METHOD 3412238104Sdes 3413238104Sdes 3414238104Sdes# LT_PATH_NM 3415238104Sdes# ---------- 3416238104Sdes# find the pathname to a BSD- or MS-compatible name lister 3417238104SdesAC_DEFUN([LT_PATH_NM], 3418238104Sdes[AC_REQUIRE([AC_PROG_CC])dnl 3419238104SdesAC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3420238104Sdes[if test -n "$NM"; then 3421238104Sdes # Let the user override the test. 3422238104Sdes lt_cv_path_NM="$NM" 3423238104Sdeselse 3424238104Sdes lt_nm_to_check="${ac_tool_prefix}nm" 3425238104Sdes if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3426238104Sdes lt_nm_to_check="$lt_nm_to_check nm" 3427238104Sdes fi 3428238104Sdes for lt_tmp_nm in $lt_nm_to_check; do 3429238104Sdes lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3430238104Sdes for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3431238104Sdes IFS="$lt_save_ifs" 3432238104Sdes test -z "$ac_dir" && ac_dir=. 3433238104Sdes tmp_nm="$ac_dir/$lt_tmp_nm" 3434238104Sdes if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3435238104Sdes # Check to see if the nm accepts a BSD-compat flag. 3436238104Sdes # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3437238104Sdes # nm: unknown option "B" ignored 3438238104Sdes # Tru64's nm complains that /dev/null is an invalid object file 3439238104Sdes case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3440238104Sdes */dev/null* | *'Invalid file or object type'*) 3441238104Sdes lt_cv_path_NM="$tmp_nm -B" 3442238104Sdes break 3443238104Sdes ;; 3444238104Sdes *) 3445238104Sdes case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3446238104Sdes */dev/null*) 3447238104Sdes lt_cv_path_NM="$tmp_nm -p" 3448238104Sdes break 3449238104Sdes ;; 3450238104Sdes *) 3451238104Sdes lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3452238104Sdes continue # so that we can try to find one that supports BSD flags 3453238104Sdes ;; 3454238104Sdes esac 3455238104Sdes ;; 3456238104Sdes esac 3457238104Sdes fi 3458238104Sdes done 3459238104Sdes IFS="$lt_save_ifs" 3460238104Sdes done 3461238104Sdes : ${lt_cv_path_NM=no} 3462238104Sdesfi]) 3463238104Sdesif test "$lt_cv_path_NM" != "no"; then 3464238104Sdes NM="$lt_cv_path_NM" 3465238104Sdeselse 3466238104Sdes # Didn't find any BSD compatible name lister, look for dumpbin. 3467238104Sdes if test -n "$DUMPBIN"; then : 3468238104Sdes # Let the user override the test. 3469238104Sdes else 3470238104Sdes AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3471238104Sdes case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 3472238104Sdes *COFF*) 3473238104Sdes DUMPBIN="$DUMPBIN -symbols" 3474238104Sdes ;; 3475238104Sdes *) 3476238104Sdes DUMPBIN=: 3477238104Sdes ;; 3478238104Sdes esac 3479238104Sdes fi 3480238104Sdes AC_SUBST([DUMPBIN]) 3481238104Sdes if test "$DUMPBIN" != ":"; then 3482238104Sdes NM="$DUMPBIN" 3483238104Sdes fi 3484238104Sdesfi 3485238104Sdestest -z "$NM" && NM=nm 3486238104SdesAC_SUBST([NM]) 3487238104Sdes_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3488238104Sdes 3489238104SdesAC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3490238104Sdes [lt_cv_nm_interface="BSD nm" 3491238104Sdes echo "int some_variable = 0;" > conftest.$ac_ext 3492238104Sdes (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3493238104Sdes (eval "$ac_compile" 2>conftest.err) 3494238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 3495238104Sdes (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3496238104Sdes (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3497238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 3498238104Sdes (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 3499238104Sdes cat conftest.out >&AS_MESSAGE_LOG_FD 3500238104Sdes if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3501238104Sdes lt_cv_nm_interface="MS dumpbin" 3502238104Sdes fi 3503238104Sdes rm -f conftest*]) 3504238104Sdes])# LT_PATH_NM 3505238104Sdes 3506238104Sdes# Old names: 3507238104SdesAU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3508238104SdesAU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3509238104Sdesdnl aclocal-1.4 backwards compatibility: 3510238104Sdesdnl AC_DEFUN([AM_PROG_NM], []) 3511238104Sdesdnl AC_DEFUN([AC_PROG_NM], []) 3512238104Sdes 3513238104Sdes# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3514238104Sdes# -------------------------------- 3515238104Sdes# how to determine the name of the shared library 3516238104Sdes# associated with a specific link library. 3517238104Sdes# -- PORTME fill in with the dynamic library characteristics 3518238104Sdesm4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 3519238104Sdes[m4_require([_LT_DECL_EGREP]) 3520238104Sdesm4_require([_LT_DECL_OBJDUMP]) 3521238104Sdesm4_require([_LT_DECL_DLLTOOL]) 3522238104SdesAC_CACHE_CHECK([how to associate runtime and link libraries], 3523238104Sdeslt_cv_sharedlib_from_linklib_cmd, 3524238104Sdes[lt_cv_sharedlib_from_linklib_cmd='unknown' 3525238104Sdes 3526238104Sdescase $host_os in 3527238104Sdescygwin* | mingw* | pw32* | cegcc*) 3528238104Sdes # two different shell functions defined in ltmain.sh 3529238104Sdes # decide which to use based on capabilities of $DLLTOOL 3530238104Sdes case `$DLLTOOL --help 2>&1` in 3531238104Sdes *--identify-strict*) 3532238104Sdes lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3533238104Sdes ;; 3534238104Sdes *) 3535238104Sdes lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3536238104Sdes ;; 3537238104Sdes esac 3538238104Sdes ;; 3539238104Sdes*) 3540238104Sdes # fallback: assume linklib IS sharedlib 3541238104Sdes lt_cv_sharedlib_from_linklib_cmd="$ECHO" 3542238104Sdes ;; 3543238104Sdesesac 3544238104Sdes]) 3545238104Sdessharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3546238104Sdestest -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3547238104Sdes 3548238104Sdes_LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3549238104Sdes [Command to associate shared and link libraries]) 3550238104Sdes])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3551238104Sdes 3552238104Sdes 3553238104Sdes# _LT_PATH_MANIFEST_TOOL 3554238104Sdes# ---------------------- 3555238104Sdes# locate the manifest tool 3556238104Sdesm4_defun([_LT_PATH_MANIFEST_TOOL], 3557238104Sdes[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 3558238104Sdestest -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 3559238104SdesAC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 3560238104Sdes [lt_cv_path_mainfest_tool=no 3561238104Sdes echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3562238104Sdes $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3563238104Sdes cat conftest.err >&AS_MESSAGE_LOG_FD 3564238104Sdes if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3565238104Sdes lt_cv_path_mainfest_tool=yes 3566238104Sdes fi 3567238104Sdes rm -f conftest*]) 3568238104Sdesif test "x$lt_cv_path_mainfest_tool" != xyes; then 3569238104Sdes MANIFEST_TOOL=: 3570238104Sdesfi 3571238104Sdes_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3572238104Sdes])# _LT_PATH_MANIFEST_TOOL 3573238104Sdes 3574238104Sdes 3575238104Sdes# LT_LIB_M 3576238104Sdes# -------- 3577238104Sdes# check for math library 3578238104SdesAC_DEFUN([LT_LIB_M], 3579238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3580238104SdesLIBM= 3581238104Sdescase $host in 3582238104Sdes*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3583238104Sdes # These system don't have libm, or don't need it 3584238104Sdes ;; 3585238104Sdes*-ncr-sysv4.3*) 3586238104Sdes AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 3587238104Sdes AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3588238104Sdes ;; 3589238104Sdes*) 3590238104Sdes AC_CHECK_LIB(m, cos, LIBM="-lm") 3591238104Sdes ;; 3592238104Sdesesac 3593238104SdesAC_SUBST([LIBM]) 3594238104Sdes])# LT_LIB_M 3595238104Sdes 3596238104Sdes# Old name: 3597238104SdesAU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3598238104Sdesdnl aclocal-1.4 backwards compatibility: 3599238104Sdesdnl AC_DEFUN([AC_CHECK_LIBM], []) 3600238104Sdes 3601238104Sdes 3602238104Sdes# _LT_COMPILER_NO_RTTI([TAGNAME]) 3603238104Sdes# ------------------------------- 3604238104Sdesm4_defun([_LT_COMPILER_NO_RTTI], 3605238104Sdes[m4_require([_LT_TAG_COMPILER])dnl 3606238104Sdes 3607238104Sdes_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3608238104Sdes 3609238104Sdesif test "$GCC" = yes; then 3610238104Sdes case $cc_basename in 3611238104Sdes nvcc*) 3612238104Sdes _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3613238104Sdes *) 3614238104Sdes _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3615238104Sdes esac 3616238104Sdes 3617238104Sdes _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3618238104Sdes lt_cv_prog_compiler_rtti_exceptions, 3619238104Sdes [-fno-rtti -fno-exceptions], [], 3620238104Sdes [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3621238104Sdesfi 3622238104Sdes_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3623238104Sdes [Compiler flag to turn off builtin functions]) 3624238104Sdes])# _LT_COMPILER_NO_RTTI 3625238104Sdes 3626238104Sdes 3627238104Sdes# _LT_CMD_GLOBAL_SYMBOLS 3628238104Sdes# ---------------------- 3629238104Sdesm4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3630238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 3631238104SdesAC_REQUIRE([AC_PROG_CC])dnl 3632238104SdesAC_REQUIRE([AC_PROG_AWK])dnl 3633238104SdesAC_REQUIRE([LT_PATH_NM])dnl 3634238104SdesAC_REQUIRE([LT_PATH_LD])dnl 3635238104Sdesm4_require([_LT_DECL_SED])dnl 3636238104Sdesm4_require([_LT_DECL_EGREP])dnl 3637238104Sdesm4_require([_LT_TAG_COMPILER])dnl 3638238104Sdes 3639238104Sdes# Check for command to grab the raw symbol name followed by C symbol from nm. 3640238104SdesAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3641238104SdesAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3642238104Sdes[ 3643238104Sdes# These are sane defaults that work on at least a few old systems. 3644238104Sdes# [They come from Ultrix. What could be older than Ultrix?!! ;)] 3645238104Sdes 3646238104Sdes# Character class describing NM global symbol codes. 3647238104Sdessymcode='[[BCDEGRST]]' 3648238104Sdes 3649238104Sdes# Regexp to match symbols that can be accessed directly from C. 3650238104Sdessympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 3651238104Sdes 3652238104Sdes# Define system-specific variables. 3653238104Sdescase $host_os in 3654238104Sdesaix*) 3655238104Sdes symcode='[[BCDT]]' 3656238104Sdes ;; 3657238104Sdescygwin* | mingw* | pw32* | cegcc*) 3658238104Sdes symcode='[[ABCDGISTW]]' 3659238104Sdes ;; 3660238104Sdeshpux*) 3661238104Sdes if test "$host_cpu" = ia64; then 3662238104Sdes symcode='[[ABCDEGRST]]' 3663238104Sdes fi 3664238104Sdes ;; 3665238104Sdesirix* | nonstopux*) 3666238104Sdes symcode='[[BCDEGRST]]' 3667238104Sdes ;; 3668238104Sdesosf*) 3669238104Sdes symcode='[[BCDEGQRST]]' 3670238104Sdes ;; 3671238104Sdessolaris*) 3672238104Sdes symcode='[[BDRT]]' 3673238104Sdes ;; 3674238104Sdessco3.2v5*) 3675238104Sdes symcode='[[DT]]' 3676238104Sdes ;; 3677238104Sdessysv4.2uw2*) 3678238104Sdes symcode='[[DT]]' 3679238104Sdes ;; 3680238104Sdessysv5* | sco5v6* | unixware* | OpenUNIX*) 3681238104Sdes symcode='[[ABDT]]' 3682238104Sdes ;; 3683238104Sdessysv4) 3684238104Sdes symcode='[[DFNSTU]]' 3685238104Sdes ;; 3686238104Sdesesac 3687238104Sdes 3688238104Sdes# If we're using GNU nm, then use its standard symbol codes. 3689238104Sdescase `$NM -V 2>&1` in 3690238104Sdes*GNU* | *'with BFD'*) 3691238104Sdes symcode='[[ABCDGIRSTW]]' ;; 3692238104Sdesesac 3693238104Sdes 3694238104Sdes# Transform an extracted symbol line into a proper C declaration. 3695238104Sdes# Some systems (esp. on ia64) link data and code symbols differently, 3696238104Sdes# so use this general approach. 3697238104Sdeslt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 3698238104Sdes 3699238104Sdes# Transform an extracted symbol line into symbol name and symbol address 3700238104Sdeslt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" 3701238104Sdeslt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 3702238104Sdes 3703238104Sdes# Handle CRLF in mingw tool chain 3704238104Sdesopt_cr= 3705238104Sdescase $build_os in 3706238104Sdesmingw*) 3707238104Sdes opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 3708238104Sdes ;; 3709238104Sdesesac 3710238104Sdes 3711238104Sdes# Try without a prefix underscore, then with it. 3712238104Sdesfor ac_symprfx in "" "_"; do 3713238104Sdes 3714238104Sdes # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 3715238104Sdes symxfrm="\\1 $ac_symprfx\\2 \\2" 3716238104Sdes 3717238104Sdes # Write the raw and C identifiers. 3718238104Sdes if test "$lt_cv_nm_interface" = "MS dumpbin"; then 3719238104Sdes # Fake it for dumpbin and say T for any non-static function 3720238104Sdes # and D for any global variable. 3721238104Sdes # Also find C++ and __fastcall symbols from MSVC++, 3722238104Sdes # which start with @ or ?. 3723238104Sdes lt_cv_sys_global_symbol_pipe="$AWK ['"\ 3724238104Sdes" {last_section=section; section=\$ 3};"\ 3725238104Sdes" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 3726238104Sdes" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 3727238104Sdes" \$ 0!~/External *\|/{next};"\ 3728238104Sdes" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 3729238104Sdes" {if(hide[section]) next};"\ 3730238104Sdes" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 3731238104Sdes" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 3732238104Sdes" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 3733238104Sdes" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 3734238104Sdes" ' prfx=^$ac_symprfx]" 3735238104Sdes else 3736238104Sdes lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 3737238104Sdes fi 3738238104Sdes lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 3739238104Sdes 3740238104Sdes # Check to see that the pipe works correctly. 3741238104Sdes pipe_works=no 3742238104Sdes 3743238104Sdes rm -f conftest* 3744238104Sdes cat > conftest.$ac_ext <<_LT_EOF 3745238104Sdes#ifdef __cplusplus 3746238104Sdesextern "C" { 3747238104Sdes#endif 3748238104Sdeschar nm_test_var; 3749238104Sdesvoid nm_test_func(void); 3750238104Sdesvoid nm_test_func(void){} 3751238104Sdes#ifdef __cplusplus 3752238104Sdes} 3753238104Sdes#endif 3754238104Sdesint main(){nm_test_var='a';nm_test_func();return(0);} 3755238104Sdes_LT_EOF 3756238104Sdes 3757238104Sdes if AC_TRY_EVAL(ac_compile); then 3758238104Sdes # Now try to grab the symbols. 3759238104Sdes nlist=conftest.nm 3760238104Sdes if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 3761238104Sdes # Try sorting and uniquifying the output. 3762238104Sdes if sort "$nlist" | uniq > "$nlist"T; then 3763238104Sdes mv -f "$nlist"T "$nlist" 3764238104Sdes else 3765238104Sdes rm -f "$nlist"T 3766238104Sdes fi 3767238104Sdes 3768238104Sdes # Make sure that we snagged all the symbols we need. 3769238104Sdes if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 3770238104Sdes if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 3771238104Sdes cat <<_LT_EOF > conftest.$ac_ext 3772238104Sdes/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 3773238104Sdes#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 3774238104Sdes/* DATA imports from DLLs on WIN32 con't be const, because runtime 3775238104Sdes relocations are performed -- see ld's documentation on pseudo-relocs. */ 3776238104Sdes# define LT@&t@_DLSYM_CONST 3777238104Sdes#elif defined(__osf__) 3778238104Sdes/* This system does not cope well with relocations in const data. */ 3779238104Sdes# define LT@&t@_DLSYM_CONST 3780238104Sdes#else 3781238104Sdes# define LT@&t@_DLSYM_CONST const 3782238104Sdes#endif 3783238104Sdes 3784238104Sdes#ifdef __cplusplus 3785238104Sdesextern "C" { 3786238104Sdes#endif 3787238104Sdes 3788238104Sdes_LT_EOF 3789238104Sdes # Now generate the symbol file. 3790238104Sdes eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 3791238104Sdes 3792238104Sdes cat <<_LT_EOF >> conftest.$ac_ext 3793238104Sdes 3794238104Sdes/* The mapping between symbol names and symbols. */ 3795238104SdesLT@&t@_DLSYM_CONST struct { 3796238104Sdes const char *name; 3797238104Sdes void *address; 3798238104Sdes} 3799238104Sdeslt__PROGRAM__LTX_preloaded_symbols[[]] = 3800238104Sdes{ 3801238104Sdes { "@PROGRAM@", (void *) 0 }, 3802238104Sdes_LT_EOF 3803238104Sdes $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 3804238104Sdes cat <<\_LT_EOF >> conftest.$ac_ext 3805238104Sdes {0, (void *) 0} 3806238104Sdes}; 3807238104Sdes 3808238104Sdes/* This works around a problem in FreeBSD linker */ 3809238104Sdes#ifdef FREEBSD_WORKAROUND 3810238104Sdesstatic const void *lt_preloaded_setup() { 3811238104Sdes return lt__PROGRAM__LTX_preloaded_symbols; 3812238104Sdes} 3813238104Sdes#endif 3814238104Sdes 3815238104Sdes#ifdef __cplusplus 3816238104Sdes} 3817238104Sdes#endif 3818238104Sdes_LT_EOF 3819238104Sdes # Now try linking the two files. 3820238104Sdes mv conftest.$ac_objext conftstm.$ac_objext 3821238104Sdes lt_globsym_save_LIBS=$LIBS 3822238104Sdes lt_globsym_save_CFLAGS=$CFLAGS 3823238104Sdes LIBS="conftstm.$ac_objext" 3824238104Sdes CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 3825238104Sdes if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 3826238104Sdes pipe_works=yes 3827238104Sdes fi 3828238104Sdes LIBS=$lt_globsym_save_LIBS 3829238104Sdes CFLAGS=$lt_globsym_save_CFLAGS 3830238104Sdes else 3831238104Sdes echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 3832238104Sdes fi 3833238104Sdes else 3834238104Sdes echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 3835238104Sdes fi 3836238104Sdes else 3837238104Sdes echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 3838238104Sdes fi 3839238104Sdes else 3840238104Sdes echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 3841238104Sdes cat conftest.$ac_ext >&5 3842238104Sdes fi 3843238104Sdes rm -rf conftest* conftst* 3844238104Sdes 3845238104Sdes # Do not use the global_symbol_pipe unless it works. 3846238104Sdes if test "$pipe_works" = yes; then 3847238104Sdes break 3848238104Sdes else 3849238104Sdes lt_cv_sys_global_symbol_pipe= 3850238104Sdes fi 3851238104Sdesdone 3852238104Sdes]) 3853238104Sdesif test -z "$lt_cv_sys_global_symbol_pipe"; then 3854238104Sdes lt_cv_sys_global_symbol_to_cdecl= 3855238104Sdesfi 3856238104Sdesif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 3857238104Sdes AC_MSG_RESULT(failed) 3858238104Sdeselse 3859238104Sdes AC_MSG_RESULT(ok) 3860238104Sdesfi 3861238104Sdes 3862238104Sdes# Response file support. 3863238104Sdesif test "$lt_cv_nm_interface" = "MS dumpbin"; then 3864238104Sdes nm_file_list_spec='@' 3865238104Sdeselif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 3866238104Sdes nm_file_list_spec='@' 3867238104Sdesfi 3868238104Sdes 3869238104Sdes_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 3870238104Sdes [Take the output of nm and produce a listing of raw symbols and C names]) 3871238104Sdes_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 3872238104Sdes [Transform the output of nm in a proper C declaration]) 3873238104Sdes_LT_DECL([global_symbol_to_c_name_address], 3874238104Sdes [lt_cv_sys_global_symbol_to_c_name_address], [1], 3875238104Sdes [Transform the output of nm in a C name address pair]) 3876238104Sdes_LT_DECL([global_symbol_to_c_name_address_lib_prefix], 3877238104Sdes [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 3878238104Sdes [Transform the output of nm in a C name address pair when lib prefix is needed]) 3879238104Sdes_LT_DECL([], [nm_file_list_spec], [1], 3880238104Sdes [Specify filename containing input files for $NM]) 3881238104Sdes]) # _LT_CMD_GLOBAL_SYMBOLS 3882238104Sdes 3883238104Sdes 3884238104Sdes# _LT_COMPILER_PIC([TAGNAME]) 3885238104Sdes# --------------------------- 3886238104Sdesm4_defun([_LT_COMPILER_PIC], 3887238104Sdes[m4_require([_LT_TAG_COMPILER])dnl 3888238104Sdes_LT_TAGVAR(lt_prog_compiler_wl, $1)= 3889238104Sdes_LT_TAGVAR(lt_prog_compiler_pic, $1)= 3890238104Sdes_LT_TAGVAR(lt_prog_compiler_static, $1)= 3891238104Sdes 3892238104Sdesm4_if([$1], [CXX], [ 3893238104Sdes # C++ specific cases for pic, static, wl, etc. 3894238104Sdes if test "$GXX" = yes; then 3895238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 3896238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 3897238104Sdes 3898238104Sdes case $host_os in 3899238104Sdes aix*) 3900238104Sdes # All AIX code is PIC. 3901238104Sdes if test "$host_cpu" = ia64; then 3902238104Sdes # AIX 5 now supports IA64 processor 3903238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3904238104Sdes fi 3905238104Sdes ;; 3906238104Sdes 3907238104Sdes amigaos*) 3908238104Sdes case $host_cpu in 3909238104Sdes powerpc) 3910238104Sdes # see comment about AmigaOS4 .so support 3911238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3912238104Sdes ;; 3913238104Sdes m68k) 3914238104Sdes # FIXME: we need at least 68020 code to build shared libraries, but 3915238104Sdes # adding the `-m68020' flag to GCC prevents building anything better, 3916238104Sdes # like `-m68040'. 3917238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 3918238104Sdes ;; 3919238104Sdes esac 3920238104Sdes ;; 3921238104Sdes 3922238104Sdes beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 3923238104Sdes # PIC is the default for these OSes. 3924238104Sdes ;; 3925238104Sdes mingw* | cygwin* | os2* | pw32* | cegcc*) 3926238104Sdes # This hack is so that the source file can tell whether it is being 3927238104Sdes # built for inclusion in a dll (and should export symbols for example). 3928238104Sdes # Although the cygwin gcc ignores -fPIC, still need this for old-style 3929238104Sdes # (--disable-auto-import) libraries 3930238104Sdes m4_if([$1], [GCJ], [], 3931238104Sdes [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 3932238104Sdes ;; 3933238104Sdes darwin* | rhapsody*) 3934238104Sdes # PIC is the default on this platform 3935238104Sdes # Common symbols not allowed in MH_DYLIB files 3936238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 3937238104Sdes ;; 3938238104Sdes *djgpp*) 3939238104Sdes # DJGPP does not support shared libraries at all 3940238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)= 3941238104Sdes ;; 3942238104Sdes haiku*) 3943238104Sdes # PIC is the default for Haiku. 3944238104Sdes # The "-static" flag exists, but is broken. 3945238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)= 3946238104Sdes ;; 3947238104Sdes interix[[3-9]]*) 3948238104Sdes # Interix 3.x gcc -fpic/-fPIC options generate broken code. 3949238104Sdes # Instead, we relocate shared libraries at runtime. 3950238104Sdes ;; 3951238104Sdes sysv4*MP*) 3952238104Sdes if test -d /usr/nec; then 3953238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 3954238104Sdes fi 3955238104Sdes ;; 3956238104Sdes hpux*) 3957238104Sdes # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 3958238104Sdes # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 3959238104Sdes # sets the default TLS model and affects inlining. 3960238104Sdes case $host_cpu in 3961238104Sdes hppa*64*) 3962238104Sdes ;; 3963238104Sdes *) 3964238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3965238104Sdes ;; 3966238104Sdes esac 3967238104Sdes ;; 3968238104Sdes *qnx* | *nto*) 3969238104Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 3970238104Sdes # it will coredump. 3971238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 3972238104Sdes ;; 3973238104Sdes *) 3974238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 3975238104Sdes ;; 3976238104Sdes esac 3977238104Sdes else 3978238104Sdes case $host_os in 3979238104Sdes aix[[4-9]]*) 3980238104Sdes # All AIX code is PIC. 3981238104Sdes if test "$host_cpu" = ia64; then 3982238104Sdes # AIX 5 now supports IA64 processor 3983238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 3984238104Sdes else 3985238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 3986238104Sdes fi 3987238104Sdes ;; 3988238104Sdes chorus*) 3989238104Sdes case $cc_basename in 3990238104Sdes cxch68*) 3991238104Sdes # Green Hills C++ Compiler 3992238104Sdes # _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" 3993238104Sdes ;; 3994238104Sdes esac 3995238104Sdes ;; 3996238104Sdes mingw* | cygwin* | os2* | pw32* | cegcc*) 3997238104Sdes # This hack is so that the source file can tell whether it is being 3998238104Sdes # built for inclusion in a dll (and should export symbols for example). 3999238104Sdes m4_if([$1], [GCJ], [], 4000238104Sdes [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4001238104Sdes ;; 4002238104Sdes dgux*) 4003238104Sdes case $cc_basename in 4004238104Sdes ec++*) 4005238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4006238104Sdes ;; 4007238104Sdes ghcx*) 4008238104Sdes # Green Hills C++ Compiler 4009238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4010238104Sdes ;; 4011238104Sdes *) 4012238104Sdes ;; 4013238104Sdes esac 4014238104Sdes ;; 4015238104Sdes freebsd* | dragonfly*) 4016238104Sdes # FreeBSD uses GNU C++ 4017238104Sdes ;; 4018238104Sdes hpux9* | hpux10* | hpux11*) 4019238104Sdes case $cc_basename in 4020238104Sdes CC*) 4021238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4022238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4023238104Sdes if test "$host_cpu" != ia64; then 4024238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4025238104Sdes fi 4026238104Sdes ;; 4027238104Sdes aCC*) 4028238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4029238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4030238104Sdes case $host_cpu in 4031238104Sdes hppa*64*|ia64*) 4032238104Sdes # +Z the default 4033238104Sdes ;; 4034238104Sdes *) 4035238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4036238104Sdes ;; 4037238104Sdes esac 4038238104Sdes ;; 4039238104Sdes *) 4040238104Sdes ;; 4041238104Sdes esac 4042238104Sdes ;; 4043238104Sdes interix*) 4044238104Sdes # This is c89, which is MS Visual C++ (no shared libs) 4045238104Sdes # Anyone wants to do a port? 4046238104Sdes ;; 4047238104Sdes irix5* | irix6* | nonstopux*) 4048238104Sdes case $cc_basename in 4049238104Sdes CC*) 4050238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4051238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4052238104Sdes # CC pic flag -KPIC is the default. 4053238104Sdes ;; 4054238104Sdes *) 4055238104Sdes ;; 4056238104Sdes esac 4057238104Sdes ;; 4058238104Sdes linux* | k*bsd*-gnu | kopensolaris*-gnu) 4059238104Sdes case $cc_basename in 4060238104Sdes KCC*) 4061238104Sdes # KAI C++ Compiler 4062238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4063238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4064238104Sdes ;; 4065238104Sdes ecpc* ) 4066238104Sdes # old Intel C++ for x86_64 which still supported -KPIC. 4067238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4068238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4069238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4070238104Sdes ;; 4071238104Sdes icpc* ) 4072238104Sdes # Intel C++, used to be incompatible with GCC. 4073238104Sdes # ICC 10 doesn't accept -KPIC any more. 4074238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4075238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4076238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4077238104Sdes ;; 4078238104Sdes pgCC* | pgcpp*) 4079238104Sdes # Portland Group C++ compiler 4080238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4081238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4082238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4083238104Sdes ;; 4084238104Sdes cxx*) 4085238104Sdes # Compaq C++ 4086238104Sdes # Make sure the PIC flag is empty. It appears that all Alpha 4087238104Sdes # Linux and Compaq Tru64 Unix objects are PIC. 4088238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4089238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4090238104Sdes ;; 4091238104Sdes xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 4092238104Sdes # IBM XL 8.0, 9.0 on PPC and BlueGene 4093238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4094238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4095238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4096238104Sdes ;; 4097238104Sdes *) 4098238104Sdes case `$CC -V 2>&1 | sed 5q` in 4099238104Sdes *Sun\ C*) 4100238104Sdes # Sun C++ 5.9 4101238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4102238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4103238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4104238104Sdes ;; 4105238104Sdes esac 4106238104Sdes ;; 4107238104Sdes esac 4108238104Sdes ;; 4109238104Sdes lynxos*) 4110238104Sdes ;; 4111238104Sdes m88k*) 4112238104Sdes ;; 4113238104Sdes mvs*) 4114238104Sdes case $cc_basename in 4115238104Sdes cxx*) 4116238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4117238104Sdes ;; 4118238104Sdes *) 4119238104Sdes ;; 4120238104Sdes esac 4121238104Sdes ;; 4122238104Sdes netbsd* | netbsdelf*-gnu) 4123238104Sdes ;; 4124238104Sdes *qnx* | *nto*) 4125238104Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 4126238104Sdes # it will coredump. 4127238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4128238104Sdes ;; 4129238104Sdes osf3* | osf4* | osf5*) 4130238104Sdes case $cc_basename in 4131238104Sdes KCC*) 4132238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4133238104Sdes ;; 4134238104Sdes RCC*) 4135238104Sdes # Rational C++ 2.4.1 4136238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4137238104Sdes ;; 4138238104Sdes cxx*) 4139238104Sdes # Digital/Compaq C++ 4140238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4141238104Sdes # Make sure the PIC flag is empty. It appears that all Alpha 4142238104Sdes # Linux and Compaq Tru64 Unix objects are PIC. 4143238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4144238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4145238104Sdes ;; 4146238104Sdes *) 4147238104Sdes ;; 4148238104Sdes esac 4149238104Sdes ;; 4150238104Sdes psos*) 4151238104Sdes ;; 4152238104Sdes solaris*) 4153238104Sdes case $cc_basename in 4154238104Sdes CC* | sunCC*) 4155238104Sdes # Sun C++ 4.2, 5.x and Centerline C++ 4156238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4157238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4158238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4159238104Sdes ;; 4160238104Sdes gcx*) 4161238104Sdes # Green Hills C++ Compiler 4162238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4163238104Sdes ;; 4164238104Sdes *) 4165238104Sdes ;; 4166238104Sdes esac 4167238104Sdes ;; 4168238104Sdes sunos4*) 4169238104Sdes case $cc_basename in 4170238104Sdes CC*) 4171238104Sdes # Sun C++ 4.x 4172238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4173238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4174238104Sdes ;; 4175238104Sdes lcc*) 4176238104Sdes # Lucid 4177238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4178238104Sdes ;; 4179238104Sdes *) 4180238104Sdes ;; 4181238104Sdes esac 4182238104Sdes ;; 4183238104Sdes sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4184238104Sdes case $cc_basename in 4185238104Sdes CC*) 4186238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4187238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4188238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4189238104Sdes ;; 4190238104Sdes esac 4191238104Sdes ;; 4192238104Sdes tandem*) 4193238104Sdes case $cc_basename in 4194238104Sdes NCC*) 4195238104Sdes # NonStop-UX NCC 3.20 4196238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4197238104Sdes ;; 4198238104Sdes *) 4199238104Sdes ;; 4200238104Sdes esac 4201238104Sdes ;; 4202238104Sdes vxworks*) 4203238104Sdes ;; 4204238104Sdes *) 4205238104Sdes _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4206238104Sdes ;; 4207238104Sdes esac 4208238104Sdes fi 4209238104Sdes], 4210238104Sdes[ 4211238104Sdes if test "$GCC" = yes; then 4212238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4213238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4214238104Sdes 4215238104Sdes case $host_os in 4216238104Sdes aix*) 4217238104Sdes # All AIX code is PIC. 4218238104Sdes if test "$host_cpu" = ia64; then 4219238104Sdes # AIX 5 now supports IA64 processor 4220238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4221238104Sdes fi 4222238104Sdes ;; 4223238104Sdes 4224238104Sdes amigaos*) 4225238104Sdes case $host_cpu in 4226238104Sdes powerpc) 4227238104Sdes # see comment about AmigaOS4 .so support 4228238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4229238104Sdes ;; 4230238104Sdes m68k) 4231238104Sdes # FIXME: we need at least 68020 code to build shared libraries, but 4232238104Sdes # adding the `-m68020' flag to GCC prevents building anything better, 4233238104Sdes # like `-m68040'. 4234238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4235238104Sdes ;; 4236238104Sdes esac 4237238104Sdes ;; 4238238104Sdes 4239238104Sdes beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4240238104Sdes # PIC is the default for these OSes. 4241238104Sdes ;; 4242238104Sdes 4243238104Sdes mingw* | cygwin* | pw32* | os2* | cegcc*) 4244238104Sdes # This hack is so that the source file can tell whether it is being 4245238104Sdes # built for inclusion in a dll (and should export symbols for example). 4246238104Sdes # Although the cygwin gcc ignores -fPIC, still need this for old-style 4247238104Sdes # (--disable-auto-import) libraries 4248238104Sdes m4_if([$1], [GCJ], [], 4249238104Sdes [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4250238104Sdes ;; 4251238104Sdes 4252238104Sdes darwin* | rhapsody*) 4253238104Sdes # PIC is the default on this platform 4254238104Sdes # Common symbols not allowed in MH_DYLIB files 4255238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4256238104Sdes ;; 4257238104Sdes 4258238104Sdes haiku*) 4259238104Sdes # PIC is the default for Haiku. 4260238104Sdes # The "-static" flag exists, but is broken. 4261238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)= 4262238104Sdes ;; 4263238104Sdes 4264238104Sdes hpux*) 4265238104Sdes # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4266238104Sdes # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4267238104Sdes # sets the default TLS model and affects inlining. 4268238104Sdes case $host_cpu in 4269238104Sdes hppa*64*) 4270238104Sdes # +Z the default 4271238104Sdes ;; 4272238104Sdes *) 4273238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4274238104Sdes ;; 4275238104Sdes esac 4276238104Sdes ;; 4277238104Sdes 4278238104Sdes interix[[3-9]]*) 4279238104Sdes # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4280238104Sdes # Instead, we relocate shared libraries at runtime. 4281238104Sdes ;; 4282238104Sdes 4283238104Sdes msdosdjgpp*) 4284238104Sdes # Just because we use GCC doesn't mean we suddenly get shared libraries 4285238104Sdes # on systems that don't support them. 4286238104Sdes _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4287238104Sdes enable_shared=no 4288238104Sdes ;; 4289238104Sdes 4290238104Sdes *nto* | *qnx*) 4291238104Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 4292238104Sdes # it will coredump. 4293238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4294238104Sdes ;; 4295238104Sdes 4296238104Sdes sysv4*MP*) 4297238104Sdes if test -d /usr/nec; then 4298238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4299238104Sdes fi 4300238104Sdes ;; 4301238104Sdes 4302238104Sdes *) 4303238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4304238104Sdes ;; 4305238104Sdes esac 4306238104Sdes 4307238104Sdes case $cc_basename in 4308238104Sdes nvcc*) # Cuda Compiler Driver 2.2 4309238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4310238104Sdes if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4311238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 4312238104Sdes fi 4313238104Sdes ;; 4314238104Sdes esac 4315238104Sdes else 4316238104Sdes # PORTME Check for flag to pass linker flags through the system compiler. 4317238104Sdes case $host_os in 4318238104Sdes aix*) 4319238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4320238104Sdes if test "$host_cpu" = ia64; then 4321238104Sdes # AIX 5 now supports IA64 processor 4322238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4323238104Sdes else 4324238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4325238104Sdes fi 4326238104Sdes ;; 4327238104Sdes 4328238104Sdes mingw* | cygwin* | pw32* | os2* | cegcc*) 4329238104Sdes # This hack is so that the source file can tell whether it is being 4330238104Sdes # built for inclusion in a dll (and should export symbols for example). 4331238104Sdes m4_if([$1], [GCJ], [], 4332238104Sdes [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4333238104Sdes ;; 4334238104Sdes 4335238104Sdes hpux9* | hpux10* | hpux11*) 4336238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4337238104Sdes # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4338238104Sdes # not for PA HP-UX. 4339238104Sdes case $host_cpu in 4340238104Sdes hppa*64*|ia64*) 4341238104Sdes # +Z the default 4342238104Sdes ;; 4343238104Sdes *) 4344238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4345238104Sdes ;; 4346238104Sdes esac 4347238104Sdes # Is there a better lt_prog_compiler_static that works with the bundled CC? 4348238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4349238104Sdes ;; 4350238104Sdes 4351238104Sdes irix5* | irix6* | nonstopux*) 4352238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4353238104Sdes # PIC (with -KPIC) is the default. 4354238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4355238104Sdes ;; 4356238104Sdes 4357238104Sdes linux* | k*bsd*-gnu | kopensolaris*-gnu) 4358238104Sdes case $cc_basename in 4359238104Sdes # old Intel for x86_64 which still supported -KPIC. 4360238104Sdes ecc*) 4361238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4362238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4363238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4364238104Sdes ;; 4365238104Sdes # icc used to be incompatible with GCC. 4366238104Sdes # ICC 10 doesn't accept -KPIC any more. 4367238104Sdes icc* | ifort*) 4368238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4369238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4370238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4371238104Sdes ;; 4372238104Sdes # Lahey Fortran 8.1. 4373238104Sdes lf95*) 4374238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4375238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4376238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4377238104Sdes ;; 4378238104Sdes nagfor*) 4379238104Sdes # NAG Fortran compiler 4380238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4381238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4382238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4383238104Sdes ;; 4384238104Sdes pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4385238104Sdes # Portland Group compilers (*not* the Pentium gcc compiler, 4386238104Sdes # which looks to be a dead project) 4387238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4388238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4389238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4390238104Sdes ;; 4391238104Sdes ccc*) 4392238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4393238104Sdes # All Alpha code is PIC. 4394238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4395238104Sdes ;; 4396238104Sdes xl* | bgxl* | bgf* | mpixl*) 4397238104Sdes # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 4398238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4399238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4400238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4401238104Sdes ;; 4402238104Sdes *) 4403238104Sdes case `$CC -V 2>&1 | sed 5q` in 4404238104Sdes *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 4405238104Sdes # Sun Fortran 8.3 passes all unrecognized flags to the linker 4406238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4407238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4408238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4409238104Sdes ;; 4410238104Sdes *Sun\ F* | *Sun*Fortran*) 4411238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4412238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4413238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4414238104Sdes ;; 4415238104Sdes *Sun\ C*) 4416238104Sdes # Sun C 5.9 4417238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4418238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4419238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4420238104Sdes ;; 4421238104Sdes *Intel*\ [[CF]]*Compiler*) 4422238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4423238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4424238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4425238104Sdes ;; 4426238104Sdes *Portland\ Group*) 4427238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4428238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4429238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4430238104Sdes ;; 4431238104Sdes esac 4432238104Sdes ;; 4433238104Sdes esac 4434238104Sdes ;; 4435238104Sdes 4436238104Sdes newsos6) 4437238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4438238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4439238104Sdes ;; 4440238104Sdes 4441238104Sdes *nto* | *qnx*) 4442238104Sdes # QNX uses GNU C++, but need to define -shared option too, otherwise 4443238104Sdes # it will coredump. 4444238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4445238104Sdes ;; 4446238104Sdes 4447238104Sdes osf3* | osf4* | osf5*) 4448238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4449238104Sdes # All OSF/1 code is PIC. 4450238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4451238104Sdes ;; 4452238104Sdes 4453238104Sdes rdos*) 4454238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4455238104Sdes ;; 4456238104Sdes 4457238104Sdes solaris*) 4458238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4459238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4460238104Sdes case $cc_basename in 4461238104Sdes f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 4462238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4463238104Sdes *) 4464238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4465238104Sdes esac 4466238104Sdes ;; 4467238104Sdes 4468238104Sdes sunos4*) 4469238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4470238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4471238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4472238104Sdes ;; 4473238104Sdes 4474238104Sdes sysv4 | sysv4.2uw2* | sysv4.3*) 4475238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4476238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4477238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4478238104Sdes ;; 4479238104Sdes 4480238104Sdes sysv4*MP*) 4481238104Sdes if test -d /usr/nec ;then 4482238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4483238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4484238104Sdes fi 4485238104Sdes ;; 4486238104Sdes 4487238104Sdes sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4488238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4489238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4490238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4491238104Sdes ;; 4492238104Sdes 4493238104Sdes unicos*) 4494238104Sdes _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4495238104Sdes _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4496238104Sdes ;; 4497238104Sdes 4498238104Sdes uts4*) 4499238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4500238104Sdes _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4501238104Sdes ;; 4502238104Sdes 4503238104Sdes *) 4504238104Sdes _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4505238104Sdes ;; 4506238104Sdes esac 4507238104Sdes fi 4508238104Sdes]) 4509238104Sdescase $host_os in 4510238104Sdes # For platforms which do not support PIC, -DPIC is meaningless: 4511238104Sdes *djgpp*) 4512238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4513238104Sdes ;; 4514238104Sdes *) 4515238104Sdes _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4516238104Sdes ;; 4517238104Sdesesac 4518238104Sdes 4519238104SdesAC_CACHE_CHECK([for $compiler option to produce PIC], 4520238104Sdes [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 4521238104Sdes [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4522238104Sdes_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 4523238104Sdes 4524238104Sdes# 4525238104Sdes# Check to make sure the PIC flag actually works. 4526238104Sdes# 4527238104Sdesif test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4528238104Sdes _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4529238104Sdes [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4530238104Sdes [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4531238104Sdes [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4532238104Sdes "" | " "*) ;; 4533238104Sdes *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4534238104Sdes esac], 4535238104Sdes [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4536238104Sdes _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4537238104Sdesfi 4538238104Sdes_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4539238104Sdes [Additional compiler flags for building library objects]) 4540238104Sdes 4541238104Sdes_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4542238104Sdes [How to pass a linker flag through the compiler]) 4543238104Sdes# 4544238104Sdes# Check to make sure the static flag actually works. 4545238104Sdes# 4546238104Sdeswl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4547238104Sdes_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4548238104Sdes _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4549238104Sdes $lt_tmp_static_flag, 4550238104Sdes [], 4551238104Sdes [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4552238104Sdes_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4553238104Sdes [Compiler flag to prevent dynamic linking]) 4554238104Sdes])# _LT_COMPILER_PIC 4555238104Sdes 4556238104Sdes 4557238104Sdes# _LT_LINKER_SHLIBS([TAGNAME]) 4558238104Sdes# ---------------------------- 4559238104Sdes# See if the linker supports building shared libraries. 4560238104Sdesm4_defun([_LT_LINKER_SHLIBS], 4561238104Sdes[AC_REQUIRE([LT_PATH_LD])dnl 4562238104SdesAC_REQUIRE([LT_PATH_NM])dnl 4563238104Sdesm4_require([_LT_PATH_MANIFEST_TOOL])dnl 4564238104Sdesm4_require([_LT_FILEUTILS_DEFAULTS])dnl 4565238104Sdesm4_require([_LT_DECL_EGREP])dnl 4566238104Sdesm4_require([_LT_DECL_SED])dnl 4567238104Sdesm4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4568238104Sdesm4_require([_LT_TAG_COMPILER])dnl 4569238104SdesAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4570238104Sdesm4_if([$1], [CXX], [ 4571238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4572238104Sdes _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4573238104Sdes case $host_os in 4574238104Sdes aix[[4-9]]*) 4575238104Sdes # If we're using GNU nm, then we don't want the "-C" option. 4576238104Sdes # -C means demangle to AIX nm, but means don't demangle with GNU nm 4577238104Sdes # Also, AIX nm treats weak defined symbols like other global defined 4578238104Sdes # symbols, whereas GNU nm marks them as "W". 4579238104Sdes if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 4580238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4581238104Sdes else 4582238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 4583238104Sdes fi 4584238104Sdes ;; 4585238104Sdes pw32*) 4586238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 4587238104Sdes ;; 4588238104Sdes cygwin* | mingw* | cegcc*) 4589238104Sdes case $cc_basename in 4590238104Sdes cl*) 4591238104Sdes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 4592238104Sdes ;; 4593238104Sdes *) 4594238104Sdes _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' 4595238104Sdes _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4596238104Sdes ;; 4597238104Sdes esac 4598238104Sdes ;; 4599238104Sdes linux* | k*bsd*-gnu | gnu*) 4600238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=no 4601238104Sdes ;; 4602238104Sdes *) 4603238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4604238104Sdes ;; 4605238104Sdes esac 4606238104Sdes], [ 4607238104Sdes runpath_var= 4608238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)= 4609238104Sdes _LT_TAGVAR(always_export_symbols, $1)=no 4610238104Sdes _LT_TAGVAR(archive_cmds, $1)= 4611238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)= 4612238104Sdes _LT_TAGVAR(compiler_needs_object, $1)=no 4613238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 4614238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4615238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4616238104Sdes _LT_TAGVAR(hardcode_automatic, $1)=no 4617238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 4618238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=no 4619238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4620238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)= 4621238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=no 4622238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 4623238104Sdes _LT_TAGVAR(inherit_rpath, $1)=no 4624238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=unknown 4625238104Sdes _LT_TAGVAR(module_cmds, $1)= 4626238104Sdes _LT_TAGVAR(module_expsym_cmds, $1)= 4627238104Sdes _LT_TAGVAR(old_archive_from_new_cmds, $1)= 4628238104Sdes _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 4629238104Sdes _LT_TAGVAR(thread_safe_flag_spec, $1)= 4630238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)= 4631238104Sdes # include_expsyms should be a list of space-separated symbols to be *always* 4632238104Sdes # included in the symbol list 4633238104Sdes _LT_TAGVAR(include_expsyms, $1)= 4634238104Sdes # exclude_expsyms can be an extended regexp of symbols to exclude 4635238104Sdes # it will be wrapped by ` (' and `)$', so one must not match beginning or 4636238104Sdes # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 4637238104Sdes # as well as any symbol that contains `d'. 4638238104Sdes _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 4639238104Sdes # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 4640238104Sdes # platforms (ab)use it in PIC code, but their linkers get confused if 4641238104Sdes # the symbol is explicitly referenced. Since portable code cannot 4642238104Sdes # rely on this symbol name, it's probably fine to never include it in 4643238104Sdes # preloaded symbol tables. 4644238104Sdes # Exclude shared library initialization/finalization symbols. 4645238104Sdesdnl Note also adjust exclude_expsyms for C++ above. 4646238104Sdes extract_expsyms_cmds= 4647238104Sdes 4648238104Sdes case $host_os in 4649238104Sdes cygwin* | mingw* | pw32* | cegcc*) 4650238104Sdes # FIXME: the MSVC++ port hasn't been tested in a loooong time 4651238104Sdes # When not using gcc, we currently assume that we are using 4652238104Sdes # Microsoft Visual C++. 4653238104Sdes if test "$GCC" != yes; then 4654238104Sdes with_gnu_ld=no 4655238104Sdes fi 4656238104Sdes ;; 4657238104Sdes interix*) 4658238104Sdes # we just hope/assume this is gcc and not c89 (= MSVC++) 4659238104Sdes with_gnu_ld=yes 4660238104Sdes ;; 4661238104Sdes openbsd*) 4662238104Sdes with_gnu_ld=no 4663238104Sdes ;; 4664238104Sdes linux* | k*bsd*-gnu | gnu*) 4665238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=no 4666238104Sdes ;; 4667238104Sdes esac 4668238104Sdes 4669238104Sdes _LT_TAGVAR(ld_shlibs, $1)=yes 4670238104Sdes 4671238104Sdes # On some targets, GNU ld is compatible enough with the native linker 4672238104Sdes # that we're better off using the native interface for both. 4673238104Sdes lt_use_gnu_ld_interface=no 4674238104Sdes if test "$with_gnu_ld" = yes; then 4675238104Sdes case $host_os in 4676238104Sdes aix*) 4677238104Sdes # The AIX port of GNU ld has always aspired to compatibility 4678238104Sdes # with the native linker. However, as the warning in the GNU ld 4679238104Sdes # block says, versions before 2.19.5* couldn't really create working 4680238104Sdes # shared libraries, regardless of the interface used. 4681238104Sdes case `$LD -v 2>&1` in 4682238104Sdes *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 4683238104Sdes *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 4684238104Sdes *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 4685238104Sdes *) 4686238104Sdes lt_use_gnu_ld_interface=yes 4687238104Sdes ;; 4688238104Sdes esac 4689238104Sdes ;; 4690238104Sdes *) 4691238104Sdes lt_use_gnu_ld_interface=yes 4692238104Sdes ;; 4693238104Sdes esac 4694238104Sdes fi 4695238104Sdes 4696238104Sdes if test "$lt_use_gnu_ld_interface" = yes; then 4697238104Sdes # If archive_cmds runs LD, not CC, wlarc should be empty 4698238104Sdes wlarc='${wl}' 4699238104Sdes 4700238104Sdes # Set some defaults for GNU ld with shared library support. These 4701238104Sdes # are reset later if shared libraries are not supported. Putting them 4702238104Sdes # here allows them to be overridden if necessary. 4703238104Sdes runpath_var=LD_RUN_PATH 4704238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4705238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4706238104Sdes # ancient GNU ld didn't support --whole-archive et. al. 4707238104Sdes if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 4708238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 4709238104Sdes else 4710238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)= 4711238104Sdes fi 4712238104Sdes supports_anon_versioning=no 4713238104Sdes case `$LD -v 2>&1` in 4714238104Sdes *GNU\ gold*) supports_anon_versioning=yes ;; 4715238104Sdes *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 4716238104Sdes *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 4717238104Sdes *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 4718238104Sdes *\ 2.11.*) ;; # other 2.11 versions 4719238104Sdes *) supports_anon_versioning=yes ;; 4720238104Sdes esac 4721238104Sdes 4722238104Sdes # See if GNU ld supports shared libraries. 4723238104Sdes case $host_os in 4724238104Sdes aix[[3-9]]*) 4725238104Sdes # On AIX/PPC, the GNU linker is very broken 4726238104Sdes if test "$host_cpu" != ia64; then 4727238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4728238104Sdes cat <<_LT_EOF 1>&2 4729238104Sdes 4730238104Sdes*** Warning: the GNU linker, at least up to release 2.19, is reported 4731238104Sdes*** to be unable to reliably create shared libraries on AIX. 4732238104Sdes*** Therefore, libtool is disabling shared libraries support. If you 4733238104Sdes*** really care for shared libraries, you may want to install binutils 4734238104Sdes*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 4735238104Sdes*** You will then need to restart the configuration process. 4736238104Sdes 4737238104Sdes_LT_EOF 4738238104Sdes fi 4739238104Sdes ;; 4740238104Sdes 4741238104Sdes amigaos*) 4742238104Sdes case $host_cpu in 4743238104Sdes powerpc) 4744238104Sdes # see comment about AmigaOS4 .so support 4745238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4746238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='' 4747238104Sdes ;; 4748238104Sdes m68k) 4749238104Sdes _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)' 4750238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4751238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 4752238104Sdes ;; 4753238104Sdes esac 4754238104Sdes ;; 4755238104Sdes 4756238104Sdes beos*) 4757238104Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4758238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4759238104Sdes # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 4760238104Sdes # support --undefined. This deserves some investigation. FIXME 4761238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4762238104Sdes else 4763238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4764238104Sdes fi 4765238104Sdes ;; 4766238104Sdes 4767238104Sdes cygwin* | mingw* | pw32* | cegcc*) 4768238104Sdes # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 4769238104Sdes # as there is no search path for DLLs. 4770238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 4771238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 4772238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4773238104Sdes _LT_TAGVAR(always_export_symbols, $1)=no 4774238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 4775238104Sdes _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' 4776238104Sdes _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 4777238104Sdes 4778238104Sdes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 4779238104Sdes _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' 4780238104Sdes # If the export-symbols file already is a .def file (1st line 4781238104Sdes # is EXPORTS), use it as is; otherwise, prepend... 4782238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 4783238104Sdes cp $export_symbols $output_objdir/$soname.def; 4784238104Sdes else 4785238104Sdes echo EXPORTS > $output_objdir/$soname.def; 4786238104Sdes cat $export_symbols >> $output_objdir/$soname.def; 4787238104Sdes fi~ 4788238104Sdes $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 4789238104Sdes else 4790238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4791238104Sdes fi 4792238104Sdes ;; 4793238104Sdes 4794238104Sdes haiku*) 4795238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4796238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 4797238104Sdes ;; 4798238104Sdes 4799238104Sdes interix[[3-9]]*) 4800238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 4801238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4802238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4803238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 4804238104Sdes # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 4805238104Sdes # Instead, shared libraries are loaded at an image base (0x10000000 by 4806238104Sdes # default) and relocated if they conflict, which is a slow very memory 4807238104Sdes # consuming and fragmenting process. To avoid this, we pick a random, 4808238104Sdes # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 4809238104Sdes # time. Moving up from 0x10000000 also allows more sbrk(2) space. 4810238104Sdes _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' 4811238104Sdes _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' 4812238104Sdes ;; 4813238104Sdes 4814238104Sdes gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 4815238104Sdes tmp_diet=no 4816238104Sdes if test "$host_os" = linux-dietlibc; then 4817238104Sdes case $cc_basename in 4818238104Sdes diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 4819238104Sdes esac 4820238104Sdes fi 4821238104Sdes if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 4822238104Sdes && test "$tmp_diet" = no 4823238104Sdes then 4824238104Sdes tmp_addflag=' $pic_flag' 4825238104Sdes tmp_sharedflag='-shared' 4826238104Sdes case $cc_basename,$host_cpu in 4827238104Sdes pgcc*) # Portland Group C compiler 4828238104Sdes _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' 4829238104Sdes tmp_addflag=' $pic_flag' 4830238104Sdes ;; 4831238104Sdes pgf77* | pgf90* | pgf95* | pgfortran*) 4832238104Sdes # Portland Group f77 and f90 compilers 4833238104Sdes _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' 4834238104Sdes tmp_addflag=' $pic_flag -Mnomain' ;; 4835238104Sdes ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 4836238104Sdes tmp_addflag=' -i_dynamic' ;; 4837238104Sdes efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 4838238104Sdes tmp_addflag=' -i_dynamic -nofor_main' ;; 4839238104Sdes ifc* | ifort*) # Intel Fortran compiler 4840238104Sdes tmp_addflag=' -nofor_main' ;; 4841238104Sdes lf95*) # Lahey Fortran 8.1 4842238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)= 4843238104Sdes tmp_sharedflag='--shared' ;; 4844238104Sdes xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 4845238104Sdes tmp_sharedflag='-qmkshrobj' 4846238104Sdes tmp_addflag= ;; 4847238104Sdes nvcc*) # Cuda Compiler Driver 2.2 4848238104Sdes _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' 4849238104Sdes _LT_TAGVAR(compiler_needs_object, $1)=yes 4850238104Sdes ;; 4851238104Sdes esac 4852238104Sdes case `$CC -V 2>&1 | sed 5q` in 4853238104Sdes *Sun\ C*) # Sun C 5.9 4854238104Sdes _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' 4855238104Sdes _LT_TAGVAR(compiler_needs_object, $1)=yes 4856238104Sdes tmp_sharedflag='-G' ;; 4857238104Sdes *Sun\ F*) # Sun Fortran 8.3 4858238104Sdes tmp_sharedflag='-G' ;; 4859238104Sdes esac 4860238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4861238104Sdes 4862238104Sdes if test "x$supports_anon_versioning" = xyes; then 4863238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4864238104Sdes cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4865238104Sdes echo "local: *; };" >> $output_objdir/$libname.ver~ 4866238104Sdes $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 4867238104Sdes fi 4868238104Sdes 4869238104Sdes case $cc_basename in 4870238104Sdes xlf* | bgf* | bgxlf* | mpixlf*) 4871238104Sdes # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 4872238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 4873238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4874238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 4875238104Sdes if test "x$supports_anon_versioning" = xyes; then 4876238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 4877238104Sdes cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 4878238104Sdes echo "local: *; };" >> $output_objdir/$libname.ver~ 4879238104Sdes $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 4880238104Sdes fi 4881238104Sdes ;; 4882238104Sdes esac 4883238104Sdes else 4884238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4885238104Sdes fi 4886238104Sdes ;; 4887238104Sdes 4888238104Sdes netbsd* | netbsdelf*-gnu) 4889238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 4890238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 4891238104Sdes wlarc= 4892238104Sdes else 4893238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4894238104Sdes _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' 4895238104Sdes fi 4896238104Sdes ;; 4897238104Sdes 4898238104Sdes solaris*) 4899238104Sdes if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 4900238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4901238104Sdes cat <<_LT_EOF 1>&2 4902238104Sdes 4903238104Sdes*** Warning: The releases 2.8.* of the GNU linker cannot reliably 4904238104Sdes*** create shared libraries on Solaris systems. Therefore, libtool 4905238104Sdes*** is disabling shared libraries support. We urge you to upgrade GNU 4906238104Sdes*** binutils to release 2.9.1 or newer. Another option is to modify 4907238104Sdes*** your PATH or compiler configuration so that the native linker is 4908238104Sdes*** used, and then restart. 4909238104Sdes 4910238104Sdes_LT_EOF 4911238104Sdes elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4912238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4913238104Sdes _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' 4914238104Sdes else 4915238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4916238104Sdes fi 4917238104Sdes ;; 4918238104Sdes 4919238104Sdes sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 4920238104Sdes case `$LD -v 2>&1` in 4921238104Sdes *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 4922238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4923238104Sdes cat <<_LT_EOF 1>&2 4924238104Sdes 4925238104Sdes*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 4926238104Sdes*** reliably create shared libraries on SCO systems. Therefore, libtool 4927238104Sdes*** is disabling shared libraries support. We urge you to upgrade GNU 4928238104Sdes*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 4929238104Sdes*** your PATH or compiler configuration so that the native linker is 4930238104Sdes*** used, and then restart. 4931238104Sdes 4932238104Sdes_LT_EOF 4933238104Sdes ;; 4934238104Sdes *) 4935238104Sdes # For security reasons, it is highly recommended that you always 4936238104Sdes # use absolute paths for naming shared libraries, and exclude the 4937238104Sdes # DT_RUNPATH tag from executables and libraries. But doing so 4938238104Sdes # requires that you compile everything twice, which is a pain. 4939238104Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4940238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4941238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4942238104Sdes _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' 4943238104Sdes else 4944238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4945238104Sdes fi 4946238104Sdes ;; 4947238104Sdes esac 4948238104Sdes ;; 4949238104Sdes 4950238104Sdes sunos4*) 4951238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 4952238104Sdes wlarc= 4953238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 4954238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 4955238104Sdes ;; 4956238104Sdes 4957238104Sdes *) 4958238104Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 4959238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 4960238104Sdes _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' 4961238104Sdes else 4962238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 4963238104Sdes fi 4964238104Sdes ;; 4965238104Sdes esac 4966238104Sdes 4967238104Sdes if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then 4968238104Sdes runpath_var= 4969238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 4970238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)= 4971238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)= 4972238104Sdes fi 4973238104Sdes else 4974238104Sdes # PORTME fill in a description of your system's linker (not GNU ld) 4975238104Sdes case $host_os in 4976238104Sdes aix3*) 4977238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 4978238104Sdes _LT_TAGVAR(always_export_symbols, $1)=yes 4979238104Sdes _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' 4980238104Sdes # Note: this linker hardcodes the directories in LIBPATH if there 4981238104Sdes # are no directories specified by -L. 4982238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 4983238104Sdes if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 4984238104Sdes # Neither direct hardcoding nor static linking is supported with a 4985238104Sdes # broken collect2. 4986238104Sdes _LT_TAGVAR(hardcode_direct, $1)=unsupported 4987238104Sdes fi 4988238104Sdes ;; 4989238104Sdes 4990238104Sdes aix[[4-9]]*) 4991238104Sdes if test "$host_cpu" = ia64; then 4992238104Sdes # On IA64, the linker does run time linking by default, so we don't 4993238104Sdes # have to do anything special. 4994238104Sdes aix_use_runtimelinking=no 4995238104Sdes exp_sym_flag='-Bexport' 4996238104Sdes no_entry_flag="" 4997238104Sdes else 4998238104Sdes # If we're using GNU nm, then we don't want the "-C" option. 4999238104Sdes # -C means demangle to AIX nm, but means don't demangle with GNU nm 5000238104Sdes # Also, AIX nm treats weak defined symbols like other global 5001238104Sdes # defined symbols, whereas GNU nm marks them as "W". 5002238104Sdes if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5003238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5004238104Sdes else 5005238104Sdes _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 5006238104Sdes fi 5007238104Sdes aix_use_runtimelinking=no 5008238104Sdes 5009238104Sdes # Test if we are trying to use run time linking or normal 5010238104Sdes # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5011238104Sdes # need to do runtime linking. 5012238104Sdes case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5013238104Sdes for ld_flag in $LDFLAGS; do 5014238104Sdes if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5015238104Sdes aix_use_runtimelinking=yes 5016238104Sdes break 5017238104Sdes fi 5018238104Sdes done 5019238104Sdes ;; 5020238104Sdes esac 5021238104Sdes 5022238104Sdes exp_sym_flag='-bexport' 5023238104Sdes no_entry_flag='-bnoentry' 5024238104Sdes fi 5025238104Sdes 5026238104Sdes # When large executables or shared objects are built, AIX ld can 5027238104Sdes # have problems creating the table of contents. If linking a library 5028238104Sdes # or program results in "error TOC overflow" add -mminimal-toc to 5029238104Sdes # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5030238104Sdes # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5031238104Sdes 5032238104Sdes _LT_TAGVAR(archive_cmds, $1)='' 5033238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5034238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5035238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5036238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 5037238104Sdes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 5038238104Sdes 5039238104Sdes if test "$GCC" = yes; then 5040238104Sdes case $host_os in aix4.[[012]]|aix4.[[012]].*) 5041238104Sdes # We only want to do this on AIX 4.2 and lower, the check 5042238104Sdes # below for broken collect2 doesn't work under 4.3+ 5043238104Sdes collect2name=`${CC} -print-prog-name=collect2` 5044238104Sdes if test -f "$collect2name" && 5045238104Sdes strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5046238104Sdes then 5047238104Sdes # We have reworked collect2 5048238104Sdes : 5049238104Sdes else 5050238104Sdes # We have old collect2 5051238104Sdes _LT_TAGVAR(hardcode_direct, $1)=unsupported 5052238104Sdes # It fails to find uninstalled libraries when the uninstalled 5053238104Sdes # path is not listed in the libpath. Setting hardcode_minus_L 5054238104Sdes # to unsupported forces relinking 5055238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5056238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5057238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)= 5058238104Sdes fi 5059238104Sdes ;; 5060238104Sdes esac 5061238104Sdes shared_flag='-shared' 5062238104Sdes if test "$aix_use_runtimelinking" = yes; then 5063238104Sdes shared_flag="$shared_flag "'${wl}-G' 5064238104Sdes fi 5065238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=no 5066238104Sdes else 5067238104Sdes # not using gcc 5068238104Sdes if test "$host_cpu" = ia64; then 5069238104Sdes # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5070238104Sdes # chokes on -Wl,-G. The following line is correct: 5071238104Sdes shared_flag='-G' 5072238104Sdes else 5073238104Sdes if test "$aix_use_runtimelinking" = yes; then 5074238104Sdes shared_flag='${wl}-G' 5075238104Sdes else 5076238104Sdes shared_flag='${wl}-bM:SRE' 5077238104Sdes fi 5078238104Sdes fi 5079238104Sdes fi 5080238104Sdes 5081238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 5082238104Sdes # It seems that -bexpall does not export symbols beginning with 5083238104Sdes # underscore (_), so it is better to generate a list of symbols to export. 5084238104Sdes _LT_TAGVAR(always_export_symbols, $1)=yes 5085238104Sdes if test "$aix_use_runtimelinking" = yes; then 5086238104Sdes # Warning - without using the other runtime loading flags (-brtl), 5087238104Sdes # -berok will link without error, but may produce a broken library. 5088238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5089238104Sdes # Determine the default libpath from the value encoded in an 5090238104Sdes # empty executable. 5091238104Sdes _LT_SYS_MODULE_PATH_AIX([$1]) 5092238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5093238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5094238104Sdes else 5095238104Sdes if test "$host_cpu" = ia64; then 5096238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5097238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5098238104Sdes _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" 5099238104Sdes else 5100238104Sdes # Determine the default libpath from the value encoded in an 5101238104Sdes # empty executable. 5102238104Sdes _LT_SYS_MODULE_PATH_AIX([$1]) 5103238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5104238104Sdes # Warning - without using the other run time loading flags, 5105238104Sdes # -berok will link without error, but may produce a broken library. 5106238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5107238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5108238104Sdes if test "$with_gnu_ld" = yes; then 5109238104Sdes # We only use this code for GNU lds that support --whole-archive. 5110238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 5111238104Sdes else 5112238104Sdes # Exported symbols can be pulled into shared objects from archives 5113238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5114238104Sdes fi 5115238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5116238104Sdes # This is similar to how AIX traditionally builds its shared libraries. 5117238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 5118238104Sdes fi 5119238104Sdes fi 5120238104Sdes ;; 5121238104Sdes 5122238104Sdes amigaos*) 5123238104Sdes case $host_cpu in 5124238104Sdes powerpc) 5125238104Sdes # see comment about AmigaOS4 .so support 5126238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5127238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='' 5128238104Sdes ;; 5129238104Sdes m68k) 5130238104Sdes _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)' 5131238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5132238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5133238104Sdes ;; 5134238104Sdes esac 5135238104Sdes ;; 5136238104Sdes 5137238104Sdes bsdi[[45]]*) 5138238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5139238104Sdes ;; 5140238104Sdes 5141238104Sdes cygwin* | mingw* | pw32* | cegcc*) 5142238104Sdes # When not using gcc, we currently assume that we are using 5143238104Sdes # Microsoft Visual C++. 5144238104Sdes # hardcode_libdir_flag_spec is actually meaningless, as there is 5145238104Sdes # no search path for DLLs. 5146238104Sdes case $cc_basename in 5147238104Sdes cl*) 5148238104Sdes # Native MSVC 5149238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5150238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5151238104Sdes _LT_TAGVAR(always_export_symbols, $1)=yes 5152238104Sdes _LT_TAGVAR(file_list_spec, $1)='@' 5153238104Sdes # Tell ltmain to make .lib files, not .a files. 5154238104Sdes libext=lib 5155238104Sdes # Tell ltmain to make .dll files, not .so files. 5156238104Sdes shrext_cmds=".dll" 5157238104Sdes # FIXME: Setting linknames here is a bad hack. 5158238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 5159238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5160238104Sdes sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 5161238104Sdes else 5162238104Sdes sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 5163238104Sdes fi~ 5164238104Sdes $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5165238104Sdes linknames=' 5166238104Sdes # The linker will not automatically build a static lib if we build a DLL. 5167238104Sdes # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5168238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5169238104Sdes _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5170238104Sdes _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' 5171238104Sdes # Don't use ranlib 5172238104Sdes _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5173238104Sdes _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5174238104Sdes lt_tool_outputfile="@TOOL_OUTPUT@"~ 5175238104Sdes case $lt_outputfile in 5176238104Sdes *.exe|*.EXE) ;; 5177238104Sdes *) 5178238104Sdes lt_outputfile="$lt_outputfile.exe" 5179238104Sdes lt_tool_outputfile="$lt_tool_outputfile.exe" 5180238104Sdes ;; 5181238104Sdes esac~ 5182238104Sdes if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 5183238104Sdes $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5184238104Sdes $RM "$lt_outputfile.manifest"; 5185238104Sdes fi' 5186238104Sdes ;; 5187238104Sdes *) 5188238104Sdes # Assume MSVC wrapper 5189238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5190238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5191238104Sdes # Tell ltmain to make .lib files, not .a files. 5192238104Sdes libext=lib 5193238104Sdes # Tell ltmain to make .dll files, not .so files. 5194238104Sdes shrext_cmds=".dll" 5195238104Sdes # FIXME: Setting linknames here is a bad hack. 5196238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5197238104Sdes # The linker will automatically build a .lib file if we build a DLL. 5198238104Sdes _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5199238104Sdes # FIXME: Should let the user specify the lib program. 5200238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5201238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5202238104Sdes ;; 5203238104Sdes esac 5204238104Sdes ;; 5205238104Sdes 5206238104Sdes darwin* | rhapsody*) 5207238104Sdes _LT_DARWIN_LINKER_FEATURES($1) 5208238104Sdes ;; 5209238104Sdes 5210238104Sdes dgux*) 5211238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5212238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5213238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5214238104Sdes ;; 5215238104Sdes 5216238104Sdes # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5217238104Sdes # support. Future versions do this automatically, but an explicit c++rt0.o 5218238104Sdes # does not break anything, and helps significantly (at the cost of a little 5219238104Sdes # extra space). 5220238104Sdes freebsd2.2*) 5221238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5222238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5223238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5224238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5225238104Sdes ;; 5226238104Sdes 5227238104Sdes # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5228238104Sdes freebsd2.*) 5229238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5230238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5231238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5232238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5233238104Sdes ;; 5234238104Sdes 5235238104Sdes # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5236238104Sdes freebsd* | dragonfly*) 5237238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5238238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5239238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5240238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5241238104Sdes ;; 5242238104Sdes 5243238104Sdes hpux9*) 5244238104Sdes if test "$GCC" = yes; then 5245238104Sdes _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5246238104Sdes else 5247238104Sdes _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5248238104Sdes fi 5249238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5250238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5251238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5252238104Sdes 5253238104Sdes # hardcode_minus_L: Not really in the search PATH, 5254238104Sdes # but as the default location of the library. 5255238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5256238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5257238104Sdes ;; 5258238104Sdes 5259238104Sdes hpux10*) 5260238104Sdes if test "$GCC" = yes && test "$with_gnu_ld" = no; then 5261238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5262238104Sdes else 5263238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5264238104Sdes fi 5265238104Sdes if test "$with_gnu_ld" = no; then 5266238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5267238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5268238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5269238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5270238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5271238104Sdes # hardcode_minus_L: Not really in the search PATH, 5272238104Sdes # but as the default location of the library. 5273238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5274238104Sdes fi 5275238104Sdes ;; 5276238104Sdes 5277238104Sdes hpux11*) 5278238104Sdes if test "$GCC" = yes && test "$with_gnu_ld" = no; then 5279238104Sdes case $host_cpu in 5280238104Sdes hppa*64*) 5281238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5282238104Sdes ;; 5283238104Sdes ia64*) 5284238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5285238104Sdes ;; 5286238104Sdes *) 5287238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5288238104Sdes ;; 5289238104Sdes esac 5290238104Sdes else 5291238104Sdes case $host_cpu in 5292238104Sdes hppa*64*) 5293238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5294238104Sdes ;; 5295238104Sdes ia64*) 5296238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5297238104Sdes ;; 5298238104Sdes *) 5299238104Sdes m4_if($1, [], [ 5300238104Sdes # Older versions of the 11.00 compiler do not understand -b yet 5301238104Sdes # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5302238104Sdes _LT_LINKER_OPTION([if $CC understands -b], 5303238104Sdes _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5304238104Sdes [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5305238104Sdes [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5306238104Sdes [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5307238104Sdes ;; 5308238104Sdes esac 5309238104Sdes fi 5310238104Sdes if test "$with_gnu_ld" = no; then 5311238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5312238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5313238104Sdes 5314238104Sdes case $host_cpu in 5315238104Sdes hppa*64*|ia64*) 5316238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 5317238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5318238104Sdes ;; 5319238104Sdes *) 5320238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5321238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5322238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5323238104Sdes 5324238104Sdes # hardcode_minus_L: Not really in the search PATH, 5325238104Sdes # but as the default location of the library. 5326238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5327238104Sdes ;; 5328238104Sdes esac 5329238104Sdes fi 5330238104Sdes ;; 5331238104Sdes 5332238104Sdes irix5* | irix6* | nonstopux*) 5333238104Sdes if test "$GCC" = yes; then 5334238104Sdes _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' 5335238104Sdes # Try to use the -exported_symbol ld option, if it does not 5336238104Sdes # work, assume that -exports_file does not work either and 5337238104Sdes # implicitly export all symbols. 5338238104Sdes # This should be the same for all languages, so no per-tag cache variable. 5339238104Sdes AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5340238104Sdes [lt_cv_irix_exported_symbol], 5341238104Sdes [save_LDFLAGS="$LDFLAGS" 5342238104Sdes LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 5343238104Sdes AC_LINK_IFELSE( 5344238104Sdes [AC_LANG_SOURCE( 5345238104Sdes [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5346238104Sdes [C++], [[int foo (void) { return 0; }]], 5347238104Sdes [Fortran 77], [[ 5348238104Sdes subroutine foo 5349238104Sdes end]], 5350238104Sdes [Fortran], [[ 5351238104Sdes subroutine foo 5352238104Sdes end]])])], 5353238104Sdes [lt_cv_irix_exported_symbol=yes], 5354238104Sdes [lt_cv_irix_exported_symbol=no]) 5355238104Sdes LDFLAGS="$save_LDFLAGS"]) 5356238104Sdes if test "$lt_cv_irix_exported_symbol" = yes; then 5357238104Sdes _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' 5358238104Sdes fi 5359238104Sdes else 5360238104Sdes _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' 5361238104Sdes _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' 5362238104Sdes fi 5363238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5364238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5365238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5366238104Sdes _LT_TAGVAR(inherit_rpath, $1)=yes 5367238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 5368238104Sdes ;; 5369238104Sdes 5370238104Sdes netbsd* | netbsdelf*-gnu) 5371238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5372238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5373238104Sdes else 5374238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5375238104Sdes fi 5376238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5377238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5378238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5379238104Sdes ;; 5380238104Sdes 5381238104Sdes newsos6) 5382238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5383238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5384238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5385238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5386238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5387238104Sdes ;; 5388238104Sdes 5389238104Sdes *nto* | *qnx*) 5390238104Sdes ;; 5391238104Sdes 5392238104Sdes openbsd*) 5393238104Sdes if test -f /usr/libexec/ld.so; then 5394238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5395238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5396238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5397238104Sdes if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5398238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5399238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5400238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5401238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5402238104Sdes else 5403238104Sdes case $host_os in 5404238104Sdes openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5405238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5406238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5407238104Sdes ;; 5408238104Sdes *) 5409238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5410238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5411238104Sdes ;; 5412238104Sdes esac 5413238104Sdes fi 5414238104Sdes else 5415238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 5416238104Sdes fi 5417238104Sdes ;; 5418238104Sdes 5419238104Sdes os2*) 5420238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5421238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5422238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5423238104Sdes _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 5424238104Sdes _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 5425238104Sdes ;; 5426238104Sdes 5427238104Sdes osf3*) 5428238104Sdes if test "$GCC" = yes; then 5429238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5430238104Sdes _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' 5431238104Sdes else 5432238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5433238104Sdes _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' 5434238104Sdes fi 5435238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5436238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5437238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5438238104Sdes ;; 5439238104Sdes 5440238104Sdes osf4* | osf5*) # as osf3* with the addition of -msym flag 5441238104Sdes if test "$GCC" = yes; then 5442238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 5443238104Sdes _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' 5444238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5445238104Sdes else 5446238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5447238104Sdes _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' 5448238104Sdes _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~ 5449238104Sdes $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' 5450238104Sdes 5451238104Sdes # Both c and cxx compiler support -rpath directly 5452238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5453238104Sdes fi 5454238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5455238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5456238104Sdes ;; 5457238104Sdes 5458238104Sdes solaris*) 5459238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5460238104Sdes if test "$GCC" = yes; then 5461238104Sdes wlarc='${wl}' 5462238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5463238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5464238104Sdes $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' 5465238104Sdes else 5466238104Sdes case `$CC -V 2>&1` in 5467238104Sdes *"Compilers 5.0"*) 5468238104Sdes wlarc='' 5469238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5470238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5471238104Sdes $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 5472238104Sdes ;; 5473238104Sdes *) 5474238104Sdes wlarc='${wl}' 5475238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 5476238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5477238104Sdes $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 5478238104Sdes ;; 5479238104Sdes esac 5480238104Sdes fi 5481238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5482238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5483238104Sdes case $host_os in 5484238104Sdes solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5485238104Sdes *) 5486238104Sdes # The compiler driver will combine and reorder linker options, 5487238104Sdes # but understands `-z linker_flag'. GCC discards it without `$wl', 5488238104Sdes # but is careful enough not to reorder. 5489238104Sdes # Supported since Solaris 2.6 (maybe 2.5.1?) 5490238104Sdes if test "$GCC" = yes; then 5491238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 5492238104Sdes else 5493238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 5494238104Sdes fi 5495238104Sdes ;; 5496238104Sdes esac 5497238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 5498238104Sdes ;; 5499238104Sdes 5500238104Sdes sunos4*) 5501238104Sdes if test "x$host_vendor" = xsequent; then 5502238104Sdes # Use $CC to link under sequent, because it throws in some extra .o 5503238104Sdes # files that make .init and .fini sections work. 5504238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 5505238104Sdes else 5506238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 5507238104Sdes fi 5508238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5509238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 5510238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 5511238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5512238104Sdes ;; 5513238104Sdes 5514238104Sdes sysv4) 5515238104Sdes case $host_vendor in 5516238104Sdes sni) 5517238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5518238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 5519238104Sdes ;; 5520238104Sdes siemens) 5521238104Sdes ## LD is ld it makes a PLAMLIB 5522238104Sdes ## CC just makes a GrossModule. 5523238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 5524238104Sdes _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 5525238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 5526238104Sdes ;; 5527238104Sdes motorola) 5528238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5529238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 5530238104Sdes ;; 5531238104Sdes esac 5532238104Sdes runpath_var='LD_RUN_PATH' 5533238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5534238104Sdes ;; 5535238104Sdes 5536238104Sdes sysv4.3*) 5537238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5538238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5539238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 5540238104Sdes ;; 5541238104Sdes 5542238104Sdes sysv4*MP*) 5543238104Sdes if test -d /usr/nec; then 5544238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5545238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5546238104Sdes runpath_var=LD_RUN_PATH 5547238104Sdes hardcode_runpath_var=yes 5548238104Sdes _LT_TAGVAR(ld_shlibs, $1)=yes 5549238104Sdes fi 5550238104Sdes ;; 5551238104Sdes 5552238104Sdes sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 5553238104Sdes _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5554238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5555238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5556238104Sdes runpath_var='LD_RUN_PATH' 5557238104Sdes 5558238104Sdes if test "$GCC" = yes; then 5559238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5560238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5561238104Sdes else 5562238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5563238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5564238104Sdes fi 5565238104Sdes ;; 5566238104Sdes 5567238104Sdes sysv5* | sco3.2v5* | sco5v6*) 5568238104Sdes # Note: We can NOT use -z defs as we might desire, because we do not 5569238104Sdes # link with -lc, and that would cause any symbols used from libc to 5570238104Sdes # always be unresolved, which means just about no library would 5571238104Sdes # ever link correctly. If we're not using GNU ld we use -z text 5572238104Sdes # though, which does catch some bad symbols but isn't as heavy-handed 5573238104Sdes # as -z defs. 5574238104Sdes _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 5575238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 5576238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 5577238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5578238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 5579238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5580238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 5581238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 5582238104Sdes runpath_var='LD_RUN_PATH' 5583238104Sdes 5584238104Sdes if test "$GCC" = yes; then 5585238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5586238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5587238104Sdes else 5588238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5589238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 5590238104Sdes fi 5591238104Sdes ;; 5592238104Sdes 5593238104Sdes uts4*) 5594238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5595238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5596238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5597238104Sdes ;; 5598238104Sdes 5599238104Sdes *) 5600238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 5601238104Sdes ;; 5602238104Sdes esac 5603238104Sdes 5604238104Sdes if test x$host_vendor = xsni; then 5605238104Sdes case $host in 5606238104Sdes sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5607238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' 5608238104Sdes ;; 5609238104Sdes esac 5610238104Sdes fi 5611238104Sdes fi 5612238104Sdes]) 5613238104SdesAC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 5614238104Sdestest "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 5615238104Sdes 5616238104Sdes_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 5617238104Sdes 5618238104Sdes_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 5619238104Sdes_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 5620238104Sdes_LT_DECL([], [extract_expsyms_cmds], [2], 5621238104Sdes [The commands to extract the exported symbol list from a shared archive]) 5622238104Sdes 5623238104Sdes# 5624238104Sdes# Do we need to explicitly link libc? 5625238104Sdes# 5626238104Sdescase "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 5627238104Sdesx|xyes) 5628238104Sdes # Assume -lc should be added 5629238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5630238104Sdes 5631238104Sdes if test "$enable_shared" = yes && test "$GCC" = yes; then 5632238104Sdes case $_LT_TAGVAR(archive_cmds, $1) in 5633238104Sdes *'~'*) 5634238104Sdes # FIXME: we may have to deal with multi-command sequences. 5635238104Sdes ;; 5636238104Sdes '$CC '*) 5637238104Sdes # Test whether the compiler implicitly links with -lc since on some 5638238104Sdes # systems, -lgcc has to come before -lc. If gcc already passes -lc 5639238104Sdes # to ld, don't add -lc before -lgcc. 5640238104Sdes AC_CACHE_CHECK([whether -lc should be explicitly linked in], 5641238104Sdes [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 5642238104Sdes [$RM conftest* 5643238104Sdes echo "$lt_simple_compile_test_code" > conftest.$ac_ext 5644238104Sdes 5645238104Sdes if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 5646238104Sdes soname=conftest 5647238104Sdes lib=conftest 5648238104Sdes libobjs=conftest.$ac_objext 5649238104Sdes deplibs= 5650238104Sdes wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 5651238104Sdes pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 5652238104Sdes compiler_flags=-v 5653238104Sdes linker_flags=-v 5654238104Sdes verstring= 5655238104Sdes output_objdir=. 5656238104Sdes libname=conftest 5657238104Sdes lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 5658238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)= 5659238104Sdes if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 5660238104Sdes then 5661238104Sdes lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5662238104Sdes else 5663238104Sdes lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5664238104Sdes fi 5665238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 5666238104Sdes else 5667238104Sdes cat conftest.err 1>&5 5668238104Sdes fi 5669238104Sdes $RM conftest* 5670238104Sdes ]) 5671238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 5672238104Sdes ;; 5673238104Sdes esac 5674238104Sdes fi 5675238104Sdes ;; 5676238104Sdesesac 5677238104Sdes 5678238104Sdes_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 5679238104Sdes [Whether or not to add -lc for building shared libraries]) 5680238104Sdes_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 5681238104Sdes [enable_shared_with_static_runtimes], [0], 5682238104Sdes [Whether or not to disallow shared libs when runtime libs are static]) 5683238104Sdes_LT_TAGDECL([], [export_dynamic_flag_spec], [1], 5684238104Sdes [Compiler flag to allow reflexive dlopens]) 5685238104Sdes_LT_TAGDECL([], [whole_archive_flag_spec], [1], 5686238104Sdes [Compiler flag to generate shared objects directly from archives]) 5687238104Sdes_LT_TAGDECL([], [compiler_needs_object], [1], 5688238104Sdes [Whether the compiler copes with passing no objects directly]) 5689238104Sdes_LT_TAGDECL([], [old_archive_from_new_cmds], [2], 5690238104Sdes [Create an old-style archive from a shared archive]) 5691238104Sdes_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 5692238104Sdes [Create a temporary old-style archive to link instead of a shared archive]) 5693238104Sdes_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 5694238104Sdes_LT_TAGDECL([], [archive_expsym_cmds], [2]) 5695238104Sdes_LT_TAGDECL([], [module_cmds], [2], 5696238104Sdes [Commands used to build a loadable module if different from building 5697238104Sdes a shared archive.]) 5698238104Sdes_LT_TAGDECL([], [module_expsym_cmds], [2]) 5699238104Sdes_LT_TAGDECL([], [with_gnu_ld], [1], 5700238104Sdes [Whether we are building with GNU ld or not]) 5701238104Sdes_LT_TAGDECL([], [allow_undefined_flag], [1], 5702238104Sdes [Flag that allows shared libraries with undefined symbols to be built]) 5703238104Sdes_LT_TAGDECL([], [no_undefined_flag], [1], 5704238104Sdes [Flag that enforces no undefined symbols]) 5705238104Sdes_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 5706238104Sdes [Flag to hardcode $libdir into a binary during linking. 5707238104Sdes This must work even if $libdir does not exist]) 5708238104Sdes_LT_TAGDECL([], [hardcode_libdir_separator], [1], 5709238104Sdes [Whether we need a single "-rpath" flag with a separated argument]) 5710238104Sdes_LT_TAGDECL([], [hardcode_direct], [0], 5711238104Sdes [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5712238104Sdes DIR into the resulting binary]) 5713238104Sdes_LT_TAGDECL([], [hardcode_direct_absolute], [0], 5714238104Sdes [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes 5715238104Sdes DIR into the resulting binary and the resulting library dependency is 5716238104Sdes "absolute", i.e impossible to change by setting ${shlibpath_var} if the 5717238104Sdes library is relocated]) 5718238104Sdes_LT_TAGDECL([], [hardcode_minus_L], [0], 5719238104Sdes [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 5720238104Sdes into the resulting binary]) 5721238104Sdes_LT_TAGDECL([], [hardcode_shlibpath_var], [0], 5722238104Sdes [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 5723238104Sdes into the resulting binary]) 5724238104Sdes_LT_TAGDECL([], [hardcode_automatic], [0], 5725238104Sdes [Set to "yes" if building a shared library automatically hardcodes DIR 5726238104Sdes into the library and all subsequent libraries and executables linked 5727238104Sdes against it]) 5728238104Sdes_LT_TAGDECL([], [inherit_rpath], [0], 5729238104Sdes [Set to yes if linker adds runtime paths of dependent libraries 5730238104Sdes to runtime path list]) 5731238104Sdes_LT_TAGDECL([], [link_all_deplibs], [0], 5732238104Sdes [Whether libtool must link a program against all its dependency libraries]) 5733238104Sdes_LT_TAGDECL([], [always_export_symbols], [0], 5734238104Sdes [Set to "yes" if exported symbols are required]) 5735238104Sdes_LT_TAGDECL([], [export_symbols_cmds], [2], 5736238104Sdes [The commands to list exported symbols]) 5737238104Sdes_LT_TAGDECL([], [exclude_expsyms], [1], 5738238104Sdes [Symbols that should not be listed in the preloaded symbols]) 5739238104Sdes_LT_TAGDECL([], [include_expsyms], [1], 5740238104Sdes [Symbols that must always be exported]) 5741238104Sdes_LT_TAGDECL([], [prelink_cmds], [2], 5742238104Sdes [Commands necessary for linking programs (against libraries) with templates]) 5743238104Sdes_LT_TAGDECL([], [postlink_cmds], [2], 5744238104Sdes [Commands necessary for finishing linking programs]) 5745238104Sdes_LT_TAGDECL([], [file_list_spec], [1], 5746238104Sdes [Specify filename containing input files]) 5747238104Sdesdnl FIXME: Not yet implemented 5748238104Sdesdnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 5749238104Sdesdnl [Compiler flag to generate thread safe objects]) 5750238104Sdes])# _LT_LINKER_SHLIBS 5751238104Sdes 5752238104Sdes 5753238104Sdes# _LT_LANG_C_CONFIG([TAG]) 5754238104Sdes# ------------------------ 5755238104Sdes# Ensure that the configuration variables for a C compiler are suitably 5756238104Sdes# defined. These variables are subsequently used by _LT_CONFIG to write 5757238104Sdes# the compiler configuration to `libtool'. 5758238104Sdesm4_defun([_LT_LANG_C_CONFIG], 5759238104Sdes[m4_require([_LT_DECL_EGREP])dnl 5760238104Sdeslt_save_CC="$CC" 5761238104SdesAC_LANG_PUSH(C) 5762238104Sdes 5763238104Sdes# Source file extension for C test sources. 5764238104Sdesac_ext=c 5765238104Sdes 5766238104Sdes# Object file extension for compiled C test sources. 5767238104Sdesobjext=o 5768238104Sdes_LT_TAGVAR(objext, $1)=$objext 5769238104Sdes 5770238104Sdes# Code to be used in simple compile tests 5771238104Sdeslt_simple_compile_test_code="int some_variable = 0;" 5772238104Sdes 5773238104Sdes# Code to be used in simple link tests 5774238104Sdeslt_simple_link_test_code='int main(){return(0);}' 5775238104Sdes 5776238104Sdes_LT_TAG_COMPILER 5777238104Sdes# Save the default compiler, since it gets overwritten when the other 5778238104Sdes# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 5779238104Sdescompiler_DEFAULT=$CC 5780238104Sdes 5781238104Sdes# save warnings/boilerplate of simple test code 5782238104Sdes_LT_COMPILER_BOILERPLATE 5783238104Sdes_LT_LINKER_BOILERPLATE 5784238104Sdes 5785238104Sdesif test -n "$compiler"; then 5786238104Sdes _LT_COMPILER_NO_RTTI($1) 5787238104Sdes _LT_COMPILER_PIC($1) 5788238104Sdes _LT_COMPILER_C_O($1) 5789238104Sdes _LT_COMPILER_FILE_LOCKS($1) 5790238104Sdes _LT_LINKER_SHLIBS($1) 5791238104Sdes _LT_SYS_DYNAMIC_LINKER($1) 5792238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 5793238104Sdes LT_SYS_DLOPEN_SELF 5794238104Sdes _LT_CMD_STRIPLIB 5795238104Sdes 5796238104Sdes # Report which library types will actually be built 5797238104Sdes AC_MSG_CHECKING([if libtool supports shared libraries]) 5798238104Sdes AC_MSG_RESULT([$can_build_shared]) 5799238104Sdes 5800238104Sdes AC_MSG_CHECKING([whether to build shared libraries]) 5801238104Sdes test "$can_build_shared" = "no" && enable_shared=no 5802238104Sdes 5803238104Sdes # On AIX, shared libraries and static libraries use the same namespace, and 5804238104Sdes # are all built from PIC. 5805238104Sdes case $host_os in 5806238104Sdes aix3*) 5807238104Sdes test "$enable_shared" = yes && enable_static=no 5808238104Sdes if test -n "$RANLIB"; then 5809238104Sdes archive_cmds="$archive_cmds~\$RANLIB \$lib" 5810238104Sdes postinstall_cmds='$RANLIB $lib' 5811238104Sdes fi 5812238104Sdes ;; 5813238104Sdes 5814238104Sdes aix[[4-9]]*) 5815238104Sdes if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 5816238104Sdes test "$enable_shared" = yes && enable_static=no 5817238104Sdes fi 5818238104Sdes ;; 5819238104Sdes esac 5820238104Sdes AC_MSG_RESULT([$enable_shared]) 5821238104Sdes 5822238104Sdes AC_MSG_CHECKING([whether to build static libraries]) 5823238104Sdes # Make sure either enable_shared or enable_static is yes. 5824238104Sdes test "$enable_shared" = yes || enable_static=yes 5825238104Sdes AC_MSG_RESULT([$enable_static]) 5826238104Sdes 5827238104Sdes _LT_CONFIG($1) 5828238104Sdesfi 5829238104SdesAC_LANG_POP 5830238104SdesCC="$lt_save_CC" 5831238104Sdes])# _LT_LANG_C_CONFIG 5832238104Sdes 5833238104Sdes 5834238104Sdes# _LT_LANG_CXX_CONFIG([TAG]) 5835238104Sdes# -------------------------- 5836238104Sdes# Ensure that the configuration variables for a C++ compiler are suitably 5837238104Sdes# defined. These variables are subsequently used by _LT_CONFIG to write 5838238104Sdes# the compiler configuration to `libtool'. 5839238104Sdesm4_defun([_LT_LANG_CXX_CONFIG], 5840238104Sdes[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 5841238104Sdesm4_require([_LT_DECL_EGREP])dnl 5842238104Sdesm4_require([_LT_PATH_MANIFEST_TOOL])dnl 5843238104Sdesif test -n "$CXX" && ( test "X$CXX" != "Xno" && 5844238104Sdes ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 5845238104Sdes (test "X$CXX" != "Xg++"))) ; then 5846238104Sdes AC_PROG_CXXCPP 5847238104Sdeselse 5848238104Sdes _lt_caught_CXX_error=yes 5849238104Sdesfi 5850238104Sdes 5851238104SdesAC_LANG_PUSH(C++) 5852238104Sdes_LT_TAGVAR(archive_cmds_need_lc, $1)=no 5853238104Sdes_LT_TAGVAR(allow_undefined_flag, $1)= 5854238104Sdes_LT_TAGVAR(always_export_symbols, $1)=no 5855238104Sdes_LT_TAGVAR(archive_expsym_cmds, $1)= 5856238104Sdes_LT_TAGVAR(compiler_needs_object, $1)=no 5857238104Sdes_LT_TAGVAR(export_dynamic_flag_spec, $1)= 5858238104Sdes_LT_TAGVAR(hardcode_direct, $1)=no 5859238104Sdes_LT_TAGVAR(hardcode_direct_absolute, $1)=no 5860238104Sdes_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5861238104Sdes_LT_TAGVAR(hardcode_libdir_separator, $1)= 5862238104Sdes_LT_TAGVAR(hardcode_minus_L, $1)=no 5863238104Sdes_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5864238104Sdes_LT_TAGVAR(hardcode_automatic, $1)=no 5865238104Sdes_LT_TAGVAR(inherit_rpath, $1)=no 5866238104Sdes_LT_TAGVAR(module_cmds, $1)= 5867238104Sdes_LT_TAGVAR(module_expsym_cmds, $1)= 5868238104Sdes_LT_TAGVAR(link_all_deplibs, $1)=unknown 5869238104Sdes_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 5870238104Sdes_LT_TAGVAR(reload_flag, $1)=$reload_flag 5871238104Sdes_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 5872238104Sdes_LT_TAGVAR(no_undefined_flag, $1)= 5873238104Sdes_LT_TAGVAR(whole_archive_flag_spec, $1)= 5874238104Sdes_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5875238104Sdes 5876238104Sdes# Source file extension for C++ test sources. 5877238104Sdesac_ext=cpp 5878238104Sdes 5879238104Sdes# Object file extension for compiled C++ test sources. 5880238104Sdesobjext=o 5881238104Sdes_LT_TAGVAR(objext, $1)=$objext 5882238104Sdes 5883238104Sdes# No sense in running all these tests if we already determined that 5884238104Sdes# the CXX compiler isn't working. Some variables (like enable_shared) 5885238104Sdes# are currently assumed to apply to all compilers on this platform, 5886238104Sdes# and will be corrupted by setting them based on a non-working compiler. 5887238104Sdesif test "$_lt_caught_CXX_error" != yes; then 5888238104Sdes # Code to be used in simple compile tests 5889238104Sdes lt_simple_compile_test_code="int some_variable = 0;" 5890238104Sdes 5891238104Sdes # Code to be used in simple link tests 5892238104Sdes lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 5893238104Sdes 5894238104Sdes # ltmain only uses $CC for tagged configurations so make sure $CC is set. 5895238104Sdes _LT_TAG_COMPILER 5896238104Sdes 5897238104Sdes # save warnings/boilerplate of simple test code 5898238104Sdes _LT_COMPILER_BOILERPLATE 5899238104Sdes _LT_LINKER_BOILERPLATE 5900238104Sdes 5901238104Sdes # Allow CC to be a program name with arguments. 5902238104Sdes lt_save_CC=$CC 5903238104Sdes lt_save_CFLAGS=$CFLAGS 5904238104Sdes lt_save_LD=$LD 5905238104Sdes lt_save_GCC=$GCC 5906238104Sdes GCC=$GXX 5907238104Sdes lt_save_with_gnu_ld=$with_gnu_ld 5908238104Sdes lt_save_path_LD=$lt_cv_path_LD 5909238104Sdes if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 5910238104Sdes lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 5911238104Sdes else 5912238104Sdes $as_unset lt_cv_prog_gnu_ld 5913238104Sdes fi 5914238104Sdes if test -n "${lt_cv_path_LDCXX+set}"; then 5915238104Sdes lt_cv_path_LD=$lt_cv_path_LDCXX 5916238104Sdes else 5917238104Sdes $as_unset lt_cv_path_LD 5918238104Sdes fi 5919238104Sdes test -z "${LDCXX+set}" || LD=$LDCXX 5920238104Sdes CC=${CXX-"c++"} 5921238104Sdes CFLAGS=$CXXFLAGS 5922238104Sdes compiler=$CC 5923238104Sdes _LT_TAGVAR(compiler, $1)=$CC 5924238104Sdes _LT_CC_BASENAME([$compiler]) 5925238104Sdes 5926238104Sdes if test -n "$compiler"; then 5927238104Sdes # We don't want -fno-exception when compiling C++ code, so set the 5928238104Sdes # no_builtin_flag separately 5929238104Sdes if test "$GXX" = yes; then 5930238104Sdes _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 5931238104Sdes else 5932238104Sdes _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 5933238104Sdes fi 5934238104Sdes 5935238104Sdes if test "$GXX" = yes; then 5936238104Sdes # Set up default GNU C++ configuration 5937238104Sdes 5938238104Sdes LT_PATH_LD 5939238104Sdes 5940238104Sdes # Check if GNU C++ uses GNU ld as the underlying linker, since the 5941238104Sdes # archiving commands below assume that GNU ld is being used. 5942238104Sdes if test "$with_gnu_ld" = yes; then 5943238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 5944238104Sdes _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' 5945238104Sdes 5946238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5947238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5948238104Sdes 5949238104Sdes # If archive_cmds runs LD, not CC, wlarc should be empty 5950238104Sdes # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 5951238104Sdes # investigate it a little bit more. (MM) 5952238104Sdes wlarc='${wl}' 5953238104Sdes 5954238104Sdes # ancient GNU ld didn't support --whole-archive et. al. 5955238104Sdes if eval "`$CC -print-prog-name=ld` --help 2>&1" | 5956238104Sdes $GREP 'no-whole-archive' > /dev/null; then 5957238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5958238104Sdes else 5959238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)= 5960238104Sdes fi 5961238104Sdes else 5962238104Sdes with_gnu_ld=no 5963238104Sdes wlarc= 5964238104Sdes 5965238104Sdes # A generic and very simple default shared library creation 5966238104Sdes # command for GNU C++ for the case where it uses the native 5967238104Sdes # linker, instead of GNU ld. If possible, this setting should 5968238104Sdes # overridden to take advantage of the native linker features on 5969238104Sdes # the platform it is being used on. 5970238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 5971238104Sdes fi 5972238104Sdes 5973238104Sdes # Commands to make compiler produce verbose output that lists 5974238104Sdes # what "hidden" libraries, object files and flags are used when 5975238104Sdes # linking a shared library. 5976238104Sdes output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 5977238104Sdes 5978238104Sdes else 5979238104Sdes GXX=no 5980238104Sdes with_gnu_ld=no 5981238104Sdes wlarc= 5982238104Sdes fi 5983238104Sdes 5984238104Sdes # PORTME: fill in a description of your system's C++ link characteristics 5985238104Sdes AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5986238104Sdes _LT_TAGVAR(ld_shlibs, $1)=yes 5987238104Sdes case $host_os in 5988238104Sdes aix3*) 5989238104Sdes # FIXME: insert proper C++ library support 5990238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 5991238104Sdes ;; 5992238104Sdes aix[[4-9]]*) 5993238104Sdes if test "$host_cpu" = ia64; then 5994238104Sdes # On IA64, the linker does run time linking by default, so we don't 5995238104Sdes # have to do anything special. 5996238104Sdes aix_use_runtimelinking=no 5997238104Sdes exp_sym_flag='-Bexport' 5998238104Sdes no_entry_flag="" 5999238104Sdes else 6000238104Sdes aix_use_runtimelinking=no 6001238104Sdes 6002238104Sdes # Test if we are trying to use run time linking or normal 6003238104Sdes # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6004238104Sdes # need to do runtime linking. 6005238104Sdes case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6006238104Sdes for ld_flag in $LDFLAGS; do 6007238104Sdes case $ld_flag in 6008238104Sdes *-brtl*) 6009238104Sdes aix_use_runtimelinking=yes 6010238104Sdes break 6011238104Sdes ;; 6012238104Sdes esac 6013238104Sdes done 6014238104Sdes ;; 6015238104Sdes esac 6016238104Sdes 6017238104Sdes exp_sym_flag='-bexport' 6018238104Sdes no_entry_flag='-bnoentry' 6019238104Sdes fi 6020238104Sdes 6021238104Sdes # When large executables or shared objects are built, AIX ld can 6022238104Sdes # have problems creating the table of contents. If linking a library 6023238104Sdes # or program results in "error TOC overflow" add -mminimal-toc to 6024238104Sdes # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6025238104Sdes # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6026238104Sdes 6027238104Sdes _LT_TAGVAR(archive_cmds, $1)='' 6028238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 6029238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6030238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6031238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 6032238104Sdes _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' 6033238104Sdes 6034238104Sdes if test "$GXX" = yes; then 6035238104Sdes case $host_os in aix4.[[012]]|aix4.[[012]].*) 6036238104Sdes # We only want to do this on AIX 4.2 and lower, the check 6037238104Sdes # below for broken collect2 doesn't work under 4.3+ 6038238104Sdes collect2name=`${CC} -print-prog-name=collect2` 6039238104Sdes if test -f "$collect2name" && 6040238104Sdes strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6041238104Sdes then 6042238104Sdes # We have reworked collect2 6043238104Sdes : 6044238104Sdes else 6045238104Sdes # We have old collect2 6046238104Sdes _LT_TAGVAR(hardcode_direct, $1)=unsupported 6047238104Sdes # It fails to find uninstalled libraries when the uninstalled 6048238104Sdes # path is not listed in the libpath. Setting hardcode_minus_L 6049238104Sdes # to unsupported forces relinking 6050238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes 6051238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6052238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)= 6053238104Sdes fi 6054238104Sdes esac 6055238104Sdes shared_flag='-shared' 6056238104Sdes if test "$aix_use_runtimelinking" = yes; then 6057238104Sdes shared_flag="$shared_flag "'${wl}-G' 6058238104Sdes fi 6059238104Sdes else 6060238104Sdes # not using gcc 6061238104Sdes if test "$host_cpu" = ia64; then 6062238104Sdes # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6063238104Sdes # chokes on -Wl,-G. The following line is correct: 6064238104Sdes shared_flag='-G' 6065238104Sdes else 6066238104Sdes if test "$aix_use_runtimelinking" = yes; then 6067238104Sdes shared_flag='${wl}-G' 6068238104Sdes else 6069238104Sdes shared_flag='${wl}-bM:SRE' 6070238104Sdes fi 6071238104Sdes fi 6072238104Sdes fi 6073238104Sdes 6074238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' 6075238104Sdes # It seems that -bexpall does not export symbols beginning with 6076238104Sdes # underscore (_), so it is better to generate a list of symbols to 6077238104Sdes # export. 6078238104Sdes _LT_TAGVAR(always_export_symbols, $1)=yes 6079238104Sdes if test "$aix_use_runtimelinking" = yes; then 6080238104Sdes # Warning - without using the other runtime loading flags (-brtl), 6081238104Sdes # -berok will link without error, but may produce a broken library. 6082238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 6083238104Sdes # Determine the default libpath from the value encoded in an empty 6084238104Sdes # executable. 6085238104Sdes _LT_SYS_MODULE_PATH_AIX([$1]) 6086238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6087238104Sdes 6088238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6089238104Sdes else 6090238104Sdes if test "$host_cpu" = ia64; then 6091238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6092238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6093238104Sdes _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" 6094238104Sdes else 6095238104Sdes # Determine the default libpath from the value encoded in an 6096238104Sdes # empty executable. 6097238104Sdes _LT_SYS_MODULE_PATH_AIX([$1]) 6098238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6099238104Sdes # Warning - without using the other run time loading flags, 6100238104Sdes # -berok will link without error, but may produce a broken library. 6101238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6102238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6103238104Sdes if test "$with_gnu_ld" = yes; then 6104238104Sdes # We only use this code for GNU lds that support --whole-archive. 6105238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6106238104Sdes else 6107238104Sdes # Exported symbols can be pulled into shared objects from archives 6108238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6109238104Sdes fi 6110238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6111238104Sdes # This is similar to how AIX traditionally builds its shared 6112238104Sdes # libraries. 6113238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6114238104Sdes fi 6115238104Sdes fi 6116238104Sdes ;; 6117238104Sdes 6118238104Sdes beos*) 6119238104Sdes if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6120238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6121238104Sdes # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6122238104Sdes # support --undefined. This deserves some investigation. FIXME 6123238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6124238104Sdes else 6125238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6126238104Sdes fi 6127238104Sdes ;; 6128238104Sdes 6129238104Sdes chorus*) 6130238104Sdes case $cc_basename in 6131238104Sdes *) 6132238104Sdes # FIXME: insert proper C++ library support 6133238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6134238104Sdes ;; 6135238104Sdes esac 6136238104Sdes ;; 6137238104Sdes 6138238104Sdes cygwin* | mingw* | pw32* | cegcc*) 6139238104Sdes case $GXX,$cc_basename in 6140238104Sdes ,cl* | no,cl*) 6141238104Sdes # Native MSVC 6142238104Sdes # hardcode_libdir_flag_spec is actually meaningless, as there is 6143238104Sdes # no search path for DLLs. 6144238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6145238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6146238104Sdes _LT_TAGVAR(always_export_symbols, $1)=yes 6147238104Sdes _LT_TAGVAR(file_list_spec, $1)='@' 6148238104Sdes # Tell ltmain to make .lib files, not .a files. 6149238104Sdes libext=lib 6150238104Sdes # Tell ltmain to make .dll files, not .so files. 6151238104Sdes shrext_cmds=".dll" 6152238104Sdes # FIXME: Setting linknames here is a bad hack. 6153238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 6154238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6155238104Sdes $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 6156238104Sdes else 6157238104Sdes $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 6158238104Sdes fi~ 6159238104Sdes $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6160238104Sdes linknames=' 6161238104Sdes # The linker will not automatically build a static lib if we build a DLL. 6162238104Sdes # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6163238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6164238104Sdes # Don't use ranlib 6165238104Sdes _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6166238104Sdes _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6167238104Sdes lt_tool_outputfile="@TOOL_OUTPUT@"~ 6168238104Sdes case $lt_outputfile in 6169238104Sdes *.exe|*.EXE) ;; 6170238104Sdes *) 6171238104Sdes lt_outputfile="$lt_outputfile.exe" 6172238104Sdes lt_tool_outputfile="$lt_tool_outputfile.exe" 6173238104Sdes ;; 6174238104Sdes esac~ 6175238104Sdes func_to_tool_file "$lt_outputfile"~ 6176238104Sdes if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 6177238104Sdes $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6178238104Sdes $RM "$lt_outputfile.manifest"; 6179238104Sdes fi' 6180238104Sdes ;; 6181238104Sdes *) 6182238104Sdes # g++ 6183238104Sdes # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6184238104Sdes # as there is no search path for DLLs. 6185238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6186238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' 6187238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6188238104Sdes _LT_TAGVAR(always_export_symbols, $1)=no 6189238104Sdes _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6190238104Sdes 6191238104Sdes if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6192238104Sdes _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' 6193238104Sdes # If the export-symbols file already is a .def file (1st line 6194238104Sdes # is EXPORTS), use it as is; otherwise, prepend... 6195238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6196238104Sdes cp $export_symbols $output_objdir/$soname.def; 6197238104Sdes else 6198238104Sdes echo EXPORTS > $output_objdir/$soname.def; 6199238104Sdes cat $export_symbols >> $output_objdir/$soname.def; 6200238104Sdes fi~ 6201238104Sdes $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' 6202238104Sdes else 6203238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6204238104Sdes fi 6205238104Sdes ;; 6206238104Sdes esac 6207238104Sdes ;; 6208238104Sdes darwin* | rhapsody*) 6209238104Sdes _LT_DARWIN_LINKER_FEATURES($1) 6210238104Sdes ;; 6211238104Sdes 6212238104Sdes dgux*) 6213238104Sdes case $cc_basename in 6214238104Sdes ec++*) 6215238104Sdes # FIXME: insert proper C++ library support 6216238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6217238104Sdes ;; 6218238104Sdes ghcx*) 6219238104Sdes # Green Hills C++ Compiler 6220238104Sdes # FIXME: insert proper C++ library support 6221238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6222238104Sdes ;; 6223238104Sdes *) 6224238104Sdes # FIXME: insert proper C++ library support 6225238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6226238104Sdes ;; 6227238104Sdes esac 6228238104Sdes ;; 6229238104Sdes 6230238104Sdes freebsd2.*) 6231238104Sdes # C++ shared libraries reported to be fairly broken before 6232238104Sdes # switch to ELF 6233238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6234238104Sdes ;; 6235238104Sdes 6236238104Sdes freebsd-elf*) 6237238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6238238104Sdes ;; 6239238104Sdes 6240238104Sdes freebsd* | dragonfly*) 6241238104Sdes # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6242238104Sdes # conventions 6243238104Sdes _LT_TAGVAR(ld_shlibs, $1)=yes 6244238104Sdes ;; 6245238104Sdes 6246238104Sdes gnu*) 6247238104Sdes ;; 6248238104Sdes 6249238104Sdes haiku*) 6250238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6251238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 6252238104Sdes ;; 6253238104Sdes 6254238104Sdes hpux9*) 6255238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6256238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6257238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6258238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 6259238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6260238104Sdes # but as the default 6261238104Sdes # location of the library. 6262238104Sdes 6263238104Sdes case $cc_basename in 6264238104Sdes CC*) 6265238104Sdes # FIXME: insert proper C++ library support 6266238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6267238104Sdes ;; 6268238104Sdes aCC*) 6269238104Sdes _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6270238104Sdes # Commands to make compiler produce verbose output that lists 6271238104Sdes # what "hidden" libraries, object files and flags are used when 6272238104Sdes # linking a shared library. 6273238104Sdes # 6274238104Sdes # There doesn't appear to be a way to prevent this compiler from 6275238104Sdes # explicitly linking system object files so we need to strip them 6276238104Sdes # from the output so that they don't get included in the library 6277238104Sdes # dependencies. 6278238104Sdes 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"' 6279238104Sdes ;; 6280238104Sdes *) 6281238104Sdes if test "$GXX" = yes; then 6282238104Sdes _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6283238104Sdes else 6284238104Sdes # FIXME: insert proper C++ library support 6285238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6286238104Sdes fi 6287238104Sdes ;; 6288238104Sdes esac 6289238104Sdes ;; 6290238104Sdes 6291238104Sdes hpux10*|hpux11*) 6292238104Sdes if test $with_gnu_ld = no; then 6293238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6294238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6295238104Sdes 6296238104Sdes case $host_cpu in 6297238104Sdes hppa*64*|ia64*) 6298238104Sdes ;; 6299238104Sdes *) 6300238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6301238104Sdes ;; 6302238104Sdes esac 6303238104Sdes fi 6304238104Sdes case $host_cpu in 6305238104Sdes hppa*64*|ia64*) 6306238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 6307238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6308238104Sdes ;; 6309238104Sdes *) 6310238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 6311238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6312238104Sdes _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6313238104Sdes # but as the default 6314238104Sdes # location of the library. 6315238104Sdes ;; 6316238104Sdes esac 6317238104Sdes 6318238104Sdes case $cc_basename in 6319238104Sdes CC*) 6320238104Sdes # FIXME: insert proper C++ library support 6321238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6322238104Sdes ;; 6323238104Sdes aCC*) 6324238104Sdes case $host_cpu in 6325238104Sdes hppa*64*) 6326238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6327238104Sdes ;; 6328238104Sdes ia64*) 6329238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6330238104Sdes ;; 6331238104Sdes *) 6332238104Sdes _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' 6333238104Sdes ;; 6334238104Sdes esac 6335238104Sdes # Commands to make compiler produce verbose output that lists 6336238104Sdes # what "hidden" libraries, object files and flags are used when 6337238104Sdes # linking a shared library. 6338238104Sdes # 6339238104Sdes # There doesn't appear to be a way to prevent this compiler from 6340238104Sdes # explicitly linking system object files so we need to strip them 6341238104Sdes # from the output so that they don't get included in the library 6342238104Sdes # dependencies. 6343238104Sdes 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"' 6344238104Sdes ;; 6345238104Sdes *) 6346238104Sdes if test "$GXX" = yes; then 6347238104Sdes if test $with_gnu_ld = no; then 6348238104Sdes case $host_cpu in 6349238104Sdes hppa*64*) 6350238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6351238104Sdes ;; 6352238104Sdes ia64*) 6353238104Sdes _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' 6354238104Sdes ;; 6355238104Sdes *) 6356238104Sdes _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' 6357238104Sdes ;; 6358238104Sdes esac 6359238104Sdes fi 6360238104Sdes else 6361238104Sdes # FIXME: insert proper C++ library support 6362238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6363238104Sdes fi 6364238104Sdes ;; 6365238104Sdes esac 6366238104Sdes ;; 6367238104Sdes 6368238104Sdes interix[[3-9]]*) 6369238104Sdes _LT_TAGVAR(hardcode_direct, $1)=no 6370238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6371238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6372238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6373238104Sdes # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6374238104Sdes # Instead, shared libraries are loaded at an image base (0x10000000 by 6375238104Sdes # default) and relocated if they conflict, which is a slow very memory 6376238104Sdes # consuming and fragmenting process. To avoid this, we pick a random, 6377238104Sdes # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6378238104Sdes # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6379238104Sdes _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' 6380238104Sdes _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' 6381238104Sdes ;; 6382238104Sdes irix5* | irix6*) 6383238104Sdes case $cc_basename in 6384238104Sdes CC*) 6385238104Sdes # SGI C++ 6386238104Sdes _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' 6387238104Sdes 6388238104Sdes # Archives containing C++ object files must be created using 6389238104Sdes # "CC -ar", where "CC" is the IRIX C++ compiler. This is 6390238104Sdes # necessary to make sure instantiated templates are included 6391238104Sdes # in the archive. 6392238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 6393238104Sdes ;; 6394238104Sdes *) 6395238104Sdes if test "$GXX" = yes; then 6396238104Sdes if test "$with_gnu_ld" = no; then 6397238104Sdes _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' 6398238104Sdes else 6399238104Sdes _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' 6400238104Sdes fi 6401238104Sdes fi 6402238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 6403238104Sdes ;; 6404238104Sdes esac 6405238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6406238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6407238104Sdes _LT_TAGVAR(inherit_rpath, $1)=yes 6408238104Sdes ;; 6409238104Sdes 6410238104Sdes linux* | k*bsd*-gnu | kopensolaris*-gnu) 6411238104Sdes case $cc_basename in 6412238104Sdes KCC*) 6413238104Sdes # Kuck and Associates, Inc. (KAI) C++ Compiler 6414238104Sdes 6415238104Sdes # KCC will only create a shared library if the output file 6416238104Sdes # ends with ".so" (or ".sl" for HP-UX), so rename the library 6417238104Sdes # to its proper name (with version) after linking. 6418238104Sdes _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' 6419238104Sdes _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' 6420238104Sdes # Commands to make compiler produce verbose output that lists 6421238104Sdes # what "hidden" libraries, object files and flags are used when 6422238104Sdes # linking a shared library. 6423238104Sdes # 6424238104Sdes # There doesn't appear to be a way to prevent this compiler from 6425238104Sdes # explicitly linking system object files so we need to strip them 6426238104Sdes # from the output so that they don't get included in the library 6427238104Sdes # dependencies. 6428238104Sdes 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"' 6429238104Sdes 6430238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6431238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6432238104Sdes 6433238104Sdes # Archives containing C++ object files must be created using 6434238104Sdes # "CC -Bstatic", where "CC" is the KAI C++ compiler. 6435238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 6436238104Sdes ;; 6437238104Sdes icpc* | ecpc* ) 6438238104Sdes # Intel C++ 6439238104Sdes with_gnu_ld=yes 6440238104Sdes # version 8.0 and above of icpc choke on multiply defined symbols 6441238104Sdes # if we add $predep_objects and $postdep_objects, however 7.1 and 6442238104Sdes # earlier do not add the objects themselves. 6443238104Sdes case `$CC -V 2>&1` in 6444238104Sdes *"Version 7."*) 6445238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6446238104Sdes _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' 6447238104Sdes ;; 6448238104Sdes *) # Version 8.0 or newer 6449238104Sdes tmp_idyn= 6450238104Sdes case $host_cpu in 6451238104Sdes ia64*) tmp_idyn=' -i_dynamic';; 6452238104Sdes esac 6453238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6454238104Sdes _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' 6455238104Sdes ;; 6456238104Sdes esac 6457238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6458238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6459238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6460238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 6461238104Sdes ;; 6462238104Sdes pgCC* | pgcpp*) 6463238104Sdes # Portland Group C++ compiler 6464238104Sdes case `$CC -V` in 6465238104Sdes *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 6466238104Sdes _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 6467238104Sdes rm -rf $tpldir~ 6468238104Sdes $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 6469238104Sdes compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 6470238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 6471238104Sdes rm -rf $tpldir~ 6472238104Sdes $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 6473238104Sdes $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 6474238104Sdes $RANLIB $oldlib' 6475238104Sdes _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 6476238104Sdes rm -rf $tpldir~ 6477238104Sdes $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6478238104Sdes $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6479238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 6480238104Sdes rm -rf $tpldir~ 6481238104Sdes $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 6482238104Sdes $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' 6483238104Sdes ;; 6484238104Sdes *) # Version 6 and above use weak symbols 6485238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 6486238104Sdes _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' 6487238104Sdes ;; 6488238104Sdes esac 6489238104Sdes 6490238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6491238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6492238104Sdes _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' 6493238104Sdes ;; 6494238104Sdes cxx*) 6495238104Sdes # Compaq C++ 6496238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 6497238104Sdes _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' 6498238104Sdes 6499238104Sdes runpath_var=LD_RUN_PATH 6500238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6501238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6502238104Sdes 6503238104Sdes # Commands to make compiler produce verbose output that lists 6504238104Sdes # what "hidden" libraries, object files and flags are used when 6505238104Sdes # linking a shared library. 6506238104Sdes # 6507238104Sdes # There doesn't appear to be a way to prevent this compiler from 6508238104Sdes # explicitly linking system object files so we need to strip them 6509238104Sdes # from the output so that they don't get included in the library 6510238104Sdes # dependencies. 6511238104Sdes 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' 6512238104Sdes ;; 6513238104Sdes xl* | mpixl* | bgxl*) 6514238104Sdes # IBM XL 8.0 on PPC, with GNU ld 6515238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6516238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6517238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6518238104Sdes if test "x$supports_anon_versioning" = xyes; then 6519238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 6520238104Sdes cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6521238104Sdes echo "local: *; };" >> $output_objdir/$libname.ver~ 6522238104Sdes $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6523238104Sdes fi 6524238104Sdes ;; 6525238104Sdes *) 6526238104Sdes case `$CC -V 2>&1 | sed 5q` in 6527238104Sdes *Sun\ C*) 6528238104Sdes # Sun C++ 5.9 6529238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6530238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6531238104Sdes _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' 6532238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6533238104Sdes _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' 6534238104Sdes _LT_TAGVAR(compiler_needs_object, $1)=yes 6535238104Sdes 6536238104Sdes # Not sure whether something based on 6537238104Sdes # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 6538238104Sdes # would be better. 6539238104Sdes output_verbose_link_cmd='func_echo_all' 6540238104Sdes 6541238104Sdes # Archives containing C++ object files must be created using 6542238104Sdes # "CC -xar", where "CC" is the Sun C++ compiler. This is 6543238104Sdes # necessary to make sure instantiated templates are included 6544238104Sdes # in the archive. 6545238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6546238104Sdes ;; 6547238104Sdes esac 6548238104Sdes ;; 6549238104Sdes esac 6550238104Sdes ;; 6551238104Sdes 6552238104Sdes lynxos*) 6553238104Sdes # FIXME: insert proper C++ library support 6554238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6555238104Sdes ;; 6556238104Sdes 6557238104Sdes m88k*) 6558238104Sdes # FIXME: insert proper C++ library support 6559238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6560238104Sdes ;; 6561238104Sdes 6562238104Sdes mvs*) 6563238104Sdes case $cc_basename in 6564238104Sdes cxx*) 6565238104Sdes # FIXME: insert proper C++ library support 6566238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6567238104Sdes ;; 6568238104Sdes *) 6569238104Sdes # FIXME: insert proper C++ library support 6570238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6571238104Sdes ;; 6572238104Sdes esac 6573238104Sdes ;; 6574238104Sdes 6575238104Sdes netbsd*) 6576238104Sdes if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 6577238104Sdes _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 6578238104Sdes wlarc= 6579238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6580238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 6581238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6582238104Sdes fi 6583238104Sdes # Workaround some broken pre-1.5 toolchains 6584238104Sdes output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 6585238104Sdes ;; 6586238104Sdes 6587238104Sdes *nto* | *qnx*) 6588238104Sdes _LT_TAGVAR(ld_shlibs, $1)=yes 6589238104Sdes ;; 6590238104Sdes 6591238104Sdes openbsd2*) 6592238104Sdes # C++ shared libraries are fairly broken 6593238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6594238104Sdes ;; 6595238104Sdes 6596238104Sdes openbsd*) 6597238104Sdes if test -f /usr/libexec/ld.so; then 6598238104Sdes _LT_TAGVAR(hardcode_direct, $1)=yes 6599238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6600238104Sdes _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6601238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6602238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6603238104Sdes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6604238104Sdes _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' 6605238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6606238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6607238104Sdes fi 6608238104Sdes output_verbose_link_cmd=func_echo_all 6609238104Sdes else 6610238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6611238104Sdes fi 6612238104Sdes ;; 6613238104Sdes 6614238104Sdes osf3* | osf4* | osf5*) 6615238104Sdes case $cc_basename in 6616238104Sdes KCC*) 6617238104Sdes # Kuck and Associates, Inc. (KAI) C++ Compiler 6618238104Sdes 6619238104Sdes # KCC will only create a shared library if the output file 6620238104Sdes # ends with ".so" (or ".sl" for HP-UX), so rename the library 6621238104Sdes # to its proper name (with version) after linking. 6622238104Sdes _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' 6623238104Sdes 6624238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6625238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6626238104Sdes 6627238104Sdes # Archives containing C++ object files must be created using 6628238104Sdes # the KAI C++ compiler. 6629238104Sdes case $host in 6630238104Sdes osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 6631238104Sdes *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 6632238104Sdes esac 6633238104Sdes ;; 6634238104Sdes RCC*) 6635238104Sdes # Rational C++ 2.4.1 6636238104Sdes # FIXME: insert proper C++ library support 6637238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6638238104Sdes ;; 6639238104Sdes cxx*) 6640238104Sdes case $host in 6641238104Sdes osf3*) 6642238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6643238104Sdes _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' 6644238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6645238104Sdes ;; 6646238104Sdes *) 6647238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6648238104Sdes _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' 6649238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 6650238104Sdes echo "-hidden">> $lib.exp~ 6651238104Sdes $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~ 6652238104Sdes $RM $lib.exp' 6653238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6654238104Sdes ;; 6655238104Sdes esac 6656238104Sdes 6657238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6658238104Sdes 6659238104Sdes # Commands to make compiler produce verbose output that lists 6660238104Sdes # what "hidden" libraries, object files and flags are used when 6661238104Sdes # linking a shared library. 6662238104Sdes # 6663238104Sdes # There doesn't appear to be a way to prevent this compiler from 6664238104Sdes # explicitly linking system object files so we need to strip them 6665238104Sdes # from the output so that they don't get included in the library 6666238104Sdes # dependencies. 6667238104Sdes 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"' 6668238104Sdes ;; 6669238104Sdes *) 6670238104Sdes if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6671238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6672238104Sdes case $host in 6673238104Sdes osf3*) 6674238104Sdes _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' 6675238104Sdes ;; 6676238104Sdes *) 6677238104Sdes _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' 6678238104Sdes ;; 6679238104Sdes esac 6680238104Sdes 6681238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6682238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6683238104Sdes 6684238104Sdes # Commands to make compiler produce verbose output that lists 6685238104Sdes # what "hidden" libraries, object files and flags are used when 6686238104Sdes # linking a shared library. 6687238104Sdes output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6688238104Sdes 6689238104Sdes else 6690238104Sdes # FIXME: insert proper C++ library support 6691238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6692238104Sdes fi 6693238104Sdes ;; 6694238104Sdes esac 6695238104Sdes ;; 6696238104Sdes 6697238104Sdes psos*) 6698238104Sdes # FIXME: insert proper C++ library support 6699238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6700238104Sdes ;; 6701238104Sdes 6702238104Sdes sunos4*) 6703238104Sdes case $cc_basename in 6704238104Sdes CC*) 6705238104Sdes # Sun C++ 4.x 6706238104Sdes # FIXME: insert proper C++ library support 6707238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6708238104Sdes ;; 6709238104Sdes lcc*) 6710238104Sdes # Lucid 6711238104Sdes # FIXME: insert proper C++ library support 6712238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6713238104Sdes ;; 6714238104Sdes *) 6715238104Sdes # FIXME: insert proper C++ library support 6716238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6717238104Sdes ;; 6718238104Sdes esac 6719238104Sdes ;; 6720238104Sdes 6721238104Sdes solaris*) 6722238104Sdes case $cc_basename in 6723238104Sdes CC* | sunCC*) 6724238104Sdes # Sun C++ 4.2, 5.x and Centerline C++ 6725238104Sdes _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 6726238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 6727238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6728238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6729238104Sdes $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' 6730238104Sdes 6731238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6732238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6733238104Sdes case $host_os in 6734238104Sdes solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6735238104Sdes *) 6736238104Sdes # The compiler driver will combine and reorder linker options, 6737238104Sdes # but understands `-z linker_flag'. 6738238104Sdes # Supported since Solaris 2.6 (maybe 2.5.1?) 6739238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6740238104Sdes ;; 6741238104Sdes esac 6742238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 6743238104Sdes 6744238104Sdes output_verbose_link_cmd='func_echo_all' 6745238104Sdes 6746238104Sdes # Archives containing C++ object files must be created using 6747238104Sdes # "CC -xar", where "CC" is the Sun C++ compiler. This is 6748238104Sdes # necessary to make sure instantiated templates are included 6749238104Sdes # in the archive. 6750238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 6751238104Sdes ;; 6752238104Sdes gcx*) 6753238104Sdes # Green Hills C++ Compiler 6754238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6755238104Sdes 6756238104Sdes # The C++ compiler must be used to create the archive. 6757238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 6758238104Sdes ;; 6759238104Sdes *) 6760238104Sdes # GNU C++ compiler with Solaris linker 6761238104Sdes if test "$GXX" = yes && test "$with_gnu_ld" = no; then 6762238104Sdes _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 6763238104Sdes if $CC --version | $GREP -v '^2\.7' > /dev/null; then 6764238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6765238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6766238104Sdes $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6767238104Sdes 6768238104Sdes # Commands to make compiler produce verbose output that lists 6769238104Sdes # what "hidden" libraries, object files and flags are used when 6770238104Sdes # linking a shared library. 6771238104Sdes output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6772238104Sdes else 6773238104Sdes # g++ 2.7 appears to require `-G' NOT `-shared' on this 6774238104Sdes # platform. 6775238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 6776238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6777238104Sdes $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 6778238104Sdes 6779238104Sdes # Commands to make compiler produce verbose output that lists 6780238104Sdes # what "hidden" libraries, object files and flags are used when 6781238104Sdes # linking a shared library. 6782238104Sdes output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6783238104Sdes fi 6784238104Sdes 6785238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 6786238104Sdes case $host_os in 6787238104Sdes solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6788238104Sdes *) 6789238104Sdes _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6790238104Sdes ;; 6791238104Sdes esac 6792238104Sdes fi 6793238104Sdes ;; 6794238104Sdes esac 6795238104Sdes ;; 6796238104Sdes 6797238104Sdes sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6798238104Sdes _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6799238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6800238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6801238104Sdes runpath_var='LD_RUN_PATH' 6802238104Sdes 6803238104Sdes case $cc_basename in 6804238104Sdes CC*) 6805238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6806238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6807238104Sdes ;; 6808238104Sdes *) 6809238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6810238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6811238104Sdes ;; 6812238104Sdes esac 6813238104Sdes ;; 6814238104Sdes 6815238104Sdes sysv5* | sco3.2v5* | sco5v6*) 6816238104Sdes # Note: We can NOT use -z defs as we might desire, because we do not 6817238104Sdes # link with -lc, and that would cause any symbols used from libc to 6818238104Sdes # always be unresolved, which means just about no library would 6819238104Sdes # ever link correctly. If we're not using GNU ld we use -z text 6820238104Sdes # though, which does catch some bad symbols but isn't as heavy-handed 6821238104Sdes # as -z defs. 6822238104Sdes _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6823238104Sdes _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6824238104Sdes _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6825238104Sdes _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6826238104Sdes _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' 6827238104Sdes _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6828238104Sdes _LT_TAGVAR(link_all_deplibs, $1)=yes 6829238104Sdes _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6830238104Sdes runpath_var='LD_RUN_PATH' 6831238104Sdes 6832238104Sdes case $cc_basename in 6833238104Sdes CC*) 6834238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6835238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6836238104Sdes _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 6837238104Sdes '"$_LT_TAGVAR(old_archive_cmds, $1)" 6838238104Sdes _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 6839238104Sdes '"$_LT_TAGVAR(reload_cmds, $1)" 6840238104Sdes ;; 6841238104Sdes *) 6842238104Sdes _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6843238104Sdes _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6844238104Sdes ;; 6845238104Sdes esac 6846238104Sdes ;; 6847238104Sdes 6848238104Sdes tandem*) 6849238104Sdes case $cc_basename in 6850238104Sdes NCC*) 6851238104Sdes # NonStop-UX NCC 3.20 6852238104Sdes # FIXME: insert proper C++ library support 6853238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6854238104Sdes ;; 6855238104Sdes *) 6856238104Sdes # FIXME: insert proper C++ library support 6857238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6858238104Sdes ;; 6859238104Sdes esac 6860238104Sdes ;; 6861238104Sdes 6862238104Sdes vxworks*) 6863238104Sdes # FIXME: insert proper C++ library support 6864238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6865238104Sdes ;; 6866238104Sdes 6867238104Sdes *) 6868238104Sdes # FIXME: insert proper C++ library support 6869238104Sdes _LT_TAGVAR(ld_shlibs, $1)=no 6870238104Sdes ;; 6871238104Sdes esac 6872238104Sdes 6873238104Sdes AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6874238104Sdes test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6875238104Sdes 6876238104Sdes _LT_TAGVAR(GCC, $1)="$GXX" 6877238104Sdes _LT_TAGVAR(LD, $1)="$LD" 6878238104Sdes 6879238104Sdes ## CAVEAT EMPTOR: 6880238104Sdes ## There is no encapsulation within the following macros, do not change 6881238104Sdes ## the running order or otherwise move them around unless you know exactly 6882238104Sdes ## what you are doing... 6883238104Sdes _LT_SYS_HIDDEN_LIBDEPS($1) 6884238104Sdes _LT_COMPILER_PIC($1) 6885238104Sdes _LT_COMPILER_C_O($1) 6886238104Sdes _LT_COMPILER_FILE_LOCKS($1) 6887238104Sdes _LT_LINKER_SHLIBS($1) 6888238104Sdes _LT_SYS_DYNAMIC_LINKER($1) 6889238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 6890238104Sdes 6891238104Sdes _LT_CONFIG($1) 6892238104Sdes fi # test -n "$compiler" 6893238104Sdes 6894238104Sdes CC=$lt_save_CC 6895238104Sdes CFLAGS=$lt_save_CFLAGS 6896238104Sdes LDCXX=$LD 6897238104Sdes LD=$lt_save_LD 6898238104Sdes GCC=$lt_save_GCC 6899238104Sdes with_gnu_ld=$lt_save_with_gnu_ld 6900238104Sdes lt_cv_path_LDCXX=$lt_cv_path_LD 6901238104Sdes lt_cv_path_LD=$lt_save_path_LD 6902238104Sdes lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 6903238104Sdes lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 6904238104Sdesfi # test "$_lt_caught_CXX_error" != yes 6905238104Sdes 6906238104SdesAC_LANG_POP 6907238104Sdes])# _LT_LANG_CXX_CONFIG 6908238104Sdes 6909238104Sdes 6910238104Sdes# _LT_FUNC_STRIPNAME_CNF 6911238104Sdes# ---------------------- 6912238104Sdes# func_stripname_cnf prefix suffix name 6913238104Sdes# strip PREFIX and SUFFIX off of NAME. 6914238104Sdes# PREFIX and SUFFIX must not contain globbing or regex special 6915238104Sdes# characters, hashes, percent signs, but SUFFIX may contain a leading 6916238104Sdes# dot (in which case that matches only a dot). 6917238104Sdes# 6918238104Sdes# This function is identical to the (non-XSI) version of func_stripname, 6919238104Sdes# except this one can be used by m4 code that may be executed by configure, 6920238104Sdes# rather than the libtool script. 6921238104Sdesm4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 6922238104SdesAC_REQUIRE([_LT_DECL_SED]) 6923238104SdesAC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 6924238104Sdesfunc_stripname_cnf () 6925238104Sdes{ 6926238104Sdes case ${2} in 6927238104Sdes .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 6928238104Sdes *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 6929238104Sdes esac 6930238104Sdes} # func_stripname_cnf 6931238104Sdes])# _LT_FUNC_STRIPNAME_CNF 6932238104Sdes 6933238104Sdes# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 6934238104Sdes# --------------------------------- 6935238104Sdes# Figure out "hidden" library dependencies from verbose 6936238104Sdes# compiler output when linking a shared library. 6937238104Sdes# Parse the compiler output and extract the necessary 6938238104Sdes# objects, libraries and library flags. 6939238104Sdesm4_defun([_LT_SYS_HIDDEN_LIBDEPS], 6940238104Sdes[m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6941238104SdesAC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 6942238104Sdes# Dependencies to place before and after the object being linked: 6943238104Sdes_LT_TAGVAR(predep_objects, $1)= 6944238104Sdes_LT_TAGVAR(postdep_objects, $1)= 6945238104Sdes_LT_TAGVAR(predeps, $1)= 6946238104Sdes_LT_TAGVAR(postdeps, $1)= 6947238104Sdes_LT_TAGVAR(compiler_lib_search_path, $1)= 6948238104Sdes 6949238104Sdesdnl we can't use the lt_simple_compile_test_code here, 6950238104Sdesdnl because it contains code intended for an executable, 6951238104Sdesdnl not a library. It's possible we should let each 6952238104Sdesdnl tag define a new lt_????_link_test_code variable, 6953238104Sdesdnl but it's only used here... 6954238104Sdesm4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 6955238104Sdesint a; 6956238104Sdesvoid foo (void) { a = 0; } 6957238104Sdes_LT_EOF 6958238104Sdes], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 6959238104Sdesclass Foo 6960238104Sdes{ 6961238104Sdespublic: 6962238104Sdes Foo (void) { a = 0; } 6963238104Sdesprivate: 6964238104Sdes int a; 6965238104Sdes}; 6966238104Sdes_LT_EOF 6967238104Sdes], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 6968238104Sdes subroutine foo 6969238104Sdes implicit none 6970238104Sdes integer*4 a 6971238104Sdes a=0 6972238104Sdes return 6973238104Sdes end 6974238104Sdes_LT_EOF 6975238104Sdes], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 6976238104Sdes subroutine foo 6977238104Sdes implicit none 6978238104Sdes integer a 6979238104Sdes a=0 6980238104Sdes return 6981238104Sdes end 6982238104Sdes_LT_EOF 6983238104Sdes], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 6984238104Sdespublic class foo { 6985238104Sdes private int a; 6986238104Sdes public void bar (void) { 6987238104Sdes a = 0; 6988238104Sdes } 6989238104Sdes}; 6990238104Sdes_LT_EOF 6991238104Sdes], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 6992238104Sdespackage foo 6993238104Sdesfunc foo() { 6994238104Sdes} 6995238104Sdes_LT_EOF 6996238104Sdes]) 6997238104Sdes 6998238104Sdes_lt_libdeps_save_CFLAGS=$CFLAGS 6999238104Sdescase "$CC $CFLAGS " in #( 7000238104Sdes*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 7001238104Sdes*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 7002238104Sdes*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 7003238104Sdesesac 7004238104Sdes 7005238104Sdesdnl Parse the compiler output and extract the necessary 7006238104Sdesdnl objects, libraries and library flags. 7007238104Sdesif AC_TRY_EVAL(ac_compile); then 7008238104Sdes # Parse the compiler output and extract the necessary 7009238104Sdes # objects, libraries and library flags. 7010238104Sdes 7011238104Sdes # Sentinel used to keep track of whether or not we are before 7012238104Sdes # the conftest object file. 7013238104Sdes pre_test_object_deps_done=no 7014238104Sdes 7015238104Sdes for p in `eval "$output_verbose_link_cmd"`; do 7016238104Sdes case ${prev}${p} in 7017238104Sdes 7018238104Sdes -L* | -R* | -l*) 7019238104Sdes # Some compilers place space between "-{L,R}" and the path. 7020238104Sdes # Remove the space. 7021238104Sdes if test $p = "-L" || 7022238104Sdes test $p = "-R"; then 7023238104Sdes prev=$p 7024238104Sdes continue 7025238104Sdes fi 7026238104Sdes 7027238104Sdes # Expand the sysroot to ease extracting the directories later. 7028238104Sdes if test -z "$prev"; then 7029238104Sdes case $p in 7030238104Sdes -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7031238104Sdes -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7032238104Sdes -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7033238104Sdes esac 7034238104Sdes fi 7035238104Sdes case $p in 7036238104Sdes =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 7037238104Sdes esac 7038238104Sdes if test "$pre_test_object_deps_done" = no; then 7039238104Sdes case ${prev} in 7040238104Sdes -L | -R) 7041238104Sdes # Internal compiler library paths should come after those 7042238104Sdes # provided the user. The postdeps already come after the 7043238104Sdes # user supplied libs so there is no need to process them. 7044238104Sdes if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7045238104Sdes _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 7046238104Sdes else 7047238104Sdes _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 7048238104Sdes fi 7049238104Sdes ;; 7050238104Sdes # The "-l" case would never come before the object being 7051238104Sdes # linked, so don't bother handling this case. 7052238104Sdes esac 7053238104Sdes else 7054238104Sdes if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7055238104Sdes _LT_TAGVAR(postdeps, $1)="${prev}${p}" 7056238104Sdes else 7057238104Sdes _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" 7058238104Sdes fi 7059238104Sdes fi 7060238104Sdes prev= 7061238104Sdes ;; 7062238104Sdes 7063238104Sdes *.lto.$objext) ;; # Ignore GCC LTO objects 7064238104Sdes *.$objext) 7065238104Sdes # This assumes that the test object file only shows up 7066238104Sdes # once in the compiler output. 7067238104Sdes if test "$p" = "conftest.$objext"; then 7068238104Sdes pre_test_object_deps_done=yes 7069238104Sdes continue 7070238104Sdes fi 7071238104Sdes 7072238104Sdes if test "$pre_test_object_deps_done" = no; then 7073238104Sdes if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7074238104Sdes _LT_TAGVAR(predep_objects, $1)="$p" 7075238104Sdes else 7076238104Sdes _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7077238104Sdes fi 7078238104Sdes else 7079238104Sdes if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7080238104Sdes _LT_TAGVAR(postdep_objects, $1)="$p" 7081238104Sdes else 7082238104Sdes _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7083238104Sdes fi 7084238104Sdes fi 7085238104Sdes ;; 7086238104Sdes 7087238104Sdes *) ;; # Ignore the rest. 7088238104Sdes 7089238104Sdes esac 7090238104Sdes done 7091238104Sdes 7092238104Sdes # Clean up. 7093238104Sdes rm -f a.out a.exe 7094238104Sdeselse 7095238104Sdes echo "libtool.m4: error: problem compiling $1 test program" 7096238104Sdesfi 7097238104Sdes 7098238104Sdes$RM -f confest.$objext 7099238104SdesCFLAGS=$_lt_libdeps_save_CFLAGS 7100238104Sdes 7101238104Sdes# PORTME: override above test on systems where it is broken 7102238104Sdesm4_if([$1], [CXX], 7103238104Sdes[case $host_os in 7104238104Sdesinterix[[3-9]]*) 7105238104Sdes # Interix 3.5 installs completely hosed .la files for C++, so rather than 7106238104Sdes # hack all around it, let's just trust "g++" to DTRT. 7107238104Sdes _LT_TAGVAR(predep_objects,$1)= 7108238104Sdes _LT_TAGVAR(postdep_objects,$1)= 7109238104Sdes _LT_TAGVAR(postdeps,$1)= 7110238104Sdes ;; 7111238104Sdes 7112238104Sdeslinux*) 7113238104Sdes case `$CC -V 2>&1 | sed 5q` in 7114238104Sdes *Sun\ C*) 7115238104Sdes # Sun C++ 5.9 7116238104Sdes 7117238104Sdes # The more standards-conforming stlport4 library is 7118238104Sdes # incompatible with the Cstd library. Avoid specifying 7119238104Sdes # it if it's in CXXFLAGS. Ignore libCrun as 7120238104Sdes # -library=stlport4 depends on it. 7121238104Sdes case " $CXX $CXXFLAGS " in 7122238104Sdes *" -library=stlport4 "*) 7123238104Sdes solaris_use_stlport4=yes 7124238104Sdes ;; 7125238104Sdes esac 7126238104Sdes 7127238104Sdes if test "$solaris_use_stlport4" != yes; then 7128238104Sdes _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7129238104Sdes fi 7130238104Sdes ;; 7131238104Sdes esac 7132238104Sdes ;; 7133238104Sdes 7134238104Sdessolaris*) 7135238104Sdes case $cc_basename in 7136238104Sdes CC* | sunCC*) 7137238104Sdes # The more standards-conforming stlport4 library is 7138238104Sdes # incompatible with the Cstd library. Avoid specifying 7139238104Sdes # it if it's in CXXFLAGS. Ignore libCrun as 7140238104Sdes # -library=stlport4 depends on it. 7141238104Sdes case " $CXX $CXXFLAGS " in 7142238104Sdes *" -library=stlport4 "*) 7143238104Sdes solaris_use_stlport4=yes 7144238104Sdes ;; 7145238104Sdes esac 7146238104Sdes 7147238104Sdes # Adding this requires a known-good setup of shared libraries for 7148238104Sdes # Sun compiler versions before 5.6, else PIC objects from an old 7149238104Sdes # archive will be linked into the output, leading to subtle bugs. 7150238104Sdes if test "$solaris_use_stlport4" != yes; then 7151238104Sdes _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 7152238104Sdes fi 7153238104Sdes ;; 7154238104Sdes esac 7155238104Sdes ;; 7156238104Sdesesac 7157238104Sdes]) 7158238104Sdes 7159238104Sdescase " $_LT_TAGVAR(postdeps, $1) " in 7160238104Sdes*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7161238104Sdesesac 7162238104Sdes _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7163238104Sdesif test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7164238104Sdes _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 7165238104Sdesfi 7166238104Sdes_LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7167238104Sdes [The directories searched by this compiler when creating a shared library]) 7168238104Sdes_LT_TAGDECL([], [predep_objects], [1], 7169238104Sdes [Dependencies to place before and after the objects being linked to 7170238104Sdes create a shared library]) 7171238104Sdes_LT_TAGDECL([], [postdep_objects], [1]) 7172238104Sdes_LT_TAGDECL([], [predeps], [1]) 7173238104Sdes_LT_TAGDECL([], [postdeps], [1]) 7174238104Sdes_LT_TAGDECL([], [compiler_lib_search_path], [1], 7175238104Sdes [The library search path used internally by the compiler when linking 7176238104Sdes a shared library]) 7177238104Sdes])# _LT_SYS_HIDDEN_LIBDEPS 7178238104Sdes 7179238104Sdes 7180238104Sdes# _LT_LANG_F77_CONFIG([TAG]) 7181238104Sdes# -------------------------- 7182238104Sdes# Ensure that the configuration variables for a Fortran 77 compiler are 7183238104Sdes# suitably defined. These variables are subsequently used by _LT_CONFIG 7184238104Sdes# to write the compiler configuration to `libtool'. 7185238104Sdesm4_defun([_LT_LANG_F77_CONFIG], 7186238104Sdes[AC_LANG_PUSH(Fortran 77) 7187238104Sdesif test -z "$F77" || test "X$F77" = "Xno"; then 7188238104Sdes _lt_disable_F77=yes 7189238104Sdesfi 7190238104Sdes 7191238104Sdes_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7192238104Sdes_LT_TAGVAR(allow_undefined_flag, $1)= 7193238104Sdes_LT_TAGVAR(always_export_symbols, $1)=no 7194238104Sdes_LT_TAGVAR(archive_expsym_cmds, $1)= 7195238104Sdes_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7196238104Sdes_LT_TAGVAR(hardcode_direct, $1)=no 7197238104Sdes_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7198238104Sdes_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7199238104Sdes_LT_TAGVAR(hardcode_libdir_separator, $1)= 7200238104Sdes_LT_TAGVAR(hardcode_minus_L, $1)=no 7201238104Sdes_LT_TAGVAR(hardcode_automatic, $1)=no 7202238104Sdes_LT_TAGVAR(inherit_rpath, $1)=no 7203238104Sdes_LT_TAGVAR(module_cmds, $1)= 7204238104Sdes_LT_TAGVAR(module_expsym_cmds, $1)= 7205238104Sdes_LT_TAGVAR(link_all_deplibs, $1)=unknown 7206238104Sdes_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7207238104Sdes_LT_TAGVAR(reload_flag, $1)=$reload_flag 7208238104Sdes_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7209238104Sdes_LT_TAGVAR(no_undefined_flag, $1)= 7210238104Sdes_LT_TAGVAR(whole_archive_flag_spec, $1)= 7211238104Sdes_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7212238104Sdes 7213238104Sdes# Source file extension for f77 test sources. 7214238104Sdesac_ext=f 7215238104Sdes 7216238104Sdes# Object file extension for compiled f77 test sources. 7217238104Sdesobjext=o 7218238104Sdes_LT_TAGVAR(objext, $1)=$objext 7219238104Sdes 7220238104Sdes# No sense in running all these tests if we already determined that 7221238104Sdes# the F77 compiler isn't working. Some variables (like enable_shared) 7222238104Sdes# are currently assumed to apply to all compilers on this platform, 7223238104Sdes# and will be corrupted by setting them based on a non-working compiler. 7224238104Sdesif test "$_lt_disable_F77" != yes; then 7225238104Sdes # Code to be used in simple compile tests 7226238104Sdes lt_simple_compile_test_code="\ 7227238104Sdes subroutine t 7228238104Sdes return 7229238104Sdes end 7230238104Sdes" 7231238104Sdes 7232238104Sdes # Code to be used in simple link tests 7233238104Sdes lt_simple_link_test_code="\ 7234238104Sdes program t 7235238104Sdes end 7236238104Sdes" 7237238104Sdes 7238238104Sdes # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7239238104Sdes _LT_TAG_COMPILER 7240238104Sdes 7241238104Sdes # save warnings/boilerplate of simple test code 7242238104Sdes _LT_COMPILER_BOILERPLATE 7243238104Sdes _LT_LINKER_BOILERPLATE 7244238104Sdes 7245238104Sdes # Allow CC to be a program name with arguments. 7246238104Sdes lt_save_CC="$CC" 7247238104Sdes lt_save_GCC=$GCC 7248238104Sdes lt_save_CFLAGS=$CFLAGS 7249238104Sdes CC=${F77-"f77"} 7250238104Sdes CFLAGS=$FFLAGS 7251238104Sdes compiler=$CC 7252238104Sdes _LT_TAGVAR(compiler, $1)=$CC 7253238104Sdes _LT_CC_BASENAME([$compiler]) 7254238104Sdes GCC=$G77 7255238104Sdes if test -n "$compiler"; then 7256238104Sdes AC_MSG_CHECKING([if libtool supports shared libraries]) 7257238104Sdes AC_MSG_RESULT([$can_build_shared]) 7258238104Sdes 7259238104Sdes AC_MSG_CHECKING([whether to build shared libraries]) 7260238104Sdes test "$can_build_shared" = "no" && enable_shared=no 7261238104Sdes 7262238104Sdes # On AIX, shared libraries and static libraries use the same namespace, and 7263238104Sdes # are all built from PIC. 7264238104Sdes case $host_os in 7265238104Sdes aix3*) 7266238104Sdes test "$enable_shared" = yes && enable_static=no 7267238104Sdes if test -n "$RANLIB"; then 7268238104Sdes archive_cmds="$archive_cmds~\$RANLIB \$lib" 7269238104Sdes postinstall_cmds='$RANLIB $lib' 7270238104Sdes fi 7271238104Sdes ;; 7272238104Sdes aix[[4-9]]*) 7273238104Sdes if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7274238104Sdes test "$enable_shared" = yes && enable_static=no 7275238104Sdes fi 7276238104Sdes ;; 7277238104Sdes esac 7278238104Sdes AC_MSG_RESULT([$enable_shared]) 7279238104Sdes 7280238104Sdes AC_MSG_CHECKING([whether to build static libraries]) 7281238104Sdes # Make sure either enable_shared or enable_static is yes. 7282238104Sdes test "$enable_shared" = yes || enable_static=yes 7283238104Sdes AC_MSG_RESULT([$enable_static]) 7284238104Sdes 7285238104Sdes _LT_TAGVAR(GCC, $1)="$G77" 7286238104Sdes _LT_TAGVAR(LD, $1)="$LD" 7287238104Sdes 7288238104Sdes ## CAVEAT EMPTOR: 7289238104Sdes ## There is no encapsulation within the following macros, do not change 7290238104Sdes ## the running order or otherwise move them around unless you know exactly 7291238104Sdes ## what you are doing... 7292238104Sdes _LT_COMPILER_PIC($1) 7293238104Sdes _LT_COMPILER_C_O($1) 7294238104Sdes _LT_COMPILER_FILE_LOCKS($1) 7295238104Sdes _LT_LINKER_SHLIBS($1) 7296238104Sdes _LT_SYS_DYNAMIC_LINKER($1) 7297238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 7298238104Sdes 7299238104Sdes _LT_CONFIG($1) 7300238104Sdes fi # test -n "$compiler" 7301238104Sdes 7302238104Sdes GCC=$lt_save_GCC 7303238104Sdes CC="$lt_save_CC" 7304238104Sdes CFLAGS="$lt_save_CFLAGS" 7305238104Sdesfi # test "$_lt_disable_F77" != yes 7306238104Sdes 7307238104SdesAC_LANG_POP 7308238104Sdes])# _LT_LANG_F77_CONFIG 7309238104Sdes 7310238104Sdes 7311238104Sdes# _LT_LANG_FC_CONFIG([TAG]) 7312238104Sdes# ------------------------- 7313238104Sdes# Ensure that the configuration variables for a Fortran compiler are 7314238104Sdes# suitably defined. These variables are subsequently used by _LT_CONFIG 7315238104Sdes# to write the compiler configuration to `libtool'. 7316238104Sdesm4_defun([_LT_LANG_FC_CONFIG], 7317238104Sdes[AC_LANG_PUSH(Fortran) 7318238104Sdes 7319238104Sdesif test -z "$FC" || test "X$FC" = "Xno"; then 7320238104Sdes _lt_disable_FC=yes 7321238104Sdesfi 7322238104Sdes 7323238104Sdes_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7324238104Sdes_LT_TAGVAR(allow_undefined_flag, $1)= 7325238104Sdes_LT_TAGVAR(always_export_symbols, $1)=no 7326238104Sdes_LT_TAGVAR(archive_expsym_cmds, $1)= 7327238104Sdes_LT_TAGVAR(export_dynamic_flag_spec, $1)= 7328238104Sdes_LT_TAGVAR(hardcode_direct, $1)=no 7329238104Sdes_LT_TAGVAR(hardcode_direct_absolute, $1)=no 7330238104Sdes_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7331238104Sdes_LT_TAGVAR(hardcode_libdir_separator, $1)= 7332238104Sdes_LT_TAGVAR(hardcode_minus_L, $1)=no 7333238104Sdes_LT_TAGVAR(hardcode_automatic, $1)=no 7334238104Sdes_LT_TAGVAR(inherit_rpath, $1)=no 7335238104Sdes_LT_TAGVAR(module_cmds, $1)= 7336238104Sdes_LT_TAGVAR(module_expsym_cmds, $1)= 7337238104Sdes_LT_TAGVAR(link_all_deplibs, $1)=unknown 7338238104Sdes_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7339238104Sdes_LT_TAGVAR(reload_flag, $1)=$reload_flag 7340238104Sdes_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7341238104Sdes_LT_TAGVAR(no_undefined_flag, $1)= 7342238104Sdes_LT_TAGVAR(whole_archive_flag_spec, $1)= 7343238104Sdes_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7344238104Sdes 7345238104Sdes# Source file extension for fc test sources. 7346238104Sdesac_ext=${ac_fc_srcext-f} 7347238104Sdes 7348238104Sdes# Object file extension for compiled fc test sources. 7349238104Sdesobjext=o 7350238104Sdes_LT_TAGVAR(objext, $1)=$objext 7351238104Sdes 7352238104Sdes# No sense in running all these tests if we already determined that 7353238104Sdes# the FC compiler isn't working. Some variables (like enable_shared) 7354238104Sdes# are currently assumed to apply to all compilers on this platform, 7355238104Sdes# and will be corrupted by setting them based on a non-working compiler. 7356238104Sdesif test "$_lt_disable_FC" != yes; then 7357238104Sdes # Code to be used in simple compile tests 7358238104Sdes lt_simple_compile_test_code="\ 7359238104Sdes subroutine t 7360238104Sdes return 7361238104Sdes end 7362238104Sdes" 7363238104Sdes 7364238104Sdes # Code to be used in simple link tests 7365238104Sdes lt_simple_link_test_code="\ 7366238104Sdes program t 7367238104Sdes end 7368238104Sdes" 7369238104Sdes 7370238104Sdes # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7371238104Sdes _LT_TAG_COMPILER 7372238104Sdes 7373238104Sdes # save warnings/boilerplate of simple test code 7374238104Sdes _LT_COMPILER_BOILERPLATE 7375238104Sdes _LT_LINKER_BOILERPLATE 7376238104Sdes 7377238104Sdes # Allow CC to be a program name with arguments. 7378238104Sdes lt_save_CC="$CC" 7379238104Sdes lt_save_GCC=$GCC 7380238104Sdes lt_save_CFLAGS=$CFLAGS 7381238104Sdes CC=${FC-"f95"} 7382238104Sdes CFLAGS=$FCFLAGS 7383238104Sdes compiler=$CC 7384238104Sdes GCC=$ac_cv_fc_compiler_gnu 7385238104Sdes 7386238104Sdes _LT_TAGVAR(compiler, $1)=$CC 7387238104Sdes _LT_CC_BASENAME([$compiler]) 7388238104Sdes 7389238104Sdes if test -n "$compiler"; then 7390238104Sdes AC_MSG_CHECKING([if libtool supports shared libraries]) 7391238104Sdes AC_MSG_RESULT([$can_build_shared]) 7392238104Sdes 7393238104Sdes AC_MSG_CHECKING([whether to build shared libraries]) 7394238104Sdes test "$can_build_shared" = "no" && enable_shared=no 7395238104Sdes 7396238104Sdes # On AIX, shared libraries and static libraries use the same namespace, and 7397238104Sdes # are all built from PIC. 7398238104Sdes case $host_os in 7399238104Sdes aix3*) 7400238104Sdes test "$enable_shared" = yes && enable_static=no 7401238104Sdes if test -n "$RANLIB"; then 7402238104Sdes archive_cmds="$archive_cmds~\$RANLIB \$lib" 7403238104Sdes postinstall_cmds='$RANLIB $lib' 7404238104Sdes fi 7405238104Sdes ;; 7406238104Sdes aix[[4-9]]*) 7407238104Sdes if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7408238104Sdes test "$enable_shared" = yes && enable_static=no 7409238104Sdes fi 7410238104Sdes ;; 7411238104Sdes esac 7412238104Sdes AC_MSG_RESULT([$enable_shared]) 7413238104Sdes 7414238104Sdes AC_MSG_CHECKING([whether to build static libraries]) 7415238104Sdes # Make sure either enable_shared or enable_static is yes. 7416238104Sdes test "$enable_shared" = yes || enable_static=yes 7417238104Sdes AC_MSG_RESULT([$enable_static]) 7418238104Sdes 7419238104Sdes _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" 7420238104Sdes _LT_TAGVAR(LD, $1)="$LD" 7421238104Sdes 7422238104Sdes ## CAVEAT EMPTOR: 7423238104Sdes ## There is no encapsulation within the following macros, do not change 7424238104Sdes ## the running order or otherwise move them around unless you know exactly 7425238104Sdes ## what you are doing... 7426238104Sdes _LT_SYS_HIDDEN_LIBDEPS($1) 7427238104Sdes _LT_COMPILER_PIC($1) 7428238104Sdes _LT_COMPILER_C_O($1) 7429238104Sdes _LT_COMPILER_FILE_LOCKS($1) 7430238104Sdes _LT_LINKER_SHLIBS($1) 7431238104Sdes _LT_SYS_DYNAMIC_LINKER($1) 7432238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 7433238104Sdes 7434238104Sdes _LT_CONFIG($1) 7435238104Sdes fi # test -n "$compiler" 7436238104Sdes 7437238104Sdes GCC=$lt_save_GCC 7438238104Sdes CC=$lt_save_CC 7439238104Sdes CFLAGS=$lt_save_CFLAGS 7440238104Sdesfi # test "$_lt_disable_FC" != yes 7441238104Sdes 7442238104SdesAC_LANG_POP 7443238104Sdes])# _LT_LANG_FC_CONFIG 7444238104Sdes 7445238104Sdes 7446238104Sdes# _LT_LANG_GCJ_CONFIG([TAG]) 7447238104Sdes# -------------------------- 7448238104Sdes# Ensure that the configuration variables for the GNU Java Compiler compiler 7449238104Sdes# are suitably defined. These variables are subsequently used by _LT_CONFIG 7450238104Sdes# to write the compiler configuration to `libtool'. 7451238104Sdesm4_defun([_LT_LANG_GCJ_CONFIG], 7452238104Sdes[AC_REQUIRE([LT_PROG_GCJ])dnl 7453238104SdesAC_LANG_SAVE 7454238104Sdes 7455238104Sdes# Source file extension for Java test sources. 7456238104Sdesac_ext=java 7457238104Sdes 7458238104Sdes# Object file extension for compiled Java test sources. 7459238104Sdesobjext=o 7460238104Sdes_LT_TAGVAR(objext, $1)=$objext 7461238104Sdes 7462238104Sdes# Code to be used in simple compile tests 7463238104Sdeslt_simple_compile_test_code="class foo {}" 7464238104Sdes 7465238104Sdes# Code to be used in simple link tests 7466238104Sdeslt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 7467238104Sdes 7468238104Sdes# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7469238104Sdes_LT_TAG_COMPILER 7470238104Sdes 7471238104Sdes# save warnings/boilerplate of simple test code 7472238104Sdes_LT_COMPILER_BOILERPLATE 7473238104Sdes_LT_LINKER_BOILERPLATE 7474238104Sdes 7475238104Sdes# Allow CC to be a program name with arguments. 7476238104Sdeslt_save_CC=$CC 7477238104Sdeslt_save_CFLAGS=$CFLAGS 7478238104Sdeslt_save_GCC=$GCC 7479238104SdesGCC=yes 7480238104SdesCC=${GCJ-"gcj"} 7481238104SdesCFLAGS=$GCJFLAGS 7482238104Sdescompiler=$CC 7483238104Sdes_LT_TAGVAR(compiler, $1)=$CC 7484238104Sdes_LT_TAGVAR(LD, $1)="$LD" 7485238104Sdes_LT_CC_BASENAME([$compiler]) 7486238104Sdes 7487238104Sdes# GCJ did not exist at the time GCC didn't implicitly link libc in. 7488238104Sdes_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7489238104Sdes 7490238104Sdes_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7491238104Sdes_LT_TAGVAR(reload_flag, $1)=$reload_flag 7492238104Sdes_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7493238104Sdes 7494238104Sdesif test -n "$compiler"; then 7495238104Sdes _LT_COMPILER_NO_RTTI($1) 7496238104Sdes _LT_COMPILER_PIC($1) 7497238104Sdes _LT_COMPILER_C_O($1) 7498238104Sdes _LT_COMPILER_FILE_LOCKS($1) 7499238104Sdes _LT_LINKER_SHLIBS($1) 7500238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 7501238104Sdes 7502238104Sdes _LT_CONFIG($1) 7503238104Sdesfi 7504238104Sdes 7505238104SdesAC_LANG_RESTORE 7506238104Sdes 7507238104SdesGCC=$lt_save_GCC 7508238104SdesCC=$lt_save_CC 7509238104SdesCFLAGS=$lt_save_CFLAGS 7510238104Sdes])# _LT_LANG_GCJ_CONFIG 7511238104Sdes 7512238104Sdes 7513238104Sdes# _LT_LANG_GO_CONFIG([TAG]) 7514238104Sdes# -------------------------- 7515238104Sdes# Ensure that the configuration variables for the GNU Go compiler 7516238104Sdes# are suitably defined. These variables are subsequently used by _LT_CONFIG 7517238104Sdes# to write the compiler configuration to `libtool'. 7518238104Sdesm4_defun([_LT_LANG_GO_CONFIG], 7519238104Sdes[AC_REQUIRE([LT_PROG_GO])dnl 7520238104SdesAC_LANG_SAVE 7521238104Sdes 7522238104Sdes# Source file extension for Go test sources. 7523238104Sdesac_ext=go 7524238104Sdes 7525238104Sdes# Object file extension for compiled Go test sources. 7526238104Sdesobjext=o 7527238104Sdes_LT_TAGVAR(objext, $1)=$objext 7528238104Sdes 7529238104Sdes# Code to be used in simple compile tests 7530238104Sdeslt_simple_compile_test_code="package main; func main() { }" 7531238104Sdes 7532238104Sdes# Code to be used in simple link tests 7533238104Sdeslt_simple_link_test_code='package main; func main() { }' 7534238104Sdes 7535238104Sdes# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7536238104Sdes_LT_TAG_COMPILER 7537238104Sdes 7538238104Sdes# save warnings/boilerplate of simple test code 7539238104Sdes_LT_COMPILER_BOILERPLATE 7540238104Sdes_LT_LINKER_BOILERPLATE 7541238104Sdes 7542238104Sdes# Allow CC to be a program name with arguments. 7543238104Sdeslt_save_CC=$CC 7544238104Sdeslt_save_CFLAGS=$CFLAGS 7545238104Sdeslt_save_GCC=$GCC 7546238104SdesGCC=yes 7547238104SdesCC=${GOC-"gccgo"} 7548238104SdesCFLAGS=$GOFLAGS 7549238104Sdescompiler=$CC 7550238104Sdes_LT_TAGVAR(compiler, $1)=$CC 7551238104Sdes_LT_TAGVAR(LD, $1)="$LD" 7552238104Sdes_LT_CC_BASENAME([$compiler]) 7553238104Sdes 7554238104Sdes# Go did not exist at the time GCC didn't implicitly link libc in. 7555238104Sdes_LT_TAGVAR(archive_cmds_need_lc, $1)=no 7556238104Sdes 7557238104Sdes_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7558238104Sdes_LT_TAGVAR(reload_flag, $1)=$reload_flag 7559238104Sdes_LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7560238104Sdes 7561238104Sdesif test -n "$compiler"; then 7562238104Sdes _LT_COMPILER_NO_RTTI($1) 7563238104Sdes _LT_COMPILER_PIC($1) 7564238104Sdes _LT_COMPILER_C_O($1) 7565238104Sdes _LT_COMPILER_FILE_LOCKS($1) 7566238104Sdes _LT_LINKER_SHLIBS($1) 7567238104Sdes _LT_LINKER_HARDCODE_LIBPATH($1) 7568238104Sdes 7569238104Sdes _LT_CONFIG($1) 7570238104Sdesfi 7571238104Sdes 7572238104SdesAC_LANG_RESTORE 7573238104Sdes 7574238104SdesGCC=$lt_save_GCC 7575238104SdesCC=$lt_save_CC 7576238104SdesCFLAGS=$lt_save_CFLAGS 7577238104Sdes])# _LT_LANG_GO_CONFIG 7578238104Sdes 7579238104Sdes 7580238104Sdes# _LT_LANG_RC_CONFIG([TAG]) 7581238104Sdes# ------------------------- 7582238104Sdes# Ensure that the configuration variables for the Windows resource compiler 7583238104Sdes# are suitably defined. These variables are subsequently used by _LT_CONFIG 7584238104Sdes# to write the compiler configuration to `libtool'. 7585238104Sdesm4_defun([_LT_LANG_RC_CONFIG], 7586238104Sdes[AC_REQUIRE([LT_PROG_RC])dnl 7587238104SdesAC_LANG_SAVE 7588238104Sdes 7589238104Sdes# Source file extension for RC test sources. 7590238104Sdesac_ext=rc 7591238104Sdes 7592238104Sdes# Object file extension for compiled RC test sources. 7593238104Sdesobjext=o 7594238104Sdes_LT_TAGVAR(objext, $1)=$objext 7595238104Sdes 7596238104Sdes# Code to be used in simple compile tests 7597238104Sdeslt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 7598238104Sdes 7599238104Sdes# Code to be used in simple link tests 7600238104Sdeslt_simple_link_test_code="$lt_simple_compile_test_code" 7601238104Sdes 7602238104Sdes# ltmain only uses $CC for tagged configurations so make sure $CC is set. 7603238104Sdes_LT_TAG_COMPILER 7604238104Sdes 7605238104Sdes# save warnings/boilerplate of simple test code 7606238104Sdes_LT_COMPILER_BOILERPLATE 7607238104Sdes_LT_LINKER_BOILERPLATE 7608238104Sdes 7609238104Sdes# Allow CC to be a program name with arguments. 7610238104Sdeslt_save_CC="$CC" 7611238104Sdeslt_save_CFLAGS=$CFLAGS 7612238104Sdeslt_save_GCC=$GCC 7613238104SdesGCC= 7614238104SdesCC=${RC-"windres"} 7615238104SdesCFLAGS= 7616238104Sdescompiler=$CC 7617238104Sdes_LT_TAGVAR(compiler, $1)=$CC 7618238104Sdes_LT_CC_BASENAME([$compiler]) 7619238104Sdes_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 7620238104Sdes 7621238104Sdesif test -n "$compiler"; then 7622238104Sdes : 7623238104Sdes _LT_CONFIG($1) 7624238104Sdesfi 7625238104Sdes 7626238104SdesGCC=$lt_save_GCC 7627238104SdesAC_LANG_RESTORE 7628238104SdesCC=$lt_save_CC 7629238104SdesCFLAGS=$lt_save_CFLAGS 7630238104Sdes])# _LT_LANG_RC_CONFIG 7631238104Sdes 7632238104Sdes 7633238104Sdes# LT_PROG_GCJ 7634238104Sdes# ----------- 7635238104SdesAC_DEFUN([LT_PROG_GCJ], 7636238104Sdes[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 7637238104Sdes [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 7638238104Sdes [AC_CHECK_TOOL(GCJ, gcj,) 7639238104Sdes test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 7640238104Sdes AC_SUBST(GCJFLAGS)])])[]dnl 7641238104Sdes]) 7642238104Sdes 7643238104Sdes# Old name: 7644238104SdesAU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 7645238104Sdesdnl aclocal-1.4 backwards compatibility: 7646238104Sdesdnl AC_DEFUN([LT_AC_PROG_GCJ], []) 7647238104Sdes 7648238104Sdes 7649238104Sdes# LT_PROG_GO 7650238104Sdes# ---------- 7651238104SdesAC_DEFUN([LT_PROG_GO], 7652238104Sdes[AC_CHECK_TOOL(GOC, gccgo,) 7653238104Sdes]) 7654238104Sdes 7655238104Sdes 7656238104Sdes# LT_PROG_RC 7657238104Sdes# ---------- 7658238104SdesAC_DEFUN([LT_PROG_RC], 7659238104Sdes[AC_CHECK_TOOL(RC, windres,) 7660238104Sdes]) 7661238104Sdes 7662238104Sdes# Old name: 7663238104SdesAU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 7664238104Sdesdnl aclocal-1.4 backwards compatibility: 7665238104Sdesdnl AC_DEFUN([LT_AC_PROG_RC], []) 7666238104Sdes 7667238104Sdes 7668238104Sdes# _LT_DECL_EGREP 7669238104Sdes# -------------- 7670238104Sdes# If we don't have a new enough Autoconf to choose the best grep 7671238104Sdes# available, choose the one first in the user's PATH. 7672238104Sdesm4_defun([_LT_DECL_EGREP], 7673238104Sdes[AC_REQUIRE([AC_PROG_EGREP])dnl 7674238104SdesAC_REQUIRE([AC_PROG_FGREP])dnl 7675238104Sdestest -z "$GREP" && GREP=grep 7676238104Sdes_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 7677238104Sdes_LT_DECL([], [EGREP], [1], [An ERE matcher]) 7678238104Sdes_LT_DECL([], [FGREP], [1], [A literal string matcher]) 7679238104Sdesdnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 7680238104SdesAC_SUBST([GREP]) 7681238104Sdes]) 7682238104Sdes 7683238104Sdes 7684238104Sdes# _LT_DECL_OBJDUMP 7685238104Sdes# -------------- 7686238104Sdes# If we don't have a new enough Autoconf to choose the best objdump 7687238104Sdes# available, choose the one first in the user's PATH. 7688238104Sdesm4_defun([_LT_DECL_OBJDUMP], 7689238104Sdes[AC_CHECK_TOOL(OBJDUMP, objdump, false) 7690238104Sdestest -z "$OBJDUMP" && OBJDUMP=objdump 7691238104Sdes_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 7692238104SdesAC_SUBST([OBJDUMP]) 7693238104Sdes]) 7694238104Sdes 7695238104Sdes# _LT_DECL_DLLTOOL 7696238104Sdes# ---------------- 7697238104Sdes# Ensure DLLTOOL variable is set. 7698238104Sdesm4_defun([_LT_DECL_DLLTOOL], 7699238104Sdes[AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7700238104Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool 7701238104Sdes_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 7702238104SdesAC_SUBST([DLLTOOL]) 7703238104Sdes]) 7704238104Sdes 7705238104Sdes# _LT_DECL_SED 7706238104Sdes# ------------ 7707238104Sdes# Check for a fully-functional sed program, that truncates 7708238104Sdes# as few characters as possible. Prefer GNU sed if found. 7709238104Sdesm4_defun([_LT_DECL_SED], 7710238104Sdes[AC_PROG_SED 7711238104Sdestest -z "$SED" && SED=sed 7712238104SdesXsed="$SED -e 1s/^X//" 7713238104Sdes_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 7714238104Sdes_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 7715238104Sdes [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 7716238104Sdes])# _LT_DECL_SED 7717238104Sdes 7718238104Sdesm4_ifndef([AC_PROG_SED], [ 7719238104Sdes# NOTE: This macro has been submitted for inclusion into # 7720238104Sdes# GNU Autoconf as AC_PROG_SED. When it is available in # 7721238104Sdes# a released version of Autoconf we should remove this # 7722238104Sdes# macro and use it instead. # 7723238104Sdes 7724238104Sdesm4_defun([AC_PROG_SED], 7725238104Sdes[AC_MSG_CHECKING([for a sed that does not truncate output]) 7726238104SdesAC_CACHE_VAL(lt_cv_path_SED, 7727238104Sdes[# Loop through the user's path and test for sed and gsed. 7728238104Sdes# Then use that list of sed's as ones to test for truncation. 7729238104Sdesas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730238104Sdesfor as_dir in $PATH 7731238104Sdesdo 7732238104Sdes IFS=$as_save_IFS 7733238104Sdes test -z "$as_dir" && as_dir=. 7734238104Sdes for lt_ac_prog in sed gsed; do 7735238104Sdes for ac_exec_ext in '' $ac_executable_extensions; do 7736238104Sdes if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 7737238104Sdes lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 7738238104Sdes fi 7739238104Sdes done 7740238104Sdes done 7741238104Sdesdone 7742238104SdesIFS=$as_save_IFS 7743238104Sdeslt_ac_max=0 7744238104Sdeslt_ac_count=0 7745238104Sdes# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7746238104Sdes# along with /bin/sed that truncates output. 7747238104Sdesfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7748238104Sdes test ! -f $lt_ac_sed && continue 7749238104Sdes cat /dev/null > conftest.in 7750238104Sdes lt_ac_count=0 7751238104Sdes echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7752238104Sdes # Check for GNU sed and select it if it is found. 7753238104Sdes if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7754238104Sdes lt_cv_path_SED=$lt_ac_sed 7755238104Sdes break 7756238104Sdes fi 7757238104Sdes while true; do 7758238104Sdes cat conftest.in conftest.in >conftest.tmp 7759238104Sdes mv conftest.tmp conftest.in 7760238104Sdes cp conftest.in conftest.nl 7761238104Sdes echo >>conftest.nl 7762238104Sdes $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 7763238104Sdes cmp -s conftest.out conftest.nl || break 7764238104Sdes # 10000 chars as input seems more than enough 7765238104Sdes test $lt_ac_count -gt 10 && break 7766238104Sdes lt_ac_count=`expr $lt_ac_count + 1` 7767238104Sdes if test $lt_ac_count -gt $lt_ac_max; then 7768238104Sdes lt_ac_max=$lt_ac_count 7769238104Sdes lt_cv_path_SED=$lt_ac_sed 7770238104Sdes fi 7771238104Sdes done 7772238104Sdesdone 7773238104Sdes]) 7774238104SdesSED=$lt_cv_path_SED 7775238104SdesAC_SUBST([SED]) 7776238104SdesAC_MSG_RESULT([$SED]) 7777238104Sdes])#AC_PROG_SED 7778238104Sdes])#m4_ifndef 7779238104Sdes 7780238104Sdes# Old name: 7781238104SdesAU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 7782238104Sdesdnl aclocal-1.4 backwards compatibility: 7783238104Sdesdnl AC_DEFUN([LT_AC_PROG_SED], []) 7784238104Sdes 7785238104Sdes 7786238104Sdes# _LT_CHECK_SHELL_FEATURES 7787238104Sdes# ------------------------ 7788238104Sdes# Find out whether the shell is Bourne or XSI compatible, 7789238104Sdes# or has some other useful features. 7790238104Sdesm4_defun([_LT_CHECK_SHELL_FEATURES], 7791238104Sdes[AC_MSG_CHECKING([whether the shell understands some XSI constructs]) 7792238104Sdes# Try some XSI features 7793238104Sdesxsi_shell=no 7794238104Sdes( _lt_dummy="a/b/c" 7795238104Sdes test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7796238104Sdes = c,a/b,b/c, \ 7797238104Sdes && eval 'test $(( 1 + 1 )) -eq 2 \ 7798238104Sdes && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7799238104Sdes && xsi_shell=yes 7800238104SdesAC_MSG_RESULT([$xsi_shell]) 7801238104Sdes_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) 7802238104Sdes 7803238104SdesAC_MSG_CHECKING([whether the shell understands "+="]) 7804238104Sdeslt_shell_append=no 7805238104Sdes( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ 7806238104Sdes >/dev/null 2>&1 \ 7807238104Sdes && lt_shell_append=yes 7808238104SdesAC_MSG_RESULT([$lt_shell_append]) 7809238104Sdes_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) 7810238104Sdes 7811238104Sdesif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7812238104Sdes lt_unset=unset 7813238104Sdeselse 7814238104Sdes lt_unset=false 7815238104Sdesfi 7816238104Sdes_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 7817238104Sdes 7818238104Sdes# test EBCDIC or ASCII 7819238104Sdescase `echo X|tr X '\101'` in 7820238104Sdes A) # ASCII based system 7821238104Sdes # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7822238104Sdes lt_SP2NL='tr \040 \012' 7823238104Sdes lt_NL2SP='tr \015\012 \040\040' 7824238104Sdes ;; 7825238104Sdes *) # EBCDIC based system 7826238104Sdes lt_SP2NL='tr \100 \n' 7827238104Sdes lt_NL2SP='tr \r\n \100\100' 7828238104Sdes ;; 7829238104Sdesesac 7830238104Sdes_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 7831238104Sdes_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 7832238104Sdes])# _LT_CHECK_SHELL_FEATURES 7833238104Sdes 7834238104Sdes 7835238104Sdes# _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) 7836238104Sdes# ------------------------------------------------------ 7837238104Sdes# In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and 7838238104Sdes# '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. 7839238104Sdesm4_defun([_LT_PROG_FUNCTION_REPLACE], 7840238104Sdes[dnl { 7841238104Sdessed -e '/^$1 ()$/,/^} # $1 /c\ 7842238104Sdes$1 ()\ 7843238104Sdes{\ 7844238104Sdesm4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) 7845238104Sdes} # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ 7846238104Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 7847238104Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7848238104Sdestest 0 -eq $? || _lt_function_replace_fail=: 7849238104Sdes]) 7850238104Sdes 7851238104Sdes 7852238104Sdes# _LT_PROG_REPLACE_SHELLFNS 7853238104Sdes# ------------------------- 7854238104Sdes# Replace existing portable implementations of several shell functions with 7855238104Sdes# equivalent extended shell implementations where those features are available.. 7856238104Sdesm4_defun([_LT_PROG_REPLACE_SHELLFNS], 7857238104Sdes[if test x"$xsi_shell" = xyes; then 7858238104Sdes _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl 7859238104Sdes case ${1} in 7860238104Sdes */*) func_dirname_result="${1%/*}${2}" ;; 7861238104Sdes * ) func_dirname_result="${3}" ;; 7862238104Sdes esac]) 7863238104Sdes 7864238104Sdes _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl 7865238104Sdes func_basename_result="${1##*/}"]) 7866238104Sdes 7867238104Sdes _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl 7868238104Sdes case ${1} in 7869238104Sdes */*) func_dirname_result="${1%/*}${2}" ;; 7870238104Sdes * ) func_dirname_result="${3}" ;; 7871238104Sdes esac 7872238104Sdes func_basename_result="${1##*/}"]) 7873238104Sdes 7874238104Sdes _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl 7875238104Sdes # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 7876238104Sdes # positional parameters, so assign one to ordinary parameter first. 7877238104Sdes func_stripname_result=${3} 7878238104Sdes func_stripname_result=${func_stripname_result#"${1}"} 7879238104Sdes func_stripname_result=${func_stripname_result%"${2}"}]) 7880238104Sdes 7881238104Sdes _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl 7882238104Sdes func_split_long_opt_name=${1%%=*} 7883238104Sdes func_split_long_opt_arg=${1#*=}]) 7884238104Sdes 7885238104Sdes _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl 7886238104Sdes func_split_short_opt_arg=${1#??} 7887238104Sdes func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) 7888238104Sdes 7889238104Sdes _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl 7890238104Sdes case ${1} in 7891238104Sdes *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 7892238104Sdes *) func_lo2o_result=${1} ;; 7893238104Sdes esac]) 7894238104Sdes 7895238104Sdes _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) 7896238104Sdes 7897238104Sdes _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) 7898238104Sdes 7899238104Sdes _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) 7900238104Sdesfi 7901238104Sdes 7902238104Sdesif test x"$lt_shell_append" = xyes; then 7903238104Sdes _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) 7904238104Sdes 7905238104Sdes _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl 7906238104Sdes func_quote_for_eval "${2}" 7907238104Sdesdnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ 7908238104Sdes eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) 7909238104Sdes 7910238104Sdes # Save a `func_append' function call where possible by direct use of '+=' 7911238104Sdes sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 7912238104Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 7913238104Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7914238104Sdes test 0 -eq $? || _lt_function_replace_fail=: 7915238104Sdeselse 7916238104Sdes # Save a `func_append' function call even when '+=' is not available 7917238104Sdes sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 7918238104Sdes && mv -f "$cfgfile.tmp" "$cfgfile" \ 7919238104Sdes || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 7920238104Sdes test 0 -eq $? || _lt_function_replace_fail=: 7921238104Sdesfi 7922238104Sdes 7923238104Sdesif test x"$_lt_function_replace_fail" = x":"; then 7924238104Sdes AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) 7925238104Sdesfi 7926238104Sdes]) 7927238104Sdes 7928238104Sdes# _LT_PATH_CONVERSION_FUNCTIONS 7929238104Sdes# ----------------------------- 7930238104Sdes# Determine which file name conversion functions should be used by 7931238104Sdes# func_to_host_file (and, implicitly, by func_to_host_path). These are needed 7932238104Sdes# for certain cross-compile configurations and native mingw. 7933238104Sdesm4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 7934238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 7935238104SdesAC_REQUIRE([AC_CANONICAL_BUILD])dnl 7936238104SdesAC_MSG_CHECKING([how to convert $build file names to $host format]) 7937238104SdesAC_CACHE_VAL(lt_cv_to_host_file_cmd, 7938238104Sdes[case $host in 7939238104Sdes *-*-mingw* ) 7940238104Sdes case $build in 7941238104Sdes *-*-mingw* ) # actually msys 7942238104Sdes lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7943238104Sdes ;; 7944238104Sdes *-*-cygwin* ) 7945238104Sdes lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7946238104Sdes ;; 7947238104Sdes * ) # otherwise, assume *nix 7948238104Sdes lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7949238104Sdes ;; 7950238104Sdes esac 7951238104Sdes ;; 7952238104Sdes *-*-cygwin* ) 7953238104Sdes case $build in 7954238104Sdes *-*-mingw* ) # actually msys 7955238104Sdes lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7956238104Sdes ;; 7957238104Sdes *-*-cygwin* ) 7958238104Sdes lt_cv_to_host_file_cmd=func_convert_file_noop 7959238104Sdes ;; 7960238104Sdes * ) # otherwise, assume *nix 7961238104Sdes lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7962238104Sdes ;; 7963238104Sdes esac 7964238104Sdes ;; 7965238104Sdes * ) # unhandled hosts (and "normal" native builds) 7966238104Sdes lt_cv_to_host_file_cmd=func_convert_file_noop 7967238104Sdes ;; 7968238104Sdesesac 7969238104Sdes]) 7970238104Sdesto_host_file_cmd=$lt_cv_to_host_file_cmd 7971238104SdesAC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 7972238104Sdes_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 7973238104Sdes [0], [convert $build file names to $host format])dnl 7974238104Sdes 7975238104SdesAC_MSG_CHECKING([how to convert $build file names to toolchain format]) 7976238104SdesAC_CACHE_VAL(lt_cv_to_tool_file_cmd, 7977238104Sdes[#assume ordinary cross tools, or native build. 7978238104Sdeslt_cv_to_tool_file_cmd=func_convert_file_noop 7979238104Sdescase $host in 7980238104Sdes *-*-mingw* ) 7981238104Sdes case $build in 7982238104Sdes *-*-mingw* ) # actually msys 7983238104Sdes lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7984238104Sdes ;; 7985238104Sdes esac 7986238104Sdes ;; 7987238104Sdesesac 7988238104Sdes]) 7989238104Sdesto_tool_file_cmd=$lt_cv_to_tool_file_cmd 7990238104SdesAC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 7991238104Sdes_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 7992238104Sdes [0], [convert $build files to toolchain format])dnl 7993238104Sdes])# _LT_PATH_CONVERSION_FUNCTIONS 7994238104Sdes 7995238104Sdes# Helper functions for option handling. -*- Autoconf -*- 7996238104Sdes# 7997238104Sdes# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, 7998238104Sdes# Inc. 7999238104Sdes# Written by Gary V. Vaughan, 2004 8000238104Sdes# 8001238104Sdes# This file is free software; the Free Software Foundation gives 8002238104Sdes# unlimited permission to copy and/or distribute it, with or without 8003238104Sdes# modifications, as long as this notice is preserved. 8004238104Sdes 8005238104Sdes# serial 7 ltoptions.m4 8006238104Sdes 8007238104Sdes# This is to help aclocal find these macros, as it can't see m4_define. 8008238104SdesAC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 8009238104Sdes 8010238104Sdes 8011238104Sdes# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 8012238104Sdes# ------------------------------------------ 8013238104Sdesm4_define([_LT_MANGLE_OPTION], 8014238104Sdes[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 8015238104Sdes 8016238104Sdes 8017238104Sdes# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 8018238104Sdes# --------------------------------------- 8019238104Sdes# Set option OPTION-NAME for macro MACRO-NAME, and if there is a 8020238104Sdes# matching handler defined, dispatch to it. Other OPTION-NAMEs are 8021238104Sdes# saved as a flag. 8022238104Sdesm4_define([_LT_SET_OPTION], 8023238104Sdes[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 8024238104Sdesm4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 8025238104Sdes _LT_MANGLE_DEFUN([$1], [$2]), 8026238104Sdes [m4_warning([Unknown $1 option `$2'])])[]dnl 8027238104Sdes]) 8028238104Sdes 8029238104Sdes 8030238104Sdes# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 8031238104Sdes# ------------------------------------------------------------ 8032238104Sdes# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8033238104Sdesm4_define([_LT_IF_OPTION], 8034238104Sdes[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 8035238104Sdes 8036238104Sdes 8037238104Sdes# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 8038238104Sdes# ------------------------------------------------------- 8039238104Sdes# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 8040238104Sdes# are set. 8041238104Sdesm4_define([_LT_UNLESS_OPTIONS], 8042238104Sdes[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8043238104Sdes [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 8044238104Sdes [m4_define([$0_found])])])[]dnl 8045238104Sdesm4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 8046238104Sdes])[]dnl 8047238104Sdes]) 8048238104Sdes 8049238104Sdes 8050238104Sdes# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 8051238104Sdes# ---------------------------------------- 8052238104Sdes# OPTION-LIST is a space-separated list of Libtool options associated 8053238104Sdes# with MACRO-NAME. If any OPTION has a matching handler declared with 8054238104Sdes# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 8055238104Sdes# the unknown option and exit. 8056238104Sdesm4_defun([_LT_SET_OPTIONS], 8057238104Sdes[# Set options 8058238104Sdesm4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8059238104Sdes [_LT_SET_OPTION([$1], _LT_Option)]) 8060238104Sdes 8061238104Sdesm4_if([$1],[LT_INIT],[ 8062238104Sdes dnl 8063238104Sdes dnl Simply set some default values (i.e off) if boolean options were not 8064238104Sdes dnl specified: 8065238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 8066238104Sdes ]) 8067238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 8068238104Sdes ]) 8069238104Sdes dnl 8070238104Sdes dnl If no reference was made to various pairs of opposing options, then 8071238104Sdes dnl we run the default mode handler for the pair. For example, if neither 8072238104Sdes dnl `shared' nor `disable-shared' was passed, we enable building of shared 8073238104Sdes dnl archives by default: 8074238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 8075238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 8076238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 8077238104Sdes _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 8078238104Sdes [_LT_ENABLE_FAST_INSTALL]) 8079238104Sdes ]) 8080238104Sdes])# _LT_SET_OPTIONS 8081238104Sdes 8082238104Sdes 8083238104Sdes 8084238104Sdes# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 8085238104Sdes# ----------------------------------------- 8086238104Sdesm4_define([_LT_MANGLE_DEFUN], 8087238104Sdes[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 8088238104Sdes 8089238104Sdes 8090238104Sdes# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 8091238104Sdes# ----------------------------------------------- 8092238104Sdesm4_define([LT_OPTION_DEFINE], 8093238104Sdes[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 8094238104Sdes])# LT_OPTION_DEFINE 8095238104Sdes 8096238104Sdes 8097238104Sdes# dlopen 8098238104Sdes# ------ 8099238104SdesLT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 8100238104Sdes]) 8101238104Sdes 8102238104SdesAU_DEFUN([AC_LIBTOOL_DLOPEN], 8103238104Sdes[_LT_SET_OPTION([LT_INIT], [dlopen]) 8104238104SdesAC_DIAGNOSE([obsolete], 8105238104Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 8106238104Sdesput the `dlopen' option into LT_INIT's first parameter.]) 8107238104Sdes]) 8108238104Sdes 8109238104Sdesdnl aclocal-1.4 backwards compatibility: 8110238104Sdesdnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 8111238104Sdes 8112238104Sdes 8113238104Sdes# win32-dll 8114238104Sdes# --------- 8115238104Sdes# Declare package support for building win32 dll's. 8116238104SdesLT_OPTION_DEFINE([LT_INIT], [win32-dll], 8117238104Sdes[enable_win32_dll=yes 8118238104Sdes 8119238104Sdescase $host in 8120238104Sdes*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8121238104Sdes AC_CHECK_TOOL(AS, as, false) 8122238104Sdes AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8123238104Sdes AC_CHECK_TOOL(OBJDUMP, objdump, false) 8124238104Sdes ;; 8125238104Sdesesac 8126238104Sdes 8127238104Sdestest -z "$AS" && AS=as 8128238104Sdes_LT_DECL([], [AS], [1], [Assembler program])dnl 8129238104Sdes 8130238104Sdestest -z "$DLLTOOL" && DLLTOOL=dlltool 8131238104Sdes_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 8132238104Sdes 8133238104Sdestest -z "$OBJDUMP" && OBJDUMP=objdump 8134238104Sdes_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 8135238104Sdes])# win32-dll 8136238104Sdes 8137238104SdesAU_DEFUN([AC_LIBTOOL_WIN32_DLL], 8138238104Sdes[AC_REQUIRE([AC_CANONICAL_HOST])dnl 8139238104Sdes_LT_SET_OPTION([LT_INIT], [win32-dll]) 8140238104SdesAC_DIAGNOSE([obsolete], 8141238104Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 8142238104Sdesput the `win32-dll' option into LT_INIT's first parameter.]) 8143238104Sdes]) 8144238104Sdes 8145238104Sdesdnl aclocal-1.4 backwards compatibility: 8146238104Sdesdnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 8147238104Sdes 8148238104Sdes 8149238104Sdes# _LT_ENABLE_SHARED([DEFAULT]) 8150238104Sdes# ---------------------------- 8151238104Sdes# implement the --enable-shared flag, and supports the `shared' and 8152238104Sdes# `disable-shared' LT_INIT options. 8153238104Sdes# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8154238104Sdesm4_define([_LT_ENABLE_SHARED], 8155238104Sdes[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 8156238104SdesAC_ARG_ENABLE([shared], 8157238104Sdes [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 8158238104Sdes [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 8159238104Sdes [p=${PACKAGE-default} 8160238104Sdes case $enableval in 8161238104Sdes yes) enable_shared=yes ;; 8162238104Sdes no) enable_shared=no ;; 8163238104Sdes *) 8164238104Sdes enable_shared=no 8165238104Sdes # Look at the argument we got. We use all the common list separators. 8166238104Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8167238104Sdes for pkg in $enableval; do 8168238104Sdes IFS="$lt_save_ifs" 8169238104Sdes if test "X$pkg" = "X$p"; then 8170238104Sdes enable_shared=yes 8171238104Sdes fi 8172238104Sdes done 8173238104Sdes IFS="$lt_save_ifs" 8174238104Sdes ;; 8175238104Sdes esac], 8176238104Sdes [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 8177238104Sdes 8178238104Sdes _LT_DECL([build_libtool_libs], [enable_shared], [0], 8179238104Sdes [Whether or not to build shared libraries]) 8180238104Sdes])# _LT_ENABLE_SHARED 8181238104Sdes 8182238104SdesLT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 8183238104SdesLT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 8184238104Sdes 8185238104Sdes# Old names: 8186238104SdesAC_DEFUN([AC_ENABLE_SHARED], 8187238104Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 8188238104Sdes]) 8189238104Sdes 8190238104SdesAC_DEFUN([AC_DISABLE_SHARED], 8191238104Sdes[_LT_SET_OPTION([LT_INIT], [disable-shared]) 8192238104Sdes]) 8193238104Sdes 8194238104SdesAU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 8195238104SdesAU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 8196238104Sdes 8197238104Sdesdnl aclocal-1.4 backwards compatibility: 8198238104Sdesdnl AC_DEFUN([AM_ENABLE_SHARED], []) 8199238104Sdesdnl AC_DEFUN([AM_DISABLE_SHARED], []) 8200238104Sdes 8201238104Sdes 8202238104Sdes 8203238104Sdes# _LT_ENABLE_STATIC([DEFAULT]) 8204238104Sdes# ---------------------------- 8205238104Sdes# implement the --enable-static flag, and support the `static' and 8206238104Sdes# `disable-static' LT_INIT options. 8207238104Sdes# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8208238104Sdesm4_define([_LT_ENABLE_STATIC], 8209238104Sdes[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 8210238104SdesAC_ARG_ENABLE([static], 8211238104Sdes [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 8212238104Sdes [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 8213238104Sdes [p=${PACKAGE-default} 8214238104Sdes case $enableval in 8215238104Sdes yes) enable_static=yes ;; 8216238104Sdes no) enable_static=no ;; 8217238104Sdes *) 8218238104Sdes enable_static=no 8219238104Sdes # Look at the argument we got. We use all the common list separators. 8220238104Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8221238104Sdes for pkg in $enableval; do 8222238104Sdes IFS="$lt_save_ifs" 8223238104Sdes if test "X$pkg" = "X$p"; then 8224238104Sdes enable_static=yes 8225238104Sdes fi 8226238104Sdes done 8227238104Sdes IFS="$lt_save_ifs" 8228238104Sdes ;; 8229238104Sdes esac], 8230238104Sdes [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 8231238104Sdes 8232238104Sdes _LT_DECL([build_old_libs], [enable_static], [0], 8233238104Sdes [Whether or not to build static libraries]) 8234238104Sdes])# _LT_ENABLE_STATIC 8235238104Sdes 8236238104SdesLT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 8237238104SdesLT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 8238238104Sdes 8239238104Sdes# Old names: 8240238104SdesAC_DEFUN([AC_ENABLE_STATIC], 8241238104Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8242238104Sdes]) 8243238104Sdes 8244238104SdesAC_DEFUN([AC_DISABLE_STATIC], 8245238104Sdes[_LT_SET_OPTION([LT_INIT], [disable-static]) 8246238104Sdes]) 8247238104Sdes 8248238104SdesAU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8249238104SdesAU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8250238104Sdes 8251238104Sdesdnl aclocal-1.4 backwards compatibility: 8252238104Sdesdnl AC_DEFUN([AM_ENABLE_STATIC], []) 8253238104Sdesdnl AC_DEFUN([AM_DISABLE_STATIC], []) 8254238104Sdes 8255238104Sdes 8256238104Sdes 8257238104Sdes# _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8258238104Sdes# ---------------------------------- 8259238104Sdes# implement the --enable-fast-install flag, and support the `fast-install' 8260238104Sdes# and `disable-fast-install' LT_INIT options. 8261238104Sdes# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 8262238104Sdesm4_define([_LT_ENABLE_FAST_INSTALL], 8263238104Sdes[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8264238104SdesAC_ARG_ENABLE([fast-install], 8265238104Sdes [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8266238104Sdes [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8267238104Sdes [p=${PACKAGE-default} 8268238104Sdes case $enableval in 8269238104Sdes yes) enable_fast_install=yes ;; 8270238104Sdes no) enable_fast_install=no ;; 8271238104Sdes *) 8272238104Sdes enable_fast_install=no 8273238104Sdes # Look at the argument we got. We use all the common list separators. 8274238104Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8275238104Sdes for pkg in $enableval; do 8276238104Sdes IFS="$lt_save_ifs" 8277238104Sdes if test "X$pkg" = "X$p"; then 8278238104Sdes enable_fast_install=yes 8279238104Sdes fi 8280238104Sdes done 8281238104Sdes IFS="$lt_save_ifs" 8282238104Sdes ;; 8283238104Sdes esac], 8284238104Sdes [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8285238104Sdes 8286238104Sdes_LT_DECL([fast_install], [enable_fast_install], [0], 8287238104Sdes [Whether or not to optimize for fast installation])dnl 8288238104Sdes])# _LT_ENABLE_FAST_INSTALL 8289238104Sdes 8290238104SdesLT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8291238104SdesLT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8292238104Sdes 8293238104Sdes# Old names: 8294238104SdesAU_DEFUN([AC_ENABLE_FAST_INSTALL], 8295238104Sdes[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8296238104SdesAC_DIAGNOSE([obsolete], 8297238104Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8298238104Sdesthe `fast-install' option into LT_INIT's first parameter.]) 8299238104Sdes]) 8300238104Sdes 8301238104SdesAU_DEFUN([AC_DISABLE_FAST_INSTALL], 8302238104Sdes[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8303238104SdesAC_DIAGNOSE([obsolete], 8304238104Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you put 8305238104Sdesthe `disable-fast-install' option into LT_INIT's first parameter.]) 8306238104Sdes]) 8307238104Sdes 8308238104Sdesdnl aclocal-1.4 backwards compatibility: 8309238104Sdesdnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8310238104Sdesdnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8311238104Sdes 8312238104Sdes 8313238104Sdes# _LT_WITH_PIC([MODE]) 8314238104Sdes# -------------------- 8315238104Sdes# implement the --with-pic flag, and support the `pic-only' and `no-pic' 8316238104Sdes# LT_INIT options. 8317238104Sdes# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 8318238104Sdesm4_define([_LT_WITH_PIC], 8319238104Sdes[AC_ARG_WITH([pic], 8320238104Sdes [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 8321238104Sdes [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8322238104Sdes [lt_p=${PACKAGE-default} 8323238104Sdes case $withval in 8324238104Sdes yes|no) pic_mode=$withval ;; 8325238104Sdes *) 8326238104Sdes pic_mode=default 8327238104Sdes # Look at the argument we got. We use all the common list separators. 8328238104Sdes lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8329238104Sdes for lt_pkg in $withval; do 8330238104Sdes IFS="$lt_save_ifs" 8331238104Sdes if test "X$lt_pkg" = "X$lt_p"; then 8332238104Sdes pic_mode=yes 8333238104Sdes fi 8334238104Sdes done 8335238104Sdes IFS="$lt_save_ifs" 8336238104Sdes ;; 8337238104Sdes esac], 8338238104Sdes [pic_mode=default]) 8339238104Sdes 8340238104Sdestest -z "$pic_mode" && pic_mode=m4_default([$1], [default]) 8341238104Sdes 8342238104Sdes_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8343238104Sdes])# _LT_WITH_PIC 8344238104Sdes 8345238104SdesLT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8346238104SdesLT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8347238104Sdes 8348238104Sdes# Old name: 8349238104SdesAU_DEFUN([AC_LIBTOOL_PICMODE], 8350238104Sdes[_LT_SET_OPTION([LT_INIT], [pic-only]) 8351238104SdesAC_DIAGNOSE([obsolete], 8352238104Sdes[$0: Remove this warning and the call to _LT_SET_OPTION when you 8353238104Sdesput the `pic-only' option into LT_INIT's first parameter.]) 8354238104Sdes]) 8355238104Sdes 8356238104Sdesdnl aclocal-1.4 backwards compatibility: 8357238104Sdesdnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8358238104Sdes 8359238104Sdes 8360238104Sdesm4_define([_LTDL_MODE], []) 8361238104SdesLT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8362238104Sdes [m4_define([_LTDL_MODE], [nonrecursive])]) 8363238104SdesLT_OPTION_DEFINE([LTDL_INIT], [recursive], 8364238104Sdes [m4_define([_LTDL_MODE], [recursive])]) 8365238104SdesLT_OPTION_DEFINE([LTDL_INIT], [subproject], 8366238104Sdes [m4_define([_LTDL_MODE], [subproject])]) 8367238104Sdes 8368238104Sdesm4_define([_LTDL_TYPE], []) 8369238104SdesLT_OPTION_DEFINE([LTDL_INIT], [installable], 8370238104Sdes [m4_define([_LTDL_TYPE], [installable])]) 8371238104SdesLT_OPTION_DEFINE([LTDL_INIT], [convenience], 8372238104Sdes [m4_define([_LTDL_TYPE], [convenience])]) 8373238104Sdes 8374238104Sdes# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8375238104Sdes# 8376238104Sdes# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. 8377238104Sdes# Written by Gary V. Vaughan, 2004 8378238104Sdes# 8379238104Sdes# This file is free software; the Free Software Foundation gives 8380238104Sdes# unlimited permission to copy and/or distribute it, with or without 8381238104Sdes# modifications, as long as this notice is preserved. 8382238104Sdes 8383238104Sdes# serial 6 ltsugar.m4 8384238104Sdes 8385238104Sdes# This is to help aclocal find these macros, as it can't see m4_define. 8386238104SdesAC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8387238104Sdes 8388238104Sdes 8389238104Sdes# lt_join(SEP, ARG1, [ARG2...]) 8390238104Sdes# ----------------------------- 8391238104Sdes# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8392238104Sdes# associated separator. 8393238104Sdes# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8394238104Sdes# versions in m4sugar had bugs. 8395238104Sdesm4_define([lt_join], 8396238104Sdes[m4_if([$#], [1], [], 8397238104Sdes [$#], [2], [[$2]], 8398238104Sdes [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8399238104Sdesm4_define([_lt_join], 8400238104Sdes[m4_if([$#$2], [2], [], 8401238104Sdes [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8402238104Sdes 8403238104Sdes 8404238104Sdes# lt_car(LIST) 8405238104Sdes# lt_cdr(LIST) 8406238104Sdes# ------------ 8407238104Sdes# Manipulate m4 lists. 8408238104Sdes# These macros are necessary as long as will still need to support 8409238104Sdes# Autoconf-2.59 which quotes differently. 8410238104Sdesm4_define([lt_car], [[$1]]) 8411238104Sdesm4_define([lt_cdr], 8412238104Sdes[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8413238104Sdes [$#], 1, [], 8414238104Sdes [m4_dquote(m4_shift($@))])]) 8415238104Sdesm4_define([lt_unquote], $1) 8416238104Sdes 8417238104Sdes 8418238104Sdes# lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8419238104Sdes# ------------------------------------------ 8420238104Sdes# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. 8421238104Sdes# Note that neither SEPARATOR nor STRING are expanded; they are appended 8422238104Sdes# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8423238104Sdes# No SEPARATOR is output if MACRO-NAME was previously undefined (different 8424238104Sdes# than defined and empty). 8425238104Sdes# 8426238104Sdes# This macro is needed until we can rely on Autoconf 2.62, since earlier 8427238104Sdes# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8428238104Sdesm4_define([lt_append], 8429238104Sdes[m4_define([$1], 8430238104Sdes m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8431238104Sdes 8432238104Sdes 8433238104Sdes 8434238104Sdes# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8435238104Sdes# ---------------------------------------------------------- 8436238104Sdes# Produce a SEP delimited list of all paired combinations of elements of 8437238104Sdes# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8438238104Sdes# has the form PREFIXmINFIXSUFFIXn. 8439238104Sdes# Needed until we can rely on m4_combine added in Autoconf 2.62. 8440238104Sdesm4_define([lt_combine], 8441238104Sdes[m4_if(m4_eval([$# > 3]), [1], 8442238104Sdes [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8443238104Sdes[[m4_foreach([_Lt_prefix], [$2], 8444238104Sdes [m4_foreach([_Lt_suffix], 8445238104Sdes ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8446238104Sdes [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8447238104Sdes 8448238104Sdes 8449238104Sdes# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8450238104Sdes# ----------------------------------------------------------------------- 8451238104Sdes# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8452238104Sdes# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8453238104Sdesm4_define([lt_if_append_uniq], 8454238104Sdes[m4_ifdef([$1], 8455238104Sdes [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8456238104Sdes [lt_append([$1], [$2], [$3])$4], 8457238104Sdes [$5])], 8458238104Sdes [lt_append([$1], [$2], [$3])$4])]) 8459238104Sdes 8460238104Sdes 8461238104Sdes# lt_dict_add(DICT, KEY, VALUE) 8462238104Sdes# ----------------------------- 8463238104Sdesm4_define([lt_dict_add], 8464238104Sdes[m4_define([$1($2)], [$3])]) 8465238104Sdes 8466238104Sdes 8467238104Sdes# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8468238104Sdes# -------------------------------------------- 8469238104Sdesm4_define([lt_dict_add_subkey], 8470238104Sdes[m4_define([$1($2:$3)], [$4])]) 8471238104Sdes 8472238104Sdes 8473238104Sdes# lt_dict_fetch(DICT, KEY, [SUBKEY]) 8474238104Sdes# ---------------------------------- 8475238104Sdesm4_define([lt_dict_fetch], 8476238104Sdes[m4_ifval([$3], 8477238104Sdes m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8478238104Sdes m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8479238104Sdes 8480238104Sdes 8481238104Sdes# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 8482238104Sdes# ----------------------------------------------------------------- 8483238104Sdesm4_define([lt_if_dict_fetch], 8484238104Sdes[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 8485238104Sdes [$5], 8486238104Sdes [$6])]) 8487238104Sdes 8488238104Sdes 8489238104Sdes# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 8490238104Sdes# -------------------------------------------------------------- 8491238104Sdesm4_define([lt_dict_filter], 8492238104Sdes[m4_if([$5], [], [], 8493238104Sdes [lt_join(m4_quote(m4_default([$4], [[, ]])), 8494238104Sdes lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 8495238104Sdes [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 8496238104Sdes]) 8497238104Sdes 8498238104Sdes# ltversion.m4 -- version numbers -*- Autoconf -*- 8499238104Sdes# 8500238104Sdes# Copyright (C) 2004 Free Software Foundation, Inc. 8501238104Sdes# Written by Scott James Remnant, 2004 8502238104Sdes# 8503238104Sdes# This file is free software; the Free Software Foundation gives 8504238104Sdes# unlimited permission to copy and/or distribute it, with or without 8505238104Sdes# modifications, as long as this notice is preserved. 8506238104Sdes 8507238104Sdes# @configure_input@ 8508238104Sdes 8509238104Sdes# serial 3337 ltversion.m4 8510238104Sdes# This file is part of GNU Libtool 8511238104Sdes 8512238104Sdesm4_define([LT_PACKAGE_VERSION], [2.4.2]) 8513238104Sdesm4_define([LT_PACKAGE_REVISION], [1.3337]) 8514238104Sdes 8515238104SdesAC_DEFUN([LTVERSION_VERSION], 8516238104Sdes[macro_version='2.4.2' 8517238104Sdesmacro_revision='1.3337' 8518238104Sdes_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 8519238104Sdes_LT_DECL(, macro_revision, 0) 8520238104Sdes]) 8521238104Sdes 8522238104Sdes# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 8523238104Sdes# 8524238104Sdes# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. 8525238104Sdes# Written by Scott James Remnant, 2004. 8526238104Sdes# 8527238104Sdes# This file is free software; the Free Software Foundation gives 8528238104Sdes# unlimited permission to copy and/or distribute it, with or without 8529238104Sdes# modifications, as long as this notice is preserved. 8530238104Sdes 8531238104Sdes# serial 5 lt~obsolete.m4 8532238104Sdes 8533238104Sdes# These exist entirely to fool aclocal when bootstrapping libtool. 8534238104Sdes# 8535238104Sdes# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) 8536238104Sdes# which have later been changed to m4_define as they aren't part of the 8537238104Sdes# exported API, or moved to Autoconf or Automake where they belong. 8538238104Sdes# 8539238104Sdes# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 8540238104Sdes# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 8541238104Sdes# using a macro with the same name in our local m4/libtool.m4 it'll 8542238104Sdes# pull the old libtool.m4 in (it doesn't see our shiny new m4_define 8543238104Sdes# and doesn't know about Autoconf macros at all.) 8544238104Sdes# 8545238104Sdes# So we provide this file, which has a silly filename so it's always 8546238104Sdes# included after everything else. This provides aclocal with the 8547238104Sdes# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 8548238104Sdes# because those macros already exist, or will be overwritten later. 8549238104Sdes# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 8550238104Sdes# 8551238104Sdes# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 8552238104Sdes# Yes, that means every name once taken will need to remain here until 8553238104Sdes# we give up compatibility with versions before 1.7, at which point 8554238104Sdes# we need to keep only those names which we still refer to. 8555238104Sdes 8556238104Sdes# This is to help aclocal find these macros, as it can't see m4_define. 8557238104SdesAC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 8558238104Sdes 8559238104Sdesm4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 8560238104Sdesm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 8561238104Sdesm4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 8562238104Sdesm4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 8563238104Sdesm4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 8564238104Sdesm4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 8565238104Sdesm4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 8566238104Sdesm4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 8567238104Sdesm4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 8568238104Sdesm4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 8569238104Sdesm4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 8570238104Sdesm4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 8571238104Sdesm4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 8572238104Sdesm4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 8573238104Sdesm4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 8574238104Sdesm4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 8575238104Sdesm4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 8576238104Sdesm4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 8577238104Sdesm4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 8578238104Sdesm4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 8579238104Sdesm4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 8580238104Sdesm4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 8581238104Sdesm4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 8582238104Sdesm4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 8583238104Sdesm4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 8584238104Sdesm4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 8585238104Sdesm4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 8586238104Sdesm4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 8587238104Sdesm4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 8588238104Sdesm4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 8589238104Sdesm4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 8590238104Sdesm4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 8591238104Sdesm4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 8592238104Sdesm4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 8593238104Sdesm4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 8594238104Sdesm4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 8595238104Sdesm4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 8596238104Sdesm4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 8597238104Sdesm4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 8598238104Sdesm4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 8599238104Sdesm4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 8600238104Sdesm4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 8601238104Sdesm4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 8602238104Sdesm4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 8603238104Sdesm4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 8604238104Sdesm4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 8605238104Sdesm4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 8606238104Sdesm4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 8607238104Sdesm4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 8608238104Sdesm4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 8609238104Sdesm4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 8610238104Sdesm4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 8611238104Sdesm4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 8612238104Sdesm4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 8613238104Sdesm4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 8614238104Sdesm4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 8615238104Sdesm4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 8616238104Sdesm4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 8617238104Sdesm4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 8618238104Sdesm4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 8619238104Sdesm4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 8620238104Sdes 8621