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