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