1# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 2## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 3## 2008 Free Software Foundation, Inc. 4## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 5## 6## This file is free software; the Free Software Foundation gives 7## unlimited permission to copy and/or distribute it, with or without 8## modifications, as long as this notice is preserved. 9 10# serial 52 AC_PROG_LIBTOOL 11 12ifdef([AC_ACVERSION],[ 13# autoconf 2.13 compatibility 14# Set PATH_SEPARATOR variable 15# --------------------------------- 16# Find the correct PATH separator. Usually this is :', but 17# DJGPP uses ;' like DOS. 18if test "X${PATH_SEPARATOR+set}" != Xset; then 19 UNAME=${UNAME-`uname 2>/dev/null`} 20 case X$UNAME in 21 *-DOS) lt_cv_sys_path_separator=';' ;; 22 *) lt_cv_sys_path_separator=':' ;; 23 esac 24 PATH_SEPARATOR=$lt_cv_sys_path_separator 25fi 26]) 27 28# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 29# ----------------------------------------------------------- 30# If this macro is not defined by Autoconf, define it here. 31ifdef([AC_PROVIDE_IFELSE], 32 [], 33 [define([AC_PROVIDE_IFELSE], 34 [ifdef([AC_PROVIDE_$1], 35 [$2], [$3])])]) 36 37# AC_PROG_LIBTOOL 38# --------------- 39AC_DEFUN([AC_PROG_LIBTOOL], 40[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 41dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 42dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 43 AC_PROVIDE_IFELSE([AC_PROG_CXX], 44 [AC_LIBTOOL_CXX], 45 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 46 ])]) 47])# AC_PROG_LIBTOOL 48 49 50# _AC_PROG_LIBTOOL 51# ---------------- 52AC_DEFUN([_AC_PROG_LIBTOOL], 53[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 54AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 55 56# This can be used to rebuild libtool when needed 57LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 58 59# Always use our own libtool. 60LIBTOOL='$(SHELL) $(top_builddir)/libtool' 61AC_SUBST(LIBTOOL)dnl 62 63# Prevent multiple expansion 64define([AC_PROG_LIBTOOL], []) 65])# _AC_PROG_LIBTOOL 66 67 68# AC_LIBTOOL_SETUP 69# ---------------- 70AC_DEFUN([AC_LIBTOOL_SETUP], 71[AC_PREREQ(2.13)dnl 72AC_REQUIRE([AC_ENABLE_SHARED])dnl 73AC_REQUIRE([AC_ENABLE_STATIC])dnl 74AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 75AC_REQUIRE([AC_CANONICAL_HOST])dnl 76AC_REQUIRE([AC_CANONICAL_BUILD])dnl 77AC_REQUIRE([AC_PROG_CC])dnl 78AC_REQUIRE([AC_PROG_LD])dnl 79AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 80AC_REQUIRE([AC_PROG_NM])dnl 81 82AC_REQUIRE([AC_PROG_LN_S])dnl 83AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 84# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 85AC_REQUIRE([AC_OBJEXT])dnl 86AC_REQUIRE([AC_EXEEXT])dnl 87dnl 88AC_LIBTOOL_SYS_MAX_CMD_LEN 89AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 90AC_LIBTOOL_OBJDIR 91 92AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 93_LT_AC_PROG_ECHO_BACKSLASH 94 95case $host_os in 96aix3*) 97 # AIX sometimes has problems with the GCC collect2 program. For some 98 # reason, if we set the COLLECT_NAMES environment variable, the problems 99 # vanish in a puff of smoke. 100 if test "X${COLLECT_NAMES+set}" != Xset; then 101 COLLECT_NAMES= 102 export COLLECT_NAMES 103 fi 104 ;; 105esac 106 107# Sed substitution that helps us do robust quoting. It backslashifies 108# metacharacters that are still active within double-quoted strings. 109Xsed='sed -e 1s/^X//' 110[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 111 112# Same as above, but do not quote variable references. 113[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 114 115# Sed substitution to delay expansion of an escaped shell variable in a 116# double_quote_subst'ed string. 117delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 118 119# Sed substitution to avoid accidental globbing in evaled expressions 120no_glob_subst='s/\*/\\\*/g' 121 122# Constants: 123rm="rm -f" 124 125# Global variables: 126default_ofile=libtool 127can_build_shared=yes 128 129# All known linkers require a `.a' archive for static linking (except MSVC, 130# which needs '.lib'). 131libext=a 132ltmain="$ac_aux_dir/ltmain.sh" 133ofile="$default_ofile" 134with_gnu_ld="$lt_cv_prog_gnu_ld" 135 136AC_CHECK_TOOL(AR, ar, false) 137AC_CHECK_TOOL(RANLIB, ranlib, :) 138AC_CHECK_TOOL(STRIP, strip, :) 139 140old_CC="$CC" 141old_CFLAGS="$CFLAGS" 142 143# Set sane defaults for various variables 144test -z "$AR" && AR=ar 145test -z "$AR_FLAGS" && AR_FLAGS=cru 146test -z "$AS" && AS=as 147test -z "$CC" && CC=cc 148test -z "$LTCC" && LTCC=$CC 149test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 150test -z "$DLLTOOL" && DLLTOOL=dlltool 151test -z "$LD" && LD=ld 152test -z "$LN_S" && LN_S="ln -s" 153test -z "$MAGIC_CMD" && MAGIC_CMD=file 154test -z "$NM" && NM=nm 155test -z "$SED" && SED=sed 156test -z "$OBJDUMP" && OBJDUMP=objdump 157test -z "$RANLIB" && RANLIB=: 158test -z "$STRIP" && STRIP=: 159test -z "$ac_objext" && ac_objext=o 160 161# Determine commands to create old-style static archives. 162old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 163old_postinstall_cmds='chmod 644 $oldlib' 164old_postuninstall_cmds= 165 166if test -n "$RANLIB"; then 167 case $host_os in 168 openbsd*) 169 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 170 ;; 171 *) 172 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 173 ;; 174 esac 175 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 176fi 177 178_LT_CC_BASENAME([$compiler]) 179 180# Only perform the check for file, if the check method requires it 181case $deplibs_check_method in 182file_magic*) 183 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 184 AC_PATH_MAGIC 185 fi 186 ;; 187esac 188 189_LT_REQUIRED_DARWIN_CHECKS 190 191AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 192AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 193enable_win32_dll=yes, enable_win32_dll=no) 194 195AC_ARG_ENABLE([libtool-lock], 196[ --disable-libtool-lock Avoid locking (might break parallel builds)]) 197test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 198 199AC_ARG_WITH([pic], 200[ --with-pic Try to use only PIC/non-PIC objects [default=use both]], 201 [pic_mode="$withval"], 202 [pic_mode=default]) 203test -z "$pic_mode" && pic_mode=default 204 205# Use C for the default configuration in the libtool script 206tagname= 207AC_LIBTOOL_LANG_C_CONFIG 208_LT_AC_TAGCONFIG 209])# AC_LIBTOOL_SETUP 210 211 212# _LT_AC_SYS_COMPILER 213# ------------------- 214AC_DEFUN([_LT_AC_SYS_COMPILER], 215[AC_REQUIRE([AC_PROG_CC])dnl 216 217# If no C compiler was specified, use CC. 218LTCC=${LTCC-"$CC"} 219 220# If no C compiler flags were specified, use CFLAGS. 221LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 222 223# Allow CC to be a program name with arguments. 224compiler=$CC 225])# _LT_AC_SYS_COMPILER 226 227 228# _LT_CC_BASENAME(CC) 229# ------------------- 230# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 231AC_DEFUN([_LT_CC_BASENAME], 232[for cc_temp in $1""; do 233 case $cc_temp in 234 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 235 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 236 \-*) ;; 237 *) break;; 238 esac 239done 240cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 241]) 242 243 244# _LT_COMPILER_BOILERPLATE 245# ------------------------ 246# Check for compiler boilerplate output or warnings with 247# the simple compiler test code. 248AC_DEFUN([_LT_COMPILER_BOILERPLATE], 249[AC_REQUIRE([LT_AC_PROG_SED])dnl 250ac_outfile=conftest.$ac_objext 251echo "$lt_simple_compile_test_code" >conftest.$ac_ext 252eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 253_lt_compiler_boilerplate=`cat conftest.err` 254$rm conftest* 255])# _LT_COMPILER_BOILERPLATE 256 257 258# _LT_LINKER_BOILERPLATE 259# ---------------------- 260# Check for linker boilerplate output or warnings with 261# the simple link test code. 262AC_DEFUN([_LT_LINKER_BOILERPLATE], 263[AC_REQUIRE([LT_AC_PROG_SED])dnl 264ac_outfile=conftest.$ac_objext 265echo "$lt_simple_link_test_code" >conftest.$ac_ext 266eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 267_lt_linker_boilerplate=`cat conftest.err` 268$rm -r conftest* 269])# _LT_LINKER_BOILERPLATE 270 271 272dnl autoconf 2.13 compatibility 273dnl _LT_AC_TRY_LINK() 274AC_DEFUN(_LT_AC_TRY_LINK, [ 275cat > conftest.$ac_ext <<EOF 276dnl This sometimes fails to find confdefs.h, for some reason. 277dnl [#]line __oline__ "[$]0" 278[#]line __oline__ "configure" 279#include "confdefs.h" 280int main() { 281; return 0; } 282EOF 283if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 284 ifelse([$1], , :, [$1 285 rm -rf conftest*]) 286else 287 echo "configure: failed program was:" >&5 288 cat conftest.$ac_ext >&6 289ifelse([$2], , , [$2 290 rm -rf conftest* 291])dnl 292fi 293rm -f conftest*]) 294 295# _LT_REQUIRED_DARWIN_CHECKS 296# -------------------------- 297# Check for some things on darwin 298AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ 299 case $host_os in 300 rhapsody* | darwin*) 301 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 302 AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 303 304 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 305 [lt_cv_apple_cc_single_mod=no 306 if test -z "${LT_MULTI_MODULE}"; then 307 # By default we will add the -single_module flag. You can override 308 # by either setting the environment variable LT_MULTI_MODULE 309 # non-empty at configure time, or by adding -multi_module to the 310 # link flags. 311 echo "int foo(void){return 1;}" > conftest.c 312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 313 -dynamiclib ${wl}-single_module conftest.c 314 if test -f libconftest.dylib; then 315 lt_cv_apple_cc_single_mod=yes 316 rm -rf libconftest.dylib* 317 fi 318 rm conftest.c 319 fi]) 320 AC_CACHE_CHECK([for -exported_symbols_list linker flag], 321 [lt_cv_ld_exported_symbols_list], 322 [lt_cv_ld_exported_symbols_list=no 323 save_LDFLAGS=$LDFLAGS 324 echo "_main" > conftest.sym 325 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 326 _LT_AC_TRY_LINK([lt_cv_ld_exported_symbols_list=yes],[lt_cv_ld_exported_symbols_list=no]) 327 LDFLAGS="$save_LDFLAGS" 328 ]) 329 case $host_os in 330 rhapsody* | darwin1.[[0123]]) 331 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 332 darwin1.*) 333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 334 darwin*) 335 # if running on 10.5 or later, the deployment target defaults 336 # to the OS version, if on x86, and 10.4, the deployment 337 # target defaults to 10.4. Don't you love it? 338 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 339 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 340 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 341 10.[[012]]*) 342 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 343 *) 344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 345 esac 346 ;; 347 esac 348 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 349 _lt_dar_single_mod='$single_module' 350 fi 351 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 352 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 353 else 354 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 355 fi 356 if test "$DSYMUTIL" != ":"; then 357 _lt_dsymutil="~$DSYMUTIL \$lib || :" 358 else 359 _lt_dsymutil= 360 fi 361 ;; 362 esac 363]) 364 365# _LT_AC_SYS_LIBPATH_AIX 366# ---------------------- 367# Links a minimal program and checks the executable 368# for the system default hardcoded library path. In most cases, 369# this is /usr/lib:/lib, but when the MPI compilers are used 370# the location of the communication and MPI libs are included too. 371# If we don't find anything, use the default library path according 372# to the aix ld manual. 373AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 374[AC_REQUIRE([LT_AC_PROG_SED])dnl 375_LT_AC_TRY_LINK([ 376lt_aix_libpath_sed=' 377 /Import File Strings/,/^$/ { 378 /^0/ { 379 s/^0 *\(.*\)$/\1/ 380 p 381 } 382 }' 383aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 384# Check for a 64-bit object if we didn't find anything. 385if test -z "$aix_libpath"; then 386 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 387fi],[]) 388if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 389])# _LT_AC_SYS_LIBPATH_AIX 390 391 392# _LT_AC_SHELL_INIT(ARG) 393# ---------------------- 394AC_DEFUN([_LT_AC_SHELL_INIT], 395[ifdef([AC_DIVERSION_NOTICE], 396 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 397 [AC_DIVERT_PUSH(NOTICE)]) 398$1 399AC_DIVERT_POP 400])# _LT_AC_SHELL_INIT 401 402 403# _LT_AC_PROG_ECHO_BACKSLASH 404# -------------------------- 405# Add some code to the start of the generated configure script which 406# will find an echo command which doesn't interpret backslashes. 407AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 408[_LT_AC_SHELL_INIT([ 409# Check that we are running under the correct shell. 410SHELL=${CONFIG_SHELL-/bin/sh} 411 412case X$ECHO in 413X*--fallback-echo) 414 # Remove one level of quotation (which was required for Make). 415 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 416 ;; 417esac 418 419echo=${ECHO-echo} 420if test "X[$]1" = X--no-reexec; then 421 # Discard the --no-reexec flag, and continue. 422 shift 423elif test "X[$]1" = X--fallback-echo; then 424 # Avoid inline document here, it may be left over 425 : 426elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 427 # Yippee, $echo works! 428 : 429else 430 # Restart under the correct shell. 431 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 432fi 433 434if test "X[$]1" = X--fallback-echo; then 435 # used as fallback echo 436 shift 437 cat <<EOF 438[$]* 439EOF 440 exit 0 441fi 442 443# The HP-UX ksh and POSIX shell print the target directory to stdout 444# if CDPATH is set. 445(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 446 447if test -z "$ECHO"; then 448if test "X${echo_test_string+set}" != Xset; then 449# find a string as large as possible, as long as the shell can cope with it 450 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 451 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 452 if (echo_test_string=`eval $cmd`) 2>/dev/null && 453 echo_test_string=`eval $cmd` && 454 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 455 then 456 break 457 fi 458 done 459fi 460 461if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 462 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 463 test "X$echo_testing_string" = "X$echo_test_string"; then 464 : 465else 466 # The Solaris, AIX, and Digital Unix default echo programs unquote 467 # backslashes. This makes it impossible to quote backslashes using 468 # echo "$something" | sed 's/\\/\\\\/g' 469 # 470 # So, first we look for a working echo in the user's PATH. 471 472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 473 for dir in $PATH /usr/ucb; do 474 IFS="$lt_save_ifs" 475 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 476 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 477 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 478 test "X$echo_testing_string" = "X$echo_test_string"; then 479 echo="$dir/echo" 480 break 481 fi 482 done 483 IFS="$lt_save_ifs" 484 485 if test "X$echo" = Xecho; then 486 # We didn't find a better echo, so look for alternatives. 487 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 488 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 489 test "X$echo_testing_string" = "X$echo_test_string"; then 490 # This shell has a builtin print -r that does the trick. 491 echo='print -r' 492 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 493 test "X$CONFIG_SHELL" != X/bin/ksh; then 494 # If we have ksh, try running configure again with it. 495 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 496 export ORIGINAL_CONFIG_SHELL 497 CONFIG_SHELL=/bin/ksh 498 export CONFIG_SHELL 499 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 500 else 501 # Try using printf. 502 echo='printf %s\n' 503 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 504 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 505 test "X$echo_testing_string" = "X$echo_test_string"; then 506 # Cool, printf works 507 : 508 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 509 test "X$echo_testing_string" = 'X\t' && 510 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 511 test "X$echo_testing_string" = "X$echo_test_string"; then 512 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 513 export CONFIG_SHELL 514 SHELL="$CONFIG_SHELL" 515 export SHELL 516 echo="$CONFIG_SHELL [$]0 --fallback-echo" 517 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 518 test "X$echo_testing_string" = 'X\t' && 519 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 520 test "X$echo_testing_string" = "X$echo_test_string"; then 521 echo="$CONFIG_SHELL [$]0 --fallback-echo" 522 else 523 # maybe with a smaller string... 524 prev=: 525 526 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 527 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 528 then 529 break 530 fi 531 prev="$cmd" 532 done 533 534 if test "$prev" != 'sed 50q "[$]0"'; then 535 echo_test_string=`eval $prev` 536 export echo_test_string 537 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 538 else 539 # Oops. We lost completely, so just stick with echo. 540 echo=echo 541 fi 542 fi 543 fi 544 fi 545fi 546fi 547 548# Copy echo and quote the copy suitably for passing to libtool from 549# the Makefile, instead of quoting the original, which is used later. 550ECHO=$echo 551if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 552 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 553fi 554 555AC_SUBST(ECHO) 556])])# _LT_AC_PROG_ECHO_BACKSLASH 557 558 559# _LT_AC_LOCK 560# ----------- 561AC_DEFUN([_LT_AC_LOCK], 562[dnl 563#AC_ARG_ENABLE([libtool-lock], 564#[ --disable-libtool-lock avoid locking (might break parallel builds)]) 565#test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 566 567# Some flags need to be propagated to the compiler or linker for good 568# libtool support. 569case $host in 570ia64-*-hpux*) 571 # Find out which ABI we are using. 572 echo 'int i;' > conftest.$ac_ext 573 if AC_TRY_EVAL(ac_compile); then 574 case `/usr/bin/file conftest.$ac_objext` in 575 *ELF-32*) 576 HPUX_IA64_MODE="32" 577 ;; 578 *ELF-64*) 579 HPUX_IA64_MODE="64" 580 ;; 581 esac 582 fi 583 rm -rf conftest* 584 ;; 585*-*-irix6*) 586 # Find out which ABI we are using. 587 echo '[#]line __oline__ "configure"' > conftest.$ac_ext 588 if AC_TRY_EVAL(ac_compile); then 589 if test "$lt_cv_prog_gnu_ld" = yes; then 590 case `/usr/bin/file conftest.$ac_objext` in 591 *32-bit*) 592 LD="${LD-ld} -melf32bsmip" 593 ;; 594 *N32*) 595 LD="${LD-ld} -melf32bmipn32" 596 ;; 597 *64-bit*) 598 LD="${LD-ld} -melf64bmip" 599 ;; 600 esac 601 else 602 case `/usr/bin/file conftest.$ac_objext` in 603 *32-bit*) 604 LD="${LD-ld} -32" 605 ;; 606 *N32*) 607 LD="${LD-ld} -n32" 608 ;; 609 *64-bit*) 610 LD="${LD-ld} -64" 611 ;; 612 esac 613 fi 614 fi 615 rm -rf conftest* 616 ;; 617 618x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 619s390*-*linux*|sparc*-*linux*) 620 # Find out which ABI we are using. 621 echo 'int i;' > conftest.$ac_ext 622 if AC_TRY_EVAL(ac_compile); then 623 case `/usr/bin/file conftest.o` in 624 *32-bit*) 625 case $host in 626 x86_64-*kfreebsd*-gnu) 627 LD="${LD-ld} -m elf_i386_fbsd" 628 ;; 629 x86_64-*linux*) 630 LD="${LD-ld} -m elf_i386" 631 ;; 632 powerpc64le-*linux*) 633 LD="${LD-ld} -m elf32lppclinux" 634 ;; 635 powerpc64-*linux*) 636 LD="${LD-ld} -m elf32ppclinux" 637 ;; 638 s390x-*linux*) 639 LD="${LD-ld} -m elf_s390" 640 ;; 641 sparc64-*linux*) 642 LD="${LD-ld} -m elf32_sparc" 643 ;; 644 esac 645 ;; 646 *64-bit*) 647 case $host in 648 x86_64-*kfreebsd*-gnu) 649 LD="${LD-ld} -m elf_x86_64_fbsd" 650 ;; 651 x86_64-*linux*) 652 LD="${LD-ld} -m elf_x86_64" 653 ;; 654 powerpcle-*linux*) 655 LD="${LD-ld} -m elf64lppc" 656 ;; 657 powerpc-*linux*) 658 LD="${LD-ld} -m elf64ppc" 659 ;; 660 s390*-*linux*) 661 LD="${LD-ld} -m elf64_s390" 662 ;; 663 sparc*-*linux*) 664 LD="${LD-ld} -m elf64_sparc" 665 ;; 666 esac 667 ;; 668 esac 669 fi 670 rm -rf conftest* 671 ;; 672 673*-*-sco3.2v5*) 674 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 675 SAVE_CFLAGS="$CFLAGS" 676 CFLAGS="$CFLAGS -belf" 677 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 678 [AC_LANG_SAVE 679 AC_LANG_C 680 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 681 AC_LANG_RESTORE]) 682 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 683 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 684 CFLAGS="$SAVE_CFLAGS" 685 fi 686 ;; 687sparc*-*solaris*) 688 # Find out which ABI we are using. 689 echo 'int i;' > conftest.$ac_ext 690 if AC_TRY_EVAL(ac_compile); then 691 case `/usr/bin/file conftest.o` in 692 *64-bit*) 693 case $lt_cv_prog_gnu_ld in 694 yes*) LD="${LD-ld} -m elf64_sparc" ;; 695 *) 696 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 697 LD="${LD-ld} -64" 698 fi 699 ;; 700 esac 701 ;; 702 esac 703 fi 704 rm -rf conftest* 705 ;; 706 707AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 708[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 709 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 710 AC_CHECK_TOOL(AS, as, false) 711 AC_CHECK_TOOL(OBJDUMP, objdump, false) 712 ;; 713 ]) 714esac 715 716need_locks="$enable_libtool_lock" 717 718])# _LT_AC_LOCK 719 720 721# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 722# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 723# ---------------------------------------------------------------- 724# Check whether the given compiler option works 725AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 726[AC_REQUIRE([LT_AC_PROG_SED]) 727AC_CACHE_CHECK([$1], [$2], 728 [$2=no 729 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 731 lt_compiler_flag="$3" 732 # Insert the option either (1) after the last *FLAGS variable, or 733 # (2) before a word containing "conftest.", or (3) at the end. 734 # Note that $ac_compile itself does not contain backslashes and begins 735 # with a dollar sign (not a hyphen), so the echo should work correctly. 736 # The option is referenced via a variable to avoid confusing sed. 737 lt_compile=`echo "$ac_compile" | $SED \ 738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 739 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 740 -e 's:$: $lt_compiler_flag:'` 741 (eval echo "\"configure:__oline__: $lt_compile\"" >&5) 742 (eval "$lt_compile" 2>conftest.err) 743 ac_status=$? 744 cat conftest.err >&5 745 echo "configure:__oline__: \$? = $ac_status" >&5 746 if (exit $ac_status) && test -s "$ac_outfile"; then 747 # The compiler can only warn and ignore the option if not recognized 748 # So say no if there are warnings other than the usual output. 749 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 750 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 751 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 752 $2=yes 753 fi 754 fi 755 $rm conftest* 756]) 757 758if test x"[$]$2" = xyes; then 759 ifelse([$5], , :, [$5]) 760else 761 ifelse([$6], , :, [$6]) 762fi 763])# AC_LIBTOOL_COMPILER_OPTION 764 765 766# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 767# [ACTION-SUCCESS], [ACTION-FAILURE]) 768# ------------------------------------------------------------ 769# Check whether the given compiler option works 770AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 771[AC_REQUIRE([LT_AC_PROG_SED])dnl 772AC_CACHE_CHECK([$1], [$2], 773 [$2=no 774 save_LDFLAGS="$LDFLAGS" 775 LDFLAGS="$LDFLAGS $3" 776 echo "$lt_simple_link_test_code" > conftest.$ac_ext 777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 778 # The linker can only warn and ignore the option if not recognized 779 # So say no if there are warnings 780 if test -s conftest.err; then 781 # Append any errors to the config.log. 782 cat conftest.err 1>&5 783 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 785 if diff conftest.exp conftest.er2 >/dev/null; then 786 $2=yes 787 fi 788 else 789 $2=yes 790 fi 791 fi 792 $rm -r conftest* 793 LDFLAGS="$save_LDFLAGS" 794]) 795 796if test x"[$]$2" = xyes; then 797 ifelse([$4], , :, [$4]) 798else 799 ifelse([$5], , :, [$5]) 800fi 801])# AC_LIBTOOL_LINKER_OPTION 802 803 804# AC_LIBTOOL_SYS_MAX_CMD_LEN 805# -------------------------- 806AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 807[# find the maximum length of command line arguments 808AC_MSG_CHECKING([the maximum length of command line arguments]) 809AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 810 i=0 811 teststring="ABCD" 812 813 case $build_os in 814 msdosdjgpp*) 815 # On DJGPP, this test can blow up pretty badly due to problems in libc 816 # (any single argument exceeding 2000 bytes causes a buffer overrun 817 # during glob expansion). Even if it were fixed, the result of this 818 # check would be larger than it should be. 819 lt_cv_sys_max_cmd_len=12288; # 12K is about right 820 ;; 821 822 gnu*) 823 # Under GNU Hurd, this test is not required because there is 824 # no limit to the length of command line arguments. 825 # Libtool will interpret -1 as no limit whatsoever 826 lt_cv_sys_max_cmd_len=-1; 827 ;; 828 829 cygwin* | mingw*) 830 # On Win9x/ME, this test blows up -- it succeeds, but takes 831 # about 5 minutes as the teststring grows exponentially. 832 # Worse, since 9x/ME are not pre-emptively multitasking, 833 # you end up with a "frozen" computer, even though with patience 834 # the test eventually succeeds (with a max line length of 256k). 835 # Instead, let's just punt: use the minimum linelength reported by 836 # all of the supported platforms: 8192 (on NT/2K/XP). 837 lt_cv_sys_max_cmd_len=8192; 838 ;; 839 840 amigaos*) 841 # On AmigaOS with pdksh, this test takes hours, literally. 842 # So we just punt and use a minimum line length of 8192. 843 lt_cv_sys_max_cmd_len=8192; 844 ;; 845 846 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 847 # This has been around since 386BSD, at least. Likely further. 848 if test -x /sbin/sysctl; then 849 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 850 elif test -x /usr/sbin/sysctl; then 851 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 852 else 853 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 854 fi 855 # And add a safety zone 856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 857 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 858 ;; 859 860 interix*) 861 # We know the value 262144 and hardcode it with a safety zone (like BSD) 862 lt_cv_sys_max_cmd_len=196608 863 ;; 864 865 osf*) 866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 868 # nice to cause kernel panics so lets avoid the loop below. 869 # First set a reasonable default. 870 lt_cv_sys_max_cmd_len=16384 871 # 872 if test -x /sbin/sysconfig; then 873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 874 *1*) lt_cv_sys_max_cmd_len=-1 ;; 875 esac 876 fi 877 ;; 878 sco3.2v5*) 879 lt_cv_sys_max_cmd_len=102400 880 ;; 881 sysv5* | sco5v6* | sysv4.2uw2*) 882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 883 if test -n "$kargmax"; then 884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 885 else 886 lt_cv_sys_max_cmd_len=32768 887 fi 888 ;; 889 *) 890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 891 if test -n "$lt_cv_sys_max_cmd_len"; then 892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 894 else 895 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 896 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 897 = "XX$teststring") >/dev/null 2>&1 && 898 new_result=`expr "X$teststring" : ".*" 2>&1` && 899 lt_cv_sys_max_cmd_len=$new_result && 900 test $i != 17 # 1/2 MB should be enough 901 do 902 i=`expr $i + 1` 903 teststring=$teststring$teststring 904 done 905 teststring= 906 # Add a significant safety factor because C++ compilers can tack on massive 907 # amounts of additional arguments before passing them to the linker. 908 # It appears as though 1/2 is a usable value. 909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 910 fi 911 ;; 912 esac 913]) 914if test -n $lt_cv_sys_max_cmd_len ; then 915 AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 916else 917 AC_MSG_RESULT(none) 918fi 919])# AC_LIBTOOL_SYS_MAX_CMD_LEN 920 921 922# _LT_AC_CHECK_DLFCN 923# ------------------ 924AC_DEFUN([_LT_AC_CHECK_DLFCN], 925[AC_CHECK_HEADERS(dlfcn.h)dnl 926])# _LT_AC_CHECK_DLFCN 927 928 929# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 930# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 931# --------------------------------------------------------------------- 932AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 933[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 934if test "$cross_compiling" = yes; then : 935 [$4] 936else 937 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 938 lt_status=$lt_dlunknown 939 cat > conftest.$ac_ext <<EOF 940[#line __oline__ "configure" 941#include "confdefs.h" 942 943#if HAVE_DLFCN_H 944#include <dlfcn.h> 945#endif 946 947#include <stdio.h> 948#include <stdlib.h> 949 950#ifdef RTLD_GLOBAL 951# define LT_DLGLOBAL RTLD_GLOBAL 952#else 953# ifdef DL_GLOBAL 954# define LT_DLGLOBAL DL_GLOBAL 955# else 956# define LT_DLGLOBAL 0 957# endif 958#endif 959 960/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 961 find out it does not work in some platform. */ 962#ifndef LT_DLLAZY_OR_NOW 963# ifdef RTLD_LAZY 964# define LT_DLLAZY_OR_NOW RTLD_LAZY 965# else 966# ifdef DL_LAZY 967# define LT_DLLAZY_OR_NOW DL_LAZY 968# else 969# ifdef RTLD_NOW 970# define LT_DLLAZY_OR_NOW RTLD_NOW 971# else 972# ifdef DL_NOW 973# define LT_DLLAZY_OR_NOW DL_NOW 974# else 975# define LT_DLLAZY_OR_NOW 0 976# endif 977# endif 978# endif 979# endif 980#endif 981 982void fnord() { int i=42;} 983int main () 984{ 985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 986 int status = $lt_dlunknown; 987 988 if (self) 989 { 990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 992 /* dlclose (self); */ 993 } 994 else 995 puts (dlerror ()); 996 997 return (status); 998}] 999EOF 1000 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1001 (./conftest; exit; ) >&5 2>/dev/null 1002 lt_status=$? 1003 case x$lt_status in 1004 x$lt_dlno_uscore) $1 ;; 1005 x$lt_dlneed_uscore) $2 ;; 1006 x$lt_dlunknown|x*) $3 ;; 1007 esac 1008 else : 1009 # compilation failed 1010 $3 1011 fi 1012fi 1013rm -fr conftest* 1014])# _LT_AC_TRY_DLOPEN_SELF 1015 1016 1017# AC_LIBTOOL_DLOPEN_SELF 1018# ---------------------- 1019AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1020[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1021if test "x$enable_dlopen" != xyes; then 1022 enable_dlopen=unknown 1023 enable_dlopen_self=unknown 1024 enable_dlopen_self_static=unknown 1025else 1026 lt_cv_dlopen=no 1027 lt_cv_dlopen_libs= 1028 1029 case $host_os in 1030 beos*) 1031 lt_cv_dlopen="load_add_on" 1032 lt_cv_dlopen_libs= 1033 lt_cv_dlopen_self=yes 1034 ;; 1035 1036 mingw* | pw32*) 1037 lt_cv_dlopen="LoadLibrary" 1038 lt_cv_dlopen_libs= 1039 ;; 1040 1041 cygwin*) 1042 lt_cv_dlopen="dlopen" 1043 lt_cv_dlopen_libs= 1044 ;; 1045 1046 darwin*) 1047 # if libdl is installed we need to link against it 1048 AC_CHECK_LIB([dl], [dlopen], 1049 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 1050 lt_cv_dlopen="dyld" 1051 lt_cv_dlopen_libs= 1052 lt_cv_dlopen_self=yes 1053 ]) 1054 ;; 1055 1056 *) 1057 AC_CHECK_FUNC([shl_load], 1058 [lt_cv_dlopen="shl_load"], 1059 [AC_CHECK_LIB([dld], [shl_load], 1060 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 1061 [AC_CHECK_FUNC([dlopen], 1062 [lt_cv_dlopen="dlopen"], 1063 [AC_CHECK_LIB([dl], [dlopen], 1064 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 1065 [AC_CHECK_LIB([svld], [dlopen], 1066 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 1067 [AC_CHECK_LIB([dld], [dld_link], 1068 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 1069 ]) 1070 ]) 1071 ]) 1072 ]) 1073 ]) 1074 ;; 1075 esac 1076 1077 if test "x$lt_cv_dlopen" != xno; then 1078 enable_dlopen=yes 1079 else 1080 enable_dlopen=no 1081 fi 1082 1083 case $lt_cv_dlopen in 1084 dlopen) 1085 save_CPPFLAGS="$CPPFLAGS" 1086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1087 1088 save_LDFLAGS="$LDFLAGS" 1089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1090 1091 save_LIBS="$LIBS" 1092 LIBS="$lt_cv_dlopen_libs $LIBS" 1093 1094 AC_CACHE_CHECK([whether a program can dlopen itself], 1095 lt_cv_dlopen_self, [dnl 1096 _LT_AC_TRY_DLOPEN_SELF( 1097 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1098 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1099 ]) 1100 1101 if test "x$lt_cv_dlopen_self" = xyes; then 1102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 1103 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1104 lt_cv_dlopen_self_static, [dnl 1105 _LT_AC_TRY_DLOPEN_SELF( 1106 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1107 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1108 ]) 1109 fi 1110 1111 CPPFLAGS="$save_CPPFLAGS" 1112 LDFLAGS="$save_LDFLAGS" 1113 LIBS="$save_LIBS" 1114 ;; 1115 esac 1116 1117 case $lt_cv_dlopen_self in 1118 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1119 *) enable_dlopen_self=unknown ;; 1120 esac 1121 1122 case $lt_cv_dlopen_self_static in 1123 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1124 *) enable_dlopen_self_static=unknown ;; 1125 esac 1126fi 1127])# AC_LIBTOOL_DLOPEN_SELF 1128 1129 1130# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 1131# --------------------------------- 1132# Check to see if options -c and -o are simultaneously supported by compiler 1133AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1134[AC_REQUIRE([LT_AC_PROG_SED])dnl 1135AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1136AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1137 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 1138 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 1139 $rm -r conftest 2>/dev/null 1140 mkdir conftest 1141 cd conftest 1142 mkdir out 1143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1144 1145 lt_compiler_flag="-o out/conftest2.$ac_objext" 1146 # Insert the option either (1) after the last *FLAGS variable, or 1147 # (2) before a word containing "conftest.", or (3) at the end. 1148 # Note that $ac_compile itself does not contain backslashes and begins 1149 # with a dollar sign (not a hyphen), so the echo should work correctly. 1150 lt_compile=`echo "$ac_compile" | $SED \ 1151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1152 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1153 -e 's:$: $lt_compiler_flag:'` 1154 (eval echo "\"configure:__oline__: $lt_compile\"" >&5) 1155 (eval "$lt_compile" 2>out/conftest.err) 1156 ac_status=$? 1157 cat out/conftest.err >&5 1158 echo "configure:__oline__: \$? = $ac_status" >&5 1159 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1160 then 1161 # The compiler can only warn and ignore the option if not recognized 1162 # So say no if there are warnings 1163 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1166 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1167 fi 1168 fi 1169 chmod u+w . 2>&5 1170 $rm conftest* 1171 # SGI C++ compiler will create directory out/ii_files/ for 1172 # template instantiation 1173 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1174 $rm out/* && rmdir out 1175 cd .. 1176 rmdir conftest 1177 $rm conftest* 1178]) 1179])# AC_LIBTOOL_PROG_CC_C_O 1180 1181 1182# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 1183# ----------------------------------------- 1184# Check to see if we can do hard links to lock some files if needed 1185AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 1186[AC_REQUIRE([_LT_AC_LOCK])dnl 1187 1188hard_links="nottested" 1189if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 1190 # do not overwrite the value of need_locks provided by the user 1191 AC_MSG_CHECKING([if we can lock with hard links]) 1192 hard_links=yes 1193 $rm conftest* 1194 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1195 touch conftest.a 1196 ln conftest.a conftest.b 2>&5 || hard_links=no 1197 ln conftest.a conftest.b 2>/dev/null && hard_links=no 1198 AC_MSG_RESULT([$hard_links]) 1199 if test "$hard_links" = no; then 1200 AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) 1201 need_locks=warn 1202 fi 1203else 1204 need_locks=no 1205fi 1206])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 1207 1208 1209# AC_LIBTOOL_OBJDIR 1210# ----------------- 1211AC_DEFUN([AC_LIBTOOL_OBJDIR], 1212[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 1213[rm -f .libs 2>/dev/null 1214mkdir .libs 2>/dev/null 1215if test -d .libs; then 1216 lt_cv_objdir=.libs 1217else 1218 # MS-DOS does not allow filenames that begin with a dot. 1219 lt_cv_objdir=_libs 1220fi 1221rmdir .libs 2>/dev/null]) 1222objdir=$lt_cv_objdir 1223])# AC_LIBTOOL_OBJDIR 1224 1225 1226# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 1227# ---------------------------------------------- 1228# Check hardcoding attributes. 1229AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1230[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1231_LT_AC_TAGVAR(hardcode_action, $1)= 1232if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1233 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1234 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1235 1236 # We can hardcode non-existent directories. 1237 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1238 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1239 # have to relink, otherwise we might link with an installed library 1240 # when we should be linking with a yet-to-be-installed one 1241 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 1242 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 1243 # Linking always hardcodes the temporary library directory. 1244 _LT_AC_TAGVAR(hardcode_action, $1)=relink 1245 else 1246 # We can link without hardcoding, and we can hardcode nonexisting dirs. 1247 _LT_AC_TAGVAR(hardcode_action, $1)=immediate 1248 fi 1249else 1250 # We cannot hardcode anything, or else we can only hardcode existing 1251 # directories. 1252 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 1253fi 1254AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 1255 1256if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 1257 # Fast installation is not supported 1258 enable_fast_install=no 1259elif test "$shlibpath_overrides_runpath" = yes || 1260 test "$enable_shared" = no; then 1261 # Fast installation is not necessary 1262 enable_fast_install=needless 1263fi 1264])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 1265 1266 1267# AC_LIBTOOL_SYS_LIB_STRIP 1268# ------------------------ 1269AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 1270[striplib= 1271old_striplib= 1272AC_MSG_CHECKING([whether stripping libraries is possible]) 1273if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 1274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 1275 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 1276 AC_MSG_RESULT([yes]) 1277else 1278# FIXME - insert some real tests, host_os isn't really good enough 1279 case $host_os in 1280 darwin*) 1281 if test -n "$STRIP" ; then 1282 striplib="$STRIP -x" 1283 old_striplib="$STRIP -S" 1284 AC_MSG_RESULT([yes]) 1285 else 1286 AC_MSG_RESULT([no]) 1287fi 1288 ;; 1289 *) 1290 AC_MSG_RESULT([no]) 1291 ;; 1292 esac 1293fi 1294])# AC_LIBTOOL_SYS_LIB_STRIP 1295 1296 1297# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1298# ----------------------------- 1299# PORTME Fill in your ld.so characteristics 1300AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1301[AC_REQUIRE([LT_AC_PROG_SED])dnl 1302AC_MSG_CHECKING([dynamic linker characteristics]) 1303library_names_spec= 1304libname_spec='lib$name' 1305soname_spec= 1306shrext_cmds=".so" 1307postinstall_cmds= 1308postuninstall_cmds= 1309finish_cmds= 1310finish_eval= 1311shlibpath_var= 1312shlibpath_overrides_runpath=unknown 1313version_type=none 1314dynamic_linker="$host_os ld.so" 1315sys_lib_dlsearch_path_spec="/lib /usr/lib" 1316ifelse($1,[],[ 1317if test "$GCC" = yes; then 1318 case $host_os in 1319 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 1320 *) lt_awk_arg="/^libraries:/" ;; 1321 esac 1322 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1323 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 1324 # if the path contains ";" then we assume it to be the separator 1325 # otherwise default to the standard path separator (i.e. ":") - it is 1326 # assumed that no part of a normal pathname contains ";" but that should 1327 # okay in the real world where ";" in dirpaths is itself problematic. 1328 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1329 else 1330 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1331 fi 1332 # Ok, now we have the path, separated by spaces, we can step through it 1333 # and add multilib dir if necessary. 1334 lt_tmp_lt_search_path_spec= 1335 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 1336 for lt_sys_path in $lt_search_path_spec; do 1337 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 1338 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 1339 else 1340 test -d "$lt_sys_path" && \ 1341 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1342 fi 1343 done 1344 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 1345BEGIN {RS=" "; FS="/|\n";} { 1346 lt_foo=""; 1347 lt_count=0; 1348 for (lt_i = NF; lt_i > 0; lt_i--) { 1349 if ($lt_i != "" && $lt_i != ".") { 1350 if ($lt_i == "..") { 1351 lt_count++; 1352 } else { 1353 if (lt_count == 0) { 1354 lt_foo="/" $lt_i lt_foo; 1355 } else { 1356 lt_count--; 1357 } 1358 } 1359 } 1360 } 1361 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 1362 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1363}'` 1364 sys_lib_search_path_spec=`echo $lt_search_path_spec` 1365else 1366 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1367fi]) 1368need_lib_prefix=unknown 1369hardcode_into_libs=no 1370 1371# when you set need_version to no, make sure it does not cause -set_version 1372# flags to be left without arguments 1373need_version=unknown 1374 1375case $host_os in 1376aix3*) 1377 version_type=linux 1378 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 1379 shlibpath_var=LIBPATH 1380 1381 # AIX 3 has no versioning support, so we append a major version to the name. 1382 soname_spec='${libname}${release}${shared_ext}$major' 1383 ;; 1384 1385aix[[4-9]]*) 1386 version_type=linux 1387 need_lib_prefix=no 1388 need_version=no 1389 hardcode_into_libs=yes 1390 if test "$host_cpu" = ia64; then 1391 # AIX 5 supports IA64 1392 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 1393 shlibpath_var=LD_LIBRARY_PATH 1394 else 1395 # With GCC up to 2.95.x, collect2 would create an import file 1396 # for dependence libraries. The import file would start with 1397 # the line `#! .'. This would cause the generated library to 1398 # depend on `.', always an invalid library. This was fixed in 1399 # development snapshots of GCC prior to 3.0. 1400 case $host_os in 1401 aix4 | aix4.[[01]] | aix4.[[01]].*) 1402 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1403 echo ' yes ' 1404 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1405 : 1406 else 1407 can_build_shared=no 1408 fi 1409 ;; 1410 esac 1411 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 1412 # soname into executable. Probably we can add versioning support to 1413 # collect2, so additional links can be useful in future. 1414 if test "$aix_use_runtimelinking" = yes; then 1415 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 1416 # instead of lib<name>.a to let people know that these are not 1417 # typical AIX shared libraries. 1418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1419 else 1420 # We preserve .a as extension for shared libraries through AIX4.2 1421 # and later when we are not doing run time linking. 1422 library_names_spec='${libname}${release}.a $libname.a' 1423 soname_spec='${libname}${release}${shared_ext}$major' 1424 fi 1425 shlibpath_var=LIBPATH 1426 fi 1427 ;; 1428 1429amigaos*) 1430 library_names_spec='$libname.ixlibrary $libname.a' 1431 # Create ${libname}_ixlibrary.a entries in /sys/libs. 1432 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 1433 ;; 1434 1435beos*) 1436 library_names_spec='${libname}${shared_ext}' 1437 dynamic_linker="$host_os ld.so" 1438 shlibpath_var=LIBRARY_PATH 1439 ;; 1440 1441bsdi[[45]]*) 1442 version_type=linux 1443 need_version=no 1444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1445 soname_spec='${libname}${release}${shared_ext}$major' 1446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 1447 shlibpath_var=LD_LIBRARY_PATH 1448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 1449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 1450 # the default ld.so.conf also contains /usr/contrib/lib and 1451 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 1452 # libtool to hard-code these into programs 1453 ;; 1454 1455cygwin* | mingw* | pw32*) 1456 version_type=windows 1457 shrext_cmds=".dll" 1458 need_version=no 1459 need_lib_prefix=no 1460 1461 case $GCC,$host_os in 1462 yes,cygwin* | yes,mingw* | yes,pw32*) 1463 library_names_spec='$libname.dll.a' 1464 # DLL is installed to $(libdir)/../bin by postinstall_cmds 1465 postinstall_cmds='base_file=`basename \${file}`~ 1466 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 1467 dldir=$destdir/`dirname \$dlpath`~ 1468 test -d \$dldir || mkdir -p \$dldir~ 1469 $install_prog $dir/$dlname \$dldir/$dlname~ 1470 chmod a+x \$dldir/$dlname' 1471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1472 dlpath=$dir/\$dldll~ 1473 $rm \$dlpath' 1474 shlibpath_overrides_runpath=yes 1475 1476 case $host_os in 1477 cygwin*) 1478 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 1479 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1480 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 1481 ;; 1482 mingw*) 1483 # MinGW DLLs use traditional 'lib' prefix 1484 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1485 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1486 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 1487 # It is most probably a Windows format PATH printed by 1488 # mingw gcc, but we are running on Cygwin. Gcc prints its search 1489 # path with ; separators, and with drive letters. We can handle the 1490 # drive letters (cygwin fileutils understands them), so leave them, 1491 # especially as we might pass files found there to a mingw objdump, 1492 # which wouldn't understand a cygwinified path. Ahh. 1493 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 1494 else 1495 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1496 fi 1497 ;; 1498 pw32*) 1499 # pw32 DLLs use 'pw' prefix rather than 'lib' 1500 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1501 ;; 1502 esac 1503 ;; 1504 1505 *) 1506 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 1507 ;; 1508 esac 1509 dynamic_linker='Win32 ld.exe' 1510 # FIXME: first we should search . and the directory the executable is in 1511 shlibpath_var=PATH 1512 ;; 1513 1514darwin* | rhapsody*) 1515 dynamic_linker="$host_os dyld" 1516 version_type=darwin 1517 need_lib_prefix=no 1518 need_version=no 1519 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 1520 soname_spec='${libname}${release}${major}$shared_ext' 1521 shlibpath_overrides_runpath=yes 1522 shlibpath_var=DYLD_LIBRARY_PATH 1523 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1524 ifelse([$1], [],[ 1525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1527 ;; 1528 1529dgux*) 1530 version_type=linux 1531 need_lib_prefix=no 1532 need_version=no 1533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 1534 soname_spec='${libname}${release}${shared_ext}$major' 1535 shlibpath_var=LD_LIBRARY_PATH 1536 ;; 1537 1538freebsd* | dragonfly*) 1539 # DragonFly does not have aout. When/if they implement a new 1540 # versioning mechanism, adjust this. 1541 if test -x /usr/bin/objformat; then 1542 objformat=`/usr/bin/objformat` 1543 else 1544 case $host_os in 1545 freebsd[[123]].*) objformat=aout ;; 1546 *) objformat=elf ;; 1547 esac 1548 fi 1549 version_type=freebsd-$objformat 1550 case $version_type in 1551 freebsd-elf*) 1552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1553 need_version=no 1554 need_lib_prefix=no 1555 ;; 1556 freebsd-*) 1557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 1558 need_version=yes 1559 ;; 1560 esac 1561 shlibpath_var=LD_LIBRARY_PATH 1562 case $host_os in 1563 freebsd2*) 1564 shlibpath_overrides_runpath=yes 1565 ;; 1566 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1567 shlibpath_overrides_runpath=yes 1568 hardcode_into_libs=yes 1569 ;; 1570 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 1571 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 1572 shlibpath_overrides_runpath=no 1573 hardcode_into_libs=yes 1574 ;; 1575 *) # from 4.6 on, and DragonFly 1576 shlibpath_overrides_runpath=yes 1577 hardcode_into_libs=yes 1578 ;; 1579 esac 1580 ;; 1581 1582gnu*) 1583 version_type=linux 1584 need_lib_prefix=no 1585 need_version=no 1586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 1587 soname_spec='${libname}${release}${shared_ext}$major' 1588 shlibpath_var=LD_LIBRARY_PATH 1589 hardcode_into_libs=yes 1590 ;; 1591 1592hpux9* | hpux10* | hpux11*) 1593 # Give a soname corresponding to the major version so that dld.sl refuses to 1594 # link against other versions. 1595 version_type=sunos 1596 need_lib_prefix=no 1597 need_version=no 1598 case $host_cpu in 1599 ia64*) 1600 shrext_cmds='.so' 1601 hardcode_into_libs=yes 1602 dynamic_linker="$host_os dld.so" 1603 shlibpath_var=LD_LIBRARY_PATH 1604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1606 soname_spec='${libname}${release}${shared_ext}$major' 1607 if test "X$HPUX_IA64_MODE" = X32; then 1608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 1609 else 1610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1611 fi 1612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1613 ;; 1614 hppa*64*) 1615 shrext_cmds='.sl' 1616 hardcode_into_libs=yes 1617 dynamic_linker="$host_os dld.sl" 1618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 1619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1621 soname_spec='${libname}${release}${shared_ext}$major' 1622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 1623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1624 ;; 1625 *) 1626 shrext_cmds='.sl' 1627 dynamic_linker="$host_os dld.sl" 1628 shlibpath_var=SHLIB_PATH 1629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1631 soname_spec='${libname}${release}${shared_ext}$major' 1632 ;; 1633 esac 1634 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1635 postinstall_cmds='chmod 555 $lib' 1636 ;; 1637 1638interix[[3-9]]*) 1639 version_type=linux 1640 need_lib_prefix=no 1641 need_version=no 1642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1643 soname_spec='${libname}${release}${shared_ext}$major' 1644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 1645 shlibpath_var=LD_LIBRARY_PATH 1646 shlibpath_overrides_runpath=no 1647 hardcode_into_libs=yes 1648 ;; 1649 1650irix5* | irix6* | nonstopux*) 1651 case $host_os in 1652 nonstopux*) version_type=nonstopux ;; 1653 *) 1654 if test "$lt_cv_prog_gnu_ld" = yes; then 1655 version_type=linux 1656 else 1657 version_type=irix 1658 fi ;; 1659 esac 1660 need_lib_prefix=no 1661 need_version=no 1662 soname_spec='${libname}${release}${shared_ext}$major' 1663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 1664 case $host_os in 1665 irix5* | nonstopux*) 1666 libsuff= shlibsuff= 1667 ;; 1668 *) 1669 case $LD in # libtool.m4 will add one of these switches to LD 1670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1671 libsuff= shlibsuff= libmagic=32-bit;; 1672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1673 libsuff=32 shlibsuff=N32 libmagic=N32;; 1674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1675 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1676 *) libsuff= shlibsuff= libmagic=never-match;; 1677 esac 1678 ;; 1679 esac 1680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 1681 shlibpath_overrides_runpath=no 1682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 1683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 1684 hardcode_into_libs=yes 1685 ;; 1686 1687# No shared lib support for Linux oldld, aout, or coff. 1688linux*oldld* | linux*aout* | linux*coff*) 1689 dynamic_linker=no 1690 ;; 1691 1692# This must be Linux ELF. 1693linux* | k*bsd*-gnu) 1694 version_type=linux 1695 need_lib_prefix=no 1696 need_version=no 1697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1698 soname_spec='${libname}${release}${shared_ext}$major' 1699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 1700 shlibpath_var=LD_LIBRARY_PATH 1701 shlibpath_overrides_runpath=no 1702 # This implies no fast_install, which is unacceptable. 1703 # Some rework will be needed to allow for fast_install 1704 # before this can be enabled. 1705 hardcode_into_libs=yes 1706 1707 # Append ld.so.conf contents to the search path 1708 if test -f /etc/ld.so.conf; then 1709 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;/^$/d' | tr '\n' ' '` 1710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1711 fi 1712 1713 # We used to test for /lib/ld.so.1 and disable shared libraries on 1714 # powerpc, because MkLinux only supported shared libraries with the 1715 # GNU dynamic linker. Since this was broken with cross compilers, 1716 # most powerpc-linux boxes support dynamic linking these days and 1717 # people can always --disable-shared, the test was removed, and we 1718 # assume the GNU/Linux dynamic linker is in use. 1719 dynamic_linker='GNU/Linux ld.so' 1720 ;; 1721 1722netbsd*) 1723 version_type=sunos 1724 need_lib_prefix=no 1725 need_version=no 1726 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 1727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1729 dynamic_linker='NetBSD (a.out) ld.so' 1730 else 1731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1732 soname_spec='${libname}${release}${shared_ext}$major' 1733 dynamic_linker='NetBSD ld.elf_so' 1734 fi 1735 shlibpath_var=LD_LIBRARY_PATH 1736 shlibpath_overrides_runpath=yes 1737 hardcode_into_libs=yes 1738 ;; 1739 1740newsos6) 1741 version_type=linux 1742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1743 shlibpath_var=LD_LIBRARY_PATH 1744 shlibpath_overrides_runpath=yes 1745 ;; 1746 1747nto-qnx*) 1748 version_type=linux 1749 need_lib_prefix=no 1750 need_version=no 1751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1752 soname_spec='${libname}${release}${shared_ext}$major' 1753 shlibpath_var=LD_LIBRARY_PATH 1754 shlibpath_overrides_runpath=yes 1755 ;; 1756 1757openbsd*) 1758 version_type=sunos 1759 sys_lib_dlsearch_path_spec="/usr/lib" 1760 need_lib_prefix=no 1761 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1762 case $host_os in 1763 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1764 *) need_version=no ;; 1765 esac 1766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1767 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 1768 shlibpath_var=LD_LIBRARY_PATH 1769 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 1770 case $host_os in 1771 openbsd2.[[89]] | openbsd2.[[89]].*) 1772 shlibpath_overrides_runpath=no 1773 ;; 1774 *) 1775 shlibpath_overrides_runpath=yes 1776 ;; 1777 esac 1778 else 1779 shlibpath_overrides_runpath=yes 1780 fi 1781 ;; 1782 1783os2*) 1784 libname_spec='$name' 1785 shrext_cmds=".dll" 1786 need_lib_prefix=no 1787 library_names_spec='$libname${shared_ext} $libname.a' 1788 dynamic_linker='OS/2 ld.exe' 1789 shlibpath_var=LIBPATH 1790 ;; 1791 1792osf3* | osf4* | osf5*) 1793 version_type=osf 1794 need_lib_prefix=no 1795 need_version=no 1796 soname_spec='${libname}${release}${shared_ext}$major' 1797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1798 shlibpath_var=LD_LIBRARY_PATH 1799 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 1800 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 1801 ;; 1802 1803rdos*) 1804 dynamic_linker=no 1805 ;; 1806 1807solaris*) 1808 version_type=linux 1809 need_lib_prefix=no 1810 need_version=no 1811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1812 soname_spec='${libname}${release}${shared_ext}$major' 1813 shlibpath_var=LD_LIBRARY_PATH 1814 shlibpath_overrides_runpath=yes 1815 hardcode_into_libs=yes 1816 # ldd complains unless libraries are executable 1817 postinstall_cmds='chmod +x $lib' 1818 ;; 1819 1820sunos4*) 1821 version_type=sunos 1822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 1824 shlibpath_var=LD_LIBRARY_PATH 1825 shlibpath_overrides_runpath=yes 1826 if test "$with_gnu_ld" = yes; then 1827 need_lib_prefix=no 1828 fi 1829 need_version=yes 1830 ;; 1831 1832sysv4 | sysv4.3*) 1833 version_type=linux 1834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1835 soname_spec='${libname}${release}${shared_ext}$major' 1836 shlibpath_var=LD_LIBRARY_PATH 1837 case $host_vendor in 1838 sni) 1839 shlibpath_overrides_runpath=no 1840 need_lib_prefix=no 1841 export_dynamic_flag_spec='${wl}-Blargedynsym' 1842 runpath_var=LD_RUN_PATH 1843 ;; 1844 siemens) 1845 need_lib_prefix=no 1846 ;; 1847 motorola) 1848 need_lib_prefix=no 1849 need_version=no 1850 shlibpath_overrides_runpath=no 1851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 1852 ;; 1853 esac 1854 ;; 1855 1856sysv4*MP*) 1857 if test -d /usr/nec ;then 1858 version_type=linux 1859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 1860 soname_spec='$libname${shared_ext}.$major' 1861 shlibpath_var=LD_LIBRARY_PATH 1862 fi 1863 ;; 1864 1865sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 1866 version_type=freebsd-elf 1867 need_lib_prefix=no 1868 need_version=no 1869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1870 soname_spec='${libname}${release}${shared_ext}$major' 1871 shlibpath_var=LD_LIBRARY_PATH 1872 hardcode_into_libs=yes 1873 if test "$with_gnu_ld" = yes; then 1874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1875 shlibpath_overrides_runpath=no 1876 else 1877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1878 shlibpath_overrides_runpath=yes 1879 case $host_os in 1880 sco3.2v5*) 1881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 1882 ;; 1883 esac 1884 fi 1885 sys_lib_dlsearch_path_spec='/usr/lib' 1886 ;; 1887 1888uts4*) 1889 version_type=linux 1890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1891 soname_spec='${libname}${release}${shared_ext}$major' 1892 shlibpath_var=LD_LIBRARY_PATH 1893 ;; 1894 1895*) 1896 dynamic_linker=no 1897 ;; 1898esac 1899AC_MSG_RESULT([$dynamic_linker]) 1900test "$dynamic_linker" = no && can_build_shared=no 1901 1902AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], 1903[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) 1904sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 1905AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], 1906[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) 1907sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 1908 1909variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1910if test "$GCC" = yes; then 1911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1912fi 1913])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1914 1915 1916# _LT_AC_TAGCONFIG 1917# ---------------- 1918AC_DEFUN([_LT_AC_TAGCONFIG], 1919[AC_REQUIRE([LT_AC_PROG_SED])dnl 1920AC_ARG_WITH([tags], 1921[ --with-tags[=TAGS] Include additional configurations [automatic] 1922], 1923[tagnames="$withval"]) 1924 1925if test -f "$ltmain" && test -n "$tagnames"; then 1926 if test ! -f "${ofile}"; then 1927 AC_MSG_WARN([output file \`$ofile' does not exist]) 1928 fi 1929 1930 if test -z "$LTCC"; then 1931 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 1932 if test -z "$LTCC"; then 1933 AC_MSG_WARN([output file \`$ofile' does not look like a libtool script]) 1934 else 1935 AC_MSG_WARN([using \`LTCC=$LTCC', extracted from \`$ofile']) 1936 fi 1937 fi 1938 if test -z "$LTCFLAGS"; then 1939 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1940 fi 1941 1942 # Extract list of available tagged configurations in $ofile. 1943 # Note that this assumes the entire list is on one line. 1944 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 1945 1946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 1947 for tagname in $tagnames; do 1948 IFS="$lt_save_ifs" 1949 # Check whether tagname contains only valid characters 1950 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 1951 "") ;; 1952 *) AC_MSG_ERROR([invalid tag name: $tagname]) 1953 ;; 1954 esac 1955 1956 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 1957 then 1958 AC_MSG_ERROR([tag name \"$tagname\" already exists]) 1959 fi 1960 1961 # Update the list of available tags. 1962 if test -n "$tagname"; then 1963 echo appending configuration tag \"$tagname\" to $ofile 1964 1965 case $tagname in 1966 CXX) 1967 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 1968 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 1969 (test "X$CXX" != "Xg++"))) ; then 1970 AC_LIBTOOL_LANG_CXX_CONFIG 1971 else 1972 tagname="" 1973 fi 1974 ;; 1975 1976 *) 1977 AC_MSG_ERROR([Unsupported tag name: $tagname]) 1978 ;; 1979 esac 1980 1981 # Append the new tag name to the list of available tags. 1982 if test -n "$tagname" ; then 1983 available_tags="$available_tags $tagname" 1984 fi 1985 fi 1986 done 1987 IFS="$lt_save_ifs" 1988 1989 # Now substitute the updated list of available tags. 1990 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 1991 mv "${ofile}T" "$ofile" 1992 chmod +x "$ofile" 1993 else 1994 rm -f "${ofile}T" 1995 AC_MSG_ERROR([unable to update list of available tagged configurations.]) 1996 fi 1997fi 1998])# _LT_AC_TAGCONFIG 1999 2000 2001# AC_LIBTOOL_DLOPEN 2002# ----------------- 2003# enable checks for dlopen support 2004AC_DEFUN([AC_LIBTOOL_DLOPEN], 2005 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 2006])# AC_LIBTOOL_DLOPEN 2007 2008 2009# AC_LIBTOOL_WIN32_DLL 2010# -------------------- 2011# declare package support for building win32 DLLs 2012AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2013[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2014])# AC_LIBTOOL_WIN32_DLL 2015 2016 2017# AC_ENABLE_SHARED([DEFAULT]) 2018# --------------------------- 2019# implement the --enable-shared flag 2020# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2021AC_DEFUN([AC_ENABLE_SHARED], 2022[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 2023AC_ARG_ENABLE([shared], 2024changequote(<<, >>)dnl 2025<< --enable-shared[=PKGS] Build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], 2026changequote([, ])dnl 2027 [p=${PACKAGE-default} 2028 case $enableval in 2029 yes) enable_shared=yes ;; 2030 no) enable_shared=no ;; 2031 *) 2032 enable_shared=no 2033 # Look at the argument we got. We use all the common list separators. 2034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2035 for pkg in $enableval; do 2036 IFS="$lt_save_ifs" 2037 if test "X$pkg" = "X$p"; then 2038 enable_shared=yes 2039 fi 2040 done 2041 IFS="$lt_save_ifs" 2042 ;; 2043 esac], 2044 [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 2045])# AC_ENABLE_SHARED 2046 2047 2048# AC_DISABLE_SHARED 2049# ----------------- 2050# set the default shared flag to --disable-shared 2051AC_DEFUN([AC_DISABLE_SHARED], 2052[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2053AC_ENABLE_SHARED(no) 2054])# AC_DISABLE_SHARED 2055 2056 2057# AC_ENABLE_STATIC([DEFAULT]) 2058# --------------------------- 2059# implement the --enable-static flag 2060# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2061AC_DEFUN([AC_ENABLE_STATIC], 2062[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 2063AC_ARG_ENABLE([static], 2064changequote(<<, >>)dnl 2065<< --enable-static[=PKGS] Build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], 2066changequote([, ])dnl 2067 [p=${PACKAGE-default} 2068 case $enableval in 2069 yes) enable_static=yes ;; 2070 no) enable_static=no ;; 2071 *) 2072 enable_static=no 2073 # Look at the argument we got. We use all the common list separators. 2074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2075 for pkg in $enableval; do 2076 IFS="$lt_save_ifs" 2077 if test "X$pkg" = "X$p"; then 2078 enable_static=yes 2079 fi 2080 done 2081 IFS="$lt_save_ifs" 2082 ;; 2083 esac], 2084 [enable_static=]AC_ENABLE_STATIC_DEFAULT) 2085])# AC_ENABLE_STATIC 2086 2087 2088# AC_DISABLE_STATIC 2089# ----------------- 2090# set the default static flag to --disable-static 2091AC_DEFUN([AC_DISABLE_STATIC], 2092[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2093AC_ENABLE_STATIC(no) 2094])# AC_DISABLE_STATIC 2095 2096 2097# AC_ENABLE_FAST_INSTALL([DEFAULT]) 2098# --------------------------------- 2099# implement the --enable-fast-install flag 2100# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 2101AC_DEFUN([AC_ENABLE_FAST_INSTALL], 2102[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 2103AC_ARG_ENABLE([fast-install], 2104changequote(<<, >>)dnl 2105<< --enable-fast-install[=PKGS] 2106 Optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], 2107changequote([, ])dnl 2108 [p=${PACKAGE-default} 2109 case $enableval in 2110 yes) enable_fast_install=yes ;; 2111 no) enable_fast_install=no ;; 2112 *) 2113 enable_fast_install=no 2114 # Look at the argument we got. We use all the common list separators. 2115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2116 for pkg in $enableval; do 2117 IFS="$lt_save_ifs" 2118 if test "X$pkg" = "X$p"; then 2119 enable_fast_install=yes 2120 fi 2121 done 2122 IFS="$lt_save_ifs" 2123 ;; 2124 esac], 2125 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 2126])# AC_ENABLE_FAST_INSTALL 2127 2128 2129# AC_DISABLE_FAST_INSTALL 2130# ----------------------- 2131# set the default to --disable-fast-install 2132AC_DEFUN([AC_DISABLE_FAST_INSTALL], 2133[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2134AC_ENABLE_FAST_INSTALL(no) 2135])# AC_DISABLE_FAST_INSTALL 2136 2137 2138# AC_LIBTOOL_PICMODE([MODE]) 2139# -------------------------- 2140# implement the --with-pic flag 2141# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 2142AC_DEFUN([AC_LIBTOOL_PICMODE], 2143[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2144pic_mode=ifelse($#,1,$1,default) 2145])# AC_LIBTOOL_PICMODE 2146 2147 2148# AC_PROG_EGREP 2149# ------------- 2150ifdef([AC_PROG_EGREP], [], [AC_DEFUN([AC_PROG_EGREP], 2151[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 2152 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2153 then ac_cv_prog_egrep='grep -E' 2154 else ac_cv_prog_egrep='egrep' 2155 fi]) 2156 EGREP=$ac_cv_prog_egrep 2157 AC_SUBST([EGREP]) 2158])]) 2159 2160 2161# AC_PATH_TOOL_PREFIX 2162# ------------------- 2163# find a file program which can recognize shared library 2164AC_DEFUN([AC_PATH_TOOL_PREFIX], 2165[AC_REQUIRE([AC_PROG_EGREP])dnl 2166AC_MSG_CHECKING([for $1]) 2167AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 2168[case $MAGIC_CMD in 2169[[\\/*] | ?:[\\/]*]) 2170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 2171 ;; 2172*) 2173 lt_save_MAGIC_CMD="$MAGIC_CMD" 2174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2175dnl $ac_dummy forces splitting on constant user-supplied paths. 2176dnl POSIX.2 word splitting is done only on the output of word expansions, 2177dnl not every word. This closes a longstanding sh security hole. 2178 ac_dummy="ifelse([$2], , $PATH, [$2])" 2179 for ac_dir in $ac_dummy; do 2180 IFS="$lt_save_ifs" 2181 test -z "$ac_dir" && ac_dir=. 2182 if test -f $ac_dir/$1; then 2183 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2184 if test -n "$file_magic_test_file"; then 2185 case $deplibs_check_method in 2186 "file_magic "*) 2187 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2189 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2190 $EGREP "$file_magic_regex" > /dev/null; then 2191 : 2192 else 2193 cat <<EOF 1>&2 2194 2195*** Warning: the command libtool uses to detect shared libraries, 2196*** $file_magic_cmd, produces output that libtool cannot recognize. 2197*** The result is that libtool may fail to recognize shared libraries 2198*** as such. This will affect the creation of libtool libraries that 2199*** depend on shared libraries, but programs linked with such libtool 2200*** libraries will work regardless of this problem. Nevertheless, you 2201*** may want to report the problem to your system manager and/or to 2202*** bug-libtool@gnu.org 2203 2204EOF 2205 fi ;; 2206 esac 2207 fi 2208 break 2209 fi 2210 done 2211 IFS="$lt_save_ifs" 2212 MAGIC_CMD="$lt_save_MAGIC_CMD" 2213 ;; 2214esac]) 2215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2216if test -n "$MAGIC_CMD"; then 2217 AC_MSG_RESULT($MAGIC_CMD) 2218else 2219 AC_MSG_RESULT(no) 2220fi 2221])# AC_PATH_TOOL_PREFIX 2222 2223 2224# AC_PATH_MAGIC 2225# ------------- 2226# find a file program which can recognize a shared library 2227AC_DEFUN([AC_PATH_MAGIC], 2228[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 2229if test -z "$lt_cv_path_MAGIC_CMD"; then 2230 if test -n "$ac_tool_prefix"; then 2231 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 2232 else 2233 MAGIC_CMD=: 2234 fi 2235fi 2236])# AC_PATH_MAGIC 2237 2238 2239# AC_PROG_LD 2240# ---------- 2241# find the pathname to the GNU or non-GNU linker 2242AC_DEFUN([AC_PROG_LD], 2243[AC_ARG_WITH([gnu-ld], 2244[ --with-gnu-ld Assume the C compiler uses GNU ld [default=no]], 2245 [test "$withval" = no || with_gnu_ld=yes], 2246 [with_gnu_ld=no]) 2247AC_REQUIRE([LT_AC_PROG_SED])dnl 2248AC_REQUIRE([AC_PROG_CC])dnl 2249AC_REQUIRE([AC_CANONICAL_HOST])dnl 2250AC_REQUIRE([AC_CANONICAL_BUILD])dnl 2251ac_prog=ld 2252if test "$GCC" = yes; then 2253 # Check if gcc -print-prog-name=ld gives a path. 2254 AC_MSG_CHECKING([for ld used by $CC]) 2255 case $host in 2256 *-*-mingw*) 2257 # gcc leaves a trailing carriage return which upsets mingw 2258 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 2259 *) 2260 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 2261 esac 2262 case $ac_prog in 2263 # Accept absolute paths. 2264 [[\\/]]* | ?:[[\\/]]*) 2265 re_direlt='/[[^/]][[^/]]*/\.\./' 2266 # Canonicalize the pathname of ld 2267 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 2268 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 2269 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 2270 done 2271 test -z "$LD" && LD="$ac_prog" 2272 ;; 2273 "") 2274 # If it fails, then pretend we aren't using GCC. 2275 ac_prog=ld 2276 ;; 2277 *) 2278 # If it is relative, then search for the first ld in PATH. 2279 with_gnu_ld=unknown 2280 ;; 2281 esac 2282elif test "$with_gnu_ld" = yes; then 2283 AC_MSG_CHECKING([for GNU ld]) 2284else 2285 AC_MSG_CHECKING([for non-GNU ld]) 2286fi 2287AC_CACHE_VAL(lt_cv_path_LD, 2288[if test -z "$LD"; then 2289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2290 for ac_dir in $PATH; do 2291 IFS="$lt_save_ifs" 2292 test -z "$ac_dir" && ac_dir=. 2293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2294 lt_cv_path_LD="$ac_dir/$ac_prog" 2295 # Check to see if the program is GNU ld. I'd rather use --version, 2296 # but apparently some variants of GNU ld only accept -v. 2297 # Break only if it was the GNU/non-GNU ld that we prefer. 2298 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 2299 *GNU* | *'with BFD'*) 2300 test "$with_gnu_ld" != no && break 2301 ;; 2302 *) 2303 test "$with_gnu_ld" != yes && break 2304 ;; 2305 esac 2306 fi 2307 done 2308 IFS="$lt_save_ifs" 2309else 2310 lt_cv_path_LD="$LD" # Let the user override the test with a path. 2311fi]) 2312LD="$lt_cv_path_LD" 2313if test -n "$LD"; then 2314 AC_MSG_RESULT($LD) 2315else 2316 AC_MSG_RESULT(no) 2317fi 2318test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 2319AC_PROG_LD_GNU 2320])# AC_PROG_LD 2321 2322 2323# AC_PROG_LD_GNU 2324# -------------- 2325AC_DEFUN([AC_PROG_LD_GNU], 2326[AC_REQUIRE([AC_PROG_EGREP])dnl 2327AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2328[# I'd rather use --version here, but apparently some GNU lds only accept -v. 2329case `$LD -v 2>&1 </dev/null` in 2330*GNU* | *'with BFD'*) 2331 lt_cv_prog_gnu_ld=yes 2332 ;; 2333*) 2334 lt_cv_prog_gnu_ld=no 2335 ;; 2336esac]) 2337with_gnu_ld=$lt_cv_prog_gnu_ld 2338])# AC_PROG_LD_GNU 2339 2340 2341# AC_PROG_LD_RELOAD_FLAG 2342# ---------------------- 2343# find reload flag for linker 2344# -- PORTME Some linkers may need a different reload flag. 2345AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 2346[AC_CACHE_CHECK([for $LD option to reload object files], 2347 lt_cv_ld_reload_flag, 2348 [lt_cv_ld_reload_flag='-r']) 2349reload_flag=$lt_cv_ld_reload_flag 2350case $reload_flag in 2351"" | " "*) ;; 2352*) reload_flag=" $reload_flag" ;; 2353esac 2354reload_cmds='$LD$reload_flag -o $output$reload_objs' 2355case $host_os in 2356 darwin*) 2357 if test "$GCC" = yes; then 2358 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2359 else 2360 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2361 fi 2362 ;; 2363esac 2364])# AC_PROG_LD_RELOAD_FLAG 2365 2366 2367# AC_DEPLIBS_CHECK_METHOD 2368# ----------------------- 2369# how to check for library dependencies 2370# -- PORTME fill in with the dynamic library characteristics 2371AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2372[AC_CACHE_CHECK([how to recognize dependent libraries], 2373lt_cv_deplibs_check_method, 2374[lt_cv_file_magic_cmd='$MAGIC_CMD' 2375lt_cv_file_magic_test_file= 2376lt_cv_deplibs_check_method='unknown' 2377# Need to set the preceding variable on all platforms that support 2378# interlibrary dependencies. 2379# 'none' -- dependencies not supported. 2380# `unknown' -- same as none, but documents that we really don't know. 2381# 'pass_all' -- all dependencies passed with no checks. 2382# 'test_compile' -- check by making test program. 2383# 'file_magic [[regex]]' -- check by looking for files in library path 2384# which responds to the $file_magic_cmd with a given extended regex. 2385# If you have `file' or equivalent on your system and you're not sure 2386# whether `pass_all' will *always* work, you probably want this one. 2387 2388case $host_os in 2389aix[[4-9]]*) 2390 lt_cv_deplibs_check_method=pass_all 2391 ;; 2392 2393beos*) 2394 lt_cv_deplibs_check_method=pass_all 2395 ;; 2396 2397bsdi[[45]]*) 2398 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2399 lt_cv_file_magic_cmd='/usr/bin/file -L' 2400 lt_cv_file_magic_test_file=/shlib/libc.so 2401 ;; 2402 2403cygwin*) 2404 # func_win32_libid is a shell function defined in ltmain.sh 2405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2406 lt_cv_file_magic_cmd='func_win32_libid' 2407 ;; 2408 2409mingw* | pw32*) 2410 # Base MSYS/MinGW do not provide the 'file' command needed by 2411 # func_win32_libid shell function, so use a weaker test based on 'objdump', 2412 # unless we find 'file', for example because we are cross-compiling. 2413 if ( file / ) >/dev/null 2>&1; then 2414 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2415 lt_cv_file_magic_cmd='func_win32_libid' 2416 else 2417 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2418 lt_cv_file_magic_cmd='$OBJDUMP -f' 2419 fi 2420 ;; 2421 2422darwin* | rhapsody*) 2423 lt_cv_deplibs_check_method=pass_all 2424 ;; 2425 2426freebsd* | dragonfly*) 2427 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2428 case $host_cpu in 2429 i*86 ) 2430 # Not sure whether the presence of OpenBSD here was a mistake. 2431 # Let's accept both of them until this is cleared up. 2432 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2433 lt_cv_file_magic_cmd=/usr/bin/file 2434 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 2435 ;; 2436 esac 2437 else 2438 lt_cv_deplibs_check_method=pass_all 2439 fi 2440 ;; 2441 2442gnu*) 2443 lt_cv_deplibs_check_method=pass_all 2444 ;; 2445 2446hpux10.20* | hpux11*) 2447 lt_cv_file_magic_cmd=/usr/bin/file 2448 case $host_cpu in 2449 ia64*) 2450 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 2451 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 2452 ;; 2453 hppa*64*) 2454 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 2455 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 2456 ;; 2457 *) 2458 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 2459 lt_cv_file_magic_test_file=/usr/lib/libc.sl 2460 ;; 2461 esac 2462 ;; 2463 2464interix[[3-9]]*) 2465 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2466 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 2467 ;; 2468 2469irix5* | irix6* | nonstopux*) 2470 case $LD in 2471 *-32|*"-32 ") libmagic=32-bit;; 2472 *-n32|*"-n32 ") libmagic=N32;; 2473 *-64|*"-64 ") libmagic=64-bit;; 2474 *) libmagic=never-match;; 2475 esac 2476 lt_cv_deplibs_check_method=pass_all 2477 ;; 2478 2479# This must be Linux ELF. 2480linux* | k*bsd*-gnu) 2481 lt_cv_deplibs_check_method=pass_all 2482 ;; 2483 2484netbsd*) 2485 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2486 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2487 else 2488 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 2489 fi 2490 ;; 2491 2492newos6*) 2493 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 2494 lt_cv_file_magic_cmd=/usr/bin/file 2495 lt_cv_file_magic_test_file=/usr/lib/libnls.so 2496 ;; 2497 2498nto-qnx*) 2499 lt_cv_deplibs_check_method=unknown 2500 ;; 2501 2502openbsd*) 2503 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2504 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2505 else 2506 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2507 fi 2508 ;; 2509 2510osf3* | osf4* | osf5*) 2511 lt_cv_deplibs_check_method=pass_all 2512 ;; 2513 2514rdos*) 2515 lt_cv_deplibs_check_method=pass_all 2516 ;; 2517 2518solaris*) 2519 lt_cv_deplibs_check_method=pass_all 2520 ;; 2521 2522sysv4 | sysv4.3*) 2523 case $host_vendor in 2524 motorola) 2525 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]]' 2526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 2527 ;; 2528 ncr) 2529 lt_cv_deplibs_check_method=pass_all 2530 ;; 2531 sequent) 2532 lt_cv_file_magic_cmd='/bin/file' 2533 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 2534 ;; 2535 sni) 2536 lt_cv_file_magic_cmd='/bin/file' 2537 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 2538 lt_cv_file_magic_test_file=/lib/libc.so 2539 ;; 2540 siemens) 2541 lt_cv_deplibs_check_method=pass_all 2542 ;; 2543 pc) 2544 lt_cv_deplibs_check_method=pass_all 2545 ;; 2546 esac 2547 ;; 2548 2549sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2550 lt_cv_deplibs_check_method=pass_all 2551 ;; 2552esac 2553]) 2554file_magic_cmd=$lt_cv_file_magic_cmd 2555deplibs_check_method=$lt_cv_deplibs_check_method 2556test -z "$deplibs_check_method" && deplibs_check_method=unknown 2557])# AC_DEPLIBS_CHECK_METHOD 2558 2559 2560# AC_PROG_NM 2561# ---------- 2562# find the pathname to a BSD-compatible name lister 2563AC_DEFUN([AC_PROG_NM], 2564[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 2565[if test -n "$NM"; then 2566 # Let the user override the test. 2567 lt_cv_path_NM="$NM" 2568else 2569 lt_nm_to_check="${ac_tool_prefix}nm" 2570 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2571 lt_nm_to_check="$lt_nm_to_check nm" 2572 fi 2573 for lt_tmp_nm in $lt_nm_to_check; do 2574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2575 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2576 IFS="$lt_save_ifs" 2577 test -z "$ac_dir" && ac_dir=. 2578 tmp_nm="$ac_dir/$lt_tmp_nm" 2579 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2580 # Check to see if the nm accepts a BSD-compat flag. 2581 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2582 # nm: unknown option "B" ignored 2583 # Tru64's nm complains that /dev/null is an invalid object file 2584 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2585 */dev/null* | *'Invalid file or object type'*) 2586 lt_cv_path_NM="$tmp_nm -B" 2587 break 2588 ;; 2589 *) 2590 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2591 */dev/null*) 2592 lt_cv_path_NM="$tmp_nm -p" 2593 break 2594 ;; 2595 *) 2596 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2597 continue # so that we can try to find one that supports BSD flags 2598 ;; 2599 esac 2600 ;; 2601 esac 2602 fi 2603 done 2604 IFS="$lt_save_ifs" 2605 done 2606 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2607fi]) 2608NM="$lt_cv_path_NM" 2609])# AC_PROG_NM 2610 2611 2612# AC_CHECK_LIBM 2613# ------------- 2614# check for math library 2615AC_DEFUN([AC_CHECK_LIBM], 2616[AC_REQUIRE([AC_CANONICAL_HOST])dnl 2617LIBM= 2618case $host in 2619*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 2620 # These system don't have libm, or don't need it 2621 ;; 2622*-ncr-sysv4.3*) 2623 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 2624 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 2625 ;; 2626*) 2627 AC_CHECK_LIB(m, cos, LIBM="-lm") 2628 ;; 2629esac 2630])# AC_CHECK_LIBM 2631 2632 2633# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 2634# ----------------------------------- 2635# sets LIBLTDL to the link flags for the libltdl convenience library and 2636# LTDLINCL to the include flags for the libltdl header and adds 2637# --enable-ltdl-convenience to the configure arguments. Note that 2638# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2639# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2640# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2641# (note the single quotes!). If your package is not flat and you're not 2642# using automake, define top_builddir and top_srcdir appropriately in 2643# the Makefiles. 2644AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2645[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2646 case $enable_ltdl_convenience in 2647 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 2648 "") enable_ltdl_convenience=yes 2649 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 2650 esac 2651 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 2652 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2653 # For backwards non-gettext consistent compatibility... 2654 INCLTDL="$LTDLINCL" 2655])# AC_LIBLTDL_CONVENIENCE 2656 2657 2658# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 2659# ----------------------------------- 2660# sets LIBLTDL to the link flags for the libltdl installable library and 2661# LTDLINCL to the include flags for the libltdl header and adds 2662# --enable-ltdl-install to the configure arguments. Note that 2663# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2664# and an installed libltdl is not found, it is assumed to be `libltdl'. 2665# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2666# '${top_srcdir}/' (note the single quotes!). If your package is not 2667# flat and you're not using automake, define top_builddir and top_srcdir 2668# appropriately in the Makefiles. 2669# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2670AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 2671[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2672 AC_CHECK_LIB(ltdl, lt_dlinit, 2673 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 2674 [if test x"$enable_ltdl_install" = xno; then 2675 AC_MSG_WARN([libltdl not installed, but installation disabled]) 2676 else 2677 enable_ltdl_install=yes 2678 fi 2679 ]) 2680 if test x"$enable_ltdl_install" = x"yes"; then 2681 ac_configure_args="$ac_configure_args --enable-ltdl-install" 2682 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 2683 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 2684 else 2685 ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 2686 LIBLTDL="-lltdl" 2687 LTDLINCL= 2688 fi 2689 # For backwards non-gettext consistent compatibility... 2690 INCLTDL="$LTDLINCL" 2691])# AC_LIBLTDL_INSTALLABLE 2692 2693 2694# AC_LIBTOOL_CXX 2695# -------------- 2696# enable support for C++ libraries 2697AC_DEFUN([AC_LIBTOOL_CXX], 2698[AC_REQUIRE([_LT_AC_LANG_CXX]) 2699])# AC_LIBTOOL_CXX 2700 2701 2702# _LT_AC_LANG_CXX 2703# --------------- 2704AC_DEFUN([_LT_AC_LANG_CXX], 2705[AC_REQUIRE([AC_PROG_CXX]) 2706AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2707_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2708])# _LT_AC_LANG_CXX 2709 2710# _LT_AC_PROG_CXXCPP 2711# ------------------ 2712AC_DEFUN([_LT_AC_PROG_CXXCPP], 2713[ 2714AC_REQUIRE([AC_PROG_CXX]) 2715if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2716 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2717 (test "X$CXX" != "Xg++"))) ; then 2718 AC_PROG_CXXCPP 2719fi 2720])# _LT_AC_PROG_CXXCPP 2721 2722# AC_LIBTOOL_LANG_C_CONFIG 2723# ------------------------ 2724# Ensure that the configuration vars for the C compiler are 2725# suitably defined. Those variables are subsequently used by 2726# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2727AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 2728AC_DEFUN([_LT_AC_LANG_C_CONFIG], 2729[lt_save_CC="$CC" 2730AC_LANG_SAVE 2731AC_LANG_C 2732 2733# Source file extension for C test sources. 2734ac_ext=c 2735 2736# Object file extension for compiled C test sources. 2737objext=o 2738_LT_AC_TAGVAR(objext, $1)=$objext 2739 2740# Code to be used in simple compile tests 2741lt_simple_compile_test_code="int some_variable = 0;" 2742 2743# Code to be used in simple link tests 2744lt_simple_link_test_code='int main(){return(0);}' 2745 2746_LT_AC_SYS_COMPILER 2747 2748# save warnings/boilerplate of simple test code 2749_LT_COMPILER_BOILERPLATE 2750_LT_LINKER_BOILERPLATE 2751 2752## CAVEAT EMPTOR: 2753## There is no encapsulation within the following macros, do not change 2754## the running order or otherwise move them around unless you know exactly 2755## what you are doing... 2756AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 2757AC_LIBTOOL_PROG_COMPILER_PIC($1) 2758AC_LIBTOOL_PROG_CC_C_O($1) 2759AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 2760AC_LIBTOOL_PROG_LD_SHLIBS($1) 2761AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 2762AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2763AC_LIBTOOL_SYS_LIB_STRIP 2764AC_LIBTOOL_DLOPEN_SELF 2765 2766# Report which library types will actually be built 2767AC_MSG_CHECKING([if libtool supports shared libraries]) 2768AC_MSG_RESULT([$can_build_shared]) 2769 2770AC_MSG_CHECKING([whether to build shared libraries]) 2771test "$can_build_shared" = "no" && enable_shared=no 2772 2773# On AIX, shared libraries and static libraries use the same namespace, and 2774# are all built from PIC. 2775case $host_os in 2776aix3*) 2777 test "$enable_shared" = yes && enable_static=no 2778 if test -n "$RANLIB"; then 2779 archive_cmds="$archive_cmds~\$RANLIB \$lib" 2780 postinstall_cmds='$RANLIB $lib' 2781 fi 2782 ;; 2783 2784aix[[4-9]]*) 2785 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2786 test "$enable_shared" = yes && enable_static=no 2787 fi 2788 ;; 2789esac 2790AC_MSG_RESULT([$enable_shared]) 2791 2792AC_MSG_CHECKING([whether to build static libraries]) 2793# Make sure either enable_shared or enable_static is yes. 2794test "$enable_shared" = yes || enable_static=yes 2795AC_MSG_RESULT([$enable_static]) 2796 2797AC_LIBTOOL_CONFIG($1) 2798 2799AC_LANG_RESTORE 2800CC="$lt_save_CC" 2801])# AC_LIBTOOL_LANG_C_CONFIG 2802 2803 2804# AC_LIBTOOL_LANG_CXX_CONFIG 2805# -------------------------- 2806# Ensure that the configuration vars for the C compiler are 2807# suitably defined. Those variables are subsequently used by 2808# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 2809AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 2810AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 2811[AC_LANG_SAVE 2812AC_LANG_CPLUSPLUS 2813AC_REQUIRE([AC_PROG_CXX]) 2814AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2815 2816_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2817_LT_AC_TAGVAR(allow_undefined_flag, $1)= 2818_LT_AC_TAGVAR(always_export_symbols, $1)=no 2819_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 2820_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 2821_LT_AC_TAGVAR(hardcode_direct, $1)=no 2822_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 2823_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 2824_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2825_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2826_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2827_LT_AC_TAGVAR(hardcode_automatic, $1)=no 2828_LT_AC_TAGVAR(module_cmds, $1)= 2829_LT_AC_TAGVAR(module_expsym_cmds, $1)= 2830_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 2831_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 2832_LT_AC_TAGVAR(no_undefined_flag, $1)= 2833_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2834_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 2835 2836# Dependencies to place before and after the object being linked: 2837_LT_AC_TAGVAR(predep_objects, $1)= 2838_LT_AC_TAGVAR(postdep_objects, $1)= 2839_LT_AC_TAGVAR(predeps, $1)= 2840_LT_AC_TAGVAR(postdeps, $1)= 2841_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2842_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 2843 2844# Source file extension for C++ test sources. 2845ac_ext=cpp 2846 2847# Object file extension for compiled C++ test sources. 2848objext=o 2849_LT_AC_TAGVAR(objext, $1)=$objext 2850 2851# Code to be used in simple compile tests 2852lt_simple_compile_test_code="int some_variable = 0;" 2853 2854# Code to be used in simple link tests 2855lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 2856 2857# ltmain only uses $CC for tagged configurations so make sure $CC is set. 2858_LT_AC_SYS_COMPILER 2859 2860# save warnings/boilerplate of simple test code 2861_LT_COMPILER_BOILERPLATE 2862_LT_LINKER_BOILERPLATE 2863 2864# Allow CC to be a program name with arguments. 2865lt_save_CC=$CC 2866lt_save_LD=$LD 2867lt_save_GCC=$GCC 2868GCC=$GXX 2869lt_save_with_gnu_ld=$with_gnu_ld 2870lt_save_path_LD=$lt_cv_path_LD 2871if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 2872 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 2873else 2874 unset lt_cv_prog_gnu_ld 2875fi 2876if test -n "${lt_cv_path_LDCXX+set}"; then 2877 lt_cv_path_LD=$lt_cv_path_LDCXX 2878else 2879 unset lt_cv_path_LD 2880fi 2881test -z "${LDCXX+set}" || LD=$LDCXX 2882CC=${CXX-"c++"} 2883compiler=$CC 2884_LT_AC_TAGVAR(compiler, $1)=$CC 2885_LT_CC_BASENAME([$compiler]) 2886 2887# We don't want -fno-exception wen compiling C++ code, so set the 2888# no_builtin_flag separately 2889if test "$GXX" = yes; then 2890 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 2891else 2892 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 2893fi 2894 2895if test "$GXX" = yes; then 2896 # Set up default GNU C++ configuration 2897 2898 AC_PROG_LD 2899 2900 # Check if GNU C++ uses GNU ld as the underlying linker, since the 2901 # archiving commands below assume that GNU ld is being used. 2902 if test "$with_gnu_ld" = yes; then 2903 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 2904 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 2905 2906 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 2907 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 2908 2909 # If archive_cmds runs LD, not CC, wlarc should be empty 2910 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 2911 # investigate it a little bit more. (MM) 2912 wlarc='${wl}' 2913 2914 # ancient GNU ld didn't support --whole-archive et. al. 2915 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 2916 grep 'no-whole-archive' > /dev/null; then 2917 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 2918 else 2919 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 2920 fi 2921 else 2922 with_gnu_ld=no 2923 wlarc= 2924 2925 # A generic and very simple default shared library creation 2926 # command for GNU C++ for the case where it uses the native 2927 # linker, instead of GNU ld. If possible, this setting should 2928 # overridden to take advantage of the native linker features on 2929 # the platform it is being used on. 2930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 2931 fi 2932 2933 # Commands to make compiler produce verbose output that lists 2934 # what "hidden" libraries, object files and flags are used when 2935 # linking a shared library. 2936 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 2937 2938else 2939 GXX=no 2940 with_gnu_ld=no 2941 wlarc= 2942fi 2943 2944# PORTME: fill in a description of your system's C++ link characteristics 2945AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 2946_LT_AC_TAGVAR(ld_shlibs, $1)=yes 2947case $host_os in 2948 aix3*) 2949 # FIXME: insert proper C++ library support 2950 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2951 ;; 2952 aix[[4-9]]*) 2953 if test "$host_cpu" = ia64; then 2954 # On IA64, the linker does run time linking by default, so we don't 2955 # have to do anything special. 2956 aix_use_runtimelinking=no 2957 exp_sym_flag='-Bexport' 2958 no_entry_flag="" 2959 else 2960 aix_use_runtimelinking=no 2961 2962 # Test if we are trying to use run time linking or normal 2963 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 2964 # need to do runtime linking. 2965 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 2966 for ld_flag in $LDFLAGS; do 2967 case $ld_flag in 2968 *-brtl*) 2969 aix_use_runtimelinking=yes 2970 break 2971 ;; 2972 esac 2973 done 2974 ;; 2975 esac 2976 2977 exp_sym_flag='-bexport' 2978 no_entry_flag='-bnoentry' 2979 fi 2980 2981 # When large executables or shared objects are built, AIX ld can 2982 # have problems creating the table of contents. If linking a library 2983 # or program results in "error TOC overflow" add -mminimal-toc to 2984 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 2985 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 2986 2987 _LT_AC_TAGVAR(archive_cmds, $1)='' 2988 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 2989 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 2990 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2991 2992 if test "$GXX" = yes; then 2993 case $host_os in aix4.[[012]]|aix4.[[012]].*) 2994 # We only want to do this on AIX 4.2 and lower, the check 2995 # below for broken collect2 doesn't work under 4.3+ 2996 collect2name=`${CC} -print-prog-name=collect2` 2997 if test -f "$collect2name" && \ 2998 strings "$collect2name" | grep resolve_lib_name >/dev/null 2999 then 3000 # We have reworked collect2 3001 : 3002 else 3003 # We have old collect2 3004 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 3005 # It fails to find uninstalled libraries when the uninstalled 3006 # path is not listed in the libpath. Setting hardcode_minus_L 3007 # to unsupported forces relinking 3008 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3009 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3010 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3011 fi 3012 ;; 3013 esac 3014 shared_flag='-shared' 3015 if test "$aix_use_runtimelinking" = yes; then 3016 shared_flag="$shared_flag "'${wl}-G' 3017 fi 3018 else 3019 # not using gcc 3020 if test "$host_cpu" = ia64; then 3021 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3022 # chokes on -Wl,-G. The following line is correct: 3023 shared_flag='-G' 3024 else 3025 if test "$aix_use_runtimelinking" = yes; then 3026 shared_flag='${wl}-G' 3027 else 3028 shared_flag='${wl}-bM:SRE' 3029 fi 3030 fi 3031 fi 3032 3033 # It seems that -bexpall does not export symbols beginning with 3034 # underscore (_), so it is better to generate a list of symbols to export. 3035 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 3036 if test "$aix_use_runtimelinking" = yes; then 3037 # Warning - without using the other runtime loading flags (-brtl), 3038 # -berok will link without error, but may produce a broken library. 3039 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3040 # Determine the default libpath from the value encoded in an empty executable. 3041 _LT_AC_SYS_LIBPATH_AIX 3042 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3043 3044 _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3045 else 3046 if test "$host_cpu" = ia64; then 3047 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3048 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3049 _LT_AC_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" 3050 else 3051 # Determine the default libpath from the value encoded in an empty executable. 3052 _LT_AC_SYS_LIBPATH_AIX 3053 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3054 # Warning - without using the other run time loading flags, 3055 # -berok will link without error, but may produce a broken library. 3056 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3057 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3058 # Exported symbols can be pulled into shared objects from archives 3059 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 3060 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3061 # This is similar to how AIX traditionally builds its shared libraries. 3062 _LT_AC_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' 3063 fi 3064 fi 3065 ;; 3066 3067 beos*) 3068 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 3069 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 3071 # support --undefined. This deserves some investigation. FIXME 3072 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3073 else 3074 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3075 fi 3076 ;; 3077 3078 chorus*) 3079 case $cc_basename in 3080 *) 3081 # FIXME: insert proper C++ library support 3082 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3083 ;; 3084 esac 3085 ;; 3086 3087 cygwin* | mingw* | pw32*) 3088 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 3089 # as there is no search path for DLLs. 3090 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3091 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3092 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3093 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3094 3095 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3096 _LT_AC_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' 3097 # If the export-symbols file already is a .def file (1st line 3098 # is EXPORTS), use it as is; otherwise, prepend... 3099 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3100 cp $export_symbols $output_objdir/$soname.def; 3101 else 3102 echo EXPORTS > $output_objdir/$soname.def; 3103 cat $export_symbols >> $output_objdir/$soname.def; 3104 fi~ 3105 $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' 3106 else 3107 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3108 fi 3109 ;; 3110 darwin* | rhapsody*) 3111 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3112 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3113 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 3114 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 3115 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 3116 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3117 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3118 if test "$GXX" = yes ; then 3119 output_verbose_link_cmd='echo' 3120 _LT_AC_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}" 3121 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3122 _LT_AC_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}" 3123 _LT_AC_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}" 3124 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3125 _LT_AC_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}" 3126 _LT_AC_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}" 3127 fi 3128 else 3129 case $cc_basename in 3130 xlc*) 3131 output_verbose_link_cmd='echo' 3132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 3133 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3134 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3135 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3136 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3137 ;; 3138 *) 3139 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3140 ;; 3141 esac 3142 fi 3143 ;; 3144 3145 dgux*) 3146 case $cc_basename in 3147 ec++*) 3148 # FIXME: insert proper C++ library support 3149 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3150 ;; 3151 ghcx*) 3152 # Green Hills C++ Compiler 3153 # FIXME: insert proper C++ library support 3154 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3155 ;; 3156 *) 3157 # FIXME: insert proper C++ library support 3158 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3159 ;; 3160 esac 3161 ;; 3162 freebsd[[12]].*) 3163 # C++ shared libraries reported to be fairly broken before switch to ELF 3164 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3165 ;; 3166 freebsd-elf*) 3167 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3168 ;; 3169 freebsd* | dragonfly*) 3170 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3171 # conventions 3172 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3173 ;; 3174 gnu*) 3175 ;; 3176 hpux9*) 3177 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3178 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3179 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3180 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3181 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3182 # but as the default 3183 # location of the library. 3184 3185 case $cc_basename in 3186 CC*) 3187 # FIXME: insert proper C++ library support 3188 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3189 ;; 3190 aCC*) 3191 _LT_AC_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' 3192 # Commands to make compiler produce verbose output that lists 3193 # what "hidden" libraries, object files and flags are used when 3194 # linking a shared library. 3195 # 3196 # There doesn't appear to be a way to prevent this compiler from 3197 # explicitly linking system object files so we need to strip them 3198 # from the output so that they don't get included in the library 3199 # dependencies. 3200 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; echo $list' 3201 ;; 3202 *) 3203 if test "$GXX" = yes; then 3204 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 3205 else 3206 # FIXME: insert proper C++ library support 3207 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3208 fi 3209 ;; 3210 esac 3211 ;; 3212 hpux10*|hpux11*) 3213 if test $with_gnu_ld = no; then 3214 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 3215 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3216 3217 case $host_cpu in 3218 hppa*64*|ia64*) ;; 3219 *) 3220 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3221 ;; 3222 esac 3223 fi 3224 case $host_cpu in 3225 hppa*64*|ia64*) 3226 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3227 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3228 ;; 3229 *) 3230 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3231 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3232 # but as the default 3233 # location of the library. 3234 ;; 3235 esac 3236 3237 case $cc_basename in 3238 CC*) 3239 # FIXME: insert proper C++ library support 3240 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3241 ;; 3242 aCC*) 3243 case $host_cpu in 3244 hppa*64*) 3245 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3246 ;; 3247 ia64*) 3248 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3249 ;; 3250 *) 3251 _LT_AC_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' 3252 ;; 3253 esac 3254 # Commands to make compiler produce verbose output that lists 3255 # what "hidden" libraries, object files and flags are used when 3256 # linking a shared library. 3257 # 3258 # There doesn't appear to be a way to prevent this compiler from 3259 # explicitly linking system object files so we need to strip them 3260 # from the output so that they don't get included in the library 3261 # dependencies. 3262 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; echo $list' 3263 ;; 3264 *) 3265 if test "$GXX" = yes; then 3266 if test $with_gnu_ld = no; then 3267 case $host_cpu in 3268 hppa*64*) 3269 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3270 ;; 3271 ia64*) 3272 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3273 ;; 3274 *) 3275 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3276 ;; 3277 esac 3278 fi 3279 else 3280 # FIXME: insert proper C++ library support 3281 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3282 fi 3283 ;; 3284 esac 3285 ;; 3286 interix[[3-9]]*) 3287 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3288 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3289 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3290 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 3292 # Instead, shared libraries are loaded at an image base (0x10000000 by 3293 # default) and relocated if they conflict, which is a slow very memory 3294 # consuming and fragmenting process. To avoid this, we pick a random, 3295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 3296 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 3297 _LT_AC_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' 3298 _LT_AC_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' 3299 ;; 3300 irix5* | irix6*) 3301 case $cc_basename in 3302 CC*) 3303 # SGI C++ 3304 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3305 3306 # Archives containing C++ object files must be created using 3307 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 3308 # necessary to make sure instantiated templates are included 3309 # in the archive. 3310 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 3311 ;; 3312 *) 3313 if test "$GXX" = yes; then 3314 if test "$with_gnu_ld" = no; then 3315 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3316 else 3317 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 3318 fi 3319 fi 3320 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3321 ;; 3322 esac 3323 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3324 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3325 ;; 3326 linux* | k*bsd*-gnu) 3327 case $cc_basename in 3328 KCC*) 3329 # Kuck and Associates, Inc. (KAI) C++ Compiler 3330 3331 # KCC will only create a shared library if the output file 3332 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3333 # to its proper name (with version) after linking. 3334 _LT_AC_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' 3335 _LT_AC_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' 3336 # Commands to make compiler produce verbose output that lists 3337 # what "hidden" libraries, object files and flags are used when 3338 # linking a shared library. 3339 # 3340 # There doesn't appear to be a way to prevent this compiler from 3341 # explicitly linking system object files so we need to strip them 3342 # from the output so that they don't get included in the library 3343 # dependencies. 3344 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; echo $list' 3345 3346 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 3347 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3348 3349 # Archives containing C++ object files must be created using 3350 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3351 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3352 ;; 3353 icpc*) 3354 # Intel C++ 3355 with_gnu_ld=yes 3356 # version 8.0 and above of icpc choke on multiply defined symbols 3357 # if we add $predep_objects and $postdep_objects, however 7.1 and 3358 # earlier do not add the objects themselves. 3359 case `$CC -V 2>&1` in 3360 *"Version 7."*) 3361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3362 _LT_AC_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' 3363 ;; 3364 *) # Version 8.0 or newer 3365 tmp_idyn= 3366 case $host_cpu in 3367 ia64*) tmp_idyn=' -i_dynamic';; 3368 esac 3369 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3370 _LT_AC_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' 3371 ;; 3372 esac 3373 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3374 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3375 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3376 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3377 ;; 3378 pgCC* | pgcpp*) 3379 # Portland Group C++ compiler 3380 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3381 _LT_AC_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' 3382 3383 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3384 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3385 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3386 ;; 3387 cxx*) 3388 # Compaq C++ 3389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3390 _LT_AC_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' 3391 3392 runpath_var=LD_RUN_PATH 3393 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3394 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3395 3396 # Commands to make compiler produce verbose output that lists 3397 # what "hidden" libraries, object files and flags are used when 3398 # linking a shared library. 3399 # 3400 # There doesn't appear to be a way to prevent this compiler from 3401 # explicitly linking system object files so we need to strip them 3402 # from the output so that they don't get included in the library 3403 # dependencies. 3404 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list' 3405 ;; 3406 *) 3407 case `$CC -V 2>&1 | sed 5q` in 3408 *Sun\ C*) 3409 # Sun C++ 5.9 3410 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3411 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3412 _LT_AC_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' 3413 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3414 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3415 3416 # Not sure whether something based on 3417 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 3418 # would be better. 3419 output_verbose_link_cmd='echo' 3420 3421 # Archives containing C++ object files must be created using 3422 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3423 # necessary to make sure instantiated templates are included 3424 # in the archive. 3425 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3426 ;; 3427 esac 3428 ;; 3429 esac 3430 ;; 3431 lynxos*) 3432 # FIXME: insert proper C++ library support 3433 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3434 ;; 3435 m88k*) 3436 # FIXME: insert proper C++ library support 3437 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3438 ;; 3439 mvs*) 3440 case $cc_basename in 3441 cxx*) 3442 # FIXME: insert proper C++ library support 3443 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3444 ;; 3445 *) 3446 # FIXME: insert proper C++ library support 3447 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3448 ;; 3449 esac 3450 ;; 3451 netbsd*) 3452 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3453 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 3454 wlarc= 3455 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3456 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3457 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3458 fi 3459 # Workaround some broken pre-1.5 toolchains 3460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3461 ;; 3462 openbsd2*) 3463 # C++ shared libraries are fairly broken 3464 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3465 ;; 3466 openbsd*) 3467 if test -f /usr/libexec/ld.so; then 3468 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3469 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3470 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3471 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3472 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3473 _LT_AC_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' 3474 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3475 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3476 fi 3477 output_verbose_link_cmd='echo' 3478 else 3479 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3480 fi 3481 ;; 3482 osf3*) 3483 case $cc_basename in 3484 KCC*) 3485 # Kuck and Associates, Inc. (KAI) C++ Compiler 3486 3487 # KCC will only create a shared library if the output file 3488 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3489 # to its proper name (with version) after linking. 3490 _LT_AC_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' 3491 3492 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3493 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3494 3495 # Archives containing C++ object files must be created using 3496 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 3497 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3498 3499 ;; 3500 RCC*) 3501 # Rational C++ 2.4.1 3502 # FIXME: insert proper C++ library support 3503 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3504 ;; 3505 cxx*) 3506 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3507 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3508 3509 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3510 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3511 3512 # Commands to make compiler produce verbose output that lists 3513 # what "hidden" libraries, object files and flags are used when 3514 # linking a shared library. 3515 # 3516 # There doesn't appear to be a way to prevent this compiler from 3517 # explicitly linking system object files so we need to strip them 3518 # from the output so that they don't get included in the library 3519 # dependencies. 3520 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 3521 ;; 3522 *) 3523 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3524 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3525 _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3526 3527 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3528 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3529 3530 # Commands to make compiler produce verbose output that lists 3531 # what "hidden" libraries, object files and flags are used when 3532 # linking a shared library. 3533 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3534 3535 else 3536 # FIXME: insert proper C++ library support 3537 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3538 fi 3539 ;; 3540 esac 3541 ;; 3542 osf4* | osf5*) 3543 case $cc_basename in 3544 KCC*) 3545 # Kuck and Associates, Inc. (KAI) C++ Compiler 3546 3547 # KCC will only create a shared library if the output file 3548 # ends with ".so" (or ".sl" for HP-UX), so rename the library 3549 # to its proper name (with version) after linking. 3550 _LT_AC_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' 3551 3552 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3553 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3554 3555 # Archives containing C++ object files must be created using 3556 # the KAI C++ compiler. 3557 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3558 ;; 3559 RCC*) 3560 # Rational C++ 2.4.1 3561 # FIXME: insert proper C++ library support 3562 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3563 ;; 3564 cxx*) 3565 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3566 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 3567 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3568 echo "-hidden">> $lib.exp~ 3569 $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~ 3570 $rm $lib.exp' 3571 3572 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 3573 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3574 3575 # Commands to make compiler produce verbose output that lists 3576 # what "hidden" libraries, object files and flags are used when 3577 # linking a shared library. 3578 # 3579 # There doesn't appear to be a way to prevent this compiler from 3580 # explicitly linking system object files so we need to strip them 3581 # from the output so that they don't get included in the library 3582 # dependencies. 3583 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list' 3584 ;; 3585 *) 3586 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3587 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3588 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 3589 3590 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 3591 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3592 3593 # Commands to make compiler produce verbose output that lists 3594 # what "hidden" libraries, object files and flags are used when 3595 # linking a shared library. 3596 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 3597 3598 else 3599 # FIXME: insert proper C++ library support 3600 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3601 fi 3602 ;; 3603 esac 3604 ;; 3605 psos*) 3606 # FIXME: insert proper C++ library support 3607 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3608 ;; 3609 sunos4*) 3610 case $cc_basename in 3611 CC*) 3612 # Sun C++ 4.x 3613 # FIXME: insert proper C++ library support 3614 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3615 ;; 3616 lcc*) 3617 # Lucid 3618 # FIXME: insert proper C++ library support 3619 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3620 ;; 3621 *) 3622 # FIXME: insert proper C++ library support 3623 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3624 ;; 3625 esac 3626 ;; 3627 solaris*) 3628 case $cc_basename in 3629 CC*) 3630 # Sun C++ 4.2, 5.x and Centerline C++ 3631 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 3632 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3633 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3634 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3635 $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' 3636 3637 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3638 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3639 case $host_os in 3640 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3641 *) 3642 # The compiler driver will combine and reorder linker options, 3643 # but understands `-z linker_flag'. 3644 # Supported since Solaris 2.6 (maybe 2.5.1?) 3645 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 3646 ;; 3647 esac 3648 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3649 3650 output_verbose_link_cmd='echo' 3651 3652 # Archives containing C++ object files must be created using 3653 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3654 # necessary to make sure instantiated templates are included 3655 # in the archive. 3656 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3657 ;; 3658 gcx*) 3659 # Green Hills C++ Compiler 3660 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3661 3662 # The C++ compiler must be used to create the archive. 3663 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 3664 ;; 3665 *) 3666 # GNU C++ compiler with Solaris linker 3667 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3668 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 3669 if $CC --version | grep -v '^2\.7' > /dev/null; then 3670 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3671 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3672 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3673 3674 # Commands to make compiler produce verbose output that lists 3675 # what "hidden" libraries, object files and flags are used when 3676 # linking a shared library. 3677 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3678 else 3679 # g++ 2.7 appears to require `-G' NOT `-shared' on this 3680 # platform. 3681 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 3682 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3683 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 3684 3685 # Commands to make compiler produce verbose output that lists 3686 # what "hidden" libraries, object files and flags are used when 3687 # linking a shared library. 3688 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 3689 fi 3690 3691 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3692 case $host_os in 3693 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3694 *) 3695 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3696 ;; 3697 esac 3698 fi 3699 ;; 3700 esac 3701 ;; 3702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 3703 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3704 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3705 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3706 runpath_var='LD_RUN_PATH' 3707 3708 case $cc_basename in 3709 CC*) 3710 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3711 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3712 ;; 3713 *) 3714 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 3716 ;; 3717 esac 3718 ;; 3719 sysv5* | sco3.2v5* | sco5v6*) 3720 # Note: We can NOT use -z defs as we might desire, because we do not 3721 # link with -lc, and that would cause any symbols used from libc to 3722 # always be unresolved, which means just about no library would 3723 # ever link correctly. If we're not using GNU ld we use -z text 3724 # though, which does catch some bad symbols but isn't as heavy-handed 3725 # as -z defs. 3726 # For security reasons, it is highly recommended that you always 3727 # use absolute paths for naming shared libraries, and exclude the 3728 # DT_RUNPATH tag from executables and libraries. But doing so 3729 # requires that you compile everything twice, which is a pain. 3730 # So that behaviour is only enabled if SCOABSPATH is set to a 3731 # non-empty value in the environment. Most likely only useful for 3732 # creating official distributions of packages. 3733 # This is a hack until libtool officially supports absolute path 3734 # names for shared libraries. 3735 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 3736 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 3737 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3738 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 3740 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3741 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3742 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 3743 runpath_var='LD_RUN_PATH' 3744 3745 case $cc_basename in 3746 CC*) 3747 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3748 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3749 ;; 3750 *) 3751 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3752 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 3753 ;; 3754 esac 3755 ;; 3756 tandem*) 3757 case $cc_basename in 3758 NCC*) 3759 # NonStop-UX NCC 3.20 3760 # FIXME: insert proper C++ library support 3761 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3762 ;; 3763 *) 3764 # FIXME: insert proper C++ library support 3765 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3766 ;; 3767 esac 3768 ;; 3769 vxworks*) 3770 # FIXME: insert proper C++ library support 3771 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3772 ;; 3773 *) 3774 # FIXME: insert proper C++ library support 3775 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3776 ;; 3777esac 3778AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 3779test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 3780 3781_LT_AC_TAGVAR(GCC, $1)="$GXX" 3782_LT_AC_TAGVAR(LD, $1)="$LD" 3783 3784## CAVEAT EMPTOR: 3785## There is no encapsulation within the following macros, do not change 3786## the running order or otherwise move them around unless you know exactly 3787## what you are doing... 3788AC_LIBTOOL_POSTDEP_PREDEP($1) 3789AC_LIBTOOL_PROG_COMPILER_PIC($1) 3790AC_LIBTOOL_PROG_CC_C_O($1) 3791AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3792AC_LIBTOOL_PROG_LD_SHLIBS($1) 3793AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3794AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3795 3796AC_LIBTOOL_CONFIG($1) 3797 3798AC_LANG_RESTORE 3799CC=$lt_save_CC 3800LDCXX=$LD 3801LD=$lt_save_LD 3802GCC=$lt_save_GCC 3803with_gnu_ldcxx=$with_gnu_ld 3804with_gnu_ld=$lt_save_with_gnu_ld 3805lt_cv_path_LDCXX=$lt_cv_path_LD 3806lt_cv_path_LD=$lt_save_path_LD 3807lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 3808lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 3809])# AC_LIBTOOL_LANG_CXX_CONFIG 3810 3811# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 3812# ------------------------------------ 3813# Figure out "hidden" library dependencies from verbose 3814# compiler output when linking a shared library. 3815# Parse the compiler output and extract the necessary 3816# objects, libraries and library flags. 3817AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], 3818[AC_REQUIRE([LT_AC_PROG_SED])dnl 3819dnl we can't use the lt_simple_compile_test_code here, 3820dnl because it contains code intended for an executable, 3821dnl not a library. It's possible we should let each 3822dnl tag define a new lt_????_link_test_code variable, 3823dnl but it's only used here... 3824ifelse([$1],[],[cat > conftest.$ac_ext <<EOF 3825int a; 3826void foo (void) { a = 0; } 3827EOF 3828],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 3829class Foo 3830{ 3831public: 3832 Foo (void) { a = 0; } 3833private: 3834 int a; 3835}; 3836EOF 3837],[$1],[F77],[cat > conftest.$ac_ext <<EOF 3838 subroutine foo 3839 implicit none 3840 integer*4 a 3841 a=0 3842 return 3843 end 3844EOF 3845],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 3846public class foo { 3847 private int a; 3848 public void bar (void) { 3849 a = 0; 3850 } 3851}; 3852EOF 3853]) 3854dnl Parse the compiler output and extract the necessary 3855dnl objects, libraries and library flags. 3856if AC_TRY_EVAL(ac_compile); then 3857 # Parse the compiler output and extract the necessary 3858 # objects, libraries and library flags. 3859 3860 # Sentinel used to keep track of whether or not we are before 3861 # the conftest object file. 3862 pre_test_object_deps_done=no 3863 3864 # The `*' in the case matches for architectures that use `case' in 3865 # $output_verbose_cmd can trigger glob expansion during the loop 3866 # eval without this substitution. 3867 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3868 3869 for p in `eval $output_verbose_link_cmd`; do 3870 case $p in 3871 3872 -L* | -R* | -l*) 3873 # Some compilers place space between "-{L,R}" and the path. 3874 # Remove the space. 3875 if test $p = "-L" \ 3876 || test $p = "-R"; then 3877 prev=$p 3878 continue 3879 else 3880 prev= 3881 fi 3882 3883 if test "$pre_test_object_deps_done" = no; then 3884 case $p in 3885 -L* | -R*) 3886 # Internal compiler library paths should come after those 3887 # provided the user. The postdeps already come after the 3888 # user supplied libs so there is no need to process them. 3889 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 3890 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 3891 else 3892 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 3893 fi 3894 ;; 3895 # The "-l" case would never come before the object being 3896 # linked, so don't bother handling this case. 3897 esac 3898 else 3899 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 3900 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 3901 else 3902 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 3903 fi 3904 fi 3905 ;; 3906 3907 *.$objext) 3908 # This assumes that the test object file only shows up 3909 # once in the compiler output. 3910 if test "$p" = "conftest.$objext"; then 3911 pre_test_object_deps_done=yes 3912 continue 3913 fi 3914 3915 if test "$pre_test_object_deps_done" = no; then 3916 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 3917 _LT_AC_TAGVAR(predep_objects, $1)="$p" 3918 else 3919 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 3920 fi 3921 else 3922 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 3923 _LT_AC_TAGVAR(postdep_objects, $1)="$p" 3924 else 3925 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 3926 fi 3927 fi 3928 ;; 3929 3930 *) ;; # Ignore the rest. 3931 3932 esac 3933 done 3934 3935 # Clean up. 3936 rm -f a.out a.exe 3937else 3938 echo "libtool.m4: error: problem compiling $1 test program" 3939fi 3940 3941$rm -f confest.$objext 3942 3943_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 3944if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 3945 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 3946fi 3947 3948# PORTME: override above test on systems where it is broken 3949ifelse([$1],[CXX], 3950[case $host_os in 3951interix[[3-9]]*) 3952 # Interix 3.5 installs completely hosed .la files for C++, so rather than 3953 # hack all around it, let's just trust "g++" to DTRT. 3954 _LT_AC_TAGVAR(predep_objects,$1)= 3955 _LT_AC_TAGVAR(postdep_objects,$1)= 3956 _LT_AC_TAGVAR(postdeps,$1)= 3957 ;; 3958 3959linux*) 3960 case `$CC -V 2>&1 | sed 5q` in 3961 *Sun\ C*) 3962 # Sun C++ 5.9 3963 # 3964 # The more standards-conforming stlport4 library is 3965 # incompatible with the Cstd library. Avoid specifying 3966 # it if it's in CXXFLAGS. Ignore libCrun as 3967 # -library=stlport4 depends on it. 3968 case " $CXX $CXXFLAGS " in 3969 *" -library=stlport4 "*) 3970 solaris_use_stlport4=yes 3971 ;; 3972 esac 3973 if test "$solaris_use_stlport4" != yes; then 3974 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3975 fi 3976 ;; 3977 esac 3978 ;; 3979 3980solaris*) 3981 case $cc_basename in 3982 CC*) 3983 # The more standards-conforming stlport4 library is 3984 # incompatible with the Cstd library. Avoid specifying 3985 # it if it's in CXXFLAGS. Ignore libCrun as 3986 # -library=stlport4 depends on it. 3987 case " $CXX $CXXFLAGS " in 3988 *" -library=stlport4 "*) 3989 solaris_use_stlport4=yes 3990 ;; 3991 esac 3992 3993 # Adding this requires a known-good setup of shared libraries for 3994 # Sun compiler versions before 5.6, else PIC objects from an old 3995 # archive will be linked into the output, leading to subtle bugs. 3996 if test "$solaris_use_stlport4" != yes; then 3997 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3998 fi 3999 ;; 4000 esac 4001 ;; 4002esac 4003]) 4004case " $_LT_AC_TAGVAR(postdeps, $1) " in 4005*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4006esac 4007])# AC_LIBTOOL_POSTDEP_PREDEP 4008 4009# AC_LIBTOOL_CONFIG([TAGNAME]) 4010# ---------------------------- 4011# If TAGNAME is not passed, then create an initial libtool script 4012# with a default configuration from the untagged config vars. Otherwise 4013# add code to config.status for appending the configuration named by 4014# TAGNAME from the matching tagged config vars. 4015AC_DEFUN([AC_LIBTOOL_CONFIG], 4016[# The else clause should only fire when bootstrapping the 4017# libtool distribution, otherwise you forgot to ship ltmain.sh 4018# with your package, and you will get complaints that there are 4019# no rules to generate ltmain.sh. 4020if test -f "$ltmain"; then 4021 # See if we are running on zsh, and set the options which allow our commands through 4022 # without removal of \ escapes. 4023 if test -n "${ZSH_VERSION+set}" ; then 4024 setopt NO_GLOB_SUBST 4025 fi 4026 # Now quote all the things that may contain metacharacters while being 4027 # careful not to overquote the AC_SUBSTed values. We take copies of the 4028 # variables and quote the copies for generation of the libtool script. 4029 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 4030 SED SHELL STRIP \ 4031 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4032 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4033 deplibs_check_method reload_flag reload_cmds need_locks \ 4034 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4035 lt_cv_sys_global_symbol_to_c_name_address \ 4036 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 4037 old_postinstall_cmds old_postuninstall_cmds \ 4038 _LT_AC_TAGVAR(compiler, $1) \ 4039 _LT_AC_TAGVAR(CC, $1) \ 4040 _LT_AC_TAGVAR(LD, $1) \ 4041 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 4042 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 4043 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 4044 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 4045 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 4046 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 4047 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 4048 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 4049 _LT_AC_TAGVAR(old_archive_cmds, $1) \ 4050 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 4051 _LT_AC_TAGVAR(predep_objects, $1) \ 4052 _LT_AC_TAGVAR(postdep_objects, $1) \ 4053 _LT_AC_TAGVAR(predeps, $1) \ 4054 _LT_AC_TAGVAR(postdeps, $1) \ 4055 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 4056 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ 4057 _LT_AC_TAGVAR(archive_cmds, $1) \ 4058 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 4059 _LT_AC_TAGVAR(postinstall_cmds, $1) \ 4060 _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 4061 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 4062 _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 4063 _LT_AC_TAGVAR(no_undefined_flag, $1) \ 4064 _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 4065 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 4066 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 4067 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 4068 _LT_AC_TAGVAR(hardcode_automatic, $1) \ 4069 _LT_AC_TAGVAR(module_cmds, $1) \ 4070 _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 4071 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 4072 _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 4073 _LT_AC_TAGVAR(exclude_expsyms, $1) \ 4074 _LT_AC_TAGVAR(include_expsyms, $1); do 4075 4076 case $var in 4077 _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 4078 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 4079 _LT_AC_TAGVAR(archive_cmds, $1) | \ 4080 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 4081 _LT_AC_TAGVAR(module_cmds, $1) | \ 4082 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 4083 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 4084 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 4085 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 4086 postinstall_cmds | postuninstall_cmds | \ 4087 old_postinstall_cmds | old_postuninstall_cmds | \ 4088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 4089 # Double-quote double-evaled strings. 4090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 4091 ;; 4092 *) 4093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 4094 ;; 4095 esac 4096 done 4097 4098 case $lt_echo in 4099 *'\[$]0 --fallback-echo"') 4100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 4101 ;; 4102 esac 4103 4104ifelse([$1], [], 4105 [cfgfile="${ofile}T" 4106 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 4107 $rm -f "$cfgfile" 4108 AC_MSG_RESULT([ 4109creating $ofile])], 4110 [cfgfile="$ofile"]) 4111 4112 cat <<__EOF__ >> "$cfgfile" 4113ifelse([$1], [], 4114[#! $SHELL 4115 4116# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 4117# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 4118# NOTE: Changes made to this file will be lost: look at ltmain.sh. 4119# 4120# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 4121# Free Software Foundation, Inc. 4122# 4123# This file is part of GNU Libtool: 4124# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 4125# 4126# This program is free software; you can redistribute it and/or modify 4127# it under the terms of the GNU General Public License as published by 4128# the Free Software Foundation; either version 2 of the License, or 4129# (at your option) any later version. 4130# 4131# This program is distributed in the hope that it will be useful, but 4132# WITHOUT ANY WARRANTY; without even the implied warranty of 4133# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 4134# General Public License for more details. 4135# 4136# You should have received a copy of the GNU General Public License 4137# along with this program; if not, write to the Free Software 4138# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 4139# 4140# As a special exception to the GNU General Public License, if you 4141# distribute this file as part of a program that contains a 4142# configuration script generated by Autoconf, you may include it under 4143# the same distribution terms that you use for the rest of that program. 4144 4145# A sed program that does not truncate output. 4146SED=$lt_SED 4147 4148# Sed that helps us avoid accidentally triggering echo(1) options like -n. 4149Xsed="$SED -e 1s/^X//" 4150 4151# The HP-UX ksh and POSIX shell print the target directory to stdout 4152# if CDPATH is set. 4153(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4154 4155# The names of the tagged configurations supported by this script. 4156available_tags= 4157 4158# ### BEGIN LIBTOOL CONFIG], 4159[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 4160 4161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4162 4163# Shell to use when invoking shell scripts. 4164SHELL=$lt_SHELL 4165 4166# Whether or not to build shared libraries. 4167build_libtool_libs=$enable_shared 4168 4169# Whether or not to build static libraries. 4170build_old_libs=$enable_static 4171 4172# Whether or not to add -lc for building shared libraries. 4173build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 4174 4175# Whether or not to disallow shared libs when runtime libs are static 4176allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 4177 4178# Whether or not to optimize for fast installation. 4179fast_install=$enable_fast_install 4180 4181# The host system. 4182host_alias=$host_alias 4183host=$host 4184host_os=$host_os 4185 4186# The build system. 4187build_alias=$build_alias 4188build=$build 4189build_os=$build_os 4190 4191# An echo program that does not interpret backslashes. 4192echo=$lt_echo 4193 4194# The archiver. 4195AR=$lt_AR 4196AR_FLAGS=$lt_AR_FLAGS 4197 4198# A C compiler. 4199LTCC=$lt_LTCC 4200 4201# LTCC compiler flags. 4202LTCFLAGS=$lt_LTCFLAGS 4203 4204# A language-specific compiler. 4205CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 4206 4207# Is the compiler the GNU C compiler? 4208with_gcc=$_LT_AC_TAGVAR(GCC, $1) 4209 4210# An ERE matcher. 4211EGREP=$lt_EGREP 4212 4213# The linker used to build libraries. 4214LD=$lt_[]_LT_AC_TAGVAR(LD, $1) 4215 4216# Whether we need hard or soft links. 4217LN_S=$lt_LN_S 4218 4219# A BSD-compatible nm program. 4220NM=$lt_NM 4221 4222# A symbol stripping program 4223STRIP=$lt_STRIP 4224 4225# Used to examine libraries when file_magic_cmd begins "file" 4226MAGIC_CMD=$MAGIC_CMD 4227 4228# Used on cygwin: DLL creation program. 4229DLLTOOL="$DLLTOOL" 4230 4231# Used on cygwin: object dumper. 4232OBJDUMP="$OBJDUMP" 4233 4234# Used on cygwin: assembler. 4235AS="$AS" 4236 4237# The name of the directory that contains temporary libtool files. 4238objdir=$objdir 4239 4240# How to create reloadable object files. 4241reload_flag=$lt_reload_flag 4242reload_cmds=$lt_reload_cmds 4243 4244# How to pass a linker flag through the compiler. 4245wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 4246 4247# Object file suffix (normally "o"). 4248objext="$ac_objext" 4249 4250# Old archive suffix (normally "a"). 4251libext="$libext" 4252 4253# Shared library suffix (normally ".so"). 4254shrext_cmds='$shrext_cmds' 4255 4256# Executable file suffix (normally ""). 4257exeext="$exeext" 4258 4259# Additional compiler flags for building library objects. 4260pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 4261pic_mode=$pic_mode 4262 4263# What is the maximum length of a command? 4264max_cmd_len=$lt_cv_sys_max_cmd_len 4265 4266# Does compiler simultaneously support -c and -o options? 4267compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4268 4269# Must we lock files when doing compilation? 4270need_locks=$lt_need_locks 4271 4272# Do we need the lib prefix for modules? 4273need_lib_prefix=$need_lib_prefix 4274 4275# Do we need a version for libraries? 4276need_version=$need_version 4277 4278# Whether dlopen is supported. 4279dlopen_support=$enable_dlopen 4280 4281# Whether dlopen of programs is supported. 4282dlopen_self=$enable_dlopen_self 4283 4284# Whether dlopen of statically linked programs is supported. 4285dlopen_self_static=$enable_dlopen_self_static 4286 4287# Compiler flag to prevent dynamic linking. 4288link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 4289 4290# Compiler flag to turn off builtin functions. 4291no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 4292 4293# Compiler flag to allow reflexive dlopens. 4294export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 4295 4296# Compiler flag to generate shared objects directly from archives. 4297whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 4298 4299# Compiler flag to generate thread-safe objects. 4300thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 4301 4302# Library versioning type. 4303version_type=$version_type 4304 4305# Format of library name prefix. 4306libname_spec=$lt_libname_spec 4307 4308# List of archive names. First name is the real one, the rest are links. 4309# The last name is the one that the linker finds with -lNAME. 4310library_names_spec=$lt_library_names_spec 4311 4312# The coded name of the library, if different from the real name. 4313soname_spec=$lt_soname_spec 4314 4315# Commands used to build and install an old-style archive. 4316RANLIB=$lt_RANLIB 4317old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 4318old_postinstall_cmds=$lt_old_postinstall_cmds 4319old_postuninstall_cmds=$lt_old_postuninstall_cmds 4320 4321# Create an old-style archive from a shared archive. 4322old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 4323 4324# Create a temporary old-style archive to link instead of a shared archive. 4325old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 4326 4327# Commands used to build and install a shared archive. 4328archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 4329archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 4330postinstall_cmds=$lt_postinstall_cmds 4331postuninstall_cmds=$lt_postuninstall_cmds 4332 4333# Commands used to build a loadable module (assumed same as above if empty) 4334module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 4335module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 4336 4337# Commands to strip libraries. 4338old_striplib=$lt_old_striplib 4339striplib=$lt_striplib 4340 4341# Dependencies to place before the objects being linked to create a 4342# shared library. 4343predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 4344 4345# Dependencies to place after the objects being linked to create a 4346# shared library. 4347postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 4348 4349# Dependencies to place before the objects being linked to create a 4350# shared library. 4351predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 4352 4353# Dependencies to place after the objects being linked to create a 4354# shared library. 4355postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 4356 4357# The directories searched by this compiler when creating a shared 4358# library 4359compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) 4360 4361# The library search path used internally by the compiler when linking 4362# a shared library. 4363compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 4364 4365# Method to check whether dependent libraries are shared objects. 4366deplibs_check_method=$lt_deplibs_check_method 4367 4368# Command to use when deplibs_check_method == file_magic. 4369file_magic_cmd=$lt_file_magic_cmd 4370 4371# Flag that allows shared libraries with undefined symbols to be built. 4372allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 4373 4374# Flag that forces no undefined symbols. 4375no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 4376 4377# Commands used to finish a libtool library installation in a directory. 4378finish_cmds=$lt_finish_cmds 4379 4380# Same as above, but a single script fragment to be evaled but not shown. 4381finish_eval=$lt_finish_eval 4382 4383# Take the output of nm and produce a listing of raw symbols and C names. 4384global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 4385 4386# Transform the output of nm in a proper C declaration 4387global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 4388 4389# Transform the output of nm in a C name address pair 4390global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 4391 4392# This is the shared library runtime path variable. 4393runpath_var=$runpath_var 4394 4395# This is the shared library path variable. 4396shlibpath_var=$shlibpath_var 4397 4398# Is shlibpath searched before the hard-coded library search path? 4399shlibpath_overrides_runpath=$shlibpath_overrides_runpath 4400 4401# How to hardcode a shared library path into an executable. 4402hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 4403 4404# Whether we should hardcode library paths into libraries. 4405hardcode_into_libs=$hardcode_into_libs 4406 4407# Flag to hardcode \$libdir into a binary during linking. 4408# This must work even if \$libdir does not exist. 4409hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 4410 4411# If ld is used when linking, flag to hardcode \$libdir into 4412# a binary during linking. This must work even if \$libdir does 4413# not exist. 4414hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 4415 4416# Whether we need a single -rpath flag with a separated argument. 4417hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 4418 4419# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 4420# resulting binary. 4421hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 4422 4423# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 4424# resulting binary. 4425hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 4426 4427# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 4428# the resulting binary. 4429hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 4430 4431# Set to yes if building a shared library automatically hardcodes DIR into the library 4432# and all subsequent libraries and executables linked against it. 4433hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 4434 4435# Variables whose values should be saved in libtool wrapper scripts and 4436# restored at relink time. 4437variables_saved_for_relink="$variables_saved_for_relink" 4438 4439# Whether libtool must link a program against all its dependency libraries. 4440link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 4441 4442# Compile-time system search path for libraries 4443sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 4444 4445# Run-time system search path for libraries 4446sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 4447 4448# Fix the shell variable \$srcfile for the compiler. 4449fix_srcfile_path=$lt_fix_srcfile_path 4450 4451# Set to yes if exported symbols are required. 4452always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 4453 4454# The commands to list exported symbols. 4455export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 4456 4457# The commands to extract the exported symbol list from a shared archive. 4458extract_expsyms_cmds=$lt_extract_expsyms_cmds 4459 4460# Symbols that should not be listed in the preloaded symbols. 4461exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 4462 4463# Symbols that must always be exported. 4464include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 4465 4466ifelse([$1],[], 4467[# ### END LIBTOOL CONFIG], 4468[# ### END LIBTOOL TAG CONFIG: $tagname]) 4469 4470__EOF__ 4471 4472ifelse([$1],[], [ 4473 case $host_os in 4474 aix3*) 4475 cat <<\EOF >> "$cfgfile" 4476 4477# AIX sometimes has problems with the GCC collect2 program. For some 4478# reason, if we set the COLLECT_NAMES environment variable, the problems 4479# vanish in a puff of smoke. 4480if test "X${COLLECT_NAMES+set}" != Xset; then 4481 COLLECT_NAMES= 4482 export COLLECT_NAMES 4483fi 4484EOF 4485 ;; 4486 esac 4487 4488 # We use sed instead of cat because bash on DJGPP gets confused if 4489 # if finds mixed CR/LF and LF-only lines. Since sed operates in 4490 # text mode, it properly converts lines to CR/LF. This bash problem 4491 # is reportedly fixed, but why not run on old versions too? 4492 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 4493 4494 mv -f "$cfgfile" "$ofile" || \ 4495 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 4496 chmod +x "$ofile" 4497]) 4498else 4499 # If there is no Makefile yet, we rely on a make rule to execute 4500 # `config.status --recheck' to rerun these tests and create the 4501 # libtool script then. 4502 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 4503 if test -f "$ltmain_in"; then 4504 test -f Makefile && make "$ltmain" 4505 fi 4506fi 4507])# AC_LIBTOOL_CONFIG 4508 4509 4510# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 4511# ------------------------------------------- 4512AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 4513[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 4514 4515_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 4516 4517if test "$GCC" = yes; then 4518 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 4519 4520 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 4521 lt_cv_prog_compiler_rtti_exceptions, 4522 [-fno-rtti -fno-exceptions], [], 4523 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 4524fi 4525])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 4526 4527 4528# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4529# --------------------------------- 4530AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 4531[AC_REQUIRE([AC_CANONICAL_HOST]) 4532AC_REQUIRE([LT_AC_PROG_SED]) 4533AC_REQUIRE([AC_PROG_NM]) 4534AC_REQUIRE([AC_OBJEXT]) 4535# Check for command to grab the raw symbol name followed by C symbol from nm. 4536AC_MSG_CHECKING([command to parse $NM output from $compiler object]) 4537AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 4538[ 4539# These are sane defaults that work on at least a few old systems. 4540# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4541 4542# Character class describing NM global symbol codes. 4543symcode='[[BCDEGRST]]' 4544 4545# Regexp to match symbols that can be accessed directly from C. 4546sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4547 4548# Transform an extracted symbol line into a proper C declaration 4549lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4550 4551# Transform an extracted symbol line into symbol name and symbol address 4552lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4553 4554# Define system-specific variables. 4555case $host_os in 4556aix*) 4557 symcode='[[BCDT]]' 4558 ;; 4559cygwin* | mingw* | pw32*) 4560 symcode='[[ABCDGISTW]]' 4561 ;; 4562hpux*) # Its linker distinguishes data from code symbols 4563 if test "$host_cpu" = ia64; then 4564 symcode='[[ABCDEGRST]]' 4565 fi 4566 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4567 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4568 ;; 4569linux* | k*bsd*-gnu) 4570 if test "$host_cpu" = ia64; then 4571 symcode='[[ABCDGIRSTW]]' 4572 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4574 fi 4575 ;; 4576irix* | nonstopux*) 4577 symcode='[[BCDEGRST]]' 4578 ;; 4579osf*) 4580 symcode='[[BCDEGQRST]]' 4581 ;; 4582solaris*) 4583 symcode='[[BDRT]]' 4584 ;; 4585sco3.2v5*) 4586 symcode='[[DT]]' 4587 ;; 4588sysv4.2uw2*) 4589 symcode='[[DT]]' 4590 ;; 4591sysv5* | sco5v6* | unixware* | OpenUNIX*) 4592 symcode='[[ABDT]]' 4593 ;; 4594sysv4) 4595 symcode='[[DFNSTU]]' 4596 ;; 4597esac 4598 4599# Handle CRLF in mingw tool chain 4600opt_cr= 4601case $build_os in 4602mingw*) 4603 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4604 ;; 4605esac 4606 4607# If we're using GNU nm, then use its standard symbol codes. 4608case `$NM -V 2>&1` in 4609*GNU* | *'with BFD'*) 4610 symcode='[[ABCDGIRSTW]]' ;; 4611esac 4612 4613# Try without a prefix undercore, then with it. 4614for ac_symprfx in "" "_"; do 4615 4616 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4617 symxfrm="\\1 $ac_symprfx\\2 \\2" 4618 4619 # Write the raw and C identifiers. 4620 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4621 4622 # Check to see that the pipe works correctly. 4623 pipe_works=no 4624 4625 rm -f conftest* 4626 cat > conftest.$ac_ext <<EOF 4627#ifdef __cplusplus 4628extern "C" { 4629#endif 4630char nm_test_var; 4631void nm_test_func(){} 4632#ifdef __cplusplus 4633} 4634#endif 4635int main(){nm_test_var='a';nm_test_func();return(0);} 4636EOF 4637 4638 if AC_TRY_EVAL(ac_compile); then 4639 # Now try to grab the symbols. 4640 nlist=conftest.nm 4641 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 4642 # Try sorting and uniquifying the output. 4643 if sort "$nlist" | uniq > "$nlist"T; then 4644 mv -f "$nlist"T "$nlist" 4645 else 4646 rm -f "$nlist"T 4647 fi 4648 4649 # Make sure that we snagged all the symbols we need. 4650 if grep ' nm_test_var$' "$nlist" >/dev/null; then 4651 if grep ' nm_test_func$' "$nlist" >/dev/null; then 4652 cat <<EOF > conftest.$ac_ext 4653#ifdef __cplusplus 4654extern "C" { 4655#endif 4656 4657EOF 4658 # Now generate the symbol file. 4659 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 4660 4661 cat <<EOF >> conftest.$ac_ext 4662#if defined (__STDC__) && __STDC__ 4663# define lt_ptr_t void * 4664#else 4665# define lt_ptr_t char * 4666# define const 4667#endif 4668 4669/* The mapping between symbol names and symbols. */ 4670const struct { 4671 const char *name; 4672 lt_ptr_t address; 4673} 4674lt_preloaded_symbols[[]] = 4675{ 4676EOF 4677 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 4678 cat <<\EOF >> conftest.$ac_ext 4679 {0, (lt_ptr_t) 0} 4680}; 4681 4682#ifdef __cplusplus 4683} 4684#endif 4685EOF 4686 # Now try linking the two files. 4687 mv conftest.$ac_objext conftstm.$ac_objext 4688 lt_save_LIBS="$LIBS" 4689 lt_save_CFLAGS="$CFLAGS" 4690 LIBS="conftstm.$ac_objext" 4691 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 4692 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 4693 pipe_works=yes 4694 fi 4695 LIBS="$lt_save_LIBS" 4696 CFLAGS="$lt_save_CFLAGS" 4697 else 4698 echo "cannot find nm_test_func in $nlist" >&5 4699 fi 4700 else 4701 echo "cannot find nm_test_var in $nlist" >&5 4702 fi 4703 else 4704 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4705 fi 4706 else 4707 echo "$progname: failed program was:" >&5 4708 cat conftest.$ac_ext >&5 4709 fi 4710 rm -rf conftest* conftst* 4711 4712 # Do not use the global_symbol_pipe unless it works. 4713 if test "$pipe_works" = yes; then 4714 break 4715 else 4716 lt_cv_sys_global_symbol_pipe= 4717 fi 4718done 4719]) 4720if test -z "$lt_cv_sys_global_symbol_pipe"; then 4721 lt_cv_sys_global_symbol_to_cdecl= 4722fi 4723if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 4724 AC_MSG_RESULT(failed) 4725else 4726 AC_MSG_RESULT(ok) 4727fi 4728]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 4729 4730 4731# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 4732# --------------------------------------- 4733AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 4734[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 4735_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4736_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 4737 4738AC_MSG_CHECKING([for $compiler option to produce PIC]) 4739 ifelse([$1],[CXX],[ 4740 # C++ specific cases for pic, static, wl, etc. 4741 if test "$GXX" = yes; then 4742 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4743 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4744 4745 case $host_os in 4746 aix*) 4747 # All AIX code is PIC. 4748 if test "$host_cpu" = ia64; then 4749 # AIX 5 now supports IA64 processor 4750 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4751 fi 4752 ;; 4753 amigaos*) 4754 # FIXME: we need at least 68020 code to build shared libraries, but 4755 # adding the `-m68020' flag to GCC prevents building anything better, 4756 # like `-m68040'. 4757 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 4758 ;; 4759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 4760 # PIC is the default for these OSes. 4761 ;; 4762 mingw* | cygwin* | os2* | pw32*) 4763 # This hack is so that the source file can tell whether it is being 4764 # built for inclusion in a dll (and should export symbols for example). 4765 # Although the cygwin gcc ignores -fPIC, still need this for old-style 4766 # (--disable-auto-import) libraries 4767 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 4768 ;; 4769 darwin* | rhapsody*) 4770 # PIC is the default on this platform 4771 # Common symbols not allowed in MH_DYLIB files 4772 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 4773 ;; 4774 *djgpp*) 4775 # DJGPP does not support shared libraries at all 4776 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4777 ;; 4778 interix[[3-9]]*) 4779 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 4780 # Instead, we relocate shared libraries at runtime. 4781 ;; 4782 sysv4*MP*) 4783 if test -d /usr/nec; then 4784 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 4785 fi 4786 ;; 4787 hpux*) 4788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4789 # not for PA HP-UX. 4790 case $host_cpu in 4791 hppa*64*|ia64*) 4792 ;; 4793 *) 4794 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4795 ;; 4796 esac 4797 ;; 4798 *) 4799 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4800 ;; 4801 esac 4802 else 4803 case $host_os in 4804 aix[[4-9]]*) 4805 # All AIX code is PIC. 4806 if test "$host_cpu" = ia64; then 4807 # AIX 5 now supports IA64 processor 4808 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4809 else 4810 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 4811 fi 4812 ;; 4813 chorus*) 4814 case $cc_basename in 4815 cxch68*) 4816 # Green Hills C++ Compiler 4817 # _LT_AC_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" 4818 ;; 4819 esac 4820 ;; 4821 darwin*) 4822 # PIC is the default on this platform 4823 # Common symbols not allowed in MH_DYLIB files 4824 case $cc_basename in 4825 xlc*) 4826 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 4827 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4828 ;; 4829 esac 4830 ;; 4831 dgux*) 4832 case $cc_basename in 4833 ec++*) 4834 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4835 ;; 4836 ghcx*) 4837 # Green Hills C++ Compiler 4838 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4839 ;; 4840 *) 4841 ;; 4842 esac 4843 ;; 4844 freebsd* | dragonfly*) 4845 # FreeBSD uses GNU C++ 4846 ;; 4847 hpux9* | hpux10* | hpux11*) 4848 case $cc_basename in 4849 CC*) 4850 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4851 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4852 if test "$host_cpu" != ia64; then 4853 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4854 fi 4855 ;; 4856 aCC*) 4857 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4858 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 4859 case $host_cpu in 4860 hppa*64*|ia64*) 4861 # +Z the default 4862 ;; 4863 *) 4864 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 4865 ;; 4866 esac 4867 ;; 4868 *) 4869 ;; 4870 esac 4871 ;; 4872 interix*) 4873 # This is c89, which is MS Visual C++ (no shared libs) 4874 # Anyone wants to do a port? 4875 ;; 4876 irix5* | irix6* | nonstopux*) 4877 case $cc_basename in 4878 CC*) 4879 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4880 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4881 # CC pic flag -KPIC is the default. 4882 ;; 4883 *) 4884 ;; 4885 esac 4886 ;; 4887 linux* | k*bsd*-gnu) 4888 case $cc_basename in 4889 KCC*) 4890 # KAI C++ Compiler 4891 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4892 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4893 ;; 4894 ecpc*) 4895 # old Intel C++ for x86_64 which still supported -KPIC. 4896 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4897 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4898 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4899 ;; 4900 icpc*) 4901 # Intel C++, used to be incompatible with GCC. 4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4903 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4904 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4905 ;; 4906 pgCC* | pgcpp*) 4907 # Portland Group C++ compiler. 4908 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4909 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4910 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4911 ;; 4912 cxx*) 4913 # Compaq C++ 4914 # Make sure the PIC flag is empty. It appears that all Alpha 4915 # Linux and Compaq Tru64 Unix objects are PIC. 4916 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4917 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4918 ;; 4919 *) 4920 case `$CC -V 2>&1 | sed 5q` in 4921 *Sun\ C*) 4922 # Sun C++ 5.9 4923 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4924 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4925 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4926 ;; 4927 esac 4928 ;; 4929 esac 4930 ;; 4931 lynxos*) 4932 ;; 4933 m88k*) 4934 ;; 4935 mvs*) 4936 case $cc_basename in 4937 cxx*) 4938 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4939 ;; 4940 *) 4941 ;; 4942 esac 4943 ;; 4944 netbsd*) 4945 ;; 4946 osf3* | osf4* | osf5*) 4947 case $cc_basename in 4948 KCC*) 4949 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4950 ;; 4951 RCC*) 4952 # Rational C++ 2.4.1 4953 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4954 ;; 4955 cxx*) 4956 # Digital/Compaq C++ 4957 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4958 # Make sure the PIC flag is empty. It appears that all Alpha 4959 # Linux and Compaq Tru64 Unix objects are PIC. 4960 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 4961 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 4962 ;; 4963 *) 4964 ;; 4965 esac 4966 ;; 4967 psos*) 4968 ;; 4969 solaris*) 4970 case $cc_basename in 4971 CC*) 4972 # Sun C++ 4.2, 5.x and Centerline C++ 4973 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4974 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4975 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4976 ;; 4977 gcx*) 4978 # Green Hills C++ Compiler 4979 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 4980 ;; 4981 *) 4982 ;; 4983 esac 4984 ;; 4985 sunos4*) 4986 case $cc_basename in 4987 CC*) 4988 # Sun C++ 4.x 4989 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4990 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4991 ;; 4992 lcc*) 4993 # Lucid 4994 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4995 ;; 4996 *) 4997 ;; 4998 esac 4999 ;; 5000 tandem*) 5001 case $cc_basename in 5002 NCC*) 5003 # NonStop-UX NCC 3.20 5004 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5005 ;; 5006 *) 5007 ;; 5008 esac 5009 ;; 5010 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5011 case $cc_basename in 5012 CC*) 5013 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5014 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5015 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5016 ;; 5017 esac 5018 ;; 5019 vxworks*) 5020 ;; 5021 *) 5022 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5023 ;; 5024 esac 5025 fi 5026], 5027[ 5028 if test "$GCC" = yes; then 5029 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5030 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5031 5032 case $host_os in 5033 aix*) 5034 # All AIX code is PIC. 5035 if test "$host_cpu" = ia64; then 5036 # AIX 5 now supports IA64 processor 5037 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5038 fi 5039 ;; 5040 5041 amigaos*) 5042 # FIXME: we need at least 68020 code to build shared libraries, but 5043 # adding the `-m68020' flag to GCC prevents building anything better, 5044 # like `-m68040'. 5045 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 5046 ;; 5047 5048 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5049 # PIC is the default for these OSes. 5050 ;; 5051 5052 mingw* | cygwin* | pw32* | os2*) 5053 # This hack is so that the source file can tell whether it is being 5054 # built for inclusion in a dll (and should export symbols for example). 5055 # Although the cygwin gcc ignores -fPIC, still need this for old-style 5056 # (--disable-auto-import) libraries 5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5058 ;; 5059 5060 darwin* | rhapsody*) 5061 # PIC is the default on this platform 5062 # Common symbols not allowed in MH_DYLIB files 5063 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5064 ;; 5065 5066 interix[[3-9]]*) 5067 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 5068 # Instead, we relocate shared libraries at runtime. 5069 ;; 5070 5071 msdosdjgpp*) 5072 # Just because we use GCC doesn't mean we suddenly get shared libraries 5073 # on systems that don't support them. 5074 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5075 enable_shared=no 5076 ;; 5077 5078 sysv4*MP*) 5079 if test -d /usr/nec; then 5080 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5081 fi 5082 ;; 5083 5084 hpux*) 5085 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5086 # not for PA HP-UX. 5087 case $host_cpu in 5088 hppa*64*|ia64*) 5089 # +Z the default 5090 ;; 5091 *) 5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5093 ;; 5094 esac 5095 ;; 5096 5097 *) 5098 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5099 ;; 5100 esac 5101 else 5102 # PORTME Check for flag to pass linker flags through the system compiler. 5103 case $host_os in 5104 aix*) 5105 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5106 if test "$host_cpu" = ia64; then 5107 # AIX 5 now supports IA64 processor 5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5109 else 5110 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5111 fi 5112 ;; 5113 darwin*) 5114 # PIC is the default on this platform 5115 # Common symbols not allowed in MH_DYLIB files 5116 case $cc_basename in 5117 xlc*) 5118 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5119 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5120 ;; 5121 esac 5122 ;; 5123 5124 mingw* | cygwin* | pw32* | os2*) 5125 # This hack is so that the source file can tell whether it is being 5126 # built for inclusion in a dll (and should export symbols for example). 5127 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5128 ;; 5129 5130 hpux9* | hpux10* | hpux11*) 5131 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5132 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5133 # not for PA HP-UX. 5134 case $host_cpu in 5135 hppa*64*|ia64*) 5136 # +Z the default 5137 ;; 5138 *) 5139 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5140 ;; 5141 esac 5142 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5143 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 5144 ;; 5145 5146 irix5* | irix6* | nonstopux*) 5147 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5148 # PIC (with -KPIC) is the default. 5149 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5150 ;; 5151 5152 newsos6) 5153 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5154 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5155 ;; 5156 5157 linux* | k*bsd*-gnu) 5158 case $cc_basename in 5159 # old Intel for x86_64 which still supported -KPIC. 5160 ecc*) 5161 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5162 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5163 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5164 ;; 5165 # icc used to be incompatible with GCC. 5166 # ICC 10 doesn't accept -KPIC any more. 5167 icc*) 5168 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5169 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5170 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5171 ;; 5172 pgcc* | pgf77* | pgf90* | pgf95*) 5173 # Portland Group compilers (*not* the Pentium gcc compiler, 5174 # which looks to be a dead project) 5175 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5176 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5177 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5178 ;; 5179 ccc*) 5180 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5181 # All Alpha code is PIC. 5182 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5183 ;; 5184 *) 5185 case `$CC -V 2>&1 | sed 5q` in 5186 *Sun\ C*) 5187 # Sun C 5.9 5188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5189 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5190 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5191 ;; 5192 *Sun\ F*) 5193 # Sun Fortran 8.3 passes all unrecognized flags to the linker 5194 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5195 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5196 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 5197 ;; 5198 esac 5199 ;; 5200 esac 5201 ;; 5202 5203 osf3* | osf4* | osf5*) 5204 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5205 # All OSF/1 code is PIC. 5206 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5207 ;; 5208 5209 rdos*) 5210 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5211 ;; 5212 5213 solaris*) 5214 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5215 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5216 case $cc_basename in 5217 f77* | f90* | f95*) 5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5219 *) 5220 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5221 esac 5222 ;; 5223 5224 sunos4*) 5225 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5226 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5227 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5228 ;; 5229 5230 sysv4 | sysv4.2uw2* | sysv4.3*) 5231 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5234 ;; 5235 5236 sysv4*MP*) 5237 if test -d /usr/nec ;then 5238 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 5239 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5240 fi 5241 ;; 5242 5243 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 5244 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5245 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5246 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5247 ;; 5248 5249 unicos*) 5250 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5251 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5252 ;; 5253 5254 uts4*) 5255 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5256 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5257 ;; 5258 5259 *) 5260 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5261 ;; 5262 esac 5263 fi 5264]) 5265AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 5266 5267# 5268# Check to make sure the PIC flag actually works. 5269# 5270if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 5271 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 5272 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), 5273 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 5274 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 5275 "" | " "*) ;; 5276 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 5277 esac], 5278 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5279 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 5280fi 5281case $host_os in 5282 # For platforms which do not support PIC, -DPIC is meaningless: 5283 *djgpp*) 5284 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5285 ;; 5286 *) 5287 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 5288 ;; 5289esac 5290 5291# 5292# Check to make sure the static flag actually works. 5293# 5294wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 5295AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5296 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), 5297 $lt_tmp_static_flag, 5298 [], 5299 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 5300]) 5301 5302 5303# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 5304# ------------------------------------ 5305# See if the linker supports building shared libraries. 5306AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 5307[AC_REQUIRE([LT_AC_PROG_SED])dnl 5308AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 5309ifelse([$1],[CXX],[ 5310 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5311 case $host_os in 5312 aix[[4-9]]*) 5313 # If we're using GNU nm, then we don't want the "-C" option. 5314 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5315 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5316 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5317 else 5318 _LT_AC_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' 5319 fi 5320 ;; 5321 pw32*) 5322 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 5323 ;; 5324 cygwin* | mingw*) 5325 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5326 ;; 5327 *) 5328 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5329 ;; 5330 esac 5331 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5332],[ 5333 runpath_var= 5334 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 5335 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 5336 _LT_AC_TAGVAR(archive_cmds, $1)= 5337 _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 5338 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 5339 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 5340 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5341 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5342 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 5343 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 5345 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5346 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5347 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 5348 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5349 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 5350 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 5351 _LT_AC_TAGVAR(module_cmds, $1)= 5352 _LT_AC_TAGVAR(module_expsym_cmds, $1)= 5353 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5354 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 5355 # include_expsyms should be a list of space-separated symbols to be *always* 5356 # included in the symbol list 5357 _LT_AC_TAGVAR(include_expsyms, $1)= 5358 # exclude_expsyms can be an extended regexp of symbols to exclude 5359 # it will be wrapped by ` (' and `)$', so one must not match beginning or 5360 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5361 # as well as any symbol that contains `d'. 5362 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 5363 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5364 # platforms (ab)use it in PIC code, but their linkers get confused if 5365 # the symbol is explicitly referenced. Since portable code cannot 5366 # rely on this symbol name, it's probably fine to never include it in 5367 # preloaded symbol tables. 5368 # Exclude shared library initialization/finalization symbols. 5369dnl Note also adjust exclude_expsyms for C++ above. 5370 extract_expsyms_cmds= 5371 # Just being paranoid about ensuring that cc_basename is set. 5372 _LT_CC_BASENAME([$compiler]) 5373 case $host_os in 5374 cygwin* | mingw* | pw32*) 5375 # FIXME: the MSVC++ port hasn't been tested in a loooong time 5376 # When not using gcc, we currently assume that we are using 5377 # Microsoft Visual C++. 5378 if test "$GCC" != yes; then 5379 with_gnu_ld=no 5380 fi 5381 ;; 5382 interix*) 5383 # we just hope/assume this is gcc and not c89 (= MSVC++) 5384 with_gnu_ld=yes 5385 ;; 5386 openbsd*) 5387 with_gnu_ld=no 5388 ;; 5389 esac 5390 5391 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 5392 if test "$with_gnu_ld" = yes; then 5393 # If archive_cmds runs LD, not CC, wlarc should be empty 5394 wlarc='${wl}' 5395 5396 # Set some defaults for GNU ld with shared library support. These 5397 # are reset later if shared libraries are not supported. Putting them 5398 # here allows them to be overridden if necessary. 5399 runpath_var=LD_RUN_PATH 5400 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5401 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5402 # ancient GNU ld didn't support --whole-archive et. al. 5403 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5404 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5405 else 5406 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5407 fi 5408 supports_anon_versioning=no 5409 case `$LD -v 2>/dev/null` in 5410 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5411 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5412 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5413 *\ 2.11.*) ;; # other 2.11 versions 5414 *) supports_anon_versioning=yes ;; 5415 esac 5416 5417 # See if GNU ld supports shared libraries. 5418 case $host_os in 5419 aix[[3-9]]*) 5420 # On AIX/PPC, the GNU linker is very broken 5421 if test "$host_cpu" != ia64; then 5422 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5423 cat <<EOF 1>&2 5424 5425*** Warning: the GNU linker, at least up to release 2.9.1, is reported 5426*** to be unable to reliably create shared libraries on AIX. 5427*** Therefore, libtool is disabling shared libraries support. If you 5428*** really care for shared libraries, you may want to modify your PATH 5429*** so that a non-GNU linker is found, and then restart. 5430 5431EOF 5432 fi 5433 ;; 5434 5435 amigaos*) 5436 _LT_AC_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)' 5437 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5438 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5439 5440 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 5441 # that the semantics of dynamic libraries on AmigaOS, at least up 5442 # to version 4, is to share data among multiple programs linked 5443 # with the same dynamic library. Since this doesn't match the 5444 # behavior of shared libraries on other platforms, we can't use 5445 # them. 5446 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5447 ;; 5448 5449 beos*) 5450 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5451 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5452 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 5453 # support --undefined. This deserves some investigation. FIXME 5454 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5455 else 5456 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5457 fi 5458 ;; 5459 5460 cygwin* | mingw* | pw32*) 5461 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 5462 # as there is no search path for DLLs. 5463 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5464 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5465 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5466 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5467 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 5468 5469 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 5470 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5471 # If the export-symbols file already is a .def file (1st line 5472 # is EXPORTS), use it as is; otherwise, prepend... 5473 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 5474 cp $export_symbols $output_objdir/$soname.def; 5475 else 5476 echo EXPORTS > $output_objdir/$soname.def; 5477 cat $export_symbols >> $output_objdir/$soname.def; 5478 fi~ 5479 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 5480 else 5481 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5482 fi 5483 ;; 5484 5485 interix[[3-9]]*) 5486 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5487 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5488 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5489 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5490 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 5491 # Instead, shared libraries are loaded at an image base (0x10000000 by 5492 # default) and relocated if they conflict, which is a slow very memory 5493 # consuming and fragmenting process. To avoid this, we pick a random, 5494 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 5495 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 5496 _LT_AC_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' 5497 _LT_AC_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' 5498 ;; 5499 5500 gnu* | linux* | k*bsd*-gnu) 5501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5502 tmp_addflag= 5503 case $cc_basename,$host_cpu in 5504 pgcc*) # Portland Group C compiler 5505 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5506 tmp_addflag=' $pic_flag' 5507 ;; 5508 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5509 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5510 tmp_addflag=' $pic_flag -Mnomain' ;; 5511 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5512 tmp_addflag=' -i_dynamic' ;; 5513 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5514 tmp_addflag=' -i_dynamic -nofor_main' ;; 5515 ifc* | ifort*) # Intel Fortran compiler 5516 tmp_addflag=' -nofor_main' ;; 5517 esac 5518 case `$CC -V 2>&1 | sed 5q` in 5519 *Sun\ C*) # Sun C 5.9 5520 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 5521 tmp_sharedflag='-G' ;; 5522 *Sun\ F*) # Sun Fortran 8.3 5523 tmp_sharedflag='-G' ;; 5524 *) 5525 tmp_sharedflag='-shared' ;; 5526 esac 5527 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5528 5529 if test $supports_anon_versioning = yes; then 5530 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5532 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5534 fi 5535 else 5536 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5537 fi 5538 ;; 5539 5540 netbsd*) 5541 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5542 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 5543 wlarc= 5544 else 5545 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5546 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5547 fi 5548 ;; 5549 5550 solaris*) 5551 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 5552 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5553 cat <<EOF 1>&2 5554 5555*** Warning: The releases 2.8.* of the GNU linker cannot reliably 5556*** create shared libraries on Solaris systems. Therefore, libtool 5557*** is disabling shared libraries support. We urge you to upgrade GNU 5558*** binutils to release 2.9.1 or newer. Another option is to modify 5559*** your PATH or compiler configuration so that the native linker is 5560*** used, and then restart. 5561 5562EOF 5563 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5564 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5565 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5566 else 5567 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5568 fi 5569 ;; 5570 5571 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 5572 case `$LD -v 2>&1` in 5573 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 5574 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5575 cat <<_LT_EOF 1>&2 5576 5577*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 5578*** reliably create shared libraries on SCO systems. Therefore, libtool 5579*** is disabling shared libraries support. We urge you to upgrade GNU 5580*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 5581*** your PATH or compiler configuration so that the native linker is 5582*** used, and then restart. 5583 5584_LT_EOF 5585 ;; 5586 *) 5587 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5588 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 5589 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 5590 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 5591 else 5592 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5593 fi 5594 ;; 5595 esac 5596 ;; 5597 5598 sunos4*) 5599 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5600 wlarc= 5601 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5602 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5603 ;; 5604 5605 *) 5606 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5607 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5608 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 5609 else 5610 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5611 fi 5612 ;; 5613 esac 5614 5615 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 5616 runpath_var= 5617 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5618 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5619 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5620 fi 5621 else 5622 # PORTME fill in a description of your system's linker (not GNU ld) 5623 case $host_os in 5624 aix3*) 5625 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5626 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5627 _LT_AC_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' 5628 # Note: this linker hardcodes the directories in LIBPATH if there 5629 # are no directories specified by -L. 5630 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5631 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 5632 # Neither direct hardcoding nor static linking is supported with a 5633 # broken collect2. 5634 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5635 fi 5636 ;; 5637 5638 aix[[4-9]]*) 5639 if test "$host_cpu" = ia64; then 5640 # On IA64, the linker does run time linking by default, so we don't 5641 # have to do anything special. 5642 aix_use_runtimelinking=no 5643 exp_sym_flag='-Bexport' 5644 no_entry_flag="" 5645 else 5646 # If we're using GNU nm, then we don't want the "-C" option. 5647 # -C means demangle to AIX nm, but means don't demangle with GNU nm 5648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 5649 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 5650 else 5651 _LT_AC_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' 5652 fi 5653 aix_use_runtimelinking=no 5654 5655 # Test if we are trying to use run time linking or normal 5656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 5657 # need to do runtime linking. 5658 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 5659 for ld_flag in $LDFLAGS; do 5660 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 5661 aix_use_runtimelinking=yes 5662 break 5663 fi 5664 done 5665 ;; 5666 esac 5667 5668 exp_sym_flag='-bexport' 5669 no_entry_flag='-bnoentry' 5670 fi 5671 5672 # When large executables or shared objects are built, AIX ld can 5673 # have problems creating the table of contents. If linking a library 5674 # or program results in "error TOC overflow" add -mminimal-toc to 5675 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 5676 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 5677 5678 _LT_AC_TAGVAR(archive_cmds, $1)='' 5679 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5680 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 5681 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5682 5683 if test "$GCC" = yes; then 5684 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5685 # We only want to do this on AIX 4.2 and lower, the check 5686 # below for broken collect2 doesn't work under 4.3+ 5687 collect2name=`${CC} -print-prog-name=collect2` 5688 if test -f "$collect2name" && \ 5689 strings "$collect2name" | grep resolve_lib_name >/dev/null 5690 then 5691 # We have reworked collect2 5692 : 5693 else 5694 # We have old collect2 5695 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 5696 # It fails to find uninstalled libraries when the uninstalled 5697 # path is not listed in the libpath. Setting hardcode_minus_L 5698 # to unsupported forces relinking 5699 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5700 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5701 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 5702 fi 5703 ;; 5704 esac 5705 shared_flag='-shared' 5706 if test "$aix_use_runtimelinking" = yes; then 5707 shared_flag="$shared_flag "'${wl}-G' 5708 fi 5709 else 5710 # not using gcc 5711 if test "$host_cpu" = ia64; then 5712 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 5713 # chokes on -Wl,-G. The following line is correct: 5714 shared_flag='-G' 5715 else 5716 if test "$aix_use_runtimelinking" = yes; then 5717 shared_flag='${wl}-G' 5718 else 5719 shared_flag='${wl}-bM:SRE' 5720 fi 5721 fi 5722 fi 5723 5724 # It seems that -bexpall does not export symbols beginning with 5725 # underscore (_), so it is better to generate a list of symbols to export. 5726 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 5727 if test "$aix_use_runtimelinking" = yes; then 5728 # Warning - without using the other runtime loading flags (-brtl), 5729 # -berok will link without error, but may produce a broken library. 5730 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 5731 # Determine the default libpath from the value encoded in an empty executable. 5732 _LT_AC_SYS_LIBPATH_AIX 5733 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5734 _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 5735 else 5736 if test "$host_cpu" = ia64; then 5737 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 5738 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 5739 _LT_AC_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" 5740 else 5741 # Determine the default libpath from the value encoded in an empty executable. 5742 _LT_AC_SYS_LIBPATH_AIX 5743 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 5744 # Warning - without using the other run time loading flags, 5745 # -berok will link without error, but may produce a broken library. 5746 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 5747 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 5748 # Exported symbols can be pulled into shared objects from archives 5749 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 5750 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5751 # This is similar to how AIX traditionally builds its shared libraries. 5752 _LT_AC_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' 5753 fi 5754 fi 5755 ;; 5756 5757 amigaos*) 5758 _LT_AC_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)' 5759 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5760 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5761 # see comment about different semantics on the GNU ld section 5762 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5763 ;; 5764 5765 bsdi[[45]]*) 5766 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5767 ;; 5768 5769 cygwin* | mingw* | pw32*) 5770 # When not using gcc, we currently assume that we are using 5771 # Microsoft Visual C++. 5772 # hardcode_libdir_flag_spec is actually meaningless, as there is 5773 # no search path for DLLs. 5774 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 5775 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 5776 # Tell ltmain to make .lib files, not .a files. 5777 libext=lib 5778 # Tell ltmain to make .dll files, not .so files. 5779 shrext_cmds=".dll" 5780 # FIXME: Setting linknames here is a bad hack. 5781 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 5782 # The linker will automatically build a .lib file if we build a DLL. 5783 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 5784 # FIXME: Should let the user specify the lib program. 5785 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 5786 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5787 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5788 ;; 5789 5790 darwin* | rhapsody*) 5791 case $host_os in 5792 rhapsody* | darwin1.[[012]]) 5793 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 5794 ;; 5795 *) # Darwin 1.3 on 5796 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5797 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5798 else 5799 case ${MACOSX_DEPLOYMENT_TARGET} in 5800 10.[[012]]) 5801 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5802 ;; 5803 *) 5804 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 5805 ;; 5806 esac 5807 fi 5808 ;; 5809 esac 5810 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5811 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5812 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5813 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5814 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 5815 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5816 if test "$GCC" = yes ; then 5817 output_verbose_link_cmd='echo' 5818 _LT_AC_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}" 5819 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 5820 _LT_AC_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}" 5821 _LT_AC_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}" 5822 else 5823 case $cc_basename in 5824 xlc*) 5825 output_verbose_link_cmd='echo' 5826 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 5827 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 5829 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5830 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 5831 ;; 5832 *) 5833 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5834 ;; 5835 esac 5836 fi 5837 ;; 5838 5839 dgux*) 5840 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5841 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 5842 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5843 ;; 5844 5845 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 5846 # support. Future versions do this automatically, but an explicit c++rt0.o 5847 # does not break anything, and helps significantly (at the cost of a little 5848 # extra space). 5849 freebsd2.2*) 5850 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 5851 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5852 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5853 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5854 ;; 5855 5856 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 5857 freebsd2*) 5858 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5859 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5860 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5861 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5862 ;; 5863 5864 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5865 freebsd* | dragonfly*) 5866 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5867 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5868 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5869 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5870 ;; 5871 5872 hpux9*) 5873 if test "$GCC" = yes; then 5874 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 5875 else 5876 _LT_AC_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' 5877 fi 5878 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5879 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5880 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5881 5882 # hardcode_minus_L: Not really in the search PATH, 5883 # but as the default location of the library. 5884 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5885 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5886 ;; 5887 5888 hpux10*) 5889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5890 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5891 else 5892 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 5893 fi 5894 if test "$with_gnu_ld" = no; then 5895 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5896 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5897 5898 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5899 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5900 5901 # hardcode_minus_L: Not really in the search PATH, 5902 # but as the default location of the library. 5903 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5904 fi 5905 ;; 5906 5907 hpux11*) 5908 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5909 case $host_cpu in 5910 hppa*64*) 5911 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5912 ;; 5913 ia64*) 5914 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5915 ;; 5916 *) 5917 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5918 ;; 5919 esac 5920 else 5921 case $host_cpu in 5922 hppa*64*) 5923 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5924 ;; 5925 ia64*) 5926 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 5927 ;; 5928 *) 5929 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 5930 ;; 5931 esac 5932 fi 5933 if test "$with_gnu_ld" = no; then 5934 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 5935 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5936 5937 case $host_cpu in 5938 hppa*64*|ia64*) 5939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 5940 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5941 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5942 ;; 5943 *) 5944 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5945 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5946 5947 # hardcode_minus_L: Not really in the search PATH, 5948 # but as the default location of the library. 5949 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 5950 ;; 5951 esac 5952 fi 5953 ;; 5954 5955 irix5* | irix6* | nonstopux*) 5956 if test "$GCC" = yes; then 5957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 5958 else 5959 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 5960 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 5961 fi 5962 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5963 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5964 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5965 ;; 5966 5967 netbsd*) 5968 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5969 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 5970 else 5971 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 5972 fi 5973 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 5974 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5975 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5976 ;; 5977 5978 newsos6) 5979 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 5980 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5981 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 5982 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 5983 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5984 ;; 5985 5986 openbsd*) 5987 if test -f /usr/libexec/ld.so; then 5988 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 5989 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 5990 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5991 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5992 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5993 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5994 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 5995 else 5996 case $host_os in 5997 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 5998 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 5999 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6000 ;; 6001 *) 6002 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6003 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6004 ;; 6005 esac 6006 fi 6007 else 6008 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6009 fi 6010 ;; 6011 6012 os2*) 6013 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6014 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6015 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6016 _LT_AC_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' 6017 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6018 ;; 6019 6020 osf3*) 6021 if test "$GCC" = yes; then 6022 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6023 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6024 else 6025 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6026 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6027 fi 6028 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6029 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6030 ;; 6031 6032 osf4* | osf5*) # as osf3* with the addition of -msym flag 6033 if test "$GCC" = yes; then 6034 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 6035 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6036 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6037 else 6038 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6039 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6040 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6041 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 6042 6043 # Both c and cxx compiler support -rpath directly 6044 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6045 fi 6046 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6047 ;; 6048 6049 solaris*) 6050 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6051 if test "$GCC" = yes; then 6052 wlarc='${wl}' 6053 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6054 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6055 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6056 else 6057 wlarc='' 6058 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6059 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6061 fi 6062 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6063 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6064 case $host_os in 6065 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6066 *) 6067 # The compiler driver will combine and reorder linker options, 6068 # but understands `-z linker_flag'. GCC discards it without `$wl', 6069 # but is careful enough not to reorder. 6070 # Supported since Solaris 2.6 (maybe 2.5.1?) 6071 if test "$GCC" = yes; then 6072 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 6073 else 6074 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 6075 fi 6076 ;; 6077 esac 6078 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6079 ;; 6080 6081 sunos4*) 6082 if test "x$host_vendor" = xsequent; then 6083 # Use $CC to link under sequent, because it throws in some extra .o 6084 # files that make .init and .fini sections work. 6085 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6086 else 6087 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6088 fi 6089 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6090 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6091 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6092 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6093 ;; 6094 6095 sysv4) 6096 case $host_vendor in 6097 sni) 6098 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6099 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 6100 ;; 6101 siemens) 6102 ## LD is ld it makes a PLAMLIB 6103 ## CC just makes a GrossModule. 6104 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6105 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 6106 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6107 ;; 6108 motorola) 6109 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6110 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 6111 ;; 6112 esac 6113 runpath_var='LD_RUN_PATH' 6114 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6115 ;; 6116 6117 sysv4.3*) 6118 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6119 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6120 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 6121 ;; 6122 6123 sysv4*MP*) 6124 if test -d /usr/nec; then 6125 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6126 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6127 runpath_var=LD_RUN_PATH 6128 hardcode_runpath_var=yes 6129 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6130 fi 6131 ;; 6132 6133 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 6134 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6135 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6136 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6137 runpath_var='LD_RUN_PATH' 6138 6139 if test "$GCC" = yes; then 6140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6141 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6142 else 6143 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6144 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 6145 fi 6146 ;; 6147 6148 sysv5* | sco3.2v5* | sco5v6*) 6149 # Note: We can NOT use -z defs as we might desire, because we do not 6150 # link with -lc, and that would cause any symbols used from libc to 6151 # always be unresolved, which means just about no library would 6152 # ever link correctly. If we're not using GNU ld we use -z text 6153 # though, which does catch some bad symbols but isn't as heavy-handed 6154 # as -z defs. 6155 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 6156 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 6157 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6158 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6159 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 6160 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6161 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6162 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 6163 runpath_var='LD_RUN_PATH' 6164 6165 if test "$GCC" = yes; then 6166 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6167 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6168 else 6169 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6170 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 6171 fi 6172 ;; 6173 6174 uts4*) 6175 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6176 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6177 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6178 ;; 6179 6180 *) 6181 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6182 ;; 6183 esac 6184 fi 6185]) 6186AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 6187test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 6188 6189# 6190# Do we need to explicitly link libc? 6191# 6192case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 6193x|xyes) 6194 # Assume -lc should be added 6195 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6196 6197 if test "$enable_shared" = yes && test "$GCC" = yes; then 6198 case $_LT_AC_TAGVAR(archive_cmds, $1) in 6199 *'~'*) 6200 # FIXME: we may have to deal with multi-command sequences. 6201 ;; 6202 '$CC '*) 6203 # Test whether the compiler implicitly links with -lc since on some 6204 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6205 # to ld, don't add -lc before -lgcc. 6206 AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 6207 $rm conftest* 6208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6209 6210 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 6211 soname=conftest 6212 lib=conftest 6213 libobjs=conftest.$ac_objext 6214 deplibs= 6215 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 6216 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 6217 compiler_flags=-v 6218 linker_flags=-v 6219 verstring= 6220 output_objdir=. 6221 libname=conftest 6222 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 6223 _LT_AC_TAGVAR(allow_undefined_flag, $1)= 6224 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 6225 then 6226 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6227 else 6228 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6229 fi 6230 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 6231 else 6232 cat conftest.err 1>&5 6233 fi 6234 $rm conftest* 6235 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 6236 ;; 6237 esac 6238 fi 6239 ;; 6240esac 6241])# AC_LIBTOOL_PROG_LD_SHLIBS 6242 6243 6244# _LT_AC_FILE_LTDLL_C 6245# ------------------- 6246# Be careful that the start marker always follows a newline. 6247AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 6248# /* ltdll.c starts here */ 6249# #define WIN32_LEAN_AND_MEAN 6250# #include <windows.h> 6251# #undef WIN32_LEAN_AND_MEAN 6252# #include <stdio.h> 6253# 6254# #ifndef __CYGWIN__ 6255# # ifdef __CYGWIN32__ 6256# # define __CYGWIN__ __CYGWIN32__ 6257# # endif 6258# #endif 6259# 6260# #ifdef __cplusplus 6261# extern "C" { 6262# #endif 6263# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 6264# #ifdef __cplusplus 6265# } 6266# #endif 6267# 6268# #ifdef __CYGWIN__ 6269# #include <cygwin/cygwin_dll.h> 6270# DECLARE_CYGWIN_DLL( DllMain ); 6271# #endif 6272# HINSTANCE __hDllInstance_base; 6273# 6274# BOOL APIENTRY 6275# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 6276# { 6277# __hDllInstance_base = hInst; 6278# return TRUE; 6279# } 6280# /* ltdll.c ends here */ 6281])# _LT_AC_FILE_LTDLL_C 6282 6283 6284# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 6285# --------------------------------- 6286AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 6287 6288 6289# old names 6290AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 6291AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 6292AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 6293AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 6294AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 6295AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 6296AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 6297 6298# This is just to silence aclocal about the macro not being used 6299ifelse([AC_DISABLE_FAST_INSTALL]) 6300 6301############################################################ 6302# NOTE: This macro has been submitted for inclusion into # 6303# GNU Autoconf as AC_PROG_SED. When it is available in # 6304# a released version of Autoconf we should remove this # 6305# macro and use it instead. # 6306############################################################ 6307# LT_AC_PROG_SED 6308# -------------- 6309# Check for a fully-functional sed program, that truncates 6310# as few characters as possible. Prefer GNU sed if found. 6311AC_DEFUN([LT_AC_PROG_SED], 6312[AC_MSG_CHECKING([for a sed that does not truncate output]) 6313AC_CACHE_VAL(lt_cv_path_SED, 6314[# Loop through the user's path and test for sed and gsed. 6315# Then use that list of sed's as ones to test for truncation. 6316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6317for as_dir in $PATH 6318do 6319 IFS=$as_save_IFS 6320 test -z "$as_dir" && as_dir=. 6321 for lt_ac_prog in sed gsed; do 6322 for ac_exec_ext in '' $ac_executable_extensions; do 6323 if test -f "$as_dir/$lt_ac_prog$ac_exec_ext"; then 6324 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 6325 fi 6326 done 6327 done 6328done 6329lt_ac_max=0 6330lt_ac_count=0 6331# Add /usr/xpg4/bin/sed as it is typically found on Solaris 6332# along with /bin/sed that truncates output. 6333for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 6334 test ! -f $lt_ac_sed && continue 6335 cat /dev/null > conftest.in 6336 lt_ac_count=0 6337 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 6338 # Check for GNU sed and select it if it is found. 6339 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 6340 lt_cv_path_SED=$lt_ac_sed 6341 break 6342 fi 6343 while true; do 6344 cat conftest.in conftest.in >conftest.tmp 6345 mv conftest.tmp conftest.in 6346 cp conftest.in conftest.nl 6347 echo >>conftest.nl 6348 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 6349 cmp -s conftest.out conftest.nl || break 6350 # 10000 chars as input seems more than enough 6351 test $lt_ac_count -gt 10 && break 6352 lt_ac_count=`expr $lt_ac_count + 1` 6353 if test $lt_ac_count -gt $lt_ac_max; then 6354 lt_ac_max=$lt_ac_count 6355 lt_cv_path_SED=$lt_ac_sed 6356 fi 6357 done 6358done 6359]) 6360SED=$lt_cv_path_SED 6361AC_MSG_RESULT([$SED]) 6362]) 6363