Changeset 3 in downloads for aclocal.m4
- Timestamp:
- Oct 9, 2007, 6:41:19 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
aclocal.m4
r1 r3 1 # generated automatically by aclocal 1.9. 5-*- Autoconf -*-1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, … … 15 15 16 16 # serial 47 AC_PROG_LIBTOOL 17 # Debian $Rev: 214 $18 17 19 18 … … 125 124 # Sed substitution that helps us do robust quoting. It backslashifies 126 125 # metacharacters that are still active within double-quoted strings. 127 Xsed='sed -e s/^X//'126 Xsed='sed -e 1s/^X//' 128 127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 129 128 … … 145 144 can_build_shared=yes 146 145 147 # All known linkers require a `.a' archive for static linking (except M $VC,146 # All known linkers require a `.a' archive for static linking (except MSVC, 148 147 # which needs '.lib'). 149 148 libext=a … … 193 192 fi 194 193 194 _LT_CC_BASENAME([$compiler]) 195 195 196 # Only perform the check for file, if the check method requires it 196 197 case $deplibs_check_method in … … 236 237 compiler=$CC 237 238 ])# _LT_AC_SYS_COMPILER 239 240 241 # _LT_CC_BASENAME(CC) 242 # ------------------- 243 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 244 AC_DEFUN([_LT_CC_BASENAME], 245 [for cc_temp in $1""; do 246 case $cc_temp in 247 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 248 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 249 \-*) ;; 250 *) break;; 251 esac 252 done 253 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 254 ]) 255 256 257 # _LT_COMPILER_BOILERPLATE 258 # ------------------------ 259 # Check for compiler boilerplate output or warnings with 260 # the simple compiler test code. 261 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 262 [ac_outfile=conftest.$ac_objext 263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 265 _lt_compiler_boilerplate=`cat conftest.err` 266 $rm conftest* 267 ])# _LT_COMPILER_BOILERPLATE 268 269 270 # _LT_LINKER_BOILERPLATE 271 # ---------------------- 272 # Check for linker boilerplate output or warnings with 273 # the simple link test code. 274 AC_DEFUN([_LT_LINKER_BOILERPLATE], 275 [ac_outfile=conftest.$ac_objext 276 printf "$lt_simple_link_test_code" >conftest.$ac_ext 277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 278 _lt_linker_boilerplate=`cat conftest.err` 279 $rm conftest* 280 ])# _LT_LINKER_BOILERPLATE 238 281 239 282 … … 310 353 # The HP-UX ksh and POSIX shell print the target directory to stdout 311 354 # if CDPATH is set. 312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 355 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 313 356 314 357 if test -z "$ECHO"; then … … 317 360 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 318 361 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 319 if (echo_test_string= "`eval $cmd`") 2>/dev/null &&320 echo_test_string= "`eval $cmd`"&&362 if (echo_test_string=`eval $cmd`) 2>/dev/null && 363 echo_test_string=`eval $cmd` && 321 364 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 322 365 then … … 487 530 echo 'int i;' > conftest.$ac_ext 488 531 if AC_TRY_EVAL(ac_compile); then 489 case "`/usr/bin/file conftest.o`"in532 case `/usr/bin/file conftest.o` in 490 533 *32-bit*) 491 534 case $host in … … 569 612 # The option is referenced via a variable to avoid confusing sed. 570 613 lt_compile=`echo "$ac_compile" | $SED \ 571 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 572 615 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 573 616 -e 's:$: $lt_compiler_flag:'` … … 579 622 if (exit $ac_status) && test -s "$ac_outfile"; then 580 623 # The compiler can only warn and ignore the option if not recognized 581 # So say no if there are warnings 582 if test ! -s conftest.err; then 624 # So say no if there are warnings other than the usual output. 625 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 626 $SED '/^$/d' conftest.err >conftest.er2 627 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 583 628 $2=yes 584 629 fi … … 606 651 printf "$lt_simple_link_test_code" > conftest.$ac_ext 607 652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 608 # The compiler can only warn and ignore the option if not recognized653 # The linker can only warn and ignore the option if not recognized 609 654 # So say no if there are warnings 610 655 if test -s conftest.err; then 611 656 # Append any errors to the config.log. 612 657 cat conftest.err 1>&AS_MESSAGE_LOG_FD 658 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 659 $SED '/^$/d' conftest.err >conftest.er2 660 if diff conftest.exp conftest.er2 >/dev/null; then 661 $2=yes 662 fi 613 663 else 614 664 $2=yes … … 669 719 ;; 670 720 671 *) 721 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 722 # This has been around since 386BSD, at least. Likely further. 723 if test -x /sbin/sysctl; then 724 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 725 elif test -x /usr/sbin/sysctl; then 726 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 727 else 728 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 729 fi 730 # And add a safety zone 731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 733 ;; 734 osf*) 735 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 736 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 737 # nice to cause kernel panics so lets avoid the loop below. 738 # First set a reasonable default. 739 lt_cv_sys_max_cmd_len=16384 740 # 741 if test -x /sbin/sysconfig; then 742 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 743 *1*) lt_cv_sys_max_cmd_len=-1 ;; 744 esac 745 fi 746 ;; 747 *) 672 748 # If test is not a shell built-in, we'll probably end up computing a 673 749 # maximum length that is only half of the actual maximum length, but 674 750 # we can't tell. 675 while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 752 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 676 753 = "XX$teststring") >/dev/null 2>&1 && 677 754 new_result=`expr "X$teststring" : ".*" 2>&1` && … … 778 855 EOF 779 856 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 780 (./conftest; exit; ) 2>/dev/null857 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 781 858 lt_status=$? 782 859 case x$lt_status in … … 927 1004 # with a dollar sign (not a hyphen), so the echo should work correctly. 928 1005 lt_compile=`echo "$ac_compile" | $SED \ 929 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \1006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 930 1007 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 931 1008 -e 's:$: $lt_compiler_flag:'` … … 939 1016 # The compiler can only warn and ignore the option if not recognized 940 1017 # So say no if there are warnings 941 if test ! -s out/conftest.err; then 1018 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 1019 $SED '/^$/d' out/conftest.err >out/conftest.er2 1020 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 942 1021 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 943 1022 fi 944 1023 fi 945 chmod u+w . 1024 chmod u+w . 2>&AS_MESSAGE_LOG_FD 946 1025 $rm conftest* 947 1026 # SGI C++ compiler will create directory out/ii_files/ for … … 1007 1086 _LT_AC_TAGVAR(hardcode_action, $1)= 1008 1087 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 1009 test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \1010 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" ="Xyes" ; then1088 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 1089 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 1011 1090 1012 1091 # We can hardcode non-existant directories. … … 1175 1254 ;; 1176 1255 1177 bsdi 4*)1256 bsdi[[45]]*) 1178 1257 version_type=linux 1179 1258 need_version=no … … 1203 1282 dldir=$destdir/`dirname \$dlpath`~ 1204 1283 test -d \$dldir || mkdir -p \$dldir~ 1205 $install_prog $dir/$dlname \$dldir/$dlname' 1284 $install_prog $dir/$dlname \$dldir/$dlname~ 1285 chmod a+x \$dldir/$dlname' 1206 1286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1207 1287 dlpath=$dir/\$dldll~ … … 1233 1313 pw32*) 1234 1314 # pw32 DLLs use 'pw' prefix rather than 'lib' 1235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[ .]/-/g'`${versuffix}${shared_ext}'1315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 1236 1316 ;; 1237 1317 esac … … 1256 1336 shlibpath_overrides_runpath=yes 1257 1337 shlibpath_var=DYLD_LIBRARY_PATH 1258 shrext_cmds=' $(test .$module = .yes && echo .so || echo .dylib)'1338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1259 1339 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1260 1340 if test "$GCC" = yes; then … … 1291 1371 ;; 1292 1372 1293 freebsd*) 1294 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1373 freebsd* | dragonfly*) 1374 # DragonFly does not have aout. When/if they implement a new 1375 # versioning mechanism, adjust this. 1376 if test -x /usr/bin/objformat; then 1377 objformat=`/usr/bin/objformat` 1378 else 1379 case $host_os in 1380 freebsd[[123]]*) objformat=aout ;; 1381 *) objformat=elf ;; 1382 esac 1383 fi 1295 1384 version_type=freebsd-$objformat 1296 1385 case $version_type in … … 1310 1399 shlibpath_overrides_runpath=yes 1311 1400 ;; 1312 freebsd3.[ 01]* | freebsdelf3.[01]*)1401 freebsd3.[[01]]* | freebsdelf3.[[01]]*) 1313 1402 shlibpath_overrides_runpath=yes 1314 1403 hardcode_into_libs=yes … … 1337 1426 need_lib_prefix=no 1338 1427 need_version=no 1339 case "$host_cpu"in1428 case $host_cpu in 1340 1429 ia64*) 1341 1430 shrext_cmds='.so' … … 1436 1525 # Append ld.so.conf contents to the search path 1437 1526 if test -f /etc/ld.so.conf; then 1438 lt_ld_extra=` $SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf| tr '\n' ' '`1527 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' ' '` 1439 1528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1440 1529 fi … … 1447 1536 # assume the GNU/Linux dynamic linker is in use. 1448 1537 dynamic_linker='GNU/Linux ld.so' 1449 ;;1450 1451 netbsdelf*-gnu)1452 version_type=linux1453 need_lib_prefix=no1454 need_version=no1455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1456 soname_spec='${libname}${release}${shared_ext}$major'1457 shlibpath_var=LD_LIBRARY_PATH1458 shlibpath_overrides_runpath=no1459 hardcode_into_libs=yes1460 dynamic_linker='NetBSD ld.elf_so'1461 1538 ;; 1462 1539 … … 1511 1588 version_type=sunos 1512 1589 need_lib_prefix=no 1513 need_version=yes 1590 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1591 case $host_os in 1592 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1593 *) need_version=no ;; 1594 esac 1514 1595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1515 1596 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1677 1758 case $tagname in 1678 1759 CXX) 1679 if test -n "$CXX" && test "X$CXX" != "Xno"; then 1760 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 1761 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 1762 (test "X$CXX" != "Xg++"))) ; then 1680 1763 AC_LIBTOOL_LANG_CXX_CONFIG 1681 1764 else … … 1739 1822 # AC_LIBTOOL_WIN32_DLL 1740 1823 # -------------------- 1741 # declare package support for building win32 dll's1824 # declare package support for building win32 DLLs 1742 1825 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1743 1826 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) … … 1913 1996 case $deplibs_check_method in 1914 1997 "file_magic "*) 1915 file_magic_regex= "`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"1998 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 1916 1999 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 1917 2000 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | … … 2023 2106 lt_cv_path_LD="$ac_dir/$ac_prog" 2024 2107 # Check to see if the program is GNU ld. I'd rather use --version, 2025 # but apparently some GNU ld'sonly accept -v.2108 # but apparently some variants of GNU ld only accept -v. 2026 2109 # Break only if it was the GNU/non-GNU ld that we prefer. 2027 2110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in … … 2055 2138 [AC_REQUIRE([AC_PROG_EGREP])dnl 2056 2139 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2057 [# I'd rather use --version here, but apparently some GNU ld 's only accept -v.2140 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 2058 2141 case `$LD -v 2>&1 </dev/null` in 2059 2142 *GNU* | *'with BFD'*) … … 2082 2165 esac 2083 2166 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2167 case $host_os in 2168 darwin*) 2169 if test "$GCC" = yes; then 2170 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' 2171 else 2172 reload_cmds='$LD$reload_flag -o $output$reload_objs' 2173 fi 2174 ;; 2175 esac 2084 2176 ])# AC_PROG_LD_RELOAD_FLAG 2085 2177 … … 2115 2207 ;; 2116 2208 2117 bsdi 4*)2209 bsdi[[45]]*) 2118 2210 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 2119 2211 lt_cv_file_magic_cmd='/usr/bin/file -L' … … 2138 2230 ;; 2139 2231 2140 freebsd* | kfreebsd*-gnu )2232 freebsd* | kfreebsd*-gnu | dragonfly*) 2141 2233 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2142 2234 case $host_cpu in … … 2144 2236 # Not sure whether the presence of OpenBSD here was a mistake. 2145 2237 # Let's accept both of them until this is cleared up. 2146 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD )/i[[3-9]]86 (compact )?demand paged shared library'2238 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 2147 2239 lt_cv_file_magic_cmd=/usr/bin/file 2148 2240 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` … … 2160 2252 hpux10.20* | hpux11*) 2161 2253 lt_cv_file_magic_cmd=/usr/bin/file 2162 case "$host_cpu"in2254 case $host_cpu in 2163 2255 ia64*) 2164 2256 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' … … 2191 2283 ;; 2192 2284 2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)2285 netbsd*) 2194 2286 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2195 2287 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' … … 2210 2302 2211 2303 openbsd*) 2212 lt_cv_file_magic_cmd=/usr/bin/file2213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`2214 2304 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 2215 lt_cv_deplibs_check_method=' file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'2305 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 2216 2306 else 2217 lt_cv_deplibs_check_method=' file_magic OpenBSD.* shared library'2307 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 2218 2308 fi 2219 2309 ;; … … 2336 2426 # sets LIBLTDL to the link flags for the libltdl convenience library and 2337 2427 # LTDLINCL to the include flags for the libltdl header and adds 2338 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL2339 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2340 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will2341 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with2342 # '${top_srcdir}/' (note the single quotes!). If your package isnot2343 # flat and you're not using automake, define top_builddir and2344 # t op_srcdir appropriately in the Makefiles.2428 # --enable-ltdl-convenience to the configure arguments. Note that 2429 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2430 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2431 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2432 # (note the single quotes!). If your package is not flat and you're not 2433 # using automake, define top_builddir and top_srcdir appropriately in 2434 # the Makefiles. 2345 2435 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2346 2436 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 2361 2451 # sets LIBLTDL to the link flags for the libltdl installable library and 2362 2452 # LTDLINCL to the include flags for the libltdl header and adds 2363 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL2364 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2365 # DIRECTORY is not provided and an installed libltdl is not found, it is2366 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'2367 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single2368 # quotes!). If your package is not flat and you're not using automake,2369 # define top_builddir and top_srcdirappropriately in the Makefiles.2453 # --enable-ltdl-install to the configure arguments. Note that 2454 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2455 # and an installed libltdl is not found, it is assumed to be `libltdl'. 2456 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2457 # '${top_srcdir}/' (note the single quotes!). If your package is not 2458 # flat and you're not using automake, define top_builddir and top_srcdir 2459 # appropriately in the Makefiles. 2370 2460 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2371 2461 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], … … 2405 2495 AC_DEFUN([_LT_AC_LANG_CXX], 2406 2496 [AC_REQUIRE([AC_PROG_CXX]) 2407 AC_REQUIRE([ AC_PROG_CXXCPP])2497 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2408 2498 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 2409 2499 ])# _LT_AC_LANG_CXX 2410 2500 2501 # _LT_AC_PROG_CXXCPP 2502 # --------------- 2503 AC_DEFUN([_LT_AC_PROG_CXXCPP], 2504 [ 2505 AC_REQUIRE([AC_PROG_CXX]) 2506 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 2507 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 2508 (test "X$CXX" != "Xg++"))) ; then 2509 AC_PROG_CXXCPP 2510 fi 2511 ])# _LT_AC_PROG_CXXCPP 2411 2512 2412 2513 # AC_LIBTOOL_F77 … … 2481 2582 _LT_AC_SYS_COMPILER 2482 2583 2584 # save warnings/boilerplate of simple test code 2585 _LT_COMPILER_BOILERPLATE 2586 _LT_LINKER_BOILERPLATE 2587 2483 2588 # 2484 2589 # Check for any special shared library compilation flags. … … 2531 2636 # On AIX, shared libraries and static libraries use the same namespace, and 2532 2637 # are all built from PIC. 2533 case "$host_os"in2638 case $host_os in 2534 2639 aix3*) 2535 2640 test "$enable_shared" = yes && enable_static=no … … 2543 2648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 2544 2649 test "$enable_shared" = yes && enable_static=no 2545 fi2546 ;;2547 darwin* | rhapsody*)2548 if test "$GCC" = yes; then2549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no2550 case "$host_os" in2551 rhapsody* | darwin1.[[012]])2552 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'2553 ;;2554 *) # Darwin 1.3 on2555 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then2556 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2557 else2558 case ${MACOSX_DEPLOYMENT_TARGET} in2559 10.[[012]])2560 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'2561 ;;2562 10.*)2563 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'2564 ;;2565 esac2566 fi2567 ;;2568 esac2569 output_verbose_link_cmd='echo'2570 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'2571 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'2572 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's2573 _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}'2574 _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}'2575 _LT_AC_TAGVAR(hardcode_direct, $1)=no2576 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes2577 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported2578 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'2579 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes2580 else2581 _LT_AC_TAGVAR(ld_shlibs, $1)=no2582 2650 fi 2583 2651 ;; … … 2606 2674 [AC_LANG_PUSH(C++) 2607 2675 AC_REQUIRE([AC_PROG_CXX]) 2608 AC_REQUIRE([ AC_PROG_CXXCPP])2676 AC_REQUIRE([_LT_AC_PROG_CXXCPP]) 2609 2677 2610 2678 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no … … 2635 2703 2636 2704 # Source file extension for C++ test sources. 2637 ac_ext=c c2705 ac_ext=cpp 2638 2706 2639 2707 # Object file extension for compiled C++ test sources. … … 2649 2717 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 2650 2718 _LT_AC_SYS_COMPILER 2719 2720 # save warnings/boilerplate of simple test code 2721 _LT_COMPILER_BOILERPLATE 2722 _LT_LINKER_BOILERPLATE 2651 2723 2652 2724 # Allow CC to be a program name with arguments. … … 2671 2743 compiler=$CC 2672 2744 _LT_AC_TAGVAR(compiler, $1)=$CC 2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 2745 _LT_CC_BASENAME([$compiler]) 2674 2746 2675 2747 # We don't want -fno-exception wen compiling C++ code, so set the … … 2778 2850 2779 2851 if test "$GXX" = yes; then 2780 case $host_os in aix4.[ 012]|aix4.[012].*)2852 case $host_os in aix4.[[012]]|aix4.[[012]].*) 2781 2853 # We only want to do this on AIX 4.2 and lower, the check 2782 2854 # below for broken collect2 doesn't work under 4.3+ … … 2799 2871 esac 2800 2872 shared_flag='-shared' 2873 if test "$aix_use_runtimelinking" = yes; then 2874 shared_flag="$shared_flag "'${wl}-G' 2875 fi 2801 2876 else 2802 2877 # not using gcc … … 2844 2919 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 2845 2920 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 2846 # This is similar to how AIX traditionally builds it 's shared libraries.2921 # This is similar to how AIX traditionally builds its shared libraries. 2847 2922 _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' 2848 2923 fi … … 2857 2932 esac 2858 2933 ;; 2934 2859 2935 2860 2936 cygwin* | mingw* | pw32*) … … 2881 2957 fi 2882 2958 ;; 2883 2884 darwin* | rhapsody*) 2885 if test "$GXX" = yes; then 2886 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2887 case "$host_os" in 2888 rhapsody* | darwin1.[[012]]) 2889 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress' 2890 ;; 2891 *) # Darwin 1.3 on 2892 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2893 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2959 darwin* | rhapsody*) 2960 case $host_os in 2961 rhapsody* | darwin1.[[012]]) 2962 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 2963 ;; 2964 *) # Darwin 1.3 on 2965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 2966 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 2967 else 2968 case ${MACOSX_DEPLOYMENT_TARGET} in 2969 10.[[012]]) 2970 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 2971 ;; 2972 10.*) 2973 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 2974 ;; 2975 esac 2976 fi 2977 ;; 2978 esac 2979 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2980 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2981 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2982 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2983 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 2984 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2985 2986 if test "$GXX" = yes ; then 2987 lt_int_apple_cc_single_mod=no 2988 output_verbose_link_cmd='echo' 2989 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 2990 lt_int_apple_cc_single_mod=yes 2991 fi 2992 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2993 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2894 2994 else 2895 case ${MACOSX_DEPLOYMENT_TARGET} in 2896 10.[[012]]) 2897 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress' 2898 ;; 2899 10.*) 2900 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup' 2901 ;; 2902 esac 2995 _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' 2996 fi 2997 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2998 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 2999 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 3000 _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}' 3001 else 3002 _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}' 3003 fi 3004 _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}' 3005 else 3006 case $cc_basename in 3007 xlc*) 3008 output_verbose_link_cmd='echo' 3009 _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' 3010 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 3011 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 3012 _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}' 3013 _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}' 3014 ;; 3015 *) 3016 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3017 ;; 3018 esac 2903 3019 fi 2904 ;; 2905 esac 2906 lt_int_apple_cc_single_mod=no 2907 output_verbose_link_cmd='echo' 2908 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 2909 lt_int_apple_cc_single_mod=yes 2910 fi 2911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2912 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 2913 else 2914 _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' 2915 fi 2916 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 2917 2918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 2919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 2920 _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}' 2921 else 2922 _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}' 2923 fi 2924 _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}' 2925 _LT_AC_TAGVAR(hardcode_direct, $1)=no 2926 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 2927 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2928 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience' 2929 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 2930 else 2931 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2932 fi 2933 ;; 3020 ;; 2934 3021 2935 3022 dgux*) 2936 3023 case $cc_basename in 2937 ec++ )3024 ec++*) 2938 3025 # FIXME: insert proper C++ library support 2939 3026 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2940 3027 ;; 2941 ghcx )3028 ghcx*) 2942 3029 # Green Hills C++ Compiler 2943 3030 # FIXME: insert proper C++ library support … … 2950 3037 esac 2951 3038 ;; 2952 freebsd[ 12]*)3039 freebsd[[12]]*) 2953 3040 # C++ shared libraries reported to be fairly broken before switch to ELF 2954 3041 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 2957 3044 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 2958 3045 ;; 2959 freebsd* | kfreebsd*-gnu )3046 freebsd* | kfreebsd*-gnu | dragonfly*) 2960 3047 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 2961 3048 # conventions … … 2974 3061 2975 3062 case $cc_basename in 2976 CC )3063 CC*) 2977 3064 # FIXME: insert proper C++ library support 2978 3065 _LT_AC_TAGVAR(ld_shlibs, $1)=no 2979 3066 ;; 2980 aCC )3067 aCC*) 2981 3068 _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' 2982 3069 # Commands to make compiler produce verbose output that lists … … 2988 3075 # from the output so that they don't get included in the library 2989 3076 # dependencies. 2990 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'3077 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' 2991 3078 ;; 2992 3079 *) … … 3002 3089 hpux10*|hpux11*) 3003 3090 if test $with_gnu_ld = no; then 3004 case "$host_cpu"in3091 case $host_cpu in 3005 3092 hppa*64*) 3006 3093 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 3018 3105 esac 3019 3106 fi 3020 case "$host_cpu"in3107 case $host_cpu in 3021 3108 hppa*64*) 3022 3109 _LT_AC_TAGVAR(hardcode_direct, $1)=no … … 3039 3126 3040 3127 case $cc_basename in 3041 CC )3128 CC*) 3042 3129 # FIXME: insert proper C++ library support 3043 3130 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3044 3131 ;; 3045 aCC )3046 case "$host_cpu"in3132 aCC*) 3133 case $host_cpu in 3047 3134 hppa*64*|ia64*) 3048 3135 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' … … 3065 3152 if test "$GXX" = yes; then 3066 3153 if test $with_gnu_ld = no; then 3067 case "$host_cpu"in3154 case $host_cpu in 3068 3155 ia64*|hppa*64*) 3069 3156 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' … … 3083 3170 irix5* | irix6*) 3084 3171 case $cc_basename in 3085 CC )3172 CC*) 3086 3173 # SGI C++ 3087 _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 ${o bjdir}/so_locations -o $lib'3174 _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' 3088 3175 3089 3176 # Archives containing C++ object files must be created using … … 3096 3183 if test "$GXX" = yes; then 3097 3184 if test "$with_gnu_ld" = no; then 3098 _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}${o bjdir}/so_locations -o $lib'3185 _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' 3099 3186 else 3100 3187 _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' … … 3109 3196 linux*) 3110 3197 case $cc_basename in 3111 KCC )3198 KCC*) 3112 3199 # Kuck and Associates, Inc. (KAI) C++ Compiler 3113 3200 … … 3134 3221 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 3135 3222 ;; 3136 icpc )3223 icpc*) 3137 3224 # Intel C++ 3138 3225 with_gnu_ld=yes 3226 # version 8.0 and above of icpc choke on multiply defined symbols 3227 # if we add $predep_objects and $postdep_objects, however 7.1 and 3228 # earlier do not add the objects themselves. 3229 case `$CC -V 2>&1` in 3230 *"Version 7."*) 3231 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 3232 _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' 3233 ;; 3234 *) # Version 8.0 or newer 3235 tmp_idyn= 3236 case $host_cpu in 3237 ia64*) tmp_idyn=' -i_dynamic';; 3238 esac 3239 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 3240 _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' 3241 ;; 3242 esac 3139 3243 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3140 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'3141 _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'3142 3244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3143 3245 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3144 3246 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 3145 3247 ;; 3146 cxx) 3248 pgCC*) 3249 # Portland Group C++ compiler 3250 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 3251 _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' 3252 3253 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 3254 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 3255 _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' 3256 ;; 3257 cxx*) 3147 3258 # Compaq C++ 3148 3259 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' … … 3175 3286 mvs*) 3176 3287 case $cc_basename in 3177 cxx )3288 cxx*) 3178 3289 # FIXME: insert proper C++ library support 3179 3290 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3185 3296 esac 3186 3297 ;; 3187 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)3298 netbsd*) 3188 3299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 3189 3300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' … … 3196 3307 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 3197 3308 ;; 3309 openbsd2*) 3310 # C++ shared libraries are fairly broken 3311 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3312 ;; 3313 openbsd*) 3314 _LT_AC_TAGVAR(hardcode_direct, $1)=yes 3315 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3316 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 3317 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 3318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3319 _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' 3320 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 3321 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 3322 fi 3323 output_verbose_link_cmd='echo' 3324 ;; 3198 3325 osf3*) 3199 3326 case $cc_basename in 3200 KCC )3327 KCC*) 3201 3328 # Kuck and Associates, Inc. (KAI) C++ Compiler 3202 3329 … … 3214 3341 3215 3342 ;; 3216 RCC )3343 RCC*) 3217 3344 # Rational C++ 2.4.1 3218 3345 # FIXME: insert proper C++ library support 3219 3346 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3220 3347 ;; 3221 cxx )3348 cxx*) 3222 3349 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3223 _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 ${o bjdir}/so_locations -o $lib'3350 _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' 3224 3351 3225 3352 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3239 3366 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3240 3367 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3241 _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}${o bjdir}/so_locations -o $lib'3368 _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' 3242 3369 3243 3370 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3258 3385 osf4* | osf5*) 3259 3386 case $cc_basename in 3260 KCC )3387 KCC*) 3261 3388 # Kuck and Associates, Inc. (KAI) C++ Compiler 3262 3389 … … 3273 3400 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 3274 3401 ;; 3275 RCC )3402 RCC*) 3276 3403 # Rational C++ 2.4.1 3277 3404 # FIXME: insert proper C++ library support 3278 3405 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3279 3406 ;; 3280 cxx )3407 cxx*) 3281 3408 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 3282 _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 ${o bjdir}/so_locations -o $lib'3409 _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' 3283 3410 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 3284 3411 echo "-hidden">> $lib.exp~ 3285 $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~3412 $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~ 3286 3413 $rm $lib.exp' 3287 3414 … … 3302 3429 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 3303 3430 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 3304 _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}${o bjdir}/so_locations -o $lib'3431 _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' 3305 3432 3306 3433 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' … … 3326 3453 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3327 3454 case $cc_basename in 3328 CC )3455 CC*) 3329 3456 # FIXME: insert proper C++ library support 3330 3457 _LT_AC_TAGVAR(ld_shlibs, $1)=no … … 3338 3465 sunos4*) 3339 3466 case $cc_basename in 3340 CC )3467 CC*) 3341 3468 # Sun C++ 4.x 3342 3469 # FIXME: insert proper C++ library support 3343 3470 _LT_AC_TAGVAR(ld_shlibs, $1)=no 3344 3471 ;; 3345 lcc )3472 lcc*) 3346 3473 # Lucid 3347 3474 # FIXME: insert proper C++ library support … … 3356 3483 solaris*) 3357 3484 case $cc_basename in 3358 CC )3485 CC*) 3359 3486 # Sun C++ 4.2, 5.x and Centerline C++ 3487 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 3360 3488 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 3361 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib-h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'3489 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 3362 3490 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 3363 $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'3491 $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' 3364 3492 3365 3493 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 3366 3494 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 3367 3495 case $host_os in 3368 solaris2.[ 0-5] | solaris2.[0-5].*) ;;3496 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 3369 3497 *) 3370 3498 # The C++ compiler is used as linker so we must use $wl 3371 3499 # flag to pass the commands to the underlying system 3372 # linker. 3500 # linker. We must also pass each convience library through 3501 # to the system linker between allextract/defaultextract. 3502 # The C++ compiler will combine linker options so we 3503 # cannot just pass the convience library names through 3504 # without $wl. 3373 3505 # Supported since Solaris 2.6 (maybe 2.5.1?) 3374 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract $convenience${wl}-z ${wl}defaultextract'3506 _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' 3375 3507 ;; 3376 3508 esac 3377 3509 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3378 3510 3379 # Commands to make compiler produce verbose output that lists 3380 # what "hidden" libraries, object files and flags are used when 3381 # linking a shared library. 3382 # 3383 # There doesn't appear to be a way to prevent this compiler from 3384 # explicitly linking system object files so we need to strip them 3385 # from the output so that they don't get included in the library 3386 # dependencies. 3387 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' 3511 output_verbose_link_cmd='echo' 3388 3512 3389 3513 # Archives containing C++ object files must be created using … … 3393 3517 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 3394 3518 ;; 3395 gcx )3519 gcx*) 3396 3520 # Green Hills C++ Compiler 3397 3521 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' … … 3436 3560 tandem*) 3437 3561 case $cc_basename in 3438 NCC )3562 NCC*) 3439 3563 # NonStop-UX NCC 3.20 3440 3564 # FIXME: insert proper C++ library support … … 3542 3666 # $output_verbose_cmd can trigger glob expansion during the loop 3543 3667 # eval without this substitution. 3544 output_verbose_link_cmd= "`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"3668 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 3545 3669 3546 3670 for p in `eval $output_verbose_link_cmd`; do … … 3618 3742 $rm -f confest.$objext 3619 3743 3744 # PORTME: override above test on systems where it is broken 3745 ifelse([$1],[CXX], 3746 [case $host_os in 3747 solaris*) 3748 case $cc_basename in 3749 CC*) 3750 # Adding this requires a known-good setup of shared libraries for 3751 # Sun compiler versions before 5.6, else PIC objects from an old 3752 # archive will be linked into the output, leading to subtle bugs. 3753 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 3754 ;; 3755 esac 3756 esac 3757 ]) 3758 3620 3759 case " $_LT_AC_TAGVAR(postdeps, $1) " in 3621 3760 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; … … 3668 3807 _LT_AC_SYS_COMPILER 3669 3808 3809 # save warnings/boilerplate of simple test code 3810 _LT_COMPILER_BOILERPLATE 3811 _LT_LINKER_BOILERPLATE 3812 3670 3813 # Allow CC to be a program name with arguments. 3671 3814 lt_save_CC="$CC" … … 3673 3816 compiler=$CC 3674 3817 _LT_AC_TAGVAR(compiler, $1)=$CC 3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 3818 _LT_CC_BASENAME([$compiler]) 3676 3819 3677 3820 AC_MSG_CHECKING([if libtool supports shared libraries]) … … 3683 3826 # On AIX, shared libraries and static libraries use the same namespace, and 3684 3827 # are all built from PIC. 3685 case "$host_os"in3828 case $host_os in 3686 3829 aix3*) 3687 3830 test "$enable_shared" = yes && enable_static=no … … 3692 3835 ;; 3693 3836 aix4* | aix5*) 3694 test "$enable_shared" = yes && enable_static=no 3837 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 3838 test "$enable_shared" = yes && enable_static=no 3839 fi 3695 3840 ;; 3696 3841 esac … … 3743 3888 3744 3889 # Code to be used in simple link tests 3745 lt_simple_link_test_code='public class conftest { public static void main(String[ ] argv) {}; }\n'3890 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 3746 3891 3747 3892 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 3748 3893 _LT_AC_SYS_COMPILER 3894 3895 # save warnings/boilerplate of simple test code 3896 _LT_COMPILER_BOILERPLATE 3897 _LT_LINKER_BOILERPLATE 3749 3898 3750 3899 # Allow CC to be a program name with arguments. … … 3753 3902 compiler=$CC 3754 3903 _LT_AC_TAGVAR(compiler, $1)=$CC 3904 _LT_CC_BASENAME([$compiler]) 3755 3905 3756 3906 # GCJ did not exist at the time GCC didn't implicitly link libc in. 3757 3907 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 3908 3909 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 3758 3910 3759 3911 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 3799 3951 _LT_AC_SYS_COMPILER 3800 3952 3953 # save warnings/boilerplate of simple test code 3954 _LT_COMPILER_BOILERPLATE 3955 _LT_LINKER_BOILERPLATE 3956 3801 3957 # Allow CC to be a program name with arguments. 3802 3958 lt_save_CC="$CC" … … 3804 3960 compiler=$CC 3805 3961 _LT_AC_TAGVAR(compiler, $1)=$CC 3962 _LT_CC_BASENAME([$compiler]) 3806 3963 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 3807 3964 … … 3939 4096 # You should have received a copy of the GNU General Public License 3940 4097 # along with this program; if not, write to the Free Software 3941 # Foundation, Inc., 5 9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.4098 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 3942 4099 # 3943 4100 # As a special exception to the GNU General Public License, if you … … 3950 4107 3951 4108 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 3952 Xsed="$SED -e s/^X//"4109 Xsed="$SED -e 1s/^X//" 3953 4110 3954 4111 # The HP-UX ksh and POSIX shell print the target directory to stdout 3955 4112 # if CDPATH is set. 3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 4113 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3957 4114 3958 4115 # The names of the tagged configurations supported by this script. … … 3985 4142 host_alias=$host_alias 3986 4143 host=$host 4144 host_os=$host_os 4145 4146 # The build system. 4147 build_alias=$build_alias 4148 build=$build 4149 build_os=$build_os 3987 4150 3988 4151 # An echo program that does not interpret backslashes. … … 4061 4224 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 4062 4225 4063 # Must we lock files when doing compilation 4226 # Must we lock files when doing compilation? 4064 4227 need_locks=$lt_need_locks 4065 4228 … … 4335 4498 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 4336 4499 4337 # Transform the above into a raw symbol and a C symbol.4338 symxfrm='\1 \2\3 \3'4339 4340 4500 # Transform an extracted symbol line into a proper C declaration 4341 4501 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" … … 4359 4519 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'" 4360 4520 ;; 4521 linux*) 4522 if test "$host_cpu" = ia64; then 4523 symcode='[[ABCDGIRSTW]]' 4524 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4525 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'" 4526 fi 4527 ;; 4361 4528 irix* | nonstopux*) 4362 4529 symcode='[[BCDEGRST]]' … … 4390 4557 for ac_symprfx in "" "_"; do 4391 4558 4559 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 4560 symxfrm="\\1 $ac_symprfx\\2 \\2" 4561 4392 4562 # Write the raw and C identifiers. 4393 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]* \($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"4563 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 4394 4564 4395 4565 # Check to see that the pipe works correctly. … … 4555 4725 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4556 4726 # not for PA HP-UX. 4557 case "$host_cpu"in4727 case $host_cpu in 4558 4728 hppa*64*|ia64*) 4559 4729 ;; … … 4580 4750 chorus*) 4581 4751 case $cc_basename in 4582 cxch68 )4752 cxch68*) 4583 4753 # Green Hills C++ Compiler 4584 4754 # _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" … … 4586 4756 esac 4587 4757 ;; 4758 darwin*) 4759 # PIC is the default on this platform 4760 # Common symbols not allowed in MH_DYLIB files 4761 case $cc_basename in 4762 xlc*) 4763 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 4764 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4765 ;; 4766 esac 4767 ;; 4588 4768 dgux*) 4589 4769 case $cc_basename in 4590 ec++ )4770 ec++*) 4591 4771 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4592 4772 ;; 4593 ghcx )4773 ghcx*) 4594 4774 # Green Hills C++ Compiler 4595 4775 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4599 4779 esac 4600 4780 ;; 4601 freebsd* | kfreebsd*-gnu )4781 freebsd* | kfreebsd*-gnu | dragonfly*) 4602 4782 # FreeBSD uses GNU C++ 4603 4783 ;; 4604 4784 hpux9* | hpux10* | hpux11*) 4605 4785 case $cc_basename in 4606 CC )4786 CC*) 4607 4787 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4608 4788 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" … … 4611 4791 fi 4612 4792 ;; 4613 aCC )4793 aCC*) 4614 4794 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4615 4795 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 4616 case "$host_cpu"in4796 case $host_cpu in 4617 4797 hppa*64*|ia64*) 4618 4798 # +Z the default … … 4629 4809 irix5* | irix6* | nonstopux*) 4630 4810 case $cc_basename in 4631 CC )4811 CC*) 4632 4812 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4633 4813 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' … … 4640 4820 linux*) 4641 4821 case $cc_basename in 4642 KCC )4822 KCC*) 4643 4823 # KAI C++ Compiler 4644 4824 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4645 4825 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4646 4826 ;; 4647 icpc )4827 icpc* | ecpc*) 4648 4828 # Intel C++ 4649 4829 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4651 4831 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 4652 4832 ;; 4653 cxx) 4833 pgCC*) 4834 # Portland Group C++ compiler. 4835 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4836 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 4837 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4838 ;; 4839 cxx*) 4654 4840 # Compaq C++ 4655 4841 # Make sure the PIC flag is empty. It appears that all Alpha … … 4668 4854 mvs*) 4669 4855 case $cc_basename in 4670 cxx )4856 cxx*) 4671 4857 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 4672 4858 ;; … … 4675 4861 esac 4676 4862 ;; 4677 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)4863 netbsd*) 4678 4864 ;; 4679 4865 osf3* | osf4* | osf5*) 4680 4866 case $cc_basename in 4681 KCC )4867 KCC*) 4682 4868 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 4683 4869 ;; 4684 RCC )4870 RCC*) 4685 4871 # Rational C++ 2.4.1 4686 4872 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4687 4873 ;; 4688 cxx )4874 cxx*) 4689 4875 # Digital/Compaq C++ 4690 4876 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' … … 4702 4888 sco*) 4703 4889 case $cc_basename in 4704 CC )4890 CC*) 4705 4891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 4706 4892 ;; … … 4711 4897 solaris*) 4712 4898 case $cc_basename in 4713 CC )4899 CC*) 4714 4900 # Sun C++ 4.2, 5.x and Centerline C++ 4715 4901 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4717 4903 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 4718 4904 ;; 4719 gcx )4905 gcx*) 4720 4906 # Green Hills C++ Compiler 4721 4907 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' … … 4727 4913 sunos4*) 4728 4914 case $cc_basename in 4729 CC )4915 CC*) 4730 4916 # Sun C++ 4.x 4731 4917 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 4732 4918 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4733 4919 ;; 4734 lcc )4920 lcc*) 4735 4921 # Lucid 4736 4922 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' … … 4742 4928 tandem*) 4743 4929 case $cc_basename in 4744 NCC )4930 NCC*) 4745 4931 # NonStop-UX NCC 3.20 4746 4932 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' … … 4813 4999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4814 5000 # not for PA HP-UX. 4815 case "$host_cpu"in5001 case $host_cpu in 4816 5002 hppa*64*|ia64*) 4817 5003 # +Z the default … … 4839 5025 fi 4840 5026 ;; 5027 darwin*) 5028 # PIC is the default on this platform 5029 # Common symbols not allowed in MH_DYLIB files 5030 case $cc_basename in 5031 xlc*) 5032 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 5033 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5034 ;; 5035 esac 5036 ;; 4841 5037 4842 5038 mingw* | pw32* | os2*) … … 4850 5046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 4851 5047 # not for PA HP-UX. 4852 case "$host_cpu"in5048 case $host_cpu in 4853 5049 hppa*64*|ia64*) 4854 5050 # +Z the default … … 4874 5070 4875 5071 linux*) 4876 case $ CCin5072 case $cc_basename in 4877 5073 icc* | ecc*) 4878 5074 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 4879 5075 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4880 5076 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 5077 ;; 5078 pgcc* | pgf77* | pgf90* | pgf95*) 5079 # Portland Group compilers (*not* the Pentium gcc compiler, 5080 # which looks to be a dead project) 5081 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5082 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 5083 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4881 5084 ;; 4882 5085 ccc*) … … 4900 5103 4901 5104 solaris*) 4902 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'4903 5105 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 4904 5106 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 5107 case $cc_basename in 5108 f77* | f90* | f95*) 5109 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 5110 *) 5111 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 5112 esac 4905 5113 ;; 4906 5114 … … 4922 5130 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 4923 5131 fi 5132 ;; 5133 5134 unicos*) 5135 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 5136 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 4924 5137 ;; 4925 5138 … … 4951 5164 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 4952 5165 fi 4953 case "$host_os"in5166 case $host_os in 4954 5167 # For platforms which do not support PIC, -DPIC is meaningless: 4955 5168 *djgpp*) … … 4984 5197 ;; 4985 5198 cygwin* | mingw*) 4986 _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' 4987 ;; 4988 linux*) 4989 _LT_AC_TAGVAR(link_all_deplibs, $1)=no 5199 _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' 4990 5200 ;; 4991 5201 *) … … 5030 5240 # preloaded symbol tables. 5031 5241 extract_expsyms_cmds= 5032 5242 # Just being paranoid about ensuring that cc_basename is set. 5243 _LT_CC_BASENAME([$compiler]) 5033 5244 case $host_os in 5034 5245 cygwin* | mingw* | pw32*) … … 5049 5260 # If archive_cmds runs LD, not CC, wlarc should be empty 5050 5261 wlarc='${wl}' 5262 5263 # Set some defaults for GNU ld with shared library support. These 5264 # are reset later if shared libraries are not supported. Putting them 5265 # here allows them to be overridden if necessary. 5266 runpath_var=LD_RUN_PATH 5267 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5268 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5269 # ancient GNU ld didn't support --whole-archive et. al. 5270 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5271 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5272 else 5273 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5274 fi 5275 supports_anon_versioning=no 5276 case `$LD -v 2>/dev/null` in 5277 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 5278 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 5279 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 5280 *\ 2.11.*) ;; # other 2.11 versions 5281 *) supports_anon_versioning=yes ;; 5282 esac 5051 5283 5052 5284 # See if GNU ld supports shared libraries. … … 5100 5332 _LT_AC_TAGVAR(always_export_symbols, $1)=no 5101 5333 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5102 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDG S]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'5334 _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' 5103 5335 5104 5336 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then … … 5114 5346 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 5115 5347 else 5116 ld_shlibs=no5348 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5117 5349 fi 5118 5350 ;; 5119 5351 5120 netbsd* | netbsdelf*-gnu | knetbsd*-gnu) 5352 linux*) 5353 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 5354 tmp_addflag= 5355 case $cc_basename,$host_cpu in 5356 pgcc*) # Portland Group C compiler 5357 _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' 5358 tmp_addflag=' $pic_flag' 5359 ;; 5360 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 5361 _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' 5362 tmp_addflag=' $pic_flag -Mnomain' ;; 5363 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 5364 tmp_addflag=' -i_dynamic' ;; 5365 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 5366 tmp_addflag=' -i_dynamic -nofor_main' ;; 5367 ifc* | ifort*) # Intel Fortran compiler 5368 tmp_addflag=' -nofor_main' ;; 5369 esac 5370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 5371 5372 if test $supports_anon_versioning = yes; then 5373 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 5374 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 5375 $echo "local: *; };" >> $output_objdir/$libname.ver~ 5376 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 5377 fi 5378 else 5379 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5380 fi 5381 ;; 5382 5383 netbsd*) 5121 5384 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5122 5385 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' … … 5156 5419 ;; 5157 5420 5158 linux*)5159 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then5160 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'5161 _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"5162 supports_anon_versioning=no5163 case `$LD -v 2>/dev/null` in5164 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.115165 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...5166 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...5167 *\ 2.11.*) ;; # other 2.11 versions5168 *) supports_anon_versioning=yes ;;5169 esac5170 if test $supports_anon_versioning = yes; then5171 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~5173 $echo "local: *; };" >> $output_objdir/$libname.ver~5174 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'5175 else5176 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"5177 fi5178 _LT_AC_TAGVAR(link_all_deplibs, $1)=no5179 else5180 _LT_AC_TAGVAR(ld_shlibs, $1)=no5181 fi5182 ;;5183 5184 5421 *) 5185 5422 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then … … 5192 5429 esac 5193 5430 5194 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then 5195 runpath_var=LD_RUN_PATH 5196 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 5197 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 5198 # ancient GNU ld didn't support --whole-archive et. al. 5199 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 5200 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 5201 else 5202 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5203 fi 5431 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 5432 runpath_var= 5433 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 5434 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 5435 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 5204 5436 fi 5205 5437 else … … 5265 5497 5266 5498 if test "$GCC" = yes; then 5267 case $host_os in aix4.[ 012]|aix4.[012].*)5499 case $host_os in aix4.[[012]]|aix4.[[012]].*) 5268 5500 # We only want to do this on AIX 4.2 and lower, the check 5269 5501 # below for broken collect2 doesn't work under 4.3+ … … 5286 5518 esac 5287 5519 shared_flag='-shared' 5520 if test "$aix_use_runtimelinking" = yes; then 5521 shared_flag="$shared_flag "'${wl}-G' 5522 fi 5288 5523 else 5289 5524 # not using gcc … … 5330 5565 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' 5331 5566 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 5332 # This is similar to how AIX traditionally builds it 's shared libraries.5567 # This is similar to how AIX traditionally builds its shared libraries. 5333 5568 _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' 5334 5569 fi … … 5344 5579 ;; 5345 5580 5346 bsdi 4*)5581 bsdi[[45]]*) 5347 5582 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 5348 5583 ;; … … 5365 5600 # FIXME: Should let the user specify the lib program. 5366 5601 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 5367 fix_srcfile_path='`cygpath -w "$srcfile"`'5602 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 5368 5603 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 5369 5604 ;; 5370 5605 5371 5606 darwin* | rhapsody*) 5372 if test "$GXX" = yes ; then 5607 case $host_os in 5608 rhapsody* | darwin1.[[012]]) 5609 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 5610 ;; 5611 *) # Darwin 1.3 on 5612 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 5613 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5614 else 5615 case ${MACOSX_DEPLOYMENT_TARGET} in 5616 10.[[012]]) 5617 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 5618 ;; 5619 10.*) 5620 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 5621 ;; 5622 esac 5623 fi 5624 ;; 5625 esac 5373 5626 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 5374 case "$host_os" in5375 rhapsody* | darwin1.[[012]])5376 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'5377 ;;5378 *) # Darwin 1.3 on5379 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then5380 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5381 else5382 case ${MACOSX_DEPLOYMENT_TARGET} in5383 10.[[012]])5384 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'5385 ;;5386 10.*)5387 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'5388 ;;5389 esac5390 fi5391 ;;5392 esac5393 lt_int_apple_cc_single_mod=no5394 output_verbose_link_cmd='echo'5395 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then5396 lt_int_apple_cc_single_mod=yes5397 fi5398 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5399 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'5400 else5401 _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'5402 fi5403 _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'5404 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's5405 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then5406 _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}'5407 else5408 _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}'5409 fi5410 _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}'5411 5627 _LT_AC_TAGVAR(hardcode_direct, $1)=no 5412 5628 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 5413 5629 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 5414 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' -all_load $convenience'5630 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 5415 5631 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 5632 if test "$GCC" = yes ; then 5633 output_verbose_link_cmd='echo' 5634 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 5635 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5636 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 5637 _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}' 5638 _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}' 5416 5639 else 5417 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5640 case $cc_basename in 5641 xlc*) 5642 output_verbose_link_cmd='echo' 5643 _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' 5644 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 5645 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 5646 _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}' 5647 _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}' 5648 ;; 5649 *) 5650 _LT_AC_TAGVAR(ld_shlibs, $1)=no 5651 ;; 5652 esac 5418 5653 fi 5419 5654 ;; … … 5449 5684 5450 5685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 5451 freebsd* | kfreebsd*-gnu )5686 freebsd* | kfreebsd*-gnu | dragonfly*) 5452 5687 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 5453 5688 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' … … 5474 5709 hpux10* | hpux11*) 5475 5710 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 5476 case "$host_cpu"in5711 case $host_cpu in 5477 5712 hppa*64*|ia64*) 5478 5713 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' … … 5483 5718 esac 5484 5719 else 5485 case "$host_cpu"in5720 case $host_cpu in 5486 5721 hppa*64*|ia64*) 5487 5722 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' … … 5493 5728 fi 5494 5729 if test "$with_gnu_ld" = no; then 5495 case "$host_cpu"in5730 case $host_cpu in 5496 5731 hppa*64*) 5497 5732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' … … 5536 5771 ;; 5537 5772 5538 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)5773 netbsd*) 5539 5774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 5540 5775 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out … … 5560 5795 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5561 5796 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 5797 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 5562 5798 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 5563 5799 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' … … 5605 5841 _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' 5606 5842 _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~ 5607 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${o bjdir}/so_locations -o $lib~$rm $lib.exp'5843 $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' 5608 5844 5609 5845 # Both c and cxx compiler support -rpath directly … … 5624 5860 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 5625 5861 if test "$GCC" = yes; then 5862 wlarc='${wl}' 5626 5863 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 5627 5864 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 5628 5865 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 5629 5866 else 5867 wlarc='' 5630 5868 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 5631 5869 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ … … 5636 5874 case $host_os in 5637 5875 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 5638 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 5639 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 5876 *) 5877 # The compiler driver will combine linker options so we 5878 # cannot just pass the convience library names through 5879 # without $wl, iff we do not link with $LD. 5880 # Luckily, gcc supports the same syntax we need for Sun Studio. 5881 # Supported since Solaris 2.6 (maybe 2.5.1?) 5882 case $wlarc in 5883 '') 5884 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 5885 *) 5886 _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' ;; 5887 esac ;; 5640 5888 esac 5641 5889 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes … … 5898 6146 # along with /bin/sed that truncates output. 5899 6147 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 5900 test ! -f $lt_ac_sed && break6148 test ! -f $lt_ac_sed && continue 5901 6149 cat /dev/null > conftest.in 5902 6150 lt_ac_count=0 … … 5923 6171 done 5924 6172 done 6173 ]) 5925 6174 SED=$lt_cv_path_SED 5926 ])5927 6175 AC_MSG_RESULT([$SED]) 5928 6176 ]) … … 5961 6209 fi 5962 6210 if test -n "$PKG_CONFIG"; then 5963 _pkg_min_version=m4_ ifval([$1],[$1], [0.9.0])6211 _pkg_min_version=m4_default([$1], [0.9.0]) 5964 6212 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 5965 6213 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then … … 5973 6221 ])# PKG_PROG_PKG_CONFIG 5974 6222 6223 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 6224 # 6225 # Check to see whether a particular set of modules exists. Similar 6226 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 6227 # 6228 # 6229 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 6230 # this or PKG_CHECK_MODULES is called, or make sure to call 6231 # PKG_CHECK_EXISTS manually 6232 # -------------------------------------------------------------- 6233 AC_DEFUN([PKG_CHECK_EXISTS], 6234 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 6235 if test -n "$PKG_CONFIG" && \ 6236 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 6237 m4_ifval([$2], [$2], [:]) 6238 m4_ifvaln([$3], [else 6239 $3])dnl 6240 fi]) 6241 6242 5975 6243 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 5976 6244 # --------------------------------------------- 5977 6245 m4_define([_PKG_CONFIG], 5978 [if test "x$ac_cv_env_[]$1[]_set" = "xset"; then5979 pkg_cv_[]$1=$ac_cv_env_[]$1[]_value 5980 elif test -n "$PKG_CONFIG"; then 5981 if AC_RUN_LOG([$PKG_CONFIG --exists "$3" >/dev/null 2>&1]); then 5982 pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` 5983 else 5984 pkg_failed=yes5985 6246 [if test -n "$PKG_CONFIG"; then 6247 if test -n "$$1"; then 6248 pkg_cv_[]$1="$$1" 6249 else 6250 PKG_CHECK_EXISTS([$3], 6251 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 6252 [pkg_failed=yes]) 6253 fi 5986 6254 else 5987 6255 pkg_failed=untried 5988 6256 fi[]dnl 5989 6257 ])# _PKG_CONFIG 6258 6259 # _PKG_SHORT_ERRORS_SUPPORTED 6260 # ----------------------------- 6261 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 6262 [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 6263 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 6264 _pkg_short_errors_supported=yes 6265 else 6266 _pkg_short_errors_supported=no 6267 fi[]dnl 6268 ])# _PKG_SHORT_ERRORS_SUPPORTED 6269 5990 6270 5991 6271 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], … … 5995 6275 # Note that if there is a possibility the first call to 5996 6276 # PKG_CHECK_MODULES might not happen, you should be sure to include an 5997 # explicit call to PKG_PROG_PKG_CONFIG in your configure. in6277 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 5998 6278 # 5999 6279 # … … 6005 6285 6006 6286 pkg_failed=no 6007 AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS], 6008 [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])]) 6009 AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS], 6010 [_PKG_CONFIG([$1][_LIBS], [libs], [$2])]) 6287 AC_MSG_CHECKING([for $1]) 6288 6289 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 6290 _PKG_CONFIG([$1][_LIBS], [libs], [$2]) 6291 6292 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 6293 and $1[]_LIBS to avoid the need to call pkg-config. 6294 See the pkg-config man page for more details.]) 6011 6295 6012 6296 if test $pkg_failed = yes; then 6013 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 6297 _PKG_SHORT_ERRORS_SUPPORTED 6298 if test $_pkg_short_errors_supported = yes; then 6299 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 6300 else 6301 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 6302 fi 6014 6303 # Put the nasty error message in config.log where it belongs 6015 echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD6304 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 6016 6305 6017 6306 ifelse([$4], , [AC_MSG_ERROR(dnl 6018 [Package requirements ($2) were not met. 6307 [Package requirements ($2) were not met: 6308 6309 $$1_PKG_ERRORS 6310 6019 6311 Consider adjusting the PKG_CONFIG_PATH environment variable if you 6020 6312 installed software in a non-standard prefix. 6021 6313 6022 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables 6023 to avoid the need to call pkg-config. See the pkg-config man page for 6024 more details.])], 6314 _PKG_TEXT 6315 ])], 6025 6316 [$4]) 6026 6317 elif test $pkg_failed = untried; then … … 6030 6321 path to pkg-config. 6031 6322 6032 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables 6033 to avoid the need to call pkg-config. See the pkg-config man page for 6034 more details. 6323 _PKG_TEXT 6035 6324 6036 6325 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], … … 6039 6328 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 6040 6329 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 6330 AC_MSG_RESULT([yes]) 6041 6331 ifelse([$3], , :, [$3]) 6042 6332 fi[]dnl … … 6060 6350 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 6061 6351 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 6062 [AM_AUTOMAKE_VERSION([1.9. 5])])6352 [AM_AUTOMAKE_VERSION([1.9.6])]) 6063 6353 6064 6354 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
Note: See TracChangeset
for help on using the changeset viewer.