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