ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libspf/aclocal.m4
(Generate patch)

Comparing libspf/aclocal.m4 (file contents):
Revision 1.1 by root, Tue Nov 13 00:51:23 2007 UTC vs.
Revision 1.2 by root, Thu Oct 30 03:09:36 2008 UTC

834[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])]) 834[AC_FOREACH([_AM_File], [$1], [_AM_CONFIG_HEADER(_AM_File, [$2], [$3])])
835])# AM_CONFIG_HEADER 835])# AM_CONFIG_HEADER
836 836
837# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 837# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
838 838
839# serial 47 AC_PROG_LIBTOOL 839# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
840 840
841 841
842# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 842# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
843# ----------------------------------------------------------- 843# -----------------------------------------------------------
844# If this macro is not defined by Autoconf, define it here. 844# If this macro is not defined by Autoconf, define it here.
944 ;; 944 ;;
945esac 945esac
946 946
947# Sed substitution that helps us do robust quoting. It backslashifies 947# Sed substitution that helps us do robust quoting. It backslashifies
948# metacharacters that are still active within double-quoted strings. 948# metacharacters that are still active within double-quoted strings.
949Xsed='sed -e s/^X//' 949Xsed='sed -e 1s/^X//'
950[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 950[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
951 951
952# Same as above, but do not quote variable references. 952# Same as above, but do not quote variable references.
953[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 953[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
954 954
964 964
965# Global variables: 965# Global variables:
966default_ofile=libtool 966default_ofile=libtool
967can_build_shared=yes 967can_build_shared=yes
968 968
969# All known linkers require a `.a' archive for static linking (except M$VC, 969# All known linkers require a `.a' archive for static linking (except MSVC,
970# which needs '.lib'). 970# which needs '.lib').
971libext=a 971libext=a
972ltmain="$ac_aux_dir/ltmain.sh" 972ltmain="$ac_aux_dir/ltmain.sh"
973ofile="$default_ofile" 973ofile="$default_ofile"
974with_gnu_ld="$lt_cv_prog_gnu_ld" 974with_gnu_ld="$lt_cv_prog_gnu_ld"
984test -z "$AR" && AR=ar 984test -z "$AR" && AR=ar
985test -z "$AR_FLAGS" && AR_FLAGS=cru 985test -z "$AR_FLAGS" && AR_FLAGS=cru
986test -z "$AS" && AS=as 986test -z "$AS" && AS=as
987test -z "$CC" && CC=cc 987test -z "$CC" && CC=cc
988test -z "$LTCC" && LTCC=$CC 988test -z "$LTCC" && LTCC=$CC
989test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
989test -z "$DLLTOOL" && DLLTOOL=dlltool 990test -z "$DLLTOOL" && DLLTOOL=dlltool
990test -z "$LD" && LD=ld 991test -z "$LD" && LD=ld
991test -z "$LN_S" && LN_S="ln -s" 992test -z "$LN_S" && LN_S="ln -s"
992test -z "$MAGIC_CMD" && MAGIC_CMD=file 993test -z "$MAGIC_CMD" && MAGIC_CMD=file
993test -z "$NM" && NM=nm 994test -z "$NM" && NM=nm
1003old_postuninstall_cmds= 1004old_postuninstall_cmds=
1004 1005
1005if test -n "$RANLIB"; then 1006if test -n "$RANLIB"; then
1006 case $host_os in 1007 case $host_os in
1007 openbsd*) 1008 openbsd*)
1008 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 1009 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1009 ;; 1010 ;;
1010 *) 1011 *)
1011 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 1012 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1012 ;; 1013 ;;
1013 esac 1014 esac
1014 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1015 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1015fi 1016fi
1017
1018_LT_CC_BASENAME([$compiler])
1016 1019
1017# Only perform the check for file, if the check method requires it 1020# Only perform the check for file, if the check method requires it
1018case $deplibs_check_method in 1021case $deplibs_check_method in
1019file_magic*) 1022file_magic*)
1020 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 1023 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1052[AC_REQUIRE([AC_PROG_CC])dnl 1055[AC_REQUIRE([AC_PROG_CC])dnl
1053 1056
1054# If no C compiler was specified, use CC. 1057# If no C compiler was specified, use CC.
1055LTCC=${LTCC-"$CC"} 1058LTCC=${LTCC-"$CC"}
1056 1059
1060# If no C compiler flags were specified, use CFLAGS.
1061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1062
1057# Allow CC to be a program name with arguments. 1063# Allow CC to be a program name with arguments.
1058compiler=$CC 1064compiler=$CC
1059])# _LT_AC_SYS_COMPILER 1065])# _LT_AC_SYS_COMPILER
1066
1067
1068# _LT_CC_BASENAME(CC)
1069# -------------------
1070# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1071AC_DEFUN([_LT_CC_BASENAME],
1072[for cc_temp in $1""; do
1073 case $cc_temp in
1074 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1075 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1076 \-*) ;;
1077 *) break;;
1078 esac
1079done
1080cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1081])
1082
1083
1084# _LT_COMPILER_BOILERPLATE
1085# ------------------------
1086# Check for compiler boilerplate output or warnings with
1087# the simple compiler test code.
1088AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1089[ac_outfile=conftest.$ac_objext
1090printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1091eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1092_lt_compiler_boilerplate=`cat conftest.err`
1093$rm conftest*
1094])# _LT_COMPILER_BOILERPLATE
1095
1096
1097# _LT_LINKER_BOILERPLATE
1098# ----------------------
1099# Check for linker boilerplate output or warnings with
1100# the simple link test code.
1101AC_DEFUN([_LT_LINKER_BOILERPLATE],
1102[ac_outfile=conftest.$ac_objext
1103printf "$lt_simple_link_test_code" >conftest.$ac_ext
1104eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1105_lt_linker_boilerplate=`cat conftest.err`
1106$rm conftest*
1107])# _LT_LINKER_BOILERPLATE
1060 1108
1061 1109
1062# _LT_AC_SYS_LIBPATH_AIX 1110# _LT_AC_SYS_LIBPATH_AIX
1063# ---------------------- 1111# ----------------------
1064# Links a minimal program and checks the executable 1112# Links a minimal program and checks the executable
1129 exit 0 1177 exit 0
1130fi 1178fi
1131 1179
1132# The HP-UX ksh and POSIX shell print the target directory to stdout 1180# The HP-UX ksh and POSIX shell print the target directory to stdout
1133# if CDPATH is set. 1181# if CDPATH is set.
1134if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 1182(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1135 1183
1136if test -z "$ECHO"; then 1184if test -z "$ECHO"; then
1137if test "X${echo_test_string+set}" != Xset; then 1185if test "X${echo_test_string+set}" != Xset; then
1138# find a string as large as possible, as long as the shell can cope with it 1186# find a string as large as possible, as long as the shell can cope with it
1139 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 1187 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1140 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 1188 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1141 if (echo_test_string="`eval $cmd`") 2>/dev/null && 1189 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1142 echo_test_string="`eval $cmd`" && 1190 echo_test_string=`eval $cmd` &&
1143 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 1191 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1144 then 1192 then
1145 break 1193 break
1146 fi 1194 fi
1147 done 1195 done
1306 1354
1307x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 1355x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1308 # Find out which ABI we are using. 1356 # Find out which ABI we are using.
1309 echo 'int i;' > conftest.$ac_ext 1357 echo 'int i;' > conftest.$ac_ext
1310 if AC_TRY_EVAL(ac_compile); then 1358 if AC_TRY_EVAL(ac_compile); then
1311 case "`/usr/bin/file conftest.o`" in 1359 case `/usr/bin/file conftest.o` in
1312 *32-bit*) 1360 *32-bit*)
1313 case $host in 1361 case $host in
1314 x86_64-*linux*) 1362 x86_64-*linux*)
1315 LD="${LD-ld} -m elf_i386" 1363 LD="${LD-ld} -m elf_i386"
1316 ;; 1364 ;;
1357 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1358 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1359 CFLAGS="$SAVE_CFLAGS" 1407 CFLAGS="$SAVE_CFLAGS"
1360 fi 1408 fi
1361 ;; 1409 ;;
1410sparc*-*solaris*)
1411 # Find out which ABI we are using.
1412 echo 'int i;' > conftest.$ac_ext
1413 if AC_TRY_EVAL(ac_compile); then
1414 case `/usr/bin/file conftest.o` in
1415 *64-bit*)
1416 case $lt_cv_prog_gnu_ld in
1417 yes*) LD="${LD-ld} -m elf64_sparc" ;;
1418 *) LD="${LD-ld} -64" ;;
1419 esac
1420 ;;
1421 esac
1422 fi
1423 rm -rf conftest*
1424 ;;
1425
1362AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 1426AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1363[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 1427[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1364 AC_CHECK_TOOL(DLLTOOL, dlltool, false) 1428 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1365 AC_CHECK_TOOL(AS, as, false) 1429 AC_CHECK_TOOL(AS, as, false)
1366 AC_CHECK_TOOL(OBJDUMP, objdump, false) 1430 AC_CHECK_TOOL(OBJDUMP, objdump, false)
1388 # (2) before a word containing "conftest.", or (3) at the end. 1452 # (2) before a word containing "conftest.", or (3) at the end.
1389 # Note that $ac_compile itself does not contain backslashes and begins 1453 # Note that $ac_compile itself does not contain backslashes and begins
1390 # with a dollar sign (not a hyphen), so the echo should work correctly. 1454 # with a dollar sign (not a hyphen), so the echo should work correctly.
1391 # The option is referenced via a variable to avoid confusing sed. 1455 # The option is referenced via a variable to avoid confusing sed.
1392 lt_compile=`echo "$ac_compile" | $SED \ 1456 lt_compile=`echo "$ac_compile" | $SED \
1393 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 1457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1394 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1458 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1395 -e 's:$: $lt_compiler_flag:'` 1459 -e 's:$: $lt_compiler_flag:'`
1396 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1460 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1397 (eval "$lt_compile" 2>conftest.err) 1461 (eval "$lt_compile" 2>conftest.err)
1398 ac_status=$? 1462 ac_status=$?
1399 cat conftest.err >&AS_MESSAGE_LOG_FD 1463 cat conftest.err >&AS_MESSAGE_LOG_FD
1400 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1464 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1401 if (exit $ac_status) && test -s "$ac_outfile"; then 1465 if (exit $ac_status) && test -s "$ac_outfile"; then
1402 # The compiler can only warn and ignore the option if not recognized 1466 # The compiler can only warn and ignore the option if not recognized
1403 # So say no if there are warnings 1467 # So say no if there are warnings other than the usual output.
1404 if test ! -s conftest.err; then 1468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1405 $2=yes 1471 $2=yes
1406 fi 1472 fi
1407 fi 1473 fi
1408 $rm conftest* 1474 $rm conftest*
1409]) 1475])
1425 [$2=no 1491 [$2=no
1426 save_LDFLAGS="$LDFLAGS" 1492 save_LDFLAGS="$LDFLAGS"
1427 LDFLAGS="$LDFLAGS $3" 1493 LDFLAGS="$LDFLAGS $3"
1428 printf "$lt_simple_link_test_code" > conftest.$ac_ext 1494 printf "$lt_simple_link_test_code" > conftest.$ac_ext
1429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 1495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1430 # The compiler can only warn and ignore the option if not recognized 1496 # The linker can only warn and ignore the option if not recognized
1431 # So say no if there are warnings 1497 # So say no if there are warnings
1432 if test -s conftest.err; then 1498 if test -s conftest.err; then
1433 # Append any errors to the config.log. 1499 # Append any errors to the config.log.
1434 cat conftest.err 1>&AS_MESSAGE_LOG_FD 1500 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1501 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1503 if diff conftest.exp conftest.er2 >/dev/null; then
1504 $2=yes
1505 fi
1435 else 1506 else
1436 $2=yes 1507 $2=yes
1437 fi 1508 fi
1438 fi 1509 fi
1439 $rm conftest* 1510 $rm conftest*
1453AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 1524AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1454[# find the maximum length of command line arguments 1525[# find the maximum length of command line arguments
1455AC_MSG_CHECKING([the maximum length of command line arguments]) 1526AC_MSG_CHECKING([the maximum length of command line arguments])
1456AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 1527AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1457 i=0 1528 i=0
1458 testring="ABCD" 1529 teststring="ABCD"
1459 1530
1460 case $build_os in 1531 case $build_os in
1461 msdosdjgpp*) 1532 msdosdjgpp*)
1462 # On DJGPP, this test can blow up pretty badly due to problems in libc 1533 # On DJGPP, this test can blow up pretty badly due to problems in libc
1463 # (any single argument exceeding 2000 bytes causes a buffer overrun 1534 # (any single argument exceeding 2000 bytes causes a buffer overrun
1488 # On AmigaOS with pdksh, this test takes hours, literally. 1559 # On AmigaOS with pdksh, this test takes hours, literally.
1489 # So we just punt and use a minimum line length of 8192. 1560 # So we just punt and use a minimum line length of 8192.
1490 lt_cv_sys_max_cmd_len=8192; 1561 lt_cv_sys_max_cmd_len=8192;
1491 ;; 1562 ;;
1492 1563
1564 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1565 # This has been around since 386BSD, at least. Likely further.
1566 if test -x /sbin/sysctl; then
1567 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1568 elif test -x /usr/sbin/sysctl; then
1569 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1570 else
1571 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1572 fi
1573 # And add a safety zone
1574 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1576 ;;
1577
1578 interix*)
1579 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1580 lt_cv_sys_max_cmd_len=196608
1581 ;;
1582
1583 osf*)
1584 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1585 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1586 # nice to cause kernel panics so lets avoid the loop below.
1587 # First set a reasonable default.
1588 lt_cv_sys_max_cmd_len=16384
1589 #
1590 if test -x /sbin/sysconfig; then
1591 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1592 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1593 esac
1594 fi
1595 ;;
1596 sco3.2v5*)
1597 lt_cv_sys_max_cmd_len=102400
1598 ;;
1599 sysv5* | sco5v6* | sysv4.2uw2*)
1600 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1601 if test -n "$kargmax"; then
1602 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1603 else
1604 lt_cv_sys_max_cmd_len=32768
1605 fi
1606 ;;
1493 *) 1607 *)
1494 # If test is not a shell built-in, we'll probably end up computing a 1608 # If test is not a shell built-in, we'll probably end up computing a
1495 # maximum length that is only half of the actual maximum length, but 1609 # maximum length that is only half of the actual maximum length, but
1496 # we can't tell. 1610 # we can't tell.
1611 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1497 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \ 1612 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1498 = "XX$testring") >/dev/null 2>&1 && 1613 = "XX$teststring") >/dev/null 2>&1 &&
1499 new_result=`expr "X$testring" : ".*" 2>&1` && 1614 new_result=`expr "X$teststring" : ".*" 2>&1` &&
1500 lt_cv_sys_max_cmd_len=$new_result && 1615 lt_cv_sys_max_cmd_len=$new_result &&
1501 test $i != 17 # 1/2 MB should be enough 1616 test $i != 17 # 1/2 MB should be enough
1502 do 1617 do
1503 i=`expr $i + 1` 1618 i=`expr $i + 1`
1504 testring=$testring$testring 1619 teststring=$teststring$teststring
1505 done 1620 done
1506 testring= 1621 teststring=
1507 # Add a significant safety factor because C++ compilers can tack on massive 1622 # Add a significant safety factor because C++ compilers can tack on massive
1508 # amounts of additional arguments before passing them to the linker. 1623 # amounts of additional arguments before passing them to the linker.
1509 # It appears as though 1/2 is a usable value. 1624 # It appears as though 1/2 is a usable value.
1510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 1625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1511 ;; 1626 ;;
1518fi 1633fi
1519])# AC_LIBTOOL_SYS_MAX_CMD_LEN 1634])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1520 1635
1521 1636
1522# _LT_AC_CHECK_DLFCN 1637# _LT_AC_CHECK_DLFCN
1523# -------------------- 1638# ------------------
1524AC_DEFUN([_LT_AC_CHECK_DLFCN], 1639AC_DEFUN([_LT_AC_CHECK_DLFCN],
1525[AC_CHECK_HEADERS(dlfcn.h)dnl 1640[AC_CHECK_HEADERS(dlfcn.h)dnl
1526])# _LT_AC_CHECK_DLFCN 1641])# _LT_AC_CHECK_DLFCN
1527 1642
1528 1643
1529# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 1644# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1530# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 1645# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1531# ------------------------------------------------------------------ 1646# ---------------------------------------------------------------------
1532AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 1647AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1533[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1648[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1534if test "$cross_compiling" = yes; then : 1649if test "$cross_compiling" = yes; then :
1535 [$4] 1650 [$4]
1536else 1651else
1592 { 1707 {
1593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 1708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 1709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1595 /* dlclose (self); */ 1710 /* dlclose (self); */
1596 } 1711 }
1712 else
1713 puts (dlerror ());
1597 1714
1598 exit (status); 1715 exit (status);
1599}] 1716}]
1600EOF 1717EOF
1601 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 1718 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1602 (./conftest; exit; ) 2>/dev/null 1719 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1603 lt_status=$? 1720 lt_status=$?
1604 case x$lt_status in 1721 case x$lt_status in
1605 x$lt_dlno_uscore) $1 ;; 1722 x$lt_dlno_uscore) $1 ;;
1606 x$lt_dlneed_uscore) $2 ;; 1723 x$lt_dlneed_uscore) $2 ;;
1607 x$lt_unknown|x*) $3 ;; 1724 x$lt_dlunknown|x*) $3 ;;
1608 esac 1725 esac
1609 else : 1726 else :
1610 # compilation failed 1727 # compilation failed
1611 $3 1728 $3
1612 fi 1729 fi
1614rm -fr conftest* 1731rm -fr conftest*
1615])# _LT_AC_TRY_DLOPEN_SELF 1732])# _LT_AC_TRY_DLOPEN_SELF
1616 1733
1617 1734
1618# AC_LIBTOOL_DLOPEN_SELF 1735# AC_LIBTOOL_DLOPEN_SELF
1619# ------------------- 1736# ----------------------
1620AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 1737AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1621[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 1738[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1622if test "x$enable_dlopen" != xyes; then 1739if test "x$enable_dlopen" != xyes; then
1623 enable_dlopen=unknown 1740 enable_dlopen=unknown
1624 enable_dlopen_self=unknown 1741 enable_dlopen_self=unknown
1685 dlopen) 1802 dlopen)
1686 save_CPPFLAGS="$CPPFLAGS" 1803 save_CPPFLAGS="$CPPFLAGS"
1687 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 1804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1688 1805
1689 save_LDFLAGS="$LDFLAGS" 1806 save_LDFLAGS="$LDFLAGS"
1690 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 1807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1691 1808
1692 save_LIBS="$LIBS" 1809 save_LIBS="$LIBS"
1693 LIBS="$lt_cv_dlopen_libs $LIBS" 1810 LIBS="$lt_cv_dlopen_libs $LIBS"
1694 1811
1695 AC_CACHE_CHECK([whether a program can dlopen itself], 1812 AC_CACHE_CHECK([whether a program can dlopen itself],
1698 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 1815 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1699 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 1816 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1700 ]) 1817 ])
1701 1818
1702 if test "x$lt_cv_dlopen_self" = xyes; then 1819 if test "x$lt_cv_dlopen_self" = xyes; then
1703 LDFLAGS="$LDFLAGS $link_static_flag" 1820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1704 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 1821 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1705 lt_cv_dlopen_self_static, [dnl 1822 lt_cv_dlopen_self_static, [dnl
1706 _LT_AC_TRY_DLOPEN_SELF( 1823 _LT_AC_TRY_DLOPEN_SELF(
1707 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 1824 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1708 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 1825 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1746 # Insert the option either (1) after the last *FLAGS variable, or 1863 # Insert the option either (1) after the last *FLAGS variable, or
1747 # (2) before a word containing "conftest.", or (3) at the end. 1864 # (2) before a word containing "conftest.", or (3) at the end.
1748 # Note that $ac_compile itself does not contain backslashes and begins 1865 # Note that $ac_compile itself does not contain backslashes and begins
1749 # with a dollar sign (not a hyphen), so the echo should work correctly. 1866 # with a dollar sign (not a hyphen), so the echo should work correctly.
1750 lt_compile=`echo "$ac_compile" | $SED \ 1867 lt_compile=`echo "$ac_compile" | $SED \
1751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 1868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1752 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1869 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1753 -e 's:$: $lt_compiler_flag:'` 1870 -e 's:$: $lt_compiler_flag:'`
1754 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 1871 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1755 (eval "$lt_compile" 2>out/conftest.err) 1872 (eval "$lt_compile" 2>out/conftest.err)
1756 ac_status=$? 1873 ac_status=$?
1758 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 1875 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1759 if (exit $ac_status) && test -s out/conftest2.$ac_objext 1876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1760 then 1877 then
1761 # The compiler can only warn and ignore the option if not recognized 1878 # The compiler can only warn and ignore the option if not recognized
1762 # So say no if there are warnings 1879 # So say no if there are warnings
1763 if test ! -s out/conftest.err; then 1880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1764 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1883 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1765 fi 1884 fi
1766 fi 1885 fi
1767 chmod u+w . 1886 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1768 $rm conftest* 1887 $rm conftest*
1769 # SGI C++ compiler will create directory out/ii_files/ for 1888 # SGI C++ compiler will create directory out/ii_files/ for
1770 # template instantiation 1889 # template instantiation
1771 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 1890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1772 $rm out/* && rmdir out 1891 $rm out/* && rmdir out
1826# Check hardcoding attributes. 1945# Check hardcoding attributes.
1827AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 1946AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1828[AC_MSG_CHECKING([how to hardcode library paths into programs]) 1947[AC_MSG_CHECKING([how to hardcode library paths into programs])
1829_LT_AC_TAGVAR(hardcode_action, $1)= 1948_LT_AC_TAGVAR(hardcode_action, $1)=
1830if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1949if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1831 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \ 1950 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1832 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then 1951 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1833 1952
1834 # We can hardcode non-existant directories. 1953 # We can hardcode non-existant directories.
1835 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 1954 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1836 # If the only mechanism to avoid hardcoding is shlibpath_var, we 1955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1837 # have to relink, otherwise we might link with an installed library 1956 # have to relink, otherwise we might link with an installed library
1897AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 2016AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1898[AC_MSG_CHECKING([dynamic linker characteristics]) 2017[AC_MSG_CHECKING([dynamic linker characteristics])
1899library_names_spec= 2018library_names_spec=
1900libname_spec='lib$name' 2019libname_spec='lib$name'
1901soname_spec= 2020soname_spec=
1902shrext=".so" 2021shrext_cmds=".so"
1903postinstall_cmds= 2022postinstall_cmds=
1904postuninstall_cmds= 2023postuninstall_cmds=
1905finish_cmds= 2024finish_cmds=
1906finish_eval= 2025finish_eval=
1907shlibpath_var= 2026shlibpath_var=
1994 library_names_spec='${libname}${shared_ext}' 2113 library_names_spec='${libname}${shared_ext}'
1995 dynamic_linker="$host_os ld.so" 2114 dynamic_linker="$host_os ld.so"
1996 shlibpath_var=LIBRARY_PATH 2115 shlibpath_var=LIBRARY_PATH
1997 ;; 2116 ;;
1998 2117
1999bsdi4*) 2118bsdi[[45]]*)
2000 version_type=linux 2119 version_type=linux
2001 need_version=no 2120 need_version=no
2002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2003 soname_spec='${libname}${release}${shared_ext}$major' 2122 soname_spec='${libname}${release}${shared_ext}$major'
2004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 2123 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2010 # libtool to hard-code these into programs 2129 # libtool to hard-code these into programs
2011 ;; 2130 ;;
2012 2131
2013cygwin* | mingw* | pw32*) 2132cygwin* | mingw* | pw32*)
2014 version_type=windows 2133 version_type=windows
2015 shrext=".dll" 2134 shrext_cmds=".dll"
2016 need_version=no 2135 need_version=no
2017 need_lib_prefix=no 2136 need_lib_prefix=no
2018 2137
2019 case $GCC,$host_os in 2138 case $GCC,$host_os in
2020 yes,cygwin* | yes,mingw* | yes,pw32*) 2139 yes,cygwin* | yes,mingw* | yes,pw32*)
2022 # DLL is installed to $(libdir)/../bin by postinstall_cmds 2141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2023 postinstall_cmds='base_file=`basename \${file}`~ 2142 postinstall_cmds='base_file=`basename \${file}`~
2024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 2143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2025 dldir=$destdir/`dirname \$dlpath`~ 2144 dldir=$destdir/`dirname \$dlpath`~
2026 test -d \$dldir || mkdir -p \$dldir~ 2145 test -d \$dldir || mkdir -p \$dldir~
2027 $install_prog $dir/$dlname \$dldir/$dlname' 2146 $install_prog $dir/$dlname \$dldir/$dlname~
2147 chmod a+x \$dldir/$dlname'
2028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 2148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2029 dlpath=$dir/\$dldll~ 2149 dlpath=$dir/\$dldll~
2030 $rm \$dlpath' 2150 $rm \$dlpath'
2031 shlibpath_overrides_runpath=yes 2151 shlibpath_overrides_runpath=yes
2032 2152
2052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 2172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2053 fi 2173 fi
2054 ;; 2174 ;;
2055 pw32*) 2175 pw32*)
2056 # pw32 DLLs use 'pw' prefix rather than 'lib' 2176 # pw32 DLLs use 'pw' prefix rather than 'lib'
2057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 2177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2058 ;; 2178 ;;
2059 esac 2179 esac
2060 ;; 2180 ;;
2061 2181
2062 *) 2182 *)
2075 need_version=no 2195 need_version=no
2076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 2196 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2077 soname_spec='${libname}${release}${major}$shared_ext' 2197 soname_spec='${libname}${release}${major}$shared_ext'
2078 shlibpath_overrides_runpath=yes 2198 shlibpath_overrides_runpath=yes
2079 shlibpath_var=DYLD_LIBRARY_PATH 2199 shlibpath_var=DYLD_LIBRARY_PATH
2080 shrext='$(test .$module = .yes && echo .so || echo .dylib)' 2200 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 2201 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2082 if test "$GCC" = yes; then 2202 if test "$GCC" = yes; then
2083 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"` 2203 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"`
2084 else 2204 else
2085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 2205 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2098 2218
2099freebsd1*) 2219freebsd1*)
2100 dynamic_linker=no 2220 dynamic_linker=no
2101 ;; 2221 ;;
2102 2222
2103kfreebsd*-gnu) 2223freebsd* | dragonfly*)
2104 version_type=linux 2224 # DragonFly does not have aout. When/if they implement a new
2105 need_lib_prefix=no 2225 # versioning mechanism, adjust this.
2106 need_version=no 2226 if test -x /usr/bin/objformat; then
2107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2227 objformat=`/usr/bin/objformat`
2108 soname_spec='${libname}${release}${shared_ext}$major' 2228 else
2109 shlibpath_var=LD_LIBRARY_PATH 2229 case $host_os in
2110 shlibpath_overrides_runpath=no 2230 freebsd[[123]]*) objformat=aout ;;
2111 hardcode_into_libs=yes 2231 *) objformat=elf ;;
2112 dynamic_linker='GNU ld.so' 2232 esac
2113 ;; 2233 fi
2114
2115freebsd*)
2116 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2117 version_type=freebsd-$objformat 2234 version_type=freebsd-$objformat
2118 case $version_type in 2235 case $version_type in
2119 freebsd-elf*) 2236 freebsd-elf*)
2120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 2237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2121 need_version=no 2238 need_version=no
2129 shlibpath_var=LD_LIBRARY_PATH 2246 shlibpath_var=LD_LIBRARY_PATH
2130 case $host_os in 2247 case $host_os in
2131 freebsd2*) 2248 freebsd2*)
2132 shlibpath_overrides_runpath=yes 2249 shlibpath_overrides_runpath=yes
2133 ;; 2250 ;;
2134 freebsd3.[01]* | freebsdelf3.[01]*) 2251 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2135 shlibpath_overrides_runpath=yes 2252 shlibpath_overrides_runpath=yes
2136 hardcode_into_libs=yes 2253 hardcode_into_libs=yes
2137 ;; 2254 ;;
2138 *) # from 3.2 on 2255 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2256 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2139 shlibpath_overrides_runpath=no 2257 shlibpath_overrides_runpath=no
2258 hardcode_into_libs=yes
2259 ;;
2260 freebsd*) # from 4.6 on
2261 shlibpath_overrides_runpath=yes
2140 hardcode_into_libs=yes 2262 hardcode_into_libs=yes
2141 ;; 2263 ;;
2142 esac 2264 esac
2143 ;; 2265 ;;
2144 2266
2156 # Give a soname corresponding to the major version so that dld.sl refuses to 2278 # Give a soname corresponding to the major version so that dld.sl refuses to
2157 # link against other versions. 2279 # link against other versions.
2158 version_type=sunos 2280 version_type=sunos
2159 need_lib_prefix=no 2281 need_lib_prefix=no
2160 need_version=no 2282 need_version=no
2161 case "$host_cpu" in 2283 case $host_cpu in
2162 ia64*) 2284 ia64*)
2163 shrext='.so' 2285 shrext_cmds='.so'
2164 hardcode_into_libs=yes 2286 hardcode_into_libs=yes
2165 dynamic_linker="$host_os dld.so" 2287 dynamic_linker="$host_os dld.so"
2166 shlibpath_var=LD_LIBRARY_PATH 2288 shlibpath_var=LD_LIBRARY_PATH
2167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 2295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2174 fi 2296 fi
2175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2176 ;; 2298 ;;
2177 hppa*64*) 2299 hppa*64*)
2178 shrext='.sl' 2300 shrext_cmds='.sl'
2179 hardcode_into_libs=yes 2301 hardcode_into_libs=yes
2180 dynamic_linker="$host_os dld.sl" 2302 dynamic_linker="$host_os dld.sl"
2181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 2303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 2304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2184 soname_spec='${libname}${release}${shared_ext}$major' 2306 soname_spec='${libname}${release}${shared_ext}$major'
2185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 2307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 2308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2187 ;; 2309 ;;
2188 *) 2310 *)
2189 shrext='.sl' 2311 shrext_cmds='.sl'
2190 dynamic_linker="$host_os dld.sl" 2312 dynamic_linker="$host_os dld.sl"
2191 shlibpath_var=SHLIB_PATH 2313 shlibpath_var=SHLIB_PATH
2192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 2314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2194 soname_spec='${libname}${release}${shared_ext}$major' 2316 soname_spec='${libname}${release}${shared_ext}$major'
2195 ;; 2317 ;;
2196 esac 2318 esac
2197 # HP-UX runs *really* slowly unless shared libraries are mode 555. 2319 # HP-UX runs *really* slowly unless shared libraries are mode 555.
2198 postinstall_cmds='chmod 555 $lib' 2320 postinstall_cmds='chmod 555 $lib'
2321 ;;
2322
2323interix3*)
2324 version_type=linux
2325 need_lib_prefix=no
2326 need_version=no
2327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2328 soname_spec='${libname}${release}${shared_ext}$major'
2329 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2330 shlibpath_var=LD_LIBRARY_PATH
2331 shlibpath_overrides_runpath=no
2332 hardcode_into_libs=yes
2199 ;; 2333 ;;
2200 2334
2201irix5* | irix6* | nonstopux*) 2335irix5* | irix6* | nonstopux*)
2202 case $host_os in 2336 case $host_os in
2203 nonstopux*) version_type=nonstopux ;; 2337 nonstopux*) version_type=nonstopux ;;
2239linux*oldld* | linux*aout* | linux*coff*) 2373linux*oldld* | linux*aout* | linux*coff*)
2240 dynamic_linker=no 2374 dynamic_linker=no
2241 ;; 2375 ;;
2242 2376
2243# This must be Linux ELF. 2377# This must be Linux ELF.
2244linux*) 2378linux* | k*bsd*-gnu)
2245 version_type=linux 2379 version_type=linux
2246 need_lib_prefix=no 2380 need_lib_prefix=no
2247 need_version=no 2381 need_version=no
2248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2249 soname_spec='${libname}${release}${shared_ext}$major' 2383 soname_spec='${libname}${release}${shared_ext}$major'
2255 # before this can be enabled. 2389 # before this can be enabled.
2256 hardcode_into_libs=yes 2390 hardcode_into_libs=yes
2257 2391
2258 # Append ld.so.conf contents to the search path 2392 # Append ld.so.conf contents to the search path
2259 if test -f /etc/ld.so.conf; then 2393 if test -f /etc/ld.so.conf; then
2260 ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf` 2394 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' ' '`
2261 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra" 2395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2262 fi 2396 fi
2263 2397
2264 # We used to test for /lib/ld.so.1 and disable shared libraries on 2398 # We used to test for /lib/ld.so.1 and disable shared libraries on
2265 # powerpc, because MkLinux only supported shared libraries with the 2399 # powerpc, because MkLinux only supported shared libraries with the
2266 # GNU dynamic linker. Since this was broken with cross compilers, 2400 # GNU dynamic linker. Since this was broken with cross compilers,
2268 # people can always --disable-shared, the test was removed, and we 2402 # people can always --disable-shared, the test was removed, and we
2269 # assume the GNU/Linux dynamic linker is in use. 2403 # assume the GNU/Linux dynamic linker is in use.
2270 dynamic_linker='GNU/Linux ld.so' 2404 dynamic_linker='GNU/Linux ld.so'
2271 ;; 2405 ;;
2272 2406
2273knetbsd*-gnu) 2407netbsdelf*-gnu)
2274 version_type=linux 2408 version_type=linux
2275 need_lib_prefix=no 2409 need_lib_prefix=no
2276 need_version=no 2410 need_version=no
2277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 2411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2278 soname_spec='${libname}${release}${shared_ext}$major' 2412 soname_spec='${libname}${release}${shared_ext}$major'
2279 shlibpath_var=LD_LIBRARY_PATH 2413 shlibpath_var=LD_LIBRARY_PATH
2280 shlibpath_overrides_runpath=no 2414 shlibpath_overrides_runpath=no
2281 hardcode_into_libs=yes 2415 hardcode_into_libs=yes
2282 dynamic_linker='GNU ld.so' 2416 dynamic_linker='NetBSD ld.elf_so'
2283 ;; 2417 ;;
2284 2418
2285netbsd*) 2419netbsd*)
2286 version_type=sunos 2420 version_type=sunos
2287 need_lib_prefix=no 2421 need_lib_prefix=no
2317 shlibpath_overrides_runpath=yes 2451 shlibpath_overrides_runpath=yes
2318 ;; 2452 ;;
2319 2453
2320openbsd*) 2454openbsd*)
2321 version_type=sunos 2455 version_type=sunos
2456 sys_lib_dlsearch_path_spec="/usr/lib"
2322 need_lib_prefix=no 2457 need_lib_prefix=no
2323 need_version=yes 2458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2459 case $host_os in
2460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2461 *) need_version=no ;;
2462 esac
2324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 2463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 2464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2326 shlibpath_var=LD_LIBRARY_PATH 2465 shlibpath_var=LD_LIBRARY_PATH
2327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2328 case $host_os in 2467 case $host_os in
2338 fi 2477 fi
2339 ;; 2478 ;;
2340 2479
2341os2*) 2480os2*)
2342 libname_spec='$name' 2481 libname_spec='$name'
2343 shrext=".dll" 2482 shrext_cmds=".dll"
2344 need_lib_prefix=no 2483 need_lib_prefix=no
2345 library_names_spec='$libname${shared_ext} $libname.a' 2484 library_names_spec='$libname${shared_ext} $libname.a'
2346 dynamic_linker='OS/2 ld.exe' 2485 dynamic_linker='OS/2 ld.exe'
2347 shlibpath_var=LIBPATH 2486 shlibpath_var=LIBPATH
2348 ;; 2487 ;;
2354 soname_spec='${libname}${release}${shared_ext}$major' 2493 soname_spec='${libname}${release}${shared_ext}$major'
2355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2356 shlibpath_var=LD_LIBRARY_PATH 2495 shlibpath_var=LD_LIBRARY_PATH
2357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 2496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 2497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2359 ;;
2360
2361sco3.2v5*)
2362 version_type=osf
2363 soname_spec='${libname}${release}${shared_ext}$major'
2364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2365 shlibpath_var=LD_LIBRARY_PATH
2366 ;; 2498 ;;
2367 2499
2368solaris*) 2500solaris*)
2369 version_type=linux 2501 version_type=linux
2370 need_lib_prefix=no 2502 need_lib_prefix=no
2388 need_lib_prefix=no 2520 need_lib_prefix=no
2389 fi 2521 fi
2390 need_version=yes 2522 need_version=yes
2391 ;; 2523 ;;
2392 2524
2393sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 2525sysv4 | sysv4.3*)
2394 version_type=linux 2526 version_type=linux
2395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2396 soname_spec='${libname}${release}${shared_ext}$major' 2528 soname_spec='${libname}${release}${shared_ext}$major'
2397 shlibpath_var=LD_LIBRARY_PATH 2529 shlibpath_var=LD_LIBRARY_PATH
2398 case $host_vendor in 2530 case $host_vendor in
2421 soname_spec='$libname${shared_ext}.$major' 2553 soname_spec='$libname${shared_ext}.$major'
2422 shlibpath_var=LD_LIBRARY_PATH 2554 shlibpath_var=LD_LIBRARY_PATH
2423 fi 2555 fi
2424 ;; 2556 ;;
2425 2557
2558sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2559 version_type=freebsd-elf
2560 need_lib_prefix=no
2561 need_version=no
2562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2563 soname_spec='${libname}${release}${shared_ext}$major'
2564 shlibpath_var=LD_LIBRARY_PATH
2565 hardcode_into_libs=yes
2566 if test "$with_gnu_ld" = yes; then
2567 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2568 shlibpath_overrides_runpath=no
2569 else
2570 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2571 shlibpath_overrides_runpath=yes
2572 case $host_os in
2573 sco3.2v5*)
2574 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2575 ;;
2576 esac
2577 fi
2578 sys_lib_dlsearch_path_spec='/usr/lib'
2579 ;;
2580
2426uts4*) 2581uts4*)
2427 version_type=linux 2582 version_type=linux
2428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 2583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2429 soname_spec='${libname}${release}${shared_ext}$major' 2584 soname_spec='${libname}${release}${shared_ext}$major'
2430 shlibpath_var=LD_LIBRARY_PATH 2585 shlibpath_var=LD_LIBRARY_PATH
2434 dynamic_linker=no 2589 dynamic_linker=no
2435 ;; 2590 ;;
2436esac 2591esac
2437AC_MSG_RESULT([$dynamic_linker]) 2592AC_MSG_RESULT([$dynamic_linker])
2438test "$dynamic_linker" = no && can_build_shared=no 2593test "$dynamic_linker" = no && can_build_shared=no
2594
2595variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2596if test "$GCC" = yes; then
2597 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2598fi
2439])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 2599])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2440 2600
2441 2601
2442# _LT_AC_TAGCONFIG 2602# _LT_AC_TAGCONFIG
2443# ---------------- 2603# ----------------
2458 AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 2618 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2459 else 2619 else
2460 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 2620 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2461 fi 2621 fi
2462 fi 2622 fi
2623 if test -z "$LTCFLAGS"; then
2624 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2625 fi
2463 2626
2464 # Extract list of available tagged configurations in $ofile. 2627 # Extract list of available tagged configurations in $ofile.
2465 # Note that this assumes the entire list is on one line. 2628 # Note that this assumes the entire list is on one line.
2466 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 2629 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2467 2630
2484 if test -n "$tagname"; then 2647 if test -n "$tagname"; then
2485 echo appending configuration tag \"$tagname\" to $ofile 2648 echo appending configuration tag \"$tagname\" to $ofile
2486 2649
2487 case $tagname in 2650 case $tagname in
2488 CXX) 2651 CXX)
2489 if test -n "$CXX" && test "X$CXX" != "Xno"; then 2652 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2653 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2654 (test "X$CXX" != "Xg++"))) ; then
2490 AC_LIBTOOL_LANG_CXX_CONFIG 2655 AC_LIBTOOL_LANG_CXX_CONFIG
2491 else 2656 else
2492 tagname="" 2657 tagname=""
2493 fi 2658 fi
2494 ;; 2659 ;;
2546])# AC_LIBTOOL_DLOPEN 2711])# AC_LIBTOOL_DLOPEN
2547 2712
2548 2713
2549# AC_LIBTOOL_WIN32_DLL 2714# AC_LIBTOOL_WIN32_DLL
2550# -------------------- 2715# --------------------
2551# declare package support for building win32 dll's 2716# declare package support for building win32 DLLs
2552AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 2717AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2553[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 2718[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2554])# AC_LIBTOOL_WIN32_DLL 2719])# AC_LIBTOOL_WIN32_DLL
2555 2720
2556 2721
2584])# AC_ENABLE_SHARED 2749])# AC_ENABLE_SHARED
2585 2750
2586 2751
2587# AC_DISABLE_SHARED 2752# AC_DISABLE_SHARED
2588# ----------------- 2753# -----------------
2589#- set the default shared flag to --disable-shared 2754# set the default shared flag to --disable-shared
2590AC_DEFUN([AC_DISABLE_SHARED], 2755AC_DEFUN([AC_DISABLE_SHARED],
2591[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 2756[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2592AC_ENABLE_SHARED(no) 2757AC_ENABLE_SHARED(no)
2593])# AC_DISABLE_SHARED 2758])# AC_DISABLE_SHARED
2594 2759
2720 if test -f $ac_dir/$1; then 2885 if test -f $ac_dir/$1; then
2721 lt_cv_path_MAGIC_CMD="$ac_dir/$1" 2886 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2722 if test -n "$file_magic_test_file"; then 2887 if test -n "$file_magic_test_file"; then
2723 case $deplibs_check_method in 2888 case $deplibs_check_method in
2724 "file_magic "*) 2889 "file_magic "*)
2725 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 2890 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2891 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2727 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 2892 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2728 $EGREP "$file_magic_regex" > /dev/null; then 2893 $EGREP "$file_magic_regex" > /dev/null; then
2729 : 2894 :
2730 else 2895 else
2830 IFS="$lt_save_ifs" 2995 IFS="$lt_save_ifs"
2831 test -z "$ac_dir" && ac_dir=. 2996 test -z "$ac_dir" && ac_dir=.
2832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 2997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2833 lt_cv_path_LD="$ac_dir/$ac_prog" 2998 lt_cv_path_LD="$ac_dir/$ac_prog"
2834 # Check to see if the program is GNU ld. I'd rather use --version, 2999 # Check to see if the program is GNU ld. I'd rather use --version,
2835 # but apparently some GNU ld's only accept -v. 3000 # but apparently some variants of GNU ld only accept -v.
2836 # Break only if it was the GNU/non-GNU ld that we prefer. 3001 # Break only if it was the GNU/non-GNU ld that we prefer.
2837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2838 *GNU* | *'with BFD'*) 3003 *GNU* | *'with BFD'*)
2839 test "$with_gnu_ld" != no && break 3004 test "$with_gnu_ld" != no && break
2840 ;; 3005 ;;
2862# AC_PROG_LD_GNU 3027# AC_PROG_LD_GNU
2863# -------------- 3028# --------------
2864AC_DEFUN([AC_PROG_LD_GNU], 3029AC_DEFUN([AC_PROG_LD_GNU],
2865[AC_REQUIRE([AC_PROG_EGREP])dnl 3030[AC_REQUIRE([AC_PROG_EGREP])dnl
2866AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 3031AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2867[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 3032[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2868case `$LD -v 2>&1 </dev/null` in 3033case `$LD -v 2>&1 </dev/null` in
2869*GNU* | *'with BFD'*) 3034*GNU* | *'with BFD'*)
2870 lt_cv_prog_gnu_ld=yes 3035 lt_cv_prog_gnu_ld=yes
2871 ;; 3036 ;;
2872*) 3037*)
2889case $reload_flag in 3054case $reload_flag in
2890"" | " "*) ;; 3055"" | " "*) ;;
2891*) reload_flag=" $reload_flag" ;; 3056*) reload_flag=" $reload_flag" ;;
2892esac 3057esac
2893reload_cmds='$LD$reload_flag -o $output$reload_objs' 3058reload_cmds='$LD$reload_flag -o $output$reload_objs'
3059case $host_os in
3060 darwin*)
3061 if test "$GCC" = yes; then
3062 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3063 else
3064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3065 fi
3066 ;;
3067esac
2894])# AC_PROG_LD_RELOAD_FLAG 3068])# AC_PROG_LD_RELOAD_FLAG
2895 3069
2896 3070
2897# AC_DEPLIBS_CHECK_METHOD 3071# AC_DEPLIBS_CHECK_METHOD
2898# ----------------------- 3072# -----------------------
2922 3096
2923beos*) 3097beos*)
2924 lt_cv_deplibs_check_method=pass_all 3098 lt_cv_deplibs_check_method=pass_all
2925 ;; 3099 ;;
2926 3100
2927bsdi4*) 3101bsdi[[45]]*)
2928 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 3102 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2929 lt_cv_file_magic_cmd='/usr/bin/file -L' 3103 lt_cv_file_magic_cmd='/usr/bin/file -L'
2930 lt_cv_file_magic_test_file=/shlib/libc.so 3104 lt_cv_file_magic_test_file=/shlib/libc.so
2931 ;; 3105 ;;
2932 3106
2933cygwin*) 3107cygwin*)
2934 # win32_libid is a shell function defined in ltmain.sh 3108 # func_win32_libid is a shell function defined in ltmain.sh
2935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2936 lt_cv_file_magic_cmd='win32_libid' 3110 lt_cv_file_magic_cmd='func_win32_libid'
2937 ;; 3111 ;;
2938 3112
2939mingw* | pw32*) 3113mingw* | pw32*)
2940 # Base MSYS/MinGW do not provide the 'file' command needed by 3114 # Base MSYS/MinGW do not provide the 'file' command needed by
2941 # win32_libid shell function, so use a weaker test based on 'objdump'. 3115 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2942 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2943 lt_cv_file_magic_cmd='$OBJDUMP -f' 3117 lt_cv_file_magic_cmd='$OBJDUMP -f'
2944 ;; 3118 ;;
2945 3119
2946darwin* | rhapsody*) 3120darwin* | rhapsody*)
2947 lt_cv_deplibs_check_method=pass_all 3121 lt_cv_deplibs_check_method=pass_all
2948 ;; 3122 ;;
2949 3123
2950freebsd* | kfreebsd*-gnu) 3124freebsd* | dragonfly*)
2951 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3125 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2952 case $host_cpu in 3126 case $host_cpu in
2953 i*86 ) 3127 i*86 )
2954 # Not sure whether the presence of OpenBSD here was a mistake. 3128 # Not sure whether the presence of OpenBSD here was a mistake.
2955 # Let's accept both of them until this is cleared up. 3129 # Let's accept both of them until this is cleared up.
2956 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 3130 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2957 lt_cv_file_magic_cmd=/usr/bin/file 3131 lt_cv_file_magic_cmd=/usr/bin/file
2958 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3132 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2959 ;; 3133 ;;
2960 esac 3134 esac
2961 else 3135 else
2967 lt_cv_deplibs_check_method=pass_all 3141 lt_cv_deplibs_check_method=pass_all
2968 ;; 3142 ;;
2969 3143
2970hpux10.20* | hpux11*) 3144hpux10.20* | hpux11*)
2971 lt_cv_file_magic_cmd=/usr/bin/file 3145 lt_cv_file_magic_cmd=/usr/bin/file
2972 case "$host_cpu" in 3146 case $host_cpu in
2973 ia64*) 3147 ia64*)
2974 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 3148 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2975 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3149 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2976 ;; 3150 ;;
2977 hppa*64*) 3151 hppa*64*)
2981 *) 3155 *)
2982 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 3156 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2983 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3157 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2984 ;; 3158 ;;
2985 esac 3159 esac
3160 ;;
3161
3162interix3*)
3163 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3164 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2986 ;; 3165 ;;
2987 3166
2988irix5* | irix6* | nonstopux*) 3167irix5* | irix6* | nonstopux*)
2989 case $LD in 3168 case $LD in
2990 *-32|*"-32 ") libmagic=32-bit;; 3169 *-32|*"-32 ") libmagic=32-bit;;
2994 esac 3173 esac
2995 lt_cv_deplibs_check_method=pass_all 3174 lt_cv_deplibs_check_method=pass_all
2996 ;; 3175 ;;
2997 3176
2998# This must be Linux ELF. 3177# This must be Linux ELF.
2999linux*) 3178linux* | k*bsd*-gnu)
3000 case $host_cpu in
3001 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
3002 lt_cv_deplibs_check_method=pass_all ;;
3003 *)
3004 # glibc up to 2.1.1 does not perform some relocations on ARM
3005 # this will be overridden with pass_all, but let us keep it just in case
3006 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3007 esac
3008 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3009 lt_cv_deplibs_check_method=pass_all 3179 lt_cv_deplibs_check_method=pass_all
3010 ;; 3180 ;;
3011 3181
3012netbsd*) 3182netbsd* | netbsdelf*-gnu)
3013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3183 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3014 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 3184 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3015 else 3185 else
3016 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 3186 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3017 fi 3187 fi
3026nto-qnx*) 3196nto-qnx*)
3027 lt_cv_deplibs_check_method=unknown 3197 lt_cv_deplibs_check_method=unknown
3028 ;; 3198 ;;
3029 3199
3030openbsd*) 3200openbsd*)
3031 lt_cv_file_magic_cmd=/usr/bin/file
3032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3201 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3034 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 3202 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3035 else 3203 else
3036 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3204 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3037 fi 3205 fi
3038 ;; 3206 ;;
3039 3207
3040osf3* | osf4* | osf5*) 3208osf3* | osf4* | osf5*)
3041 lt_cv_deplibs_check_method=pass_all 3209 lt_cv_deplibs_check_method=pass_all
3042 ;; 3210 ;;
3043 3211
3044sco3.2v5*)
3045 lt_cv_deplibs_check_method=pass_all
3046 ;;
3047
3048solaris*) 3212solaris*)
3049 lt_cv_deplibs_check_method=pass_all 3213 lt_cv_deplibs_check_method=pass_all
3050 ;; 3214 ;;
3051 3215
3052sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3216sysv4 | sysv4.3*)
3053 case $host_vendor in 3217 case $host_vendor in
3054 motorola) 3218 motorola)
3055 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]]' 3219 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]]'
3056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3220 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3057 ;; 3221 ;;
3068 lt_cv_file_magic_test_file=/lib/libc.so 3232 lt_cv_file_magic_test_file=/lib/libc.so
3069 ;; 3233 ;;
3070 siemens) 3234 siemens)
3071 lt_cv_deplibs_check_method=pass_all 3235 lt_cv_deplibs_check_method=pass_all
3072 ;; 3236 ;;
3237 pc)
3238 lt_cv_deplibs_check_method=pass_all
3239 ;;
3073 esac 3240 esac
3074 ;; 3241 ;;
3075 3242
3076sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) 3243sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3077 lt_cv_deplibs_check_method=pass_all 3244 lt_cv_deplibs_check_method=pass_all
3078 ;; 3245 ;;
3079esac 3246esac
3080]) 3247])
3081file_magic_cmd=$lt_cv_file_magic_cmd 3248file_magic_cmd=$lt_cv_file_magic_cmd
3091[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 3258[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3092[if test -n "$NM"; then 3259[if test -n "$NM"; then
3093 # Let the user override the test. 3260 # Let the user override the test.
3094 lt_cv_path_NM="$NM" 3261 lt_cv_path_NM="$NM"
3095else 3262else
3263 lt_nm_to_check="${ac_tool_prefix}nm"
3264 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3265 lt_nm_to_check="$lt_nm_to_check nm"
3266 fi
3267 for lt_tmp_nm in $lt_nm_to_check; do
3096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3268 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3097 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3269 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3098 IFS="$lt_save_ifs" 3270 IFS="$lt_save_ifs"
3099 test -z "$ac_dir" && ac_dir=. 3271 test -z "$ac_dir" && ac_dir=.
3100 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3272 tmp_nm="$ac_dir/$lt_tmp_nm"
3101 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3273 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3102 # Check to see if the nm accepts a BSD-compat flag. 3274 # Check to see if the nm accepts a BSD-compat flag.
3103 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3275 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3104 # nm: unknown option "B" ignored 3276 # nm: unknown option "B" ignored
3105 # Tru64's nm complains that /dev/null is an invalid object file 3277 # Tru64's nm complains that /dev/null is an invalid object file
3106 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3107 */dev/null* | *'Invalid file or object type'*)
3108 lt_cv_path_NM="$tmp_nm -B"
3109 break
3110 ;;
3111 *)
3112 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3278 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3113 */dev/null*) 3279 */dev/null* | *'Invalid file or object type'*)
3114 lt_cv_path_NM="$tmp_nm -p" 3280 lt_cv_path_NM="$tmp_nm -B"
3115 break 3281 break
3116 ;; 3282 ;;
3117 *) 3283 *)
3284 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3285 */dev/null*)
3286 lt_cv_path_NM="$tmp_nm -p"
3287 break
3288 ;;
3289 *)
3118 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3290 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3119 continue # so that we can try to find one that supports BSD flags 3291 continue # so that we can try to find one that supports BSD flags
3292 ;;
3293 esac
3120 ;; 3294 ;;
3121 esac 3295 esac
3122 esac
3123 fi 3296 fi
3297 done
3298 IFS="$lt_save_ifs"
3124 done 3299 done
3125 IFS="$lt_save_ifs"
3126 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3300 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3127fi]) 3301fi])
3128NM="$lt_cv_path_NM" 3302NM="$lt_cv_path_NM"
3129])# AC_PROG_NM 3303])# AC_PROG_NM
3130 3304
3152 3326
3153# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 3327# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3154# ----------------------------------- 3328# -----------------------------------
3155# sets LIBLTDL to the link flags for the libltdl convenience library and 3329# sets LIBLTDL to the link flags for the libltdl convenience library and
3156# LTDLINCL to the include flags for the libltdl header and adds 3330# LTDLINCL to the include flags for the libltdl header and adds
3157# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL 3331# --enable-ltdl-convenience to the configure arguments. Note that
3158# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 3332# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3159# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will 3333# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3160# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with 3334# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3161# '${top_srcdir}/' (note the single quotes!). If your package is not 3335# (note the single quotes!). If your package is not flat and you're not
3162# flat and you're not using automake, define top_builddir and 3336# using automake, define top_builddir and top_srcdir appropriately in
3163# top_srcdir appropriately in the Makefiles. 3337# the Makefiles.
3164AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 3338AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3165[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3339[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3166 case $enable_ltdl_convenience in 3340 case $enable_ltdl_convenience in
3167 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 3341 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3168 "") enable_ltdl_convenience=yes 3342 "") enable_ltdl_convenience=yes
3177 3351
3178# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 3352# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3179# ----------------------------------- 3353# -----------------------------------
3180# sets LIBLTDL to the link flags for the libltdl installable library and 3354# sets LIBLTDL to the link flags for the libltdl installable library and
3181# LTDLINCL to the include flags for the libltdl header and adds 3355# LTDLINCL to the include flags for the libltdl header and adds
3182# --enable-ltdl-install to the configure arguments. Note that LIBLTDL 3356# --enable-ltdl-install to the configure arguments. Note that
3183# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If 3357# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3184# DIRECTORY is not provided and an installed libltdl is not found, it is 3358# and an installed libltdl is not found, it is assumed to be `libltdl'.
3185# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' 3359# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3186# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single 3360# '${top_srcdir}/' (note the single quotes!). If your package is not
3187# quotes!). If your package is not flat and you're not using automake, 3361# flat and you're not using automake, define top_builddir and top_srcdir
3188# define top_builddir and top_srcdir appropriately in the Makefiles. 3362# appropriately in the Makefiles.
3189# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 3363# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3190AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 3364AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3191[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 3365[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3192 AC_CHECK_LIB(ltdl, lt_dlinit, 3366 AC_CHECK_LIB(ltdl, lt_dlinit,
3193 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 3367 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3221 3395
3222# _LT_AC_LANG_CXX 3396# _LT_AC_LANG_CXX
3223# --------------- 3397# ---------------
3224AC_DEFUN([_LT_AC_LANG_CXX], 3398AC_DEFUN([_LT_AC_LANG_CXX],
3225[AC_REQUIRE([AC_PROG_CXX]) 3399[AC_REQUIRE([AC_PROG_CXX])
3226AC_REQUIRE([AC_PROG_CXXCPP]) 3400AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3227_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 3401_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3228])# _LT_AC_LANG_CXX 3402])# _LT_AC_LANG_CXX
3229 3403
3404# _LT_AC_PROG_CXXCPP
3405# ------------------
3406AC_DEFUN([_LT_AC_PROG_CXXCPP],
3407[
3408AC_REQUIRE([AC_PROG_CXX])
3409if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3410 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3411 (test "X$CXX" != "Xg++"))) ; then
3412 AC_PROG_CXXCPP
3413fi
3414])# _LT_AC_PROG_CXXCPP
3230 3415
3231# AC_LIBTOOL_F77 3416# AC_LIBTOOL_F77
3232# -------------- 3417# --------------
3233# enable support for Fortran 77 libraries 3418# enable support for Fortran 77 libraries
3234AC_DEFUN([AC_LIBTOOL_F77], 3419AC_DEFUN([AC_LIBTOOL_F77],
3264_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 3449_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3265])# _LT_AC_LANG_GCJ 3450])# _LT_AC_LANG_GCJ
3266 3451
3267 3452
3268# AC_LIBTOOL_RC 3453# AC_LIBTOOL_RC
3269# -------------- 3454# -------------
3270# enable support for Windows resource files 3455# enable support for Windows resource files
3271AC_DEFUN([AC_LIBTOOL_RC], 3456AC_DEFUN([AC_LIBTOOL_RC],
3272[AC_REQUIRE([LT_AC_PROG_RC]) 3457[AC_REQUIRE([LT_AC_PROG_RC])
3273_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 3458_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3274])# AC_LIBTOOL_RC 3459])# AC_LIBTOOL_RC
3297# Code to be used in simple link tests 3482# Code to be used in simple link tests
3298lt_simple_link_test_code='int main(){return(0);}\n' 3483lt_simple_link_test_code='int main(){return(0);}\n'
3299 3484
3300_LT_AC_SYS_COMPILER 3485_LT_AC_SYS_COMPILER
3301 3486
3302# 3487# save warnings/boilerplate of simple test code
3303# Check for any special shared library compilation flags. 3488_LT_COMPILER_BOILERPLATE
3304# 3489_LT_LINKER_BOILERPLATE
3305_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
3306if test "$GCC" = no; then
3307 case $host_os in
3308 sco3.2v5*)
3309 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
3310 ;;
3311 esac
3312fi
3313if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3314 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3315 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
3316 else
3317 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3318 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3319 fi
3320fi
3321
3322
3323#
3324# Check to make sure the static flag actually works.
3325#
3326AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
3327 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
3328 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
3329 [],
3330 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
3331
3332 3490
3333AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 3491AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3334AC_LIBTOOL_PROG_COMPILER_PIC($1) 3492AC_LIBTOOL_PROG_COMPILER_PIC($1)
3335AC_LIBTOOL_PROG_CC_C_O($1) 3493AC_LIBTOOL_PROG_CC_C_O($1)
3336AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 3494AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3337AC_LIBTOOL_PROG_LD_SHLIBS($1) 3495AC_LIBTOOL_PROG_LD_SHLIBS($1)
3338AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 3496AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3339AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 3497AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3340AC_LIBTOOL_SYS_LIB_STRIP 3498AC_LIBTOOL_SYS_LIB_STRIP
3341AC_LIBTOOL_DLOPEN_SELF($1) 3499AC_LIBTOOL_DLOPEN_SELF
3342 3500
3343# Report which librarie types wil actually be built 3501# Report which library types will actually be built
3344AC_MSG_CHECKING([if libtool supports shared libraries]) 3502AC_MSG_CHECKING([if libtool supports shared libraries])
3345AC_MSG_RESULT([$can_build_shared]) 3503AC_MSG_RESULT([$can_build_shared])
3346 3504
3347AC_MSG_CHECKING([whether to build shared libraries]) 3505AC_MSG_CHECKING([whether to build shared libraries])
3348test "$can_build_shared" = "no" && enable_shared=no 3506test "$can_build_shared" = "no" && enable_shared=no
3349 3507
3350# On AIX, shared libraries and static libraries use the same namespace, and 3508# On AIX, shared libraries and static libraries use the same namespace, and
3351# are all built from PIC. 3509# are all built from PIC.
3352case "$host_os" in 3510case $host_os in
3353aix3*) 3511aix3*)
3354 test "$enable_shared" = yes && enable_static=no 3512 test "$enable_shared" = yes && enable_static=no
3355 if test -n "$RANLIB"; then 3513 if test -n "$RANLIB"; then
3356 archive_cmds="$archive_cmds~\$RANLIB \$lib" 3514 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3357 postinstall_cmds='$RANLIB $lib' 3515 postinstall_cmds='$RANLIB $lib'
3358 fi 3516 fi
3359 ;; 3517 ;;
3360 3518
3361aix4*) 3519aix4* | aix5*)
3362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3520 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3363 test "$enable_shared" = yes && enable_static=no 3521 test "$enable_shared" = yes && enable_static=no
3364 fi
3365 ;;
3366 darwin* | rhapsody*)
3367 if test "$GCC" = yes; then
3368 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3369 case "$host_os" in
3370 rhapsody* | darwin1.[[012]])
3371 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3372 ;;
3373 *) # Darwin 1.3 on
3374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3375 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3376 else
3377 case ${MACOSX_DEPLOYMENT_TARGET} in
3378 10.[[012]])
3379 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3380 ;;
3381 10.*)
3382 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
3383 ;;
3384 esac
3385 fi
3386 ;;
3387 esac
3388 output_verbose_link_cmd='echo'
3389 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3390 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3391 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3392 _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}'
3393 _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}'
3394 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3395 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3396 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3397 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3398 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3399 else
3400 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3401 fi 3522 fi
3402 ;; 3523 ;;
3403esac 3524esac
3404AC_MSG_RESULT([$enable_shared]) 3525AC_MSG_RESULT([$enable_shared])
3405 3526
3422# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 3543# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3423AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 3544AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3424AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 3545AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3425[AC_LANG_PUSH(C++) 3546[AC_LANG_PUSH(C++)
3426AC_REQUIRE([AC_PROG_CXX]) 3547AC_REQUIRE([AC_PROG_CXX])
3427AC_REQUIRE([AC_PROG_CXXCPP]) 3548AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3428 3549
3429_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3550_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3430_LT_AC_TAGVAR(allow_undefined_flag, $1)= 3551_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3431_LT_AC_TAGVAR(always_export_symbols, $1)=no 3552_LT_AC_TAGVAR(always_export_symbols, $1)=no
3432_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 3553_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3434_LT_AC_TAGVAR(hardcode_direct, $1)=no 3555_LT_AC_TAGVAR(hardcode_direct, $1)=no
3435_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 3556_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3436_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 3557_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3437_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3558_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3438_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 3559_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3560_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3439_LT_AC_TAGVAR(hardcode_automatic, $1)=no 3561_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3440_LT_AC_TAGVAR(module_cmds, $1)= 3562_LT_AC_TAGVAR(module_cmds, $1)=
3441_LT_AC_TAGVAR(module_expsym_cmds, $1)= 3563_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3442_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 3564_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3443_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3565_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3451_LT_AC_TAGVAR(predeps, $1)= 3573_LT_AC_TAGVAR(predeps, $1)=
3452_LT_AC_TAGVAR(postdeps, $1)= 3574_LT_AC_TAGVAR(postdeps, $1)=
3453_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 3575_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3454 3576
3455# Source file extension for C++ test sources. 3577# Source file extension for C++ test sources.
3456ac_ext=cc 3578ac_ext=cpp
3457 3579
3458# Object file extension for compiled C++ test sources. 3580# Object file extension for compiled C++ test sources.
3459objext=o 3581objext=o
3460_LT_AC_TAGVAR(objext, $1)=$objext 3582_LT_AC_TAGVAR(objext, $1)=$objext
3461 3583
3462# Code to be used in simple compile tests 3584# Code to be used in simple compile tests
3463lt_simple_compile_test_code="int some_variable = 0;\n" 3585lt_simple_compile_test_code="int some_variable = 0;\n"
3464 3586
3465# Code to be used in simple link tests 3587# Code to be used in simple link tests
3466lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' 3588lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3467 3589
3468# ltmain only uses $CC for tagged configurations so make sure $CC is set. 3590# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3469_LT_AC_SYS_COMPILER 3591_LT_AC_SYS_COMPILER
3592
3593# save warnings/boilerplate of simple test code
3594_LT_COMPILER_BOILERPLATE
3595_LT_LINKER_BOILERPLATE
3470 3596
3471# Allow CC to be a program name with arguments. 3597# Allow CC to be a program name with arguments.
3472lt_save_CC=$CC 3598lt_save_CC=$CC
3473lt_save_LD=$LD 3599lt_save_LD=$LD
3474lt_save_GCC=$GCC 3600lt_save_GCC=$GCC
3476lt_save_with_gnu_ld=$with_gnu_ld 3602lt_save_with_gnu_ld=$with_gnu_ld
3477lt_save_path_LD=$lt_cv_path_LD 3603lt_save_path_LD=$lt_cv_path_LD
3478if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 3604if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3479 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 3605 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3480else 3606else
3481 unset lt_cv_prog_gnu_ld 3607 $as_unset lt_cv_prog_gnu_ld
3482fi 3608fi
3483if test -n "${lt_cv_path_LDCXX+set}"; then 3609if test -n "${lt_cv_path_LDCXX+set}"; then
3484 lt_cv_path_LD=$lt_cv_path_LDCXX 3610 lt_cv_path_LD=$lt_cv_path_LDCXX
3485else 3611else
3486 unset lt_cv_path_LD 3612 $as_unset lt_cv_path_LD
3487fi 3613fi
3488test -z "${LDCXX+set}" || LD=$LDCXX 3614test -z "${LDCXX+set}" || LD=$LDCXX
3489CC=${CXX-"c++"} 3615CC=${CXX-"c++"}
3490compiler=$CC 3616compiler=$CC
3491_LT_AC_TAGVAR(compiler, $1)=$CC 3617_LT_AC_TAGVAR(compiler, $1)=$CC
3492cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3618_LT_CC_BASENAME([$compiler])
3493 3619
3494# We don't want -fno-exception wen compiling C++ code, so set the 3620# We don't want -fno-exception wen compiling C++ code, so set the
3495# no_builtin_flag separately 3621# no_builtin_flag separately
3496if test "$GXX" = yes; then 3622if test "$GXX" = yes; then
3497 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 3623 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3576 aix_use_runtimelinking=yes 3702 aix_use_runtimelinking=yes
3577 break 3703 break
3578 ;; 3704 ;;
3579 esac 3705 esac
3580 done 3706 done
3707 ;;
3581 esac 3708 esac
3582 3709
3583 exp_sym_flag='-bexport' 3710 exp_sym_flag='-bexport'
3584 no_entry_flag='-bnoentry' 3711 no_entry_flag='-bnoentry'
3585 fi 3712 fi
3594 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3721 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3595 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 3722 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3596 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3723 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3597 3724
3598 if test "$GXX" = yes; then 3725 if test "$GXX" = yes; then
3599 case $host_os in aix4.[012]|aix4.[012].*) 3726 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3600 # We only want to do this on AIX 4.2 and lower, the check 3727 # We only want to do this on AIX 4.2 and lower, the check
3601 # below for broken collect2 doesn't work under 4.3+ 3728 # below for broken collect2 doesn't work under 4.3+
3602 collect2name=`${CC} -print-prog-name=collect2` 3729 collect2name=`${CC} -print-prog-name=collect2`
3603 if test -f "$collect2name" && \ 3730 if test -f "$collect2name" && \
3604 strings "$collect2name" | grep resolve_lib_name >/dev/null 3731 strings "$collect2name" | grep resolve_lib_name >/dev/null
3613 # to unsupported forces relinking 3740 # to unsupported forces relinking
3614 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 3741 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3615 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 3742 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3616 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 3743 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3617 fi 3744 fi
3745 ;;
3618 esac 3746 esac
3619 shared_flag='-shared' 3747 shared_flag='-shared'
3748 if test "$aix_use_runtimelinking" = yes; then
3749 shared_flag="$shared_flag "'${wl}-G'
3750 fi
3620 else 3751 else
3621 # not using gcc 3752 # not using gcc
3622 if test "$host_cpu" = ia64; then 3753 if test "$host_cpu" = ia64; then
3623 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 3754 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3624 # chokes on -Wl,-G. The following line is correct: 3755 # chokes on -Wl,-G. The following line is correct:
3641 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 3772 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3642 # Determine the default libpath from the value encoded in an empty executable. 3773 # Determine the default libpath from the value encoded in an empty executable.
3643 _LT_AC_SYS_LIBPATH_AIX 3774 _LT_AC_SYS_LIBPATH_AIX
3644 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3775 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3645 3776
3646 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 3777 _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"
3647 else 3778 else
3648 if test "$host_cpu" = ia64; then 3779 if test "$host_cpu" = ia64; then
3649 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 3780 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3650 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 3781 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3651 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 3782 _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"
3652 else 3783 else
3653 # Determine the default libpath from the value encoded in an empty executable. 3784 # Determine the default libpath from the value encoded in an empty executable.
3654 _LT_AC_SYS_LIBPATH_AIX 3785 _LT_AC_SYS_LIBPATH_AIX
3655 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 3786 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3656 # Warning - without using the other run time loading flags, 3787 # Warning - without using the other run time loading flags,
3657 # -berok will link without error, but may produce a broken library. 3788 # -berok will link without error, but may produce a broken library.
3658 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 3789 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3659 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 3790 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3660 # -bexpall does not export symbols beginning with underscore (_)
3661 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3662 # Exported symbols can be pulled into shared objects from archives 3791 # Exported symbols can be pulled into shared objects from archives
3663 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 3792 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3664 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 3793 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3665 # This is similar to how AIX traditionally builds it's shared libraries. 3794 # This is similar to how AIX traditionally builds its shared libraries.
3666 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 3795 _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'
3667 fi 3796 fi
3668 fi 3797 fi
3669 ;; 3798 ;;
3799
3800 beos*)
3801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3802 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3803 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3804 # support --undefined. This deserves some investigation. FIXME
3805 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3806 else
3807 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3808 fi
3809 ;;
3810
3670 chorus*) 3811 chorus*)
3671 case $cc_basename in 3812 case $cc_basename in
3672 *) 3813 *)
3673 # FIXME: insert proper C++ library support 3814 # FIXME: insert proper C++ library support
3674 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3815 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 3824 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3684 _LT_AC_TAGVAR(always_export_symbols, $1)=no 3825 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3685 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 3826 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3686 3827
3687 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 3828 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3688 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3829 _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'
3689 # If the export-symbols file already is a .def file (1st line 3830 # If the export-symbols file already is a .def file (1st line
3690 # is EXPORTS), use it as is; otherwise, prepend... 3831 # is EXPORTS), use it as is; otherwise, prepend...
3691 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 3832 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3692 cp $export_symbols $output_objdir/$soname.def; 3833 cp $export_symbols $output_objdir/$soname.def;
3693 else 3834 else
3694 echo EXPORTS > $output_objdir/$soname.def; 3835 echo EXPORTS > $output_objdir/$soname.def;
3695 cat $export_symbols >> $output_objdir/$soname.def; 3836 cat $export_symbols >> $output_objdir/$soname.def;
3696 fi~ 3837 fi~
3697 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 3838 $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'
3698 else 3839 else
3699 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3840 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3700 fi 3841 fi
3701 ;; 3842 ;;
3702
3703 darwin* | rhapsody*) 3843 darwin* | rhapsody*)
3704 if test "$GXX" = yes; then 3844 case $host_os in
3845 rhapsody* | darwin1.[[012]])
3846 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3847 ;;
3848 *) # Darwin 1.3 on
3849 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3850 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3851 else
3852 case ${MACOSX_DEPLOYMENT_TARGET} in
3853 10.[[012]])
3854 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3855 ;;
3856 10.*)
3857 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3858 ;;
3859 esac
3860 fi
3861 ;;
3862 esac
3705 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3863 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3706 case "$host_os" in 3864 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3707 rhapsody* | darwin1.[[012]]) 3865 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3708 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 3866 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3867 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3868 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3869
3870 if test "$GXX" = yes ; then
3871 lt_int_apple_cc_single_mod=no
3872 output_verbose_link_cmd='echo'
3873 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3874 lt_int_apple_cc_single_mod=yes
3709 ;; 3875 fi
3710 *) # Darwin 1.3 on 3876 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3711 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 3877 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3712 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
3713 else 3878 else
3714 case ${MACOSX_DEPLOYMENT_TARGET} in 3879 _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'
3715 10.[[012]]) 3880 fi
3716 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 3881 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3882 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3883 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3884 _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}'
3885 else
3886 _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}'
3887 fi
3888 _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}'
3889 else
3890 case $cc_basename in
3891 xlc*)
3892 output_verbose_link_cmd='echo'
3893 _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'
3894 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3895 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3896 _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}'
3897 _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}'
3717 ;; 3898 ;;
3718 10.*) 3899 *)
3719 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 3900 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3720 ;; 3901 ;;
3721 esac 3902 esac
3722 fi 3903 fi
3723 ;; 3904 ;;
3724 esac
3725 lt_int_apple_cc_single_mod=no
3726 output_verbose_link_cmd='echo'
3727 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3728 lt_int_apple_cc_single_mod=yes
3729 fi
3730 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3731 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3732 else
3733 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
3734 fi
3735 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3736
3737 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3738 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3739 _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}'
3740 else
3741 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
3742 fi
3743 _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}'
3744 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3745 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3746 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3747 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3748 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3749 else
3750 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3751 fi
3752 ;;
3753 3905
3754 dgux*) 3906 dgux*)
3755 case $cc_basename in 3907 case $cc_basename in
3756 ec++) 3908 ec++*)
3757 # FIXME: insert proper C++ library support 3909 # FIXME: insert proper C++ library support
3758 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3910 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3759 ;; 3911 ;;
3760 ghcx) 3912 ghcx*)
3761 # Green Hills C++ Compiler 3913 # Green Hills C++ Compiler
3762 # FIXME: insert proper C++ library support 3914 # FIXME: insert proper C++ library support
3763 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3915 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3764 ;; 3916 ;;
3765 *) 3917 *)
3766 # FIXME: insert proper C++ library support 3918 # FIXME: insert proper C++ library support
3767 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3919 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3768 ;; 3920 ;;
3769 esac 3921 esac
3770 ;; 3922 ;;
3771 freebsd[12]*) 3923 freebsd[[12]]*)
3772 # C++ shared libraries reported to be fairly broken before switch to ELF 3924 # C++ shared libraries reported to be fairly broken before switch to ELF
3773 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3925 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3774 ;; 3926 ;;
3775 freebsd-elf*) 3927 freebsd-elf*)
3776 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3928 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3777 ;; 3929 ;;
3778 freebsd* | kfreebsd*-gnu) 3930 freebsd* | dragonfly*)
3779 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3931 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3780 # conventions 3932 # conventions
3781 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 3933 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3782 ;; 3934 ;;
3783 gnu*) 3935 gnu*)
3790 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3942 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3791 # but as the default 3943 # but as the default
3792 # location of the library. 3944 # location of the library.
3793 3945
3794 case $cc_basename in 3946 case $cc_basename in
3795 CC) 3947 CC*)
3796 # FIXME: insert proper C++ library support 3948 # FIXME: insert proper C++ library support
3797 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3949 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3798 ;; 3950 ;;
3799 aCC) 3951 aCC*)
3800 _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' 3952 _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'
3801 # Commands to make compiler produce verbose output that lists 3953 # Commands to make compiler produce verbose output that lists
3802 # what "hidden" libraries, object files and flags are used when 3954 # what "hidden" libraries, object files and flags are used when
3803 # linking a shared library. 3955 # linking a shared library.
3804 # 3956 #
3805 # There doesn't appear to be a way to prevent this compiler from 3957 # There doesn't appear to be a way to prevent this compiler from
3806 # explicitly linking system object files so we need to strip them 3958 # explicitly linking system object files so we need to strip them
3807 # from the output so that they don't get included in the library 3959 # from the output so that they don't get included in the library
3808 # dependencies. 3960 # dependencies.
3809 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3961 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'
3810 ;; 3962 ;;
3811 *) 3963 *)
3812 if test "$GXX" = yes; then 3964 if test "$GXX" = yes; then
3813 _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' 3965 _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'
3814 else 3966 else
3818 ;; 3970 ;;
3819 esac 3971 esac
3820 ;; 3972 ;;
3821 hpux10*|hpux11*) 3973 hpux10*|hpux11*)
3822 if test $with_gnu_ld = no; then 3974 if test $with_gnu_ld = no; then
3975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3976 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3977
3823 case "$host_cpu" in 3978 case $host_cpu in
3824 hppa*64*) 3979 hppa*64*|ia64*)
3825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3826 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3827 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3828 ;;
3829 ia64*)
3830 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3831 ;; 3981 ;;
3832 *) 3982 *)
3833 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3834 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3835 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3983 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3836 ;; 3984 ;;
3837 esac 3985 esac
3838 fi 3986 fi
3839 case "$host_cpu" in 3987 case $host_cpu in
3840 hppa*64*) 3988 hppa*64*|ia64*)
3841 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3989 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3842 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3990 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3843 ;;
3844 ia64*)
3845 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3846 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3847 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3848 # but as the default
3849 # location of the library.
3850 ;; 3991 ;;
3851 *) 3992 *)
3852 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3993 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3853 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 3994 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3854 # but as the default 3995 # but as the default
3855 # location of the library. 3996 # location of the library.
3856 ;; 3997 ;;
3857 esac 3998 esac
3858 3999
3859 case $cc_basename in 4000 case $cc_basename in
3860 CC) 4001 CC*)
3861 # FIXME: insert proper C++ library support 4002 # FIXME: insert proper C++ library support
3862 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4003 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3863 ;; 4004 ;;
3864 aCC) 4005 aCC*)
3865 case "$host_cpu" in 4006 case $host_cpu in
3866 hppa*64*|ia64*) 4007 hppa*64*)
3867 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 4008 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4009 ;;
4010 ia64*)
4011 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3868 ;; 4012 ;;
3869 *) 4013 *)
3870 _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' 4014 _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'
3871 ;; 4015 ;;
3872 esac 4016 esac
3881 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' 4025 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'
3882 ;; 4026 ;;
3883 *) 4027 *)
3884 if test "$GXX" = yes; then 4028 if test "$GXX" = yes; then
3885 if test $with_gnu_ld = no; then 4029 if test $with_gnu_ld = no; then
3886 case "$host_cpu" in 4030 case $host_cpu in
3887 ia64*|hppa*64*) 4031 hppa*64*)
3888 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 4032 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4033 ;;
4034 ia64*)
4035 _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'
3889 ;; 4036 ;;
3890 *) 4037 *)
3891 _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' 4038 _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'
3892 ;; 4039 ;;
3893 esac 4040 esac
3897 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4044 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3898 fi 4045 fi
3899 ;; 4046 ;;
3900 esac 4047 esac
3901 ;; 4048 ;;
4049 interix3*)
4050 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4051 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4052 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4053 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4054 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4055 # Instead, shared libraries are loaded at an image base (0x10000000 by
4056 # default) and relocated if they conflict, which is a slow very memory
4057 # consuming and fragmenting process. To avoid this, we pick a random,
4058 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4059 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4060 _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'
4061 _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'
4062 ;;
3902 irix5* | irix6*) 4063 irix5* | irix6*)
3903 case $cc_basename in 4064 case $cc_basename in
3904 CC) 4065 CC*)
3905 # SGI C++ 4066 # SGI C++
3906 _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 ${objdir}/so_locations -o $lib' 4067 _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'
3907 4068
3908 # Archives containing C++ object files must be created using 4069 # Archives containing C++ object files must be created using
3909 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 4070 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3910 # necessary to make sure instantiated templates are included 4071 # necessary to make sure instantiated templates are included
3911 # in the archive. 4072 # in the archive.
3912 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 4073 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3913 ;; 4074 ;;
3914 *) 4075 *)
3915 if test "$GXX" = yes; then 4076 if test "$GXX" = yes; then
3916 if test "$with_gnu_ld" = no; then 4077 if test "$with_gnu_ld" = no; then
3917 _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}${objdir}/so_locations -o $lib' 4078 _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'
3918 else 4079 else
3919 _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' 4080 _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'
3920 fi 4081 fi
3921 fi 4082 fi
3922 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4083 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3923 ;; 4084 ;;
3924 esac 4085 esac
3925 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4086 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3926 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4087 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3927 ;; 4088 ;;
3928 linux*) 4089 linux* | k*bsd*-gnu)
3929 case $cc_basename in 4090 case $cc_basename in
3930 KCC) 4091 KCC*)
3931 # Kuck and Associates, Inc. (KAI) C++ Compiler 4092 # Kuck and Associates, Inc. (KAI) C++ Compiler
3932 4093
3933 # KCC will only create a shared library if the output file 4094 # KCC will only create a shared library if the output file
3934 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3935 # to its proper name (with version) after linking. 4096 # to its proper name (with version) after linking.
3950 4111
3951 # Archives containing C++ object files must be created using 4112 # Archives containing C++ object files must be created using
3952 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4113 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3953 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4114 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3954 ;; 4115 ;;
3955 icpc) 4116 icpc*)
3956 # Intel C++ 4117 # Intel C++
3957 with_gnu_ld=yes 4118 with_gnu_ld=yes
4119 # version 8.0 and above of icpc choke on multiply defined symbols
4120 # if we add $predep_objects and $postdep_objects, however 7.1 and
4121 # earlier do not add the objects themselves.
4122 case `$CC -V 2>&1` in
4123 *"Version 7."*)
4124 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4125 _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'
4126 ;;
4127 *) # Version 8.0 or newer
4128 tmp_idyn=
4129 case $host_cpu in
4130 ia64*) tmp_idyn=' -i_dynamic';;
4131 esac
4132 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4133 _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'
4134 ;;
4135 esac
3958 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4136 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3959 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3960 _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'
3961 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 4137 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3962 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 4138 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3963 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 4139 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3964 ;; 4140 ;;
4141 pgCC*)
4142 # Portland Group C++ compiler
4143 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4144 _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'
4145
4146 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4147 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4148 _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'
4149 ;;
3965 cxx) 4150 cxx*)
3966 # Compaq C++ 4151 # Compaq C++
3967 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 4152 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3968 _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' 4153 _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'
3969 4154
3970 runpath_var=LD_RUN_PATH 4155 runpath_var=LD_RUN_PATH
3991 # FIXME: insert proper C++ library support 4176 # FIXME: insert proper C++ library support
3992 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4177 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3993 ;; 4178 ;;
3994 mvs*) 4179 mvs*)
3995 case $cc_basename in 4180 case $cc_basename in
3996 cxx) 4181 cxx*)
3997 # FIXME: insert proper C++ library support 4182 # FIXME: insert proper C++ library support
3998 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4183 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3999 ;; 4184 ;;
4000 *) 4185 *)
4001 # FIXME: insert proper C++ library support 4186 # FIXME: insert proper C++ library support
4002 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4187 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4003 ;; 4188 ;;
4004 esac 4189 esac
4005 ;; 4190 ;;
4006 netbsd*) 4191 netbsd* | netbsdelf*-gnu)
4007 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 4192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4008 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 4193 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4009 wlarc= 4194 wlarc=
4010 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4195 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4011 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 4196 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4012 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4197 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4013 fi 4198 fi
4014 # Workaround some broken pre-1.5 toolchains 4199 # Workaround some broken pre-1.5 toolchains
4015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 4200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4016 ;; 4201 ;;
4202 openbsd2*)
4203 # C++ shared libraries are fairly broken
4204 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4205 ;;
4206 openbsd*)
4207 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4208 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4209 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4210 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4212 _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'
4213 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4214 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4215 fi
4216 output_verbose_link_cmd='echo'
4217 ;;
4017 osf3*) 4218 osf3*)
4018 case $cc_basename in 4219 case $cc_basename in
4019 KCC) 4220 KCC*)
4020 # Kuck and Associates, Inc. (KAI) C++ Compiler 4221 # Kuck and Associates, Inc. (KAI) C++ Compiler
4021 4222
4022 # KCC will only create a shared library if the output file 4223 # KCC will only create a shared library if the output file
4023 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4024 # to its proper name (with version) after linking. 4225 # to its proper name (with version) after linking.
4030 # Archives containing C++ object files must be created using 4231 # Archives containing C++ object files must be created using
4031 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 4232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4032 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 4233 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4033 4234
4034 ;; 4235 ;;
4035 RCC) 4236 RCC*)
4036 # Rational C++ 2.4.1 4237 # Rational C++ 2.4.1
4037 # FIXME: insert proper C++ library support 4238 # FIXME: insert proper C++ library support
4038 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4239 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4039 ;; 4240 ;;
4040 cxx) 4241 cxx*)
4041 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4242 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4042 _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 ${objdir}/so_locations -o $lib' 4243 _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'
4043 4244
4044 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4245 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4045 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4246 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4046 4247
4047 # Commands to make compiler produce verbose output that lists 4248 # Commands to make compiler produce verbose output that lists
4055 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' 4256 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'
4056 ;; 4257 ;;
4057 *) 4258 *)
4058 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4059 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4260 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4060 _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}${objdir}/so_locations -o $lib' 4261 _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'
4061 4262
4062 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4263 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4063 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4264 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4064 4265
4065 # Commands to make compiler produce verbose output that lists 4266 # Commands to make compiler produce verbose output that lists
4074 ;; 4275 ;;
4075 esac 4276 esac
4076 ;; 4277 ;;
4077 osf4* | osf5*) 4278 osf4* | osf5*)
4078 case $cc_basename in 4279 case $cc_basename in
4079 KCC) 4280 KCC*)
4080 # Kuck and Associates, Inc. (KAI) C++ Compiler 4281 # Kuck and Associates, Inc. (KAI) C++ Compiler
4081 4282
4082 # KCC will only create a shared library if the output file 4283 # KCC will only create a shared library if the output file
4083 # ends with ".so" (or ".sl" for HP-UX), so rename the library 4284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
4084 # to its proper name (with version) after linking. 4285 # to its proper name (with version) after linking.
4089 4290
4090 # Archives containing C++ object files must be created using 4291 # Archives containing C++ object files must be created using
4091 # the KAI C++ compiler. 4292 # the KAI C++ compiler.
4092 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 4293 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4093 ;; 4294 ;;
4094 RCC) 4295 RCC*)
4095 # Rational C++ 2.4.1 4296 # Rational C++ 2.4.1
4096 # FIXME: insert proper C++ library support 4297 # FIXME: insert proper C++ library support
4097 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4298 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4098 ;; 4299 ;;
4099 cxx) 4300 cxx*)
4100 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 4301 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4101 _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 ${objdir}/so_locations -o $lib' 4302 _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'
4102 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 4303 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4103 echo "-hidden">> $lib.exp~ 4304 echo "-hidden">> $lib.exp~
4104 $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 $objdir/so_locations -o $lib~ 4305 $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~
4105 $rm $lib.exp' 4306 $rm $lib.exp'
4106 4307
4107 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 4308 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4108 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4309 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4109 4310
4118 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' 4319 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'
4119 ;; 4320 ;;
4120 *) 4321 *)
4121 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 4322 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4122 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 4323 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4123 _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}${objdir}/so_locations -o $lib' 4324 _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'
4124 4325
4125 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 4326 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4126 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 4327 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4127 4328
4128 # Commands to make compiler produce verbose output that lists 4329 # Commands to make compiler produce verbose output that lists
4139 ;; 4340 ;;
4140 psos*) 4341 psos*)
4141 # FIXME: insert proper C++ library support 4342 # FIXME: insert proper C++ library support
4142 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4343 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4143 ;; 4344 ;;
4144 sco*) 4345 sunos4*)
4145 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4146 case $cc_basename in 4346 case $cc_basename in
4147 CC) 4347 CC*)
4348 # Sun C++ 4.x
4349 # FIXME: insert proper C++ library support
4350 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4351 ;;
4352 lcc*)
4353 # Lucid
4148 # FIXME: insert proper C++ library support 4354 # FIXME: insert proper C++ library support
4149 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4355 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4150 ;; 4356 ;;
4151 *) 4357 *)
4152 # FIXME: insert proper C++ library support 4358 # FIXME: insert proper C++ library support
4153 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4359 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4154 ;; 4360 ;;
4155 esac 4361 esac
4156 ;; 4362 ;;
4157 sunos4*)
4158 case $cc_basename in
4159 CC)
4160 # Sun C++ 4.x
4161 # FIXME: insert proper C++ library support
4162 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4163 ;;
4164 lcc)
4165 # Lucid
4166 # FIXME: insert proper C++ library support
4167 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4168 ;;
4169 *)
4170 # FIXME: insert proper C++ library support
4171 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4172 ;;
4173 esac
4174 ;;
4175 solaris*) 4363 solaris*)
4176 case $cc_basename in 4364 case $cc_basename in
4177 CC) 4365 CC*)
4178 # Sun C++ 4.2, 5.x and Centerline C++ 4366 # Sun C++ 4.2, 5.x and Centerline C++
4367 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4179 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 4368 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4180 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 4369 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4181 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 4370 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4182 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 4371 $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'
4183 4372
4184 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 4373 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4185 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 4374 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4186 case $host_os in 4375 case $host_os in
4187 solaris2.[0-5] | solaris2.[0-5].*) ;; 4376 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4188 *) 4377 *)
4189 # The C++ compiler is used as linker so we must use $wl 4378 # The C++ compiler is used as linker so we must use $wl
4190 # flag to pass the commands to the underlying system 4379 # flag to pass the commands to the underlying system
4191 # linker. 4380 # linker. We must also pass each convience library through
4381 # to the system linker between allextract/defaultextract.
4382 # The C++ compiler will combine linker options so we
4383 # cannot just pass the convience library names through
4384 # without $wl.
4192 # Supported since Solaris 2.6 (maybe 2.5.1?) 4385 # Supported since Solaris 2.6 (maybe 2.5.1?)
4193 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 4386 _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'
4194 ;; 4387 ;;
4195 esac 4388 esac
4196 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 4389 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4197 4390
4198 # Commands to make compiler produce verbose output that lists 4391 output_verbose_link_cmd='echo'
4199 # what "hidden" libraries, object files and flags are used when
4200 # linking a shared library.
4201 #
4202 # There doesn't appear to be a way to prevent this compiler from
4203 # explicitly linking system object files so we need to strip them
4204 # from the output so that they don't get included in the library
4205 # dependencies.
4206 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4207 4392
4208 # Archives containing C++ object files must be created using 4393 # Archives containing C++ object files must be created using
4209 # "CC -xar", where "CC" is the Sun C++ compiler. This is 4394 # "CC -xar", where "CC" is the Sun C++ compiler. This is
4210 # necessary to make sure instantiated templates are included 4395 # necessary to make sure instantiated templates are included
4211 # in the archive. 4396 # in the archive.
4212 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 4397 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4213 ;; 4398 ;;
4214 gcx) 4399 gcx*)
4215 # Green Hills C++ Compiler 4400 # Green Hills C++ Compiler
4216 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 4401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4217 4402
4218 # The C++ compiler must be used to create the archive. 4403 # The C++ compiler must be used to create the archive.
4219 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 4404 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4247 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 4432 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4248 fi 4433 fi
4249 ;; 4434 ;;
4250 esac 4435 esac
4251 ;; 4436 ;;
4252 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) 4437 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4438 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4253 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4439 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4440 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4441 runpath_var='LD_RUN_PATH'
4442
4443 case $cc_basename in
4444 CC*)
4445 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4446 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4447 ;;
4448 *)
4449 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4450 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4451 ;;
4452 esac
4453 ;;
4454 sysv5* | sco3.2v5* | sco5v6*)
4455 # Note: We can NOT use -z defs as we might desire, because we do not
4456 # link with -lc, and that would cause any symbols used from libc to
4457 # always be unresolved, which means just about no library would
4458 # ever link correctly. If we're not using GNU ld we use -z text
4459 # though, which does catch some bad symbols but isn't as heavy-handed
4460 # as -z defs.
4461 # For security reasons, it is highly recommended that you always
4462 # use absolute paths for naming shared libraries, and exclude the
4463 # DT_RUNPATH tag from executables and libraries. But doing so
4464 # requires that you compile everything twice, which is a pain.
4465 # So that behaviour is only enabled if SCOABSPATH is set to a
4466 # non-empty value in the environment. Most likely only useful for
4467 # creating official distributions of packages.
4468 # This is a hack until libtool officially supports absolute path
4469 # names for shared libraries.
4470 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4471 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4472 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4473 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4474 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4475 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4476 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4477 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4478 runpath_var='LD_RUN_PATH'
4479
4480 case $cc_basename in
4481 CC*)
4482 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4483 _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'
4484 ;;
4485 *)
4486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4487 _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'
4488 ;;
4489 esac
4254 ;; 4490 ;;
4255 tandem*) 4491 tandem*)
4256 case $cc_basename in 4492 case $cc_basename in
4257 NCC) 4493 NCC*)
4258 # NonStop-UX NCC 3.20 4494 # NonStop-UX NCC 3.20
4259 # FIXME: insert proper C++ library support 4495 # FIXME: insert proper C++ library support
4260 _LT_AC_TAGVAR(ld_shlibs, $1)=no 4496 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4261 ;; 4497 ;;
4262 *) 4498 *)
4285AC_LIBTOOL_PROG_CC_C_O($1) 4521AC_LIBTOOL_PROG_CC_C_O($1)
4286AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4522AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4287AC_LIBTOOL_PROG_LD_SHLIBS($1) 4523AC_LIBTOOL_PROG_LD_SHLIBS($1)
4288AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4524AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4289AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4525AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4290AC_LIBTOOL_SYS_LIB_STRIP
4291AC_LIBTOOL_DLOPEN_SELF($1)
4292 4526
4293AC_LIBTOOL_CONFIG($1) 4527AC_LIBTOOL_CONFIG($1)
4294 4528
4295AC_LANG_POP 4529AC_LANG_POP
4296CC=$lt_save_CC 4530CC=$lt_save_CC
4304lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 4538lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4305lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 4539lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4306])# AC_LIBTOOL_LANG_CXX_CONFIG 4540])# AC_LIBTOOL_LANG_CXX_CONFIG
4307 4541
4308# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 4542# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4309# ------------------------ 4543# ------------------------------------
4310# Figure out "hidden" library dependencies from verbose 4544# Figure out "hidden" library dependencies from verbose
4311# compiler output when linking a shared library. 4545# compiler output when linking a shared library.
4312# Parse the compiler output and extract the necessary 4546# Parse the compiler output and extract the necessary
4313# objects, libraries and library flags. 4547# objects, libraries and library flags.
4314AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 4548AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4358 pre_test_object_deps_done=no 4592 pre_test_object_deps_done=no
4359 4593
4360 # The `*' in the case matches for architectures that use `case' in 4594 # The `*' in the case matches for architectures that use `case' in
4361 # $output_verbose_cmd can trigger glob expansion during the loop 4595 # $output_verbose_cmd can trigger glob expansion during the loop
4362 # eval without this substitution. 4596 # eval without this substitution.
4363 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 4597 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4364 4598
4365 for p in `eval $output_verbose_link_cmd`; do 4599 for p in `eval $output_verbose_link_cmd`; do
4366 case $p in 4600 case $p in
4367 4601
4368 -L* | -R* | -l*) 4602 -L* | -R* | -l*)
4434 echo "libtool.m4: error: problem compiling $1 test program" 4668 echo "libtool.m4: error: problem compiling $1 test program"
4435fi 4669fi
4436 4670
4437$rm -f confest.$objext 4671$rm -f confest.$objext
4438 4672
4673# PORTME: override above test on systems where it is broken
4674ifelse([$1],[CXX],
4675[case $host_os in
4676interix3*)
4677 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4678 # hack all around it, let's just trust "g++" to DTRT.
4679 _LT_AC_TAGVAR(predep_objects,$1)=
4680 _LT_AC_TAGVAR(postdep_objects,$1)=
4681 _LT_AC_TAGVAR(postdeps,$1)=
4682 ;;
4683
4684solaris*)
4685 case $cc_basename in
4686 CC*)
4687 # Adding this requires a known-good setup of shared libraries for
4688 # Sun compiler versions before 5.6, else PIC objects from an old
4689 # archive will be linked into the output, leading to subtle bugs.
4690 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4691 ;;
4692 esac
4693 ;;
4694esac
4695])
4696
4439case " $_LT_AC_TAGVAR(postdeps, $1) " in 4697case " $_LT_AC_TAGVAR(postdeps, $1) " in
4440*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 4698*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4441esac 4699esac
4442])# AC_LIBTOOL_POSTDEP_PREDEP 4700])# AC_LIBTOOL_POSTDEP_PREDEP
4443 4701
4444# AC_LIBTOOL_LANG_F77_CONFIG 4702# AC_LIBTOOL_LANG_F77_CONFIG
4445# ------------------------ 4703# --------------------------
4446# Ensure that the configuration vars for the C compiler are 4704# Ensure that the configuration vars for the C compiler are
4447# suitably defined. Those variables are subsequently used by 4705# suitably defined. Those variables are subsequently used by
4448# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4706# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4449AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 4707AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4450AC_DEFUN([_LT_AC_LANG_F77_CONFIG], 4708AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4484lt_simple_link_test_code=" program t\n end\n" 4742lt_simple_link_test_code=" program t\n end\n"
4485 4743
4486# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4744# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4487_LT_AC_SYS_COMPILER 4745_LT_AC_SYS_COMPILER
4488 4746
4747# save warnings/boilerplate of simple test code
4748_LT_COMPILER_BOILERPLATE
4749_LT_LINKER_BOILERPLATE
4750
4489# Allow CC to be a program name with arguments. 4751# Allow CC to be a program name with arguments.
4490lt_save_CC="$CC" 4752lt_save_CC="$CC"
4491CC=${F77-"f77"} 4753CC=${F77-"f77"}
4492compiler=$CC 4754compiler=$CC
4493_LT_AC_TAGVAR(compiler, $1)=$CC 4755_LT_AC_TAGVAR(compiler, $1)=$CC
4494cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 4756_LT_CC_BASENAME([$compiler])
4495 4757
4496AC_MSG_CHECKING([if libtool supports shared libraries]) 4758AC_MSG_CHECKING([if libtool supports shared libraries])
4497AC_MSG_RESULT([$can_build_shared]) 4759AC_MSG_RESULT([$can_build_shared])
4498 4760
4499AC_MSG_CHECKING([whether to build shared libraries]) 4761AC_MSG_CHECKING([whether to build shared libraries])
4500test "$can_build_shared" = "no" && enable_shared=no 4762test "$can_build_shared" = "no" && enable_shared=no
4501 4763
4502# On AIX, shared libraries and static libraries use the same namespace, and 4764# On AIX, shared libraries and static libraries use the same namespace, and
4503# are all built from PIC. 4765# are all built from PIC.
4504case "$host_os" in 4766case $host_os in
4505aix3*) 4767aix3*)
4506 test "$enable_shared" = yes && enable_static=no 4768 test "$enable_shared" = yes && enable_static=no
4507 if test -n "$RANLIB"; then 4769 if test -n "$RANLIB"; then
4508 archive_cmds="$archive_cmds~\$RANLIB \$lib" 4770 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4509 postinstall_cmds='$RANLIB $lib' 4771 postinstall_cmds='$RANLIB $lib'
4510 fi 4772 fi
4511 ;; 4773 ;;
4512aix4*) 4774aix4* | aix5*)
4775 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4513 test "$enable_shared" = yes && enable_static=no 4776 test "$enable_shared" = yes && enable_static=no
4777 fi
4514 ;; 4778 ;;
4515esac 4779esac
4516AC_MSG_RESULT([$enable_shared]) 4780AC_MSG_RESULT([$enable_shared])
4517 4781
4518AC_MSG_CHECKING([whether to build static libraries]) 4782AC_MSG_CHECKING([whether to build static libraries])
4519# Make sure either enable_shared or enable_static is yes. 4783# Make sure either enable_shared or enable_static is yes.
4520test "$enable_shared" = yes || enable_static=yes 4784test "$enable_shared" = yes || enable_static=yes
4521AC_MSG_RESULT([$enable_static]) 4785AC_MSG_RESULT([$enable_static])
4522
4523test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4524 4786
4525_LT_AC_TAGVAR(GCC, $1)="$G77" 4787_LT_AC_TAGVAR(GCC, $1)="$G77"
4526_LT_AC_TAGVAR(LD, $1)="$LD" 4788_LT_AC_TAGVAR(LD, $1)="$LD"
4527 4789
4528AC_LIBTOOL_PROG_COMPILER_PIC($1) 4790AC_LIBTOOL_PROG_COMPILER_PIC($1)
4529AC_LIBTOOL_PROG_CC_C_O($1) 4791AC_LIBTOOL_PROG_CC_C_O($1)
4530AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4792AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4531AC_LIBTOOL_PROG_LD_SHLIBS($1) 4793AC_LIBTOOL_PROG_LD_SHLIBS($1)
4532AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4794AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4533AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4795AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4534AC_LIBTOOL_SYS_LIB_STRIP
4535
4536 4796
4537AC_LIBTOOL_CONFIG($1) 4797AC_LIBTOOL_CONFIG($1)
4538 4798
4539AC_LANG_POP 4799AC_LANG_POP
4540CC="$lt_save_CC" 4800CC="$lt_save_CC"
4559 4819
4560# Code to be used in simple compile tests 4820# Code to be used in simple compile tests
4561lt_simple_compile_test_code="class foo {}\n" 4821lt_simple_compile_test_code="class foo {}\n"
4562 4822
4563# Code to be used in simple link tests 4823# Code to be used in simple link tests
4564lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 4824lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4565 4825
4566# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4826# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4567_LT_AC_SYS_COMPILER 4827_LT_AC_SYS_COMPILER
4828
4829# save warnings/boilerplate of simple test code
4830_LT_COMPILER_BOILERPLATE
4831_LT_LINKER_BOILERPLATE
4568 4832
4569# Allow CC to be a program name with arguments. 4833# Allow CC to be a program name with arguments.
4570lt_save_CC="$CC" 4834lt_save_CC="$CC"
4571CC=${GCJ-"gcj"} 4835CC=${GCJ-"gcj"}
4572compiler=$CC 4836compiler=$CC
4573_LT_AC_TAGVAR(compiler, $1)=$CC 4837_LT_AC_TAGVAR(compiler, $1)=$CC
4838_LT_CC_BASENAME([$compiler])
4574 4839
4575# GCJ did not exist at the time GCC didn't implicitly link libc in. 4840# GCJ did not exist at the time GCC didn't implicitly link libc in.
4576_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 4841_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4842
4843_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4577 4844
4578AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 4845AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4579AC_LIBTOOL_PROG_COMPILER_PIC($1) 4846AC_LIBTOOL_PROG_COMPILER_PIC($1)
4580AC_LIBTOOL_PROG_CC_C_O($1) 4847AC_LIBTOOL_PROG_CC_C_O($1)
4581AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 4848AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4582AC_LIBTOOL_PROG_LD_SHLIBS($1) 4849AC_LIBTOOL_PROG_LD_SHLIBS($1)
4583AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 4850AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4584AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 4851AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4585AC_LIBTOOL_SYS_LIB_STRIP
4586AC_LIBTOOL_DLOPEN_SELF($1)
4587 4852
4588AC_LIBTOOL_CONFIG($1) 4853AC_LIBTOOL_CONFIG($1)
4589 4854
4590AC_LANG_RESTORE 4855AC_LANG_RESTORE
4591CC="$lt_save_CC" 4856CC="$lt_save_CC"
4592])# AC_LIBTOOL_LANG_GCJ_CONFIG 4857])# AC_LIBTOOL_LANG_GCJ_CONFIG
4593 4858
4594 4859
4595# AC_LIBTOOL_LANG_RC_CONFIG 4860# AC_LIBTOOL_LANG_RC_CONFIG
4596# -------------------------- 4861# -------------------------
4597# Ensure that the configuration vars for the Windows resource compiler are 4862# Ensure that the configuration vars for the Windows resource compiler are
4598# suitably defined. Those variables are subsequently used by 4863# suitably defined. Those variables are subsequently used by
4599# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 4864# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4600AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 4865AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4601AC_DEFUN([_LT_AC_LANG_RC_CONFIG], 4866AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4615lt_simple_link_test_code="$lt_simple_compile_test_code" 4880lt_simple_link_test_code="$lt_simple_compile_test_code"
4616 4881
4617# ltmain only uses $CC for tagged configurations so make sure $CC is set. 4882# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4618_LT_AC_SYS_COMPILER 4883_LT_AC_SYS_COMPILER
4619 4884
4885# save warnings/boilerplate of simple test code
4886_LT_COMPILER_BOILERPLATE
4887_LT_LINKER_BOILERPLATE
4888
4620# Allow CC to be a program name with arguments. 4889# Allow CC to be a program name with arguments.
4621lt_save_CC="$CC" 4890lt_save_CC="$CC"
4622CC=${RC-"windres"} 4891CC=${RC-"windres"}
4623compiler=$CC 4892compiler=$CC
4624_LT_AC_TAGVAR(compiler, $1)=$CC 4893_LT_AC_TAGVAR(compiler, $1)=$CC
4894_LT_CC_BASENAME([$compiler])
4625_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 4895_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4626 4896
4627AC_LIBTOOL_CONFIG($1) 4897AC_LIBTOOL_CONFIG($1)
4628 4898
4629AC_LANG_RESTORE 4899AC_LANG_RESTORE
4649 setopt NO_GLOB_SUBST 4919 setopt NO_GLOB_SUBST
4650 fi 4920 fi
4651 # Now quote all the things that may contain metacharacters while being 4921 # Now quote all the things that may contain metacharacters while being
4652 # careful not to overquote the AC_SUBSTed values. We take copies of the 4922 # careful not to overquote the AC_SUBSTed values. We take copies of the
4653 # variables and quote the copies for generation of the libtool script. 4923 # variables and quote the copies for generation of the libtool script.
4654 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 4924 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4655 SED SHELL STRIP \ 4925 SED SHELL STRIP \
4656 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 4926 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4657 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 4927 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4658 deplibs_check_method reload_flag reload_cmds need_locks \ 4928 deplibs_check_method reload_flag reload_cmds need_locks \
4659 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 4929 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4755# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 5025# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4756# General Public License for more details. 5026# General Public License for more details.
4757# 5027#
4758# You should have received a copy of the GNU General Public License 5028# You should have received a copy of the GNU General Public License
4759# along with this program; if not, write to the Free Software 5029# along with this program; if not, write to the Free Software
4760# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 5030# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4761# 5031#
4762# As a special exception to the GNU General Public License, if you 5032# As a special exception to the GNU General Public License, if you
4763# distribute this file as part of a program that contains a 5033# distribute this file as part of a program that contains a
4764# configuration script generated by Autoconf, you may include it under 5034# configuration script generated by Autoconf, you may include it under
4765# the same distribution terms that you use for the rest of that program. 5035# the same distribution terms that you use for the rest of that program.
4766 5036
4767# A sed program that does not truncate output. 5037# A sed program that does not truncate output.
4768SED=$lt_SED 5038SED=$lt_SED
4769 5039
4770# Sed that helps us avoid accidentally triggering echo(1) options like -n. 5040# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4771Xsed="$SED -e s/^X//" 5041Xsed="$SED -e 1s/^X//"
4772 5042
4773# The HP-UX ksh and POSIX shell print the target directory to stdout 5043# The HP-UX ksh and POSIX shell print the target directory to stdout
4774# if CDPATH is set. 5044# if CDPATH is set.
4775if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 5045(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4776 5046
4777# The names of the tagged configurations supported by this script. 5047# The names of the tagged configurations supported by this script.
4778available_tags= 5048available_tags=
4779 5049
4780# ### BEGIN LIBTOOL CONFIG], 5050# ### BEGIN LIBTOOL CONFIG],
4801fast_install=$enable_fast_install 5071fast_install=$enable_fast_install
4802 5072
4803# The host system. 5073# The host system.
4804host_alias=$host_alias 5074host_alias=$host_alias
4805host=$host 5075host=$host
5076host_os=$host_os
5077
5078# The build system.
5079build_alias=$build_alias
5080build=$build
5081build_os=$build_os
4806 5082
4807# An echo program that does not interpret backslashes. 5083# An echo program that does not interpret backslashes.
4808echo=$lt_echo 5084echo=$lt_echo
4809 5085
4810# The archiver. 5086# The archiver.
4812AR_FLAGS=$lt_AR_FLAGS 5088AR_FLAGS=$lt_AR_FLAGS
4813 5089
4814# A C compiler. 5090# A C compiler.
4815LTCC=$lt_LTCC 5091LTCC=$lt_LTCC
4816 5092
5093# LTCC compiler flags.
5094LTCFLAGS=$lt_LTCFLAGS
5095
4817# A language-specific compiler. 5096# A language-specific compiler.
4818CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 5097CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4819 5098
4820# Is the compiler the GNU C compiler? 5099# Is the compiler the GNU C compiler?
4821with_gcc=$_LT_AC_TAGVAR(GCC, $1) 5100with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4862 5141
4863# Old archive suffix (normally "a"). 5142# Old archive suffix (normally "a").
4864libext="$libext" 5143libext="$libext"
4865 5144
4866# Shared library suffix (normally ".so"). 5145# Shared library suffix (normally ".so").
4867shrext='$shrext' 5146shrext_cmds='$shrext_cmds'
4868 5147
4869# Executable file suffix (normally ""). 5148# Executable file suffix (normally "").
4870exeext="$exeext" 5149exeext="$exeext"
4871 5150
4872# Additional compiler flags for building library objects. 5151# Additional compiler flags for building library objects.
4877max_cmd_len=$lt_cv_sys_max_cmd_len 5156max_cmd_len=$lt_cv_sys_max_cmd_len
4878 5157
4879# Does compiler simultaneously support -c and -o options? 5158# Does compiler simultaneously support -c and -o options?
4880compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 5159compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4881 5160
4882# Must we lock files when doing compilation ? 5161# Must we lock files when doing compilation?
4883need_locks=$lt_need_locks 5162need_locks=$lt_need_locks
4884 5163
4885# Do we need the lib prefix for modules? 5164# Do we need the lib prefix for modules?
4886need_lib_prefix=$need_lib_prefix 5165need_lib_prefix=$need_lib_prefix
4887 5166
5151symcode='[[BCDEGRST]]' 5430symcode='[[BCDEGRST]]'
5152 5431
5153# Regexp to match symbols that can be accessed directly from C. 5432# Regexp to match symbols that can be accessed directly from C.
5154sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 5433sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5155 5434
5156# Transform the above into a raw symbol and a C symbol.
5157symxfrm='\1 \2\3 \3'
5158
5159# Transform an extracted symbol line into a proper C declaration 5435# Transform an extracted symbol line into a proper C declaration
5160lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5436lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5161 5437
5162# Transform an extracted symbol line into symbol name and symbol address 5438# Transform an extracted symbol line into symbol name and symbol address
5163lt_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'" 5439lt_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'"
5175 symcode='[[ABCDEGRST]]' 5451 symcode='[[ABCDEGRST]]'
5176 fi 5452 fi
5177 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5178 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'" 5454 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'"
5179 ;; 5455 ;;
5456linux* | k*bsd*-gnu)
5457 if test "$host_cpu" = ia64; then
5458 symcode='[[ABCDGIRSTW]]'
5459 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5460 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'"
5461 fi
5462 ;;
5180irix* | nonstopux*) 5463irix* | nonstopux*)
5181 symcode='[[BCDEGRST]]' 5464 symcode='[[BCDEGRST]]'
5182 ;; 5465 ;;
5183osf*) 5466osf*)
5184 symcode='[[BCDEGQRST]]' 5467 symcode='[[BCDEGQRST]]'
5185 ;; 5468 ;;
5186solaris* | sysv5*) 5469solaris*)
5187 symcode='[[BDRT]]' 5470 symcode='[[BDRT]]'
5471 ;;
5472sco3.2v5*)
5473 symcode='[[DT]]'
5474 ;;
5475sysv4.2uw2*)
5476 symcode='[[DT]]'
5477 ;;
5478sysv5* | sco5v6* | unixware* | OpenUNIX*)
5479 symcode='[[ABDT]]'
5188 ;; 5480 ;;
5189sysv4) 5481sysv4)
5190 symcode='[[DFNSTU]]' 5482 symcode='[[DFNSTU]]'
5191 ;; 5483 ;;
5192esac 5484esac
5206esac 5498esac
5207 5499
5208# Try without a prefix undercore, then with it. 5500# Try without a prefix undercore, then with it.
5209for ac_symprfx in "" "_"; do 5501for ac_symprfx in "" "_"; do
5210 5502
5503 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5504 symxfrm="\\1 $ac_symprfx\\2 \\2"
5505
5211 # Write the raw and C identifiers. 5506 # Write the raw and C identifiers.
5212 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5507 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5213 5508
5214 # Check to see that the pipe works correctly. 5509 # Check to see that the pipe works correctly.
5215 pipe_works=no 5510 pipe_works=no
5216 5511
5217 rm -f conftest* 5512 rm -f conftest*
5363 ;; 5658 ;;
5364 *djgpp*) 5659 *djgpp*)
5365 # DJGPP does not support shared libraries at all 5660 # DJGPP does not support shared libraries at all
5366 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5661 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5367 ;; 5662 ;;
5663 interix3*)
5664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5665 # Instead, we relocate shared libraries at runtime.
5666 ;;
5368 sysv4*MP*) 5667 sysv4*MP*)
5369 if test -d /usr/nec; then 5668 if test -d /usr/nec; then
5370 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 5669 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5371 fi 5670 fi
5372 ;; 5671 ;;
5373 hpux*) 5672 hpux*)
5374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5673 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5375 # not for PA HP-UX. 5674 # not for PA HP-UX.
5376 case "$host_cpu" in 5675 case $host_cpu in
5377 hppa*64*|ia64*) 5676 hppa*64*|ia64*)
5378 ;; 5677 ;;
5379 *) 5678 *)
5380 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5679 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5381 ;; 5680 ;;
5396 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5695 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5397 fi 5696 fi
5398 ;; 5697 ;;
5399 chorus*) 5698 chorus*)
5400 case $cc_basename in 5699 case $cc_basename in
5401 cxch68) 5700 cxch68*)
5402 # Green Hills C++ Compiler 5701 # Green Hills C++ Compiler
5403 # _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" 5702 # _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"
5404 ;; 5703 ;;
5405 esac 5704 esac
5406 ;; 5705 ;;
5706 darwin*)
5707 # PIC is the default on this platform
5708 # Common symbols not allowed in MH_DYLIB files
5709 case $cc_basename in
5710 xlc*)
5711 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5712 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5713 ;;
5714 esac
5715 ;;
5407 dgux*) 5716 dgux*)
5408 case $cc_basename in 5717 case $cc_basename in
5409 ec++) 5718 ec++*)
5410 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5719 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5411 ;; 5720 ;;
5412 ghcx) 5721 ghcx*)
5413 # Green Hills C++ Compiler 5722 # Green Hills C++ Compiler
5414 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5723 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5415 ;; 5724 ;;
5416 *) 5725 *)
5417 ;; 5726 ;;
5418 esac 5727 esac
5419 ;; 5728 ;;
5420 freebsd* | kfreebsd*-gnu) 5729 freebsd* | dragonfly*)
5421 # FreeBSD uses GNU C++ 5730 # FreeBSD uses GNU C++
5422 ;; 5731 ;;
5423 hpux9* | hpux10* | hpux11*) 5732 hpux9* | hpux10* | hpux11*)
5424 case $cc_basename in 5733 case $cc_basename in
5425 CC) 5734 CC*)
5426 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5735 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5427 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5736 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5428 if test "$host_cpu" != ia64; then 5737 if test "$host_cpu" != ia64; then
5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5738 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5430 fi 5739 fi
5431 ;; 5740 ;;
5432 aCC) 5741 aCC*)
5433 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5742 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5434 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 5743 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5435 case "$host_cpu" in 5744 case $host_cpu in
5436 hppa*64*|ia64*) 5745 hppa*64*|ia64*)
5437 # +Z the default 5746 # +Z the default
5438 ;; 5747 ;;
5439 *) 5748 *)
5440 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 5749 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5443 ;; 5752 ;;
5444 *) 5753 *)
5445 ;; 5754 ;;
5446 esac 5755 esac
5447 ;; 5756 ;;
5757 interix*)
5758 # This is c89, which is MS Visual C++ (no shared libs)
5759 # Anyone wants to do a port?
5760 ;;
5448 irix5* | irix6* | nonstopux*) 5761 irix5* | irix6* | nonstopux*)
5449 case $cc_basename in 5762 case $cc_basename in
5450 CC) 5763 CC*)
5451 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5764 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5452 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5765 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5453 # CC pic flag -KPIC is the default. 5766 # CC pic flag -KPIC is the default.
5454 ;; 5767 ;;
5455 *) 5768 *)
5456 ;; 5769 ;;
5457 esac 5770 esac
5458 ;; 5771 ;;
5459 linux*) 5772 linux* | k*bsd*-gnu)
5460 case $cc_basename in 5773 case $cc_basename in
5461 KCC) 5774 KCC*)
5462 # KAI C++ Compiler 5775 # KAI C++ Compiler
5463 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5776 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5464 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5777 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5465 ;; 5778 ;;
5466 icpc) 5779 icpc* | ecpc*)
5467 # Intel C++ 5780 # Intel C++
5468 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5781 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5469 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5782 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5470 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5783 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5471 ;; 5784 ;;
5785 pgCC*)
5786 # Portland Group C++ compiler.
5787 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5788 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5789 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5790 ;;
5472 cxx) 5791 cxx*)
5473 # Compaq C++ 5792 # Compaq C++
5474 # Make sure the PIC flag is empty. It appears that all Alpha 5793 # Make sure the PIC flag is empty. It appears that all Alpha
5475 # Linux and Compaq Tru64 Unix objects are PIC. 5794 # Linux and Compaq Tru64 Unix objects are PIC.
5476 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5795 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5477 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 5796 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5484 ;; 5803 ;;
5485 m88k*) 5804 m88k*)
5486 ;; 5805 ;;
5487 mvs*) 5806 mvs*)
5488 case $cc_basename in 5807 case $cc_basename in
5489 cxx) 5808 cxx*)
5490 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 5809 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5491 ;; 5810 ;;
5492 *) 5811 *)
5493 ;; 5812 ;;
5494 esac 5813 esac
5495 ;; 5814 ;;
5496 netbsd*) 5815 netbsd* | netbsdelf*-gnu)
5497 ;; 5816 ;;
5498 osf3* | osf4* | osf5*) 5817 osf3* | osf4* | osf5*)
5499 case $cc_basename in 5818 case $cc_basename in
5500 KCC) 5819 KCC*)
5501 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 5820 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5502 ;; 5821 ;;
5503 RCC) 5822 RCC*)
5504 # Rational C++ 2.4.1 5823 # Rational C++ 2.4.1
5505 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5824 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5506 ;; 5825 ;;
5507 cxx) 5826 cxx*)
5508 # Digital/Compaq C++ 5827 # Digital/Compaq C++
5509 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5828 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5510 # Make sure the PIC flag is empty. It appears that all Alpha 5829 # Make sure the PIC flag is empty. It appears that all Alpha
5511 # Linux and Compaq Tru64 Unix objects are PIC. 5830 # Linux and Compaq Tru64 Unix objects are PIC.
5512 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 5831 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5516 ;; 5835 ;;
5517 esac 5836 esac
5518 ;; 5837 ;;
5519 psos*) 5838 psos*)
5520 ;; 5839 ;;
5521 sco*)
5522 case $cc_basename in
5523 CC)
5524 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5525 ;;
5526 *)
5527 ;;
5528 esac
5529 ;;
5530 solaris*) 5840 solaris*)
5531 case $cc_basename in 5841 case $cc_basename in
5532 CC) 5842 CC*)
5533 # Sun C++ 4.2, 5.x and Centerline C++ 5843 # Sun C++ 4.2, 5.x and Centerline C++
5534 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5844 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5535 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5845 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5536 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 5846 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5537 ;; 5847 ;;
5538 gcx) 5848 gcx*)
5539 # Green Hills C++ Compiler 5849 # Green Hills C++ Compiler
5540 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 5850 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5541 ;; 5851 ;;
5542 *) 5852 *)
5543 ;; 5853 ;;
5544 esac 5854 esac
5545 ;; 5855 ;;
5546 sunos4*) 5856 sunos4*)
5547 case $cc_basename in 5857 case $cc_basename in
5548 CC) 5858 CC*)
5549 # Sun C++ 4.x 5859 # Sun C++ 4.x
5550 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5860 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5551 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5861 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5552 ;; 5862 ;;
5553 lcc) 5863 lcc*)
5554 # Lucid 5864 # Lucid
5555 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 5865 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5556 ;; 5866 ;;
5557 *) 5867 *)
5558 ;; 5868 ;;
5559 esac 5869 esac
5560 ;; 5870 ;;
5561 tandem*) 5871 tandem*)
5562 case $cc_basename in 5872 case $cc_basename in
5563 NCC) 5873 NCC*)
5564 # NonStop-UX NCC 3.20 5874 # NonStop-UX NCC 3.20
5565 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 5875 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5566 ;; 5876 ;;
5567 *) 5877 *)
5568 ;; 5878 ;;
5569 esac 5879 esac
5570 ;; 5880 ;;
5571 unixware*) 5881 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5882 case $cc_basename in
5883 CC*)
5884 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5885 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5886 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5887 ;;
5888 esac
5572 ;; 5889 ;;
5573 vxworks*) 5890 vxworks*)
5574 ;; 5891 ;;
5575 *) 5892 *)
5576 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5893 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5613 # PIC is the default on this platform 5930 # PIC is the default on this platform
5614 # Common symbols not allowed in MH_DYLIB files 5931 # Common symbols not allowed in MH_DYLIB files
5615 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 5932 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5616 ;; 5933 ;;
5617 5934
5935 interix3*)
5936 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5937 # Instead, we relocate shared libraries at runtime.
5938 ;;
5939
5618 msdosdjgpp*) 5940 msdosdjgpp*)
5619 # Just because we use GCC doesn't mean we suddenly get shared libraries 5941 # Just because we use GCC doesn't mean we suddenly get shared libraries
5620 # on systems that don't support them. 5942 # on systems that don't support them.
5621 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 5943 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5622 enable_shared=no 5944 enable_shared=no
5629 ;; 5951 ;;
5630 5952
5631 hpux*) 5953 hpux*)
5632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5954 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5633 # not for PA HP-UX. 5955 # not for PA HP-UX.
5634 case "$host_cpu" in 5956 case $host_cpu in
5635 hppa*64*|ia64*) 5957 hppa*64*|ia64*)
5636 # +Z the default 5958 # +Z the default
5637 ;; 5959 ;;
5638 *) 5960 *)
5639 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 5961 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5655 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5977 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5656 else 5978 else
5657 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 5979 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5658 fi 5980 fi
5659 ;; 5981 ;;
5982 darwin*)
5983 # PIC is the default on this platform
5984 # Common symbols not allowed in MH_DYLIB files
5985 case $cc_basename in
5986 xlc*)
5987 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5988 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5989 ;;
5990 esac
5991 ;;
5660 5992
5661 mingw* | pw32* | os2*) 5993 mingw* | pw32* | os2*)
5662 # This hack is so that the source file can tell whether it is being 5994 # This hack is so that the source file can tell whether it is being
5663 # built for inclusion in a dll (and should export symbols for example). 5995 # built for inclusion in a dll (and should export symbols for example).
5664 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 5996 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5666 5998
5667 hpux9* | hpux10* | hpux11*) 5999 hpux9* | hpux10* | hpux11*)
5668 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6000 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5669 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6001 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5670 # not for PA HP-UX. 6002 # not for PA HP-UX.
5671 case "$host_cpu" in 6003 case $host_cpu in
5672 hppa*64*|ia64*) 6004 hppa*64*|ia64*)
5673 # +Z the default 6005 # +Z the default
5674 ;; 6006 ;;
5675 *) 6007 *)
5676 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 6008 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5689 newsos6) 6021 newsos6)
5690 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6022 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5691 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6023 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5692 ;; 6024 ;;
5693 6025
5694 linux*) 6026 linux* | k*bsd*-gnu)
5695 case $CC in 6027 case $cc_basename in
5696 icc* | ecc*) 6028 icc* | ecc*)
5697 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6029 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5698 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6030 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5699 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 6031 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6032 ;;
6033 pgcc* | pgf77* | pgf90* | pgf95*)
6034 # Portland Group compilers (*not* the Pentium gcc compiler,
6035 # which looks to be a dead project)
6036 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6037 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6038 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5700 ;; 6039 ;;
5701 ccc*) 6040 ccc*)
5702 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6041 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5703 # All Alpha code is PIC. 6042 # All Alpha code is PIC.
5704 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6043 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5710 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6049 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5711 # All OSF/1 code is PIC. 6050 # All OSF/1 code is PIC.
5712 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 6051 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5713 ;; 6052 ;;
5714 6053
5715 sco3.2v5*)
5716 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5717 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5718 ;;
5719
5720 solaris*) 6054 solaris*)
5721 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5722 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6055 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5723 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6056 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6057 case $cc_basename in
6058 f77* | f90* | f95*)
6059 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6060 *)
6061 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6062 esac
5724 ;; 6063 ;;
5725 6064
5726 sunos4*) 6065 sunos4*)
5727 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 6066 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5728 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 6067 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5729 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6068 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5730 ;; 6069 ;;
5731 6070
5732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6071 sysv4 | sysv4.2uw2* | sysv4.3*)
5733 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 6072 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5734 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 6073 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5735 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6074 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5736 ;; 6075 ;;
5737 6076
5738 sysv4*MP*) 6077 sysv4*MP*)
5739 if test -d /usr/nec ;then 6078 if test -d /usr/nec ;then
5740 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 6079 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5741 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6080 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5742 fi 6081 fi
6082 ;;
6083
6084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6085 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6086 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6087 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6088 ;;
6089
6090 unicos*)
6091 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6092 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5743 ;; 6093 ;;
5744 6094
5745 uts4*) 6095 uts4*)
5746 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 6096 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5747 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 6097 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5767 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 6117 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5768 esac], 6118 esac],
5769 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6119 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5770 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 6120 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5771fi 6121fi
5772case "$host_os" in 6122case $host_os in
5773 # For platforms which do not support PIC, -DPIC is meaningless: 6123 # For platforms which do not support PIC, -DPIC is meaningless:
5774 *djgpp*) 6124 *djgpp*)
5775 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 6125 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5776 ;; 6126 ;;
5777 *) 6127 *)
5778 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 6128 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5779 ;; 6129 ;;
5780esac 6130esac
6131
6132#
6133# Check to make sure the static flag actually works.
6134#
6135wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6136AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6137 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6138 $lt_tmp_static_flag,
6139 [],
6140 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5781]) 6141])
5782 6142
5783 6143
5784# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 6144# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5785# ------------------------------------ 6145# ------------------------------------
5800 ;; 6160 ;;
5801 pw32*) 6161 pw32*)
5802 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 6162 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5803 ;; 6163 ;;
5804 cygwin* | mingw*) 6164 cygwin* | mingw*)
5805 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 6165 _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'
6166 ;;
6167 linux* | k*bsd*-gnu)
6168 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5806 ;; 6169 ;;
5807 *) 6170 *)
5808 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6171 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5809 ;; 6172 ;;
5810 esac 6173 esac
5843 # platforms (ab)use it in PIC code, but their linkers get confused if 6206 # platforms (ab)use it in PIC code, but their linkers get confused if
5844 # the symbol is explicitly referenced. Since portable code cannot 6207 # the symbol is explicitly referenced. Since portable code cannot
5845 # rely on this symbol name, it's probably fine to never include it in 6208 # rely on this symbol name, it's probably fine to never include it in
5846 # preloaded symbol tables. 6209 # preloaded symbol tables.
5847 extract_expsyms_cmds= 6210 extract_expsyms_cmds=
5848 6211 # Just being paranoid about ensuring that cc_basename is set.
6212 _LT_CC_BASENAME([$compiler])
5849 case $host_os in 6213 case $host_os in
5850 cygwin* | mingw* | pw32*) 6214 cygwin* | mingw* | pw32*)
5851 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6215 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5852 # When not using gcc, we currently assume that we are using 6216 # When not using gcc, we currently assume that we are using
5853 # Microsoft Visual C++. 6217 # Microsoft Visual C++.
5854 if test "$GCC" != yes; then 6218 if test "$GCC" != yes; then
5855 with_gnu_ld=no 6219 with_gnu_ld=no
5856 fi 6220 fi
5857 ;; 6221 ;;
6222 interix*)
6223 # we just hope/assume this is gcc and not c89 (= MSVC++)
6224 with_gnu_ld=yes
6225 ;;
5858 openbsd*) 6226 openbsd*)
5859 with_gnu_ld=no 6227 with_gnu_ld=no
5860 ;; 6228 ;;
5861 esac 6229 esac
5862 6230
5863 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6231 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5864 if test "$with_gnu_ld" = yes; then 6232 if test "$with_gnu_ld" = yes; then
5865 # If archive_cmds runs LD, not CC, wlarc should be empty 6233 # If archive_cmds runs LD, not CC, wlarc should be empty
5866 wlarc='${wl}' 6234 wlarc='${wl}'
6235
6236 # Set some defaults for GNU ld with shared library support. These
6237 # are reset later if shared libraries are not supported. Putting them
6238 # here allows them to be overridden if necessary.
6239 runpath_var=LD_RUN_PATH
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6241 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6242 # ancient GNU ld didn't support --whole-archive et. al.
6243 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6244 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6245 else
6246 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6247 fi
6248 supports_anon_versioning=no
6249 case `$LD -v 2>/dev/null` in
6250 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6251 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6252 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6253 *\ 2.11.*) ;; # other 2.11 versions
6254 *) supports_anon_versioning=yes ;;
6255 esac
5867 6256
5868 # See if GNU ld supports shared libraries. 6257 # See if GNU ld supports shared libraries.
5869 case $host_os in 6258 case $host_os in
5870 aix3* | aix4* | aix5*) 6259 aix3* | aix4* | aix5*)
5871 # On AIX/PPC, the GNU linker is very broken 6260 # On AIX/PPC, the GNU linker is very broken
5913 # as there is no search path for DLLs. 6302 # as there is no search path for DLLs.
5914 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6303 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5915 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6304 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5916 _LT_AC_TAGVAR(always_export_symbols, $1)=no 6305 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5917 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6306 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5918 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 6307 _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'
5919 6308
5920 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6309 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5921 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6310 _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'
5922 # If the export-symbols file already is a .def file (1st line 6311 # If the export-symbols file already is a .def file (1st line
5923 # is EXPORTS), use it as is; otherwise, prepend... 6312 # is EXPORTS), use it as is; otherwise, prepend...
5924 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6313 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5925 cp $export_symbols $output_objdir/$soname.def; 6314 cp $export_symbols $output_objdir/$soname.def;
5926 else 6315 else
5927 echo EXPORTS > $output_objdir/$soname.def; 6316 echo EXPORTS > $output_objdir/$soname.def;
5928 cat $export_symbols >> $output_objdir/$soname.def; 6317 cat $export_symbols >> $output_objdir/$soname.def;
5929 fi~ 6318 fi~
5930 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6319 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5931 else 6320 else
5932 ld_shlibs=no 6321 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5933 fi 6322 fi
5934 ;; 6323 ;;
5935 6324
5936 netbsd*) 6325 interix3*)
6326 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6327 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6328 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6329 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6330 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6331 # Instead, shared libraries are loaded at an image base (0x10000000 by
6332 # default) and relocated if they conflict, which is a slow very memory
6333 # consuming and fragmenting process. To avoid this, we pick a random,
6334 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6335 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6336 _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'
6337 _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'
6338 ;;
6339
6340 linux* | k*bsd*-gnu)
6341 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6342 tmp_addflag=
6343 case $cc_basename,$host_cpu in
6344 pgcc*) # Portland Group C compiler
6345 _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'
6346 tmp_addflag=' $pic_flag'
6347 ;;
6348 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6349 _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'
6350 tmp_addflag=' $pic_flag -Mnomain' ;;
6351 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6352 tmp_addflag=' -i_dynamic' ;;
6353 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6354 tmp_addflag=' -i_dynamic -nofor_main' ;;
6355 ifc* | ifort*) # Intel Fortran compiler
6356 tmp_addflag=' -nofor_main' ;;
6357 esac
6358 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6359
6360 if test $supports_anon_versioning = yes; then
6361 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6363 $echo "local: *; };" >> $output_objdir/$libname.ver~
6364 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6365 fi
6366 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
6367 else
6368 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6369 fi
6370 ;;
6371
6372 netbsd* | netbsdelf*-gnu)
5937 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5938 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6374 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5939 wlarc= 6375 wlarc=
5940 else 6376 else
5941 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942 _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' 6378 _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'
5943 fi 6379 fi
5944 ;; 6380 ;;
5945 6381
5946 solaris* | sysv5*) 6382 solaris*)
5947 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6383 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5948 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6384 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5949 cat <<EOF 1>&2 6385 cat <<EOF 1>&2
5950 6386
5951*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6387*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5962 else 6398 else
5963 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6399 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5964 fi 6400 fi
5965 ;; 6401 ;;
5966 6402
6403 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6404 case `$LD -v 2>&1` in
6405 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6406 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6407 cat <<_LT_EOF 1>&2
6408
6409*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6410*** reliably create shared libraries on SCO systems. Therefore, libtool
6411*** is disabling shared libraries support. We urge you to upgrade GNU
6412*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6413*** your PATH or compiler configuration so that the native linker is
6414*** used, and then restart.
6415
6416_LT_EOF
6417 ;;
6418 *)
6419 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6420 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6422 _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'
6423 else
6424 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6425 fi
6426 ;;
6427 esac
6428 ;;
6429
5967 sunos4*) 6430 sunos4*)
5968 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6431 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5969 wlarc= 6432 wlarc=
5970 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6433 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5971 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6434 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5972 ;; 6435 ;;
5973
5974 linux*)
5975 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5976 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5977 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5978 supports_anon_versioning=no
5979 case `$LD -v 2>/dev/null` in
5980 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5983 *\ 2.11.*) ;; # other 2.11 versions
5984 *) supports_anon_versioning=yes ;;
5985 esac
5986 if test $supports_anon_versioning = yes; then
5987 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5988cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5989$echo "local: *; };" >> $output_objdir/$libname.ver~
5990 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5991 else
5992 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5993 fi
5994 else
5995 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5996 fi
5997 ;;
5998 6436
5999 *) 6437 *)
6000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6438 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6001 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6439 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6002 _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' 6440 _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'
6004 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6442 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6005 fi 6443 fi
6006 ;; 6444 ;;
6007 esac 6445 esac
6008 6446
6009 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 6447 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6010 runpath_var=LD_RUN_PATH 6448 runpath_var=
6011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 6449 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6012 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 6450 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6013 # ancient GNU ld didn't support --whole-archive et. al.
6014 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6015 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6016 else
6017 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 6451 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6018 fi
6019 fi 6452 fi
6020 else 6453 else
6021 # PORTME fill in a description of your system's linker (not GNU ld) 6454 # PORTME fill in a description of your system's linker (not GNU ld)
6022 case $host_os in 6455 case $host_os in
6023 aix3*) 6456 aix3*)
6025 _LT_AC_TAGVAR(always_export_symbols, $1)=yes 6458 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6026 _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' 6459 _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'
6027 # Note: this linker hardcodes the directories in LIBPATH if there 6460 # Note: this linker hardcodes the directories in LIBPATH if there
6028 # are no directories specified by -L. 6461 # are no directories specified by -L.
6029 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6462 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6030 if test "$GCC" = yes && test -z "$link_static_flag"; then 6463 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6031 # Neither direct hardcoding nor static linking is supported with a 6464 # Neither direct hardcoding nor static linking is supported with a
6032 # broken collect2. 6465 # broken collect2.
6033 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 6466 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6034 fi 6467 fi
6035 ;; 6468 ;;
6059 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6492 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6060 aix_use_runtimelinking=yes 6493 aix_use_runtimelinking=yes
6061 break 6494 break
6062 fi 6495 fi
6063 done 6496 done
6497 ;;
6064 esac 6498 esac
6065 6499
6066 exp_sym_flag='-bexport' 6500 exp_sym_flag='-bexport'
6067 no_entry_flag='-bnoentry' 6501 no_entry_flag='-bnoentry'
6068 fi 6502 fi
6077 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6511 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6078 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 6512 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6079 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6513 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6080 6514
6081 if test "$GCC" = yes; then 6515 if test "$GCC" = yes; then
6082 case $host_os in aix4.[012]|aix4.[012].*) 6516 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6083 # We only want to do this on AIX 4.2 and lower, the check 6517 # We only want to do this on AIX 4.2 and lower, the check
6084 # below for broken collect2 doesn't work under 4.3+ 6518 # below for broken collect2 doesn't work under 4.3+
6085 collect2name=`${CC} -print-prog-name=collect2` 6519 collect2name=`${CC} -print-prog-name=collect2`
6086 if test -f "$collect2name" && \ 6520 if test -f "$collect2name" && \
6087 strings "$collect2name" | grep resolve_lib_name >/dev/null 6521 strings "$collect2name" | grep resolve_lib_name >/dev/null
6096 # to unsupported forces relinking 6530 # to unsupported forces relinking
6097 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6531 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6098 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 6532 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6099 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 6533 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6100 fi 6534 fi
6535 ;;
6101 esac 6536 esac
6102 shared_flag='-shared' 6537 shared_flag='-shared'
6538 if test "$aix_use_runtimelinking" = yes; then
6539 shared_flag="$shared_flag "'${wl}-G'
6540 fi
6103 else 6541 else
6104 # not using gcc 6542 # not using gcc
6105 if test "$host_cpu" = ia64; then 6543 if test "$host_cpu" = ia64; then
6106 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6107 # chokes on -Wl,-G. The following line is correct: 6545 # chokes on -Wl,-G. The following line is correct:
6108 shared_flag='-G' 6546 shared_flag='-G'
6109 else 6547 else
6110 if test "$aix_use_runtimelinking" = yes; then 6548 if test "$aix_use_runtimelinking" = yes; then
6111 shared_flag='${wl}-G' 6549 shared_flag='${wl}-G'
6112 else 6550 else
6113 shared_flag='${wl}-bM:SRE' 6551 shared_flag='${wl}-bM:SRE'
6114 fi 6552 fi
6115 fi 6553 fi
6116 fi 6554 fi
6117 6555
6118 # It seems that -bexpall does not export symbols beginning with 6556 # It seems that -bexpall does not export symbols beginning with
6119 # underscore (_), so it is better to generate a list of symbols to export. 6557 # underscore (_), so it is better to generate a list of symbols to export.
6123 # -berok will link without error, but may produce a broken library. 6561 # -berok will link without error, but may produce a broken library.
6124 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 6562 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6125 # Determine the default libpath from the value encoded in an empty executable. 6563 # Determine the default libpath from the value encoded in an empty executable.
6126 _LT_AC_SYS_LIBPATH_AIX 6564 _LT_AC_SYS_LIBPATH_AIX
6127 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6565 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6128 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6566 _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"
6129 else 6567 else
6130 if test "$host_cpu" = ia64; then 6568 if test "$host_cpu" = ia64; then
6131 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 6569 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6132 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 6570 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6133 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6571 _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"
6134 else 6572 else
6135 # Determine the default libpath from the value encoded in an empty executable. 6573 # Determine the default libpath from the value encoded in an empty executable.
6136 _LT_AC_SYS_LIBPATH_AIX 6574 _LT_AC_SYS_LIBPATH_AIX
6137 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 6575 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6138 # Warning - without using the other run time loading flags, 6576 # Warning - without using the other run time loading flags,
6139 # -berok will link without error, but may produce a broken library. 6577 # -berok will link without error, but may produce a broken library.
6140 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 6578 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6141 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 6579 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6142 # -bexpall does not export symbols beginning with underscore (_)
6143 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
6144 # Exported symbols can be pulled into shared objects from archives 6580 # Exported symbols can be pulled into shared objects from archives
6145 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 6581 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6146 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 6582 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6147 # This is similar to how AIX traditionally builds it's shared libraries. 6583 # This is similar to how AIX traditionally builds its shared libraries.
6148 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6584 _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'
6149 fi 6585 fi
6150 fi 6586 fi
6151 ;; 6587 ;;
6152 6588
6153 amigaos*) 6589 amigaos*)
6156 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6592 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6157 # see comment about different semantics on the GNU ld section 6593 # see comment about different semantics on the GNU ld section
6158 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6594 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6159 ;; 6595 ;;
6160 6596
6161 bsdi4*) 6597 bsdi[[45]]*)
6162 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 6598 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6163 ;; 6599 ;;
6164 6600
6165 cygwin* | mingw* | pw32*) 6601 cygwin* | mingw* | pw32*)
6166 # When not using gcc, we currently assume that we are using 6602 # When not using gcc, we currently assume that we are using
6170 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 6606 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6171 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 6607 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6172 # Tell ltmain to make .lib files, not .a files. 6608 # Tell ltmain to make .lib files, not .a files.
6173 libext=lib 6609 libext=lib
6174 # Tell ltmain to make .dll files, not .so files. 6610 # Tell ltmain to make .dll files, not .so files.
6175 shrext=".dll" 6611 shrext_cmds=".dll"
6176 # FIXME: Setting linknames here is a bad hack. 6612 # FIXME: Setting linknames here is a bad hack.
6177 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6613 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6178 # The linker will automatically build a .lib file if we build a DLL. 6614 # The linker will automatically build a .lib file if we build a DLL.
6179 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 6615 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6180 # FIXME: Should let the user specify the lib program. 6616 # FIXME: Should let the user specify the lib program.
6181 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 6617 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6182 fix_srcfile_path='`cygpath -w "$srcfile"`' 6618 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6183 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 6619 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6184 ;; 6620 ;;
6185 6621
6186 darwin* | rhapsody*) 6622 darwin* | rhapsody*)
6187 if test "$GXX" = yes ; then 6623 case $host_os in
6624 rhapsody* | darwin1.[[012]])
6625 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6626 ;;
6627 *) # Darwin 1.3 on
6628 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6629 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6630 else
6631 case ${MACOSX_DEPLOYMENT_TARGET} in
6632 10.[[012]])
6633 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6634 ;;
6635 10.*)
6636 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6637 ;;
6638 esac
6639 fi
6640 ;;
6641 esac
6188 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 6642 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6189 case "$host_os" in
6190 rhapsody* | darwin1.[[012]])
6191 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6192 ;;
6193 *) # Darwin 1.3 on
6194 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6195 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6196 else
6197 case ${MACOSX_DEPLOYMENT_TARGET} in
6198 10.[[012]])
6199 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
6200 ;;
6201 10.*)
6202 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
6203 ;;
6204 esac
6205 fi
6206 ;;
6207 esac
6208 lt_int_apple_cc_single_mod=no
6209 output_verbose_link_cmd='echo'
6210 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6211 lt_int_apple_cc_single_mod=yes
6212 fi
6213 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6214 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6215 else
6216 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
6217 fi
6218 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6219 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6220 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6221 _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}'
6222 else
6223 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6224 fi
6225 _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}'
6226 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6643 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6227 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 6644 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6228 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 6645 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6229 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 6646 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6230 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6647 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6648 if test "$GCC" = yes ; then
6649 output_verbose_link_cmd='echo'
6650 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6651 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6652 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6653 _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}'
6654 _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}'
6231 else 6655 else
6656 case $cc_basename in
6657 xlc*)
6658 output_verbose_link_cmd='echo'
6659 _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'
6660 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6661 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6662 _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}'
6663 _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}'
6664 ;;
6665 *)
6232 _LT_AC_TAGVAR(ld_shlibs, $1)=no 6666 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6667 ;;
6668 esac
6233 fi 6669 fi
6234 ;; 6670 ;;
6235 6671
6236 dgux*) 6672 dgux*)
6237 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6673 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6261 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6697 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6262 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6698 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6263 ;; 6699 ;;
6264 6700
6265 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6701 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6266 freebsd* | kfreebsd*-gnu) 6702 freebsd* | dragonfly*)
6267 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6703 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6268 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6704 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6269 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6705 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6270 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6706 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6271 ;; 6707 ;;
6284 # but as the default location of the library. 6720 # but as the default location of the library.
6285 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 6721 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6286 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6722 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6287 ;; 6723 ;;
6288 6724
6289 hpux10* | hpux11*) 6725 hpux10*)
6290 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6726 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6727 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6728 else
6729 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6730 fi
6731 if test "$with_gnu_ld" = no; then
6732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6733 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6734
6735 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6736 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6737
6738 # hardcode_minus_L: Not really in the search PATH,
6739 # but as the default location of the library.
6740 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6741 fi
6742 ;;
6743
6744 hpux11*)
6745 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6291 case "$host_cpu" in 6746 case $host_cpu in
6292 hppa*64*|ia64*) 6747 hppa*64*)
6293 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6748 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6749 ;;
6750 ia64*)
6751 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6294 ;; 6752 ;;
6295 *) 6753 *)
6296 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6754 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6297 ;; 6755 ;;
6298 esac 6756 esac
6299 else 6757 else
6300 case "$host_cpu" in 6758 case $host_cpu in
6301 hppa*64*|ia64*) 6759 hppa*64*)
6302 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6760 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6761 ;;
6762 ia64*)
6763 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6303 ;; 6764 ;;
6304 *) 6765 *)
6305 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6766 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6306 ;; 6767 ;;
6307 esac 6768 esac
6308 fi 6769 fi
6309 if test "$with_gnu_ld" = no; then 6770 if test "$with_gnu_ld" = no; then
6310 case "$host_cpu" in
6311 hppa*64*)
6312 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 6771 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6772 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6773
6774 case $host_cpu in
6775 hppa*64*|ia64*)
6313 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 6776 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6314 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6315 _LT_AC_TAGVAR(hardcode_direct, $1)=no 6777 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6316 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6778 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6317 ;; 6779 ;;
6318 ia64*)
6319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6320 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6321 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6322
6323 # hardcode_minus_L: Not really in the search PATH,
6324 # but as the default location of the library.
6325 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6326 ;;
6327 *) 6780 *)
6328 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6329 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6330 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6781 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6331 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6782 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6332 6783
6333 # hardcode_minus_L: Not really in the search PATH, 6784 # hardcode_minus_L: Not really in the search PATH,
6334 # but as the default location of the library. 6785 # but as the default location of the library.
6348 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6799 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6349 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6800 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6350 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6801 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6351 ;; 6802 ;;
6352 6803
6353 netbsd*) 6804 netbsd* | netbsdelf*-gnu)
6354 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6355 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6806 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6356 else 6807 else
6357 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6808 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6358 fi 6809 fi
6372 openbsd*) 6823 openbsd*)
6373 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 6824 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6374 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6825 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6375 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6826 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6376 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6827 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6828 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6377 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 6829 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6378 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 6830 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6379 else 6831 else
6380 case $host_os in 6832 case $host_os in
6381 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 6833 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6417 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 6869 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6418 else 6870 else
6419 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 6871 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6420 _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' 6872 _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'
6421 _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~ 6873 _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~
6422 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6874 $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'
6423 6875
6424 # Both c and cxx compiler support -rpath directly 6876 # Both c and cxx compiler support -rpath directly
6425 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 6877 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6426 fi 6878 fi
6427 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 6879 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6428 ;; 6880 ;;
6429 6881
6430 sco3.2v5*)
6431 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6432 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6433 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6434 runpath_var=LD_RUN_PATH
6435 hardcode_runpath_var=yes
6436 ;;
6437
6438 solaris*) 6882 solaris*)
6439 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 6883 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6440 if test "$GCC" = yes; then 6884 if test "$GCC" = yes; then
6885 wlarc='${wl}'
6441 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6886 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6442 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6887 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6888 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6444 else 6889 else
6890 wlarc=''
6445 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6891 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6446 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6892 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6447 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6893 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6448 fi 6894 fi
6449 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 6895 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6450 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6896 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6451 case $host_os in 6897 case $host_os in
6452 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 6898 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6899 *)
6900 # The compiler driver will combine linker options so we
6901 # cannot just pass the convience library names through
6902 # without $wl, iff we do not link with $LD.
6903 # Luckily, gcc supports the same syntax we need for Sun Studio.
6453 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6904 # Supported since Solaris 2.6 (maybe 2.5.1?)
6905 case $wlarc in
6906 '')
6454 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 6907 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6908 *)
6909 _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' ;;
6910 esac ;;
6455 esac 6911 esac
6456 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 6912 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6457 ;; 6913 ;;
6458 6914
6459 sunos4*) 6915 sunos4*)
6506 hardcode_runpath_var=yes 6962 hardcode_runpath_var=yes
6507 _LT_AC_TAGVAR(ld_shlibs, $1)=yes 6963 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6508 fi 6964 fi
6509 ;; 6965 ;;
6510 6966
6511 sysv4.2uw2*) 6967 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6512 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6513 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6514 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6515 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6516 hardcode_runpath_var=yes
6517 runpath_var=LD_RUN_PATH
6518 ;;
6519
6520 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6521 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' 6968 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6522 if test "$GCC" = yes; then 6969 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6523 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6524 else
6525 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6526 fi
6527 runpath_var='LD_RUN_PATH'
6528 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6529 ;;
6530
6531 sysv5*)
6532 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6533 # $CC -shared without GNU ld will not create a library from C++
6534 # object files and a static libstdc++, better avoid it by now
6535 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6536 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6538 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6539 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 6970 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6540 runpath_var='LD_RUN_PATH' 6971 runpath_var='LD_RUN_PATH'
6972
6973 if test "$GCC" = yes; then
6974 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6975 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6976 else
6977 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6978 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6979 fi
6980 ;;
6981
6982 sysv5* | sco3.2v5* | sco5v6*)
6983 # Note: We can NOT use -z defs as we might desire, because we do not
6984 # link with -lc, and that would cause any symbols used from libc to
6985 # always be unresolved, which means just about no library would
6986 # ever link correctly. If we're not using GNU ld we use -z text
6987 # though, which does catch some bad symbols but isn't as heavy-handed
6988 # as -z defs.
6989 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6990 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6991 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6992 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6993 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6994 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6995 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6996 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6997 runpath_var='LD_RUN_PATH'
6998
6999 if test "$GCC" = yes; then
7000 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001 _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'
7002 else
7003 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004 _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'
7005 fi
6541 ;; 7006 ;;
6542 7007
6543 uts4*) 7008 uts4*)
6544 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7009 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6545 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 7010 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6552 esac 7017 esac
6553 fi 7018 fi
6554]) 7019])
6555AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 7020AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6556test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 7021test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6557
6558variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6559if test "$GCC" = yes; then
6560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6561fi
6562 7022
6563# 7023#
6564# Do we need to explicitly link libc? 7024# Do we need to explicitly link libc?
6565# 7025#
6566case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 7026case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6585 soname=conftest 7045 soname=conftest
6586 lib=conftest 7046 lib=conftest
6587 libobjs=conftest.$ac_objext 7047 libobjs=conftest.$ac_objext
6588 deplibs= 7048 deplibs=
6589 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 7049 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7050 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6590 compiler_flags=-v 7051 compiler_flags=-v
6591 linker_flags=-v 7052 linker_flags=-v
6592 verstring= 7053 verstring=
6593 output_objdir=. 7054 output_objdir=.
6594 libname=conftest 7055 libname=conftest
6710lt_ac_max=0 7171lt_ac_max=0
6711lt_ac_count=0 7172lt_ac_count=0
6712# Add /usr/xpg4/bin/sed as it is typically found on Solaris 7173# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6713# along with /bin/sed that truncates output. 7174# along with /bin/sed that truncates output.
6714for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 7175for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6715 test ! -f $lt_ac_sed && break 7176 test ! -f $lt_ac_sed && continue
6716 cat /dev/null > conftest.in 7177 cat /dev/null > conftest.in
6717 lt_ac_count=0 7178 lt_ac_count=0
6718 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 7179 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6719 # Check for GNU sed and select it if it is found. 7180 # Check for GNU sed and select it if it is found.
6720 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 7181 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6735 lt_ac_max=$lt_ac_count 7196 lt_ac_max=$lt_ac_count
6736 lt_cv_path_SED=$lt_ac_sed 7197 lt_cv_path_SED=$lt_ac_sed
6737 fi 7198 fi
6738 done 7199 done
6739done 7200done
7201])
6740SED=$lt_cv_path_SED 7202SED=$lt_cv_path_SED
6741])
6742AC_MSG_RESULT([$SED]) 7203AC_MSG_RESULT([$SED])
6743]) 7204])
6744 7205

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines