Changes in libcfa/configure [2b3d6ff:e523b07]
- File:
-
- 1 edited
-
libcfa/configure (modified) (39 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
r2b3d6ff re523b07 198 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 210 201 if (eval "$as_required") 2>/dev/null; then : 211 202 as_have_required=yes … … 565 556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 557 567 SHELL=${CONFIG_SHELL-/bin/sh}568 569 558 570 559 test -n "$DJDIR" || exec 7<&0 </dev/null … … 596 585 PACKAGE_URL='' 597 586 598 # Factoring default headers for most tests.599 ac_includes_default="\600 #include <stdio.h>601 #ifdef HAVE_SYS_TYPES_H602 # include <sys/types.h>603 #endif604 #ifdef HAVE_SYS_STAT_H605 # include <sys/stat.h>606 #endif607 #ifdef STDC_HEADERS608 # include <stdlib.h>609 # include <stddef.h>610 #else611 # ifdef HAVE_STDLIB_H612 # include <stdlib.h>613 # endif614 #endif615 #ifdef HAVE_STRING_H616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H617 # include <memory.h>618 # endif619 # include <string.h>620 #endif621 #ifdef HAVE_STRINGS_H622 # include <strings.h>623 #endif624 #ifdef HAVE_INTTYPES_H625 # include <inttypes.h>626 #endif627 #ifdef HAVE_STDINT_H628 # include <stdint.h>629 #endif630 #ifdef HAVE_UNISTD_H631 # include <unistd.h>632 #endif"633 634 587 ac_subst_vars='am__EXEEXT_FALSE 635 588 am__EXEEXT_TRUE 636 589 LTLIBOBJS 637 590 LIBOBJS 591 RANLIB 638 592 am__fastdepCCAS_FALSE 639 593 am__fastdepCCAS_TRUE … … 641 595 CCASFLAGS 642 596 CCAS 643 CXXCPP 597 am__fastdepCC_FALSE 598 am__fastdepCC_TRUE 599 CCDEPMODE 600 ac_ct_CC 601 CFLAGS 602 CC 644 603 am__fastdepCXX_FALSE 645 604 am__fastdepCXX_TRUE 646 605 CXXDEPMODE 647 ac_ct_CXX648 CXXFLAGS649 CXX650 CPP651 LT_SYS_LIBRARY_PATH652 OTOOL64653 OTOOL654 LIPO655 NMEDIT656 DSYMUTIL657 MANIFEST_TOOL658 RANLIB659 ac_ct_AR660 AR661 DLLTOOL662 OBJDUMP663 LN_S664 NM665 ac_ct_DUMPBIN666 DUMPBIN667 LD668 FGREP669 EGREP670 GREP671 SED672 am__fastdepCC_FALSE673 am__fastdepCC_TRUE674 CCDEPMODE675 606 am__nodep 676 607 AMDEPBACKSLASH … … 682 613 OBJEXT 683 614 EXEEXT 684 ac_ct_C C615 ac_ct_CXX 685 616 CPPFLAGS 686 617 LDFLAGS 687 CFLAGS 688 CC 689 host_os 690 host_vendor 691 host_cpu 692 host 693 build_os 694 build_vendor 695 build_cpu 696 build 697 LIBTOOL 618 CXXFLAGS 619 CXX 698 620 CFA_LIBDIR 699 621 CFA_BINDIR … … 709 631 CFACPP 710 632 CFACC 711 CFA_VERSION712 633 DRIVER_DIR 713 634 CONFIGURATION … … 784 705 enable_silent_rules 785 706 with_cfa_name 786 enable_shared787 enable_static788 with_pic789 enable_fast_install790 with_aix_soname791 707 enable_dependency_tracking 792 with_gnu_ld793 with_sysroot794 enable_libtool_lock795 708 ' 796 709 ac_precious_vars='build_alias … … 800 713 CONFIGURATION 801 714 DRIVER_DIR 802 CFA_VERSION 803 CC 804 CFLAGS 715 CXX 716 CXXFLAGS 805 717 LDFLAGS 806 718 LIBS 807 719 CPPFLAGS 808 LT_SYS_LIBRARY_PATH809 CPP810 CXX811 CXXFLAGS812 720 CCC 813 CXXCPP 721 CC 722 CFLAGS 814 723 CCAS 815 724 CCASFLAGS' … … 1426 1335 --program-suffix=SUFFIX append SUFFIX to installed program names 1427 1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1428 1429 System types:1430 --build=BUILD configure for building on BUILD [guessed]1431 --host=HOST cross-compile to build programs to run on HOST [BUILD]1432 1337 _ACEOF 1433 1338 fi … … 1445 1350 --enable-silent-rules less verbose build output (undo: "make V=1") 1446 1351 --disable-silent-rules verbose build output (undo: "make V=0") 1447 --enable-shared[=PKGS] build shared libraries [default=yes]1448 --enable-static[=PKGS] build static libraries [default=yes]1449 --enable-fast-install[=PKGS]1450 optimize for fast installation [default=yes]1451 1352 --enable-dependency-tracking 1452 1353 do not reject slow dependency extractors 1453 1354 --disable-dependency-tracking 1454 1355 speeds up one-time build 1455 --disable-libtool-lock avoid locking (might break parallel builds)1456 1356 1457 1357 Optional Packages: … … 1459 1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 1360 --with-cfa-name=NAME NAME too which cfa will be installed 1461 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1462 both]1463 --with-aix-soname=aix|svr4|both1464 shared library versioning (aka "SONAME") variant to1465 provide on AIX, [default=aix].1466 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1467 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the1468 compiler's sysroot if not specified).1469 1361 1470 1362 Some influential environment variables: … … 1475 1367 deubg, nodebug, nolib (prelude-only) 1476 1368 DRIVER_DIR The path to the cforall driver directory 1477 CFA_VERSION The long version of cfa 1478 CC C compiler command 1479 CFLAGS C compiler flags 1369 CXX C++ compiler command 1370 CXXFLAGS C++ compiler flags 1480 1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1481 1372 nonstandard directory <lib dir> … … 1483 1374 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1484 1375 you have headers in a nonstandard directory <include dir> 1485 LT_SYS_LIBRARY_PATH 1486 User-defined run-time library search path. 1487 CPP C preprocessor 1488 CXX C++ compiler command 1489 CXXFLAGS C++ compiler flags 1490 CXXCPP C++ preprocessor 1376 CC C compiler command 1377 CFLAGS C compiler flags 1491 1378 CCAS assembler compiler command (defaults to CC) 1492 1379 CCASFLAGS assembler compiler flags (defaults to CFLAGS) … … 1571 1458 ## Autoconf initialization. ## 1572 1459 ## ------------------------ ## 1460 1461 # ac_fn_cxx_try_compile LINENO 1462 # ---------------------------- 1463 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1464 ac_fn_cxx_try_compile () 1465 { 1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1467 rm -f conftest.$ac_objext 1468 if { { ac_try="$ac_compile" 1469 case "(($ac_try" in 1470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1471 *) ac_try_echo=$ac_try;; 1472 esac 1473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1474 $as_echo "$ac_try_echo"; } >&5 1475 (eval "$ac_compile") 2>conftest.err 1476 ac_status=$? 1477 if test -s conftest.err; then 1478 grep -v '^ *+' conftest.err >conftest.er1 1479 cat conftest.er1 >&5 1480 mv -f conftest.er1 conftest.err 1481 fi 1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1483 test $ac_status = 0; } && { 1484 test -z "$ac_cxx_werror_flag" || 1485 test ! -s conftest.err 1486 } && test -s conftest.$ac_objext; then : 1487 ac_retval=0 1488 else 1489 $as_echo "$as_me: failed program was:" >&5 1490 sed 's/^/| /' conftest.$ac_ext >&5 1491 1492 ac_retval=1 1493 fi 1494 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1495 as_fn_set_status $ac_retval 1496 1497 } # ac_fn_cxx_try_compile 1573 1498 1574 1499 # ac_fn_c_try_compile LINENO … … 1609 1534 1610 1535 } # ac_fn_c_try_compile 1611 1612 # ac_fn_c_try_link LINENO1613 # -----------------------1614 # Try to link conftest.$ac_ext, and return whether this succeeded.1615 ac_fn_c_try_link ()1616 {1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1618 rm -f conftest.$ac_objext conftest$ac_exeext1619 if { { ac_try="$ac_link"1620 case "(($ac_try" in1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1622 *) ac_try_echo=$ac_try;;1623 esac1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1625 $as_echo "$ac_try_echo"; } >&51626 (eval "$ac_link") 2>conftest.err1627 ac_status=$?1628 if test -s conftest.err; then1629 grep -v '^ *+' conftest.err >conftest.er11630 cat conftest.er1 >&51631 mv -f conftest.er1 conftest.err1632 fi1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51634 test $ac_status = 0; } && {1635 test -z "$ac_c_werror_flag" ||1636 test ! -s conftest.err1637 } && test -s conftest$ac_exeext && {1638 test "$cross_compiling" = yes ||1639 test -x conftest$ac_exeext1640 }; then :1641 ac_retval=01642 else1643 $as_echo "$as_me: failed program was:" >&51644 sed 's/^/| /' conftest.$ac_ext >&51645 1646 ac_retval=11647 fi1648 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1649 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1650 # interfere with the next link command; also delete a directory that is1651 # left behind by Apple's compiler. We do this before executing the actions.1652 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1654 as_fn_set_status $ac_retval1655 1656 } # ac_fn_c_try_link1657 1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1659 # -------------------------------------------------------1660 # Tests whether HEADER exists and can be compiled using the include files in1661 # INCLUDES, setting the cache variable VAR accordingly.1662 ac_fn_c_check_header_compile ()1663 {1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51666 $as_echo_n "checking for $2... " >&6; }1667 if eval \${$3+:} false; then :1668 $as_echo_n "(cached) " >&61669 else1670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1671 /* end confdefs.h. */1672 $41673 #include <$2>1674 _ACEOF1675 if ac_fn_c_try_compile "$LINENO"; then :1676 eval "$3=yes"1677 else1678 eval "$3=no"1679 fi1680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1681 fi1682 eval ac_res=\$$31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51684 $as_echo "$ac_res" >&6; }1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1686 1687 } # ac_fn_c_check_header_compile1688 1689 # ac_fn_c_try_cpp LINENO1690 # ----------------------1691 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1692 ac_fn_c_try_cpp ()1693 {1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1695 if { { ac_try="$ac_cpp conftest.$ac_ext"1696 case "(($ac_try" in1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1698 *) ac_try_echo=$ac_try;;1699 esac1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1701 $as_echo "$ac_try_echo"; } >&51702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1703 ac_status=$?1704 if test -s conftest.err; then1705 grep -v '^ *+' conftest.err >conftest.er11706 cat conftest.er1 >&51707 mv -f conftest.er1 conftest.err1708 fi1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51710 test $ac_status = 0; } > conftest.i && {1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1712 test ! -s conftest.err1713 }; then :1714 ac_retval=01715 else1716 $as_echo "$as_me: failed program was:" >&51717 sed 's/^/| /' conftest.$ac_ext >&51718 1719 ac_retval=11720 fi1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1722 as_fn_set_status $ac_retval1723 1724 } # ac_fn_c_try_cpp1725 1726 # ac_fn_c_try_run LINENO1727 # ----------------------1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1729 # that executables *can* be run.1730 ac_fn_c_try_run ()1731 {1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1733 if { { ac_try="$ac_link"1734 case "(($ac_try" in1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1736 *) ac_try_echo=$ac_try;;1737 esac1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1739 $as_echo "$ac_try_echo"; } >&51740 (eval "$ac_link") 2>&51741 ac_status=$?1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1744 { { case "(($ac_try" in1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1746 *) ac_try_echo=$ac_try;;1747 esac1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1749 $as_echo "$ac_try_echo"; } >&51750 (eval "$ac_try") 2>&51751 ac_status=$?1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51753 test $ac_status = 0; }; }; then :1754 ac_retval=01755 else1756 $as_echo "$as_me: program exited with status $ac_status" >&51757 $as_echo "$as_me: failed program was:" >&51758 sed 's/^/| /' conftest.$ac_ext >&51759 1760 ac_retval=$ac_status1761 fi1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1764 as_fn_set_status $ac_retval1765 1766 } # ac_fn_c_try_run1767 1768 # ac_fn_c_check_func LINENO FUNC VAR1769 # ----------------------------------1770 # Tests whether FUNC exists, setting the cache variable VAR accordingly1771 ac_fn_c_check_func ()1772 {1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51775 $as_echo_n "checking for $2... " >&6; }1776 if eval \${$3+:} false; then :1777 $as_echo_n "(cached) " >&61778 else1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1780 /* end confdefs.h. */1781 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.1782 For example, HP-UX 11i <limits.h> declares gettimeofday. */1783 #define $2 innocuous_$21784 1785 /* System header to define __stub macros and hopefully few prototypes,1786 which can conflict with char $2 (); below.1787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1788 <limits.h> exists even on freestanding compilers. */1789 1790 #ifdef __STDC__1791 # include <limits.h>1792 #else1793 # include <assert.h>1794 #endif1795 1796 #undef $21797 1798 /* Override any GCC internal prototype to avoid an error.1799 Use char because int might match the return type of a GCC1800 builtin and then its argument prototype would still apply. */1801 #ifdef __cplusplus1802 extern "C"1803 #endif1804 char $2 ();1805 /* The GNU C library defines this for functions which it implements1806 to always fail with ENOSYS. Some functions are actually named1807 something starting with __ and the normal name is an alias. */1808 #if defined __stub_$2 || defined __stub___$21809 choke me1810 #endif1811 1812 int1813 main ()1814 {1815 return $2 ();1816 ;1817 return 0;1818 }1819 _ACEOF1820 if ac_fn_c_try_link "$LINENO"; then :1821 eval "$3=yes"1822 else1823 eval "$3=no"1824 fi1825 rm -f core conftest.err conftest.$ac_objext \1826 conftest$ac_exeext conftest.$ac_ext1827 fi1828 eval ac_res=\$$31829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51830 $as_echo "$ac_res" >&6; }1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1832 1833 } # ac_fn_c_check_func1834 1835 # ac_fn_cxx_try_compile LINENO1836 # ----------------------------1837 # Try to compile conftest.$ac_ext, and return whether this succeeded.1838 ac_fn_cxx_try_compile ()1839 {1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1841 rm -f conftest.$ac_objext1842 if { { ac_try="$ac_compile"1843 case "(($ac_try" in1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1845 *) ac_try_echo=$ac_try;;1846 esac1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1848 $as_echo "$ac_try_echo"; } >&51849 (eval "$ac_compile") 2>conftest.err1850 ac_status=$?1851 if test -s conftest.err; then1852 grep -v '^ *+' conftest.err >conftest.er11853 cat conftest.er1 >&51854 mv -f conftest.er1 conftest.err1855 fi1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51857 test $ac_status = 0; } && {1858 test -z "$ac_cxx_werror_flag" ||1859 test ! -s conftest.err1860 } && test -s conftest.$ac_objext; then :1861 ac_retval=01862 else1863 $as_echo "$as_me: failed program was:" >&51864 sed 's/^/| /' conftest.$ac_ext >&51865 1866 ac_retval=11867 fi1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1869 as_fn_set_status $ac_retval1870 1871 } # ac_fn_cxx_try_compile1872 1873 # ac_fn_cxx_try_cpp LINENO1874 # ------------------------1875 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1876 ac_fn_cxx_try_cpp ()1877 {1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1879 if { { ac_try="$ac_cpp conftest.$ac_ext"1880 case "(($ac_try" in1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1882 *) ac_try_echo=$ac_try;;1883 esac1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1885 $as_echo "$ac_try_echo"; } >&51886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1887 ac_status=$?1888 if test -s conftest.err; then1889 grep -v '^ *+' conftest.err >conftest.er11890 cat conftest.er1 >&51891 mv -f conftest.er1 conftest.err1892 fi1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51894 test $ac_status = 0; } > conftest.i && {1895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||1896 test ! -s conftest.err1897 }; then :1898 ac_retval=01899 else1900 $as_echo "$as_me: failed program was:" >&51901 sed 's/^/| /' conftest.$ac_ext >&51902 1903 ac_retval=11904 fi1905 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1906 as_fn_set_status $ac_retval1907 1908 } # ac_fn_cxx_try_cpp1909 1910 # ac_fn_cxx_try_link LINENO1911 # -------------------------1912 # Try to link conftest.$ac_ext, and return whether this succeeded.1913 ac_fn_cxx_try_link ()1914 {1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1916 rm -f conftest.$ac_objext conftest$ac_exeext1917 if { { ac_try="$ac_link"1918 case "(($ac_try" in1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1920 *) ac_try_echo=$ac_try;;1921 esac1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1923 $as_echo "$ac_try_echo"; } >&51924 (eval "$ac_link") 2>conftest.err1925 ac_status=$?1926 if test -s conftest.err; then1927 grep -v '^ *+' conftest.err >conftest.er11928 cat conftest.er1 >&51929 mv -f conftest.er1 conftest.err1930 fi1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51932 test $ac_status = 0; } && {1933 test -z "$ac_cxx_werror_flag" ||1934 test ! -s conftest.err1935 } && test -s conftest$ac_exeext && {1936 test "$cross_compiling" = yes ||1937 test -x conftest$ac_exeext1938 }; then :1939 ac_retval=01940 else1941 $as_echo "$as_me: failed program was:" >&51942 sed 's/^/| /' conftest.$ac_ext >&51943 1944 ac_retval=11945 fi1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1948 # interfere with the next link command; also delete a directory that is1949 # left behind by Apple's compiler. We do this before executing the actions.1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1952 as_fn_set_status $ac_retval1953 1954 } # ac_fn_cxx_try_link1955 1536 cat >config.log <<_ACEOF 1956 1537 This file contains any messages produced by compilers while … … 2306 1887 2307 1888 ac_aux_dir= 2308 for ac_dir in automake "$srcdir"/automake; do1889 for ac_dir in ./automake "$srcdir"/./automake; do 2309 1890 if test -f "$ac_dir/install-sh"; then 2310 1891 ac_aux_dir=$ac_dir … … 2322 1903 done 2323 1904 if test -z "$ac_aux_dir"; then 2324 as_fn_error $? "cannot find install-sh, install.sh, or shtool in automake \"$srcdir\"/automake" "$LINENO" 51905 as_fn_error $? "cannot find install-sh, install.sh, or shtool in ./automake \"$srcdir\"/./automake" "$LINENO" 5 2325 1906 fi 2326 1907 … … 2332 1913 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2333 1914 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2334 2335 1915 2336 1916 … … 2927 2507 : ${CFLAGS=""} 2928 2508 2929 # define this to override2930 AR_FLAGS="cr"2931 2932 2509 # Allow program name tansformation 2933 2510 # will fill program_transform_name with appropriate sed regex … … 2938 2515 2939 2516 2940 2941 2517 CFACC=${DRIVER_DIR}cfa 2942 2518 CFACPP=${DRIVER_DIR}cfa-cpp 2943 2944 2519 2945 2520 … … 3073 2648 3074 2649 # Checks for programs. 3075 case `pwd` in 3076 *\ * | *\ *) 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3078 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3079 esac 3080 3081 3082 3083 macro_version='2.4.6' 3084 macro_revision='2.4.6' 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 ltmain=$ac_aux_dir/ltmain.sh 3099 3100 # Make sure we can run config.sub. 3101 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3102 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3103 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3105 $as_echo_n "checking build system type... " >&6; } 3106 if ${ac_cv_build+:} false; then : 3107 $as_echo_n "(cached) " >&6 3108 else 3109 ac_build_alias=$build_alias 3110 test "x$ac_build_alias" = x && 3111 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3112 test "x$ac_build_alias" = x && 3113 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3114 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3115 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3116 3117 fi 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3119 $as_echo "$ac_cv_build" >&6; } 3120 case $ac_cv_build in 3121 *-*-*) ;; 3122 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3123 esac 3124 build=$ac_cv_build 3125 ac_save_IFS=$IFS; IFS='-' 3126 set x $ac_cv_build 3127 shift 3128 build_cpu=$1 3129 build_vendor=$2 3130 shift; shift 3131 # Remember, the first character of IFS is used to create $*, 3132 # except with old shells: 3133 build_os=$* 3134 IFS=$ac_save_IFS 3135 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3136 3137 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3139 $as_echo_n "checking host system type... " >&6; } 3140 if ${ac_cv_host+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142 else 3143 if test "x$host_alias" = x; then 3144 ac_cv_host=$ac_cv_build 3145 else 3146 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3147 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3148 fi 3149 3150 fi 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3152 $as_echo "$ac_cv_host" >&6; } 3153 case $ac_cv_host in 3154 *-*-*) ;; 3155 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3156 esac 3157 host=$ac_cv_host 3158 ac_save_IFS=$IFS; IFS='-' 3159 set x $ac_cv_host 3160 shift 3161 host_cpu=$1 3162 host_vendor=$2 3163 shift; shift 3164 # Remember, the first character of IFS is used to create $*, 3165 # except with old shells: 3166 host_os=$* 3167 IFS=$ac_save_IFS 3168 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3169 3170 3171 # Backslashify metacharacters that are still active within 3172 # double-quoted strings. 3173 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3174 3175 # Same as above, but do not quote variable references. 3176 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3177 3178 # Sed substitution to delay expansion of an escaped shell variable in a 3179 # double_quote_subst'ed string. 3180 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3181 3182 # Sed substitution to delay expansion of an escaped single quote. 3183 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3184 3185 # Sed substitution to avoid accidental globbing in evaled expressions 3186 no_glob_subst='s/\*/\\\*/g' 3187 3188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3189 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3190 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3191 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3193 $as_echo_n "checking how to print strings... " >&6; } 3194 # Test print first, because it will be a builtin if present. 3195 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3196 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3197 ECHO='print -r --' 3198 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3199 ECHO='printf %s\n' 3200 else 3201 # Use this function as a fallback that always works. 3202 func_fallback_echo () 3203 { 3204 eval 'cat <<_LTECHO_EOF 3205 $1 3206 _LTECHO_EOF' 3207 } 3208 ECHO='func_fallback_echo' 3209 fi 3210 3211 # func_echo_all arg... 3212 # Invoke $ECHO with all args, space-separated. 3213 func_echo_all () 3214 { 3215 $ECHO "" 3216 } 3217 3218 case $ECHO in 3219 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3220 $as_echo "printf" >&6; } ;; 3221 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3222 $as_echo "print -r" >&6; } ;; 3223 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3224 $as_echo "cat" >&6; } ;; 3225 esac 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 DEPDIR="${am__leading_dot}deps" 3241 3242 ac_config_commands="$ac_config_commands depfiles" 3243 3244 3245 am_make=${MAKE-make} 3246 cat > confinc << 'END' 3247 am__doit: 3248 @echo this is the am__doit target 3249 .PHONY: am__doit 3250 END 3251 # If we don't find an include directive, just comment out the code. 3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3253 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3254 am__include="#" 3255 am__quote= 3256 _am_result=none 3257 # First try GNU make style include. 3258 echo "include confinc" > confmf 3259 # Ignore all kinds of additional output from 'make'. 3260 case `$am_make -s -f confmf 2> /dev/null` in #( 3261 *the\ am__doit\ target*) 3262 am__include=include 3263 am__quote= 3264 _am_result=GNU 3265 ;; 3266 esac 3267 # Now try BSD make style include. 3268 if test "$am__include" = "#"; then 3269 echo '.include "confinc"' > confmf 3270 case `$am_make -s -f confmf 2> /dev/null` in #( 3271 *the\ am__doit\ target*) 3272 am__include=.include 3273 am__quote="\"" 3274 _am_result=BSD 3275 ;; 3276 esac 3277 fi 3278 3279 3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3281 $as_echo "$_am_result" >&6; } 3282 rm -f confinc confmf 3283 3284 # Check whether --enable-dependency-tracking was given. 3285 if test "${enable_dependency_tracking+set}" = set; then : 3286 enableval=$enable_dependency_tracking; 3287 fi 3288 3289 if test "x$enable_dependency_tracking" != xno; then 3290 am_depcomp="$ac_aux_dir/depcomp" 3291 AMDEPBACKSLASH='\' 3292 am__nodep='_no' 3293 fi 3294 if test "x$enable_dependency_tracking" != xno; then 3295 AMDEP_TRUE= 3296 AMDEP_FALSE='#' 3297 else 3298 AMDEP_TRUE='#' 3299 AMDEP_FALSE= 3300 fi 3301 3302 3303 ac_ext=c 3304 ac_cpp='$CPP $CPPFLAGS' 3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3308 if test -n "$ac_tool_prefix"; then 3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2650 ac_ext=cpp 2651 ac_cpp='$CXXCPP $CPPFLAGS' 2652 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2653 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2654 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2655 if test -z "$CXX"; then 2656 if test -n "$CCC"; then 2657 CXX=$CCC 2658 else 2659 if test -n "$ac_tool_prefix"; then 2660 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2661 do 2662 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2663 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3311 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3312 2665 $as_echo_n "checking for $ac_word... " >&6; } 3313 if ${ac_cv_prog_C C+:} false; then :2666 if ${ac_cv_prog_CXX+:} false; then : 3314 2667 $as_echo_n "(cached) " >&6 3315 2668 else 3316 if test -n "$C C"; then3317 ac_cv_prog_C C="$CC" # Let the user override the test.2669 if test -n "$CXX"; then 2670 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3318 2671 else 3319 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3324 2677 for ac_exec_ext in '' $ac_executable_extensions; do 3325 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3326 ac_cv_prog_C C="${ac_tool_prefix}gcc"2679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3327 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3328 2681 break 2 … … 3334 2687 fi 3335 2688 fi 3336 C C=$ac_cv_prog_CC3337 if test -n "$C C"; then3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C C" >&53339 $as_echo "$C C" >&6; }2689 CXX=$ac_cv_prog_CXX 2690 if test -n "$CXX"; then 2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2692 $as_echo "$CXX" >&6; } 3340 2693 else 3341 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3344 2697 3345 2698 3346 fi 3347 if test -z "$ac_cv_prog_CC"; then 3348 ac_ct_CC=$CC 3349 # Extract the first word of "gcc", so it can be a program name with args. 3350 set dummy gcc; ac_word=$2 2699 test -n "$CXX" && break 2700 done 2701 fi 2702 if test -z "$CXX"; then 2703 ac_ct_CXX=$CXX 2704 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2705 do 2706 # Extract the first word of "$ac_prog", so it can be a program name with args. 2707 set dummy $ac_prog; ac_word=$2 3351 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3352 2709 $as_echo_n "checking for $ac_word... " >&6; } 3353 if ${ac_cv_prog_ac_ct_C C+:} false; then :2710 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3354 2711 $as_echo_n "(cached) " >&6 3355 2712 else 3356 if test -n "$ac_ct_C C"; then3357 ac_cv_prog_ac_ct_C C="$ac_ct_CC" # Let the user override the test.2713 if test -n "$ac_ct_CXX"; then 2714 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3358 2715 else 3359 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3364 2721 for ac_exec_ext in '' $ac_executable_extensions; do 3365 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3366 ac_cv_prog_ac_ct_C C="gcc"2723 ac_cv_prog_ac_ct_CXX="$ac_prog" 3367 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3368 2725 break 2 … … 3374 2731 fi 3375 2732 fi 3376 ac_ct_C C=$ac_cv_prog_ac_ct_CC3377 if test -n "$ac_ct_C C"; then3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_C C" >&53379 $as_echo "$ac_ct_C C" >&6; }2733 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2734 if test -n "$ac_ct_CXX"; then 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2736 $as_echo "$ac_ct_CXX" >&6; } 3380 2737 else 3381 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3383 2740 fi 3384 2741 3385 if test "x$ac_ct_CC" = x; then 3386 CC="" 2742 2743 test -n "$ac_ct_CXX" && break 2744 done 2745 2746 if test "x$ac_ct_CXX" = x; then 2747 CXX="g++" 3387 2748 else 3388 2749 case $cross_compiling:$ac_tool_warned in … … 3392 2753 ac_tool_warned=yes ;; 3393 2754 esac 3394 C C=$ac_ct_CC2755 CXX=$ac_ct_CXX 3395 2756 fi 3396 else 3397 CC="$ac_cv_prog_CC" 3398 fi 3399 3400 if test -z "$CC"; then 3401 if test -n "$ac_tool_prefix"; then 3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3403 set dummy ${ac_tool_prefix}cc; ac_word=$2 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3405 $as_echo_n "checking for $ac_word... " >&6; } 3406 if ${ac_cv_prog_CC+:} false; then : 3407 $as_echo_n "(cached) " >&6 3408 else 3409 if test -n "$CC"; then 3410 ac_cv_prog_CC="$CC" # Let the user override the test. 3411 else 3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3413 for as_dir in $PATH 3414 do 3415 IFS=$as_save_IFS 3416 test -z "$as_dir" && as_dir=. 3417 for ac_exec_ext in '' $ac_executable_extensions; do 3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3419 ac_cv_prog_CC="${ac_tool_prefix}cc" 3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3421 break 2 2757 fi 2758 3422 2759 fi 3423 done 3424 done 3425 IFS=$as_save_IFS 3426 3427 fi 3428 fi 3429 CC=$ac_cv_prog_CC 3430 if test -n "$CC"; then 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3432 $as_echo "$CC" >&6; } 3433 else 3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3435 $as_echo "no" >&6; } 3436 fi 3437 3438 3439 fi 3440 fi 3441 if test -z "$CC"; then 3442 # Extract the first word of "cc", so it can be a program name with args. 3443 set dummy cc; ac_word=$2 3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3445 $as_echo_n "checking for $ac_word... " >&6; } 3446 if ${ac_cv_prog_CC+:} false; then : 3447 $as_echo_n "(cached) " >&6 3448 else 3449 if test -n "$CC"; then 3450 ac_cv_prog_CC="$CC" # Let the user override the test. 3451 else 3452 ac_prog_rejected=no 3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3454 for as_dir in $PATH 3455 do 3456 IFS=$as_save_IFS 3457 test -z "$as_dir" && as_dir=. 3458 for ac_exec_ext in '' $ac_executable_extensions; do 3459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3461 ac_prog_rejected=yes 3462 continue 3463 fi 3464 ac_cv_prog_CC="cc" 3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3466 break 2 3467 fi 3468 done 3469 done 3470 IFS=$as_save_IFS 3471 3472 if test $ac_prog_rejected = yes; then 3473 # We found a bogon in the path, so make sure we never use it. 3474 set dummy $ac_cv_prog_CC 3475 shift 3476 if test $# != 0; then 3477 # We chose a different compiler from the bogus one. 3478 # However, it has the same basename, so the bogon will be chosen 3479 # first if we set CC to just the basename; use the full file name. 3480 shift 3481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3482 fi 3483 fi 3484 fi 3485 fi 3486 CC=$ac_cv_prog_CC 3487 if test -n "$CC"; then 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3489 $as_echo "$CC" >&6; } 3490 else 3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3492 $as_echo "no" >&6; } 3493 fi 3494 3495 3496 fi 3497 if test -z "$CC"; then 3498 if test -n "$ac_tool_prefix"; then 3499 for ac_prog in cl.exe 3500 do 3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3504 $as_echo_n "checking for $ac_word... " >&6; } 3505 if ${ac_cv_prog_CC+:} false; then : 3506 $as_echo_n "(cached) " >&6 3507 else 3508 if test -n "$CC"; then 3509 ac_cv_prog_CC="$CC" # Let the user override the test. 3510 else 3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3512 for as_dir in $PATH 3513 do 3514 IFS=$as_save_IFS 3515 test -z "$as_dir" && as_dir=. 3516 for ac_exec_ext in '' $ac_executable_extensions; do 3517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3520 break 2 3521 fi 3522 done 3523 done 3524 IFS=$as_save_IFS 3525 3526 fi 3527 fi 3528 CC=$ac_cv_prog_CC 3529 if test -n "$CC"; then 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3531 $as_echo "$CC" >&6; } 3532 else 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3534 $as_echo "no" >&6; } 3535 fi 3536 3537 3538 test -n "$CC" && break 3539 done 3540 fi 3541 if test -z "$CC"; then 3542 ac_ct_CC=$CC 3543 for ac_prog in cl.exe 3544 do 3545 # Extract the first word of "$ac_prog", so it can be a program name with args. 3546 set dummy $ac_prog; ac_word=$2 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3548 $as_echo_n "checking for $ac_word... " >&6; } 3549 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3550 $as_echo_n "(cached) " >&6 3551 else 3552 if test -n "$ac_ct_CC"; then 3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3554 else 3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3556 for as_dir in $PATH 3557 do 3558 IFS=$as_save_IFS 3559 test -z "$as_dir" && as_dir=. 3560 for ac_exec_ext in '' $ac_executable_extensions; do 3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3562 ac_cv_prog_ac_ct_CC="$ac_prog" 3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3564 break 2 3565 fi 3566 done 3567 done 3568 IFS=$as_save_IFS 3569 3570 fi 3571 fi 3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3573 if test -n "$ac_ct_CC"; then 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3575 $as_echo "$ac_ct_CC" >&6; } 3576 else 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3578 $as_echo "no" >&6; } 3579 fi 3580 3581 3582 test -n "$ac_ct_CC" && break 3583 done 3584 3585 if test "x$ac_ct_CC" = x; then 3586 CC="" 3587 else 3588 case $cross_compiling:$ac_tool_warned in 3589 yes:) 3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3592 ac_tool_warned=yes ;; 3593 esac 3594 CC=$ac_ct_CC 3595 fi 3596 fi 3597 3598 fi 3599 3600 3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3603 as_fn_error $? "no acceptable C compiler found in \$PATH 3604 See \`config.log' for more details" "$LINENO" 5; } 3605 2760 fi 3606 2761 # Provide some information about the compiler. 3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&52762 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 3608 2763 set X $ac_compile 3609 2764 ac_compiler=$2 … … 3645 2800 # It will help us diagnose broken compilers, and finding out an intuition 3646 2801 # of exeext. 3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&53648 $as_echo_n "checking whether the C compiler works... " >&6; }2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 2803 $as_echo_n "checking whether the C++ compiler works... " >&6; } 3649 2804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3650 2805 … … 3716 2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3717 2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3718 as_fn_error 77 "C compiler cannot create executables2873 as_fn_error 77 "C++ compiler cannot create executables 3719 2874 See \`config.log' for more details" "$LINENO" 5; } 3720 2875 else … … 3722 2877 $as_echo "yes" >&6; } 3723 2878 fi 3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&53725 $as_echo_n "checking for C compiler default output file name... " >&6; }2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 2880 $as_echo_n "checking for C++ compiler default output file name... " >&6; } 3726 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3727 2882 $as_echo "$ac_file" >&6; } … … 3817 2972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3818 2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3819 as_fn_error $? "cannot run C compiled programs.2974 as_fn_error $? "cannot run C++ compiled programs. 3820 2975 If you meant to cross compile, use \`--host'. 3821 2976 See \`config.log' for more details" "$LINENO" 5; } … … 3879 3034 OBJEXT=$ac_cv_objext 3880 3035 ac_objext=$OBJEXT 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 3037 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 3038 if ${ac_cv_cxx_compiler_gnu+:} false; then : 3039 $as_echo_n "(cached) " >&6 3040 else 3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3042 /* end confdefs.h. */ 3043 3044 int 3045 main () 3046 { 3047 #ifndef __GNUC__ 3048 choke me 3049 #endif 3050 3051 ; 3052 return 0; 3053 } 3054 _ACEOF 3055 if ac_fn_cxx_try_compile "$LINENO"; then : 3056 ac_compiler_gnu=yes 3057 else 3058 ac_compiler_gnu=no 3059 fi 3060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3061 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3062 3063 fi 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 3065 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 3066 if test $ac_compiler_gnu = yes; then 3067 GXX=yes 3068 else 3069 GXX= 3070 fi 3071 ac_test_CXXFLAGS=${CXXFLAGS+set} 3072 ac_save_CXXFLAGS=$CXXFLAGS 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 3074 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 3075 if ${ac_cv_prog_cxx_g+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077 else 3078 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3079 ac_cxx_werror_flag=yes 3080 ac_cv_prog_cxx_g=no 3081 CXXFLAGS="-g" 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083 /* end confdefs.h. */ 3084 3085 int 3086 main () 3087 { 3088 3089 ; 3090 return 0; 3091 } 3092 _ACEOF 3093 if ac_fn_cxx_try_compile "$LINENO"; then : 3094 ac_cv_prog_cxx_g=yes 3095 else 3096 CXXFLAGS="" 3097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3098 /* end confdefs.h. */ 3099 3100 int 3101 main () 3102 { 3103 3104 ; 3105 return 0; 3106 } 3107 _ACEOF 3108 if ac_fn_cxx_try_compile "$LINENO"; then : 3109 3110 else 3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3112 CXXFLAGS="-g" 3113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3114 /* end confdefs.h. */ 3115 3116 int 3117 main () 3118 { 3119 3120 ; 3121 return 0; 3122 } 3123 _ACEOF 3124 if ac_fn_cxx_try_compile "$LINENO"; then : 3125 ac_cv_prog_cxx_g=yes 3126 fi 3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3128 fi 3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3130 fi 3131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3132 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3133 fi 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 3135 $as_echo "$ac_cv_prog_cxx_g" >&6; } 3136 if test "$ac_test_CXXFLAGS" = set; then 3137 CXXFLAGS=$ac_save_CXXFLAGS 3138 elif test $ac_cv_prog_cxx_g = yes; then 3139 if test "$GXX" = yes; then 3140 CXXFLAGS="-g -O2" 3141 else 3142 CXXFLAGS="-g" 3143 fi 3144 else 3145 if test "$GXX" = yes; then 3146 CXXFLAGS="-O2" 3147 else 3148 CXXFLAGS= 3149 fi 3150 fi 3151 ac_ext=c 3152 ac_cpp='$CPP $CPPFLAGS' 3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3156 DEPDIR="${am__leading_dot}deps" 3157 3158 ac_config_commands="$ac_config_commands depfiles" 3159 3160 3161 am_make=${MAKE-make} 3162 cat > confinc << 'END' 3163 am__doit: 3164 @echo this is the am__doit target 3165 .PHONY: am__doit 3166 END 3167 # If we don't find an include directive, just comment out the code. 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3169 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3170 am__include="#" 3171 am__quote= 3172 _am_result=none 3173 # First try GNU make style include. 3174 echo "include confinc" > confmf 3175 # Ignore all kinds of additional output from 'make'. 3176 case `$am_make -s -f confmf 2> /dev/null` in #( 3177 *the\ am__doit\ target*) 3178 am__include=include 3179 am__quote= 3180 _am_result=GNU 3181 ;; 3182 esac 3183 # Now try BSD make style include. 3184 if test "$am__include" = "#"; then 3185 echo '.include "confinc"' > confmf 3186 case `$am_make -s -f confmf 2> /dev/null` in #( 3187 *the\ am__doit\ target*) 3188 am__include=.include 3189 am__quote="\"" 3190 _am_result=BSD 3191 ;; 3192 esac 3193 fi 3194 3195 3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3197 $as_echo "$_am_result" >&6; } 3198 rm -f confinc confmf 3199 3200 # Check whether --enable-dependency-tracking was given. 3201 if test "${enable_dependency_tracking+set}" = set; then : 3202 enableval=$enable_dependency_tracking; 3203 fi 3204 3205 if test "x$enable_dependency_tracking" != xno; then 3206 am_depcomp="$ac_aux_dir/depcomp" 3207 AMDEPBACKSLASH='\' 3208 am__nodep='_no' 3209 fi 3210 if test "x$enable_dependency_tracking" != xno; then 3211 AMDEP_TRUE= 3212 AMDEP_FALSE='#' 3213 else 3214 AMDEP_TRUE='#' 3215 AMDEP_FALSE= 3216 fi 3217 3218 3219 3220 depcc="$CXX" am_compiler_list= 3221 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3223 $as_echo_n "checking dependency style of $depcc... " >&6; } 3224 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 3225 $as_echo_n "(cached) " >&6 3226 else 3227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3228 # We make a subdir and do the tests there. Otherwise we can end up 3229 # making bogus files that we don't know about and never remove. For 3230 # instance it was reported that on HP-UX the gcc test will end up 3231 # making a dummy file named 'D' -- because '-MD' means "put the output 3232 # in D". 3233 rm -rf conftest.dir 3234 mkdir conftest.dir 3235 # Copy depcomp to subdir because otherwise we won't find it if we're 3236 # using a relative directory. 3237 cp "$am_depcomp" conftest.dir 3238 cd conftest.dir 3239 # We will build objects and dependencies in a subdirectory because 3240 # it helps to detect inapplicable dependency modes. For instance 3241 # both Tru64's cc and ICC support -MD to output dependencies as a 3242 # side effect of compilation, but ICC will put the dependencies in 3243 # the current directory while Tru64 will put them in the object 3244 # directory. 3245 mkdir sub 3246 3247 am_cv_CXX_dependencies_compiler_type=none 3248 if test "$am_compiler_list" = ""; then 3249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3250 fi 3251 am__universal=false 3252 case " $depcc " in #( 3253 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3254 esac 3255 3256 for depmode in $am_compiler_list; do 3257 # Setup a source with many dependencies, because some compilers 3258 # like to wrap large dependency lists on column 80 (with \), and 3259 # we should not choose a depcomp mode which is confused by this. 3260 # 3261 # We need to recreate these files for each test, as the compiler may 3262 # overwrite some of them when testing with obscure command lines. 3263 # This happens at least with the AIX C compiler. 3264 : > sub/conftest.c 3265 for i in 1 2 3 4 5 6; do 3266 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3268 # Solaris 10 /bin/sh. 3269 echo '/* dummy */' > sub/conftst$i.h 3270 done 3271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3272 3273 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3274 # mode. It turns out that the SunPro C++ compiler does not properly 3275 # handle '-M -o', and we need to detect this. Also, some Intel 3276 # versions had trouble with output in subdirs. 3277 am__obj=sub/conftest.${OBJEXT-o} 3278 am__minus_obj="-o $am__obj" 3279 case $depmode in 3280 gcc) 3281 # This depmode causes a compiler race in universal mode. 3282 test "$am__universal" = false || continue 3283 ;; 3284 nosideeffect) 3285 # After this tag, mechanisms are not by side-effect, so they'll 3286 # only be used when explicitly requested. 3287 if test "x$enable_dependency_tracking" = xyes; then 3288 continue 3289 else 3290 break 3291 fi 3292 ;; 3293 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3294 # This compiler won't grok '-c -o', but also, the minuso test has 3295 # not run yet. These depmodes are late enough in the game, and 3296 # so weak that their functioning should not be impacted. 3297 am__obj=conftest.${OBJEXT-o} 3298 am__minus_obj= 3299 ;; 3300 none) break ;; 3301 esac 3302 if depmode=$depmode \ 3303 source=sub/conftest.c object=$am__obj \ 3304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3306 >/dev/null 2>conftest.err && 3307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3311 # icc doesn't choke on unknown options, it will just issue warnings 3312 # or remarks (even with -Werror). So we grep stderr for any message 3313 # that says an option was ignored or not supported. 3314 # When given -MP, icc 7.0 and 7.1 complain thusly: 3315 # icc: Command line warning: ignoring option '-M'; no argument required 3316 # The diagnosis changed in icc 8.0: 3317 # icc: Command line remark: option '-MP' not supported 3318 if (grep 'ignoring option' conftest.err || 3319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3320 am_cv_CXX_dependencies_compiler_type=$depmode 3321 break 3322 fi 3323 fi 3324 done 3325 3326 cd .. 3327 rm -rf conftest.dir 3328 else 3329 am_cv_CXX_dependencies_compiler_type=none 3330 fi 3331 3332 fi 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 3334 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 3335 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 3336 3337 if 3338 test "x$enable_dependency_tracking" != xno \ 3339 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 3340 am__fastdepCXX_TRUE= 3341 am__fastdepCXX_FALSE='#' 3342 else 3343 am__fastdepCXX_TRUE='#' 3344 am__fastdepCXX_FALSE= 3345 fi 3346 3347 3348 ac_ext=c 3349 ac_cpp='$CPP $CPPFLAGS' 3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3353 if test -n "$ac_tool_prefix"; then 3354 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3355 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3357 $as_echo_n "checking for $ac_word... " >&6; } 3358 if ${ac_cv_prog_CC+:} false; then : 3359 $as_echo_n "(cached) " >&6 3360 else 3361 if test -n "$CC"; then 3362 ac_cv_prog_CC="$CC" # Let the user override the test. 3363 else 3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3365 for as_dir in $PATH 3366 do 3367 IFS=$as_save_IFS 3368 test -z "$as_dir" && as_dir=. 3369 for ac_exec_ext in '' $ac_executable_extensions; do 3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3371 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3373 break 2 3374 fi 3375 done 3376 done 3377 IFS=$as_save_IFS 3378 3379 fi 3380 fi 3381 CC=$ac_cv_prog_CC 3382 if test -n "$CC"; then 3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3384 $as_echo "$CC" >&6; } 3385 else 3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3387 $as_echo "no" >&6; } 3388 fi 3389 3390 3391 fi 3392 if test -z "$ac_cv_prog_CC"; then 3393 ac_ct_CC=$CC 3394 # Extract the first word of "gcc", so it can be a program name with args. 3395 set dummy gcc; ac_word=$2 3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3397 $as_echo_n "checking for $ac_word... " >&6; } 3398 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3399 $as_echo_n "(cached) " >&6 3400 else 3401 if test -n "$ac_ct_CC"; then 3402 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3403 else 3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3405 for as_dir in $PATH 3406 do 3407 IFS=$as_save_IFS 3408 test -z "$as_dir" && as_dir=. 3409 for ac_exec_ext in '' $ac_executable_extensions; do 3410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3411 ac_cv_prog_ac_ct_CC="gcc" 3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3413 break 2 3414 fi 3415 done 3416 done 3417 IFS=$as_save_IFS 3418 3419 fi 3420 fi 3421 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3422 if test -n "$ac_ct_CC"; then 3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3424 $as_echo "$ac_ct_CC" >&6; } 3425 else 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3427 $as_echo "no" >&6; } 3428 fi 3429 3430 if test "x$ac_ct_CC" = x; then 3431 CC="" 3432 else 3433 case $cross_compiling:$ac_tool_warned in 3434 yes:) 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3437 ac_tool_warned=yes ;; 3438 esac 3439 CC=$ac_ct_CC 3440 fi 3441 else 3442 CC="$ac_cv_prog_CC" 3443 fi 3444 3445 if test -z "$CC"; then 3446 if test -n "$ac_tool_prefix"; then 3447 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3448 set dummy ${ac_tool_prefix}cc; ac_word=$2 3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3450 $as_echo_n "checking for $ac_word... " >&6; } 3451 if ${ac_cv_prog_CC+:} false; then : 3452 $as_echo_n "(cached) " >&6 3453 else 3454 if test -n "$CC"; then 3455 ac_cv_prog_CC="$CC" # Let the user override the test. 3456 else 3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3458 for as_dir in $PATH 3459 do 3460 IFS=$as_save_IFS 3461 test -z "$as_dir" && as_dir=. 3462 for ac_exec_ext in '' $ac_executable_extensions; do 3463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3464 ac_cv_prog_CC="${ac_tool_prefix}cc" 3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3466 break 2 3467 fi 3468 done 3469 done 3470 IFS=$as_save_IFS 3471 3472 fi 3473 fi 3474 CC=$ac_cv_prog_CC 3475 if test -n "$CC"; then 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3477 $as_echo "$CC" >&6; } 3478 else 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3480 $as_echo "no" >&6; } 3481 fi 3482 3483 3484 fi 3485 fi 3486 if test -z "$CC"; then 3487 # Extract the first word of "cc", so it can be a program name with args. 3488 set dummy cc; ac_word=$2 3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490 $as_echo_n "checking for $ac_word... " >&6; } 3491 if ${ac_cv_prog_CC+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493 else 3494 if test -n "$CC"; then 3495 ac_cv_prog_CC="$CC" # Let the user override the test. 3496 else 3497 ac_prog_rejected=no 3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3499 for as_dir in $PATH 3500 do 3501 IFS=$as_save_IFS 3502 test -z "$as_dir" && as_dir=. 3503 for ac_exec_ext in '' $ac_executable_extensions; do 3504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3505 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3506 ac_prog_rejected=yes 3507 continue 3508 fi 3509 ac_cv_prog_CC="cc" 3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3511 break 2 3512 fi 3513 done 3514 done 3515 IFS=$as_save_IFS 3516 3517 if test $ac_prog_rejected = yes; then 3518 # We found a bogon in the path, so make sure we never use it. 3519 set dummy $ac_cv_prog_CC 3520 shift 3521 if test $# != 0; then 3522 # We chose a different compiler from the bogus one. 3523 # However, it has the same basename, so the bogon will be chosen 3524 # first if we set CC to just the basename; use the full file name. 3525 shift 3526 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3527 fi 3528 fi 3529 fi 3530 fi 3531 CC=$ac_cv_prog_CC 3532 if test -n "$CC"; then 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3534 $as_echo "$CC" >&6; } 3535 else 3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3537 $as_echo "no" >&6; } 3538 fi 3539 3540 3541 fi 3542 if test -z "$CC"; then 3543 if test -n "$ac_tool_prefix"; then 3544 for ac_prog in cl.exe 3545 do 3546 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3549 $as_echo_n "checking for $ac_word... " >&6; } 3550 if ${ac_cv_prog_CC+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552 else 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555 else 3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3557 for as_dir in $PATH 3558 do 3559 IFS=$as_save_IFS 3560 test -z "$as_dir" && as_dir=. 3561 for ac_exec_ext in '' $ac_executable_extensions; do 3562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3565 break 2 3566 fi 3567 done 3568 done 3569 IFS=$as_save_IFS 3570 3571 fi 3572 fi 3573 CC=$ac_cv_prog_CC 3574 if test -n "$CC"; then 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3576 $as_echo "$CC" >&6; } 3577 else 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3579 $as_echo "no" >&6; } 3580 fi 3581 3582 3583 test -n "$CC" && break 3584 done 3585 fi 3586 if test -z "$CC"; then 3587 ac_ct_CC=$CC 3588 for ac_prog in cl.exe 3589 do 3590 # Extract the first word of "$ac_prog", so it can be a program name with args. 3591 set dummy $ac_prog; ac_word=$2 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3593 $as_echo_n "checking for $ac_word... " >&6; } 3594 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3595 $as_echo_n "(cached) " >&6 3596 else 3597 if test -n "$ac_ct_CC"; then 3598 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3599 else 3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3601 for as_dir in $PATH 3602 do 3603 IFS=$as_save_IFS 3604 test -z "$as_dir" && as_dir=. 3605 for ac_exec_ext in '' $ac_executable_extensions; do 3606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3607 ac_cv_prog_ac_ct_CC="$ac_prog" 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3609 break 2 3610 fi 3611 done 3612 done 3613 IFS=$as_save_IFS 3614 3615 fi 3616 fi 3617 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3618 if test -n "$ac_ct_CC"; then 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3620 $as_echo "$ac_ct_CC" >&6; } 3621 else 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3623 $as_echo "no" >&6; } 3624 fi 3625 3626 3627 test -n "$ac_ct_CC" && break 3628 done 3629 3630 if test "x$ac_ct_CC" = x; then 3631 CC="" 3632 else 3633 case $cross_compiling:$ac_tool_warned in 3634 yes:) 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3637 ac_tool_warned=yes ;; 3638 esac 3639 CC=$ac_ct_CC 3640 fi 3641 fi 3642 3643 fi 3644 3645 3646 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3648 as_fn_error $? "no acceptable C compiler found in \$PATH 3649 See \`config.log' for more details" "$LINENO" 5; } 3650 3651 # Provide some information about the compiler. 3652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3653 set X $ac_compile 3654 ac_compiler=$2 3655 for ac_option in --version -v -V -qversion; do 3656 { { ac_try="$ac_compiler $ac_option >&5" 3657 case "(($ac_try" in 3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3659 *) ac_try_echo=$ac_try;; 3660 esac 3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3662 $as_echo "$ac_try_echo"; } >&5 3663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3664 ac_status=$? 3665 if test -s conftest.err; then 3666 sed '10a\ 3667 ... rest of stderr output deleted ... 3668 10q' conftest.err >conftest.er1 3669 cat conftest.er1 >&5 3670 fi 3671 rm -f conftest.er1 conftest.err 3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3673 test $ac_status = 0; } 3674 done 3675 3881 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3882 3677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } … … 4277 4072 4278 4073 4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&54280 $as_echo_n "checking for a sed that does not truncate output... " >&6; }4281 if ${ac_cv_path_SED+:} false; then :4282 $as_echo_n "(cached) " >&64283 else4284 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/4285 for ac_i in 1 2 3 4 5 6 7; do4286 ac_script="$ac_script$as_nl$ac_script"4287 done4288 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed4289 { ac_script=; unset ac_script;}4290 if test -z "$SED"; then4291 ac_path_SED_found=false4292 # Loop through the user's path and test for each of PROGNAME-LIST4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4294 for as_dir in $PATH4295 do4296 IFS=$as_save_IFS4297 test -z "$as_dir" && as_dir=.4298 for ac_prog in sed gsed; do4299 for ac_exec_ext in '' $ac_executable_extensions; do4300 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"4301 as_fn_executable_p "$ac_path_SED" || continue4302 # Check for GNU ac_path_SED and select it if it is found.4303 # Check for GNU $ac_path_SED4304 case `"$ac_path_SED" --version 2>&1` in4305 *GNU*)4306 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;4307 *)4308 ac_count=04309 $as_echo_n 0123456789 >"conftest.in"4310 while :4311 do4312 cat "conftest.in" "conftest.in" >"conftest.tmp"4313 mv "conftest.tmp" "conftest.in"4314 cp "conftest.in" "conftest.nl"4315 $as_echo '' >> "conftest.nl"4316 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4318 as_fn_arith $ac_count + 1 && ac_count=$as_val4319 if test $ac_count -gt ${ac_path_SED_max-0}; then4320 # Best one so far, save it but keep looking for a better one4321 ac_cv_path_SED="$ac_path_SED"4322 ac_path_SED_max=$ac_count4323 fi4324 # 10*(2^10) chars as input seems more than enough4325 test $ac_count -gt 10 && break4326 done4327 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4328 esac4329 4330 $ac_path_SED_found && break 34331 done4332 done4333 done4334 IFS=$as_save_IFS4335 if test -z "$ac_cv_path_SED"; then4336 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 54337 fi4338 else4339 ac_cv_path_SED=$SED4340 fi4341 4342 fi4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&54344 $as_echo "$ac_cv_path_SED" >&6; }4345 SED="$ac_cv_path_SED"4346 rm -f conftest.sed4347 4348 test -z "$SED" && SED=sed4349 Xsed="$SED -e 1s/^X//"4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&54362 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }4363 if ${ac_cv_path_GREP+:} false; then :4364 $as_echo_n "(cached) " >&64365 else4366 if test -z "$GREP"; then4367 ac_path_GREP_found=false4368 # Loop through the user's path and test for each of PROGNAME-LIST4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4371 do4372 IFS=$as_save_IFS4373 test -z "$as_dir" && as_dir=.4374 for ac_prog in grep ggrep; do4375 for ac_exec_ext in '' $ac_executable_extensions; do4376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"4377 as_fn_executable_p "$ac_path_GREP" || continue4378 # Check for GNU ac_path_GREP and select it if it is found.4379 # Check for GNU $ac_path_GREP4380 case `"$ac_path_GREP" --version 2>&1` in4381 *GNU*)4382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;4383 *)4384 ac_count=04385 $as_echo_n 0123456789 >"conftest.in"4386 while :4387 do4388 cat "conftest.in" "conftest.in" >"conftest.tmp"4389 mv "conftest.tmp" "conftest.in"4390 cp "conftest.in" "conftest.nl"4391 $as_echo 'GREP' >> "conftest.nl"4392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4394 as_fn_arith $ac_count + 1 && ac_count=$as_val4395 if test $ac_count -gt ${ac_path_GREP_max-0}; then4396 # Best one so far, save it but keep looking for a better one4397 ac_cv_path_GREP="$ac_path_GREP"4398 ac_path_GREP_max=$ac_count4399 fi4400 # 10*(2^10) chars as input seems more than enough4401 test $ac_count -gt 10 && break4402 done4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4404 esac4405 4406 $ac_path_GREP_found && break 34407 done4408 done4409 done4410 IFS=$as_save_IFS4411 if test -z "$ac_cv_path_GREP"; then4412 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54413 fi4414 else4415 ac_cv_path_GREP=$GREP4416 fi4417 4418 fi4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&54420 $as_echo "$ac_cv_path_GREP" >&6; }4421 GREP="$ac_cv_path_GREP"4422 4423 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&54425 $as_echo_n "checking for egrep... " >&6; }4426 if ${ac_cv_path_EGREP+:} false; then :4427 $as_echo_n "(cached) " >&64428 else4429 if echo a | $GREP -E '(a|b)' >/dev/null 2>&14430 then ac_cv_path_EGREP="$GREP -E"4431 else4432 if test -z "$EGREP"; then4433 ac_path_EGREP_found=false4434 # Loop through the user's path and test for each of PROGNAME-LIST4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4436 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4437 do4438 IFS=$as_save_IFS4439 test -z "$as_dir" && as_dir=.4440 for ac_prog in egrep; do4441 for ac_exec_ext in '' $ac_executable_extensions; do4442 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"4443 as_fn_executable_p "$ac_path_EGREP" || continue4444 # Check for GNU ac_path_EGREP and select it if it is found.4445 # Check for GNU $ac_path_EGREP4446 case `"$ac_path_EGREP" --version 2>&1` in4447 *GNU*)4448 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;4449 *)4450 ac_count=04451 $as_echo_n 0123456789 >"conftest.in"4452 while :4453 do4454 cat "conftest.in" "conftest.in" >"conftest.tmp"4455 mv "conftest.tmp" "conftest.in"4456 cp "conftest.in" "conftest.nl"4457 $as_echo 'EGREP' >> "conftest.nl"4458 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break4459 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4460 as_fn_arith $ac_count + 1 && ac_count=$as_val4461 if test $ac_count -gt ${ac_path_EGREP_max-0}; then4462 # Best one so far, save it but keep looking for a better one4463 ac_cv_path_EGREP="$ac_path_EGREP"4464 ac_path_EGREP_max=$ac_count4465 fi4466 # 10*(2^10) chars as input seems more than enough4467 test $ac_count -gt 10 && break4468 done4469 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4470 esac4471 4472 $ac_path_EGREP_found && break 34473 done4474 done4475 done4476 IFS=$as_save_IFS4477 if test -z "$ac_cv_path_EGREP"; then4478 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54479 fi4480 else4481 ac_cv_path_EGREP=$EGREP4482 fi4483 4484 fi4485 fi4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&54487 $as_echo "$ac_cv_path_EGREP" >&6; }4488 EGREP="$ac_cv_path_EGREP"4489 4490 4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&54492 $as_echo_n "checking for fgrep... " >&6; }4493 if ${ac_cv_path_FGREP+:} false; then :4494 $as_echo_n "(cached) " >&64495 else4496 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&14497 then ac_cv_path_FGREP="$GREP -F"4498 else4499 if test -z "$FGREP"; then4500 ac_path_FGREP_found=false4501 # Loop through the user's path and test for each of PROGNAME-LIST4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4504 do4505 IFS=$as_save_IFS4506 test -z "$as_dir" && as_dir=.4507 for ac_prog in fgrep; do4508 for ac_exec_ext in '' $ac_executable_extensions; do4509 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"4510 as_fn_executable_p "$ac_path_FGREP" || continue4511 # Check for GNU ac_path_FGREP and select it if it is found.4512 # Check for GNU $ac_path_FGREP4513 case `"$ac_path_FGREP" --version 2>&1` in4514 *GNU*)4515 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;4516 *)4517 ac_count=04518 $as_echo_n 0123456789 >"conftest.in"4519 while :4520 do4521 cat "conftest.in" "conftest.in" >"conftest.tmp"4522 mv "conftest.tmp" "conftest.in"4523 cp "conftest.in" "conftest.nl"4524 $as_echo 'FGREP' >> "conftest.nl"4525 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break4526 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4527 as_fn_arith $ac_count + 1 && ac_count=$as_val4528 if test $ac_count -gt ${ac_path_FGREP_max-0}; then4529 # Best one so far, save it but keep looking for a better one4530 ac_cv_path_FGREP="$ac_path_FGREP"4531 ac_path_FGREP_max=$ac_count4532 fi4533 # 10*(2^10) chars as input seems more than enough4534 test $ac_count -gt 10 && break4535 done4536 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4537 esac4538 4539 $ac_path_FGREP_found && break 34540 done4541 done4542 done4543 IFS=$as_save_IFS4544 if test -z "$ac_cv_path_FGREP"; then4545 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54546 fi4547 else4548 ac_cv_path_FGREP=$FGREP4549 fi4550 4551 fi4552 fi4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&54554 $as_echo "$ac_cv_path_FGREP" >&6; }4555 FGREP="$ac_cv_path_FGREP"4556 4557 4558 test -z "$GREP" && GREP=grep4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 # Check whether --with-gnu-ld was given.4579 if test "${with_gnu_ld+set}" = set; then :4580 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes4581 else4582 with_gnu_ld=no4583 fi4584 4585 ac_prog=ld4586 if test yes = "$GCC"; then4587 # Check if gcc -print-prog-name=ld gives a path.4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&54589 $as_echo_n "checking for ld used by $CC... " >&6; }4590 case $host in4591 *-*-mingw*)4592 # gcc leaves a trailing carriage return, which upsets mingw4593 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;4594 *)4595 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;4596 esac4597 case $ac_prog in4598 # Accept absolute paths.4599 [\\/]* | ?:[\\/]*)4600 re_direlt='/[^/][^/]*/\.\./'4601 # Canonicalize the pathname of ld4602 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`4603 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do4604 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`4605 done4606 test -z "$LD" && LD=$ac_prog4607 ;;4608 "")4609 # If it fails, then pretend we aren't using GCC.4610 ac_prog=ld4611 ;;4612 *)4613 # If it is relative, then search for the first ld in PATH.4614 with_gnu_ld=unknown4615 ;;4616 esac4617 elif test yes = "$with_gnu_ld"; then4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&54619 $as_echo_n "checking for GNU ld... " >&6; }4620 else4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&54622 $as_echo_n "checking for non-GNU ld... " >&6; }4623 fi4624 if ${lt_cv_path_LD+:} false; then :4625 $as_echo_n "(cached) " >&64626 else4627 if test -z "$LD"; then4628 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4629 for ac_dir in $PATH; do4630 IFS=$lt_save_ifs4631 test -z "$ac_dir" && ac_dir=.4632 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then4633 lt_cv_path_LD=$ac_dir/$ac_prog4634 # Check to see if the program is GNU ld. I'd rather use --version,4635 # but apparently some variants of GNU ld only accept -v.4636 # Break only if it was the GNU/non-GNU ld that we prefer.4637 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in4638 *GNU* | *'with BFD'*)4639 test no != "$with_gnu_ld" && break4640 ;;4641 *)4642 test yes != "$with_gnu_ld" && break4643 ;;4644 esac4645 fi4646 done4647 IFS=$lt_save_ifs4648 else4649 lt_cv_path_LD=$LD # Let the user override the test with a path.4650 fi4651 fi4652 4653 LD=$lt_cv_path_LD4654 if test -n "$LD"; then4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&54656 $as_echo "$LD" >&6; }4657 else4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54659 $as_echo "no" >&6; }4660 fi4661 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 54662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&54663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }4664 if ${lt_cv_prog_gnu_ld+:} false; then :4665 $as_echo_n "(cached) " >&64666 else4667 # I'd rather use --version here, but apparently some GNU lds only accept -v.4668 case `$LD -v 2>&1 </dev/null` in4669 *GNU* | *'with BFD'*)4670 lt_cv_prog_gnu_ld=yes4671 ;;4672 *)4673 lt_cv_prog_gnu_ld=no4674 ;;4675 esac4676 fi4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&54678 $as_echo "$lt_cv_prog_gnu_ld" >&6; }4679 with_gnu_ld=$lt_cv_prog_gnu_ld4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&54690 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }4691 if ${lt_cv_path_NM+:} false; then :4692 $as_echo_n "(cached) " >&64693 else4694 if test -n "$NM"; then4695 # Let the user override the test.4696 lt_cv_path_NM=$NM4697 else4698 lt_nm_to_check=${ac_tool_prefix}nm4699 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then4700 lt_nm_to_check="$lt_nm_to_check nm"4701 fi4702 for lt_tmp_nm in $lt_nm_to_check; do4703 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4704 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do4705 IFS=$lt_save_ifs4706 test -z "$ac_dir" && ac_dir=.4707 tmp_nm=$ac_dir/$lt_tmp_nm4708 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then4709 # Check to see if the nm accepts a BSD-compat flag.4710 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:4711 # nm: unknown option "B" ignored4712 # Tru64's nm complains that /dev/null is an invalid object file4713 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty4714 case $build_os in4715 mingw*) lt_bad_file=conftest.nm/nofile ;;4716 *) lt_bad_file=/dev/null ;;4717 esac4718 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in4719 *$lt_bad_file* | *'Invalid file or object type'*)4720 lt_cv_path_NM="$tmp_nm -B"4721 break 24722 ;;4723 *)4724 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in4725 */dev/null*)4726 lt_cv_path_NM="$tmp_nm -p"4727 break 24728 ;;4729 *)4730 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but4731 continue # so that we can try to find one that supports BSD flags4732 ;;4733 esac4734 ;;4735 esac4736 fi4737 done4738 IFS=$lt_save_ifs4739 done4740 : ${lt_cv_path_NM=no}4741 fi4742 fi4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&54744 $as_echo "$lt_cv_path_NM" >&6; }4745 if test no != "$lt_cv_path_NM"; then4746 NM=$lt_cv_path_NM4747 else4748 # Didn't find any BSD compatible name lister, look for dumpbin.4749 if test -n "$DUMPBIN"; then :4750 # Let the user override the test.4751 else4752 if test -n "$ac_tool_prefix"; then4753 for ac_prog in dumpbin "link -dump"4754 do4755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.4756 set dummy $ac_tool_prefix$ac_prog; ac_word=$24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54758 $as_echo_n "checking for $ac_word... " >&6; }4759 if ${ac_cv_prog_DUMPBIN+:} false; then :4760 $as_echo_n "(cached) " >&64761 else4762 if test -n "$DUMPBIN"; then4763 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.4764 else4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4766 for as_dir in $PATH4767 do4768 IFS=$as_save_IFS4769 test -z "$as_dir" && as_dir=.4770 for ac_exec_ext in '' $ac_executable_extensions; do4771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4772 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"4773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54774 break 24775 fi4776 done4777 done4778 IFS=$as_save_IFS4779 4780 fi4781 fi4782 DUMPBIN=$ac_cv_prog_DUMPBIN4783 if test -n "$DUMPBIN"; then4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&54785 $as_echo "$DUMPBIN" >&6; }4786 else4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54788 $as_echo "no" >&6; }4789 fi4790 4791 4792 test -n "$DUMPBIN" && break4793 done4794 fi4795 if test -z "$DUMPBIN"; then4796 ac_ct_DUMPBIN=$DUMPBIN4797 for ac_prog in dumpbin "link -dump"4798 do4799 # Extract the first word of "$ac_prog", so it can be a program name with args.4800 set dummy $ac_prog; ac_word=$24801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54802 $as_echo_n "checking for $ac_word... " >&6; }4803 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :4804 $as_echo_n "(cached) " >&64805 else4806 if test -n "$ac_ct_DUMPBIN"; then4807 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.4808 else4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4810 for as_dir in $PATH4811 do4812 IFS=$as_save_IFS4813 test -z "$as_dir" && as_dir=.4814 for ac_exec_ext in '' $ac_executable_extensions; do4815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4816 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54818 break 24819 fi4820 done4821 done4822 IFS=$as_save_IFS4823 4824 fi4825 fi4826 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN4827 if test -n "$ac_ct_DUMPBIN"; then4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&54829 $as_echo "$ac_ct_DUMPBIN" >&6; }4830 else4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54832 $as_echo "no" >&6; }4833 fi4834 4835 4836 test -n "$ac_ct_DUMPBIN" && break4837 done4838 4839 if test "x$ac_ct_DUMPBIN" = x; then4840 DUMPBIN=":"4841 else4842 case $cross_compiling:$ac_tool_warned in4843 yes:)4844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&54845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}4846 ac_tool_warned=yes ;;4847 esac4848 DUMPBIN=$ac_ct_DUMPBIN4849 fi4850 fi4851 4852 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in4853 *COFF*)4854 DUMPBIN="$DUMPBIN -symbols -headers"4855 ;;4856 *)4857 DUMPBIN=:4858 ;;4859 esac4860 fi4861 4862 if test : != "$DUMPBIN"; then4863 NM=$DUMPBIN4864 fi4865 fi4866 test -z "$NM" && NM=nm4867 4868 4869 4870 4871 4872 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&54874 $as_echo_n "checking the name lister ($NM) interface... " >&6; }4875 if ${lt_cv_nm_interface+:} false; then :4876 $as_echo_n "(cached) " >&64877 else4878 lt_cv_nm_interface="BSD nm"4879 echo "int some_variable = 0;" > conftest.$ac_ext4880 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)4881 (eval "$ac_compile" 2>conftest.err)4882 cat conftest.err >&54883 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4884 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)4885 cat conftest.err >&54886 (eval echo "\"\$as_me:$LINENO: output\"" >&5)4887 cat conftest.out >&54888 if $GREP 'External.*some_variable' conftest.out > /dev/null; then4889 lt_cv_nm_interface="MS dumpbin"4890 fi4891 rm -f conftest*4892 fi4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&54894 $as_echo "$lt_cv_nm_interface" >&6; }4895 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&54897 $as_echo_n "checking whether ln -s works... " >&6; }4898 LN_S=$as_ln_s4899 if test "$LN_S" = "ln -s"; then4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&54901 $as_echo "yes" >&6; }4902 else4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&54904 $as_echo "no, using $LN_S" >&6; }4905 fi4906 4907 # find the maximum length of command line arguments4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&54909 $as_echo_n "checking the maximum length of command line arguments... " >&6; }4910 if ${lt_cv_sys_max_cmd_len+:} false; then :4911 $as_echo_n "(cached) " >&64912 else4913 i=04914 teststring=ABCD4915 4916 case $build_os in4917 msdosdjgpp*)4918 # On DJGPP, this test can blow up pretty badly due to problems in libc4919 # (any single argument exceeding 2000 bytes causes a buffer overrun4920 # during glob expansion). Even if it were fixed, the result of this4921 # check would be larger than it should be.4922 lt_cv_sys_max_cmd_len=12288; # 12K is about right4923 ;;4924 4925 gnu*)4926 # Under GNU Hurd, this test is not required because there is4927 # no limit to the length of command line arguments.4928 # Libtool will interpret -1 as no limit whatsoever4929 lt_cv_sys_max_cmd_len=-1;4930 ;;4931 4932 cygwin* | mingw* | cegcc*)4933 # On Win9x/ME, this test blows up -- it succeeds, but takes4934 # about 5 minutes as the teststring grows exponentially.4935 # Worse, since 9x/ME are not pre-emptively multitasking,4936 # you end up with a "frozen" computer, even though with patience4937 # the test eventually succeeds (with a max line length of 256k).4938 # Instead, let's just punt: use the minimum linelength reported by4939 # all of the supported platforms: 8192 (on NT/2K/XP).4940 lt_cv_sys_max_cmd_len=8192;4941 ;;4942 4943 mint*)4944 # On MiNT this can take a long time and run out of memory.4945 lt_cv_sys_max_cmd_len=8192;4946 ;;4947 4948 amigaos*)4949 # On AmigaOS with pdksh, this test takes hours, literally.4950 # So we just punt and use a minimum line length of 8192.4951 lt_cv_sys_max_cmd_len=8192;4952 ;;4953 4954 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)4955 # This has been around since 386BSD, at least. Likely further.4956 if test -x /sbin/sysctl; then4957 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`4958 elif test -x /usr/sbin/sysctl; then4959 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`4960 else4961 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs4962 fi4963 # And add a safety zone4964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`4965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`4966 ;;4967 4968 interix*)4969 # We know the value 262144 and hardcode it with a safety zone (like BSD)4970 lt_cv_sys_max_cmd_len=1966084971 ;;4972 4973 os2*)4974 # The test takes a long time on OS/2.4975 lt_cv_sys_max_cmd_len=81924976 ;;4977 4978 osf*)4979 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure4980 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not4981 # nice to cause kernel panics so lets avoid the loop below.4982 # First set a reasonable default.4983 lt_cv_sys_max_cmd_len=163844984 #4985 if test -x /sbin/sysconfig; then4986 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in4987 *1*) lt_cv_sys_max_cmd_len=-1 ;;4988 esac4989 fi4990 ;;4991 sco3.2v5*)4992 lt_cv_sys_max_cmd_len=1024004993 ;;4994 sysv5* | sco5v6* | sysv4.2uw2*)4995 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`4996 if test -n "$kargmax"; then4997 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`4998 else4999 lt_cv_sys_max_cmd_len=327685000 fi5001 ;;5002 *)5003 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`5004 if test -n "$lt_cv_sys_max_cmd_len" && \5005 test undefined != "$lt_cv_sys_max_cmd_len"; then5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`5007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`5008 else5009 # Make teststring a little bigger before we do anything with it.5010 # a 1K string should be a reasonable start.5011 for i in 1 2 3 4 5 6 7 8; do5012 teststring=$teststring$teststring5013 done5014 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}5015 # If test is not a shell built-in, we'll probably end up computing a5016 # maximum length that is only half of the actual maximum length, but5017 # we can't tell.5018 while { test X`env echo "$teststring$teststring" 2>/dev/null` \5019 = "X$teststring$teststring"; } >/dev/null 2>&1 &&5020 test 17 != "$i" # 1/2 MB should be enough5021 do5022 i=`expr $i + 1`5023 teststring=$teststring$teststring5024 done5025 # Only check the string length outside the loop.5026 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`5027 teststring=5028 # Add a significant safety factor because C++ compilers can tack on5029 # massive amounts of additional arguments before passing them to the5030 # linker. It appears as though 1/2 is a usable value.5031 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`5032 fi5033 ;;5034 esac5035 5036 fi5037 5038 if test -n "$lt_cv_sys_max_cmd_len"; then5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&55040 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }5041 else5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&55043 $as_echo "none" >&6; }5044 fi5045 max_cmd_len=$lt_cv_sys_max_cmd_len5046 5047 5048 5049 5050 5051 5052 : ${CP="cp -f"}5053 : ${MV="mv -f"}5054 : ${RM="rm -f"}5055 5056 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then5057 lt_unset=unset5058 else5059 lt_unset=false5060 fi5061 5062 5063 5064 5065 5066 # test EBCDIC or ASCII5067 case `echo X|tr X '\101'` in5068 A) # ASCII based system5069 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr5070 lt_SP2NL='tr \040 \012'5071 lt_NL2SP='tr \015\012 \040\040'5072 ;;5073 *) # EBCDIC based system5074 lt_SP2NL='tr \100 \n'5075 lt_NL2SP='tr \r\n \100\100'5076 ;;5077 esac5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&55088 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }5089 if ${lt_cv_to_host_file_cmd+:} false; then :5090 $as_echo_n "(cached) " >&65091 else5092 case $host in5093 *-*-mingw* )5094 case $build in5095 *-*-mingw* ) # actually msys5096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w325097 ;;5098 *-*-cygwin* )5099 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w325100 ;;5101 * ) # otherwise, assume *nix5102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w325103 ;;5104 esac5105 ;;5106 *-*-cygwin* )5107 case $build in5108 *-*-mingw* ) # actually msys5109 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin5110 ;;5111 *-*-cygwin* )5112 lt_cv_to_host_file_cmd=func_convert_file_noop5113 ;;5114 * ) # otherwise, assume *nix5115 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin5116 ;;5117 esac5118 ;;5119 * ) # unhandled hosts (and "normal" native builds)5120 lt_cv_to_host_file_cmd=func_convert_file_noop5121 ;;5122 esac5123 5124 fi5125 5126 to_host_file_cmd=$lt_cv_to_host_file_cmd5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&55128 $as_echo "$lt_cv_to_host_file_cmd" >&6; }5129 5130 5131 5132 5133 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&55135 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }5136 if ${lt_cv_to_tool_file_cmd+:} false; then :5137 $as_echo_n "(cached) " >&65138 else5139 #assume ordinary cross tools, or native build.5140 lt_cv_to_tool_file_cmd=func_convert_file_noop5141 case $host in5142 *-*-mingw* )5143 case $build in5144 *-*-mingw* ) # actually msys5145 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w325146 ;;5147 esac5148 ;;5149 esac5150 5151 fi5152 5153 to_tool_file_cmd=$lt_cv_to_tool_file_cmd5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&55155 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }5156 5157 5158 5159 5160 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&55162 $as_echo_n "checking for $LD option to reload object files... " >&6; }5163 if ${lt_cv_ld_reload_flag+:} false; then :5164 $as_echo_n "(cached) " >&65165 else5166 lt_cv_ld_reload_flag='-r'5167 fi5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&55169 $as_echo "$lt_cv_ld_reload_flag" >&6; }5170 reload_flag=$lt_cv_ld_reload_flag5171 case $reload_flag in5172 "" | " "*) ;;5173 *) reload_flag=" $reload_flag" ;;5174 esac5175 reload_cmds='$LD$reload_flag -o $output$reload_objs'5176 case $host_os in5177 cygwin* | mingw* | pw32* | cegcc*)5178 if test yes != "$GCC"; then5179 reload_cmds=false5180 fi5181 ;;5182 darwin*)5183 if test yes = "$GCC"; then5184 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'5185 else5186 reload_cmds='$LD$reload_flag -o $output$reload_objs'5187 fi5188 ;;5189 esac5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 if test -n "$ac_tool_prefix"; then5200 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.5201 set dummy ${ac_tool_prefix}objdump; ac_word=$25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55203 $as_echo_n "checking for $ac_word... " >&6; }5204 if ${ac_cv_prog_OBJDUMP+:} false; then :5205 $as_echo_n "(cached) " >&65206 else5207 if test -n "$OBJDUMP"; then5208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.5209 else5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5211 for as_dir in $PATH5212 do5213 IFS=$as_save_IFS5214 test -z "$as_dir" && as_dir=.5215 for ac_exec_ext in '' $ac_executable_extensions; do5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5217 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55219 break 25220 fi5221 done5222 done5223 IFS=$as_save_IFS5224 5225 fi5226 fi5227 OBJDUMP=$ac_cv_prog_OBJDUMP5228 if test -n "$OBJDUMP"; then5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&55230 $as_echo "$OBJDUMP" >&6; }5231 else5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55233 $as_echo "no" >&6; }5234 fi5235 5236 5237 fi5238 if test -z "$ac_cv_prog_OBJDUMP"; then5239 ac_ct_OBJDUMP=$OBJDUMP5240 # Extract the first word of "objdump", so it can be a program name with args.5241 set dummy objdump; ac_word=$25242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55243 $as_echo_n "checking for $ac_word... " >&6; }5244 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :5245 $as_echo_n "(cached) " >&65246 else5247 if test -n "$ac_ct_OBJDUMP"; then5248 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.5249 else5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5251 for as_dir in $PATH5252 do5253 IFS=$as_save_IFS5254 test -z "$as_dir" && as_dir=.5255 for ac_exec_ext in '' $ac_executable_extensions; do5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5257 ac_cv_prog_ac_ct_OBJDUMP="objdump"5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55259 break 25260 fi5261 done5262 done5263 IFS=$as_save_IFS5264 5265 fi5266 fi5267 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP5268 if test -n "$ac_ct_OBJDUMP"; then5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&55270 $as_echo "$ac_ct_OBJDUMP" >&6; }5271 else5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55273 $as_echo "no" >&6; }5274 fi5275 5276 if test "x$ac_ct_OBJDUMP" = x; then5277 OBJDUMP="false"5278 else5279 case $cross_compiling:$ac_tool_warned in5280 yes:)5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5283 ac_tool_warned=yes ;;5284 esac5285 OBJDUMP=$ac_ct_OBJDUMP5286 fi5287 else5288 OBJDUMP="$ac_cv_prog_OBJDUMP"5289 fi5290 5291 test -z "$OBJDUMP" && OBJDUMP=objdump5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&55302 $as_echo_n "checking how to recognize dependent libraries... " >&6; }5303 if ${lt_cv_deplibs_check_method+:} false; then :5304 $as_echo_n "(cached) " >&65305 else5306 lt_cv_file_magic_cmd='$MAGIC_CMD'5307 lt_cv_file_magic_test_file=5308 lt_cv_deplibs_check_method='unknown'5309 # Need to set the preceding variable on all platforms that support5310 # interlibrary dependencies.5311 # 'none' -- dependencies not supported.5312 # 'unknown' -- same as none, but documents that we really don't know.5313 # 'pass_all' -- all dependencies passed with no checks.5314 # 'test_compile' -- check by making test program.5315 # 'file_magic [[regex]]' -- check by looking for files in library path5316 # that responds to the $file_magic_cmd with a given extended regex.5317 # If you have 'file' or equivalent on your system and you're not sure5318 # whether 'pass_all' will *always* work, you probably want this one.5319 5320 case $host_os in5321 aix[4-9]*)5322 lt_cv_deplibs_check_method=pass_all5323 ;;5324 5325 beos*)5326 lt_cv_deplibs_check_method=pass_all5327 ;;5328 5329 bsdi[45]*)5330 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'5331 lt_cv_file_magic_cmd='/usr/bin/file -L'5332 lt_cv_file_magic_test_file=/shlib/libc.so5333 ;;5334 5335 cygwin*)5336 # func_win32_libid is a shell function defined in ltmain.sh5337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5338 lt_cv_file_magic_cmd='func_win32_libid'5339 ;;5340 5341 mingw* | pw32*)5342 # Base MSYS/MinGW do not provide the 'file' command needed by5343 # func_win32_libid shell function, so use a weaker test based on 'objdump',5344 # unless we find 'file', for example because we are cross-compiling.5345 if ( file / ) >/dev/null 2>&1; then5346 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5347 lt_cv_file_magic_cmd='func_win32_libid'5348 else5349 # Keep this pattern in sync with the one in func_win32_libid.5350 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'5351 lt_cv_file_magic_cmd='$OBJDUMP -f'5352 fi5353 ;;5354 5355 cegcc*)5356 # use the weaker test based on 'objdump'. See mingw*.5357 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'5358 lt_cv_file_magic_cmd='$OBJDUMP -f'5359 ;;5360 5361 darwin* | rhapsody*)5362 lt_cv_deplibs_check_method=pass_all5363 ;;5364 5365 freebsd* | dragonfly*)5366 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5367 case $host_cpu in5368 i*86 )5369 # Not sure whether the presence of OpenBSD here was a mistake.5370 # Let's accept both of them until this is cleared up.5371 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'5372 lt_cv_file_magic_cmd=/usr/bin/file5373 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`5374 ;;5375 esac5376 else5377 lt_cv_deplibs_check_method=pass_all5378 fi5379 ;;5380 5381 haiku*)5382 lt_cv_deplibs_check_method=pass_all5383 ;;5384 5385 hpux10.20* | hpux11*)5386 lt_cv_file_magic_cmd=/usr/bin/file5387 case $host_cpu in5388 ia64*)5389 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'5390 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so5391 ;;5392 hppa*64*)5393 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'5394 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl5395 ;;5396 *)5397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'5398 lt_cv_file_magic_test_file=/usr/lib/libc.sl5399 ;;5400 esac5401 ;;5402 5403 interix[3-9]*)5404 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here5405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'5406 ;;5407 5408 irix5* | irix6* | nonstopux*)5409 case $LD in5410 *-32|*"-32 ") libmagic=32-bit;;5411 *-n32|*"-n32 ") libmagic=N32;;5412 *-64|*"-64 ") libmagic=64-bit;;5413 *) libmagic=never-match;;5414 esac5415 lt_cv_deplibs_check_method=pass_all5416 ;;5417 5418 # This must be glibc/ELF.5419 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)5420 lt_cv_deplibs_check_method=pass_all5421 ;;5422 5423 netbsd* | netbsdelf*-gnu)5424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5425 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5426 else5427 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'5428 fi5429 ;;5430 5431 newos6*)5432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'5433 lt_cv_file_magic_cmd=/usr/bin/file5434 lt_cv_file_magic_test_file=/usr/lib/libnls.so5435 ;;5436 5437 *nto* | *qnx*)5438 lt_cv_deplibs_check_method=pass_all5439 ;;5440 5441 openbsd* | bitrig*)5442 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then5443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'5444 else5445 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5446 fi5447 ;;5448 5449 osf3* | osf4* | osf5*)5450 lt_cv_deplibs_check_method=pass_all5451 ;;5452 5453 rdos*)5454 lt_cv_deplibs_check_method=pass_all5455 ;;5456 5457 solaris*)5458 lt_cv_deplibs_check_method=pass_all5459 ;;5460 5461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)5462 lt_cv_deplibs_check_method=pass_all5463 ;;5464 5465 sysv4 | sysv4.3*)5466 case $host_vendor in5467 motorola)5468 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'5469 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`5470 ;;5471 ncr)5472 lt_cv_deplibs_check_method=pass_all5473 ;;5474 sequent)5475 lt_cv_file_magic_cmd='/bin/file'5476 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'5477 ;;5478 sni)5479 lt_cv_file_magic_cmd='/bin/file'5480 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"5481 lt_cv_file_magic_test_file=/lib/libc.so5482 ;;5483 siemens)5484 lt_cv_deplibs_check_method=pass_all5485 ;;5486 pc)5487 lt_cv_deplibs_check_method=pass_all5488 ;;5489 esac5490 ;;5491 5492 tpf*)5493 lt_cv_deplibs_check_method=pass_all5494 ;;5495 os2*)5496 lt_cv_deplibs_check_method=pass_all5497 ;;5498 esac5499 5500 fi5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&55502 $as_echo "$lt_cv_deplibs_check_method" >&6; }5503 5504 file_magic_glob=5505 want_nocaseglob=no5506 if test "$build" = "$host"; then5507 case $host_os in5508 mingw* | pw32*)5509 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then5510 want_nocaseglob=yes5511 else5512 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`5513 fi5514 ;;5515 esac5516 fi5517 5518 file_magic_cmd=$lt_cv_file_magic_cmd5519 deplibs_check_method=$lt_cv_deplibs_check_method5520 test -z "$deplibs_check_method" && deplibs_check_method=unknown5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 if test -n "$ac_tool_prefix"; then5544 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.5545 set dummy ${ac_tool_prefix}dlltool; ac_word=$25546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55547 $as_echo_n "checking for $ac_word... " >&6; }5548 if ${ac_cv_prog_DLLTOOL+:} false; then :5549 $as_echo_n "(cached) " >&65550 else5551 if test -n "$DLLTOOL"; then5552 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.5553 else5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5555 for as_dir in $PATH5556 do5557 IFS=$as_save_IFS5558 test -z "$as_dir" && as_dir=.5559 for ac_exec_ext in '' $ac_executable_extensions; do5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5561 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55563 break 25564 fi5565 done5566 done5567 IFS=$as_save_IFS5568 5569 fi5570 fi5571 DLLTOOL=$ac_cv_prog_DLLTOOL5572 if test -n "$DLLTOOL"; then5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&55574 $as_echo "$DLLTOOL" >&6; }5575 else5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55577 $as_echo "no" >&6; }5578 fi5579 5580 5581 fi5582 if test -z "$ac_cv_prog_DLLTOOL"; then5583 ac_ct_DLLTOOL=$DLLTOOL5584 # Extract the first word of "dlltool", so it can be a program name with args.5585 set dummy dlltool; ac_word=$25586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55587 $as_echo_n "checking for $ac_word... " >&6; }5588 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :5589 $as_echo_n "(cached) " >&65590 else5591 if test -n "$ac_ct_DLLTOOL"; then5592 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.5593 else5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5595 for as_dir in $PATH5596 do5597 IFS=$as_save_IFS5598 test -z "$as_dir" && as_dir=.5599 for ac_exec_ext in '' $ac_executable_extensions; do5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5601 ac_cv_prog_ac_ct_DLLTOOL="dlltool"5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55603 break 25604 fi5605 done5606 done5607 IFS=$as_save_IFS5608 5609 fi5610 fi5611 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL5612 if test -n "$ac_ct_DLLTOOL"; then5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&55614 $as_echo "$ac_ct_DLLTOOL" >&6; }5615 else5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55617 $as_echo "no" >&6; }5618 fi5619 5620 if test "x$ac_ct_DLLTOOL" = x; then5621 DLLTOOL="false"5622 else5623 case $cross_compiling:$ac_tool_warned in5624 yes:)5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5627 ac_tool_warned=yes ;;5628 esac5629 DLLTOOL=$ac_ct_DLLTOOL5630 fi5631 else5632 DLLTOOL="$ac_cv_prog_DLLTOOL"5633 fi5634 5635 test -z "$DLLTOOL" && DLLTOOL=dlltool5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&55647 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }5648 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :5649 $as_echo_n "(cached) " >&65650 else5651 lt_cv_sharedlib_from_linklib_cmd='unknown'5652 5653 case $host_os in5654 cygwin* | mingw* | pw32* | cegcc*)5655 # two different shell functions defined in ltmain.sh;5656 # decide which one to use based on capabilities of $DLLTOOL5657 case `$DLLTOOL --help 2>&1` in5658 *--identify-strict*)5659 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib5660 ;;5661 *)5662 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback5663 ;;5664 esac5665 ;;5666 *)5667 # fallback: assume linklib IS sharedlib5668 lt_cv_sharedlib_from_linklib_cmd=$ECHO5669 ;;5670 esac5671 5672 fi5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&55674 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }5675 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd5676 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO5677 5678 5679 5680 5681 5682 5683 5684 5685 if test -n "$ac_tool_prefix"; then5686 for ac_prog in ar5687 do5688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.5689 set dummy $ac_tool_prefix$ac_prog; ac_word=$25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55691 $as_echo_n "checking for $ac_word... " >&6; }5692 if ${ac_cv_prog_AR+:} false; then :5693 $as_echo_n "(cached) " >&65694 else5695 if test -n "$AR"; then5696 ac_cv_prog_AR="$AR" # Let the user override the test.5697 else5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5699 for as_dir in $PATH5700 do5701 IFS=$as_save_IFS5702 test -z "$as_dir" && as_dir=.5703 for ac_exec_ext in '' $ac_executable_extensions; do5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5705 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55707 break 25708 fi5709 done5710 done5711 IFS=$as_save_IFS5712 5713 fi5714 fi5715 AR=$ac_cv_prog_AR5716 if test -n "$AR"; then5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&55718 $as_echo "$AR" >&6; }5719 else5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55721 $as_echo "no" >&6; }5722 fi5723 5724 5725 test -n "$AR" && break5726 done5727 fi5728 if test -z "$AR"; then5729 ac_ct_AR=$AR5730 for ac_prog in ar5731 do5732 # Extract the first word of "$ac_prog", so it can be a program name with args.5733 set dummy $ac_prog; ac_word=$25734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55735 $as_echo_n "checking for $ac_word... " >&6; }5736 if ${ac_cv_prog_ac_ct_AR+:} false; then :5737 $as_echo_n "(cached) " >&65738 else5739 if test -n "$ac_ct_AR"; then5740 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.5741 else5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5743 for as_dir in $PATH5744 do5745 IFS=$as_save_IFS5746 test -z "$as_dir" && as_dir=.5747 for ac_exec_ext in '' $ac_executable_extensions; do5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5749 ac_cv_prog_ac_ct_AR="$ac_prog"5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55751 break 25752 fi5753 done5754 done5755 IFS=$as_save_IFS5756 5757 fi5758 fi5759 ac_ct_AR=$ac_cv_prog_ac_ct_AR5760 if test -n "$ac_ct_AR"; then5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&55762 $as_echo "$ac_ct_AR" >&6; }5763 else5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55765 $as_echo "no" >&6; }5766 fi5767 5768 5769 test -n "$ac_ct_AR" && break5770 done5771 5772 if test "x$ac_ct_AR" = x; then5773 AR="false"5774 else5775 case $cross_compiling:$ac_tool_warned in5776 yes:)5777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5779 ac_tool_warned=yes ;;5780 esac5781 AR=$ac_ct_AR5782 fi5783 fi5784 5785 : ${AR=ar}5786 : ${AR_FLAGS=cru}5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&55799 $as_echo_n "checking for archiver @FILE support... " >&6; }5800 if ${lt_cv_ar_at_file+:} false; then :5801 $as_echo_n "(cached) " >&65802 else5803 lt_cv_ar_at_file=no5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5805 /* end confdefs.h. */5806 5807 int5808 main ()5809 {5810 5811 ;5812 return 0;5813 }5814 _ACEOF5815 if ac_fn_c_try_compile "$LINENO"; then :5816 echo conftest.$ac_objext > conftest.lst5817 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'5818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55819 (eval $lt_ar_try) 2>&55820 ac_status=$?5821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55822 test $ac_status = 0; }5823 if test 0 -eq "$ac_status"; then5824 # Ensure the archiver fails upon bogus file names.5825 rm -f conftest.$ac_objext libconftest.a5826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55827 (eval $lt_ar_try) 2>&55828 ac_status=$?5829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55830 test $ac_status = 0; }5831 if test 0 -ne "$ac_status"; then5832 lt_cv_ar_at_file=@5833 fi5834 fi5835 rm -f conftest.* libconftest.a5836 5837 fi5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext5839 5840 fi5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&55842 $as_echo "$lt_cv_ar_at_file" >&6; }5843 5844 if test no = "$lt_cv_ar_at_file"; then5845 archiver_list_spec=5846 else5847 archiver_list_spec=$lt_cv_ar_at_file5848 fi5849 5850 5851 5852 5853 5854 5855 5856 if test -n "$ac_tool_prefix"; then5857 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.5858 set dummy ${ac_tool_prefix}strip; ac_word=$25859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55860 $as_echo_n "checking for $ac_word... " >&6; }5861 if ${ac_cv_prog_STRIP+:} false; then :5862 $as_echo_n "(cached) " >&65863 else5864 if test -n "$STRIP"; then5865 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.5866 else5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5868 for as_dir in $PATH5869 do5870 IFS=$as_save_IFS5871 test -z "$as_dir" && as_dir=.5872 for ac_exec_ext in '' $ac_executable_extensions; do5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5874 ac_cv_prog_STRIP="${ac_tool_prefix}strip"5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55876 break 25877 fi5878 done5879 done5880 IFS=$as_save_IFS5881 5882 fi5883 fi5884 STRIP=$ac_cv_prog_STRIP5885 if test -n "$STRIP"; then5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&55887 $as_echo "$STRIP" >&6; }5888 else5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55890 $as_echo "no" >&6; }5891 fi5892 5893 5894 fi5895 if test -z "$ac_cv_prog_STRIP"; then5896 ac_ct_STRIP=$STRIP5897 # Extract the first word of "strip", so it can be a program name with args.5898 set dummy strip; ac_word=$25899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55900 $as_echo_n "checking for $ac_word... " >&6; }5901 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :5902 $as_echo_n "(cached) " >&65903 else5904 if test -n "$ac_ct_STRIP"; then5905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.5906 else5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5908 for as_dir in $PATH5909 do5910 IFS=$as_save_IFS5911 test -z "$as_dir" && as_dir=.5912 for ac_exec_ext in '' $ac_executable_extensions; do5913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5914 ac_cv_prog_ac_ct_STRIP="strip"5915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55916 break 25917 fi5918 done5919 done5920 IFS=$as_save_IFS5921 5922 fi5923 fi5924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP5925 if test -n "$ac_ct_STRIP"; then5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&55927 $as_echo "$ac_ct_STRIP" >&6; }5928 else5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55930 $as_echo "no" >&6; }5931 fi5932 5933 if test "x$ac_ct_STRIP" = x; then5934 STRIP=":"5935 else5936 case $cross_compiling:$ac_tool_warned in5937 yes:)5938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55939 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5940 ac_tool_warned=yes ;;5941 esac5942 STRIP=$ac_ct_STRIP5943 fi5944 else5945 STRIP="$ac_cv_prog_STRIP"5946 fi5947 5948 test -z "$STRIP" && STRIP=:5949 5950 5951 5952 5953 5954 5955 if test -n "$ac_tool_prefix"; then5956 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.5957 set dummy ${ac_tool_prefix}ranlib; ac_word=$25958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55959 $as_echo_n "checking for $ac_word... " >&6; }5960 if ${ac_cv_prog_RANLIB+:} false; then :5961 $as_echo_n "(cached) " >&65962 else5963 if test -n "$RANLIB"; then5964 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.5965 else5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5967 for as_dir in $PATH5968 do5969 IFS=$as_save_IFS5970 test -z "$as_dir" && as_dir=.5971 for ac_exec_ext in '' $ac_executable_extensions; do5972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5973 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"5974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55975 break 25976 fi5977 done5978 done5979 IFS=$as_save_IFS5980 5981 fi5982 fi5983 RANLIB=$ac_cv_prog_RANLIB5984 if test -n "$RANLIB"; then5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&55986 $as_echo "$RANLIB" >&6; }5987 else5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55989 $as_echo "no" >&6; }5990 fi5991 5992 5993 fi5994 if test -z "$ac_cv_prog_RANLIB"; then5995 ac_ct_RANLIB=$RANLIB5996 # Extract the first word of "ranlib", so it can be a program name with args.5997 set dummy ranlib; ac_word=$25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55999 $as_echo_n "checking for $ac_word... " >&6; }6000 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :6001 $as_echo_n "(cached) " >&66002 else6003 if test -n "$ac_ct_RANLIB"; then6004 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.6005 else6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6007 for as_dir in $PATH6008 do6009 IFS=$as_save_IFS6010 test -z "$as_dir" && as_dir=.6011 for ac_exec_ext in '' $ac_executable_extensions; do6012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6013 ac_cv_prog_ac_ct_RANLIB="ranlib"6014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56015 break 26016 fi6017 done6018 done6019 IFS=$as_save_IFS6020 6021 fi6022 fi6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB6024 if test -n "$ac_ct_RANLIB"; then6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&56026 $as_echo "$ac_ct_RANLIB" >&6; }6027 else6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56029 $as_echo "no" >&6; }6030 fi6031 6032 if test "x$ac_ct_RANLIB" = x; then6033 RANLIB=":"6034 else6035 case $cross_compiling:$ac_tool_warned in6036 yes:)6037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6039 ac_tool_warned=yes ;;6040 esac6041 RANLIB=$ac_ct_RANLIB6042 fi6043 else6044 RANLIB="$ac_cv_prog_RANLIB"6045 fi6046 6047 test -z "$RANLIB" && RANLIB=:6048 6049 6050 6051 6052 6053 6054 # Determine commands to create old-style static archives.6055 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'6056 old_postinstall_cmds='chmod 644 $oldlib'6057 old_postuninstall_cmds=6058 6059 if test -n "$RANLIB"; then6060 case $host_os in6061 bitrig* | openbsd*)6062 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"6063 ;;6064 *)6065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"6066 ;;6067 esac6068 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"6069 fi6070 6071 case $host_os in6072 darwin*)6073 lock_old_archive_extraction=yes ;;6074 *)6075 lock_old_archive_extraction=no ;;6076 esac6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 # If no C compiler was specified, use CC.6117 LTCC=${LTCC-"$CC"}6118 6119 # If no C compiler flags were specified, use CFLAGS.6120 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}6121 6122 # Allow CC to be a program name with arguments.6123 compiler=$CC6124 6125 6126 # Check for command to grab the raw symbol name followed by C symbol from nm.6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&56128 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }6129 if ${lt_cv_sys_global_symbol_pipe+:} false; then :6130 $as_echo_n "(cached) " >&66131 else6132 6133 # These are sane defaults that work on at least a few old systems.6134 # [They come from Ultrix. What could be older than Ultrix?!! ;)]6135 6136 # Character class describing NM global symbol codes.6137 symcode='[BCDEGRST]'6138 6139 # Regexp to match symbols that can be accessed directly from C.6140 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'6141 6142 # Define system-specific variables.6143 case $host_os in6144 aix*)6145 symcode='[BCDT]'6146 ;;6147 cygwin* | mingw* | pw32* | cegcc*)6148 symcode='[ABCDGISTW]'6149 ;;6150 hpux*)6151 if test ia64 = "$host_cpu"; then6152 symcode='[ABCDEGRST]'6153 fi6154 ;;6155 irix* | nonstopux*)6156 symcode='[BCDEGRST]'6157 ;;6158 osf*)6159 symcode='[BCDEGQRST]'6160 ;;6161 solaris*)6162 symcode='[BDRT]'6163 ;;6164 sco3.2v5*)6165 symcode='[DT]'6166 ;;6167 sysv4.2uw2*)6168 symcode='[DT]'6169 ;;6170 sysv5* | sco5v6* | unixware* | OpenUNIX*)6171 symcode='[ABDT]'6172 ;;6173 sysv4)6174 symcode='[DFNSTU]'6175 ;;6176 esac6177 6178 # If we're using GNU nm, then use its standard symbol codes.6179 case `$NM -V 2>&1` in6180 *GNU* | *'with BFD'*)6181 symcode='[ABCDGIRSTW]' ;;6182 esac6183 6184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6185 # Gets list of data symbols to import.6186 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"6187 # Adjust the below global symbol transforms to fixup imported variables.6188 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"6189 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"6190 lt_c_name_lib_hook="\6191 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\6192 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"6193 else6194 # Disable hooks by default.6195 lt_cv_sys_global_symbol_to_import=6196 lt_cdecl_hook=6197 lt_c_name_hook=6198 lt_c_name_lib_hook=6199 fi6200 6201 # Transform an extracted symbol line into a proper C declaration.6202 # Some systems (esp. on ia64) link data and code symbols differently,6203 # so use this general approach.6204 lt_cv_sys_global_symbol_to_cdecl="sed -n"\6205 $lt_cdecl_hook\6206 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\6207 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"6208 6209 # Transform an extracted symbol line into symbol name and symbol address6210 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\6211 $lt_c_name_hook\6212 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6213 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"6214 6215 # Transform an extracted symbol line into symbol name with lib prefix and6216 # symbol address.6217 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\6218 $lt_c_name_lib_hook\6219 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6220 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\6221 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"6222 6223 # Handle CRLF in mingw tool chain6224 opt_cr=6225 case $build_os in6226 mingw*)6227 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp6228 ;;6229 esac6230 6231 # Try without a prefix underscore, then with it.6232 for ac_symprfx in "" "_"; do6233 6234 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.6235 symxfrm="\\1 $ac_symprfx\\2 \\2"6236 6237 # Write the raw and C identifiers.6238 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6239 # Fake it for dumpbin and say T for any non-static function,6240 # D for any global variable and I for any imported variable.6241 # Also find C++ and __fastcall symbols from MSVC++,6242 # which start with @ or ?.6243 lt_cv_sys_global_symbol_pipe="$AWK '"\6244 " {last_section=section; section=\$ 3};"\6245 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\6246 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\6247 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\6248 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\6249 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\6250 " \$ 0!~/External *\|/{next};"\6251 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\6252 " {if(hide[section]) next};"\6253 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\6254 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\6255 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\6256 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\6257 " ' prfx=^$ac_symprfx"6258 else6259 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"6260 fi6261 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"6262 6263 # Check to see that the pipe works correctly.6264 pipe_works=no6265 6266 rm -f conftest*6267 cat > conftest.$ac_ext <<_LT_EOF6268 #ifdef __cplusplus6269 extern "C" {6270 #endif6271 char nm_test_var;6272 void nm_test_func(void);6273 void nm_test_func(void){}6274 #ifdef __cplusplus6275 }6276 #endif6277 int main(){nm_test_var='a';nm_test_func();return(0);}6278 _LT_EOF6279 6280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56281 (eval $ac_compile) 2>&56282 ac_status=$?6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56284 test $ac_status = 0; }; then6285 # Now try to grab the symbols.6286 nlist=conftest.nm6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&56288 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&56289 ac_status=$?6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56291 test $ac_status = 0; } && test -s "$nlist"; then6292 # Try sorting and uniquifying the output.6293 if sort "$nlist" | uniq > "$nlist"T; then6294 mv -f "$nlist"T "$nlist"6295 else6296 rm -f "$nlist"T6297 fi6298 6299 # Make sure that we snagged all the symbols we need.6300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then6301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then6302 cat <<_LT_EOF > conftest.$ac_ext6303 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */6304 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE6305 /* DATA imports from DLLs on WIN32 can't be const, because runtime6306 relocations are performed -- see ld's documentation on pseudo-relocs. */6307 # define LT_DLSYM_CONST6308 #elif defined __osf__6309 /* This system does not cope well with relocations in const data. */6310 # define LT_DLSYM_CONST6311 #else6312 # define LT_DLSYM_CONST const6313 #endif6314 6315 #ifdef __cplusplus6316 extern "C" {6317 #endif6318 6319 _LT_EOF6320 # Now generate the symbol file.6321 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'6322 6323 cat <<_LT_EOF >> conftest.$ac_ext6324 6325 /* The mapping between symbol names and symbols. */6326 LT_DLSYM_CONST struct {6327 const char *name;6328 void *address;6329 }6330 lt__PROGRAM__LTX_preloaded_symbols[] =6331 {6332 { "@PROGRAM@", (void *) 0 },6333 _LT_EOF6334 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext6335 cat <<\_LT_EOF >> conftest.$ac_ext6336 {0, (void *) 0}6337 };6338 6339 /* This works around a problem in FreeBSD linker */6340 #ifdef FREEBSD_WORKAROUND6341 static const void *lt_preloaded_setup() {6342 return lt__PROGRAM__LTX_preloaded_symbols;6343 }6344 #endif6345 6346 #ifdef __cplusplus6347 }6348 #endif6349 _LT_EOF6350 # Now try linking the two files.6351 mv conftest.$ac_objext conftstm.$ac_objext6352 lt_globsym_save_LIBS=$LIBS6353 lt_globsym_save_CFLAGS=$CFLAGS6354 LIBS=conftstm.$ac_objext6355 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"6356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&56357 (eval $ac_link) 2>&56358 ac_status=$?6359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56360 test $ac_status = 0; } && test -s conftest$ac_exeext; then6361 pipe_works=yes6362 fi6363 LIBS=$lt_globsym_save_LIBS6364 CFLAGS=$lt_globsym_save_CFLAGS6365 else6366 echo "cannot find nm_test_func in $nlist" >&56367 fi6368 else6369 echo "cannot find nm_test_var in $nlist" >&56370 fi6371 else6372 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&56373 fi6374 else6375 echo "$progname: failed program was:" >&56376 cat conftest.$ac_ext >&56377 fi6378 rm -rf conftest* conftst*6379 6380 # Do not use the global_symbol_pipe unless it works.6381 if test yes = "$pipe_works"; then6382 break6383 else6384 lt_cv_sys_global_symbol_pipe=6385 fi6386 done6387 6388 fi6389 6390 if test -z "$lt_cv_sys_global_symbol_pipe"; then6391 lt_cv_sys_global_symbol_to_cdecl=6392 fi6393 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&56395 $as_echo "failed" >&6; }6396 else6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&56398 $as_echo "ok" >&6; }6399 fi6400 6401 # Response file support.6402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6403 nm_file_list_spec='@'6404 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then6405 nm_file_list_spec='@'6406 fi6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&56445 $as_echo_n "checking for sysroot... " >&6; }6446 6447 # Check whether --with-sysroot was given.6448 if test "${with_sysroot+set}" = set; then :6449 withval=$with_sysroot;6450 else6451 with_sysroot=no6452 fi6453 6454 6455 lt_sysroot=6456 case $with_sysroot in #(6457 yes)6458 if test yes = "$GCC"; then6459 lt_sysroot=`$CC --print-sysroot 2>/dev/null`6460 fi6461 ;; #(6462 /*)6463 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`6464 ;; #(6465 no|'')6466 ;; #(6467 *)6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&56469 $as_echo "$with_sysroot" >&6; }6470 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 56471 ;;6472 esac6473 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&56475 $as_echo "${lt_sysroot:-no}" >&6; }6476 6477 6478 6479 6480 6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&56482 $as_echo_n "checking for a working dd... " >&6; }6483 if ${ac_cv_path_lt_DD+:} false; then :6484 $as_echo_n "(cached) " >&66485 else6486 printf 0123456789abcdef0123456789abcdef >conftest.i6487 cat conftest.i conftest.i >conftest2.i6488 : ${lt_DD:=$DD}6489 if test -z "$lt_DD"; then6490 ac_path_lt_DD_found=false6491 # Loop through the user's path and test for each of PROGNAME-LIST6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6493 for as_dir in $PATH6494 do6495 IFS=$as_save_IFS6496 test -z "$as_dir" && as_dir=.6497 for ac_prog in dd; do6498 for ac_exec_ext in '' $ac_executable_extensions; do6499 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"6500 as_fn_executable_p "$ac_path_lt_DD" || continue6501 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6502 cmp -s conftest.i conftest.out \6503 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:6504 fi6505 $ac_path_lt_DD_found && break 36506 done6507 done6508 done6509 IFS=$as_save_IFS6510 if test -z "$ac_cv_path_lt_DD"; then6511 :6512 fi6513 else6514 ac_cv_path_lt_DD=$lt_DD6515 fi6516 6517 rm -f conftest.i conftest2.i conftest.out6518 fi6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&56520 $as_echo "$ac_cv_path_lt_DD" >&6; }6521 6522 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&56524 $as_echo_n "checking how to truncate binary pipes... " >&6; }6525 if ${lt_cv_truncate_bin+:} false; then :6526 $as_echo_n "(cached) " >&66527 else6528 printf 0123456789abcdef0123456789abcdef >conftest.i6529 cat conftest.i conftest.i >conftest2.i6530 lt_cv_truncate_bin=6531 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6532 cmp -s conftest.i conftest.out \6533 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"6534 fi6535 rm -f conftest.i conftest2.i conftest.out6536 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"6537 fi6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&56539 $as_echo "$lt_cv_truncate_bin" >&6; }6540 6541 6542 6543 6544 6545 6546 6547 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.6548 func_cc_basename ()6549 {6550 for cc_temp in $*""; do6551 case $cc_temp in6552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;6553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;6554 \-*) ;;6555 *) break;;6556 esac6557 done6558 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`6559 }6560 6561 # Check whether --enable-libtool-lock was given.6562 if test "${enable_libtool_lock+set}" = set; then :6563 enableval=$enable_libtool_lock;6564 fi6565 6566 test no = "$enable_libtool_lock" || enable_libtool_lock=yes6567 6568 # Some flags need to be propagated to the compiler or linker for good6569 # libtool support.6570 case $host in6571 ia64-*-hpux*)6572 # Find out what ABI is being produced by ac_compile, and set mode6573 # options accordingly.6574 echo 'int i;' > conftest.$ac_ext6575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56576 (eval $ac_compile) 2>&56577 ac_status=$?6578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56579 test $ac_status = 0; }; then6580 case `/usr/bin/file conftest.$ac_objext` in6581 *ELF-32*)6582 HPUX_IA64_MODE=326583 ;;6584 *ELF-64*)6585 HPUX_IA64_MODE=646586 ;;6587 esac6588 fi6589 rm -rf conftest*6590 ;;6591 *-*-irix6*)6592 # Find out what ABI is being produced by ac_compile, and set linker6593 # options accordingly.6594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56596 (eval $ac_compile) 2>&56597 ac_status=$?6598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56599 test $ac_status = 0; }; then6600 if test yes = "$lt_cv_prog_gnu_ld"; then6601 case `/usr/bin/file conftest.$ac_objext` in6602 *32-bit*)6603 LD="${LD-ld} -melf32bsmip"6604 ;;6605 *N32*)6606 LD="${LD-ld} -melf32bmipn32"6607 ;;6608 *64-bit*)6609 LD="${LD-ld} -melf64bmip"6610 ;;6611 esac6612 else6613 case `/usr/bin/file conftest.$ac_objext` in6614 *32-bit*)6615 LD="${LD-ld} -32"6616 ;;6617 *N32*)6618 LD="${LD-ld} -n32"6619 ;;6620 *64-bit*)6621 LD="${LD-ld} -64"6622 ;;6623 esac6624 fi6625 fi6626 rm -rf conftest*6627 ;;6628 6629 mips64*-*linux*)6630 # Find out what ABI is being produced by ac_compile, and set linker6631 # options accordingly.6632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56634 (eval $ac_compile) 2>&56635 ac_status=$?6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56637 test $ac_status = 0; }; then6638 emul=elf6639 case `/usr/bin/file conftest.$ac_objext` in6640 *32-bit*)6641 emul="${emul}32"6642 ;;6643 *64-bit*)6644 emul="${emul}64"6645 ;;6646 esac6647 case `/usr/bin/file conftest.$ac_objext` in6648 *MSB*)6649 emul="${emul}btsmip"6650 ;;6651 *LSB*)6652 emul="${emul}ltsmip"6653 ;;6654 esac6655 case `/usr/bin/file conftest.$ac_objext` in6656 *N32*)6657 emul="${emul}n32"6658 ;;6659 esac6660 LD="${LD-ld} -m $emul"6661 fi6662 rm -rf conftest*6663 ;;6664 6665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \6666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)6667 # Find out what ABI is being produced by ac_compile, and set linker6668 # options accordingly. Note that the listed cases only cover the6669 # situations where additional linker options are needed (such as when6670 # doing 32-bit compilation for a host where ld defaults to 64-bit, or6671 # vice versa); the common cases where no linker options are needed do6672 # not appear in the list.6673 echo 'int i;' > conftest.$ac_ext6674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56675 (eval $ac_compile) 2>&56676 ac_status=$?6677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56678 test $ac_status = 0; }; then6679 case `/usr/bin/file conftest.o` in6680 *32-bit*)6681 case $host in6682 x86_64-*kfreebsd*-gnu)6683 LD="${LD-ld} -m elf_i386_fbsd"6684 ;;6685 x86_64-*linux*)6686 case `/usr/bin/file conftest.o` in6687 *x86-64*)6688 LD="${LD-ld} -m elf32_x86_64"6689 ;;6690 *)6691 LD="${LD-ld} -m elf_i386"6692 ;;6693 esac6694 ;;6695 powerpc64le-*linux*)6696 LD="${LD-ld} -m elf32lppclinux"6697 ;;6698 powerpc64-*linux*)6699 LD="${LD-ld} -m elf32ppclinux"6700 ;;6701 s390x-*linux*)6702 LD="${LD-ld} -m elf_s390"6703 ;;6704 sparc64-*linux*)6705 LD="${LD-ld} -m elf32_sparc"6706 ;;6707 esac6708 ;;6709 *64-bit*)6710 case $host in6711 x86_64-*kfreebsd*-gnu)6712 LD="${LD-ld} -m elf_x86_64_fbsd"6713 ;;6714 x86_64-*linux*)6715 LD="${LD-ld} -m elf_x86_64"6716 ;;6717 powerpcle-*linux*)6718 LD="${LD-ld} -m elf64lppc"6719 ;;6720 powerpc-*linux*)6721 LD="${LD-ld} -m elf64ppc"6722 ;;6723 s390*-*linux*|s390*-*tpf*)6724 LD="${LD-ld} -m elf64_s390"6725 ;;6726 sparc*-*linux*)6727 LD="${LD-ld} -m elf64_sparc"6728 ;;6729 esac6730 ;;6731 esac6732 fi6733 rm -rf conftest*6734 ;;6735 6736 *-*-sco3.2v5*)6737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.6738 SAVE_CFLAGS=$CFLAGS6739 CFLAGS="$CFLAGS -belf"6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&56741 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }6742 if ${lt_cv_cc_needs_belf+:} false; then :6743 $as_echo_n "(cached) " >&66744 else6745 ac_ext=c6746 ac_cpp='$CPP $CPPFLAGS'6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu6750 6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext6752 /* end confdefs.h. */6753 6754 int6755 main ()6756 {6757 6758 ;6759 return 0;6760 }6761 _ACEOF6762 if ac_fn_c_try_link "$LINENO"; then :6763 lt_cv_cc_needs_belf=yes6764 else6765 lt_cv_cc_needs_belf=no6766 fi6767 rm -f core conftest.err conftest.$ac_objext \6768 conftest$ac_exeext conftest.$ac_ext6769 ac_ext=c6770 ac_cpp='$CPP $CPPFLAGS'6771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6773 ac_compiler_gnu=$ac_cv_c_compiler_gnu6774 6775 fi6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&56777 $as_echo "$lt_cv_cc_needs_belf" >&6; }6778 if test yes != "$lt_cv_cc_needs_belf"; then6779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf6780 CFLAGS=$SAVE_CFLAGS6781 fi6782 ;;6783 *-*solaris*)6784 # Find out what ABI is being produced by ac_compile, and set linker6785 # options accordingly.6786 echo 'int i;' > conftest.$ac_ext6787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56788 (eval $ac_compile) 2>&56789 ac_status=$?6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56791 test $ac_status = 0; }; then6792 case `/usr/bin/file conftest.o` in6793 *64-bit*)6794 case $lt_cv_prog_gnu_ld in6795 yes*)6796 case $host in6797 i?86-*-solaris*|x86_64-*-solaris*)6798 LD="${LD-ld} -m elf_x86_64"6799 ;;6800 sparc*-*-solaris*)6801 LD="${LD-ld} -m elf64_sparc"6802 ;;6803 esac6804 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.6805 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then6806 LD=${LD-ld}_sol26807 fi6808 ;;6809 *)6810 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then6811 LD="${LD-ld} -64"6812 fi6813 ;;6814 esac6815 ;;6816 esac6817 fi6818 rm -rf conftest*6819 ;;6820 esac6821 6822 need_locks=$enable_libtool_lock6823 6824 if test -n "$ac_tool_prefix"; then6825 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.6826 set dummy ${ac_tool_prefix}mt; ac_word=$26827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56828 $as_echo_n "checking for $ac_word... " >&6; }6829 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :6830 $as_echo_n "(cached) " >&66831 else6832 if test -n "$MANIFEST_TOOL"; then6833 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.6834 else6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6836 for as_dir in $PATH6837 do6838 IFS=$as_save_IFS6839 test -z "$as_dir" && as_dir=.6840 for ac_exec_ext in '' $ac_executable_extensions; do6841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6842 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"6843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56844 break 26845 fi6846 done6847 done6848 IFS=$as_save_IFS6849 6850 fi6851 fi6852 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL6853 if test -n "$MANIFEST_TOOL"; then6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&56855 $as_echo "$MANIFEST_TOOL" >&6; }6856 else6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56858 $as_echo "no" >&6; }6859 fi6860 6861 6862 fi6863 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then6864 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL6865 # Extract the first word of "mt", so it can be a program name with args.6866 set dummy mt; ac_word=$26867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56868 $as_echo_n "checking for $ac_word... " >&6; }6869 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :6870 $as_echo_n "(cached) " >&66871 else6872 if test -n "$ac_ct_MANIFEST_TOOL"; then6873 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.6874 else6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6876 for as_dir in $PATH6877 do6878 IFS=$as_save_IFS6879 test -z "$as_dir" && as_dir=.6880 for ac_exec_ext in '' $ac_executable_extensions; do6881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6882 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"6883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56884 break 26885 fi6886 done6887 done6888 IFS=$as_save_IFS6889 6890 fi6891 fi6892 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL6893 if test -n "$ac_ct_MANIFEST_TOOL"; then6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&56895 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }6896 else6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56898 $as_echo "no" >&6; }6899 fi6900 6901 if test "x$ac_ct_MANIFEST_TOOL" = x; then6902 MANIFEST_TOOL=":"6903 else6904 case $cross_compiling:$ac_tool_warned in6905 yes:)6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56907 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6908 ac_tool_warned=yes ;;6909 esac6910 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL6911 fi6912 else6913 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"6914 fi6915 6916 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&56918 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }6919 if ${lt_cv_path_mainfest_tool+:} false; then :6920 $as_echo_n "(cached) " >&66921 else6922 lt_cv_path_mainfest_tool=no6923 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&56924 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out6925 cat conftest.err >&56926 if $GREP 'Manifest Tool' conftest.out > /dev/null; then6927 lt_cv_path_mainfest_tool=yes6928 fi6929 rm -f conftest*6930 fi6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&56932 $as_echo "$lt_cv_path_mainfest_tool" >&6; }6933 if test yes != "$lt_cv_path_mainfest_tool"; then6934 MANIFEST_TOOL=:6935 fi6936 6937 6938 6939 6940 6941 6942 case $host_os in6943 rhapsody* | darwin*)6944 if test -n "$ac_tool_prefix"; then6945 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.6946 set dummy ${ac_tool_prefix}dsymutil; ac_word=$26947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56948 $as_echo_n "checking for $ac_word... " >&6; }6949 if ${ac_cv_prog_DSYMUTIL+:} false; then :6950 $as_echo_n "(cached) " >&66951 else6952 if test -n "$DSYMUTIL"; then6953 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.6954 else6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6956 for as_dir in $PATH6957 do6958 IFS=$as_save_IFS6959 test -z "$as_dir" && as_dir=.6960 for ac_exec_ext in '' $ac_executable_extensions; do6961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6962 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56964 break 26965 fi6966 done6967 done6968 IFS=$as_save_IFS6969 6970 fi6971 fi6972 DSYMUTIL=$ac_cv_prog_DSYMUTIL6973 if test -n "$DSYMUTIL"; then6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&56975 $as_echo "$DSYMUTIL" >&6; }6976 else6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56978 $as_echo "no" >&6; }6979 fi6980 6981 6982 fi6983 if test -z "$ac_cv_prog_DSYMUTIL"; then6984 ac_ct_DSYMUTIL=$DSYMUTIL6985 # Extract the first word of "dsymutil", so it can be a program name with args.6986 set dummy dsymutil; ac_word=$26987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56988 $as_echo_n "checking for $ac_word... " >&6; }6989 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :6990 $as_echo_n "(cached) " >&66991 else6992 if test -n "$ac_ct_DSYMUTIL"; then6993 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.6994 else6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6996 for as_dir in $PATH6997 do6998 IFS=$as_save_IFS6999 test -z "$as_dir" && as_dir=.7000 for ac_exec_ext in '' $ac_executable_extensions; do7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7002 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57004 break 27005 fi7006 done7007 done7008 IFS=$as_save_IFS7009 7010 fi7011 fi7012 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL7013 if test -n "$ac_ct_DSYMUTIL"; then7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&57015 $as_echo "$ac_ct_DSYMUTIL" >&6; }7016 else7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57018 $as_echo "no" >&6; }7019 fi7020 7021 if test "x$ac_ct_DSYMUTIL" = x; then7022 DSYMUTIL=":"7023 else7024 case $cross_compiling:$ac_tool_warned in7025 yes:)7026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7028 ac_tool_warned=yes ;;7029 esac7030 DSYMUTIL=$ac_ct_DSYMUTIL7031 fi7032 else7033 DSYMUTIL="$ac_cv_prog_DSYMUTIL"7034 fi7035 7036 if test -n "$ac_tool_prefix"; then7037 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.7038 set dummy ${ac_tool_prefix}nmedit; ac_word=$27039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57040 $as_echo_n "checking for $ac_word... " >&6; }7041 if ${ac_cv_prog_NMEDIT+:} false; then :7042 $as_echo_n "(cached) " >&67043 else7044 if test -n "$NMEDIT"; then7045 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.7046 else7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7048 for as_dir in $PATH7049 do7050 IFS=$as_save_IFS7051 test -z "$as_dir" && as_dir=.7052 for ac_exec_ext in '' $ac_executable_extensions; do7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7054 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57056 break 27057 fi7058 done7059 done7060 IFS=$as_save_IFS7061 7062 fi7063 fi7064 NMEDIT=$ac_cv_prog_NMEDIT7065 if test -n "$NMEDIT"; then7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&57067 $as_echo "$NMEDIT" >&6; }7068 else7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57070 $as_echo "no" >&6; }7071 fi7072 7073 7074 fi7075 if test -z "$ac_cv_prog_NMEDIT"; then7076 ac_ct_NMEDIT=$NMEDIT7077 # Extract the first word of "nmedit", so it can be a program name with args.7078 set dummy nmedit; ac_word=$27079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57080 $as_echo_n "checking for $ac_word... " >&6; }7081 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :7082 $as_echo_n "(cached) " >&67083 else7084 if test -n "$ac_ct_NMEDIT"; then7085 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.7086 else7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7088 for as_dir in $PATH7089 do7090 IFS=$as_save_IFS7091 test -z "$as_dir" && as_dir=.7092 for ac_exec_ext in '' $ac_executable_extensions; do7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7094 ac_cv_prog_ac_ct_NMEDIT="nmedit"7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57096 break 27097 fi7098 done7099 done7100 IFS=$as_save_IFS7101 7102 fi7103 fi7104 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT7105 if test -n "$ac_ct_NMEDIT"; then7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&57107 $as_echo "$ac_ct_NMEDIT" >&6; }7108 else7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57110 $as_echo "no" >&6; }7111 fi7112 7113 if test "x$ac_ct_NMEDIT" = x; then7114 NMEDIT=":"7115 else7116 case $cross_compiling:$ac_tool_warned in7117 yes:)7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7120 ac_tool_warned=yes ;;7121 esac7122 NMEDIT=$ac_ct_NMEDIT7123 fi7124 else7125 NMEDIT="$ac_cv_prog_NMEDIT"7126 fi7127 7128 if test -n "$ac_tool_prefix"; then7129 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.7130 set dummy ${ac_tool_prefix}lipo; ac_word=$27131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57132 $as_echo_n "checking for $ac_word... " >&6; }7133 if ${ac_cv_prog_LIPO+:} false; then :7134 $as_echo_n "(cached) " >&67135 else7136 if test -n "$LIPO"; then7137 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.7138 else7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7140 for as_dir in $PATH7141 do7142 IFS=$as_save_IFS7143 test -z "$as_dir" && as_dir=.7144 for ac_exec_ext in '' $ac_executable_extensions; do7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7146 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57148 break 27149 fi7150 done7151 done7152 IFS=$as_save_IFS7153 7154 fi7155 fi7156 LIPO=$ac_cv_prog_LIPO7157 if test -n "$LIPO"; then7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&57159 $as_echo "$LIPO" >&6; }7160 else7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57162 $as_echo "no" >&6; }7163 fi7164 7165 7166 fi7167 if test -z "$ac_cv_prog_LIPO"; then7168 ac_ct_LIPO=$LIPO7169 # Extract the first word of "lipo", so it can be a program name with args.7170 set dummy lipo; ac_word=$27171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57172 $as_echo_n "checking for $ac_word... " >&6; }7173 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :7174 $as_echo_n "(cached) " >&67175 else7176 if test -n "$ac_ct_LIPO"; then7177 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.7178 else7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7180 for as_dir in $PATH7181 do7182 IFS=$as_save_IFS7183 test -z "$as_dir" && as_dir=.7184 for ac_exec_ext in '' $ac_executable_extensions; do7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7186 ac_cv_prog_ac_ct_LIPO="lipo"7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57188 break 27189 fi7190 done7191 done7192 IFS=$as_save_IFS7193 7194 fi7195 fi7196 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO7197 if test -n "$ac_ct_LIPO"; then7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&57199 $as_echo "$ac_ct_LIPO" >&6; }7200 else7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57202 $as_echo "no" >&6; }7203 fi7204 7205 if test "x$ac_ct_LIPO" = x; then7206 LIPO=":"7207 else7208 case $cross_compiling:$ac_tool_warned in7209 yes:)7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7212 ac_tool_warned=yes ;;7213 esac7214 LIPO=$ac_ct_LIPO7215 fi7216 else7217 LIPO="$ac_cv_prog_LIPO"7218 fi7219 7220 if test -n "$ac_tool_prefix"; then7221 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.7222 set dummy ${ac_tool_prefix}otool; ac_word=$27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57224 $as_echo_n "checking for $ac_word... " >&6; }7225 if ${ac_cv_prog_OTOOL+:} false; then :7226 $as_echo_n "(cached) " >&67227 else7228 if test -n "$OTOOL"; then7229 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.7230 else7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7232 for as_dir in $PATH7233 do7234 IFS=$as_save_IFS7235 test -z "$as_dir" && as_dir=.7236 for ac_exec_ext in '' $ac_executable_extensions; do7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7238 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57240 break 27241 fi7242 done7243 done7244 IFS=$as_save_IFS7245 7246 fi7247 fi7248 OTOOL=$ac_cv_prog_OTOOL7249 if test -n "$OTOOL"; then7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&57251 $as_echo "$OTOOL" >&6; }7252 else7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57254 $as_echo "no" >&6; }7255 fi7256 7257 7258 fi7259 if test -z "$ac_cv_prog_OTOOL"; then7260 ac_ct_OTOOL=$OTOOL7261 # Extract the first word of "otool", so it can be a program name with args.7262 set dummy otool; ac_word=$27263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57264 $as_echo_n "checking for $ac_word... " >&6; }7265 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :7266 $as_echo_n "(cached) " >&67267 else7268 if test -n "$ac_ct_OTOOL"; then7269 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.7270 else7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7272 for as_dir in $PATH7273 do7274 IFS=$as_save_IFS7275 test -z "$as_dir" && as_dir=.7276 for ac_exec_ext in '' $ac_executable_extensions; do7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7278 ac_cv_prog_ac_ct_OTOOL="otool"7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57280 break 27281 fi7282 done7283 done7284 IFS=$as_save_IFS7285 7286 fi7287 fi7288 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL7289 if test -n "$ac_ct_OTOOL"; then7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&57291 $as_echo "$ac_ct_OTOOL" >&6; }7292 else7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57294 $as_echo "no" >&6; }7295 fi7296 7297 if test "x$ac_ct_OTOOL" = x; then7298 OTOOL=":"7299 else7300 case $cross_compiling:$ac_tool_warned in7301 yes:)7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7304 ac_tool_warned=yes ;;7305 esac7306 OTOOL=$ac_ct_OTOOL7307 fi7308 else7309 OTOOL="$ac_cv_prog_OTOOL"7310 fi7311 7312 if test -n "$ac_tool_prefix"; then7313 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.7314 set dummy ${ac_tool_prefix}otool64; ac_word=$27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57316 $as_echo_n "checking for $ac_word... " >&6; }7317 if ${ac_cv_prog_OTOOL64+:} false; then :7318 $as_echo_n "(cached) " >&67319 else7320 if test -n "$OTOOL64"; then7321 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.7322 else7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7324 for as_dir in $PATH7325 do7326 IFS=$as_save_IFS7327 test -z "$as_dir" && as_dir=.7328 for ac_exec_ext in '' $ac_executable_extensions; do7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7330 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57332 break 27333 fi7334 done7335 done7336 IFS=$as_save_IFS7337 7338 fi7339 fi7340 OTOOL64=$ac_cv_prog_OTOOL647341 if test -n "$OTOOL64"; then7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&57343 $as_echo "$OTOOL64" >&6; }7344 else7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57346 $as_echo "no" >&6; }7347 fi7348 7349 7350 fi7351 if test -z "$ac_cv_prog_OTOOL64"; then7352 ac_ct_OTOOL64=$OTOOL647353 # Extract the first word of "otool64", so it can be a program name with args.7354 set dummy otool64; ac_word=$27355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57356 $as_echo_n "checking for $ac_word... " >&6; }7357 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :7358 $as_echo_n "(cached) " >&67359 else7360 if test -n "$ac_ct_OTOOL64"; then7361 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.7362 else7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7364 for as_dir in $PATH7365 do7366 IFS=$as_save_IFS7367 test -z "$as_dir" && as_dir=.7368 for ac_exec_ext in '' $ac_executable_extensions; do7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7370 ac_cv_prog_ac_ct_OTOOL64="otool64"7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57372 break 27373 fi7374 done7375 done7376 IFS=$as_save_IFS7377 7378 fi7379 fi7380 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL647381 if test -n "$ac_ct_OTOOL64"; then7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&57383 $as_echo "$ac_ct_OTOOL64" >&6; }7384 else7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57386 $as_echo "no" >&6; }7387 fi7388 7389 if test "x$ac_ct_OTOOL64" = x; then7390 OTOOL64=":"7391 else7392 case $cross_compiling:$ac_tool_warned in7393 yes:)7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7396 ac_tool_warned=yes ;;7397 esac7398 OTOOL64=$ac_ct_OTOOL647399 fi7400 else7401 OTOOL64="$ac_cv_prog_OTOOL64"7402 fi7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&57431 $as_echo_n "checking for -single_module linker flag... " >&6; }7432 if ${lt_cv_apple_cc_single_mod+:} false; then :7433 $as_echo_n "(cached) " >&67434 else7435 lt_cv_apple_cc_single_mod=no7436 if test -z "$LT_MULTI_MODULE"; then7437 # By default we will add the -single_module flag. You can override7438 # by either setting the environment variable LT_MULTI_MODULE7439 # non-empty at configure time, or by adding -multi_module to the7440 # link flags.7441 rm -rf libconftest.dylib*7442 echo "int foo(void){return 1;}" > conftest.c7443 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7444 -dynamiclib -Wl,-single_module conftest.c" >&57445 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7446 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err7447 _lt_result=$?7448 # If there is a non-empty error log, and "single_module"7449 # appears in it, assume the flag caused a linker warning7450 if test -s conftest.err && $GREP single_module conftest.err; then7451 cat conftest.err >&57452 # Otherwise, if the output was created with a 0 exit code from7453 # the compiler, it worked.7454 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then7455 lt_cv_apple_cc_single_mod=yes7456 else7457 cat conftest.err >&57458 fi7459 rm -rf libconftest.dylib*7460 rm -f conftest.*7461 fi7462 fi7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&57464 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }7465 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&57467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }7468 if ${lt_cv_ld_exported_symbols_list+:} false; then :7469 $as_echo_n "(cached) " >&67470 else7471 lt_cv_ld_exported_symbols_list=no7472 save_LDFLAGS=$LDFLAGS7473 echo "_main" > conftest.sym7474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7476 /* end confdefs.h. */7477 7478 int7479 main ()7480 {7481 7482 ;7483 return 0;7484 }7485 _ACEOF7486 if ac_fn_c_try_link "$LINENO"; then :7487 lt_cv_ld_exported_symbols_list=yes7488 else7489 lt_cv_ld_exported_symbols_list=no7490 fi7491 rm -f core conftest.err conftest.$ac_objext \7492 conftest$ac_exeext conftest.$ac_ext7493 LDFLAGS=$save_LDFLAGS7494 7495 fi7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&57497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }7498 7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&57500 $as_echo_n "checking for -force_load linker flag... " >&6; }7501 if ${lt_cv_ld_force_load+:} false; then :7502 $as_echo_n "(cached) " >&67503 else7504 lt_cv_ld_force_load=no7505 cat > conftest.c << _LT_EOF7506 int forced_loaded() { return 2;}7507 _LT_EOF7508 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&57509 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&57510 echo "$AR cru libconftest.a conftest.o" >&57511 $AR cru libconftest.a conftest.o 2>&57512 echo "$RANLIB libconftest.a" >&57513 $RANLIB libconftest.a 2>&57514 cat > conftest.c << _LT_EOF7515 int main() { return 0;}7516 _LT_EOF7517 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&57518 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err7519 _lt_result=$?7520 if test -s conftest.err && $GREP force_load conftest.err; then7521 cat conftest.err >&57522 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then7523 lt_cv_ld_force_load=yes7524 else7525 cat conftest.err >&57526 fi7527 rm -f conftest.err libconftest.a conftest conftest.c7528 rm -rf conftest.dSYM7529 7530 fi7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&57532 $as_echo "$lt_cv_ld_force_load" >&6; }7533 case $host_os in7534 rhapsody* | darwin1.[012])7535 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;7536 darwin1.*)7537 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7538 darwin*) # darwin 5.x on7539 # if running on 10.5 or later, the deployment target defaults7540 # to the OS version, if on x86, and 10.4, the deployment7541 # target defaults to 10.4. Don't you love it?7542 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in7543 10.0,*86*-darwin8*|10.0,*-darwin[91]*)7544 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7545 10.[012][,.]*)7546 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7547 10.*)7548 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7549 esac7550 ;;7551 esac7552 if test yes = "$lt_cv_apple_cc_single_mod"; then7553 _lt_dar_single_mod='$single_module'7554 fi7555 if test yes = "$lt_cv_ld_exported_symbols_list"; then7556 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'7557 else7558 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'7559 fi7560 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then7561 _lt_dsymutil='~$DSYMUTIL $lib || :'7562 else7563 _lt_dsymutil=7564 fi7565 ;;7566 esac7567 7568 # func_munge_path_list VARIABLE PATH7569 # -----------------------------------7570 # VARIABLE is name of variable containing _space_ separated list of7571 # directories to be munged by the contents of PATH, which is string7572 # having a format:7573 # "DIR[:DIR]:"7574 # string "DIR[ DIR]" will be prepended to VARIABLE7575 # ":DIR[:DIR]"7576 # string "DIR[ DIR]" will be appended to VARIABLE7577 # "DIRP[:DIRP]::[DIRA:]DIRA"7578 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string7579 # "DIRA[ DIRA]" will be appended to VARIABLE7580 # "DIR[:DIR]"7581 # VARIABLE will be replaced by "DIR[ DIR]"7582 func_munge_path_list ()7583 {7584 case x$2 in7585 x)7586 ;;7587 *:)7588 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"7589 ;;7590 x:*)7591 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"7592 ;;7593 *::*)7594 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"7595 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"7596 ;;7597 *)7598 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"7599 ;;7600 esac7601 }7602 7603 ac_ext=c7604 ac_cpp='$CPP $CPPFLAGS'7605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7607 ac_compiler_gnu=$ac_cv_c_compiler_gnu7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&57609 $as_echo_n "checking how to run the C preprocessor... " >&6; }7610 # On Suns, sometimes $CPP names a directory.7611 if test -n "$CPP" && test -d "$CPP"; then7612 CPP=7613 fi7614 if test -z "$CPP"; then7615 if ${ac_cv_prog_CPP+:} false; then :7616 $as_echo_n "(cached) " >&67617 else7618 # Double quotes because CPP needs to be expanded7619 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"7620 do7621 ac_preproc_ok=false7622 for ac_c_preproc_warn_flag in '' yes7623 do7624 # Use a header file that comes with gcc, so configuring glibc7625 # with a fresh cross-compiler works.7626 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7627 # <limits.h> exists even on freestanding compilers.7628 # On the NeXT, cc -E runs the code through the compiler's parser,7629 # not just through cpp. "Syntax error" is here to catch this case.7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7631 /* end confdefs.h. */7632 #ifdef __STDC__7633 # include <limits.h>7634 #else7635 # include <assert.h>7636 #endif7637 Syntax error7638 _ACEOF7639 if ac_fn_c_try_cpp "$LINENO"; then :7640 7641 else7642 # Broken: fails on valid input.7643 continue7644 fi7645 rm -f conftest.err conftest.i conftest.$ac_ext7646 7647 # OK, works on sane cases. Now check whether nonexistent headers7648 # can be detected and how.7649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7650 /* end confdefs.h. */7651 #include <ac_nonexistent.h>7652 _ACEOF7653 if ac_fn_c_try_cpp "$LINENO"; then :7654 # Broken: success on invalid input.7655 continue7656 else7657 # Passes both tests.7658 ac_preproc_ok=:7659 break7660 fi7661 rm -f conftest.err conftest.i conftest.$ac_ext7662 7663 done7664 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7665 rm -f conftest.i conftest.err conftest.$ac_ext7666 if $ac_preproc_ok; then :7667 break7668 fi7669 7670 done7671 ac_cv_prog_CPP=$CPP7672 7673 fi7674 CPP=$ac_cv_prog_CPP7675 else7676 ac_cv_prog_CPP=$CPP7677 fi7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&57679 $as_echo "$CPP" >&6; }7680 ac_preproc_ok=false7681 for ac_c_preproc_warn_flag in '' yes7682 do7683 # Use a header file that comes with gcc, so configuring glibc7684 # with a fresh cross-compiler works.7685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7686 # <limits.h> exists even on freestanding compilers.7687 # On the NeXT, cc -E runs the code through the compiler's parser,7688 # not just through cpp. "Syntax error" is here to catch this case.7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7690 /* end confdefs.h. */7691 #ifdef __STDC__7692 # include <limits.h>7693 #else7694 # include <assert.h>7695 #endif7696 Syntax error7697 _ACEOF7698 if ac_fn_c_try_cpp "$LINENO"; then :7699 7700 else7701 # Broken: fails on valid input.7702 continue7703 fi7704 rm -f conftest.err conftest.i conftest.$ac_ext7705 7706 # OK, works on sane cases. Now check whether nonexistent headers7707 # can be detected and how.7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7709 /* end confdefs.h. */7710 #include <ac_nonexistent.h>7711 _ACEOF7712 if ac_fn_c_try_cpp "$LINENO"; then :7713 # Broken: success on invalid input.7714 continue7715 else7716 # Passes both tests.7717 ac_preproc_ok=:7718 break7719 fi7720 rm -f conftest.err conftest.i conftest.$ac_ext7721 7722 done7723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7724 rm -f conftest.i conftest.err conftest.$ac_ext7725 if $ac_preproc_ok; then :7726 7727 else7728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&57729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}7730 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check7731 See \`config.log' for more details" "$LINENO" 5; }7732 fi7733 7734 ac_ext=c7735 ac_cpp='$CPP $CPPFLAGS'7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu7739 7740 7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&57742 $as_echo_n "checking for ANSI C header files... " >&6; }7743 if ${ac_cv_header_stdc+:} false; then :7744 $as_echo_n "(cached) " >&67745 else7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7747 /* end confdefs.h. */7748 #include <stdlib.h>7749 #include <stdarg.h>7750 #include <string.h>7751 #include <float.h>7752 7753 int7754 main ()7755 {7756 7757 ;7758 return 0;7759 }7760 _ACEOF7761 if ac_fn_c_try_compile "$LINENO"; then :7762 ac_cv_header_stdc=yes7763 else7764 ac_cv_header_stdc=no7765 fi7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7767 7768 if test $ac_cv_header_stdc = yes; then7769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7771 /* end confdefs.h. */7772 #include <string.h>7773 7774 _ACEOF7775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7776 $EGREP "memchr" >/dev/null 2>&1; then :7777 7778 else7779 ac_cv_header_stdc=no7780 fi7781 rm -f conftest*7782 7783 fi7784 7785 if test $ac_cv_header_stdc = yes; then7786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7788 /* end confdefs.h. */7789 #include <stdlib.h>7790 7791 _ACEOF7792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7793 $EGREP "free" >/dev/null 2>&1; then :7794 7795 else7796 ac_cv_header_stdc=no7797 fi7798 rm -f conftest*7799 7800 fi7801 7802 if test $ac_cv_header_stdc = yes; then7803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.7804 if test "$cross_compiling" = yes; then :7805 :7806 else7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7808 /* end confdefs.h. */7809 #include <ctype.h>7810 #include <stdlib.h>7811 #if ((' ' & 0x0FF) == 0x020)7812 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')7813 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))7814 #else7815 # define ISLOWER(c) \7816 (('a' <= (c) && (c) <= 'i') \7817 || ('j' <= (c) && (c) <= 'r') \7818 || ('s' <= (c) && (c) <= 'z'))7819 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))7820 #endif7821 7822 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))7823 int7824 main ()7825 {7826 int i;7827 for (i = 0; i < 256; i++)7828 if (XOR (islower (i), ISLOWER (i))7829 || toupper (i) != TOUPPER (i))7830 return 2;7831 return 0;7832 }7833 _ACEOF7834 if ac_fn_c_try_run "$LINENO"; then :7835 7836 else7837 ac_cv_header_stdc=no7838 fi7839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \7840 conftest.$ac_objext conftest.beam conftest.$ac_ext7841 fi7842 7843 fi7844 fi7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&57846 $as_echo "$ac_cv_header_stdc" >&6; }7847 if test $ac_cv_header_stdc = yes; then7848 7849 $as_echo "#define STDC_HEADERS 1" >>confdefs.h7850 7851 fi7852 7853 # On IRIX 5.3, sys/types and inttypes.h are conflicting.7854 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \7855 inttypes.h stdint.h unistd.h7856 do :7857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`7858 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default7859 "7860 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :7861 cat >>confdefs.h <<_ACEOF7862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 17863 _ACEOF7864 7865 fi7866 7867 done7868 7869 7870 for ac_header in dlfcn.h7871 do :7872 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default7873 "7874 if test "x$ac_cv_header_dlfcn_h" = xyes; then :7875 cat >>confdefs.h <<_ACEOF7876 #define HAVE_DLFCN_H 17877 _ACEOF7878 7879 fi7880 7881 done7882 7883 7884 7885 7886 7887 # Set options7888 7889 7890 7891 enable_dlopen=no7892 7893 7894 enable_win32_dll=no7895 7896 7897 # Check whether --enable-shared was given.7898 if test "${enable_shared+set}" = set; then :7899 enableval=$enable_shared; p=${PACKAGE-default}7900 case $enableval in7901 yes) enable_shared=yes ;;7902 no) enable_shared=no ;;7903 *)7904 enable_shared=no7905 # Look at the argument we got. We use all the common list separators.7906 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7907 for pkg in $enableval; do7908 IFS=$lt_save_ifs7909 if test "X$pkg" = "X$p"; then7910 enable_shared=yes7911 fi7912 done7913 IFS=$lt_save_ifs7914 ;;7915 esac7916 else7917 enable_shared=yes7918 fi7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 # Check whether --enable-static was given.7929 if test "${enable_static+set}" = set; then :7930 enableval=$enable_static; p=${PACKAGE-default}7931 case $enableval in7932 yes) enable_static=yes ;;7933 no) enable_static=no ;;7934 *)7935 enable_static=no7936 # Look at the argument we got. We use all the common list separators.7937 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7938 for pkg in $enableval; do7939 IFS=$lt_save_ifs7940 if test "X$pkg" = "X$p"; then7941 enable_static=yes7942 fi7943 done7944 IFS=$lt_save_ifs7945 ;;7946 esac7947 else7948 enable_static=yes7949 fi7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 # Check whether --with-pic was given.7961 if test "${with_pic+set}" = set; then :7962 withval=$with_pic; lt_p=${PACKAGE-default}7963 case $withval in7964 yes|no) pic_mode=$withval ;;7965 *)7966 pic_mode=default7967 # Look at the argument we got. We use all the common list separators.7968 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7969 for lt_pkg in $withval; do7970 IFS=$lt_save_ifs7971 if test "X$lt_pkg" = "X$lt_p"; then7972 pic_mode=yes7973 fi7974 done7975 IFS=$lt_save_ifs7976 ;;7977 esac7978 else7979 pic_mode=default7980 fi7981 7982 7983 7984 7985 7986 7987 7988 7989 # Check whether --enable-fast-install was given.7990 if test "${enable_fast_install+set}" = set; then :7991 enableval=$enable_fast_install; p=${PACKAGE-default}7992 case $enableval in7993 yes) enable_fast_install=yes ;;7994 no) enable_fast_install=no ;;7995 *)7996 enable_fast_install=no7997 # Look at the argument we got. We use all the common list separators.7998 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7999 for pkg in $enableval; do8000 IFS=$lt_save_ifs8001 if test "X$pkg" = "X$p"; then8002 enable_fast_install=yes8003 fi8004 done8005 IFS=$lt_save_ifs8006 ;;8007 esac8008 else8009 enable_fast_install=yes8010 fi8011 8012 8013 8014 8015 8016 8017 8018 8019 shared_archive_member_spec=8020 case $host,$enable_shared in8021 power*-*-aix[5-9]*,yes)8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&58023 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }8024 8025 # Check whether --with-aix-soname was given.8026 if test "${with_aix_soname+set}" = set; then :8027 withval=$with_aix_soname; case $withval in8028 aix|svr4|both)8029 ;;8030 *)8031 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 58032 ;;8033 esac8034 lt_cv_with_aix_soname=$with_aix_soname8035 else8036 if ${lt_cv_with_aix_soname+:} false; then :8037 $as_echo_n "(cached) " >&68038 else8039 lt_cv_with_aix_soname=aix8040 fi8041 8042 with_aix_soname=$lt_cv_with_aix_soname8043 fi8044 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&58046 $as_echo "$with_aix_soname" >&6; }8047 if test aix != "$with_aix_soname"; then8048 # For the AIX way of multilib, we name the shared archive member8049 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',8050 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.8051 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,8052 # the AIX toolchain works better with OBJECT_MODE set (default 32).8053 if test 64 = "${OBJECT_MODE-32}"; then8054 shared_archive_member_spec=shr_648055 else8056 shared_archive_member_spec=shr8057 fi8058 fi8059 ;;8060 *)8061 with_aix_soname=aix8062 ;;8063 esac8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 # This can be used to rebuild libtool when needed8075 LIBTOOL_DEPS=$ltmain8076 8077 # Always use our own libtool.8078 LIBTOOL='$(SHELL) $(top_builddir)/libtool'8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 test -z "$LN_S" && LN_S="ln -s"8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 if test -n "${ZSH_VERSION+set}"; then8125 setopt NO_GLOB_SUBST8126 fi8127 8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&58129 $as_echo_n "checking for objdir... " >&6; }8130 if ${lt_cv_objdir+:} false; then :8131 $as_echo_n "(cached) " >&68132 else8133 rm -f .libs 2>/dev/null8134 mkdir .libs 2>/dev/null8135 if test -d .libs; then8136 lt_cv_objdir=.libs8137 else8138 # MS-DOS does not allow filenames that begin with a dot.8139 lt_cv_objdir=_libs8140 fi8141 rmdir .libs 2>/dev/null8142 fi8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&58144 $as_echo "$lt_cv_objdir" >&6; }8145 objdir=$lt_cv_objdir8146 8147 8148 8149 8150 8151 cat >>confdefs.h <<_ACEOF8152 #define LT_OBJDIR "$lt_cv_objdir/"8153 _ACEOF8154 8155 8156 8157 8158 case $host_os in8159 aix3*)8160 # AIX sometimes has problems with the GCC collect2 program. For some8161 # reason, if we set the COLLECT_NAMES environment variable, the problems8162 # vanish in a puff of smoke.8163 if test set != "${COLLECT_NAMES+set}"; then8164 COLLECT_NAMES=8165 export COLLECT_NAMES8166 fi8167 ;;8168 esac8169 8170 # Global variables:8171 ofile=libtool8172 can_build_shared=yes8173 8174 # All known linkers require a '.a' archive for static linking (except MSVC,8175 # which needs '.lib').8176 libext=a8177 8178 with_gnu_ld=$lt_cv_prog_gnu_ld8179 8180 old_CC=$CC8181 old_CFLAGS=$CFLAGS8182 8183 # Set sane defaults for various variables8184 test -z "$CC" && CC=cc8185 test -z "$LTCC" && LTCC=$CC8186 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS8187 test -z "$LD" && LD=ld8188 test -z "$ac_objext" && ac_objext=o8189 8190 func_cc_basename $compiler8191 cc_basename=$func_cc_basename_result8192 8193 8194 # Only perform the check for file, if the check method requires it8195 test -z "$MAGIC_CMD" && MAGIC_CMD=file8196 case $deplibs_check_method in8197 file_magic*)8198 if test "$file_magic_cmd" = '$MAGIC_CMD'; then8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&58200 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }8201 if ${lt_cv_path_MAGIC_CMD+:} false; then :8202 $as_echo_n "(cached) " >&68203 else8204 case $MAGIC_CMD in8205 [\\/*] | ?:[\\/]*)8206 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8207 ;;8208 *)8209 lt_save_MAGIC_CMD=$MAGIC_CMD8210 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8212 for ac_dir in $ac_dummy; do8213 IFS=$lt_save_ifs8214 test -z "$ac_dir" && ac_dir=.8215 if test -f "$ac_dir/${ac_tool_prefix}file"; then8216 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"8217 if test -n "$file_magic_test_file"; then8218 case $deplibs_check_method in8219 "file_magic "*)8220 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8221 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8223 $EGREP "$file_magic_regex" > /dev/null; then8224 :8225 else8226 cat <<_LT_EOF 1>&28227 8228 *** Warning: the command libtool uses to detect shared libraries,8229 *** $file_magic_cmd, produces output that libtool cannot recognize.8230 *** The result is that libtool may fail to recognize shared libraries8231 *** as such. This will affect the creation of libtool libraries that8232 *** depend on shared libraries, but programs linked with such libtool8233 *** libraries will work regardless of this problem. Nevertheless, you8234 *** may want to report the problem to your system manager and/or to8235 *** bug-libtool@gnu.org8236 8237 _LT_EOF8238 fi ;;8239 esac8240 fi8241 break8242 fi8243 done8244 IFS=$lt_save_ifs8245 MAGIC_CMD=$lt_save_MAGIC_CMD8246 ;;8247 esac8248 fi8249 8250 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8251 if test -n "$MAGIC_CMD"; then8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58253 $as_echo "$MAGIC_CMD" >&6; }8254 else8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58256 $as_echo "no" >&6; }8257 fi8258 8259 8260 8261 8262 8263 if test -z "$lt_cv_path_MAGIC_CMD"; then8264 if test -n "$ac_tool_prefix"; then8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&58266 $as_echo_n "checking for file... " >&6; }8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :8268 $as_echo_n "(cached) " >&68269 else8270 case $MAGIC_CMD in8271 [\\/*] | ?:[\\/]*)8272 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8273 ;;8274 *)8275 lt_save_MAGIC_CMD=$MAGIC_CMD8276 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8278 for ac_dir in $ac_dummy; do8279 IFS=$lt_save_ifs8280 test -z "$ac_dir" && ac_dir=.8281 if test -f "$ac_dir/file"; then8282 lt_cv_path_MAGIC_CMD=$ac_dir/"file"8283 if test -n "$file_magic_test_file"; then8284 case $deplibs_check_method in8285 "file_magic "*)8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8287 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8289 $EGREP "$file_magic_regex" > /dev/null; then8290 :8291 else8292 cat <<_LT_EOF 1>&28293 8294 *** Warning: the command libtool uses to detect shared libraries,8295 *** $file_magic_cmd, produces output that libtool cannot recognize.8296 *** The result is that libtool may fail to recognize shared libraries8297 *** as such. This will affect the creation of libtool libraries that8298 *** depend on shared libraries, but programs linked with such libtool8299 *** libraries will work regardless of this problem. Nevertheless, you8300 *** may want to report the problem to your system manager and/or to8301 *** bug-libtool@gnu.org8302 8303 _LT_EOF8304 fi ;;8305 esac8306 fi8307 break8308 fi8309 done8310 IFS=$lt_save_ifs8311 MAGIC_CMD=$lt_save_MAGIC_CMD8312 ;;8313 esac8314 fi8315 8316 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8317 if test -n "$MAGIC_CMD"; then8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58319 $as_echo "$MAGIC_CMD" >&6; }8320 else8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58322 $as_echo "no" >&6; }8323 fi8324 8325 8326 else8327 MAGIC_CMD=:8328 fi8329 fi8330 8331 fi8332 ;;8333 esac8334 8335 # Use C for the default configuration in the libtool script8336 8337 lt_save_CC=$CC8338 ac_ext=c8339 ac_cpp='$CPP $CPPFLAGS'8340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8342 ac_compiler_gnu=$ac_cv_c_compiler_gnu8343 8344 8345 # Source file extension for C test sources.8346 ac_ext=c8347 8348 # Object file extension for compiled C test sources.8349 objext=o8350 objext=$objext8351 8352 # Code to be used in simple compile tests8353 lt_simple_compile_test_code="int some_variable = 0;"8354 8355 # Code to be used in simple link tests8356 lt_simple_link_test_code='int main(){return(0);}'8357 8358 8359 8360 8361 8362 8363 8364 # If no C compiler was specified, use CC.8365 LTCC=${LTCC-"$CC"}8366 8367 # If no C compiler flags were specified, use CFLAGS.8368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}8369 8370 # Allow CC to be a program name with arguments.8371 compiler=$CC8372 8373 # Save the default compiler, since it gets overwritten when the other8374 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.8375 compiler_DEFAULT=$CC8376 8377 # save warnings/boilerplate of simple test code8378 ac_outfile=conftest.$ac_objext8379 echo "$lt_simple_compile_test_code" >conftest.$ac_ext8380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8381 _lt_compiler_boilerplate=`cat conftest.err`8382 $RM conftest*8383 8384 ac_outfile=conftest.$ac_objext8385 echo "$lt_simple_link_test_code" >conftest.$ac_ext8386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8387 _lt_linker_boilerplate=`cat conftest.err`8388 $RM -r conftest*8389 8390 8391 ## CAVEAT EMPTOR:8392 ## There is no encapsulation within the following macros, do not change8393 ## the running order or otherwise move them around unless you know exactly8394 ## what you are doing...8395 if test -n "$compiler"; then8396 8397 lt_prog_compiler_no_builtin_flag=8398 8399 if test yes = "$GCC"; then8400 case $cc_basename in8401 nvcc*)8402 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;8403 *)8404 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;8405 esac8406 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&58408 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }8409 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :8410 $as_echo_n "(cached) " >&68411 else8412 lt_cv_prog_compiler_rtti_exceptions=no8413 ac_outfile=conftest.$ac_objext8414 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8415 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment8416 # Insert the option either (1) after the last *FLAGS variable, or8417 # (2) before a word containing "conftest.", or (3) at the end.8418 # Note that $ac_compile itself does not contain backslashes and begins8419 # with a dollar sign (not a hyphen), so the echo should work correctly.8420 # The option is referenced via a variable to avoid confusing sed.8421 lt_compile=`echo "$ac_compile" | $SED \8422 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8424 -e 's:$: $lt_compiler_flag:'`8425 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8426 (eval "$lt_compile" 2>conftest.err)8427 ac_status=$?8428 cat conftest.err >&58429 echo "$as_me:$LINENO: \$? = $ac_status" >&58430 if (exit $ac_status) && test -s "$ac_outfile"; then8431 # The compiler can only warn and ignore the option if not recognized8432 # So say no if there are warnings other than the usual output.8433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8434 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28435 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8436 lt_cv_prog_compiler_rtti_exceptions=yes8437 fi8438 fi8439 $RM conftest*8440 8441 fi8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&58443 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }8444 8445 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then8446 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"8447 else8448 :8449 fi8450 8451 fi8452 8453 8454 8455 8456 8457 8458 lt_prog_compiler_wl=8459 lt_prog_compiler_pic=8460 lt_prog_compiler_static=8461 8462 8463 if test yes = "$GCC"; then8464 lt_prog_compiler_wl='-Wl,'8465 lt_prog_compiler_static='-static'8466 8467 case $host_os in8468 aix*)8469 # All AIX code is PIC.8470 if test ia64 = "$host_cpu"; then8471 # AIX 5 now supports IA64 processor8472 lt_prog_compiler_static='-Bstatic'8473 fi8474 lt_prog_compiler_pic='-fPIC'8475 ;;8476 8477 amigaos*)8478 case $host_cpu in8479 powerpc)8480 # see comment about AmigaOS4 .so support8481 lt_prog_compiler_pic='-fPIC'8482 ;;8483 m68k)8484 # FIXME: we need at least 68020 code to build shared libraries, but8485 # adding the '-m68020' flag to GCC prevents building anything better,8486 # like '-m68040'.8487 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'8488 ;;8489 esac8490 ;;8491 8492 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)8493 # PIC is the default for these OSes.8494 ;;8495 8496 mingw* | cygwin* | pw32* | os2* | cegcc*)8497 # This hack is so that the source file can tell whether it is being8498 # built for inclusion in a dll (and should export symbols for example).8499 # Although the cygwin gcc ignores -fPIC, still need this for old-style8500 # (--disable-auto-import) libraries8501 lt_prog_compiler_pic='-DDLL_EXPORT'8502 case $host_os in8503 os2*)8504 lt_prog_compiler_static='$wl-static'8505 ;;8506 esac8507 ;;8508 8509 darwin* | rhapsody*)8510 # PIC is the default on this platform8511 # Common symbols not allowed in MH_DYLIB files8512 lt_prog_compiler_pic='-fno-common'8513 ;;8514 8515 haiku*)8516 # PIC is the default for Haiku.8517 # The "-static" flag exists, but is broken.8518 lt_prog_compiler_static=8519 ;;8520 8521 hpux*)8522 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit8523 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag8524 # sets the default TLS model and affects inlining.8525 case $host_cpu in8526 hppa*64*)8527 # +Z the default8528 ;;8529 *)8530 lt_prog_compiler_pic='-fPIC'8531 ;;8532 esac8533 ;;8534 8535 interix[3-9]*)8536 # Interix 3.x gcc -fpic/-fPIC options generate broken code.8537 # Instead, we relocate shared libraries at runtime.8538 ;;8539 8540 msdosdjgpp*)8541 # Just because we use GCC doesn't mean we suddenly get shared libraries8542 # on systems that don't support them.8543 lt_prog_compiler_can_build_shared=no8544 enable_shared=no8545 ;;8546 8547 *nto* | *qnx*)8548 # QNX uses GNU C++, but need to define -shared option too, otherwise8549 # it will coredump.8550 lt_prog_compiler_pic='-fPIC -shared'8551 ;;8552 8553 sysv4*MP*)8554 if test -d /usr/nec; then8555 lt_prog_compiler_pic=-Kconform_pic8556 fi8557 ;;8558 8559 *)8560 lt_prog_compiler_pic='-fPIC'8561 ;;8562 esac8563 8564 case $cc_basename in8565 nvcc*) # Cuda Compiler Driver 2.28566 lt_prog_compiler_wl='-Xlinker '8567 if test -n "$lt_prog_compiler_pic"; then8568 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"8569 fi8570 ;;8571 esac8572 else8573 # PORTME Check for flag to pass linker flags through the system compiler.8574 case $host_os in8575 aix*)8576 lt_prog_compiler_wl='-Wl,'8577 if test ia64 = "$host_cpu"; then8578 # AIX 5 now supports IA64 processor8579 lt_prog_compiler_static='-Bstatic'8580 else8581 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'8582 fi8583 ;;8584 8585 darwin* | rhapsody*)8586 # PIC is the default on this platform8587 # Common symbols not allowed in MH_DYLIB files8588 lt_prog_compiler_pic='-fno-common'8589 case $cc_basename in8590 nagfor*)8591 # NAG Fortran compiler8592 lt_prog_compiler_wl='-Wl,-Wl,,'8593 lt_prog_compiler_pic='-PIC'8594 lt_prog_compiler_static='-Bstatic'8595 ;;8596 esac8597 ;;8598 8599 mingw* | cygwin* | pw32* | os2* | cegcc*)8600 # This hack is so that the source file can tell whether it is being8601 # built for inclusion in a dll (and should export symbols for example).8602 lt_prog_compiler_pic='-DDLL_EXPORT'8603 case $host_os in8604 os2*)8605 lt_prog_compiler_static='$wl-static'8606 ;;8607 esac8608 ;;8609 8610 hpux9* | hpux10* | hpux11*)8611 lt_prog_compiler_wl='-Wl,'8612 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but8613 # not for PA HP-UX.8614 case $host_cpu in8615 hppa*64*|ia64*)8616 # +Z the default8617 ;;8618 *)8619 lt_prog_compiler_pic='+Z'8620 ;;8621 esac8622 # Is there a better lt_prog_compiler_static that works with the bundled CC?8623 lt_prog_compiler_static='$wl-a ${wl}archive'8624 ;;8625 8626 irix5* | irix6* | nonstopux*)8627 lt_prog_compiler_wl='-Wl,'8628 # PIC (with -KPIC) is the default.8629 lt_prog_compiler_static='-non_shared'8630 ;;8631 8632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)8633 case $cc_basename in8634 # old Intel for x86_64, which still supported -KPIC.8635 ecc*)8636 lt_prog_compiler_wl='-Wl,'8637 lt_prog_compiler_pic='-KPIC'8638 lt_prog_compiler_static='-static'8639 ;;8640 # icc used to be incompatible with GCC.8641 # ICC 10 doesn't accept -KPIC any more.8642 icc* | ifort*)8643 lt_prog_compiler_wl='-Wl,'8644 lt_prog_compiler_pic='-fPIC'8645 lt_prog_compiler_static='-static'8646 ;;8647 # Lahey Fortran 8.1.8648 lf95*)8649 lt_prog_compiler_wl='-Wl,'8650 lt_prog_compiler_pic='--shared'8651 lt_prog_compiler_static='--static'8652 ;;8653 nagfor*)8654 # NAG Fortran compiler8655 lt_prog_compiler_wl='-Wl,-Wl,,'8656 lt_prog_compiler_pic='-PIC'8657 lt_prog_compiler_static='-Bstatic'8658 ;;8659 tcc*)8660 # Fabrice Bellard et al's Tiny C Compiler8661 lt_prog_compiler_wl='-Wl,'8662 lt_prog_compiler_pic='-fPIC'8663 lt_prog_compiler_static='-static'8664 ;;8665 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)8666 # Portland Group compilers (*not* the Pentium gcc compiler,8667 # which looks to be a dead project)8668 lt_prog_compiler_wl='-Wl,'8669 lt_prog_compiler_pic='-fpic'8670 lt_prog_compiler_static='-Bstatic'8671 ;;8672 ccc*)8673 lt_prog_compiler_wl='-Wl,'8674 # All Alpha code is PIC.8675 lt_prog_compiler_static='-non_shared'8676 ;;8677 xl* | bgxl* | bgf* | mpixl*)8678 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene8679 lt_prog_compiler_wl='-Wl,'8680 lt_prog_compiler_pic='-qpic'8681 lt_prog_compiler_static='-qstaticlink'8682 ;;8683 *)8684 case `$CC -V 2>&1 | sed 5q` in8685 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)8686 # Sun Fortran 8.3 passes all unrecognized flags to the linker8687 lt_prog_compiler_pic='-KPIC'8688 lt_prog_compiler_static='-Bstatic'8689 lt_prog_compiler_wl=''8690 ;;8691 *Sun\ F* | *Sun*Fortran*)8692 lt_prog_compiler_pic='-KPIC'8693 lt_prog_compiler_static='-Bstatic'8694 lt_prog_compiler_wl='-Qoption ld '8695 ;;8696 *Sun\ C*)8697 # Sun C 5.98698 lt_prog_compiler_pic='-KPIC'8699 lt_prog_compiler_static='-Bstatic'8700 lt_prog_compiler_wl='-Wl,'8701 ;;8702 *Intel*\ [CF]*Compiler*)8703 lt_prog_compiler_wl='-Wl,'8704 lt_prog_compiler_pic='-fPIC'8705 lt_prog_compiler_static='-static'8706 ;;8707 *Portland\ Group*)8708 lt_prog_compiler_wl='-Wl,'8709 lt_prog_compiler_pic='-fpic'8710 lt_prog_compiler_static='-Bstatic'8711 ;;8712 esac8713 ;;8714 esac8715 ;;8716 8717 newsos6)8718 lt_prog_compiler_pic='-KPIC'8719 lt_prog_compiler_static='-Bstatic'8720 ;;8721 8722 *nto* | *qnx*)8723 # QNX uses GNU C++, but need to define -shared option too, otherwise8724 # it will coredump.8725 lt_prog_compiler_pic='-fPIC -shared'8726 ;;8727 8728 osf3* | osf4* | osf5*)8729 lt_prog_compiler_wl='-Wl,'8730 # All OSF/1 code is PIC.8731 lt_prog_compiler_static='-non_shared'8732 ;;8733 8734 rdos*)8735 lt_prog_compiler_static='-non_shared'8736 ;;8737 8738 solaris*)8739 lt_prog_compiler_pic='-KPIC'8740 lt_prog_compiler_static='-Bstatic'8741 case $cc_basename in8742 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)8743 lt_prog_compiler_wl='-Qoption ld ';;8744 *)8745 lt_prog_compiler_wl='-Wl,';;8746 esac8747 ;;8748 8749 sunos4*)8750 lt_prog_compiler_wl='-Qoption ld '8751 lt_prog_compiler_pic='-PIC'8752 lt_prog_compiler_static='-Bstatic'8753 ;;8754 8755 sysv4 | sysv4.2uw2* | sysv4.3*)8756 lt_prog_compiler_wl='-Wl,'8757 lt_prog_compiler_pic='-KPIC'8758 lt_prog_compiler_static='-Bstatic'8759 ;;8760 8761 sysv4*MP*)8762 if test -d /usr/nec; then8763 lt_prog_compiler_pic='-Kconform_pic'8764 lt_prog_compiler_static='-Bstatic'8765 fi8766 ;;8767 8768 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)8769 lt_prog_compiler_wl='-Wl,'8770 lt_prog_compiler_pic='-KPIC'8771 lt_prog_compiler_static='-Bstatic'8772 ;;8773 8774 unicos*)8775 lt_prog_compiler_wl='-Wl,'8776 lt_prog_compiler_can_build_shared=no8777 ;;8778 8779 uts4*)8780 lt_prog_compiler_pic='-pic'8781 lt_prog_compiler_static='-Bstatic'8782 ;;8783 8784 *)8785 lt_prog_compiler_can_build_shared=no8786 ;;8787 esac8788 fi8789 8790 case $host_os in8791 # For platforms that do not support PIC, -DPIC is meaningless:8792 *djgpp*)8793 lt_prog_compiler_pic=8794 ;;8795 *)8796 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"8797 ;;8798 esac8799 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&58801 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }8802 if ${lt_cv_prog_compiler_pic+:} false; then :8803 $as_echo_n "(cached) " >&68804 else8805 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic8806 fi8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&58808 $as_echo "$lt_cv_prog_compiler_pic" >&6; }8809 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic8810 8811 #8812 # Check to make sure the PIC flag actually works.8813 #8814 if test -n "$lt_prog_compiler_pic"; then8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&58816 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }8817 if ${lt_cv_prog_compiler_pic_works+:} false; then :8818 $as_echo_n "(cached) " >&68819 else8820 lt_cv_prog_compiler_pic_works=no8821 ac_outfile=conftest.$ac_objext8822 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8823 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment8824 # Insert the option either (1) after the last *FLAGS variable, or8825 # (2) before a word containing "conftest.", or (3) at the end.8826 # Note that $ac_compile itself does not contain backslashes and begins8827 # with a dollar sign (not a hyphen), so the echo should work correctly.8828 # The option is referenced via a variable to avoid confusing sed.8829 lt_compile=`echo "$ac_compile" | $SED \8830 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8832 -e 's:$: $lt_compiler_flag:'`8833 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8834 (eval "$lt_compile" 2>conftest.err)8835 ac_status=$?8836 cat conftest.err >&58837 echo "$as_me:$LINENO: \$? = $ac_status" >&58838 if (exit $ac_status) && test -s "$ac_outfile"; then8839 # The compiler can only warn and ignore the option if not recognized8840 # So say no if there are warnings other than the usual output.8841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28843 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8844 lt_cv_prog_compiler_pic_works=yes8845 fi8846 fi8847 $RM conftest*8848 8849 fi8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&58851 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }8852 8853 if test yes = "$lt_cv_prog_compiler_pic_works"; then8854 case $lt_prog_compiler_pic in8855 "" | " "*) ;;8856 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;8857 esac8858 else8859 lt_prog_compiler_pic=8860 lt_prog_compiler_can_build_shared=no8861 fi8862 8863 fi8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 #8876 # Check to make sure the static flag actually works.8877 #8878 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&58880 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }8881 if ${lt_cv_prog_compiler_static_works+:} false; then :8882 $as_echo_n "(cached) " >&68883 else8884 lt_cv_prog_compiler_static_works=no8885 save_LDFLAGS=$LDFLAGS8886 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"8887 echo "$lt_simple_link_test_code" > conftest.$ac_ext8888 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then8889 # The linker can only warn and ignore the option if not recognized8890 # So say no if there are warnings8891 if test -s conftest.err; then8892 # Append any errors to the config.log.8893 cat conftest.err 1>&58894 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp8895 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28896 if diff conftest.exp conftest.er2 >/dev/null; then8897 lt_cv_prog_compiler_static_works=yes8898 fi8899 else8900 lt_cv_prog_compiler_static_works=yes8901 fi8902 fi8903 $RM -r conftest*8904 LDFLAGS=$save_LDFLAGS8905 8906 fi8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&58908 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }8909 8910 if test yes = "$lt_cv_prog_compiler_static_works"; then8911 :8912 else8913 lt_prog_compiler_static=8914 fi8915 8916 8917 8918 8919 8920 8921 8922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58923 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8924 if ${lt_cv_prog_compiler_c_o+:} false; then :8925 $as_echo_n "(cached) " >&68926 else8927 lt_cv_prog_compiler_c_o=no8928 $RM -r conftest 2>/dev/null8929 mkdir conftest8930 cd conftest8931 mkdir out8932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8933 8934 lt_compiler_flag="-o out/conftest2.$ac_objext"8935 # Insert the option either (1) after the last *FLAGS variable, or8936 # (2) before a word containing "conftest.", or (3) at the end.8937 # Note that $ac_compile itself does not contain backslashes and begins8938 # with a dollar sign (not a hyphen), so the echo should work correctly.8939 lt_compile=`echo "$ac_compile" | $SED \8940 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8942 -e 's:$: $lt_compiler_flag:'`8943 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8944 (eval "$lt_compile" 2>out/conftest.err)8945 ac_status=$?8946 cat out/conftest.err >&58947 echo "$as_me:$LINENO: \$? = $ac_status" >&58948 if (exit $ac_status) && test -s out/conftest2.$ac_objext8949 then8950 # The compiler can only warn and ignore the option if not recognized8951 # So say no if there are warnings8952 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp8953 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er28954 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then8955 lt_cv_prog_compiler_c_o=yes8956 fi8957 fi8958 chmod u+w . 2>&58959 $RM conftest*8960 # SGI C++ compiler will create directory out/ii_files/ for8961 # template instantiation8962 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files8963 $RM out/* && rmdir out8964 cd ..8965 $RM -r conftest8966 $RM conftest*8967 8968 fi8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&58970 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }8971 8972 8973 8974 8975 8976 8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8979 if ${lt_cv_prog_compiler_c_o+:} false; then :8980 $as_echo_n "(cached) " >&68981 else8982 lt_cv_prog_compiler_c_o=no8983 $RM -r conftest 2>/dev/null8984 mkdir conftest8985 cd conftest8986 mkdir out8987 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8988 8989 lt_compiler_flag="-o out/conftest2.$ac_objext"8990 # Insert the option either (1) after the last *FLAGS variable, or8991 # (2) before a word containing "conftest.", or (3) at the end.8992 # Note that $ac_compile itself does not contain backslashes and begins8993 # with a dollar sign (not a hyphen), so the echo should work correctly.8994 lt_compile=`echo "$ac_compile" | $SED \8995 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8996 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8997 -e 's:$: $lt_compiler_flag:'`8998 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8999 (eval "$lt_compile" 2>out/conftest.err)9000 ac_status=$?9001 cat out/conftest.err >&59002 echo "$as_me:$LINENO: \$? = $ac_status" >&59003 if (exit $ac_status) && test -s out/conftest2.$ac_objext9004 then9005 # The compiler can only warn and ignore the option if not recognized9006 # So say no if there are warnings9007 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp9008 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er29009 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then9010 lt_cv_prog_compiler_c_o=yes9011 fi9012 fi9013 chmod u+w . 2>&59014 $RM conftest*9015 # SGI C++ compiler will create directory out/ii_files/ for9016 # template instantiation9017 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files9018 $RM out/* && rmdir out9019 cd ..9020 $RM -r conftest9021 $RM conftest*9022 9023 fi9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&59025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }9026 9027 9028 9029 9030 hard_links=nottested9031 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then9032 # do not overwrite the value of need_locks provided by the user9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&59034 $as_echo_n "checking if we can lock with hard links... " >&6; }9035 hard_links=yes9036 $RM conftest*9037 ln conftest.a conftest.b 2>/dev/null && hard_links=no9038 touch conftest.a9039 ln conftest.a conftest.b 2>&5 || hard_links=no9040 ln conftest.a conftest.b 2>/dev/null && hard_links=no9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&59042 $as_echo "$hard_links" >&6; }9043 if test no = "$hard_links"; then9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&59045 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}9046 need_locks=warn9047 fi9048 else9049 need_locks=no9050 fi9051 9052 9053 9054 9055 9056 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&59058 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }9059 9060 runpath_var=9061 allow_undefined_flag=9062 always_export_symbols=no9063 archive_cmds=9064 archive_expsym_cmds=9065 compiler_needs_object=no9066 enable_shared_with_static_runtimes=no9067 export_dynamic_flag_spec=9068 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'9069 hardcode_automatic=no9070 hardcode_direct=no9071 hardcode_direct_absolute=no9072 hardcode_libdir_flag_spec=9073 hardcode_libdir_separator=9074 hardcode_minus_L=no9075 hardcode_shlibpath_var=unsupported9076 inherit_rpath=no9077 link_all_deplibs=unknown9078 module_cmds=9079 module_expsym_cmds=9080 old_archive_from_new_cmds=9081 old_archive_from_expsyms_cmds=9082 thread_safe_flag_spec=9083 whole_archive_flag_spec=9084 # include_expsyms should be a list of space-separated symbols to be *always*9085 # included in the symbol list9086 include_expsyms=9087 # exclude_expsyms can be an extended regexp of symbols to exclude9088 # it will be wrapped by ' (' and ')$', so one must not match beginning or9089 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',9090 # as well as any symbol that contains 'd'.9091 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'9092 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out9093 # platforms (ab)use it in PIC code, but their linkers get confused if9094 # the symbol is explicitly referenced. Since portable code cannot9095 # rely on this symbol name, it's probably fine to never include it in9096 # preloaded symbol tables.9097 # Exclude shared library initialization/finalization symbols.9098 extract_expsyms_cmds=9099 9100 case $host_os in9101 cygwin* | mingw* | pw32* | cegcc*)9102 # FIXME: the MSVC++ port hasn't been tested in a loooong time9103 # When not using gcc, we currently assume that we are using9104 # Microsoft Visual C++.9105 if test yes != "$GCC"; then9106 with_gnu_ld=no9107 fi9108 ;;9109 interix*)9110 # we just hope/assume this is gcc and not c89 (= MSVC++)9111 with_gnu_ld=yes9112 ;;9113 openbsd* | bitrig*)9114 with_gnu_ld=no9115 ;;9116 linux* | k*bsd*-gnu | gnu*)9117 link_all_deplibs=no9118 ;;9119 esac9120 9121 ld_shlibs=yes9122 9123 # On some targets, GNU ld is compatible enough with the native linker9124 # that we're better off using the native interface for both.9125 lt_use_gnu_ld_interface=no9126 if test yes = "$with_gnu_ld"; then9127 case $host_os in9128 aix*)9129 # The AIX port of GNU ld has always aspired to compatibility9130 # with the native linker. However, as the warning in the GNU ld9131 # block says, versions before 2.19.5* couldn't really create working9132 # shared libraries, regardless of the interface used.9133 case `$LD -v 2>&1` in9134 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;9135 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;9136 *\ \(GNU\ Binutils\)\ [3-9]*) ;;9137 *)9138 lt_use_gnu_ld_interface=yes9139 ;;9140 esac9141 ;;9142 *)9143 lt_use_gnu_ld_interface=yes9144 ;;9145 esac9146 fi9147 9148 if test yes = "$lt_use_gnu_ld_interface"; then9149 # If archive_cmds runs LD, not CC, wlarc should be empty9150 wlarc='$wl'9151 9152 # Set some defaults for GNU ld with shared library support. These9153 # are reset later if shared libraries are not supported. Putting them9154 # here allows them to be overridden if necessary.9155 runpath_var=LD_RUN_PATH9156 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9157 export_dynamic_flag_spec='$wl--export-dynamic'9158 # ancient GNU ld didn't support --whole-archive et. al.9159 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then9160 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'9161 else9162 whole_archive_flag_spec=9163 fi9164 supports_anon_versioning=no9165 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in9166 *GNU\ gold*) supports_anon_versioning=yes ;;9167 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.119168 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...9169 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...9170 *\ 2.11.*) ;; # other 2.11 versions9171 *) supports_anon_versioning=yes ;;9172 esac9173 9174 # See if GNU ld supports shared libraries.9175 case $host_os in9176 aix[3-9]*)9177 # On AIX/PPC, the GNU linker is very broken9178 if test ia64 != "$host_cpu"; then9179 ld_shlibs=no9180 cat <<_LT_EOF 1>&29181 9182 *** Warning: the GNU linker, at least up to release 2.19, is reported9183 *** to be unable to reliably create shared libraries on AIX.9184 *** Therefore, libtool is disabling shared libraries support. If you9185 *** really care for shared libraries, you may want to install binutils9186 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.9187 *** You will then need to restart the configuration process.9188 9189 _LT_EOF9190 fi9191 ;;9192 9193 amigaos*)9194 case $host_cpu in9195 powerpc)9196 # see comment about AmigaOS4 .so support9197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9198 archive_expsym_cmds=''9199 ;;9200 m68k)9201 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'9202 hardcode_libdir_flag_spec='-L$libdir'9203 hardcode_minus_L=yes9204 ;;9205 esac9206 ;;9207 9208 beos*)9209 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9210 allow_undefined_flag=unsupported9211 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc9212 # support --undefined. This deserves some investigation. FIXME9213 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9214 else9215 ld_shlibs=no9216 fi9217 ;;9218 9219 cygwin* | mingw* | pw32* | cegcc*)9220 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,9221 # as there is no search path for DLLs.9222 hardcode_libdir_flag_spec='-L$libdir'9223 export_dynamic_flag_spec='$wl--export-all-symbols'9224 allow_undefined_flag=unsupported9225 always_export_symbols=no9226 enable_shared_with_static_runtimes=yes9227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'9228 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'9229 9230 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9232 # If the export-symbols file already is a .def file, use it as9233 # is; otherwise, prepend EXPORTS...9234 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9235 cp $export_symbols $output_objdir/$soname.def;9236 else9237 echo EXPORTS > $output_objdir/$soname.def;9238 cat $export_symbols >> $output_objdir/$soname.def;9239 fi~9240 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9241 else9242 ld_shlibs=no9243 fi9244 ;;9245 9246 haiku*)9247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9248 link_all_deplibs=yes9249 ;;9250 9251 os2*)9252 hardcode_libdir_flag_spec='-L$libdir'9253 hardcode_minus_L=yes9254 allow_undefined_flag=unsupported9255 shrext_cmds=.dll9256 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9257 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9258 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9259 $ECHO EXPORTS >> $output_objdir/$libname.def~9260 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~9261 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9262 emximp -o $lib $output_objdir/$libname.def'9263 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9264 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9265 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9266 $ECHO EXPORTS >> $output_objdir/$libname.def~9267 prefix_cmds="$SED"~9268 if test EXPORTS = "`$SED 1q $export_symbols`"; then9269 prefix_cmds="$prefix_cmds -e 1d";9270 fi~9271 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~9272 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~9273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9274 emximp -o $lib $output_objdir/$libname.def'9275 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'9276 enable_shared_with_static_runtimes=yes9277 ;;9278 9279 interix[3-9]*)9280 hardcode_direct=no9281 hardcode_shlibpath_var=no9282 hardcode_libdir_flag_spec='$wl-rpath,$libdir'9283 export_dynamic_flag_spec='$wl-E'9284 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.9285 # Instead, shared libraries are loaded at an image base (0x10000000 by9286 # default) and relocated if they conflict, which is a slow very memory9287 # consuming and fragmenting process. To avoid this, we pick a random,9288 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link9289 # time. Moving up from 0x10000000 also allows more sbrk(2) space.9290 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'9291 archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'9292 ;;9293 9294 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)9295 tmp_diet=no9296 if test linux-dietlibc = "$host_os"; then9297 case $cc_basename in9298 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)9299 esac9300 fi9301 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \9302 && test no = "$tmp_diet"9303 then9304 tmp_addflag=' $pic_flag'9305 tmp_sharedflag='-shared'9306 case $cc_basename,$host_cpu in9307 pgcc*) # Portland Group C compiler9308 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9309 tmp_addflag=' $pic_flag'9310 ;;9311 pgf77* | pgf90* | pgf95* | pgfortran*)9312 # Portland Group f77 and f90 compilers9313 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9314 tmp_addflag=' $pic_flag -Mnomain' ;;9315 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia649316 tmp_addflag=' -i_dynamic' ;;9317 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia649318 tmp_addflag=' -i_dynamic -nofor_main' ;;9319 ifc* | ifort*) # Intel Fortran compiler9320 tmp_addflag=' -nofor_main' ;;9321 lf95*) # Lahey Fortran 8.19322 whole_archive_flag_spec=9323 tmp_sharedflag='--shared' ;;9324 nagfor*) # NAGFOR 5.39325 tmp_sharedflag='-Wl,-shared' ;;9326 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)9327 tmp_sharedflag='-qmkshrobj'9328 tmp_addflag= ;;9329 nvcc*) # Cuda Compiler Driver 2.29330 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9331 compiler_needs_object=yes9332 ;;9333 esac9334 case `$CC -V 2>&1 | sed 5q` in9335 *Sun\ C*) # Sun C 5.99336 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'9337 compiler_needs_object=yes9338 tmp_sharedflag='-G' ;;9339 *Sun\ F*) # Sun Fortran 8.39340 tmp_sharedflag='-G' ;;9341 esac9342 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9343 9344 if test yes = "$supports_anon_versioning"; then9345 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9346 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9347 echo "local: *; };" >> $output_objdir/$libname.ver~9348 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'9349 fi9350 9351 case $cc_basename in9352 tcc*)9353 export_dynamic_flag_spec='-rdynamic'9354 ;;9355 xlf* | bgf* | bgxlf* | mpixlf*)9356 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself9357 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'9358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9359 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'9360 if test yes = "$supports_anon_versioning"; then9361 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9362 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9363 echo "local: *; };" >> $output_objdir/$libname.ver~9364 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'9365 fi9366 ;;9367 esac9368 else9369 ld_shlibs=no9370 fi9371 ;;9372 9373 netbsd* | netbsdelf*-gnu)9374 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then9375 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'9376 wlarc=9377 else9378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9379 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9380 fi9381 ;;9382 9383 solaris*)9384 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then9385 ld_shlibs=no9386 cat <<_LT_EOF 1>&29387 9388 *** Warning: The releases 2.8.* of the GNU linker cannot reliably9389 *** create shared libraries on Solaris systems. Therefore, libtool9390 *** is disabling shared libraries support. We urge you to upgrade GNU9391 *** binutils to release 2.9.1 or newer. Another option is to modify9392 *** your PATH or compiler configuration so that the native linker is9393 *** used, and then restart.9394 9395 _LT_EOF9396 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9397 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9398 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9399 else9400 ld_shlibs=no9401 fi9402 ;;9403 9404 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)9405 case `$LD -v 2>&1` in9406 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)9407 ld_shlibs=no9408 cat <<_LT_EOF 1>&29409 9410 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot9411 *** reliably create shared libraries on SCO systems. Therefore, libtool9412 *** is disabling shared libraries support. We urge you to upgrade GNU9413 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify9414 *** your PATH or compiler configuration so that the native linker is9415 *** used, and then restart.9416 9417 _LT_EOF9418 ;;9419 *)9420 # For security reasons, it is highly recommended that you always9421 # use absolute paths for naming shared libraries, and exclude the9422 # DT_RUNPATH tag from executables and libraries. But doing so9423 # requires that you compile everything twice, which is a pain.9424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9425 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9427 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9428 else9429 ld_shlibs=no9430 fi9431 ;;9432 esac9433 ;;9434 9435 sunos4*)9436 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'9437 wlarc=9438 hardcode_direct=yes9439 hardcode_shlibpath_var=no9440 ;;9441 9442 *)9443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9445 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9446 else9447 ld_shlibs=no9448 fi9449 ;;9450 esac9451 9452 if test no = "$ld_shlibs"; then9453 runpath_var=9454 hardcode_libdir_flag_spec=9455 export_dynamic_flag_spec=9456 whole_archive_flag_spec=9457 fi9458 else9459 # PORTME fill in a description of your system's linker (not GNU ld)9460 case $host_os in9461 aix3*)9462 allow_undefined_flag=unsupported9463 always_export_symbols=yes9464 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'9465 # Note: this linker hardcodes the directories in LIBPATH if there9466 # are no directories specified by -L.9467 hardcode_minus_L=yes9468 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then9469 # Neither direct hardcoding nor static linking is supported with a9470 # broken collect2.9471 hardcode_direct=unsupported9472 fi9473 ;;9474 9475 aix[4-9]*)9476 if test ia64 = "$host_cpu"; then9477 # On IA64, the linker does run time linking by default, so we don't9478 # have to do anything special.9479 aix_use_runtimelinking=no9480 exp_sym_flag='-Bexport'9481 no_entry_flag=9482 else9483 # If we're using GNU nm, then we don't want the "-C" option.9484 # -C means demangle to GNU nm, but means don't demangle to AIX nm.9485 # Without the "-l" option, or with the "-B" option, AIX nm treats9486 # weak defined symbols like other global defined symbols, whereas9487 # GNU nm marks them as "W".9488 # While the 'weak' keyword is ignored in the Export File, we need9489 # it in the Import File for the 'aix-soname' feature, so we have9490 # to replace the "-B" option with "-P" for AIX nm.9491 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then9492 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'9493 else9494 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'9495 fi9496 aix_use_runtimelinking=no9497 9498 # Test if we are trying to use run time linking or normal9499 # AIX style linking. If -brtl is somewhere in LDFLAGS, we9500 # have runtime linking enabled, and use it for executables.9501 # For shared libraries, we enable/disable runtime linking9502 # depending on the kind of the shared library created -9503 # when "with_aix_soname,aix_use_runtimelinking" is:9504 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables9505 # "aix,yes" lib.so shared, rtl:yes, for executables9506 # lib.a static archive9507 # "both,no" lib.so.V(shr.o) shared, rtl:yes9508 # lib.a(lib.so.V) shared, rtl:no, for executables9509 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables9510 # lib.a(lib.so.V) shared, rtl:no9511 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables9512 # lib.a static archive9513 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)9514 for ld_flag in $LDFLAGS; do9515 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then9516 aix_use_runtimelinking=yes9517 break9518 fi9519 done9520 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then9521 # With aix-soname=svr4, we create the lib.so.V shared archives only,9522 # so we don't have lib.a shared libs to link our executables.9523 # We have to force runtime linking in this case.9524 aix_use_runtimelinking=yes9525 LDFLAGS="$LDFLAGS -Wl,-brtl"9526 fi9527 ;;9528 esac9529 9530 exp_sym_flag='-bexport'9531 no_entry_flag='-bnoentry'9532 fi9533 9534 # When large executables or shared objects are built, AIX ld can9535 # have problems creating the table of contents. If linking a library9536 # or program results in "error TOC overflow" add -mminimal-toc to9537 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not9538 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.9539 9540 archive_cmds=''9541 hardcode_direct=yes9542 hardcode_direct_absolute=yes9543 hardcode_libdir_separator=':'9544 link_all_deplibs=yes9545 file_list_spec='$wl-f,'9546 case $with_aix_soname,$aix_use_runtimelinking in9547 aix,*) ;; # traditional, no import file9548 svr4,* | *,yes) # use import file9549 # The Import File defines what to hardcode.9550 hardcode_direct=no9551 hardcode_direct_absolute=no9552 ;;9553 esac9554 9555 if test yes = "$GCC"; then9556 case $host_os in aix4.[012]|aix4.[012].*)9557 # We only want to do this on AIX 4.2 and lower, the check9558 # below for broken collect2 doesn't work under 4.3+9559 collect2name=`$CC -print-prog-name=collect2`9560 if test -f "$collect2name" &&9561 strings "$collect2name" | $GREP resolve_lib_name >/dev/null9562 then9563 # We have reworked collect29564 :9565 else9566 # We have old collect29567 hardcode_direct=unsupported9568 # It fails to find uninstalled libraries when the uninstalled9569 # path is not listed in the libpath. Setting hardcode_minus_L9570 # to unsupported forces relinking9571 hardcode_minus_L=yes9572 hardcode_libdir_flag_spec='-L$libdir'9573 hardcode_libdir_separator=9574 fi9575 ;;9576 esac9577 shared_flag='-shared'9578 if test yes = "$aix_use_runtimelinking"; then9579 shared_flag="$shared_flag "'$wl-G'9580 fi9581 # Need to ensure runtime linking is disabled for the traditional9582 # shared library, or the linker may eventually find shared libraries9583 # /with/ Import File - we do not want to mix them.9584 shared_flag_aix='-shared'9585 shared_flag_svr4='-shared $wl-G'9586 else9587 # not using gcc9588 if test ia64 = "$host_cpu"; then9589 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release9590 # chokes on -Wl,-G. The following line is correct:9591 shared_flag='-G'9592 else9593 if test yes = "$aix_use_runtimelinking"; then9594 shared_flag='$wl-G'9595 else9596 shared_flag='$wl-bM:SRE'9597 fi9598 shared_flag_aix='$wl-bM:SRE'9599 shared_flag_svr4='$wl-G'9600 fi9601 fi9602 9603 export_dynamic_flag_spec='$wl-bexpall'9604 # It seems that -bexpall does not export symbols beginning with9605 # underscore (_), so it is better to generate a list of symbols to export.9606 always_export_symbols=yes9607 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then9608 # Warning - without using the other runtime loading flags (-brtl),9609 # -berok will link without error, but may produce a broken library.9610 allow_undefined_flag='-berok'9611 # Determine the default libpath from the value encoded in an9612 # empty executable.9613 if test set = "${lt_cv_aix_libpath+set}"; then9614 aix_libpath=$lt_cv_aix_libpath9615 else9616 if ${lt_cv_aix_libpath_+:} false; then :9617 $as_echo_n "(cached) " >&69618 else9619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9620 /* end confdefs.h. */9621 9622 int9623 main ()9624 {9625 9626 ;9627 return 0;9628 }9629 _ACEOF9630 if ac_fn_c_try_link "$LINENO"; then :9631 9632 lt_aix_libpath_sed='9633 /Import File Strings/,/^$/ {9634 /^0/ {9635 s/^0 *\([^ ]*\) *$/\1/9636 p9637 }9638 }'9639 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9640 # Check for a 64-bit object if we didn't find anything.9641 if test -z "$lt_cv_aix_libpath_"; then9642 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9643 fi9644 fi9645 rm -f core conftest.err conftest.$ac_objext \9646 conftest$ac_exeext conftest.$ac_ext9647 if test -z "$lt_cv_aix_libpath_"; then9648 lt_cv_aix_libpath_=/usr/lib:/lib9649 fi9650 9651 fi9652 9653 aix_libpath=$lt_cv_aix_libpath_9654 fi9655 9656 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9657 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag9658 else9659 if test ia64 = "$host_cpu"; then9660 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'9661 allow_undefined_flag="-z nodefs"9662 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"9663 else9664 # Determine the default libpath from the value encoded in an9665 # empty executable.9666 if test set = "${lt_cv_aix_libpath+set}"; then9667 aix_libpath=$lt_cv_aix_libpath9668 else9669 if ${lt_cv_aix_libpath_+:} false; then :9670 $as_echo_n "(cached) " >&69671 else9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9673 /* end confdefs.h. */9674 9675 int9676 main ()9677 {9678 9679 ;9680 return 0;9681 }9682 _ACEOF9683 if ac_fn_c_try_link "$LINENO"; then :9684 9685 lt_aix_libpath_sed='9686 /Import File Strings/,/^$/ {9687 /^0/ {9688 s/^0 *\([^ ]*\) *$/\1/9689 p9690 }9691 }'9692 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9693 # Check for a 64-bit object if we didn't find anything.9694 if test -z "$lt_cv_aix_libpath_"; then9695 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9696 fi9697 fi9698 rm -f core conftest.err conftest.$ac_objext \9699 conftest$ac_exeext conftest.$ac_ext9700 if test -z "$lt_cv_aix_libpath_"; then9701 lt_cv_aix_libpath_=/usr/lib:/lib9702 fi9703 9704 fi9705 9706 aix_libpath=$lt_cv_aix_libpath_9707 fi9708 9709 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9710 # Warning - without using the other run time loading flags,9711 # -berok will link without error, but may produce a broken library.9712 no_undefined_flag=' $wl-bernotok'9713 allow_undefined_flag=' $wl-berok'9714 if test yes = "$with_gnu_ld"; then9715 # We only use this code for GNU lds that support --whole-archive.9716 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'9717 else9718 # Exported symbols can be pulled into shared objects from archives9719 whole_archive_flag_spec='$convenience'9720 fi9721 archive_cmds_need_lc=yes9722 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'9723 # -brtl affects multiple linker settings, -berok does not and is overridden later9724 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'9725 if test svr4 != "$with_aix_soname"; then9726 # This is similar to how AIX traditionally builds its shared libraries.9727 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'9728 fi9729 if test aix != "$with_aix_soname"; then9730 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'9731 else9732 # used by -dlpreopen to get the symbols9733 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'9734 fi9735 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'9736 fi9737 fi9738 ;;9739 9740 amigaos*)9741 case $host_cpu in9742 powerpc)9743 # see comment about AmigaOS4 .so support9744 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9745 archive_expsym_cmds=''9746 ;;9747 m68k)9748 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'9749 hardcode_libdir_flag_spec='-L$libdir'9750 hardcode_minus_L=yes9751 ;;9752 esac9753 ;;9754 9755 bsdi[45]*)9756 export_dynamic_flag_spec=-rdynamic9757 ;;9758 9759 cygwin* | mingw* | pw32* | cegcc*)9760 # When not using gcc, we currently assume that we are using9761 # Microsoft Visual C++.9762 # hardcode_libdir_flag_spec is actually meaningless, as there is9763 # no search path for DLLs.9764 case $cc_basename in9765 cl*)9766 # Native MSVC9767 hardcode_libdir_flag_spec=' '9768 allow_undefined_flag=unsupported9769 always_export_symbols=yes9770 file_list_spec='@'9771 # Tell ltmain to make .lib files, not .a files.9772 libext=lib9773 # Tell ltmain to make .dll files, not .so files.9774 shrext_cmds=.dll9775 # FIXME: Setting linknames here is a bad hack.9776 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='9777 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9778 cp "$export_symbols" "$output_objdir/$soname.def";9779 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";9780 else9781 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;9782 fi~9783 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~9784 linknames='9785 # The linker will not automatically build a static lib if we build a DLL.9786 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'9787 enable_shared_with_static_runtimes=yes9788 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'9789 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'9790 # Don't use ranlib9791 old_postinstall_cmds='chmod 644 $oldlib'9792 postlink_cmds='lt_outputfile="@OUTPUT@"~9793 lt_tool_outputfile="@TOOL_OUTPUT@"~9794 case $lt_outputfile in9795 *.exe|*.EXE) ;;9796 *)9797 lt_outputfile=$lt_outputfile.exe9798 lt_tool_outputfile=$lt_tool_outputfile.exe9799 ;;9800 esac~9801 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then9802 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;9803 $RM "$lt_outputfile.manifest";9804 fi'9805 ;;9806 *)9807 # Assume MSVC wrapper9808 hardcode_libdir_flag_spec=' '9809 allow_undefined_flag=unsupported9810 # Tell ltmain to make .lib files, not .a files.9811 libext=lib9812 # Tell ltmain to make .dll files, not .so files.9813 shrext_cmds=.dll9814 # FIXME: Setting linknames here is a bad hack.9815 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='9816 # The linker will automatically build a .lib file if we build a DLL.9817 old_archive_from_new_cmds='true'9818 # FIXME: Should let the user specify the lib program.9819 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'9820 enable_shared_with_static_runtimes=yes9821 ;;9822 esac9823 ;;9824 9825 darwin* | rhapsody*)9826 9827 9828 archive_cmds_need_lc=no9829 hardcode_direct=no9830 hardcode_automatic=yes9831 hardcode_shlibpath_var=unsupported9832 if test yes = "$lt_cv_ld_force_load"; then9833 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'9834 9835 else9836 whole_archive_flag_spec=''9837 fi9838 link_all_deplibs=yes9839 allow_undefined_flag=$_lt_dar_allow_undefined9840 case $cc_basename in9841 ifort*|nagfor*) _lt_dar_can_shared=yes ;;9842 *) _lt_dar_can_shared=$GCC ;;9843 esac9844 if test yes = "$_lt_dar_can_shared"; then9845 output_verbose_link_cmd=func_echo_all9846 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"9847 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"9848 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"9849 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"9850 9851 else9852 ld_shlibs=no9853 fi9854 9855 ;;9856 9857 dgux*)9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'9859 hardcode_libdir_flag_spec='-L$libdir'9860 hardcode_shlibpath_var=no9861 ;;9862 9863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor9864 # support. Future versions do this automatically, but an explicit c++rt0.o9865 # does not break anything, and helps significantly (at the cost of a little9866 # extra space).9867 freebsd2.2*)9868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'9869 hardcode_libdir_flag_spec='-R$libdir'9870 hardcode_direct=yes9871 hardcode_shlibpath_var=no9872 ;;9873 9874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.9875 freebsd2.*)9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'9877 hardcode_direct=yes9878 hardcode_minus_L=yes9879 hardcode_shlibpath_var=no9880 ;;9881 9882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.9883 freebsd* | dragonfly*)9884 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'9885 hardcode_libdir_flag_spec='-R$libdir'9886 hardcode_direct=yes9887 hardcode_shlibpath_var=no9888 ;;9889 9890 hpux9*)9891 if test yes = "$GCC"; then9892 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'9893 else9894 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'9895 fi9896 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9897 hardcode_libdir_separator=:9898 hardcode_direct=yes9899 9900 # hardcode_minus_L: Not really in the search PATH,9901 # but as the default location of the library.9902 hardcode_minus_L=yes9903 export_dynamic_flag_spec='$wl-E'9904 ;;9905 9906 hpux10*)9907 if test yes,no = "$GCC,$with_gnu_ld"; then9908 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9909 else9910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9911 fi9912 if test no = "$with_gnu_ld"; then9913 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9914 hardcode_libdir_separator=:9915 hardcode_direct=yes9916 hardcode_direct_absolute=yes9917 export_dynamic_flag_spec='$wl-E'9918 # hardcode_minus_L: Not really in the search PATH,9919 # but as the default location of the library.9920 hardcode_minus_L=yes9921 fi9922 ;;9923 9924 hpux11*)9925 if test yes,no = "$GCC,$with_gnu_ld"; then9926 case $host_cpu in9927 hppa*64*)9928 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9929 ;;9930 ia64*)9931 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9932 ;;9933 *)9934 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9935 ;;9936 esac9937 else9938 case $host_cpu in9939 hppa*64*)9940 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9941 ;;9942 ia64*)9943 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9944 ;;9945 *)9946 9947 # Older versions of the 11.00 compiler do not understand -b yet9948 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&59950 $as_echo_n "checking if $CC understands -b... " >&6; }9951 if ${lt_cv_prog_compiler__b+:} false; then :9952 $as_echo_n "(cached) " >&69953 else9954 lt_cv_prog_compiler__b=no9955 save_LDFLAGS=$LDFLAGS9956 LDFLAGS="$LDFLAGS -b"9957 echo "$lt_simple_link_test_code" > conftest.$ac_ext9958 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then9959 # The linker can only warn and ignore the option if not recognized9960 # So say no if there are warnings9961 if test -s conftest.err; then9962 # Append any errors to the config.log.9963 cat conftest.err 1>&59964 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp9965 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er29966 if diff conftest.exp conftest.er2 >/dev/null; then9967 lt_cv_prog_compiler__b=yes9968 fi9969 else9970 lt_cv_prog_compiler__b=yes9971 fi9972 fi9973 $RM -r conftest*9974 LDFLAGS=$save_LDFLAGS9975 9976 fi9977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&59978 $as_echo "$lt_cv_prog_compiler__b" >&6; }9979 9980 if test yes = "$lt_cv_prog_compiler__b"; then9981 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9982 else9983 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9984 fi9985 9986 ;;9987 esac9988 fi9989 if test no = "$with_gnu_ld"; then9990 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9991 hardcode_libdir_separator=:9992 9993 case $host_cpu in9994 hppa*64*|ia64*)9995 hardcode_direct=no9996 hardcode_shlibpath_var=no9997 ;;9998 *)9999 hardcode_direct=yes10000 hardcode_direct_absolute=yes10001 export_dynamic_flag_spec='$wl-E'10002 10003 # hardcode_minus_L: Not really in the search PATH,10004 # but as the default location of the library.10005 hardcode_minus_L=yes10006 ;;10007 esac10008 fi10009 ;;10010 10011 irix5* | irix6* | nonstopux*)10012 if test yes = "$GCC"; then10013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10014 # Try to use the -exported_symbol ld option, if it does not10015 # work, assume that -exports_file does not work either and10016 # implicitly export all symbols.10017 # This should be the same for all languages, so no per-tag cache variable.10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&510019 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }10020 if ${lt_cv_irix_exported_symbol+:} false; then :10021 $as_echo_n "(cached) " >&610022 else10023 save_LDFLAGS=$LDFLAGS10024 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10026 /* end confdefs.h. */10027 int foo (void) { return 0; }10028 _ACEOF10029 if ac_fn_c_try_link "$LINENO"; then :10030 lt_cv_irix_exported_symbol=yes10031 else10032 lt_cv_irix_exported_symbol=no10033 fi10034 rm -f core conftest.err conftest.$ac_objext \10035 conftest$ac_exeext conftest.$ac_ext10036 LDFLAGS=$save_LDFLAGS10037 fi10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&510039 $as_echo "$lt_cv_irix_exported_symbol" >&6; }10040 if test yes = "$lt_cv_irix_exported_symbol"; then10041 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'10042 fi10043 link_all_deplibs=no10044 else10045 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10046 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'10047 fi10048 archive_cmds_need_lc='no'10049 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10050 hardcode_libdir_separator=:10051 inherit_rpath=yes10052 link_all_deplibs=yes10053 ;;10054 10055 linux*)10056 case $cc_basename in10057 tcc*)10058 # Fabrice Bellard et al's Tiny C Compiler10059 ld_shlibs=yes10060 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10061 ;;10062 esac10063 ;;10064 10065 netbsd* | netbsdelf*-gnu)10066 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then10067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out10068 else10069 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF10070 fi10071 hardcode_libdir_flag_spec='-R$libdir'10072 hardcode_direct=yes10073 hardcode_shlibpath_var=no10074 ;;10075 10076 newsos6)10077 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10078 hardcode_direct=yes10079 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10080 hardcode_libdir_separator=:10081 hardcode_shlibpath_var=no10082 ;;10083 10084 *nto* | *qnx*)10085 ;;10086 10087 openbsd* | bitrig*)10088 if test -f /usr/libexec/ld.so; then10089 hardcode_direct=yes10090 hardcode_shlibpath_var=no10091 hardcode_direct_absolute=yes10092 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then10093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10094 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'10095 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10096 export_dynamic_flag_spec='$wl-E'10097 else10098 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10099 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10100 fi10101 else10102 ld_shlibs=no10103 fi10104 ;;10105 10106 os2*)10107 hardcode_libdir_flag_spec='-L$libdir'10108 hardcode_minus_L=yes10109 allow_undefined_flag=unsupported10110 shrext_cmds=.dll10111 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10112 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10113 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10114 $ECHO EXPORTS >> $output_objdir/$libname.def~10115 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~10116 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10117 emximp -o $lib $output_objdir/$libname.def'10118 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10119 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10120 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10121 $ECHO EXPORTS >> $output_objdir/$libname.def~10122 prefix_cmds="$SED"~10123 if test EXPORTS = "`$SED 1q $export_symbols`"; then10124 prefix_cmds="$prefix_cmds -e 1d";10125 fi~10126 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~10127 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~10128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10129 emximp -o $lib $output_objdir/$libname.def'10130 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10131 enable_shared_with_static_runtimes=yes10132 ;;10133 10134 osf3*)10135 if test yes = "$GCC"; then10136 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10137 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10138 else10139 allow_undefined_flag=' -expect_unresolved \*'10140 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10141 fi10142 archive_cmds_need_lc='no'10143 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10144 hardcode_libdir_separator=:10145 ;;10146 10147 osf4* | osf5*) # as osf3* with the addition of -msym flag10148 if test yes = "$GCC"; then10149 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10150 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'10151 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10152 else10153 allow_undefined_flag=' -expect_unresolved \*'10154 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'10155 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~10156 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'10157 10158 # Both c and cxx compiler support -rpath directly10159 hardcode_libdir_flag_spec='-rpath $libdir'10160 fi10161 archive_cmds_need_lc='no'10162 hardcode_libdir_separator=:10163 ;;10164 10165 solaris*)10166 no_undefined_flag=' -z defs'10167 if test yes = "$GCC"; then10168 wlarc='$wl'10169 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'10170 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10171 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10172 else10173 case `$CC -V 2>&1` in10174 *"Compilers 5.0"*)10175 wlarc=''10176 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'10177 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10178 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'10179 ;;10180 *)10181 wlarc='$wl'10182 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'10183 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10184 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10185 ;;10186 esac10187 fi10188 hardcode_libdir_flag_spec='-R$libdir'10189 hardcode_shlibpath_var=no10190 case $host_os in10191 solaris2.[0-5] | solaris2.[0-5].*) ;;10192 *)10193 # The compiler driver will combine and reorder linker options,10194 # but understands '-z linker_flag'. GCC discards it without '$wl',10195 # but is careful enough not to reorder.10196 # Supported since Solaris 2.6 (maybe 2.5.1?)10197 if test yes = "$GCC"; then10198 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'10199 else10200 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'10201 fi10202 ;;10203 esac10204 link_all_deplibs=yes10205 ;;10206 10207 sunos4*)10208 if test sequent = "$host_vendor"; then10209 # Use $CC to link under sequent, because it throws in some extra .o10210 # files that make .init and .fini sections work.10211 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'10212 else10213 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'10214 fi10215 hardcode_libdir_flag_spec='-L$libdir'10216 hardcode_direct=yes10217 hardcode_minus_L=yes10218 hardcode_shlibpath_var=no10219 ;;10220 10221 sysv4)10222 case $host_vendor in10223 sni)10224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10225 hardcode_direct=yes # is this really true???10226 ;;10227 siemens)10228 ## LD is ld it makes a PLAMLIB10229 ## CC just makes a GrossModule.10230 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'10231 reload_cmds='$CC -r -o $output$reload_objs'10232 hardcode_direct=no10233 ;;10234 motorola)10235 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10236 hardcode_direct=no #Motorola manual says yes, but my tests say they lie10237 ;;10238 esac10239 runpath_var='LD_RUN_PATH'10240 hardcode_shlibpath_var=no10241 ;;10242 10243 sysv4.3*)10244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10245 hardcode_shlibpath_var=no10246 export_dynamic_flag_spec='-Bexport'10247 ;;10248 10249 sysv4*MP*)10250 if test -d /usr/nec; then10251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10252 hardcode_shlibpath_var=no10253 runpath_var=LD_RUN_PATH10254 hardcode_runpath_var=yes10255 ld_shlibs=yes10256 fi10257 ;;10258 10259 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)10260 no_undefined_flag='$wl-z,text'10261 archive_cmds_need_lc=no10262 hardcode_shlibpath_var=no10263 runpath_var='LD_RUN_PATH'10264 10265 if test yes = "$GCC"; then10266 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10267 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10268 else10269 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10270 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10271 fi10272 ;;10273 10274 sysv5* | sco3.2v5* | sco5v6*)10275 # Note: We CANNOT use -z defs as we might desire, because we do not10276 # link with -lc, and that would cause any symbols used from libc to10277 # always be unresolved, which means just about no library would10278 # ever link correctly. If we're not using GNU ld we use -z text10279 # though, which does catch some bad symbols but isn't as heavy-handed10280 # as -z defs.10281 no_undefined_flag='$wl-z,text'10282 allow_undefined_flag='$wl-z,nodefs'10283 archive_cmds_need_lc=no10284 hardcode_shlibpath_var=no10285 hardcode_libdir_flag_spec='$wl-R,$libdir'10286 hardcode_libdir_separator=':'10287 link_all_deplibs=yes10288 export_dynamic_flag_spec='$wl-Bexport'10289 runpath_var='LD_RUN_PATH'10290 10291 if test yes = "$GCC"; then10292 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10293 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10294 else10295 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10296 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10297 fi10298 ;;10299 10300 uts4*)10301 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10302 hardcode_libdir_flag_spec='-L$libdir'10303 hardcode_shlibpath_var=no10304 ;;10305 10306 *)10307 ld_shlibs=no10308 ;;10309 esac10310 10311 if test sni = "$host_vendor"; then10312 case $host in10313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)10314 export_dynamic_flag_spec='$wl-Blargedynsym'10315 ;;10316 esac10317 fi10318 fi10319 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&510321 $as_echo "$ld_shlibs" >&6; }10322 test no = "$ld_shlibs" && can_build_shared=no10323 10324 with_gnu_ld=$with_gnu_ld10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 #10341 # Do we need to explicitly link libc?10342 #10343 case "x$archive_cmds_need_lc" in10344 x|xyes)10345 # Assume -lc should be added10346 archive_cmds_need_lc=yes10347 10348 if test yes,yes = "$GCC,$enable_shared"; then10349 case $archive_cmds in10350 *'~'*)10351 # FIXME: we may have to deal with multi-command sequences.10352 ;;10353 '$CC '*)10354 # Test whether the compiler implicitly links with -lc since on some10355 # systems, -lgcc has to come before -lc. If gcc already passes -lc10356 # to ld, don't add -lc before -lgcc.10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&510358 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }10359 if ${lt_cv_archive_cmds_need_lc+:} false; then :10360 $as_echo_n "(cached) " >&610361 else10362 $RM conftest*10363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10364 10365 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&510366 (eval $ac_compile) 2>&510367 ac_status=$?10368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510369 test $ac_status = 0; } 2>conftest.err; then10370 soname=conftest10371 lib=conftest10372 libobjs=conftest.$ac_objext10373 deplibs=10374 wl=$lt_prog_compiler_wl10375 pic_flag=$lt_prog_compiler_pic10376 compiler_flags=-v10377 linker_flags=-v10378 verstring=10379 output_objdir=.10380 libname=conftest10381 lt_save_allow_undefined_flag=$allow_undefined_flag10382 allow_undefined_flag=10383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&510384 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&510385 ac_status=$?10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510387 test $ac_status = 0; }10388 then10389 lt_cv_archive_cmds_need_lc=no10390 else10391 lt_cv_archive_cmds_need_lc=yes10392 fi10393 allow_undefined_flag=$lt_save_allow_undefined_flag10394 else10395 cat conftest.err 1>&510396 fi10397 $RM conftest*10398 10399 fi10400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&510401 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }10402 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc10403 ;;10404 esac10405 fi10406 ;;10407 esac10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&510561 $as_echo_n "checking dynamic linker characteristics... " >&6; }10562 10563 if test yes = "$GCC"; then10564 case $host_os in10565 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;10566 *) lt_awk_arg='/^libraries:/' ;;10567 esac10568 case $host_os in10569 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;10570 *) lt_sed_strip_eq='s|=/|/|g' ;;10571 esac10572 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`10573 case $lt_search_path_spec in10574 *\;*)10575 # if the path contains ";" then we assume it to be the separator10576 # otherwise default to the standard path separator (i.e. ":") - it is10577 # assumed that no part of a normal pathname contains ";" but that should10578 # okay in the real world where ";" in dirpaths is itself problematic.10579 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`10580 ;;10581 *)10582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`10583 ;;10584 esac10585 # Ok, now we have the path, separated by spaces, we can step through it10586 # and add multilib dir if necessary...10587 lt_tmp_lt_search_path_spec=10588 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`10589 # ...but if some path component already ends with the multilib dir we assume10590 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).10591 case "$lt_multi_os_dir; $lt_search_path_spec " in10592 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)10593 lt_multi_os_dir=10594 ;;10595 esac10596 for lt_sys_path in $lt_search_path_spec; do10597 if test -d "$lt_sys_path$lt_multi_os_dir"; then10598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"10599 elif test -n "$lt_multi_os_dir"; then10600 test -d "$lt_sys_path" && \10601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"10602 fi10603 done10604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '10605 BEGIN {RS = " "; FS = "/|\n";} {10606 lt_foo = "";10607 lt_count = 0;10608 for (lt_i = NF; lt_i > 0; lt_i--) {10609 if ($lt_i != "" && $lt_i != ".") {10610 if ($lt_i == "..") {10611 lt_count++;10612 } else {10613 if (lt_count == 0) {10614 lt_foo = "/" $lt_i lt_foo;10615 } else {10616 lt_count--;10617 }10618 }10619 }10620 }10621 if (lt_foo != "") { lt_freq[lt_foo]++; }10622 if (lt_freq[lt_foo] == 1) { print lt_foo; }10623 }'`10624 # AWK program above erroneously prepends '/' to C:/dos/paths10625 # for these hosts.10626 case $host_os in10627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\10628 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;10629 esac10630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`10631 else10632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"10633 fi10634 library_names_spec=10635 libname_spec='lib$name'10636 soname_spec=10637 shrext_cmds=.so10638 postinstall_cmds=10639 postuninstall_cmds=10640 finish_cmds=10641 finish_eval=10642 shlibpath_var=10643 shlibpath_overrides_runpath=unknown10644 version_type=none10645 dynamic_linker="$host_os ld.so"10646 sys_lib_dlsearch_path_spec="/lib /usr/lib"10647 need_lib_prefix=unknown10648 hardcode_into_libs=no10649 10650 # when you set need_version to no, make sure it does not cause -set_version10651 # flags to be left without arguments10652 need_version=unknown10653 10654 10655 10656 case $host_os in10657 aix3*)10658 version_type=linux # correct to gnu/linux during the next big refactor10659 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'10660 shlibpath_var=LIBPATH10661 10662 # AIX 3 has no versioning support, so we append a major version to the name.10663 soname_spec='$libname$release$shared_ext$major'10664 ;;10665 10666 aix[4-9]*)10667 version_type=linux # correct to gnu/linux during the next big refactor10668 need_lib_prefix=no10669 need_version=no10670 hardcode_into_libs=yes10671 if test ia64 = "$host_cpu"; then10672 # AIX 5 supports IA6410673 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'10674 shlibpath_var=LD_LIBRARY_PATH10675 else10676 # With GCC up to 2.95.x, collect2 would create an import file10677 # for dependence libraries. The import file would start with10678 # the line '#! .'. This would cause the generated library to10679 # depend on '.', always an invalid library. This was fixed in10680 # development snapshots of GCC prior to 3.0.10681 case $host_os in10682 aix4 | aix4.[01] | aix4.[01].*)10683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'10684 echo ' yes '10685 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then10686 :10687 else10688 can_build_shared=no10689 fi10690 ;;10691 esac10692 # Using Import Files as archive members, it is possible to support10693 # filename-based versioning of shared library archives on AIX. While10694 # this would work for both with and without runtime linking, it will10695 # prevent static linking of such archives. So we do filename-based10696 # shared library versioning with .so extension only, which is used10697 # when both runtime linking and shared linking is enabled.10698 # Unfortunately, runtime linking may impact performance, so we do10699 # not want this to be the default eventually. Also, we use the10700 # versioned .so libs for executables only if there is the -brtl10701 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.10702 # To allow for filename-based versioning support, we need to create10703 # libNAME.so.V as an archive file, containing:10704 # *) an Import File, referring to the versioned filename of the10705 # archive as well as the shared archive member, telling the10706 # bitwidth (32 or 64) of that shared object, and providing the10707 # list of exported symbols of that shared object, eventually10708 # decorated with the 'weak' keyword10709 # *) the shared object with the F_LOADONLY flag set, to really avoid10710 # it being seen by the linker.10711 # At run time we better use the real file rather than another symlink,10712 # but for link time we create the symlink libNAME.so -> libNAME.so.V10713 10714 case $with_aix_soname,$aix_use_runtimelinking in10715 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct10716 # soname into executable. Probably we can add versioning support to10717 # collect2, so additional links can be useful in future.10718 aix,yes) # traditional libtool10719 dynamic_linker='AIX unversionable lib.so'10720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so10721 # instead of lib<name>.a to let people know that these are not10722 # typical AIX shared libraries.10723 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10724 ;;10725 aix,no) # traditional AIX only10726 dynamic_linker='AIX lib.a(lib.so.V)'10727 # We preserve .a as extension for shared libraries through AIX4.210728 # and later when we are not doing run time linking.10729 library_names_spec='$libname$release.a $libname.a'10730 soname_spec='$libname$release$shared_ext$major'10731 ;;10732 svr4,*) # full svr4 only10733 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"10734 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10735 # We do not specify a path in Import Files, so LIBPATH fires.10736 shlibpath_overrides_runpath=yes10737 ;;10738 *,yes) # both, prefer svr410739 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"10740 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10741 # unpreferred sharedlib libNAME.a needs extra handling10742 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'10743 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'10744 # We do not specify a path in Import Files, so LIBPATH fires.10745 shlibpath_overrides_runpath=yes10746 ;;10747 *,no) # both, prefer aix10748 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"10749 library_names_spec='$libname$release.a $libname.a'10750 soname_spec='$libname$release$shared_ext$major'10751 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling10752 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'10753 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'10754 ;;10755 esac10756 shlibpath_var=LIBPATH10757 fi10758 ;;10759 10760 amigaos*)10761 case $host_cpu in10762 powerpc)10763 # Since July 2007 AmigaOS4 officially supports .so libraries.10764 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.10765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10766 ;;10767 m68k)10768 library_names_spec='$libname.ixlibrary $libname.a'10769 # Create ${libname}_ixlibrary.a entries in /sys/libs.10770 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'10771 ;;10772 esac10773 ;;10774 10775 beos*)10776 library_names_spec='$libname$shared_ext'10777 dynamic_linker="$host_os ld.so"10778 shlibpath_var=LIBRARY_PATH10779 ;;10780 10781 bsdi[45]*)10782 version_type=linux # correct to gnu/linux during the next big refactor10783 need_version=no10784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10785 soname_spec='$libname$release$shared_ext$major'10786 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'10787 shlibpath_var=LD_LIBRARY_PATH10788 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"10789 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"10790 # the default ld.so.conf also contains /usr/contrib/lib and10791 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow10792 # libtool to hard-code these into programs10793 ;;10794 10795 cygwin* | mingw* | pw32* | cegcc*)10796 version_type=windows10797 shrext_cmds=.dll10798 need_version=no10799 need_lib_prefix=no10800 10801 case $GCC,$cc_basename in10802 yes,*)10803 # gcc10804 library_names_spec='$libname.dll.a'10805 # DLL is installed to $(libdir)/../bin by postinstall_cmds10806 postinstall_cmds='base_file=`basename \$file`~10807 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10808 dldir=$destdir/`dirname \$dlpath`~10809 test -d \$dldir || mkdir -p \$dldir~10810 $install_prog $dir/$dlname \$dldir/$dlname~10811 chmod a+x \$dldir/$dlname~10812 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then10813 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;10814 fi'10815 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10816 dlpath=$dir/\$dldll~10817 $RM \$dlpath'10818 shlibpath_overrides_runpath=yes10819 10820 case $host_os in10821 cygwin*)10822 # Cygwin DLLs use 'cyg' prefix rather than 'lib'10823 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10824 10825 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"10826 ;;10827 mingw* | cegcc*)10828 # MinGW DLLs use traditional 'lib' prefix10829 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10830 ;;10831 pw32*)10832 # pw32 DLLs use 'pw' prefix rather than 'lib'10833 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10834 ;;10835 esac10836 dynamic_linker='Win32 ld.exe'10837 ;;10838 10839 *,cl*)10840 # Native MSVC10841 libname_spec='$name'10842 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10843 library_names_spec='$libname.dll.lib'10844 10845 case $build_os in10846 mingw*)10847 sys_lib_search_path_spec=10848 lt_save_ifs=$IFS10849 IFS=';'10850 for lt_path in $LIB10851 do10852 IFS=$lt_save_ifs10853 # Let DOS variable expansion print the short 8.3 style file name.10854 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`10855 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"10856 done10857 IFS=$lt_save_ifs10858 # Convert to MSYS style.10859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`10860 ;;10861 cygwin*)10862 # Convert to unix form, then to dos form, then back to unix form10863 # but this time dos style (no spaces!) so that the unix form looks10864 # like /cygdrive/c/PROGRA~1:/cygdr...10865 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`10866 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`10867 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10868 ;;10869 *)10870 sys_lib_search_path_spec=$LIB10871 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then10872 # It is most probably a Windows format PATH.10873 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`10874 else10875 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10876 fi10877 # FIXME: find the short name or the path components, as spaces are10878 # common. (e.g. "Program Files" -> "PROGRA~1")10879 ;;10880 esac10881 10882 # DLL is installed to $(libdir)/../bin by postinstall_cmds10883 postinstall_cmds='base_file=`basename \$file`~10884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10885 dldir=$destdir/`dirname \$dlpath`~10886 test -d \$dldir || mkdir -p \$dldir~10887 $install_prog $dir/$dlname \$dldir/$dlname'10888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10889 dlpath=$dir/\$dldll~10890 $RM \$dlpath'10891 shlibpath_overrides_runpath=yes10892 dynamic_linker='Win32 link.exe'10893 ;;10894 10895 *)10896 # Assume MSVC wrapper10897 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'10898 dynamic_linker='Win32 ld.exe'10899 ;;10900 esac10901 # FIXME: first we should search . and the directory the executable is in10902 shlibpath_var=PATH10903 ;;10904 10905 darwin* | rhapsody*)10906 dynamic_linker="$host_os dyld"10907 version_type=darwin10908 need_lib_prefix=no10909 need_version=no10910 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'10911 soname_spec='$libname$release$major$shared_ext'10912 shlibpath_overrides_runpath=yes10913 shlibpath_var=DYLD_LIBRARY_PATH10914 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'10915 10916 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"10917 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'10918 ;;10919 10920 dgux*)10921 version_type=linux # correct to gnu/linux during the next big refactor10922 need_lib_prefix=no10923 need_version=no10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10925 soname_spec='$libname$release$shared_ext$major'10926 shlibpath_var=LD_LIBRARY_PATH10927 ;;10928 10929 freebsd* | dragonfly*)10930 # DragonFly does not have aout. When/if they implement a new10931 # versioning mechanism, adjust this.10932 if test -x /usr/bin/objformat; then10933 objformat=`/usr/bin/objformat`10934 else10935 case $host_os in10936 freebsd[23].*) objformat=aout ;;10937 *) objformat=elf ;;10938 esac10939 fi10940 version_type=freebsd-$objformat10941 case $version_type in10942 freebsd-elf*)10943 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10944 soname_spec='$libname$release$shared_ext$major'10945 need_version=no10946 need_lib_prefix=no10947 ;;10948 freebsd-*)10949 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'10950 need_version=yes10951 ;;10952 esac10953 shlibpath_var=LD_LIBRARY_PATH10954 case $host_os in10955 freebsd2.*)10956 shlibpath_overrides_runpath=yes10957 ;;10958 freebsd3.[01]* | freebsdelf3.[01]*)10959 shlibpath_overrides_runpath=yes10960 hardcode_into_libs=yes10961 ;;10962 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \10963 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)10964 shlibpath_overrides_runpath=no10965 hardcode_into_libs=yes10966 ;;10967 *) # from 4.6 on, and DragonFly10968 shlibpath_overrides_runpath=yes10969 hardcode_into_libs=yes10970 ;;10971 esac10972 ;;10973 10974 haiku*)10975 version_type=linux # correct to gnu/linux during the next big refactor10976 need_lib_prefix=no10977 need_version=no10978 dynamic_linker="$host_os runtime_loader"10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10980 soname_spec='$libname$release$shared_ext$major'10981 shlibpath_var=LIBRARY_PATH10982 shlibpath_overrides_runpath=no10983 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'10984 hardcode_into_libs=yes10985 ;;10986 10987 hpux9* | hpux10* | hpux11*)10988 # Give a soname corresponding to the major version so that dld.sl refuses to10989 # link against other versions.10990 version_type=sunos10991 need_lib_prefix=no10992 need_version=no10993 case $host_cpu in10994 ia64*)10995 shrext_cmds='.so'10996 hardcode_into_libs=yes10997 dynamic_linker="$host_os dld.so"10998 shlibpath_var=LD_LIBRARY_PATH10999 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11001 soname_spec='$libname$release$shared_ext$major'11002 if test 32 = "$HPUX_IA64_MODE"; then11003 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"11004 sys_lib_dlsearch_path_spec=/usr/lib/hpux3211005 else11006 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"11007 sys_lib_dlsearch_path_spec=/usr/lib/hpux6411008 fi11009 ;;11010 hppa*64*)11011 shrext_cmds='.sl'11012 hardcode_into_libs=yes11013 dynamic_linker="$host_os dld.sl"11014 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH11015 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.11016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11017 soname_spec='$libname$release$shared_ext$major'11018 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"11019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11020 ;;11021 *)11022 shrext_cmds='.sl'11023 dynamic_linker="$host_os dld.sl"11024 shlibpath_var=SHLIB_PATH11025 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH11026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11027 soname_spec='$libname$release$shared_ext$major'11028 ;;11029 esac11030 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...11031 postinstall_cmds='chmod 555 $lib'11032 # or fails outright, so override atomically:11033 install_override_mode=55511034 ;;11035 11036 interix[3-9]*)11037 version_type=linux # correct to gnu/linux during the next big refactor11038 need_lib_prefix=no11039 need_version=no11040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11041 soname_spec='$libname$release$shared_ext$major'11042 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'11043 shlibpath_var=LD_LIBRARY_PATH11044 shlibpath_overrides_runpath=no11045 hardcode_into_libs=yes11046 ;;11047 11048 irix5* | irix6* | nonstopux*)11049 case $host_os in11050 nonstopux*) version_type=nonstopux ;;11051 *)11052 if test yes = "$lt_cv_prog_gnu_ld"; then11053 version_type=linux # correct to gnu/linux during the next big refactor11054 else11055 version_type=irix11056 fi ;;11057 esac11058 need_lib_prefix=no11059 need_version=no11060 soname_spec='$libname$release$shared_ext$major'11061 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'11062 case $host_os in11063 irix5* | nonstopux*)11064 libsuff= shlibsuff=11065 ;;11066 *)11067 case $LD in # libtool.m4 will add one of these switches to LD11068 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")11069 libsuff= shlibsuff= libmagic=32-bit;;11070 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")11071 libsuff=32 shlibsuff=N32 libmagic=N32;;11072 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")11073 libsuff=64 shlibsuff=64 libmagic=64-bit;;11074 *) libsuff= shlibsuff= libmagic=never-match;;11075 esac11076 ;;11077 esac11078 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH11079 shlibpath_overrides_runpath=no11080 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"11081 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"11082 hardcode_into_libs=yes11083 ;;11084 11085 # No shared lib support for Linux oldld, aout, or coff.11086 linux*oldld* | linux*aout* | linux*coff*)11087 dynamic_linker=no11088 ;;11089 11090 linux*android*)11091 version_type=none # Android doesn't support versioned libraries.11092 need_lib_prefix=no11093 need_version=no11094 library_names_spec='$libname$release$shared_ext'11095 soname_spec='$libname$release$shared_ext'11096 finish_cmds=11097 shlibpath_var=LD_LIBRARY_PATH11098 shlibpath_overrides_runpath=yes11099 11100 # This implies no fast_install, which is unacceptable.11101 # Some rework will be needed to allow for fast_install11102 # before this can be enabled.11103 hardcode_into_libs=yes11104 11105 dynamic_linker='Android linker'11106 # Don't embed -rpath directories since the linker doesn't support them.11107 hardcode_libdir_flag_spec='-L$libdir'11108 ;;11109 11110 # This must be glibc/ELF.11111 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)11112 version_type=linux # correct to gnu/linux during the next big refactor11113 need_lib_prefix=no11114 need_version=no11115 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11116 soname_spec='$libname$release$shared_ext$major'11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'11118 shlibpath_var=LD_LIBRARY_PATH11119 shlibpath_overrides_runpath=no11120 11121 # Some binutils ld are patched to set DT_RUNPATH11122 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :11123 $as_echo_n "(cached) " >&611124 else11125 lt_cv_shlibpath_overrides_runpath=no11126 save_LDFLAGS=$LDFLAGS11127 save_libdir=$libdir11128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \11129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""11130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11131 /* end confdefs.h. */11132 11133 int11134 main ()11135 {11136 11137 ;11138 return 0;11139 }11140 _ACEOF11141 if ac_fn_c_try_link "$LINENO"; then :11142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :11143 lt_cv_shlibpath_overrides_runpath=yes11144 fi11145 fi11146 rm -f core conftest.err conftest.$ac_objext \11147 conftest$ac_exeext conftest.$ac_ext11148 LDFLAGS=$save_LDFLAGS11149 libdir=$save_libdir11150 11151 fi11152 11153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath11154 11155 # This implies no fast_install, which is unacceptable.11156 # Some rework will be needed to allow for fast_install11157 # before this can be enabled.11158 hardcode_into_libs=yes11159 11160 # Ideally, we could use ldconfig to report *all* directores which are11161 # searched for libraries, however this is still not possible. Aside from not11162 # being certain /sbin/ldconfig is available, command11163 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,11164 # even though it is searched at run-time. Try to do the best guess by11165 # appending ld.so.conf contents (and includes) to the search path.11166 if test -f /etc/ld.so.conf; then11167 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;s/"//g;/^$/d' | tr '\n' ' '`11168 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"11169 fi11170 11171 # We used to test for /lib/ld.so.1 and disable shared libraries on11172 # powerpc, because MkLinux only supported shared libraries with the11173 # GNU dynamic linker. Since this was broken with cross compilers,11174 # most powerpc-linux boxes support dynamic linking these days and11175 # people can always --disable-shared, the test was removed, and we11176 # assume the GNU/Linux dynamic linker is in use.11177 dynamic_linker='GNU/Linux ld.so'11178 ;;11179 11180 netbsdelf*-gnu)11181 version_type=linux11182 need_lib_prefix=no11183 need_version=no11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'11185 soname_spec='${libname}${release}${shared_ext}$major'11186 shlibpath_var=LD_LIBRARY_PATH11187 shlibpath_overrides_runpath=no11188 hardcode_into_libs=yes11189 dynamic_linker='NetBSD ld.elf_so'11190 ;;11191 11192 netbsd*)11193 version_type=sunos11194 need_lib_prefix=no11195 need_version=no11196 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then11197 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11199 dynamic_linker='NetBSD (a.out) ld.so'11200 else11201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11202 soname_spec='$libname$release$shared_ext$major'11203 dynamic_linker='NetBSD ld.elf_so'11204 fi11205 shlibpath_var=LD_LIBRARY_PATH11206 shlibpath_overrides_runpath=yes11207 hardcode_into_libs=yes11208 ;;11209 11210 newsos6)11211 version_type=linux # correct to gnu/linux during the next big refactor11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11213 shlibpath_var=LD_LIBRARY_PATH11214 shlibpath_overrides_runpath=yes11215 ;;11216 11217 *nto* | *qnx*)11218 version_type=qnx11219 need_lib_prefix=no11220 need_version=no11221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11222 soname_spec='$libname$release$shared_ext$major'11223 shlibpath_var=LD_LIBRARY_PATH11224 shlibpath_overrides_runpath=no11225 hardcode_into_libs=yes11226 dynamic_linker='ldqnx.so'11227 ;;11228 11229 openbsd* | bitrig*)11230 version_type=sunos11231 sys_lib_dlsearch_path_spec=/usr/lib11232 need_lib_prefix=no11233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then11234 need_version=no11235 else11236 need_version=yes11237 fi11238 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11239 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11240 shlibpath_var=LD_LIBRARY_PATH11241 shlibpath_overrides_runpath=yes11242 ;;11243 11244 os2*)11245 libname_spec='$name'11246 version_type=windows11247 shrext_cmds=.dll11248 need_version=no11249 need_lib_prefix=no11250 # OS/2 can only load a DLL with a base name of 8 characters or less.11251 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";11252 v=$($ECHO $release$versuffix | tr -d .-);11253 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);11254 $ECHO $n$v`$shared_ext'11255 library_names_spec='${libname}_dll.$libext'11256 dynamic_linker='OS/2 ld.exe'11257 shlibpath_var=BEGINLIBPATH11258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"11259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11260 postinstall_cmds='base_file=`basename \$file`~11261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~11262 dldir=$destdir/`dirname \$dlpath`~11263 test -d \$dldir || mkdir -p \$dldir~11264 $install_prog $dir/$dlname \$dldir/$dlname~11265 chmod a+x \$dldir/$dlname~11266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then11267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;11268 fi'11269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~11270 dlpath=$dir/\$dldll~11271 $RM \$dlpath'11272 ;;11273 11274 osf3* | osf4* | osf5*)11275 version_type=osf11276 need_lib_prefix=no11277 need_version=no11278 soname_spec='$libname$release$shared_ext$major'11279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11280 shlibpath_var=LD_LIBRARY_PATH11281 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"11282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11283 ;;11284 11285 rdos*)11286 dynamic_linker=no11287 ;;11288 11289 solaris*)11290 version_type=linux # correct to gnu/linux during the next big refactor11291 need_lib_prefix=no11292 need_version=no11293 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11294 soname_spec='$libname$release$shared_ext$major'11295 shlibpath_var=LD_LIBRARY_PATH11296 shlibpath_overrides_runpath=yes11297 hardcode_into_libs=yes11298 # ldd complains unless libraries are executable11299 postinstall_cmds='chmod +x $lib'11300 ;;11301 11302 sunos4*)11303 version_type=sunos11304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11305 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'11306 shlibpath_var=LD_LIBRARY_PATH11307 shlibpath_overrides_runpath=yes11308 if test yes = "$with_gnu_ld"; then11309 need_lib_prefix=no11310 fi11311 need_version=yes11312 ;;11313 11314 sysv4 | sysv4.3*)11315 version_type=linux # correct to gnu/linux during the next big refactor11316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11317 soname_spec='$libname$release$shared_ext$major'11318 shlibpath_var=LD_LIBRARY_PATH11319 case $host_vendor in11320 sni)11321 shlibpath_overrides_runpath=no11322 need_lib_prefix=no11323 runpath_var=LD_RUN_PATH11324 ;;11325 siemens)11326 need_lib_prefix=no11327 ;;11328 motorola)11329 need_lib_prefix=no11330 need_version=no11331 shlibpath_overrides_runpath=no11332 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'11333 ;;11334 esac11335 ;;11336 11337 sysv4*MP*)11338 if test -d /usr/nec; then11339 version_type=linux # correct to gnu/linux during the next big refactor11340 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'11341 soname_spec='$libname$shared_ext.$major'11342 shlibpath_var=LD_LIBRARY_PATH11343 fi11344 ;;11345 11346 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)11347 version_type=sco11348 need_lib_prefix=no11349 need_version=no11350 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'11351 soname_spec='$libname$release$shared_ext$major'11352 shlibpath_var=LD_LIBRARY_PATH11353 shlibpath_overrides_runpath=yes11354 hardcode_into_libs=yes11355 if test yes = "$with_gnu_ld"; then11356 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'11357 else11358 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'11359 case $host_os in11360 sco3.2v5*)11361 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"11362 ;;11363 esac11364 fi11365 sys_lib_dlsearch_path_spec='/usr/lib'11366 ;;11367 11368 tpf*)11369 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.11370 version_type=linux # correct to gnu/linux during the next big refactor11371 need_lib_prefix=no11372 need_version=no11373 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11374 shlibpath_var=LD_LIBRARY_PATH11375 shlibpath_overrides_runpath=no11376 hardcode_into_libs=yes11377 ;;11378 11379 uts4*)11380 version_type=linux # correct to gnu/linux during the next big refactor11381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11382 soname_spec='$libname$release$shared_ext$major'11383 shlibpath_var=LD_LIBRARY_PATH11384 ;;11385 11386 *)11387 dynamic_linker=no11388 ;;11389 esac11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&511391 $as_echo "$dynamic_linker" >&6; }11392 test no = "$dynamic_linker" && can_build_shared=no11393 11394 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"11395 if test yes = "$GCC"; then11396 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"11397 fi11398 11399 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then11400 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec11401 fi11402 11403 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then11404 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec11405 fi11406 11407 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...11408 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec11409 11410 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code11411 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"11412 11413 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool11414 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&511513 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }11514 hardcode_action=11515 if test -n "$hardcode_libdir_flag_spec" ||11516 test -n "$runpath_var" ||11517 test yes = "$hardcode_automatic"; then11518 11519 # We can hardcode non-existent directories.11520 if test no != "$hardcode_direct" &&11521 # If the only mechanism to avoid hardcoding is shlibpath_var, we11522 # have to relink, otherwise we might link with an installed library11523 # when we should be linking with a yet-to-be-installed one11524 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&11525 test no != "$hardcode_minus_L"; then11526 # Linking always hardcodes the temporary library directory.11527 hardcode_action=relink11528 else11529 # We can link without hardcoding, and we can hardcode nonexisting dirs.11530 hardcode_action=immediate11531 fi11532 else11533 # We cannot hardcode anything, or else we can only hardcode existing11534 # directories.11535 hardcode_action=unsupported11536 fi11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&511538 $as_echo "$hardcode_action" >&6; }11539 11540 if test relink = "$hardcode_action" ||11541 test yes = "$inherit_rpath"; then11542 # Fast installation is not supported11543 enable_fast_install=no11544 elif test yes = "$shlibpath_overrides_runpath" ||11545 test no = "$enable_shared"; then11546 # Fast installation is not necessary11547 enable_fast_install=needless11548 fi11549 11550 11551 11552 11553 11554 11555 if test yes != "$enable_dlopen"; then11556 enable_dlopen=unknown11557 enable_dlopen_self=unknown11558 enable_dlopen_self_static=unknown11559 else11560 lt_cv_dlopen=no11561 lt_cv_dlopen_libs=11562 11563 case $host_os in11564 beos*)11565 lt_cv_dlopen=load_add_on11566 lt_cv_dlopen_libs=11567 lt_cv_dlopen_self=yes11568 ;;11569 11570 mingw* | pw32* | cegcc*)11571 lt_cv_dlopen=LoadLibrary11572 lt_cv_dlopen_libs=11573 ;;11574 11575 cygwin*)11576 lt_cv_dlopen=dlopen11577 lt_cv_dlopen_libs=11578 ;;11579 11580 darwin*)11581 # if libdl is installed we need to link against it11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511583 $as_echo_n "checking for dlopen in -ldl... " >&6; }11584 if ${ac_cv_lib_dl_dlopen+:} false; then :11585 $as_echo_n "(cached) " >&611586 else11587 ac_check_lib_save_LIBS=$LIBS11588 LIBS="-ldl $LIBS"11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11590 /* end confdefs.h. */11591 11592 /* Override any GCC internal prototype to avoid an error.11593 Use char because int might match the return type of a GCC11594 builtin and then its argument prototype would still apply. */11595 #ifdef __cplusplus11596 extern "C"11597 #endif11598 char dlopen ();11599 int11600 main ()11601 {11602 return dlopen ();11603 ;11604 return 0;11605 }11606 _ACEOF11607 if ac_fn_c_try_link "$LINENO"; then :11608 ac_cv_lib_dl_dlopen=yes11609 else11610 ac_cv_lib_dl_dlopen=no11611 fi11612 rm -f core conftest.err conftest.$ac_objext \11613 conftest$ac_exeext conftest.$ac_ext11614 LIBS=$ac_check_lib_save_LIBS11615 fi11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511617 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11618 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11619 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11620 else11621 11622 lt_cv_dlopen=dyld11623 lt_cv_dlopen_libs=11624 lt_cv_dlopen_self=yes11625 11626 fi11627 11628 ;;11629 11630 tpf*)11631 # Don't try to run any link tests for TPF. We know it's impossible11632 # because TPF is a cross-compiler, and we know how we open DSOs.11633 lt_cv_dlopen=dlopen11634 lt_cv_dlopen_libs=11635 lt_cv_dlopen_self=no11636 ;;11637 11638 *)11639 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"11640 if test "x$ac_cv_func_shl_load" = xyes; then :11641 lt_cv_dlopen=shl_load11642 else11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&511644 $as_echo_n "checking for shl_load in -ldld... " >&6; }11645 if ${ac_cv_lib_dld_shl_load+:} false; then :11646 $as_echo_n "(cached) " >&611647 else11648 ac_check_lib_save_LIBS=$LIBS11649 LIBS="-ldld $LIBS"11650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11651 /* end confdefs.h. */11652 11653 /* Override any GCC internal prototype to avoid an error.11654 Use char because int might match the return type of a GCC11655 builtin and then its argument prototype would still apply. */11656 #ifdef __cplusplus11657 extern "C"11658 #endif11659 char shl_load ();11660 int11661 main ()11662 {11663 return shl_load ();11664 ;11665 return 0;11666 }11667 _ACEOF11668 if ac_fn_c_try_link "$LINENO"; then :11669 ac_cv_lib_dld_shl_load=yes11670 else11671 ac_cv_lib_dld_shl_load=no11672 fi11673 rm -f core conftest.err conftest.$ac_objext \11674 conftest$ac_exeext conftest.$ac_ext11675 LIBS=$ac_check_lib_save_LIBS11676 fi11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&511678 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }11679 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :11680 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld11681 else11682 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"11683 if test "x$ac_cv_func_dlopen" = xyes; then :11684 lt_cv_dlopen=dlopen11685 else11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511687 $as_echo_n "checking for dlopen in -ldl... " >&6; }11688 if ${ac_cv_lib_dl_dlopen+:} false; then :11689 $as_echo_n "(cached) " >&611690 else11691 ac_check_lib_save_LIBS=$LIBS11692 LIBS="-ldl $LIBS"11693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11694 /* end confdefs.h. */11695 11696 /* Override any GCC internal prototype to avoid an error.11697 Use char because int might match the return type of a GCC11698 builtin and then its argument prototype would still apply. */11699 #ifdef __cplusplus11700 extern "C"11701 #endif11702 char dlopen ();11703 int11704 main ()11705 {11706 return dlopen ();11707 ;11708 return 0;11709 }11710 _ACEOF11711 if ac_fn_c_try_link "$LINENO"; then :11712 ac_cv_lib_dl_dlopen=yes11713 else11714 ac_cv_lib_dl_dlopen=no11715 fi11716 rm -f core conftest.err conftest.$ac_objext \11717 conftest$ac_exeext conftest.$ac_ext11718 LIBS=$ac_check_lib_save_LIBS11719 fi11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511721 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11722 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11723 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11724 else11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&511726 $as_echo_n "checking for dlopen in -lsvld... " >&6; }11727 if ${ac_cv_lib_svld_dlopen+:} false; then :11728 $as_echo_n "(cached) " >&611729 else11730 ac_check_lib_save_LIBS=$LIBS11731 LIBS="-lsvld $LIBS"11732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11733 /* end confdefs.h. */11734 11735 /* Override any GCC internal prototype to avoid an error.11736 Use char because int might match the return type of a GCC11737 builtin and then its argument prototype would still apply. */11738 #ifdef __cplusplus11739 extern "C"11740 #endif11741 char dlopen ();11742 int11743 main ()11744 {11745 return dlopen ();11746 ;11747 return 0;11748 }11749 _ACEOF11750 if ac_fn_c_try_link "$LINENO"; then :11751 ac_cv_lib_svld_dlopen=yes11752 else11753 ac_cv_lib_svld_dlopen=no11754 fi11755 rm -f core conftest.err conftest.$ac_objext \11756 conftest$ac_exeext conftest.$ac_ext11757 LIBS=$ac_check_lib_save_LIBS11758 fi11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&511760 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }11761 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :11762 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld11763 else11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&511765 $as_echo_n "checking for dld_link in -ldld... " >&6; }11766 if ${ac_cv_lib_dld_dld_link+:} false; then :11767 $as_echo_n "(cached) " >&611768 else11769 ac_check_lib_save_LIBS=$LIBS11770 LIBS="-ldld $LIBS"11771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11772 /* end confdefs.h. */11773 11774 /* Override any GCC internal prototype to avoid an error.11775 Use char because int might match the return type of a GCC11776 builtin and then its argument prototype would still apply. */11777 #ifdef __cplusplus11778 extern "C"11779 #endif11780 char dld_link ();11781 int11782 main ()11783 {11784 return dld_link ();11785 ;11786 return 0;11787 }11788 _ACEOF11789 if ac_fn_c_try_link "$LINENO"; then :11790 ac_cv_lib_dld_dld_link=yes11791 else11792 ac_cv_lib_dld_dld_link=no11793 fi11794 rm -f core conftest.err conftest.$ac_objext \11795 conftest$ac_exeext conftest.$ac_ext11796 LIBS=$ac_check_lib_save_LIBS11797 fi11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&511799 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }11800 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :11801 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld11802 fi11803 11804 11805 fi11806 11807 11808 fi11809 11810 11811 fi11812 11813 11814 fi11815 11816 11817 fi11818 11819 ;;11820 esac11821 11822 if test no = "$lt_cv_dlopen"; then11823 enable_dlopen=no11824 else11825 enable_dlopen=yes11826 fi11827 11828 case $lt_cv_dlopen in11829 dlopen)11830 save_CPPFLAGS=$CPPFLAGS11831 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"11832 11833 save_LDFLAGS=$LDFLAGS11834 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"11835 11836 save_LIBS=$LIBS11837 LIBS="$lt_cv_dlopen_libs $LIBS"11838 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&511840 $as_echo_n "checking whether a program can dlopen itself... " >&6; }11841 if ${lt_cv_dlopen_self+:} false; then :11842 $as_echo_n "(cached) " >&611843 else11844 if test yes = "$cross_compiling"; then :11845 lt_cv_dlopen_self=cross11846 else11847 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211848 lt_status=$lt_dlunknown11849 cat > conftest.$ac_ext <<_LT_EOF11850 #line $LINENO "configure"11851 #include "confdefs.h"11852 11853 #if HAVE_DLFCN_H11854 #include <dlfcn.h>11855 #endif11856 11857 #include <stdio.h>11858 11859 #ifdef RTLD_GLOBAL11860 # define LT_DLGLOBAL RTLD_GLOBAL11861 #else11862 # ifdef DL_GLOBAL11863 # define LT_DLGLOBAL DL_GLOBAL11864 # else11865 # define LT_DLGLOBAL 011866 # endif11867 #endif11868 11869 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11870 find out it does not work in some platform. */11871 #ifndef LT_DLLAZY_OR_NOW11872 # ifdef RTLD_LAZY11873 # define LT_DLLAZY_OR_NOW RTLD_LAZY11874 # else11875 # ifdef DL_LAZY11876 # define LT_DLLAZY_OR_NOW DL_LAZY11877 # else11878 # ifdef RTLD_NOW11879 # define LT_DLLAZY_OR_NOW RTLD_NOW11880 # else11881 # ifdef DL_NOW11882 # define LT_DLLAZY_OR_NOW DL_NOW11883 # else11884 # define LT_DLLAZY_OR_NOW 011885 # endif11886 # endif11887 # endif11888 # endif11889 #endif11890 11891 /* When -fvisibility=hidden is used, assume the code has been annotated11892 correspondingly for the symbols needed. */11893 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))11894 int fnord () __attribute__((visibility("default")));11895 #endif11896 11897 int fnord () { return 42; }11898 int main ()11899 {11900 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);11901 int status = $lt_dlunknown;11902 11903 if (self)11904 {11905 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;11906 else11907 {11908 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;11909 else puts (dlerror ());11910 }11911 /* dlclose (self); */11912 }11913 else11914 puts (dlerror ());11915 11916 return status;11917 }11918 _LT_EOF11919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&511920 (eval $ac_link) 2>&511921 ac_status=$?11922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511923 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then11924 (./conftest; exit; ) >&5 2>/dev/null11925 lt_status=$?11926 case x$lt_status in11927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;11928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;11929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;11930 esac11931 else :11932 # compilation failed11933 lt_cv_dlopen_self=no11934 fi11935 fi11936 rm -fr conftest*11937 11938 11939 fi11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&511941 $as_echo "$lt_cv_dlopen_self" >&6; }11942 11943 if test yes = "$lt_cv_dlopen_self"; then11944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&511946 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }11947 if ${lt_cv_dlopen_self_static+:} false; then :11948 $as_echo_n "(cached) " >&611949 else11950 if test yes = "$cross_compiling"; then :11951 lt_cv_dlopen_self_static=cross11952 else11953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211954 lt_status=$lt_dlunknown11955 cat > conftest.$ac_ext <<_LT_EOF11956 #line $LINENO "configure"11957 #include "confdefs.h"11958 11959 #if HAVE_DLFCN_H11960 #include <dlfcn.h>11961 #endif11962 11963 #include <stdio.h>11964 11965 #ifdef RTLD_GLOBAL11966 # define LT_DLGLOBAL RTLD_GLOBAL11967 #else11968 # ifdef DL_GLOBAL11969 # define LT_DLGLOBAL DL_GLOBAL11970 # else11971 # define LT_DLGLOBAL 011972 # endif11973 #endif11974 11975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11976 find out it does not work in some platform. */11977 #ifndef LT_DLLAZY_OR_NOW11978 # ifdef RTLD_LAZY11979 # define LT_DLLAZY_OR_NOW RTLD_LAZY11980 # else11981 # ifdef DL_LAZY11982 # define LT_DLLAZY_OR_NOW DL_LAZY11983 # else11984 # ifdef RTLD_NOW11985 # define LT_DLLAZY_OR_NOW RTLD_NOW11986 # else11987 # ifdef DL_NOW11988 # define LT_DLLAZY_OR_NOW DL_NOW11989 # else11990 # define LT_DLLAZY_OR_NOW 011991 # endif11992 # endif11993 # endif11994 # endif11995 #endif11996 11997 /* When -fvisibility=hidden is used, assume the code has been annotated11998 correspondingly for the symbols needed. */11999 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))12000 int fnord () __attribute__((visibility("default")));12001 #endif12002 12003 int fnord () { return 42; }12004 int main ()12005 {12006 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);12007 int status = $lt_dlunknown;12008 12009 if (self)12010 {12011 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;12012 else12013 {12014 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;12015 else puts (dlerror ());12016 }12017 /* dlclose (self); */12018 }12019 else12020 puts (dlerror ());12021 12022 return status;12023 }12024 _LT_EOF12025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&512026 (eval $ac_link) 2>&512027 ac_status=$?12028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512029 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then12030 (./conftest; exit; ) >&5 2>/dev/null12031 lt_status=$?12032 case x$lt_status in12033 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;12034 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;12035 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;12036 esac12037 else :12038 # compilation failed12039 lt_cv_dlopen_self_static=no12040 fi12041 fi12042 rm -fr conftest*12043 12044 12045 fi12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&512047 $as_echo "$lt_cv_dlopen_self_static" >&6; }12048 fi12049 12050 CPPFLAGS=$save_CPPFLAGS12051 LDFLAGS=$save_LDFLAGS12052 LIBS=$save_LIBS12053 ;;12054 esac12055 12056 case $lt_cv_dlopen_self in12057 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;12058 *) enable_dlopen_self=unknown ;;12059 esac12060 12061 case $lt_cv_dlopen_self_static in12062 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;12063 *) enable_dlopen_self_static=unknown ;;12064 esac12065 fi12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 striplib=12084 old_striplib=12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&512086 $as_echo_n "checking whether stripping libraries is possible... " >&6; }12087 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then12088 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"12089 test -z "$striplib" && striplib="$STRIP --strip-unneeded"12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512091 $as_echo "yes" >&6; }12092 else12093 # FIXME - insert some real tests, host_os isn't really good enough12094 case $host_os in12095 darwin*)12096 if test -n "$STRIP"; then12097 striplib="$STRIP -x"12098 old_striplib="$STRIP -S"12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512100 $as_echo "yes" >&6; }12101 else12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512103 $as_echo "no" >&6; }12104 fi12105 ;;12106 *)12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512108 $as_echo "no" >&6; }12109 ;;12110 esac12111 fi12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 # Report what library types will actually be built12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&512126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&512128 $as_echo "$can_build_shared" >&6; }12129 12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&512131 $as_echo_n "checking whether to build shared libraries... " >&6; }12132 test no = "$can_build_shared" && enable_shared=no12133 12134 # On AIX, shared libraries and static libraries use the same namespace, and12135 # are all built from PIC.12136 case $host_os in12137 aix3*)12138 test yes = "$enable_shared" && enable_static=no12139 if test -n "$RANLIB"; then12140 archive_cmds="$archive_cmds~\$RANLIB \$lib"12141 postinstall_cmds='$RANLIB $lib'12142 fi12143 ;;12144 12145 aix[4-9]*)12146 if test ia64 != "$host_cpu"; then12147 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in12148 yes,aix,yes) ;; # shared object as lib.so file only12149 yes,svr4,*) ;; # shared object as lib.so archive member only12150 yes,*) enable_static=no ;; # shared object in lib.a archive as well12151 esac12152 fi12153 ;;12154 esac12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&512156 $as_echo "$enable_shared" >&6; }12157 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&512159 $as_echo_n "checking whether to build static libraries... " >&6; }12160 # Make sure either enable_shared or enable_static is yes.12161 test yes = "$enable_shared" || enable_static=yes12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&512163 $as_echo "$enable_static" >&6; }12164 12165 12166 12167 12168 fi12169 ac_ext=c12170 ac_cpp='$CPP $CPPFLAGS'12171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12173 ac_compiler_gnu=$ac_cv_c_compiler_gnu12174 12175 CC=$lt_save_CC12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 ac_config_commands="$ac_config_commands libtool"12192 12193 12194 12195 12196 # Only expand once:12197 12198 12199 12200 ac_ext=cpp12201 ac_cpp='$CXXCPP $CPPFLAGS'12202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12205 if test -z "$CXX"; then12206 if test -n "$CCC"; then12207 CXX=$CCC12208 else12209 if test -n "$ac_tool_prefix"; then12210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12211 do12212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.12213 set dummy $ac_tool_prefix$ac_prog; ac_word=$212214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512215 $as_echo_n "checking for $ac_word... " >&6; }12216 if ${ac_cv_prog_CXX+:} false; then :12217 $as_echo_n "(cached) " >&612218 else12219 if test -n "$CXX"; then12220 ac_cv_prog_CXX="$CXX" # Let the user override the test.12221 else12222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12223 for as_dir in $PATH12224 do12225 IFS=$as_save_IFS12226 test -z "$as_dir" && as_dir=.12227 for ac_exec_ext in '' $ac_executable_extensions; do12228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12229 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"12230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512231 break 212232 fi12233 done12234 done12235 IFS=$as_save_IFS12236 12237 fi12238 fi12239 CXX=$ac_cv_prog_CXX12240 if test -n "$CXX"; then12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&512242 $as_echo "$CXX" >&6; }12243 else12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512245 $as_echo "no" >&6; }12246 fi12247 12248 12249 test -n "$CXX" && break12250 done12251 fi12252 if test -z "$CXX"; then12253 ac_ct_CXX=$CXX12254 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12255 do12256 # Extract the first word of "$ac_prog", so it can be a program name with args.12257 set dummy $ac_prog; ac_word=$212258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512259 $as_echo_n "checking for $ac_word... " >&6; }12260 if ${ac_cv_prog_ac_ct_CXX+:} false; then :12261 $as_echo_n "(cached) " >&612262 else12263 if test -n "$ac_ct_CXX"; then12264 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.12265 else12266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12267 for as_dir in $PATH12268 do12269 IFS=$as_save_IFS12270 test -z "$as_dir" && as_dir=.12271 for ac_exec_ext in '' $ac_executable_extensions; do12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12273 ac_cv_prog_ac_ct_CXX="$ac_prog"12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512275 break 212276 fi12277 done12278 done12279 IFS=$as_save_IFS12280 12281 fi12282 fi12283 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX12284 if test -n "$ac_ct_CXX"; then12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&512286 $as_echo "$ac_ct_CXX" >&6; }12287 else12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512289 $as_echo "no" >&6; }12290 fi12291 12292 12293 test -n "$ac_ct_CXX" && break12294 done12295 12296 if test "x$ac_ct_CXX" = x; then12297 CXX="g++"12298 else12299 case $cross_compiling:$ac_tool_warned in12300 yes:)12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&512302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}12303 ac_tool_warned=yes ;;12304 esac12305 CXX=$ac_ct_CXX12306 fi12307 fi12308 12309 fi12310 fi12311 # Provide some information about the compiler.12312 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&512313 set X $ac_compile12314 ac_compiler=$212315 for ac_option in --version -v -V -qversion; do12316 { { ac_try="$ac_compiler $ac_option >&5"12317 case "(($ac_try" in12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;12319 *) ac_try_echo=$ac_try;;12320 esac12321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""12322 $as_echo "$ac_try_echo"; } >&512323 (eval "$ac_compiler $ac_option >&5") 2>conftest.err12324 ac_status=$?12325 if test -s conftest.err; then12326 sed '10a\12327 ... rest of stderr output deleted ...12328 10q' conftest.err >conftest.er112329 cat conftest.er1 >&512330 fi12331 rm -f conftest.er1 conftest.err12332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512333 test $ac_status = 0; }12334 done12335 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&512337 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }12338 if ${ac_cv_cxx_compiler_gnu+:} false; then :12339 $as_echo_n "(cached) " >&612340 else12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12342 /* end confdefs.h. */12343 12344 int12345 main ()12346 {12347 #ifndef __GNUC__12348 choke me12349 #endif12350 12351 ;12352 return 0;12353 }12354 _ACEOF12355 if ac_fn_cxx_try_compile "$LINENO"; then :12356 ac_compiler_gnu=yes12357 else12358 ac_compiler_gnu=no12359 fi12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12361 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu12362 12363 fi12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&512365 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }12366 if test $ac_compiler_gnu = yes; then12367 GXX=yes12368 else12369 GXX=12370 fi12371 ac_test_CXXFLAGS=${CXXFLAGS+set}12372 ac_save_CXXFLAGS=$CXXFLAGS12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&512374 $as_echo_n "checking whether $CXX accepts -g... " >&6; }12375 if ${ac_cv_prog_cxx_g+:} false; then :12376 $as_echo_n "(cached) " >&612377 else12378 ac_save_cxx_werror_flag=$ac_cxx_werror_flag12379 ac_cxx_werror_flag=yes12380 ac_cv_prog_cxx_g=no12381 CXXFLAGS="-g"12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12383 /* end confdefs.h. */12384 12385 int12386 main ()12387 {12388 12389 ;12390 return 0;12391 }12392 _ACEOF12393 if ac_fn_cxx_try_compile "$LINENO"; then :12394 ac_cv_prog_cxx_g=yes12395 else12396 CXXFLAGS=""12397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12398 /* end confdefs.h. */12399 12400 int12401 main ()12402 {12403 12404 ;12405 return 0;12406 }12407 _ACEOF12408 if ac_fn_cxx_try_compile "$LINENO"; then :12409 12410 else12411 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12412 CXXFLAGS="-g"12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12414 /* end confdefs.h. */12415 12416 int12417 main ()12418 {12419 12420 ;12421 return 0;12422 }12423 _ACEOF12424 if ac_fn_cxx_try_compile "$LINENO"; then :12425 ac_cv_prog_cxx_g=yes12426 fi12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12428 fi12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12430 fi12431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12432 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12433 fi12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&512435 $as_echo "$ac_cv_prog_cxx_g" >&6; }12436 if test "$ac_test_CXXFLAGS" = set; then12437 CXXFLAGS=$ac_save_CXXFLAGS12438 elif test $ac_cv_prog_cxx_g = yes; then12439 if test "$GXX" = yes; then12440 CXXFLAGS="-g -O2"12441 else12442 CXXFLAGS="-g"12443 fi12444 else12445 if test "$GXX" = yes; then12446 CXXFLAGS="-O2"12447 else12448 CXXFLAGS=12449 fi12450 fi12451 ac_ext=c12452 ac_cpp='$CPP $CPPFLAGS'12453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12455 ac_compiler_gnu=$ac_cv_c_compiler_gnu12456 12457 depcc="$CXX" am_compiler_list=12458 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&512460 $as_echo_n "checking dependency style of $depcc... " >&6; }12461 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :12462 $as_echo_n "(cached) " >&612463 else12464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then12465 # We make a subdir and do the tests there. Otherwise we can end up12466 # making bogus files that we don't know about and never remove. For12467 # instance it was reported that on HP-UX the gcc test will end up12468 # making a dummy file named 'D' -- because '-MD' means "put the output12469 # in D".12470 rm -rf conftest.dir12471 mkdir conftest.dir12472 # Copy depcomp to subdir because otherwise we won't find it if we're12473 # using a relative directory.12474 cp "$am_depcomp" conftest.dir12475 cd conftest.dir12476 # We will build objects and dependencies in a subdirectory because12477 # it helps to detect inapplicable dependency modes. For instance12478 # both Tru64's cc and ICC support -MD to output dependencies as a12479 # side effect of compilation, but ICC will put the dependencies in12480 # the current directory while Tru64 will put them in the object12481 # directory.12482 mkdir sub12483 12484 am_cv_CXX_dependencies_compiler_type=none12485 if test "$am_compiler_list" = ""; then12486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`12487 fi12488 am__universal=false12489 case " $depcc " in #(12490 *\ -arch\ *\ -arch\ *) am__universal=true ;;12491 esac12492 12493 for depmode in $am_compiler_list; do12494 # Setup a source with many dependencies, because some compilers12495 # like to wrap large dependency lists on column 80 (with \), and12496 # we should not choose a depcomp mode which is confused by this.12497 #12498 # We need to recreate these files for each test, as the compiler may12499 # overwrite some of them when testing with obscure command lines.12500 # This happens at least with the AIX C compiler.12501 : > sub/conftest.c12502 for i in 1 2 3 4 5 6; do12503 echo '#include "conftst'$i'.h"' >> sub/conftest.c12504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with12505 # Solaris 10 /bin/sh.12506 echo '/* dummy */' > sub/conftst$i.h12507 done12508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf12509 12510 # We check with '-c' and '-o' for the sake of the "dashmstdout"12511 # mode. It turns out that the SunPro C++ compiler does not properly12512 # handle '-M -o', and we need to detect this. Also, some Intel12513 # versions had trouble with output in subdirs.12514 am__obj=sub/conftest.${OBJEXT-o}12515 am__minus_obj="-o $am__obj"12516 case $depmode in12517 gcc)12518 # This depmode causes a compiler race in universal mode.12519 test "$am__universal" = false || continue12520 ;;12521 nosideeffect)12522 # After this tag, mechanisms are not by side-effect, so they'll12523 # only be used when explicitly requested.12524 if test "x$enable_dependency_tracking" = xyes; then12525 continue12526 else12527 break12528 fi12529 ;;12530 msvc7 | msvc7msys | msvisualcpp | msvcmsys)12531 # This compiler won't grok '-c -o', but also, the minuso test has12532 # not run yet. These depmodes are late enough in the game, and12533 # so weak that their functioning should not be impacted.12534 am__obj=conftest.${OBJEXT-o}12535 am__minus_obj=12536 ;;12537 none) break ;;12538 esac12539 if depmode=$depmode \12540 source=sub/conftest.c object=$am__obj \12541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \12542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \12543 >/dev/null 2>conftest.err &&12544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&12545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&12546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&12547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then12548 # icc doesn't choke on unknown options, it will just issue warnings12549 # or remarks (even with -Werror). So we grep stderr for any message12550 # that says an option was ignored or not supported.12551 # When given -MP, icc 7.0 and 7.1 complain thusly:12552 # icc: Command line warning: ignoring option '-M'; no argument required12553 # The diagnosis changed in icc 8.0:12554 # icc: Command line remark: option '-MP' not supported12555 if (grep 'ignoring option' conftest.err ||12556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else12557 am_cv_CXX_dependencies_compiler_type=$depmode12558 break12559 fi12560 fi12561 done12562 12563 cd ..12564 rm -rf conftest.dir12565 else12566 am_cv_CXX_dependencies_compiler_type=none12567 fi12568 12569 fi12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&512571 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }12572 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type12573 12574 if12575 test "x$enable_dependency_tracking" != xno \12576 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then12577 am__fastdepCXX_TRUE=12578 am__fastdepCXX_FALSE='#'12579 else12580 am__fastdepCXX_TRUE='#'12581 am__fastdepCXX_FALSE=12582 fi12583 12584 12585 12586 12587 func_stripname_cnf ()12588 {12589 case $2 in12590 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;12591 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;12592 esac12593 } # func_stripname_cnf12594 12595 if test -n "$CXX" && ( test no != "$CXX" &&12596 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||12597 (test g++ != "$CXX"))); then12598 ac_ext=cpp12599 ac_cpp='$CXXCPP $CPPFLAGS'12600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&512604 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }12605 if test -z "$CXXCPP"; then12606 if ${ac_cv_prog_CXXCPP+:} false; then :12607 $as_echo_n "(cached) " >&612608 else12609 # Double quotes because CXXCPP needs to be expanded12610 for CXXCPP in "$CXX -E" "/lib/cpp"12611 do12612 ac_preproc_ok=false12613 for ac_cxx_preproc_warn_flag in '' yes12614 do12615 # Use a header file that comes with gcc, so configuring glibc12616 # with a fresh cross-compiler works.12617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12618 # <limits.h> exists even on freestanding compilers.12619 # On the NeXT, cc -E runs the code through the compiler's parser,12620 # not just through cpp. "Syntax error" is here to catch this case.12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12622 /* end confdefs.h. */12623 #ifdef __STDC__12624 # include <limits.h>12625 #else12626 # include <assert.h>12627 #endif12628 Syntax error12629 _ACEOF12630 if ac_fn_cxx_try_cpp "$LINENO"; then :12631 12632 else12633 # Broken: fails on valid input.12634 continue12635 fi12636 rm -f conftest.err conftest.i conftest.$ac_ext12637 12638 # OK, works on sane cases. Now check whether nonexistent headers12639 # can be detected and how.12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12641 /* end confdefs.h. */12642 #include <ac_nonexistent.h>12643 _ACEOF12644 if ac_fn_cxx_try_cpp "$LINENO"; then :12645 # Broken: success on invalid input.12646 continue12647 else12648 # Passes both tests.12649 ac_preproc_ok=:12650 break12651 fi12652 rm -f conftest.err conftest.i conftest.$ac_ext12653 12654 done12655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12656 rm -f conftest.i conftest.err conftest.$ac_ext12657 if $ac_preproc_ok; then :12658 break12659 fi12660 12661 done12662 ac_cv_prog_CXXCPP=$CXXCPP12663 12664 fi12665 CXXCPP=$ac_cv_prog_CXXCPP12666 else12667 ac_cv_prog_CXXCPP=$CXXCPP12668 fi12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&512670 $as_echo "$CXXCPP" >&6; }12671 ac_preproc_ok=false12672 for ac_cxx_preproc_warn_flag in '' yes12673 do12674 # Use a header file that comes with gcc, so configuring glibc12675 # with a fresh cross-compiler works.12676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12677 # <limits.h> exists even on freestanding compilers.12678 # On the NeXT, cc -E runs the code through the compiler's parser,12679 # not just through cpp. "Syntax error" is here to catch this case.12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12681 /* end confdefs.h. */12682 #ifdef __STDC__12683 # include <limits.h>12684 #else12685 # include <assert.h>12686 #endif12687 Syntax error12688 _ACEOF12689 if ac_fn_cxx_try_cpp "$LINENO"; then :12690 12691 else12692 # Broken: fails on valid input.12693 continue12694 fi12695 rm -f conftest.err conftest.i conftest.$ac_ext12696 12697 # OK, works on sane cases. Now check whether nonexistent headers12698 # can be detected and how.12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12700 /* end confdefs.h. */12701 #include <ac_nonexistent.h>12702 _ACEOF12703 if ac_fn_cxx_try_cpp "$LINENO"; then :12704 # Broken: success on invalid input.12705 continue12706 else12707 # Passes both tests.12708 ac_preproc_ok=:12709 break12710 fi12711 rm -f conftest.err conftest.i conftest.$ac_ext12712 12713 done12714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12715 rm -f conftest.i conftest.err conftest.$ac_ext12716 if $ac_preproc_ok; then :12717 12718 else12719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&512720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}12721 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check12722 See \`config.log' for more details" "$LINENO" 5; }12723 fi12724 12725 ac_ext=c12726 ac_cpp='$CPP $CPPFLAGS'12727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12729 ac_compiler_gnu=$ac_cv_c_compiler_gnu12730 12731 else12732 _lt_caught_CXX_error=yes12733 fi12734 12735 ac_ext=cpp12736 ac_cpp='$CXXCPP $CPPFLAGS'12737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12740 12741 archive_cmds_need_lc_CXX=no12742 allow_undefined_flag_CXX=12743 always_export_symbols_CXX=no12744 archive_expsym_cmds_CXX=12745 compiler_needs_object_CXX=no12746 export_dynamic_flag_spec_CXX=12747 hardcode_direct_CXX=no12748 hardcode_direct_absolute_CXX=no12749 hardcode_libdir_flag_spec_CXX=12750 hardcode_libdir_separator_CXX=12751 hardcode_minus_L_CXX=no12752 hardcode_shlibpath_var_CXX=unsupported12753 hardcode_automatic_CXX=no12754 inherit_rpath_CXX=no12755 module_cmds_CXX=12756 module_expsym_cmds_CXX=12757 link_all_deplibs_CXX=unknown12758 old_archive_cmds_CXX=$old_archive_cmds12759 reload_flag_CXX=$reload_flag12760 reload_cmds_CXX=$reload_cmds12761 no_undefined_flag_CXX=12762 whole_archive_flag_spec_CXX=12763 enable_shared_with_static_runtimes_CXX=no12764 12765 # Source file extension for C++ test sources.12766 ac_ext=cpp12767 12768 # Object file extension for compiled C++ test sources.12769 objext=o12770 objext_CXX=$objext12771 12772 # No sense in running all these tests if we already determined that12773 # the CXX compiler isn't working. Some variables (like enable_shared)12774 # are currently assumed to apply to all compilers on this platform,12775 # and will be corrupted by setting them based on a non-working compiler.12776 if test yes != "$_lt_caught_CXX_error"; then12777 # Code to be used in simple compile tests12778 lt_simple_compile_test_code="int some_variable = 0;"12779 12780 # Code to be used in simple link tests12781 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'12782 12783 # ltmain only uses $CC for tagged configurations so make sure $CC is set.12784 12785 12786 12787 12788 12789 12790 # If no C compiler was specified, use CC.12791 LTCC=${LTCC-"$CC"}12792 12793 # If no C compiler flags were specified, use CFLAGS.12794 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}12795 12796 # Allow CC to be a program name with arguments.12797 compiler=$CC12798 12799 12800 # save warnings/boilerplate of simple test code12801 ac_outfile=conftest.$ac_objext12802 echo "$lt_simple_compile_test_code" >conftest.$ac_ext12803 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12804 _lt_compiler_boilerplate=`cat conftest.err`12805 $RM conftest*12806 12807 ac_outfile=conftest.$ac_objext12808 echo "$lt_simple_link_test_code" >conftest.$ac_ext12809 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12810 _lt_linker_boilerplate=`cat conftest.err`12811 $RM -r conftest*12812 12813 12814 # Allow CC to be a program name with arguments.12815 lt_save_CC=$CC12816 lt_save_CFLAGS=$CFLAGS12817 lt_save_LD=$LD12818 lt_save_GCC=$GCC12819 GCC=$GXX12820 lt_save_with_gnu_ld=$with_gnu_ld12821 lt_save_path_LD=$lt_cv_path_LD12822 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then12823 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx12824 else12825 $as_unset lt_cv_prog_gnu_ld12826 fi12827 if test -n "${lt_cv_path_LDCXX+set}"; then12828 lt_cv_path_LD=$lt_cv_path_LDCXX12829 else12830 $as_unset lt_cv_path_LD12831 fi12832 test -z "${LDCXX+set}" || LD=$LDCXX12833 CC=${CXX-"c++"}12834 CFLAGS=$CXXFLAGS12835 compiler=$CC12836 compiler_CXX=$CC12837 func_cc_basename $compiler12838 cc_basename=$func_cc_basename_result12839 12840 12841 if test -n "$compiler"; then12842 # We don't want -fno-exception when compiling C++ code, so set the12843 # no_builtin_flag separately12844 if test yes = "$GXX"; then12845 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'12846 else12847 lt_prog_compiler_no_builtin_flag_CXX=12848 fi12849 12850 if test yes = "$GXX"; then12851 # Set up default GNU C++ configuration12852 12853 12854 12855 # Check whether --with-gnu-ld was given.12856 if test "${with_gnu_ld+set}" = set; then :12857 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes12858 else12859 with_gnu_ld=no12860 fi12861 12862 ac_prog=ld12863 if test yes = "$GCC"; then12864 # Check if gcc -print-prog-name=ld gives a path.12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&512866 $as_echo_n "checking for ld used by $CC... " >&6; }12867 case $host in12868 *-*-mingw*)12869 # gcc leaves a trailing carriage return, which upsets mingw12870 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;12871 *)12872 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;12873 esac12874 case $ac_prog in12875 # Accept absolute paths.12876 [\\/]* | ?:[\\/]*)12877 re_direlt='/[^/][^/]*/\.\./'12878 # Canonicalize the pathname of ld12879 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`12880 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do12881 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`12882 done12883 test -z "$LD" && LD=$ac_prog12884 ;;12885 "")12886 # If it fails, then pretend we aren't using GCC.12887 ac_prog=ld12888 ;;12889 *)12890 # If it is relative, then search for the first ld in PATH.12891 with_gnu_ld=unknown12892 ;;12893 esac12894 elif test yes = "$with_gnu_ld"; then12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&512896 $as_echo_n "checking for GNU ld... " >&6; }12897 else12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&512899 $as_echo_n "checking for non-GNU ld... " >&6; }12900 fi12901 if ${lt_cv_path_LD+:} false; then :12902 $as_echo_n "(cached) " >&612903 else12904 if test -z "$LD"; then12905 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR12906 for ac_dir in $PATH; do12907 IFS=$lt_save_ifs12908 test -z "$ac_dir" && ac_dir=.12909 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then12910 lt_cv_path_LD=$ac_dir/$ac_prog12911 # Check to see if the program is GNU ld. I'd rather use --version,12912 # but apparently some variants of GNU ld only accept -v.12913 # Break only if it was the GNU/non-GNU ld that we prefer.12914 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in12915 *GNU* | *'with BFD'*)12916 test no != "$with_gnu_ld" && break12917 ;;12918 *)12919 test yes != "$with_gnu_ld" && break12920 ;;12921 esac12922 fi12923 done12924 IFS=$lt_save_ifs12925 else12926 lt_cv_path_LD=$LD # Let the user override the test with a path.12927 fi12928 fi12929 12930 LD=$lt_cv_path_LD12931 if test -n "$LD"; then12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&512933 $as_echo "$LD" >&6; }12934 else12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512936 $as_echo "no" >&6; }12937 fi12938 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 512939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&512940 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }12941 if ${lt_cv_prog_gnu_ld+:} false; then :12942 $as_echo_n "(cached) " >&612943 else12944 # I'd rather use --version here, but apparently some GNU lds only accept -v.12945 case `$LD -v 2>&1 </dev/null` in12946 *GNU* | *'with BFD'*)12947 lt_cv_prog_gnu_ld=yes12948 ;;12949 *)12950 lt_cv_prog_gnu_ld=no12951 ;;12952 esac12953 fi12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&512955 $as_echo "$lt_cv_prog_gnu_ld" >&6; }12956 with_gnu_ld=$lt_cv_prog_gnu_ld12957 12958 12959 12960 12961 12962 12963 12964 # Check if GNU C++ uses GNU ld as the underlying linker, since the12965 # archiving commands below assume that GNU ld is being used.12966 if test yes = "$with_gnu_ld"; then12967 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'12968 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'12969 12970 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'12971 export_dynamic_flag_spec_CXX='$wl--export-dynamic'12972 12973 # If archive_cmds runs LD, not CC, wlarc should be empty12974 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to12975 # investigate it a little bit more. (MM)12976 wlarc='$wl'12977 12978 # ancient GNU ld didn't support --whole-archive et. al.12979 if eval "`$CC -print-prog-name=ld` --help 2>&1" |12980 $GREP 'no-whole-archive' > /dev/null; then12981 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'12982 else12983 whole_archive_flag_spec_CXX=12984 fi12985 else12986 with_gnu_ld=no12987 wlarc=12988 12989 # A generic and very simple default shared library creation12990 # command for GNU C++ for the case where it uses the native12991 # linker, instead of GNU ld. If possible, this setting should12992 # overridden to take advantage of the native linker features on12993 # the platform it is being used on.12994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'12995 fi12996 12997 # Commands to make compiler produce verbose output that lists12998 # what "hidden" libraries, object files and flags are used when12999 # linking a shared library.13000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13001 13002 else13003 GXX=no13004 with_gnu_ld=no13005 wlarc=13006 fi13007 13008 # PORTME: fill in a description of your system's C++ link characteristics13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&513010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }13011 ld_shlibs_CXX=yes13012 case $host_os in13013 aix3*)13014 # FIXME: insert proper C++ library support13015 ld_shlibs_CXX=no13016 ;;13017 aix[4-9]*)13018 if test ia64 = "$host_cpu"; then13019 # On IA64, the linker does run time linking by default, so we don't13020 # have to do anything special.13021 aix_use_runtimelinking=no13022 exp_sym_flag='-Bexport'13023 no_entry_flag=13024 else13025 aix_use_runtimelinking=no13026 13027 # Test if we are trying to use run time linking or normal13028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we13029 # have runtime linking enabled, and use it for executables.13030 # For shared libraries, we enable/disable runtime linking13031 # depending on the kind of the shared library created -13032 # when "with_aix_soname,aix_use_runtimelinking" is:13033 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables13034 # "aix,yes" lib.so shared, rtl:yes, for executables13035 # lib.a static archive13036 # "both,no" lib.so.V(shr.o) shared, rtl:yes13037 # lib.a(lib.so.V) shared, rtl:no, for executables13038 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables13039 # lib.a(lib.so.V) shared, rtl:no13040 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables13041 # lib.a static archive13042 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)13043 for ld_flag in $LDFLAGS; do13044 case $ld_flag in13045 *-brtl*)13046 aix_use_runtimelinking=yes13047 break13048 ;;13049 esac13050 done13051 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then13052 # With aix-soname=svr4, we create the lib.so.V shared archives only,13053 # so we don't have lib.a shared libs to link our executables.13054 # We have to force runtime linking in this case.13055 aix_use_runtimelinking=yes13056 LDFLAGS="$LDFLAGS -Wl,-brtl"13057 fi13058 ;;13059 esac13060 13061 exp_sym_flag='-bexport'13062 no_entry_flag='-bnoentry'13063 fi13064 13065 # When large executables or shared objects are built, AIX ld can13066 # have problems creating the table of contents. If linking a library13067 # or program results in "error TOC overflow" add -mminimal-toc to13068 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not13069 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.13070 13071 archive_cmds_CXX=''13072 hardcode_direct_CXX=yes13073 hardcode_direct_absolute_CXX=yes13074 hardcode_libdir_separator_CXX=':'13075 link_all_deplibs_CXX=yes13076 file_list_spec_CXX='$wl-f,'13077 case $with_aix_soname,$aix_use_runtimelinking in13078 aix,*) ;; # no import file13079 svr4,* | *,yes) # use import file13080 # The Import File defines what to hardcode.13081 hardcode_direct_CXX=no13082 hardcode_direct_absolute_CXX=no13083 ;;13084 esac13085 13086 if test yes = "$GXX"; then13087 case $host_os in aix4.[012]|aix4.[012].*)13088 # We only want to do this on AIX 4.2 and lower, the check13089 # below for broken collect2 doesn't work under 4.3+13090 collect2name=`$CC -print-prog-name=collect2`13091 if test -f "$collect2name" &&13092 strings "$collect2name" | $GREP resolve_lib_name >/dev/null13093 then13094 # We have reworked collect213095 :13096 else13097 # We have old collect213098 hardcode_direct_CXX=unsupported13099 # It fails to find uninstalled libraries when the uninstalled13100 # path is not listed in the libpath. Setting hardcode_minus_L13101 # to unsupported forces relinking13102 hardcode_minus_L_CXX=yes13103 hardcode_libdir_flag_spec_CXX='-L$libdir'13104 hardcode_libdir_separator_CXX=13105 fi13106 esac13107 shared_flag='-shared'13108 if test yes = "$aix_use_runtimelinking"; then13109 shared_flag=$shared_flag' $wl-G'13110 fi13111 # Need to ensure runtime linking is disabled for the traditional13112 # shared library, or the linker may eventually find shared libraries13113 # /with/ Import File - we do not want to mix them.13114 shared_flag_aix='-shared'13115 shared_flag_svr4='-shared $wl-G'13116 else13117 # not using gcc13118 if test ia64 = "$host_cpu"; then13119 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release13120 # chokes on -Wl,-G. The following line is correct:13121 shared_flag='-G'13122 else13123 if test yes = "$aix_use_runtimelinking"; then13124 shared_flag='$wl-G'13125 else13126 shared_flag='$wl-bM:SRE'13127 fi13128 shared_flag_aix='$wl-bM:SRE'13129 shared_flag_svr4='$wl-G'13130 fi13131 fi13132 13133 export_dynamic_flag_spec_CXX='$wl-bexpall'13134 # It seems that -bexpall does not export symbols beginning with13135 # underscore (_), so it is better to generate a list of symbols to13136 # export.13137 always_export_symbols_CXX=yes13138 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then13139 # Warning - without using the other runtime loading flags (-brtl),13140 # -berok will link without error, but may produce a broken library.13141 # The "-G" linker flag allows undefined symbols.13142 no_undefined_flag_CXX='-bernotok'13143 # Determine the default libpath from the value encoded in an empty13144 # executable.13145 if test set = "${lt_cv_aix_libpath+set}"; then13146 aix_libpath=$lt_cv_aix_libpath13147 else13148 if ${lt_cv_aix_libpath__CXX+:} false; then :13149 $as_echo_n "(cached) " >&613150 else13151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13152 /* end confdefs.h. */13153 13154 int13155 main ()13156 {13157 13158 ;13159 return 0;13160 }13161 _ACEOF13162 if ac_fn_cxx_try_link "$LINENO"; then :13163 13164 lt_aix_libpath_sed='13165 /Import File Strings/,/^$/ {13166 /^0/ {13167 s/^0 *\([^ ]*\) *$/\1/13168 p13169 }13170 }'13171 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13172 # Check for a 64-bit object if we didn't find anything.13173 if test -z "$lt_cv_aix_libpath__CXX"; then13174 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13175 fi13176 fi13177 rm -f core conftest.err conftest.$ac_objext \13178 conftest$ac_exeext conftest.$ac_ext13179 if test -z "$lt_cv_aix_libpath__CXX"; then13180 lt_cv_aix_libpath__CXX=/usr/lib:/lib13181 fi13182 13183 fi13184 13185 aix_libpath=$lt_cv_aix_libpath__CXX13186 fi13187 13188 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13189 13190 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag13191 else13192 if test ia64 = "$host_cpu"; then13193 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'13194 allow_undefined_flag_CXX="-z nodefs"13195 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"13196 else13197 # Determine the default libpath from the value encoded in an13198 # empty executable.13199 if test set = "${lt_cv_aix_libpath+set}"; then13200 aix_libpath=$lt_cv_aix_libpath13201 else13202 if ${lt_cv_aix_libpath__CXX+:} false; then :13203 $as_echo_n "(cached) " >&613204 else13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13206 /* end confdefs.h. */13207 13208 int13209 main ()13210 {13211 13212 ;13213 return 0;13214 }13215 _ACEOF13216 if ac_fn_cxx_try_link "$LINENO"; then :13217 13218 lt_aix_libpath_sed='13219 /Import File Strings/,/^$/ {13220 /^0/ {13221 s/^0 *\([^ ]*\) *$/\1/13222 p13223 }13224 }'13225 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13226 # Check for a 64-bit object if we didn't find anything.13227 if test -z "$lt_cv_aix_libpath__CXX"; then13228 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13229 fi13230 fi13231 rm -f core conftest.err conftest.$ac_objext \13232 conftest$ac_exeext conftest.$ac_ext13233 if test -z "$lt_cv_aix_libpath__CXX"; then13234 lt_cv_aix_libpath__CXX=/usr/lib:/lib13235 fi13236 13237 fi13238 13239 aix_libpath=$lt_cv_aix_libpath__CXX13240 fi13241 13242 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13243 # Warning - without using the other run time loading flags,13244 # -berok will link without error, but may produce a broken library.13245 no_undefined_flag_CXX=' $wl-bernotok'13246 allow_undefined_flag_CXX=' $wl-berok'13247 if test yes = "$with_gnu_ld"; then13248 # We only use this code for GNU lds that support --whole-archive.13249 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13250 else13251 # Exported symbols can be pulled into shared objects from archives13252 whole_archive_flag_spec_CXX='$convenience'13253 fi13254 archive_cmds_need_lc_CXX=yes13255 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'13256 # -brtl affects multiple linker settings, -berok does not and is overridden later13257 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'13258 if test svr4 != "$with_aix_soname"; then13259 # This is similar to how AIX traditionally builds its shared13260 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.13261 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'13262 fi13263 if test aix != "$with_aix_soname"; then13264 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'13265 else13266 # used by -dlpreopen to get the symbols13267 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'13268 fi13269 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'13270 fi13271 fi13272 ;;13273 13274 beos*)13275 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then13276 allow_undefined_flag_CXX=unsupported13277 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc13278 # support --undefined. This deserves some investigation. FIXME13279 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13280 else13281 ld_shlibs_CXX=no13282 fi13283 ;;13284 13285 chorus*)13286 case $cc_basename in13287 *)13288 # FIXME: insert proper C++ library support13289 ld_shlibs_CXX=no13290 ;;13291 esac13292 ;;13293 13294 cygwin* | mingw* | pw32* | cegcc*)13295 case $GXX,$cc_basename in13296 ,cl* | no,cl*)13297 # Native MSVC13298 # hardcode_libdir_flag_spec is actually meaningless, as there is13299 # no search path for DLLs.13300 hardcode_libdir_flag_spec_CXX=' '13301 allow_undefined_flag_CXX=unsupported13302 always_export_symbols_CXX=yes13303 file_list_spec_CXX='@'13304 # Tell ltmain to make .lib files, not .a files.13305 libext=lib13306 # Tell ltmain to make .dll files, not .so files.13307 shrext_cmds=.dll13308 # FIXME: Setting linknames here is a bad hack.13309 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='13310 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13311 cp "$export_symbols" "$output_objdir/$soname.def";13312 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";13313 else13314 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;13315 fi~13316 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~13317 linknames='13318 # The linker will not automatically build a static lib if we build a DLL.13319 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'13320 enable_shared_with_static_runtimes_CXX=yes13321 # Don't use ranlib13322 old_postinstall_cmds_CXX='chmod 644 $oldlib'13323 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~13324 lt_tool_outputfile="@TOOL_OUTPUT@"~13325 case $lt_outputfile in13326 *.exe|*.EXE) ;;13327 *)13328 lt_outputfile=$lt_outputfile.exe13329 lt_tool_outputfile=$lt_tool_outputfile.exe13330 ;;13331 esac~13332 func_to_tool_file "$lt_outputfile"~13333 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then13334 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;13335 $RM "$lt_outputfile.manifest";13336 fi'13337 ;;13338 *)13339 # g++13340 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,13341 # as there is no search path for DLLs.13342 hardcode_libdir_flag_spec_CXX='-L$libdir'13343 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'13344 allow_undefined_flag_CXX=unsupported13345 always_export_symbols_CXX=no13346 enable_shared_with_static_runtimes_CXX=yes13347 13348 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then13349 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'13350 # If the export-symbols file already is a .def file, use it as13351 # is; otherwise, prepend EXPORTS...13352 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13353 cp $export_symbols $output_objdir/$soname.def;13354 else13355 echo EXPORTS > $output_objdir/$soname.def;13356 cat $export_symbols >> $output_objdir/$soname.def;13357 fi~13358 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'13359 else13360 ld_shlibs_CXX=no13361 fi13362 ;;13363 esac13364 ;;13365 darwin* | rhapsody*)13366 13367 13368 archive_cmds_need_lc_CXX=no13369 hardcode_direct_CXX=no13370 hardcode_automatic_CXX=yes13371 hardcode_shlibpath_var_CXX=unsupported13372 if test yes = "$lt_cv_ld_force_load"; then13373 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'13374 13375 else13376 whole_archive_flag_spec_CXX=''13377 fi13378 link_all_deplibs_CXX=yes13379 allow_undefined_flag_CXX=$_lt_dar_allow_undefined13380 case $cc_basename in13381 ifort*|nagfor*) _lt_dar_can_shared=yes ;;13382 *) _lt_dar_can_shared=$GCC ;;13383 esac13384 if test yes = "$_lt_dar_can_shared"; then13385 output_verbose_link_cmd=func_echo_all13386 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"13387 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"13388 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"13389 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"13390 if test yes != "$lt_cv_apple_cc_single_mod"; then13391 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"13392 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"13393 fi13394 13395 else13396 ld_shlibs_CXX=no13397 fi13398 13399 ;;13400 13401 os2*)13402 hardcode_libdir_flag_spec_CXX='-L$libdir'13403 hardcode_minus_L_CXX=yes13404 allow_undefined_flag_CXX=unsupported13405 shrext_cmds=.dll13406 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13407 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13408 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13409 $ECHO EXPORTS >> $output_objdir/$libname.def~13410 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~13411 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13412 emximp -o $lib $output_objdir/$libname.def'13413 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13416 $ECHO EXPORTS >> $output_objdir/$libname.def~13417 prefix_cmds="$SED"~13418 if test EXPORTS = "`$SED 1q $export_symbols`"; then13419 prefix_cmds="$prefix_cmds -e 1d";13420 fi~13421 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~13422 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~13423 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13424 emximp -o $lib $output_objdir/$libname.def'13425 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'13426 enable_shared_with_static_runtimes_CXX=yes13427 ;;13428 13429 dgux*)13430 case $cc_basename in13431 ec++*)13432 # FIXME: insert proper C++ library support13433 ld_shlibs_CXX=no13434 ;;13435 ghcx*)13436 # Green Hills C++ Compiler13437 # FIXME: insert proper C++ library support13438 ld_shlibs_CXX=no13439 ;;13440 *)13441 # FIXME: insert proper C++ library support13442 ld_shlibs_CXX=no13443 ;;13444 esac13445 ;;13446 13447 freebsd2.*)13448 # C++ shared libraries reported to be fairly broken before13449 # switch to ELF13450 ld_shlibs_CXX=no13451 ;;13452 13453 freebsd-elf*)13454 archive_cmds_need_lc_CXX=no13455 ;;13456 13457 freebsd* | dragonfly*)13458 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF13459 # conventions13460 ld_shlibs_CXX=yes13461 ;;13462 13463 haiku*)13464 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13465 link_all_deplibs_CXX=yes13466 ;;13467 13468 hpux9*)13469 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13470 hardcode_libdir_separator_CXX=:13471 export_dynamic_flag_spec_CXX='$wl-E'13472 hardcode_direct_CXX=yes13473 hardcode_minus_L_CXX=yes # Not in the search PATH,13474 # but as the default13475 # location of the library.13476 13477 case $cc_basename in13478 CC*)13479 # FIXME: insert proper C++ library support13480 ld_shlibs_CXX=no13481 ;;13482 aCC*)13483 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'13484 # Commands to make compiler produce verbose output that lists13485 # what "hidden" libraries, object files and flags are used when13486 # linking a shared library.13487 #13488 # There doesn't appear to be a way to prevent this compiler from13489 # explicitly linking system object files so we need to strip them13490 # from the output so that they don't get included in the library13491 # dependencies.13492 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13493 ;;13494 *)13495 if test yes = "$GXX"; then13496 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'13497 else13498 # FIXME: insert proper C++ library support13499 ld_shlibs_CXX=no13500 fi13501 ;;13502 esac13503 ;;13504 13505 hpux10*|hpux11*)13506 if test no = "$with_gnu_ld"; then13507 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13508 hardcode_libdir_separator_CXX=:13509 13510 case $host_cpu in13511 hppa*64*|ia64*)13512 ;;13513 *)13514 export_dynamic_flag_spec_CXX='$wl-E'13515 ;;13516 esac13517 fi13518 case $host_cpu in13519 hppa*64*|ia64*)13520 hardcode_direct_CXX=no13521 hardcode_shlibpath_var_CXX=no13522 ;;13523 *)13524 hardcode_direct_CXX=yes13525 hardcode_direct_absolute_CXX=yes13526 hardcode_minus_L_CXX=yes # Not in the search PATH,13527 # but as the default13528 # location of the library.13529 ;;13530 esac13531 13532 case $cc_basename in13533 CC*)13534 # FIXME: insert proper C++ library support13535 ld_shlibs_CXX=no13536 ;;13537 aCC*)13538 case $host_cpu in13539 hppa*64*)13540 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13541 ;;13542 ia64*)13543 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13544 ;;13545 *)13546 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13547 ;;13548 esac13549 # Commands to make compiler produce verbose output that lists13550 # what "hidden" libraries, object files and flags are used when13551 # linking a shared library.13552 #13553 # There doesn't appear to be a way to prevent this compiler from13554 # explicitly linking system object files so we need to strip them13555 # from the output so that they don't get included in the library13556 # dependencies.13557 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; func_echo_all "$list"'13558 ;;13559 *)13560 if test yes = "$GXX"; then13561 if test no = "$with_gnu_ld"; then13562 case $host_cpu in13563 hppa*64*)13564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13565 ;;13566 ia64*)13567 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13568 ;;13569 *)13570 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13571 ;;13572 esac13573 fi13574 else13575 # FIXME: insert proper C++ library support13576 ld_shlibs_CXX=no13577 fi13578 ;;13579 esac13580 ;;13581 13582 interix[3-9]*)13583 hardcode_direct_CXX=no13584 hardcode_shlibpath_var_CXX=no13585 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13586 export_dynamic_flag_spec_CXX='$wl-E'13587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.13588 # Instead, shared libraries are loaded at an image base (0x10000000 by13589 # default) and relocated if they conflict, which is a slow very memory13590 # consuming and fragmenting process. To avoid this, we pick a random,13591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link13592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.13593 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'13594 archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'13595 ;;13596 irix5* | irix6*)13597 case $cc_basename in13598 CC*)13599 # SGI C++13600 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13601 13602 # Archives containing C++ object files must be created using13603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is13604 # necessary to make sure instantiated templates are included13605 # in the archive.13606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'13607 ;;13608 *)13609 if test yes = "$GXX"; then13610 if test no = "$with_gnu_ld"; then13611 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13612 else13613 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'13614 fi13615 fi13616 link_all_deplibs_CXX=yes13617 ;;13618 esac13619 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13620 hardcode_libdir_separator_CXX=:13621 inherit_rpath_CXX=yes13622 ;;13623 13624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)13625 case $cc_basename in13626 KCC*)13627 # Kuck and Associates, Inc. (KAI) C++ Compiler13628 13629 # KCC will only create a shared library if the output file13630 # ends with ".so" (or ".sl" for HP-UX), so rename the library13631 # to its proper name (with version) after linking.13632 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'13633 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'13634 # Commands to make compiler produce verbose output that lists13635 # what "hidden" libraries, object files and flags are used when13636 # linking a shared library.13637 #13638 # There doesn't appear to be a way to prevent this compiler from13639 # explicitly linking system object files so we need to strip them13640 # from the output so that they don't get included in the library13641 # dependencies.13642 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'13643 13644 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13645 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13646 13647 # Archives containing C++ object files must be created using13648 # "CC -Bstatic", where "CC" is the KAI C++ compiler.13649 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'13650 ;;13651 icpc* | ecpc* )13652 # Intel C++13653 with_gnu_ld=yes13654 # version 8.0 and above of icpc choke on multiply defined symbols13655 # if we add $predep_objects and $postdep_objects, however 7.1 and13656 # earlier do not add the objects themselves.13657 case `$CC -V 2>&1` in13658 *"Version 7."*)13659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13660 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'13661 ;;13662 *) # Version 8.0 or newer13663 tmp_idyn=13664 case $host_cpu in13665 ia64*) tmp_idyn=' -i_dynamic';;13666 esac13667 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13668 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'13669 ;;13670 esac13671 archive_cmds_need_lc_CXX=no13672 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13673 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13674 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13675 ;;13676 pgCC* | pgcpp*)13677 # Portland Group C++ compiler13678 case `$CC -V` in13679 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)13680 prelink_cmds_CXX='tpldir=Template.dir~13681 rm -rf $tpldir~13682 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~13683 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'13684 old_archive_cmds_CXX='tpldir=Template.dir~13685 rm -rf $tpldir~13686 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~13687 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~13688 $RANLIB $oldlib'13689 archive_cmds_CXX='tpldir=Template.dir~13690 rm -rf $tpldir~13691 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13692 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13693 archive_expsym_cmds_CXX='tpldir=Template.dir~13694 rm -rf $tpldir~13695 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13696 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'13697 ;;13698 *) # Version 6 and above use weak symbols13699 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13700 archive_expsym_cmds_CXX='$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'13701 ;;13702 esac13703 13704 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'13705 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13706 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'13707 ;;13708 cxx*)13709 # Compaq C++13710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13711 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'13712 13713 runpath_var=LD_RUN_PATH13714 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13715 hardcode_libdir_separator_CXX=:13716 13717 # Commands to make compiler produce verbose output that lists13718 # what "hidden" libraries, object files and flags are used when13719 # linking a shared library.13720 #13721 # There doesn't appear to be a way to prevent this compiler from13722 # explicitly linking system object files so we need to strip them13723 # from the output so that they don't get included in the library13724 # dependencies.13725 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'13726 ;;13727 xl* | mpixl* | bgxl*)13728 # IBM XL 8.0 on PPC, with GNU ld13729 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13730 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13731 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13732 if test yes = "$supports_anon_versioning"; then13733 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~13734 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~13735 echo "local: *; };" >> $output_objdir/$libname.ver~13736 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'13737 fi13738 ;;13739 *)13740 case `$CC -V 2>&1 | sed 5q` in13741 *Sun\ C*)13742 # Sun C++ 5.913743 no_undefined_flag_CXX=' -zdefs'13744 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13745 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'13746 hardcode_libdir_flag_spec_CXX='-R$libdir'13747 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'13748 compiler_needs_object_CXX=yes13749 13750 # Not sure whether something based on13751 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&113752 # would be better.13753 output_verbose_link_cmd='func_echo_all'13754 13755 # Archives containing C++ object files must be created using13756 # "CC -xar", where "CC" is the Sun C++ compiler. This is13757 # necessary to make sure instantiated templates are included13758 # in the archive.13759 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13760 ;;13761 esac13762 ;;13763 esac13764 ;;13765 13766 lynxos*)13767 # FIXME: insert proper C++ library support13768 ld_shlibs_CXX=no13769 ;;13770 13771 m88k*)13772 # FIXME: insert proper C++ library support13773 ld_shlibs_CXX=no13774 ;;13775 13776 mvs*)13777 case $cc_basename in13778 cxx*)13779 # FIXME: insert proper C++ library support13780 ld_shlibs_CXX=no13781 ;;13782 *)13783 # FIXME: insert proper C++ library support13784 ld_shlibs_CXX=no13785 ;;13786 esac13787 ;;13788 13789 netbsd*)13790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then13791 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'13792 wlarc=13793 hardcode_libdir_flag_spec_CXX='-R$libdir'13794 hardcode_direct_CXX=yes13795 hardcode_shlibpath_var_CXX=no13796 fi13797 # Workaround some broken pre-1.5 toolchains13798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'13799 ;;13800 13801 *nto* | *qnx*)13802 ld_shlibs_CXX=yes13803 ;;13804 13805 openbsd* | bitrig*)13806 if test -f /usr/libexec/ld.so; then13807 hardcode_direct_CXX=yes13808 hardcode_shlibpath_var_CXX=no13809 hardcode_direct_absolute_CXX=yes13810 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'13811 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then13813 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'13814 export_dynamic_flag_spec_CXX='$wl-E'13815 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'13816 fi13817 output_verbose_link_cmd=func_echo_all13818 else13819 ld_shlibs_CXX=no13820 fi13821 ;;13822 13823 osf3* | osf4* | osf5*)13824 case $cc_basename in13825 KCC*)13826 # Kuck and Associates, Inc. (KAI) C++ Compiler13827 13828 # KCC will only create a shared library if the output file13829 # ends with ".so" (or ".sl" for HP-UX), so rename the library13830 # to its proper name (with version) after linking.13831 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'13832 13833 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13834 hardcode_libdir_separator_CXX=:13835 13836 # Archives containing C++ object files must be created using13837 # the KAI C++ compiler.13838 case $host in13839 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;13840 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;13841 esac13842 ;;13843 RCC*)13844 # Rational C++ 2.4.113845 # FIXME: insert proper C++ library support13846 ld_shlibs_CXX=no13847 ;;13848 cxx*)13849 case $host in13850 osf3*)13851 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13852 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13853 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13854 ;;13855 *)13856 allow_undefined_flag_CXX=' -expect_unresolved \*'13857 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'13858 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~13859 echo "-hidden">> $lib.exp~13860 $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~13861 $RM $lib.exp'13862 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13863 ;;13864 esac13865 13866 hardcode_libdir_separator_CXX=:13867 13868 # Commands to make compiler produce verbose output that lists13869 # what "hidden" libraries, object files and flags are used when13870 # linking a shared library.13871 #13872 # There doesn't appear to be a way to prevent this compiler from13873 # explicitly linking system object files so we need to strip them13874 # from the output so that they don't get included in the library13875 # dependencies.13876 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'13877 ;;13878 *)13879 if test yes,no = "$GXX,$with_gnu_ld"; then13880 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13881 case $host in13882 osf3*)13883 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13884 ;;13885 *)13886 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'13887 ;;13888 esac13889 13890 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13891 hardcode_libdir_separator_CXX=:13892 13893 # Commands to make compiler produce verbose output that lists13894 # what "hidden" libraries, object files and flags are used when13895 # linking a shared library.13896 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13897 13898 else13899 # FIXME: insert proper C++ library support13900 ld_shlibs_CXX=no13901 fi13902 ;;13903 esac13904 ;;13905 13906 psos*)13907 # FIXME: insert proper C++ library support13908 ld_shlibs_CXX=no13909 ;;13910 13911 sunos4*)13912 case $cc_basename in13913 CC*)13914 # Sun C++ 4.x13915 # FIXME: insert proper C++ library support13916 ld_shlibs_CXX=no13917 ;;13918 lcc*)13919 # Lucid13920 # FIXME: insert proper C++ library support13921 ld_shlibs_CXX=no13922 ;;13923 *)13924 # FIXME: insert proper C++ library support13925 ld_shlibs_CXX=no13926 ;;13927 esac13928 ;;13929 13930 solaris*)13931 case $cc_basename in13932 CC* | sunCC*)13933 # Sun C++ 4.2, 5.x and Centerline C++13934 archive_cmds_need_lc_CXX=yes13935 no_undefined_flag_CXX=' -zdefs'13936 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13937 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13938 $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'13939 13940 hardcode_libdir_flag_spec_CXX='-R$libdir'13941 hardcode_shlibpath_var_CXX=no13942 case $host_os in13943 solaris2.[0-5] | solaris2.[0-5].*) ;;13944 *)13945 # The compiler driver will combine and reorder linker options,13946 # but understands '-z linker_flag'.13947 # Supported since Solaris 2.6 (maybe 2.5.1?)13948 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'13949 ;;13950 esac13951 link_all_deplibs_CXX=yes13952 13953 output_verbose_link_cmd='func_echo_all'13954 13955 # Archives containing C++ object files must be created using13956 # "CC -xar", where "CC" is the Sun C++ compiler. This is13957 # necessary to make sure instantiated templates are included13958 # in the archive.13959 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13960 ;;13961 gcx*)13962 # Green Hills C++ Compiler13963 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13964 13965 # The C++ compiler must be used to create the archive.13966 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'13967 ;;13968 *)13969 # GNU C++ compiler with Solaris linker13970 if test yes,no = "$GXX,$with_gnu_ld"; then13971 no_undefined_flag_CXX=' $wl-z ${wl}defs'13972 if $CC --version | $GREP -v '^2\.7' > /dev/null; then13973 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13974 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13975 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'13976 13977 # Commands to make compiler produce verbose output that lists13978 # what "hidden" libraries, object files and flags are used when13979 # linking a shared library.13980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13981 else13982 # g++ 2.7 appears to require '-G' NOT '-shared' on this13983 # platform.13984 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13985 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13986 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'13987 13988 # Commands to make compiler produce verbose output that lists13989 # what "hidden" libraries, object files and flags are used when13990 # linking a shared library.13991 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13992 fi13993 13994 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'13995 case $host_os in13996 solaris2.[0-5] | solaris2.[0-5].*) ;;13997 *)13998 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'13999 ;;14000 esac14001 fi14002 ;;14003 esac14004 ;;14005 14006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)14007 no_undefined_flag_CXX='$wl-z,text'14008 archive_cmds_need_lc_CXX=no14009 hardcode_shlibpath_var_CXX=no14010 runpath_var='LD_RUN_PATH'14011 14012 case $cc_basename in14013 CC*)14014 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14015 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14016 ;;14017 *)14018 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14019 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14020 ;;14021 esac14022 ;;14023 14024 sysv5* | sco3.2v5* | sco5v6*)14025 # Note: We CANNOT use -z defs as we might desire, because we do not14026 # link with -lc, and that would cause any symbols used from libc to14027 # always be unresolved, which means just about no library would14028 # ever link correctly. If we're not using GNU ld we use -z text14029 # though, which does catch some bad symbols but isn't as heavy-handed14030 # as -z defs.14031 no_undefined_flag_CXX='$wl-z,text'14032 allow_undefined_flag_CXX='$wl-z,nodefs'14033 archive_cmds_need_lc_CXX=no14034 hardcode_shlibpath_var_CXX=no14035 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'14036 hardcode_libdir_separator_CXX=':'14037 link_all_deplibs_CXX=yes14038 export_dynamic_flag_spec_CXX='$wl-Bexport'14039 runpath_var='LD_RUN_PATH'14040 14041 case $cc_basename in14042 CC*)14043 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14044 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14045 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~14046 '"$old_archive_cmds_CXX"14047 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~14048 '"$reload_cmds_CXX"14049 ;;14050 *)14051 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14052 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14053 ;;14054 esac14055 ;;14056 14057 tandem*)14058 case $cc_basename in14059 NCC*)14060 # NonStop-UX NCC 3.2014061 # FIXME: insert proper C++ library support14062 ld_shlibs_CXX=no14063 ;;14064 *)14065 # FIXME: insert proper C++ library support14066 ld_shlibs_CXX=no14067 ;;14068 esac14069 ;;14070 14071 vxworks*)14072 # FIXME: insert proper C++ library support14073 ld_shlibs_CXX=no14074 ;;14075 14076 *)14077 # FIXME: insert proper C++ library support14078 ld_shlibs_CXX=no14079 ;;14080 esac14081 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514083 $as_echo "$ld_shlibs_CXX" >&6; }14084 test no = "$ld_shlibs_CXX" && can_build_shared=no14085 14086 GCC_CXX=$GXX14087 LD_CXX=$LD14088 14089 ## CAVEAT EMPTOR:14090 ## There is no encapsulation within the following macros, do not change14091 ## the running order or otherwise move them around unless you know exactly14092 ## what you are doing...14093 # Dependencies to place before and after the object being linked:14094 predep_objects_CXX=14095 postdep_objects_CXX=14096 predeps_CXX=14097 postdeps_CXX=14098 compiler_lib_search_path_CXX=14099 14100 cat > conftest.$ac_ext <<_LT_EOF14101 class Foo14102 {14103 public:14104 Foo (void) { a = 0; }14105 private:14106 int a;14107 };14108 _LT_EOF14109 14110 14111 _lt_libdeps_save_CFLAGS=$CFLAGS14112 case "$CC $CFLAGS " in #(14113 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;14114 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;14115 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;14116 esac14117 14118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514119 (eval $ac_compile) 2>&514120 ac_status=$?14121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514122 test $ac_status = 0; }; then14123 # Parse the compiler output and extract the necessary14124 # objects, libraries and library flags.14125 14126 # Sentinel used to keep track of whether or not we are before14127 # the conftest object file.14128 pre_test_object_deps_done=no14129 14130 for p in `eval "$output_verbose_link_cmd"`; do14131 case $prev$p in14132 14133 -L* | -R* | -l*)14134 # Some compilers place space between "-{L,R}" and the path.14135 # Remove the space.14136 if test x-L = "$p" ||14137 test x-R = "$p"; then14138 prev=$p14139 continue14140 fi14141 14142 # Expand the sysroot to ease extracting the directories later.14143 if test -z "$prev"; then14144 case $p in14145 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;14146 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;14147 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;14148 esac14149 fi14150 case $p in14151 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;14152 esac14153 if test no = "$pre_test_object_deps_done"; then14154 case $prev in14155 -L | -R)14156 # Internal compiler library paths should come after those14157 # provided the user. The postdeps already come after the14158 # user supplied libs so there is no need to process them.14159 if test -z "$compiler_lib_search_path_CXX"; then14160 compiler_lib_search_path_CXX=$prev$p14161 else14162 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"14163 fi14164 ;;14165 # The "-l" case would never come before the object being14166 # linked, so don't bother handling this case.14167 esac14168 else14169 if test -z "$postdeps_CXX"; then14170 postdeps_CXX=$prev$p14171 else14172 postdeps_CXX="${postdeps_CXX} $prev$p"14173 fi14174 fi14175 prev=14176 ;;14177 14178 *.lto.$objext) ;; # Ignore GCC LTO objects14179 *.$objext)14180 # This assumes that the test object file only shows up14181 # once in the compiler output.14182 if test "$p" = "conftest.$objext"; then14183 pre_test_object_deps_done=yes14184 continue14185 fi14186 14187 if test no = "$pre_test_object_deps_done"; then14188 if test -z "$predep_objects_CXX"; then14189 predep_objects_CXX=$p14190 else14191 predep_objects_CXX="$predep_objects_CXX $p"14192 fi14193 else14194 if test -z "$postdep_objects_CXX"; then14195 postdep_objects_CXX=$p14196 else14197 postdep_objects_CXX="$postdep_objects_CXX $p"14198 fi14199 fi14200 ;;14201 14202 *) ;; # Ignore the rest.14203 14204 esac14205 done14206 14207 # Clean up.14208 rm -f a.out a.exe14209 else14210 echo "libtool.m4: error: problem compiling CXX test program"14211 fi14212 14213 $RM -f confest.$objext14214 CFLAGS=$_lt_libdeps_save_CFLAGS14215 14216 # PORTME: override above test on systems where it is broken14217 case $host_os in14218 interix[3-9]*)14219 # Interix 3.5 installs completely hosed .la files for C++, so rather than14220 # hack all around it, let's just trust "g++" to DTRT.14221 predep_objects_CXX=14222 postdep_objects_CXX=14223 postdeps_CXX=14224 ;;14225 esac14226 14227 14228 case " $postdeps_CXX " in14229 *" -lc "*) archive_cmds_need_lc_CXX=no ;;14230 esac14231 compiler_lib_search_dirs_CXX=14232 if test -n "${compiler_lib_search_path_CXX}"; then14233 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`14234 fi14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 lt_prog_compiler_wl_CXX=14267 lt_prog_compiler_pic_CXX=14268 lt_prog_compiler_static_CXX=14269 14270 14271 # C++ specific cases for pic, static, wl, etc.14272 if test yes = "$GXX"; then14273 lt_prog_compiler_wl_CXX='-Wl,'14274 lt_prog_compiler_static_CXX='-static'14275 14276 case $host_os in14277 aix*)14278 # All AIX code is PIC.14279 if test ia64 = "$host_cpu"; then14280 # AIX 5 now supports IA64 processor14281 lt_prog_compiler_static_CXX='-Bstatic'14282 fi14283 lt_prog_compiler_pic_CXX='-fPIC'14284 ;;14285 14286 amigaos*)14287 case $host_cpu in14288 powerpc)14289 # see comment about AmigaOS4 .so support14290 lt_prog_compiler_pic_CXX='-fPIC'14291 ;;14292 m68k)14293 # FIXME: we need at least 68020 code to build shared libraries, but14294 # adding the '-m68020' flag to GCC prevents building anything better,14295 # like '-m68040'.14296 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'14297 ;;14298 esac14299 ;;14300 14301 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)14302 # PIC is the default for these OSes.14303 ;;14304 mingw* | cygwin* | os2* | pw32* | cegcc*)14305 # This hack is so that the source file can tell whether it is being14306 # built for inclusion in a dll (and should export symbols for example).14307 # Although the cygwin gcc ignores -fPIC, still need this for old-style14308 # (--disable-auto-import) libraries14309 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14310 case $host_os in14311 os2*)14312 lt_prog_compiler_static_CXX='$wl-static'14313 ;;14314 esac14315 ;;14316 darwin* | rhapsody*)14317 # PIC is the default on this platform14318 # Common symbols not allowed in MH_DYLIB files14319 lt_prog_compiler_pic_CXX='-fno-common'14320 ;;14321 *djgpp*)14322 # DJGPP does not support shared libraries at all14323 lt_prog_compiler_pic_CXX=14324 ;;14325 haiku*)14326 # PIC is the default for Haiku.14327 # The "-static" flag exists, but is broken.14328 lt_prog_compiler_static_CXX=14329 ;;14330 interix[3-9]*)14331 # Interix 3.x gcc -fpic/-fPIC options generate broken code.14332 # Instead, we relocate shared libraries at runtime.14333 ;;14334 sysv4*MP*)14335 if test -d /usr/nec; then14336 lt_prog_compiler_pic_CXX=-Kconform_pic14337 fi14338 ;;14339 hpux*)14340 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit14341 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag14342 # sets the default TLS model and affects inlining.14343 case $host_cpu in14344 hppa*64*)14345 ;;14346 *)14347 lt_prog_compiler_pic_CXX='-fPIC'14348 ;;14349 esac14350 ;;14351 *qnx* | *nto*)14352 # QNX uses GNU C++, but need to define -shared option too, otherwise14353 # it will coredump.14354 lt_prog_compiler_pic_CXX='-fPIC -shared'14355 ;;14356 *)14357 lt_prog_compiler_pic_CXX='-fPIC'14358 ;;14359 esac14360 else14361 case $host_os in14362 aix[4-9]*)14363 # All AIX code is PIC.14364 if test ia64 = "$host_cpu"; then14365 # AIX 5 now supports IA64 processor14366 lt_prog_compiler_static_CXX='-Bstatic'14367 else14368 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'14369 fi14370 ;;14371 chorus*)14372 case $cc_basename in14373 cxch68*)14374 # Green Hills C++ Compiler14375 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--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"14376 ;;14377 esac14378 ;;14379 mingw* | cygwin* | os2* | pw32* | cegcc*)14380 # This hack is so that the source file can tell whether it is being14381 # built for inclusion in a dll (and should export symbols for example).14382 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14383 ;;14384 dgux*)14385 case $cc_basename in14386 ec++*)14387 lt_prog_compiler_pic_CXX='-KPIC'14388 ;;14389 ghcx*)14390 # Green Hills C++ Compiler14391 lt_prog_compiler_pic_CXX='-pic'14392 ;;14393 *)14394 ;;14395 esac14396 ;;14397 freebsd* | dragonfly*)14398 # FreeBSD uses GNU C++14399 ;;14400 hpux9* | hpux10* | hpux11*)14401 case $cc_basename in14402 CC*)14403 lt_prog_compiler_wl_CXX='-Wl,'14404 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14405 if test ia64 != "$host_cpu"; then14406 lt_prog_compiler_pic_CXX='+Z'14407 fi14408 ;;14409 aCC*)14410 lt_prog_compiler_wl_CXX='-Wl,'14411 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14412 case $host_cpu in14413 hppa*64*|ia64*)14414 # +Z the default14415 ;;14416 *)14417 lt_prog_compiler_pic_CXX='+Z'14418 ;;14419 esac14420 ;;14421 *)14422 ;;14423 esac14424 ;;14425 interix*)14426 # This is c89, which is MS Visual C++ (no shared libs)14427 # Anyone wants to do a port?14428 ;;14429 irix5* | irix6* | nonstopux*)14430 case $cc_basename in14431 CC*)14432 lt_prog_compiler_wl_CXX='-Wl,'14433 lt_prog_compiler_static_CXX='-non_shared'14434 # CC pic flag -KPIC is the default.14435 ;;14436 *)14437 ;;14438 esac14439 ;;14440 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)14441 case $cc_basename in14442 KCC*)14443 # KAI C++ Compiler14444 lt_prog_compiler_wl_CXX='--backend -Wl,'14445 lt_prog_compiler_pic_CXX='-fPIC'14446 ;;14447 ecpc* )14448 # old Intel C++ for x86_64, which still supported -KPIC.14449 lt_prog_compiler_wl_CXX='-Wl,'14450 lt_prog_compiler_pic_CXX='-KPIC'14451 lt_prog_compiler_static_CXX='-static'14452 ;;14453 icpc* )14454 # Intel C++, used to be incompatible with GCC.14455 # ICC 10 doesn't accept -KPIC any more.14456 lt_prog_compiler_wl_CXX='-Wl,'14457 lt_prog_compiler_pic_CXX='-fPIC'14458 lt_prog_compiler_static_CXX='-static'14459 ;;14460 pgCC* | pgcpp*)14461 # Portland Group C++ compiler14462 lt_prog_compiler_wl_CXX='-Wl,'14463 lt_prog_compiler_pic_CXX='-fpic'14464 lt_prog_compiler_static_CXX='-Bstatic'14465 ;;14466 cxx*)14467 # Compaq C++14468 # Make sure the PIC flag is empty. It appears that all Alpha14469 # Linux and Compaq Tru64 Unix objects are PIC.14470 lt_prog_compiler_pic_CXX=14471 lt_prog_compiler_static_CXX='-non_shared'14472 ;;14473 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)14474 # IBM XL 8.0, 9.0 on PPC and BlueGene14475 lt_prog_compiler_wl_CXX='-Wl,'14476 lt_prog_compiler_pic_CXX='-qpic'14477 lt_prog_compiler_static_CXX='-qstaticlink'14478 ;;14479 *)14480 case `$CC -V 2>&1 | sed 5q` in14481 *Sun\ C*)14482 # Sun C++ 5.914483 lt_prog_compiler_pic_CXX='-KPIC'14484 lt_prog_compiler_static_CXX='-Bstatic'14485 lt_prog_compiler_wl_CXX='-Qoption ld '14486 ;;14487 esac14488 ;;14489 esac14490 ;;14491 lynxos*)14492 ;;14493 m88k*)14494 ;;14495 mvs*)14496 case $cc_basename in14497 cxx*)14498 lt_prog_compiler_pic_CXX='-W c,exportall'14499 ;;14500 *)14501 ;;14502 esac14503 ;;14504 netbsd* | netbsdelf*-gnu)14505 ;;14506 *qnx* | *nto*)14507 # QNX uses GNU C++, but need to define -shared option too, otherwise14508 # it will coredump.14509 lt_prog_compiler_pic_CXX='-fPIC -shared'14510 ;;14511 osf3* | osf4* | osf5*)14512 case $cc_basename in14513 KCC*)14514 lt_prog_compiler_wl_CXX='--backend -Wl,'14515 ;;14516 RCC*)14517 # Rational C++ 2.4.114518 lt_prog_compiler_pic_CXX='-pic'14519 ;;14520 cxx*)14521 # Digital/Compaq C++14522 lt_prog_compiler_wl_CXX='-Wl,'14523 # Make sure the PIC flag is empty. It appears that all Alpha14524 # Linux and Compaq Tru64 Unix objects are PIC.14525 lt_prog_compiler_pic_CXX=14526 lt_prog_compiler_static_CXX='-non_shared'14527 ;;14528 *)14529 ;;14530 esac14531 ;;14532 psos*)14533 ;;14534 solaris*)14535 case $cc_basename in14536 CC* | sunCC*)14537 # Sun C++ 4.2, 5.x and Centerline C++14538 lt_prog_compiler_pic_CXX='-KPIC'14539 lt_prog_compiler_static_CXX='-Bstatic'14540 lt_prog_compiler_wl_CXX='-Qoption ld '14541 ;;14542 gcx*)14543 # Green Hills C++ Compiler14544 lt_prog_compiler_pic_CXX='-PIC'14545 ;;14546 *)14547 ;;14548 esac14549 ;;14550 sunos4*)14551 case $cc_basename in14552 CC*)14553 # Sun C++ 4.x14554 lt_prog_compiler_pic_CXX='-pic'14555 lt_prog_compiler_static_CXX='-Bstatic'14556 ;;14557 lcc*)14558 # Lucid14559 lt_prog_compiler_pic_CXX='-pic'14560 ;;14561 *)14562 ;;14563 esac14564 ;;14565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)14566 case $cc_basename in14567 CC*)14568 lt_prog_compiler_wl_CXX='-Wl,'14569 lt_prog_compiler_pic_CXX='-KPIC'14570 lt_prog_compiler_static_CXX='-Bstatic'14571 ;;14572 esac14573 ;;14574 tandem*)14575 case $cc_basename in14576 NCC*)14577 # NonStop-UX NCC 3.2014578 lt_prog_compiler_pic_CXX='-KPIC'14579 ;;14580 *)14581 ;;14582 esac14583 ;;14584 vxworks*)14585 ;;14586 *)14587 lt_prog_compiler_can_build_shared_CXX=no14588 ;;14589 esac14590 fi14591 14592 case $host_os in14593 # For platforms that do not support PIC, -DPIC is meaningless:14594 *djgpp*)14595 lt_prog_compiler_pic_CXX=14596 ;;14597 *)14598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"14599 ;;14600 esac14601 14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&514603 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }14604 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :14605 $as_echo_n "(cached) " >&614606 else14607 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX14608 fi14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&514610 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }14611 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX14612 14613 #14614 # Check to make sure the PIC flag actually works.14615 #14616 if test -n "$lt_prog_compiler_pic_CXX"; then14617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&514618 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }14619 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :14620 $as_echo_n "(cached) " >&614621 else14622 lt_cv_prog_compiler_pic_works_CXX=no14623 ac_outfile=conftest.$ac_objext14624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14625 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment14626 # Insert the option either (1) after the last *FLAGS variable, or14627 # (2) before a word containing "conftest.", or (3) at the end.14628 # Note that $ac_compile itself does not contain backslashes and begins14629 # with a dollar sign (not a hyphen), so the echo should work correctly.14630 # The option is referenced via a variable to avoid confusing sed.14631 lt_compile=`echo "$ac_compile" | $SED \14632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14634 -e 's:$: $lt_compiler_flag:'`14635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14636 (eval "$lt_compile" 2>conftest.err)14637 ac_status=$?14638 cat conftest.err >&514639 echo "$as_me:$LINENO: \$? = $ac_status" >&514640 if (exit $ac_status) && test -s "$ac_outfile"; then14641 # The compiler can only warn and ignore the option if not recognized14642 # So say no if there are warnings other than the usual output.14643 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp14644 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214645 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then14646 lt_cv_prog_compiler_pic_works_CXX=yes14647 fi14648 fi14649 $RM conftest*14650 14651 fi14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&514653 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }14654 14655 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then14656 case $lt_prog_compiler_pic_CXX in14657 "" | " "*) ;;14658 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;14659 esac14660 else14661 lt_prog_compiler_pic_CXX=14662 lt_prog_compiler_can_build_shared_CXX=no14663 fi14664 14665 fi14666 14667 14668 14669 14670 14671 #14672 # Check to make sure the static flag actually works.14673 #14674 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"14675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&514676 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }14677 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :14678 $as_echo_n "(cached) " >&614679 else14680 lt_cv_prog_compiler_static_works_CXX=no14681 save_LDFLAGS=$LDFLAGS14682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"14683 echo "$lt_simple_link_test_code" > conftest.$ac_ext14684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then14685 # The linker can only warn and ignore the option if not recognized14686 # So say no if there are warnings14687 if test -s conftest.err; then14688 # Append any errors to the config.log.14689 cat conftest.err 1>&514690 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp14691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214692 if diff conftest.exp conftest.er2 >/dev/null; then14693 lt_cv_prog_compiler_static_works_CXX=yes14694 fi14695 else14696 lt_cv_prog_compiler_static_works_CXX=yes14697 fi14698 fi14699 $RM -r conftest*14700 LDFLAGS=$save_LDFLAGS14701 14702 fi14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&514704 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }14705 14706 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then14707 :14708 else14709 lt_prog_compiler_static_CXX=14710 fi14711 14712 14713 14714 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514716 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14717 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14718 $as_echo_n "(cached) " >&614719 else14720 lt_cv_prog_compiler_c_o_CXX=no14721 $RM -r conftest 2>/dev/null14722 mkdir conftest14723 cd conftest14724 mkdir out14725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14726 14727 lt_compiler_flag="-o out/conftest2.$ac_objext"14728 # Insert the option either (1) after the last *FLAGS variable, or14729 # (2) before a word containing "conftest.", or (3) at the end.14730 # Note that $ac_compile itself does not contain backslashes and begins14731 # with a dollar sign (not a hyphen), so the echo should work correctly.14732 lt_compile=`echo "$ac_compile" | $SED \14733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14735 -e 's:$: $lt_compiler_flag:'`14736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14737 (eval "$lt_compile" 2>out/conftest.err)14738 ac_status=$?14739 cat out/conftest.err >&514740 echo "$as_me:$LINENO: \$? = $ac_status" >&514741 if (exit $ac_status) && test -s out/conftest2.$ac_objext14742 then14743 # The compiler can only warn and ignore the option if not recognized14744 # So say no if there are warnings14745 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14748 lt_cv_prog_compiler_c_o_CXX=yes14749 fi14750 fi14751 chmod u+w . 2>&514752 $RM conftest*14753 # SGI C++ compiler will create directory out/ii_files/ for14754 # template instantiation14755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14756 $RM out/* && rmdir out14757 cd ..14758 $RM -r conftest14759 $RM conftest*14760 14761 fi14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514763 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14764 14765 14766 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14769 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14770 $as_echo_n "(cached) " >&614771 else14772 lt_cv_prog_compiler_c_o_CXX=no14773 $RM -r conftest 2>/dev/null14774 mkdir conftest14775 cd conftest14776 mkdir out14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14778 14779 lt_compiler_flag="-o out/conftest2.$ac_objext"14780 # Insert the option either (1) after the last *FLAGS variable, or14781 # (2) before a word containing "conftest.", or (3) at the end.14782 # Note that $ac_compile itself does not contain backslashes and begins14783 # with a dollar sign (not a hyphen), so the echo should work correctly.14784 lt_compile=`echo "$ac_compile" | $SED \14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14787 -e 's:$: $lt_compiler_flag:'`14788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14789 (eval "$lt_compile" 2>out/conftest.err)14790 ac_status=$?14791 cat out/conftest.err >&514792 echo "$as_me:$LINENO: \$? = $ac_status" >&514793 if (exit $ac_status) && test -s out/conftest2.$ac_objext14794 then14795 # The compiler can only warn and ignore the option if not recognized14796 # So say no if there are warnings14797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14800 lt_cv_prog_compiler_c_o_CXX=yes14801 fi14802 fi14803 chmod u+w . 2>&514804 $RM conftest*14805 # SGI C++ compiler will create directory out/ii_files/ for14806 # template instantiation14807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14808 $RM out/* && rmdir out14809 cd ..14810 $RM -r conftest14811 $RM conftest*14812 14813 fi14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514815 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14816 14817 14818 14819 14820 hard_links=nottested14821 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then14822 # do not overwrite the value of need_locks provided by the user14823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&514824 $as_echo_n "checking if we can lock with hard links... " >&6; }14825 hard_links=yes14826 $RM conftest*14827 ln conftest.a conftest.b 2>/dev/null && hard_links=no14828 touch conftest.a14829 ln conftest.a conftest.b 2>&5 || hard_links=no14830 ln conftest.a conftest.b 2>/dev/null && hard_links=no14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&514832 $as_echo "$hard_links" >&6; }14833 if test no = "$hard_links"; then14834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&514835 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}14836 need_locks=warn14837 fi14838 else14839 need_locks=no14840 fi14841 14842 14843 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&514845 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }14846 14847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14848 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'14849 case $host_os in14850 aix[4-9]*)14851 # If we're using GNU nm, then we don't want the "-C" option.14852 # -C means demangle to GNU nm, but means don't demangle to AIX nm.14853 # Without the "-l" option, or with the "-B" option, AIX nm treats14854 # weak defined symbols like other global defined symbols, whereas14855 # GNU nm marks them as "W".14856 # While the 'weak' keyword is ignored in the Export File, we need14857 # it in the Import File for the 'aix-soname' feature, so we have14858 # to replace the "-B" option with "-P" for AIX nm.14859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then14860 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'14861 else14862 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'14863 fi14864 ;;14865 pw32*)14866 export_symbols_cmds_CXX=$ltdll_cmds14867 ;;14868 cygwin* | mingw* | cegcc*)14869 case $cc_basename in14870 cl*)14871 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'14872 ;;14873 *)14874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'14875 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'14876 ;;14877 esac14878 ;;14879 linux* | k*bsd*-gnu | gnu*)14880 link_all_deplibs_CXX=no14881 ;;14882 *)14883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14884 ;;14885 esac14886 14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514888 $as_echo "$ld_shlibs_CXX" >&6; }14889 test no = "$ld_shlibs_CXX" && can_build_shared=no14890 14891 with_gnu_ld_CXX=$with_gnu_ld14892 14893 14894 14895 14896 14897 14898 #14899 # Do we need to explicitly link libc?14900 #14901 case "x$archive_cmds_need_lc_CXX" in14902 x|xyes)14903 # Assume -lc should be added14904 archive_cmds_need_lc_CXX=yes14905 14906 if test yes,yes = "$GCC,$enable_shared"; then14907 case $archive_cmds_CXX in14908 *'~'*)14909 # FIXME: we may have to deal with multi-command sequences.14910 ;;14911 '$CC '*)14912 # Test whether the compiler implicitly links with -lc since on some14913 # systems, -lgcc has to come before -lc. If gcc already passes -lc14914 # to ld, don't add -lc before -lgcc.14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&514916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }14917 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :14918 $as_echo_n "(cached) " >&614919 else14920 $RM conftest*14921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14922 14923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514924 (eval $ac_compile) 2>&514925 ac_status=$?14926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514927 test $ac_status = 0; } 2>conftest.err; then14928 soname=conftest14929 lib=conftest14930 libobjs=conftest.$ac_objext14931 deplibs=14932 wl=$lt_prog_compiler_wl_CXX14933 pic_flag=$lt_prog_compiler_pic_CXX14934 compiler_flags=-v14935 linker_flags=-v14936 verstring=14937 output_objdir=.14938 libname=conftest14939 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX14940 allow_undefined_flag_CXX=14941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&514942 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&514943 ac_status=$?14944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514945 test $ac_status = 0; }14946 then14947 lt_cv_archive_cmds_need_lc_CXX=no14948 else14949 lt_cv_archive_cmds_need_lc_CXX=yes14950 fi14951 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag14952 else14953 cat conftest.err 1>&514954 fi14955 $RM conftest*14956 14957 fi14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&514959 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }14960 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX14961 ;;14962 esac14963 fi14964 ;;14965 esac14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&515029 $as_echo_n "checking dynamic linker characteristics... " >&6; }15030 15031 library_names_spec=15032 libname_spec='lib$name'15033 soname_spec=15034 shrext_cmds=.so15035 postinstall_cmds=15036 postuninstall_cmds=15037 finish_cmds=15038 finish_eval=15039 shlibpath_var=15040 shlibpath_overrides_runpath=unknown15041 version_type=none15042 dynamic_linker="$host_os ld.so"15043 sys_lib_dlsearch_path_spec="/lib /usr/lib"15044 need_lib_prefix=unknown15045 hardcode_into_libs=no15046 15047 # when you set need_version to no, make sure it does not cause -set_version15048 # flags to be left without arguments15049 need_version=unknown15050 15051 15052 15053 case $host_os in15054 aix3*)15055 version_type=linux # correct to gnu/linux during the next big refactor15056 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'15057 shlibpath_var=LIBPATH15058 15059 # AIX 3 has no versioning support, so we append a major version to the name.15060 soname_spec='$libname$release$shared_ext$major'15061 ;;15062 15063 aix[4-9]*)15064 version_type=linux # correct to gnu/linux during the next big refactor15065 need_lib_prefix=no15066 need_version=no15067 hardcode_into_libs=yes15068 if test ia64 = "$host_cpu"; then15069 # AIX 5 supports IA6415070 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'15071 shlibpath_var=LD_LIBRARY_PATH15072 else15073 # With GCC up to 2.95.x, collect2 would create an import file15074 # for dependence libraries. The import file would start with15075 # the line '#! .'. This would cause the generated library to15076 # depend on '.', always an invalid library. This was fixed in15077 # development snapshots of GCC prior to 3.0.15078 case $host_os in15079 aix4 | aix4.[01] | aix4.[01].*)15080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'15081 echo ' yes '15082 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then15083 :15084 else15085 can_build_shared=no15086 fi15087 ;;15088 esac15089 # Using Import Files as archive members, it is possible to support15090 # filename-based versioning of shared library archives on AIX. While15091 # this would work for both with and without runtime linking, it will15092 # prevent static linking of such archives. So we do filename-based15093 # shared library versioning with .so extension only, which is used15094 # when both runtime linking and shared linking is enabled.15095 # Unfortunately, runtime linking may impact performance, so we do15096 # not want this to be the default eventually. Also, we use the15097 # versioned .so libs for executables only if there is the -brtl15098 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.15099 # To allow for filename-based versioning support, we need to create15100 # libNAME.so.V as an archive file, containing:15101 # *) an Import File, referring to the versioned filename of the15102 # archive as well as the shared archive member, telling the15103 # bitwidth (32 or 64) of that shared object, and providing the15104 # list of exported symbols of that shared object, eventually15105 # decorated with the 'weak' keyword15106 # *) the shared object with the F_LOADONLY flag set, to really avoid15107 # it being seen by the linker.15108 # At run time we better use the real file rather than another symlink,15109 # but for link time we create the symlink libNAME.so -> libNAME.so.V15110 15111 case $with_aix_soname,$aix_use_runtimelinking in15112 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct15113 # soname into executable. Probably we can add versioning support to15114 # collect2, so additional links can be useful in future.15115 aix,yes) # traditional libtool15116 dynamic_linker='AIX unversionable lib.so'15117 # If using run time linking (on AIX 4.2 or later) use lib<name>.so15118 # instead of lib<name>.a to let people know that these are not15119 # typical AIX shared libraries.15120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15121 ;;15122 aix,no) # traditional AIX only15123 dynamic_linker='AIX lib.a(lib.so.V)'15124 # We preserve .a as extension for shared libraries through AIX4.215125 # and later when we are not doing run time linking.15126 library_names_spec='$libname$release.a $libname.a'15127 soname_spec='$libname$release$shared_ext$major'15128 ;;15129 svr4,*) # full svr4 only15130 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"15131 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15132 # We do not specify a path in Import Files, so LIBPATH fires.15133 shlibpath_overrides_runpath=yes15134 ;;15135 *,yes) # both, prefer svr415136 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"15137 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15138 # unpreferred sharedlib libNAME.a needs extra handling15139 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'15140 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'15141 # We do not specify a path in Import Files, so LIBPATH fires.15142 shlibpath_overrides_runpath=yes15143 ;;15144 *,no) # both, prefer aix15145 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"15146 library_names_spec='$libname$release.a $libname.a'15147 soname_spec='$libname$release$shared_ext$major'15148 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling15149 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'15150 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'15151 ;;15152 esac15153 shlibpath_var=LIBPATH15154 fi15155 ;;15156 15157 amigaos*)15158 case $host_cpu in15159 powerpc)15160 # Since July 2007 AmigaOS4 officially supports .so libraries.15161 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.15162 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15163 ;;15164 m68k)15165 library_names_spec='$libname.ixlibrary $libname.a'15166 # Create ${libname}_ixlibrary.a entries in /sys/libs.15167 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'15168 ;;15169 esac15170 ;;15171 15172 beos*)15173 library_names_spec='$libname$shared_ext'15174 dynamic_linker="$host_os ld.so"15175 shlibpath_var=LIBRARY_PATH15176 ;;15177 15178 bsdi[45]*)15179 version_type=linux # correct to gnu/linux during the next big refactor15180 need_version=no15181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15182 soname_spec='$libname$release$shared_ext$major'15183 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'15184 shlibpath_var=LD_LIBRARY_PATH15185 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"15186 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"15187 # the default ld.so.conf also contains /usr/contrib/lib and15188 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow15189 # libtool to hard-code these into programs15190 ;;15191 15192 cygwin* | mingw* | pw32* | cegcc*)15193 version_type=windows15194 shrext_cmds=.dll15195 need_version=no15196 need_lib_prefix=no15197 15198 case $GCC,$cc_basename in15199 yes,*)15200 # gcc15201 library_names_spec='$libname.dll.a'15202 # DLL is installed to $(libdir)/../bin by postinstall_cmds15203 postinstall_cmds='base_file=`basename \$file`~15204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15205 dldir=$destdir/`dirname \$dlpath`~15206 test -d \$dldir || mkdir -p \$dldir~15207 $install_prog $dir/$dlname \$dldir/$dlname~15208 chmod a+x \$dldir/$dlname~15209 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15210 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15211 fi'15212 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15213 dlpath=$dir/\$dldll~15214 $RM \$dlpath'15215 shlibpath_overrides_runpath=yes15216 15217 case $host_os in15218 cygwin*)15219 # Cygwin DLLs use 'cyg' prefix rather than 'lib'15220 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15221 15222 ;;15223 mingw* | cegcc*)15224 # MinGW DLLs use traditional 'lib' prefix15225 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15226 ;;15227 pw32*)15228 # pw32 DLLs use 'pw' prefix rather than 'lib'15229 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15230 ;;15231 esac15232 dynamic_linker='Win32 ld.exe'15233 ;;15234 15235 *,cl*)15236 # Native MSVC15237 libname_spec='$name'15238 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15239 library_names_spec='$libname.dll.lib'15240 15241 case $build_os in15242 mingw*)15243 sys_lib_search_path_spec=15244 lt_save_ifs=$IFS15245 IFS=';'15246 for lt_path in $LIB15247 do15248 IFS=$lt_save_ifs15249 # Let DOS variable expansion print the short 8.3 style file name.15250 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`15251 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"15252 done15253 IFS=$lt_save_ifs15254 # Convert to MSYS style.15255 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`15256 ;;15257 cygwin*)15258 # Convert to unix form, then to dos form, then back to unix form15259 # but this time dos style (no spaces!) so that the unix form looks15260 # like /cygdrive/c/PROGRA~1:/cygdr...15261 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`15262 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`15263 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15264 ;;15265 *)15266 sys_lib_search_path_spec=$LIB15267 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then15268 # It is most probably a Windows format PATH.15269 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`15270 else15271 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15272 fi15273 # FIXME: find the short name or the path components, as spaces are15274 # common. (e.g. "Program Files" -> "PROGRA~1")15275 ;;15276 esac15277 15278 # DLL is installed to $(libdir)/../bin by postinstall_cmds15279 postinstall_cmds='base_file=`basename \$file`~15280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15281 dldir=$destdir/`dirname \$dlpath`~15282 test -d \$dldir || mkdir -p \$dldir~15283 $install_prog $dir/$dlname \$dldir/$dlname'15284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15285 dlpath=$dir/\$dldll~15286 $RM \$dlpath'15287 shlibpath_overrides_runpath=yes15288 dynamic_linker='Win32 link.exe'15289 ;;15290 15291 *)15292 # Assume MSVC wrapper15293 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'15294 dynamic_linker='Win32 ld.exe'15295 ;;15296 esac15297 # FIXME: first we should search . and the directory the executable is in15298 shlibpath_var=PATH15299 ;;15300 15301 darwin* | rhapsody*)15302 dynamic_linker="$host_os dyld"15303 version_type=darwin15304 need_lib_prefix=no15305 need_version=no15306 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'15307 soname_spec='$libname$release$major$shared_ext'15308 shlibpath_overrides_runpath=yes15309 shlibpath_var=DYLD_LIBRARY_PATH15310 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'15311 15312 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'15313 ;;15314 15315 dgux*)15316 version_type=linux # correct to gnu/linux during the next big refactor15317 need_lib_prefix=no15318 need_version=no15319 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15320 soname_spec='$libname$release$shared_ext$major'15321 shlibpath_var=LD_LIBRARY_PATH15322 ;;15323 15324 freebsd* | dragonfly*)15325 # DragonFly does not have aout. When/if they implement a new15326 # versioning mechanism, adjust this.15327 if test -x /usr/bin/objformat; then15328 objformat=`/usr/bin/objformat`15329 else15330 case $host_os in15331 freebsd[23].*) objformat=aout ;;15332 *) objformat=elf ;;15333 esac15334 fi15335 version_type=freebsd-$objformat15336 case $version_type in15337 freebsd-elf*)15338 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15339 soname_spec='$libname$release$shared_ext$major'15340 need_version=no15341 need_lib_prefix=no15342 ;;15343 freebsd-*)15344 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15345 need_version=yes15346 ;;15347 esac15348 shlibpath_var=LD_LIBRARY_PATH15349 case $host_os in15350 freebsd2.*)15351 shlibpath_overrides_runpath=yes15352 ;;15353 freebsd3.[01]* | freebsdelf3.[01]*)15354 shlibpath_overrides_runpath=yes15355 hardcode_into_libs=yes15356 ;;15357 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \15358 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)15359 shlibpath_overrides_runpath=no15360 hardcode_into_libs=yes15361 ;;15362 *) # from 4.6 on, and DragonFly15363 shlibpath_overrides_runpath=yes15364 hardcode_into_libs=yes15365 ;;15366 esac15367 ;;15368 15369 haiku*)15370 version_type=linux # correct to gnu/linux during the next big refactor15371 need_lib_prefix=no15372 need_version=no15373 dynamic_linker="$host_os runtime_loader"15374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15375 soname_spec='$libname$release$shared_ext$major'15376 shlibpath_var=LIBRARY_PATH15377 shlibpath_overrides_runpath=no15378 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'15379 hardcode_into_libs=yes15380 ;;15381 15382 hpux9* | hpux10* | hpux11*)15383 # Give a soname corresponding to the major version so that dld.sl refuses to15384 # link against other versions.15385 version_type=sunos15386 need_lib_prefix=no15387 need_version=no15388 case $host_cpu in15389 ia64*)15390 shrext_cmds='.so'15391 hardcode_into_libs=yes15392 dynamic_linker="$host_os dld.so"15393 shlibpath_var=LD_LIBRARY_PATH15394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15396 soname_spec='$libname$release$shared_ext$major'15397 if test 32 = "$HPUX_IA64_MODE"; then15398 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"15399 sys_lib_dlsearch_path_spec=/usr/lib/hpux3215400 else15401 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"15402 sys_lib_dlsearch_path_spec=/usr/lib/hpux6415403 fi15404 ;;15405 hppa*64*)15406 shrext_cmds='.sl'15407 hardcode_into_libs=yes15408 dynamic_linker="$host_os dld.sl"15409 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH15410 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15412 soname_spec='$libname$release$shared_ext$major'15413 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"15414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15415 ;;15416 *)15417 shrext_cmds='.sl'15418 dynamic_linker="$host_os dld.sl"15419 shlibpath_var=SHLIB_PATH15420 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15422 soname_spec='$libname$release$shared_ext$major'15423 ;;15424 esac15425 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...15426 postinstall_cmds='chmod 555 $lib'15427 # or fails outright, so override atomically:15428 install_override_mode=55515429 ;;15430 15431 interix[3-9]*)15432 version_type=linux # correct to gnu/linux during the next big refactor15433 need_lib_prefix=no15434 need_version=no15435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15436 soname_spec='$libname$release$shared_ext$major'15437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'15438 shlibpath_var=LD_LIBRARY_PATH15439 shlibpath_overrides_runpath=no15440 hardcode_into_libs=yes15441 ;;15442 15443 irix5* | irix6* | nonstopux*)15444 case $host_os in15445 nonstopux*) version_type=nonstopux ;;15446 *)15447 if test yes = "$lt_cv_prog_gnu_ld"; then15448 version_type=linux # correct to gnu/linux during the next big refactor15449 else15450 version_type=irix15451 fi ;;15452 esac15453 need_lib_prefix=no15454 need_version=no15455 soname_spec='$libname$release$shared_ext$major'15456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'15457 case $host_os in15458 irix5* | nonstopux*)15459 libsuff= shlibsuff=15460 ;;15461 *)15462 case $LD in # libtool.m4 will add one of these switches to LD15463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")15464 libsuff= shlibsuff= libmagic=32-bit;;15465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")15466 libsuff=32 shlibsuff=N32 libmagic=N32;;15467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")15468 libsuff=64 shlibsuff=64 libmagic=64-bit;;15469 *) libsuff= shlibsuff= libmagic=never-match;;15470 esac15471 ;;15472 esac15473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH15474 shlibpath_overrides_runpath=no15475 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"15476 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"15477 hardcode_into_libs=yes15478 ;;15479 15480 # No shared lib support for Linux oldld, aout, or coff.15481 linux*oldld* | linux*aout* | linux*coff*)15482 dynamic_linker=no15483 ;;15484 15485 linux*android*)15486 version_type=none # Android doesn't support versioned libraries.15487 need_lib_prefix=no15488 need_version=no15489 library_names_spec='$libname$release$shared_ext'15490 soname_spec='$libname$release$shared_ext'15491 finish_cmds=15492 shlibpath_var=LD_LIBRARY_PATH15493 shlibpath_overrides_runpath=yes15494 15495 # This implies no fast_install, which is unacceptable.15496 # Some rework will be needed to allow for fast_install15497 # before this can be enabled.15498 hardcode_into_libs=yes15499 15500 dynamic_linker='Android linker'15501 # Don't embed -rpath directories since the linker doesn't support them.15502 hardcode_libdir_flag_spec_CXX='-L$libdir'15503 ;;15504 15505 # This must be glibc/ELF.15506 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)15507 version_type=linux # correct to gnu/linux during the next big refactor15508 need_lib_prefix=no15509 need_version=no15510 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15511 soname_spec='$libname$release$shared_ext$major'15512 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'15513 shlibpath_var=LD_LIBRARY_PATH15514 shlibpath_overrides_runpath=no15515 15516 # Some binutils ld are patched to set DT_RUNPATH15517 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :15518 $as_echo_n "(cached) " >&615519 else15520 lt_cv_shlibpath_overrides_runpath=no15521 save_LDFLAGS=$LDFLAGS15522 save_libdir=$libdir15523 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \15524 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext15526 /* end confdefs.h. */15527 15528 int15529 main ()15530 {15531 15532 ;15533 return 0;15534 }15535 _ACEOF15536 if ac_fn_cxx_try_link "$LINENO"; then :15537 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :15538 lt_cv_shlibpath_overrides_runpath=yes15539 fi15540 fi15541 rm -f core conftest.err conftest.$ac_objext \15542 conftest$ac_exeext conftest.$ac_ext15543 LDFLAGS=$save_LDFLAGS15544 libdir=$save_libdir15545 15546 fi15547 15548 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath15549 15550 # This implies no fast_install, which is unacceptable.15551 # Some rework will be needed to allow for fast_install15552 # before this can be enabled.15553 hardcode_into_libs=yes15554 15555 # Ideally, we could use ldconfig to report *all* directores which are15556 # searched for libraries, however this is still not possible. Aside from not15557 # being certain /sbin/ldconfig is available, command15558 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,15559 # even though it is searched at run-time. Try to do the best guess by15560 # appending ld.so.conf contents (and includes) to the search path.15561 if test -f /etc/ld.so.conf; then15562 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;s/"//g;/^$/d' | tr '\n' ' '`15563 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"15564 fi15565 15566 # We used to test for /lib/ld.so.1 and disable shared libraries on15567 # powerpc, because MkLinux only supported shared libraries with the15568 # GNU dynamic linker. Since this was broken with cross compilers,15569 # most powerpc-linux boxes support dynamic linking these days and15570 # people can always --disable-shared, the test was removed, and we15571 # assume the GNU/Linux dynamic linker is in use.15572 dynamic_linker='GNU/Linux ld.so'15573 ;;15574 15575 netbsdelf*-gnu)15576 version_type=linux15577 need_lib_prefix=no15578 need_version=no15579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'15580 soname_spec='${libname}${release}${shared_ext}$major'15581 shlibpath_var=LD_LIBRARY_PATH15582 shlibpath_overrides_runpath=no15583 hardcode_into_libs=yes15584 dynamic_linker='NetBSD ld.elf_so'15585 ;;15586 15587 netbsd*)15588 version_type=sunos15589 need_lib_prefix=no15590 need_version=no15591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then15592 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15594 dynamic_linker='NetBSD (a.out) ld.so'15595 else15596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15597 soname_spec='$libname$release$shared_ext$major'15598 dynamic_linker='NetBSD ld.elf_so'15599 fi15600 shlibpath_var=LD_LIBRARY_PATH15601 shlibpath_overrides_runpath=yes15602 hardcode_into_libs=yes15603 ;;15604 15605 newsos6)15606 version_type=linux # correct to gnu/linux during the next big refactor15607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15608 shlibpath_var=LD_LIBRARY_PATH15609 shlibpath_overrides_runpath=yes15610 ;;15611 15612 *nto* | *qnx*)15613 version_type=qnx15614 need_lib_prefix=no15615 need_version=no15616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15617 soname_spec='$libname$release$shared_ext$major'15618 shlibpath_var=LD_LIBRARY_PATH15619 shlibpath_overrides_runpath=no15620 hardcode_into_libs=yes15621 dynamic_linker='ldqnx.so'15622 ;;15623 15624 openbsd* | bitrig*)15625 version_type=sunos15626 sys_lib_dlsearch_path_spec=/usr/lib15627 need_lib_prefix=no15628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then15629 need_version=no15630 else15631 need_version=yes15632 fi15633 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15635 shlibpath_var=LD_LIBRARY_PATH15636 shlibpath_overrides_runpath=yes15637 ;;15638 15639 os2*)15640 libname_spec='$name'15641 version_type=windows15642 shrext_cmds=.dll15643 need_version=no15644 need_lib_prefix=no15645 # OS/2 can only load a DLL with a base name of 8 characters or less.15646 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";15647 v=$($ECHO $release$versuffix | tr -d .-);15648 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);15649 $ECHO $n$v`$shared_ext'15650 library_names_spec='${libname}_dll.$libext'15651 dynamic_linker='OS/2 ld.exe'15652 shlibpath_var=BEGINLIBPATH15653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"15654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15655 postinstall_cmds='base_file=`basename \$file`~15656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~15657 dldir=$destdir/`dirname \$dlpath`~15658 test -d \$dldir || mkdir -p \$dldir~15659 $install_prog $dir/$dlname \$dldir/$dlname~15660 chmod a+x \$dldir/$dlname~15661 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15662 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15663 fi'15664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~15665 dlpath=$dir/\$dldll~15666 $RM \$dlpath'15667 ;;15668 15669 osf3* | osf4* | osf5*)15670 version_type=osf15671 need_lib_prefix=no15672 need_version=no15673 soname_spec='$libname$release$shared_ext$major'15674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15675 shlibpath_var=LD_LIBRARY_PATH15676 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"15677 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15678 ;;15679 15680 rdos*)15681 dynamic_linker=no15682 ;;15683 15684 solaris*)15685 version_type=linux # correct to gnu/linux during the next big refactor15686 need_lib_prefix=no15687 need_version=no15688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15689 soname_spec='$libname$release$shared_ext$major'15690 shlibpath_var=LD_LIBRARY_PATH15691 shlibpath_overrides_runpath=yes15692 hardcode_into_libs=yes15693 # ldd complains unless libraries are executable15694 postinstall_cmds='chmod +x $lib'15695 ;;15696 15697 sunos4*)15698 version_type=sunos15699 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15700 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'15701 shlibpath_var=LD_LIBRARY_PATH15702 shlibpath_overrides_runpath=yes15703 if test yes = "$with_gnu_ld"; then15704 need_lib_prefix=no15705 fi15706 need_version=yes15707 ;;15708 15709 sysv4 | sysv4.3*)15710 version_type=linux # correct to gnu/linux during the next big refactor15711 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15712 soname_spec='$libname$release$shared_ext$major'15713 shlibpath_var=LD_LIBRARY_PATH15714 case $host_vendor in15715 sni)15716 shlibpath_overrides_runpath=no15717 need_lib_prefix=no15718 runpath_var=LD_RUN_PATH15719 ;;15720 siemens)15721 need_lib_prefix=no15722 ;;15723 motorola)15724 need_lib_prefix=no15725 need_version=no15726 shlibpath_overrides_runpath=no15727 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'15728 ;;15729 esac15730 ;;15731 15732 sysv4*MP*)15733 if test -d /usr/nec; then15734 version_type=linux # correct to gnu/linux during the next big refactor15735 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'15736 soname_spec='$libname$shared_ext.$major'15737 shlibpath_var=LD_LIBRARY_PATH15738 fi15739 ;;15740 15741 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)15742 version_type=sco15743 need_lib_prefix=no15744 need_version=no15745 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'15746 soname_spec='$libname$release$shared_ext$major'15747 shlibpath_var=LD_LIBRARY_PATH15748 shlibpath_overrides_runpath=yes15749 hardcode_into_libs=yes15750 if test yes = "$with_gnu_ld"; then15751 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'15752 else15753 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'15754 case $host_os in15755 sco3.2v5*)15756 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"15757 ;;15758 esac15759 fi15760 sys_lib_dlsearch_path_spec='/usr/lib'15761 ;;15762 15763 tpf*)15764 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.15765 version_type=linux # correct to gnu/linux during the next big refactor15766 need_lib_prefix=no15767 need_version=no15768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15769 shlibpath_var=LD_LIBRARY_PATH15770 shlibpath_overrides_runpath=no15771 hardcode_into_libs=yes15772 ;;15773 15774 uts4*)15775 version_type=linux # correct to gnu/linux during the next big refactor15776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15777 soname_spec='$libname$release$shared_ext$major'15778 shlibpath_var=LD_LIBRARY_PATH15779 ;;15780 15781 *)15782 dynamic_linker=no15783 ;;15784 esac15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&515786 $as_echo "$dynamic_linker" >&6; }15787 test no = "$dynamic_linker" && can_build_shared=no15788 15789 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"15790 if test yes = "$GCC"; then15791 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"15792 fi15793 15794 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then15795 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec15796 fi15797 15798 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then15799 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec15800 fi15801 15802 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...15803 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec15804 15805 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code15806 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"15807 15808 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool15809 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&515851 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }15852 hardcode_action_CXX=15853 if test -n "$hardcode_libdir_flag_spec_CXX" ||15854 test -n "$runpath_var_CXX" ||15855 test yes = "$hardcode_automatic_CXX"; then15856 15857 # We can hardcode non-existent directories.15858 if test no != "$hardcode_direct_CXX" &&15859 # If the only mechanism to avoid hardcoding is shlibpath_var, we15860 # have to relink, otherwise we might link with an installed library15861 # when we should be linking with a yet-to-be-installed one15862 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&15863 test no != "$hardcode_minus_L_CXX"; then15864 # Linking always hardcodes the temporary library directory.15865 hardcode_action_CXX=relink15866 else15867 # We can link without hardcoding, and we can hardcode nonexisting dirs.15868 hardcode_action_CXX=immediate15869 fi15870 else15871 # We cannot hardcode anything, or else we can only hardcode existing15872 # directories.15873 hardcode_action_CXX=unsupported15874 fi15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&515876 $as_echo "$hardcode_action_CXX" >&6; }15877 15878 if test relink = "$hardcode_action_CXX" ||15879 test yes = "$inherit_rpath_CXX"; then15880 # Fast installation is not supported15881 enable_fast_install=no15882 elif test yes = "$shlibpath_overrides_runpath" ||15883 test no = "$enable_shared"; then15884 # Fast installation is not necessary15885 enable_fast_install=needless15886 fi15887 15888 15889 15890 15891 15892 15893 15894 fi # test -n "$compiler"15895 15896 CC=$lt_save_CC15897 CFLAGS=$lt_save_CFLAGS15898 LDCXX=$LD15899 LD=$lt_save_LD15900 GCC=$lt_save_GCC15901 with_gnu_ld=$lt_save_with_gnu_ld15902 lt_cv_path_LDCXX=$lt_cv_path_LD15903 lt_cv_path_LD=$lt_save_path_LD15904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld15905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld15906 fi # test yes != "$_lt_caught_CXX_error"15907 15908 ac_ext=c15909 ac_cpp='$CPP $CPPFLAGS'15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu15913 15914 15915 ac_ext=c15916 ac_cpp='$CPP $CPPFLAGS'15917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15919 ac_compiler_gnu=$ac_cv_c_compiler_gnu15920 if test -n "$ac_tool_prefix"; then15921 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.15922 set dummy ${ac_tool_prefix}gcc; ac_word=$215923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515924 $as_echo_n "checking for $ac_word... " >&6; }15925 if ${ac_cv_prog_CC+:} false; then :15926 $as_echo_n "(cached) " >&615927 else15928 if test -n "$CC"; then15929 ac_cv_prog_CC="$CC" # Let the user override the test.15930 else15931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15932 for as_dir in $PATH15933 do15934 IFS=$as_save_IFS15935 test -z "$as_dir" && as_dir=.15936 for ac_exec_ext in '' $ac_executable_extensions; do15937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15938 ac_cv_prog_CC="${ac_tool_prefix}gcc"15939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515940 break 215941 fi15942 done15943 done15944 IFS=$as_save_IFS15945 15946 fi15947 fi15948 CC=$ac_cv_prog_CC15949 if test -n "$CC"; then15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&515951 $as_echo "$CC" >&6; }15952 else15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515954 $as_echo "no" >&6; }15955 fi15956 15957 15958 fi15959 if test -z "$ac_cv_prog_CC"; then15960 ac_ct_CC=$CC15961 # Extract the first word of "gcc", so it can be a program name with args.15962 set dummy gcc; ac_word=$215963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515964 $as_echo_n "checking for $ac_word... " >&6; }15965 if ${ac_cv_prog_ac_ct_CC+:} false; then :15966 $as_echo_n "(cached) " >&615967 else15968 if test -n "$ac_ct_CC"; then15969 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.15970 else15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15972 for as_dir in $PATH15973 do15974 IFS=$as_save_IFS15975 test -z "$as_dir" && as_dir=.15976 for ac_exec_ext in '' $ac_executable_extensions; do15977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15978 ac_cv_prog_ac_ct_CC="gcc"15979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515980 break 215981 fi15982 done15983 done15984 IFS=$as_save_IFS15985 15986 fi15987 fi15988 ac_ct_CC=$ac_cv_prog_ac_ct_CC15989 if test -n "$ac_ct_CC"; then15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&515991 $as_echo "$ac_ct_CC" >&6; }15992 else15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515994 $as_echo "no" >&6; }15995 fi15996 15997 if test "x$ac_ct_CC" = x; then15998 CC=""15999 else16000 case $cross_compiling:$ac_tool_warned in16001 yes:)16002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&516003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}16004 ac_tool_warned=yes ;;16005 esac16006 CC=$ac_ct_CC16007 fi16008 else16009 CC="$ac_cv_prog_CC"16010 fi16011 16012 if test -z "$CC"; then16013 if test -n "$ac_tool_prefix"; then16014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.16015 set dummy ${ac_tool_prefix}cc; ac_word=$216016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516017 $as_echo_n "checking for $ac_word... " >&6; }16018 if ${ac_cv_prog_CC+:} false; then :16019 $as_echo_n "(cached) " >&616020 else16021 if test -n "$CC"; then16022 ac_cv_prog_CC="$CC" # Let the user override the test.16023 else16024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16025 for as_dir in $PATH16026 do16027 IFS=$as_save_IFS16028 test -z "$as_dir" && as_dir=.16029 for ac_exec_ext in '' $ac_executable_extensions; do16030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16031 ac_cv_prog_CC="${ac_tool_prefix}cc"16032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516033 break 216034 fi16035 done16036 done16037 IFS=$as_save_IFS16038 16039 fi16040 fi16041 CC=$ac_cv_prog_CC16042 if test -n "$CC"; then16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516044 $as_echo "$CC" >&6; }16045 else16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516047 $as_echo "no" >&6; }16048 fi16049 16050 16051 fi16052 fi16053 if test -z "$CC"; then16054 # Extract the first word of "cc", so it can be a program name with args.16055 set dummy cc; ac_word=$216056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516057 $as_echo_n "checking for $ac_word... " >&6; }16058 if ${ac_cv_prog_CC+:} false; then :16059 $as_echo_n "(cached) " >&616060 else16061 if test -n "$CC"; then16062 ac_cv_prog_CC="$CC" # Let the user override the test.16063 else16064 ac_prog_rejected=no16065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16066 for as_dir in $PATH16067 do16068 IFS=$as_save_IFS16069 test -z "$as_dir" && as_dir=.16070 for ac_exec_ext in '' $ac_executable_extensions; do16071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16072 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then16073 ac_prog_rejected=yes16074 continue16075 fi16076 ac_cv_prog_CC="cc"16077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516078 break 216079 fi16080 done16081 done16082 IFS=$as_save_IFS16083 16084 if test $ac_prog_rejected = yes; then16085 # We found a bogon in the path, so make sure we never use it.16086 set dummy $ac_cv_prog_CC16087 shift16088 if test $# != 0; then16089 # We chose a different compiler from the bogus one.16090 # However, it has the same basename, so the bogon will be chosen16091 # first if we set CC to just the basename; use the full file name.16092 shift16093 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"16094 fi16095 fi16096 fi16097 fi16098 CC=$ac_cv_prog_CC16099 if test -n "$CC"; then16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516101 $as_echo "$CC" >&6; }16102 else16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516104 $as_echo "no" >&6; }16105 fi16106 16107 16108 fi16109 if test -z "$CC"; then16110 if test -n "$ac_tool_prefix"; then16111 for ac_prog in cl.exe16112 do16113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.16114 set dummy $ac_tool_prefix$ac_prog; ac_word=$216115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516116 $as_echo_n "checking for $ac_word... " >&6; }16117 if ${ac_cv_prog_CC+:} false; then :16118 $as_echo_n "(cached) " >&616119 else16120 if test -n "$CC"; then16121 ac_cv_prog_CC="$CC" # Let the user override the test.16122 else16123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16124 for as_dir in $PATH16125 do16126 IFS=$as_save_IFS16127 test -z "$as_dir" && as_dir=.16128 for ac_exec_ext in '' $ac_executable_extensions; do16129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16130 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"16131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516132 break 216133 fi16134 done16135 done16136 IFS=$as_save_IFS16137 16138 fi16139 fi16140 CC=$ac_cv_prog_CC16141 if test -n "$CC"; then16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516143 $as_echo "$CC" >&6; }16144 else16145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516146 $as_echo "no" >&6; }16147 fi16148 16149 16150 test -n "$CC" && break16151 done16152 fi16153 if test -z "$CC"; then16154 ac_ct_CC=$CC16155 for ac_prog in cl.exe16156 do16157 # Extract the first word of "$ac_prog", so it can be a program name with args.16158 set dummy $ac_prog; ac_word=$216159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516160 $as_echo_n "checking for $ac_word... " >&6; }16161 if ${ac_cv_prog_ac_ct_CC+:} false; then :16162 $as_echo_n "(cached) " >&616163 else16164 if test -n "$ac_ct_CC"; then16165 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.16166 else16167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16168 for as_dir in $PATH16169 do16170 IFS=$as_save_IFS16171 test -z "$as_dir" && as_dir=.16172 for ac_exec_ext in '' $ac_executable_extensions; do16173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16174 ac_cv_prog_ac_ct_CC="$ac_prog"16175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516176 break 216177 fi16178 done16179 done16180 IFS=$as_save_IFS16181 16182 fi16183 fi16184 ac_ct_CC=$ac_cv_prog_ac_ct_CC16185 if test -n "$ac_ct_CC"; then16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&516187 $as_echo "$ac_ct_CC" >&6; }16188 else16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516190 $as_echo "no" >&6; }16191 fi16192 16193 16194 test -n "$ac_ct_CC" && break16195 done16196 16197 if test "x$ac_ct_CC" = x; then16198 CC=""16199 else16200 case $cross_compiling:$ac_tool_warned in16201 yes:)16202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&516203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}16204 ac_tool_warned=yes ;;16205 esac16206 CC=$ac_ct_CC16207 fi16208 fi16209 16210 fi16211 16212 16213 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&516214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}16215 as_fn_error $? "no acceptable C compiler found in \$PATH16216 See \`config.log' for more details" "$LINENO" 5; }16217 16218 # Provide some information about the compiler.16219 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&516220 set X $ac_compile16221 ac_compiler=$216222 for ac_option in --version -v -V -qversion; do16223 { { ac_try="$ac_compiler $ac_option >&5"16224 case "(($ac_try" in16225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16226 *) ac_try_echo=$ac_try;;16227 esac16228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16229 $as_echo "$ac_try_echo"; } >&516230 (eval "$ac_compiler $ac_option >&5") 2>conftest.err16231 ac_status=$?16232 if test -s conftest.err; then16233 sed '10a\16234 ... rest of stderr output deleted ...16235 10q' conftest.err >conftest.er116236 cat conftest.er1 >&516237 fi16238 rm -f conftest.er1 conftest.err16239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516240 test $ac_status = 0; }16241 done16242 16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&516244 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }16245 if ${ac_cv_c_compiler_gnu+:} false; then :16246 $as_echo_n "(cached) " >&616247 else16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16249 /* end confdefs.h. */16250 16251 int16252 main ()16253 {16254 #ifndef __GNUC__16255 choke me16256 #endif16257 16258 ;16259 return 0;16260 }16261 _ACEOF16262 if ac_fn_c_try_compile "$LINENO"; then :16263 ac_compiler_gnu=yes16264 else16265 ac_compiler_gnu=no16266 fi16267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16268 ac_cv_c_compiler_gnu=$ac_compiler_gnu16269 16270 fi16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&516272 $as_echo "$ac_cv_c_compiler_gnu" >&6; }16273 if test $ac_compiler_gnu = yes; then16274 GCC=yes16275 else16276 GCC=16277 fi16278 ac_test_CFLAGS=${CFLAGS+set}16279 ac_save_CFLAGS=$CFLAGS16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&516281 $as_echo_n "checking whether $CC accepts -g... " >&6; }16282 if ${ac_cv_prog_cc_g+:} false; then :16283 $as_echo_n "(cached) " >&616284 else16285 ac_save_c_werror_flag=$ac_c_werror_flag16286 ac_c_werror_flag=yes16287 ac_cv_prog_cc_g=no16288 CFLAGS="-g"16289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16290 /* end confdefs.h. */16291 16292 int16293 main ()16294 {16295 16296 ;16297 return 0;16298 }16299 _ACEOF16300 if ac_fn_c_try_compile "$LINENO"; then :16301 ac_cv_prog_cc_g=yes16302 else16303 CFLAGS=""16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16305 /* end confdefs.h. */16306 16307 int16308 main ()16309 {16310 16311 ;16312 return 0;16313 }16314 _ACEOF16315 if ac_fn_c_try_compile "$LINENO"; then :16316 16317 else16318 ac_c_werror_flag=$ac_save_c_werror_flag16319 CFLAGS="-g"16320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16321 /* end confdefs.h. */16322 16323 int16324 main ()16325 {16326 16327 ;16328 return 0;16329 }16330 _ACEOF16331 if ac_fn_c_try_compile "$LINENO"; then :16332 ac_cv_prog_cc_g=yes16333 fi16334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16335 fi16336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16337 fi16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16339 ac_c_werror_flag=$ac_save_c_werror_flag16340 fi16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&516342 $as_echo "$ac_cv_prog_cc_g" >&6; }16343 if test "$ac_test_CFLAGS" = set; then16344 CFLAGS=$ac_save_CFLAGS16345 elif test $ac_cv_prog_cc_g = yes; then16346 if test "$GCC" = yes; then16347 CFLAGS="-g -O2"16348 else16349 CFLAGS="-g"16350 fi16351 else16352 if test "$GCC" = yes; then16353 CFLAGS="-O2"16354 else16355 CFLAGS=16356 fi16357 fi16358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&516359 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }16360 if ${ac_cv_prog_cc_c89+:} false; then :16361 $as_echo_n "(cached) " >&616362 else16363 ac_cv_prog_cc_c89=no16364 ac_save_CC=$CC16365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16366 /* end confdefs.h. */16367 #include <stdarg.h>16368 #include <stdio.h>16369 struct stat;16370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */16371 struct buf { int x; };16372 FILE * (*rcsopen) (struct buf *, struct stat *, int);16373 static char *e (p, i)16374 char **p;16375 int i;16376 {16377 return p[i];16378 }16379 static char *f (char * (*g) (char **, int), char **p, ...)16380 {16381 char *s;16382 va_list v;16383 va_start (v,p);16384 s = g (p, va_arg (v,int));16385 va_end (v);16386 return s;16387 }16388 16389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has16390 function prototypes and stuff, but not '\xHH' hex character constants.16391 These don't provoke an error unfortunately, instead are silently treated16392 as 'x'. The following induces an error, until -std is added to get16393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an16394 array size at least. It's necessary to write '\x00'==0 to get something16395 that's true only with -std. */16396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];16397 16398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters16399 inside strings and character constants. */16400 #define FOO(x) 'x'16401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];16402 16403 int test (int i, double x);16404 struct s1 {int (*f) (int a);};16405 struct s2 {int (*f) (double a);};16406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);16407 int argc;16408 char **argv;16409 int16410 main ()16411 {16412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];16413 ;16414 return 0;16415 }16416 _ACEOF16417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \16418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"16419 do16420 CC="$ac_save_CC $ac_arg"16421 if ac_fn_c_try_compile "$LINENO"; then :16422 ac_cv_prog_cc_c89=$ac_arg16423 fi16424 rm -f core conftest.err conftest.$ac_objext16425 test "x$ac_cv_prog_cc_c89" != "xno" && break16426 done16427 rm -f conftest.$ac_ext16428 CC=$ac_save_CC16429 16430 fi16431 # AC_CACHE_VAL16432 case "x$ac_cv_prog_cc_c89" in16433 x)16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&516435 $as_echo "none needed" >&6; } ;;16436 xno)16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&516438 $as_echo "unsupported" >&6; } ;;16439 *)16440 CC="$CC $ac_cv_prog_cc_c89"16441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&516442 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;16443 esac16444 if test "x$ac_cv_prog_cc_c89" != xno; then :16445 16446 fi16447 16448 ac_ext=c16449 ac_cpp='$CPP $CPPFLAGS'16450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16452 ac_compiler_gnu=$ac_cv_c_compiler_gnu16453 16454 ac_ext=c16455 ac_cpp='$CPP $CPPFLAGS'16456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16458 ac_compiler_gnu=$ac_cv_c_compiler_gnu16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&516460 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }16461 if ${am_cv_prog_cc_c_o+:} false; then :16462 $as_echo_n "(cached) " >&616463 else16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16465 /* end confdefs.h. */16466 16467 int16468 main ()16469 {16470 16471 ;16472 return 0;16473 }16474 _ACEOF16475 # Make sure it works both with $CC and with simple cc.16476 # Following AC_PROG_CC_C_O, we do the test twice because some16477 # compilers refuse to overwrite an existing .o file with -o,16478 # though they will create one.16479 am_cv_prog_cc_c_o=yes16480 for am_i in 1 2; do16481 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&516482 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&516483 ac_status=$?16484 echo "$as_me:$LINENO: \$? = $ac_status" >&516485 (exit $ac_status); } \16486 && test -f conftest2.$ac_objext; then16487 : OK16488 else16489 am_cv_prog_cc_c_o=no16490 break16491 fi16492 done16493 rm -f core conftest*16494 unset am_i16495 fi16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&516497 $as_echo "$am_cv_prog_cc_c_o" >&6; }16498 if test "$am_cv_prog_cc_c_o" != yes; then16499 # Losing compiler, so override with the script.16500 # FIXME: It is wrong to rewrite CC.16501 # But if we don't then we get into trouble of one sort or another.16502 # A longer-term fix would be to have automake use am__CC in this case,16503 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"16504 CC="$am_aux_dir/compile $CC"16505 fi16506 ac_ext=c16507 ac_cpp='$CPP $CPPFLAGS'16508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16510 ac_compiler_gnu=$ac_cv_c_compiler_gnu16511 16512 16513 depcc="$CC" am_compiler_list=16514 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&516516 $as_echo_n "checking dependency style of $depcc... " >&6; }16517 if ${am_cv_CC_dependencies_compiler_type+:} false; then :16518 $as_echo_n "(cached) " >&616519 else16520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then16521 # We make a subdir and do the tests there. Otherwise we can end up16522 # making bogus files that we don't know about and never remove. For16523 # instance it was reported that on HP-UX the gcc test will end up16524 # making a dummy file named 'D' -- because '-MD' means "put the output16525 # in D".16526 rm -rf conftest.dir16527 mkdir conftest.dir16528 # Copy depcomp to subdir because otherwise we won't find it if we're16529 # using a relative directory.16530 cp "$am_depcomp" conftest.dir16531 cd conftest.dir16532 # We will build objects and dependencies in a subdirectory because16533 # it helps to detect inapplicable dependency modes. For instance16534 # both Tru64's cc and ICC support -MD to output dependencies as a16535 # side effect of compilation, but ICC will put the dependencies in16536 # the current directory while Tru64 will put them in the object16537 # directory.16538 mkdir sub16539 16540 am_cv_CC_dependencies_compiler_type=none16541 if test "$am_compiler_list" = ""; then16542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`16543 fi16544 am__universal=false16545 case " $depcc " in #(16546 *\ -arch\ *\ -arch\ *) am__universal=true ;;16547 esac16548 16549 for depmode in $am_compiler_list; do16550 # Setup a source with many dependencies, because some compilers16551 # like to wrap large dependency lists on column 80 (with \), and16552 # we should not choose a depcomp mode which is confused by this.16553 #16554 # We need to recreate these files for each test, as the compiler may16555 # overwrite some of them when testing with obscure command lines.16556 # This happens at least with the AIX C compiler.16557 : > sub/conftest.c16558 for i in 1 2 3 4 5 6; do16559 echo '#include "conftst'$i'.h"' >> sub/conftest.c16560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with16561 # Solaris 10 /bin/sh.16562 echo '/* dummy */' > sub/conftst$i.h16563 done16564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf16565 16566 # We check with '-c' and '-o' for the sake of the "dashmstdout"16567 # mode. It turns out that the SunPro C++ compiler does not properly16568 # handle '-M -o', and we need to detect this. Also, some Intel16569 # versions had trouble with output in subdirs.16570 am__obj=sub/conftest.${OBJEXT-o}16571 am__minus_obj="-o $am__obj"16572 case $depmode in16573 gcc)16574 # This depmode causes a compiler race in universal mode.16575 test "$am__universal" = false || continue16576 ;;16577 nosideeffect)16578 # After this tag, mechanisms are not by side-effect, so they'll16579 # only be used when explicitly requested.16580 if test "x$enable_dependency_tracking" = xyes; then16581 continue16582 else16583 break16584 fi16585 ;;16586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)16587 # This compiler won't grok '-c -o', but also, the minuso test has16588 # not run yet. These depmodes are late enough in the game, and16589 # so weak that their functioning should not be impacted.16590 am__obj=conftest.${OBJEXT-o}16591 am__minus_obj=16592 ;;16593 none) break ;;16594 esac16595 if depmode=$depmode \16596 source=sub/conftest.c object=$am__obj \16597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \16598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \16599 >/dev/null 2>conftest.err &&16600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&16601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&16602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&16603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then16604 # icc doesn't choke on unknown options, it will just issue warnings16605 # or remarks (even with -Werror). So we grep stderr for any message16606 # that says an option was ignored or not supported.16607 # When given -MP, icc 7.0 and 7.1 complain thusly:16608 # icc: Command line warning: ignoring option '-M'; no argument required16609 # The diagnosis changed in icc 8.0:16610 # icc: Command line remark: option '-MP' not supported16611 if (grep 'ignoring option' conftest.err ||16612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else16613 am_cv_CC_dependencies_compiler_type=$depmode16614 break16615 fi16616 fi16617 done16618 16619 cd ..16620 rm -rf conftest.dir16621 else16622 am_cv_CC_dependencies_compiler_type=none16623 fi16624 16625 fi16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&516627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }16628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type16629 16630 if16631 test "x$enable_dependency_tracking" != xno \16632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then16633 am__fastdepCC_TRUE=16634 am__fastdepCC_FALSE='#'16635 else16636 am__fastdepCC_TRUE='#'16637 am__fastdepCC_FALSE=16638 fi16639 16640 16641 4074 # By default we simply use the C compiler to build assembly code. 16642 4075 … … 16804 4237 fi 16805 4238 4239 if test -n "$ac_tool_prefix"; then 4240 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4241 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4243 $as_echo_n "checking for $ac_word... " >&6; } 4244 if ${ac_cv_prog_RANLIB+:} false; then : 4245 $as_echo_n "(cached) " >&6 4246 else 4247 if test -n "$RANLIB"; then 4248 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4249 else 4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4251 for as_dir in $PATH 4252 do 4253 IFS=$as_save_IFS 4254 test -z "$as_dir" && as_dir=. 4255 for ac_exec_ext in '' $ac_executable_extensions; do 4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4257 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4259 break 2 4260 fi 4261 done 4262 done 4263 IFS=$as_save_IFS 4264 4265 fi 4266 fi 4267 RANLIB=$ac_cv_prog_RANLIB 4268 if test -n "$RANLIB"; then 4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4270 $as_echo "$RANLIB" >&6; } 4271 else 4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4273 $as_echo "no" >&6; } 4274 fi 4275 4276 4277 fi 4278 if test -z "$ac_cv_prog_RANLIB"; then 4279 ac_ct_RANLIB=$RANLIB 4280 # Extract the first word of "ranlib", so it can be a program name with args. 4281 set dummy ranlib; ac_word=$2 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283 $as_echo_n "checking for $ac_word... " >&6; } 4284 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4285 $as_echo_n "(cached) " >&6 4286 else 4287 if test -n "$ac_ct_RANLIB"; then 4288 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4289 else 4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4291 for as_dir in $PATH 4292 do 4293 IFS=$as_save_IFS 4294 test -z "$as_dir" && as_dir=. 4295 for ac_exec_ext in '' $ac_executable_extensions; do 4296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4297 ac_cv_prog_ac_ct_RANLIB="ranlib" 4298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4299 break 2 4300 fi 4301 done 4302 done 4303 IFS=$as_save_IFS 4304 4305 fi 4306 fi 4307 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4308 if test -n "$ac_ct_RANLIB"; then 4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4310 $as_echo "$ac_ct_RANLIB" >&6; } 4311 else 4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4313 $as_echo "no" >&6; } 4314 fi 4315 4316 if test "x$ac_ct_RANLIB" = x; then 4317 RANLIB=":" 4318 else 4319 case $cross_compiling:$ac_tool_warned in 4320 yes:) 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4323 ac_tool_warned=yes ;; 4324 esac 4325 RANLIB=$ac_ct_RANLIB 4326 fi 4327 else 4328 RANLIB="$ac_cv_prog_RANLIB" 4329 fi 4330 16806 4331 16807 4332 ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile" … … 16977 4502 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16978 4503 fi 16979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then16980 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.16981 Usually this means the macro was only invoked conditionally." "$LINENO" 516982 fi16983 4504 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 16984 4505 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. … … 17557 5078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17558 5079 17559 17560 # The HP-UX ksh and POSIX shell print the target directory to stdout17561 # if CDPATH is set.17562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH17563 17564 sed_quote_subst='$sed_quote_subst'17565 double_quote_subst='$double_quote_subst'17566 delay_variable_subst='$delay_variable_subst'17567 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'17568 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'17569 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'17570 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'17571 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'17572 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'17573 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'17574 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'17575 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'17576 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'17577 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'17578 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'17579 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'17580 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'17581 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'17582 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'17583 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'17584 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'17585 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'17586 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'17587 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'17588 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'17589 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'17590 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'17591 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'17592 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'17593 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'17594 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'17595 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'17596 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'17597 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'17598 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'17599 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'17600 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'17601 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'17602 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'17603 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'17604 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'17605 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'17606 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'17607 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'17608 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'17609 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'17610 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'17611 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'17612 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'17613 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'17614 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17615 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'17616 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'17617 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'17618 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'17619 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'17620 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'17621 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'17622 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'17623 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'17624 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'17625 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'17626 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'17627 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'17628 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'17629 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'17630 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'17631 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'17632 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'17633 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'17634 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'17635 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'17636 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'17637 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'17638 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'17639 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'17640 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'17641 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'17642 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'17643 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'17644 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'17645 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'17646 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17647 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'17648 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'17649 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'17650 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'17651 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'17652 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'17653 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17654 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'17655 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'17656 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'17657 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'17658 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'17659 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'17660 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'17661 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'17662 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'17663 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'17664 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'17665 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'17666 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'17667 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'17668 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'17669 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'17670 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'17671 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'17672 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'17673 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'17674 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'17675 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'17676 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'17677 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'17678 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'17679 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'17680 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'17681 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'17682 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'17683 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'17684 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'17685 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'17686 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'17687 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'17688 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'17689 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17690 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'17691 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'17692 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'17693 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'17694 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'17695 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'17696 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'17697 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'17698 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'17699 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'17700 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'17701 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'17702 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'17703 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'17704 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'17705 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'17706 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'17707 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'17708 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'17709 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'17710 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'17711 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17712 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'17713 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'17714 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'17715 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'17716 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'17717 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'17718 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'17719 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'17720 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'17721 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17722 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17723 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'17724 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'17725 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'17726 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17727 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17728 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'17729 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17730 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'17731 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17732 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17733 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17734 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'17735 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'17736 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'17737 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'17738 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'17739 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'17740 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'17741 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'17742 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'17743 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'17744 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17745 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17746 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17747 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17748 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'17749 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'17750 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'17751 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'17752 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'17753 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'17754 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'17755 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'17756 17757 LTCC='$LTCC'17758 LTCFLAGS='$LTCFLAGS'17759 compiler='$compiler_DEFAULT'17760 17761 # A function that is used when there is no print builtin or printf.17762 func_fallback_echo ()17763 {17764 eval 'cat <<_LTECHO_EOF17765 \$117766 _LTECHO_EOF'17767 }17768 17769 # Quote evaled strings.17770 for var in SHELL \17771 ECHO \17772 PATH_SEPARATOR \17773 SED \17774 GREP \17775 EGREP \17776 FGREP \17777 LD \17778 NM \17779 LN_S \17780 lt_SP2NL \17781 lt_NL2SP \17782 reload_flag \17783 OBJDUMP \17784 deplibs_check_method \17785 file_magic_cmd \17786 file_magic_glob \17787 want_nocaseglob \17788 DLLTOOL \17789 sharedlib_from_linklib_cmd \17790 AR \17791 AR_FLAGS \17792 archiver_list_spec \17793 STRIP \17794 RANLIB \17795 CC \17796 CFLAGS \17797 compiler \17798 lt_cv_sys_global_symbol_pipe \17799 lt_cv_sys_global_symbol_to_cdecl \17800 lt_cv_sys_global_symbol_to_import \17801 lt_cv_sys_global_symbol_to_c_name_address \17802 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \17803 lt_cv_nm_interface \17804 nm_file_list_spec \17805 lt_cv_truncate_bin \17806 lt_prog_compiler_no_builtin_flag \17807 lt_prog_compiler_pic \17808 lt_prog_compiler_wl \17809 lt_prog_compiler_static \17810 lt_cv_prog_compiler_c_o \17811 need_locks \17812 MANIFEST_TOOL \17813 DSYMUTIL \17814 NMEDIT \17815 LIPO \17816 OTOOL \17817 OTOOL64 \17818 shrext_cmds \17819 export_dynamic_flag_spec \17820 whole_archive_flag_spec \17821 compiler_needs_object \17822 with_gnu_ld \17823 allow_undefined_flag \17824 no_undefined_flag \17825 hardcode_libdir_flag_spec \17826 hardcode_libdir_separator \17827 exclude_expsyms \17828 include_expsyms \17829 file_list_spec \17830 variables_saved_for_relink \17831 libname_spec \17832 library_names_spec \17833 soname_spec \17834 install_override_mode \17835 finish_eval \17836 old_striplib \17837 striplib \17838 compiler_lib_search_dirs \17839 predep_objects \17840 postdep_objects \17841 predeps \17842 postdeps \17843 compiler_lib_search_path \17844 LD_CXX \17845 reload_flag_CXX \17846 compiler_CXX \17847 lt_prog_compiler_no_builtin_flag_CXX \17848 lt_prog_compiler_pic_CXX \17849 lt_prog_compiler_wl_CXX \17850 lt_prog_compiler_static_CXX \17851 lt_cv_prog_compiler_c_o_CXX \17852 export_dynamic_flag_spec_CXX \17853 whole_archive_flag_spec_CXX \17854 compiler_needs_object_CXX \17855 with_gnu_ld_CXX \17856 allow_undefined_flag_CXX \17857 no_undefined_flag_CXX \17858 hardcode_libdir_flag_spec_CXX \17859 hardcode_libdir_separator_CXX \17860 exclude_expsyms_CXX \17861 include_expsyms_CXX \17862 file_list_spec_CXX \17863 compiler_lib_search_dirs_CXX \17864 predep_objects_CXX \17865 postdep_objects_CXX \17866 predeps_CXX \17867 postdeps_CXX \17868 compiler_lib_search_path_CXX; do17869 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17870 *[\\\\\\\`\\"\\\$]*)17871 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17872 ;;17873 *)17874 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17875 ;;17876 esac17877 done17878 17879 # Double-quote double-evaled strings.17880 for var in reload_cmds \17881 old_postinstall_cmds \17882 old_postuninstall_cmds \17883 old_archive_cmds \17884 extract_expsyms_cmds \17885 old_archive_from_new_cmds \17886 old_archive_from_expsyms_cmds \17887 archive_cmds \17888 archive_expsym_cmds \17889 module_cmds \17890 module_expsym_cmds \17891 export_symbols_cmds \17892 prelink_cmds \17893 postlink_cmds \17894 postinstall_cmds \17895 postuninstall_cmds \17896 finish_cmds \17897 sys_lib_search_path_spec \17898 configure_time_dlsearch_path \17899 configure_time_lt_sys_library_path \17900 reload_cmds_CXX \17901 old_archive_cmds_CXX \17902 old_archive_from_new_cmds_CXX \17903 old_archive_from_expsyms_cmds_CXX \17904 archive_cmds_CXX \17905 archive_expsym_cmds_CXX \17906 module_cmds_CXX \17907 module_expsym_cmds_CXX \17908 export_symbols_cmds_CXX \17909 prelink_cmds_CXX \17910 postlink_cmds_CXX; do17911 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17912 *[\\\\\\\`\\"\\\$]*)17913 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17914 ;;17915 *)17916 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17917 ;;17918 esac17919 done17920 17921 ac_aux_dir='$ac_aux_dir'17922 17923 # See if we are running on zsh, and set the options that allow our17924 # commands through without removal of \ escapes INIT.17925 if test -n "\${ZSH_VERSION+set}"; then17926 setopt NO_GLOB_SUBST17927 fi17928 17929 17930 PACKAGE='$PACKAGE'17931 VERSION='$VERSION'17932 RM='$RM'17933 ofile='$ofile'17934 17935 17936 17937 17938 17939 17940 5080 _ACEOF 17941 5081 … … 17947 5087 case $ac_config_target in 17948 5088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17949 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;17950 5089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17951 5090 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; … … 18473 5612 } 18474 5613 ;; 18475 "libtool":C)18476 18477 # See if we are running on zsh, and set the options that allow our18478 # commands through without removal of \ escapes.18479 if test -n "${ZSH_VERSION+set}"; then18480 setopt NO_GLOB_SUBST18481 fi18482 18483 cfgfile=${ofile}T18484 trap "$RM \"$cfgfile\"; exit 1" 1 2 1518485 $RM "$cfgfile"18486 18487 cat <<_LT_EOF >> "$cfgfile"18488 #! $SHELL18489 # Generated automatically by $as_me ($PACKAGE) $VERSION18490 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:18491 # NOTE: Changes made to this file will be lost: look at ltmain.sh.18492 18493 # Provide generalized library-building support services.18494 # Written by Gordon Matzigkeit, 199618495 18496 # Copyright (C) 2014 Free Software Foundation, Inc.18497 # This is free software; see the source for copying conditions. There is NO18498 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.18499 18500 # GNU Libtool is free software; you can redistribute it and/or modify18501 # it under the terms of the GNU General Public License as published by18502 # the Free Software Foundation; either version 2 of of the License, or18503 # (at your option) any later version.18504 #18505 # As a special exception to the GNU General Public License, if you18506 # distribute this file as part of a program or library that is built18507 # using GNU Libtool, you may include this file under the same18508 # distribution terms that you use for the rest of that program.18509 #18510 # GNU Libtool is distributed in the hope that it will be useful, but18511 # WITHOUT ANY WARRANTY; without even the implied warranty of18512 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18513 # GNU General Public License for more details.18514 #18515 # You should have received a copy of the GNU General Public License18516 # along with this program. If not, see <http://www.gnu.org/licenses/>.18517 18518 18519 # The names of the tagged configurations supported by this script.18520 available_tags='CXX '18521 18522 # Configured defaults for sys_lib_dlsearch_path munging.18523 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}18524 18525 # ### BEGIN LIBTOOL CONFIG18526 18527 # Which release of libtool.m4 was used?18528 macro_version=$macro_version18529 macro_revision=$macro_revision18530 18531 # Whether or not to build shared libraries.18532 build_libtool_libs=$enable_shared18533 18534 # Whether or not to build static libraries.18535 build_old_libs=$enable_static18536 18537 # What type of objects to build.18538 pic_mode=$pic_mode18539 18540 # Whether or not to optimize for fast installation.18541 fast_install=$enable_fast_install18542 18543 # Shared archive member basename,for filename based shared library versioning on AIX.18544 shared_archive_member_spec=$shared_archive_member_spec18545 18546 # Shell to use when invoking shell scripts.18547 SHELL=$lt_SHELL18548 18549 # An echo program that protects backslashes.18550 ECHO=$lt_ECHO18551 18552 # The PATH separator for the build system.18553 PATH_SEPARATOR=$lt_PATH_SEPARATOR18554 18555 # The host system.18556 host_alias=$host_alias18557 host=$host18558 host_os=$host_os18559 18560 # The build system.18561 build_alias=$build_alias18562 build=$build18563 build_os=$build_os18564 18565 # A sed program that does not truncate output.18566 SED=$lt_SED18567 18568 # Sed that helps us avoid accidentally triggering echo(1) options like -n.18569 Xsed="\$SED -e 1s/^X//"18570 18571 # A grep program that handles long lines.18572 GREP=$lt_GREP18573 18574 # An ERE matcher.18575 EGREP=$lt_EGREP18576 18577 # A literal string matcher.18578 FGREP=$lt_FGREP18579 18580 # A BSD- or MS-compatible name lister.18581 NM=$lt_NM18582 18583 # Whether we need soft or hard links.18584 LN_S=$lt_LN_S18585 18586 # What is the maximum length of a command?18587 max_cmd_len=$max_cmd_len18588 18589 # Object file suffix (normally "o").18590 objext=$ac_objext18591 18592 # Executable file suffix (normally "").18593 exeext=$exeext18594 18595 # whether the shell understands "unset".18596 lt_unset=$lt_unset18597 18598 # turn spaces into newlines.18599 SP2NL=$lt_lt_SP2NL18600 18601 # turn newlines into spaces.18602 NL2SP=$lt_lt_NL2SP18603 18604 # convert \$build file names to \$host format.18605 to_host_file_cmd=$lt_cv_to_host_file_cmd18606 18607 # convert \$build files to toolchain format.18608 to_tool_file_cmd=$lt_cv_to_tool_file_cmd18609 18610 # An object symbol dumper.18611 OBJDUMP=$lt_OBJDUMP18612 18613 # Method to check whether dependent libraries are shared objects.18614 deplibs_check_method=$lt_deplibs_check_method18615 18616 # Command to use when deplibs_check_method = "file_magic".18617 file_magic_cmd=$lt_file_magic_cmd18618 18619 # How to find potential files when deplibs_check_method = "file_magic".18620 file_magic_glob=$lt_file_magic_glob18621 18622 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".18623 want_nocaseglob=$lt_want_nocaseglob18624 18625 # DLL creation program.18626 DLLTOOL=$lt_DLLTOOL18627 18628 # Command to associate shared and link libraries.18629 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd18630 18631 # The archiver.18632 AR=$lt_AR18633 18634 # Flags to create an archive.18635 AR_FLAGS=$lt_AR_FLAGS18636 18637 # How to feed a file listing to the archiver.18638 archiver_list_spec=$lt_archiver_list_spec18639 18640 # A symbol stripping program.18641 STRIP=$lt_STRIP18642 18643 # Commands used to install an old-style archive.18644 RANLIB=$lt_RANLIB18645 old_postinstall_cmds=$lt_old_postinstall_cmds18646 old_postuninstall_cmds=$lt_old_postuninstall_cmds18647 18648 # Whether to use a lock for old archive extraction.18649 lock_old_archive_extraction=$lock_old_archive_extraction18650 18651 # A C compiler.18652 LTCC=$lt_CC18653 18654 # LTCC compiler flags.18655 LTCFLAGS=$lt_CFLAGS18656 18657 # Take the output of nm and produce a listing of raw symbols and C names.18658 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe18659 18660 # Transform the output of nm in a proper C declaration.18661 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl18662 18663 # Transform the output of nm into a list of symbols to manually relocate.18664 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import18665 18666 # Transform the output of nm in a C name address pair.18667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address18668 18669 # Transform the output of nm in a C name address pair when lib prefix is needed.18670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix18671 18672 # The name lister interface.18673 nm_interface=$lt_lt_cv_nm_interface18674 18675 # Specify filename containing input files for \$NM.18676 nm_file_list_spec=$lt_nm_file_list_spec18677 18678 # The root where to search for dependent libraries,and where our libraries should be installed.18679 lt_sysroot=$lt_sysroot18680 18681 # Command to truncate a binary pipe.18682 lt_truncate_bin=$lt_lt_cv_truncate_bin18683 18684 # The name of the directory that contains temporary libtool files.18685 objdir=$objdir18686 18687 # Used to examine libraries when file_magic_cmd begins with "file".18688 MAGIC_CMD=$MAGIC_CMD18689 18690 # Must we lock files when doing compilation?18691 need_locks=$lt_need_locks18692 18693 # Manifest tool.18694 MANIFEST_TOOL=$lt_MANIFEST_TOOL18695 18696 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.18697 DSYMUTIL=$lt_DSYMUTIL18698 18699 # Tool to change global to local symbols on Mac OS X.18700 NMEDIT=$lt_NMEDIT18701 18702 # Tool to manipulate fat objects and archives on Mac OS X.18703 LIPO=$lt_LIPO18704 18705 # ldd/readelf like tool for Mach-O binaries on Mac OS X.18706 OTOOL=$lt_OTOOL18707 18708 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.18709 OTOOL64=$lt_OTOOL6418710 18711 # Old archive suffix (normally "a").18712 libext=$libext18713 18714 # Shared library suffix (normally ".so").18715 shrext_cmds=$lt_shrext_cmds18716 18717 # The commands to extract the exported symbol list from a shared archive.18718 extract_expsyms_cmds=$lt_extract_expsyms_cmds18719 18720 # Variables whose values should be saved in libtool wrapper scripts and18721 # restored at link time.18722 variables_saved_for_relink=$lt_variables_saved_for_relink18723 18724 # Do we need the "lib" prefix for modules?18725 need_lib_prefix=$need_lib_prefix18726 18727 # Do we need a version for libraries?18728 need_version=$need_version18729 18730 # Library versioning type.18731 version_type=$version_type18732 18733 # Shared library runtime path variable.18734 runpath_var=$runpath_var18735 18736 # Shared library path variable.18737 shlibpath_var=$shlibpath_var18738 18739 # Is shlibpath searched before the hard-coded library search path?18740 shlibpath_overrides_runpath=$shlibpath_overrides_runpath18741 18742 # Format of library name prefix.18743 libname_spec=$lt_libname_spec18744 18745 # List of archive names. First name is the real one, the rest are links.18746 # The last name is the one that the linker finds with -lNAME18747 library_names_spec=$lt_library_names_spec18748 18749 # The coded name of the library, if different from the real name.18750 soname_spec=$lt_soname_spec18751 18752 # Permission mode override for installation of shared libraries.18753 install_override_mode=$lt_install_override_mode18754 18755 # Command to use after installation of a shared archive.18756 postinstall_cmds=$lt_postinstall_cmds18757 18758 # Command to use after uninstallation of a shared archive.18759 postuninstall_cmds=$lt_postuninstall_cmds18760 18761 # Commands used to finish a libtool library installation in a directory.18762 finish_cmds=$lt_finish_cmds18763 18764 # As "finish_cmds", except a single script fragment to be evaled but18765 # not shown.18766 finish_eval=$lt_finish_eval18767 18768 # Whether we should hardcode library paths into libraries.18769 hardcode_into_libs=$hardcode_into_libs18770 18771 # Compile-time system search path for libraries.18772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec18773 18774 # Detected run-time system search path for libraries.18775 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path18776 18777 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.18778 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path18779 18780 # Whether dlopen is supported.18781 dlopen_support=$enable_dlopen18782 18783 # Whether dlopen of programs is supported.18784 dlopen_self=$enable_dlopen_self18785 18786 # Whether dlopen of statically linked programs is supported.18787 dlopen_self_static=$enable_dlopen_self_static18788 18789 # Commands to strip libraries.18790 old_striplib=$lt_old_striplib18791 striplib=$lt_striplib18792 18793 18794 # The linker used to build libraries.18795 LD=$lt_LD18796 18797 # How to create reloadable object files.18798 reload_flag=$lt_reload_flag18799 reload_cmds=$lt_reload_cmds18800 18801 # Commands used to build an old-style archive.18802 old_archive_cmds=$lt_old_archive_cmds18803 18804 # A language specific compiler.18805 CC=$lt_compiler18806 18807 # Is the compiler the GNU compiler?18808 with_gcc=$GCC18809 18810 # Compiler flag to turn off builtin functions.18811 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag18812 18813 # Additional compiler flags for building library objects.18814 pic_flag=$lt_lt_prog_compiler_pic18815 18816 # How to pass a linker flag through the compiler.18817 wl=$lt_lt_prog_compiler_wl18818 18819 # Compiler flag to prevent dynamic linking.18820 link_static_flag=$lt_lt_prog_compiler_static18821 18822 # Does compiler simultaneously support -c and -o options?18823 compiler_c_o=$lt_lt_cv_prog_compiler_c_o18824 18825 # Whether or not to add -lc for building shared libraries.18826 build_libtool_need_lc=$archive_cmds_need_lc18827 18828 # Whether or not to disallow shared libs when runtime libs are static.18829 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes18830 18831 # Compiler flag to allow reflexive dlopens.18832 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec18833 18834 # Compiler flag to generate shared objects directly from archives.18835 whole_archive_flag_spec=$lt_whole_archive_flag_spec18836 18837 # Whether the compiler copes with passing no objects directly.18838 compiler_needs_object=$lt_compiler_needs_object18839 18840 # Create an old-style archive from a shared archive.18841 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds18842 18843 # Create a temporary old-style archive to link instead of a shared archive.18844 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds18845 18846 # Commands used to build a shared archive.18847 archive_cmds=$lt_archive_cmds18848 archive_expsym_cmds=$lt_archive_expsym_cmds18849 18850 # Commands used to build a loadable module if different from building18851 # a shared archive.18852 module_cmds=$lt_module_cmds18853 module_expsym_cmds=$lt_module_expsym_cmds18854 18855 # Whether we are building with GNU ld or not.18856 with_gnu_ld=$lt_with_gnu_ld18857 18858 # Flag that allows shared libraries with undefined symbols to be built.18859 allow_undefined_flag=$lt_allow_undefined_flag18860 18861 # Flag that enforces no undefined symbols.18862 no_undefined_flag=$lt_no_undefined_flag18863 18864 # Flag to hardcode \$libdir into a binary during linking.18865 # This must work even if \$libdir does not exist18866 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec18867 18868 # Whether we need a single "-rpath" flag with a separated argument.18869 hardcode_libdir_separator=$lt_hardcode_libdir_separator18870 18871 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18872 # DIR into the resulting binary.18873 hardcode_direct=$hardcode_direct18874 18875 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18876 # DIR into the resulting binary and the resulting library dependency is18877 # "absolute",i.e impossible to change by setting \$shlibpath_var if the18878 # library is relocated.18879 hardcode_direct_absolute=$hardcode_direct_absolute18880 18881 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR18882 # into the resulting binary.18883 hardcode_minus_L=$hardcode_minus_L18884 18885 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR18886 # into the resulting binary.18887 hardcode_shlibpath_var=$hardcode_shlibpath_var18888 18889 # Set to "yes" if building a shared library automatically hardcodes DIR18890 # into the library and all subsequent libraries and executables linked18891 # against it.18892 hardcode_automatic=$hardcode_automatic18893 18894 # Set to yes if linker adds runtime paths of dependent libraries18895 # to runtime path list.18896 inherit_rpath=$inherit_rpath18897 18898 # Whether libtool must link a program against all its dependency libraries.18899 link_all_deplibs=$link_all_deplibs18900 18901 # Set to "yes" if exported symbols are required.18902 always_export_symbols=$always_export_symbols18903 18904 # The commands to list exported symbols.18905 export_symbols_cmds=$lt_export_symbols_cmds18906 18907 # Symbols that should not be listed in the preloaded symbols.18908 exclude_expsyms=$lt_exclude_expsyms18909 18910 # Symbols that must always be exported.18911 include_expsyms=$lt_include_expsyms18912 18913 # Commands necessary for linking programs (against libraries) with templates.18914 prelink_cmds=$lt_prelink_cmds18915 18916 # Commands necessary for finishing linking programs.18917 postlink_cmds=$lt_postlink_cmds18918 18919 # Specify filename containing input files.18920 file_list_spec=$lt_file_list_spec18921 18922 # How to hardcode a shared library path into an executable.18923 hardcode_action=$hardcode_action18924 18925 # The directories searched by this compiler when creating a shared library.18926 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs18927 18928 # Dependencies to place before and after the objects being linked to18929 # create a shared library.18930 predep_objects=$lt_predep_objects18931 postdep_objects=$lt_postdep_objects18932 predeps=$lt_predeps18933 postdeps=$lt_postdeps18934 18935 # The library search path used internally by the compiler when linking18936 # a shared library.18937 compiler_lib_search_path=$lt_compiler_lib_search_path18938 18939 # ### END LIBTOOL CONFIG18940 18941 _LT_EOF18942 18943 cat <<'_LT_EOF' >> "$cfgfile"18944 18945 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE18946 18947 # func_munge_path_list VARIABLE PATH18948 # -----------------------------------18949 # VARIABLE is name of variable containing _space_ separated list of18950 # directories to be munged by the contents of PATH, which is string18951 # having a format:18952 # "DIR[:DIR]:"18953 # string "DIR[ DIR]" will be prepended to VARIABLE18954 # ":DIR[:DIR]"18955 # string "DIR[ DIR]" will be appended to VARIABLE18956 # "DIRP[:DIRP]::[DIRA:]DIRA"18957 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string18958 # "DIRA[ DIRA]" will be appended to VARIABLE18959 # "DIR[:DIR]"18960 # VARIABLE will be replaced by "DIR[ DIR]"18961 func_munge_path_list ()18962 {18963 case x$2 in18964 x)18965 ;;18966 *:)18967 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"18968 ;;18969 x:*)18970 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"18971 ;;18972 *::*)18973 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"18974 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"18975 ;;18976 *)18977 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"18978 ;;18979 esac18980 }18981 18982 18983 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.18984 func_cc_basename ()18985 {18986 for cc_temp in $*""; do18987 case $cc_temp in18988 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;18989 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;18990 \-*) ;;18991 *) break;;18992 esac18993 done18994 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`18995 }18996 18997 18998 # ### END FUNCTIONS SHARED WITH CONFIGURE18999 19000 _LT_EOF19001 19002 case $host_os in19003 aix3*)19004 cat <<\_LT_EOF >> "$cfgfile"19005 # AIX sometimes has problems with the GCC collect2 program. For some19006 # reason, if we set the COLLECT_NAMES environment variable, the problems19007 # vanish in a puff of smoke.19008 if test set != "${COLLECT_NAMES+set}"; then19009 COLLECT_NAMES=19010 export COLLECT_NAMES19011 fi19012 _LT_EOF19013 ;;19014 esac19015 19016 19017 ltmain=$ac_aux_dir/ltmain.sh19018 19019 19020 # We use sed instead of cat because bash on DJGPP gets confused if19021 # if finds mixed CR/LF and LF-only lines. Since sed operates in19022 # text mode, it properly converts lines to CR/LF. This bash problem19023 # is reportedly fixed, but why not run on old versions too?19024 sed '$q' "$ltmain" >> "$cfgfile" \19025 || (rm -f "$cfgfile"; exit 1)19026 19027 mv -f "$cfgfile" "$ofile" ||19028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")19029 chmod +x "$ofile"19030 19031 19032 cat <<_LT_EOF >> "$ofile"19033 19034 # ### BEGIN LIBTOOL TAG CONFIG: CXX19035 19036 # The linker used to build libraries.19037 LD=$lt_LD_CXX19038 19039 # How to create reloadable object files.19040 reload_flag=$lt_reload_flag_CXX19041 reload_cmds=$lt_reload_cmds_CXX19042 19043 # Commands used to build an old-style archive.19044 old_archive_cmds=$lt_old_archive_cmds_CXX19045 19046 # A language specific compiler.19047 CC=$lt_compiler_CXX19048 19049 # Is the compiler the GNU compiler?19050 with_gcc=$GCC_CXX19051 19052 # Compiler flag to turn off builtin functions.19053 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX19054 19055 # Additional compiler flags for building library objects.19056 pic_flag=$lt_lt_prog_compiler_pic_CXX19057 19058 # How to pass a linker flag through the compiler.19059 wl=$lt_lt_prog_compiler_wl_CXX19060 19061 # Compiler flag to prevent dynamic linking.19062 link_static_flag=$lt_lt_prog_compiler_static_CXX19063 19064 # Does compiler simultaneously support -c and -o options?19065 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX19066 19067 # Whether or not to add -lc for building shared libraries.19068 build_libtool_need_lc=$archive_cmds_need_lc_CXX19069 19070 # Whether or not to disallow shared libs when runtime libs are static.19071 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX19072 19073 # Compiler flag to allow reflexive dlopens.19074 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX19075 19076 # Compiler flag to generate shared objects directly from archives.19077 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX19078 19079 # Whether the compiler copes with passing no objects directly.19080 compiler_needs_object=$lt_compiler_needs_object_CXX19081 19082 # Create an old-style archive from a shared archive.19083 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX19084 19085 # Create a temporary old-style archive to link instead of a shared archive.19086 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX19087 19088 # Commands used to build a shared archive.19089 archive_cmds=$lt_archive_cmds_CXX19090 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX19091 19092 # Commands used to build a loadable module if different from building19093 # a shared archive.19094 module_cmds=$lt_module_cmds_CXX19095 module_expsym_cmds=$lt_module_expsym_cmds_CXX19096 19097 # Whether we are building with GNU ld or not.19098 with_gnu_ld=$lt_with_gnu_ld_CXX19099 19100 # Flag that allows shared libraries with undefined symbols to be built.19101 allow_undefined_flag=$lt_allow_undefined_flag_CXX19102 19103 # Flag that enforces no undefined symbols.19104 no_undefined_flag=$lt_no_undefined_flag_CXX19105 19106 # Flag to hardcode \$libdir into a binary during linking.19107 # This must work even if \$libdir does not exist19108 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX19109 19110 # Whether we need a single "-rpath" flag with a separated argument.19111 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX19112 19113 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19114 # DIR into the resulting binary.19115 hardcode_direct=$hardcode_direct_CXX19116 19117 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19118 # DIR into the resulting binary and the resulting library dependency is19119 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19120 # library is relocated.19121 hardcode_direct_absolute=$hardcode_direct_absolute_CXX19122 19123 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19124 # into the resulting binary.19125 hardcode_minus_L=$hardcode_minus_L_CXX19126 19127 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19128 # into the resulting binary.19129 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX19130 19131 # Set to "yes" if building a shared library automatically hardcodes DIR19132 # into the library and all subsequent libraries and executables linked19133 # against it.19134 hardcode_automatic=$hardcode_automatic_CXX19135 19136 # Set to yes if linker adds runtime paths of dependent libraries19137 # to runtime path list.19138 inherit_rpath=$inherit_rpath_CXX19139 19140 # Whether libtool must link a program against all its dependency libraries.19141 link_all_deplibs=$link_all_deplibs_CXX19142 19143 # Set to "yes" if exported symbols are required.19144 always_export_symbols=$always_export_symbols_CXX19145 19146 # The commands to list exported symbols.19147 export_symbols_cmds=$lt_export_symbols_cmds_CXX19148 19149 # Symbols that should not be listed in the preloaded symbols.19150 exclude_expsyms=$lt_exclude_expsyms_CXX19151 19152 # Symbols that must always be exported.19153 include_expsyms=$lt_include_expsyms_CXX19154 19155 # Commands necessary for linking programs (against libraries) with templates.19156 prelink_cmds=$lt_prelink_cmds_CXX19157 19158 # Commands necessary for finishing linking programs.19159 postlink_cmds=$lt_postlink_cmds_CXX19160 19161 # Specify filename containing input files.19162 file_list_spec=$lt_file_list_spec_CXX19163 19164 # How to hardcode a shared library path into an executable.19165 hardcode_action=$hardcode_action_CXX19166 19167 # The directories searched by this compiler when creating a shared library.19168 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX19169 19170 # Dependencies to place before and after the objects being linked to19171 # create a shared library.19172 predep_objects=$lt_predep_objects_CXX19173 postdep_objects=$lt_postdep_objects_CXX19174 predeps=$lt_predeps_CXX19175 postdeps=$lt_postdeps_CXX19176 19177 # The library search path used internally by the compiler when linking19178 # a shared library.19179 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX19180 19181 # ### END LIBTOOL TAG CONFIG: CXX19182 _LT_EOF19183 19184 ;;19185 5614 19186 5615 esac
Note:
See TracChangeset
for help on using the changeset viewer.