Changeset 1881
- Timestamp:
- 07/18/07 21:08:43 (18 months ago)
- Files:
-
- 1 modified
-
trunk/aclocal.m4 (modified) (87 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/aclocal.m4
r1738 r1881 19 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 20 20 21 # serial 48AC_PROG_LIBTOOL21 # serial 51 AC_PROG_LIBTOOL 22 22 23 23 … … 182 182 183 183 # Determine commands to create old-style static archives. 184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs $old_deplibs'184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 185 185 old_postinstall_cmds='chmod 644 $oldlib' 186 186 old_postuninstall_cmds= … … 269 269 # the simple compiler test code. 270 270 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 271 [ac_outfile=conftest.$ac_objext 272 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 271 [AC_REQUIRE([LT_AC_PROG_SED])dnl 272 ac_outfile=conftest.$ac_objext 273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 273 274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 274 275 _lt_compiler_boilerplate=`cat conftest.err` … … 282 283 # the simple link test code. 283 284 AC_DEFUN([_LT_LINKER_BOILERPLATE], 284 [ac_outfile=conftest.$ac_objext 285 printf "$lt_simple_link_test_code" >conftest.$ac_ext 285 [AC_REQUIRE([LT_AC_PROG_SED])dnl 286 ac_outfile=conftest.$ac_objext 287 echo "$lt_simple_link_test_code" >conftest.$ac_ext 286 288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 287 289 _lt_linker_boilerplate=`cat conftest.err` … … 299 301 # to the aix ld manual. 300 302 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 301 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 302 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 303 }'` 303 [AC_REQUIRE([LT_AC_PROG_SED])dnl 304 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 305 lt_aix_libpath_sed=' 306 /Import File Strings/,/^$/ { 307 /^0/ { 308 s/^0 *\(.*\)$/\1/ 309 p 310 } 311 }' 312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 304 313 # Check for a 64-bit object if we didn't find anything. 305 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 306 }'`; fi],[]) 314 if test -z "$aix_libpath"; then 315 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 316 fi],[]) 307 317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 308 318 ])# _LT_AC_SYS_LIBPATH_AIX … … 535 545 ;; 536 546 537 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 547 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 548 s390*-*linux*|sparc*-*linux*) 538 549 # Find out which ABI we are using. 539 550 echo 'int i;' > conftest.$ac_ext … … 542 553 *32-bit*) 543 554 case $host in 555 x86_64-*kfreebsd*-gnu) 556 LD="${LD-ld} -m elf_i386_fbsd" 557 ;; 544 558 x86_64-*linux*) 545 559 LD="${LD-ld} -m elf_i386" … … 558 572 *64-bit*) 559 573 case $host in 574 x86_64-*kfreebsd*-gnu) 575 LD="${LD-ld} -m elf_x86_64_fbsd" 576 ;; 560 577 x86_64-*linux*) 561 578 LD="${LD-ld} -m elf_x86_64" … … 629 646 [$2=no 630 647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 631 printf"$lt_simple_compile_test_code" > conftest.$ac_ext648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 632 649 lt_compiler_flag="$3" 633 650 # Insert the option either (1) after the last *FLAGS variable, or … … 670 687 # Check whether the given compiler option works 671 688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 672 [AC_CACHE_CHECK([$1], [$2], 689 [AC_REQUIRE([LT_AC_PROG_SED])dnl 690 AC_CACHE_CHECK([$1], [$2], 673 691 [$2=no 674 692 save_LDFLAGS="$LDFLAGS" 675 693 LDFLAGS="$LDFLAGS $3" 676 printf"$lt_simple_link_test_code" > conftest.$ac_ext694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 677 695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 678 696 # The linker can only warn and ignore the option if not recognized … … 788 806 ;; 789 807 *) 790 # If test is not a shell built-in, we'll probably end up computing a 791 # maximum length that is only half of the actual maximum length, but 792 # we can't tell. 793 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 794 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 809 if test -n "$lt_cv_sys_max_cmd_len"; then 810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 812 else 813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 795 815 = "XX$teststring") >/dev/null 2>&1 && 796 new_result=`expr "X$teststring" : ".*" 2>&1` && 797 lt_cv_sys_max_cmd_len=$new_result && 798 test $i != 17 # 1/2 MB should be enough 799 do 800 i=`expr $i + 1` 801 teststring=$teststring$teststring 802 done 803 teststring= 804 # Add a significant safety factor because C++ compilers can tack on massive 805 # amounts of additional arguments before passing them to the linker. 806 # It appears as though 1/2 is a usable value. 807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 816 new_result=`expr "X$teststring" : ".*" 2>&1` && 817 lt_cv_sys_max_cmd_len=$new_result && 818 test $i != 17 # 1/2 MB should be enough 819 do 820 i=`expr $i + 1` 821 teststring=$teststring$teststring 822 done 823 teststring= 824 # Add a significant safety factor because C++ compilers can tack on massive 825 # amounts of additional arguments before passing them to the linker. 826 # It appears as though 1/2 is a usable value. 827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 828 fi 808 829 ;; 809 830 esac … … 1032 1053 # Check to see if options -c and -o are simultaneously supported by compiler 1033 1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 1034 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1035 1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 1036 1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], … … 1040 1062 cd conftest 1041 1063 mkdir out 1042 printf"$lt_simple_compile_test_code" > conftest.$ac_ext1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 1043 1065 1044 1066 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 1180 1202 if test -n "$STRIP" ; then 1181 1203 striplib="$STRIP -x" 1204 old_striplib="$STRIP -S" 1182 1205 AC_MSG_RESULT([yes]) 1183 1206 else … … 1197 1220 # PORTME Fill in your ld.so characteristics 1198 1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1199 [AC_MSG_CHECKING([dynamic linker characteristics]) 1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1223 AC_MSG_CHECKING([dynamic linker characteristics]) 1200 1224 library_names_spec= 1201 1225 libname_spec='lib$name' … … 1211 1235 dynamic_linker="$host_os ld.so" 1212 1236 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1237 m4_if($1,[],[ 1213 1238 if test "$GCC" = yes; then 1214 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1215 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1239 case $host_os in 1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 1241 *) lt_awk_arg="/^libraries:/" ;; 1242 esac 1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 1216 1245 # if the path contains ";" then we assume it to be the separator 1217 1246 # otherwise default to the standard path separator (i.e. ":") - it is 1218 1247 # assumed that no part of a normal pathname contains ";" but that should 1219 1248 # okay in the real world where ";" in dirpaths is itself problematic. 1220 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1221 1250 else 1222 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1223 1252 fi 1253 # Ok, now we have the path, separated by spaces, we can step through it 1254 # and add multilib dir if necessary. 1255 lt_tmp_lt_search_path_spec= 1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 1257 for lt_sys_path in $lt_search_path_spec; do 1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 1260 else 1261 test -d "$lt_sys_path" && \ 1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1263 fi 1264 done 1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 1266 BEGIN {RS=" "; FS="/|\n";} { 1267 lt_foo=""; 1268 lt_count=0; 1269 for (lt_i = NF; lt_i > 0; lt_i--) { 1270 if ($lt_i != "" && $lt_i != ".") { 1271 if ($lt_i == "..") { 1272 lt_count++; 1273 } else { 1274 if (lt_count == 0) { 1275 lt_foo="/" $lt_i lt_foo; 1276 } else { 1277 lt_count--; 1278 } 1279 } 1280 } 1281 } 1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1284 }'` 1285 sys_lib_search_path_spec=`echo $lt_search_path_spec` 1224 1286 else 1225 1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1226 fi 1288 fi]) 1227 1289 need_lib_prefix=unknown 1228 1290 hardcode_into_libs=no … … 1381 1443 shlibpath_var=DYLD_LIBRARY_PATH 1382 1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1383 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1384 if test "$GCC" = yes; then 1385 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"` 1386 else 1387 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1388 fi 1445 m4_if([$1], [],[ 1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1389 1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1390 1448 ;; … … 1401 1459 freebsd1*) 1402 1460 dynamic_linker=no 1403 ;;1404 1405 kfreebsd*-gnu)1406 version_type=linux1407 need_lib_prefix=no1408 need_version=no1409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1410 soname_spec='${libname}${release}${shared_ext}$major'1411 shlibpath_var=LD_LIBRARY_PATH1412 shlibpath_overrides_runpath=no1413 hardcode_into_libs=yes1414 dynamic_linker='GNU ld.so'1415 1461 ;; 1416 1462 … … 1452 1498 hardcode_into_libs=yes 1453 1499 ;; 1454 freebsd*) # from 4.6 on1500 *) # from 4.6 on, and DragonFly 1455 1501 shlibpath_overrides_runpath=yes 1456 1502 hardcode_into_libs=yes … … 1515 1561 ;; 1516 1562 1517 interix 3*)1563 interix[[3-9]]*) 1518 1564 version_type=linux 1519 1565 need_lib_prefix=no … … 1570 1616 1571 1617 # This must be Linux ELF. 1572 linux* )1618 linux* | k*bsd*-gnu) 1573 1619 version_type=linux 1574 1620 need_lib_prefix=no … … 1586 1632 # Append ld.so.conf contents to the search path 1587 1633 if test -f /etc/ld.so.conf; then 1588 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' ' '`1634 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 1589 1635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1590 1636 fi … … 1597 1643 # assume the GNU/Linux dynamic linker is in use. 1598 1644 dynamic_linker='GNU/Linux ld.so' 1599 ;;1600 1601 knetbsd*-gnu)1602 version_type=linux1603 need_lib_prefix=no1604 need_version=no1605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1606 soname_spec='${libname}${release}${shared_ext}$major'1607 shlibpath_var=LD_LIBRARY_PATH1608 shlibpath_overrides_runpath=no1609 hardcode_into_libs=yes1610 dynamic_linker='GNU ld.so'1611 1645 ;; 1612 1646 … … 1692 1726 ;; 1693 1727 1728 rdos*) 1729 dynamic_linker=no 1730 ;; 1731 1694 1732 solaris*) 1695 1733 version_type=linux … … 1797 1835 # ---------------- 1798 1836 AC_DEFUN([_LT_AC_TAGCONFIG], 1799 [AC_ARG_WITH([tags], 1837 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1838 AC_ARG_WITH([tags], 1800 1839 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1801 1840 [include additional configurations @<:@automatic@:>@])], … … 2058 2097 # AC_PATH_TOOL_PREFIX 2059 2098 # ------------------- 2060 # find a file program which can recogni se shared library2099 # find a file program which can recognize shared library 2061 2100 AC_DEFUN([AC_PATH_TOOL_PREFIX], 2062 2101 [AC_REQUIRE([AC_PROG_EGREP])dnl … … 2121 2160 # AC_PATH_MAGIC 2122 2161 # ------------- 2123 # find a file program which can recogni se a shared library2162 # find a file program which can recognize a shared library 2124 2163 AC_DEFUN([AC_PATH_MAGIC], 2125 2164 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2268 2307 # -- PORTME fill in with the dynamic library characteristics 2269 2308 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2270 [AC_CACHE_CHECK([how to recogni se dependent libraries],2309 [AC_CACHE_CHECK([how to recognize dependent libraries], 2271 2310 lt_cv_deplibs_check_method, 2272 2311 [lt_cv_file_magic_cmd='$MAGIC_CMD' … … 2307 2346 mingw* | pw32*) 2308 2347 # Base MSYS/MinGW do not provide the 'file' command needed by 2309 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2310 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2311 lt_cv_file_magic_cmd='$OBJDUMP -f' 2348 # func_win32_libid shell function, so use a weaker test based on 'objdump', 2349 # unless we find 'file', for example because we are cross-compiling. 2350 if ( file / ) >/dev/null 2>&1; then 2351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2352 lt_cv_file_magic_cmd='func_win32_libid' 2353 else 2354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2355 lt_cv_file_magic_cmd='$OBJDUMP -f' 2356 fi 2312 2357 ;; 2313 2358 … … 2316 2361 ;; 2317 2362 2318 freebsd* | kfreebsd*-gnu |dragonfly*)2363 freebsd* | dragonfly*) 2319 2364 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2320 2365 case $host_cpu in … … 2354 2399 ;; 2355 2400 2356 interix 3*)2401 interix[[3-9]]*) 2357 2402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2358 2403 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' … … 2370 2415 2371 2416 # This must be Linux ELF. 2372 linux* )2417 linux* | k*bsd*-gnu) 2373 2418 lt_cv_deplibs_check_method=pass_all 2374 2419 ;; … … 2401 2446 2402 2447 osf3* | osf4* | osf5*) 2448 lt_cv_deplibs_check_method=pass_all 2449 ;; 2450 2451 rdos*) 2403 2452 lt_cv_deplibs_check_method=pass_all 2404 2453 ;; … … 2456 2505 else 2457 2506 lt_nm_to_check="${ac_tool_prefix}nm" 2458 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2459 2508 lt_nm_to_check="$lt_nm_to_check nm" 2460 2509 fi … … 2672 2721 2673 2722 # Code to be used in simple compile tests 2674 lt_simple_compile_test_code="int some_variable = 0; \n"2723 lt_simple_compile_test_code="int some_variable = 0;" 2675 2724 2676 2725 # Code to be used in simple link tests 2677 lt_simple_link_test_code='int main(){return(0);} \n'2726 lt_simple_link_test_code='int main(){return(0);}' 2678 2727 2679 2728 _LT_AC_SYS_COMPILER … … 2777 2826 2778 2827 # Code to be used in simple compile tests 2779 lt_simple_compile_test_code="int some_variable = 0; \n"2828 lt_simple_compile_test_code="int some_variable = 0;" 2780 2829 2781 2830 # Code to be used in simple link tests 2782 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); } \n'2831 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 2783 2832 2784 2833 # ltmain only uses $CC for tagged configurations so make sure $CC is set. … … 2926 2975 then 2927 2976 # We have reworked collect2 2928 _LT_AC_TAGVAR(hardcode_direct, $1)=yes2977 : 2929 2978 else 2930 2979 # We have old collect2 … … 3085 3134 xlc*) 3086 3135 output_verbose_link_cmd='echo' 3087 _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'3136 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 3088 3137 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3089 3138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3090 _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}'3139 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 3091 3140 _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}' 3092 3141 ;; … … 3122 3171 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3123 3172 ;; 3124 freebsd* | kfreebsd*-gnu |dragonfly*)3173 freebsd* | dragonfly*) 3125 3174 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 3126 3175 # conventions … … 3171 3220 3172 3221 case $host_cpu in 3173 hppa*64*|ia64*) 3174 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 3175 ;; 3222 hppa*64*|ia64*) ;; 3176 3223 *) 3177 3224 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 3241 3288 esac 3242 3289 ;; 3243 interix 3*)3290 interix[[3-9]]*) 3244 3291 _LT_AC_TAGVAR(hardcode_direct, $1)=no 3245 3292 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no … … 3281 3328 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 3282 3329 ;; 3283 linux* )3330 linux* | k*bsd*-gnu) 3284 3331 case $cc_basename in 3285 3332 KCC*) … … 3361 3408 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 3362 3409 ;; 3410 *) 3411 case `$CC -V 2>&1 | sed 5q` in 3412 *Sun\ C*) 3413 # Sun C++ 5.9 3414 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3415 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3416 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 3417 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3418 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 3419 3420 # Not sure whether something based on 3421 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 3422 # would be better. 3423 output_verbose_link_cmd='echo' 3424 3425 # Archives containing C++ object files must be created using 3426 # "CC -xar", where "CC" is the Sun C++ compiler. This is 3427 # necessary to make sure instantiated templates are included 3428 # in the archive. 3429 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3430 ;; 3431 esac 3432 ;; 3363 3433 esac 3364 3434 ;; … … 3399 3469 ;; 3400 3470 openbsd*) 3401 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3402 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3403 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3404 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3406 _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' 3407 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3408 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3471 if test -f /usr/libexec/ld.so; then 3472 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3473 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3474 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3475 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3477 _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' 3478 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3479 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3480 fi 3481 output_verbose_link_cmd='echo' 3482 else 3483 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3409 3484 fi 3410 output_verbose_link_cmd='echo'3411 3485 ;; 3412 3486 osf3*) … … 3570 3644 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3571 3645 *) 3572 # The C++ compiler is used as linker so we must use $wl 3573 # flag to pass the commands to the underlying system 3574 # linker. We must also pass each convience library through 3575 # to the system linker between allextract/defaultextract. 3576 # The C++ compiler will combine linker options so we 3577 # cannot just pass the convience library names through 3578 # without $wl. 3646 # The compiler driver will combine and reorder linker options, 3647 # but understands `-z linker_flag'. 3579 3648 # Supported since Solaris 2.6 (maybe 2.5.1?) 3580 _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'3649 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 3581 3650 ;; 3582 3651 esac … … 3625 3694 3626 3695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 3696 case $host_os in 3697 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3698 *) 3699 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 3700 ;; 3701 esac 3627 3702 fi 3628 3703 ;; … … 3868 3943 ifelse([$1],[CXX], 3869 3944 [case $host_os in 3870 interix 3*)3945 interix[[3-9]]*) 3871 3946 # Interix 3.5 installs completely hosed .la files for C++, so rather than 3872 3947 # hack all around it, let's just trust "g++" to DTRT. … … 3876 3951 ;; 3877 3952 3953 linux*) 3954 case `$CC -V 2>&1 | sed 5q` in 3955 *Sun\ C*) 3956 # Sun C++ 5.9 3957 # 3958 # The more standards-conforming stlport4 library is 3959 # incompatible with the Cstd library. Avoid specifying 3960 # it if it's in CXXFLAGS. Ignore libCrun as 3961 # -library=stlport4 depends on it. 3962 case " $CXX $CXXFLAGS " in 3963 *" -library=stlport4 "*) 3964 solaris_use_stlport4=yes 3965 ;; 3966 esac 3967 if test "$solaris_use_stlport4" != yes; then 3968 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3969 fi 3970 ;; 3971 esac 3972 ;; 3973 3878 3974 solaris*) 3879 3975 case $cc_basename in 3880 3976 CC*) 3977 # The more standards-conforming stlport4 library is 3978 # incompatible with the Cstd library. Avoid specifying 3979 # it if it's in CXXFLAGS. Ignore libCrun as 3980 # -library=stlport4 depends on it. 3981 case " $CXX $CXXFLAGS " in 3982 *" -library=stlport4 "*) 3983 solaris_use_stlport4=yes 3984 ;; 3985 esac 3986 3881 3987 # Adding this requires a known-good setup of shared libraries for 3882 3988 # Sun compiler versions before 5.6, else PIC objects from an old 3883 3989 # archive will be linked into the output, leading to subtle bugs. 3884 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 3990 if test "$solaris_use_stlport4" != yes; then 3991 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 3992 fi 3885 3993 ;; 3886 3994 esac … … 3931 4039 3932 4040 # Code to be used in simple compile tests 3933 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 4041 lt_simple_compile_test_code="\ 4042
