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