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