A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*- 2 3 # Copyright (C) 1996-2021 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 m4_ifndef([AC_AUTOCONF_VERSION], 16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 18 [m4_warning([this file was generated for autoconf 2.71. 19 You have another version of autoconf. It may work, but is not guaranteed to. 20 If you have problems, you may need to regenerate the build system entirely. 21 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) 22 23 dnl Checks for the correct version of the courier-unicode library. 24 25 AC_DEFUN([AX_COURIER_UNICODE_VERSION],[ 26 27 AC_MSG_CHECKING(courier-unicode library and version) 28 29 vers="$1" 30 31 if test "$vers" = "" 32 then 33 vers=2.2.6 34 fi 35 36 set -- `echo "$vers" | tr '.' ' '` 37 38 v=$[]1 39 r=`echo "00"$[]2 | sed 's/.*(...)$/$[]1/'` 40 41 p=$[]3 42 43 if test "$p" = "" 44 then p="0" 45 fi 46 47 p=`echo "00"$p | sed 's/.*(...)$/$[]1/'` 48 49 if test "$v$r$p" -lt 2002002 50 then 51 r=$[]2 52 p=$[]3 53 if test "$p" = "" 54 then p="0" 55 fi 56 fi 57 58 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 59 #include <courier-unicode.h> 60 #ifndef COURIER_UNICODE_VERSION 61 #define COURIER_UNICODE_VERSION 0 62 #endif 63 64 #if COURIER_UNICODE_VERSION < $v$r$p 65 #error "courier-unicode $vers library is required" 66 #endif 67 68 ]], [[]])],[],[AC_MSG_ERROR( 69 ERROR: The Courier Unicode Library $vers header files appear not to be installed. 70 You may need to upgrade the library or install a separate development 71 subpackage in addition to the main package.) 72 ]) 73 74 AC_MSG_RESULT([ok]) 75 ]) 76 77 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 78 # 79 # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software 80 # Foundation, Inc. 81 # Written by Gordon Matzigkeit, 1996 82 # 83 # This file is free software; the Free Software Foundation gives 84 # unlimited permission to copy and/or distribute it, with or without 85 # modifications, as long as this notice is preserved. 86 87 m4_define([_LT_COPYING], [dnl 88 # Copyright (C) 2014 Free Software Foundation, Inc. 89 # This is free software; see the source for copying conditions. There is NO 90 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 91 92 # GNU Libtool is free software; you can redistribute it and/or modify 93 # it under the terms of the GNU General Public License as published by 94 # the Free Software Foundation; either version 2 of of the License, or 95 # (at your option) any later version. 96 # 97 # As a special exception to the GNU General Public License, if you 98 # distribute this file as part of a program or library that is built 99 # using GNU Libtool, you may include this file under the same 100 # distribution terms that you use for the rest of that program. 101 # 102 # GNU Libtool is distributed in the hope that it will be useful, but 103 # WITHOUT ANY WARRANTY; without even the implied warranty of 104 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 105 # GNU General Public License for more details. 106 # 107 # You should have received a copy of the GNU General Public License 108 # along with this program. If not, see <http://www.gnu.org/licenses/>. 109 ]) 110 111 # serial 59 LT_INIT 112 113 114 # LT_PREREQ(VERSION) 115 # ------------------ 116 # Complain and exit if this libtool version is less that VERSION. 117 m4_defun([LT_PREREQ], 118 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, 119 [m4_default([$3], 120 [m4_fatal([Libtool version $1 or higher is required], 121 63)])], 122 [$2])]) 123 124 125 # _LT_CHECK_BUILDDIR 126 # ------------------ 127 # Complain if the absolute build directory name contains unusual characters 128 m4_defun([_LT_CHECK_BUILDDIR], 129 [case `pwd` in 130 *\ * | *\ *) 131 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; 132 esac 133 ]) 134 135 136 # LT_INIT([OPTIONS]) 137 # ------------------ 138 AC_DEFUN([LT_INIT], 139 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK 140 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 141 AC_BEFORE([$0], [LT_LANG])dnl 142 AC_BEFORE([$0], [LT_OUTPUT])dnl 143 AC_BEFORE([$0], [LTDL_INIT])dnl 144 m4_require([_LT_CHECK_BUILDDIR])dnl 145 146 dnl Autoconf doesn't catch unexpanded LT_ macros by default: 147 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl 148 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl 149 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 150 dnl unless we require an AC_DEFUNed macro: 151 AC_REQUIRE([LTOPTIONS_VERSION])dnl 152 AC_REQUIRE([LTSUGAR_VERSION])dnl 153 AC_REQUIRE([LTVERSION_VERSION])dnl 154 AC_REQUIRE([LTOBSOLETE_VERSION])dnl 155 m4_require([_LT_PROG_LTMAIN])dnl 156 157 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) 158 159 dnl Parse OPTIONS 160 _LT_SET_OPTIONS([$0], [$1]) 161 162 # This can be used to rebuild libtool when needed 163 LIBTOOL_DEPS=$ltmain 164 165 # Always use our own libtool. 166 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 167 AC_SUBST(LIBTOOL)dnl 168 169 _LT_SETUP 170 171 # Only expand once: 172 m4_define([LT_INIT]) 173 ])# LT_INIT 174 175 # Old names: 176 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) 177 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) 178 dnl aclocal-1.4 backwards compatibility: 179 dnl AC_DEFUN([AC_PROG_LIBTOOL], []) 180 dnl AC_DEFUN([AM_PROG_LIBTOOL], []) 181 182 183 # _LT_PREPARE_CC_BASENAME 184 # ----------------------- 185 m4_defun([_LT_PREPARE_CC_BASENAME], [ 186 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 187 func_cc_basename () 188 { 189 for cc_temp in @S|@*""; do 190 case $cc_temp in 191 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 192 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 193 \-*) ;; 194 *) break;; 195 esac 196 done 197 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 198 } 199 ])# _LT_PREPARE_CC_BASENAME 200 201 202 # _LT_CC_BASENAME(CC) 203 # ------------------- 204 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, 205 # but that macro is also expanded into generated libtool script, which 206 # arranges for $SED and $ECHO to be set by different means. 207 m4_defun([_LT_CC_BASENAME], 208 [m4_require([_LT_PREPARE_CC_BASENAME])dnl 209 AC_REQUIRE([_LT_DECL_SED])dnl 210 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 211 func_cc_basename $1 212 cc_basename=$func_cc_basename_result 213 ]) 214 215 216 # _LT_FILEUTILS_DEFAULTS 217 # ---------------------- 218 # It is okay to use these file commands and assume they have been set 219 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. 220 m4_defun([_LT_FILEUTILS_DEFAULTS], 221 [: ${CP="cp -f"} 222 : ${MV="mv -f"} 223 : ${RM="rm -f"} 224 ])# _LT_FILEUTILS_DEFAULTS 225 226 227 # _LT_SETUP 228 # --------- 229 m4_defun([_LT_SETUP], 230 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 231 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 232 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl 233 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl 234 235 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl 236 dnl 237 _LT_DECL([], [host_alias], [0], [The host system])dnl 238 _LT_DECL([], [host], [0])dnl 239 _LT_DECL([], [host_os], [0])dnl 240 dnl 241 _LT_DECL([], [build_alias], [0], [The build system])dnl 242 _LT_DECL([], [build], [0])dnl 243 _LT_DECL([], [build_os], [0])dnl 244 dnl 245 AC_REQUIRE([AC_PROG_CC])dnl 246 AC_REQUIRE([LT_PATH_LD])dnl 247 AC_REQUIRE([LT_PATH_NM])dnl 248 dnl 249 AC_REQUIRE([AC_PROG_LN_S])dnl 250 test -z "$LN_S" && LN_S="ln -s" 251 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl 252 dnl 253 AC_REQUIRE([LT_CMD_MAX_LEN])dnl 254 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl 255 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl 256 dnl 257 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 258 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 259 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl 260 m4_require([_LT_CMD_RELOAD])dnl 261 m4_require([_LT_DECL_FILECMD])dnl 262 m4_require([_LT_CHECK_MAGIC_METHOD])dnl 263 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl 264 m4_require([_LT_CMD_OLD_ARCHIVE])dnl 265 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 266 m4_require([_LT_WITH_SYSROOT])dnl 267 m4_require([_LT_CMD_TRUNCATE])dnl 268 269 _LT_CONFIG_LIBTOOL_INIT([ 270 # See if we are running on zsh, and set the options that allow our 271 # commands through without removal of \ escapes INIT. 272 if test -n "\${ZSH_VERSION+set}"; then 273 setopt NO_GLOB_SUBST 274 fi 275 ]) 276 if test -n "${ZSH_VERSION+set}"; then 277 setopt NO_GLOB_SUBST 278 fi 279 280 _LT_CHECK_OBJDIR 281 282 m4_require([_LT_TAG_COMPILER])dnl 283 284 case $host_os in 285 aix3*) 286 # AIX sometimes has problems with the GCC collect2 program. For some 287 # reason, if we set the COLLECT_NAMES environment variable, the problems 288 # vanish in a puff of smoke. 289 if test set != "${COLLECT_NAMES+set}"; then 290 COLLECT_NAMES= 291 export COLLECT_NAMES 292 fi 293 ;; 294 esac 295 296 # Global variables: 297 ofile=libtool 298 can_build_shared=yes 299 300 # All known linkers require a '.a' archive for static linking (except MSVC and 301 # ICC, which need '.lib'). 302 libext=a 303 304 with_gnu_ld=$lt_cv_prog_gnu_ld 305 306 old_CC=$CC 307 old_CFLAGS=$CFLAGS 308 309 # Set sane defaults for various variables 310 test -z "$CC" && CC=cc 311 test -z "$LTCC" && LTCC=$CC 312 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 313 test -z "$LD" && LD=ld 314 test -z "$ac_objext" && ac_objext=o 315 316 _LT_CC_BASENAME([$compiler]) 317 318 # Only perform the check for file, if the check method requires it 319 test -z "$MAGIC_CMD" && MAGIC_CMD=file 320 case $deplibs_check_method in 321 file_magic*) 322 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 323 _LT_PATH_MAGIC 324 fi 325 ;; 326 esac 327 328 # Use C for the default configuration in the libtool script 329 LT_SUPPORTED_TAG([CC]) 330 _LT_LANG_C_CONFIG 331 _LT_LANG_DEFAULT_CONFIG 332 _LT_CONFIG_COMMANDS 333 ])# _LT_SETUP 334 335 336 # _LT_PREPARE_SED_QUOTE_VARS 337 # -------------------------- 338 # Define a few sed substitution that help us do robust quoting. 339 m4_defun([_LT_PREPARE_SED_QUOTE_VARS], 340 [# Backslashify metacharacters that are still active within 341 # double-quoted strings. 342 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' 343 344 # Same as above, but do not quote variable references. 345 double_quote_subst='s/\([["`\\]]\)/\\\1/g' 346 347 # Sed substitution to delay expansion of an escaped shell variable in a 348 # double_quote_subst'ed string. 349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 350 351 # Sed substitution to delay expansion of an escaped single quote. 352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 353 354 # Sed substitution to avoid accidental globbing in evaled expressions 355 no_glob_subst='s/\*/\\\*/g' 356 ]) 357 358 # _LT_PROG_LTMAIN 359 # --------------- 360 # Note that this code is called both from 'configure', and 'config.status' 361 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, 362 # 'config.status' has no value for ac_aux_dir unless we are using Automake, 363 # so we pass a copy along to make sure it has a sensible value anyway. 364 m4_defun([_LT_PROG_LTMAIN], 365 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl 366 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) 367 ltmain=$ac_aux_dir/ltmain.sh 368 ])# _LT_PROG_LTMAIN 369 370 371 372 # So that we can recreate a full libtool script including additional 373 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS 374 # in macros and then make a single call at the end using the 'libtool' 375 # label. 376 377 378 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) 379 # ---------------------------------------- 380 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. 381 m4_define([_LT_CONFIG_LIBTOOL_INIT], 382 [m4_ifval([$1], 383 [m4_append([_LT_OUTPUT_LIBTOOL_INIT], 384 [$1 385 ])])]) 386 387 # Initialize. 388 m4_define([_LT_OUTPUT_LIBTOOL_INIT]) 389 390 391 # _LT_CONFIG_LIBTOOL([COMMANDS]) 392 # ------------------------------ 393 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. 394 m4_define([_LT_CONFIG_LIBTOOL], 395 [m4_ifval([$1], 396 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], 397 [$1 398 ])])]) 399 400 # Initialize. 401 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) 402 403 404 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) 405 # ----------------------------------------------------- 406 m4_defun([_LT_CONFIG_SAVE_COMMANDS], 407 [_LT_CONFIG_LIBTOOL([$1]) 408 _LT_CONFIG_LIBTOOL_INIT([$2]) 409 ]) 410 411 412 # _LT_FORMAT_COMMENT([COMMENT]) 413 # ----------------------------- 414 # Add leading comment marks to the start of each line, and a trailing 415 # full-stop to the whole comment if one is not present already. 416 m4_define([_LT_FORMAT_COMMENT], 417 [m4_ifval([$1], [ 418 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], 419 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) 420 )]) 421 422 423 424 425 426 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) 427 # ------------------------------------------------------------------- 428 # CONFIGNAME is the name given to the value in the libtool script. 429 # VARNAME is the (base) name used in the configure script. 430 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on 431 # VARNAME. Any other value will be used directly. 432 m4_define([_LT_DECL], 433 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], 434 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], 435 [m4_ifval([$1], [$1], [$2])]) 436 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) 437 m4_ifval([$4], 438 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) 439 lt_dict_add_subkey([lt_decl_dict], [$2], 440 [tagged?], [m4_ifval([$5], [yes], [no])])]) 441 ]) 442 443 444 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) 445 # -------------------------------------------------------- 446 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) 447 448 449 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) 450 # ------------------------------------------------ 451 m4_define([lt_decl_tag_varnames], 452 [_lt_decl_filter([tagged?], [yes], $@)]) 453 454 455 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) 456 # --------------------------------------------------------- 457 m4_define([_lt_decl_filter], 458 [m4_case([$#], 459 [0], [m4_fatal([$0: too few arguments: $#])], 460 [1], [m4_fatal([$0: too few arguments: $#: $1])], 461 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], 462 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], 463 [lt_dict_filter([lt_decl_dict], $@)])[]dnl 464 ]) 465 466 467 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) 468 # -------------------------------------------------- 469 m4_define([lt_decl_quote_varnames], 470 [_lt_decl_filter([value], [1], $@)]) 471 472 473 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) 474 # --------------------------------------------------- 475 m4_define([lt_decl_dquote_varnames], 476 [_lt_decl_filter([value], [2], $@)]) 477 478 479 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) 480 # --------------------------------------------------- 481 m4_define([lt_decl_varnames_tagged], 482 [m4_assert([$# <= 2])dnl 483 _$0(m4_quote(m4_default([$1], [[, ]])), 484 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), 485 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) 486 m4_define([_lt_decl_varnames_tagged], 487 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) 488 489 490 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) 491 # ------------------------------------------------ 492 m4_define([lt_decl_all_varnames], 493 [_$0(m4_quote(m4_default([$1], [[, ]])), 494 m4_if([$2], [], 495 m4_quote(lt_decl_varnames), 496 m4_quote(m4_shift($@))))[]dnl 497 ]) 498 m4_define([_lt_decl_all_varnames], 499 [lt_join($@, lt_decl_varnames_tagged([$1], 500 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl 501 ]) 502 503 504 # _LT_CONFIG_STATUS_DECLARE([VARNAME]) 505 # ------------------------------------ 506 # Quote a variable value, and forward it to 'config.status' so that its 507 # declaration there will have the same value as in 'configure'. VARNAME 508 # must have a single quote delimited value for this to work. 509 m4_define([_LT_CONFIG_STATUS_DECLARE], 510 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) 511 512 513 # _LT_CONFIG_STATUS_DECLARATIONS 514 # ------------------------------ 515 # We delimit libtool config variables with single quotes, so when 516 # we write them to config.status, we have to be sure to quote all 517 # embedded single quotes properly. In configure, this macro expands 518 # each variable declared with _LT_DECL (and _LT_TAGDECL) into: 519 # 520 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' 521 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], 522 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), 523 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) 524 525 526 # _LT_LIBTOOL_TAGS 527 # ---------------- 528 # Output comment and list of tags supported by the script 529 m4_defun([_LT_LIBTOOL_TAGS], 530 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl 531 available_tags='_LT_TAGS'dnl 532 ]) 533 534 535 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) 536 # ----------------------------------- 537 # Extract the dictionary values for VARNAME (optionally with TAG) and 538 # expand to a commented shell variable setting: 539 # 540 # # Some comment about what VAR is for. 541 # visible_name=$lt_internal_name 542 m4_define([_LT_LIBTOOL_DECLARE], 543 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], 544 [description])))[]dnl 545 m4_pushdef([_libtool_name], 546 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl 547 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), 548 [0], [_libtool_name=[$]$1], 549 [1], [_libtool_name=$lt_[]$1], 550 [2], [_libtool_name=$lt_[]$1], 551 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl 552 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl 553 ]) 554 555 556 # _LT_LIBTOOL_CONFIG_VARS 557 # ----------------------- 558 # Produce commented declarations of non-tagged libtool config variables 559 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' 560 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG 561 # section) are produced by _LT_LIBTOOL_TAG_VARS. 562 m4_defun([_LT_LIBTOOL_CONFIG_VARS], 563 [m4_foreach([_lt_var], 564 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), 565 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) 566 567 568 # _LT_LIBTOOL_TAG_VARS(TAG) 569 # ------------------------- 570 m4_define([_LT_LIBTOOL_TAG_VARS], 571 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), 572 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) 573 574 575 # _LT_TAGVAR(VARNAME, [TAGNAME]) 576 # ------------------------------ 577 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) 578 579 580 # _LT_CONFIG_COMMANDS 581 # ------------------- 582 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of 583 # variables for single and double quote escaping we saved from calls 584 # to _LT_DECL, we can put quote escaped variables declarations 585 # into 'config.status', and then the shell code to quote escape them in 586 # for loops in 'config.status'. Finally, any additional code accumulated 587 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. 588 m4_defun([_LT_CONFIG_COMMANDS], 589 [AC_PROVIDE_IFELSE([LT_OUTPUT], 590 dnl If the libtool generation code has been placed in $CONFIG_LT, 591 dnl instead of duplicating it all over again into config.status, 592 dnl then we will have config.status run $CONFIG_LT later, so it 593 dnl needs to know what name is stored there: 594 [AC_CONFIG_COMMANDS([libtool], 595 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], 596 dnl If the libtool generation code is destined for config.status, 597 dnl expand the accumulated commands and init code now: 598 [AC_CONFIG_COMMANDS([libtool], 599 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) 600 ])#_LT_CONFIG_COMMANDS 601 602 603 # Initialize. 604 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], 605 [ 606 607 # The HP-UX ksh and POSIX shell print the target directory to stdout 608 # if CDPATH is set. 609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 610 611 sed_quote_subst='$sed_quote_subst' 612 double_quote_subst='$double_quote_subst' 613 delay_variable_subst='$delay_variable_subst' 614 _LT_CONFIG_STATUS_DECLARATIONS 615 LTCC='$LTCC' 616 LTCFLAGS='$LTCFLAGS' 617 compiler='$compiler_DEFAULT' 618 619 # A function that is used when there is no print builtin or printf. 620 func_fallback_echo () 621 { 622 eval 'cat <<_LTECHO_EOF 623 \$[]1 624 _LTECHO_EOF' 625 } 626 627 # Quote evaled strings. 628 for var in lt_decl_all_varnames([[ \ 629 ]], lt_decl_quote_varnames); do 630 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 631 *[[\\\\\\\`\\"\\\$]]*) 632 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 633 ;; 634 *) 635 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 636 ;; 637 esac 638 done 639 640 # Double-quote double-evaled strings. 641 for var in lt_decl_all_varnames([[ \ 642 ]], lt_decl_dquote_varnames); do 643 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 644 *[[\\\\\\\`\\"\\\$]]*) 645 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 646 ;; 647 *) 648 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 649 ;; 650 esac 651 done 652 653 _LT_OUTPUT_LIBTOOL_INIT 654 ]) 655 656 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) 657 # ------------------------------------ 658 # Generate a child script FILE with all initialization necessary to 659 # reuse the environment learned by the parent script, and make the 660 # file executable. If COMMENT is supplied, it is inserted after the 661 # '#!' sequence but before initialization text begins. After this 662 # macro, additional text can be appended to FILE to form the body of 663 # the child script. The macro ends with non-zero status if the 664 # file could not be fully written (such as if the disk is full). 665 m4_ifdef([AS_INIT_GENERATED], 666 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], 667 [m4_defun([_LT_GENERATED_FILE_INIT], 668 [m4_require([AS_PREPARE])]dnl 669 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl 670 [lt_write_fail=0 671 cat >$1 <<_ASEOF || lt_write_fail=1 672 #! $SHELL 673 # Generated by $as_me. 674 $2 675 SHELL=\${CONFIG_SHELL-$SHELL} 676 export SHELL 677 _ASEOF 678 cat >>$1 <<\_ASEOF || lt_write_fail=1 679 AS_SHELL_SANITIZE 680 _AS_PREPARE 681 exec AS_MESSAGE_FD>&1 682 _ASEOF 683 test 0 = "$lt_write_fail" && chmod +x $1[]dnl 684 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT 685 686 # LT_OUTPUT 687 # --------- 688 # This macro allows early generation of the libtool script (before 689 # AC_OUTPUT is called), incase it is used in configure for compilation 690 # tests. 691 AC_DEFUN([LT_OUTPUT], 692 [: ${CONFIG_LT=./config.lt} 693 AC_MSG_NOTICE([creating $CONFIG_LT]) 694 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], 695 [# Run this file to recreate a libtool stub with the current configuration.]) 696 697 cat >>"$CONFIG_LT" <<\_LTEOF 698 lt_cl_silent=false 699 exec AS_MESSAGE_LOG_FD>>config.log 700 { 701 echo 702 AS_BOX([Running $as_me.]) 703 } >&AS_MESSAGE_LOG_FD 704 705 lt_cl_help="\ 706 '$as_me' creates a local libtool stub from the current configuration, 707 for use in further configure time tests before the real libtool is 708 generated. 709 710 Usage: $[0] [[OPTIONS]] 711 712 -h, --help print this help, then exit 713 -V, --version print version number, then exit 714 -q, --quiet do not print progress messages 715 -d, --debug don't remove temporary files 716 717 Report bugs to <bug-libtool@gnu.org>." 718 719 lt_cl_version="\ 720 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl 721 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) 722 configured by $[0], generated by m4_PACKAGE_STRING. 723 724 Copyright (C) 2011 Free Software Foundation, Inc. 725 This config.lt script is free software; the Free Software Foundation 726 gives unlimited permision to copy, distribute and modify it." 727 728 while test 0 != $[#] 729 do 730 case $[1] in 731 --version | --v* | -V ) 732 echo "$lt_cl_version"; exit 0 ;; 733 --help | --h* | -h ) 734 echo "$lt_cl_help"; exit 0 ;; 735 --debug | --d* | -d ) 736 debug=: ;; 737 --quiet | --q* | --silent | --s* | -q ) 738 lt_cl_silent=: ;; 739 740 -*) AC_MSG_ERROR([unrecognized option: $[1] 741 Try '$[0] --help' for more information.]) ;; 742 743 *) AC_MSG_ERROR([unrecognized argument: $[1] 744 Try '$[0] --help' for more information.]) ;; 745 esac 746 shift 747 done 748 749 if $lt_cl_silent; then 750 exec AS_MESSAGE_FD>/dev/null 751 fi 752 _LTEOF 753 754 cat >>"$CONFIG_LT" <<_LTEOF 755 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT 756 _LTEOF 757 758 cat >>"$CONFIG_LT" <<\_LTEOF 759 AC_MSG_NOTICE([creating $ofile]) 760 _LT_OUTPUT_LIBTOOL_COMMANDS 761 AS_EXIT(0) 762 _LTEOF 763 chmod +x "$CONFIG_LT" 764 765 # configure is writing to config.log, but config.lt does its own redirection, 766 # appending to config.log, which fails on DOS, as config.log is still kept 767 # open by configure. Here we exec the FD to /dev/null, effectively closing 768 # config.log, so it can be properly (re)opened and appended to by config.lt. 769 lt_cl_success=: 770 test yes = "$silent" && 771 lt_config_lt_args="$lt_config_lt_args --quiet" 772 exec AS_MESSAGE_LOG_FD>/dev/null 773 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false 774 exec AS_MESSAGE_LOG_FD>>config.log 775 $lt_cl_success || AS_EXIT(1) 776 ])# LT_OUTPUT 777 778 779 # _LT_CONFIG(TAG) 780 # --------------- 781 # If TAG is the built-in tag, create an initial libtool script with a 782 # default configuration from the untagged config vars. Otherwise add code 783 # to config.status for appending the configuration named by TAG from the 784 # matching tagged config vars. 785 m4_defun([_LT_CONFIG], 786 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 787 _LT_CONFIG_SAVE_COMMANDS([ 788 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl 789 m4_if(_LT_TAG, [C], [ 790 # See if we are running on zsh, and set the options that allow our 791 # commands through without removal of \ escapes. 792 if test -n "${ZSH_VERSION+set}"; then 793 setopt NO_GLOB_SUBST 794 fi 795 796 cfgfile=${ofile}T 797 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 798 $RM "$cfgfile" 799 800 cat <<_LT_EOF >> "$cfgfile" 801 #! $SHELL 802 # Generated automatically by $as_me ($PACKAGE) $VERSION 803 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 804 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 805 806 # Provide generalized library-building support services. 807 # Written by Gordon Matzigkeit, 1996 808 809 _LT_COPYING 810 _LT_LIBTOOL_TAGS 811 812 # Configured defaults for sys_lib_dlsearch_path munging. 813 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 814 815 # ### BEGIN LIBTOOL CONFIG 816 _LT_LIBTOOL_CONFIG_VARS 817 _LT_LIBTOOL_TAG_VARS 818 # ### END LIBTOOL CONFIG 819 820 _LT_EOF 821 822 cat <<'_LT_EOF' >> "$cfgfile" 823 824 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 825 826 _LT_PREPARE_MUNGE_PATH_LIST 827 _LT_PREPARE_CC_BASENAME 828 829 # ### END FUNCTIONS SHARED WITH CONFIGURE 830 831 _LT_EOF 832 833 case $host_os in 834 aix3*) 835 cat <<\_LT_EOF >> "$cfgfile" 836 # AIX sometimes has problems with the GCC collect2 program. For some 837 # reason, if we set the COLLECT_NAMES environment variable, the problems 838 # vanish in a puff of smoke. 839 if test set != "${COLLECT_NAMES+set}"; then 840 COLLECT_NAMES= 841 export COLLECT_NAMES 842 fi 843 _LT_EOF 844 ;; 845 esac 846 847 _LT_PROG_LTMAIN 848 849 # We use sed instead of cat because bash on DJGPP gets confused if 850 # if finds mixed CR/LF and LF-only lines. Since sed operates in 851 # text mode, it properly converts lines to CR/LF. This bash problem 852 # is reportedly fixed, but why not run on old versions too? 853 $SED '$q' "$ltmain" >> "$cfgfile" \ 854 || (rm -f "$cfgfile"; exit 1) 855 856 mv -f "$cfgfile" "$ofile" || 857 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 858 chmod +x "$ofile" 859 ], 860 [cat <<_LT_EOF >> "$ofile" 861 862 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded 863 dnl in a comment (ie after a #). 864 # ### BEGIN LIBTOOL TAG CONFIG: $1 865 _LT_LIBTOOL_TAG_VARS(_LT_TAG) 866 # ### END LIBTOOL TAG CONFIG: $1 867 _LT_EOF 868 ])dnl /m4_if 869 ], 870 [m4_if([$1], [], [ 871 PACKAGE='$PACKAGE' 872 VERSION='$VERSION' 873 RM='$RM' 874 ofile='$ofile'], []) 875 ])dnl /_LT_CONFIG_SAVE_COMMANDS 876 ])# _LT_CONFIG 877 878 879 # LT_SUPPORTED_TAG(TAG) 880 # --------------------- 881 # Trace this macro to discover what tags are supported by the libtool 882 # --tag option, using: 883 # autoconf --trace 'LT_SUPPORTED_TAG:$1' 884 AC_DEFUN([LT_SUPPORTED_TAG], []) 885 886 887 # C support is built-in for now 888 m4_define([_LT_LANG_C_enabled], []) 889 m4_define([_LT_TAGS], []) 890 891 892 # LT_LANG(LANG) 893 # ------------- 894 # Enable libtool support for the given language if not already enabled. 895 AC_DEFUN([LT_LANG], 896 [AC_BEFORE([$0], [LT_OUTPUT])dnl 897 m4_case([$1], 898 [C], [_LT_LANG(C)], 899 [C++], [_LT_LANG(CXX)], 900 [Go], [_LT_LANG(GO)], 901 [Java], [_LT_LANG(GCJ)], 902 [Fortran 77], [_LT_LANG(F77)], 903 [Fortran], [_LT_LANG(FC)], 904 [Windows Resource], [_LT_LANG(RC)], 905 [m4_ifdef([_LT_LANG_]$1[_CONFIG], 906 [_LT_LANG($1)], 907 [m4_fatal([$0: unsupported language: "$1"])])])dnl 908 ])# LT_LANG 909 910 911 # _LT_LANG(LANGNAME) 912 # ------------------ 913 m4_defun([_LT_LANG], 914 [m4_ifdef([_LT_LANG_]$1[_enabled], [], 915 [LT_SUPPORTED_TAG([$1])dnl 916 m4_append([_LT_TAGS], [$1 ])dnl 917 m4_define([_LT_LANG_]$1[_enabled], [])dnl 918 _LT_LANG_$1_CONFIG($1)])dnl 919 ])# _LT_LANG 920 921 922 m4_ifndef([AC_PROG_GO], [ 923 # NOTE: This macro has been submitted for inclusion into # 924 # GNU Autoconf as AC_PROG_GO. When it is available in # 925 # a released version of Autoconf we should remove this # 926 # macro and use it instead. # 927 m4_defun([AC_PROG_GO], 928 [AC_LANG_PUSH(Go)dnl 929 AC_ARG_VAR([GOC], [Go compiler command])dnl 930 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl 931 _AC_ARG_VAR_LDFLAGS()dnl 932 AC_CHECK_TOOL(GOC, gccgo) 933 if test -z "$GOC"; then 934 if test -n "$ac_tool_prefix"; then 935 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) 936 fi 937 fi 938 if test -z "$GOC"; then 939 AC_CHECK_PROG(GOC, gccgo, gccgo, false) 940 fi 941 ])#m4_defun 942 ])#m4_ifndef 943 944 945 # _LT_LANG_DEFAULT_CONFIG 946 # ----------------------- 947 m4_defun([_LT_LANG_DEFAULT_CONFIG], 948 [AC_PROVIDE_IFELSE([AC_PROG_CXX], 949 [LT_LANG(CXX)], 950 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) 951 952 AC_PROVIDE_IFELSE([AC_PROG_F77], 953 [LT_LANG(F77)], 954 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) 955 956 AC_PROVIDE_IFELSE([AC_PROG_FC], 957 [LT_LANG(FC)], 958 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) 959 960 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal 961 dnl pulling things in needlessly. 962 AC_PROVIDE_IFELSE([AC_PROG_GCJ], 963 [LT_LANG(GCJ)], 964 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 965 [LT_LANG(GCJ)], 966 [AC_PROVIDE_IFELSE([LT_PROG_GCJ], 967 [LT_LANG(GCJ)], 968 [m4_ifdef([AC_PROG_GCJ], 969 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) 970 m4_ifdef([A][M_PROG_GCJ], 971 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) 972 m4_ifdef([LT_PROG_GCJ], 973 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) 974 975 AC_PROVIDE_IFELSE([AC_PROG_GO], 976 [LT_LANG(GO)], 977 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) 978 979 AC_PROVIDE_IFELSE([LT_PROG_RC], 980 [LT_LANG(RC)], 981 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) 982 ])# _LT_LANG_DEFAULT_CONFIG 983 984 # Obsolete macros: 985 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) 986 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) 987 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) 988 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) 989 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) 990 dnl aclocal-1.4 backwards compatibility: 991 dnl AC_DEFUN([AC_LIBTOOL_CXX], []) 992 dnl AC_DEFUN([AC_LIBTOOL_F77], []) 993 dnl AC_DEFUN([AC_LIBTOOL_FC], []) 994 dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) 995 dnl AC_DEFUN([AC_LIBTOOL_RC], []) 996 997 998 # _LT_TAG_COMPILER 999 # ---------------- 1000 m4_defun([_LT_TAG_COMPILER], 1001 [AC_REQUIRE([AC_PROG_CC])dnl 1002 1003 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl 1004 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl 1005 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl 1006 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl 1007 1008 # If no C compiler was specified, use CC. 1009 LTCC=${LTCC-"$CC"} 1010 1011 # If no C compiler flags were specified, use CFLAGS. 1012 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 1013 1014 # Allow CC to be a program name with arguments. 1015 compiler=$CC 1016 ])# _LT_TAG_COMPILER 1017 1018 1019 # _LT_COMPILER_BOILERPLATE 1020 # ------------------------ 1021 # Check for compiler boilerplate output or warnings with 1022 # the simple compiler test code. 1023 m4_defun([_LT_COMPILER_BOILERPLATE], 1024 [m4_require([_LT_DECL_SED])dnl 1025 ac_outfile=conftest.$ac_objext 1026 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 1027 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1028 _lt_compiler_boilerplate=`cat conftest.err` 1029 $RM conftest* 1030 ])# _LT_COMPILER_BOILERPLATE 1031 1032 1033 # _LT_LINKER_BOILERPLATE 1034 # ---------------------- 1035 # Check for linker boilerplate output or warnings with 1036 # the simple link test code. 1037 m4_defun([_LT_LINKER_BOILERPLATE], 1038 [m4_require([_LT_DECL_SED])dnl 1039 ac_outfile=conftest.$ac_objext 1040 echo "$lt_simple_link_test_code" >conftest.$ac_ext 1041 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 1042 _lt_linker_boilerplate=`cat conftest.err` 1043 $RM -r conftest* 1044 ])# _LT_LINKER_BOILERPLATE 1045 1046 # _LT_REQUIRED_DARWIN_CHECKS 1047 # ------------------------- 1048 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ 1049 case $host_os in 1050 rhapsody* | darwin*) 1051 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 1052 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 1053 AC_CHECK_TOOL([LIPO], [lipo], [:]) 1054 AC_CHECK_TOOL([OTOOL], [otool], [:]) 1055 AC_CHECK_TOOL([OTOOL64], [otool64], [:]) 1056 _LT_DECL([], [DSYMUTIL], [1], 1057 [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) 1058 _LT_DECL([], [NMEDIT], [1], 1059 [Tool to change global to local symbols on Mac OS X]) 1060 _LT_DECL([], [LIPO], [1], 1061 [Tool to manipulate fat objects and archives on Mac OS X]) 1062 _LT_DECL([], [OTOOL], [1], 1063 [ldd/readelf like tool for Mach-O binaries on Mac OS X]) 1064 _LT_DECL([], [OTOOL64], [1], 1065 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) 1066 1067 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 1068 [lt_cv_apple_cc_single_mod=no 1069 if test -z "$LT_MULTI_MODULE"; then 1070 # By default we will add the -single_module flag. You can override 1071 # by either setting the environment variable LT_MULTI_MODULE 1072 # non-empty at configure time, or by adding -multi_module to the 1073 # link flags. 1074 rm -rf libconftest.dylib* 1075 echo "int foo(void){return 1;}" > conftest.c 1076 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1077 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD 1078 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 1079 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 1080 _lt_result=$? 1081 # If there is a non-empty error log, and "single_module" 1082 # appears in it, assume the flag caused a linker warning 1083 if test -s conftest.err && $GREP single_module conftest.err; then 1084 cat conftest.err >&AS_MESSAGE_LOG_FD 1085 # Otherwise, if the output was created with a 0 exit code from 1086 # the compiler, it worked. 1087 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 1088 lt_cv_apple_cc_single_mod=yes 1089 else 1090 cat conftest.err >&AS_MESSAGE_LOG_FD 1091 fi 1092 rm -rf libconftest.dylib* 1093 rm -f conftest.* 1094 fi]) 1095 1096 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 1097 [lt_cv_ld_exported_symbols_list], 1098 [lt_cv_ld_exported_symbols_list=no 1099 save_LDFLAGS=$LDFLAGS 1100 echo "_main" > conftest.sym 1101 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 1102 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 1103 [lt_cv_ld_exported_symbols_list=yes], 1104 [lt_cv_ld_exported_symbols_list=no]) 1105 LDFLAGS=$save_LDFLAGS 1106 ]) 1107 1108 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], 1109 [lt_cv_ld_force_load=no 1110 cat > conftest.c << _LT_EOF 1111 int forced_loaded() { return 2;} 1112 _LT_EOF 1113 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD 1114 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD 1115 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD 1116 $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD 1117 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD 1118 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD 1119 cat > conftest.c << _LT_EOF 1120 int main() { return 0;} 1121 _LT_EOF 1122 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD 1123 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 1124 _lt_result=$? 1125 if test -s conftest.err && $GREP force_load conftest.err; then 1126 cat conftest.err >&AS_MESSAGE_LOG_FD 1127 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 1128 lt_cv_ld_force_load=yes 1129 else 1130 cat conftest.err >&AS_MESSAGE_LOG_FD 1131 fi 1132 rm -f conftest.err libconftest.a conftest conftest.c 1133 rm -rf conftest.dSYM 1134 ]) 1135 case $host_os in 1136 rhapsody* | darwin1.[[012]]) 1137 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 1138 darwin1.*) 1139 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1140 darwin*) 1141 case $MACOSX_DEPLOYMENT_TARGET,$host in 1142 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) 1143 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 1144 *) 1145 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 1146 esac 1147 ;; 1148 esac 1149 if test yes = "$lt_cv_apple_cc_single_mod"; then 1150 _lt_dar_single_mod='$single_module' 1151 fi 1152 if test yes = "$lt_cv_ld_exported_symbols_list"; then 1153 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 1154 else 1155 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 1156 fi 1157 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 1158 _lt_dsymutil='~$DSYMUTIL $lib || :' 1159 else 1160 _lt_dsymutil= 1161 fi 1162 ;; 1163 esac 1164 ]) 1165 1166 1167 # _LT_DARWIN_LINKER_FEATURES([TAG]) 1168 # --------------------------------- 1169 # Checks for linker and compiler features on darwin 1170 m4_defun([_LT_DARWIN_LINKER_FEATURES], 1171 [ 1172 m4_require([_LT_REQUIRED_DARWIN_CHECKS]) 1173 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 1174 _LT_TAGVAR(hardcode_direct, $1)=no 1175 _LT_TAGVAR(hardcode_automatic, $1)=yes 1176 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 1177 if test yes = "$lt_cv_ld_force_load"; then 1178 _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\"`' 1179 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], 1180 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) 1181 else 1182 _LT_TAGVAR(whole_archive_flag_spec, $1)='' 1183 fi 1184 _LT_TAGVAR(link_all_deplibs, $1)=yes 1185 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined 1186 case $cc_basename in 1187 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 1188 *) _lt_dar_can_shared=$GCC ;; 1189 esac 1190 if test yes = "$_lt_dar_can_shared"; then 1191 output_verbose_link_cmd=func_echo_all 1192 _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" 1193 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 1194 _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" 1195 _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" 1196 m4_if([$1], [CXX], 1197 [ if test yes != "$lt_cv_apple_cc_single_mod"; then 1198 _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" 1199 _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" 1200 fi 1201 ],[]) 1202 else 1203 _LT_TAGVAR(ld_shlibs, $1)=no 1204 fi 1205 ]) 1206 1207 # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) 1208 # ---------------------------------- 1209 # Links a minimal program and checks the executable 1210 # for the system default hardcoded library path. In most cases, 1211 # this is /usr/lib:/lib, but when the MPI compilers are used 1212 # the location of the communication and MPI libs are included too. 1213 # If we don't find anything, use the default library path according 1214 # to the aix ld manual. 1215 # Store the results from the different compilers for each TAGNAME. 1216 # Allow to override them for all tags through lt_cv_aix_libpath. 1217 m4_defun([_LT_SYS_MODULE_PATH_AIX], 1218 [m4_require([_LT_DECL_SED])dnl 1219 if test set = "${lt_cv_aix_libpath+set}"; then 1220 aix_libpath=$lt_cv_aix_libpath 1221 else 1222 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], 1223 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ 1224 lt_aix_libpath_sed='[ 1225 /Import File Strings/,/^$/ { 1226 /^0/ { 1227 s/^0 *\([^ ]*\) *$/\1/ 1228 p 1229 } 1230 }]' 1231 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1232 # Check for a 64-bit object if we didn't find anything. 1233 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1234 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 1235 fi],[]) 1236 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then 1237 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib 1238 fi 1239 ]) 1240 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) 1241 fi 1242 ])# _LT_SYS_MODULE_PATH_AIX 1243 1244 1245 # _LT_SHELL_INIT(ARG) 1246 # ------------------- 1247 m4_define([_LT_SHELL_INIT], 1248 [m4_divert_text([M4SH-INIT], [$1 1249 ])])# _LT_SHELL_INIT 1250 1251 1252 1253 # _LT_PROG_ECHO_BACKSLASH 1254 # ----------------------- 1255 # Find how we can fake an echo command that does not interpret backslash. 1256 # In particular, with Autoconf 2.60 or later we add some code to the start 1257 # of the generated configure script that will find a shell with a builtin 1258 # printf (that we can use as an echo command). 1259 m4_defun([_LT_PROG_ECHO_BACKSLASH], 1260 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1261 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1262 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1263 1264 AC_MSG_CHECKING([how to print strings]) 1265 # Test print first, because it will be a builtin if present. 1266 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 1267 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 1268 ECHO='print -r --' 1269 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 1270 ECHO='printf %s\n' 1271 else 1272 # Use this function as a fallback that always works. 1273 func_fallback_echo () 1274 { 1275 eval 'cat <<_LTECHO_EOF 1276 $[]1 1277 _LTECHO_EOF' 1278 } 1279 ECHO='func_fallback_echo' 1280 fi 1281 1282 # func_echo_all arg... 1283 # Invoke $ECHO with all args, space-separated. 1284 func_echo_all () 1285 { 1286 $ECHO "$*" 1287 } 1288 1289 case $ECHO in 1290 printf*) AC_MSG_RESULT([printf]) ;; 1291 print*) AC_MSG_RESULT([print -r]) ;; 1292 *) AC_MSG_RESULT([cat]) ;; 1293 esac 1294 1295 m4_ifdef([_AS_DETECT_SUGGESTED], 1296 [_AS_DETECT_SUGGESTED([ 1297 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( 1298 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 1299 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 1300 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 1301 PATH=/empty FPATH=/empty; export PATH FPATH 1302 test "X`printf %s $ECHO`" = "X$ECHO" \ 1303 || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) 1304 1305 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) 1306 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) 1307 ])# _LT_PROG_ECHO_BACKSLASH 1308 1309 1310 # _LT_WITH_SYSROOT 1311 # ---------------- 1312 AC_DEFUN([_LT_WITH_SYSROOT], 1313 [m4_require([_LT_DECL_SED])dnl 1314 AC_MSG_CHECKING([for sysroot]) 1315 AC_ARG_WITH([sysroot], 1316 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], 1317 [Search for dependent libraries within DIR (or the compiler's sysroot 1318 if not specified).])], 1319 [], [with_sysroot=no]) 1320 1321 dnl lt_sysroot will always be passed unquoted. We quote it here 1322 dnl in case the user passed a directory name. 1323 lt_sysroot= 1324 case $with_sysroot in #( 1325 yes) 1326 if test yes = "$GCC"; then 1327 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 1328 fi 1329 ;; #( 1330 /*) 1331 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` 1332 ;; #( 1333 no|'') 1334 ;; #( 1335 *) 1336 AC_MSG_RESULT([$with_sysroot]) 1337 AC_MSG_ERROR([The sysroot must be an absolute path.]) 1338 ;; 1339 esac 1340 1341 AC_MSG_RESULT([${lt_sysroot:-no}]) 1342 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl 1343 [dependent libraries, and where our libraries should be installed.])]) 1344 1345 # _LT_ENABLE_LOCK 1346 # --------------- 1347 m4_defun([_LT_ENABLE_LOCK], 1348 [AC_ARG_ENABLE([libtool-lock], 1349 [AS_HELP_STRING([--disable-libtool-lock], 1350 [avoid locking (might break parallel builds)])]) 1351 test no = "$enable_libtool_lock" || enable_libtool_lock=yes 1352 1353 # Some flags need to be propagated to the compiler or linker for good 1354 # libtool support. 1355 case $host in 1356 ia64-*-hpux*) 1357 # Find out what ABI is being produced by ac_compile, and set mode 1358 # options accordingly. 1359 echo 'int i;' > conftest.$ac_ext 1360 if AC_TRY_EVAL(ac_compile); then 1361 case `$FILECMD conftest.$ac_objext` in 1362 *ELF-32*) 1363 HPUX_IA64_MODE=32 1364 ;; 1365 *ELF-64*) 1366 HPUX_IA64_MODE=64 1367 ;; 1368 esac 1369 fi 1370 rm -rf conftest* 1371 ;; 1372 *-*-irix6*) 1373 # Find out what ABI is being produced by ac_compile, and set linker 1374 # options accordingly. 1375 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1376 if AC_TRY_EVAL(ac_compile); then 1377 if test yes = "$lt_cv_prog_gnu_ld"; then 1378 case `$FILECMD conftest.$ac_objext` in 1379 *32-bit*) 1380 LD="${LD-ld} -melf32bsmip" 1381 ;; 1382 *N32*) 1383 LD="${LD-ld} -melf32bmipn32" 1384 ;; 1385 *64-bit*) 1386 LD="${LD-ld} -melf64bmip" 1387 ;; 1388 esac 1389 else 1390 case `$FILECMD conftest.$ac_objext` in 1391 *32-bit*) 1392 LD="${LD-ld} -32" 1393 ;; 1394 *N32*) 1395 LD="${LD-ld} -n32" 1396 ;; 1397 *64-bit*) 1398 LD="${LD-ld} -64" 1399 ;; 1400 esac 1401 fi 1402 fi 1403 rm -rf conftest* 1404 ;; 1405 1406 mips64*-*linux*) 1407 # Find out what ABI is being produced by ac_compile, and set linker 1408 # options accordingly. 1409 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext 1410 if AC_TRY_EVAL(ac_compile); then 1411 emul=elf 1412 case `$FILECMD conftest.$ac_objext` in 1413 *32-bit*) 1414 emul="${emul}32" 1415 ;; 1416 *64-bit*) 1417 emul="${emul}64" 1418 ;; 1419 esac 1420 case `$FILECMD conftest.$ac_objext` in 1421 *MSB*) 1422 emul="${emul}btsmip" 1423 ;; 1424 *LSB*) 1425 emul="${emul}ltsmip" 1426 ;; 1427 esac 1428 case `$FILECMD conftest.$ac_objext` in 1429 *N32*) 1430 emul="${emul}n32" 1431 ;; 1432 esac 1433 LD="${LD-ld} -m $emul" 1434 fi 1435 rm -rf conftest* 1436 ;; 1437 1438 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 1439 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 1440 # Find out what ABI is being produced by ac_compile, and set linker 1441 # options accordingly. Note that the listed cases only cover the 1442 # situations where additional linker options are needed (such as when 1443 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 1444 # vice versa); the common cases where no linker options are needed do 1445 # not appear in the list. 1446 echo 'int i;' > conftest.$ac_ext 1447 if AC_TRY_EVAL(ac_compile); then 1448 case `$FILECMD conftest.o` in 1449 *32-bit*) 1450 case $host in 1451 x86_64-*kfreebsd*-gnu) 1452 LD="${LD-ld} -m elf_i386_fbsd" 1453 ;; 1454 x86_64-*linux*) 1455 case `$FILECMD conftest.o` in 1456 *x86-64*) 1457 LD="${LD-ld} -m elf32_x86_64" 1458 ;; 1459 *) 1460 LD="${LD-ld} -m elf_i386" 1461 ;; 1462 esac 1463 ;; 1464 powerpc64le-*linux*) 1465 LD="${LD-ld} -m elf32lppclinux" 1466 ;; 1467 powerpc64-*linux*) 1468 LD="${LD-ld} -m elf32ppclinux" 1469 ;; 1470 s390x-*linux*) 1471 LD="${LD-ld} -m elf_s390" 1472 ;; 1473 sparc64-*linux*) 1474 LD="${LD-ld} -m elf32_sparc" 1475 ;; 1476 esac 1477 ;; 1478 *64-bit*) 1479 case $host in 1480 x86_64-*kfreebsd*-gnu) 1481 LD="${LD-ld} -m elf_x86_64_fbsd" 1482 ;; 1483 x86_64-*linux*) 1484 LD="${LD-ld} -m elf_x86_64" 1485 ;; 1486 powerpcle-*linux*) 1487 LD="${LD-ld} -m elf64lppc" 1488 ;; 1489 powerpc-*linux*) 1490 LD="${LD-ld} -m elf64ppc" 1491 ;; 1492 s390*-*linux*|s390*-*tpf*) 1493 LD="${LD-ld} -m elf64_s390" 1494 ;; 1495 sparc*-*linux*) 1496 LD="${LD-ld} -m elf64_sparc" 1497 ;; 1498 esac 1499 ;; 1500 esac 1501 fi 1502 rm -rf conftest* 1503 ;; 1504 1505 *-*-sco3.2v5*) 1506 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1507 SAVE_CFLAGS=$CFLAGS 1508 CFLAGS="$CFLAGS -belf" 1509 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 1510 [AC_LANG_PUSH(C) 1511 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 1512 AC_LANG_POP]) 1513 if test yes != "$lt_cv_cc_needs_belf"; then 1514 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1515 CFLAGS=$SAVE_CFLAGS 1516 fi 1517 ;; 1518 *-*solaris*) 1519 # Find out what ABI is being produced by ac_compile, and set linker 1520 # options accordingly. 1521 echo 'int i;' > conftest.$ac_ext 1522 if AC_TRY_EVAL(ac_compile); then 1523 case `$FILECMD conftest.o` in 1524 *64-bit*) 1525 case $lt_cv_prog_gnu_ld in 1526 yes*) 1527 case $host in 1528 i?86-*-solaris*|x86_64-*-solaris*) 1529 LD="${LD-ld} -m elf_x86_64" 1530 ;; 1531 sparc*-*-solaris*) 1532 LD="${LD-ld} -m elf64_sparc" 1533 ;; 1534 esac 1535 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 1536 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 1537 LD=${LD-ld}_sol2 1538 fi 1539 ;; 1540 *) 1541 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 1542 LD="${LD-ld} -64" 1543 fi 1544 ;; 1545 esac 1546 ;; 1547 esac 1548 fi 1549 rm -rf conftest* 1550 ;; 1551 esac 1552 1553 need_locks=$enable_libtool_lock 1554 ])# _LT_ENABLE_LOCK 1555 1556 1557 # _LT_PROG_AR 1558 # ----------- 1559 m4_defun([_LT_PROG_AR], 1560 [AC_CHECK_TOOLS(AR, [ar], false) 1561 : ${AR=ar} 1562 _LT_DECL([], [AR], [1], [The archiver]) 1563 1564 # Use ARFLAGS variable as AR's operation code to sync the variable naming with 1565 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have 1566 # higher priority because thats what people were doing historically (setting 1567 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS 1568 # variable obsoleted/removed. 1569 1570 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} 1571 lt_ar_flags=$AR_FLAGS 1572 _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) 1573 1574 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override 1575 # by AR_FLAGS because that was never working and AR_FLAGS is about to die. 1576 _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], 1577 [Flags to create an archive]) 1578 1579 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], 1580 [lt_cv_ar_at_file=no 1581 AC_COMPILE_IFELSE([AC_LANG_PROGRAM], 1582 [echo conftest.$ac_objext > conftest.lst 1583 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' 1584 AC_TRY_EVAL([lt_ar_try]) 1585 if test 0 -eq "$ac_status"; then 1586 # Ensure the archiver fails upon bogus file names. 1587 rm -f conftest.$ac_objext libconftest.a 1588 AC_TRY_EVAL([lt_ar_try]) 1589 if test 0 -ne "$ac_status"; then 1590 lt_cv_ar_at_file=@ 1591 fi 1592 fi 1593 rm -f conftest.* libconftest.a 1594 ]) 1595 ]) 1596 1597 if test no = "$lt_cv_ar_at_file"; then 1598 archiver_list_spec= 1599 else 1600 archiver_list_spec=$lt_cv_ar_at_file 1601 fi 1602 _LT_DECL([], [archiver_list_spec], [1], 1603 [How to feed a file listing to the archiver]) 1604 ])# _LT_PROG_AR 1605 1606 1607 # _LT_CMD_OLD_ARCHIVE 1608 # ------------------- 1609 m4_defun([_LT_CMD_OLD_ARCHIVE], 1610 [_LT_PROG_AR 1611 1612 AC_CHECK_TOOL(STRIP, strip, :) 1613 test -z "$STRIP" && STRIP=: 1614 _LT_DECL([], [STRIP], [1], [A symbol stripping program]) 1615 1616 AC_CHECK_TOOL(RANLIB, ranlib, :) 1617 test -z "$RANLIB" && RANLIB=: 1618 _LT_DECL([], [RANLIB], [1], 1619 [Commands used to install an old-style archive]) 1620 1621 # Determine commands to create old-style static archives. 1622 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1623 old_postinstall_cmds='chmod 644 $oldlib' 1624 old_postuninstall_cmds= 1625 1626 if test -n "$RANLIB"; then 1627 case $host_os in 1628 bitrig* | openbsd*) 1629 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 1630 ;; 1631 *) 1632 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 1633 ;; 1634 esac 1635 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 1636 fi 1637 1638 case $host_os in 1639 darwin*) 1640 lock_old_archive_extraction=yes ;; 1641 *) 1642 lock_old_archive_extraction=no ;; 1643 esac 1644 _LT_DECL([], [old_postinstall_cmds], [2]) 1645 _LT_DECL([], [old_postuninstall_cmds], [2]) 1646 _LT_TAGDECL([], [old_archive_cmds], [2], 1647 [Commands used to build an old-style archive]) 1648 _LT_DECL([], [lock_old_archive_extraction], [0], 1649 [Whether to use a lock for old archive extraction]) 1650 ])# _LT_CMD_OLD_ARCHIVE 1651 1652 1653 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1654 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 1655 # ---------------------------------------------------------------- 1656 # Check whether the given compiler option works 1657 AC_DEFUN([_LT_COMPILER_OPTION], 1658 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1659 m4_require([_LT_DECL_SED])dnl 1660 AC_CACHE_CHECK([$1], [$2], 1661 [$2=no 1662 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 1663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1664 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment 1665 # Insert the option either (1) after the last *FLAGS variable, or 1666 # (2) before a word containing "conftest.", or (3) at the end. 1667 # Note that $ac_compile itself does not contain backslashes and begins 1668 # with a dollar sign (not a hyphen), so the echo should work correctly. 1669 # The option is referenced via a variable to avoid confusing sed. 1670 lt_compile=`echo "$ac_compile" | $SED \ 1671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1672 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1673 -e 's:$: $lt_compiler_flag:'` 1674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1675 (eval "$lt_compile" 2>conftest.err) 1676 ac_status=$? 1677 cat conftest.err >&AS_MESSAGE_LOG_FD 1678 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1679 if (exit $ac_status) && test -s "$ac_outfile"; then 1680 # The compiler can only warn and ignore the option if not recognized 1681 # So say no if there are warnings other than the usual output. 1682 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 1683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 1685 $2=yes 1686 fi 1687 fi 1688 $RM conftest* 1689 ]) 1690 1691 if test yes = "[$]$2"; then 1692 m4_if([$5], , :, [$5]) 1693 else 1694 m4_if([$6], , :, [$6]) 1695 fi 1696 ])# _LT_COMPILER_OPTION 1697 1698 # Old name: 1699 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) 1700 dnl aclocal-1.4 backwards compatibility: 1701 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) 1702 1703 1704 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 1705 # [ACTION-SUCCESS], [ACTION-FAILURE]) 1706 # ---------------------------------------------------- 1707 # Check whether the given linker option works 1708 AC_DEFUN([_LT_LINKER_OPTION], 1709 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 1710 m4_require([_LT_DECL_SED])dnl 1711 AC_CACHE_CHECK([$1], [$2], 1712 [$2=no 1713 save_LDFLAGS=$LDFLAGS 1714 LDFLAGS="$LDFLAGS $3" 1715 echo "$lt_simple_link_test_code" > conftest.$ac_ext 1716 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1717 # The linker can only warn and ignore the option if not recognized 1718 # So say no if there are warnings 1719 if test -s conftest.err; then 1720 # Append any errors to the config.log. 1721 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 1723 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 1724 if diff conftest.exp conftest.er2 >/dev/null; then 1725 $2=yes 1726 fi 1727 else 1728 $2=yes 1729 fi 1730 fi 1731 $RM -r conftest* 1732 LDFLAGS=$save_LDFLAGS 1733 ]) 1734 1735 if test yes = "[$]$2"; then 1736 m4_if([$4], , :, [$4]) 1737 else 1738 m4_if([$5], , :, [$5]) 1739 fi 1740 ])# _LT_LINKER_OPTION 1741 1742 # Old name: 1743 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) 1744 dnl aclocal-1.4 backwards compatibility: 1745 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) 1746 1747 1748 # LT_CMD_MAX_LEN 1749 #--------------- 1750 AC_DEFUN([LT_CMD_MAX_LEN], 1751 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 1752 # find the maximum length of command line arguments 1753 AC_MSG_CHECKING([the maximum length of command line arguments]) 1754 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1755 i=0 1756 teststring=ABCD 1757 1758 case $build_os in 1759 msdosdjgpp*) 1760 # On DJGPP, this test can blow up pretty badly due to problems in libc 1761 # (any single argument exceeding 2000 bytes causes a buffer overrun 1762 # during glob expansion). Even if it were fixed, the result of this 1763 # check would be larger than it should be. 1764 lt_cv_sys_max_cmd_len=12288; # 12K is about right 1765 ;; 1766 1767 gnu*) 1768 # Under GNU Hurd, this test is not required because there is 1769 # no limit to the length of command line arguments. 1770 # Libtool will interpret -1 as no limit whatsoever 1771 lt_cv_sys_max_cmd_len=-1; 1772 ;; 1773 1774 cygwin* | mingw* | cegcc*) 1775 # On Win9x/ME, this test blows up -- it succeeds, but takes 1776 # about 5 minutes as the teststring grows exponentially. 1777 # Worse, since 9x/ME are not pre-emptively multitasking, 1778 # you end up with a "frozen" computer, even though with patience 1779 # the test eventually succeeds (with a max line length of 256k). 1780 # Instead, let's just punt: use the minimum linelength reported by 1781 # all of the supported platforms: 8192 (on NT/2K/XP). 1782 lt_cv_sys_max_cmd_len=8192; 1783 ;; 1784 1785 mint*) 1786 # On MiNT this can take a long time and run out of memory. 1787 lt_cv_sys_max_cmd_len=8192; 1788 ;; 1789 1790 amigaos*) 1791 # On AmigaOS with pdksh, this test takes hours, literally. 1792 # So we just punt and use a minimum line length of 8192. 1793 lt_cv_sys_max_cmd_len=8192; 1794 ;; 1795 1796 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) 1797 # This has been around since 386BSD, at least. Likely further. 1798 if test -x /sbin/sysctl; then 1799 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 1800 elif test -x /usr/sbin/sysctl; then 1801 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 1802 else 1803 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 1804 fi 1805 # And add a safety zone 1806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1808 ;; 1809 1810 interix*) 1811 # We know the value 262144 and hardcode it with a safety zone (like BSD) 1812 lt_cv_sys_max_cmd_len=196608 1813 ;; 1814 1815 os2*) 1816 # The test takes a long time on OS/2. 1817 lt_cv_sys_max_cmd_len=8192 1818 ;; 1819 1820 osf*) 1821 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 1822 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 1823 # nice to cause kernel panics so lets avoid the loop below. 1824 # First set a reasonable default. 1825 lt_cv_sys_max_cmd_len=16384 1826 # 1827 if test -x /sbin/sysconfig; then 1828 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 1829 *1*) lt_cv_sys_max_cmd_len=-1 ;; 1830 esac 1831 fi 1832 ;; 1833 sco3.2v5*) 1834 lt_cv_sys_max_cmd_len=102400 1835 ;; 1836 sysv5* | sco5v6* | sysv4.2uw2*) 1837 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 1838 if test -n "$kargmax"; then 1839 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` 1840 else 1841 lt_cv_sys_max_cmd_len=32768 1842 fi 1843 ;; 1844 *) 1845 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 1846 if test -n "$lt_cv_sys_max_cmd_len" && \ 1847 test undefined != "$lt_cv_sys_max_cmd_len"; then 1848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 1849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 1850 else 1851 # Make teststring a little bigger before we do anything with it. 1852 # a 1K string should be a reasonable start. 1853 for i in 1 2 3 4 5 6 7 8; do 1854 teststring=$teststring$teststring 1855 done 1856 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 1857 # If test is not a shell built-in, we'll probably end up computing a 1858 # maximum length that is only half of the actual maximum length, but 1859 # we can't tell. 1860 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 1861 = "X$teststring$teststring"; } >/dev/null 2>&1 && 1862 test 17 != "$i" # 1/2 MB should be enough 1863 do 1864 i=`expr $i + 1` 1865 teststring=$teststring$teststring 1866 done 1867 # Only check the string length outside the loop. 1868 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 1869 teststring= 1870 # Add a significant safety factor because C++ compilers can tack on 1871 # massive amounts of additional arguments before passing them to the 1872 # linker. It appears as though 1/2 is a usable value. 1873 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1874 fi 1875 ;; 1876 esac 1877 ]) 1878 if test -n "$lt_cv_sys_max_cmd_len"; then 1879 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 1880 else 1881 AC_MSG_RESULT(none) 1882 fi 1883 max_cmd_len=$lt_cv_sys_max_cmd_len 1884 _LT_DECL([], [max_cmd_len], [0], 1885 [What is the maximum length of a command?]) 1886 ])# LT_CMD_MAX_LEN 1887 1888 # Old name: 1889 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) 1890 dnl aclocal-1.4 backwards compatibility: 1891 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) 1892 1893 1894 # _LT_HEADER_DLFCN 1895 # ---------------- 1896 m4_defun([_LT_HEADER_DLFCN], 1897 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl 1898 ])# _LT_HEADER_DLFCN 1899 1900 1901 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1902 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1903 # ---------------------------------------------------------------- 1904 m4_defun([_LT_TRY_DLOPEN_SELF], 1905 [m4_require([_LT_HEADER_DLFCN])dnl 1906 if test yes = "$cross_compiling"; then : 1907 [$4] 1908 else 1909 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 1910 lt_status=$lt_dlunknown 1911 cat > conftest.$ac_ext <<_LT_EOF 1912 [#line $LINENO "configure" 1913 #include "confdefs.h" 1914 1915 #if HAVE_DLFCN_H 1916 #include <dlfcn.h> 1917 #endif 1918 1919 #include <stdio.h> 1920 1921 #ifdef RTLD_GLOBAL 1922 # define LT_DLGLOBAL RTLD_GLOBAL 1923 #else 1924 # ifdef DL_GLOBAL 1925 # define LT_DLGLOBAL DL_GLOBAL 1926 # else 1927 # define LT_DLGLOBAL 0 1928 # endif 1929 #endif 1930 1931 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 1932 find out it does not work in some platform. */ 1933 #ifndef LT_DLLAZY_OR_NOW 1934 # ifdef RTLD_LAZY 1935 # define LT_DLLAZY_OR_NOW RTLD_LAZY 1936 # else 1937 # ifdef DL_LAZY 1938 # define LT_DLLAZY_OR_NOW DL_LAZY 1939 # else 1940 # ifdef RTLD_NOW 1941 # define LT_DLLAZY_OR_NOW RTLD_NOW 1942 # else 1943 # ifdef DL_NOW 1944 # define LT_DLLAZY_OR_NOW DL_NOW 1945 # else 1946 # define LT_DLLAZY_OR_NOW 0 1947 # endif 1948 # endif 1949 # endif 1950 # endif 1951 #endif 1952 1953 /* When -fvisibility=hidden is used, assume the code has been annotated 1954 correspondingly for the symbols needed. */ 1955 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 1956 int fnord () __attribute__((visibility("default"))); 1957 #endif 1958 1959 int fnord () { return 42; } 1960 int main () 1961 { 1962 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 1963 int status = $lt_dlunknown; 1964 1965 if (self) 1966 { 1967 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1968 else 1969 { 1970 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1971 else puts (dlerror ()); 1972 } 1973 /* dlclose (self); */ 1974 } 1975 else 1976 puts (dlerror ()); 1977 1978 return status; 1979 }] 1980 _LT_EOF 1981 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then 1982 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 1983 lt_status=$? 1984 case x$lt_status in 1985 x$lt_dlno_uscore) $1 ;; 1986 x$lt_dlneed_uscore) $2 ;; 1987 x$lt_dlunknown|x*) $3 ;; 1988 esac 1989 else : 1990 # compilation failed 1991 $3 1992 fi 1993 fi 1994 rm -fr conftest* 1995 ])# _LT_TRY_DLOPEN_SELF 1996 1997 1998 # LT_SYS_DLOPEN_SELF 1999 # ------------------ 2000 AC_DEFUN([LT_SYS_DLOPEN_SELF], 2001 [m4_require([_LT_HEADER_DLFCN])dnl 2002 if test yes != "$enable_dlopen"; then 2003 enable_dlopen=unknown 2004 enable_dlopen_self=unknown 2005 enable_dlopen_self_static=unknown 2006 else 2007 lt_cv_dlopen=no 2008 lt_cv_dlopen_libs= 2009 2010 case $host_os in 2011 beos*) 2012 lt_cv_dlopen=load_add_on 2013 lt_cv_dlopen_libs= 2014 lt_cv_dlopen_self=yes 2015 ;; 2016 2017 mingw* | pw32* | cegcc*) 2018 lt_cv_dlopen=LoadLibrary 2019 lt_cv_dlopen_libs= 2020 ;; 2021 2022 cygwin*) 2023 lt_cv_dlopen=dlopen 2024 lt_cv_dlopen_libs= 2025 ;; 2026 2027 darwin*) 2028 # if libdl is installed we need to link against it 2029 AC_CHECK_LIB([dl], [dlopen], 2030 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ 2031 lt_cv_dlopen=dyld 2032 lt_cv_dlopen_libs= 2033 lt_cv_dlopen_self=yes 2034 ]) 2035 ;; 2036 2037 tpf*) 2038 # Don't try to run any link tests for TPF. We know it's impossible 2039 # because TPF is a cross-compiler, and we know how we open DSOs. 2040 lt_cv_dlopen=dlopen 2041 lt_cv_dlopen_libs= 2042 lt_cv_dlopen_self=no 2043 ;; 2044 2045 *) 2046 AC_CHECK_FUNC([shl_load], 2047 [lt_cv_dlopen=shl_load], 2048 [AC_CHECK_LIB([dld], [shl_load], 2049 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], 2050 [AC_CHECK_FUNC([dlopen], 2051 [lt_cv_dlopen=dlopen], 2052 [AC_CHECK_LIB([dl], [dlopen], 2053 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], 2054 [AC_CHECK_LIB([svld], [dlopen], 2055 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], 2056 [AC_CHECK_LIB([dld], [dld_link], 2057 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) 2058 ]) 2059 ]) 2060 ]) 2061 ]) 2062 ]) 2063 ;; 2064 esac 2065 2066 if test no = "$lt_cv_dlopen"; then 2067 enable_dlopen=no 2068 else 2069 enable_dlopen=yes 2070 fi 2071 2072 case $lt_cv_dlopen in 2073 dlopen) 2074 save_CPPFLAGS=$CPPFLAGS 2075 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 2076 2077 save_LDFLAGS=$LDFLAGS 2078 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 2079 2080 save_LIBS=$LIBS 2081 LIBS="$lt_cv_dlopen_libs $LIBS" 2082 2083 AC_CACHE_CHECK([whether a program can dlopen itself], 2084 lt_cv_dlopen_self, [dnl 2085 _LT_TRY_DLOPEN_SELF( 2086 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 2087 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 2088 ]) 2089 2090 if test yes = "$lt_cv_dlopen_self"; then 2091 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 2092 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 2093 lt_cv_dlopen_self_static, [dnl 2094 _LT_TRY_DLOPEN_SELF( 2095 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 2096 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 2097 ]) 2098 fi 2099 2100 CPPFLAGS=$save_CPPFLAGS 2101 LDFLAGS=$save_LDFLAGS 2102 LIBS=$save_LIBS 2103 ;; 2104 esac 2105 2106 case $lt_cv_dlopen_self in 2107 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 2108 *) enable_dlopen_self=unknown ;; 2109 esac 2110 2111 case $lt_cv_dlopen_self_static in 2112 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 2113 *) enable_dlopen_self_static=unknown ;; 2114 esac 2115 fi 2116 _LT_DECL([dlopen_support], [enable_dlopen], [0], 2117 [Whether dlopen is supported]) 2118 _LT_DECL([dlopen_self], [enable_dlopen_self], [0], 2119 [Whether dlopen of programs is supported]) 2120 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], 2121 [Whether dlopen of statically linked programs is supported]) 2122 ])# LT_SYS_DLOPEN_SELF 2123 2124 # Old name: 2125 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) 2126 dnl aclocal-1.4 backwards compatibility: 2127 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) 2128 2129 2130 # _LT_COMPILER_C_O([TAGNAME]) 2131 # --------------------------- 2132 # Check to see if options -c and -o are simultaneously supported by compiler. 2133 # This macro does not hard code the compiler like AC_PROG_CC_C_O. 2134 m4_defun([_LT_COMPILER_C_O], 2135 [m4_require([_LT_DECL_SED])dnl 2136 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2137 m4_require([_LT_TAG_COMPILER])dnl 2138 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 2139 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 2140 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 2141 $RM -r conftest 2>/dev/null 2142 mkdir conftest 2143 cd conftest 2144 mkdir out 2145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 2146 2147 lt_compiler_flag="-o out/conftest2.$ac_objext" 2148 # Insert the option either (1) after the last *FLAGS variable, or 2149 # (2) before a word containing "conftest.", or (3) at the end. 2150 # Note that $ac_compile itself does not contain backslashes and begins 2151 # with a dollar sign (not a hyphen), so the echo should work correctly. 2152 lt_compile=`echo "$ac_compile" | $SED \ 2153 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 2154 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 2155 -e 's:$: $lt_compiler_flag:'` 2156 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 2157 (eval "$lt_compile" 2>out/conftest.err) 2158 ac_status=$? 2159 cat out/conftest.err >&AS_MESSAGE_LOG_FD 2160 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 2161 if (exit $ac_status) && test -s out/conftest2.$ac_objext 2162 then 2163 # The compiler can only warn and ignore the option if not recognized 2164 # So say no if there are warnings 2165 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 2166 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 2167 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 2168 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 2169 fi 2170 fi 2171 chmod u+w . 2>&AS_MESSAGE_LOG_FD 2172 $RM conftest* 2173 # SGI C++ compiler will create directory out/ii_files/ for 2174 # template instantiation 2175 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 2176 $RM out/* && rmdir out 2177 cd .. 2178 $RM -r conftest 2179 $RM conftest* 2180 ]) 2181 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], 2182 [Does compiler simultaneously support -c and -o options?]) 2183 ])# _LT_COMPILER_C_O 2184 2185 2186 # _LT_COMPILER_FILE_LOCKS([TAGNAME]) 2187 # ---------------------------------- 2188 # Check to see if we can do hard links to lock some files if needed 2189 m4_defun([_LT_COMPILER_FILE_LOCKS], 2190 [m4_require([_LT_ENABLE_LOCK])dnl 2191 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2192 _LT_COMPILER_C_O([$1]) 2193 2194 hard_links=nottested 2195 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then 2196 # do not overwrite the value of need_locks provided by the user 2197 AC_MSG_CHECKING([if we can lock with hard links]) 2198 hard_links=yes 2199 $RM conftest* 2200 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2201 touch conftest.a 2202 ln conftest.a conftest.b 2>&5 || hard_links=no 2203 ln conftest.a conftest.b 2>/dev/null && hard_links=no 2204 AC_MSG_RESULT([$hard_links]) 2205 if test no = "$hard_links"; then 2206 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) 2207 need_locks=warn 2208 fi 2209 else 2210 need_locks=no 2211 fi 2212 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) 2213 ])# _LT_COMPILER_FILE_LOCKS 2214 2215 2216 # _LT_CHECK_OBJDIR 2217 # ---------------- 2218 m4_defun([_LT_CHECK_OBJDIR], 2219 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 2220 [rm -f .libs 2>/dev/null 2221 mkdir .libs 2>/dev/null 2222 if test -d .libs; then 2223 lt_cv_objdir=.libs 2224 else 2225 # MS-DOS does not allow filenames that begin with a dot. 2226 lt_cv_objdir=_libs 2227 fi 2228 rmdir .libs 2>/dev/null]) 2229 objdir=$lt_cv_objdir 2230 _LT_DECL([], [objdir], [0], 2231 [The name of the directory that contains temporary libtool files])dnl 2232 m4_pattern_allow([LT_OBJDIR])dnl 2233 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", 2234 [Define to the sub-directory where libtool stores uninstalled libraries.]) 2235 ])# _LT_CHECK_OBJDIR 2236 2237 2238 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) 2239 # -------------------------------------- 2240 # Check hardcoding attributes. 2241 m4_defun([_LT_LINKER_HARDCODE_LIBPATH], 2242 [AC_MSG_CHECKING([how to hardcode library paths into programs]) 2243 _LT_TAGVAR(hardcode_action, $1)= 2244 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || 2245 test -n "$_LT_TAGVAR(runpath_var, $1)" || 2246 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then 2247 2248 # We can hardcode non-existent directories. 2249 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && 2250 # If the only mechanism to avoid hardcoding is shlibpath_var, we 2251 # have to relink, otherwise we might link with an installed library 2252 # when we should be linking with a yet-to-be-installed one 2253 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && 2254 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then 2255 # Linking always hardcodes the temporary library directory. 2256 _LT_TAGVAR(hardcode_action, $1)=relink 2257 else 2258 # We can link without hardcoding, and we can hardcode nonexisting dirs. 2259 _LT_TAGVAR(hardcode_action, $1)=immediate 2260 fi 2261 else 2262 # We cannot hardcode anything, or else we can only hardcode existing 2263 # directories. 2264 _LT_TAGVAR(hardcode_action, $1)=unsupported 2265 fi 2266 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) 2267 2268 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || 2269 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then 2270 # Fast installation is not supported 2271 enable_fast_install=no 2272 elif test yes = "$shlibpath_overrides_runpath" || 2273 test no = "$enable_shared"; then 2274 # Fast installation is not necessary 2275 enable_fast_install=needless 2276 fi 2277 _LT_TAGDECL([], [hardcode_action], [0], 2278 [How to hardcode a shared library path into an executable]) 2279 ])# _LT_LINKER_HARDCODE_LIBPATH 2280 2281 2282 # _LT_CMD_STRIPLIB 2283 # ---------------- 2284 m4_defun([_LT_CMD_STRIPLIB], 2285 [m4_require([_LT_DECL_EGREP]) 2286 striplib= 2287 old_striplib= 2288 AC_MSG_CHECKING([whether stripping libraries is possible]) 2289 if test -z "$STRIP"; then 2290 AC_MSG_RESULT([no]) 2291 else 2292 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 2293 old_striplib="$STRIP --strip-debug" 2294 striplib="$STRIP --strip-unneeded" 2295 AC_MSG_RESULT([yes]) 2296 else 2297 case $host_os in 2298 darwin*) 2299 # FIXME - insert some real tests, host_os isn't really good enough 2300 striplib="$STRIP -x" 2301 old_striplib="$STRIP -S" 2302 AC_MSG_RESULT([yes]) 2303 ;; 2304 freebsd*) 2305 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then 2306 old_striplib="$STRIP --strip-debug" 2307 striplib="$STRIP --strip-unneeded" 2308 AC_MSG_RESULT([yes]) 2309 else 2310 AC_MSG_RESULT([no]) 2311 fi 2312 ;; 2313 *) 2314 AC_MSG_RESULT([no]) 2315 ;; 2316 esac 2317 fi 2318 fi 2319 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) 2320 _LT_DECL([], [striplib], [1]) 2321 ])# _LT_CMD_STRIPLIB 2322 2323 2324 # _LT_PREPARE_MUNGE_PATH_LIST 2325 # --------------------------- 2326 # Make sure func_munge_path_list() is defined correctly. 2327 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], 2328 [[# func_munge_path_list VARIABLE PATH 2329 # ----------------------------------- 2330 # VARIABLE is name of variable containing _space_ separated list of 2331 # directories to be munged by the contents of PATH, which is string 2332 # having a format: 2333 # "DIR[:DIR]:" 2334 # string "DIR[ DIR]" will be prepended to VARIABLE 2335 # ":DIR[:DIR]" 2336 # string "DIR[ DIR]" will be appended to VARIABLE 2337 # "DIRP[:DIRP]::[DIRA:]DIRA" 2338 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string 2339 # "DIRA[ DIRA]" will be appended to VARIABLE 2340 # "DIR[:DIR]" 2341 # VARIABLE will be replaced by "DIR[ DIR]" 2342 func_munge_path_list () 2343 { 2344 case x@S|@2 in 2345 x) 2346 ;; 2347 *:) 2348 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" 2349 ;; 2350 x:*) 2351 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" 2352 ;; 2353 *::*) 2354 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 2355 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" 2356 ;; 2357 *) 2358 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" 2359 ;; 2360 esac 2361 } 2362 ]])# _LT_PREPARE_PATH_LIST 2363 2364 2365 # _LT_SYS_DYNAMIC_LINKER([TAG]) 2366 # ----------------------------- 2367 # PORTME Fill in your ld.so characteristics 2368 m4_defun([_LT_SYS_DYNAMIC_LINKER], 2369 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 2370 m4_require([_LT_DECL_EGREP])dnl 2371 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 2372 m4_require([_LT_DECL_OBJDUMP])dnl 2373 m4_require([_LT_DECL_SED])dnl 2374 m4_require([_LT_CHECK_SHELL_FEATURES])dnl 2375 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl 2376 AC_MSG_CHECKING([dynamic linker characteristics]) 2377 m4_if([$1], 2378 [], [ 2379 if test yes = "$GCC"; then 2380 case $host_os in 2381 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 2382 *) lt_awk_arg='/^libraries:/' ;; 2383 esac 2384 case $host_os in 2385 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; 2386 *) lt_sed_strip_eq='s|=/|/|g' ;; 2387 esac 2388 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 2389 case $lt_search_path_spec in 2390 *\;*) 2391 # if the path contains ";" then we assume it to be the separator 2392 # otherwise default to the standard path separator (i.e. ":") - it is 2393 # assumed that no part of a normal pathname contains ";" but that should 2394 # okay in the real world where ";" in dirpaths is itself problematic. 2395 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 2396 ;; 2397 *) 2398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 2399 ;; 2400 esac 2401 # Ok, now we have the path, separated by spaces, we can step through it 2402 # and add multilib dir if necessary... 2403 lt_tmp_lt_search_path_spec= 2404 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 2405 # ...but if some path component already ends with the multilib dir we assume 2406 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 2407 case "$lt_multi_os_dir; $lt_search_path_spec " in 2408 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 2409 lt_multi_os_dir= 2410 ;; 2411 esac 2412 for lt_sys_path in $lt_search_path_spec; do 2413 if test -d "$lt_sys_path$lt_multi_os_dir"; then 2414 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 2415 elif test -n "$lt_multi_os_dir"; then 2416 test -d "$lt_sys_path" && \ 2417 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 2418 fi 2419 done 2420 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 2421 BEGIN {RS = " "; FS = "/|\n";} { 2422 lt_foo = ""; 2423 lt_count = 0; 2424 for (lt_i = NF; lt_i > 0; lt_i--) { 2425 if ($lt_i != "" && $lt_i != ".") { 2426 if ($lt_i == "..") { 2427 lt_count++; 2428 } else { 2429 if (lt_count == 0) { 2430 lt_foo = "/" $lt_i lt_foo; 2431 } else { 2432 lt_count--; 2433 } 2434 } 2435 } 2436 } 2437 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 2438 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 2439 }'` 2440 # AWK program above erroneously prepends '/' to C:/dos/paths 2441 # for these hosts. 2442 case $host_os in 2443 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 2444 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; 2445 esac 2446 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 2447 else 2448 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 2449 fi]) 2450 library_names_spec= 2451 libname_spec='lib$name' 2452 soname_spec= 2453 shrext_cmds=.so 2454 postinstall_cmds= 2455 postuninstall_cmds= 2456 finish_cmds= 2457 finish_eval= 2458 shlibpath_var= 2459 shlibpath_overrides_runpath=unknown 2460 version_type=none 2461 dynamic_linker="$host_os ld.so" 2462 sys_lib_dlsearch_path_spec="/lib /usr/lib" 2463 need_lib_prefix=unknown 2464 hardcode_into_libs=no 2465 2466 # when you set need_version to no, make sure it does not cause -set_version 2467 # flags to be left without arguments 2468 need_version=unknown 2469 2470 AC_ARG_VAR([LT_SYS_LIBRARY_PATH], 2471 [User-defined run-time library search path.]) 2472 2473 case $host_os in 2474 aix3*) 2475 version_type=linux # correct to gnu/linux during the next big refactor 2476 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 2477 shlibpath_var=LIBPATH 2478 2479 # AIX 3 has no versioning support, so we append a major version to the name. 2480 soname_spec='$libname$release$shared_ext$major' 2481 ;; 2482 2483 aix[[4-9]]*) 2484 version_type=linux # correct to gnu/linux during the next big refactor 2485 need_lib_prefix=no 2486 need_version=no 2487 hardcode_into_libs=yes 2488 if test ia64 = "$host_cpu"; then 2489 # AIX 5 supports IA64 2490 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 2491 shlibpath_var=LD_LIBRARY_PATH 2492 else 2493 # With GCC up to 2.95.x, collect2 would create an import file 2494 # for dependence libraries. The import file would start with 2495 # the line '#! .'. This would cause the generated library to 2496 # depend on '.', always an invalid library. This was fixed in 2497 # development snapshots of GCC prior to 3.0. 2498 case $host_os in 2499 aix4 | aix4.[[01]] | aix4.[[01]].*) 2500 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 2501 echo ' yes ' 2502 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 2503 : 2504 else 2505 can_build_shared=no 2506 fi 2507 ;; 2508 esac 2509 # Using Import Files as archive members, it is possible to support 2510 # filename-based versioning of shared library archives on AIX. While 2511 # this would work for both with and without runtime linking, it will 2512 # prevent static linking of such archives. So we do filename-based 2513 # shared library versioning with .so extension only, which is used 2514 # when both runtime linking and shared linking is enabled. 2515 # Unfortunately, runtime linking may impact performance, so we do 2516 # not want this to be the default eventually. Also, we use the 2517 # versioned .so libs for executables only if there is the -brtl 2518 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 2519 # To allow for filename-based versioning support, we need to create 2520 # libNAME.so.V as an archive file, containing: 2521 # *) an Import File, referring to the versioned filename of the 2522 # archive as well as the shared archive member, telling the 2523 # bitwidth (32 or 64) of that shared object, and providing the 2524 # list of exported symbols of that shared object, eventually 2525 # decorated with the 'weak' keyword 2526 # *) the shared object with the F_LOADONLY flag set, to really avoid 2527 # it being seen by the linker. 2528 # At run time we better use the real file rather than another symlink, 2529 # but for link time we create the symlink libNAME.so -> libNAME.so.V 2530 2531 case $with_aix_soname,$aix_use_runtimelinking in 2532 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 2533 # soname into executable. Probably we can add versioning support to 2534 # collect2, so additional links can be useful in future. 2535 aix,yes) # traditional libtool 2536 dynamic_linker='AIX unversionable lib.so' 2537 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 2538 # instead of lib<name>.a to let people know that these are not 2539 # typical AIX shared libraries. 2540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2541 ;; 2542 aix,no) # traditional AIX only 2543 dynamic_linker='AIX lib.a[(]lib.so.V[)]' 2544 # We preserve .a as extension for shared libraries through AIX4.2 2545 # and later when we are not doing run time linking. 2546 library_names_spec='$libname$release.a $libname.a' 2547 soname_spec='$libname$release$shared_ext$major' 2548 ;; 2549 svr4,*) # full svr4 only 2550 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" 2551 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2552 # We do not specify a path in Import Files, so LIBPATH fires. 2553 shlibpath_overrides_runpath=yes 2554 ;; 2555 *,yes) # both, prefer svr4 2556 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" 2557 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 2558 # unpreferred sharedlib libNAME.a needs extra handling 2559 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"' 2560 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"' 2561 # We do not specify a path in Import Files, so LIBPATH fires. 2562 shlibpath_overrides_runpath=yes 2563 ;; 2564 *,no) # both, prefer aix 2565 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" 2566 library_names_spec='$libname$release.a $libname.a' 2567 soname_spec='$libname$release$shared_ext$major' 2568 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 2569 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)' 2570 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"' 2571 ;; 2572 esac 2573 shlibpath_var=LIBPATH 2574 fi 2575 ;; 2576 2577 amigaos*) 2578 case $host_cpu in 2579 powerpc) 2580 # Since July 2007 AmigaOS4 officially supports .so libraries. 2581 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 2582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2583 ;; 2584 m68k) 2585 library_names_spec='$libname.ixlibrary $libname.a' 2586 # Create ${libname}_ixlibrary.a entries in /sys/libs. 2587 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' 2588 ;; 2589 esac 2590 ;; 2591 2592 beos*) 2593 library_names_spec='$libname$shared_ext' 2594 dynamic_linker="$host_os ld.so" 2595 shlibpath_var=LIBRARY_PATH 2596 ;; 2597 2598 bsdi[[45]]*) 2599 version_type=linux # correct to gnu/linux during the next big refactor 2600 need_version=no 2601 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2602 soname_spec='$libname$release$shared_ext$major' 2603 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2604 shlibpath_var=LD_LIBRARY_PATH 2605 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 2606 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 2607 # the default ld.so.conf also contains /usr/contrib/lib and 2608 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 2609 # libtool to hard-code these into programs 2610 ;; 2611 2612 cygwin* | mingw* | pw32* | cegcc*) 2613 version_type=windows 2614 shrext_cmds=.dll 2615 need_version=no 2616 need_lib_prefix=no 2617 2618 case $GCC,$cc_basename in 2619 yes,*) 2620 # gcc 2621 library_names_spec='$libname.dll.a' 2622 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2623 postinstall_cmds='base_file=`basename \$file`~ 2624 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2625 dldir=$destdir/`dirname \$dlpath`~ 2626 test -d \$dldir || mkdir -p \$dldir~ 2627 $install_prog $dir/$dlname \$dldir/$dlname~ 2628 chmod a+x \$dldir/$dlname~ 2629 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 2630 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 2631 fi' 2632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2633 dlpath=$dir/\$dldll~ 2634 $RM \$dlpath' 2635 shlibpath_overrides_runpath=yes 2636 2637 case $host_os in 2638 cygwin*) 2639 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 2640 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2641 m4_if([$1], [],[ 2642 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) 2643 ;; 2644 mingw* | cegcc*) 2645 # MinGW DLLs use traditional 'lib' prefix 2646 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2647 ;; 2648 pw32*) 2649 # pw32 DLLs use 'pw' prefix rather than 'lib' 2650 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2651 ;; 2652 esac 2653 dynamic_linker='Win32 ld.exe' 2654 ;; 2655 2656 *,cl* | *,icl*) 2657 # Native MSVC or ICC 2658 libname_spec='$name' 2659 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' 2660 library_names_spec='$libname.dll.lib' 2661 2662 case $build_os in 2663 mingw*) 2664 sys_lib_search_path_spec= 2665 lt_save_ifs=$IFS 2666 IFS=';' 2667 for lt_path in $LIB 2668 do 2669 IFS=$lt_save_ifs 2670 # Let DOS variable expansion print the short 8.3 style file name. 2671 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 2672 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 2673 done 2674 IFS=$lt_save_ifs 2675 # Convert to MSYS style. 2676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` 2677 ;; 2678 cygwin*) 2679 # Convert to unix form, then to dos form, then back to unix form 2680 # but this time dos style (no spaces!) so that the unix form looks 2681 # like /cygdrive/c/PROGRA~1:/cygdr... 2682 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 2683 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 2684 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2685 ;; 2686 *) 2687 sys_lib_search_path_spec=$LIB 2688 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then 2689 # It is most probably a Windows format PATH. 2690 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 2691 else 2692 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2693 fi 2694 # FIXME: find the short name or the path components, as spaces are 2695 # common. (e.g. "Program Files" -> "PROGRA~1") 2696 ;; 2697 esac 2698 2699 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2700 postinstall_cmds='base_file=`basename \$file`~ 2701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 2702 dldir=$destdir/`dirname \$dlpath`~ 2703 test -d \$dldir || mkdir -p \$dldir~ 2704 $install_prog $dir/$dlname \$dldir/$dlname' 2705 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2706 dlpath=$dir/\$dldll~ 2707 $RM \$dlpath' 2708 shlibpath_overrides_runpath=yes 2709 dynamic_linker='Win32 link.exe' 2710 ;; 2711 2712 *) 2713 # Assume MSVC and ICC wrapper 2714 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' 2715 dynamic_linker='Win32 ld.exe' 2716 ;; 2717 esac 2718 # FIXME: first we should search . and the directory the executable is in 2719 shlibpath_var=PATH 2720 ;; 2721 2722 darwin* | rhapsody*) 2723 dynamic_linker="$host_os dyld" 2724 version_type=darwin 2725 need_lib_prefix=no 2726 need_version=no 2727 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 2728 soname_spec='$libname$release$major$shared_ext' 2729 shlibpath_overrides_runpath=yes 2730 shlibpath_var=DYLD_LIBRARY_PATH 2731 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 2732 m4_if([$1], [],[ 2733 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 2734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 2735 ;; 2736 2737 dgux*) 2738 version_type=linux # correct to gnu/linux during the next big refactor 2739 need_lib_prefix=no 2740 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 2744 ;; 2745 2746 freebsd* | dragonfly* | midnightbsd*) 2747 # DragonFly does not have aout. When/if they implement a new 2748 # versioning mechanism, adjust this. 2749 if test -x /usr/bin/objformat; then 2750 objformat=`/usr/bin/objformat` 2751 else 2752 case $host_os in 2753 freebsd[[23]].*) objformat=aout ;; 2754 *) objformat=elf ;; 2755 esac 2756 fi 2757 version_type=freebsd-$objformat 2758 case $version_type in 2759 freebsd-elf*) 2760 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2761 soname_spec='$libname$release$shared_ext$major' 2762 need_version=no 2763 need_lib_prefix=no 2764 ;; 2765 freebsd-*) 2766 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2767 need_version=yes 2768 ;; 2769 esac 2770 shlibpath_var=LD_LIBRARY_PATH 2771 case $host_os in 2772 freebsd2.*) 2773 shlibpath_overrides_runpath=yes 2774 ;; 2775 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 2776 shlibpath_overrides_runpath=yes 2777 hardcode_into_libs=yes 2778 ;; 2779 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 2780 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 2781 shlibpath_overrides_runpath=no 2782 hardcode_into_libs=yes 2783 ;; 2784 *) # from 4.6 on, and DragonFly 2785 shlibpath_overrides_runpath=yes 2786 hardcode_into_libs=yes 2787 ;; 2788 esac 2789 ;; 2790 2791 haiku*) 2792 version_type=linux # correct to gnu/linux during the next big refactor 2793 need_lib_prefix=no 2794 need_version=no 2795 dynamic_linker="$host_os runtime_loader" 2796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2797 soname_spec='$libname$release$shared_ext$major' 2798 shlibpath_var=LIBRARY_PATH 2799 shlibpath_overrides_runpath=no 2800 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 2801 hardcode_into_libs=yes 2802 ;; 2803 2804 hpux9* | hpux10* | hpux11*) 2805 # Give a soname corresponding to the major version so that dld.sl refuses to 2806 # link against other versions. 2807 version_type=sunos 2808 need_lib_prefix=no 2809 need_version=no 2810 case $host_cpu in 2811 ia64*) 2812 shrext_cmds='.so' 2813 hardcode_into_libs=yes 2814 dynamic_linker="$host_os dld.so" 2815 shlibpath_var=LD_LIBRARY_PATH 2816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2818 soname_spec='$libname$release$shared_ext$major' 2819 if test 32 = "$HPUX_IA64_MODE"; then 2820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 2821 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 2822 else 2823 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2824 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 2825 fi 2826 ;; 2827 hppa*64*) 2828 shrext_cmds='.sl' 2829 hardcode_into_libs=yes 2830 dynamic_linker="$host_os dld.sl" 2831 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2832 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2834 soname_spec='$libname$release$shared_ext$major' 2835 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2836 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2837 ;; 2838 *) 2839 shrext_cmds='.sl' 2840 dynamic_linker="$host_os dld.sl" 2841 shlibpath_var=SHLIB_PATH 2842 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2844 soname_spec='$libname$release$shared_ext$major' 2845 ;; 2846 esac 2847 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 2848 postinstall_cmds='chmod 555 $lib' 2849 # or fails outright, so override atomically: 2850 install_override_mode=555 2851 ;; 2852 2853 interix[[3-9]]*) 2854 version_type=linux # correct to gnu/linux during the next big refactor 2855 need_lib_prefix=no 2856 need_version=no 2857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2858 soname_spec='$libname$release$shared_ext$major' 2859 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 2860 shlibpath_var=LD_LIBRARY_PATH 2861 shlibpath_overrides_runpath=no 2862 hardcode_into_libs=yes 2863 ;; 2864 2865 irix5* | irix6* | nonstopux*) 2866 case $host_os in 2867 nonstopux*) version_type=nonstopux ;; 2868 *) 2869 if test yes = "$lt_cv_prog_gnu_ld"; then 2870 version_type=linux # correct to gnu/linux during the next big refactor 2871 else 2872 version_type=irix 2873 fi ;; 2874 esac 2875 need_lib_prefix=no 2876 need_version=no 2877 soname_spec='$libname$release$shared_ext$major' 2878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 2879 case $host_os in 2880 irix5* | nonstopux*) 2881 libsuff= shlibsuff= 2882 ;; 2883 *) 2884 case $LD in # libtool.m4 will add one of these switches to LD 2885 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 2886 libsuff= shlibsuff= libmagic=32-bit;; 2887 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 2888 libsuff=32 shlibsuff=N32 libmagic=N32;; 2889 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 2890 libsuff=64 shlibsuff=64 libmagic=64-bit;; 2891 *) libsuff= shlibsuff= libmagic=never-match;; 2892 esac 2893 ;; 2894 esac 2895 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 2896 shlibpath_overrides_runpath=no 2897 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 2898 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 2899 hardcode_into_libs=yes 2900 ;; 2901 2902 # No shared lib support for Linux oldld, aout, or coff. 2903 linux*oldld* | linux*aout* | linux*coff*) 2904 dynamic_linker=no 2905 ;; 2906 2907 linux*android*) 2908 version_type=none # Android doesn't support versioned libraries. 2909 need_lib_prefix=no 2910 need_version=no 2911 library_names_spec='$libname$release$shared_ext' 2912 soname_spec='$libname$release$shared_ext' 2913 finish_cmds= 2914 shlibpath_var=LD_LIBRARY_PATH 2915 shlibpath_overrides_runpath=yes 2916 2917 # This implies no fast_install, which is unacceptable. 2918 # Some rework will be needed to allow for fast_install 2919 # before this can be enabled. 2920 hardcode_into_libs=yes 2921 2922 dynamic_linker='Android linker' 2923 # Don't embed -rpath directories since the linker doesn't support them. 2924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 2925 ;; 2926 2927 # This must be glibc/ELF. 2928 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 2929 version_type=linux # correct to gnu/linux during the next big refactor 2930 need_lib_prefix=no 2931 need_version=no 2932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2933 soname_spec='$libname$release$shared_ext$major' 2934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 2935 shlibpath_var=LD_LIBRARY_PATH 2936 shlibpath_overrides_runpath=no 2937 2938 # Some binutils ld are patched to set DT_RUNPATH 2939 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], 2940 [lt_cv_shlibpath_overrides_runpath=no 2941 save_LDFLAGS=$LDFLAGS 2942 save_libdir=$libdir 2943 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ 2944 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" 2945 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 2946 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], 2947 [lt_cv_shlibpath_overrides_runpath=yes])]) 2948 LDFLAGS=$save_LDFLAGS 2949 libdir=$save_libdir 2950 ]) 2951 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 2952 2953 # This implies no fast_install, which is unacceptable. 2954 # Some rework will be needed to allow for fast_install 2955 # before this can be enabled. 2956 hardcode_into_libs=yes 2957 2958 # Add ABI-specific directories to the system library path. 2959 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 2960 2961 # Ideally, we could use ldconfig to report *all* directores which are 2962 # searched for libraries, however this is still not possible. Aside from not 2963 # being certain /sbin/ldconfig is available, command 2964 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 2965 # even though it is searched at run-time. Try to do the best guess by 2966 # appending ld.so.conf contents (and includes) to the search path. 2967 if test -f /etc/ld.so.conf; then 2968 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' ' '` 2969 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 2970 fi 2971 2972 # We used to test for /lib/ld.so.1 and disable shared libraries on 2973 # powerpc, because MkLinux only supported shared libraries with the 2974 # GNU dynamic linker. Since this was broken with cross compilers, 2975 # most powerpc-linux boxes support dynamic linking these days and 2976 # people can always --disable-shared, the test was removed, and we 2977 # assume the GNU/Linux dynamic linker is in use. 2978 dynamic_linker='GNU/Linux ld.so' 2979 ;; 2980 2981 netbsd*) 2982 version_type=sunos 2983 need_lib_prefix=no 2984 need_version=no 2985 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 2986 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 2987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2988 dynamic_linker='NetBSD (a.out) ld.so' 2989 else 2990 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 2991 soname_spec='$libname$release$shared_ext$major' 2992 dynamic_linker='NetBSD ld.elf_so' 2993 fi 2994 shlibpath_var=LD_LIBRARY_PATH 2995 shlibpath_overrides_runpath=yes 2996 hardcode_into_libs=yes 2997 ;; 2998 2999 newsos6) 3000 version_type=linux # correct to gnu/linux during the next big refactor 3001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3002 shlibpath_var=LD_LIBRARY_PATH 3003 shlibpath_overrides_runpath=yes 3004 ;; 3005 3006 *nto* | *qnx*) 3007 version_type=qnx 3008 need_lib_prefix=no 3009 need_version=no 3010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3011 soname_spec='$libname$release$shared_ext$major' 3012 shlibpath_var=LD_LIBRARY_PATH 3013 shlibpath_overrides_runpath=no 3014 hardcode_into_libs=yes 3015 dynamic_linker='ldqnx.so' 3016 ;; 3017 3018 openbsd* | bitrig*) 3019 version_type=sunos 3020 sys_lib_dlsearch_path_spec=/usr/lib 3021 need_lib_prefix=no 3022 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3023 need_version=no 3024 else 3025 need_version=yes 3026 fi 3027 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 3029 shlibpath_var=LD_LIBRARY_PATH 3030 shlibpath_overrides_runpath=yes 3031 ;; 3032 3033 os2*) 3034 libname_spec='$name' 3035 version_type=windows 3036 shrext_cmds=.dll 3037 need_version=no 3038 need_lib_prefix=no 3039 # OS/2 can only load a DLL with a base name of 8 characters or less. 3040 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 3041 v=$($ECHO $release$versuffix | tr -d .-); 3042 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 3043 $ECHO $n$v`$shared_ext' 3044 library_names_spec='${libname}_dll.$libext' 3045 dynamic_linker='OS/2 ld.exe' 3046 shlibpath_var=BEGINLIBPATH 3047 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 3048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3049 postinstall_cmds='base_file=`basename \$file`~ 3050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 3051 dldir=$destdir/`dirname \$dlpath`~ 3052 test -d \$dldir || mkdir -p \$dldir~ 3053 $install_prog $dir/$dlname \$dldir/$dlname~ 3054 chmod a+x \$dldir/$dlname~ 3055 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 3056 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 3057 fi' 3058 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 3059 dlpath=$dir/\$dldll~ 3060 $RM \$dlpath' 3061 ;; 3062 3063 osf3* | osf4* | osf5*) 3064 version_type=osf 3065 need_lib_prefix=no 3066 need_version=no 3067 soname_spec='$libname$release$shared_ext$major' 3068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3069 shlibpath_var=LD_LIBRARY_PATH 3070 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 3071 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 3072 ;; 3073 3074 rdos*) 3075 dynamic_linker=no 3076 ;; 3077 3078 solaris*) 3079 version_type=linux # correct to gnu/linux during the next big refactor 3080 need_lib_prefix=no 3081 need_version=no 3082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3083 soname_spec='$libname$release$shared_ext$major' 3084 shlibpath_var=LD_LIBRARY_PATH 3085 shlibpath_overrides_runpath=yes 3086 hardcode_into_libs=yes 3087 # ldd complains unless libraries are executable 3088 postinstall_cmds='chmod +x $lib' 3089 ;; 3090 3091 sunos4*) 3092 version_type=sunos 3093 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 3094 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 3095 shlibpath_var=LD_LIBRARY_PATH 3096 shlibpath_overrides_runpath=yes 3097 if test yes = "$with_gnu_ld"; then 3098 need_lib_prefix=no 3099 fi 3100 need_version=yes 3101 ;; 3102 3103 sysv4 | sysv4.3*) 3104 version_type=linux # correct to gnu/linux during the next big refactor 3105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3106 soname_spec='$libname$release$shared_ext$major' 3107 shlibpath_var=LD_LIBRARY_PATH 3108 case $host_vendor in 3109 sni) 3110 shlibpath_overrides_runpath=no 3111 need_lib_prefix=no 3112 runpath_var=LD_RUN_PATH 3113 ;; 3114 siemens) 3115 need_lib_prefix=no 3116 ;; 3117 motorola) 3118 need_lib_prefix=no 3119 need_version=no 3120 shlibpath_overrides_runpath=no 3121 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 3122 ;; 3123 esac 3124 ;; 3125 3126 sysv4*MP*) 3127 if test -d /usr/nec; then 3128 version_type=linux # correct to gnu/linux during the next big refactor 3129 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 3130 soname_spec='$libname$shared_ext.$major' 3131 shlibpath_var=LD_LIBRARY_PATH 3132 fi 3133 ;; 3134 3135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3136 version_type=sco 3137 need_lib_prefix=no 3138 need_version=no 3139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 3140 soname_spec='$libname$release$shared_ext$major' 3141 shlibpath_var=LD_LIBRARY_PATH 3142 shlibpath_overrides_runpath=yes 3143 hardcode_into_libs=yes 3144 if test yes = "$with_gnu_ld"; then 3145 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 3146 else 3147 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 3148 case $host_os in 3149 sco3.2v5*) 3150 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 3151 ;; 3152 esac 3153 fi 3154 sys_lib_dlsearch_path_spec='/usr/lib' 3155 ;; 3156 3157 tpf*) 3158 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 3159 version_type=linux # correct to gnu/linux during the next big refactor 3160 need_lib_prefix=no 3161 need_version=no 3162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3163 shlibpath_var=LD_LIBRARY_PATH 3164 shlibpath_overrides_runpath=no 3165 hardcode_into_libs=yes 3166 ;; 3167 3168 uts4*) 3169 version_type=linux # correct to gnu/linux during the next big refactor 3170 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 3171 soname_spec='$libname$release$shared_ext$major' 3172 shlibpath_var=LD_LIBRARY_PATH 3173 ;; 3174 3175 *) 3176 dynamic_linker=no 3177 ;; 3178 esac 3179 AC_MSG_RESULT([$dynamic_linker]) 3180 test no = "$dynamic_linker" && can_build_shared=no 3181 3182 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 3183 if test yes = "$GCC"; then 3184 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 3185 fi 3186 3187 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 3188 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 3189 fi 3190 3191 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 3192 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 3193 fi 3194 3195 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 3196 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 3197 3198 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 3199 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 3200 3201 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 3202 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 3203 3204 _LT_DECL([], [variables_saved_for_relink], [1], 3205 [Variables whose values should be saved in libtool wrapper scripts and 3206 restored at link time]) 3207 _LT_DECL([], [need_lib_prefix], [0], 3208 [Do we need the "lib" prefix for modules?]) 3209 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) 3210 _LT_DECL([], [version_type], [0], [Library versioning type]) 3211 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) 3212 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) 3213 _LT_DECL([], [shlibpath_overrides_runpath], [0], 3214 [Is shlibpath searched before the hard-coded library search path?]) 3215 _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) 3216 _LT_DECL([], [library_names_spec], [1], 3217 [[List of archive names. First name is the real one, the rest are links. 3218 The last name is the one that the linker finds with -lNAME]]) 3219 _LT_DECL([], [soname_spec], [1], 3220 [[The coded name of the library, if different from the real name]]) 3221 _LT_DECL([], [install_override_mode], [1], 3222 [Permission mode override for installation of shared libraries]) 3223 _LT_DECL([], [postinstall_cmds], [2], 3224 [Command to use after installation of a shared archive]) 3225 _LT_DECL([], [postuninstall_cmds], [2], 3226 [Command to use after uninstallation of a shared archive]) 3227 _LT_DECL([], [finish_cmds], [2], 3228 [Commands used to finish a libtool library installation in a directory]) 3229 _LT_DECL([], [finish_eval], [1], 3230 [[As "finish_cmds", except a single script fragment to be evaled but 3231 not shown]]) 3232 _LT_DECL([], [hardcode_into_libs], [0], 3233 [Whether we should hardcode library paths into libraries]) 3234 _LT_DECL([], [sys_lib_search_path_spec], [2], 3235 [Compile-time system search path for libraries]) 3236 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], 3237 [Detected run-time system search path for libraries]) 3238 _LT_DECL([], [configure_time_lt_sys_library_path], [2], 3239 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) 3240 ])# _LT_SYS_DYNAMIC_LINKER 3241 3242 3243 # _LT_PATH_TOOL_PREFIX(TOOL) 3244 # -------------------------- 3245 # find a file program that can recognize shared library 3246 AC_DEFUN([_LT_PATH_TOOL_PREFIX], 3247 [m4_require([_LT_DECL_EGREP])dnl 3248 AC_MSG_CHECKING([for $1]) 3249 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 3250 [case $MAGIC_CMD in 3251 [[\\/*] | ?:[\\/]*]) 3252 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 3253 ;; 3254 *) 3255 lt_save_MAGIC_CMD=$MAGIC_CMD 3256 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3257 dnl $ac_dummy forces splitting on constant user-supplied paths. 3258 dnl POSIX.2 word splitting is done only on the output of word expansions, 3259 dnl not every word. This closes a longstanding sh security hole. 3260 ac_dummy="m4_if([$2], , $PATH, [$2])" 3261 for ac_dir in $ac_dummy; do 3262 IFS=$lt_save_ifs 3263 test -z "$ac_dir" && ac_dir=. 3264 if test -f "$ac_dir/$1"; then 3265 lt_cv_path_MAGIC_CMD=$ac_dir/"$1" 3266 if test -n "$file_magic_test_file"; then 3267 case $deplibs_check_method in 3268 "file_magic "*) 3269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 3270 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 3272 $EGREP "$file_magic_regex" > /dev/null; then 3273 : 3274 else 3275 cat <<_LT_EOF 1>&2 3276 3277 *** Warning: the command libtool uses to detect shared libraries, 3278 *** $file_magic_cmd, produces output that libtool cannot recognize. 3279 *** The result is that libtool may fail to recognize shared libraries 3280 *** as such. This will affect the creation of libtool libraries that 3281 *** depend on shared libraries, but programs linked with such libtool 3282 *** libraries will work regardless of this problem. Nevertheless, you 3283 *** may want to report the problem to your system manager and/or to 3284 *** bug-libtool@gnu.org 3285 3286 _LT_EOF 3287 fi ;; 3288 esac 3289 fi 3290 break 3291 fi 3292 done 3293 IFS=$lt_save_ifs 3294 MAGIC_CMD=$lt_save_MAGIC_CMD 3295 ;; 3296 esac]) 3297 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 3298 if test -n "$MAGIC_CMD"; then 3299 AC_MSG_RESULT($MAGIC_CMD) 3300 else 3301 AC_MSG_RESULT(no) 3302 fi 3303 _LT_DECL([], [MAGIC_CMD], [0], 3304 [Used to examine libraries when file_magic_cmd begins with "file"])dnl 3305 ])# _LT_PATH_TOOL_PREFIX 3306 3307 # Old name: 3308 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) 3309 dnl aclocal-1.4 backwards compatibility: 3310 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) 3311 3312 3313 # _LT_PATH_MAGIC 3314 # -------------- 3315 # find a file program that can recognize a shared library 3316 m4_defun([_LT_PATH_MAGIC], 3317 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 3318 if test -z "$lt_cv_path_MAGIC_CMD"; then 3319 if test -n "$ac_tool_prefix"; then 3320 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 3321 else 3322 MAGIC_CMD=: 3323 fi 3324 fi 3325 ])# _LT_PATH_MAGIC 3326 3327 3328 # LT_PATH_LD 3329 # ---------- 3330 # find the pathname to the GNU or non-GNU linker 3331 AC_DEFUN([LT_PATH_LD], 3332 [AC_REQUIRE([AC_PROG_CC])dnl 3333 AC_REQUIRE([AC_CANONICAL_HOST])dnl 3334 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 3335 m4_require([_LT_DECL_SED])dnl 3336 m4_require([_LT_DECL_EGREP])dnl 3337 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl 3338 3339 AC_ARG_WITH([gnu-ld], 3340 [AS_HELP_STRING([--with-gnu-ld], 3341 [assume the C compiler uses GNU ld @<:@default=no@:>@])], 3342 [test no = "$withval" || with_gnu_ld=yes], 3343 [with_gnu_ld=no])dnl 3344 3345 ac_prog=ld 3346 if test yes = "$GCC"; then 3347 # Check if gcc -print-prog-name=ld gives a path. 3348 AC_MSG_CHECKING([for ld used by $CC]) 3349 case $host in 3350 *-*-mingw*) 3351 # gcc leaves a trailing carriage return, which upsets mingw 3352 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3353 *) 3354 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3355 esac 3356 case $ac_prog in 3357 # Accept absolute paths. 3358 [[\\/]]* | ?:[[\\/]]*) 3359 re_direlt='/[[^/]][[^/]]*/\.\./' 3360 # Canonicalize the pathname of ld 3361 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3362 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3363 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3364 done 3365 test -z "$LD" && LD=$ac_prog 3366 ;; 3367 "") 3368 # If it fails, then pretend we aren't using GCC. 3369 ac_prog=ld 3370 ;; 3371 *) 3372 # If it is relative, then search for the first ld in PATH. 3373 with_gnu_ld=unknown 3374 ;; 3375 esac 3376 elif test yes = "$with_gnu_ld"; then 3377 AC_MSG_CHECKING([for GNU ld]) 3378 else 3379 AC_MSG_CHECKING([for non-GNU ld]) 3380 fi 3381 AC_CACHE_VAL(lt_cv_path_LD, 3382 [if test -z "$LD"; then 3383 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3384 for ac_dir in $PATH; do 3385 IFS=$lt_save_ifs 3386 test -z "$ac_dir" && ac_dir=. 3387 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3388 lt_cv_path_LD=$ac_dir/$ac_prog 3389 # Check to see if the program is GNU ld. I'd rather use --version, 3390 # but apparently some variants of GNU ld only accept -v. 3391 # Break only if it was the GNU/non-GNU ld that we prefer. 3392 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3393 *GNU* | *'with BFD'*) 3394 test no != "$with_gnu_ld" && break 3395 ;; 3396 *) 3397 test yes != "$with_gnu_ld" && break 3398 ;; 3399 esac 3400 fi 3401 done 3402 IFS=$lt_save_ifs 3403 else 3404 lt_cv_path_LD=$LD # Let the user override the test with a path. 3405 fi]) 3406 LD=$lt_cv_path_LD 3407 if test -n "$LD"; then 3408 AC_MSG_RESULT($LD) 3409 else 3410 AC_MSG_RESULT(no) 3411 fi 3412 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 3413 _LT_PATH_LD_GNU 3414 AC_SUBST([LD]) 3415 3416 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) 3417 ])# LT_PATH_LD 3418 3419 # Old names: 3420 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) 3421 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) 3422 dnl aclocal-1.4 backwards compatibility: 3423 dnl AC_DEFUN([AM_PROG_LD], []) 3424 dnl AC_DEFUN([AC_PROG_LD], []) 3425 3426 3427 # _LT_PATH_LD_GNU 3428 #- -------------- 3429 m4_defun([_LT_PATH_LD_GNU], 3430 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3431 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 3432 case `$LD -v 2>&1 </dev/null` in 3433 *GNU* | *'with BFD'*) 3434 lt_cv_prog_gnu_ld=yes 3435 ;; 3436 *) 3437 lt_cv_prog_gnu_ld=no 3438 ;; 3439 esac]) 3440 with_gnu_ld=$lt_cv_prog_gnu_ld 3441 ])# _LT_PATH_LD_GNU 3442 3443 3444 # _LT_CMD_RELOAD 3445 # -------------- 3446 # find reload flag for linker 3447 # -- PORTME Some linkers may need a different reload flag. 3448 m4_defun([_LT_CMD_RELOAD], 3449 [AC_CACHE_CHECK([for $LD option to reload object files], 3450 lt_cv_ld_reload_flag, 3451 [lt_cv_ld_reload_flag='-r']) 3452 reload_flag=$lt_cv_ld_reload_flag 3453 case $reload_flag in 3454 "" | " "*) ;; 3455 *) reload_flag=" $reload_flag" ;; 3456 esac 3457 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3458 case $host_os in 3459 cygwin* | mingw* | pw32* | cegcc*) 3460 if test yes != "$GCC"; then 3461 reload_cmds=false 3462 fi 3463 ;; 3464 darwin*) 3465 if test yes = "$GCC"; then 3466 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 3467 else 3468 reload_cmds='$LD$reload_flag -o $output$reload_objs' 3469 fi 3470 ;; 3471 esac 3472 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl 3473 _LT_TAGDECL([], [reload_cmds], [2])dnl 3474 ])# _LT_CMD_RELOAD 3475 3476 3477 # _LT_PATH_DD 3478 # ----------- 3479 # find a working dd 3480 m4_defun([_LT_PATH_DD], 3481 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD], 3482 [printf 0123456789abcdef0123456789abcdef >conftest.i 3483 cat conftest.i conftest.i >conftest2.i 3484 : ${lt_DD:=$DD} 3485 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], 3486 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3487 cmp -s conftest.i conftest.out \ 3488 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 3489 fi]) 3490 rm -f conftest.i conftest2.i conftest.out]) 3491 ])# _LT_PATH_DD 3492 3493 3494 # _LT_CMD_TRUNCATE 3495 # ---------------- 3496 # find command to truncate a binary pipe 3497 m4_defun([_LT_CMD_TRUNCATE], 3498 [m4_require([_LT_PATH_DD]) 3499 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], 3500 [printf 0123456789abcdef0123456789abcdef >conftest.i 3501 cat conftest.i conftest.i >conftest2.i 3502 lt_cv_truncate_bin= 3503 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 3504 cmp -s conftest.i conftest.out \ 3505 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 3506 fi 3507 rm -f conftest.i conftest2.i conftest.out 3508 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) 3509 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], 3510 [Command to truncate a binary pipe]) 3511 ])# _LT_CMD_TRUNCATE 3512 3513 3514 # _LT_CHECK_MAGIC_METHOD 3515 # ---------------------- 3516 # how to check for library dependencies 3517 # -- PORTME fill in with the dynamic library characteristics 3518 m4_defun([_LT_CHECK_MAGIC_METHOD], 3519 [m4_require([_LT_DECL_EGREP]) 3520 m4_require([_LT_DECL_OBJDUMP]) 3521 AC_CACHE_CHECK([how to recognize dependent libraries], 3522 lt_cv_deplibs_check_method, 3523 [lt_cv_file_magic_cmd='$MAGIC_CMD' 3524 lt_cv_file_magic_test_file= 3525 lt_cv_deplibs_check_method='unknown' 3526 # Need to set the preceding variable on all platforms that support 3527 # interlibrary dependencies. 3528 # 'none' -- dependencies not supported. 3529 # 'unknown' -- same as none, but documents that we really don't know. 3530 # 'pass_all' -- all dependencies passed with no checks. 3531 # 'test_compile' -- check by making test program. 3532 # 'file_magic [[regex]]' -- check by looking for files in library path 3533 # that responds to the $file_magic_cmd with a given extended regex. 3534 # If you have 'file' or equivalent on your system and you're not sure 3535 # whether 'pass_all' will *always* work, you probably want this one. 3536 3537 case $host_os in 3538 aix[[4-9]]*) 3539 lt_cv_deplibs_check_method=pass_all 3540 ;; 3541 3542 beos*) 3543 lt_cv_deplibs_check_method=pass_all 3544 ;; 3545 3546 bsdi[[45]]*) 3547 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3548 lt_cv_file_magic_cmd='$FILECMD -L' 3549 lt_cv_file_magic_test_file=/shlib/libc.so 3550 ;; 3551 3552 cygwin*) 3553 # func_win32_libid is a shell function defined in ltmain.sh 3554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3555 lt_cv_file_magic_cmd='func_win32_libid' 3556 ;; 3557 3558 mingw* | pw32*) 3559 # Base MSYS/MinGW do not provide the 'file' command needed by 3560 # func_win32_libid shell function, so use a weaker test based on 'objdump', 3561 # unless we find 'file', for example because we are cross-compiling. 3562 if ( file / ) >/dev/null 2>&1; then 3563 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3564 lt_cv_file_magic_cmd='func_win32_libid' 3565 else 3566 # Keep this pattern in sync with the one in func_win32_libid. 3567 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 3568 lt_cv_file_magic_cmd='$OBJDUMP -f' 3569 fi 3570 ;; 3571 3572 cegcc*) 3573 # use the weaker test based on 'objdump'. See mingw*. 3574 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 3575 lt_cv_file_magic_cmd='$OBJDUMP -f' 3576 ;; 3577 3578 darwin* | rhapsody*) 3579 lt_cv_deplibs_check_method=pass_all 3580 ;; 3581 3582 freebsd* | dragonfly* | midnightbsd*) 3583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3584 case $host_cpu in 3585 i*86 ) 3586 # Not sure whether the presence of OpenBSD here was a mistake. 3587 # Let's accept both of them until this is cleared up. 3588 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 3589 lt_cv_file_magic_cmd=$FILECMD 3590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3591 ;; 3592 esac 3593 else 3594 lt_cv_deplibs_check_method=pass_all 3595 fi 3596 ;; 3597 3598 haiku*) 3599 lt_cv_deplibs_check_method=pass_all 3600 ;; 3601 3602 hpux10.20* | hpux11*) 3603 lt_cv_file_magic_cmd=$FILECMD 3604 case $host_cpu in 3605 ia64*) 3606 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3607 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3608 ;; 3609 hppa*64*) 3610 [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]'] 3611 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3612 ;; 3613 *) 3614 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' 3615 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3616 ;; 3617 esac 3618 ;; 3619 3620 interix[[3-9]]*) 3621 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 3622 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 3623 ;; 3624 3625 irix5* | irix6* | nonstopux*) 3626 case $LD in 3627 *-32|*"-32 ") libmagic=32-bit;; 3628 *-n32|*"-n32 ") libmagic=N32;; 3629 *-64|*"-64 ") libmagic=64-bit;; 3630 *) libmagic=never-match;; 3631 esac 3632 lt_cv_deplibs_check_method=pass_all 3633 ;; 3634 3635 # This must be glibc/ELF. 3636 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 3637 lt_cv_deplibs_check_method=pass_all 3638 ;; 3639 3640 netbsd*) 3641 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 3642 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3643 else 3644 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3645 fi 3646 ;; 3647 3648 newos6*) 3649 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 3650 lt_cv_file_magic_cmd=$FILECMD 3651 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3652 ;; 3653 3654 *nto* | *qnx*) 3655 lt_cv_deplibs_check_method=pass_all 3656 ;; 3657 3658 openbsd* | bitrig*) 3659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 3660 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 3661 else 3662 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3663 fi 3664 ;; 3665 3666 osf3* | osf4* | osf5*) 3667 lt_cv_deplibs_check_method=pass_all 3668 ;; 3669 3670 rdos*) 3671 lt_cv_deplibs_check_method=pass_all 3672 ;; 3673 3674 solaris*) 3675 lt_cv_deplibs_check_method=pass_all 3676 ;; 3677 3678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 3679 lt_cv_deplibs_check_method=pass_all 3680 ;; 3681 3682 sysv4 | sysv4.3*) 3683 case $host_vendor in 3684 motorola) 3685 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]]' 3686 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3687 ;; 3688 ncr) 3689 lt_cv_deplibs_check_method=pass_all 3690 ;; 3691 sequent) 3692 lt_cv_file_magic_cmd='/bin/file' 3693 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 3694 ;; 3695 sni) 3696 lt_cv_file_magic_cmd='/bin/file' 3697 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 3698 lt_cv_file_magic_test_file=/lib/libc.so 3699 ;; 3700 siemens) 3701 lt_cv_deplibs_check_method=pass_all 3702 ;; 3703 pc) 3704 lt_cv_deplibs_check_method=pass_all 3705 ;; 3706 esac 3707 ;; 3708 3709 tpf*) 3710 lt_cv_deplibs_check_method=pass_all 3711 ;; 3712 os2*) 3713 lt_cv_deplibs_check_method=pass_all 3714 ;; 3715 esac 3716 ]) 3717 3718 file_magic_glob= 3719 want_nocaseglob=no 3720 if test "$build" = "$host"; then 3721 case $host_os in 3722 mingw* | pw32*) 3723 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 3724 want_nocaseglob=yes 3725 else 3726 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` 3727 fi 3728 ;; 3729 esac 3730 fi 3731 3732 file_magic_cmd=$lt_cv_file_magic_cmd 3733 deplibs_check_method=$lt_cv_deplibs_check_method 3734 test -z "$deplibs_check_method" && deplibs_check_method=unknown 3735 3736 _LT_DECL([], [deplibs_check_method], [1], 3737 [Method to check whether dependent libraries are shared objects]) 3738 _LT_DECL([], [file_magic_cmd], [1], 3739 [Command to use when deplibs_check_method = "file_magic"]) 3740 _LT_DECL([], [file_magic_glob], [1], 3741 [How to find potential files when deplibs_check_method = "file_magic"]) 3742 _LT_DECL([], [want_nocaseglob], [1], 3743 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) 3744 ])# _LT_CHECK_MAGIC_METHOD 3745 3746 3747 # LT_PATH_NM 3748 # ---------- 3749 # find the pathname to a BSD- or MS-compatible name lister 3750 AC_DEFUN([LT_PATH_NM], 3751 [AC_REQUIRE([AC_PROG_CC])dnl 3752 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, 3753 [if test -n "$NM"; then 3754 # Let the user override the test. 3755 lt_cv_path_NM=$NM 3756 else 3757 lt_nm_to_check=${ac_tool_prefix}nm 3758 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3759 lt_nm_to_check="$lt_nm_to_check nm" 3760 fi 3761 for lt_tmp_nm in $lt_nm_to_check; do 3762 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3763 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3764 IFS=$lt_save_ifs 3765 test -z "$ac_dir" && ac_dir=. 3766 tmp_nm=$ac_dir/$lt_tmp_nm 3767 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3768 # Check to see if the nm accepts a BSD-compat flag. 3769 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3770 # nm: unknown option "B" ignored 3771 # Tru64's nm complains that /dev/null is an invalid object file 3772 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3773 case $build_os in 3774 mingw*) lt_bad_file=conftest.nm/nofile ;; 3775 *) lt_bad_file=/dev/null ;; 3776 esac 3777 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in 3778 *$lt_bad_file* | *'Invalid file or object type'*) 3779 lt_cv_path_NM="$tmp_nm -B" 3780 break 2 3781 ;; 3782 *) 3783 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in 3784 */dev/null*) 3785 lt_cv_path_NM="$tmp_nm -p" 3786 break 2 3787 ;; 3788 *) 3789 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3790 continue # so that we can try to find one that supports BSD flags 3791 ;; 3792 esac 3793 ;; 3794 esac 3795 fi 3796 done 3797 IFS=$lt_save_ifs 3798 done 3799 : ${lt_cv_path_NM=no} 3800 fi]) 3801 if test no != "$lt_cv_path_NM"; then 3802 NM=$lt_cv_path_NM 3803 else 3804 # Didn't find any BSD compatible name lister, look for dumpbin. 3805 if test -n "$DUMPBIN"; then : 3806 # Let the user override the test. 3807 else 3808 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) 3809 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in 3810 *COFF*) 3811 DUMPBIN="$DUMPBIN -symbols -headers" 3812 ;; 3813 *) 3814 DUMPBIN=: 3815 ;; 3816 esac 3817 fi 3818 AC_SUBST([DUMPBIN]) 3819 if test : != "$DUMPBIN"; then 3820 NM=$DUMPBIN 3821 fi 3822 fi 3823 test -z "$NM" && NM=nm 3824 AC_SUBST([NM]) 3825 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl 3826 3827 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], 3828 [lt_cv_nm_interface="BSD nm" 3829 echo "int some_variable = 0;" > conftest.$ac_ext 3830 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) 3831 (eval "$ac_compile" 2>conftest.err) 3832 cat conftest.err >&AS_MESSAGE_LOG_FD 3833 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) 3834 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 3835 cat conftest.err >&AS_MESSAGE_LOG_FD 3836 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) 3837 cat conftest.out >&AS_MESSAGE_LOG_FD 3838 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 3839 lt_cv_nm_interface="MS dumpbin" 3840 fi 3841 rm -f conftest*]) 3842 ])# LT_PATH_NM 3843 3844 # Old names: 3845 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) 3846 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) 3847 dnl aclocal-1.4 backwards compatibility: 3848 dnl AC_DEFUN([AM_PROG_NM], []) 3849 dnl AC_DEFUN([AC_PROG_NM], []) 3850 3851 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3852 # -------------------------------- 3853 # how to determine the name of the shared library 3854 # associated with a specific link library. 3855 # -- PORTME fill in with the dynamic library characteristics 3856 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], 3857 [m4_require([_LT_DECL_EGREP]) 3858 m4_require([_LT_DECL_OBJDUMP]) 3859 m4_require([_LT_DECL_DLLTOOL]) 3860 AC_CACHE_CHECK([how to associate runtime and link libraries], 3861 lt_cv_sharedlib_from_linklib_cmd, 3862 [lt_cv_sharedlib_from_linklib_cmd='unknown' 3863 3864 case $host_os in 3865 cygwin* | mingw* | pw32* | cegcc*) 3866 # two different shell functions defined in ltmain.sh; 3867 # decide which one to use based on capabilities of $DLLTOOL 3868 case `$DLLTOOL --help 2>&1` in 3869 *--identify-strict*) 3870 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 3871 ;; 3872 *) 3873 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 3874 ;; 3875 esac 3876 ;; 3877 *) 3878 # fallback: assume linklib IS sharedlib 3879 lt_cv_sharedlib_from_linklib_cmd=$ECHO 3880 ;; 3881 esac 3882 ]) 3883 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 3884 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 3885 3886 _LT_DECL([], [sharedlib_from_linklib_cmd], [1], 3887 [Command to associate shared and link libraries]) 3888 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB 3889 3890 3891 # _LT_PATH_MANIFEST_TOOL 3892 # ---------------------- 3893 # locate the manifest tool 3894 m4_defun([_LT_PATH_MANIFEST_TOOL], 3895 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) 3896 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 3897 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], 3898 [lt_cv_path_mainfest_tool=no 3899 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD 3900 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 3901 cat conftest.err >&AS_MESSAGE_LOG_FD 3902 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 3903 lt_cv_path_mainfest_tool=yes 3904 fi 3905 rm -f conftest*]) 3906 if test yes != "$lt_cv_path_mainfest_tool"; then 3907 MANIFEST_TOOL=: 3908 fi 3909 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl 3910 ])# _LT_PATH_MANIFEST_TOOL 3911 3912 3913 # _LT_DLL_DEF_P([FILE]) 3914 # --------------------- 3915 # True iff FILE is a Windows DLL '.def' file. 3916 # Keep in sync with func_dll_def_p in the libtool script 3917 AC_DEFUN([_LT_DLL_DEF_P], 3918 [dnl 3919 test DEF = "`$SED -n dnl 3920 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace 3921 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments 3922 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl 3923 -e q dnl Only consider the first "real" line 3924 $1`" dnl 3925 ])# _LT_DLL_DEF_P 3926 3927 3928 # LT_LIB_M 3929 # -------- 3930 # check for math library 3931 AC_DEFUN([LT_LIB_M], 3932 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3933 LIBM= 3934 case $host in 3935 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 3936 # These system don't have libm, or don't need it 3937 ;; 3938 *-ncr-sysv4.3*) 3939 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) 3940 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 3941 ;; 3942 *) 3943 AC_CHECK_LIB(m, cos, LIBM=-lm) 3944 ;; 3945 esac 3946 AC_SUBST([LIBM]) 3947 ])# LT_LIB_M 3948 3949 # Old name: 3950 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) 3951 dnl aclocal-1.4 backwards compatibility: 3952 dnl AC_DEFUN([AC_CHECK_LIBM], []) 3953 3954 3955 # _LT_COMPILER_NO_RTTI([TAGNAME]) 3956 # ------------------------------- 3957 m4_defun([_LT_COMPILER_NO_RTTI], 3958 [m4_require([_LT_TAG_COMPILER])dnl 3959 3960 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 3961 3962 if test yes = "$GCC"; then 3963 case $cc_basename in 3964 nvcc*) 3965 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; 3966 *) 3967 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; 3968 esac 3969 3970 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 3971 lt_cv_prog_compiler_rtti_exceptions, 3972 [-fno-rtti -fno-exceptions], [], 3973 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 3974 fi 3975 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], 3976 [Compiler flag to turn off builtin functions]) 3977 ])# _LT_COMPILER_NO_RTTI 3978 3979 3980 # _LT_CMD_GLOBAL_SYMBOLS 3981 # ---------------------- 3982 m4_defun([_LT_CMD_GLOBAL_SYMBOLS], 3983 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 3984 AC_REQUIRE([AC_PROG_CC])dnl 3985 AC_REQUIRE([AC_PROG_AWK])dnl 3986 AC_REQUIRE([LT_PATH_NM])dnl 3987 AC_REQUIRE([LT_PATH_LD])dnl 3988 m4_require([_LT_DECL_SED])dnl 3989 m4_require([_LT_DECL_EGREP])dnl 3990 m4_require([_LT_TAG_COMPILER])dnl 3991 3992 # Check for command to grab the raw symbol name followed by C symbol from nm. 3993 AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 3994 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 3995 [ 3996 # These are sane defaults that work on at least a few old systems. 3997 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 3998 3999 # Character class describing NM global symbol codes. 4000 symcode='[[BCDEGRST]]' 4001 4002 # Regexp to match symbols that can be accessed directly from C. 4003 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4004 4005 # Define system-specific variables. 4006 case $host_os in 4007 aix*) 4008 symcode='[[BCDT]]' 4009 ;; 4010 cygwin* | mingw* | pw32* | cegcc*) 4011 symcode='[[ABCDGISTW]]' 4012 ;; 4013 hpux*) 4014 if test ia64 = "$host_cpu"; then 4015 symcode='[[ABCDEGRST]]' 4016 fi 4017 ;; 4018 irix* | nonstopux*) 4019 symcode='[[BCDEGRST]]' 4020 ;; 4021 osf*) 4022 symcode='[[BCDEGQRST]]' 4023 ;; 4024 solaris*) 4025 symcode='[[BDRT]]' 4026 ;; 4027 sco3.2v5*) 4028 symcode='[[DT]]' 4029 ;; 4030 sysv4.2uw2*) 4031 symcode='[[DT]]' 4032 ;; 4033 sysv5* | sco5v6* | unixware* | OpenUNIX*) 4034 symcode='[[ABDT]]' 4035 ;; 4036 sysv4) 4037 symcode='[[DFNSTU]]' 4038 ;; 4039 esac 4040 4041 # If we're using GNU nm, then use its standard symbol codes. 4042 case `$NM -V 2>&1` in 4043 *GNU* | *'with BFD'*) 4044 symcode='[[ABCDGIRSTW]]' ;; 4045 esac 4046 4047 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4048 # Gets list of data symbols to import. 4049 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" 4050 # Adjust the below global symbol transforms to fixup imported variables. 4051 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 4052 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 4053 lt_c_name_lib_hook="\ 4054 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 4055 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 4056 else 4057 # Disable hooks by default. 4058 lt_cv_sys_global_symbol_to_import= 4059 lt_cdecl_hook= 4060 lt_c_name_hook= 4061 lt_c_name_lib_hook= 4062 fi 4063 4064 # Transform an extracted symbol line into a proper C declaration. 4065 # Some systems (esp. on ia64) link data and code symbols differently, 4066 # so use this general approach. 4067 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ 4068 $lt_cdecl_hook\ 4069 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 4070 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 4071 4072 # Transform an extracted symbol line into symbol name and symbol address 4073 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ 4074 $lt_c_name_hook\ 4075 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4076 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 4077 4078 # Transform an extracted symbol line into symbol name with lib prefix and 4079 # symbol address. 4080 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ 4081 $lt_c_name_lib_hook\ 4082 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 4083 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 4084 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 4085 4086 # Handle CRLF in mingw tool chain 4087 opt_cr= 4088 case $build_os in 4089 mingw*) 4090 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4091 ;; 4092 esac 4093 4094 # Try without a prefix underscore, then with it. 4095 for ac_symprfx in "" "_"; do 4096 4097 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4098 symxfrm="\\1 $ac_symprfx\\2 \\2" 4099 4100 # Write the raw and C identifiers. 4101 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4102 # Fake it for dumpbin and say T for any non-static function, 4103 # D for any global variable and I for any imported variable. 4104 # Also find C++ and __fastcall symbols from MSVC++ or ICC, 4105 # which start with @ or ?. 4106 lt_cv_sys_global_symbol_pipe="$AWK ['"\ 4107 " {last_section=section; section=\$ 3};"\ 4108 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 4109 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 4110 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 4111 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 4112 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 4113 " \$ 0!~/External *\|/{next};"\ 4114 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 4115 " {if(hide[section]) next};"\ 4116 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 4117 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 4118 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 4119 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 4120 " ' prfx=^$ac_symprfx]" 4121 else 4122 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4123 fi 4124 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" 4125 4126 # Check to see that the pipe works correctly. 4127 pipe_works=no 4128 4129 rm -f conftest* 4130 cat > conftest.$ac_ext <<_LT_EOF 4131 #ifdef __cplusplus 4132 extern "C" { 4133 #endif 4134 char nm_test_var; 4135 void nm_test_func(void); 4136 void nm_test_func(void){} 4137 #ifdef __cplusplus 4138 } 4139 #endif 4140 int main(){nm_test_var='a';nm_test_func();return(0);} 4141 _LT_EOF 4142 4143 if AC_TRY_EVAL(ac_compile); then 4144 # Now try to grab the symbols. 4145 nlist=conftest.nm 4146 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then 4147 # Try sorting and uniquifying the output. 4148 if sort "$nlist" | uniq > "$nlist"T; then 4149 mv -f "$nlist"T "$nlist" 4150 else 4151 rm -f "$nlist"T 4152 fi 4153 4154 # Make sure that we snagged all the symbols we need. 4155 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 4156 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 4157 cat <<_LT_EOF > conftest.$ac_ext 4158 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 4159 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 4160 /* DATA imports from DLLs on WIN32 can't be const, because runtime 4161 relocations are performed -- see ld's documentation on pseudo-relocs. */ 4162 # define LT@&t@_DLSYM_CONST 4163 #elif defined __osf__ 4164 /* This system does not cope well with relocations in const data. */ 4165 # define LT@&t@_DLSYM_CONST 4166 #else 4167 # define LT@&t@_DLSYM_CONST const 4168 #endif 4169 4170 #ifdef __cplusplus 4171 extern "C" { 4172 #endif 4173 4174 _LT_EOF 4175 # Now generate the symbol file. 4176 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 4177 4178 cat <<_LT_EOF >> conftest.$ac_ext 4179 4180 /* The mapping between symbol names and symbols. */ 4181 LT@&t@_DLSYM_CONST struct { 4182 const char *name; 4183 void *address; 4184 } 4185 lt__PROGRAM__LTX_preloaded_symbols[[]] = 4186 { 4187 { "@PROGRAM@", (void *) 0 }, 4188 _LT_EOF 4189 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 4190 cat <<\_LT_EOF >> conftest.$ac_ext 4191 {0, (void *) 0} 4192 }; 4193 4194 /* This works around a problem in FreeBSD linker */ 4195 #ifdef FREEBSD_WORKAROUND 4196 static const void *lt_preloaded_setup() { 4197 return lt__PROGRAM__LTX_preloaded_symbols; 4198 } 4199 #endif 4200 4201 #ifdef __cplusplus 4202 } 4203 #endif 4204 _LT_EOF 4205 # Now try linking the two files. 4206 mv conftest.$ac_objext conftstm.$ac_objext 4207 lt_globsym_save_LIBS=$LIBS 4208 lt_globsym_save_CFLAGS=$CFLAGS 4209 LIBS=conftstm.$ac_objext 4210 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4211 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then 4212 pipe_works=yes 4213 fi 4214 LIBS=$lt_globsym_save_LIBS 4215 CFLAGS=$lt_globsym_save_CFLAGS 4216 else 4217 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 4218 fi 4219 else 4220 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 4221 fi 4222 else 4223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 4224 fi 4225 else 4226 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 4227 cat conftest.$ac_ext >&5 4228 fi 4229 rm -rf conftest* conftst* 4230 4231 # Do not use the global_symbol_pipe unless it works. 4232 if test yes = "$pipe_works"; then 4233 break 4234 else 4235 lt_cv_sys_global_symbol_pipe= 4236 fi 4237 done 4238 ]) 4239 if test -z "$lt_cv_sys_global_symbol_pipe"; then 4240 lt_cv_sys_global_symbol_to_cdecl= 4241 fi 4242 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4243 AC_MSG_RESULT(failed) 4244 else 4245 AC_MSG_RESULT(ok) 4246 fi 4247 4248 # Response file support. 4249 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 4250 nm_file_list_spec='@' 4251 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then 4252 nm_file_list_spec='@' 4253 fi 4254 4255 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], 4256 [Take the output of nm and produce a listing of raw symbols and C names]) 4257 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], 4258 [Transform the output of nm in a proper C declaration]) 4259 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], 4260 [Transform the output of nm into a list of symbols to manually relocate]) 4261 _LT_DECL([global_symbol_to_c_name_address], 4262 [lt_cv_sys_global_symbol_to_c_name_address], [1], 4263 [Transform the output of nm in a C name address pair]) 4264 _LT_DECL([global_symbol_to_c_name_address_lib_prefix], 4265 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], 4266 [Transform the output of nm in a C name address pair when lib prefix is needed]) 4267 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1], 4268 [The name lister interface]) 4269 _LT_DECL([], [nm_file_list_spec], [1], 4270 [Specify filename containing input files for $NM]) 4271 ]) # _LT_CMD_GLOBAL_SYMBOLS 4272 4273 4274 # _LT_COMPILER_PIC([TAGNAME]) 4275 # --------------------------- 4276 m4_defun([_LT_COMPILER_PIC], 4277 [m4_require([_LT_TAG_COMPILER])dnl 4278 _LT_TAGVAR(lt_prog_compiler_wl, $1)= 4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4280 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4281 4282 m4_if([$1], [CXX], [ 4283 # C++ specific cases for pic, static, wl, etc. 4284 if test yes = "$GXX"; then 4285 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4286 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4287 4288 case $host_os in 4289 aix*) 4290 # All AIX code is PIC. 4291 if test ia64 = "$host_cpu"; then 4292 # AIX 5 now supports IA64 processor 4293 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4294 fi 4295 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4296 ;; 4297 4298 amigaos*) 4299 case $host_cpu in 4300 powerpc) 4301 # see comment about AmigaOS4 .so support 4302 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4303 ;; 4304 m68k) 4305 # FIXME: we need at least 68020 code to build shared libraries, but 4306 # adding the '-m68020' flag to GCC prevents building anything better, 4307 # like '-m68040'. 4308 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4309 ;; 4310 esac 4311 ;; 4312 4313 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4314 # PIC is the default for these OSes. 4315 ;; 4316 mingw* | cygwin* | os2* | pw32* | cegcc*) 4317 # This hack is so that the source file can tell whether it is being 4318 # built for inclusion in a dll (and should export symbols for example). 4319 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4320 # (--disable-auto-import) libraries 4321 m4_if([$1], [GCJ], [], 4322 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4323 case $host_os in 4324 os2*) 4325 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4326 ;; 4327 esac 4328 ;; 4329 darwin* | rhapsody*) 4330 # PIC is the default on this platform 4331 # Common symbols not allowed in MH_DYLIB files 4332 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4333 ;; 4334 *djgpp*) 4335 # DJGPP does not support shared libraries at all 4336 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4337 ;; 4338 haiku*) 4339 # PIC is the default for Haiku. 4340 # The "-static" flag exists, but is broken. 4341 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4342 ;; 4343 interix[[3-9]]*) 4344 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4345 # Instead, we relocate shared libraries at runtime. 4346 ;; 4347 sysv4*MP*) 4348 if test -d /usr/nec; then 4349 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4350 fi 4351 ;; 4352 hpux*) 4353 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4354 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4355 # sets the default TLS model and affects inlining. 4356 case $host_cpu in 4357 hppa*64*) 4358 ;; 4359 *) 4360 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4361 ;; 4362 esac 4363 ;; 4364 *qnx* | *nto*) 4365 # QNX uses GNU C++, but need to define -shared option too, otherwise 4366 # it will coredump. 4367 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4368 ;; 4369 *) 4370 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4371 ;; 4372 esac 4373 else 4374 case $host_os in 4375 aix[[4-9]]*) 4376 # All AIX code is PIC. 4377 if test ia64 = "$host_cpu"; then 4378 # AIX 5 now supports IA64 processor 4379 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4380 else 4381 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4382 fi 4383 ;; 4384 chorus*) 4385 case $cc_basename in 4386 cxch68*) 4387 # Green Hills C++ Compiler 4388 # _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" 4389 ;; 4390 esac 4391 ;; 4392 mingw* | cygwin* | os2* | pw32* | cegcc*) 4393 # This hack is so that the source file can tell whether it is being 4394 # built for inclusion in a dll (and should export symbols for example). 4395 m4_if([$1], [GCJ], [], 4396 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4397 ;; 4398 dgux*) 4399 case $cc_basename in 4400 ec++*) 4401 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4402 ;; 4403 ghcx*) 4404 # Green Hills C++ Compiler 4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4406 ;; 4407 *) 4408 ;; 4409 esac 4410 ;; 4411 freebsd* | dragonfly* | midnightbsd*) 4412 # FreeBSD uses GNU C++ 4413 ;; 4414 hpux9* | hpux10* | hpux11*) 4415 case $cc_basename in 4416 CC*) 4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4418 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4419 if test ia64 != "$host_cpu"; then 4420 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4421 fi 4422 ;; 4423 aCC*) 4424 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4425 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4426 case $host_cpu in 4427 hppa*64*|ia64*) 4428 # +Z the default 4429 ;; 4430 *) 4431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4432 ;; 4433 esac 4434 ;; 4435 *) 4436 ;; 4437 esac 4438 ;; 4439 interix*) 4440 # This is c89, which is MS Visual C++ (no shared libs) 4441 # Anyone wants to do a port? 4442 ;; 4443 irix5* | irix6* | nonstopux*) 4444 case $cc_basename in 4445 CC*) 4446 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4447 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4448 # CC pic flag -KPIC is the default. 4449 ;; 4450 *) 4451 ;; 4452 esac 4453 ;; 4454 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4455 case $cc_basename in 4456 KCC*) 4457 # KAI C++ Compiler 4458 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4459 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4460 ;; 4461 ecpc* ) 4462 # old Intel C++ for x86_64, which still supported -KPIC. 4463 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4465 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4466 ;; 4467 icpc* ) 4468 # Intel C++, used to be incompatible with GCC. 4469 # ICC 10 doesn't accept -KPIC any more. 4470 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4473 ;; 4474 pgCC* | pgcpp*) 4475 # Portland Group C++ compiler 4476 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4478 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4479 ;; 4480 cxx*) 4481 # Compaq C++ 4482 # Make sure the PIC flag is empty. It appears that all Alpha 4483 # Linux and Compaq Tru64 Unix objects are PIC. 4484 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4485 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4486 ;; 4487 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) 4488 # IBM XL 8.0, 9.0 on PPC and BlueGene 4489 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4490 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4491 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4492 ;; 4493 *) 4494 case `$CC -V 2>&1 | $SED 5q` in 4495 *Sun\ C*) 4496 # Sun C++ 5.9 4497 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4498 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4499 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4500 ;; 4501 esac 4502 ;; 4503 esac 4504 ;; 4505 lynxos*) 4506 ;; 4507 m88k*) 4508 ;; 4509 mvs*) 4510 case $cc_basename in 4511 cxx*) 4512 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4513 ;; 4514 *) 4515 ;; 4516 esac 4517 ;; 4518 netbsd*) 4519 ;; 4520 *qnx* | *nto*) 4521 # QNX uses GNU C++, but need to define -shared option too, otherwise 4522 # it will coredump. 4523 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4524 ;; 4525 osf3* | osf4* | osf5*) 4526 case $cc_basename in 4527 KCC*) 4528 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4529 ;; 4530 RCC*) 4531 # Rational C++ 2.4.1 4532 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4533 ;; 4534 cxx*) 4535 # Digital/Compaq C++ 4536 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4537 # Make sure the PIC flag is empty. It appears that all Alpha 4538 # Linux and Compaq Tru64 Unix objects are PIC. 4539 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4540 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4541 ;; 4542 *) 4543 ;; 4544 esac 4545 ;; 4546 psos*) 4547 ;; 4548 solaris*) 4549 case $cc_basename in 4550 CC* | sunCC*) 4551 # Sun C++ 4.2, 5.x and Centerline C++ 4552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4553 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4554 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4555 ;; 4556 gcx*) 4557 # Green Hills C++ Compiler 4558 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4559 ;; 4560 *) 4561 ;; 4562 esac 4563 ;; 4564 sunos4*) 4565 case $cc_basename in 4566 CC*) 4567 # Sun C++ 4.x 4568 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4569 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4570 ;; 4571 lcc*) 4572 # Lucid 4573 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4574 ;; 4575 *) 4576 ;; 4577 esac 4578 ;; 4579 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4580 case $cc_basename in 4581 CC*) 4582 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4583 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4584 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4585 ;; 4586 esac 4587 ;; 4588 tandem*) 4589 case $cc_basename in 4590 NCC*) 4591 # NonStop-UX NCC 3.20 4592 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4593 ;; 4594 *) 4595 ;; 4596 esac 4597 ;; 4598 vxworks*) 4599 ;; 4600 *) 4601 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4602 ;; 4603 esac 4604 fi 4605 ], 4606 [ 4607 if test yes = "$GCC"; then 4608 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4609 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4610 4611 case $host_os in 4612 aix*) 4613 # All AIX code is PIC. 4614 if test ia64 = "$host_cpu"; then 4615 # AIX 5 now supports IA64 processor 4616 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4617 fi 4618 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4619 ;; 4620 4621 amigaos*) 4622 case $host_cpu in 4623 powerpc) 4624 # see comment about AmigaOS4 .so support 4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4626 ;; 4627 m68k) 4628 # FIXME: we need at least 68020 code to build shared libraries, but 4629 # adding the '-m68020' flag to GCC prevents building anything better, 4630 # like '-m68040'. 4631 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4632 ;; 4633 esac 4634 ;; 4635 4636 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4637 # PIC is the default for these OSes. 4638 ;; 4639 4640 mingw* | cygwin* | pw32* | os2* | cegcc*) 4641 # This hack is so that the source file can tell whether it is being 4642 # built for inclusion in a dll (and should export symbols for example). 4643 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4644 # (--disable-auto-import) libraries 4645 m4_if([$1], [GCJ], [], 4646 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4647 case $host_os in 4648 os2*) 4649 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4650 ;; 4651 esac 4652 ;; 4653 4654 darwin* | rhapsody*) 4655 # PIC is the default on this platform 4656 # Common symbols not allowed in MH_DYLIB files 4657 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4658 ;; 4659 4660 haiku*) 4661 # PIC is the default for Haiku. 4662 # The "-static" flag exists, but is broken. 4663 _LT_TAGVAR(lt_prog_compiler_static, $1)= 4664 ;; 4665 4666 hpux*) 4667 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 4668 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 4669 # sets the default TLS model and affects inlining. 4670 case $host_cpu in 4671 hppa*64*) 4672 # +Z the default 4673 ;; 4674 *) 4675 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4676 ;; 4677 esac 4678 ;; 4679 4680 interix[[3-9]]*) 4681 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4682 # Instead, we relocate shared libraries at runtime. 4683 ;; 4684 4685 msdosdjgpp*) 4686 # Just because we use GCC doesn't mean we suddenly get shared libraries 4687 # on systems that don't support them. 4688 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4689 enable_shared=no 4690 ;; 4691 4692 *nto* | *qnx*) 4693 # QNX uses GNU C++, but need to define -shared option too, otherwise 4694 # it will coredump. 4695 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4696 ;; 4697 4698 sysv4*MP*) 4699 if test -d /usr/nec; then 4700 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4701 fi 4702 ;; 4703 4704 *) 4705 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4706 ;; 4707 esac 4708 4709 case $cc_basename in 4710 nvcc*) # Cuda Compiler Driver 2.2 4711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' 4712 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4713 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" 4714 fi 4715 ;; 4716 esac 4717 else 4718 # PORTME Check for flag to pass linker flags through the system compiler. 4719 case $host_os in 4720 aix*) 4721 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4722 if test ia64 = "$host_cpu"; then 4723 # AIX 5 now supports IA64 processor 4724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4725 else 4726 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4727 fi 4728 ;; 4729 4730 darwin* | rhapsody*) 4731 # PIC is the default on this platform 4732 # Common symbols not allowed in MH_DYLIB files 4733 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4734 case $cc_basename in 4735 nagfor*) 4736 # NAG Fortran compiler 4737 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4740 ;; 4741 esac 4742 ;; 4743 4744 mingw* | cygwin* | pw32* | os2* | cegcc*) 4745 # This hack is so that the source file can tell whether it is being 4746 # built for inclusion in a dll (and should export symbols for example). 4747 m4_if([$1], [GCJ], [], 4748 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 4749 case $host_os in 4750 os2*) 4751 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' 4752 ;; 4753 esac 4754 ;; 4755 4756 hpux9* | hpux10* | hpux11*) 4757 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4758 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4759 # not for PA HP-UX. 4760 case $host_cpu in 4761 hppa*64*|ia64*) 4762 # +Z the default 4763 ;; 4764 *) 4765 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4766 ;; 4767 esac 4768 # Is there a better lt_prog_compiler_static that works with the bundled CC? 4769 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' 4770 ;; 4771 4772 irix5* | irix6* | nonstopux*) 4773 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4774 # PIC (with -KPIC) is the default. 4775 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4776 ;; 4777 4778 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4779 case $cc_basename in 4780 # old Intel for x86_64, which still supported -KPIC. 4781 ecc*) 4782 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4785 ;; 4786 # icc used to be incompatible with GCC. 4787 # ICC 10 doesn't accept -KPIC any more. 4788 icc* | ifort*) 4789 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4792 ;; 4793 # Lahey Fortran 8.1. 4794 lf95*) 4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4796 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' 4797 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' 4798 ;; 4799 nagfor*) 4800 # NAG Fortran compiler 4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' 4802 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4803 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4804 ;; 4805 tcc*) 4806 # Fabrice Bellard et al's Tiny C Compiler 4807 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4808 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4809 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4810 ;; 4811 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 4812 # Portland Group compilers (*not* the Pentium gcc compiler, 4813 # which looks to be a dead project) 4814 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4815 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4816 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4817 ;; 4818 ccc*) 4819 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4820 # All Alpha code is PIC. 4821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4822 ;; 4823 xl* | bgxl* | bgf* | mpixl*) 4824 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 4825 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4826 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' 4827 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' 4828 ;; 4829 *) 4830 case `$CC -V 2>&1 | $SED 5q` in 4831 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) 4832 # Sun Fortran 8.3 passes all unrecognized flags to the linker 4833 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4834 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4835 _LT_TAGVAR(lt_prog_compiler_wl, $1)='' 4836 ;; 4837 *Sun\ F* | *Sun*Fortran*) 4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4839 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4840 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4841 ;; 4842 *Sun\ C*) 4843 # Sun C 5.9 4844 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4845 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4846 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4847 ;; 4848 *Intel*\ [[CF]]*Compiler*) 4849 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4850 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4851 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' 4852 ;; 4853 *Portland\ Group*) 4854 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4855 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4856 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4857 ;; 4858 esac 4859 ;; 4860 esac 4861 ;; 4862 4863 newsos6) 4864 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4865 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4866 ;; 4867 4868 *nto* | *qnx*) 4869 # QNX uses GNU C++, but need to define -shared option too, otherwise 4870 # it will coredump. 4871 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' 4872 ;; 4873 4874 osf3* | osf4* | osf5*) 4875 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4876 # All OSF/1 code is PIC. 4877 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4878 ;; 4879 4880 rdos*) 4881 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4882 ;; 4883 4884 solaris*) 4885 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4886 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4887 case $cc_basename in 4888 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 4889 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 4890 *) 4891 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 4892 esac 4893 ;; 4894 4895 sunos4*) 4896 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4897 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4898 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4899 ;; 4900 4901 sysv4 | sysv4.2uw2* | sysv4.3*) 4902 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4903 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4904 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4905 ;; 4906 4907 sysv4*MP*) 4908 if test -d /usr/nec; then 4909 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 4910 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4911 fi 4912 ;; 4913 4914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 4915 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4916 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4917 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4918 ;; 4919 4920 unicos*) 4921 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4922 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4923 ;; 4924 4925 uts4*) 4926 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4927 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4928 ;; 4929 4930 *) 4931 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4932 ;; 4933 esac 4934 fi 4935 ]) 4936 case $host_os in 4937 # For platforms that do not support PIC, -DPIC is meaningless: 4938 *djgpp*) 4939 _LT_TAGVAR(lt_prog_compiler_pic, $1)= 4940 ;; 4941 *) 4942 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" 4943 ;; 4944 esac 4945 4946 AC_CACHE_CHECK([for $compiler option to produce PIC], 4947 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], 4948 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) 4949 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) 4950 4951 # 4952 # Check to make sure the PIC flag actually works. 4953 # 4954 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then 4955 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], 4956 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], 4957 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], 4958 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in 4959 "" | " "*) ;; 4960 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; 4961 esac], 4962 [_LT_TAGVAR(lt_prog_compiler_pic, $1)= 4963 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4964 fi 4965 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], 4966 [Additional compiler flags for building library objects]) 4967 4968 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], 4969 [How to pass a linker flag through the compiler]) 4970 # 4971 # Check to make sure the static flag actually works. 4972 # 4973 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" 4974 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 4975 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), 4976 $lt_tmp_static_flag, 4977 [], 4978 [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) 4979 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], 4980 [Compiler flag to prevent dynamic linking]) 4981 ])# _LT_COMPILER_PIC 4982 4983 4984 # _LT_LINKER_SHLIBS([TAGNAME]) 4985 # ---------------------------- 4986 # See if the linker supports building shared libraries. 4987 m4_defun([_LT_LINKER_SHLIBS], 4988 [AC_REQUIRE([LT_PATH_LD])dnl 4989 AC_REQUIRE([LT_PATH_NM])dnl 4990 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 4991 m4_require([_LT_FILEUTILS_DEFAULTS])dnl 4992 m4_require([_LT_DECL_EGREP])dnl 4993 m4_require([_LT_DECL_SED])dnl 4994 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl 4995 m4_require([_LT_TAG_COMPILER])dnl 4996 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 4997 m4_if([$1], [CXX], [ 4998 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 4999 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5000 case $host_os in 5001 aix[[4-9]]*) 5002 # If we're using GNU nm, then we don't want the "-C" option. 5003 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5004 # Without the "-l" option, or with the "-B" option, AIX nm treats 5005 # weak defined symbols like other global defined symbols, whereas 5006 # GNU nm marks them as "W". 5007 # While the 'weak' keyword is ignored in the Export File, we need 5008 # it in the Import File for the 'aix-soname' feature, so we have 5009 # to replace the "-B" option with "-P" for AIX nm. 5010 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5011 _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' 5012 else 5013 _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' 5014 fi 5015 ;; 5016 pw32*) 5017 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds 5018 ;; 5019 cygwin* | mingw* | cegcc*) 5020 case $cc_basename in 5021 cl* | icl*) 5022 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5023 ;; 5024 *) 5025 _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' 5026 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5027 ;; 5028 esac 5029 ;; 5030 *) 5031 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5032 ;; 5033 esac 5034 ], [ 5035 runpath_var= 5036 _LT_TAGVAR(allow_undefined_flag, $1)= 5037 _LT_TAGVAR(always_export_symbols, $1)=no 5038 _LT_TAGVAR(archive_cmds, $1)= 5039 _LT_TAGVAR(archive_expsym_cmds, $1)= 5040 _LT_TAGVAR(compiler_needs_object, $1)=no 5041 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5042 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5043 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5044 _LT_TAGVAR(hardcode_automatic, $1)=no 5045 _LT_TAGVAR(hardcode_direct, $1)=no 5046 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5048 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5049 _LT_TAGVAR(hardcode_minus_L, $1)=no 5050 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5051 _LT_TAGVAR(inherit_rpath, $1)=no 5052 _LT_TAGVAR(link_all_deplibs, $1)=unknown 5053 _LT_TAGVAR(module_cmds, $1)= 5054 _LT_TAGVAR(module_expsym_cmds, $1)= 5055 _LT_TAGVAR(old_archive_from_new_cmds, $1)= 5056 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5057 _LT_TAGVAR(thread_safe_flag_spec, $1)= 5058 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5059 # include_expsyms should be a list of space-separated symbols to be *always* 5060 # included in the symbol list 5061 _LT_TAGVAR(include_expsyms, $1)= 5062 # exclude_expsyms can be an extended regexp of symbols to exclude 5063 # it will be wrapped by ' (' and ')$', so one must not match beginning or 5064 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 5065 # as well as any symbol that contains 'd'. 5066 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5067 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5068 # platforms (ab)use it in PIC code, but their linkers get confused if 5069 # the symbol is explicitly referenced. Since portable code cannot 5070 # rely on this symbol name, it's probably fine to never include it in 5071 # preloaded symbol tables. 5072 # Exclude shared library initialization/finalization symbols. 5073 dnl Note also adjust exclude_expsyms for C++ above. 5074 extract_expsyms_cmds= 5075 5076 case $host_os in 5077 cygwin* | mingw* | pw32* | cegcc*) 5078 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time 5079 # When not using gcc, we currently assume that we are using 5080 # Microsoft Visual C++ or Intel C++ Compiler. 5081 if test yes != "$GCC"; then 5082 with_gnu_ld=no 5083 fi 5084 ;; 5085 interix*) 5086 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) 5087 with_gnu_ld=yes 5088 ;; 5089 openbsd* | bitrig*) 5090 with_gnu_ld=no 5091 ;; 5092 esac 5093 5094 _LT_TAGVAR(ld_shlibs, $1)=yes 5095 5096 # On some targets, GNU ld is compatible enough with the native linker 5097 # that we're better off using the native interface for both. 5098 lt_use_gnu_ld_interface=no 5099 if test yes = "$with_gnu_ld"; then 5100 case $host_os in 5101 aix*) 5102 # The AIX port of GNU ld has always aspired to compatibility 5103 # with the native linker. However, as the warning in the GNU ld 5104 # block says, versions before 2.19.5* couldn't really create working 5105 # shared libraries, regardless of the interface used. 5106 case `$LD -v 2>&1` in 5107 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 5108 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; 5109 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; 5110 *) 5111 lt_use_gnu_ld_interface=yes 5112 ;; 5113 esac 5114 ;; 5115 *) 5116 lt_use_gnu_ld_interface=yes 5117 ;; 5118 esac 5119 fi 5120 5121 if test yes = "$lt_use_gnu_ld_interface"; then 5122 # If archive_cmds runs LD, not CC, wlarc should be empty 5123 wlarc='$wl' 5124 5125 # Set some defaults for GNU ld with shared library support. These 5126 # are reset later if shared libraries are not supported. Putting them 5127 # here allows them to be overridden if necessary. 5128 runpath_var=LD_RUN_PATH 5129 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5130 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 5131 # ancient GNU ld didn't support --whole-archive et. al. 5132 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 5133 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 5134 else 5135 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5136 fi 5137 supports_anon_versioning=no 5138 case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in 5139 *GNU\ gold*) supports_anon_versioning=yes ;; 5140 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5141 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5142 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5143 *\ 2.11.*) ;; # other 2.11 versions 5144 *) supports_anon_versioning=yes ;; 5145 esac 5146 5147 # See if GNU ld supports shared libraries. 5148 case $host_os in 5149 aix[[3-9]]*) 5150 # On AIX/PPC, the GNU linker is very broken 5151 if test ia64 != "$host_cpu"; then 5152 _LT_TAGVAR(ld_shlibs, $1)=no 5153 cat <<_LT_EOF 1>&2 5154 5155 *** Warning: the GNU linker, at least up to release 2.19, is reported 5156 *** to be unable to reliably create shared libraries on AIX. 5157 *** Therefore, libtool is disabling shared libraries support. If you 5158 *** really care for shared libraries, you may want to install binutils 5159 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 5160 *** You will then need to restart the configuration process. 5161 5162 _LT_EOF 5163 fi 5164 ;; 5165 5166 amigaos*) 5167 case $host_cpu in 5168 powerpc) 5169 # see comment about AmigaOS4 .so support 5170 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5171 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5172 ;; 5173 m68k) 5174 _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)' 5175 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5176 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5177 ;; 5178 esac 5179 ;; 5180 5181 beos*) 5182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5183 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5184 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5185 # support --undefined. This deserves some investigation. FIXME 5186 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5187 else 5188 _LT_TAGVAR(ld_shlibs, $1)=no 5189 fi 5190 ;; 5191 5192 cygwin* | mingw* | pw32* | cegcc*) 5193 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5194 # as there is no search path for DLLs. 5195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5196 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 5197 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5198 _LT_TAGVAR(always_export_symbols, $1)=no 5199 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5200 _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' 5201 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] 5202 5203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 5204 _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' 5205 # If the export-symbols file already is a .def file, use it as 5206 # is; otherwise, prepend EXPORTS... 5207 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5208 cp $export_symbols $output_objdir/$soname.def; 5209 else 5210 echo EXPORTS > $output_objdir/$soname.def; 5211 cat $export_symbols >> $output_objdir/$soname.def; 5212 fi~ 5213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5214 else 5215 _LT_TAGVAR(ld_shlibs, $1)=no 5216 fi 5217 ;; 5218 5219 haiku*) 5220 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5221 _LT_TAGVAR(link_all_deplibs, $1)=yes 5222 ;; 5223 5224 os2*) 5225 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5226 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5227 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5228 shrext_cmds=.dll 5229 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5230 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5231 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5232 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5233 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5234 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5235 emximp -o $lib $output_objdir/$libname.def' 5236 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5237 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5238 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5239 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5240 prefix_cmds="$SED"~ 5241 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5242 prefix_cmds="$prefix_cmds -e 1d"; 5243 fi~ 5244 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5245 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5247 emximp -o $lib $output_objdir/$libname.def' 5248 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5249 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5250 _LT_TAGVAR(file_list_spec, $1)='@' 5251 ;; 5252 5253 interix[[3-9]]*) 5254 _LT_TAGVAR(hardcode_direct, $1)=no 5255 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5257 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5258 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5259 # Instead, shared libraries are loaded at an image base (0x10000000 by 5260 # default) and relocated if they conflict, which is a slow very memory 5261 # consuming and fragmenting process. To avoid this, we pick a random, 5262 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5263 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5264 _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' 5265 _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' 5266 ;; 5267 5268 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 5269 tmp_diet=no 5270 if test linux-dietlibc = "$host_os"; then 5271 case $cc_basename in 5272 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 5273 esac 5274 fi 5275 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 5276 && test no = "$tmp_diet" 5277 then 5278 tmp_addflag=' $pic_flag' 5279 tmp_sharedflag='-shared' 5280 case $cc_basename,$host_cpu in 5281 pgcc*) # Portland Group C compiler 5282 _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' 5283 tmp_addflag=' $pic_flag' 5284 ;; 5285 pgf77* | pgf90* | pgf95* | pgfortran*) 5286 # Portland Group f77 and f90 compilers 5287 _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' 5288 tmp_addflag=' $pic_flag -Mnomain' ;; 5289 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5290 tmp_addflag=' -i_dynamic' ;; 5291 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5292 tmp_addflag=' -i_dynamic -nofor_main' ;; 5293 ifc* | ifort*) # Intel Fortran compiler 5294 tmp_addflag=' -nofor_main' ;; 5295 lf95*) # Lahey Fortran 8.1 5296 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5297 tmp_sharedflag='--shared' ;; 5298 nagfor*) # NAGFOR 5.3 5299 tmp_sharedflag='-Wl,-shared' ;; 5300 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) 5301 tmp_sharedflag='-qmkshrobj' 5302 tmp_addflag= ;; 5303 nvcc*) # Cuda Compiler Driver 2.2 5304 _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' 5305 _LT_TAGVAR(compiler_needs_object, $1)=yes 5306 ;; 5307 esac 5308 case `$CC -V 2>&1 | $SED 5q` in 5309 *Sun\ C*) # Sun C 5.9 5310 _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' 5311 _LT_TAGVAR(compiler_needs_object, $1)=yes 5312 tmp_sharedflag='-G' ;; 5313 *Sun\ F*) # Sun Fortran 8.3 5314 tmp_sharedflag='-G' ;; 5315 esac 5316 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5317 5318 if test yes = "$supports_anon_versioning"; then 5319 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5320 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5321 echo "local: *; };" >> $output_objdir/$libname.ver~ 5322 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 5323 fi 5324 5325 case $cc_basename in 5326 tcc*) 5327 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' 5328 ;; 5329 xlf* | bgf* | bgxlf* | mpixlf*) 5330 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 5331 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' 5332 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5333 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 5334 if test yes = "$supports_anon_versioning"; then 5335 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 5336 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5337 echo "local: *; };" >> $output_objdir/$libname.ver~ 5338 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 5339 fi 5340 ;; 5341 esac 5342 else 5343 _LT_TAGVAR(ld_shlibs, $1)=no 5344 fi 5345 ;; 5346 5347 netbsd*) 5348 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5349 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5350 wlarc= 5351 else 5352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5353 _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' 5354 fi 5355 ;; 5356 5357 solaris*) 5358 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 5359 _LT_TAGVAR(ld_shlibs, $1)=no 5360 cat <<_LT_EOF 1>&2 5361 5362 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 5363 *** create shared libraries on Solaris systems. Therefore, libtool 5364 *** is disabling shared libraries support. We urge you to upgrade GNU 5365 *** binutils to release 2.9.1 or newer. Another option is to modify 5366 *** your PATH or compiler configuration so that the native linker is 5367 *** used, and then restart. 5368 5369 _LT_EOF 5370 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5371 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5372 _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' 5373 else 5374 _LT_TAGVAR(ld_shlibs, $1)=no 5375 fi 5376 ;; 5377 5378 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5379 case `$LD -v 2>&1` in 5380 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5381 _LT_TAGVAR(ld_shlibs, $1)=no 5382 cat <<_LT_EOF 1>&2 5383 5384 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 5385 *** reliably create shared libraries on SCO systems. Therefore, libtool 5386 *** is disabling shared libraries support. We urge you to upgrade GNU 5387 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5388 *** your PATH or compiler configuration so that the native linker is 5389 *** used, and then restart. 5390 5391 _LT_EOF 5392 ;; 5393 *) 5394 # For security reasons, it is highly recommended that you always 5395 # use absolute paths for naming shared libraries, and exclude the 5396 # DT_RUNPATH tag from executables and libraries. But doing so 5397 # requires that you compile everything twice, which is a pain. 5398 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 5399 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5400 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5401 _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' 5402 else 5403 _LT_TAGVAR(ld_shlibs, $1)=no 5404 fi 5405 ;; 5406 esac 5407 ;; 5408 5409 sunos4*) 5410 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5411 wlarc= 5412 _LT_TAGVAR(hardcode_direct, $1)=yes 5413 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5414 ;; 5415 5416 *) 5417 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 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 else 5421 _LT_TAGVAR(ld_shlibs, $1)=no 5422 fi 5423 ;; 5424 esac 5425 5426 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then 5427 runpath_var= 5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 5429 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 5430 _LT_TAGVAR(whole_archive_flag_spec, $1)= 5431 fi 5432 else 5433 # PORTME fill in a description of your system's linker (not GNU ld) 5434 case $host_os in 5435 aix3*) 5436 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5437 _LT_TAGVAR(always_export_symbols, $1)=yes 5438 _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' 5439 # Note: this linker hardcodes the directories in LIBPATH if there 5440 # are no directories specified by -L. 5441 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5442 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 5443 # Neither direct hardcoding nor static linking is supported with a 5444 # broken collect2. 5445 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5446 fi 5447 ;; 5448 5449 aix[[4-9]]*) 5450 if test ia64 = "$host_cpu"; then 5451 # On IA64, the linker does run time linking by default, so we don't 5452 # have to do anything special. 5453 aix_use_runtimelinking=no 5454 exp_sym_flag='-Bexport' 5455 no_entry_flag= 5456 else 5457 # If we're using GNU nm, then we don't want the "-C" option. 5458 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 5459 # Without the "-l" option, or with the "-B" option, AIX nm treats 5460 # weak defined symbols like other global defined symbols, whereas 5461 # GNU nm marks them as "W". 5462 # While the 'weak' keyword is ignored in the Export File, we need 5463 # it in the Import File for the 'aix-soname' feature, so we have 5464 # to replace the "-B" option with "-P" for AIX nm. 5465 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 5466 _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' 5467 else 5468 _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' 5469 fi 5470 aix_use_runtimelinking=no 5471 5472 # Test if we are trying to use run time linking or normal 5473 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5474 # have runtime linking enabled, and use it for executables. 5475 # For shared libraries, we enable/disable runtime linking 5476 # depending on the kind of the shared library created - 5477 # when "with_aix_soname,aix_use_runtimelinking" is: 5478 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 5479 # "aix,yes" lib.so shared, rtl:yes, for executables 5480 # lib.a static archive 5481 # "both,no" lib.so.V(shr.o) shared, rtl:yes 5482 # lib.a(lib.so.V) shared, rtl:no, for executables 5483 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 5484 # lib.a(lib.so.V) shared, rtl:no 5485 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 5486 # lib.a static archive 5487 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5488 for ld_flag in $LDFLAGS; do 5489 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 5490 aix_use_runtimelinking=yes 5491 break 5492 fi 5493 done 5494 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 5495 # With aix-soname=svr4, we create the lib.so.V shared archives only, 5496 # so we don't have lib.a shared libs to link our executables. 5497 # We have to force runtime linking in this case. 5498 aix_use_runtimelinking=yes 5499 LDFLAGS="$LDFLAGS -Wl,-brtl" 5500 fi 5501 ;; 5502 esac 5503 5504 exp_sym_flag='-bexport' 5505 no_entry_flag='-bnoentry' 5506 fi 5507 5508 # When large executables or shared objects are built, AIX ld can 5509 # have problems creating the table of contents. If linking a library 5510 # or program results in "error TOC overflow" add -mminimal-toc to 5511 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5512 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5513 5514 _LT_TAGVAR(archive_cmds, $1)='' 5515 _LT_TAGVAR(hardcode_direct, $1)=yes 5516 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5517 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 5518 _LT_TAGVAR(link_all_deplibs, $1)=yes 5519 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 5520 case $with_aix_soname,$aix_use_runtimelinking in 5521 aix,*) ;; # traditional, no import file 5522 svr4,* | *,yes) # use import file 5523 # The Import File defines what to hardcode. 5524 _LT_TAGVAR(hardcode_direct, $1)=no 5525 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 5526 ;; 5527 esac 5528 5529 if test yes = "$GCC"; then 5530 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5531 # We only want to do this on AIX 4.2 and lower, the check 5532 # below for broken collect2 doesn't work under 4.3+ 5533 collect2name=`$CC -print-prog-name=collect2` 5534 if test -f "$collect2name" && 5535 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 5536 then 5537 # We have reworked collect2 5538 : 5539 else 5540 # We have old collect2 5541 _LT_TAGVAR(hardcode_direct, $1)=unsupported 5542 # It fails to find uninstalled libraries when the uninstalled 5543 # path is not listed in the libpath. Setting hardcode_minus_L 5544 # to unsupported forces relinking 5545 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5546 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5547 _LT_TAGVAR(hardcode_libdir_separator, $1)= 5548 fi 5549 ;; 5550 esac 5551 shared_flag='-shared' 5552 if test yes = "$aix_use_runtimelinking"; then 5553 shared_flag="$shared_flag "'$wl-G' 5554 fi 5555 # Need to ensure runtime linking is disabled for the traditional 5556 # shared library, or the linker may eventually find shared libraries 5557 # /with/ Import File - we do not want to mix them. 5558 shared_flag_aix='-shared' 5559 shared_flag_svr4='-shared $wl-G' 5560 else 5561 # not using gcc 5562 if test ia64 = "$host_cpu"; then 5563 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5564 # chokes on -Wl,-G. The following line is correct: 5565 shared_flag='-G' 5566 else 5567 if test yes = "$aix_use_runtimelinking"; then 5568 shared_flag='$wl-G' 5569 else 5570 shared_flag='$wl-bM:SRE' 5571 fi 5572 shared_flag_aix='$wl-bM:SRE' 5573 shared_flag_svr4='$wl-G' 5574 fi 5575 fi 5576 5577 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 5578 # It seems that -bexpall does not export symbols beginning with 5579 # underscore (_), so it is better to generate a list of symbols to export. 5580 _LT_TAGVAR(always_export_symbols, $1)=yes 5581 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 5582 # Warning - without using the other runtime loading flags (-brtl), 5583 # -berok will link without error, but may produce a broken library. 5584 _LT_TAGVAR(allow_undefined_flag, $1)='-berok' 5585 # Determine the default libpath from the value encoded in an 5586 # empty executable. 5587 _LT_SYS_MODULE_PATH_AIX([$1]) 5588 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5589 _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 5590 else 5591 if test ia64 = "$host_cpu"; then 5592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 5593 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5594 _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" 5595 else 5596 # Determine the default libpath from the value encoded in an 5597 # empty executable. 5598 _LT_SYS_MODULE_PATH_AIX([$1]) 5599 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 5600 # Warning - without using the other run time loading flags, 5601 # -berok will link without error, but may produce a broken library. 5602 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 5603 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 5604 if test yes = "$with_gnu_ld"; then 5605 # We only use this code for GNU lds that support --whole-archive. 5606 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 5607 else 5608 # Exported symbols can be pulled into shared objects from archives 5609 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5610 fi 5611 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 5612 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 5613 # -brtl affects multiple linker settings, -berok does not and is overridden later 5614 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 5615 if test svr4 != "$with_aix_soname"; then 5616 # This is similar to how AIX traditionally builds its shared libraries. 5617 _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' 5618 fi 5619 if test aix != "$with_aix_soname"; then 5620 _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' 5621 else 5622 # used by -dlpreopen to get the symbols 5623 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 5624 fi 5625 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 5626 fi 5627 fi 5628 ;; 5629 5630 amigaos*) 5631 case $host_cpu in 5632 powerpc) 5633 # see comment about AmigaOS4 .so support 5634 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 5635 _LT_TAGVAR(archive_expsym_cmds, $1)='' 5636 ;; 5637 m68k) 5638 _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)' 5639 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5640 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5641 ;; 5642 esac 5643 ;; 5644 5645 bsdi[[45]]*) 5646 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5647 ;; 5648 5649 cygwin* | mingw* | pw32* | cegcc*) 5650 # When not using gcc, we currently assume that we are using 5651 # Microsoft Visual C++ or Intel C++ Compiler. 5652 # hardcode_libdir_flag_spec is actually meaningless, as there is 5653 # no search path for DLLs. 5654 case $cc_basename in 5655 cl* | icl*) 5656 # Native MSVC or ICC 5657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5658 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5659 _LT_TAGVAR(always_export_symbols, $1)=yes 5660 _LT_TAGVAR(file_list_spec, $1)='@' 5661 # Tell ltmain to make .lib files, not .a files. 5662 libext=lib 5663 # Tell ltmain to make .dll files, not .so files. 5664 shrext_cmds=.dll 5665 # FIXME: Setting linknames here is a bad hack. 5666 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 5667 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 5668 cp "$export_symbols" "$output_objdir/$soname.def"; 5669 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 5670 else 5671 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 5672 fi~ 5673 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 5674 linknames=' 5675 # The linker will not automatically build a static lib if we build a DLL. 5676 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5677 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5678 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 5679 _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' 5680 # Don't use ranlib 5681 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 5682 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 5683 lt_tool_outputfile="@TOOL_OUTPUT@"~ 5684 case $lt_outputfile in 5685 *.exe|*.EXE) ;; 5686 *) 5687 lt_outputfile=$lt_outputfile.exe 5688 lt_tool_outputfile=$lt_tool_outputfile.exe 5689 ;; 5690 esac~ 5691 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 5692 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 5693 $RM "$lt_outputfile.manifest"; 5694 fi' 5695 ;; 5696 *) 5697 # Assume MSVC and ICC wrapper 5698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5700 # Tell ltmain to make .lib files, not .a files. 5701 libext=lib 5702 # Tell ltmain to make .dll files, not .so files. 5703 shrext_cmds=.dll 5704 # FIXME: Setting linknames here is a bad hack. 5705 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 5706 # The linker will automatically build a .lib file if we build a DLL. 5707 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 5708 # FIXME: Should let the user specify the lib program. 5709 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5710 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5711 ;; 5712 esac 5713 ;; 5714 5715 darwin* | rhapsody*) 5716 _LT_DARWIN_LINKER_FEATURES($1) 5717 ;; 5718 5719 dgux*) 5720 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5721 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5722 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5723 ;; 5724 5725 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5726 # support. Future versions do this automatically, but an explicit c++rt0.o 5727 # does not break anything, and helps significantly (at the cost of a little 5728 # extra space). 5729 freebsd2.2*) 5730 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5731 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5732 _LT_TAGVAR(hardcode_direct, $1)=yes 5733 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5734 ;; 5735 5736 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5737 freebsd2.*) 5738 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5739 _LT_TAGVAR(hardcode_direct, $1)=yes 5740 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5741 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5742 ;; 5743 5744 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5745 freebsd* | dragonfly* | midnightbsd*) 5746 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5747 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5748 _LT_TAGVAR(hardcode_direct, $1)=yes 5749 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5750 ;; 5751 5752 hpux9*) 5753 if test yes = "$GCC"; then 5754 _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' 5755 else 5756 _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' 5757 fi 5758 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5759 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5760 _LT_TAGVAR(hardcode_direct, $1)=yes 5761 5762 # hardcode_minus_L: Not really in the search PATH, 5763 # but as the default location of the library. 5764 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5765 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5766 ;; 5767 5768 hpux10*) 5769 if test yes,no = "$GCC,$with_gnu_ld"; then 5770 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5771 else 5772 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5773 fi 5774 if test no = "$with_gnu_ld"; then 5775 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5776 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5777 _LT_TAGVAR(hardcode_direct, $1)=yes 5778 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5779 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5780 # hardcode_minus_L: Not really in the search PATH, 5781 # but as the default location of the library. 5782 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5783 fi 5784 ;; 5785 5786 hpux11*) 5787 if test yes,no = "$GCC,$with_gnu_ld"; then 5788 case $host_cpu in 5789 hppa*64*) 5790 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5791 ;; 5792 ia64*) 5793 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5794 ;; 5795 *) 5796 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5797 ;; 5798 esac 5799 else 5800 case $host_cpu in 5801 hppa*64*) 5802 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5803 ;; 5804 ia64*) 5805 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5806 ;; 5807 *) 5808 m4_if($1, [], [ 5809 # Older versions of the 11.00 compiler do not understand -b yet 5810 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 5811 _LT_LINKER_OPTION([if $CC understands -b], 5812 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], 5813 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], 5814 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], 5815 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) 5816 ;; 5817 esac 5818 fi 5819 if test no = "$with_gnu_ld"; then 5820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 5821 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5822 5823 case $host_cpu in 5824 hppa*64*|ia64*) 5825 _LT_TAGVAR(hardcode_direct, $1)=no 5826 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5827 ;; 5828 *) 5829 _LT_TAGVAR(hardcode_direct, $1)=yes 5830 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5831 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5832 5833 # hardcode_minus_L: Not really in the search PATH, 5834 # but as the default location of the library. 5835 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5836 ;; 5837 esac 5838 fi 5839 ;; 5840 5841 irix5* | irix6* | nonstopux*) 5842 if test yes = "$GCC"; then 5843 _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' 5844 # Try to use the -exported_symbol ld option, if it does not 5845 # work, assume that -exports_file does not work either and 5846 # implicitly export all symbols. 5847 # This should be the same for all languages, so no per-tag cache variable. 5848 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], 5849 [lt_cv_irix_exported_symbol], 5850 [save_LDFLAGS=$LDFLAGS 5851 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 5852 AC_LINK_IFELSE( 5853 [AC_LANG_SOURCE( 5854 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], 5855 [C++], [[int foo (void) { return 0; }]], 5856 [Fortran 77], [[ 5857 subroutine foo 5858 end]], 5859 [Fortran], [[ 5860 subroutine foo 5861 end]])])], 5862 [lt_cv_irix_exported_symbol=yes], 5863 [lt_cv_irix_exported_symbol=no]) 5864 LDFLAGS=$save_LDFLAGS]) 5865 if test yes = "$lt_cv_irix_exported_symbol"; then 5866 _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' 5867 fi 5868 else 5869 _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' 5870 _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' 5871 fi 5872 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5873 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5874 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5875 _LT_TAGVAR(inherit_rpath, $1)=yes 5876 _LT_TAGVAR(link_all_deplibs, $1)=yes 5877 ;; 5878 5879 linux*) 5880 case $cc_basename in 5881 tcc*) 5882 # Fabrice Bellard et al's Tiny C Compiler 5883 _LT_TAGVAR(ld_shlibs, $1)=yes 5884 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5885 ;; 5886 esac 5887 ;; 5888 5889 netbsd*) 5890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 5891 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5892 else 5893 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5894 fi 5895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5896 _LT_TAGVAR(hardcode_direct, $1)=yes 5897 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5898 ;; 5899 5900 newsos6) 5901 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5902 _LT_TAGVAR(hardcode_direct, $1)=yes 5903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5904 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5905 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5906 ;; 5907 5908 *nto* | *qnx*) 5909 ;; 5910 5911 openbsd* | bitrig*) 5912 if test -f /usr/libexec/ld.so; then 5913 _LT_TAGVAR(hardcode_direct, $1)=yes 5914 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 5915 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 5916 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5917 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5918 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 5919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5920 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 5921 else 5922 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 5924 fi 5925 else 5926 _LT_TAGVAR(ld_shlibs, $1)=no 5927 fi 5928 ;; 5929 5930 os2*) 5931 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5932 _LT_TAGVAR(hardcode_minus_L, $1)=yes 5933 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 5934 shrext_cmds=.dll 5935 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5936 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5937 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5938 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5939 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 5940 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5941 emximp -o $lib $output_objdir/$libname.def' 5942 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 5943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 5944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 5945 $ECHO EXPORTS >> $output_objdir/$libname.def~ 5946 prefix_cmds="$SED"~ 5947 if test EXPORTS = "`$SED 1q $export_symbols`"; then 5948 prefix_cmds="$prefix_cmds -e 1d"; 5949 fi~ 5950 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 5951 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 5952 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 5953 emximp -o $lib $output_objdir/$libname.def' 5954 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 5955 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5956 _LT_TAGVAR(file_list_spec, $1)='@' 5957 ;; 5958 5959 osf3*) 5960 if test yes = "$GCC"; then 5961 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5962 _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' 5963 else 5964 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5965 _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' 5966 fi 5967 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5968 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5969 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5970 ;; 5971 5972 osf4* | osf5*) # as osf3* with the addition of -msym flag 5973 if test yes = "$GCC"; then 5974 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 5975 _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' 5976 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 5977 else 5978 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 5979 _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' 5980 _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~ 5981 $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' 5982 5983 # Both c and cxx compiler support -rpath directly 5984 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 5985 fi 5986 _LT_TAGVAR(archive_cmds_need_lc, $1)='no' 5987 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 5988 ;; 5989 5990 solaris*) 5991 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' 5992 if test yes = "$GCC"; then 5993 wlarc='$wl' 5994 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 5995 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 5996 $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' 5997 else 5998 case `$CC -V 2>&1` in 5999 *"Compilers 5.0"*) 6000 wlarc='' 6001 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 6002 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6003 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 6004 ;; 6005 *) 6006 wlarc='$wl' 6007 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 6008 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 6009 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 6010 ;; 6011 esac 6012 fi 6013 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6015 case $host_os in 6016 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6017 *) 6018 # The compiler driver will combine and reorder linker options, 6019 # but understands '-z linker_flag'. GCC discards it without '$wl', 6020 # but is careful enough not to reorder. 6021 # Supported since Solaris 2.6 (maybe 2.5.1?) 6022 if test yes = "$GCC"; then 6023 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 6024 else 6025 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6026 fi 6027 ;; 6028 esac 6029 _LT_TAGVAR(link_all_deplibs, $1)=yes 6030 ;; 6031 6032 sunos4*) 6033 if test sequent = "$host_vendor"; then 6034 # Use $CC to link under sequent, because it throws in some extra .o 6035 # files that make .init and .fini sections work. 6036 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6037 else 6038 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6039 fi 6040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6041 _LT_TAGVAR(hardcode_direct, $1)=yes 6042 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6043 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6044 ;; 6045 6046 sysv4) 6047 case $host_vendor in 6048 sni) 6049 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6050 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6051 ;; 6052 siemens) 6053 ## LD is ld it makes a PLAMLIB 6054 ## CC just makes a GrossModule. 6055 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6056 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6057 _LT_TAGVAR(hardcode_direct, $1)=no 6058 ;; 6059 motorola) 6060 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6061 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6062 ;; 6063 esac 6064 runpath_var='LD_RUN_PATH' 6065 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6066 ;; 6067 6068 sysv4.3*) 6069 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6070 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6071 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6072 ;; 6073 6074 sysv4*MP*) 6075 if test -d /usr/nec; then 6076 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6077 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6078 runpath_var=LD_RUN_PATH 6079 hardcode_runpath_var=yes 6080 _LT_TAGVAR(ld_shlibs, $1)=yes 6081 fi 6082 ;; 6083 6084 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6085 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6086 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6087 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6088 runpath_var='LD_RUN_PATH' 6089 6090 if test yes = "$GCC"; then 6091 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6092 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6093 else 6094 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6095 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6096 fi 6097 ;; 6098 6099 sysv5* | sco3.2v5* | sco5v6*) 6100 # Note: We CANNOT use -z defs as we might desire, because we do not 6101 # link with -lc, and that would cause any symbols used from libc to 6102 # always be unresolved, which means just about no library would 6103 # ever link correctly. If we're not using GNU ld we use -z text 6104 # though, which does catch some bad symbols but isn't as heavy-handed 6105 # as -z defs. 6106 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 6107 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 6108 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6109 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 6111 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6112 _LT_TAGVAR(link_all_deplibs, $1)=yes 6113 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 6114 runpath_var='LD_RUN_PATH' 6115 6116 if test yes = "$GCC"; then 6117 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6118 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6119 else 6120 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6121 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6122 fi 6123 ;; 6124 6125 uts4*) 6126 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6127 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6128 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6129 ;; 6130 6131 *) 6132 _LT_TAGVAR(ld_shlibs, $1)=no 6133 ;; 6134 esac 6135 6136 if test sni = "$host_vendor"; then 6137 case $host in 6138 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6139 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' 6140 ;; 6141 esac 6142 fi 6143 fi 6144 ]) 6145 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 6146 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 6147 6148 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld 6149 6150 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl 6151 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl 6152 _LT_DECL([], [extract_expsyms_cmds], [2], 6153 [The commands to extract the exported symbol list from a shared archive]) 6154 6155 # 6156 # Do we need to explicitly link libc? 6157 # 6158 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in 6159 x|xyes) 6160 # Assume -lc should be added 6161 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6162 6163 if test yes,yes = "$GCC,$enable_shared"; then 6164 case $_LT_TAGVAR(archive_cmds, $1) in 6165 *'~'*) 6166 # FIXME: we may have to deal with multi-command sequences. 6167 ;; 6168 '$CC '*) 6169 # Test whether the compiler implicitly links with -lc since on some 6170 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6171 # to ld, don't add -lc before -lgcc. 6172 AC_CACHE_CHECK([whether -lc should be explicitly linked in], 6173 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), 6174 [$RM conftest* 6175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6176 6177 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6178 soname=conftest 6179 lib=conftest 6180 libobjs=conftest.$ac_objext 6181 deplibs= 6182 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) 6183 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) 6184 compiler_flags=-v 6185 linker_flags=-v 6186 verstring= 6187 output_objdir=. 6188 libname=conftest 6189 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) 6190 _LT_TAGVAR(allow_undefined_flag, $1)= 6191 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 6192 then 6193 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no 6194 else 6195 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6196 fi 6197 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6198 else 6199 cat conftest.err 1>&5 6200 fi 6201 $RM conftest* 6202 ]) 6203 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) 6204 ;; 6205 esac 6206 fi 6207 ;; 6208 esac 6209 6210 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], 6211 [Whether or not to add -lc for building shared libraries]) 6212 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], 6213 [enable_shared_with_static_runtimes], [0], 6214 [Whether or not to disallow shared libs when runtime libs are static]) 6215 _LT_TAGDECL([], [export_dynamic_flag_spec], [1], 6216 [Compiler flag to allow reflexive dlopens]) 6217 _LT_TAGDECL([], [whole_archive_flag_spec], [1], 6218 [Compiler flag to generate shared objects directly from archives]) 6219 _LT_TAGDECL([], [compiler_needs_object], [1], 6220 [Whether the compiler copes with passing no objects directly]) 6221 _LT_TAGDECL([], [old_archive_from_new_cmds], [2], 6222 [Create an old-style archive from a shared archive]) 6223 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], 6224 [Create a temporary old-style archive to link instead of a shared archive]) 6225 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) 6226 _LT_TAGDECL([], [archive_expsym_cmds], [2]) 6227 _LT_TAGDECL([], [module_cmds], [2], 6228 [Commands used to build a loadable module if different from building 6229 a shared archive.]) 6230 _LT_TAGDECL([], [module_expsym_cmds], [2]) 6231 _LT_TAGDECL([], [with_gnu_ld], [1], 6232 [Whether we are building with GNU ld or not]) 6233 _LT_TAGDECL([], [allow_undefined_flag], [1], 6234 [Flag that allows shared libraries with undefined symbols to be built]) 6235 _LT_TAGDECL([], [no_undefined_flag], [1], 6236 [Flag that enforces no undefined symbols]) 6237 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], 6238 [Flag to hardcode $libdir into a binary during linking. 6239 This must work even if $libdir does not exist]) 6240 _LT_TAGDECL([], [hardcode_libdir_separator], [1], 6241 [Whether we need a single "-rpath" flag with a separated argument]) 6242 _LT_TAGDECL([], [hardcode_direct], [0], 6243 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6244 DIR into the resulting binary]) 6245 _LT_TAGDECL([], [hardcode_direct_absolute], [0], 6246 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes 6247 DIR into the resulting binary and the resulting library dependency is 6248 "absolute", i.e impossible to change by setting $shlibpath_var if the 6249 library is relocated]) 6250 _LT_TAGDECL([], [hardcode_minus_L], [0], 6251 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR 6252 into the resulting binary]) 6253 _LT_TAGDECL([], [hardcode_shlibpath_var], [0], 6254 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 6255 into the resulting binary]) 6256 _LT_TAGDECL([], [hardcode_automatic], [0], 6257 [Set to "yes" if building a shared library automatically hardcodes DIR 6258 into the library and all subsequent libraries and executables linked 6259 against it]) 6260 _LT_TAGDECL([], [inherit_rpath], [0], 6261 [Set to yes if linker adds runtime paths of dependent libraries 6262 to runtime path list]) 6263 _LT_TAGDECL([], [link_all_deplibs], [0], 6264 [Whether libtool must link a program against all its dependency libraries]) 6265 _LT_TAGDECL([], [always_export_symbols], [0], 6266 [Set to "yes" if exported symbols are required]) 6267 _LT_TAGDECL([], [export_symbols_cmds], [2], 6268 [The commands to list exported symbols]) 6269 _LT_TAGDECL([], [exclude_expsyms], [1], 6270 [Symbols that should not be listed in the preloaded symbols]) 6271 _LT_TAGDECL([], [include_expsyms], [1], 6272 [Symbols that must always be exported]) 6273 _LT_TAGDECL([], [prelink_cmds], [2], 6274 [Commands necessary for linking programs (against libraries) with templates]) 6275 _LT_TAGDECL([], [postlink_cmds], [2], 6276 [Commands necessary for finishing linking programs]) 6277 _LT_TAGDECL([], [file_list_spec], [1], 6278 [Specify filename containing input files]) 6279 dnl FIXME: Not yet implemented 6280 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], 6281 dnl [Compiler flag to generate thread safe objects]) 6282 ])# _LT_LINKER_SHLIBS 6283 6284 6285 # _LT_LANG_C_CONFIG([TAG]) 6286 # ------------------------ 6287 # Ensure that the configuration variables for a C compiler are suitably 6288 # defined. These variables are subsequently used by _LT_CONFIG to write 6289 # the compiler configuration to 'libtool'. 6290 m4_defun([_LT_LANG_C_CONFIG], 6291 [m4_require([_LT_DECL_EGREP])dnl 6292 lt_save_CC=$CC 6293 AC_LANG_PUSH(C) 6294 6295 # Source file extension for C test sources. 6296 ac_ext=c 6297 6298 # Object file extension for compiled C test sources. 6299 objext=o 6300 _LT_TAGVAR(objext, $1)=$objext 6301 6302 # Code to be used in simple compile tests 6303 lt_simple_compile_test_code="int some_variable = 0;" 6304 6305 # Code to be used in simple link tests 6306 lt_simple_link_test_code='int main(){return(0);}' 6307 6308 _LT_TAG_COMPILER 6309 # Save the default compiler, since it gets overwritten when the other 6310 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6311 compiler_DEFAULT=$CC 6312 6313 # save warnings/boilerplate of simple test code 6314 _LT_COMPILER_BOILERPLATE 6315 _LT_LINKER_BOILERPLATE 6316 6317 if test -n "$compiler"; then 6318 _LT_COMPILER_NO_RTTI($1) 6319 _LT_COMPILER_PIC($1) 6320 _LT_COMPILER_C_O($1) 6321 _LT_COMPILER_FILE_LOCKS($1) 6322 _LT_LINKER_SHLIBS($1) 6323 _LT_SYS_DYNAMIC_LINKER($1) 6324 _LT_LINKER_HARDCODE_LIBPATH($1) 6325 LT_SYS_DLOPEN_SELF 6326 _LT_CMD_STRIPLIB 6327 6328 # Report what library types will actually be built 6329 AC_MSG_CHECKING([if libtool supports shared libraries]) 6330 AC_MSG_RESULT([$can_build_shared]) 6331 6332 AC_MSG_CHECKING([whether to build shared libraries]) 6333 test no = "$can_build_shared" && enable_shared=no 6334 6335 # On AIX, shared libraries and static libraries use the same namespace, and 6336 # are all built from PIC. 6337 case $host_os in 6338 aix3*) 6339 test yes = "$enable_shared" && enable_static=no 6340 if test -n "$RANLIB"; then 6341 archive_cmds="$archive_cmds~\$RANLIB \$lib" 6342 postinstall_cmds='$RANLIB $lib' 6343 fi 6344 ;; 6345 6346 aix[[4-9]]*) 6347 if test ia64 != "$host_cpu"; then 6348 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 6349 yes,aix,yes) ;; # shared object as lib.so file only 6350 yes,svr4,*) ;; # shared object as lib.so archive member only 6351 yes,*) enable_static=no ;; # shared object in lib.a archive as well 6352 esac 6353 fi 6354 ;; 6355 esac 6356 AC_MSG_RESULT([$enable_shared]) 6357 6358 AC_MSG_CHECKING([whether to build static libraries]) 6359 # Make sure either enable_shared or enable_static is yes. 6360 test yes = "$enable_shared" || enable_static=yes 6361 AC_MSG_RESULT([$enable_static]) 6362 6363 _LT_CONFIG($1) 6364 fi 6365 AC_LANG_POP 6366 CC=$lt_save_CC 6367 ])# _LT_LANG_C_CONFIG 6368 6369 6370 # _LT_LANG_CXX_CONFIG([TAG]) 6371 # -------------------------- 6372 # Ensure that the configuration variables for a C++ compiler are suitably 6373 # defined. These variables are subsequently used by _LT_CONFIG to write 6374 # the compiler configuration to 'libtool'. 6375 m4_defun([_LT_LANG_CXX_CONFIG], 6376 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 6377 m4_require([_LT_DECL_EGREP])dnl 6378 m4_require([_LT_PATH_MANIFEST_TOOL])dnl 6379 if test -n "$CXX" && ( test no != "$CXX" && 6380 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 6381 (test g++ != "$CXX"))); then 6382 AC_PROG_CXXCPP 6383 else 6384 _lt_caught_CXX_error=yes 6385 fi 6386 6387 AC_LANG_PUSH(C++) 6388 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6389 _LT_TAGVAR(allow_undefined_flag, $1)= 6390 _LT_TAGVAR(always_export_symbols, $1)=no 6391 _LT_TAGVAR(archive_expsym_cmds, $1)= 6392 _LT_TAGVAR(compiler_needs_object, $1)=no 6393 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 6394 _LT_TAGVAR(hardcode_direct, $1)=no 6395 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6396 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 6397 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6398 _LT_TAGVAR(hardcode_minus_L, $1)=no 6399 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6400 _LT_TAGVAR(hardcode_automatic, $1)=no 6401 _LT_TAGVAR(inherit_rpath, $1)=no 6402 _LT_TAGVAR(module_cmds, $1)= 6403 _LT_TAGVAR(module_expsym_cmds, $1)= 6404 _LT_TAGVAR(link_all_deplibs, $1)=unknown 6405 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 6406 _LT_TAGVAR(reload_flag, $1)=$reload_flag 6407 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 6408 _LT_TAGVAR(no_undefined_flag, $1)= 6409 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6410 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 6411 6412 # Source file extension for C++ test sources. 6413 ac_ext=cpp 6414 6415 # Object file extension for compiled C++ test sources. 6416 objext=o 6417 _LT_TAGVAR(objext, $1)=$objext 6418 6419 # No sense in running all these tests if we already determined that 6420 # the CXX compiler isn't working. Some variables (like enable_shared) 6421 # are currently assumed to apply to all compilers on this platform, 6422 # and will be corrupted by setting them based on a non-working compiler. 6423 if test yes != "$_lt_caught_CXX_error"; then 6424 # Code to be used in simple compile tests 6425 lt_simple_compile_test_code="int some_variable = 0;" 6426 6427 # Code to be used in simple link tests 6428 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 6429 6430 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 6431 _LT_TAG_COMPILER 6432 6433 # save warnings/boilerplate of simple test code 6434 _LT_COMPILER_BOILERPLATE 6435 _LT_LINKER_BOILERPLATE 6436 6437 # Allow CC to be a program name with arguments. 6438 lt_save_CC=$CC 6439 lt_save_CFLAGS=$CFLAGS 6440 lt_save_LD=$LD 6441 lt_save_GCC=$GCC 6442 GCC=$GXX 6443 lt_save_with_gnu_ld=$with_gnu_ld 6444 lt_save_path_LD=$lt_cv_path_LD 6445 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 6446 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 6447 else 6448 $as_unset lt_cv_prog_gnu_ld 6449 fi 6450 if test -n "${lt_cv_path_LDCXX+set}"; then 6451 lt_cv_path_LD=$lt_cv_path_LDCXX 6452 else 6453 $as_unset lt_cv_path_LD 6454 fi 6455 test -z "${LDCXX+set}" || LD=$LDCXX 6456 CC=${CXX-"c++"} 6457 CFLAGS=$CXXFLAGS 6458 compiler=$CC 6459 _LT_TAGVAR(compiler, $1)=$CC 6460 _LT_CC_BASENAME([$compiler]) 6461 6462 if test -n "$compiler"; then 6463 # We don't want -fno-exception when compiling C++ code, so set the 6464 # no_builtin_flag separately 6465 if test yes = "$GXX"; then 6466 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 6467 else 6468 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 6469 fi 6470 6471 if test yes = "$GXX"; then 6472 # Set up default GNU C++ configuration 6473 6474 LT_PATH_LD 6475 6476 # Check if GNU C++ uses GNU ld as the underlying linker, since the 6477 # archiving commands below assume that GNU ld is being used. 6478 if test yes = "$with_gnu_ld"; then 6479 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 6480 _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' 6481 6482 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 6483 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 6484 6485 # If archive_cmds runs LD, not CC, wlarc should be empty 6486 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 6487 # investigate it a little bit more. (MM) 6488 wlarc='$wl' 6489 6490 # ancient GNU ld didn't support --whole-archive et. al. 6491 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 6492 $GREP 'no-whole-archive' > /dev/null; then 6493 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 6494 else 6495 _LT_TAGVAR(whole_archive_flag_spec, $1)= 6496 fi 6497 else 6498 with_gnu_ld=no 6499 wlarc= 6500 6501 # A generic and very simple default shared library creation 6502 # command for GNU C++ for the case where it uses the native 6503 # linker, instead of GNU ld. If possible, this setting should 6504 # overridden to take advantage of the native linker features on 6505 # the platform it is being used on. 6506 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 6507 fi 6508 6509 # Commands to make compiler produce verbose output that lists 6510 # what "hidden" libraries, object files and flags are used when 6511 # linking a shared library. 6512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 6513 6514 else 6515 GXX=no 6516 with_gnu_ld=no 6517 wlarc= 6518 fi 6519 6520 # PORTME: fill in a description of your system's C++ link characteristics 6521 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 6522 _LT_TAGVAR(ld_shlibs, $1)=yes 6523 case $host_os in 6524 aix3*) 6525 # FIXME: insert proper C++ library support 6526 _LT_TAGVAR(ld_shlibs, $1)=no 6527 ;; 6528 aix[[4-9]]*) 6529 if test ia64 = "$host_cpu"; then 6530 # On IA64, the linker does run time linking by default, so we don't 6531 # have to do anything special. 6532 aix_use_runtimelinking=no 6533 exp_sym_flag='-Bexport' 6534 no_entry_flag= 6535 else 6536 aix_use_runtimelinking=no 6537 6538 # Test if we are trying to use run time linking or normal 6539 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6540 # have runtime linking enabled, and use it for executables. 6541 # For shared libraries, we enable/disable runtime linking 6542 # depending on the kind of the shared library created - 6543 # when "with_aix_soname,aix_use_runtimelinking" is: 6544 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 6545 # "aix,yes" lib.so shared, rtl:yes, for executables 6546 # lib.a static archive 6547 # "both,no" lib.so.V(shr.o) shared, rtl:yes 6548 # lib.a(lib.so.V) shared, rtl:no, for executables 6549 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 6550 # lib.a(lib.so.V) shared, rtl:no 6551 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 6552 # lib.a static archive 6553 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 6554 for ld_flag in $LDFLAGS; do 6555 case $ld_flag in 6556 *-brtl*) 6557 aix_use_runtimelinking=yes 6558 break 6559 ;; 6560 esac 6561 done 6562 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 6563 # With aix-soname=svr4, we create the lib.so.V shared archives only, 6564 # so we don't have lib.a shared libs to link our executables. 6565 # We have to force runtime linking in this case. 6566 aix_use_runtimelinking=yes 6567 LDFLAGS="$LDFLAGS -Wl,-brtl" 6568 fi 6569 ;; 6570 esac 6571 6572 exp_sym_flag='-bexport' 6573 no_entry_flag='-bnoentry' 6574 fi 6575 6576 # When large executables or shared objects are built, AIX ld can 6577 # have problems creating the table of contents. If linking a library 6578 # or program results in "error TOC overflow" add -mminimal-toc to 6579 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6580 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6581 6582 _LT_TAGVAR(archive_cmds, $1)='' 6583 _LT_TAGVAR(hardcode_direct, $1)=yes 6584 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6585 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 6586 _LT_TAGVAR(link_all_deplibs, $1)=yes 6587 _LT_TAGVAR(file_list_spec, $1)='$wl-f,' 6588 case $with_aix_soname,$aix_use_runtimelinking in 6589 aix,*) ;; # no import file 6590 svr4,* | *,yes) # use import file 6591 # The Import File defines what to hardcode. 6592 _LT_TAGVAR(hardcode_direct, $1)=no 6593 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 6594 ;; 6595 esac 6596 6597 if test yes = "$GXX"; then 6598 case $host_os in aix4.[[012]]|aix4.[[012]].*) 6599 # We only want to do this on AIX 4.2 and lower, the check 6600 # below for broken collect2 doesn't work under 4.3+ 6601 collect2name=`$CC -print-prog-name=collect2` 6602 if test -f "$collect2name" && 6603 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 6604 then 6605 # We have reworked collect2 6606 : 6607 else 6608 # We have old collect2 6609 _LT_TAGVAR(hardcode_direct, $1)=unsupported 6610 # It fails to find uninstalled libraries when the uninstalled 6611 # path is not listed in the libpath. Setting hardcode_minus_L 6612 # to unsupported forces relinking 6613 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6614 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6615 _LT_TAGVAR(hardcode_libdir_separator, $1)= 6616 fi 6617 esac 6618 shared_flag='-shared' 6619 if test yes = "$aix_use_runtimelinking"; then 6620 shared_flag=$shared_flag' $wl-G' 6621 fi 6622 # Need to ensure runtime linking is disabled for the traditional 6623 # shared library, or the linker may eventually find shared libraries 6624 # /with/ Import File - we do not want to mix them. 6625 shared_flag_aix='-shared' 6626 shared_flag_svr4='-shared $wl-G' 6627 else 6628 # not using gcc 6629 if test ia64 = "$host_cpu"; then 6630 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6631 # chokes on -Wl,-G. The following line is correct: 6632 shared_flag='-G' 6633 else 6634 if test yes = "$aix_use_runtimelinking"; then 6635 shared_flag='$wl-G' 6636 else 6637 shared_flag='$wl-bM:SRE' 6638 fi 6639 shared_flag_aix='$wl-bM:SRE' 6640 shared_flag_svr4='$wl-G' 6641 fi 6642 fi 6643 6644 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' 6645 # It seems that -bexpall does not export symbols beginning with 6646 # underscore (_), so it is better to generate a list of symbols to 6647 # export. 6648 _LT_TAGVAR(always_export_symbols, $1)=yes 6649 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 6650 # Warning - without using the other runtime loading flags (-brtl), 6651 # -berok will link without error, but may produce a broken library. 6652 # The "-G" linker flag allows undefined symbols. 6653 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' 6654 # Determine the default libpath from the value encoded in an empty 6655 # executable. 6656 _LT_SYS_MODULE_PATH_AIX([$1]) 6657 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6658 6659 _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 6660 else 6661 if test ia64 = "$host_cpu"; then 6662 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' 6663 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6664 _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" 6665 else 6666 # Determine the default libpath from the value encoded in an 6667 # empty executable. 6668 _LT_SYS_MODULE_PATH_AIX([$1]) 6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" 6670 # Warning - without using the other run time loading flags, 6671 # -berok will link without error, but may produce a broken library. 6672 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' 6673 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' 6674 if test yes = "$with_gnu_ld"; then 6675 # We only use this code for GNU lds that support --whole-archive. 6676 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 6677 else 6678 # Exported symbols can be pulled into shared objects from archives 6679 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 6680 fi 6681 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes 6682 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 6683 # -brtl affects multiple linker settings, -berok does not and is overridden later 6684 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' 6685 if test svr4 != "$with_aix_soname"; then 6686 # This is similar to how AIX traditionally builds its shared 6687 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 6688 _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' 6689 fi 6690 if test aix != "$with_aix_soname"; then 6691 _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' 6692 else 6693 # used by -dlpreopen to get the symbols 6694 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 6695 fi 6696 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' 6697 fi 6698 fi 6699 ;; 6700 6701 beos*) 6702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 6703 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6705 # support --undefined. This deserves some investigation. FIXME 6706 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6707 else 6708 _LT_TAGVAR(ld_shlibs, $1)=no 6709 fi 6710 ;; 6711 6712 chorus*) 6713 case $cc_basename in 6714 *) 6715 # FIXME: insert proper C++ library support 6716 _LT_TAGVAR(ld_shlibs, $1)=no 6717 ;; 6718 esac 6719 ;; 6720 6721 cygwin* | mingw* | pw32* | cegcc*) 6722 case $GXX,$cc_basename in 6723 ,cl* | no,cl* | ,icl* | no,icl*) 6724 # Native MSVC or ICC 6725 # hardcode_libdir_flag_spec is actually meaningless, as there is 6726 # no search path for DLLs. 6727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6728 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6729 _LT_TAGVAR(always_export_symbols, $1)=yes 6730 _LT_TAGVAR(file_list_spec, $1)='@' 6731 # Tell ltmain to make .lib files, not .a files. 6732 libext=lib 6733 # Tell ltmain to make .dll files, not .so files. 6734 shrext_cmds=.dll 6735 # FIXME: Setting linknames here is a bad hack. 6736 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 6737 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6738 cp "$export_symbols" "$output_objdir/$soname.def"; 6739 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 6740 else 6741 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 6742 fi~ 6743 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 6744 linknames=' 6745 # The linker will not automatically build a static lib if we build a DLL. 6746 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' 6747 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6748 # Don't use ranlib 6749 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' 6750 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ 6751 lt_tool_outputfile="@TOOL_OUTPUT@"~ 6752 case $lt_outputfile in 6753 *.exe|*.EXE) ;; 6754 *) 6755 lt_outputfile=$lt_outputfile.exe 6756 lt_tool_outputfile=$lt_tool_outputfile.exe 6757 ;; 6758 esac~ 6759 func_to_tool_file "$lt_outputfile"~ 6760 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 6761 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 6762 $RM "$lt_outputfile.manifest"; 6763 fi' 6764 ;; 6765 *) 6766 # g++ 6767 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 6768 # as there is no search path for DLLs. 6769 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6770 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' 6771 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6772 _LT_TAGVAR(always_export_symbols, $1)=no 6773 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6774 6775 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 6776 _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' 6777 # If the export-symbols file already is a .def file, use it as 6778 # is; otherwise, prepend EXPORTS... 6779 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then 6780 cp $export_symbols $output_objdir/$soname.def; 6781 else 6782 echo EXPORTS > $output_objdir/$soname.def; 6783 cat $export_symbols >> $output_objdir/$soname.def; 6784 fi~ 6785 $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' 6786 else 6787 _LT_TAGVAR(ld_shlibs, $1)=no 6788 fi 6789 ;; 6790 esac 6791 ;; 6792 darwin* | rhapsody*) 6793 _LT_DARWIN_LINKER_FEATURES($1) 6794 ;; 6795 6796 os2*) 6797 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6798 _LT_TAGVAR(hardcode_minus_L, $1)=yes 6799 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported 6800 shrext_cmds=.dll 6801 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6802 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6803 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6804 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6805 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 6806 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6807 emximp -o $lib $output_objdir/$libname.def' 6808 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 6809 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 6810 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 6811 $ECHO EXPORTS >> $output_objdir/$libname.def~ 6812 prefix_cmds="$SED"~ 6813 if test EXPORTS = "`$SED 1q $export_symbols`"; then 6814 prefix_cmds="$prefix_cmds -e 1d"; 6815 fi~ 6816 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 6817 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 6818 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 6819 emximp -o $lib $output_objdir/$libname.def' 6820 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 6821 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6822 _LT_TAGVAR(file_list_spec, $1)='@' 6823 ;; 6824 6825 dgux*) 6826 case $cc_basename in 6827 ec++*) 6828 # FIXME: insert proper C++ library support 6829 _LT_TAGVAR(ld_shlibs, $1)=no 6830 ;; 6831 ghcx*) 6832 # Green Hills C++ Compiler 6833 # FIXME: insert proper C++ library support 6834 _LT_TAGVAR(ld_shlibs, $1)=no 6835 ;; 6836 *) 6837 # FIXME: insert proper C++ library support 6838 _LT_TAGVAR(ld_shlibs, $1)=no 6839 ;; 6840 esac 6841 ;; 6842 6843 freebsd2.*) 6844 # C++ shared libraries reported to be fairly broken before 6845 # switch to ELF 6846 _LT_TAGVAR(ld_shlibs, $1)=no 6847 ;; 6848 6849 freebsd-elf*) 6850 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 6851 ;; 6852 6853 freebsd* | dragonfly* | midnightbsd*) 6854 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 6855 # conventions 6856 _LT_TAGVAR(ld_shlibs, $1)=yes 6857 ;; 6858 6859 haiku*) 6860 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 6861 _LT_TAGVAR(link_all_deplibs, $1)=yes 6862 ;; 6863 6864 hpux9*) 6865 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6866 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6867 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6868 _LT_TAGVAR(hardcode_direct, $1)=yes 6869 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6870 # but as the default 6871 # location of the library. 6872 6873 case $cc_basename in 6874 CC*) 6875 # FIXME: insert proper C++ library support 6876 _LT_TAGVAR(ld_shlibs, $1)=no 6877 ;; 6878 aCC*) 6879 _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' 6880 # Commands to make compiler produce verbose output that lists 6881 # what "hidden" libraries, object files and flags are used when 6882 # linking a shared library. 6883 # 6884 # There doesn't appear to be a way to prevent this compiler from 6885 # explicitly linking system object files so we need to strip them 6886 # from the output so that they don't get included in the library 6887 # dependencies. 6888 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"' 6889 ;; 6890 *) 6891 if test yes = "$GXX"; then 6892 _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' 6893 else 6894 # FIXME: insert proper C++ library support 6895 _LT_TAGVAR(ld_shlibs, $1)=no 6896 fi 6897 ;; 6898 esac 6899 ;; 6900 6901 hpux10*|hpux11*) 6902 if test no = "$with_gnu_ld"; then 6903 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' 6904 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 6905 6906 case $host_cpu in 6907 hppa*64*|ia64*) 6908 ;; 6909 *) 6910 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6911 ;; 6912 esac 6913 fi 6914 case $host_cpu in 6915 hppa*64*|ia64*) 6916 _LT_TAGVAR(hardcode_direct, $1)=no 6917 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6918 ;; 6919 *) 6920 _LT_TAGVAR(hardcode_direct, $1)=yes 6921 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 6922 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 6923 # but as the default 6924 # location of the library. 6925 ;; 6926 esac 6927 6928 case $cc_basename in 6929 CC*) 6930 # FIXME: insert proper C++ library support 6931 _LT_TAGVAR(ld_shlibs, $1)=no 6932 ;; 6933 aCC*) 6934 case $host_cpu in 6935 hppa*64*) 6936 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6937 ;; 6938 ia64*) 6939 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6940 ;; 6941 *) 6942 _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' 6943 ;; 6944 esac 6945 # Commands to make compiler produce verbose output that lists 6946 # what "hidden" libraries, object files and flags are used when 6947 # linking a shared library. 6948 # 6949 # There doesn't appear to be a way to prevent this compiler from 6950 # explicitly linking system object files so we need to strip them 6951 # from the output so that they don't get included in the library 6952 # dependencies. 6953 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"' 6954 ;; 6955 *) 6956 if test yes = "$GXX"; then 6957 if test no = "$with_gnu_ld"; then 6958 case $host_cpu in 6959 hppa*64*) 6960 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 6961 ;; 6962 ia64*) 6963 _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' 6964 ;; 6965 *) 6966 _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' 6967 ;; 6968 esac 6969 fi 6970 else 6971 # FIXME: insert proper C++ library support 6972 _LT_TAGVAR(ld_shlibs, $1)=no 6973 fi 6974 ;; 6975 esac 6976 ;; 6977 6978 interix[[3-9]]*) 6979 _LT_TAGVAR(hardcode_direct, $1)=no 6980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 6981 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 6982 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 6983 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 6984 # Instead, shared libraries are loaded at an image base (0x10000000 by 6985 # default) and relocated if they conflict, which is a slow very memory 6986 # consuming and fragmenting process. To avoid this, we pick a random, 6987 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 6988 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 6989 _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' 6990 _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' 6991 ;; 6992 irix5* | irix6*) 6993 case $cc_basename in 6994 CC*) 6995 # SGI C++ 6996 _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' 6997 6998 # Archives containing C++ object files must be created using 6999 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 7000 # necessary to make sure instantiated templates are included 7001 # in the archive. 7002 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 7003 ;; 7004 *) 7005 if test yes = "$GXX"; then 7006 if test no = "$with_gnu_ld"; then 7007 _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' 7008 else 7009 _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' 7010 fi 7011 fi 7012 _LT_TAGVAR(link_all_deplibs, $1)=yes 7013 ;; 7014 esac 7015 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7016 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7017 _LT_TAGVAR(inherit_rpath, $1)=yes 7018 ;; 7019 7020 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7021 case $cc_basename in 7022 KCC*) 7023 # Kuck and Associates, Inc. (KAI) C++ Compiler 7024 7025 # KCC will only create a shared library if the output file 7026 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7027 # to its proper name (with version) after linking. 7028 _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' 7029 _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' 7030 # Commands to make compiler produce verbose output that lists 7031 # what "hidden" libraries, object files and flags are used when 7032 # linking a shared library. 7033 # 7034 # There doesn't appear to be a way to prevent this compiler from 7035 # explicitly linking system object files so we need to strip them 7036 # from the output so that they don't get included in the library 7037 # dependencies. 7038 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"' 7039 7040 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7041 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7042 7043 # Archives containing C++ object files must be created using 7044 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 7045 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 7046 ;; 7047 icpc* | ecpc* ) 7048 # Intel C++ 7049 with_gnu_ld=yes 7050 # version 8.0 and above of icpc choke on multiply defined symbols 7051 # if we add $predep_objects and $postdep_objects, however 7.1 and 7052 # earlier do not add the objects themselves. 7053 case `$CC -V 2>&1` in 7054 *"Version 7."*) 7055 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7056 _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' 7057 ;; 7058 *) # Version 8.0 or newer 7059 tmp_idyn= 7060 case $host_cpu in 7061 ia64*) tmp_idyn=' -i_dynamic';; 7062 esac 7063 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7064 _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' 7065 ;; 7066 esac 7067 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7069 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7070 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' 7071 ;; 7072 pgCC* | pgcpp*) 7073 # Portland Group C++ compiler 7074 case `$CC -V` in 7075 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) 7076 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ 7077 rm -rf $tpldir~ 7078 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 7079 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 7080 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ 7081 rm -rf $tpldir~ 7082 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 7083 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 7084 $RANLIB $oldlib' 7085 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ 7086 rm -rf $tpldir~ 7087 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7088 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7089 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ 7090 rm -rf $tpldir~ 7091 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 7092 $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' 7093 ;; 7094 *) # Version 6 and above use weak symbols 7095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7096 _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' 7097 ;; 7098 esac 7099 7100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' 7101 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7102 _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' 7103 ;; 7104 cxx*) 7105 # Compaq C++ 7106 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 7107 _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' 7108 7109 runpath_var=LD_RUN_PATH 7110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7111 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7112 7113 # Commands to make compiler produce verbose output that lists 7114 # what "hidden" libraries, object files and flags are used when 7115 # linking a shared library. 7116 # 7117 # There doesn't appear to be a way to prevent this compiler from 7118 # explicitly linking system object files so we need to strip them 7119 # from the output so that they don't get included in the library 7120 # dependencies. 7121 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' 7122 ;; 7123 xl* | mpixl* | bgxl*) 7124 # IBM XL 8.0 on PPC, with GNU ld 7125 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7126 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' 7127 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 7128 if test yes = "$supports_anon_versioning"; then 7129 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ 7130 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7131 echo "local: *; };" >> $output_objdir/$libname.ver~ 7132 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 7133 fi 7134 ;; 7135 *) 7136 case `$CC -V 2>&1 | $SED 5q` in 7137 *Sun\ C*) 7138 # Sun C++ 5.9 7139 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7140 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7141 _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' 7142 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7143 _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' 7144 _LT_TAGVAR(compiler_needs_object, $1)=yes 7145 7146 # Not sure whether something based on 7147 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 7148 # would be better. 7149 output_verbose_link_cmd='func_echo_all' 7150 7151 # Archives containing C++ object files must be created using 7152 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7153 # necessary to make sure instantiated templates are included 7154 # in the archive. 7155 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7156 ;; 7157 esac 7158 ;; 7159 esac 7160 ;; 7161 7162 lynxos*) 7163 # FIXME: insert proper C++ library support 7164 _LT_TAGVAR(ld_shlibs, $1)=no 7165 ;; 7166 7167 m88k*) 7168 # FIXME: insert proper C++ library support 7169 _LT_TAGVAR(ld_shlibs, $1)=no 7170 ;; 7171 7172 mvs*) 7173 case $cc_basename in 7174 cxx*) 7175 # FIXME: insert proper C++ library support 7176 _LT_TAGVAR(ld_shlibs, $1)=no 7177 ;; 7178 *) 7179 # FIXME: insert proper C++ library support 7180 _LT_TAGVAR(ld_shlibs, $1)=no 7181 ;; 7182 esac 7183 ;; 7184 7185 netbsd*) 7186 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7187 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 7188 wlarc= 7189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7190 _LT_TAGVAR(hardcode_direct, $1)=yes 7191 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7192 fi 7193 # Workaround some broken pre-1.5 toolchains 7194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 7195 ;; 7196 7197 *nto* | *qnx*) 7198 _LT_TAGVAR(ld_shlibs, $1)=yes 7199 ;; 7200 7201 openbsd* | bitrig*) 7202 if test -f /usr/libexec/ld.so; then 7203 _LT_TAGVAR(hardcode_direct, $1)=yes 7204 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7205 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes 7206 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 7207 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 7209 _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' 7210 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' 7211 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 7212 fi 7213 output_verbose_link_cmd=func_echo_all 7214 else 7215 _LT_TAGVAR(ld_shlibs, $1)=no 7216 fi 7217 ;; 7218 7219 osf3* | osf4* | osf5*) 7220 case $cc_basename in 7221 KCC*) 7222 # Kuck and Associates, Inc. (KAI) C++ Compiler 7223 7224 # KCC will only create a shared library if the output file 7225 # ends with ".so" (or ".sl" for HP-UX), so rename the library 7226 # to its proper name (with version) after linking. 7227 _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' 7228 7229 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' 7230 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7231 7232 # Archives containing C++ object files must be created using 7233 # the KAI C++ compiler. 7234 case $host in 7235 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; 7236 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; 7237 esac 7238 ;; 7239 RCC*) 7240 # Rational C++ 2.4.1 7241 # FIXME: insert proper C++ library support 7242 _LT_TAGVAR(ld_shlibs, $1)=no 7243 ;; 7244 cxx*) 7245 case $host in 7246 osf3*) 7247 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7248 _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' 7249 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7250 ;; 7251 *) 7252 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 7253 _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' 7254 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 7255 echo "-hidden">> $lib.exp~ 7256 $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~ 7257 $RM $lib.exp' 7258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 7259 ;; 7260 esac 7261 7262 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7263 7264 # Commands to make compiler produce verbose output that lists 7265 # what "hidden" libraries, object files and flags are used when 7266 # linking a shared library. 7267 # 7268 # There doesn't appear to be a way to prevent this compiler from 7269 # explicitly linking system object files so we need to strip them 7270 # from the output so that they don't get included in the library 7271 # dependencies. 7272 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"' 7273 ;; 7274 *) 7275 if test yes,no = "$GXX,$with_gnu_ld"; then 7276 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' 7277 case $host in 7278 osf3*) 7279 _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' 7280 ;; 7281 *) 7282 _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' 7283 ;; 7284 esac 7285 7286 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' 7287 _LT_TAGVAR(hardcode_libdir_separator, $1)=: 7288 7289 # Commands to make compiler produce verbose output that lists 7290 # what "hidden" libraries, object files and flags are used when 7291 # linking a shared library. 7292 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7293 7294 else 7295 # FIXME: insert proper C++ library support 7296 _LT_TAGVAR(ld_shlibs, $1)=no 7297 fi 7298 ;; 7299 esac 7300 ;; 7301 7302 psos*) 7303 # FIXME: insert proper C++ library support 7304 _LT_TAGVAR(ld_shlibs, $1)=no 7305 ;; 7306 7307 sunos4*) 7308 case $cc_basename in 7309 CC*) 7310 # Sun C++ 4.x 7311 # FIXME: insert proper C++ library support 7312 _LT_TAGVAR(ld_shlibs, $1)=no 7313 ;; 7314 lcc*) 7315 # Lucid 7316 # FIXME: insert proper C++ library support 7317 _LT_TAGVAR(ld_shlibs, $1)=no 7318 ;; 7319 *) 7320 # FIXME: insert proper C++ library support 7321 _LT_TAGVAR(ld_shlibs, $1)=no 7322 ;; 7323 esac 7324 ;; 7325 7326 solaris*) 7327 case $cc_basename in 7328 CC* | sunCC*) 7329 # Sun C++ 4.2, 5.x and Centerline C++ 7330 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes 7331 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' 7332 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 7333 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7334 $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' 7335 7336 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 7337 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7338 case $host_os in 7339 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7340 *) 7341 # The compiler driver will combine and reorder linker options, 7342 # but understands '-z linker_flag'. 7343 # Supported since Solaris 2.6 (maybe 2.5.1?) 7344 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 7345 ;; 7346 esac 7347 _LT_TAGVAR(link_all_deplibs, $1)=yes 7348 7349 output_verbose_link_cmd='func_echo_all' 7350 7351 # Archives containing C++ object files must be created using 7352 # "CC -xar", where "CC" is the Sun C++ compiler. This is 7353 # necessary to make sure instantiated templates are included 7354 # in the archive. 7355 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 7356 ;; 7357 gcx*) 7358 # Green Hills C++ Compiler 7359 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7360 7361 # The C++ compiler must be used to create the archive. 7362 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 7363 ;; 7364 *) 7365 # GNU C++ compiler with Solaris linker 7366 if test yes,no = "$GXX,$with_gnu_ld"; then 7367 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' 7368 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 7369 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7370 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7371 $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' 7372 7373 # Commands to make compiler produce verbose output that lists 7374 # what "hidden" libraries, object files and flags are used when 7375 # linking a shared library. 7376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7377 else 7378 # g++ 2.7 appears to require '-G' NOT '-shared' on this 7379 # platform. 7380 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 7381 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7382 $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' 7383 7384 # Commands to make compiler produce verbose output that lists 7385 # what "hidden" libraries, object files and flags are used when 7386 # linking a shared library. 7387 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 7388 fi 7389 7390 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' 7391 case $host_os in 7392 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 7393 *) 7394 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 7395 ;; 7396 esac 7397 fi 7398 ;; 7399 esac 7400 ;; 7401 7402 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 7403 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7404 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7405 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7406 runpath_var='LD_RUN_PATH' 7407 7408 case $cc_basename in 7409 CC*) 7410 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7411 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7412 ;; 7413 *) 7414 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7415 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7416 ;; 7417 esac 7418 ;; 7419 7420 sysv5* | sco3.2v5* | sco5v6*) 7421 # Note: We CANNOT use -z defs as we might desire, because we do not 7422 # link with -lc, and that would cause any symbols used from libc to 7423 # always be unresolved, which means just about no library would 7424 # ever link correctly. If we're not using GNU ld we use -z text 7425 # though, which does catch some bad symbols but isn't as heavy-handed 7426 # as -z defs. 7427 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' 7428 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' 7429 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7430 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no 7431 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' 7432 _LT_TAGVAR(hardcode_libdir_separator, $1)=':' 7433 _LT_TAGVAR(link_all_deplibs, $1)=yes 7434 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' 7435 runpath_var='LD_RUN_PATH' 7436 7437 case $cc_basename in 7438 CC*) 7439 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7440 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7441 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ 7442 '"$_LT_TAGVAR(old_archive_cmds, $1)" 7443 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ 7444 '"$_LT_TAGVAR(reload_cmds, $1)" 7445 ;; 7446 *) 7447 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7448 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7449 ;; 7450 esac 7451 ;; 7452 7453 tandem*) 7454 case $cc_basename in 7455 NCC*) 7456 # NonStop-UX NCC 3.20 7457 # FIXME: insert proper C++ library support 7458 _LT_TAGVAR(ld_shlibs, $1)=no 7459 ;; 7460 *) 7461 # FIXME: insert proper C++ library support 7462 _LT_TAGVAR(ld_shlibs, $1)=no 7463 ;; 7464 esac 7465 ;; 7466 7467 vxworks*) 7468 # FIXME: insert proper C++ library support 7469 _LT_TAGVAR(ld_shlibs, $1)=no 7470 ;; 7471 7472 *) 7473 # FIXME: insert proper C++ library support 7474 _LT_TAGVAR(ld_shlibs, $1)=no 7475 ;; 7476 esac 7477 7478 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) 7479 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no 7480 7481 _LT_TAGVAR(GCC, $1)=$GXX 7482 _LT_TAGVAR(LD, $1)=$LD 7483 7484 ## CAVEAT EMPTOR: 7485 ## There is no encapsulation within the following macros, do not change 7486 ## the running order or otherwise move them around unless you know exactly 7487 ## what you are doing... 7488 _LT_SYS_HIDDEN_LIBDEPS($1) 7489 _LT_COMPILER_PIC($1) 7490 _LT_COMPILER_C_O($1) 7491 _LT_COMPILER_FILE_LOCKS($1) 7492 _LT_LINKER_SHLIBS($1) 7493 _LT_SYS_DYNAMIC_LINKER($1) 7494 _LT_LINKER_HARDCODE_LIBPATH($1) 7495 7496 _LT_CONFIG($1) 7497 fi # test -n "$compiler" 7498 7499 CC=$lt_save_CC 7500 CFLAGS=$lt_save_CFLAGS 7501 LDCXX=$LD 7502 LD=$lt_save_LD 7503 GCC=$lt_save_GCC 7504 with_gnu_ld=$lt_save_with_gnu_ld 7505 lt_cv_path_LDCXX=$lt_cv_path_LD 7506 lt_cv_path_LD=$lt_save_path_LD 7507 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 7508 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 7509 fi # test yes != "$_lt_caught_CXX_error" 7510 7511 AC_LANG_POP 7512 ])# _LT_LANG_CXX_CONFIG 7513 7514 7515 # _LT_FUNC_STRIPNAME_CNF 7516 # ---------------------- 7517 # func_stripname_cnf prefix suffix name 7518 # strip PREFIX and SUFFIX off of NAME. 7519 # PREFIX and SUFFIX must not contain globbing or regex special 7520 # characters, hashes, percent signs, but SUFFIX may contain a leading 7521 # dot (in which case that matches only a dot). 7522 # 7523 # This function is identical to the (non-XSI) version of func_stripname, 7524 # except this one can be used by m4 code that may be executed by configure, 7525 # rather than the libtool script. 7526 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl 7527 AC_REQUIRE([_LT_DECL_SED]) 7528 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) 7529 func_stripname_cnf () 7530 { 7531 case @S|@2 in 7532 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; 7533 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; 7534 esac 7535 } # func_stripname_cnf 7536 ])# _LT_FUNC_STRIPNAME_CNF 7537 7538 7539 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) 7540 # --------------------------------- 7541 # Figure out "hidden" library dependencies from verbose 7542 # compiler output when linking a shared library. 7543 # Parse the compiler output and extract the necessary 7544 # objects, libraries and library flags. 7545 m4_defun([_LT_SYS_HIDDEN_LIBDEPS], 7546 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl 7547 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl 7548 # Dependencies to place before and after the object being linked: 7549 _LT_TAGVAR(predep_objects, $1)= 7550 _LT_TAGVAR(postdep_objects, $1)= 7551 _LT_TAGVAR(predeps, $1)= 7552 _LT_TAGVAR(postdeps, $1)= 7553 _LT_TAGVAR(compiler_lib_search_path, $1)= 7554 7555 dnl we can't use the lt_simple_compile_test_code here, 7556 dnl because it contains code intended for an executable, 7557 dnl not a library. It's possible we should let each 7558 dnl tag define a new lt_????_link_test_code variable, 7559 dnl but it's only used here... 7560 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF 7561 int a; 7562 void foo (void) { a = 0; } 7563 _LT_EOF 7564 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF 7565 class Foo 7566 { 7567 public: 7568 Foo (void) { a = 0; } 7569 private: 7570 int a; 7571 }; 7572 _LT_EOF 7573 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF 7574 subroutine foo 7575 implicit none 7576 integer*4 a 7577 a=0 7578 return 7579 end 7580 _LT_EOF 7581 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF 7582 subroutine foo 7583 implicit none 7584 integer a 7585 a=0 7586 return 7587 end 7588 _LT_EOF 7589 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF 7590 public class foo { 7591 private int a; 7592 public void bar (void) { 7593 a = 0; 7594 } 7595 }; 7596 _LT_EOF 7597 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF 7598 package foo 7599 func foo() { 7600 } 7601 _LT_EOF 7602 ]) 7603 7604 _lt_libdeps_save_CFLAGS=$CFLAGS 7605 case "$CC $CFLAGS " in #( 7606 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 7607 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 7608 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 7609 esac 7610 7611 dnl Parse the compiler output and extract the necessary 7612 dnl objects, libraries and library flags. 7613 if AC_TRY_EVAL(ac_compile); then 7614 # Parse the compiler output and extract the necessary 7615 # objects, libraries and library flags. 7616 7617 # Sentinel used to keep track of whether or not we are before 7618 # the conftest object file. 7619 pre_test_object_deps_done=no 7620 7621 for p in `eval "$output_verbose_link_cmd"`; do 7622 case $prev$p in 7623 7624 -L* | -R* | -l*) 7625 # Some compilers place space between "-{L,R}" and the path. 7626 # Remove the space. 7627 if test x-L = "$p" || 7628 test x-R = "$p"; then 7629 prev=$p 7630 continue 7631 fi 7632 7633 # Expand the sysroot to ease extracting the directories later. 7634 if test -z "$prev"; then 7635 case $p in 7636 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 7637 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 7638 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 7639 esac 7640 fi 7641 case $p in 7642 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 7643 esac 7644 if test no = "$pre_test_object_deps_done"; then 7645 case $prev in 7646 -L | -R) 7647 # Internal compiler library paths should come after those 7648 # provided the user. The postdeps already come after the 7649 # user supplied libs so there is no need to process them. 7650 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then 7651 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p 7652 else 7653 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" 7654 fi 7655 ;; 7656 # The "-l" case would never come before the object being 7657 # linked, so don't bother handling this case. 7658 esac 7659 else 7660 if test -z "$_LT_TAGVAR(postdeps, $1)"; then 7661 _LT_TAGVAR(postdeps, $1)=$prev$p 7662 else 7663 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" 7664 fi 7665 fi 7666 prev= 7667 ;; 7668 7669 *.lto.$objext) ;; # Ignore GCC LTO objects 7670 *.$objext) 7671 # This assumes that the test object file only shows up 7672 # once in the compiler output. 7673 if test "$p" = "conftest.$objext"; then 7674 pre_test_object_deps_done=yes 7675 continue 7676 fi 7677 7678 if test no = "$pre_test_object_deps_done"; then 7679 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then 7680 _LT_TAGVAR(predep_objects, $1)=$p 7681 else 7682 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" 7683 fi 7684 else 7685 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then 7686 _LT_TAGVAR(postdep_objects, $1)=$p 7687 else 7688 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" 7689 fi 7690 fi 7691 ;; 7692 7693 *) ;; # Ignore the rest. 7694 7695 esac 7696 done 7697 7698 # Clean up. 7699 rm -f a.out a.exe 7700 else 7701 echo "libtool.m4: error: problem compiling $1 test program" 7702 fi 7703 7704 $RM -f confest.$objext 7705 CFLAGS=$_lt_libdeps_save_CFLAGS 7706 7707 # PORTME: override above test on systems where it is broken 7708 m4_if([$1], [CXX], 7709 [case $host_os in 7710 interix[[3-9]]*) 7711 # Interix 3.5 installs completely hosed .la files for C++, so rather than 7712 # hack all around it, let's just trust "g++" to DTRT. 7713 _LT_TAGVAR(predep_objects,$1)= 7714 _LT_TAGVAR(postdep_objects,$1)= 7715 _LT_TAGVAR(postdeps,$1)= 7716 ;; 7717 esac 7718 ]) 7719 7720 case " $_LT_TAGVAR(postdeps, $1) " in 7721 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; 7722 esac 7723 _LT_TAGVAR(compiler_lib_search_dirs, $1)= 7724 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then 7725 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` 7726 fi 7727 _LT_TAGDECL([], [compiler_lib_search_dirs], [1], 7728 [The directories searched by this compiler when creating a shared library]) 7729 _LT_TAGDECL([], [predep_objects], [1], 7730 [Dependencies to place before and after the objects being linked to 7731 create a shared library]) 7732 _LT_TAGDECL([], [postdep_objects], [1]) 7733 _LT_TAGDECL([], [predeps], [1]) 7734 _LT_TAGDECL([], [postdeps], [1]) 7735 _LT_TAGDECL([], [compiler_lib_search_path], [1], 7736 [The library search path used internally by the compiler when linking 7737 a shared library]) 7738 ])# _LT_SYS_HIDDEN_LIBDEPS 7739 7740 7741 # _LT_LANG_F77_CONFIG([TAG]) 7742 # -------------------------- 7743 # Ensure that the configuration variables for a Fortran 77 compiler are 7744 # suitably defined. These variables are subsequently used by _LT_CONFIG 7745 # to write the compiler configuration to 'libtool'. 7746 m4_defun([_LT_LANG_F77_CONFIG], 7747 [AC_LANG_PUSH(Fortran 77) 7748 if test -z "$F77" || test no = "$F77"; then 7749 _lt_disable_F77=yes 7750 fi 7751 7752 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7753 _LT_TAGVAR(allow_undefined_flag, $1)= 7754 _LT_TAGVAR(always_export_symbols, $1)=no 7755 _LT_TAGVAR(archive_expsym_cmds, $1)= 7756 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7757 _LT_TAGVAR(hardcode_direct, $1)=no 7758 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7760 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7761 _LT_TAGVAR(hardcode_minus_L, $1)=no 7762 _LT_TAGVAR(hardcode_automatic, $1)=no 7763 _LT_TAGVAR(inherit_rpath, $1)=no 7764 _LT_TAGVAR(module_cmds, $1)= 7765 _LT_TAGVAR(module_expsym_cmds, $1)= 7766 _LT_TAGVAR(link_all_deplibs, $1)=unknown 7767 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7768 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7769 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7770 _LT_TAGVAR(no_undefined_flag, $1)= 7771 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7772 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7773 7774 # Source file extension for f77 test sources. 7775 ac_ext=f 7776 7777 # Object file extension for compiled f77 test sources. 7778 objext=o 7779 _LT_TAGVAR(objext, $1)=$objext 7780 7781 # No sense in running all these tests if we already determined that 7782 # the F77 compiler isn't working. Some variables (like enable_shared) 7783 # are currently assumed to apply to all compilers on this platform, 7784 # and will be corrupted by setting them based on a non-working compiler. 7785 if test yes != "$_lt_disable_F77"; then 7786 # Code to be used in simple compile tests 7787 lt_simple_compile_test_code="\ 7788 subroutine t 7789 return 7790 end 7791 " 7792 7793 # Code to be used in simple link tests 7794 lt_simple_link_test_code="\ 7795 program t 7796 end 7797 " 7798 7799 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7800 _LT_TAG_COMPILER 7801 7802 # save warnings/boilerplate of simple test code 7803 _LT_COMPILER_BOILERPLATE 7804 _LT_LINKER_BOILERPLATE 7805 7806 # Allow CC to be a program name with arguments. 7807 lt_save_CC=$CC 7808 lt_save_GCC=$GCC 7809 lt_save_CFLAGS=$CFLAGS 7810 CC=${F77-"f77"} 7811 CFLAGS=$FFLAGS 7812 compiler=$CC 7813 _LT_TAGVAR(compiler, $1)=$CC 7814 _LT_CC_BASENAME([$compiler]) 7815 GCC=$G77 7816 if test -n "$compiler"; then 7817 AC_MSG_CHECKING([if libtool supports shared libraries]) 7818 AC_MSG_RESULT([$can_build_shared]) 7819 7820 AC_MSG_CHECKING([whether to build shared libraries]) 7821 test no = "$can_build_shared" && enable_shared=no 7822 7823 # On AIX, shared libraries and static libraries use the same namespace, and 7824 # are all built from PIC. 7825 case $host_os in 7826 aix3*) 7827 test yes = "$enable_shared" && enable_static=no 7828 if test -n "$RANLIB"; then 7829 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7830 postinstall_cmds='$RANLIB $lib' 7831 fi 7832 ;; 7833 aix[[4-9]]*) 7834 if test ia64 != "$host_cpu"; then 7835 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7836 yes,aix,yes) ;; # shared object as lib.so file only 7837 yes,svr4,*) ;; # shared object as lib.so archive member only 7838 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7839 esac 7840 fi 7841 ;; 7842 esac 7843 AC_MSG_RESULT([$enable_shared]) 7844 7845 AC_MSG_CHECKING([whether to build static libraries]) 7846 # Make sure either enable_shared or enable_static is yes. 7847 test yes = "$enable_shared" || enable_static=yes 7848 AC_MSG_RESULT([$enable_static]) 7849 7850 _LT_TAGVAR(GCC, $1)=$G77 7851 _LT_TAGVAR(LD, $1)=$LD 7852 7853 ## CAVEAT EMPTOR: 7854 ## There is no encapsulation within the following macros, do not change 7855 ## the running order or otherwise move them around unless you know exactly 7856 ## what you are doing... 7857 _LT_COMPILER_PIC($1) 7858 _LT_COMPILER_C_O($1) 7859 _LT_COMPILER_FILE_LOCKS($1) 7860 _LT_LINKER_SHLIBS($1) 7861 _LT_SYS_DYNAMIC_LINKER($1) 7862 _LT_LINKER_HARDCODE_LIBPATH($1) 7863 7864 _LT_CONFIG($1) 7865 fi # test -n "$compiler" 7866 7867 GCC=$lt_save_GCC 7868 CC=$lt_save_CC 7869 CFLAGS=$lt_save_CFLAGS 7870 fi # test yes != "$_lt_disable_F77" 7871 7872 AC_LANG_POP 7873 ])# _LT_LANG_F77_CONFIG 7874 7875 7876 # _LT_LANG_FC_CONFIG([TAG]) 7877 # ------------------------- 7878 # Ensure that the configuration variables for a Fortran compiler are 7879 # suitably defined. These variables are subsequently used by _LT_CONFIG 7880 # to write the compiler configuration to 'libtool'. 7881 m4_defun([_LT_LANG_FC_CONFIG], 7882 [AC_LANG_PUSH(Fortran) 7883 7884 if test -z "$FC" || test no = "$FC"; then 7885 _lt_disable_FC=yes 7886 fi 7887 7888 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 7889 _LT_TAGVAR(allow_undefined_flag, $1)= 7890 _LT_TAGVAR(always_export_symbols, $1)=no 7891 _LT_TAGVAR(archive_expsym_cmds, $1)= 7892 _LT_TAGVAR(export_dynamic_flag_spec, $1)= 7893 _LT_TAGVAR(hardcode_direct, $1)=no 7894 _LT_TAGVAR(hardcode_direct_absolute, $1)=no 7895 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= 7896 _LT_TAGVAR(hardcode_libdir_separator, $1)= 7897 _LT_TAGVAR(hardcode_minus_L, $1)=no 7898 _LT_TAGVAR(hardcode_automatic, $1)=no 7899 _LT_TAGVAR(inherit_rpath, $1)=no 7900 _LT_TAGVAR(module_cmds, $1)= 7901 _LT_TAGVAR(module_expsym_cmds, $1)= 7902 _LT_TAGVAR(link_all_deplibs, $1)=unknown 7903 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 7904 _LT_TAGVAR(reload_flag, $1)=$reload_flag 7905 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 7906 _LT_TAGVAR(no_undefined_flag, $1)= 7907 _LT_TAGVAR(whole_archive_flag_spec, $1)= 7908 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no 7909 7910 # Source file extension for fc test sources. 7911 ac_ext=${ac_fc_srcext-f} 7912 7913 # Object file extension for compiled fc test sources. 7914 objext=o 7915 _LT_TAGVAR(objext, $1)=$objext 7916 7917 # No sense in running all these tests if we already determined that 7918 # the FC compiler isn't working. Some variables (like enable_shared) 7919 # are currently assumed to apply to all compilers on this platform, 7920 # and will be corrupted by setting them based on a non-working compiler. 7921 if test yes != "$_lt_disable_FC"; then 7922 # Code to be used in simple compile tests 7923 lt_simple_compile_test_code="\ 7924 subroutine t 7925 return 7926 end 7927 " 7928 7929 # Code to be used in simple link tests 7930 lt_simple_link_test_code="\ 7931 program t 7932 end 7933 " 7934 7935 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 7936 _LT_TAG_COMPILER 7937 7938 # save warnings/boilerplate of simple test code 7939 _LT_COMPILER_BOILERPLATE 7940 _LT_LINKER_BOILERPLATE 7941 7942 # Allow CC to be a program name with arguments. 7943 lt_save_CC=$CC 7944 lt_save_GCC=$GCC 7945 lt_save_CFLAGS=$CFLAGS 7946 CC=${FC-"f95"} 7947 CFLAGS=$FCFLAGS 7948 compiler=$CC 7949 GCC=$ac_cv_fc_compiler_gnu 7950 7951 _LT_TAGVAR(compiler, $1)=$CC 7952 _LT_CC_BASENAME([$compiler]) 7953 7954 if test -n "$compiler"; then 7955 AC_MSG_CHECKING([if libtool supports shared libraries]) 7956 AC_MSG_RESULT([$can_build_shared]) 7957 7958 AC_MSG_CHECKING([whether to build shared libraries]) 7959 test no = "$can_build_shared" && enable_shared=no 7960 7961 # On AIX, shared libraries and static libraries use the same namespace, and 7962 # are all built from PIC. 7963 case $host_os in 7964 aix3*) 7965 test yes = "$enable_shared" && enable_static=no 7966 if test -n "$RANLIB"; then 7967 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7968 postinstall_cmds='$RANLIB $lib' 7969 fi 7970 ;; 7971 aix[[4-9]]*) 7972 if test ia64 != "$host_cpu"; then 7973 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 7974 yes,aix,yes) ;; # shared object as lib.so file only 7975 yes,svr4,*) ;; # shared object as lib.so archive member only 7976 yes,*) enable_static=no ;; # shared object in lib.a archive as well 7977 esac 7978 fi 7979 ;; 7980 esac 7981 AC_MSG_RESULT([$enable_shared]) 7982 7983 AC_MSG_CHECKING([whether to build static libraries]) 7984 # Make sure either enable_shared or enable_static is yes. 7985 test yes = "$enable_shared" || enable_static=yes 7986 AC_MSG_RESULT([$enable_static]) 7987 7988 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu 7989 _LT_TAGVAR(LD, $1)=$LD 7990 7991 ## CAVEAT EMPTOR: 7992 ## There is no encapsulation within the following macros, do not change 7993 ## the running order or otherwise move them around unless you know exactly 7994 ## what you are doing... 7995 _LT_SYS_HIDDEN_LIBDEPS($1) 7996 _LT_COMPILER_PIC($1) 7997 _LT_COMPILER_C_O($1) 7998 _LT_COMPILER_FILE_LOCKS($1) 7999 _LT_LINKER_SHLIBS($1) 8000 _LT_SYS_DYNAMIC_LINKER($1) 8001 _LT_LINKER_HARDCODE_LIBPATH($1) 8002 8003 _LT_CONFIG($1) 8004 fi # test -n "$compiler" 8005 8006 GCC=$lt_save_GCC 8007 CC=$lt_save_CC 8008 CFLAGS=$lt_save_CFLAGS 8009 fi # test yes != "$_lt_disable_FC" 8010 8011 AC_LANG_POP 8012 ])# _LT_LANG_FC_CONFIG 8013 8014 8015 # _LT_LANG_GCJ_CONFIG([TAG]) 8016 # -------------------------- 8017 # Ensure that the configuration variables for the GNU Java Compiler compiler 8018 # are suitably defined. These variables are subsequently used by _LT_CONFIG 8019 # to write the compiler configuration to 'libtool'. 8020 m4_defun([_LT_LANG_GCJ_CONFIG], 8021 [AC_REQUIRE([LT_PROG_GCJ])dnl 8022 AC_LANG_SAVE 8023 8024 # Source file extension for Java test sources. 8025 ac_ext=java 8026 8027 # Object file extension for compiled Java test sources. 8028 objext=o 8029 _LT_TAGVAR(objext, $1)=$objext 8030 8031 # Code to be used in simple compile tests 8032 lt_simple_compile_test_code="class foo {}" 8033 8034 # Code to be used in simple link tests 8035 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 8036 8037 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8038 _LT_TAG_COMPILER 8039 8040 # save warnings/boilerplate of simple test code 8041 _LT_COMPILER_BOILERPLATE 8042 _LT_LINKER_BOILERPLATE 8043 8044 # Allow CC to be a program name with arguments. 8045 lt_save_CC=$CC 8046 lt_save_CFLAGS=$CFLAGS 8047 lt_save_GCC=$GCC 8048 GCC=yes 8049 CC=${GCJ-"gcj"} 8050 CFLAGS=$GCJFLAGS 8051 compiler=$CC 8052 _LT_TAGVAR(compiler, $1)=$CC 8053 _LT_TAGVAR(LD, $1)=$LD 8054 _LT_CC_BASENAME([$compiler]) 8055 8056 # GCJ did not exist at the time GCC didn't implicitly link libc in. 8057 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8058 8059 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8060 _LT_TAGVAR(reload_flag, $1)=$reload_flag 8061 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8062 8063 if test -n "$compiler"; then 8064 _LT_COMPILER_NO_RTTI($1) 8065 _LT_COMPILER_PIC($1) 8066 _LT_COMPILER_C_O($1) 8067 _LT_COMPILER_FILE_LOCKS($1) 8068 _LT_LINKER_SHLIBS($1) 8069 _LT_LINKER_HARDCODE_LIBPATH($1) 8070 8071 _LT_CONFIG($1) 8072 fi 8073 8074 AC_LANG_RESTORE 8075 8076 GCC=$lt_save_GCC 8077 CC=$lt_save_CC 8078 CFLAGS=$lt_save_CFLAGS 8079 ])# _LT_LANG_GCJ_CONFIG 8080 8081 8082 # _LT_LANG_GO_CONFIG([TAG]) 8083 # -------------------------- 8084 # Ensure that the configuration variables for the GNU Go compiler 8085 # are suitably defined. These variables are subsequently used by _LT_CONFIG 8086 # to write the compiler configuration to 'libtool'. 8087 m4_defun([_LT_LANG_GO_CONFIG], 8088 [AC_REQUIRE([LT_PROG_GO])dnl 8089 AC_LANG_SAVE 8090 8091 # Source file extension for Go test sources. 8092 ac_ext=go 8093 8094 # Object file extension for compiled Go test sources. 8095 objext=o 8096 _LT_TAGVAR(objext, $1)=$objext 8097 8098 # Code to be used in simple compile tests 8099 lt_simple_compile_test_code="package main; func main() { }" 8100 8101 # Code to be used in simple link tests 8102 lt_simple_link_test_code='package main; func main() { }' 8103 8104 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8105 _LT_TAG_COMPILER 8106 8107 # save warnings/boilerplate of simple test code 8108 _LT_COMPILER_BOILERPLATE 8109 _LT_LINKER_BOILERPLATE 8110 8111 # Allow CC to be a program name with arguments. 8112 lt_save_CC=$CC 8113 lt_save_CFLAGS=$CFLAGS 8114 lt_save_GCC=$GCC 8115 GCC=yes 8116 CC=${GOC-"gccgo"} 8117 CFLAGS=$GOFLAGS 8118 compiler=$CC 8119 _LT_TAGVAR(compiler, $1)=$CC 8120 _LT_TAGVAR(LD, $1)=$LD 8121 _LT_CC_BASENAME([$compiler]) 8122 8123 # Go did not exist at the time GCC didn't implicitly link libc in. 8124 _LT_TAGVAR(archive_cmds_need_lc, $1)=no 8125 8126 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 8127 _LT_TAGVAR(reload_flag, $1)=$reload_flag 8128 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds 8129 8130 if test -n "$compiler"; then 8131 _LT_COMPILER_NO_RTTI($1) 8132 _LT_COMPILER_PIC($1) 8133 _LT_COMPILER_C_O($1) 8134 _LT_COMPILER_FILE_LOCKS($1) 8135 _LT_LINKER_SHLIBS($1) 8136 _LT_LINKER_HARDCODE_LIBPATH($1) 8137 8138 _LT_CONFIG($1) 8139 fi 8140 8141 AC_LANG_RESTORE 8142 8143 GCC=$lt_save_GCC 8144 CC=$lt_save_CC 8145 CFLAGS=$lt_save_CFLAGS 8146 ])# _LT_LANG_GO_CONFIG 8147 8148 8149 # _LT_LANG_RC_CONFIG([TAG]) 8150 # ------------------------- 8151 # Ensure that the configuration variables for the Windows resource compiler 8152 # are suitably defined. These variables are subsequently used by _LT_CONFIG 8153 # to write the compiler configuration to 'libtool'. 8154 m4_defun([_LT_LANG_RC_CONFIG], 8155 [AC_REQUIRE([LT_PROG_RC])dnl 8156 AC_LANG_SAVE 8157 8158 # Source file extension for RC test sources. 8159 ac_ext=rc 8160 8161 # Object file extension for compiled RC test sources. 8162 objext=o 8163 _LT_TAGVAR(objext, $1)=$objext 8164 8165 # Code to be used in simple compile tests 8166 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 8167 8168 # Code to be used in simple link tests 8169 lt_simple_link_test_code=$lt_simple_compile_test_code 8170 8171 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 8172 _LT_TAG_COMPILER 8173 8174 # save warnings/boilerplate of simple test code 8175 _LT_COMPILER_BOILERPLATE 8176 _LT_LINKER_BOILERPLATE 8177 8178 # Allow CC to be a program name with arguments. 8179 lt_save_CC=$CC 8180 lt_save_CFLAGS=$CFLAGS 8181 lt_save_GCC=$GCC 8182 GCC= 8183 CC=${RC-"windres"} 8184 CFLAGS= 8185 compiler=$CC 8186 _LT_TAGVAR(compiler, $1)=$CC 8187 _LT_CC_BASENAME([$compiler]) 8188 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 8189 8190 if test -n "$compiler"; then 8191 : 8192 _LT_CONFIG($1) 8193 fi 8194 8195 GCC=$lt_save_GCC 8196 AC_LANG_RESTORE 8197 CC=$lt_save_CC 8198 CFLAGS=$lt_save_CFLAGS 8199 ])# _LT_LANG_RC_CONFIG 8200 8201 8202 # LT_PROG_GCJ 8203 # ----------- 8204 AC_DEFUN([LT_PROG_GCJ], 8205 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], 8206 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], 8207 [AC_CHECK_TOOL(GCJ, gcj,) 8208 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" 8209 AC_SUBST(GCJFLAGS)])])[]dnl 8210 ]) 8211 8212 # Old name: 8213 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) 8214 dnl aclocal-1.4 backwards compatibility: 8215 dnl AC_DEFUN([LT_AC_PROG_GCJ], []) 8216 8217 8218 # LT_PROG_GO 8219 # ---------- 8220 AC_DEFUN([LT_PROG_GO], 8221 [AC_CHECK_TOOL(GOC, gccgo,) 8222 ]) 8223 8224 8225 # LT_PROG_RC 8226 # ---------- 8227 AC_DEFUN([LT_PROG_RC], 8228 [AC_CHECK_TOOL(RC, windres,) 8229 ]) 8230 8231 # Old name: 8232 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) 8233 dnl aclocal-1.4 backwards compatibility: 8234 dnl AC_DEFUN([LT_AC_PROG_RC], []) 8235 8236 8237 # _LT_DECL_EGREP 8238 # -------------- 8239 # If we don't have a new enough Autoconf to choose the best grep 8240 # available, choose the one first in the user's PATH. 8241 m4_defun([_LT_DECL_EGREP], 8242 [AC_REQUIRE([AC_PROG_EGREP])dnl 8243 AC_REQUIRE([AC_PROG_FGREP])dnl 8244 test -z "$GREP" && GREP=grep 8245 _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) 8246 _LT_DECL([], [EGREP], [1], [An ERE matcher]) 8247 _LT_DECL([], [FGREP], [1], [A literal string matcher]) 8248 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too 8249 AC_SUBST([GREP]) 8250 ]) 8251 8252 8253 # _LT_DECL_OBJDUMP 8254 # -------------- 8255 # If we don't have a new enough Autoconf to choose the best objdump 8256 # available, choose the one first in the user's PATH. 8257 m4_defun([_LT_DECL_OBJDUMP], 8258 [AC_CHECK_TOOL(OBJDUMP, objdump, false) 8259 test -z "$OBJDUMP" && OBJDUMP=objdump 8260 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) 8261 AC_SUBST([OBJDUMP]) 8262 ]) 8263 8264 # _LT_DECL_DLLTOOL 8265 # ---------------- 8266 # Ensure DLLTOOL variable is set. 8267 m4_defun([_LT_DECL_DLLTOOL], 8268 [AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8269 test -z "$DLLTOOL" && DLLTOOL=dlltool 8270 _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) 8271 AC_SUBST([DLLTOOL]) 8272 ]) 8273 8274 # _LT_DECL_FILECMD 8275 # ---------------- 8276 # Check for a file(cmd) program that can be used to detect file type and magic 8277 m4_defun([_LT_DECL_FILECMD], 8278 [AC_CHECK_TOOL([FILECMD], [file], [:]) 8279 _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) 8280 ])# _LD_DECL_FILECMD 8281 8282 # _LT_DECL_SED 8283 # ------------ 8284 # Check for a fully-functional sed program, that truncates 8285 # as few characters as possible. Prefer GNU sed if found. 8286 m4_defun([_LT_DECL_SED], 8287 [AC_PROG_SED 8288 test -z "$SED" && SED=sed 8289 Xsed="$SED -e 1s/^X//" 8290 _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) 8291 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], 8292 [Sed that helps us avoid accidentally triggering echo(1) options like -n]) 8293 ])# _LT_DECL_SED 8294 8295 m4_ifndef([AC_PROG_SED], [ 8296 # NOTE: This macro has been submitted for inclusion into # 8297 # GNU Autoconf as AC_PROG_SED. When it is available in # 8298 # a released version of Autoconf we should remove this # 8299 # macro and use it instead. # 8300 8301 m4_defun([AC_PROG_SED], 8302 [AC_MSG_CHECKING([for a sed that does not truncate output]) 8303 AC_CACHE_VAL(lt_cv_path_SED, 8304 [# Loop through the user's path and test for sed and gsed. 8305 # Then use that list of sed's as ones to test for truncation. 8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8307 for as_dir in $PATH 8308 do 8309 IFS=$as_save_IFS 8310 test -z "$as_dir" && as_dir=. 8311 for lt_ac_prog in sed gsed; do 8312 for ac_exec_ext in '' $ac_executable_extensions; do 8313 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 8314 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 8315 fi 8316 done 8317 done 8318 done 8319 IFS=$as_save_IFS 8320 lt_ac_max=0 8321 lt_ac_count=0 8322 # Add /usr/xpg4/bin/sed as it is typically found on Solaris 8323 # along with /bin/sed that truncates output. 8324 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 8325 test ! -f "$lt_ac_sed" && continue 8326 cat /dev/null > conftest.in 8327 lt_ac_count=0 8328 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 8329 # Check for GNU sed and select it if it is found. 8330 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 8331 lt_cv_path_SED=$lt_ac_sed 8332 break 8333 fi 8334 while true; do 8335 cat conftest.in conftest.in >conftest.tmp 8336 mv conftest.tmp conftest.in 8337 cp conftest.in conftest.nl 8338 echo >>conftest.nl 8339 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 8340 cmp -s conftest.out conftest.nl || break 8341 # 10000 chars as input seems more than enough 8342 test 10 -lt "$lt_ac_count" && break 8343 lt_ac_count=`expr $lt_ac_count + 1` 8344 if test "$lt_ac_count" -gt "$lt_ac_max"; then 8345 lt_ac_max=$lt_ac_count 8346 lt_cv_path_SED=$lt_ac_sed 8347 fi 8348 done 8349 done 8350 ]) 8351 SED=$lt_cv_path_SED 8352 AC_SUBST([SED]) 8353 AC_MSG_RESULT([$SED]) 8354 ])#AC_PROG_SED 8355 ])#m4_ifndef 8356 8357 # Old name: 8358 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) 8359 dnl aclocal-1.4 backwards compatibility: 8360 dnl AC_DEFUN([LT_AC_PROG_SED], []) 8361 8362 8363 # _LT_CHECK_SHELL_FEATURES 8364 # ------------------------ 8365 # Find out whether the shell is Bourne or XSI compatible, 8366 # or has some other useful features. 8367 m4_defun([_LT_CHECK_SHELL_FEATURES], 8368 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8369 lt_unset=unset 8370 else 8371 lt_unset=false 8372 fi 8373 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl 8374 8375 # test EBCDIC or ASCII 8376 case `echo X|tr X '\101'` in 8377 A) # ASCII based system 8378 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 8379 lt_SP2NL='tr \040 \012' 8380 lt_NL2SP='tr \015\012 \040\040' 8381 ;; 8382 *) # EBCDIC based system 8383 lt_SP2NL='tr \100 \n' 8384 lt_NL2SP='tr \r\n \100\100' 8385 ;; 8386 esac 8387 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl 8388 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl 8389 ])# _LT_CHECK_SHELL_FEATURES 8390 8391 8392 # _LT_PATH_CONVERSION_FUNCTIONS 8393 # ----------------------------- 8394 # Determine what file name conversion functions should be used by 8395 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed 8396 # for certain cross-compile configurations and native mingw. 8397 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], 8398 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 8399 AC_REQUIRE([AC_CANONICAL_BUILD])dnl 8400 AC_MSG_CHECKING([how to convert $build file names to $host format]) 8401 AC_CACHE_VAL(lt_cv_to_host_file_cmd, 8402 [case $host in 8403 *-*-mingw* ) 8404 case $build in 8405 *-*-mingw* ) # actually msys 8406 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 8407 ;; 8408 *-*-cygwin* ) 8409 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 8410 ;; 8411 * ) # otherwise, assume *nix 8412 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 8413 ;; 8414 esac 8415 ;; 8416 *-*-cygwin* ) 8417 case $build in 8418 *-*-mingw* ) # actually msys 8419 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 8420 ;; 8421 *-*-cygwin* ) 8422 lt_cv_to_host_file_cmd=func_convert_file_noop 8423 ;; 8424 * ) # otherwise, assume *nix 8425 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 8426 ;; 8427 esac 8428 ;; 8429 * ) # unhandled hosts (and "normal" native builds) 8430 lt_cv_to_host_file_cmd=func_convert_file_noop 8431 ;; 8432 esac 8433 ]) 8434 to_host_file_cmd=$lt_cv_to_host_file_cmd 8435 AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) 8436 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], 8437 [0], [convert $build file names to $host format])dnl 8438 8439 AC_MSG_CHECKING([how to convert $build file names to toolchain format]) 8440 AC_CACHE_VAL(lt_cv_to_tool_file_cmd, 8441 [#assume ordinary cross tools, or native build. 8442 lt_cv_to_tool_file_cmd=func_convert_file_noop 8443 case $host in 8444 *-*-mingw* ) 8445 case $build in 8446 *-*-mingw* ) # actually msys 8447 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 8448 ;; 8449 esac 8450 ;; 8451 esac 8452 ]) 8453 to_tool_file_cmd=$lt_cv_to_tool_file_cmd 8454 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) 8455 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], 8456 [0], [convert $build files to toolchain format])dnl 8457 ])# _LT_PATH_CONVERSION_FUNCTIONS 8458 8459 # Helper functions for option handling. -*- Autoconf -*- 8460 # 8461 # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free 8462 # Software Foundation, Inc. 8463 # Written by Gary V. Vaughan, 2004 8464 # 8465 # This file is free software; the Free Software Foundation gives 8466 # unlimited permission to copy and/or distribute it, with or without 8467 # modifications, as long as this notice is preserved. 8468 8469 # serial 8 ltoptions.m4 8470 8471 # This is to help aclocal find these macros, as it can't see m4_define. 8472 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) 8473 8474 8475 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) 8476 # ------------------------------------------ 8477 m4_define([_LT_MANGLE_OPTION], 8478 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) 8479 8480 8481 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) 8482 # --------------------------------------- 8483 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a 8484 # matching handler defined, dispatch to it. Other OPTION-NAMEs are 8485 # saved as a flag. 8486 m4_define([_LT_SET_OPTION], 8487 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl 8488 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), 8489 _LT_MANGLE_DEFUN([$1], [$2]), 8490 [m4_warning([Unknown $1 option '$2'])])[]dnl 8491 ]) 8492 8493 8494 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) 8495 # ------------------------------------------------------------ 8496 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 8497 m4_define([_LT_IF_OPTION], 8498 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) 8499 8500 8501 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) 8502 # ------------------------------------------------------- 8503 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME 8504 # are set. 8505 m4_define([_LT_UNLESS_OPTIONS], 8506 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8507 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), 8508 [m4_define([$0_found])])])[]dnl 8509 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 8510 ])[]dnl 8511 ]) 8512 8513 8514 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) 8515 # ---------------------------------------- 8516 # OPTION-LIST is a space-separated list of Libtool options associated 8517 # with MACRO-NAME. If any OPTION has a matching handler declared with 8518 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about 8519 # the unknown option and exit. 8520 m4_defun([_LT_SET_OPTIONS], 8521 [# Set options 8522 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), 8523 [_LT_SET_OPTION([$1], _LT_Option)]) 8524 8525 m4_if([$1],[LT_INIT],[ 8526 dnl 8527 dnl Simply set some default values (i.e off) if boolean options were not 8528 dnl specified: 8529 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no 8530 ]) 8531 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no 8532 ]) 8533 dnl 8534 dnl If no reference was made to various pairs of opposing options, then 8535 dnl we run the default mode handler for the pair. For example, if neither 8536 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared 8537 dnl archives by default: 8538 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) 8539 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) 8540 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) 8541 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], 8542 [_LT_ENABLE_FAST_INSTALL]) 8543 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], 8544 [_LT_WITH_AIX_SONAME([aix])]) 8545 ]) 8546 ])# _LT_SET_OPTIONS 8547 8548 8549 8550 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) 8551 # ----------------------------------------- 8552 m4_define([_LT_MANGLE_DEFUN], 8553 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) 8554 8555 8556 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) 8557 # ----------------------------------------------- 8558 m4_define([LT_OPTION_DEFINE], 8559 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl 8560 ])# LT_OPTION_DEFINE 8561 8562 8563 # dlopen 8564 # ------ 8565 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes 8566 ]) 8567 8568 AU_DEFUN([AC_LIBTOOL_DLOPEN], 8569 [_LT_SET_OPTION([LT_INIT], [dlopen]) 8570 AC_DIAGNOSE([obsolete], 8571 [$0: Remove this warning and the call to _LT_SET_OPTION when you 8572 put the 'dlopen' option into LT_INIT's first parameter.]) 8573 ]) 8574 8575 dnl aclocal-1.4 backwards compatibility: 8576 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) 8577 8578 8579 # win32-dll 8580 # --------- 8581 # Declare package support for building win32 dll's. 8582 LT_OPTION_DEFINE([LT_INIT], [win32-dll], 8583 [enable_win32_dll=yes 8584 8585 case $host in 8586 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8587 AC_CHECK_TOOL(AS, as, false) 8588 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 8589 AC_CHECK_TOOL(OBJDUMP, objdump, false) 8590 ;; 8591 esac 8592 8593 test -z "$AS" && AS=as 8594 _LT_DECL([], [AS], [1], [Assembler program])dnl 8595 8596 test -z "$DLLTOOL" && DLLTOOL=dlltool 8597 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl 8598 8599 test -z "$OBJDUMP" && OBJDUMP=objdump 8600 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl 8601 ])# win32-dll 8602 8603 AU_DEFUN([AC_LIBTOOL_WIN32_DLL], 8604 [AC_REQUIRE([AC_CANONICAL_HOST])dnl 8605 _LT_SET_OPTION([LT_INIT], [win32-dll]) 8606 AC_DIAGNOSE([obsolete], 8607 [$0: Remove this warning and the call to _LT_SET_OPTION when you 8608 put the 'win32-dll' option into LT_INIT's first parameter.]) 8609 ]) 8610 8611 dnl aclocal-1.4 backwards compatibility: 8612 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) 8613 8614 8615 # _LT_ENABLE_SHARED([DEFAULT]) 8616 # ---------------------------- 8617 # implement the --enable-shared flag, and supports the 'shared' and 8618 # 'disable-shared' LT_INIT options. 8619 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8620 m4_define([_LT_ENABLE_SHARED], 8621 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl 8622 AC_ARG_ENABLE([shared], 8623 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 8624 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], 8625 [p=${PACKAGE-default} 8626 case $enableval in 8627 yes) enable_shared=yes ;; 8628 no) enable_shared=no ;; 8629 *) 8630 enable_shared=no 8631 # Look at the argument we got. We use all the common list separators. 8632 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8633 for pkg in $enableval; do 8634 IFS=$lt_save_ifs 8635 if test "X$pkg" = "X$p"; then 8636 enable_shared=yes 8637 fi 8638 done 8639 IFS=$lt_save_ifs 8640 ;; 8641 esac], 8642 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) 8643 8644 _LT_DECL([build_libtool_libs], [enable_shared], [0], 8645 [Whether or not to build shared libraries]) 8646 ])# _LT_ENABLE_SHARED 8647 8648 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) 8649 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) 8650 8651 # Old names: 8652 AC_DEFUN([AC_ENABLE_SHARED], 8653 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) 8654 ]) 8655 8656 AC_DEFUN([AC_DISABLE_SHARED], 8657 [_LT_SET_OPTION([LT_INIT], [disable-shared]) 8658 ]) 8659 8660 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 8661 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 8662 8663 dnl aclocal-1.4 backwards compatibility: 8664 dnl AC_DEFUN([AM_ENABLE_SHARED], []) 8665 dnl AC_DEFUN([AM_DISABLE_SHARED], []) 8666 8667 8668 8669 # _LT_ENABLE_STATIC([DEFAULT]) 8670 # ---------------------------- 8671 # implement the --enable-static flag, and support the 'static' and 8672 # 'disable-static' LT_INIT options. 8673 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8674 m4_define([_LT_ENABLE_STATIC], 8675 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl 8676 AC_ARG_ENABLE([static], 8677 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], 8678 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], 8679 [p=${PACKAGE-default} 8680 case $enableval in 8681 yes) enable_static=yes ;; 8682 no) enable_static=no ;; 8683 *) 8684 enable_static=no 8685 # Look at the argument we got. We use all the common list separators. 8686 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8687 for pkg in $enableval; do 8688 IFS=$lt_save_ifs 8689 if test "X$pkg" = "X$p"; then 8690 enable_static=yes 8691 fi 8692 done 8693 IFS=$lt_save_ifs 8694 ;; 8695 esac], 8696 [enable_static=]_LT_ENABLE_STATIC_DEFAULT) 8697 8698 _LT_DECL([build_old_libs], [enable_static], [0], 8699 [Whether or not to build static libraries]) 8700 ])# _LT_ENABLE_STATIC 8701 8702 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) 8703 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) 8704 8705 # Old names: 8706 AC_DEFUN([AC_ENABLE_STATIC], 8707 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) 8708 ]) 8709 8710 AC_DEFUN([AC_DISABLE_STATIC], 8711 [_LT_SET_OPTION([LT_INIT], [disable-static]) 8712 ]) 8713 8714 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 8715 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 8716 8717 dnl aclocal-1.4 backwards compatibility: 8718 dnl AC_DEFUN([AM_ENABLE_STATIC], []) 8719 dnl AC_DEFUN([AM_DISABLE_STATIC], []) 8720 8721 8722 8723 # _LT_ENABLE_FAST_INSTALL([DEFAULT]) 8724 # ---------------------------------- 8725 # implement the --enable-fast-install flag, and support the 'fast-install' 8726 # and 'disable-fast-install' LT_INIT options. 8727 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. 8728 m4_define([_LT_ENABLE_FAST_INSTALL], 8729 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl 8730 AC_ARG_ENABLE([fast-install], 8731 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 8732 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 8733 [p=${PACKAGE-default} 8734 case $enableval in 8735 yes) enable_fast_install=yes ;; 8736 no) enable_fast_install=no ;; 8737 *) 8738 enable_fast_install=no 8739 # Look at the argument we got. We use all the common list separators. 8740 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8741 for pkg in $enableval; do 8742 IFS=$lt_save_ifs 8743 if test "X$pkg" = "X$p"; then 8744 enable_fast_install=yes 8745 fi 8746 done 8747 IFS=$lt_save_ifs 8748 ;; 8749 esac], 8750 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) 8751 8752 _LT_DECL([fast_install], [enable_fast_install], [0], 8753 [Whether or not to optimize for fast installation])dnl 8754 ])# _LT_ENABLE_FAST_INSTALL 8755 8756 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) 8757 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) 8758 8759 # Old names: 8760 AU_DEFUN([AC_ENABLE_FAST_INSTALL], 8761 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) 8762 AC_DIAGNOSE([obsolete], 8763 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 8764 the 'fast-install' option into LT_INIT's first parameter.]) 8765 ]) 8766 8767 AU_DEFUN([AC_DISABLE_FAST_INSTALL], 8768 [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) 8769 AC_DIAGNOSE([obsolete], 8770 [$0: Remove this warning and the call to _LT_SET_OPTION when you put 8771 the 'disable-fast-install' option into LT_INIT's first parameter.]) 8772 ]) 8773 8774 dnl aclocal-1.4 backwards compatibility: 8775 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) 8776 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) 8777 8778 8779 # _LT_WITH_AIX_SONAME([DEFAULT]) 8780 # ---------------------------------- 8781 # implement the --with-aix-soname flag, and support the `aix-soname=aix' 8782 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT 8783 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. 8784 m4_define([_LT_WITH_AIX_SONAME], 8785 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl 8786 shared_archive_member_spec= 8787 case $host,$enable_shared in 8788 power*-*-aix[[5-9]]*,yes) 8789 AC_MSG_CHECKING([which variant of shared library versioning to provide]) 8790 AC_ARG_WITH([aix-soname], 8791 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], 8792 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], 8793 [case $withval in 8794 aix|svr4|both) 8795 ;; 8796 *) 8797 AC_MSG_ERROR([Unknown argument to --with-aix-soname]) 8798 ;; 8799 esac 8800 lt_cv_with_aix_soname=$with_aix_soname], 8801 [AC_CACHE_VAL([lt_cv_with_aix_soname], 8802 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) 8803 with_aix_soname=$lt_cv_with_aix_soname]) 8804 AC_MSG_RESULT([$with_aix_soname]) 8805 if test aix != "$with_aix_soname"; then 8806 # For the AIX way of multilib, we name the shared archive member 8807 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8808 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8809 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8810 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8811 if test 64 = "${OBJECT_MODE-32}"; then 8812 shared_archive_member_spec=shr_64 8813 else 8814 shared_archive_member_spec=shr 8815 fi 8816 fi 8817 ;; 8818 *) 8819 with_aix_soname=aix 8820 ;; 8821 esac 8822 8823 _LT_DECL([], [shared_archive_member_spec], [0], 8824 [Shared archive member basename, for filename based shared library versioning on AIX])dnl 8825 ])# _LT_WITH_AIX_SONAME 8826 8827 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) 8828 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) 8829 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) 8830 8831 8832 # _LT_WITH_PIC([MODE]) 8833 # -------------------- 8834 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic' 8835 # LT_INIT options. 8836 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. 8837 m4_define([_LT_WITH_PIC], 8838 [AC_ARG_WITH([pic], 8839 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], 8840 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 8841 [lt_p=${PACKAGE-default} 8842 case $withval in 8843 yes|no) pic_mode=$withval ;; 8844 *) 8845 pic_mode=default 8846 # Look at the argument we got. We use all the common list separators. 8847 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8848 for lt_pkg in $withval; do 8849 IFS=$lt_save_ifs 8850 if test "X$lt_pkg" = "X$lt_p"; then 8851 pic_mode=yes 8852 fi 8853 done 8854 IFS=$lt_save_ifs 8855 ;; 8856 esac], 8857 [pic_mode=m4_default([$1], [default])]) 8858 8859 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl 8860 ])# _LT_WITH_PIC 8861 8862 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) 8863 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) 8864 8865 # Old name: 8866 AU_DEFUN([AC_LIBTOOL_PICMODE], 8867 [_LT_SET_OPTION([LT_INIT], [pic-only]) 8868 AC_DIAGNOSE([obsolete], 8869 [$0: Remove this warning and the call to _LT_SET_OPTION when you 8870 put the 'pic-only' option into LT_INIT's first parameter.]) 8871 ]) 8872 8873 dnl aclocal-1.4 backwards compatibility: 8874 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) 8875 8876 8877 m4_define([_LTDL_MODE], []) 8878 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], 8879 [m4_define([_LTDL_MODE], [nonrecursive])]) 8880 LT_OPTION_DEFINE([LTDL_INIT], [recursive], 8881 [m4_define([_LTDL_MODE], [recursive])]) 8882 LT_OPTION_DEFINE([LTDL_INIT], [subproject], 8883 [m4_define([_LTDL_MODE], [subproject])]) 8884 8885 m4_define([_LTDL_TYPE], []) 8886 LT_OPTION_DEFINE([LTDL_INIT], [installable], 8887 [m4_define([_LTDL_TYPE], [installable])]) 8888 LT_OPTION_DEFINE([LTDL_INIT], [convenience], 8889 [m4_define([_LTDL_TYPE], [convenience])]) 8890 8891 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- 8892 # 8893 # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software 8894 # Foundation, Inc. 8895 # Written by Gary V. Vaughan, 2004 8896 # 8897 # This file is free software; the Free Software Foundation gives 8898 # unlimited permission to copy and/or distribute it, with or without 8899 # modifications, as long as this notice is preserved. 8900 8901 # serial 6 ltsugar.m4 8902 8903 # This is to help aclocal find these macros, as it can't see m4_define. 8904 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) 8905 8906 8907 # lt_join(SEP, ARG1, [ARG2...]) 8908 # ----------------------------- 8909 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their 8910 # associated separator. 8911 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier 8912 # versions in m4sugar had bugs. 8913 m4_define([lt_join], 8914 [m4_if([$#], [1], [], 8915 [$#], [2], [[$2]], 8916 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) 8917 m4_define([_lt_join], 8918 [m4_if([$#$2], [2], [], 8919 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) 8920 8921 8922 # lt_car(LIST) 8923 # lt_cdr(LIST) 8924 # ------------ 8925 # Manipulate m4 lists. 8926 # These macros are necessary as long as will still need to support 8927 # Autoconf-2.59, which quotes differently. 8928 m4_define([lt_car], [[$1]]) 8929 m4_define([lt_cdr], 8930 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], 8931 [$#], 1, [], 8932 [m4_dquote(m4_shift($@))])]) 8933 m4_define([lt_unquote], $1) 8934 8935 8936 # lt_append(MACRO-NAME, STRING, [SEPARATOR]) 8937 # ------------------------------------------ 8938 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. 8939 # Note that neither SEPARATOR nor STRING are expanded; they are appended 8940 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). 8941 # No SEPARATOR is output if MACRO-NAME was previously undefined (different 8942 # than defined and empty). 8943 # 8944 # This macro is needed until we can rely on Autoconf 2.62, since earlier 8945 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. 8946 m4_define([lt_append], 8947 [m4_define([$1], 8948 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) 8949 8950 8951 8952 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) 8953 # ---------------------------------------------------------- 8954 # Produce a SEP delimited list of all paired combinations of elements of 8955 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list 8956 # has the form PREFIXmINFIXSUFFIXn. 8957 # Needed until we can rely on m4_combine added in Autoconf 2.62. 8958 m4_define([lt_combine], 8959 [m4_if(m4_eval([$# > 3]), [1], 8960 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl 8961 [[m4_foreach([_Lt_prefix], [$2], 8962 [m4_foreach([_Lt_suffix], 8963 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, 8964 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) 8965 8966 8967 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) 8968 # ----------------------------------------------------------------------- 8969 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited 8970 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. 8971 m4_define([lt_if_append_uniq], 8972 [m4_ifdef([$1], 8973 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], 8974 [lt_append([$1], [$2], [$3])$4], 8975 [$5])], 8976 [lt_append([$1], [$2], [$3])$4])]) 8977 8978 8979 # lt_dict_add(DICT, KEY, VALUE) 8980 # ----------------------------- 8981 m4_define([lt_dict_add], 8982 [m4_define([$1($2)], [$3])]) 8983 8984 8985 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) 8986 # -------------------------------------------- 8987 m4_define([lt_dict_add_subkey], 8988 [m4_define([$1($2:$3)], [$4])]) 8989 8990 8991 # lt_dict_fetch(DICT, KEY, [SUBKEY]) 8992 # ---------------------------------- 8993 m4_define([lt_dict_fetch], 8994 [m4_ifval([$3], 8995 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), 8996 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) 8997 8998 8999 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) 9000 # ----------------------------------------------------------------- 9001 m4_define([lt_if_dict_fetch], 9002 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], 9003 [$5], 9004 [$6])]) 9005 9006 9007 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) 9008 # -------------------------------------------------------------- 9009 m4_define([lt_dict_filter], 9010 [m4_if([$5], [], [], 9011 [lt_join(m4_quote(m4_default([$4], [[, ]])), 9012 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), 9013 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl 9014 ]) 9015 9016 # ltversion.m4 -- version numbers -*- Autoconf -*- 9017 # 9018 # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, 9019 # Inc. 9020 # Written by Scott James Remnant, 2004 9021 # 9022 # This file is free software; the Free Software Foundation gives 9023 # unlimited permission to copy and/or distribute it, with or without 9024 # modifications, as long as this notice is preserved. 9025 9026 # @configure_input@ 9027 9028 # serial 4245 ltversion.m4 9029 # This file is part of GNU Libtool 9030 9031 m4_define([LT_PACKAGE_VERSION], [2.4.7]) 9032 m4_define([LT_PACKAGE_REVISION], [2.4.7]) 9033 9034 AC_DEFUN([LTVERSION_VERSION], 9035 [macro_version='2.4.7' 9036 macro_revision='2.4.7' 9037 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 9038 _LT_DECL(, macro_revision, 0) 9039 ]) 9040 9041 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- 9042 # 9043 # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free 9044 # Software Foundation, Inc. 9045 # Written by Scott James Remnant, 2004. 9046 # 9047 # This file is free software; the Free Software Foundation gives 9048 # unlimited permission to copy and/or distribute it, with or without 9049 # modifications, as long as this notice is preserved. 9050 9051 # serial 5 lt~obsolete.m4 9052 9053 # These exist entirely to fool aclocal when bootstrapping libtool. 9054 # 9055 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), 9056 # which have later been changed to m4_define as they aren't part of the 9057 # exported API, or moved to Autoconf or Automake where they belong. 9058 # 9059 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN 9060 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us 9061 # using a macro with the same name in our local m4/libtool.m4 it'll 9062 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define 9063 # and doesn't know about Autoconf macros at all.) 9064 # 9065 # So we provide this file, which has a silly filename so it's always 9066 # included after everything else. This provides aclocal with the 9067 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything 9068 # because those macros already exist, or will be overwritten later. 9069 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. 9070 # 9071 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. 9072 # Yes, that means every name once taken will need to remain here until 9073 # we give up compatibility with versions before 1.7, at which point 9074 # we need to keep only those names which we still refer to. 9075 9076 # This is to help aclocal find these macros, as it can't see m4_define. 9077 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) 9078 9079 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) 9080 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) 9081 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) 9082 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) 9083 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) 9084 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) 9085 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) 9086 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) 9087 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) 9088 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) 9089 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) 9090 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) 9091 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) 9092 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) 9093 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) 9094 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) 9095 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) 9096 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) 9097 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) 9098 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) 9099 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) 9100 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) 9101 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) 9102 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) 9103 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) 9104 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) 9105 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) 9106 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) 9107 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) 9108 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) 9109 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) 9110 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) 9111 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) 9112 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) 9113 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) 9114 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) 9115 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) 9116 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) 9117 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) 9118 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) 9119 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) 9120 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) 9121 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) 9122 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) 9123 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) 9124 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) 9125 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) 9126 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) 9127 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) 9128 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) 9129 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) 9130 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) 9131 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) 9132 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) 9133 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) 9134 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) 9135 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) 9136 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) 9137 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) 9138 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) 9139 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) 9140 9141 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 9142 # serial 11 (pkg-config-0.29.1) 9143 9144 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 9145 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com> 9146 dnl 9147 dnl This program is free software; you can redistribute it and/or modify 9148 dnl it under the terms of the GNU General Public License as published by 9149 dnl the Free Software Foundation; either version 2 of the License, or 9150 dnl (at your option) any later version. 9151 dnl 9152 dnl This program is distributed in the hope that it will be useful, but 9153 dnl WITHOUT ANY WARRANTY; without even the implied warranty of 9154 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9155 dnl General Public License for more details. 9156 dnl 9157 dnl You should have received a copy of the GNU General Public License 9158 dnl along with this program; if not, write to the Free Software 9159 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 9160 dnl 02111-1307, USA. 9161 dnl 9162 dnl As a special exception to the GNU General Public License, if you 9163 dnl distribute this file as part of a program that contains a 9164 dnl configuration script generated by Autoconf, you may include it under 9165 dnl the same distribution terms that you use for the rest of that 9166 dnl program. 9167 9168 dnl PKG_PREREQ(MIN-VERSION) 9169 dnl ----------------------- 9170 dnl Since: 0.29 9171 dnl 9172 dnl Verify that the version of the pkg-config macros are at least 9173 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's 9174 dnl installed version of pkg-config, this checks the developer's version 9175 dnl of pkg.m4 when generating configure. 9176 dnl 9177 dnl To ensure that this macro is defined, also add: 9178 dnl m4_ifndef([PKG_PREREQ], 9179 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) 9180 dnl 9181 dnl See the "Since" comment for each macro you use to see what version 9182 dnl of the macros you require. 9183 m4_defun([PKG_PREREQ], 9184 [m4_define([PKG_MACROS_VERSION], [0.29.1]) 9185 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, 9186 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) 9187 ])dnl PKG_PREREQ 9188 9189 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION]) 9190 dnl ---------------------------------- 9191 dnl Since: 0.16 9192 dnl 9193 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to 9194 dnl first found in the path. Checks that the version of pkg-config found 9195 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is 9196 dnl used since that's the first version where most current features of 9197 dnl pkg-config existed. 9198 AC_DEFUN([PKG_PROG_PKG_CONFIG], 9199 [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 9200 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) 9201 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) 9202 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) 9203 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) 9204 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) 9205 9206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9207 AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 9208 fi 9209 if test -n "$PKG_CONFIG"; then 9210 _pkg_min_version=m4_default([$1], [0.9.0]) 9211 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 9212 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9213 AC_MSG_RESULT([yes]) 9214 else 9215 AC_MSG_RESULT([no]) 9216 PKG_CONFIG="" 9217 fi 9218 fi[]dnl 9219 ])dnl PKG_PROG_PKG_CONFIG 9220 9221 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9222 dnl ------------------------------------------------------------------- 9223 dnl Since: 0.18 9224 dnl 9225 dnl Check to see whether a particular set of modules exists. Similar to 9226 dnl PKG_CHECK_MODULES(), but does not set variables or print errors. 9227 dnl 9228 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9229 dnl only at the first occurence in configure.ac, so if the first place 9230 dnl it's called might be skipped (such as if it is within an "if", you 9231 dnl have to call PKG_CHECK_EXISTS manually 9232 AC_DEFUN([PKG_CHECK_EXISTS], 9233 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9234 if test -n "$PKG_CONFIG" && \ 9235 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 9236 m4_default([$2], [:]) 9237 m4_ifvaln([$3], [else 9238 $3])dnl 9239 fi]) 9240 9241 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 9242 dnl --------------------------------------------- 9243 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting 9244 dnl pkg_failed based on the result. 9245 m4_define([_PKG_CONFIG], 9246 [if test -n "$$1"; then 9247 pkg_cv_[]$1="$$1" 9248 elif test -n "$PKG_CONFIG"; then 9249 PKG_CHECK_EXISTS([$3], 9250 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 9251 test "x$?" != "x0" && pkg_failed=yes ], 9252 [pkg_failed=yes]) 9253 else 9254 pkg_failed=untried 9255 fi[]dnl 9256 ])dnl _PKG_CONFIG 9257 9258 dnl _PKG_SHORT_ERRORS_SUPPORTED 9259 dnl --------------------------- 9260 dnl Internal check to see if pkg-config supports short errors. 9261 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 9262 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 9263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9264 _pkg_short_errors_supported=yes 9265 else 9266 _pkg_short_errors_supported=no 9267 fi[]dnl 9268 ])dnl _PKG_SHORT_ERRORS_SUPPORTED 9269 9270 9271 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 9272 dnl [ACTION-IF-NOT-FOUND]) 9273 dnl -------------------------------------------------------------- 9274 dnl Since: 0.4.0 9275 dnl 9276 dnl Note that if there is a possibility the first call to 9277 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an 9278 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 9279 AC_DEFUN([PKG_CHECK_MODULES], 9280 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9281 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 9282 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 9283 9284 pkg_failed=no 9285 AC_MSG_CHECKING([for $1]) 9286 9287 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 9288 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) 9289 9290 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 9291 and $1[]_LIBS to avoid the need to call pkg-config. 9292 See the pkg-config man page for more details.]) 9293 9294 if test $pkg_failed = yes; then 9295 AC_MSG_RESULT([no]) 9296 _PKG_SHORT_ERRORS_SUPPORTED 9297 if test $_pkg_short_errors_supported = yes; then 9298 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` 9299 else 9300 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` 9301 fi 9302 # Put the nasty error message in config.log where it belongs 9303 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 9304 9305 m4_default([$4], [AC_MSG_ERROR( 9306 [Package requirements ($2) were not met: 9307 9308 $$1_PKG_ERRORS 9309 9310 Consider adjusting the PKG_CONFIG_PATH environment variable if you 9311 installed software in a non-standard prefix. 9312 9313 _PKG_TEXT])[]dnl 9314 ]) 9315 elif test $pkg_failed = untried; then 9316 AC_MSG_RESULT([no]) 9317 m4_default([$4], [AC_MSG_FAILURE( 9318 [The pkg-config script could not be found or is too old. Make sure it 9319 is in your PATH or set the PKG_CONFIG environment variable to the full 9320 path to pkg-config. 9321 9322 _PKG_TEXT 9323 9324 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl 9325 ]) 9326 else 9327 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 9328 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 9329 AC_MSG_RESULT([yes]) 9330 $3 9331 fi[]dnl 9332 ])dnl PKG_CHECK_MODULES 9333 9334 9335 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 9336 dnl [ACTION-IF-NOT-FOUND]) 9337 dnl --------------------------------------------------------------------- 9338 dnl Since: 0.29 9339 dnl 9340 dnl Checks for existence of MODULES and gathers its build flags with 9341 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags 9342 dnl and VARIABLE-PREFIX_LIBS from --libs. 9343 dnl 9344 dnl Note that if there is a possibility the first call to 9345 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to 9346 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your 9347 dnl configure.ac. 9348 AC_DEFUN([PKG_CHECK_MODULES_STATIC], 9349 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9350 _save_PKG_CONFIG=$PKG_CONFIG 9351 PKG_CONFIG="$PKG_CONFIG --static" 9352 PKG_CHECK_MODULES($@) 9353 PKG_CONFIG=$_save_PKG_CONFIG[]dnl 9354 ])dnl PKG_CHECK_MODULES_STATIC 9355 9356 9357 dnl PKG_INSTALLDIR([DIRECTORY]) 9358 dnl ------------------------- 9359 dnl Since: 0.27 9360 dnl 9361 dnl Substitutes the variable pkgconfigdir as the location where a module 9362 dnl should install pkg-config .pc files. By default the directory is 9363 dnl $libdir/pkgconfig, but the default can be changed by passing 9364 dnl DIRECTORY. The user can override through the --with-pkgconfigdir 9365 dnl parameter. 9366 AC_DEFUN([PKG_INSTALLDIR], 9367 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) 9368 m4_pushdef([pkg_description], 9369 [pkg-config installation directory @<:@]pkg_default[@:>@]) 9370 AC_ARG_WITH([pkgconfigdir], 9371 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, 9372 [with_pkgconfigdir=]pkg_default) 9373 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) 9374 m4_popdef([pkg_default]) 9375 m4_popdef([pkg_description]) 9376 ])dnl PKG_INSTALLDIR 9377 9378 9379 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) 9380 dnl -------------------------------- 9381 dnl Since: 0.27 9382 dnl 9383 dnl Substitutes the variable noarch_pkgconfigdir as the location where a 9384 dnl module should install arch-independent pkg-config .pc files. By 9385 dnl default the directory is $datadir/pkgconfig, but the default can be 9386 dnl changed by passing DIRECTORY. The user can override through the 9387 dnl --with-noarch-pkgconfigdir parameter. 9388 AC_DEFUN([PKG_NOARCH_INSTALLDIR], 9389 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) 9390 m4_pushdef([pkg_description], 9391 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) 9392 AC_ARG_WITH([noarch-pkgconfigdir], 9393 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, 9394 [with_noarch_pkgconfigdir=]pkg_default) 9395 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) 9396 m4_popdef([pkg_default]) 9397 m4_popdef([pkg_description]) 9398 ])dnl PKG_NOARCH_INSTALLDIR 9399 9400 9401 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, 9402 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 9403 dnl ------------------------------------------- 9404 dnl Since: 0.28 9405 dnl 9406 dnl Retrieves the value of the pkg-config variable for the given module. 9407 AC_DEFUN([PKG_CHECK_VAR], 9408 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 9409 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl 9410 9411 _PKG_CONFIG([$1], [variable="][$3]["], [$2]) 9412 AS_VAR_COPY([$1], [pkg_cv_][$1]) 9413 9414 AS_VAR_IF([$1], [""], [$5], [$4])dnl 9415 ])dnl PKG_CHECK_VAR 9416 9417 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, 9418 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], 9419 dnl [DESCRIPTION], [DEFAULT]) 9420 dnl ------------------------------------------ 9421 dnl 9422 dnl Prepare a "--with-" configure option using the lowercase 9423 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and 9424 dnl PKG_CHECK_MODULES in a single macro. 9425 AC_DEFUN([PKG_WITH_MODULES], 9426 [ 9427 m4_pushdef([with_arg], m4_tolower([$1])) 9428 9429 m4_pushdef([description], 9430 [m4_default([$5], [build with ]with_arg[ support])]) 9431 9432 m4_pushdef([def_arg], [m4_default([$6], [auto])]) 9433 m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) 9434 m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) 9435 9436 m4_case(def_arg, 9437 [yes],[m4_pushdef([with_without], [--without-]with_arg)], 9438 [m4_pushdef([with_without],[--with-]with_arg)]) 9439 9440 AC_ARG_WITH(with_arg, 9441 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, 9442 [AS_TR_SH([with_]with_arg)=def_arg]) 9443 9444 AS_CASE([$AS_TR_SH([with_]with_arg)], 9445 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], 9446 [auto],[PKG_CHECK_MODULES([$1],[$2], 9447 [m4_n([def_action_if_found]) $3], 9448 [m4_n([def_action_if_not_found]) $4])]) 9449 9450 m4_popdef([with_arg]) 9451 m4_popdef([description]) 9452 m4_popdef([def_arg]) 9453 9454 ])dnl PKG_WITH_MODULES 9455 9456 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 9457 dnl [DESCRIPTION], [DEFAULT]) 9458 dnl ----------------------------------------------- 9459 dnl 9460 dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES 9461 dnl check._[VARIABLE-PREFIX] is exported as make variable. 9462 AC_DEFUN([PKG_HAVE_WITH_MODULES], 9463 [ 9464 PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) 9465 9466 AM_CONDITIONAL([HAVE_][$1], 9467 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) 9468 ])dnl PKG_HAVE_WITH_MODULES 9469 9470 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, 9471 dnl [DESCRIPTION], [DEFAULT]) 9472 dnl ------------------------------------------------------ 9473 dnl 9474 dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after 9475 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make 9476 dnl and preprocessor variable. 9477 AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], 9478 [ 9479 PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) 9480 9481 AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], 9482 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) 9483 ])dnl PKG_HAVE_DEFINE_WITH_MODULES 9484 9485 # Configure sysconftool 9486 # Copyright 2000-2005 Double Precision, Inc. See COPYING for 9487 # distribution information. 9488 # 9489 # AC_PROG_SYSCONFTOOL 9490 9491 AC_DEFUN([AC_PROG_SYSCONFTOOL], 9492 [ 9493 9494 AC_PATH_PROGS(SYSCONFTOOL_PERL, perl5 perl, perl) 9495 9496 if test "$SYSCONFTOOL_PERL" = "perl" 9497 then 9498 AC_MSG_ERROR(perl not found - please install perl) 9499 fi 9500 9501 AC_MSG_CHECKING(for sysconftool...) 9502 SYSCONFTOOL="" 9503 for sysconf_dir in $ac_aux_dir . .. ../.. 9504 do 9505 if test -f $srcdir/$sysconf_dir/sysconftool 9506 then 9507 SYSCONFTOOL=$srcdir/$sysconf_dir/sysconftool 9508 break 9509 fi 9510 done 9511 9512 if test "$SYSCONFTOOL" = "" 9513 then 9514 AC_MSG_ERROR(sysconftool missing - not in the package) 9515 fi 9516 9517 AC_MSG_RESULT( $SYSCONFTOOL) 9518 SYSCONFTOOL="$SYSCONFTOOL_PERL $SYSCONFTOOL" 9519 AC_SUBST(SYSCONFTOOL) 9520 ] 9521 ) 9522 9523 # Copyright (C) 2002-2021 Free Software Foundation, Inc. 9524 # 9525 # This file is free software; the Free Software Foundation 9526 # gives unlimited permission to copy and/or distribute it, 9527 # with or without modifications, as long as this notice is preserved. 9528 9529 # AM_AUTOMAKE_VERSION(VERSION) 9530 # ---------------------------- 9531 # Automake X.Y traces this macro to ensure aclocal.m4 has been 9532 # generated from the m4 files accompanying Automake X.Y. 9533 # (This private macro should not be called outside this file.) 9534 AC_DEFUN([AM_AUTOMAKE_VERSION], 9535 [am__api_version='1.16' 9536 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 9537 dnl require some minimum version. Point them to the right macro. 9538 m4_if([$1], [1.16.5], [], 9539 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 9540 ]) 9541 9542 # _AM_AUTOCONF_VERSION(VERSION) 9543 # ----------------------------- 9544 # aclocal traces this macro to find the Autoconf version. 9545 # This is a private macro too. Using m4_define simplifies 9546 # the logic in aclocal, which can simply ignore this definition. 9547 m4_define([_AM_AUTOCONF_VERSION], []) 9548 9549 # AM_SET_CURRENT_AUTOMAKE_VERSION 9550 # ------------------------------- 9551 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 9552 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. 9553 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 9554 [AM_AUTOMAKE_VERSION([1.16.5])dnl 9555 m4_ifndef([AC_AUTOCONF_VERSION], 9556 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 9557 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) 9558 9559 # AM_AUX_DIR_EXPAND -*- Autoconf -*- 9560 9561 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 9562 # 9563 # This file is free software; the Free Software Foundation 9564 # gives unlimited permission to copy and/or distribute it, 9565 # with or without modifications, as long as this notice is preserved. 9566 9567 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 9568 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to 9569 # '$srcdir', '$srcdir/..', or '$srcdir/../..'. 9570 # 9571 # Of course, Automake must honor this variable whenever it calls a 9572 # tool from the auxiliary directory. The problem is that $srcdir (and 9573 # therefore $ac_aux_dir as well) can be either absolute or relative, 9574 # depending on how configure is run. This is pretty annoying, since 9575 # it makes $ac_aux_dir quite unusable in subdirectories: in the top 9576 # source directory, any form will work fine, but in subdirectories a 9577 # relative path needs to be adjusted first. 9578 # 9579 # $ac_aux_dir/missing 9580 # fails when called from a subdirectory if $ac_aux_dir is relative 9581 # $top_srcdir/$ac_aux_dir/missing 9582 # fails if $ac_aux_dir is absolute, 9583 # fails when called from a subdirectory in a VPATH build with 9584 # a relative $ac_aux_dir 9585 # 9586 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir 9587 # are both prefixed by $srcdir. In an in-source build this is usually 9588 # harmless because $srcdir is '.', but things will broke when you 9589 # start a VPATH build or use an absolute $srcdir. 9590 # 9591 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 9592 # iff we strip the leading $srcdir from $ac_aux_dir. That would be: 9593 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 9594 # and then we would define $MISSING as 9595 # MISSING="\${SHELL} $am_aux_dir/missing" 9596 # This will work as long as MISSING is not called from configure, because 9597 # unfortunately $(top_srcdir) has no meaning in configure. 9598 # However there are other variables, like CC, which are often used in 9599 # configure, and could therefore not use this "fixed" $ac_aux_dir. 9600 # 9601 # Another solution, used here, is to always expand $ac_aux_dir to an 9602 # absolute PATH. The drawback is that using absolute paths prevent a 9603 # configured tree to be moved without reconfiguration. 9604 9605 AC_DEFUN([AM_AUX_DIR_EXPAND], 9606 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl 9607 # Expand $ac_aux_dir to an absolute path. 9608 am_aux_dir=`cd "$ac_aux_dir" && pwd` 9609 ]) 9610 9611 # AM_CONDITIONAL -*- Autoconf -*- 9612 9613 # Copyright (C) 1997-2021 Free Software Foundation, Inc. 9614 # 9615 # This file is free software; the Free Software Foundation 9616 # gives unlimited permission to copy and/or distribute it, 9617 # with or without modifications, as long as this notice is preserved. 9618 9619 # AM_CONDITIONAL(NAME, SHELL-CONDITION) 9620 # ------------------------------------- 9621 # Define a conditional. 9622 AC_DEFUN([AM_CONDITIONAL], 9623 [AC_PREREQ([2.52])dnl 9624 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 9625 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 9626 AC_SUBST([$1_TRUE])dnl 9627 AC_SUBST([$1_FALSE])dnl 9628 _AM_SUBST_NOTMAKE([$1_TRUE])dnl 9629 _AM_SUBST_NOTMAKE([$1_FALSE])dnl 9630 m4_define([_AM_COND_VALUE_$1], [$2])dnl 9631 if $2; then 9632 $1_TRUE= 9633 $1_FALSE='#' 9634 else 9635 $1_TRUE='#' 9636 $1_FALSE= 9637 fi 9638 AC_CONFIG_COMMANDS_PRE( 9639 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 9640 AC_MSG_ERROR([[conditional "$1" was never defined. 9641 Usually this means the macro was only invoked conditionally.]]) 9642 fi])]) 9643 9644 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 9645 # 9646 # This file is free software; the Free Software Foundation 9647 # gives unlimited permission to copy and/or distribute it, 9648 # with or without modifications, as long as this notice is preserved. 9649 9650 9651 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be 9652 # written in clear, in which case automake, when reading aclocal.m4, 9653 # will think it sees a *use*, and therefore will trigger all it's 9654 # C support machinery. Also note that it means that autoscan, seeing 9655 # CC etc. in the Makefile, will ask for an AC_PROG_CC use... 9656 9657 9658 # _AM_DEPENDENCIES(NAME) 9659 # ---------------------- 9660 # See how the compiler implements dependency checking. 9661 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". 9662 # We try a few techniques and use that to set a single cache variable. 9663 # 9664 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 9665 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 9666 # dependency, and given that the user is not expected to run this macro, 9667 # just rely on AC_PROG_CC. 9668 AC_DEFUN([_AM_DEPENDENCIES], 9669 [AC_REQUIRE([AM_SET_DEPDIR])dnl 9670 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 9671 AC_REQUIRE([AM_MAKE_INCLUDE])dnl 9672 AC_REQUIRE([AM_DEP_TRACK])dnl 9673 9674 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], 9675 [$1], [CXX], [depcc="$CXX" am_compiler_list=], 9676 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 9677 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], 9678 [$1], [UPC], [depcc="$UPC" am_compiler_list=], 9679 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 9680 [depcc="$$1" am_compiler_list=]) 9681 9682 AC_CACHE_CHECK([dependency style of $depcc], 9683 [am_cv_$1_dependencies_compiler_type], 9684 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 9685 # We make a subdir and do the tests there. Otherwise we can end up 9686 # making bogus files that we don't know about and never remove. For 9687 # instance it was reported that on HP-UX the gcc test will end up 9688 # making a dummy file named 'D' -- because '-MD' means "put the output 9689 # in D". 9690 rm -rf conftest.dir 9691 mkdir conftest.dir 9692 # Copy depcomp to subdir because otherwise we won't find it if we're 9693 # using a relative directory. 9694 cp "$am_depcomp" conftest.dir 9695 cd conftest.dir 9696 # We will build objects and dependencies in a subdirectory because 9697 # it helps to detect inapplicable dependency modes. For instance 9698 # both Tru64's cc and ICC support -MD to output dependencies as a 9699 # side effect of compilation, but ICC will put the dependencies in 9700 # the current directory while Tru64 will put them in the object 9701 # directory. 9702 mkdir sub 9703 9704 am_cv_$1_dependencies_compiler_type=none 9705 if test "$am_compiler_list" = ""; then 9706 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 9707 fi 9708 am__universal=false 9709 m4_case([$1], [CC], 9710 [case " $depcc " in #( 9711 *\ -arch\ *\ -arch\ *) am__universal=true ;; 9712 esac], 9713 [CXX], 9714 [case " $depcc " in #( 9715 *\ -arch\ *\ -arch\ *) am__universal=true ;; 9716 esac]) 9717 9718 for depmode in $am_compiler_list; do 9719 # Setup a source with many dependencies, because some compilers 9720 # like to wrap large dependency lists on column 80 (with \), and 9721 # we should not choose a depcomp mode which is confused by this. 9722 # 9723 # We need to recreate these files for each test, as the compiler may 9724 # overwrite some of them when testing with obscure command lines. 9725 # This happens at least with the AIX C compiler. 9726 : > sub/conftest.c 9727 for i in 1 2 3 4 5 6; do 9728 echo '#include "conftst'$i'.h"' >> sub/conftest.c 9729 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 9730 # Solaris 10 /bin/sh. 9731 echo '/* dummy */' > sub/conftst$i.h 9732 done 9733 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 9734 9735 # We check with '-c' and '-o' for the sake of the "dashmstdout" 9736 # mode. It turns out that the SunPro C++ compiler does not properly 9737 # handle '-M -o', and we need to detect this. Also, some Intel 9738 # versions had trouble with output in subdirs. 9739 am__obj=sub/conftest.${OBJEXT-o} 9740 am__minus_obj="-o $am__obj" 9741 case $depmode in 9742 gcc) 9743 # This depmode causes a compiler race in universal mode. 9744 test "$am__universal" = false || continue 9745 ;; 9746 nosideeffect) 9747 # After this tag, mechanisms are not by side-effect, so they'll 9748 # only be used when explicitly requested. 9749 if test "x$enable_dependency_tracking" = xyes; then 9750 continue 9751 else 9752 break 9753 fi 9754 ;; 9755 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 9756 # This compiler won't grok '-c -o', but also, the minuso test has 9757 # not run yet. These depmodes are late enough in the game, and 9758 # so weak that their functioning should not be impacted. 9759 am__obj=conftest.${OBJEXT-o} 9760 am__minus_obj= 9761 ;; 9762 none) break ;; 9763 esac 9764 if depmode=$depmode \ 9765 source=sub/conftest.c object=$am__obj \ 9766 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 9767 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 9768 >/dev/null 2>conftest.err && 9769 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 9770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 9771 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 9772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 9773 # icc doesn't choke on unknown options, it will just issue warnings 9774 # or remarks (even with -Werror). So we grep stderr for any message 9775 # that says an option was ignored or not supported. 9776 # When given -MP, icc 7.0 and 7.1 complain thusly: 9777 # icc: Command line warning: ignoring option '-M'; no argument required 9778 # The diagnosis changed in icc 8.0: 9779 # icc: Command line remark: option '-MP' not supported 9780 if (grep 'ignoring option' conftest.err || 9781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 9782 am_cv_$1_dependencies_compiler_type=$depmode 9783 break 9784 fi 9785 fi 9786 done 9787 9788 cd .. 9789 rm -rf conftest.dir 9790 else 9791 am_cv_$1_dependencies_compiler_type=none 9792 fi 9793 ]) 9794 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 9795 AM_CONDITIONAL([am__fastdep$1], [ 9796 test "x$enable_dependency_tracking" != xno \ 9797 && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 9798 ]) 9799 9800 9801 # AM_SET_DEPDIR 9802 # ------------- 9803 # Choose a directory name for dependency files. 9804 # This macro is AC_REQUIREd in _AM_DEPENDENCIES. 9805 AC_DEFUN([AM_SET_DEPDIR], 9806 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl 9807 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 9808 ]) 9809 9810 9811 # AM_DEP_TRACK 9812 # ------------ 9813 AC_DEFUN([AM_DEP_TRACK], 9814 [AC_ARG_ENABLE([dependency-tracking], [dnl 9815 AS_HELP_STRING( 9816 [--enable-dependency-tracking], 9817 [do not reject slow dependency extractors]) 9818 AS_HELP_STRING( 9819 [--disable-dependency-tracking], 9820 [speeds up one-time build])]) 9821 if test "x$enable_dependency_tracking" != xno; then 9822 am_depcomp="$ac_aux_dir/depcomp" 9823 AMDEPBACKSLASH='\' 9824 am__nodep='_no' 9825 fi 9826 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 9827 AC_SUBST([AMDEPBACKSLASH])dnl 9828 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 9829 AC_SUBST([am__nodep])dnl 9830 _AM_SUBST_NOTMAKE([am__nodep])dnl 9831 ]) 9832 9833 # Generate code to set up dependency tracking. -*- Autoconf -*- 9834 9835 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 9836 # 9837 # This file is free software; the Free Software Foundation 9838 # gives unlimited permission to copy and/or distribute it, 9839 # with or without modifications, as long as this notice is preserved. 9840 9841 # _AM_OUTPUT_DEPENDENCY_COMMANDS 9842 # ------------------------------ 9843 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 9844 [{ 9845 # Older Autoconf quotes --file arguments for eval, but not when files 9846 # are listed without --file. Let's play safe and only enable the eval 9847 # if we detect the quoting. 9848 # TODO: see whether this extra hack can be removed once we start 9849 # requiring Autoconf 2.70 or later. 9850 AS_CASE([$CONFIG_FILES], 9851 [*\'*], [eval set x "$CONFIG_FILES"], 9852 [*], [set x $CONFIG_FILES]) 9853 shift 9854 # Used to flag and report bootstrapping failures. 9855 am_rc=0 9856 for am_mf 9857 do 9858 # Strip MF so we end up with the name of the file. 9859 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` 9860 # Check whether this is an Automake generated Makefile which includes 9861 # dependency-tracking related rules and includes. 9862 # Grep'ing the whole file directly is not great: AIX grep has a line 9863 # limit of 2048, but all sed's we know have understand at least 4000. 9864 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 9865 || continue 9866 am_dirpart=`AS_DIRNAME(["$am_mf"])` 9867 am_filepart=`AS_BASENAME(["$am_mf"])` 9868 AM_RUN_LOG([cd "$am_dirpart" \ 9869 && sed -e '/# am--include-marker/d' "$am_filepart" \ 9870 | $MAKE -f - am--depfiles]) || am_rc=$? 9871 done 9872 if test $am_rc -ne 0; then 9873 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments 9874 for automatic dependency tracking. If GNU make was not used, consider 9875 re-running the configure script with MAKE="gmake" (or whatever is 9876 necessary). You can also try re-running configure with the 9877 '--disable-dependency-tracking' option to at least be able to build 9878 the package (albeit without support for automatic dependency tracking).]) 9879 fi 9880 AS_UNSET([am_dirpart]) 9881 AS_UNSET([am_filepart]) 9882 AS_UNSET([am_mf]) 9883 AS_UNSET([am_rc]) 9884 rm -f conftest-deps.mk 9885 } 9886 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS 9887 9888 9889 # AM_OUTPUT_DEPENDENCY_COMMANDS 9890 # ----------------------------- 9891 # This macro should only be invoked once -- use via AC_REQUIRE. 9892 # 9893 # This code is only required when automatic dependency tracking is enabled. 9894 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in 9895 # order to bootstrap the dependency handling code. 9896 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 9897 [AC_CONFIG_COMMANDS([depfiles], 9898 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 9899 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])]) 9900 9901 # Do all the work for Automake. -*- Autoconf -*- 9902 9903 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 9904 # 9905 # This file is free software; the Free Software Foundation 9906 # gives unlimited permission to copy and/or distribute it, 9907 # with or without modifications, as long as this notice is preserved. 9908 9909 # This macro actually does too much. Some checks are only needed if 9910 # your package does certain things. But this isn't really a big deal. 9911 9912 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. 9913 m4_define([AC_PROG_CC], 9914 m4_defn([AC_PROG_CC]) 9915 [_AM_PROG_CC_C_O 9916 ]) 9917 9918 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 9919 # AM_INIT_AUTOMAKE([OPTIONS]) 9920 # ----------------------------------------------- 9921 # The call with PACKAGE and VERSION arguments is the old style 9922 # call (pre autoconf-2.50), which is being phased out. PACKAGE 9923 # and VERSION should now be passed to AC_INIT and removed from 9924 # the call to AM_INIT_AUTOMAKE. 9925 # We support both call styles for the transition. After 9926 # the next Automake release, Autoconf can make the AC_INIT 9927 # arguments mandatory, and then we can depend on a new Autoconf 9928 # release and drop the old call support. 9929 AC_DEFUN([AM_INIT_AUTOMAKE], 9930 [AC_PREREQ([2.65])dnl 9931 m4_ifdef([_$0_ALREADY_INIT], 9932 [m4_fatal([$0 expanded multiple times 9933 ]m4_defn([_$0_ALREADY_INIT]))], 9934 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl 9935 dnl Autoconf wants to disallow AM_ names. We explicitly allow 9936 dnl the ones we care about. 9937 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 9938 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 9939 AC_REQUIRE([AC_PROG_INSTALL])dnl 9940 if test "`cd $srcdir && pwd`" != "`pwd`"; then 9941 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 9942 # is not polluted with repeated "-I." 9943 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 9944 # test to see if srcdir already configured 9945 if test -f $srcdir/config.status; then 9946 AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 9947 fi 9948 fi 9949 9950 # test whether we have cygpath 9951 if test -z "$CYGPATH_W"; then 9952 if (cygpath --version) >/dev/null 2>/dev/null; then 9953 CYGPATH_W='cygpath -w' 9954 else 9955 CYGPATH_W=echo 9956 fi 9957 fi 9958 AC_SUBST([CYGPATH_W]) 9959 9960 # Define the identity of the package. 9961 dnl Distinguish between old-style and new-style calls. 9962 m4_ifval([$2], 9963 [AC_DIAGNOSE([obsolete], 9964 [$0: two- and three-arguments forms are deprecated.]) 9965 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 9966 AC_SUBST([PACKAGE], [$1])dnl 9967 AC_SUBST([VERSION], [$2])], 9968 [_AM_SET_OPTIONS([$1])dnl 9969 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 9970 m4_if( 9971 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), 9972 [ok:ok],, 9973 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 9974 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 9975 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 9976 9977 _AM_IF_OPTION([no-define],, 9978 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) 9979 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl 9980 9981 # Some tools Automake needs. 9982 AC_REQUIRE([AM_SANITY_CHECK])dnl 9983 AC_REQUIRE([AC_ARG_PROGRAM])dnl 9984 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) 9985 AM_MISSING_PROG([AUTOCONF], [autoconf]) 9986 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) 9987 AM_MISSING_PROG([AUTOHEADER], [autoheader]) 9988 AM_MISSING_PROG([MAKEINFO], [makeinfo]) 9989 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 9990 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl 9991 AC_REQUIRE([AC_PROG_MKDIR_P])dnl 9992 # For better backward compatibility. To be removed once Automake 1.9.x 9993 # dies out for good. For more background, see: 9994 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 9995 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 9996 AC_SUBST([mkdir_p], ['$(MKDIR_P)']) 9997 # We need awk for the "check" target (and possibly the TAP driver). The 9998 # system "awk" is bad on some platforms. 9999 AC_REQUIRE([AC_PROG_AWK])dnl 10000 AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10001 AC_REQUIRE([AM_SET_LEADING_DOT])dnl 10002 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 10003 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 10004 [_AM_PROG_TAR([v7])])]) 10005 _AM_IF_OPTION([no-dependencies],, 10006 [AC_PROVIDE_IFELSE([AC_PROG_CC], 10007 [_AM_DEPENDENCIES([CC])], 10008 [m4_define([AC_PROG_CC], 10009 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl 10010 AC_PROVIDE_IFELSE([AC_PROG_CXX], 10011 [_AM_DEPENDENCIES([CXX])], 10012 [m4_define([AC_PROG_CXX], 10013 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl 10014 AC_PROVIDE_IFELSE([AC_PROG_OBJC], 10015 [_AM_DEPENDENCIES([OBJC])], 10016 [m4_define([AC_PROG_OBJC], 10017 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl 10018 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], 10019 [_AM_DEPENDENCIES([OBJCXX])], 10020 [m4_define([AC_PROG_OBJCXX], 10021 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl 10022 ]) 10023 # Variables for tags utilities; see am/tags.am 10024 if test -z "$CTAGS"; then 10025 CTAGS=ctags 10026 fi 10027 AC_SUBST([CTAGS]) 10028 if test -z "$ETAGS"; then 10029 ETAGS=etags 10030 fi 10031 AC_SUBST([ETAGS]) 10032 if test -z "$CSCOPE"; then 10033 CSCOPE=cscope 10034 fi 10035 AC_SUBST([CSCOPE]) 10036 10037 AC_REQUIRE([AM_SILENT_RULES])dnl 10038 dnl The testsuite driver may need to know about EXEEXT, so add the 10039 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This 10040 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. 10041 AC_CONFIG_COMMANDS_PRE(dnl 10042 [m4_provide_if([_AM_COMPILER_EXEEXT], 10043 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl 10044 10045 # POSIX will say in a future version that running "rm -f" with no argument 10046 # is OK; and we want to be able to make that assumption in our Makefile 10047 # recipes. So use an aggressive probe to check that the usage we want is 10048 # actually supported "in the wild" to an acceptable degree. 10049 # See automake bug#10828. 10050 # To make any issue more visible, cause the running configure to be aborted 10051 # by default if the 'rm' program in use doesn't match our expectations; the 10052 # user can still override this though. 10053 if rm -f && rm -fr && rm -rf; then : OK; else 10054 cat >&2 <<'END' 10055 Oops! 10056 10057 Your 'rm' program seems unable to run without file operands specified 10058 on the command line, even when the '-f' option is present. This is contrary 10059 to the behaviour of most rm programs out there, and not conforming with 10060 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 10061 10062 Please tell bug-automake@gnu.org about your system, including the value 10063 of your $PATH and any error possibly output before this message. This 10064 can help us improve future automake versions. 10065 10066 END 10067 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 10068 echo 'Configuration will proceed anyway, since you have set the' >&2 10069 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 10070 echo >&2 10071 else 10072 cat >&2 <<'END' 10073 Aborting the configuration process, to ensure you take notice of the issue. 10074 10075 You can download and install GNU coreutils to get an 'rm' implementation 10076 that behaves properly: <https://www.gnu.org/software/coreutils/>. 10077 10078 If you want to complete the configuration process using your problematic 10079 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 10080 to "yes", and re-run configure. 10081 10082 END 10083 AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) 10084 fi 10085 fi 10086 dnl The trailing newline in this macro's definition is deliberate, for 10087 dnl backward compatibility and to allow trailing 'dnl'-style comments 10088 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. 10089 ]) 10090 10091 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not 10092 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further 10093 dnl mangled by Autoconf and run in a shell conditional statement. 10094 m4_define([_AC_COMPILER_EXEEXT], 10095 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) 10096 10097 # When config.status generates a header, we must update the stamp-h file. 10098 # This file resides in the same directory as the config header 10099 # that is generated. The stamp files are numbered to have different names. 10100 10101 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 10102 # loop where config.status creates the headers, so we can generate 10103 # our stamp files there. 10104 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 10105 [# Compute $1's index in $config_headers. 10106 _am_arg=$1 10107 _am_stamp_count=1 10108 for _am_header in $config_headers :; do 10109 case $_am_header in 10110 $_am_arg | $_am_arg:* ) 10111 break ;; 10112 * ) 10113 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 10114 esac 10115 done 10116 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 10117 10118 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 10119 # 10120 # This file is free software; the Free Software Foundation 10121 # gives unlimited permission to copy and/or distribute it, 10122 # with or without modifications, as long as this notice is preserved. 10123 10124 # AM_PROG_INSTALL_SH 10125 # ------------------ 10126 # Define $install_sh. 10127 AC_DEFUN([AM_PROG_INSTALL_SH], 10128 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10129 if test x"${install_sh+set}" != xset; then 10130 case $am_aux_dir in 10131 *\ * | *\ *) 10132 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 10133 *) 10134 install_sh="\${SHELL} $am_aux_dir/install-sh" 10135 esac 10136 fi 10137 AC_SUBST([install_sh])]) 10138 10139 # Copyright (C) 2003-2021 Free Software Foundation, Inc. 10140 # 10141 # This file is free software; the Free Software Foundation 10142 # gives unlimited permission to copy and/or distribute it, 10143 # with or without modifications, as long as this notice is preserved. 10144 10145 # Check whether the underlying file-system supports filenames 10146 # with a leading dot. For instance MS-DOS doesn't. 10147 AC_DEFUN([AM_SET_LEADING_DOT], 10148 [rm -rf .tst 2>/dev/null 10149 mkdir .tst 2>/dev/null 10150 if test -d .tst; then 10151 am__leading_dot=. 10152 else 10153 am__leading_dot=_ 10154 fi 10155 rmdir .tst 2>/dev/null 10156 AC_SUBST([am__leading_dot])]) 10157 10158 # Check to see how 'make' treats includes. -*- Autoconf -*- 10159 10160 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 10161 # 10162 # This file is free software; the Free Software Foundation 10163 # gives unlimited permission to copy and/or distribute it, 10164 # with or without modifications, as long as this notice is preserved. 10165 10166 # AM_MAKE_INCLUDE() 10167 # ----------------- 10168 # Check whether make has an 'include' directive that can support all 10169 # the idioms we need for our automatic dependency tracking code. 10170 AC_DEFUN([AM_MAKE_INCLUDE], 10171 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) 10172 cat > confinc.mk << 'END' 10173 am__doit: 10174 @echo this is the am__doit target >confinc.out 10175 .PHONY: am__doit 10176 END 10177 am__include="#" 10178 am__quote= 10179 # BSD make does it like this. 10180 echo '.include "confinc.mk" # ignored' > confmf.BSD 10181 # Other make implementations (GNU, Solaris 10, AIX) do it like this. 10182 echo 'include confinc.mk # ignored' > confmf.GNU 10183 _am_result=no 10184 for s in GNU BSD; do 10185 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) 10186 AS_CASE([$?:`cat confinc.out 2>/dev/null`], 10187 ['0:this is the am__doit target'], 10188 [AS_CASE([$s], 10189 [BSD], [am__include='.include' am__quote='"'], 10190 [am__include='include' am__quote=''])]) 10191 if test "$am__include" != "#"; then 10192 _am_result="yes ($s style)" 10193 break 10194 fi 10195 done 10196 rm -f confinc.* confmf.* 10197 AC_MSG_RESULT([${_am_result}]) 10198 AC_SUBST([am__include])]) 10199 AC_SUBST([am__quote])]) 10200 10201 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 10202 10203 # Copyright (C) 1997-2021 Free Software Foundation, Inc. 10204 # 10205 # This file is free software; the Free Software Foundation 10206 # gives unlimited permission to copy and/or distribute it, 10207 # with or without modifications, as long as this notice is preserved. 10208 10209 # AM_MISSING_PROG(NAME, PROGRAM) 10210 # ------------------------------ 10211 AC_DEFUN([AM_MISSING_PROG], 10212 [AC_REQUIRE([AM_MISSING_HAS_RUN]) 10213 $1=${$1-"${am_missing_run}$2"} 10214 AC_SUBST($1)]) 10215 10216 # AM_MISSING_HAS_RUN 10217 # ------------------ 10218 # Define MISSING if not defined so far and test if it is modern enough. 10219 # If it is, set am_missing_run to use it, otherwise, to nothing. 10220 AC_DEFUN([AM_MISSING_HAS_RUN], 10221 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10222 AC_REQUIRE_AUX_FILE([missing])dnl 10223 if test x"${MISSING+set}" != xset; then 10224 MISSING="\${SHELL} '$am_aux_dir/missing'" 10225 fi 10226 # Use eval to expand $SHELL 10227 if eval "$MISSING --is-lightweight"; then 10228 am_missing_run="$MISSING " 10229 else 10230 am_missing_run= 10231 AC_MSG_WARN(['missing' script is too old or missing]) 10232 fi 10233 ]) 10234 10235 # Helper functions for option handling. -*- Autoconf -*- 10236 10237 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 10238 # 10239 # This file is free software; the Free Software Foundation 10240 # gives unlimited permission to copy and/or distribute it, 10241 # with or without modifications, as long as this notice is preserved. 10242 10243 # _AM_MANGLE_OPTION(NAME) 10244 # ----------------------- 10245 AC_DEFUN([_AM_MANGLE_OPTION], 10246 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 10247 10248 # _AM_SET_OPTION(NAME) 10249 # -------------------- 10250 # Set option NAME. Presently that only means defining a flag for this option. 10251 AC_DEFUN([_AM_SET_OPTION], 10252 [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) 10253 10254 # _AM_SET_OPTIONS(OPTIONS) 10255 # ------------------------ 10256 # OPTIONS is a space-separated list of Automake options. 10257 AC_DEFUN([_AM_SET_OPTIONS], 10258 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 10259 10260 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 10261 # ------------------------------------------- 10262 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 10263 AC_DEFUN([_AM_IF_OPTION], 10264 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 10265 10266 # Copyright (C) 1999-2021 Free Software Foundation, Inc. 10267 # 10268 # This file is free software; the Free Software Foundation 10269 # gives unlimited permission to copy and/or distribute it, 10270 # with or without modifications, as long as this notice is preserved. 10271 10272 # _AM_PROG_CC_C_O 10273 # --------------- 10274 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC 10275 # to automatically call this. 10276 AC_DEFUN([_AM_PROG_CC_C_O], 10277 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10278 AC_REQUIRE_AUX_FILE([compile])dnl 10279 AC_LANG_PUSH([C])dnl 10280 AC_CACHE_CHECK( 10281 [whether $CC understands -c and -o together], 10282 [am_cv_prog_cc_c_o], 10283 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) 10284 # Make sure it works both with $CC and with simple cc. 10285 # Following AC_PROG_CC_C_O, we do the test twice because some 10286 # compilers refuse to overwrite an existing .o file with -o, 10287 # though they will create one. 10288 am_cv_prog_cc_c_o=yes 10289 for am_i in 1 2; do 10290 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ 10291 && test -f conftest2.$ac_objext; then 10292 : OK 10293 else 10294 am_cv_prog_cc_c_o=no 10295 break 10296 fi 10297 done 10298 rm -f core conftest* 10299 unset am_i]) 10300 if test "$am_cv_prog_cc_c_o" != yes; then 10301 # Losing compiler, so override with the script. 10302 # FIXME: It is wrong to rewrite CC. 10303 # But if we don't then we get into trouble of one sort or another. 10304 # A longer-term fix would be to have automake use am__CC in this case, 10305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 10306 CC="$am_aux_dir/compile $CC" 10307 fi 10308 AC_LANG_POP([C])]) 10309 10310 # For backward compatibility. 10311 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) 10312 10313 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 10314 # 10315 # This file is free software; the Free Software Foundation 10316 # gives unlimited permission to copy and/or distribute it, 10317 # with or without modifications, as long as this notice is preserved. 10318 10319 # AM_RUN_LOG(COMMAND) 10320 # ------------------- 10321 # Run COMMAND, save the exit status in ac_status, and log it. 10322 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.) 10323 AC_DEFUN([AM_RUN_LOG], 10324 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD 10325 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD 10326 ac_status=$? 10327 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 10328 (exit $ac_status); }]) 10329 10330 # Check to make sure that the build environment is sane. -*- Autoconf -*- 10331 10332 # Copyright (C) 1996-2021 Free Software Foundation, Inc. 10333 # 10334 # This file is free software; the Free Software Foundation 10335 # gives unlimited permission to copy and/or distribute it, 10336 # with or without modifications, as long as this notice is preserved. 10337 10338 # AM_SANITY_CHECK 10339 # --------------- 10340 AC_DEFUN([AM_SANITY_CHECK], 10341 [AC_MSG_CHECKING([whether build environment is sane]) 10342 # Reject unsafe characters in $srcdir or the absolute working directory 10343 # name. Accept space and tab only in the latter. 10344 am_lf=' 10345 ' 10346 case `pwd` in 10347 *[[\\\"\#\$\&\'\`$am_lf]]*) 10348 AC_MSG_ERROR([unsafe absolute working directory name]);; 10349 esac 10350 case $srcdir in 10351 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) 10352 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; 10353 esac 10354 10355 # Do 'set' in a subshell so we don't clobber the current shell's 10356 # arguments. Must try -L first in case configure is actually a 10357 # symlink; some systems play weird games with the mod time of symlinks 10358 # (eg FreeBSD returns the mod time of the symlink's containing 10359 # directory). 10360 if ( 10361 am_has_slept=no 10362 for am_try in 1 2; do 10363 echo "timestamp, slept: $am_has_slept" > conftest.file 10364 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 10365 if test "$[*]" = "X"; then 10366 # -L didn't work. 10367 set X `ls -t "$srcdir/configure" conftest.file` 10368 fi 10369 if test "$[*]" != "X $srcdir/configure conftest.file" \ 10370 && test "$[*]" != "X conftest.file $srcdir/configure"; then 10371 10372 # If neither matched, then we have a broken ls. This can happen 10373 # if, for instance, CONFIG_SHELL is bash and it inherits a 10374 # broken ls alias from the environment. This has actually 10375 # happened. Such a system could not be considered "sane". 10376 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 10377 alias in your environment]) 10378 fi 10379 if test "$[2]" = conftest.file || test $am_try -eq 2; then 10380 break 10381 fi 10382 # Just in case. 10383 sleep 1 10384 am_has_slept=yes 10385 done 10386 test "$[2]" = conftest.file 10387 ) 10388 then 10389 # Ok. 10390 : 10391 else 10392 AC_MSG_ERROR([newly created file is older than distributed files! 10393 Check your system clock]) 10394 fi 10395 AC_MSG_RESULT([yes]) 10396 # If we didn't sleep, we still need to ensure time stamps of config.status and 10397 # generated files are strictly newer. 10398 am_sleep_pid= 10399 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 10400 ( sleep 1 ) & 10401 am_sleep_pid=$! 10402 fi 10403 AC_CONFIG_COMMANDS_PRE( 10404 [AC_MSG_CHECKING([that generated files are newer than configure]) 10405 if test -n "$am_sleep_pid"; then 10406 # Hide warnings about reused PIDs. 10407 wait $am_sleep_pid 2>/dev/null 10408 fi 10409 AC_MSG_RESULT([done])]) 10410 rm -f conftest.file 10411 ]) 10412 10413 # Copyright (C) 2009-2021 Free Software Foundation, Inc. 10414 # 10415 # This file is free software; the Free Software Foundation 10416 # gives unlimited permission to copy and/or distribute it, 10417 # with or without modifications, as long as this notice is preserved. 10418 10419 # AM_SILENT_RULES([DEFAULT]) 10420 # -------------------------- 10421 # Enable less verbose build rules; with the default set to DEFAULT 10422 # ("yes" being less verbose, "no" or empty being verbose). 10423 AC_DEFUN([AM_SILENT_RULES], 10424 [AC_ARG_ENABLE([silent-rules], [dnl 10425 AS_HELP_STRING( 10426 [--enable-silent-rules], 10427 [less verbose build output (undo: "make V=1")]) 10428 AS_HELP_STRING( 10429 [--disable-silent-rules], 10430 [verbose build output (undo: "make V=0")])dnl 10431 ]) 10432 case $enable_silent_rules in @%:@ ((( 10433 yes) AM_DEFAULT_VERBOSITY=0;; 10434 no) AM_DEFAULT_VERBOSITY=1;; 10435 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; 10436 esac 10437 dnl 10438 dnl A few 'make' implementations (e.g., NonStop OS and NextStep) 10439 dnl do not support nested variable expansions. 10440 dnl See automake bug#9928 and bug#10237. 10441 am_make=${MAKE-make} 10442 AC_CACHE_CHECK([whether $am_make supports nested variables], 10443 [am_cv_make_support_nested_variables], 10444 [if AS_ECHO([['TRUE=$(BAR$(V)) 10445 BAR0=false 10446 BAR1=true 10447 V=1 10448 am__doit: 10449 @$(TRUE) 10450 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then 10451 am_cv_make_support_nested_variables=yes 10452 else 10453 am_cv_make_support_nested_variables=no 10454 fi]) 10455 if test $am_cv_make_support_nested_variables = yes; then 10456 dnl Using '$V' instead of '$(V)' breaks IRIX make. 10457 AM_V='$(V)' 10458 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10459 else 10460 AM_V=$AM_DEFAULT_VERBOSITY 10461 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10462 fi 10463 AC_SUBST([AM_V])dnl 10464 AM_SUBST_NOTMAKE([AM_V])dnl 10465 AC_SUBST([AM_DEFAULT_V])dnl 10466 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl 10467 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl 10468 AM_BACKSLASH='\' 10469 AC_SUBST([AM_BACKSLASH])dnl 10470 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl 10471 ]) 10472 10473 # Copyright (C) 2001-2021 Free Software Foundation, Inc. 10474 # 10475 # This file is free software; the Free Software Foundation 10476 # gives unlimited permission to copy and/or distribute it, 10477 # with or without modifications, as long as this notice is preserved. 10478 10479 # AM_PROG_INSTALL_STRIP 10480 # --------------------- 10481 # One issue with vendor 'install' (even GNU) is that you can't 10482 # specify the program used to strip binaries. This is especially 10483 # annoying in cross-compiling environments, where the build's strip 10484 # is unlikely to handle the host's binaries. 10485 # Fortunately install-sh will honor a STRIPPROG variable, so we 10486 # always use install-sh in "make install-strip", and initialize 10487 # STRIPPROG with the value of the STRIP variable (set by the user). 10488 AC_DEFUN([AM_PROG_INSTALL_STRIP], 10489 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10490 # Installed binaries are usually stripped using 'strip' when the user 10491 # run "make install-strip". However 'strip' might not be the right 10492 # tool to use in cross-compilation environments, therefore Automake 10493 # will honor the 'STRIP' environment variable to overrule this program. 10494 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. 10495 if test "$cross_compiling" != no; then 10496 AC_CHECK_TOOL([STRIP], [strip], :) 10497 fi 10498 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 10499 AC_SUBST([INSTALL_STRIP_PROGRAM])]) 10500 10501 # Copyright (C) 2006-2021 Free Software Foundation, Inc. 10502 # 10503 # This file is free software; the Free Software Foundation 10504 # gives unlimited permission to copy and/or distribute it, 10505 # with or without modifications, as long as this notice is preserved. 10506 10507 # _AM_SUBST_NOTMAKE(VARIABLE) 10508 # --------------------------- 10509 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 10510 # This macro is traced by Automake. 10511 AC_DEFUN([_AM_SUBST_NOTMAKE]) 10512 10513 # AM_SUBST_NOTMAKE(VARIABLE) 10514 # -------------------------- 10515 # Public sister of _AM_SUBST_NOTMAKE. 10516 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) 10517 10518 # Check how to create a tarball. -*- Autoconf -*- 10519 10520 # Copyright (C) 2004-2021 Free Software Foundation, Inc. 10521 # 10522 # This file is free software; the Free Software Foundation 10523 # gives unlimited permission to copy and/or distribute it, 10524 # with or without modifications, as long as this notice is preserved. 10525 10526 # _AM_PROG_TAR(FORMAT) 10527 # -------------------- 10528 # Check how to create a tarball in format FORMAT. 10529 # FORMAT should be one of 'v7', 'ustar', or 'pax'. 10530 # 10531 # Substitute a variable $(am__tar) that is a command 10532 # writing to stdout a FORMAT-tarball containing the directory 10533 # $tardir. 10534 # tardir=directory && $(am__tar) > result.tar 10535 # 10536 # Substitute a variable $(am__untar) that extract such 10537 # a tarball read from stdin. 10538 # $(am__untar) < result.tar 10539 # 10540 AC_DEFUN([_AM_PROG_TAR], 10541 [# Always define AMTAR for backward compatibility. Yes, it's still used 10542 # in the wild :-( We should find a proper way to deprecate it ... 10543 AC_SUBST([AMTAR], ['$${TAR-tar}']) 10544 10545 # We'll loop over all known methods to create a tar archive until one works. 10546 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 10547 10548 m4_if([$1], [v7], 10549 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], 10550 10551 [m4_case([$1], 10552 [ustar], 10553 [# The POSIX 1988 'ustar' format is defined with fixed-size fields. 10554 # There is notably a 21 bits limit for the UID and the GID. In fact, 10555 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 10556 # and bug#13588). 10557 am_max_uid=2097151 # 2^21 - 1 10558 am_max_gid=$am_max_uid 10559 # The $UID and $GID variables are not portable, so we need to resort 10560 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls 10561 # below are definitely unexpected, so allow the users to see them 10562 # (that is, avoid stderr redirection). 10563 am_uid=`id -u || echo unknown` 10564 am_gid=`id -g || echo unknown` 10565 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) 10566 if test $am_uid -le $am_max_uid; then 10567 AC_MSG_RESULT([yes]) 10568 else 10569 AC_MSG_RESULT([no]) 10570 _am_tools=none 10571 fi 10572 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) 10573 if test $am_gid -le $am_max_gid; then 10574 AC_MSG_RESULT([yes]) 10575 else 10576 AC_MSG_RESULT([no]) 10577 _am_tools=none 10578 fi], 10579 10580 [pax], 10581 [], 10582 10583 [m4_fatal([Unknown tar format])]) 10584 10585 AC_MSG_CHECKING([how to create a $1 tar archive]) 10586 10587 # Go ahead even if we have the value already cached. We do so because we 10588 # need to set the values for the 'am__tar' and 'am__untar' variables. 10589 _am_tools=${am_cv_prog_tar_$1-$_am_tools} 10590 10591 for _am_tool in $_am_tools; do 10592 case $_am_tool in 10593 gnutar) 10594 for _am_tar in tar gnutar gtar; do 10595 AM_RUN_LOG([$_am_tar --version]) && break 10596 done 10597 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 10598 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 10599 am__untar="$_am_tar -xf -" 10600 ;; 10601 plaintar) 10602 # Must skip GNU tar: if it does not support --format= it doesn't create 10603 # ustar tarball either. 10604 (tar --version) >/dev/null 2>&1 && continue 10605 am__tar='tar chf - "$$tardir"' 10606 am__tar_='tar chf - "$tardir"' 10607 am__untar='tar xf -' 10608 ;; 10609 pax) 10610 am__tar='pax -L -x $1 -w "$$tardir"' 10611 am__tar_='pax -L -x $1 -w "$tardir"' 10612 am__untar='pax -r' 10613 ;; 10614 cpio) 10615 am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 10616 am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 10617 am__untar='cpio -i -H $1 -d' 10618 ;; 10619 none) 10620 am__tar=false 10621 am__tar_=false 10622 am__untar=false 10623 ;; 10624 esac 10625 10626 # If the value was cached, stop now. We just wanted to have am__tar 10627 # and am__untar set. 10628 test -n "${am_cv_prog_tar_$1}" && break 10629 10630 # tar/untar a dummy directory, and stop if the command works. 10631 rm -rf conftest.dir 10632 mkdir conftest.dir 10633 echo GrepMe > conftest.dir/file 10634 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 10635 rm -rf conftest.dir 10636 if test -s conftest.tar; then 10637 AM_RUN_LOG([$am__untar <conftest.tar]) 10638 AM_RUN_LOG([cat conftest.dir/file]) 10639 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 10640 fi 10641 done 10642 rm -rf conftest.dir 10643 10644 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 10645 AC_MSG_RESULT([$am_cv_prog_tar_$1])]) 10646 10647 AC_SUBST([am__tar]) 10648 AC_SUBST([am__untar]) 10649 ]) # _AM_PROG_TAR 10650