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