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