Changes in libcfa/configure [38d12e7:e523b07]
- File:
-
- 1 edited
-
libcfa/configure (modified) (39 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/configure
r38d12e7 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 … … 701 623 CFA_PREFIX 702 624 CFA_NAME 625 BUILDLIB_FALSE 626 BUILDLIB_TRUE 627 CONFIG_BUILDLIB 703 628 CONFIG_CFAFLAGS 704 629 CONFIG_CFLAGS … … 780 705 enable_silent_rules 781 706 with_cfa_name 782 enable_shared783 enable_static784 with_pic785 enable_fast_install786 with_aix_soname787 707 enable_dependency_tracking 788 with_gnu_ld789 with_sysroot790 enable_libtool_lock791 708 ' 792 709 ac_precious_vars='build_alias … … 796 713 CONFIGURATION 797 714 DRIVER_DIR 798 C C799 C FLAGS715 CXX 716 CXXFLAGS 800 717 LDFLAGS 801 718 LIBS 802 719 CPPFLAGS 803 LT_SYS_LIBRARY_PATH804 CPP805 CXX806 CXXFLAGS807 720 CCC 808 CXXCPP 721 CC 722 CFLAGS 809 723 CCAS 810 724 CCASFLAGS' … … 1421 1335 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 1336 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424 System types:1425 --build=BUILD configure for building on BUILD [guessed]1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]1427 1337 _ACEOF 1428 1338 fi … … 1440 1350 --enable-silent-rules less verbose build output (undo: "make V=1") 1441 1351 --disable-silent-rules verbose build output (undo: "make V=0") 1442 --enable-shared[=PKGS] build shared libraries [default=yes]1443 --enable-static[=PKGS] build static libraries [default=yes]1444 --enable-fast-install[=PKGS]1445 optimize for fast installation [default=yes]1446 1352 --enable-dependency-tracking 1447 1353 do not reject slow dependency extractors 1448 1354 --disable-dependency-tracking 1449 1355 speeds up one-time build 1450 --disable-libtool-lock avoid locking (might break parallel builds)1451 1356 1452 1357 Optional Packages: … … 1454 1359 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1455 1360 --with-cfa-name=NAME NAME too which cfa will be installed 1456 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1457 both]1458 --with-aix-soname=aix|svr4|both1459 shared library versioning (aka "SONAME") variant to1460 provide on AIX, [default=aix].1461 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1462 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the1463 compiler's sysroot if not specified).1464 1361 1465 1362 Some influential environment variables: … … 1470 1367 deubg, nodebug, nolib (prelude-only) 1471 1368 DRIVER_DIR The path to the cforall driver directory 1472 C C Ccompiler command1473 C FLAGS Ccompiler flags1369 CXX C++ compiler command 1370 CXXFLAGS C++ compiler flags 1474 1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1475 1372 nonstandard directory <lib dir> … … 1477 1374 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1478 1375 you have headers in a nonstandard directory <include dir> 1479 LT_SYS_LIBRARY_PATH 1480 User-defined run-time library search path. 1481 CPP C preprocessor 1482 CXX C++ compiler command 1483 CXXFLAGS C++ compiler flags 1484 CXXCPP C++ preprocessor 1376 CC C compiler command 1377 CFLAGS C compiler flags 1485 1378 CCAS assembler compiler command (defaults to CC) 1486 1379 CCASFLAGS assembler compiler flags (defaults to CFLAGS) … … 1565 1458 ## Autoconf initialization. ## 1566 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 1567 1498 1568 1499 # ac_fn_c_try_compile LINENO … … 1603 1534 1604 1535 } # ac_fn_c_try_compile 1605 1606 # ac_fn_c_try_link LINENO1607 # -----------------------1608 # Try to link conftest.$ac_ext, and return whether this succeeded.1609 ac_fn_c_try_link ()1610 {1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1612 rm -f conftest.$ac_objext conftest$ac_exeext1613 if { { ac_try="$ac_link"1614 case "(($ac_try" in1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1616 *) ac_try_echo=$ac_try;;1617 esac1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1619 $as_echo "$ac_try_echo"; } >&51620 (eval "$ac_link") 2>conftest.err1621 ac_status=$?1622 if test -s conftest.err; then1623 grep -v '^ *+' conftest.err >conftest.er11624 cat conftest.er1 >&51625 mv -f conftest.er1 conftest.err1626 fi1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51628 test $ac_status = 0; } && {1629 test -z "$ac_c_werror_flag" ||1630 test ! -s conftest.err1631 } && test -s conftest$ac_exeext && {1632 test "$cross_compiling" = yes ||1633 test -x conftest$ac_exeext1634 }; then :1635 ac_retval=01636 else1637 $as_echo "$as_me: failed program was:" >&51638 sed 's/^/| /' conftest.$ac_ext >&51639 1640 ac_retval=11641 fi1642 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1643 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1644 # interfere with the next link command; also delete a directory that is1645 # left behind by Apple's compiler. We do this before executing the actions.1646 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1648 as_fn_set_status $ac_retval1649 1650 } # ac_fn_c_try_link1651 1652 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES1653 # -------------------------------------------------------1654 # Tests whether HEADER exists and can be compiled using the include files in1655 # INCLUDES, setting the cache variable VAR accordingly.1656 ac_fn_c_check_header_compile ()1657 {1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51660 $as_echo_n "checking for $2... " >&6; }1661 if eval \${$3+:} false; then :1662 $as_echo_n "(cached) " >&61663 else1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1665 /* end confdefs.h. */1666 $41667 #include <$2>1668 _ACEOF1669 if ac_fn_c_try_compile "$LINENO"; then :1670 eval "$3=yes"1671 else1672 eval "$3=no"1673 fi1674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext1675 fi1676 eval ac_res=\$$31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51678 $as_echo "$ac_res" >&6; }1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1680 1681 } # ac_fn_c_check_header_compile1682 1683 # ac_fn_c_try_cpp LINENO1684 # ----------------------1685 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1686 ac_fn_c_try_cpp ()1687 {1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1689 if { { ac_try="$ac_cpp conftest.$ac_ext"1690 case "(($ac_try" in1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1692 *) ac_try_echo=$ac_try;;1693 esac1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1695 $as_echo "$ac_try_echo"; } >&51696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1697 ac_status=$?1698 if test -s conftest.err; then1699 grep -v '^ *+' conftest.err >conftest.er11700 cat conftest.er1 >&51701 mv -f conftest.er1 conftest.err1702 fi1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51704 test $ac_status = 0; } > conftest.i && {1705 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||1706 test ! -s conftest.err1707 }; then :1708 ac_retval=01709 else1710 $as_echo "$as_me: failed program was:" >&51711 sed 's/^/| /' conftest.$ac_ext >&51712 1713 ac_retval=11714 fi1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1716 as_fn_set_status $ac_retval1717 1718 } # ac_fn_c_try_cpp1719 1720 # ac_fn_c_try_run LINENO1721 # ----------------------1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes1723 # that executables *can* be run.1724 ac_fn_c_try_run ()1725 {1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1727 if { { ac_try="$ac_link"1728 case "(($ac_try" in1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1730 *) ac_try_echo=$ac_try;;1731 esac1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1733 $as_echo "$ac_try_echo"; } >&51734 (eval "$ac_link") 2>&51735 ac_status=$?1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'1738 { { case "(($ac_try" in1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1740 *) ac_try_echo=$ac_try;;1741 esac1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1743 $as_echo "$ac_try_echo"; } >&51744 (eval "$ac_try") 2>&51745 ac_status=$?1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51747 test $ac_status = 0; }; }; then :1748 ac_retval=01749 else1750 $as_echo "$as_me: program exited with status $ac_status" >&51751 $as_echo "$as_me: failed program was:" >&51752 sed 's/^/| /' conftest.$ac_ext >&51753 1754 ac_retval=$ac_status1755 fi1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1758 as_fn_set_status $ac_retval1759 1760 } # ac_fn_c_try_run1761 1762 # ac_fn_c_check_func LINENO FUNC VAR1763 # ----------------------------------1764 # Tests whether FUNC exists, setting the cache variable VAR accordingly1765 ac_fn_c_check_func ()1766 {1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51769 $as_echo_n "checking for $2... " >&6; }1770 if eval \${$3+:} false; then :1771 $as_echo_n "(cached) " >&61772 else1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1774 /* end confdefs.h. */1775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.1776 For example, HP-UX 11i <limits.h> declares gettimeofday. */1777 #define $2 innocuous_$21778 1779 /* System header to define __stub macros and hopefully few prototypes,1780 which can conflict with char $2 (); below.1781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since1782 <limits.h> exists even on freestanding compilers. */1783 1784 #ifdef __STDC__1785 # include <limits.h>1786 #else1787 # include <assert.h>1788 #endif1789 1790 #undef $21791 1792 /* Override any GCC internal prototype to avoid an error.1793 Use char because int might match the return type of a GCC1794 builtin and then its argument prototype would still apply. */1795 #ifdef __cplusplus1796 extern "C"1797 #endif1798 char $2 ();1799 /* The GNU C library defines this for functions which it implements1800 to always fail with ENOSYS. Some functions are actually named1801 something starting with __ and the normal name is an alias. */1802 #if defined __stub_$2 || defined __stub___$21803 choke me1804 #endif1805 1806 int1807 main ()1808 {1809 return $2 ();1810 ;1811 return 0;1812 }1813 _ACEOF1814 if ac_fn_c_try_link "$LINENO"; then :1815 eval "$3=yes"1816 else1817 eval "$3=no"1818 fi1819 rm -f core conftest.err conftest.$ac_objext \1820 conftest$ac_exeext conftest.$ac_ext1821 fi1822 eval ac_res=\$$31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&51824 $as_echo "$ac_res" >&6; }1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1826 1827 } # ac_fn_c_check_func1828 1829 # ac_fn_cxx_try_compile LINENO1830 # ----------------------------1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.1832 ac_fn_cxx_try_compile ()1833 {1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1835 rm -f conftest.$ac_objext1836 if { { ac_try="$ac_compile"1837 case "(($ac_try" in1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1839 *) ac_try_echo=$ac_try;;1840 esac1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1842 $as_echo "$ac_try_echo"; } >&51843 (eval "$ac_compile") 2>conftest.err1844 ac_status=$?1845 if test -s conftest.err; then1846 grep -v '^ *+' conftest.err >conftest.er11847 cat conftest.er1 >&51848 mv -f conftest.er1 conftest.err1849 fi1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51851 test $ac_status = 0; } && {1852 test -z "$ac_cxx_werror_flag" ||1853 test ! -s conftest.err1854 } && test -s conftest.$ac_objext; then :1855 ac_retval=01856 else1857 $as_echo "$as_me: failed program was:" >&51858 sed 's/^/| /' conftest.$ac_ext >&51859 1860 ac_retval=11861 fi1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1863 as_fn_set_status $ac_retval1864 1865 } # ac_fn_cxx_try_compile1866 1867 # ac_fn_cxx_try_cpp LINENO1868 # ------------------------1869 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1870 ac_fn_cxx_try_cpp ()1871 {1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1873 if { { ac_try="$ac_cpp conftest.$ac_ext"1874 case "(($ac_try" in1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1876 *) ac_try_echo=$ac_try;;1877 esac1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1879 $as_echo "$ac_try_echo"; } >&51880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1881 ac_status=$?1882 if test -s conftest.err; then1883 grep -v '^ *+' conftest.err >conftest.er11884 cat conftest.er1 >&51885 mv -f conftest.er1 conftest.err1886 fi1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51888 test $ac_status = 0; } > conftest.i && {1889 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||1890 test ! -s conftest.err1891 }; then :1892 ac_retval=01893 else1894 $as_echo "$as_me: failed program was:" >&51895 sed 's/^/| /' conftest.$ac_ext >&51896 1897 ac_retval=11898 fi1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1900 as_fn_set_status $ac_retval1901 1902 } # ac_fn_cxx_try_cpp1903 1904 # ac_fn_cxx_try_link LINENO1905 # -------------------------1906 # Try to link conftest.$ac_ext, and return whether this succeeded.1907 ac_fn_cxx_try_link ()1908 {1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1910 rm -f conftest.$ac_objext conftest$ac_exeext1911 if { { ac_try="$ac_link"1912 case "(($ac_try" in1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1914 *) ac_try_echo=$ac_try;;1915 esac1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1917 $as_echo "$ac_try_echo"; } >&51918 (eval "$ac_link") 2>conftest.err1919 ac_status=$?1920 if test -s conftest.err; then1921 grep -v '^ *+' conftest.err >conftest.er11922 cat conftest.er1 >&51923 mv -f conftest.er1 conftest.err1924 fi1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51926 test $ac_status = 0; } && {1927 test -z "$ac_cxx_werror_flag" ||1928 test ! -s conftest.err1929 } && test -s conftest$ac_exeext && {1930 test "$cross_compiling" = yes ||1931 test -x conftest$ac_exeext1932 }; then :1933 ac_retval=01934 else1935 $as_echo "$as_me: failed program was:" >&51936 sed 's/^/| /' conftest.$ac_ext >&51937 1938 ac_retval=11939 fi1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1942 # interfere with the next link command; also delete a directory that is1943 # left behind by Apple's compiler. We do this before executing the actions.1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1946 as_fn_set_status $ac_retval1947 1948 } # ac_fn_cxx_try_link1949 1536 cat >config.log <<_ACEOF 1950 1537 This file contains any messages produced by compilers while … … 2300 1887 2301 1888 ac_aux_dir= 2302 for ac_dir in automake "$srcdir"/automake; do1889 for ac_dir in ./automake "$srcdir"/./automake; do 2303 1890 if test -f "$ac_dir/install-sh"; then 2304 1891 ac_aux_dir=$ac_dir … … 2316 1903 done 2317 1904 if test -z "$ac_aux_dir"; then 2318 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 2319 1906 fi 2320 1907 … … 2326 1913 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2327 1914 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2328 2329 1915 2330 1916 … … 2367 1953 fi 2368 1954 AM_BACKSLASH='\' 1955 2369 1956 2370 1957 … … 2947 2534 CONFIG_CFLAGS="-O0 -g" 2948 2535 CONFIG_CFAFLAGS="-debug" 2536 CONFIG_BUILDLIB="yes" 2949 2537 ;; 2950 2538 "nodebug" ) 2951 2539 CONFIG_CFLAGS="-O2 -s" 2952 2540 CONFIG_CFAFLAGS="-nodebug" 2541 CONFIG_BUILDLIB="yes" 2953 2542 ;; 2954 2543 "nolib" ) 2955 CONFIG_CFLAGS="" 2956 CONFIG_CFAFLAGS="" 2544 CONFIG_CFLAGS="-O2 -s" 2545 CONFIG_CFAFLAGS="-nodebug" 2546 CONFIG_BUILDLIB="no" 2957 2547 ;; 2958 2548 esac 2959 2549 2960 2550 2551 2552 2553 2554 if test "x${CONFIG_BUILDLIB}" = "xyes"; then 2555 BUILDLIB_TRUE= 2556 BUILDLIB_FALSE='#' 2557 else 2558 BUILDLIB_TRUE='#' 2559 BUILDLIB_FALSE= 2560 fi 2961 2561 2962 2562 … … 3048 2648 3049 2649 # Checks for programs. 3050 case `pwd` in 3051 *\ * | *\ *) 3052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 3053 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 3054 esac 3055 3056 3057 3058 macro_version='2.4.6' 3059 macro_revision='2.4.6' 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 ltmain=$ac_aux_dir/ltmain.sh 3074 3075 # Make sure we can run config.sub. 3076 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3077 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3078 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3080 $as_echo_n "checking build system type... " >&6; } 3081 if ${ac_cv_build+:} false; then : 3082 $as_echo_n "(cached) " >&6 3083 else 3084 ac_build_alias=$build_alias 3085 test "x$ac_build_alias" = x && 3086 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3087 test "x$ac_build_alias" = x && 3088 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3089 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3090 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3091 3092 fi 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3094 $as_echo "$ac_cv_build" >&6; } 3095 case $ac_cv_build in 3096 *-*-*) ;; 3097 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3098 esac 3099 build=$ac_cv_build 3100 ac_save_IFS=$IFS; IFS='-' 3101 set x $ac_cv_build 3102 shift 3103 build_cpu=$1 3104 build_vendor=$2 3105 shift; shift 3106 # Remember, the first character of IFS is used to create $*, 3107 # except with old shells: 3108 build_os=$* 3109 IFS=$ac_save_IFS 3110 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3111 3112 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3114 $as_echo_n "checking host system type... " >&6; } 3115 if ${ac_cv_host+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117 else 3118 if test "x$host_alias" = x; then 3119 ac_cv_host=$ac_cv_build 3120 else 3121 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3122 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3123 fi 3124 3125 fi 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3127 $as_echo "$ac_cv_host" >&6; } 3128 case $ac_cv_host in 3129 *-*-*) ;; 3130 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3131 esac 3132 host=$ac_cv_host 3133 ac_save_IFS=$IFS; IFS='-' 3134 set x $ac_cv_host 3135 shift 3136 host_cpu=$1 3137 host_vendor=$2 3138 shift; shift 3139 # Remember, the first character of IFS is used to create $*, 3140 # except with old shells: 3141 host_os=$* 3142 IFS=$ac_save_IFS 3143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3144 3145 3146 # Backslashify metacharacters that are still active within 3147 # double-quoted strings. 3148 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 3149 3150 # Same as above, but do not quote variable references. 3151 double_quote_subst='s/\(["`\\]\)/\\\1/g' 3152 3153 # Sed substitution to delay expansion of an escaped shell variable in a 3154 # double_quote_subst'ed string. 3155 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3156 3157 # Sed substitution to delay expansion of an escaped single quote. 3158 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3159 3160 # Sed substitution to avoid accidental globbing in evaled expressions 3161 no_glob_subst='s/\*/\\\*/g' 3162 3163 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3164 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3165 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3166 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3168 $as_echo_n "checking how to print strings... " >&6; } 3169 # Test print first, because it will be a builtin if present. 3170 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3171 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3172 ECHO='print -r --' 3173 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3174 ECHO='printf %s\n' 3175 else 3176 # Use this function as a fallback that always works. 3177 func_fallback_echo () 3178 { 3179 eval 'cat <<_LTECHO_EOF 3180 $1 3181 _LTECHO_EOF' 3182 } 3183 ECHO='func_fallback_echo' 3184 fi 3185 3186 # func_echo_all arg... 3187 # Invoke $ECHO with all args, space-separated. 3188 func_echo_all () 3189 { 3190 $ECHO "" 3191 } 3192 3193 case $ECHO in 3194 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3195 $as_echo "printf" >&6; } ;; 3196 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3197 $as_echo "print -r" >&6; } ;; 3198 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3199 $as_echo "cat" >&6; } ;; 3200 esac 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 DEPDIR="${am__leading_dot}deps" 3216 3217 ac_config_commands="$ac_config_commands depfiles" 3218 3219 3220 am_make=${MAKE-make} 3221 cat > confinc << 'END' 3222 am__doit: 3223 @echo this is the am__doit target 3224 .PHONY: am__doit 3225 END 3226 # If we don't find an include directive, just comment out the code. 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3228 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3229 am__include="#" 3230 am__quote= 3231 _am_result=none 3232 # First try GNU make style include. 3233 echo "include confinc" > confmf 3234 # Ignore all kinds of additional output from 'make'. 3235 case `$am_make -s -f confmf 2> /dev/null` in #( 3236 *the\ am__doit\ target*) 3237 am__include=include 3238 am__quote= 3239 _am_result=GNU 3240 ;; 3241 esac 3242 # Now try BSD make style include. 3243 if test "$am__include" = "#"; then 3244 echo '.include "confinc"' > confmf 3245 case `$am_make -s -f confmf 2> /dev/null` in #( 3246 *the\ am__doit\ target*) 3247 am__include=.include 3248 am__quote="\"" 3249 _am_result=BSD 3250 ;; 3251 esac 3252 fi 3253 3254 3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3256 $as_echo "$_am_result" >&6; } 3257 rm -f confinc confmf 3258 3259 # Check whether --enable-dependency-tracking was given. 3260 if test "${enable_dependency_tracking+set}" = set; then : 3261 enableval=$enable_dependency_tracking; 3262 fi 3263 3264 if test "x$enable_dependency_tracking" != xno; then 3265 am_depcomp="$ac_aux_dir/depcomp" 3266 AMDEPBACKSLASH='\' 3267 am__nodep='_no' 3268 fi 3269 if test "x$enable_dependency_tracking" != xno; then 3270 AMDEP_TRUE= 3271 AMDEP_FALSE='#' 3272 else 3273 AMDEP_TRUE='#' 3274 AMDEP_FALSE= 3275 fi 3276 3277 3278 ac_ext=c 3279 ac_cpp='$CPP $CPPFLAGS' 3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3283 if test -n "$ac_tool_prefix"; then 3284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3285 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 3286 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3287 2665 $as_echo_n "checking for $ac_word... " >&6; } 3288 if ${ac_cv_prog_C C+:} false; then :2666 if ${ac_cv_prog_CXX+:} false; then : 3289 2667 $as_echo_n "(cached) " >&6 3290 2668 else 3291 if test -n "$C C"; then3292 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. 3293 2671 else 3294 2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3299 2677 for ac_exec_ext in '' $ac_executable_extensions; do 3300 2678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3301 ac_cv_prog_C C="${ac_tool_prefix}gcc"2679 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3302 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 2681 break 2 … … 3309 2687 fi 3310 2688 fi 3311 C C=$ac_cv_prog_CC3312 if test -n "$C C"; then3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $C C" >&53314 $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; } 3315 2693 else 3316 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3319 2697 3320 2698 3321 fi 3322 if test -z "$ac_cv_prog_CC"; then 3323 ac_ct_CC=$CC 3324 # Extract the first word of "gcc", so it can be a program name with args. 3325 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 3326 2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327 2709 $as_echo_n "checking for $ac_word... " >&6; } 3328 if ${ac_cv_prog_ac_ct_C C+:} false; then :2710 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 3329 2711 $as_echo_n "(cached) " >&6 3330 2712 else 3331 if test -n "$ac_ct_C C"; then3332 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. 3333 2715 else 3334 2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR … … 3339 2721 for ac_exec_ext in '' $ac_executable_extensions; do 3340 2722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3341 ac_cv_prog_ac_ct_C C="gcc"2723 ac_cv_prog_ac_ct_CXX="$ac_prog" 3342 2724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3343 2725 break 2 … … 3349 2731 fi 3350 2732 fi 3351 ac_ct_C C=$ac_cv_prog_ac_ct_CC3352 if test -n "$ac_ct_C C"; then3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_C C" >&53354 $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; } 3355 2737 else 3356 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 … … 3358 2740 fi 3359 2741 3360 if test "x$ac_ct_CC" = x; then 3361 CC="" 2742 2743 test -n "$ac_ct_CXX" && break 2744 done 2745 2746 if test "x$ac_ct_CXX" = x; then 2747 CXX="g++" 3362 2748 else 3363 2749 case $cross_compiling:$ac_tool_warned in … … 3367 2753 ac_tool_warned=yes ;; 3368 2754 esac 3369 C C=$ac_ct_CC2755 CXX=$ac_ct_CXX 3370 2756 fi 3371 else 3372 CC="$ac_cv_prog_CC" 3373 fi 3374 3375 if test -z "$CC"; then 3376 if test -n "$ac_tool_prefix"; then 3377 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3378 set dummy ${ac_tool_prefix}cc; ac_word=$2 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3380 $as_echo_n "checking for $ac_word... " >&6; } 3381 if ${ac_cv_prog_CC+:} false; then : 3382 $as_echo_n "(cached) " >&6 3383 else 3384 if test -n "$CC"; then 3385 ac_cv_prog_CC="$CC" # Let the user override the test. 3386 else 3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3388 for as_dir in $PATH 3389 do 3390 IFS=$as_save_IFS 3391 test -z "$as_dir" && as_dir=. 3392 for ac_exec_ext in '' $ac_executable_extensions; do 3393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3394 ac_cv_prog_CC="${ac_tool_prefix}cc" 3395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3396 break 2 2757 fi 2758 3397 2759 fi 3398 done 3399 done 3400 IFS=$as_save_IFS 3401 3402 fi 3403 fi 3404 CC=$ac_cv_prog_CC 3405 if test -n "$CC"; then 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3407 $as_echo "$CC" >&6; } 3408 else 3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3410 $as_echo "no" >&6; } 3411 fi 3412 3413 3414 fi 3415 fi 3416 if test -z "$CC"; then 3417 # Extract the first word of "cc", so it can be a program name with args. 3418 set dummy cc; ac_word=$2 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3420 $as_echo_n "checking for $ac_word... " >&6; } 3421 if ${ac_cv_prog_CC+:} false; then : 3422 $as_echo_n "(cached) " >&6 3423 else 3424 if test -n "$CC"; then 3425 ac_cv_prog_CC="$CC" # Let the user override the test. 3426 else 3427 ac_prog_rejected=no 3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3429 for as_dir in $PATH 3430 do 3431 IFS=$as_save_IFS 3432 test -z "$as_dir" && as_dir=. 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3436 ac_prog_rejected=yes 3437 continue 3438 fi 3439 ac_cv_prog_CC="cc" 3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3441 break 2 3442 fi 3443 done 3444 done 3445 IFS=$as_save_IFS 3446 3447 if test $ac_prog_rejected = yes; then 3448 # We found a bogon in the path, so make sure we never use it. 3449 set dummy $ac_cv_prog_CC 3450 shift 3451 if test $# != 0; then 3452 # We chose a different compiler from the bogus one. 3453 # However, it has the same basename, so the bogon will be chosen 3454 # first if we set CC to just the basename; use the full file name. 3455 shift 3456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3457 fi 3458 fi 3459 fi 3460 fi 3461 CC=$ac_cv_prog_CC 3462 if test -n "$CC"; then 3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3464 $as_echo "$CC" >&6; } 3465 else 3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3467 $as_echo "no" >&6; } 3468 fi 3469 3470 3471 fi 3472 if test -z "$CC"; then 3473 if test -n "$ac_tool_prefix"; then 3474 for ac_prog in cl.exe 3475 do 3476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3479 $as_echo_n "checking for $ac_word... " >&6; } 3480 if ${ac_cv_prog_CC+:} false; then : 3481 $as_echo_n "(cached) " >&6 3482 else 3483 if test -n "$CC"; then 3484 ac_cv_prog_CC="$CC" # Let the user override the test. 3485 else 3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3487 for as_dir in $PATH 3488 do 3489 IFS=$as_save_IFS 3490 test -z "$as_dir" && as_dir=. 3491 for ac_exec_ext in '' $ac_executable_extensions; do 3492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3495 break 2 3496 fi 3497 done 3498 done 3499 IFS=$as_save_IFS 3500 3501 fi 3502 fi 3503 CC=$ac_cv_prog_CC 3504 if test -n "$CC"; then 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3506 $as_echo "$CC" >&6; } 3507 else 3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509 $as_echo "no" >&6; } 3510 fi 3511 3512 3513 test -n "$CC" && break 3514 done 3515 fi 3516 if test -z "$CC"; then 3517 ac_ct_CC=$CC 3518 for ac_prog in cl.exe 3519 do 3520 # Extract the first word of "$ac_prog", so it can be a program name with args. 3521 set dummy $ac_prog; ac_word=$2 3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3523 $as_echo_n "checking for $ac_word... " >&6; } 3524 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3525 $as_echo_n "(cached) " >&6 3526 else 3527 if test -n "$ac_ct_CC"; then 3528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3529 else 3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3531 for as_dir in $PATH 3532 do 3533 IFS=$as_save_IFS 3534 test -z "$as_dir" && as_dir=. 3535 for ac_exec_ext in '' $ac_executable_extensions; do 3536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3537 ac_cv_prog_ac_ct_CC="$ac_prog" 3538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3539 break 2 3540 fi 3541 done 3542 done 3543 IFS=$as_save_IFS 3544 3545 fi 3546 fi 3547 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3548 if test -n "$ac_ct_CC"; then 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3550 $as_echo "$ac_ct_CC" >&6; } 3551 else 3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3553 $as_echo "no" >&6; } 3554 fi 3555 3556 3557 test -n "$ac_ct_CC" && break 3558 done 3559 3560 if test "x$ac_ct_CC" = x; then 3561 CC="" 3562 else 3563 case $cross_compiling:$ac_tool_warned in 3564 yes:) 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3567 ac_tool_warned=yes ;; 3568 esac 3569 CC=$ac_ct_CC 3570 fi 3571 fi 3572 3573 fi 3574 3575 3576 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3578 as_fn_error $? "no acceptable C compiler found in \$PATH 3579 See \`config.log' for more details" "$LINENO" 5; } 3580 2760 fi 3581 2761 # Provide some information about the compiler. 3582 $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 3583 2763 set X $ac_compile 3584 2764 ac_compiler=$2 … … 3620 2800 # It will help us diagnose broken compilers, and finding out an intuition 3621 2801 # of exeext. 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&53623 $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; } 3624 2804 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3625 2805 … … 3691 2871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3692 2872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3693 as_fn_error 77 "C compiler cannot create executables2873 as_fn_error 77 "C++ compiler cannot create executables 3694 2874 See \`config.log' for more details" "$LINENO" 5; } 3695 2875 else … … 3697 2877 $as_echo "yes" >&6; } 3698 2878 fi 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&53700 $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; } 3701 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3702 2882 $as_echo "$ac_file" >&6; } … … 3792 2972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3793 2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3794 as_fn_error $? "cannot run C compiled programs.2974 as_fn_error $? "cannot run C++ compiled programs. 3795 2975 If you meant to cross compile, use \`--host'. 3796 2976 See \`config.log' for more details" "$LINENO" 5; } … … 3854 3034 OBJEXT=$ac_cv_objext 3855 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 3856 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3857 3677 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } … … 4252 4072 4253 4073 4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&54255 $as_echo_n "checking for a sed that does not truncate output... " >&6; }4256 if ${ac_cv_path_SED+:} false; then :4257 $as_echo_n "(cached) " >&64258 else4259 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/4260 for ac_i in 1 2 3 4 5 6 7; do4261 ac_script="$ac_script$as_nl$ac_script"4262 done4263 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed4264 { ac_script=; unset ac_script;}4265 if test -z "$SED"; then4266 ac_path_SED_found=false4267 # Loop through the user's path and test for each of PROGNAME-LIST4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4269 for as_dir in $PATH4270 do4271 IFS=$as_save_IFS4272 test -z "$as_dir" && as_dir=.4273 for ac_prog in sed gsed; do4274 for ac_exec_ext in '' $ac_executable_extensions; do4275 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"4276 as_fn_executable_p "$ac_path_SED" || continue4277 # Check for GNU ac_path_SED and select it if it is found.4278 # Check for GNU $ac_path_SED4279 case `"$ac_path_SED" --version 2>&1` in4280 *GNU*)4281 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;4282 *)4283 ac_count=04284 $as_echo_n 0123456789 >"conftest.in"4285 while :4286 do4287 cat "conftest.in" "conftest.in" >"conftest.tmp"4288 mv "conftest.tmp" "conftest.in"4289 cp "conftest.in" "conftest.nl"4290 $as_echo '' >> "conftest.nl"4291 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4293 as_fn_arith $ac_count + 1 && ac_count=$as_val4294 if test $ac_count -gt ${ac_path_SED_max-0}; then4295 # Best one so far, save it but keep looking for a better one4296 ac_cv_path_SED="$ac_path_SED"4297 ac_path_SED_max=$ac_count4298 fi4299 # 10*(2^10) chars as input seems more than enough4300 test $ac_count -gt 10 && break4301 done4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4303 esac4304 4305 $ac_path_SED_found && break 34306 done4307 done4308 done4309 IFS=$as_save_IFS4310 if test -z "$ac_cv_path_SED"; then4311 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 54312 fi4313 else4314 ac_cv_path_SED=$SED4315 fi4316 4317 fi4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&54319 $as_echo "$ac_cv_path_SED" >&6; }4320 SED="$ac_cv_path_SED"4321 rm -f conftest.sed4322 4323 test -z "$SED" && SED=sed4324 Xsed="$SED -e 1s/^X//"4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&54337 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }4338 if ${ac_cv_path_GREP+:} false; then :4339 $as_echo_n "(cached) " >&64340 else4341 if test -z "$GREP"; then4342 ac_path_GREP_found=false4343 # Loop through the user's path and test for each of PROGNAME-LIST4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4346 do4347 IFS=$as_save_IFS4348 test -z "$as_dir" && as_dir=.4349 for ac_prog in grep ggrep; do4350 for ac_exec_ext in '' $ac_executable_extensions; do4351 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"4352 as_fn_executable_p "$ac_path_GREP" || continue4353 # Check for GNU ac_path_GREP and select it if it is found.4354 # Check for GNU $ac_path_GREP4355 case `"$ac_path_GREP" --version 2>&1` in4356 *GNU*)4357 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;4358 *)4359 ac_count=04360 $as_echo_n 0123456789 >"conftest.in"4361 while :4362 do4363 cat "conftest.in" "conftest.in" >"conftest.tmp"4364 mv "conftest.tmp" "conftest.in"4365 cp "conftest.in" "conftest.nl"4366 $as_echo 'GREP' >> "conftest.nl"4367 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4369 as_fn_arith $ac_count + 1 && ac_count=$as_val4370 if test $ac_count -gt ${ac_path_GREP_max-0}; then4371 # Best one so far, save it but keep looking for a better one4372 ac_cv_path_GREP="$ac_path_GREP"4373 ac_path_GREP_max=$ac_count4374 fi4375 # 10*(2^10) chars as input seems more than enough4376 test $ac_count -gt 10 && break4377 done4378 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4379 esac4380 4381 $ac_path_GREP_found && break 34382 done4383 done4384 done4385 IFS=$as_save_IFS4386 if test -z "$ac_cv_path_GREP"; then4387 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54388 fi4389 else4390 ac_cv_path_GREP=$GREP4391 fi4392 4393 fi4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&54395 $as_echo "$ac_cv_path_GREP" >&6; }4396 GREP="$ac_cv_path_GREP"4397 4398 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&54400 $as_echo_n "checking for egrep... " >&6; }4401 if ${ac_cv_path_EGREP+:} false; then :4402 $as_echo_n "(cached) " >&64403 else4404 if echo a | $GREP -E '(a|b)' >/dev/null 2>&14405 then ac_cv_path_EGREP="$GREP -E"4406 else4407 if test -z "$EGREP"; then4408 ac_path_EGREP_found=false4409 # Loop through the user's path and test for each of PROGNAME-LIST4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4411 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4412 do4413 IFS=$as_save_IFS4414 test -z "$as_dir" && as_dir=.4415 for ac_prog in egrep; do4416 for ac_exec_ext in '' $ac_executable_extensions; do4417 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"4418 as_fn_executable_p "$ac_path_EGREP" || continue4419 # Check for GNU ac_path_EGREP and select it if it is found.4420 # Check for GNU $ac_path_EGREP4421 case `"$ac_path_EGREP" --version 2>&1` in4422 *GNU*)4423 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;4424 *)4425 ac_count=04426 $as_echo_n 0123456789 >"conftest.in"4427 while :4428 do4429 cat "conftest.in" "conftest.in" >"conftest.tmp"4430 mv "conftest.tmp" "conftest.in"4431 cp "conftest.in" "conftest.nl"4432 $as_echo 'EGREP' >> "conftest.nl"4433 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break4434 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4435 as_fn_arith $ac_count + 1 && ac_count=$as_val4436 if test $ac_count -gt ${ac_path_EGREP_max-0}; then4437 # Best one so far, save it but keep looking for a better one4438 ac_cv_path_EGREP="$ac_path_EGREP"4439 ac_path_EGREP_max=$ac_count4440 fi4441 # 10*(2^10) chars as input seems more than enough4442 test $ac_count -gt 10 && break4443 done4444 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4445 esac4446 4447 $ac_path_EGREP_found && break 34448 done4449 done4450 done4451 IFS=$as_save_IFS4452 if test -z "$ac_cv_path_EGREP"; then4453 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54454 fi4455 else4456 ac_cv_path_EGREP=$EGREP4457 fi4458 4459 fi4460 fi4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&54462 $as_echo "$ac_cv_path_EGREP" >&6; }4463 EGREP="$ac_cv_path_EGREP"4464 4465 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&54467 $as_echo_n "checking for fgrep... " >&6; }4468 if ${ac_cv_path_FGREP+:} false; then :4469 $as_echo_n "(cached) " >&64470 else4471 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&14472 then ac_cv_path_FGREP="$GREP -F"4473 else4474 if test -z "$FGREP"; then4475 ac_path_FGREP_found=false4476 # Loop through the user's path and test for each of PROGNAME-LIST4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4478 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin4479 do4480 IFS=$as_save_IFS4481 test -z "$as_dir" && as_dir=.4482 for ac_prog in fgrep; do4483 for ac_exec_ext in '' $ac_executable_extensions; do4484 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"4485 as_fn_executable_p "$ac_path_FGREP" || continue4486 # Check for GNU ac_path_FGREP and select it if it is found.4487 # Check for GNU $ac_path_FGREP4488 case `"$ac_path_FGREP" --version 2>&1` in4489 *GNU*)4490 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;4491 *)4492 ac_count=04493 $as_echo_n 0123456789 >"conftest.in"4494 while :4495 do4496 cat "conftest.in" "conftest.in" >"conftest.tmp"4497 mv "conftest.tmp" "conftest.in"4498 cp "conftest.in" "conftest.nl"4499 $as_echo 'FGREP' >> "conftest.nl"4500 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break4501 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break4502 as_fn_arith $ac_count + 1 && ac_count=$as_val4503 if test $ac_count -gt ${ac_path_FGREP_max-0}; then4504 # Best one so far, save it but keep looking for a better one4505 ac_cv_path_FGREP="$ac_path_FGREP"4506 ac_path_FGREP_max=$ac_count4507 fi4508 # 10*(2^10) chars as input seems more than enough4509 test $ac_count -gt 10 && break4510 done4511 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;4512 esac4513 4514 $ac_path_FGREP_found && break 34515 done4516 done4517 done4518 IFS=$as_save_IFS4519 if test -z "$ac_cv_path_FGREP"; then4520 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 54521 fi4522 else4523 ac_cv_path_FGREP=$FGREP4524 fi4525 4526 fi4527 fi4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&54529 $as_echo "$ac_cv_path_FGREP" >&6; }4530 FGREP="$ac_cv_path_FGREP"4531 4532 4533 test -z "$GREP" && GREP=grep4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 # Check whether --with-gnu-ld was given.4554 if test "${with_gnu_ld+set}" = set; then :4555 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes4556 else4557 with_gnu_ld=no4558 fi4559 4560 ac_prog=ld4561 if test yes = "$GCC"; then4562 # Check if gcc -print-prog-name=ld gives a path.4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&54564 $as_echo_n "checking for ld used by $CC... " >&6; }4565 case $host in4566 *-*-mingw*)4567 # gcc leaves a trailing carriage return, which upsets mingw4568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;4569 *)4570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;4571 esac4572 case $ac_prog in4573 # Accept absolute paths.4574 [\\/]* | ?:[\\/]*)4575 re_direlt='/[^/][^/]*/\.\./'4576 # Canonicalize the pathname of ld4577 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`4578 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do4579 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`4580 done4581 test -z "$LD" && LD=$ac_prog4582 ;;4583 "")4584 # If it fails, then pretend we aren't using GCC.4585 ac_prog=ld4586 ;;4587 *)4588 # If it is relative, then search for the first ld in PATH.4589 with_gnu_ld=unknown4590 ;;4591 esac4592 elif test yes = "$with_gnu_ld"; then4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&54594 $as_echo_n "checking for GNU ld... " >&6; }4595 else4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&54597 $as_echo_n "checking for non-GNU ld... " >&6; }4598 fi4599 if ${lt_cv_path_LD+:} false; then :4600 $as_echo_n "(cached) " >&64601 else4602 if test -z "$LD"; then4603 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4604 for ac_dir in $PATH; do4605 IFS=$lt_save_ifs4606 test -z "$ac_dir" && ac_dir=.4607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then4608 lt_cv_path_LD=$ac_dir/$ac_prog4609 # Check to see if the program is GNU ld. I'd rather use --version,4610 # but apparently some variants of GNU ld only accept -v.4611 # Break only if it was the GNU/non-GNU ld that we prefer.4612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in4613 *GNU* | *'with BFD'*)4614 test no != "$with_gnu_ld" && break4615 ;;4616 *)4617 test yes != "$with_gnu_ld" && break4618 ;;4619 esac4620 fi4621 done4622 IFS=$lt_save_ifs4623 else4624 lt_cv_path_LD=$LD # Let the user override the test with a path.4625 fi4626 fi4627 4628 LD=$lt_cv_path_LD4629 if test -n "$LD"; then4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&54631 $as_echo "$LD" >&6; }4632 else4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54634 $as_echo "no" >&6; }4635 fi4636 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 54637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&54638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }4639 if ${lt_cv_prog_gnu_ld+:} false; then :4640 $as_echo_n "(cached) " >&64641 else4642 # I'd rather use --version here, but apparently some GNU lds only accept -v.4643 case `$LD -v 2>&1 </dev/null` in4644 *GNU* | *'with BFD'*)4645 lt_cv_prog_gnu_ld=yes4646 ;;4647 *)4648 lt_cv_prog_gnu_ld=no4649 ;;4650 esac4651 fi4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&54653 $as_echo "$lt_cv_prog_gnu_ld" >&6; }4654 with_gnu_ld=$lt_cv_prog_gnu_ld4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&54665 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }4666 if ${lt_cv_path_NM+:} false; then :4667 $as_echo_n "(cached) " >&64668 else4669 if test -n "$NM"; then4670 # Let the user override the test.4671 lt_cv_path_NM=$NM4672 else4673 lt_nm_to_check=${ac_tool_prefix}nm4674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then4675 lt_nm_to_check="$lt_nm_to_check nm"4676 fi4677 for lt_tmp_nm in $lt_nm_to_check; do4678 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR4679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do4680 IFS=$lt_save_ifs4681 test -z "$ac_dir" && ac_dir=.4682 tmp_nm=$ac_dir/$lt_tmp_nm4683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then4684 # Check to see if the nm accepts a BSD-compat flag.4685 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:4686 # nm: unknown option "B" ignored4687 # Tru64's nm complains that /dev/null is an invalid object file4688 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty4689 case $build_os in4690 mingw*) lt_bad_file=conftest.nm/nofile ;;4691 *) lt_bad_file=/dev/null ;;4692 esac4693 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in4694 *$lt_bad_file* | *'Invalid file or object type'*)4695 lt_cv_path_NM="$tmp_nm -B"4696 break 24697 ;;4698 *)4699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in4700 */dev/null*)4701 lt_cv_path_NM="$tmp_nm -p"4702 break 24703 ;;4704 *)4705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but4706 continue # so that we can try to find one that supports BSD flags4707 ;;4708 esac4709 ;;4710 esac4711 fi4712 done4713 IFS=$lt_save_ifs4714 done4715 : ${lt_cv_path_NM=no}4716 fi4717 fi4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&54719 $as_echo "$lt_cv_path_NM" >&6; }4720 if test no != "$lt_cv_path_NM"; then4721 NM=$lt_cv_path_NM4722 else4723 # Didn't find any BSD compatible name lister, look for dumpbin.4724 if test -n "$DUMPBIN"; then :4725 # Let the user override the test.4726 else4727 if test -n "$ac_tool_prefix"; then4728 for ac_prog in dumpbin "link -dump"4729 do4730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.4731 set dummy $ac_tool_prefix$ac_prog; ac_word=$24732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54733 $as_echo_n "checking for $ac_word... " >&6; }4734 if ${ac_cv_prog_DUMPBIN+:} false; then :4735 $as_echo_n "(cached) " >&64736 else4737 if test -n "$DUMPBIN"; then4738 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.4739 else4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4741 for as_dir in $PATH4742 do4743 IFS=$as_save_IFS4744 test -z "$as_dir" && as_dir=.4745 for ac_exec_ext in '' $ac_executable_extensions; do4746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4747 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"4748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54749 break 24750 fi4751 done4752 done4753 IFS=$as_save_IFS4754 4755 fi4756 fi4757 DUMPBIN=$ac_cv_prog_DUMPBIN4758 if test -n "$DUMPBIN"; then4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&54760 $as_echo "$DUMPBIN" >&6; }4761 else4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54763 $as_echo "no" >&6; }4764 fi4765 4766 4767 test -n "$DUMPBIN" && break4768 done4769 fi4770 if test -z "$DUMPBIN"; then4771 ac_ct_DUMPBIN=$DUMPBIN4772 for ac_prog in dumpbin "link -dump"4773 do4774 # Extract the first word of "$ac_prog", so it can be a program name with args.4775 set dummy $ac_prog; ac_word=$24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&54777 $as_echo_n "checking for $ac_word... " >&6; }4778 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :4779 $as_echo_n "(cached) " >&64780 else4781 if test -n "$ac_ct_DUMPBIN"; then4782 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.4783 else4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR4785 for as_dir in $PATH4786 do4787 IFS=$as_save_IFS4788 test -z "$as_dir" && as_dir=.4789 for ac_exec_ext in '' $ac_executable_extensions; do4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then4791 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&54793 break 24794 fi4795 done4796 done4797 IFS=$as_save_IFS4798 4799 fi4800 fi4801 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN4802 if test -n "$ac_ct_DUMPBIN"; then4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&54804 $as_echo "$ac_ct_DUMPBIN" >&6; }4805 else4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&54807 $as_echo "no" >&6; }4808 fi4809 4810 4811 test -n "$ac_ct_DUMPBIN" && break4812 done4813 4814 if test "x$ac_ct_DUMPBIN" = x; then4815 DUMPBIN=":"4816 else4817 case $cross_compiling:$ac_tool_warned in4818 yes:)4819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&54820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}4821 ac_tool_warned=yes ;;4822 esac4823 DUMPBIN=$ac_ct_DUMPBIN4824 fi4825 fi4826 4827 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in4828 *COFF*)4829 DUMPBIN="$DUMPBIN -symbols -headers"4830 ;;4831 *)4832 DUMPBIN=:4833 ;;4834 esac4835 fi4836 4837 if test : != "$DUMPBIN"; then4838 NM=$DUMPBIN4839 fi4840 fi4841 test -z "$NM" && NM=nm4842 4843 4844 4845 4846 4847 4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&54849 $as_echo_n "checking the name lister ($NM) interface... " >&6; }4850 if ${lt_cv_nm_interface+:} false; then :4851 $as_echo_n "(cached) " >&64852 else4853 lt_cv_nm_interface="BSD nm"4854 echo "int some_variable = 0;" > conftest.$ac_ext4855 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)4856 (eval "$ac_compile" 2>conftest.err)4857 cat conftest.err >&54858 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)4859 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)4860 cat conftest.err >&54861 (eval echo "\"\$as_me:$LINENO: output\"" >&5)4862 cat conftest.out >&54863 if $GREP 'External.*some_variable' conftest.out > /dev/null; then4864 lt_cv_nm_interface="MS dumpbin"4865 fi4866 rm -f conftest*4867 fi4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&54869 $as_echo "$lt_cv_nm_interface" >&6; }4870 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&54872 $as_echo_n "checking whether ln -s works... " >&6; }4873 LN_S=$as_ln_s4874 if test "$LN_S" = "ln -s"; then4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&54876 $as_echo "yes" >&6; }4877 else4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&54879 $as_echo "no, using $LN_S" >&6; }4880 fi4881 4882 # find the maximum length of command line arguments4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&54884 $as_echo_n "checking the maximum length of command line arguments... " >&6; }4885 if ${lt_cv_sys_max_cmd_len+:} false; then :4886 $as_echo_n "(cached) " >&64887 else4888 i=04889 teststring=ABCD4890 4891 case $build_os in4892 msdosdjgpp*)4893 # On DJGPP, this test can blow up pretty badly due to problems in libc4894 # (any single argument exceeding 2000 bytes causes a buffer overrun4895 # during glob expansion). Even if it were fixed, the result of this4896 # check would be larger than it should be.4897 lt_cv_sys_max_cmd_len=12288; # 12K is about right4898 ;;4899 4900 gnu*)4901 # Under GNU Hurd, this test is not required because there is4902 # no limit to the length of command line arguments.4903 # Libtool will interpret -1 as no limit whatsoever4904 lt_cv_sys_max_cmd_len=-1;4905 ;;4906 4907 cygwin* | mingw* | cegcc*)4908 # On Win9x/ME, this test blows up -- it succeeds, but takes4909 # about 5 minutes as the teststring grows exponentially.4910 # Worse, since 9x/ME are not pre-emptively multitasking,4911 # you end up with a "frozen" computer, even though with patience4912 # the test eventually succeeds (with a max line length of 256k).4913 # Instead, let's just punt: use the minimum linelength reported by4914 # all of the supported platforms: 8192 (on NT/2K/XP).4915 lt_cv_sys_max_cmd_len=8192;4916 ;;4917 4918 mint*)4919 # On MiNT this can take a long time and run out of memory.4920 lt_cv_sys_max_cmd_len=8192;4921 ;;4922 4923 amigaos*)4924 # On AmigaOS with pdksh, this test takes hours, literally.4925 # So we just punt and use a minimum line length of 8192.4926 lt_cv_sys_max_cmd_len=8192;4927 ;;4928 4929 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)4930 # This has been around since 386BSD, at least. Likely further.4931 if test -x /sbin/sysctl; then4932 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`4933 elif test -x /usr/sbin/sysctl; then4934 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`4935 else4936 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs4937 fi4938 # And add a safety zone4939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`4940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`4941 ;;4942 4943 interix*)4944 # We know the value 262144 and hardcode it with a safety zone (like BSD)4945 lt_cv_sys_max_cmd_len=1966084946 ;;4947 4948 os2*)4949 # The test takes a long time on OS/2.4950 lt_cv_sys_max_cmd_len=81924951 ;;4952 4953 osf*)4954 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure4955 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not4956 # nice to cause kernel panics so lets avoid the loop below.4957 # First set a reasonable default.4958 lt_cv_sys_max_cmd_len=163844959 #4960 if test -x /sbin/sysconfig; then4961 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in4962 *1*) lt_cv_sys_max_cmd_len=-1 ;;4963 esac4964 fi4965 ;;4966 sco3.2v5*)4967 lt_cv_sys_max_cmd_len=1024004968 ;;4969 sysv5* | sco5v6* | sysv4.2uw2*)4970 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`4971 if test -n "$kargmax"; then4972 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`4973 else4974 lt_cv_sys_max_cmd_len=327684975 fi4976 ;;4977 *)4978 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`4979 if test -n "$lt_cv_sys_max_cmd_len" && \4980 test undefined != "$lt_cv_sys_max_cmd_len"; then4981 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`4982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`4983 else4984 # Make teststring a little bigger before we do anything with it.4985 # a 1K string should be a reasonable start.4986 for i in 1 2 3 4 5 6 7 8; do4987 teststring=$teststring$teststring4988 done4989 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}4990 # If test is not a shell built-in, we'll probably end up computing a4991 # maximum length that is only half of the actual maximum length, but4992 # we can't tell.4993 while { test X`env echo "$teststring$teststring" 2>/dev/null` \4994 = "X$teststring$teststring"; } >/dev/null 2>&1 &&4995 test 17 != "$i" # 1/2 MB should be enough4996 do4997 i=`expr $i + 1`4998 teststring=$teststring$teststring4999 done5000 # Only check the string length outside the loop.5001 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`5002 teststring=5003 # Add a significant safety factor because C++ compilers can tack on5004 # massive amounts of additional arguments before passing them to the5005 # linker. It appears as though 1/2 is a usable value.5006 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`5007 fi5008 ;;5009 esac5010 5011 fi5012 5013 if test -n "$lt_cv_sys_max_cmd_len"; then5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&55015 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }5016 else5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&55018 $as_echo "none" >&6; }5019 fi5020 max_cmd_len=$lt_cv_sys_max_cmd_len5021 5022 5023 5024 5025 5026 5027 : ${CP="cp -f"}5028 : ${MV="mv -f"}5029 : ${RM="rm -f"}5030 5031 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then5032 lt_unset=unset5033 else5034 lt_unset=false5035 fi5036 5037 5038 5039 5040 5041 # test EBCDIC or ASCII5042 case `echo X|tr X '\101'` in5043 A) # ASCII based system5044 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr5045 lt_SP2NL='tr \040 \012'5046 lt_NL2SP='tr \015\012 \040\040'5047 ;;5048 *) # EBCDIC based system5049 lt_SP2NL='tr \100 \n'5050 lt_NL2SP='tr \r\n \100\100'5051 ;;5052 esac5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&55063 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }5064 if ${lt_cv_to_host_file_cmd+:} false; then :5065 $as_echo_n "(cached) " >&65066 else5067 case $host in5068 *-*-mingw* )5069 case $build in5070 *-*-mingw* ) # actually msys5071 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w325072 ;;5073 *-*-cygwin* )5074 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w325075 ;;5076 * ) # otherwise, assume *nix5077 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w325078 ;;5079 esac5080 ;;5081 *-*-cygwin* )5082 case $build in5083 *-*-mingw* ) # actually msys5084 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin5085 ;;5086 *-*-cygwin* )5087 lt_cv_to_host_file_cmd=func_convert_file_noop5088 ;;5089 * ) # otherwise, assume *nix5090 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin5091 ;;5092 esac5093 ;;5094 * ) # unhandled hosts (and "normal" native builds)5095 lt_cv_to_host_file_cmd=func_convert_file_noop5096 ;;5097 esac5098 5099 fi5100 5101 to_host_file_cmd=$lt_cv_to_host_file_cmd5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&55103 $as_echo "$lt_cv_to_host_file_cmd" >&6; }5104 5105 5106 5107 5108 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&55110 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }5111 if ${lt_cv_to_tool_file_cmd+:} false; then :5112 $as_echo_n "(cached) " >&65113 else5114 #assume ordinary cross tools, or native build.5115 lt_cv_to_tool_file_cmd=func_convert_file_noop5116 case $host in5117 *-*-mingw* )5118 case $build in5119 *-*-mingw* ) # actually msys5120 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w325121 ;;5122 esac5123 ;;5124 esac5125 5126 fi5127 5128 to_tool_file_cmd=$lt_cv_to_tool_file_cmd5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&55130 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }5131 5132 5133 5134 5135 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&55137 $as_echo_n "checking for $LD option to reload object files... " >&6; }5138 if ${lt_cv_ld_reload_flag+:} false; then :5139 $as_echo_n "(cached) " >&65140 else5141 lt_cv_ld_reload_flag='-r'5142 fi5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&55144 $as_echo "$lt_cv_ld_reload_flag" >&6; }5145 reload_flag=$lt_cv_ld_reload_flag5146 case $reload_flag in5147 "" | " "*) ;;5148 *) reload_flag=" $reload_flag" ;;5149 esac5150 reload_cmds='$LD$reload_flag -o $output$reload_objs'5151 case $host_os in5152 cygwin* | mingw* | pw32* | cegcc*)5153 if test yes != "$GCC"; then5154 reload_cmds=false5155 fi5156 ;;5157 darwin*)5158 if test yes = "$GCC"; then5159 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'5160 else5161 reload_cmds='$LD$reload_flag -o $output$reload_objs'5162 fi5163 ;;5164 esac5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 if test -n "$ac_tool_prefix"; then5175 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.5176 set dummy ${ac_tool_prefix}objdump; ac_word=$25177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55178 $as_echo_n "checking for $ac_word... " >&6; }5179 if ${ac_cv_prog_OBJDUMP+:} false; then :5180 $as_echo_n "(cached) " >&65181 else5182 if test -n "$OBJDUMP"; then5183 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.5184 else5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5186 for as_dir in $PATH5187 do5188 IFS=$as_save_IFS5189 test -z "$as_dir" && as_dir=.5190 for ac_exec_ext in '' $ac_executable_extensions; do5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5192 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55194 break 25195 fi5196 done5197 done5198 IFS=$as_save_IFS5199 5200 fi5201 fi5202 OBJDUMP=$ac_cv_prog_OBJDUMP5203 if test -n "$OBJDUMP"; then5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&55205 $as_echo "$OBJDUMP" >&6; }5206 else5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55208 $as_echo "no" >&6; }5209 fi5210 5211 5212 fi5213 if test -z "$ac_cv_prog_OBJDUMP"; then5214 ac_ct_OBJDUMP=$OBJDUMP5215 # Extract the first word of "objdump", so it can be a program name with args.5216 set dummy objdump; ac_word=$25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55218 $as_echo_n "checking for $ac_word... " >&6; }5219 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :5220 $as_echo_n "(cached) " >&65221 else5222 if test -n "$ac_ct_OBJDUMP"; then5223 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.5224 else5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5226 for as_dir in $PATH5227 do5228 IFS=$as_save_IFS5229 test -z "$as_dir" && as_dir=.5230 for ac_exec_ext in '' $ac_executable_extensions; do5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5232 ac_cv_prog_ac_ct_OBJDUMP="objdump"5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55234 break 25235 fi5236 done5237 done5238 IFS=$as_save_IFS5239 5240 fi5241 fi5242 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP5243 if test -n "$ac_ct_OBJDUMP"; then5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&55245 $as_echo "$ac_ct_OBJDUMP" >&6; }5246 else5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55248 $as_echo "no" >&6; }5249 fi5250 5251 if test "x$ac_ct_OBJDUMP" = x; then5252 OBJDUMP="false"5253 else5254 case $cross_compiling:$ac_tool_warned in5255 yes:)5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5258 ac_tool_warned=yes ;;5259 esac5260 OBJDUMP=$ac_ct_OBJDUMP5261 fi5262 else5263 OBJDUMP="$ac_cv_prog_OBJDUMP"5264 fi5265 5266 test -z "$OBJDUMP" && OBJDUMP=objdump5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&55277 $as_echo_n "checking how to recognize dependent libraries... " >&6; }5278 if ${lt_cv_deplibs_check_method+:} false; then :5279 $as_echo_n "(cached) " >&65280 else5281 lt_cv_file_magic_cmd='$MAGIC_CMD'5282 lt_cv_file_magic_test_file=5283 lt_cv_deplibs_check_method='unknown'5284 # Need to set the preceding variable on all platforms that support5285 # interlibrary dependencies.5286 # 'none' -- dependencies not supported.5287 # 'unknown' -- same as none, but documents that we really don't know.5288 # 'pass_all' -- all dependencies passed with no checks.5289 # 'test_compile' -- check by making test program.5290 # 'file_magic [[regex]]' -- check by looking for files in library path5291 # that responds to the $file_magic_cmd with a given extended regex.5292 # If you have 'file' or equivalent on your system and you're not sure5293 # whether 'pass_all' will *always* work, you probably want this one.5294 5295 case $host_os in5296 aix[4-9]*)5297 lt_cv_deplibs_check_method=pass_all5298 ;;5299 5300 beos*)5301 lt_cv_deplibs_check_method=pass_all5302 ;;5303 5304 bsdi[45]*)5305 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'5306 lt_cv_file_magic_cmd='/usr/bin/file -L'5307 lt_cv_file_magic_test_file=/shlib/libc.so5308 ;;5309 5310 cygwin*)5311 # func_win32_libid is a shell function defined in ltmain.sh5312 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5313 lt_cv_file_magic_cmd='func_win32_libid'5314 ;;5315 5316 mingw* | pw32*)5317 # Base MSYS/MinGW do not provide the 'file' command needed by5318 # func_win32_libid shell function, so use a weaker test based on 'objdump',5319 # unless we find 'file', for example because we are cross-compiling.5320 if ( file / ) >/dev/null 2>&1; then5321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'5322 lt_cv_file_magic_cmd='func_win32_libid'5323 else5324 # Keep this pattern in sync with the one in func_win32_libid.5325 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'5326 lt_cv_file_magic_cmd='$OBJDUMP -f'5327 fi5328 ;;5329 5330 cegcc*)5331 # use the weaker test based on 'objdump'. See mingw*.5332 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'5333 lt_cv_file_magic_cmd='$OBJDUMP -f'5334 ;;5335 5336 darwin* | rhapsody*)5337 lt_cv_deplibs_check_method=pass_all5338 ;;5339 5340 freebsd* | dragonfly*)5341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5342 case $host_cpu in5343 i*86 )5344 # Not sure whether the presence of OpenBSD here was a mistake.5345 # Let's accept both of them until this is cleared up.5346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'5347 lt_cv_file_magic_cmd=/usr/bin/file5348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`5349 ;;5350 esac5351 else5352 lt_cv_deplibs_check_method=pass_all5353 fi5354 ;;5355 5356 haiku*)5357 lt_cv_deplibs_check_method=pass_all5358 ;;5359 5360 hpux10.20* | hpux11*)5361 lt_cv_file_magic_cmd=/usr/bin/file5362 case $host_cpu in5363 ia64*)5364 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'5365 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so5366 ;;5367 hppa*64*)5368 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]'5369 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl5370 ;;5371 *)5372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'5373 lt_cv_file_magic_test_file=/usr/lib/libc.sl5374 ;;5375 esac5376 ;;5377 5378 interix[3-9]*)5379 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here5380 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'5381 ;;5382 5383 irix5* | irix6* | nonstopux*)5384 case $LD in5385 *-32|*"-32 ") libmagic=32-bit;;5386 *-n32|*"-n32 ") libmagic=N32;;5387 *-64|*"-64 ") libmagic=64-bit;;5388 *) libmagic=never-match;;5389 esac5390 lt_cv_deplibs_check_method=pass_all5391 ;;5392 5393 # This must be glibc/ELF.5394 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)5395 lt_cv_deplibs_check_method=pass_all5396 ;;5397 5398 netbsd* | netbsdelf*-gnu)5399 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then5400 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5401 else5402 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'5403 fi5404 ;;5405 5406 newos6*)5407 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'5408 lt_cv_file_magic_cmd=/usr/bin/file5409 lt_cv_file_magic_test_file=/usr/lib/libnls.so5410 ;;5411 5412 *nto* | *qnx*)5413 lt_cv_deplibs_check_method=pass_all5414 ;;5415 5416 openbsd* | bitrig*)5417 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then5418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'5419 else5420 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'5421 fi5422 ;;5423 5424 osf3* | osf4* | osf5*)5425 lt_cv_deplibs_check_method=pass_all5426 ;;5427 5428 rdos*)5429 lt_cv_deplibs_check_method=pass_all5430 ;;5431 5432 solaris*)5433 lt_cv_deplibs_check_method=pass_all5434 ;;5435 5436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)5437 lt_cv_deplibs_check_method=pass_all5438 ;;5439 5440 sysv4 | sysv4.3*)5441 case $host_vendor in5442 motorola)5443 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]'5444 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`5445 ;;5446 ncr)5447 lt_cv_deplibs_check_method=pass_all5448 ;;5449 sequent)5450 lt_cv_file_magic_cmd='/bin/file'5451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'5452 ;;5453 sni)5454 lt_cv_file_magic_cmd='/bin/file'5455 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"5456 lt_cv_file_magic_test_file=/lib/libc.so5457 ;;5458 siemens)5459 lt_cv_deplibs_check_method=pass_all5460 ;;5461 pc)5462 lt_cv_deplibs_check_method=pass_all5463 ;;5464 esac5465 ;;5466 5467 tpf*)5468 lt_cv_deplibs_check_method=pass_all5469 ;;5470 os2*)5471 lt_cv_deplibs_check_method=pass_all5472 ;;5473 esac5474 5475 fi5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&55477 $as_echo "$lt_cv_deplibs_check_method" >&6; }5478 5479 file_magic_glob=5480 want_nocaseglob=no5481 if test "$build" = "$host"; then5482 case $host_os in5483 mingw* | pw32*)5484 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then5485 want_nocaseglob=yes5486 else5487 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`5488 fi5489 ;;5490 esac5491 fi5492 5493 file_magic_cmd=$lt_cv_file_magic_cmd5494 deplibs_check_method=$lt_cv_deplibs_check_method5495 test -z "$deplibs_check_method" && deplibs_check_method=unknown5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 if test -n "$ac_tool_prefix"; then5519 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.5520 set dummy ${ac_tool_prefix}dlltool; ac_word=$25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55522 $as_echo_n "checking for $ac_word... " >&6; }5523 if ${ac_cv_prog_DLLTOOL+:} false; then :5524 $as_echo_n "(cached) " >&65525 else5526 if test -n "$DLLTOOL"; then5527 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.5528 else5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5530 for as_dir in $PATH5531 do5532 IFS=$as_save_IFS5533 test -z "$as_dir" && as_dir=.5534 for ac_exec_ext in '' $ac_executable_extensions; do5535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5536 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55538 break 25539 fi5540 done5541 done5542 IFS=$as_save_IFS5543 5544 fi5545 fi5546 DLLTOOL=$ac_cv_prog_DLLTOOL5547 if test -n "$DLLTOOL"; then5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&55549 $as_echo "$DLLTOOL" >&6; }5550 else5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55552 $as_echo "no" >&6; }5553 fi5554 5555 5556 fi5557 if test -z "$ac_cv_prog_DLLTOOL"; then5558 ac_ct_DLLTOOL=$DLLTOOL5559 # Extract the first word of "dlltool", so it can be a program name with args.5560 set dummy dlltool; ac_word=$25561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55562 $as_echo_n "checking for $ac_word... " >&6; }5563 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :5564 $as_echo_n "(cached) " >&65565 else5566 if test -n "$ac_ct_DLLTOOL"; then5567 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.5568 else5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5570 for as_dir in $PATH5571 do5572 IFS=$as_save_IFS5573 test -z "$as_dir" && as_dir=.5574 for ac_exec_ext in '' $ac_executable_extensions; do5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5576 ac_cv_prog_ac_ct_DLLTOOL="dlltool"5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55578 break 25579 fi5580 done5581 done5582 IFS=$as_save_IFS5583 5584 fi5585 fi5586 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL5587 if test -n "$ac_ct_DLLTOOL"; then5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&55589 $as_echo "$ac_ct_DLLTOOL" >&6; }5590 else5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55592 $as_echo "no" >&6; }5593 fi5594 5595 if test "x$ac_ct_DLLTOOL" = x; then5596 DLLTOOL="false"5597 else5598 case $cross_compiling:$ac_tool_warned in5599 yes:)5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5602 ac_tool_warned=yes ;;5603 esac5604 DLLTOOL=$ac_ct_DLLTOOL5605 fi5606 else5607 DLLTOOL="$ac_cv_prog_DLLTOOL"5608 fi5609 5610 test -z "$DLLTOOL" && DLLTOOL=dlltool5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&55622 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }5623 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :5624 $as_echo_n "(cached) " >&65625 else5626 lt_cv_sharedlib_from_linklib_cmd='unknown'5627 5628 case $host_os in5629 cygwin* | mingw* | pw32* | cegcc*)5630 # two different shell functions defined in ltmain.sh;5631 # decide which one to use based on capabilities of $DLLTOOL5632 case `$DLLTOOL --help 2>&1` in5633 *--identify-strict*)5634 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib5635 ;;5636 *)5637 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback5638 ;;5639 esac5640 ;;5641 *)5642 # fallback: assume linklib IS sharedlib5643 lt_cv_sharedlib_from_linklib_cmd=$ECHO5644 ;;5645 esac5646 5647 fi5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&55649 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }5650 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd5651 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO5652 5653 5654 5655 5656 5657 5658 5659 5660 if test -n "$ac_tool_prefix"; then5661 for ac_prog in ar5662 do5663 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.5664 set dummy $ac_tool_prefix$ac_prog; ac_word=$25665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55666 $as_echo_n "checking for $ac_word... " >&6; }5667 if ${ac_cv_prog_AR+:} false; then :5668 $as_echo_n "(cached) " >&65669 else5670 if test -n "$AR"; then5671 ac_cv_prog_AR="$AR" # Let the user override the test.5672 else5673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5674 for as_dir in $PATH5675 do5676 IFS=$as_save_IFS5677 test -z "$as_dir" && as_dir=.5678 for ac_exec_ext in '' $ac_executable_extensions; do5679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5680 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"5681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55682 break 25683 fi5684 done5685 done5686 IFS=$as_save_IFS5687 5688 fi5689 fi5690 AR=$ac_cv_prog_AR5691 if test -n "$AR"; then5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&55693 $as_echo "$AR" >&6; }5694 else5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55696 $as_echo "no" >&6; }5697 fi5698 5699 5700 test -n "$AR" && break5701 done5702 fi5703 if test -z "$AR"; then5704 ac_ct_AR=$AR5705 for ac_prog in ar5706 do5707 # Extract the first word of "$ac_prog", so it can be a program name with args.5708 set dummy $ac_prog; ac_word=$25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55710 $as_echo_n "checking for $ac_word... " >&6; }5711 if ${ac_cv_prog_ac_ct_AR+:} false; then :5712 $as_echo_n "(cached) " >&65713 else5714 if test -n "$ac_ct_AR"; then5715 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.5716 else5717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5718 for as_dir in $PATH5719 do5720 IFS=$as_save_IFS5721 test -z "$as_dir" && as_dir=.5722 for ac_exec_ext in '' $ac_executable_extensions; do5723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5724 ac_cv_prog_ac_ct_AR="$ac_prog"5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55726 break 25727 fi5728 done5729 done5730 IFS=$as_save_IFS5731 5732 fi5733 fi5734 ac_ct_AR=$ac_cv_prog_ac_ct_AR5735 if test -n "$ac_ct_AR"; then5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&55737 $as_echo "$ac_ct_AR" >&6; }5738 else5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55740 $as_echo "no" >&6; }5741 fi5742 5743 5744 test -n "$ac_ct_AR" && break5745 done5746 5747 if test "x$ac_ct_AR" = x; then5748 AR="false"5749 else5750 case $cross_compiling:$ac_tool_warned in5751 yes:)5752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5754 ac_tool_warned=yes ;;5755 esac5756 AR=$ac_ct_AR5757 fi5758 fi5759 5760 : ${AR=ar}5761 : ${AR_FLAGS=cru}5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&55774 $as_echo_n "checking for archiver @FILE support... " >&6; }5775 if ${lt_cv_ar_at_file+:} false; then :5776 $as_echo_n "(cached) " >&65777 else5778 lt_cv_ar_at_file=no5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext5780 /* end confdefs.h. */5781 5782 int5783 main ()5784 {5785 5786 ;5787 return 0;5788 }5789 _ACEOF5790 if ac_fn_c_try_compile "$LINENO"; then :5791 echo conftest.$ac_objext > conftest.lst5792 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'5793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55794 (eval $lt_ar_try) 2>&55795 ac_status=$?5796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55797 test $ac_status = 0; }5798 if test 0 -eq "$ac_status"; then5799 # Ensure the archiver fails upon bogus file names.5800 rm -f conftest.$ac_objext libconftest.a5801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&55802 (eval $lt_ar_try) 2>&55803 ac_status=$?5804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&55805 test $ac_status = 0; }5806 if test 0 -ne "$ac_status"; then5807 lt_cv_ar_at_file=@5808 fi5809 fi5810 rm -f conftest.* libconftest.a5811 5812 fi5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext5814 5815 fi5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&55817 $as_echo "$lt_cv_ar_at_file" >&6; }5818 5819 if test no = "$lt_cv_ar_at_file"; then5820 archiver_list_spec=5821 else5822 archiver_list_spec=$lt_cv_ar_at_file5823 fi5824 5825 5826 5827 5828 5829 5830 5831 if test -n "$ac_tool_prefix"; then5832 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.5833 set dummy ${ac_tool_prefix}strip; ac_word=$25834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55835 $as_echo_n "checking for $ac_word... " >&6; }5836 if ${ac_cv_prog_STRIP+:} false; then :5837 $as_echo_n "(cached) " >&65838 else5839 if test -n "$STRIP"; then5840 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.5841 else5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5843 for as_dir in $PATH5844 do5845 IFS=$as_save_IFS5846 test -z "$as_dir" && as_dir=.5847 for ac_exec_ext in '' $ac_executable_extensions; do5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55851 break 25852 fi5853 done5854 done5855 IFS=$as_save_IFS5856 5857 fi5858 fi5859 STRIP=$ac_cv_prog_STRIP5860 if test -n "$STRIP"; then5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&55862 $as_echo "$STRIP" >&6; }5863 else5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55865 $as_echo "no" >&6; }5866 fi5867 5868 5869 fi5870 if test -z "$ac_cv_prog_STRIP"; then5871 ac_ct_STRIP=$STRIP5872 # Extract the first word of "strip", so it can be a program name with args.5873 set dummy strip; ac_word=$25874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55875 $as_echo_n "checking for $ac_word... " >&6; }5876 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :5877 $as_echo_n "(cached) " >&65878 else5879 if test -n "$ac_ct_STRIP"; then5880 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.5881 else5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5883 for as_dir in $PATH5884 do5885 IFS=$as_save_IFS5886 test -z "$as_dir" && as_dir=.5887 for ac_exec_ext in '' $ac_executable_extensions; do5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5889 ac_cv_prog_ac_ct_STRIP="strip"5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55891 break 25892 fi5893 done5894 done5895 IFS=$as_save_IFS5896 5897 fi5898 fi5899 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP5900 if test -n "$ac_ct_STRIP"; then5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&55902 $as_echo "$ac_ct_STRIP" >&6; }5903 else5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55905 $as_echo "no" >&6; }5906 fi5907 5908 if test "x$ac_ct_STRIP" = x; then5909 STRIP=":"5910 else5911 case $cross_compiling:$ac_tool_warned in5912 yes:)5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&55914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}5915 ac_tool_warned=yes ;;5916 esac5917 STRIP=$ac_ct_STRIP5918 fi5919 else5920 STRIP="$ac_cv_prog_STRIP"5921 fi5922 5923 test -z "$STRIP" && STRIP=:5924 5925 5926 5927 5928 5929 5930 if test -n "$ac_tool_prefix"; then5931 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.5932 set dummy ${ac_tool_prefix}ranlib; ac_word=$25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55934 $as_echo_n "checking for $ac_word... " >&6; }5935 if ${ac_cv_prog_RANLIB+:} false; then :5936 $as_echo_n "(cached) " >&65937 else5938 if test -n "$RANLIB"; then5939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.5940 else5941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5942 for as_dir in $PATH5943 do5944 IFS=$as_save_IFS5945 test -z "$as_dir" && as_dir=.5946 for ac_exec_ext in '' $ac_executable_extensions; do5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5948 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55950 break 25951 fi5952 done5953 done5954 IFS=$as_save_IFS5955 5956 fi5957 fi5958 RANLIB=$ac_cv_prog_RANLIB5959 if test -n "$RANLIB"; then5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&55961 $as_echo "$RANLIB" >&6; }5962 else5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55964 $as_echo "no" >&6; }5965 fi5966 5967 5968 fi5969 if test -z "$ac_cv_prog_RANLIB"; then5970 ac_ct_RANLIB=$RANLIB5971 # Extract the first word of "ranlib", so it can be a program name with args.5972 set dummy ranlib; ac_word=$25973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55974 $as_echo_n "checking for $ac_word... " >&6; }5975 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :5976 $as_echo_n "(cached) " >&65977 else5978 if test -n "$ac_ct_RANLIB"; then5979 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.5980 else5981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5982 for as_dir in $PATH5983 do5984 IFS=$as_save_IFS5985 test -z "$as_dir" && as_dir=.5986 for ac_exec_ext in '' $ac_executable_extensions; do5987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5988 ac_cv_prog_ac_ct_RANLIB="ranlib"5989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55990 break 25991 fi5992 done5993 done5994 IFS=$as_save_IFS5995 5996 fi5997 fi5998 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB5999 if test -n "$ac_ct_RANLIB"; then6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&56001 $as_echo "$ac_ct_RANLIB" >&6; }6002 else6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56004 $as_echo "no" >&6; }6005 fi6006 6007 if test "x$ac_ct_RANLIB" = x; then6008 RANLIB=":"6009 else6010 case $cross_compiling:$ac_tool_warned in6011 yes:)6012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6014 ac_tool_warned=yes ;;6015 esac6016 RANLIB=$ac_ct_RANLIB6017 fi6018 else6019 RANLIB="$ac_cv_prog_RANLIB"6020 fi6021 6022 test -z "$RANLIB" && RANLIB=:6023 6024 6025 6026 6027 6028 6029 # Determine commands to create old-style static archives.6030 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'6031 old_postinstall_cmds='chmod 644 $oldlib'6032 old_postuninstall_cmds=6033 6034 if test -n "$RANLIB"; then6035 case $host_os in6036 bitrig* | openbsd*)6037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"6038 ;;6039 *)6040 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"6041 ;;6042 esac6043 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"6044 fi6045 6046 case $host_os in6047 darwin*)6048 lock_old_archive_extraction=yes ;;6049 *)6050 lock_old_archive_extraction=no ;;6051 esac6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 # If no C compiler was specified, use CC.6092 LTCC=${LTCC-"$CC"}6093 6094 # If no C compiler flags were specified, use CFLAGS.6095 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}6096 6097 # Allow CC to be a program name with arguments.6098 compiler=$CC6099 6100 6101 # Check for command to grab the raw symbol name followed by C symbol from nm.6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&56103 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }6104 if ${lt_cv_sys_global_symbol_pipe+:} false; then :6105 $as_echo_n "(cached) " >&66106 else6107 6108 # These are sane defaults that work on at least a few old systems.6109 # [They come from Ultrix. What could be older than Ultrix?!! ;)]6110 6111 # Character class describing NM global symbol codes.6112 symcode='[BCDEGRST]'6113 6114 # Regexp to match symbols that can be accessed directly from C.6115 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'6116 6117 # Define system-specific variables.6118 case $host_os in6119 aix*)6120 symcode='[BCDT]'6121 ;;6122 cygwin* | mingw* | pw32* | cegcc*)6123 symcode='[ABCDGISTW]'6124 ;;6125 hpux*)6126 if test ia64 = "$host_cpu"; then6127 symcode='[ABCDEGRST]'6128 fi6129 ;;6130 irix* | nonstopux*)6131 symcode='[BCDEGRST]'6132 ;;6133 osf*)6134 symcode='[BCDEGQRST]'6135 ;;6136 solaris*)6137 symcode='[BDRT]'6138 ;;6139 sco3.2v5*)6140 symcode='[DT]'6141 ;;6142 sysv4.2uw2*)6143 symcode='[DT]'6144 ;;6145 sysv5* | sco5v6* | unixware* | OpenUNIX*)6146 symcode='[ABDT]'6147 ;;6148 sysv4)6149 symcode='[DFNSTU]'6150 ;;6151 esac6152 6153 # If we're using GNU nm, then use its standard symbol codes.6154 case `$NM -V 2>&1` in6155 *GNU* | *'with BFD'*)6156 symcode='[ABCDGIRSTW]' ;;6157 esac6158 6159 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6160 # Gets list of data symbols to import.6161 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"6162 # Adjust the below global symbol transforms to fixup imported variables.6163 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"6164 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"6165 lt_c_name_lib_hook="\6166 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\6167 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"6168 else6169 # Disable hooks by default.6170 lt_cv_sys_global_symbol_to_import=6171 lt_cdecl_hook=6172 lt_c_name_hook=6173 lt_c_name_lib_hook=6174 fi6175 6176 # Transform an extracted symbol line into a proper C declaration.6177 # Some systems (esp. on ia64) link data and code symbols differently,6178 # so use this general approach.6179 lt_cv_sys_global_symbol_to_cdecl="sed -n"\6180 $lt_cdecl_hook\6181 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\6182 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"6183 6184 # Transform an extracted symbol line into symbol name and symbol address6185 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\6186 $lt_c_name_hook\6187 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6188 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"6189 6190 # Transform an extracted symbol line into symbol name with lib prefix and6191 # symbol address.6192 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\6193 $lt_c_name_lib_hook\6194 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\6195 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\6196 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"6197 6198 # Handle CRLF in mingw tool chain6199 opt_cr=6200 case $build_os in6201 mingw*)6202 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp6203 ;;6204 esac6205 6206 # Try without a prefix underscore, then with it.6207 for ac_symprfx in "" "_"; do6208 6209 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.6210 symxfrm="\\1 $ac_symprfx\\2 \\2"6211 6212 # Write the raw and C identifiers.6213 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6214 # Fake it for dumpbin and say T for any non-static function,6215 # D for any global variable and I for any imported variable.6216 # Also find C++ and __fastcall symbols from MSVC++,6217 # which start with @ or ?.6218 lt_cv_sys_global_symbol_pipe="$AWK '"\6219 " {last_section=section; section=\$ 3};"\6220 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\6221 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\6222 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\6223 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\6224 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\6225 " \$ 0!~/External *\|/{next};"\6226 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\6227 " {if(hide[section]) next};"\6228 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\6229 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\6230 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\6231 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\6232 " ' prfx=^$ac_symprfx"6233 else6234 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"6235 fi6236 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"6237 6238 # Check to see that the pipe works correctly.6239 pipe_works=no6240 6241 rm -f conftest*6242 cat > conftest.$ac_ext <<_LT_EOF6243 #ifdef __cplusplus6244 extern "C" {6245 #endif6246 char nm_test_var;6247 void nm_test_func(void);6248 void nm_test_func(void){}6249 #ifdef __cplusplus6250 }6251 #endif6252 int main(){nm_test_var='a';nm_test_func();return(0);}6253 _LT_EOF6254 6255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56256 (eval $ac_compile) 2>&56257 ac_status=$?6258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56259 test $ac_status = 0; }; then6260 # Now try to grab the symbols.6261 nlist=conftest.nm6262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&56263 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&56264 ac_status=$?6265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56266 test $ac_status = 0; } && test -s "$nlist"; then6267 # Try sorting and uniquifying the output.6268 if sort "$nlist" | uniq > "$nlist"T; then6269 mv -f "$nlist"T "$nlist"6270 else6271 rm -f "$nlist"T6272 fi6273 6274 # Make sure that we snagged all the symbols we need.6275 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then6276 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then6277 cat <<_LT_EOF > conftest.$ac_ext6278 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */6279 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE6280 /* DATA imports from DLLs on WIN32 can't be const, because runtime6281 relocations are performed -- see ld's documentation on pseudo-relocs. */6282 # define LT_DLSYM_CONST6283 #elif defined __osf__6284 /* This system does not cope well with relocations in const data. */6285 # define LT_DLSYM_CONST6286 #else6287 # define LT_DLSYM_CONST const6288 #endif6289 6290 #ifdef __cplusplus6291 extern "C" {6292 #endif6293 6294 _LT_EOF6295 # Now generate the symbol file.6296 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'6297 6298 cat <<_LT_EOF >> conftest.$ac_ext6299 6300 /* The mapping between symbol names and symbols. */6301 LT_DLSYM_CONST struct {6302 const char *name;6303 void *address;6304 }6305 lt__PROGRAM__LTX_preloaded_symbols[] =6306 {6307 { "@PROGRAM@", (void *) 0 },6308 _LT_EOF6309 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext6310 cat <<\_LT_EOF >> conftest.$ac_ext6311 {0, (void *) 0}6312 };6313 6314 /* This works around a problem in FreeBSD linker */6315 #ifdef FREEBSD_WORKAROUND6316 static const void *lt_preloaded_setup() {6317 return lt__PROGRAM__LTX_preloaded_symbols;6318 }6319 #endif6320 6321 #ifdef __cplusplus6322 }6323 #endif6324 _LT_EOF6325 # Now try linking the two files.6326 mv conftest.$ac_objext conftstm.$ac_objext6327 lt_globsym_save_LIBS=$LIBS6328 lt_globsym_save_CFLAGS=$CFLAGS6329 LIBS=conftstm.$ac_objext6330 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"6331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&56332 (eval $ac_link) 2>&56333 ac_status=$?6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56335 test $ac_status = 0; } && test -s conftest$ac_exeext; then6336 pipe_works=yes6337 fi6338 LIBS=$lt_globsym_save_LIBS6339 CFLAGS=$lt_globsym_save_CFLAGS6340 else6341 echo "cannot find nm_test_func in $nlist" >&56342 fi6343 else6344 echo "cannot find nm_test_var in $nlist" >&56345 fi6346 else6347 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&56348 fi6349 else6350 echo "$progname: failed program was:" >&56351 cat conftest.$ac_ext >&56352 fi6353 rm -rf conftest* conftst*6354 6355 # Do not use the global_symbol_pipe unless it works.6356 if test yes = "$pipe_works"; then6357 break6358 else6359 lt_cv_sys_global_symbol_pipe=6360 fi6361 done6362 6363 fi6364 6365 if test -z "$lt_cv_sys_global_symbol_pipe"; then6366 lt_cv_sys_global_symbol_to_cdecl=6367 fi6368 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&56370 $as_echo "failed" >&6; }6371 else6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&56373 $as_echo "ok" >&6; }6374 fi6375 6376 # Response file support.6377 if test "$lt_cv_nm_interface" = "MS dumpbin"; then6378 nm_file_list_spec='@'6379 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then6380 nm_file_list_spec='@'6381 fi6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&56420 $as_echo_n "checking for sysroot... " >&6; }6421 6422 # Check whether --with-sysroot was given.6423 if test "${with_sysroot+set}" = set; then :6424 withval=$with_sysroot;6425 else6426 with_sysroot=no6427 fi6428 6429 6430 lt_sysroot=6431 case $with_sysroot in #(6432 yes)6433 if test yes = "$GCC"; then6434 lt_sysroot=`$CC --print-sysroot 2>/dev/null`6435 fi6436 ;; #(6437 /*)6438 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`6439 ;; #(6440 no|'')6441 ;; #(6442 *)6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&56444 $as_echo "$with_sysroot" >&6; }6445 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 56446 ;;6447 esac6448 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&56450 $as_echo "${lt_sysroot:-no}" >&6; }6451 6452 6453 6454 6455 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&56457 $as_echo_n "checking for a working dd... " >&6; }6458 if ${ac_cv_path_lt_DD+:} false; then :6459 $as_echo_n "(cached) " >&66460 else6461 printf 0123456789abcdef0123456789abcdef >conftest.i6462 cat conftest.i conftest.i >conftest2.i6463 : ${lt_DD:=$DD}6464 if test -z "$lt_DD"; then6465 ac_path_lt_DD_found=false6466 # Loop through the user's path and test for each of PROGNAME-LIST6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6468 for as_dir in $PATH6469 do6470 IFS=$as_save_IFS6471 test -z "$as_dir" && as_dir=.6472 for ac_prog in dd; do6473 for ac_exec_ext in '' $ac_executable_extensions; do6474 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"6475 as_fn_executable_p "$ac_path_lt_DD" || continue6476 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6477 cmp -s conftest.i conftest.out \6478 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:6479 fi6480 $ac_path_lt_DD_found && break 36481 done6482 done6483 done6484 IFS=$as_save_IFS6485 if test -z "$ac_cv_path_lt_DD"; then6486 :6487 fi6488 else6489 ac_cv_path_lt_DD=$lt_DD6490 fi6491 6492 rm -f conftest.i conftest2.i conftest.out6493 fi6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&56495 $as_echo "$ac_cv_path_lt_DD" >&6; }6496 6497 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&56499 $as_echo_n "checking how to truncate binary pipes... " >&6; }6500 if ${lt_cv_truncate_bin+:} false; then :6501 $as_echo_n "(cached) " >&66502 else6503 printf 0123456789abcdef0123456789abcdef >conftest.i6504 cat conftest.i conftest.i >conftest2.i6505 lt_cv_truncate_bin=6506 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then6507 cmp -s conftest.i conftest.out \6508 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"6509 fi6510 rm -f conftest.i conftest2.i conftest.out6511 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"6512 fi6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&56514 $as_echo "$lt_cv_truncate_bin" >&6; }6515 6516 6517 6518 6519 6520 6521 6522 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.6523 func_cc_basename ()6524 {6525 for cc_temp in $*""; do6526 case $cc_temp in6527 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;6528 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;6529 \-*) ;;6530 *) break;;6531 esac6532 done6533 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`6534 }6535 6536 # Check whether --enable-libtool-lock was given.6537 if test "${enable_libtool_lock+set}" = set; then :6538 enableval=$enable_libtool_lock;6539 fi6540 6541 test no = "$enable_libtool_lock" || enable_libtool_lock=yes6542 6543 # Some flags need to be propagated to the compiler or linker for good6544 # libtool support.6545 case $host in6546 ia64-*-hpux*)6547 # Find out what ABI is being produced by ac_compile, and set mode6548 # options accordingly.6549 echo 'int i;' > conftest.$ac_ext6550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56551 (eval $ac_compile) 2>&56552 ac_status=$?6553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56554 test $ac_status = 0; }; then6555 case `/usr/bin/file conftest.$ac_objext` in6556 *ELF-32*)6557 HPUX_IA64_MODE=326558 ;;6559 *ELF-64*)6560 HPUX_IA64_MODE=646561 ;;6562 esac6563 fi6564 rm -rf conftest*6565 ;;6566 *-*-irix6*)6567 # Find out what ABI is being produced by ac_compile, and set linker6568 # options accordingly.6569 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56571 (eval $ac_compile) 2>&56572 ac_status=$?6573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56574 test $ac_status = 0; }; then6575 if test yes = "$lt_cv_prog_gnu_ld"; then6576 case `/usr/bin/file conftest.$ac_objext` in6577 *32-bit*)6578 LD="${LD-ld} -melf32bsmip"6579 ;;6580 *N32*)6581 LD="${LD-ld} -melf32bmipn32"6582 ;;6583 *64-bit*)6584 LD="${LD-ld} -melf64bmip"6585 ;;6586 esac6587 else6588 case `/usr/bin/file conftest.$ac_objext` in6589 *32-bit*)6590 LD="${LD-ld} -32"6591 ;;6592 *N32*)6593 LD="${LD-ld} -n32"6594 ;;6595 *64-bit*)6596 LD="${LD-ld} -64"6597 ;;6598 esac6599 fi6600 fi6601 rm -rf conftest*6602 ;;6603 6604 mips64*-*linux*)6605 # Find out what ABI is being produced by ac_compile, and set linker6606 # options accordingly.6607 echo '#line '$LINENO' "configure"' > conftest.$ac_ext6608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56609 (eval $ac_compile) 2>&56610 ac_status=$?6611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56612 test $ac_status = 0; }; then6613 emul=elf6614 case `/usr/bin/file conftest.$ac_objext` in6615 *32-bit*)6616 emul="${emul}32"6617 ;;6618 *64-bit*)6619 emul="${emul}64"6620 ;;6621 esac6622 case `/usr/bin/file conftest.$ac_objext` in6623 *MSB*)6624 emul="${emul}btsmip"6625 ;;6626 *LSB*)6627 emul="${emul}ltsmip"6628 ;;6629 esac6630 case `/usr/bin/file conftest.$ac_objext` in6631 *N32*)6632 emul="${emul}n32"6633 ;;6634 esac6635 LD="${LD-ld} -m $emul"6636 fi6637 rm -rf conftest*6638 ;;6639 6640 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \6641 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)6642 # Find out what ABI is being produced by ac_compile, and set linker6643 # options accordingly. Note that the listed cases only cover the6644 # situations where additional linker options are needed (such as when6645 # doing 32-bit compilation for a host where ld defaults to 64-bit, or6646 # vice versa); the common cases where no linker options are needed do6647 # not appear in the list.6648 echo 'int i;' > conftest.$ac_ext6649 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56650 (eval $ac_compile) 2>&56651 ac_status=$?6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56653 test $ac_status = 0; }; then6654 case `/usr/bin/file conftest.o` in6655 *32-bit*)6656 case $host in6657 x86_64-*kfreebsd*-gnu)6658 LD="${LD-ld} -m elf_i386_fbsd"6659 ;;6660 x86_64-*linux*)6661 case `/usr/bin/file conftest.o` in6662 *x86-64*)6663 LD="${LD-ld} -m elf32_x86_64"6664 ;;6665 *)6666 LD="${LD-ld} -m elf_i386"6667 ;;6668 esac6669 ;;6670 powerpc64le-*linux*)6671 LD="${LD-ld} -m elf32lppclinux"6672 ;;6673 powerpc64-*linux*)6674 LD="${LD-ld} -m elf32ppclinux"6675 ;;6676 s390x-*linux*)6677 LD="${LD-ld} -m elf_s390"6678 ;;6679 sparc64-*linux*)6680 LD="${LD-ld} -m elf32_sparc"6681 ;;6682 esac6683 ;;6684 *64-bit*)6685 case $host in6686 x86_64-*kfreebsd*-gnu)6687 LD="${LD-ld} -m elf_x86_64_fbsd"6688 ;;6689 x86_64-*linux*)6690 LD="${LD-ld} -m elf_x86_64"6691 ;;6692 powerpcle-*linux*)6693 LD="${LD-ld} -m elf64lppc"6694 ;;6695 powerpc-*linux*)6696 LD="${LD-ld} -m elf64ppc"6697 ;;6698 s390*-*linux*|s390*-*tpf*)6699 LD="${LD-ld} -m elf64_s390"6700 ;;6701 sparc*-*linux*)6702 LD="${LD-ld} -m elf64_sparc"6703 ;;6704 esac6705 ;;6706 esac6707 fi6708 rm -rf conftest*6709 ;;6710 6711 *-*-sco3.2v5*)6712 # On SCO OpenServer 5, we need -belf to get full-featured binaries.6713 SAVE_CFLAGS=$CFLAGS6714 CFLAGS="$CFLAGS -belf"6715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&56716 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }6717 if ${lt_cv_cc_needs_belf+:} false; then :6718 $as_echo_n "(cached) " >&66719 else6720 ac_ext=c6721 ac_cpp='$CPP $CPPFLAGS'6722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6724 ac_compiler_gnu=$ac_cv_c_compiler_gnu6725 6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext6727 /* end confdefs.h. */6728 6729 int6730 main ()6731 {6732 6733 ;6734 return 0;6735 }6736 _ACEOF6737 if ac_fn_c_try_link "$LINENO"; then :6738 lt_cv_cc_needs_belf=yes6739 else6740 lt_cv_cc_needs_belf=no6741 fi6742 rm -f core conftest.err conftest.$ac_objext \6743 conftest$ac_exeext conftest.$ac_ext6744 ac_ext=c6745 ac_cpp='$CPP $CPPFLAGS'6746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'6747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'6748 ac_compiler_gnu=$ac_cv_c_compiler_gnu6749 6750 fi6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&56752 $as_echo "$lt_cv_cc_needs_belf" >&6; }6753 if test yes != "$lt_cv_cc_needs_belf"; then6754 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf6755 CFLAGS=$SAVE_CFLAGS6756 fi6757 ;;6758 *-*solaris*)6759 # Find out what ABI is being produced by ac_compile, and set linker6760 # options accordingly.6761 echo 'int i;' > conftest.$ac_ext6762 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&56763 (eval $ac_compile) 2>&56764 ac_status=$?6765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&56766 test $ac_status = 0; }; then6767 case `/usr/bin/file conftest.o` in6768 *64-bit*)6769 case $lt_cv_prog_gnu_ld in6770 yes*)6771 case $host in6772 i?86-*-solaris*|x86_64-*-solaris*)6773 LD="${LD-ld} -m elf_x86_64"6774 ;;6775 sparc*-*-solaris*)6776 LD="${LD-ld} -m elf64_sparc"6777 ;;6778 esac6779 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.6780 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then6781 LD=${LD-ld}_sol26782 fi6783 ;;6784 *)6785 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then6786 LD="${LD-ld} -64"6787 fi6788 ;;6789 esac6790 ;;6791 esac6792 fi6793 rm -rf conftest*6794 ;;6795 esac6796 6797 need_locks=$enable_libtool_lock6798 6799 if test -n "$ac_tool_prefix"; then6800 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.6801 set dummy ${ac_tool_prefix}mt; ac_word=$26802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56803 $as_echo_n "checking for $ac_word... " >&6; }6804 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :6805 $as_echo_n "(cached) " >&66806 else6807 if test -n "$MANIFEST_TOOL"; then6808 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.6809 else6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6811 for as_dir in $PATH6812 do6813 IFS=$as_save_IFS6814 test -z "$as_dir" && as_dir=.6815 for ac_exec_ext in '' $ac_executable_extensions; do6816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6817 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"6818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56819 break 26820 fi6821 done6822 done6823 IFS=$as_save_IFS6824 6825 fi6826 fi6827 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL6828 if test -n "$MANIFEST_TOOL"; then6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&56830 $as_echo "$MANIFEST_TOOL" >&6; }6831 else6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56833 $as_echo "no" >&6; }6834 fi6835 6836 6837 fi6838 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then6839 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL6840 # Extract the first word of "mt", so it can be a program name with args.6841 set dummy mt; ac_word=$26842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56843 $as_echo_n "checking for $ac_word... " >&6; }6844 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :6845 $as_echo_n "(cached) " >&66846 else6847 if test -n "$ac_ct_MANIFEST_TOOL"; then6848 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.6849 else6850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6851 for as_dir in $PATH6852 do6853 IFS=$as_save_IFS6854 test -z "$as_dir" && as_dir=.6855 for ac_exec_ext in '' $ac_executable_extensions; do6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6857 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56859 break 26860 fi6861 done6862 done6863 IFS=$as_save_IFS6864 6865 fi6866 fi6867 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL6868 if test -n "$ac_ct_MANIFEST_TOOL"; then6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&56870 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }6871 else6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56873 $as_echo "no" >&6; }6874 fi6875 6876 if test "x$ac_ct_MANIFEST_TOOL" = x; then6877 MANIFEST_TOOL=":"6878 else6879 case $cross_compiling:$ac_tool_warned in6880 yes:)6881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6883 ac_tool_warned=yes ;;6884 esac6885 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL6886 fi6887 else6888 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"6889 fi6890 6891 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&56893 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }6894 if ${lt_cv_path_mainfest_tool+:} false; then :6895 $as_echo_n "(cached) " >&66896 else6897 lt_cv_path_mainfest_tool=no6898 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&56899 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out6900 cat conftest.err >&56901 if $GREP 'Manifest Tool' conftest.out > /dev/null; then6902 lt_cv_path_mainfest_tool=yes6903 fi6904 rm -f conftest*6905 fi6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&56907 $as_echo "$lt_cv_path_mainfest_tool" >&6; }6908 if test yes != "$lt_cv_path_mainfest_tool"; then6909 MANIFEST_TOOL=:6910 fi6911 6912 6913 6914 6915 6916 6917 case $host_os in6918 rhapsody* | darwin*)6919 if test -n "$ac_tool_prefix"; then6920 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.6921 set dummy ${ac_tool_prefix}dsymutil; ac_word=$26922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56923 $as_echo_n "checking for $ac_word... " >&6; }6924 if ${ac_cv_prog_DSYMUTIL+:} false; then :6925 $as_echo_n "(cached) " >&66926 else6927 if test -n "$DSYMUTIL"; then6928 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.6929 else6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6931 for as_dir in $PATH6932 do6933 IFS=$as_save_IFS6934 test -z "$as_dir" && as_dir=.6935 for ac_exec_ext in '' $ac_executable_extensions; do6936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6937 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56939 break 26940 fi6941 done6942 done6943 IFS=$as_save_IFS6944 6945 fi6946 fi6947 DSYMUTIL=$ac_cv_prog_DSYMUTIL6948 if test -n "$DSYMUTIL"; then6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&56950 $as_echo "$DSYMUTIL" >&6; }6951 else6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56953 $as_echo "no" >&6; }6954 fi6955 6956 6957 fi6958 if test -z "$ac_cv_prog_DSYMUTIL"; then6959 ac_ct_DSYMUTIL=$DSYMUTIL6960 # Extract the first word of "dsymutil", so it can be a program name with args.6961 set dummy dsymutil; ac_word=$26962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56963 $as_echo_n "checking for $ac_word... " >&6; }6964 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :6965 $as_echo_n "(cached) " >&66966 else6967 if test -n "$ac_ct_DSYMUTIL"; then6968 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.6969 else6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6971 for as_dir in $PATH6972 do6973 IFS=$as_save_IFS6974 test -z "$as_dir" && as_dir=.6975 for ac_exec_ext in '' $ac_executable_extensions; do6976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6977 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56979 break 26980 fi6981 done6982 done6983 IFS=$as_save_IFS6984 6985 fi6986 fi6987 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL6988 if test -n "$ac_ct_DSYMUTIL"; then6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&56990 $as_echo "$ac_ct_DSYMUTIL" >&6; }6991 else6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56993 $as_echo "no" >&6; }6994 fi6995 6996 if test "x$ac_ct_DSYMUTIL" = x; then6997 DSYMUTIL=":"6998 else6999 case $cross_compiling:$ac_tool_warned in7000 yes:)7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7003 ac_tool_warned=yes ;;7004 esac7005 DSYMUTIL=$ac_ct_DSYMUTIL7006 fi7007 else7008 DSYMUTIL="$ac_cv_prog_DSYMUTIL"7009 fi7010 7011 if test -n "$ac_tool_prefix"; then7012 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.7013 set dummy ${ac_tool_prefix}nmedit; ac_word=$27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57015 $as_echo_n "checking for $ac_word... " >&6; }7016 if ${ac_cv_prog_NMEDIT+:} false; then :7017 $as_echo_n "(cached) " >&67018 else7019 if test -n "$NMEDIT"; then7020 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.7021 else7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7023 for as_dir in $PATH7024 do7025 IFS=$as_save_IFS7026 test -z "$as_dir" && as_dir=.7027 for ac_exec_ext in '' $ac_executable_extensions; do7028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7029 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57031 break 27032 fi7033 done7034 done7035 IFS=$as_save_IFS7036 7037 fi7038 fi7039 NMEDIT=$ac_cv_prog_NMEDIT7040 if test -n "$NMEDIT"; then7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&57042 $as_echo "$NMEDIT" >&6; }7043 else7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57045 $as_echo "no" >&6; }7046 fi7047 7048 7049 fi7050 if test -z "$ac_cv_prog_NMEDIT"; then7051 ac_ct_NMEDIT=$NMEDIT7052 # Extract the first word of "nmedit", so it can be a program name with args.7053 set dummy nmedit; ac_word=$27054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57055 $as_echo_n "checking for $ac_word... " >&6; }7056 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :7057 $as_echo_n "(cached) " >&67058 else7059 if test -n "$ac_ct_NMEDIT"; then7060 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.7061 else7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7063 for as_dir in $PATH7064 do7065 IFS=$as_save_IFS7066 test -z "$as_dir" && as_dir=.7067 for ac_exec_ext in '' $ac_executable_extensions; do7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7069 ac_cv_prog_ac_ct_NMEDIT="nmedit"7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57071 break 27072 fi7073 done7074 done7075 IFS=$as_save_IFS7076 7077 fi7078 fi7079 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT7080 if test -n "$ac_ct_NMEDIT"; then7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&57082 $as_echo "$ac_ct_NMEDIT" >&6; }7083 else7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57085 $as_echo "no" >&6; }7086 fi7087 7088 if test "x$ac_ct_NMEDIT" = x; then7089 NMEDIT=":"7090 else7091 case $cross_compiling:$ac_tool_warned in7092 yes:)7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7095 ac_tool_warned=yes ;;7096 esac7097 NMEDIT=$ac_ct_NMEDIT7098 fi7099 else7100 NMEDIT="$ac_cv_prog_NMEDIT"7101 fi7102 7103 if test -n "$ac_tool_prefix"; then7104 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.7105 set dummy ${ac_tool_prefix}lipo; ac_word=$27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57107 $as_echo_n "checking for $ac_word... " >&6; }7108 if ${ac_cv_prog_LIPO+:} false; then :7109 $as_echo_n "(cached) " >&67110 else7111 if test -n "$LIPO"; then7112 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.7113 else7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7115 for as_dir in $PATH7116 do7117 IFS=$as_save_IFS7118 test -z "$as_dir" && as_dir=.7119 for ac_exec_ext in '' $ac_executable_extensions; do7120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7121 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57123 break 27124 fi7125 done7126 done7127 IFS=$as_save_IFS7128 7129 fi7130 fi7131 LIPO=$ac_cv_prog_LIPO7132 if test -n "$LIPO"; then7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&57134 $as_echo "$LIPO" >&6; }7135 else7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57137 $as_echo "no" >&6; }7138 fi7139 7140 7141 fi7142 if test -z "$ac_cv_prog_LIPO"; then7143 ac_ct_LIPO=$LIPO7144 # Extract the first word of "lipo", so it can be a program name with args.7145 set dummy lipo; ac_word=$27146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57147 $as_echo_n "checking for $ac_word... " >&6; }7148 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :7149 $as_echo_n "(cached) " >&67150 else7151 if test -n "$ac_ct_LIPO"; then7152 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.7153 else7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7155 for as_dir in $PATH7156 do7157 IFS=$as_save_IFS7158 test -z "$as_dir" && as_dir=.7159 for ac_exec_ext in '' $ac_executable_extensions; do7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7161 ac_cv_prog_ac_ct_LIPO="lipo"7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57163 break 27164 fi7165 done7166 done7167 IFS=$as_save_IFS7168 7169 fi7170 fi7171 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO7172 if test -n "$ac_ct_LIPO"; then7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&57174 $as_echo "$ac_ct_LIPO" >&6; }7175 else7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57177 $as_echo "no" >&6; }7178 fi7179 7180 if test "x$ac_ct_LIPO" = x; then7181 LIPO=":"7182 else7183 case $cross_compiling:$ac_tool_warned in7184 yes:)7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7187 ac_tool_warned=yes ;;7188 esac7189 LIPO=$ac_ct_LIPO7190 fi7191 else7192 LIPO="$ac_cv_prog_LIPO"7193 fi7194 7195 if test -n "$ac_tool_prefix"; then7196 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.7197 set dummy ${ac_tool_prefix}otool; ac_word=$27198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57199 $as_echo_n "checking for $ac_word... " >&6; }7200 if ${ac_cv_prog_OTOOL+:} false; then :7201 $as_echo_n "(cached) " >&67202 else7203 if test -n "$OTOOL"; then7204 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.7205 else7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7207 for as_dir in $PATH7208 do7209 IFS=$as_save_IFS7210 test -z "$as_dir" && as_dir=.7211 for ac_exec_ext in '' $ac_executable_extensions; do7212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7213 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57215 break 27216 fi7217 done7218 done7219 IFS=$as_save_IFS7220 7221 fi7222 fi7223 OTOOL=$ac_cv_prog_OTOOL7224 if test -n "$OTOOL"; then7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&57226 $as_echo "$OTOOL" >&6; }7227 else7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57229 $as_echo "no" >&6; }7230 fi7231 7232 7233 fi7234 if test -z "$ac_cv_prog_OTOOL"; then7235 ac_ct_OTOOL=$OTOOL7236 # Extract the first word of "otool", so it can be a program name with args.7237 set dummy otool; ac_word=$27238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57239 $as_echo_n "checking for $ac_word... " >&6; }7240 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :7241 $as_echo_n "(cached) " >&67242 else7243 if test -n "$ac_ct_OTOOL"; then7244 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.7245 else7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7247 for as_dir in $PATH7248 do7249 IFS=$as_save_IFS7250 test -z "$as_dir" && as_dir=.7251 for ac_exec_ext in '' $ac_executable_extensions; do7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7253 ac_cv_prog_ac_ct_OTOOL="otool"7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57255 break 27256 fi7257 done7258 done7259 IFS=$as_save_IFS7260 7261 fi7262 fi7263 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL7264 if test -n "$ac_ct_OTOOL"; then7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&57266 $as_echo "$ac_ct_OTOOL" >&6; }7267 else7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57269 $as_echo "no" >&6; }7270 fi7271 7272 if test "x$ac_ct_OTOOL" = x; then7273 OTOOL=":"7274 else7275 case $cross_compiling:$ac_tool_warned in7276 yes:)7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7279 ac_tool_warned=yes ;;7280 esac7281 OTOOL=$ac_ct_OTOOL7282 fi7283 else7284 OTOOL="$ac_cv_prog_OTOOL"7285 fi7286 7287 if test -n "$ac_tool_prefix"; then7288 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.7289 set dummy ${ac_tool_prefix}otool64; ac_word=$27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57291 $as_echo_n "checking for $ac_word... " >&6; }7292 if ${ac_cv_prog_OTOOL64+:} false; then :7293 $as_echo_n "(cached) " >&67294 else7295 if test -n "$OTOOL64"; then7296 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.7297 else7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7299 for as_dir in $PATH7300 do7301 IFS=$as_save_IFS7302 test -z "$as_dir" && as_dir=.7303 for ac_exec_ext in '' $ac_executable_extensions; do7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7305 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57307 break 27308 fi7309 done7310 done7311 IFS=$as_save_IFS7312 7313 fi7314 fi7315 OTOOL64=$ac_cv_prog_OTOOL647316 if test -n "$OTOOL64"; then7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&57318 $as_echo "$OTOOL64" >&6; }7319 else7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57321 $as_echo "no" >&6; }7322 fi7323 7324 7325 fi7326 if test -z "$ac_cv_prog_OTOOL64"; then7327 ac_ct_OTOOL64=$OTOOL647328 # Extract the first word of "otool64", so it can be a program name with args.7329 set dummy otool64; ac_word=$27330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57331 $as_echo_n "checking for $ac_word... " >&6; }7332 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :7333 $as_echo_n "(cached) " >&67334 else7335 if test -n "$ac_ct_OTOOL64"; then7336 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.7337 else7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7339 for as_dir in $PATH7340 do7341 IFS=$as_save_IFS7342 test -z "$as_dir" && as_dir=.7343 for ac_exec_ext in '' $ac_executable_extensions; do7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7345 ac_cv_prog_ac_ct_OTOOL64="otool64"7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57347 break 27348 fi7349 done7350 done7351 IFS=$as_save_IFS7352 7353 fi7354 fi7355 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL647356 if test -n "$ac_ct_OTOOL64"; then7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&57358 $as_echo "$ac_ct_OTOOL64" >&6; }7359 else7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57361 $as_echo "no" >&6; }7362 fi7363 7364 if test "x$ac_ct_OTOOL64" = x; then7365 OTOOL64=":"7366 else7367 case $cross_compiling:$ac_tool_warned in7368 yes:)7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7371 ac_tool_warned=yes ;;7372 esac7373 OTOOL64=$ac_ct_OTOOL647374 fi7375 else7376 OTOOL64="$ac_cv_prog_OTOOL64"7377 fi7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&57406 $as_echo_n "checking for -single_module linker flag... " >&6; }7407 if ${lt_cv_apple_cc_single_mod+:} false; then :7408 $as_echo_n "(cached) " >&67409 else7410 lt_cv_apple_cc_single_mod=no7411 if test -z "$LT_MULTI_MODULE"; then7412 # By default we will add the -single_module flag. You can override7413 # by either setting the environment variable LT_MULTI_MODULE7414 # non-empty at configure time, or by adding -multi_module to the7415 # link flags.7416 rm -rf libconftest.dylib*7417 echo "int foo(void){return 1;}" > conftest.c7418 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7419 -dynamiclib -Wl,-single_module conftest.c" >&57420 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \7421 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err7422 _lt_result=$?7423 # If there is a non-empty error log, and "single_module"7424 # appears in it, assume the flag caused a linker warning7425 if test -s conftest.err && $GREP single_module conftest.err; then7426 cat conftest.err >&57427 # Otherwise, if the output was created with a 0 exit code from7428 # the compiler, it worked.7429 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then7430 lt_cv_apple_cc_single_mod=yes7431 else7432 cat conftest.err >&57433 fi7434 rm -rf libconftest.dylib*7435 rm -f conftest.*7436 fi7437 fi7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&57439 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }7440 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&57442 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }7443 if ${lt_cv_ld_exported_symbols_list+:} false; then :7444 $as_echo_n "(cached) " >&67445 else7446 lt_cv_ld_exported_symbols_list=no7447 save_LDFLAGS=$LDFLAGS7448 echo "_main" > conftest.sym7449 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7451 /* end confdefs.h. */7452 7453 int7454 main ()7455 {7456 7457 ;7458 return 0;7459 }7460 _ACEOF7461 if ac_fn_c_try_link "$LINENO"; then :7462 lt_cv_ld_exported_symbols_list=yes7463 else7464 lt_cv_ld_exported_symbols_list=no7465 fi7466 rm -f core conftest.err conftest.$ac_objext \7467 conftest$ac_exeext conftest.$ac_ext7468 LDFLAGS=$save_LDFLAGS7469 7470 fi7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&57472 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }7473 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&57475 $as_echo_n "checking for -force_load linker flag... " >&6; }7476 if ${lt_cv_ld_force_load+:} false; then :7477 $as_echo_n "(cached) " >&67478 else7479 lt_cv_ld_force_load=no7480 cat > conftest.c << _LT_EOF7481 int forced_loaded() { return 2;}7482 _LT_EOF7483 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&57484 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&57485 echo "$AR cru libconftest.a conftest.o" >&57486 $AR cru libconftest.a conftest.o 2>&57487 echo "$RANLIB libconftest.a" >&57488 $RANLIB libconftest.a 2>&57489 cat > conftest.c << _LT_EOF7490 int main() { return 0;}7491 _LT_EOF7492 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&57493 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err7494 _lt_result=$?7495 if test -s conftest.err && $GREP force_load conftest.err; then7496 cat conftest.err >&57497 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then7498 lt_cv_ld_force_load=yes7499 else7500 cat conftest.err >&57501 fi7502 rm -f conftest.err libconftest.a conftest conftest.c7503 rm -rf conftest.dSYM7504 7505 fi7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&57507 $as_echo "$lt_cv_ld_force_load" >&6; }7508 case $host_os in7509 rhapsody* | darwin1.[012])7510 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;7511 darwin1.*)7512 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7513 darwin*) # darwin 5.x on7514 # if running on 10.5 or later, the deployment target defaults7515 # to the OS version, if on x86, and 10.4, the deployment7516 # target defaults to 10.4. Don't you love it?7517 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in7518 10.0,*86*-darwin8*|10.0,*-darwin[91]*)7519 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7520 10.[012][,.]*)7521 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;7522 10.*)7523 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;7524 esac7525 ;;7526 esac7527 if test yes = "$lt_cv_apple_cc_single_mod"; then7528 _lt_dar_single_mod='$single_module'7529 fi7530 if test yes = "$lt_cv_ld_exported_symbols_list"; then7531 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'7532 else7533 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'7534 fi7535 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then7536 _lt_dsymutil='~$DSYMUTIL $lib || :'7537 else7538 _lt_dsymutil=7539 fi7540 ;;7541 esac7542 7543 # func_munge_path_list VARIABLE PATH7544 # -----------------------------------7545 # VARIABLE is name of variable containing _space_ separated list of7546 # directories to be munged by the contents of PATH, which is string7547 # having a format:7548 # "DIR[:DIR]:"7549 # string "DIR[ DIR]" will be prepended to VARIABLE7550 # ":DIR[:DIR]"7551 # string "DIR[ DIR]" will be appended to VARIABLE7552 # "DIRP[:DIRP]::[DIRA:]DIRA"7553 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string7554 # "DIRA[ DIRA]" will be appended to VARIABLE7555 # "DIR[:DIR]"7556 # VARIABLE will be replaced by "DIR[ DIR]"7557 func_munge_path_list ()7558 {7559 case x$2 in7560 x)7561 ;;7562 *:)7563 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"7564 ;;7565 x:*)7566 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"7567 ;;7568 *::*)7569 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"7570 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"7571 ;;7572 *)7573 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"7574 ;;7575 esac7576 }7577 7578 ac_ext=c7579 ac_cpp='$CPP $CPPFLAGS'7580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7582 ac_compiler_gnu=$ac_cv_c_compiler_gnu7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&57584 $as_echo_n "checking how to run the C preprocessor... " >&6; }7585 # On Suns, sometimes $CPP names a directory.7586 if test -n "$CPP" && test -d "$CPP"; then7587 CPP=7588 fi7589 if test -z "$CPP"; then7590 if ${ac_cv_prog_CPP+:} false; then :7591 $as_echo_n "(cached) " >&67592 else7593 # Double quotes because CPP needs to be expanded7594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"7595 do7596 ac_preproc_ok=false7597 for ac_c_preproc_warn_flag in '' yes7598 do7599 # Use a header file that comes with gcc, so configuring glibc7600 # with a fresh cross-compiler works.7601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7602 # <limits.h> exists even on freestanding compilers.7603 # On the NeXT, cc -E runs the code through the compiler's parser,7604 # not just through cpp. "Syntax error" is here to catch this case.7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7606 /* end confdefs.h. */7607 #ifdef __STDC__7608 # include <limits.h>7609 #else7610 # include <assert.h>7611 #endif7612 Syntax error7613 _ACEOF7614 if ac_fn_c_try_cpp "$LINENO"; then :7615 7616 else7617 # Broken: fails on valid input.7618 continue7619 fi7620 rm -f conftest.err conftest.i conftest.$ac_ext7621 7622 # OK, works on sane cases. Now check whether nonexistent headers7623 # can be detected and how.7624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7625 /* end confdefs.h. */7626 #include <ac_nonexistent.h>7627 _ACEOF7628 if ac_fn_c_try_cpp "$LINENO"; then :7629 # Broken: success on invalid input.7630 continue7631 else7632 # Passes both tests.7633 ac_preproc_ok=:7634 break7635 fi7636 rm -f conftest.err conftest.i conftest.$ac_ext7637 7638 done7639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7640 rm -f conftest.i conftest.err conftest.$ac_ext7641 if $ac_preproc_ok; then :7642 break7643 fi7644 7645 done7646 ac_cv_prog_CPP=$CPP7647 7648 fi7649 CPP=$ac_cv_prog_CPP7650 else7651 ac_cv_prog_CPP=$CPP7652 fi7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&57654 $as_echo "$CPP" >&6; }7655 ac_preproc_ok=false7656 for ac_c_preproc_warn_flag in '' yes7657 do7658 # Use a header file that comes with gcc, so configuring glibc7659 # with a fresh cross-compiler works.7660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since7661 # <limits.h> exists even on freestanding compilers.7662 # On the NeXT, cc -E runs the code through the compiler's parser,7663 # not just through cpp. "Syntax error" is here to catch this case.7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7665 /* end confdefs.h. */7666 #ifdef __STDC__7667 # include <limits.h>7668 #else7669 # include <assert.h>7670 #endif7671 Syntax error7672 _ACEOF7673 if ac_fn_c_try_cpp "$LINENO"; then :7674 7675 else7676 # Broken: fails on valid input.7677 continue7678 fi7679 rm -f conftest.err conftest.i conftest.$ac_ext7680 7681 # OK, works on sane cases. Now check whether nonexistent headers7682 # can be detected and how.7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7684 /* end confdefs.h. */7685 #include <ac_nonexistent.h>7686 _ACEOF7687 if ac_fn_c_try_cpp "$LINENO"; then :7688 # Broken: success on invalid input.7689 continue7690 else7691 # Passes both tests.7692 ac_preproc_ok=:7693 break7694 fi7695 rm -f conftest.err conftest.i conftest.$ac_ext7696 7697 done7698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.7699 rm -f conftest.i conftest.err conftest.$ac_ext7700 if $ac_preproc_ok; then :7701 7702 else7703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&57704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}7705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check7706 See \`config.log' for more details" "$LINENO" 5; }7707 fi7708 7709 ac_ext=c7710 ac_cpp='$CPP $CPPFLAGS'7711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7713 ac_compiler_gnu=$ac_cv_c_compiler_gnu7714 7715 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&57717 $as_echo_n "checking for ANSI C header files... " >&6; }7718 if ${ac_cv_header_stdc+:} false; then :7719 $as_echo_n "(cached) " >&67720 else7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7722 /* end confdefs.h. */7723 #include <stdlib.h>7724 #include <stdarg.h>7725 #include <string.h>7726 #include <float.h>7727 7728 int7729 main ()7730 {7731 7732 ;7733 return 0;7734 }7735 _ACEOF7736 if ac_fn_c_try_compile "$LINENO"; then :7737 ac_cv_header_stdc=yes7738 else7739 ac_cv_header_stdc=no7740 fi7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7742 7743 if test $ac_cv_header_stdc = yes; then7744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7746 /* end confdefs.h. */7747 #include <string.h>7748 7749 _ACEOF7750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7751 $EGREP "memchr" >/dev/null 2>&1; then :7752 7753 else7754 ac_cv_header_stdc=no7755 fi7756 rm -f conftest*7757 7758 fi7759 7760 if test $ac_cv_header_stdc = yes; then7761 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7763 /* end confdefs.h. */7764 #include <stdlib.h>7765 7766 _ACEOF7767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |7768 $EGREP "free" >/dev/null 2>&1; then :7769 7770 else7771 ac_cv_header_stdc=no7772 fi7773 rm -f conftest*7774 7775 fi7776 7777 if test $ac_cv_header_stdc = yes; then7778 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.7779 if test "$cross_compiling" = yes; then :7780 :7781 else7782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7783 /* end confdefs.h. */7784 #include <ctype.h>7785 #include <stdlib.h>7786 #if ((' ' & 0x0FF) == 0x020)7787 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')7788 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))7789 #else7790 # define ISLOWER(c) \7791 (('a' <= (c) && (c) <= 'i') \7792 || ('j' <= (c) && (c) <= 'r') \7793 || ('s' <= (c) && (c) <= 'z'))7794 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))7795 #endif7796 7797 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))7798 int7799 main ()7800 {7801 int i;7802 for (i = 0; i < 256; i++)7803 if (XOR (islower (i), ISLOWER (i))7804 || toupper (i) != TOUPPER (i))7805 return 2;7806 return 0;7807 }7808 _ACEOF7809 if ac_fn_c_try_run "$LINENO"; then :7810 7811 else7812 ac_cv_header_stdc=no7813 fi7814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \7815 conftest.$ac_objext conftest.beam conftest.$ac_ext7816 fi7817 7818 fi7819 fi7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&57821 $as_echo "$ac_cv_header_stdc" >&6; }7822 if test $ac_cv_header_stdc = yes; then7823 7824 $as_echo "#define STDC_HEADERS 1" >>confdefs.h7825 7826 fi7827 7828 # On IRIX 5.3, sys/types and inttypes.h are conflicting.7829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \7830 inttypes.h stdint.h unistd.h7831 do :7832 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`7833 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default7834 "7835 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :7836 cat >>confdefs.h <<_ACEOF7837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 17838 _ACEOF7839 7840 fi7841 7842 done7843 7844 7845 for ac_header in dlfcn.h7846 do :7847 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default7848 "7849 if test "x$ac_cv_header_dlfcn_h" = xyes; then :7850 cat >>confdefs.h <<_ACEOF7851 #define HAVE_DLFCN_H 17852 _ACEOF7853 7854 fi7855 7856 done7857 7858 7859 7860 7861 7862 # Set options7863 7864 7865 7866 enable_dlopen=no7867 7868 7869 enable_win32_dll=no7870 7871 7872 # Check whether --enable-shared was given.7873 if test "${enable_shared+set}" = set; then :7874 enableval=$enable_shared; p=${PACKAGE-default}7875 case $enableval in7876 yes) enable_shared=yes ;;7877 no) enable_shared=no ;;7878 *)7879 enable_shared=no7880 # Look at the argument we got. We use all the common list separators.7881 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7882 for pkg in $enableval; do7883 IFS=$lt_save_ifs7884 if test "X$pkg" = "X$p"; then7885 enable_shared=yes7886 fi7887 done7888 IFS=$lt_save_ifs7889 ;;7890 esac7891 else7892 enable_shared=yes7893 fi7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 # Check whether --enable-static was given.7904 if test "${enable_static+set}" = set; then :7905 enableval=$enable_static; p=${PACKAGE-default}7906 case $enableval in7907 yes) enable_static=yes ;;7908 no) enable_static=no ;;7909 *)7910 enable_static=no7911 # Look at the argument we got. We use all the common list separators.7912 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7913 for pkg in $enableval; do7914 IFS=$lt_save_ifs7915 if test "X$pkg" = "X$p"; then7916 enable_static=yes7917 fi7918 done7919 IFS=$lt_save_ifs7920 ;;7921 esac7922 else7923 enable_static=yes7924 fi7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 # Check whether --with-pic was given.7936 if test "${with_pic+set}" = set; then :7937 withval=$with_pic; lt_p=${PACKAGE-default}7938 case $withval in7939 yes|no) pic_mode=$withval ;;7940 *)7941 pic_mode=default7942 # Look at the argument we got. We use all the common list separators.7943 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7944 for lt_pkg in $withval; do7945 IFS=$lt_save_ifs7946 if test "X$lt_pkg" = "X$lt_p"; then7947 pic_mode=yes7948 fi7949 done7950 IFS=$lt_save_ifs7951 ;;7952 esac7953 else7954 pic_mode=default7955 fi7956 7957 7958 7959 7960 7961 7962 7963 7964 # Check whether --enable-fast-install was given.7965 if test "${enable_fast_install+set}" = set; then :7966 enableval=$enable_fast_install; p=${PACKAGE-default}7967 case $enableval in7968 yes) enable_fast_install=yes ;;7969 no) enable_fast_install=no ;;7970 *)7971 enable_fast_install=no7972 # Look at the argument we got. We use all the common list separators.7973 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,7974 for pkg in $enableval; do7975 IFS=$lt_save_ifs7976 if test "X$pkg" = "X$p"; then7977 enable_fast_install=yes7978 fi7979 done7980 IFS=$lt_save_ifs7981 ;;7982 esac7983 else7984 enable_fast_install=yes7985 fi7986 7987 7988 7989 7990 7991 7992 7993 7994 shared_archive_member_spec=7995 case $host,$enable_shared in7996 power*-*-aix[5-9]*,yes)7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&57998 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }7999 8000 # Check whether --with-aix-soname was given.8001 if test "${with_aix_soname+set}" = set; then :8002 withval=$with_aix_soname; case $withval in8003 aix|svr4|both)8004 ;;8005 *)8006 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 58007 ;;8008 esac8009 lt_cv_with_aix_soname=$with_aix_soname8010 else8011 if ${lt_cv_with_aix_soname+:} false; then :8012 $as_echo_n "(cached) " >&68013 else8014 lt_cv_with_aix_soname=aix8015 fi8016 8017 with_aix_soname=$lt_cv_with_aix_soname8018 fi8019 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&58021 $as_echo "$with_aix_soname" >&6; }8022 if test aix != "$with_aix_soname"; then8023 # For the AIX way of multilib, we name the shared archive member8024 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',8025 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.8026 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,8027 # the AIX toolchain works better with OBJECT_MODE set (default 32).8028 if test 64 = "${OBJECT_MODE-32}"; then8029 shared_archive_member_spec=shr_648030 else8031 shared_archive_member_spec=shr8032 fi8033 fi8034 ;;8035 *)8036 with_aix_soname=aix8037 ;;8038 esac8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 # This can be used to rebuild libtool when needed8050 LIBTOOL_DEPS=$ltmain8051 8052 # Always use our own libtool.8053 LIBTOOL='$(SHELL) $(top_builddir)/libtool'8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 test -z "$LN_S" && LN_S="ln -s"8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 if test -n "${ZSH_VERSION+set}"; then8100 setopt NO_GLOB_SUBST8101 fi8102 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&58104 $as_echo_n "checking for objdir... " >&6; }8105 if ${lt_cv_objdir+:} false; then :8106 $as_echo_n "(cached) " >&68107 else8108 rm -f .libs 2>/dev/null8109 mkdir .libs 2>/dev/null8110 if test -d .libs; then8111 lt_cv_objdir=.libs8112 else8113 # MS-DOS does not allow filenames that begin with a dot.8114 lt_cv_objdir=_libs8115 fi8116 rmdir .libs 2>/dev/null8117 fi8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&58119 $as_echo "$lt_cv_objdir" >&6; }8120 objdir=$lt_cv_objdir8121 8122 8123 8124 8125 8126 cat >>confdefs.h <<_ACEOF8127 #define LT_OBJDIR "$lt_cv_objdir/"8128 _ACEOF8129 8130 8131 8132 8133 case $host_os in8134 aix3*)8135 # AIX sometimes has problems with the GCC collect2 program. For some8136 # reason, if we set the COLLECT_NAMES environment variable, the problems8137 # vanish in a puff of smoke.8138 if test set != "${COLLECT_NAMES+set}"; then8139 COLLECT_NAMES=8140 export COLLECT_NAMES8141 fi8142 ;;8143 esac8144 8145 # Global variables:8146 ofile=libtool8147 can_build_shared=yes8148 8149 # All known linkers require a '.a' archive for static linking (except MSVC,8150 # which needs '.lib').8151 libext=a8152 8153 with_gnu_ld=$lt_cv_prog_gnu_ld8154 8155 old_CC=$CC8156 old_CFLAGS=$CFLAGS8157 8158 # Set sane defaults for various variables8159 test -z "$CC" && CC=cc8160 test -z "$LTCC" && LTCC=$CC8161 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS8162 test -z "$LD" && LD=ld8163 test -z "$ac_objext" && ac_objext=o8164 8165 func_cc_basename $compiler8166 cc_basename=$func_cc_basename_result8167 8168 8169 # Only perform the check for file, if the check method requires it8170 test -z "$MAGIC_CMD" && MAGIC_CMD=file8171 case $deplibs_check_method in8172 file_magic*)8173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&58175 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }8176 if ${lt_cv_path_MAGIC_CMD+:} false; then :8177 $as_echo_n "(cached) " >&68178 else8179 case $MAGIC_CMD in8180 [\\/*] | ?:[\\/]*)8181 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8182 ;;8183 *)8184 lt_save_MAGIC_CMD=$MAGIC_CMD8185 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8186 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8187 for ac_dir in $ac_dummy; do8188 IFS=$lt_save_ifs8189 test -z "$ac_dir" && ac_dir=.8190 if test -f "$ac_dir/${ac_tool_prefix}file"; then8191 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"8192 if test -n "$file_magic_test_file"; then8193 case $deplibs_check_method in8194 "file_magic "*)8195 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8196 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8197 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8198 $EGREP "$file_magic_regex" > /dev/null; then8199 :8200 else8201 cat <<_LT_EOF 1>&28202 8203 *** Warning: the command libtool uses to detect shared libraries,8204 *** $file_magic_cmd, produces output that libtool cannot recognize.8205 *** The result is that libtool may fail to recognize shared libraries8206 *** as such. This will affect the creation of libtool libraries that8207 *** depend on shared libraries, but programs linked with such libtool8208 *** libraries will work regardless of this problem. Nevertheless, you8209 *** may want to report the problem to your system manager and/or to8210 *** bug-libtool@gnu.org8211 8212 _LT_EOF8213 fi ;;8214 esac8215 fi8216 break8217 fi8218 done8219 IFS=$lt_save_ifs8220 MAGIC_CMD=$lt_save_MAGIC_CMD8221 ;;8222 esac8223 fi8224 8225 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8226 if test -n "$MAGIC_CMD"; then8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58228 $as_echo "$MAGIC_CMD" >&6; }8229 else8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58231 $as_echo "no" >&6; }8232 fi8233 8234 8235 8236 8237 8238 if test -z "$lt_cv_path_MAGIC_CMD"; then8239 if test -n "$ac_tool_prefix"; then8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&58241 $as_echo_n "checking for file... " >&6; }8242 if ${lt_cv_path_MAGIC_CMD+:} false; then :8243 $as_echo_n "(cached) " >&68244 else8245 case $MAGIC_CMD in8246 [\\/*] | ?:[\\/]*)8247 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.8248 ;;8249 *)8250 lt_save_MAGIC_CMD=$MAGIC_CMD8251 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR8252 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"8253 for ac_dir in $ac_dummy; do8254 IFS=$lt_save_ifs8255 test -z "$ac_dir" && ac_dir=.8256 if test -f "$ac_dir/file"; then8257 lt_cv_path_MAGIC_CMD=$ac_dir/"file"8258 if test -n "$file_magic_test_file"; then8259 case $deplibs_check_method in8260 "file_magic "*)8261 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`8262 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8263 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |8264 $EGREP "$file_magic_regex" > /dev/null; then8265 :8266 else8267 cat <<_LT_EOF 1>&28268 8269 *** Warning: the command libtool uses to detect shared libraries,8270 *** $file_magic_cmd, produces output that libtool cannot recognize.8271 *** The result is that libtool may fail to recognize shared libraries8272 *** as such. This will affect the creation of libtool libraries that8273 *** depend on shared libraries, but programs linked with such libtool8274 *** libraries will work regardless of this problem. Nevertheless, you8275 *** may want to report the problem to your system manager and/or to8276 *** bug-libtool@gnu.org8277 8278 _LT_EOF8279 fi ;;8280 esac8281 fi8282 break8283 fi8284 done8285 IFS=$lt_save_ifs8286 MAGIC_CMD=$lt_save_MAGIC_CMD8287 ;;8288 esac8289 fi8290 8291 MAGIC_CMD=$lt_cv_path_MAGIC_CMD8292 if test -n "$MAGIC_CMD"; then8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&58294 $as_echo "$MAGIC_CMD" >&6; }8295 else8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58297 $as_echo "no" >&6; }8298 fi8299 8300 8301 else8302 MAGIC_CMD=:8303 fi8304 fi8305 8306 fi8307 ;;8308 esac8309 8310 # Use C for the default configuration in the libtool script8311 8312 lt_save_CC=$CC8313 ac_ext=c8314 ac_cpp='$CPP $CPPFLAGS'8315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8317 ac_compiler_gnu=$ac_cv_c_compiler_gnu8318 8319 8320 # Source file extension for C test sources.8321 ac_ext=c8322 8323 # Object file extension for compiled C test sources.8324 objext=o8325 objext=$objext8326 8327 # Code to be used in simple compile tests8328 lt_simple_compile_test_code="int some_variable = 0;"8329 8330 # Code to be used in simple link tests8331 lt_simple_link_test_code='int main(){return(0);}'8332 8333 8334 8335 8336 8337 8338 8339 # If no C compiler was specified, use CC.8340 LTCC=${LTCC-"$CC"}8341 8342 # If no C compiler flags were specified, use CFLAGS.8343 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}8344 8345 # Allow CC to be a program name with arguments.8346 compiler=$CC8347 8348 # Save the default compiler, since it gets overwritten when the other8349 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.8350 compiler_DEFAULT=$CC8351 8352 # save warnings/boilerplate of simple test code8353 ac_outfile=conftest.$ac_objext8354 echo "$lt_simple_compile_test_code" >conftest.$ac_ext8355 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8356 _lt_compiler_boilerplate=`cat conftest.err`8357 $RM conftest*8358 8359 ac_outfile=conftest.$ac_objext8360 echo "$lt_simple_link_test_code" >conftest.$ac_ext8361 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err8362 _lt_linker_boilerplate=`cat conftest.err`8363 $RM -r conftest*8364 8365 8366 ## CAVEAT EMPTOR:8367 ## There is no encapsulation within the following macros, do not change8368 ## the running order or otherwise move them around unless you know exactly8369 ## what you are doing...8370 if test -n "$compiler"; then8371 8372 lt_prog_compiler_no_builtin_flag=8373 8374 if test yes = "$GCC"; then8375 case $cc_basename in8376 nvcc*)8377 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;8378 *)8379 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;8380 esac8381 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&58383 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }8384 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :8385 $as_echo_n "(cached) " >&68386 else8387 lt_cv_prog_compiler_rtti_exceptions=no8388 ac_outfile=conftest.$ac_objext8389 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8390 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment8391 # Insert the option either (1) after the last *FLAGS variable, or8392 # (2) before a word containing "conftest.", or (3) at the end.8393 # Note that $ac_compile itself does not contain backslashes and begins8394 # with a dollar sign (not a hyphen), so the echo should work correctly.8395 # The option is referenced via a variable to avoid confusing sed.8396 lt_compile=`echo "$ac_compile" | $SED \8397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8399 -e 's:$: $lt_compiler_flag:'`8400 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8401 (eval "$lt_compile" 2>conftest.err)8402 ac_status=$?8403 cat conftest.err >&58404 echo "$as_me:$LINENO: \$? = $ac_status" >&58405 if (exit $ac_status) && test -s "$ac_outfile"; then8406 # The compiler can only warn and ignore the option if not recognized8407 # So say no if there are warnings other than the usual output.8408 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28410 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8411 lt_cv_prog_compiler_rtti_exceptions=yes8412 fi8413 fi8414 $RM conftest*8415 8416 fi8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&58418 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }8419 8420 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then8421 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"8422 else8423 :8424 fi8425 8426 fi8427 8428 8429 8430 8431 8432 8433 lt_prog_compiler_wl=8434 lt_prog_compiler_pic=8435 lt_prog_compiler_static=8436 8437 8438 if test yes = "$GCC"; then8439 lt_prog_compiler_wl='-Wl,'8440 lt_prog_compiler_static='-static'8441 8442 case $host_os in8443 aix*)8444 # All AIX code is PIC.8445 if test ia64 = "$host_cpu"; then8446 # AIX 5 now supports IA64 processor8447 lt_prog_compiler_static='-Bstatic'8448 fi8449 lt_prog_compiler_pic='-fPIC'8450 ;;8451 8452 amigaos*)8453 case $host_cpu in8454 powerpc)8455 # see comment about AmigaOS4 .so support8456 lt_prog_compiler_pic='-fPIC'8457 ;;8458 m68k)8459 # FIXME: we need at least 68020 code to build shared libraries, but8460 # adding the '-m68020' flag to GCC prevents building anything better,8461 # like '-m68040'.8462 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'8463 ;;8464 esac8465 ;;8466 8467 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)8468 # PIC is the default for these OSes.8469 ;;8470 8471 mingw* | cygwin* | pw32* | os2* | cegcc*)8472 # This hack is so that the source file can tell whether it is being8473 # built for inclusion in a dll (and should export symbols for example).8474 # Although the cygwin gcc ignores -fPIC, still need this for old-style8475 # (--disable-auto-import) libraries8476 lt_prog_compiler_pic='-DDLL_EXPORT'8477 case $host_os in8478 os2*)8479 lt_prog_compiler_static='$wl-static'8480 ;;8481 esac8482 ;;8483 8484 darwin* | rhapsody*)8485 # PIC is the default on this platform8486 # Common symbols not allowed in MH_DYLIB files8487 lt_prog_compiler_pic='-fno-common'8488 ;;8489 8490 haiku*)8491 # PIC is the default for Haiku.8492 # The "-static" flag exists, but is broken.8493 lt_prog_compiler_static=8494 ;;8495 8496 hpux*)8497 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit8498 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag8499 # sets the default TLS model and affects inlining.8500 case $host_cpu in8501 hppa*64*)8502 # +Z the default8503 ;;8504 *)8505 lt_prog_compiler_pic='-fPIC'8506 ;;8507 esac8508 ;;8509 8510 interix[3-9]*)8511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.8512 # Instead, we relocate shared libraries at runtime.8513 ;;8514 8515 msdosdjgpp*)8516 # Just because we use GCC doesn't mean we suddenly get shared libraries8517 # on systems that don't support them.8518 lt_prog_compiler_can_build_shared=no8519 enable_shared=no8520 ;;8521 8522 *nto* | *qnx*)8523 # QNX uses GNU C++, but need to define -shared option too, otherwise8524 # it will coredump.8525 lt_prog_compiler_pic='-fPIC -shared'8526 ;;8527 8528 sysv4*MP*)8529 if test -d /usr/nec; then8530 lt_prog_compiler_pic=-Kconform_pic8531 fi8532 ;;8533 8534 *)8535 lt_prog_compiler_pic='-fPIC'8536 ;;8537 esac8538 8539 case $cc_basename in8540 nvcc*) # Cuda Compiler Driver 2.28541 lt_prog_compiler_wl='-Xlinker '8542 if test -n "$lt_prog_compiler_pic"; then8543 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"8544 fi8545 ;;8546 esac8547 else8548 # PORTME Check for flag to pass linker flags through the system compiler.8549 case $host_os in8550 aix*)8551 lt_prog_compiler_wl='-Wl,'8552 if test ia64 = "$host_cpu"; then8553 # AIX 5 now supports IA64 processor8554 lt_prog_compiler_static='-Bstatic'8555 else8556 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'8557 fi8558 ;;8559 8560 darwin* | rhapsody*)8561 # PIC is the default on this platform8562 # Common symbols not allowed in MH_DYLIB files8563 lt_prog_compiler_pic='-fno-common'8564 case $cc_basename in8565 nagfor*)8566 # NAG Fortran compiler8567 lt_prog_compiler_wl='-Wl,-Wl,,'8568 lt_prog_compiler_pic='-PIC'8569 lt_prog_compiler_static='-Bstatic'8570 ;;8571 esac8572 ;;8573 8574 mingw* | cygwin* | pw32* | os2* | cegcc*)8575 # This hack is so that the source file can tell whether it is being8576 # built for inclusion in a dll (and should export symbols for example).8577 lt_prog_compiler_pic='-DDLL_EXPORT'8578 case $host_os in8579 os2*)8580 lt_prog_compiler_static='$wl-static'8581 ;;8582 esac8583 ;;8584 8585 hpux9* | hpux10* | hpux11*)8586 lt_prog_compiler_wl='-Wl,'8587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but8588 # not for PA HP-UX.8589 case $host_cpu in8590 hppa*64*|ia64*)8591 # +Z the default8592 ;;8593 *)8594 lt_prog_compiler_pic='+Z'8595 ;;8596 esac8597 # Is there a better lt_prog_compiler_static that works with the bundled CC?8598 lt_prog_compiler_static='$wl-a ${wl}archive'8599 ;;8600 8601 irix5* | irix6* | nonstopux*)8602 lt_prog_compiler_wl='-Wl,'8603 # PIC (with -KPIC) is the default.8604 lt_prog_compiler_static='-non_shared'8605 ;;8606 8607 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)8608 case $cc_basename in8609 # old Intel for x86_64, which still supported -KPIC.8610 ecc*)8611 lt_prog_compiler_wl='-Wl,'8612 lt_prog_compiler_pic='-KPIC'8613 lt_prog_compiler_static='-static'8614 ;;8615 # icc used to be incompatible with GCC.8616 # ICC 10 doesn't accept -KPIC any more.8617 icc* | ifort*)8618 lt_prog_compiler_wl='-Wl,'8619 lt_prog_compiler_pic='-fPIC'8620 lt_prog_compiler_static='-static'8621 ;;8622 # Lahey Fortran 8.1.8623 lf95*)8624 lt_prog_compiler_wl='-Wl,'8625 lt_prog_compiler_pic='--shared'8626 lt_prog_compiler_static='--static'8627 ;;8628 nagfor*)8629 # NAG Fortran compiler8630 lt_prog_compiler_wl='-Wl,-Wl,,'8631 lt_prog_compiler_pic='-PIC'8632 lt_prog_compiler_static='-Bstatic'8633 ;;8634 tcc*)8635 # Fabrice Bellard et al's Tiny C Compiler8636 lt_prog_compiler_wl='-Wl,'8637 lt_prog_compiler_pic='-fPIC'8638 lt_prog_compiler_static='-static'8639 ;;8640 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)8641 # Portland Group compilers (*not* the Pentium gcc compiler,8642 # which looks to be a dead project)8643 lt_prog_compiler_wl='-Wl,'8644 lt_prog_compiler_pic='-fpic'8645 lt_prog_compiler_static='-Bstatic'8646 ;;8647 ccc*)8648 lt_prog_compiler_wl='-Wl,'8649 # All Alpha code is PIC.8650 lt_prog_compiler_static='-non_shared'8651 ;;8652 xl* | bgxl* | bgf* | mpixl*)8653 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene8654 lt_prog_compiler_wl='-Wl,'8655 lt_prog_compiler_pic='-qpic'8656 lt_prog_compiler_static='-qstaticlink'8657 ;;8658 *)8659 case `$CC -V 2>&1 | sed 5q` in8660 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)8661 # Sun Fortran 8.3 passes all unrecognized flags to the linker8662 lt_prog_compiler_pic='-KPIC'8663 lt_prog_compiler_static='-Bstatic'8664 lt_prog_compiler_wl=''8665 ;;8666 *Sun\ F* | *Sun*Fortran*)8667 lt_prog_compiler_pic='-KPIC'8668 lt_prog_compiler_static='-Bstatic'8669 lt_prog_compiler_wl='-Qoption ld '8670 ;;8671 *Sun\ C*)8672 # Sun C 5.98673 lt_prog_compiler_pic='-KPIC'8674 lt_prog_compiler_static='-Bstatic'8675 lt_prog_compiler_wl='-Wl,'8676 ;;8677 *Intel*\ [CF]*Compiler*)8678 lt_prog_compiler_wl='-Wl,'8679 lt_prog_compiler_pic='-fPIC'8680 lt_prog_compiler_static='-static'8681 ;;8682 *Portland\ Group*)8683 lt_prog_compiler_wl='-Wl,'8684 lt_prog_compiler_pic='-fpic'8685 lt_prog_compiler_static='-Bstatic'8686 ;;8687 esac8688 ;;8689 esac8690 ;;8691 8692 newsos6)8693 lt_prog_compiler_pic='-KPIC'8694 lt_prog_compiler_static='-Bstatic'8695 ;;8696 8697 *nto* | *qnx*)8698 # QNX uses GNU C++, but need to define -shared option too, otherwise8699 # it will coredump.8700 lt_prog_compiler_pic='-fPIC -shared'8701 ;;8702 8703 osf3* | osf4* | osf5*)8704 lt_prog_compiler_wl='-Wl,'8705 # All OSF/1 code is PIC.8706 lt_prog_compiler_static='-non_shared'8707 ;;8708 8709 rdos*)8710 lt_prog_compiler_static='-non_shared'8711 ;;8712 8713 solaris*)8714 lt_prog_compiler_pic='-KPIC'8715 lt_prog_compiler_static='-Bstatic'8716 case $cc_basename in8717 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)8718 lt_prog_compiler_wl='-Qoption ld ';;8719 *)8720 lt_prog_compiler_wl='-Wl,';;8721 esac8722 ;;8723 8724 sunos4*)8725 lt_prog_compiler_wl='-Qoption ld '8726 lt_prog_compiler_pic='-PIC'8727 lt_prog_compiler_static='-Bstatic'8728 ;;8729 8730 sysv4 | sysv4.2uw2* | sysv4.3*)8731 lt_prog_compiler_wl='-Wl,'8732 lt_prog_compiler_pic='-KPIC'8733 lt_prog_compiler_static='-Bstatic'8734 ;;8735 8736 sysv4*MP*)8737 if test -d /usr/nec; then8738 lt_prog_compiler_pic='-Kconform_pic'8739 lt_prog_compiler_static='-Bstatic'8740 fi8741 ;;8742 8743 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)8744 lt_prog_compiler_wl='-Wl,'8745 lt_prog_compiler_pic='-KPIC'8746 lt_prog_compiler_static='-Bstatic'8747 ;;8748 8749 unicos*)8750 lt_prog_compiler_wl='-Wl,'8751 lt_prog_compiler_can_build_shared=no8752 ;;8753 8754 uts4*)8755 lt_prog_compiler_pic='-pic'8756 lt_prog_compiler_static='-Bstatic'8757 ;;8758 8759 *)8760 lt_prog_compiler_can_build_shared=no8761 ;;8762 esac8763 fi8764 8765 case $host_os in8766 # For platforms that do not support PIC, -DPIC is meaningless:8767 *djgpp*)8768 lt_prog_compiler_pic=8769 ;;8770 *)8771 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"8772 ;;8773 esac8774 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&58776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }8777 if ${lt_cv_prog_compiler_pic+:} false; then :8778 $as_echo_n "(cached) " >&68779 else8780 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic8781 fi8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&58783 $as_echo "$lt_cv_prog_compiler_pic" >&6; }8784 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic8785 8786 #8787 # Check to make sure the PIC flag actually works.8788 #8789 if test -n "$lt_prog_compiler_pic"; then8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&58791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }8792 if ${lt_cv_prog_compiler_pic_works+:} false; then :8793 $as_echo_n "(cached) " >&68794 else8795 lt_cv_prog_compiler_pic_works=no8796 ac_outfile=conftest.$ac_objext8797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8798 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment8799 # Insert the option either (1) after the last *FLAGS variable, or8800 # (2) before a word containing "conftest.", or (3) at the end.8801 # Note that $ac_compile itself does not contain backslashes and begins8802 # with a dollar sign (not a hyphen), so the echo should work correctly.8803 # The option is referenced via a variable to avoid confusing sed.8804 lt_compile=`echo "$ac_compile" | $SED \8805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8807 -e 's:$: $lt_compiler_flag:'`8808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8809 (eval "$lt_compile" 2>conftest.err)8810 ac_status=$?8811 cat conftest.err >&58812 echo "$as_me:$LINENO: \$? = $ac_status" >&58813 if (exit $ac_status) && test -s "$ac_outfile"; then8814 # The compiler can only warn and ignore the option if not recognized8815 # So say no if there are warnings other than the usual output.8816 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp8817 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28818 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then8819 lt_cv_prog_compiler_pic_works=yes8820 fi8821 fi8822 $RM conftest*8823 8824 fi8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&58826 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }8827 8828 if test yes = "$lt_cv_prog_compiler_pic_works"; then8829 case $lt_prog_compiler_pic in8830 "" | " "*) ;;8831 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;8832 esac8833 else8834 lt_prog_compiler_pic=8835 lt_prog_compiler_can_build_shared=no8836 fi8837 8838 fi8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 #8851 # Check to make sure the static flag actually works.8852 #8853 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&58855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }8856 if ${lt_cv_prog_compiler_static_works+:} false; then :8857 $as_echo_n "(cached) " >&68858 else8859 lt_cv_prog_compiler_static_works=no8860 save_LDFLAGS=$LDFLAGS8861 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"8862 echo "$lt_simple_link_test_code" > conftest.$ac_ext8863 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then8864 # The linker can only warn and ignore the option if not recognized8865 # So say no if there are warnings8866 if test -s conftest.err; then8867 # Append any errors to the config.log.8868 cat conftest.err 1>&58869 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp8870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er28871 if diff conftest.exp conftest.er2 >/dev/null; then8872 lt_cv_prog_compiler_static_works=yes8873 fi8874 else8875 lt_cv_prog_compiler_static_works=yes8876 fi8877 fi8878 $RM -r conftest*8879 LDFLAGS=$save_LDFLAGS8880 8881 fi8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&58883 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }8884 8885 if test yes = "$lt_cv_prog_compiler_static_works"; then8886 :8887 else8888 lt_prog_compiler_static=8889 fi8890 8891 8892 8893 8894 8895 8896 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8899 if ${lt_cv_prog_compiler_c_o+:} false; then :8900 $as_echo_n "(cached) " >&68901 else8902 lt_cv_prog_compiler_c_o=no8903 $RM -r conftest 2>/dev/null8904 mkdir conftest8905 cd conftest8906 mkdir out8907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8908 8909 lt_compiler_flag="-o out/conftest2.$ac_objext"8910 # Insert the option either (1) after the last *FLAGS variable, or8911 # (2) before a word containing "conftest.", or (3) at the end.8912 # Note that $ac_compile itself does not contain backslashes and begins8913 # with a dollar sign (not a hyphen), so the echo should work correctly.8914 lt_compile=`echo "$ac_compile" | $SED \8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8917 -e 's:$: $lt_compiler_flag:'`8918 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8919 (eval "$lt_compile" 2>out/conftest.err)8920 ac_status=$?8921 cat out/conftest.err >&58922 echo "$as_me:$LINENO: \$? = $ac_status" >&58923 if (exit $ac_status) && test -s out/conftest2.$ac_objext8924 then8925 # The compiler can only warn and ignore the option if not recognized8926 # So say no if there are warnings8927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp8928 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er28929 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then8930 lt_cv_prog_compiler_c_o=yes8931 fi8932 fi8933 chmod u+w . 2>&58934 $RM conftest*8935 # SGI C++ compiler will create directory out/ii_files/ for8936 # template instantiation8937 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files8938 $RM out/* && rmdir out8939 cd ..8940 $RM -r conftest8941 $RM conftest*8942 8943 fi8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&58945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }8946 8947 8948 8949 8950 8951 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&58953 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }8954 if ${lt_cv_prog_compiler_c_o+:} false; then :8955 $as_echo_n "(cached) " >&68956 else8957 lt_cv_prog_compiler_c_o=no8958 $RM -r conftest 2>/dev/null8959 mkdir conftest8960 cd conftest8961 mkdir out8962 echo "$lt_simple_compile_test_code" > conftest.$ac_ext8963 8964 lt_compiler_flag="-o out/conftest2.$ac_objext"8965 # Insert the option either (1) after the last *FLAGS variable, or8966 # (2) before a word containing "conftest.", or (3) at the end.8967 # Note that $ac_compile itself does not contain backslashes and begins8968 # with a dollar sign (not a hyphen), so the echo should work correctly.8969 lt_compile=`echo "$ac_compile" | $SED \8970 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \8971 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \8972 -e 's:$: $lt_compiler_flag:'`8973 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)8974 (eval "$lt_compile" 2>out/conftest.err)8975 ac_status=$?8976 cat out/conftest.err >&58977 echo "$as_me:$LINENO: \$? = $ac_status" >&58978 if (exit $ac_status) && test -s out/conftest2.$ac_objext8979 then8980 # The compiler can only warn and ignore the option if not recognized8981 # So say no if there are warnings8982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp8983 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er28984 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then8985 lt_cv_prog_compiler_c_o=yes8986 fi8987 fi8988 chmod u+w . 2>&58989 $RM conftest*8990 # SGI C++ compiler will create directory out/ii_files/ for8991 # template instantiation8992 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files8993 $RM out/* && rmdir out8994 cd ..8995 $RM -r conftest8996 $RM conftest*8997 8998 fi8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&59000 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }9001 9002 9003 9004 9005 hard_links=nottested9006 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then9007 # do not overwrite the value of need_locks provided by the user9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&59009 $as_echo_n "checking if we can lock with hard links... " >&6; }9010 hard_links=yes9011 $RM conftest*9012 ln conftest.a conftest.b 2>/dev/null && hard_links=no9013 touch conftest.a9014 ln conftest.a conftest.b 2>&5 || hard_links=no9015 ln conftest.a conftest.b 2>/dev/null && hard_links=no9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&59017 $as_echo "$hard_links" >&6; }9018 if test no = "$hard_links"; then9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&59020 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}9021 need_locks=warn9022 fi9023 else9024 need_locks=no9025 fi9026 9027 9028 9029 9030 9031 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&59033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }9034 9035 runpath_var=9036 allow_undefined_flag=9037 always_export_symbols=no9038 archive_cmds=9039 archive_expsym_cmds=9040 compiler_needs_object=no9041 enable_shared_with_static_runtimes=no9042 export_dynamic_flag_spec=9043 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'9044 hardcode_automatic=no9045 hardcode_direct=no9046 hardcode_direct_absolute=no9047 hardcode_libdir_flag_spec=9048 hardcode_libdir_separator=9049 hardcode_minus_L=no9050 hardcode_shlibpath_var=unsupported9051 inherit_rpath=no9052 link_all_deplibs=unknown9053 module_cmds=9054 module_expsym_cmds=9055 old_archive_from_new_cmds=9056 old_archive_from_expsyms_cmds=9057 thread_safe_flag_spec=9058 whole_archive_flag_spec=9059 # include_expsyms should be a list of space-separated symbols to be *always*9060 # included in the symbol list9061 include_expsyms=9062 # exclude_expsyms can be an extended regexp of symbols to exclude9063 # it will be wrapped by ' (' and ')$', so one must not match beginning or9064 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',9065 # as well as any symbol that contains 'd'.9066 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'9067 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out9068 # platforms (ab)use it in PIC code, but their linkers get confused if9069 # the symbol is explicitly referenced. Since portable code cannot9070 # rely on this symbol name, it's probably fine to never include it in9071 # preloaded symbol tables.9072 # Exclude shared library initialization/finalization symbols.9073 extract_expsyms_cmds=9074 9075 case $host_os in9076 cygwin* | mingw* | pw32* | cegcc*)9077 # FIXME: the MSVC++ port hasn't been tested in a loooong time9078 # When not using gcc, we currently assume that we are using9079 # Microsoft Visual C++.9080 if test yes != "$GCC"; then9081 with_gnu_ld=no9082 fi9083 ;;9084 interix*)9085 # we just hope/assume this is gcc and not c89 (= MSVC++)9086 with_gnu_ld=yes9087 ;;9088 openbsd* | bitrig*)9089 with_gnu_ld=no9090 ;;9091 linux* | k*bsd*-gnu | gnu*)9092 link_all_deplibs=no9093 ;;9094 esac9095 9096 ld_shlibs=yes9097 9098 # On some targets, GNU ld is compatible enough with the native linker9099 # that we're better off using the native interface for both.9100 lt_use_gnu_ld_interface=no9101 if test yes = "$with_gnu_ld"; then9102 case $host_os in9103 aix*)9104 # The AIX port of GNU ld has always aspired to compatibility9105 # with the native linker. However, as the warning in the GNU ld9106 # block says, versions before 2.19.5* couldn't really create working9107 # shared libraries, regardless of the interface used.9108 case `$LD -v 2>&1` in9109 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;9110 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;9111 *\ \(GNU\ Binutils\)\ [3-9]*) ;;9112 *)9113 lt_use_gnu_ld_interface=yes9114 ;;9115 esac9116 ;;9117 *)9118 lt_use_gnu_ld_interface=yes9119 ;;9120 esac9121 fi9122 9123 if test yes = "$lt_use_gnu_ld_interface"; then9124 # If archive_cmds runs LD, not CC, wlarc should be empty9125 wlarc='$wl'9126 9127 # Set some defaults for GNU ld with shared library support. These9128 # are reset later if shared libraries are not supported. Putting them9129 # here allows them to be overridden if necessary.9130 runpath_var=LD_RUN_PATH9131 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9132 export_dynamic_flag_spec='$wl--export-dynamic'9133 # ancient GNU ld didn't support --whole-archive et. al.9134 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then9135 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'9136 else9137 whole_archive_flag_spec=9138 fi9139 supports_anon_versioning=no9140 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in9141 *GNU\ gold*) supports_anon_versioning=yes ;;9142 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.119143 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...9144 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...9145 *\ 2.11.*) ;; # other 2.11 versions9146 *) supports_anon_versioning=yes ;;9147 esac9148 9149 # See if GNU ld supports shared libraries.9150 case $host_os in9151 aix[3-9]*)9152 # On AIX/PPC, the GNU linker is very broken9153 if test ia64 != "$host_cpu"; then9154 ld_shlibs=no9155 cat <<_LT_EOF 1>&29156 9157 *** Warning: the GNU linker, at least up to release 2.19, is reported9158 *** to be unable to reliably create shared libraries on AIX.9159 *** Therefore, libtool is disabling shared libraries support. If you9160 *** really care for shared libraries, you may want to install binutils9161 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.9162 *** You will then need to restart the configuration process.9163 9164 _LT_EOF9165 fi9166 ;;9167 9168 amigaos*)9169 case $host_cpu in9170 powerpc)9171 # see comment about AmigaOS4 .so support9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9173 archive_expsym_cmds=''9174 ;;9175 m68k)9176 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)'9177 hardcode_libdir_flag_spec='-L$libdir'9178 hardcode_minus_L=yes9179 ;;9180 esac9181 ;;9182 9183 beos*)9184 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9185 allow_undefined_flag=unsupported9186 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc9187 # support --undefined. This deserves some investigation. FIXME9188 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9189 else9190 ld_shlibs=no9191 fi9192 ;;9193 9194 cygwin* | mingw* | pw32* | cegcc*)9195 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,9196 # as there is no search path for DLLs.9197 hardcode_libdir_flag_spec='-L$libdir'9198 export_dynamic_flag_spec='$wl--export-all-symbols'9199 allow_undefined_flag=unsupported9200 always_export_symbols=no9201 enable_shared_with_static_runtimes=yes9202 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'9203 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'9204 9205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then9206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9207 # If the export-symbols file already is a .def file, use it as9208 # is; otherwise, prepend EXPORTS...9209 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9210 cp $export_symbols $output_objdir/$soname.def;9211 else9212 echo EXPORTS > $output_objdir/$soname.def;9213 cat $export_symbols >> $output_objdir/$soname.def;9214 fi~9215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'9216 else9217 ld_shlibs=no9218 fi9219 ;;9220 9221 haiku*)9222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9223 link_all_deplibs=yes9224 ;;9225 9226 os2*)9227 hardcode_libdir_flag_spec='-L$libdir'9228 hardcode_minus_L=yes9229 allow_undefined_flag=unsupported9230 shrext_cmds=.dll9231 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9232 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9233 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9234 $ECHO EXPORTS >> $output_objdir/$libname.def~9235 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~9236 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9237 emximp -o $lib $output_objdir/$libname.def'9238 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~9239 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~9240 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~9241 $ECHO EXPORTS >> $output_objdir/$libname.def~9242 prefix_cmds="$SED"~9243 if test EXPORTS = "`$SED 1q $export_symbols`"; then9244 prefix_cmds="$prefix_cmds -e 1d";9245 fi~9246 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~9247 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~9248 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~9249 emximp -o $lib $output_objdir/$libname.def'9250 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'9251 enable_shared_with_static_runtimes=yes9252 ;;9253 9254 interix[3-9]*)9255 hardcode_direct=no9256 hardcode_shlibpath_var=no9257 hardcode_libdir_flag_spec='$wl-rpath,$libdir'9258 export_dynamic_flag_spec='$wl-E'9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.9260 # Instead, shared libraries are loaded at an image base (0x10000000 by9261 # default) and relocated if they conflict, which is a slow very memory9262 # consuming and fragmenting process. To avoid this, we pick a random,9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'9266 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'9267 ;;9268 9269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)9270 tmp_diet=no9271 if test linux-dietlibc = "$host_os"; then9272 case $cc_basename in9273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)9274 esac9275 fi9276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \9277 && test no = "$tmp_diet"9278 then9279 tmp_addflag=' $pic_flag'9280 tmp_sharedflag='-shared'9281 case $cc_basename,$host_cpu in9282 pgcc*) # Portland Group C compiler9283 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'9284 tmp_addflag=' $pic_flag'9285 ;;9286 pgf77* | pgf90* | pgf95* | pgfortran*)9287 # Portland Group f77 and f90 compilers9288 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'9289 tmp_addflag=' $pic_flag -Mnomain' ;;9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia649291 tmp_addflag=' -i_dynamic' ;;9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia649293 tmp_addflag=' -i_dynamic -nofor_main' ;;9294 ifc* | ifort*) # Intel Fortran compiler9295 tmp_addflag=' -nofor_main' ;;9296 lf95*) # Lahey Fortran 8.19297 whole_archive_flag_spec=9298 tmp_sharedflag='--shared' ;;9299 nagfor*) # NAGFOR 5.39300 tmp_sharedflag='-Wl,-shared' ;;9301 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)9302 tmp_sharedflag='-qmkshrobj'9303 tmp_addflag= ;;9304 nvcc*) # Cuda Compiler Driver 2.29305 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'9306 compiler_needs_object=yes9307 ;;9308 esac9309 case `$CC -V 2>&1 | sed 5q` in9310 *Sun\ C*) # Sun C 5.99311 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'9312 compiler_needs_object=yes9313 tmp_sharedflag='-G' ;;9314 *Sun\ F*) # Sun Fortran 8.39315 tmp_sharedflag='-G' ;;9316 esac9317 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9318 9319 if test yes = "$supports_anon_versioning"; then9320 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9322 echo "local: *; };" >> $output_objdir/$libname.ver~9323 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'9324 fi9325 9326 case $cc_basename in9327 tcc*)9328 export_dynamic_flag_spec='-rdynamic'9329 ;;9330 xlf* | bgf* | bgxlf* | mpixlf*)9331 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself9332 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'9333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9334 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'9335 if test yes = "$supports_anon_versioning"; then9336 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~9337 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~9338 echo "local: *; };" >> $output_objdir/$libname.ver~9339 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'9340 fi9341 ;;9342 esac9343 else9344 ld_shlibs=no9345 fi9346 ;;9347 9348 netbsd* | netbsdelf*-gnu)9349 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then9350 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'9351 wlarc=9352 else9353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9354 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9355 fi9356 ;;9357 9358 solaris*)9359 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then9360 ld_shlibs=no9361 cat <<_LT_EOF 1>&29362 9363 *** Warning: The releases 2.8.* of the GNU linker cannot reliably9364 *** create shared libraries on Solaris systems. Therefore, libtool9365 *** is disabling shared libraries support. We urge you to upgrade GNU9366 *** binutils to release 2.9.1 or newer. Another option is to modify9367 *** your PATH or compiler configuration so that the native linker is9368 *** used, and then restart.9369 9370 _LT_EOF9371 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9372 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9373 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9374 else9375 ld_shlibs=no9376 fi9377 ;;9378 9379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)9380 case `$LD -v 2>&1` in9381 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)9382 ld_shlibs=no9383 cat <<_LT_EOF 1>&29384 9385 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot9386 *** reliably create shared libraries on SCO systems. Therefore, libtool9387 *** is disabling shared libraries support. We urge you to upgrade GNU9388 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify9389 *** your PATH or compiler configuration so that the native linker is9390 *** used, and then restart.9391 9392 _LT_EOF9393 ;;9394 *)9395 # For security reasons, it is highly recommended that you always9396 # use absolute paths for naming shared libraries, and exclude the9397 # DT_RUNPATH tag from executables and libraries. But doing so9398 # requires that you compile everything twice, which is a pain.9399 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9400 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'9401 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9402 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9403 else9404 ld_shlibs=no9405 fi9406 ;;9407 esac9408 ;;9409 9410 sunos4*)9411 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'9412 wlarc=9413 hardcode_direct=yes9414 hardcode_shlibpath_var=no9415 ;;9416 9417 *)9418 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then9419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'9421 else9422 ld_shlibs=no9423 fi9424 ;;9425 esac9426 9427 if test no = "$ld_shlibs"; then9428 runpath_var=9429 hardcode_libdir_flag_spec=9430 export_dynamic_flag_spec=9431 whole_archive_flag_spec=9432 fi9433 else9434 # PORTME fill in a description of your system's linker (not GNU ld)9435 case $host_os in9436 aix3*)9437 allow_undefined_flag=unsupported9438 always_export_symbols=yes9439 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'9440 # Note: this linker hardcodes the directories in LIBPATH if there9441 # are no directories specified by -L.9442 hardcode_minus_L=yes9443 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then9444 # Neither direct hardcoding nor static linking is supported with a9445 # broken collect2.9446 hardcode_direct=unsupported9447 fi9448 ;;9449 9450 aix[4-9]*)9451 if test ia64 = "$host_cpu"; then9452 # On IA64, the linker does run time linking by default, so we don't9453 # have to do anything special.9454 aix_use_runtimelinking=no9455 exp_sym_flag='-Bexport'9456 no_entry_flag=9457 else9458 # If we're using GNU nm, then we don't want the "-C" option.9459 # -C means demangle to GNU nm, but means don't demangle to AIX nm.9460 # Without the "-l" option, or with the "-B" option, AIX nm treats9461 # weak defined symbols like other global defined symbols, whereas9462 # GNU nm marks them as "W".9463 # While the 'weak' keyword is ignored in the Export File, we need9464 # it in the Import File for the 'aix-soname' feature, so we have9465 # to replace the "-B" option with "-P" for AIX nm.9466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then9467 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'9468 else9469 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'9470 fi9471 aix_use_runtimelinking=no9472 9473 # Test if we are trying to use run time linking or normal9474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we9475 # have runtime linking enabled, and use it for executables.9476 # For shared libraries, we enable/disable runtime linking9477 # depending on the kind of the shared library created -9478 # when "with_aix_soname,aix_use_runtimelinking" is:9479 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables9480 # "aix,yes" lib.so shared, rtl:yes, for executables9481 # lib.a static archive9482 # "both,no" lib.so.V(shr.o) shared, rtl:yes9483 # lib.a(lib.so.V) shared, rtl:no, for executables9484 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables9485 # lib.a(lib.so.V) shared, rtl:no9486 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables9487 # lib.a static archive9488 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)9489 for ld_flag in $LDFLAGS; do9490 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then9491 aix_use_runtimelinking=yes9492 break9493 fi9494 done9495 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then9496 # With aix-soname=svr4, we create the lib.so.V shared archives only,9497 # so we don't have lib.a shared libs to link our executables.9498 # We have to force runtime linking in this case.9499 aix_use_runtimelinking=yes9500 LDFLAGS="$LDFLAGS -Wl,-brtl"9501 fi9502 ;;9503 esac9504 9505 exp_sym_flag='-bexport'9506 no_entry_flag='-bnoentry'9507 fi9508 9509 # When large executables or shared objects are built, AIX ld can9510 # have problems creating the table of contents. If linking a library9511 # or program results in "error TOC overflow" add -mminimal-toc to9512 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not9513 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.9514 9515 archive_cmds=''9516 hardcode_direct=yes9517 hardcode_direct_absolute=yes9518 hardcode_libdir_separator=':'9519 link_all_deplibs=yes9520 file_list_spec='$wl-f,'9521 case $with_aix_soname,$aix_use_runtimelinking in9522 aix,*) ;; # traditional, no import file9523 svr4,* | *,yes) # use import file9524 # The Import File defines what to hardcode.9525 hardcode_direct=no9526 hardcode_direct_absolute=no9527 ;;9528 esac9529 9530 if test yes = "$GCC"; then9531 case $host_os in aix4.[012]|aix4.[012].*)9532 # We only want to do this on AIX 4.2 and lower, the check9533 # below for broken collect2 doesn't work under 4.3+9534 collect2name=`$CC -print-prog-name=collect2`9535 if test -f "$collect2name" &&9536 strings "$collect2name" | $GREP resolve_lib_name >/dev/null9537 then9538 # We have reworked collect29539 :9540 else9541 # We have old collect29542 hardcode_direct=unsupported9543 # It fails to find uninstalled libraries when the uninstalled9544 # path is not listed in the libpath. Setting hardcode_minus_L9545 # to unsupported forces relinking9546 hardcode_minus_L=yes9547 hardcode_libdir_flag_spec='-L$libdir'9548 hardcode_libdir_separator=9549 fi9550 ;;9551 esac9552 shared_flag='-shared'9553 if test yes = "$aix_use_runtimelinking"; then9554 shared_flag="$shared_flag "'$wl-G'9555 fi9556 # Need to ensure runtime linking is disabled for the traditional9557 # shared library, or the linker may eventually find shared libraries9558 # /with/ Import File - we do not want to mix them.9559 shared_flag_aix='-shared'9560 shared_flag_svr4='-shared $wl-G'9561 else9562 # not using gcc9563 if test ia64 = "$host_cpu"; then9564 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release9565 # chokes on -Wl,-G. The following line is correct:9566 shared_flag='-G'9567 else9568 if test yes = "$aix_use_runtimelinking"; then9569 shared_flag='$wl-G'9570 else9571 shared_flag='$wl-bM:SRE'9572 fi9573 shared_flag_aix='$wl-bM:SRE'9574 shared_flag_svr4='$wl-G'9575 fi9576 fi9577 9578 export_dynamic_flag_spec='$wl-bexpall'9579 # It seems that -bexpall does not export symbols beginning with9580 # underscore (_), so it is better to generate a list of symbols to export.9581 always_export_symbols=yes9582 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then9583 # Warning - without using the other runtime loading flags (-brtl),9584 # -berok will link without error, but may produce a broken library.9585 allow_undefined_flag='-berok'9586 # Determine the default libpath from the value encoded in an9587 # empty executable.9588 if test set = "${lt_cv_aix_libpath+set}"; then9589 aix_libpath=$lt_cv_aix_libpath9590 else9591 if ${lt_cv_aix_libpath_+:} false; then :9592 $as_echo_n "(cached) " >&69593 else9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9595 /* end confdefs.h. */9596 9597 int9598 main ()9599 {9600 9601 ;9602 return 0;9603 }9604 _ACEOF9605 if ac_fn_c_try_link "$LINENO"; then :9606 9607 lt_aix_libpath_sed='9608 /Import File Strings/,/^$/ {9609 /^0/ {9610 s/^0 *\([^ ]*\) *$/\1/9611 p9612 }9613 }'9614 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9615 # Check for a 64-bit object if we didn't find anything.9616 if test -z "$lt_cv_aix_libpath_"; then9617 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9618 fi9619 fi9620 rm -f core conftest.err conftest.$ac_objext \9621 conftest$ac_exeext conftest.$ac_ext9622 if test -z "$lt_cv_aix_libpath_"; then9623 lt_cv_aix_libpath_=/usr/lib:/lib9624 fi9625 9626 fi9627 9628 aix_libpath=$lt_cv_aix_libpath_9629 fi9630 9631 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9632 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_flag9633 else9634 if test ia64 = "$host_cpu"; then9635 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'9636 allow_undefined_flag="-z nodefs"9637 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"9638 else9639 # Determine the default libpath from the value encoded in an9640 # empty executable.9641 if test set = "${lt_cv_aix_libpath+set}"; then9642 aix_libpath=$lt_cv_aix_libpath9643 else9644 if ${lt_cv_aix_libpath_+:} false; then :9645 $as_echo_n "(cached) " >&69646 else9647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext9648 /* end confdefs.h. */9649 9650 int9651 main ()9652 {9653 9654 ;9655 return 0;9656 }9657 _ACEOF9658 if ac_fn_c_try_link "$LINENO"; then :9659 9660 lt_aix_libpath_sed='9661 /Import File Strings/,/^$/ {9662 /^0/ {9663 s/^0 *\([^ ]*\) *$/\1/9664 p9665 }9666 }'9667 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9668 # Check for a 64-bit object if we didn't find anything.9669 if test -z "$lt_cv_aix_libpath_"; then9670 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`9671 fi9672 fi9673 rm -f core conftest.err conftest.$ac_objext \9674 conftest$ac_exeext conftest.$ac_ext9675 if test -z "$lt_cv_aix_libpath_"; then9676 lt_cv_aix_libpath_=/usr/lib:/lib9677 fi9678 9679 fi9680 9681 aix_libpath=$lt_cv_aix_libpath_9682 fi9683 9684 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"9685 # Warning - without using the other run time loading flags,9686 # -berok will link without error, but may produce a broken library.9687 no_undefined_flag=' $wl-bernotok'9688 allow_undefined_flag=' $wl-berok'9689 if test yes = "$with_gnu_ld"; then9690 # We only use this code for GNU lds that support --whole-archive.9691 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'9692 else9693 # Exported symbols can be pulled into shared objects from archives9694 whole_archive_flag_spec='$convenience'9695 fi9696 archive_cmds_need_lc=yes9697 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'9698 # -brtl affects multiple linker settings, -berok does not and is overridden later9699 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'9700 if test svr4 != "$with_aix_soname"; then9701 # This is similar to how AIX traditionally builds its shared libraries.9702 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'9703 fi9704 if test aix != "$with_aix_soname"; then9705 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'9706 else9707 # used by -dlpreopen to get the symbols9708 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'9709 fi9710 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'9711 fi9712 fi9713 ;;9714 9715 amigaos*)9716 case $host_cpu in9717 powerpc)9718 # see comment about AmigaOS4 .so support9719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'9720 archive_expsym_cmds=''9721 ;;9722 m68k)9723 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)'9724 hardcode_libdir_flag_spec='-L$libdir'9725 hardcode_minus_L=yes9726 ;;9727 esac9728 ;;9729 9730 bsdi[45]*)9731 export_dynamic_flag_spec=-rdynamic9732 ;;9733 9734 cygwin* | mingw* | pw32* | cegcc*)9735 # When not using gcc, we currently assume that we are using9736 # Microsoft Visual C++.9737 # hardcode_libdir_flag_spec is actually meaningless, as there is9738 # no search path for DLLs.9739 case $cc_basename in9740 cl*)9741 # Native MSVC9742 hardcode_libdir_flag_spec=' '9743 allow_undefined_flag=unsupported9744 always_export_symbols=yes9745 file_list_spec='@'9746 # Tell ltmain to make .lib files, not .a files.9747 libext=lib9748 # Tell ltmain to make .dll files, not .so files.9749 shrext_cmds=.dll9750 # FIXME: Setting linknames here is a bad hack.9751 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='9752 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then9753 cp "$export_symbols" "$output_objdir/$soname.def";9754 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";9755 else9756 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;9757 fi~9758 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~9759 linknames='9760 # The linker will not automatically build a static lib if we build a DLL.9761 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'9762 enable_shared_with_static_runtimes=yes9763 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'9764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'9765 # Don't use ranlib9766 old_postinstall_cmds='chmod 644 $oldlib'9767 postlink_cmds='lt_outputfile="@OUTPUT@"~9768 lt_tool_outputfile="@TOOL_OUTPUT@"~9769 case $lt_outputfile in9770 *.exe|*.EXE) ;;9771 *)9772 lt_outputfile=$lt_outputfile.exe9773 lt_tool_outputfile=$lt_tool_outputfile.exe9774 ;;9775 esac~9776 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then9777 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;9778 $RM "$lt_outputfile.manifest";9779 fi'9780 ;;9781 *)9782 # Assume MSVC wrapper9783 hardcode_libdir_flag_spec=' '9784 allow_undefined_flag=unsupported9785 # Tell ltmain to make .lib files, not .a files.9786 libext=lib9787 # Tell ltmain to make .dll files, not .so files.9788 shrext_cmds=.dll9789 # FIXME: Setting linknames here is a bad hack.9790 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='9791 # The linker will automatically build a .lib file if we build a DLL.9792 old_archive_from_new_cmds='true'9793 # FIXME: Should let the user specify the lib program.9794 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'9795 enable_shared_with_static_runtimes=yes9796 ;;9797 esac9798 ;;9799 9800 darwin* | rhapsody*)9801 9802 9803 archive_cmds_need_lc=no9804 hardcode_direct=no9805 hardcode_automatic=yes9806 hardcode_shlibpath_var=unsupported9807 if test yes = "$lt_cv_ld_force_load"; then9808 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\"`'9809 9810 else9811 whole_archive_flag_spec=''9812 fi9813 link_all_deplibs=yes9814 allow_undefined_flag=$_lt_dar_allow_undefined9815 case $cc_basename in9816 ifort*|nagfor*) _lt_dar_can_shared=yes ;;9817 *) _lt_dar_can_shared=$GCC ;;9818 esac9819 if test yes = "$_lt_dar_can_shared"; then9820 output_verbose_link_cmd=func_echo_all9821 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"9822 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"9823 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"9824 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"9825 9826 else9827 ld_shlibs=no9828 fi9829 9830 ;;9831 9832 dgux*)9833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'9834 hardcode_libdir_flag_spec='-L$libdir'9835 hardcode_shlibpath_var=no9836 ;;9837 9838 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor9839 # support. Future versions do this automatically, but an explicit c++rt0.o9840 # does not break anything, and helps significantly (at the cost of a little9841 # extra space).9842 freebsd2.2*)9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'9844 hardcode_libdir_flag_spec='-R$libdir'9845 hardcode_direct=yes9846 hardcode_shlibpath_var=no9847 ;;9848 9849 # Unfortunately, older versions of FreeBSD 2 do not have this feature.9850 freebsd2.*)9851 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'9852 hardcode_direct=yes9853 hardcode_minus_L=yes9854 hardcode_shlibpath_var=no9855 ;;9856 9857 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.9858 freebsd* | dragonfly*)9859 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'9860 hardcode_libdir_flag_spec='-R$libdir'9861 hardcode_direct=yes9862 hardcode_shlibpath_var=no9863 ;;9864 9865 hpux9*)9866 if test yes = "$GCC"; then9867 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'9868 else9869 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'9870 fi9871 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9872 hardcode_libdir_separator=:9873 hardcode_direct=yes9874 9875 # hardcode_minus_L: Not really in the search PATH,9876 # but as the default location of the library.9877 hardcode_minus_L=yes9878 export_dynamic_flag_spec='$wl-E'9879 ;;9880 9881 hpux10*)9882 if test yes,no = "$GCC,$with_gnu_ld"; then9883 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9884 else9885 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9886 fi9887 if test no = "$with_gnu_ld"; then9888 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9889 hardcode_libdir_separator=:9890 hardcode_direct=yes9891 hardcode_direct_absolute=yes9892 export_dynamic_flag_spec='$wl-E'9893 # hardcode_minus_L: Not really in the search PATH,9894 # but as the default location of the library.9895 hardcode_minus_L=yes9896 fi9897 ;;9898 9899 hpux11*)9900 if test yes,no = "$GCC,$with_gnu_ld"; then9901 case $host_cpu in9902 hppa*64*)9903 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9904 ;;9905 ia64*)9906 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9907 ;;9908 *)9909 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9910 ;;9911 esac9912 else9913 case $host_cpu in9914 hppa*64*)9915 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'9916 ;;9917 ia64*)9918 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'9919 ;;9920 *)9921 9922 # Older versions of the 11.00 compiler do not understand -b yet9923 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&59925 $as_echo_n "checking if $CC understands -b... " >&6; }9926 if ${lt_cv_prog_compiler__b+:} false; then :9927 $as_echo_n "(cached) " >&69928 else9929 lt_cv_prog_compiler__b=no9930 save_LDFLAGS=$LDFLAGS9931 LDFLAGS="$LDFLAGS -b"9932 echo "$lt_simple_link_test_code" > conftest.$ac_ext9933 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then9934 # The linker can only warn and ignore the option if not recognized9935 # So say no if there are warnings9936 if test -s conftest.err; then9937 # Append any errors to the config.log.9938 cat conftest.err 1>&59939 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp9940 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er29941 if diff conftest.exp conftest.er2 >/dev/null; then9942 lt_cv_prog_compiler__b=yes9943 fi9944 else9945 lt_cv_prog_compiler__b=yes9946 fi9947 fi9948 $RM -r conftest*9949 LDFLAGS=$save_LDFLAGS9950 9951 fi9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&59953 $as_echo "$lt_cv_prog_compiler__b" >&6; }9954 9955 if test yes = "$lt_cv_prog_compiler__b"; then9956 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'9957 else9958 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'9959 fi9960 9961 ;;9962 esac9963 fi9964 if test no = "$with_gnu_ld"; then9965 hardcode_libdir_flag_spec='$wl+b $wl$libdir'9966 hardcode_libdir_separator=:9967 9968 case $host_cpu in9969 hppa*64*|ia64*)9970 hardcode_direct=no9971 hardcode_shlibpath_var=no9972 ;;9973 *)9974 hardcode_direct=yes9975 hardcode_direct_absolute=yes9976 export_dynamic_flag_spec='$wl-E'9977 9978 # hardcode_minus_L: Not really in the search PATH,9979 # but as the default location of the library.9980 hardcode_minus_L=yes9981 ;;9982 esac9983 fi9984 ;;9985 9986 irix5* | irix6* | nonstopux*)9987 if test yes = "$GCC"; then9988 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'9989 # Try to use the -exported_symbol ld option, if it does not9990 # work, assume that -exports_file does not work either and9991 # implicitly export all symbols.9992 # This should be the same for all languages, so no per-tag cache variable.9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&59994 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }9995 if ${lt_cv_irix_exported_symbol+:} false; then :9996 $as_echo_n "(cached) " >&69997 else9998 save_LDFLAGS=$LDFLAGS9999 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"10000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10001 /* end confdefs.h. */10002 int foo (void) { return 0; }10003 _ACEOF10004 if ac_fn_c_try_link "$LINENO"; then :10005 lt_cv_irix_exported_symbol=yes10006 else10007 lt_cv_irix_exported_symbol=no10008 fi10009 rm -f core conftest.err conftest.$ac_objext \10010 conftest$ac_exeext conftest.$ac_ext10011 LDFLAGS=$save_LDFLAGS10012 fi10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&510014 $as_echo "$lt_cv_irix_exported_symbol" >&6; }10015 if test yes = "$lt_cv_irix_exported_symbol"; then10016 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'10017 fi10018 link_all_deplibs=no10019 else10020 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'10021 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'10022 fi10023 archive_cmds_need_lc='no'10024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10025 hardcode_libdir_separator=:10026 inherit_rpath=yes10027 link_all_deplibs=yes10028 ;;10029 10030 linux*)10031 case $cc_basename in10032 tcc*)10033 # Fabrice Bellard et al's Tiny C Compiler10034 ld_shlibs=yes10035 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10036 ;;10037 esac10038 ;;10039 10040 netbsd* | netbsdelf*-gnu)10041 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out10043 else10044 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF10045 fi10046 hardcode_libdir_flag_spec='-R$libdir'10047 hardcode_direct=yes10048 hardcode_shlibpath_var=no10049 ;;10050 10051 newsos6)10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10053 hardcode_direct=yes10054 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10055 hardcode_libdir_separator=:10056 hardcode_shlibpath_var=no10057 ;;10058 10059 *nto* | *qnx*)10060 ;;10061 10062 openbsd* | bitrig*)10063 if test -f /usr/libexec/ld.so; then10064 hardcode_direct=yes10065 hardcode_shlibpath_var=no10066 hardcode_direct_absolute=yes10067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then10068 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10069 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'10070 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10071 export_dynamic_flag_spec='$wl-E'10072 else10073 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'10074 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10075 fi10076 else10077 ld_shlibs=no10078 fi10079 ;;10080 10081 os2*)10082 hardcode_libdir_flag_spec='-L$libdir'10083 hardcode_minus_L=yes10084 allow_undefined_flag=unsupported10085 shrext_cmds=.dll10086 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10087 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10088 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10089 $ECHO EXPORTS >> $output_objdir/$libname.def~10090 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~10091 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10092 emximp -o $lib $output_objdir/$libname.def'10093 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10094 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10095 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10096 $ECHO EXPORTS >> $output_objdir/$libname.def~10097 prefix_cmds="$SED"~10098 if test EXPORTS = "`$SED 1q $export_symbols`"; then10099 prefix_cmds="$prefix_cmds -e 1d";10100 fi~10101 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~10102 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~10103 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10104 emximp -o $lib $output_objdir/$libname.def'10105 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10106 enable_shared_with_static_runtimes=yes10107 ;;10108 10109 osf3*)10110 if test yes = "$GCC"; then10111 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10112 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'10113 else10114 allow_undefined_flag=' -expect_unresolved \*'10115 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'10116 fi10117 archive_cmds_need_lc='no'10118 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10119 hardcode_libdir_separator=:10120 ;;10121 10122 osf4* | osf5*) # as osf3* with the addition of -msym flag10123 if test yes = "$GCC"; then10124 allow_undefined_flag=' $wl-expect_unresolved $wl\*'10125 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'10126 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10127 else10128 allow_undefined_flag=' -expect_unresolved \*'10129 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'10130 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~10131 $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'10132 10133 # Both c and cxx compiler support -rpath directly10134 hardcode_libdir_flag_spec='-rpath $libdir'10135 fi10136 archive_cmds_need_lc='no'10137 hardcode_libdir_separator=:10138 ;;10139 10140 solaris*)10141 no_undefined_flag=' -z defs'10142 if test yes = "$GCC"; then10143 wlarc='$wl'10144 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'10145 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10146 $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'10147 else10148 case `$CC -V 2>&1` in10149 *"Compilers 5.0"*)10150 wlarc=''10151 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'10152 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10153 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'10154 ;;10155 *)10156 wlarc='$wl'10157 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'10158 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~10159 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'10160 ;;10161 esac10162 fi10163 hardcode_libdir_flag_spec='-R$libdir'10164 hardcode_shlibpath_var=no10165 case $host_os in10166 solaris2.[0-5] | solaris2.[0-5].*) ;;10167 *)10168 # The compiler driver will combine and reorder linker options,10169 # but understands '-z linker_flag'. GCC discards it without '$wl',10170 # but is careful enough not to reorder.10171 # Supported since Solaris 2.6 (maybe 2.5.1?)10172 if test yes = "$GCC"; then10173 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'10174 else10175 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'10176 fi10177 ;;10178 esac10179 link_all_deplibs=yes10180 ;;10181 10182 sunos4*)10183 if test sequent = "$host_vendor"; then10184 # Use $CC to link under sequent, because it throws in some extra .o10185 # files that make .init and .fini sections work.10186 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'10187 else10188 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'10189 fi10190 hardcode_libdir_flag_spec='-L$libdir'10191 hardcode_direct=yes10192 hardcode_minus_L=yes10193 hardcode_shlibpath_var=no10194 ;;10195 10196 sysv4)10197 case $host_vendor in10198 sni)10199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10200 hardcode_direct=yes # is this really true???10201 ;;10202 siemens)10203 ## LD is ld it makes a PLAMLIB10204 ## CC just makes a GrossModule.10205 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'10206 reload_cmds='$CC -r -o $output$reload_objs'10207 hardcode_direct=no10208 ;;10209 motorola)10210 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10211 hardcode_direct=no #Motorola manual says yes, but my tests say they lie10212 ;;10213 esac10214 runpath_var='LD_RUN_PATH'10215 hardcode_shlibpath_var=no10216 ;;10217 10218 sysv4.3*)10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10220 hardcode_shlibpath_var=no10221 export_dynamic_flag_spec='-Bexport'10222 ;;10223 10224 sysv4*MP*)10225 if test -d /usr/nec; then10226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10227 hardcode_shlibpath_var=no10228 runpath_var=LD_RUN_PATH10229 hardcode_runpath_var=yes10230 ld_shlibs=yes10231 fi10232 ;;10233 10234 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)10235 no_undefined_flag='$wl-z,text'10236 archive_cmds_need_lc=no10237 hardcode_shlibpath_var=no10238 runpath_var='LD_RUN_PATH'10239 10240 if test yes = "$GCC"; then10241 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10242 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10243 else10244 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10245 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10246 fi10247 ;;10248 10249 sysv5* | sco3.2v5* | sco5v6*)10250 # Note: We CANNOT use -z defs as we might desire, because we do not10251 # link with -lc, and that would cause any symbols used from libc to10252 # always be unresolved, which means just about no library would10253 # ever link correctly. If we're not using GNU ld we use -z text10254 # though, which does catch some bad symbols but isn't as heavy-handed10255 # as -z defs.10256 no_undefined_flag='$wl-z,text'10257 allow_undefined_flag='$wl-z,nodefs'10258 archive_cmds_need_lc=no10259 hardcode_shlibpath_var=no10260 hardcode_libdir_flag_spec='$wl-R,$libdir'10261 hardcode_libdir_separator=':'10262 link_all_deplibs=yes10263 export_dynamic_flag_spec='$wl-Bexport'10264 runpath_var='LD_RUN_PATH'10265 10266 if test yes = "$GCC"; then10267 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10268 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10269 else10270 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10271 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'10272 fi10273 ;;10274 10275 uts4*)10276 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'10277 hardcode_libdir_flag_spec='-L$libdir'10278 hardcode_shlibpath_var=no10279 ;;10280 10281 *)10282 ld_shlibs=no10283 ;;10284 esac10285 10286 if test sni = "$host_vendor"; then10287 case $host in10288 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)10289 export_dynamic_flag_spec='$wl-Blargedynsym'10290 ;;10291 esac10292 fi10293 fi10294 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&510296 $as_echo "$ld_shlibs" >&6; }10297 test no = "$ld_shlibs" && can_build_shared=no10298 10299 with_gnu_ld=$with_gnu_ld10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 #10316 # Do we need to explicitly link libc?10317 #10318 case "x$archive_cmds_need_lc" in10319 x|xyes)10320 # Assume -lc should be added10321 archive_cmds_need_lc=yes10322 10323 if test yes,yes = "$GCC,$enable_shared"; then10324 case $archive_cmds in10325 *'~'*)10326 # FIXME: we may have to deal with multi-command sequences.10327 ;;10328 '$CC '*)10329 # Test whether the compiler implicitly links with -lc since on some10330 # systems, -lgcc has to come before -lc. If gcc already passes -lc10331 # to ld, don't add -lc before -lgcc.10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&510333 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }10334 if ${lt_cv_archive_cmds_need_lc+:} false; then :10335 $as_echo_n "(cached) " >&610336 else10337 $RM conftest*10338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10339 10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&510341 (eval $ac_compile) 2>&510342 ac_status=$?10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510344 test $ac_status = 0; } 2>conftest.err; then10345 soname=conftest10346 lib=conftest10347 libobjs=conftest.$ac_objext10348 deplibs=10349 wl=$lt_prog_compiler_wl10350 pic_flag=$lt_prog_compiler_pic10351 compiler_flags=-v10352 linker_flags=-v10353 verstring=10354 output_objdir=.10355 libname=conftest10356 lt_save_allow_undefined_flag=$allow_undefined_flag10357 allow_undefined_flag=10358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&510359 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&510360 ac_status=$?10361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&510362 test $ac_status = 0; }10363 then10364 lt_cv_archive_cmds_need_lc=no10365 else10366 lt_cv_archive_cmds_need_lc=yes10367 fi10368 allow_undefined_flag=$lt_save_allow_undefined_flag10369 else10370 cat conftest.err 1>&510371 fi10372 $RM conftest*10373 10374 fi10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&510376 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }10377 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc10378 ;;10379 esac10380 fi10381 ;;10382 esac10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&510536 $as_echo_n "checking dynamic linker characteristics... " >&6; }10537 10538 if test yes = "$GCC"; then10539 case $host_os in10540 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;10541 *) lt_awk_arg='/^libraries:/' ;;10542 esac10543 case $host_os in10544 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;10545 *) lt_sed_strip_eq='s|=/|/|g' ;;10546 esac10547 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`10548 case $lt_search_path_spec in10549 *\;*)10550 # if the path contains ";" then we assume it to be the separator10551 # otherwise default to the standard path separator (i.e. ":") - it is10552 # assumed that no part of a normal pathname contains ";" but that should10553 # okay in the real world where ";" in dirpaths is itself problematic.10554 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`10555 ;;10556 *)10557 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`10558 ;;10559 esac10560 # Ok, now we have the path, separated by spaces, we can step through it10561 # and add multilib dir if necessary...10562 lt_tmp_lt_search_path_spec=10563 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`10564 # ...but if some path component already ends with the multilib dir we assume10565 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).10566 case "$lt_multi_os_dir; $lt_search_path_spec " in10567 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)10568 lt_multi_os_dir=10569 ;;10570 esac10571 for lt_sys_path in $lt_search_path_spec; do10572 if test -d "$lt_sys_path$lt_multi_os_dir"; then10573 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"10574 elif test -n "$lt_multi_os_dir"; then10575 test -d "$lt_sys_path" && \10576 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"10577 fi10578 done10579 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '10580 BEGIN {RS = " "; FS = "/|\n";} {10581 lt_foo = "";10582 lt_count = 0;10583 for (lt_i = NF; lt_i > 0; lt_i--) {10584 if ($lt_i != "" && $lt_i != ".") {10585 if ($lt_i == "..") {10586 lt_count++;10587 } else {10588 if (lt_count == 0) {10589 lt_foo = "/" $lt_i lt_foo;10590 } else {10591 lt_count--;10592 }10593 }10594 }10595 }10596 if (lt_foo != "") { lt_freq[lt_foo]++; }10597 if (lt_freq[lt_foo] == 1) { print lt_foo; }10598 }'`10599 # AWK program above erroneously prepends '/' to C:/dos/paths10600 # for these hosts.10601 case $host_os in10602 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\10603 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;10604 esac10605 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`10606 else10607 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"10608 fi10609 library_names_spec=10610 libname_spec='lib$name'10611 soname_spec=10612 shrext_cmds=.so10613 postinstall_cmds=10614 postuninstall_cmds=10615 finish_cmds=10616 finish_eval=10617 shlibpath_var=10618 shlibpath_overrides_runpath=unknown10619 version_type=none10620 dynamic_linker="$host_os ld.so"10621 sys_lib_dlsearch_path_spec="/lib /usr/lib"10622 need_lib_prefix=unknown10623 hardcode_into_libs=no10624 10625 # when you set need_version to no, make sure it does not cause -set_version10626 # flags to be left without arguments10627 need_version=unknown10628 10629 10630 10631 case $host_os in10632 aix3*)10633 version_type=linux # correct to gnu/linux during the next big refactor10634 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'10635 shlibpath_var=LIBPATH10636 10637 # AIX 3 has no versioning support, so we append a major version to the name.10638 soname_spec='$libname$release$shared_ext$major'10639 ;;10640 10641 aix[4-9]*)10642 version_type=linux # correct to gnu/linux during the next big refactor10643 need_lib_prefix=no10644 need_version=no10645 hardcode_into_libs=yes10646 if test ia64 = "$host_cpu"; then10647 # AIX 5 supports IA6410648 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'10649 shlibpath_var=LD_LIBRARY_PATH10650 else10651 # With GCC up to 2.95.x, collect2 would create an import file10652 # for dependence libraries. The import file would start with10653 # the line '#! .'. This would cause the generated library to10654 # depend on '.', always an invalid library. This was fixed in10655 # development snapshots of GCC prior to 3.0.10656 case $host_os in10657 aix4 | aix4.[01] | aix4.[01].*)10658 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'10659 echo ' yes '10660 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then10661 :10662 else10663 can_build_shared=no10664 fi10665 ;;10666 esac10667 # Using Import Files as archive members, it is possible to support10668 # filename-based versioning of shared library archives on AIX. While10669 # this would work for both with and without runtime linking, it will10670 # prevent static linking of such archives. So we do filename-based10671 # shared library versioning with .so extension only, which is used10672 # when both runtime linking and shared linking is enabled.10673 # Unfortunately, runtime linking may impact performance, so we do10674 # not want this to be the default eventually. Also, we use the10675 # versioned .so libs for executables only if there is the -brtl10676 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.10677 # To allow for filename-based versioning support, we need to create10678 # libNAME.so.V as an archive file, containing:10679 # *) an Import File, referring to the versioned filename of the10680 # archive as well as the shared archive member, telling the10681 # bitwidth (32 or 64) of that shared object, and providing the10682 # list of exported symbols of that shared object, eventually10683 # decorated with the 'weak' keyword10684 # *) the shared object with the F_LOADONLY flag set, to really avoid10685 # it being seen by the linker.10686 # At run time we better use the real file rather than another symlink,10687 # but for link time we create the symlink libNAME.so -> libNAME.so.V10688 10689 case $with_aix_soname,$aix_use_runtimelinking in10690 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct10691 # soname into executable. Probably we can add versioning support to10692 # collect2, so additional links can be useful in future.10693 aix,yes) # traditional libtool10694 dynamic_linker='AIX unversionable lib.so'10695 # If using run time linking (on AIX 4.2 or later) use lib<name>.so10696 # instead of lib<name>.a to let people know that these are not10697 # typical AIX shared libraries.10698 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10699 ;;10700 aix,no) # traditional AIX only10701 dynamic_linker='AIX lib.a(lib.so.V)'10702 # We preserve .a as extension for shared libraries through AIX4.210703 # and later when we are not doing run time linking.10704 library_names_spec='$libname$release.a $libname.a'10705 soname_spec='$libname$release$shared_ext$major'10706 ;;10707 svr4,*) # full svr4 only10708 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"10709 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10710 # We do not specify a path in Import Files, so LIBPATH fires.10711 shlibpath_overrides_runpath=yes10712 ;;10713 *,yes) # both, prefer svr410714 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"10715 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'10716 # unpreferred sharedlib libNAME.a needs extra handling10717 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"'10718 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"'10719 # We do not specify a path in Import Files, so LIBPATH fires.10720 shlibpath_overrides_runpath=yes10721 ;;10722 *,no) # both, prefer aix10723 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"10724 library_names_spec='$libname$release.a $libname.a'10725 soname_spec='$libname$release$shared_ext$major'10726 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling10727 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)'10728 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"'10729 ;;10730 esac10731 shlibpath_var=LIBPATH10732 fi10733 ;;10734 10735 amigaos*)10736 case $host_cpu in10737 powerpc)10738 # Since July 2007 AmigaOS4 officially supports .so libraries.10739 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.10740 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10741 ;;10742 m68k)10743 library_names_spec='$libname.ixlibrary $libname.a'10744 # Create ${libname}_ixlibrary.a entries in /sys/libs.10745 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'10746 ;;10747 esac10748 ;;10749 10750 beos*)10751 library_names_spec='$libname$shared_ext'10752 dynamic_linker="$host_os ld.so"10753 shlibpath_var=LIBRARY_PATH10754 ;;10755 10756 bsdi[45]*)10757 version_type=linux # correct to gnu/linux during the next big refactor10758 need_version=no10759 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10760 soname_spec='$libname$release$shared_ext$major'10761 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'10762 shlibpath_var=LD_LIBRARY_PATH10763 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"10764 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"10765 # the default ld.so.conf also contains /usr/contrib/lib and10766 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow10767 # libtool to hard-code these into programs10768 ;;10769 10770 cygwin* | mingw* | pw32* | cegcc*)10771 version_type=windows10772 shrext_cmds=.dll10773 need_version=no10774 need_lib_prefix=no10775 10776 case $GCC,$cc_basename in10777 yes,*)10778 # gcc10779 library_names_spec='$libname.dll.a'10780 # DLL is installed to $(libdir)/../bin by postinstall_cmds10781 postinstall_cmds='base_file=`basename \$file`~10782 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10783 dldir=$destdir/`dirname \$dlpath`~10784 test -d \$dldir || mkdir -p \$dldir~10785 $install_prog $dir/$dlname \$dldir/$dlname~10786 chmod a+x \$dldir/$dlname~10787 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then10788 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;10789 fi'10790 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10791 dlpath=$dir/\$dldll~10792 $RM \$dlpath'10793 shlibpath_overrides_runpath=yes10794 10795 case $host_os in10796 cygwin*)10797 # Cygwin DLLs use 'cyg' prefix rather than 'lib'10798 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10799 10800 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"10801 ;;10802 mingw* | cegcc*)10803 # MinGW DLLs use traditional 'lib' prefix10804 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10805 ;;10806 pw32*)10807 # pw32 DLLs use 'pw' prefix rather than 'lib'10808 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10809 ;;10810 esac10811 dynamic_linker='Win32 ld.exe'10812 ;;10813 10814 *,cl*)10815 # Native MSVC10816 libname_spec='$name'10817 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'10818 library_names_spec='$libname.dll.lib'10819 10820 case $build_os in10821 mingw*)10822 sys_lib_search_path_spec=10823 lt_save_ifs=$IFS10824 IFS=';'10825 for lt_path in $LIB10826 do10827 IFS=$lt_save_ifs10828 # Let DOS variable expansion print the short 8.3 style file name.10829 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`10830 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"10831 done10832 IFS=$lt_save_ifs10833 # Convert to MSYS style.10834 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`10835 ;;10836 cygwin*)10837 # Convert to unix form, then to dos form, then back to unix form10838 # but this time dos style (no spaces!) so that the unix form looks10839 # like /cygdrive/c/PROGRA~1:/cygdr...10840 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`10841 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`10842 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10843 ;;10844 *)10845 sys_lib_search_path_spec=$LIB10846 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then10847 # It is most probably a Windows format PATH.10848 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`10849 else10850 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`10851 fi10852 # FIXME: find the short name or the path components, as spaces are10853 # common. (e.g. "Program Files" -> "PROGRA~1")10854 ;;10855 esac10856 10857 # DLL is installed to $(libdir)/../bin by postinstall_cmds10858 postinstall_cmds='base_file=`basename \$file`~10859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~10860 dldir=$destdir/`dirname \$dlpath`~10861 test -d \$dldir || mkdir -p \$dldir~10862 $install_prog $dir/$dlname \$dldir/$dlname'10863 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~10864 dlpath=$dir/\$dldll~10865 $RM \$dlpath'10866 shlibpath_overrides_runpath=yes10867 dynamic_linker='Win32 link.exe'10868 ;;10869 10870 *)10871 # Assume MSVC wrapper10872 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'10873 dynamic_linker='Win32 ld.exe'10874 ;;10875 esac10876 # FIXME: first we should search . and the directory the executable is in10877 shlibpath_var=PATH10878 ;;10879 10880 darwin* | rhapsody*)10881 dynamic_linker="$host_os dyld"10882 version_type=darwin10883 need_lib_prefix=no10884 need_version=no10885 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'10886 soname_spec='$libname$release$major$shared_ext'10887 shlibpath_overrides_runpath=yes10888 shlibpath_var=DYLD_LIBRARY_PATH10889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'10890 10891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"10892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'10893 ;;10894 10895 dgux*)10896 version_type=linux # correct to gnu/linux during the next big refactor10897 need_lib_prefix=no10898 need_version=no10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10900 soname_spec='$libname$release$shared_ext$major'10901 shlibpath_var=LD_LIBRARY_PATH10902 ;;10903 10904 freebsd* | dragonfly*)10905 # DragonFly does not have aout. When/if they implement a new10906 # versioning mechanism, adjust this.10907 if test -x /usr/bin/objformat; then10908 objformat=`/usr/bin/objformat`10909 else10910 case $host_os in10911 freebsd[23].*) objformat=aout ;;10912 *) objformat=elf ;;10913 esac10914 fi10915 version_type=freebsd-$objformat10916 case $version_type in10917 freebsd-elf*)10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10919 soname_spec='$libname$release$shared_ext$major'10920 need_version=no10921 need_lib_prefix=no10922 ;;10923 freebsd-*)10924 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'10925 need_version=yes10926 ;;10927 esac10928 shlibpath_var=LD_LIBRARY_PATH10929 case $host_os in10930 freebsd2.*)10931 shlibpath_overrides_runpath=yes10932 ;;10933 freebsd3.[01]* | freebsdelf3.[01]*)10934 shlibpath_overrides_runpath=yes10935 hardcode_into_libs=yes10936 ;;10937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \10938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)10939 shlibpath_overrides_runpath=no10940 hardcode_into_libs=yes10941 ;;10942 *) # from 4.6 on, and DragonFly10943 shlibpath_overrides_runpath=yes10944 hardcode_into_libs=yes10945 ;;10946 esac10947 ;;10948 10949 haiku*)10950 version_type=linux # correct to gnu/linux during the next big refactor10951 need_lib_prefix=no10952 need_version=no10953 dynamic_linker="$host_os runtime_loader"10954 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10955 soname_spec='$libname$release$shared_ext$major'10956 shlibpath_var=LIBRARY_PATH10957 shlibpath_overrides_runpath=no10958 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'10959 hardcode_into_libs=yes10960 ;;10961 10962 hpux9* | hpux10* | hpux11*)10963 # Give a soname corresponding to the major version so that dld.sl refuses to10964 # link against other versions.10965 version_type=sunos10966 need_lib_prefix=no10967 need_version=no10968 case $host_cpu in10969 ia64*)10970 shrext_cmds='.so'10971 hardcode_into_libs=yes10972 dynamic_linker="$host_os dld.so"10973 shlibpath_var=LD_LIBRARY_PATH10974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.10975 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10976 soname_spec='$libname$release$shared_ext$major'10977 if test 32 = "$HPUX_IA64_MODE"; then10978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"10979 sys_lib_dlsearch_path_spec=/usr/lib/hpux3210980 else10981 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"10982 sys_lib_dlsearch_path_spec=/usr/lib/hpux6410983 fi10984 ;;10985 hppa*64*)10986 shrext_cmds='.sl'10987 hardcode_into_libs=yes10988 dynamic_linker="$host_os dld.sl"10989 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH10990 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.10991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'10992 soname_spec='$libname$release$shared_ext$major'10993 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"10994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec10995 ;;10996 *)10997 shrext_cmds='.sl'10998 dynamic_linker="$host_os dld.sl"10999 shlibpath_var=SHLIB_PATH11000 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH11001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11002 soname_spec='$libname$release$shared_ext$major'11003 ;;11004 esac11005 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...11006 postinstall_cmds='chmod 555 $lib'11007 # or fails outright, so override atomically:11008 install_override_mode=55511009 ;;11010 11011 interix[3-9]*)11012 version_type=linux # correct to gnu/linux during the next big refactor11013 need_lib_prefix=no11014 need_version=no11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11016 soname_spec='$libname$release$shared_ext$major'11017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'11018 shlibpath_var=LD_LIBRARY_PATH11019 shlibpath_overrides_runpath=no11020 hardcode_into_libs=yes11021 ;;11022 11023 irix5* | irix6* | nonstopux*)11024 case $host_os in11025 nonstopux*) version_type=nonstopux ;;11026 *)11027 if test yes = "$lt_cv_prog_gnu_ld"; then11028 version_type=linux # correct to gnu/linux during the next big refactor11029 else11030 version_type=irix11031 fi ;;11032 esac11033 need_lib_prefix=no11034 need_version=no11035 soname_spec='$libname$release$shared_ext$major'11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'11037 case $host_os in11038 irix5* | nonstopux*)11039 libsuff= shlibsuff=11040 ;;11041 *)11042 case $LD in # libtool.m4 will add one of these switches to LD11043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")11044 libsuff= shlibsuff= libmagic=32-bit;;11045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")11046 libsuff=32 shlibsuff=N32 libmagic=N32;;11047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")11048 libsuff=64 shlibsuff=64 libmagic=64-bit;;11049 *) libsuff= shlibsuff= libmagic=never-match;;11050 esac11051 ;;11052 esac11053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH11054 shlibpath_overrides_runpath=no11055 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"11056 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"11057 hardcode_into_libs=yes11058 ;;11059 11060 # No shared lib support for Linux oldld, aout, or coff.11061 linux*oldld* | linux*aout* | linux*coff*)11062 dynamic_linker=no11063 ;;11064 11065 linux*android*)11066 version_type=none # Android doesn't support versioned libraries.11067 need_lib_prefix=no11068 need_version=no11069 library_names_spec='$libname$release$shared_ext'11070 soname_spec='$libname$release$shared_ext'11071 finish_cmds=11072 shlibpath_var=LD_LIBRARY_PATH11073 shlibpath_overrides_runpath=yes11074 11075 # This implies no fast_install, which is unacceptable.11076 # Some rework will be needed to allow for fast_install11077 # before this can be enabled.11078 hardcode_into_libs=yes11079 11080 dynamic_linker='Android linker'11081 # Don't embed -rpath directories since the linker doesn't support them.11082 hardcode_libdir_flag_spec='-L$libdir'11083 ;;11084 11085 # This must be glibc/ELF.11086 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)11087 version_type=linux # correct to gnu/linux during the next big refactor11088 need_lib_prefix=no11089 need_version=no11090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11091 soname_spec='$libname$release$shared_ext$major'11092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'11093 shlibpath_var=LD_LIBRARY_PATH11094 shlibpath_overrides_runpath=no11095 11096 # Some binutils ld are patched to set DT_RUNPATH11097 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :11098 $as_echo_n "(cached) " >&611099 else11100 lt_cv_shlibpath_overrides_runpath=no11101 save_LDFLAGS=$LDFLAGS11102 save_libdir=$libdir11103 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \11104 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11106 /* end confdefs.h. */11107 11108 int11109 main ()11110 {11111 11112 ;11113 return 0;11114 }11115 _ACEOF11116 if ac_fn_c_try_link "$LINENO"; then :11117 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :11118 lt_cv_shlibpath_overrides_runpath=yes11119 fi11120 fi11121 rm -f core conftest.err conftest.$ac_objext \11122 conftest$ac_exeext conftest.$ac_ext11123 LDFLAGS=$save_LDFLAGS11124 libdir=$save_libdir11125 11126 fi11127 11128 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath11129 11130 # This implies no fast_install, which is unacceptable.11131 # Some rework will be needed to allow for fast_install11132 # before this can be enabled.11133 hardcode_into_libs=yes11134 11135 # Ideally, we could use ldconfig to report *all* directores which are11136 # searched for libraries, however this is still not possible. Aside from not11137 # being certain /sbin/ldconfig is available, command11138 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,11139 # even though it is searched at run-time. Try to do the best guess by11140 # appending ld.so.conf contents (and includes) to the search path.11141 if test -f /etc/ld.so.conf; then11142 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' ' '`11143 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"11144 fi11145 11146 # We used to test for /lib/ld.so.1 and disable shared libraries on11147 # powerpc, because MkLinux only supported shared libraries with the11148 # GNU dynamic linker. Since this was broken with cross compilers,11149 # most powerpc-linux boxes support dynamic linking these days and11150 # people can always --disable-shared, the test was removed, and we11151 # assume the GNU/Linux dynamic linker is in use.11152 dynamic_linker='GNU/Linux ld.so'11153 ;;11154 11155 netbsdelf*-gnu)11156 version_type=linux11157 need_lib_prefix=no11158 need_version=no11159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'11160 soname_spec='${libname}${release}${shared_ext}$major'11161 shlibpath_var=LD_LIBRARY_PATH11162 shlibpath_overrides_runpath=no11163 hardcode_into_libs=yes11164 dynamic_linker='NetBSD ld.elf_so'11165 ;;11166 11167 netbsd*)11168 version_type=sunos11169 need_lib_prefix=no11170 need_version=no11171 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then11172 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11173 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11174 dynamic_linker='NetBSD (a.out) ld.so'11175 else11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11177 soname_spec='$libname$release$shared_ext$major'11178 dynamic_linker='NetBSD ld.elf_so'11179 fi11180 shlibpath_var=LD_LIBRARY_PATH11181 shlibpath_overrides_runpath=yes11182 hardcode_into_libs=yes11183 ;;11184 11185 newsos6)11186 version_type=linux # correct to gnu/linux during the next big refactor11187 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11188 shlibpath_var=LD_LIBRARY_PATH11189 shlibpath_overrides_runpath=yes11190 ;;11191 11192 *nto* | *qnx*)11193 version_type=qnx11194 need_lib_prefix=no11195 need_version=no11196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11197 soname_spec='$libname$release$shared_ext$major'11198 shlibpath_var=LD_LIBRARY_PATH11199 shlibpath_overrides_runpath=no11200 hardcode_into_libs=yes11201 dynamic_linker='ldqnx.so'11202 ;;11203 11204 openbsd* | bitrig*)11205 version_type=sunos11206 sys_lib_dlsearch_path_spec=/usr/lib11207 need_lib_prefix=no11208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then11209 need_version=no11210 else11211 need_version=yes11212 fi11213 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'11215 shlibpath_var=LD_LIBRARY_PATH11216 shlibpath_overrides_runpath=yes11217 ;;11218 11219 os2*)11220 libname_spec='$name'11221 version_type=windows11222 shrext_cmds=.dll11223 need_version=no11224 need_lib_prefix=no11225 # OS/2 can only load a DLL with a base name of 8 characters or less.11226 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";11227 v=$($ECHO $release$versuffix | tr -d .-);11228 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);11229 $ECHO $n$v`$shared_ext'11230 library_names_spec='${libname}_dll.$libext'11231 dynamic_linker='OS/2 ld.exe'11232 shlibpath_var=BEGINLIBPATH11233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"11234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11235 postinstall_cmds='base_file=`basename \$file`~11236 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~11237 dldir=$destdir/`dirname \$dlpath`~11238 test -d \$dldir || mkdir -p \$dldir~11239 $install_prog $dir/$dlname \$dldir/$dlname~11240 chmod a+x \$dldir/$dlname~11241 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then11242 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;11243 fi'11244 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~11245 dlpath=$dir/\$dldll~11246 $RM \$dlpath'11247 ;;11248 11249 osf3* | osf4* | osf5*)11250 version_type=osf11251 need_lib_prefix=no11252 need_version=no11253 soname_spec='$libname$release$shared_ext$major'11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11255 shlibpath_var=LD_LIBRARY_PATH11256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"11257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec11258 ;;11259 11260 rdos*)11261 dynamic_linker=no11262 ;;11263 11264 solaris*)11265 version_type=linux # correct to gnu/linux during the next big refactor11266 need_lib_prefix=no11267 need_version=no11268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11269 soname_spec='$libname$release$shared_ext$major'11270 shlibpath_var=LD_LIBRARY_PATH11271 shlibpath_overrides_runpath=yes11272 hardcode_into_libs=yes11273 # ldd complains unless libraries are executable11274 postinstall_cmds='chmod +x $lib'11275 ;;11276 11277 sunos4*)11278 version_type=sunos11279 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'11280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'11281 shlibpath_var=LD_LIBRARY_PATH11282 shlibpath_overrides_runpath=yes11283 if test yes = "$with_gnu_ld"; then11284 need_lib_prefix=no11285 fi11286 need_version=yes11287 ;;11288 11289 sysv4 | sysv4.3*)11290 version_type=linux # correct to gnu/linux during the next big refactor11291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11292 soname_spec='$libname$release$shared_ext$major'11293 shlibpath_var=LD_LIBRARY_PATH11294 case $host_vendor in11295 sni)11296 shlibpath_overrides_runpath=no11297 need_lib_prefix=no11298 runpath_var=LD_RUN_PATH11299 ;;11300 siemens)11301 need_lib_prefix=no11302 ;;11303 motorola)11304 need_lib_prefix=no11305 need_version=no11306 shlibpath_overrides_runpath=no11307 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'11308 ;;11309 esac11310 ;;11311 11312 sysv4*MP*)11313 if test -d /usr/nec; then11314 version_type=linux # correct to gnu/linux during the next big refactor11315 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'11316 soname_spec='$libname$shared_ext.$major'11317 shlibpath_var=LD_LIBRARY_PATH11318 fi11319 ;;11320 11321 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)11322 version_type=sco11323 need_lib_prefix=no11324 need_version=no11325 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'11326 soname_spec='$libname$release$shared_ext$major'11327 shlibpath_var=LD_LIBRARY_PATH11328 shlibpath_overrides_runpath=yes11329 hardcode_into_libs=yes11330 if test yes = "$with_gnu_ld"; then11331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'11332 else11333 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'11334 case $host_os in11335 sco3.2v5*)11336 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"11337 ;;11338 esac11339 fi11340 sys_lib_dlsearch_path_spec='/usr/lib'11341 ;;11342 11343 tpf*)11344 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.11345 version_type=linux # correct to gnu/linux during the next big refactor11346 need_lib_prefix=no11347 need_version=no11348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11349 shlibpath_var=LD_LIBRARY_PATH11350 shlibpath_overrides_runpath=no11351 hardcode_into_libs=yes11352 ;;11353 11354 uts4*)11355 version_type=linux # correct to gnu/linux during the next big refactor11356 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11357 soname_spec='$libname$release$shared_ext$major'11358 shlibpath_var=LD_LIBRARY_PATH11359 ;;11360 11361 *)11362 dynamic_linker=no11363 ;;11364 esac11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&511366 $as_echo "$dynamic_linker" >&6; }11367 test no = "$dynamic_linker" && can_build_shared=no11368 11369 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"11370 if test yes = "$GCC"; then11371 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"11372 fi11373 11374 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then11375 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec11376 fi11377 11378 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then11379 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec11380 fi11381 11382 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...11383 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec11384 11385 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code11386 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"11387 11388 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool11389 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&511488 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }11489 hardcode_action=11490 if test -n "$hardcode_libdir_flag_spec" ||11491 test -n "$runpath_var" ||11492 test yes = "$hardcode_automatic"; then11493 11494 # We can hardcode non-existent directories.11495 if test no != "$hardcode_direct" &&11496 # If the only mechanism to avoid hardcoding is shlibpath_var, we11497 # have to relink, otherwise we might link with an installed library11498 # when we should be linking with a yet-to-be-installed one11499 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&11500 test no != "$hardcode_minus_L"; then11501 # Linking always hardcodes the temporary library directory.11502 hardcode_action=relink11503 else11504 # We can link without hardcoding, and we can hardcode nonexisting dirs.11505 hardcode_action=immediate11506 fi11507 else11508 # We cannot hardcode anything, or else we can only hardcode existing11509 # directories.11510 hardcode_action=unsupported11511 fi11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&511513 $as_echo "$hardcode_action" >&6; }11514 11515 if test relink = "$hardcode_action" ||11516 test yes = "$inherit_rpath"; then11517 # Fast installation is not supported11518 enable_fast_install=no11519 elif test yes = "$shlibpath_overrides_runpath" ||11520 test no = "$enable_shared"; then11521 # Fast installation is not necessary11522 enable_fast_install=needless11523 fi11524 11525 11526 11527 11528 11529 11530 if test yes != "$enable_dlopen"; then11531 enable_dlopen=unknown11532 enable_dlopen_self=unknown11533 enable_dlopen_self_static=unknown11534 else11535 lt_cv_dlopen=no11536 lt_cv_dlopen_libs=11537 11538 case $host_os in11539 beos*)11540 lt_cv_dlopen=load_add_on11541 lt_cv_dlopen_libs=11542 lt_cv_dlopen_self=yes11543 ;;11544 11545 mingw* | pw32* | cegcc*)11546 lt_cv_dlopen=LoadLibrary11547 lt_cv_dlopen_libs=11548 ;;11549 11550 cygwin*)11551 lt_cv_dlopen=dlopen11552 lt_cv_dlopen_libs=11553 ;;11554 11555 darwin*)11556 # if libdl is installed we need to link against it11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511558 $as_echo_n "checking for dlopen in -ldl... " >&6; }11559 if ${ac_cv_lib_dl_dlopen+:} false; then :11560 $as_echo_n "(cached) " >&611561 else11562 ac_check_lib_save_LIBS=$LIBS11563 LIBS="-ldl $LIBS"11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11565 /* end confdefs.h. */11566 11567 /* Override any GCC internal prototype to avoid an error.11568 Use char because int might match the return type of a GCC11569 builtin and then its argument prototype would still apply. */11570 #ifdef __cplusplus11571 extern "C"11572 #endif11573 char dlopen ();11574 int11575 main ()11576 {11577 return dlopen ();11578 ;11579 return 0;11580 }11581 _ACEOF11582 if ac_fn_c_try_link "$LINENO"; then :11583 ac_cv_lib_dl_dlopen=yes11584 else11585 ac_cv_lib_dl_dlopen=no11586 fi11587 rm -f core conftest.err conftest.$ac_objext \11588 conftest$ac_exeext conftest.$ac_ext11589 LIBS=$ac_check_lib_save_LIBS11590 fi11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11593 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11594 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11595 else11596 11597 lt_cv_dlopen=dyld11598 lt_cv_dlopen_libs=11599 lt_cv_dlopen_self=yes11600 11601 fi11602 11603 ;;11604 11605 tpf*)11606 # Don't try to run any link tests for TPF. We know it's impossible11607 # because TPF is a cross-compiler, and we know how we open DSOs.11608 lt_cv_dlopen=dlopen11609 lt_cv_dlopen_libs=11610 lt_cv_dlopen_self=no11611 ;;11612 11613 *)11614 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"11615 if test "x$ac_cv_func_shl_load" = xyes; then :11616 lt_cv_dlopen=shl_load11617 else11618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&511619 $as_echo_n "checking for shl_load in -ldld... " >&6; }11620 if ${ac_cv_lib_dld_shl_load+:} false; then :11621 $as_echo_n "(cached) " >&611622 else11623 ac_check_lib_save_LIBS=$LIBS11624 LIBS="-ldld $LIBS"11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11626 /* end confdefs.h. */11627 11628 /* Override any GCC internal prototype to avoid an error.11629 Use char because int might match the return type of a GCC11630 builtin and then its argument prototype would still apply. */11631 #ifdef __cplusplus11632 extern "C"11633 #endif11634 char shl_load ();11635 int11636 main ()11637 {11638 return shl_load ();11639 ;11640 return 0;11641 }11642 _ACEOF11643 if ac_fn_c_try_link "$LINENO"; then :11644 ac_cv_lib_dld_shl_load=yes11645 else11646 ac_cv_lib_dld_shl_load=no11647 fi11648 rm -f core conftest.err conftest.$ac_objext \11649 conftest$ac_exeext conftest.$ac_ext11650 LIBS=$ac_check_lib_save_LIBS11651 fi11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&511653 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }11654 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :11655 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld11656 else11657 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"11658 if test "x$ac_cv_func_dlopen" = xyes; then :11659 lt_cv_dlopen=dlopen11660 else11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&511662 $as_echo_n "checking for dlopen in -ldl... " >&6; }11663 if ${ac_cv_lib_dl_dlopen+:} false; then :11664 $as_echo_n "(cached) " >&611665 else11666 ac_check_lib_save_LIBS=$LIBS11667 LIBS="-ldl $LIBS"11668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11669 /* end confdefs.h. */11670 11671 /* Override any GCC internal prototype to avoid an error.11672 Use char because int might match the return type of a GCC11673 builtin and then its argument prototype would still apply. */11674 #ifdef __cplusplus11675 extern "C"11676 #endif11677 char dlopen ();11678 int11679 main ()11680 {11681 return dlopen ();11682 ;11683 return 0;11684 }11685 _ACEOF11686 if ac_fn_c_try_link "$LINENO"; then :11687 ac_cv_lib_dl_dlopen=yes11688 else11689 ac_cv_lib_dl_dlopen=no11690 fi11691 rm -f core conftest.err conftest.$ac_objext \11692 conftest$ac_exeext conftest.$ac_ext11693 LIBS=$ac_check_lib_save_LIBS11694 fi11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&511696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }11697 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :11698 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl11699 else11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&511701 $as_echo_n "checking for dlopen in -lsvld... " >&6; }11702 if ${ac_cv_lib_svld_dlopen+:} false; then :11703 $as_echo_n "(cached) " >&611704 else11705 ac_check_lib_save_LIBS=$LIBS11706 LIBS="-lsvld $LIBS"11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11708 /* end confdefs.h. */11709 11710 /* Override any GCC internal prototype to avoid an error.11711 Use char because int might match the return type of a GCC11712 builtin and then its argument prototype would still apply. */11713 #ifdef __cplusplus11714 extern "C"11715 #endif11716 char dlopen ();11717 int11718 main ()11719 {11720 return dlopen ();11721 ;11722 return 0;11723 }11724 _ACEOF11725 if ac_fn_c_try_link "$LINENO"; then :11726 ac_cv_lib_svld_dlopen=yes11727 else11728 ac_cv_lib_svld_dlopen=no11729 fi11730 rm -f core conftest.err conftest.$ac_objext \11731 conftest$ac_exeext conftest.$ac_ext11732 LIBS=$ac_check_lib_save_LIBS11733 fi11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&511735 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }11736 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :11737 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld11738 else11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&511740 $as_echo_n "checking for dld_link in -ldld... " >&6; }11741 if ${ac_cv_lib_dld_dld_link+:} false; then :11742 $as_echo_n "(cached) " >&611743 else11744 ac_check_lib_save_LIBS=$LIBS11745 LIBS="-ldld $LIBS"11746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11747 /* end confdefs.h. */11748 11749 /* Override any GCC internal prototype to avoid an error.11750 Use char because int might match the return type of a GCC11751 builtin and then its argument prototype would still apply. */11752 #ifdef __cplusplus11753 extern "C"11754 #endif11755 char dld_link ();11756 int11757 main ()11758 {11759 return dld_link ();11760 ;11761 return 0;11762 }11763 _ACEOF11764 if ac_fn_c_try_link "$LINENO"; then :11765 ac_cv_lib_dld_dld_link=yes11766 else11767 ac_cv_lib_dld_dld_link=no11768 fi11769 rm -f core conftest.err conftest.$ac_objext \11770 conftest$ac_exeext conftest.$ac_ext11771 LIBS=$ac_check_lib_save_LIBS11772 fi11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&511774 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }11775 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :11776 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld11777 fi11778 11779 11780 fi11781 11782 11783 fi11784 11785 11786 fi11787 11788 11789 fi11790 11791 11792 fi11793 11794 ;;11795 esac11796 11797 if test no = "$lt_cv_dlopen"; then11798 enable_dlopen=no11799 else11800 enable_dlopen=yes11801 fi11802 11803 case $lt_cv_dlopen in11804 dlopen)11805 save_CPPFLAGS=$CPPFLAGS11806 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"11807 11808 save_LDFLAGS=$LDFLAGS11809 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"11810 11811 save_LIBS=$LIBS11812 LIBS="$lt_cv_dlopen_libs $LIBS"11813 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&511815 $as_echo_n "checking whether a program can dlopen itself... " >&6; }11816 if ${lt_cv_dlopen_self+:} false; then :11817 $as_echo_n "(cached) " >&611818 else11819 if test yes = "$cross_compiling"; then :11820 lt_cv_dlopen_self=cross11821 else11822 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211823 lt_status=$lt_dlunknown11824 cat > conftest.$ac_ext <<_LT_EOF11825 #line $LINENO "configure"11826 #include "confdefs.h"11827 11828 #if HAVE_DLFCN_H11829 #include <dlfcn.h>11830 #endif11831 11832 #include <stdio.h>11833 11834 #ifdef RTLD_GLOBAL11835 # define LT_DLGLOBAL RTLD_GLOBAL11836 #else11837 # ifdef DL_GLOBAL11838 # define LT_DLGLOBAL DL_GLOBAL11839 # else11840 # define LT_DLGLOBAL 011841 # endif11842 #endif11843 11844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11845 find out it does not work in some platform. */11846 #ifndef LT_DLLAZY_OR_NOW11847 # ifdef RTLD_LAZY11848 # define LT_DLLAZY_OR_NOW RTLD_LAZY11849 # else11850 # ifdef DL_LAZY11851 # define LT_DLLAZY_OR_NOW DL_LAZY11852 # else11853 # ifdef RTLD_NOW11854 # define LT_DLLAZY_OR_NOW RTLD_NOW11855 # else11856 # ifdef DL_NOW11857 # define LT_DLLAZY_OR_NOW DL_NOW11858 # else11859 # define LT_DLLAZY_OR_NOW 011860 # endif11861 # endif11862 # endif11863 # endif11864 #endif11865 11866 /* When -fvisibility=hidden is used, assume the code has been annotated11867 correspondingly for the symbols needed. */11868 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))11869 int fnord () __attribute__((visibility("default")));11870 #endif11871 11872 int fnord () { return 42; }11873 int main ()11874 {11875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);11876 int status = $lt_dlunknown;11877 11878 if (self)11879 {11880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;11881 else11882 {11883 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;11884 else puts (dlerror ());11885 }11886 /* dlclose (self); */11887 }11888 else11889 puts (dlerror ());11890 11891 return status;11892 }11893 _LT_EOF11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&511895 (eval $ac_link) 2>&511896 ac_status=$?11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511898 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then11899 (./conftest; exit; ) >&5 2>/dev/null11900 lt_status=$?11901 case x$lt_status in11902 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;11903 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;11904 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;11905 esac11906 else :11907 # compilation failed11908 lt_cv_dlopen_self=no11909 fi11910 fi11911 rm -fr conftest*11912 11913 11914 fi11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&511916 $as_echo "$lt_cv_dlopen_self" >&6; }11917 11918 if test yes = "$lt_cv_dlopen_self"; then11919 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&511921 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }11922 if ${lt_cv_dlopen_self_static+:} false; then :11923 $as_echo_n "(cached) " >&611924 else11925 if test yes = "$cross_compiling"; then :11926 lt_cv_dlopen_self_static=cross11927 else11928 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=211929 lt_status=$lt_dlunknown11930 cat > conftest.$ac_ext <<_LT_EOF11931 #line $LINENO "configure"11932 #include "confdefs.h"11933 11934 #if HAVE_DLFCN_H11935 #include <dlfcn.h>11936 #endif11937 11938 #include <stdio.h>11939 11940 #ifdef RTLD_GLOBAL11941 # define LT_DLGLOBAL RTLD_GLOBAL11942 #else11943 # ifdef DL_GLOBAL11944 # define LT_DLGLOBAL DL_GLOBAL11945 # else11946 # define LT_DLGLOBAL 011947 # endif11948 #endif11949 11950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we11951 find out it does not work in some platform. */11952 #ifndef LT_DLLAZY_OR_NOW11953 # ifdef RTLD_LAZY11954 # define LT_DLLAZY_OR_NOW RTLD_LAZY11955 # else11956 # ifdef DL_LAZY11957 # define LT_DLLAZY_OR_NOW DL_LAZY11958 # else11959 # ifdef RTLD_NOW11960 # define LT_DLLAZY_OR_NOW RTLD_NOW11961 # else11962 # ifdef DL_NOW11963 # define LT_DLLAZY_OR_NOW DL_NOW11964 # else11965 # define LT_DLLAZY_OR_NOW 011966 # endif11967 # endif11968 # endif11969 # endif11970 #endif11971 11972 /* When -fvisibility=hidden is used, assume the code has been annotated11973 correspondingly for the symbols needed. */11974 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))11975 int fnord () __attribute__((visibility("default")));11976 #endif11977 11978 int fnord () { return 42; }11979 int main ()11980 {11981 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);11982 int status = $lt_dlunknown;11983 11984 if (self)11985 {11986 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;11987 else11988 {11989 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;11990 else puts (dlerror ());11991 }11992 /* dlclose (self); */11993 }11994 else11995 puts (dlerror ());11996 11997 return status;11998 }11999 _LT_EOF12000 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&512001 (eval $ac_link) 2>&512002 ac_status=$?12003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512004 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then12005 (./conftest; exit; ) >&5 2>/dev/null12006 lt_status=$?12007 case x$lt_status in12008 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;12009 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;12010 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;12011 esac12012 else :12013 # compilation failed12014 lt_cv_dlopen_self_static=no12015 fi12016 fi12017 rm -fr conftest*12018 12019 12020 fi12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&512022 $as_echo "$lt_cv_dlopen_self_static" >&6; }12023 fi12024 12025 CPPFLAGS=$save_CPPFLAGS12026 LDFLAGS=$save_LDFLAGS12027 LIBS=$save_LIBS12028 ;;12029 esac12030 12031 case $lt_cv_dlopen_self in12032 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;12033 *) enable_dlopen_self=unknown ;;12034 esac12035 12036 case $lt_cv_dlopen_self_static in12037 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;12038 *) enable_dlopen_self_static=unknown ;;12039 esac12040 fi12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 striplib=12059 old_striplib=12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&512061 $as_echo_n "checking whether stripping libraries is possible... " >&6; }12062 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then12063 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"12064 test -z "$striplib" && striplib="$STRIP --strip-unneeded"12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512066 $as_echo "yes" >&6; }12067 else12068 # FIXME - insert some real tests, host_os isn't really good enough12069 case $host_os in12070 darwin*)12071 if test -n "$STRIP"; then12072 striplib="$STRIP -x"12073 old_striplib="$STRIP -S"12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&512075 $as_echo "yes" >&6; }12076 else12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512078 $as_echo "no" >&6; }12079 fi12080 ;;12081 *)12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512083 $as_echo "no" >&6; }12084 ;;12085 esac12086 fi12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 # Report what library types will actually be built12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&512101 $as_echo_n "checking if libtool supports shared libraries... " >&6; }12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&512103 $as_echo "$can_build_shared" >&6; }12104 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&512106 $as_echo_n "checking whether to build shared libraries... " >&6; }12107 test no = "$can_build_shared" && enable_shared=no12108 12109 # On AIX, shared libraries and static libraries use the same namespace, and12110 # are all built from PIC.12111 case $host_os in12112 aix3*)12113 test yes = "$enable_shared" && enable_static=no12114 if test -n "$RANLIB"; then12115 archive_cmds="$archive_cmds~\$RANLIB \$lib"12116 postinstall_cmds='$RANLIB $lib'12117 fi12118 ;;12119 12120 aix[4-9]*)12121 if test ia64 != "$host_cpu"; then12122 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in12123 yes,aix,yes) ;; # shared object as lib.so file only12124 yes,svr4,*) ;; # shared object as lib.so archive member only12125 yes,*) enable_static=no ;; # shared object in lib.a archive as well12126 esac12127 fi12128 ;;12129 esac12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&512131 $as_echo "$enable_shared" >&6; }12132 12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&512134 $as_echo_n "checking whether to build static libraries... " >&6; }12135 # Make sure either enable_shared or enable_static is yes.12136 test yes = "$enable_shared" || enable_static=yes12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&512138 $as_echo "$enable_static" >&6; }12139 12140 12141 12142 12143 fi12144 ac_ext=c12145 ac_cpp='$CPP $CPPFLAGS'12146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12148 ac_compiler_gnu=$ac_cv_c_compiler_gnu12149 12150 CC=$lt_save_CC12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 ac_config_commands="$ac_config_commands libtool"12167 12168 12169 12170 12171 # Only expand once:12172 12173 12174 12175 ac_ext=cpp12176 ac_cpp='$CXXCPP $CPPFLAGS'12177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12180 if test -z "$CXX"; then12181 if test -n "$CCC"; then12182 CXX=$CCC12183 else12184 if test -n "$ac_tool_prefix"; then12185 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12186 do12187 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.12188 set dummy $ac_tool_prefix$ac_prog; ac_word=$212189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512190 $as_echo_n "checking for $ac_word... " >&6; }12191 if ${ac_cv_prog_CXX+:} false; then :12192 $as_echo_n "(cached) " >&612193 else12194 if test -n "$CXX"; then12195 ac_cv_prog_CXX="$CXX" # Let the user override the test.12196 else12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12198 for as_dir in $PATH12199 do12200 IFS=$as_save_IFS12201 test -z "$as_dir" && as_dir=.12202 for ac_exec_ext in '' $ac_executable_extensions; do12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12204 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512206 break 212207 fi12208 done12209 done12210 IFS=$as_save_IFS12211 12212 fi12213 fi12214 CXX=$ac_cv_prog_CXX12215 if test -n "$CXX"; then12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&512217 $as_echo "$CXX" >&6; }12218 else12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512220 $as_echo "no" >&6; }12221 fi12222 12223 12224 test -n "$CXX" && break12225 done12226 fi12227 if test -z "$CXX"; then12228 ac_ct_CXX=$CXX12229 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC12230 do12231 # Extract the first word of "$ac_prog", so it can be a program name with args.12232 set dummy $ac_prog; ac_word=$212233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&512234 $as_echo_n "checking for $ac_word... " >&6; }12235 if ${ac_cv_prog_ac_ct_CXX+:} false; then :12236 $as_echo_n "(cached) " >&612237 else12238 if test -n "$ac_ct_CXX"; then12239 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.12240 else12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR12242 for as_dir in $PATH12243 do12244 IFS=$as_save_IFS12245 test -z "$as_dir" && as_dir=.12246 for ac_exec_ext in '' $ac_executable_extensions; do12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then12248 ac_cv_prog_ac_ct_CXX="$ac_prog"12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&512250 break 212251 fi12252 done12253 done12254 IFS=$as_save_IFS12255 12256 fi12257 fi12258 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX12259 if test -n "$ac_ct_CXX"; then12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&512261 $as_echo "$ac_ct_CXX" >&6; }12262 else12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512264 $as_echo "no" >&6; }12265 fi12266 12267 12268 test -n "$ac_ct_CXX" && break12269 done12270 12271 if test "x$ac_ct_CXX" = x; then12272 CXX="g++"12273 else12274 case $cross_compiling:$ac_tool_warned in12275 yes:)12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&512277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}12278 ac_tool_warned=yes ;;12279 esac12280 CXX=$ac_ct_CXX12281 fi12282 fi12283 12284 fi12285 fi12286 # Provide some information about the compiler.12287 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&512288 set X $ac_compile12289 ac_compiler=$212290 for ac_option in --version -v -V -qversion; do12291 { { ac_try="$ac_compiler $ac_option >&5"12292 case "(($ac_try" in12293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;12294 *) ac_try_echo=$ac_try;;12295 esac12296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""12297 $as_echo "$ac_try_echo"; } >&512298 (eval "$ac_compiler $ac_option >&5") 2>conftest.err12299 ac_status=$?12300 if test -s conftest.err; then12301 sed '10a\12302 ... rest of stderr output deleted ...12303 10q' conftest.err >conftest.er112304 cat conftest.er1 >&512305 fi12306 rm -f conftest.er1 conftest.err12307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&512308 test $ac_status = 0; }12309 done12310 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&512312 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }12313 if ${ac_cv_cxx_compiler_gnu+:} false; then :12314 $as_echo_n "(cached) " >&612315 else12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12317 /* end confdefs.h. */12318 12319 int12320 main ()12321 {12322 #ifndef __GNUC__12323 choke me12324 #endif12325 12326 ;12327 return 0;12328 }12329 _ACEOF12330 if ac_fn_cxx_try_compile "$LINENO"; then :12331 ac_compiler_gnu=yes12332 else12333 ac_compiler_gnu=no12334 fi12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12336 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu12337 12338 fi12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&512340 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }12341 if test $ac_compiler_gnu = yes; then12342 GXX=yes12343 else12344 GXX=12345 fi12346 ac_test_CXXFLAGS=${CXXFLAGS+set}12347 ac_save_CXXFLAGS=$CXXFLAGS12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&512349 $as_echo_n "checking whether $CXX accepts -g... " >&6; }12350 if ${ac_cv_prog_cxx_g+:} false; then :12351 $as_echo_n "(cached) " >&612352 else12353 ac_save_cxx_werror_flag=$ac_cxx_werror_flag12354 ac_cxx_werror_flag=yes12355 ac_cv_prog_cxx_g=no12356 CXXFLAGS="-g"12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12358 /* end confdefs.h. */12359 12360 int12361 main ()12362 {12363 12364 ;12365 return 0;12366 }12367 _ACEOF12368 if ac_fn_cxx_try_compile "$LINENO"; then :12369 ac_cv_prog_cxx_g=yes12370 else12371 CXXFLAGS=""12372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12373 /* end confdefs.h. */12374 12375 int12376 main ()12377 {12378 12379 ;12380 return 0;12381 }12382 _ACEOF12383 if ac_fn_cxx_try_compile "$LINENO"; then :12384 12385 else12386 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12387 CXXFLAGS="-g"12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12389 /* end confdefs.h. */12390 12391 int12392 main ()12393 {12394 12395 ;12396 return 0;12397 }12398 _ACEOF12399 if ac_fn_cxx_try_compile "$LINENO"; then :12400 ac_cv_prog_cxx_g=yes12401 fi12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12403 fi12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12405 fi12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext12407 ac_cxx_werror_flag=$ac_save_cxx_werror_flag12408 fi12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&512410 $as_echo "$ac_cv_prog_cxx_g" >&6; }12411 if test "$ac_test_CXXFLAGS" = set; then12412 CXXFLAGS=$ac_save_CXXFLAGS12413 elif test $ac_cv_prog_cxx_g = yes; then12414 if test "$GXX" = yes; then12415 CXXFLAGS="-g -O2"12416 else12417 CXXFLAGS="-g"12418 fi12419 else12420 if test "$GXX" = yes; then12421 CXXFLAGS="-O2"12422 else12423 CXXFLAGS=12424 fi12425 fi12426 ac_ext=c12427 ac_cpp='$CPP $CPPFLAGS'12428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12430 ac_compiler_gnu=$ac_cv_c_compiler_gnu12431 12432 depcc="$CXX" am_compiler_list=12433 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&512435 $as_echo_n "checking dependency style of $depcc... " >&6; }12436 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :12437 $as_echo_n "(cached) " >&612438 else12439 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then12440 # We make a subdir and do the tests there. Otherwise we can end up12441 # making bogus files that we don't know about and never remove. For12442 # instance it was reported that on HP-UX the gcc test will end up12443 # making a dummy file named 'D' -- because '-MD' means "put the output12444 # in D".12445 rm -rf conftest.dir12446 mkdir conftest.dir12447 # Copy depcomp to subdir because otherwise we won't find it if we're12448 # using a relative directory.12449 cp "$am_depcomp" conftest.dir12450 cd conftest.dir12451 # We will build objects and dependencies in a subdirectory because12452 # it helps to detect inapplicable dependency modes. For instance12453 # both Tru64's cc and ICC support -MD to output dependencies as a12454 # side effect of compilation, but ICC will put the dependencies in12455 # the current directory while Tru64 will put them in the object12456 # directory.12457 mkdir sub12458 12459 am_cv_CXX_dependencies_compiler_type=none12460 if test "$am_compiler_list" = ""; then12461 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`12462 fi12463 am__universal=false12464 case " $depcc " in #(12465 *\ -arch\ *\ -arch\ *) am__universal=true ;;12466 esac12467 12468 for depmode in $am_compiler_list; do12469 # Setup a source with many dependencies, because some compilers12470 # like to wrap large dependency lists on column 80 (with \), and12471 # we should not choose a depcomp mode which is confused by this.12472 #12473 # We need to recreate these files for each test, as the compiler may12474 # overwrite some of them when testing with obscure command lines.12475 # This happens at least with the AIX C compiler.12476 : > sub/conftest.c12477 for i in 1 2 3 4 5 6; do12478 echo '#include "conftst'$i'.h"' >> sub/conftest.c12479 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with12480 # Solaris 10 /bin/sh.12481 echo '/* dummy */' > sub/conftst$i.h12482 done12483 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf12484 12485 # We check with '-c' and '-o' for the sake of the "dashmstdout"12486 # mode. It turns out that the SunPro C++ compiler does not properly12487 # handle '-M -o', and we need to detect this. Also, some Intel12488 # versions had trouble with output in subdirs.12489 am__obj=sub/conftest.${OBJEXT-o}12490 am__minus_obj="-o $am__obj"12491 case $depmode in12492 gcc)12493 # This depmode causes a compiler race in universal mode.12494 test "$am__universal" = false || continue12495 ;;12496 nosideeffect)12497 # After this tag, mechanisms are not by side-effect, so they'll12498 # only be used when explicitly requested.12499 if test "x$enable_dependency_tracking" = xyes; then12500 continue12501 else12502 break12503 fi12504 ;;12505 msvc7 | msvc7msys | msvisualcpp | msvcmsys)12506 # This compiler won't grok '-c -o', but also, the minuso test has12507 # not run yet. These depmodes are late enough in the game, and12508 # so weak that their functioning should not be impacted.12509 am__obj=conftest.${OBJEXT-o}12510 am__minus_obj=12511 ;;12512 none) break ;;12513 esac12514 if depmode=$depmode \12515 source=sub/conftest.c object=$am__obj \12516 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \12517 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \12518 >/dev/null 2>conftest.err &&12519 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&12520 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&12521 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&12522 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then12523 # icc doesn't choke on unknown options, it will just issue warnings12524 # or remarks (even with -Werror). So we grep stderr for any message12525 # that says an option was ignored or not supported.12526 # When given -MP, icc 7.0 and 7.1 complain thusly:12527 # icc: Command line warning: ignoring option '-M'; no argument required12528 # The diagnosis changed in icc 8.0:12529 # icc: Command line remark: option '-MP' not supported12530 if (grep 'ignoring option' conftest.err ||12531 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else12532 am_cv_CXX_dependencies_compiler_type=$depmode12533 break12534 fi12535 fi12536 done12537 12538 cd ..12539 rm -rf conftest.dir12540 else12541 am_cv_CXX_dependencies_compiler_type=none12542 fi12543 12544 fi12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&512546 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }12547 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type12548 12549 if12550 test "x$enable_dependency_tracking" != xno \12551 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then12552 am__fastdepCXX_TRUE=12553 am__fastdepCXX_FALSE='#'12554 else12555 am__fastdepCXX_TRUE='#'12556 am__fastdepCXX_FALSE=12557 fi12558 12559 12560 12561 12562 func_stripname_cnf ()12563 {12564 case $2 in12565 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;12566 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;12567 esac12568 } # func_stripname_cnf12569 12570 if test -n "$CXX" && ( test no != "$CXX" &&12571 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||12572 (test g++ != "$CXX"))); then12573 ac_ext=cpp12574 ac_cpp='$CXXCPP $CPPFLAGS'12575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&512579 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }12580 if test -z "$CXXCPP"; then12581 if ${ac_cv_prog_CXXCPP+:} false; then :12582 $as_echo_n "(cached) " >&612583 else12584 # Double quotes because CXXCPP needs to be expanded12585 for CXXCPP in "$CXX -E" "/lib/cpp"12586 do12587 ac_preproc_ok=false12588 for ac_cxx_preproc_warn_flag in '' yes12589 do12590 # Use a header file that comes with gcc, so configuring glibc12591 # with a fresh cross-compiler works.12592 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12593 # <limits.h> exists even on freestanding compilers.12594 # On the NeXT, cc -E runs the code through the compiler's parser,12595 # not just through cpp. "Syntax error" is here to catch this case.12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12597 /* end confdefs.h. */12598 #ifdef __STDC__12599 # include <limits.h>12600 #else12601 # include <assert.h>12602 #endif12603 Syntax error12604 _ACEOF12605 if ac_fn_cxx_try_cpp "$LINENO"; then :12606 12607 else12608 # Broken: fails on valid input.12609 continue12610 fi12611 rm -f conftest.err conftest.i conftest.$ac_ext12612 12613 # OK, works on sane cases. Now check whether nonexistent headers12614 # can be detected and how.12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12616 /* end confdefs.h. */12617 #include <ac_nonexistent.h>12618 _ACEOF12619 if ac_fn_cxx_try_cpp "$LINENO"; then :12620 # Broken: success on invalid input.12621 continue12622 else12623 # Passes both tests.12624 ac_preproc_ok=:12625 break12626 fi12627 rm -f conftest.err conftest.i conftest.$ac_ext12628 12629 done12630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12631 rm -f conftest.i conftest.err conftest.$ac_ext12632 if $ac_preproc_ok; then :12633 break12634 fi12635 12636 done12637 ac_cv_prog_CXXCPP=$CXXCPP12638 12639 fi12640 CXXCPP=$ac_cv_prog_CXXCPP12641 else12642 ac_cv_prog_CXXCPP=$CXXCPP12643 fi12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&512645 $as_echo "$CXXCPP" >&6; }12646 ac_preproc_ok=false12647 for ac_cxx_preproc_warn_flag in '' yes12648 do12649 # Use a header file that comes with gcc, so configuring glibc12650 # with a fresh cross-compiler works.12651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since12652 # <limits.h> exists even on freestanding compilers.12653 # On the NeXT, cc -E runs the code through the compiler's parser,12654 # not just through cpp. "Syntax error" is here to catch this case.12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12656 /* end confdefs.h. */12657 #ifdef __STDC__12658 # include <limits.h>12659 #else12660 # include <assert.h>12661 #endif12662 Syntax error12663 _ACEOF12664 if ac_fn_cxx_try_cpp "$LINENO"; then :12665 12666 else12667 # Broken: fails on valid input.12668 continue12669 fi12670 rm -f conftest.err conftest.i conftest.$ac_ext12671 12672 # OK, works on sane cases. Now check whether nonexistent headers12673 # can be detected and how.12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12675 /* end confdefs.h. */12676 #include <ac_nonexistent.h>12677 _ACEOF12678 if ac_fn_cxx_try_cpp "$LINENO"; then :12679 # Broken: success on invalid input.12680 continue12681 else12682 # Passes both tests.12683 ac_preproc_ok=:12684 break12685 fi12686 rm -f conftest.err conftest.i conftest.$ac_ext12687 12688 done12689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.12690 rm -f conftest.i conftest.err conftest.$ac_ext12691 if $ac_preproc_ok; then :12692 12693 else12694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&512695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}12696 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check12697 See \`config.log' for more details" "$LINENO" 5; }12698 fi12699 12700 ac_ext=c12701 ac_cpp='$CPP $CPPFLAGS'12702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'12703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12704 ac_compiler_gnu=$ac_cv_c_compiler_gnu12705 12706 else12707 _lt_caught_CXX_error=yes12708 fi12709 12710 ac_ext=cpp12711 ac_cpp='$CXXCPP $CPPFLAGS'12712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'12713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'12714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu12715 12716 archive_cmds_need_lc_CXX=no12717 allow_undefined_flag_CXX=12718 always_export_symbols_CXX=no12719 archive_expsym_cmds_CXX=12720 compiler_needs_object_CXX=no12721 export_dynamic_flag_spec_CXX=12722 hardcode_direct_CXX=no12723 hardcode_direct_absolute_CXX=no12724 hardcode_libdir_flag_spec_CXX=12725 hardcode_libdir_separator_CXX=12726 hardcode_minus_L_CXX=no12727 hardcode_shlibpath_var_CXX=unsupported12728 hardcode_automatic_CXX=no12729 inherit_rpath_CXX=no12730 module_cmds_CXX=12731 module_expsym_cmds_CXX=12732 link_all_deplibs_CXX=unknown12733 old_archive_cmds_CXX=$old_archive_cmds12734 reload_flag_CXX=$reload_flag12735 reload_cmds_CXX=$reload_cmds12736 no_undefined_flag_CXX=12737 whole_archive_flag_spec_CXX=12738 enable_shared_with_static_runtimes_CXX=no12739 12740 # Source file extension for C++ test sources.12741 ac_ext=cpp12742 12743 # Object file extension for compiled C++ test sources.12744 objext=o12745 objext_CXX=$objext12746 12747 # No sense in running all these tests if we already determined that12748 # the CXX compiler isn't working. Some variables (like enable_shared)12749 # are currently assumed to apply to all compilers on this platform,12750 # and will be corrupted by setting them based on a non-working compiler.12751 if test yes != "$_lt_caught_CXX_error"; then12752 # Code to be used in simple compile tests12753 lt_simple_compile_test_code="int some_variable = 0;"12754 12755 # Code to be used in simple link tests12756 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'12757 12758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.12759 12760 12761 12762 12763 12764 12765 # If no C compiler was specified, use CC.12766 LTCC=${LTCC-"$CC"}12767 12768 # If no C compiler flags were specified, use CFLAGS.12769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}12770 12771 # Allow CC to be a program name with arguments.12772 compiler=$CC12773 12774 12775 # save warnings/boilerplate of simple test code12776 ac_outfile=conftest.$ac_objext12777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext12778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12779 _lt_compiler_boilerplate=`cat conftest.err`12780 $RM conftest*12781 12782 ac_outfile=conftest.$ac_objext12783 echo "$lt_simple_link_test_code" >conftest.$ac_ext12784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err12785 _lt_linker_boilerplate=`cat conftest.err`12786 $RM -r conftest*12787 12788 12789 # Allow CC to be a program name with arguments.12790 lt_save_CC=$CC12791 lt_save_CFLAGS=$CFLAGS12792 lt_save_LD=$LD12793 lt_save_GCC=$GCC12794 GCC=$GXX12795 lt_save_with_gnu_ld=$with_gnu_ld12796 lt_save_path_LD=$lt_cv_path_LD12797 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then12798 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx12799 else12800 $as_unset lt_cv_prog_gnu_ld12801 fi12802 if test -n "${lt_cv_path_LDCXX+set}"; then12803 lt_cv_path_LD=$lt_cv_path_LDCXX12804 else12805 $as_unset lt_cv_path_LD12806 fi12807 test -z "${LDCXX+set}" || LD=$LDCXX12808 CC=${CXX-"c++"}12809 CFLAGS=$CXXFLAGS12810 compiler=$CC12811 compiler_CXX=$CC12812 func_cc_basename $compiler12813 cc_basename=$func_cc_basename_result12814 12815 12816 if test -n "$compiler"; then12817 # We don't want -fno-exception when compiling C++ code, so set the12818 # no_builtin_flag separately12819 if test yes = "$GXX"; then12820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'12821 else12822 lt_prog_compiler_no_builtin_flag_CXX=12823 fi12824 12825 if test yes = "$GXX"; then12826 # Set up default GNU C++ configuration12827 12828 12829 12830 # Check whether --with-gnu-ld was given.12831 if test "${with_gnu_ld+set}" = set; then :12832 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes12833 else12834 with_gnu_ld=no12835 fi12836 12837 ac_prog=ld12838 if test yes = "$GCC"; then12839 # Check if gcc -print-prog-name=ld gives a path.12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&512841 $as_echo_n "checking for ld used by $CC... " >&6; }12842 case $host in12843 *-*-mingw*)12844 # gcc leaves a trailing carriage return, which upsets mingw12845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;12846 *)12847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;12848 esac12849 case $ac_prog in12850 # Accept absolute paths.12851 [\\/]* | ?:[\\/]*)12852 re_direlt='/[^/][^/]*/\.\./'12853 # Canonicalize the pathname of ld12854 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`12855 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do12856 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`12857 done12858 test -z "$LD" && LD=$ac_prog12859 ;;12860 "")12861 # If it fails, then pretend we aren't using GCC.12862 ac_prog=ld12863 ;;12864 *)12865 # If it is relative, then search for the first ld in PATH.12866 with_gnu_ld=unknown12867 ;;12868 esac12869 elif test yes = "$with_gnu_ld"; then12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&512871 $as_echo_n "checking for GNU ld... " >&6; }12872 else12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&512874 $as_echo_n "checking for non-GNU ld... " >&6; }12875 fi12876 if ${lt_cv_path_LD+:} false; then :12877 $as_echo_n "(cached) " >&612878 else12879 if test -z "$LD"; then12880 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR12881 for ac_dir in $PATH; do12882 IFS=$lt_save_ifs12883 test -z "$ac_dir" && ac_dir=.12884 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then12885 lt_cv_path_LD=$ac_dir/$ac_prog12886 # Check to see if the program is GNU ld. I'd rather use --version,12887 # but apparently some variants of GNU ld only accept -v.12888 # Break only if it was the GNU/non-GNU ld that we prefer.12889 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in12890 *GNU* | *'with BFD'*)12891 test no != "$with_gnu_ld" && break12892 ;;12893 *)12894 test yes != "$with_gnu_ld" && break12895 ;;12896 esac12897 fi12898 done12899 IFS=$lt_save_ifs12900 else12901 lt_cv_path_LD=$LD # Let the user override the test with a path.12902 fi12903 fi12904 12905 LD=$lt_cv_path_LD12906 if test -n "$LD"; then12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&512908 $as_echo "$LD" >&6; }12909 else12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&512911 $as_echo "no" >&6; }12912 fi12913 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 512914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&512915 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }12916 if ${lt_cv_prog_gnu_ld+:} false; then :12917 $as_echo_n "(cached) " >&612918 else12919 # I'd rather use --version here, but apparently some GNU lds only accept -v.12920 case `$LD -v 2>&1 </dev/null` in12921 *GNU* | *'with BFD'*)12922 lt_cv_prog_gnu_ld=yes12923 ;;12924 *)12925 lt_cv_prog_gnu_ld=no12926 ;;12927 esac12928 fi12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&512930 $as_echo "$lt_cv_prog_gnu_ld" >&6; }12931 with_gnu_ld=$lt_cv_prog_gnu_ld12932 12933 12934 12935 12936 12937 12938 12939 # Check if GNU C++ uses GNU ld as the underlying linker, since the12940 # archiving commands below assume that GNU ld is being used.12941 if test yes = "$with_gnu_ld"; then12942 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'12943 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'12944 12945 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'12946 export_dynamic_flag_spec_CXX='$wl--export-dynamic'12947 12948 # If archive_cmds runs LD, not CC, wlarc should be empty12949 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to12950 # investigate it a little bit more. (MM)12951 wlarc='$wl'12952 12953 # ancient GNU ld didn't support --whole-archive et. al.12954 if eval "`$CC -print-prog-name=ld` --help 2>&1" |12955 $GREP 'no-whole-archive' > /dev/null; then12956 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'12957 else12958 whole_archive_flag_spec_CXX=12959 fi12960 else12961 with_gnu_ld=no12962 wlarc=12963 12964 # A generic and very simple default shared library creation12965 # command for GNU C++ for the case where it uses the native12966 # linker, instead of GNU ld. If possible, this setting should12967 # overridden to take advantage of the native linker features on12968 # the platform it is being used on.12969 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'12970 fi12971 12972 # Commands to make compiler produce verbose output that lists12973 # what "hidden" libraries, object files and flags are used when12974 # linking a shared library.12975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'12976 12977 else12978 GXX=no12979 with_gnu_ld=no12980 wlarc=12981 fi12982 12983 # PORTME: fill in a description of your system's C++ link characteristics12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&512985 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }12986 ld_shlibs_CXX=yes12987 case $host_os in12988 aix3*)12989 # FIXME: insert proper C++ library support12990 ld_shlibs_CXX=no12991 ;;12992 aix[4-9]*)12993 if test ia64 = "$host_cpu"; then12994 # On IA64, the linker does run time linking by default, so we don't12995 # have to do anything special.12996 aix_use_runtimelinking=no12997 exp_sym_flag='-Bexport'12998 no_entry_flag=12999 else13000 aix_use_runtimelinking=no13001 13002 # Test if we are trying to use run time linking or normal13003 # AIX style linking. If -brtl is somewhere in LDFLAGS, we13004 # have runtime linking enabled, and use it for executables.13005 # For shared libraries, we enable/disable runtime linking13006 # depending on the kind of the shared library created -13007 # when "with_aix_soname,aix_use_runtimelinking" is:13008 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables13009 # "aix,yes" lib.so shared, rtl:yes, for executables13010 # lib.a static archive13011 # "both,no" lib.so.V(shr.o) shared, rtl:yes13012 # lib.a(lib.so.V) shared, rtl:no, for executables13013 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables13014 # lib.a(lib.so.V) shared, rtl:no13015 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables13016 # lib.a static archive13017 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)13018 for ld_flag in $LDFLAGS; do13019 case $ld_flag in13020 *-brtl*)13021 aix_use_runtimelinking=yes13022 break13023 ;;13024 esac13025 done13026 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then13027 # With aix-soname=svr4, we create the lib.so.V shared archives only,13028 # so we don't have lib.a shared libs to link our executables.13029 # We have to force runtime linking in this case.13030 aix_use_runtimelinking=yes13031 LDFLAGS="$LDFLAGS -Wl,-brtl"13032 fi13033 ;;13034 esac13035 13036 exp_sym_flag='-bexport'13037 no_entry_flag='-bnoentry'13038 fi13039 13040 # When large executables or shared objects are built, AIX ld can13041 # have problems creating the table of contents. If linking a library13042 # or program results in "error TOC overflow" add -mminimal-toc to13043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not13044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.13045 13046 archive_cmds_CXX=''13047 hardcode_direct_CXX=yes13048 hardcode_direct_absolute_CXX=yes13049 hardcode_libdir_separator_CXX=':'13050 link_all_deplibs_CXX=yes13051 file_list_spec_CXX='$wl-f,'13052 case $with_aix_soname,$aix_use_runtimelinking in13053 aix,*) ;; # no import file13054 svr4,* | *,yes) # use import file13055 # The Import File defines what to hardcode.13056 hardcode_direct_CXX=no13057 hardcode_direct_absolute_CXX=no13058 ;;13059 esac13060 13061 if test yes = "$GXX"; then13062 case $host_os in aix4.[012]|aix4.[012].*)13063 # We only want to do this on AIX 4.2 and lower, the check13064 # below for broken collect2 doesn't work under 4.3+13065 collect2name=`$CC -print-prog-name=collect2`13066 if test -f "$collect2name" &&13067 strings "$collect2name" | $GREP resolve_lib_name >/dev/null13068 then13069 # We have reworked collect213070 :13071 else13072 # We have old collect213073 hardcode_direct_CXX=unsupported13074 # It fails to find uninstalled libraries when the uninstalled13075 # path is not listed in the libpath. Setting hardcode_minus_L13076 # to unsupported forces relinking13077 hardcode_minus_L_CXX=yes13078 hardcode_libdir_flag_spec_CXX='-L$libdir'13079 hardcode_libdir_separator_CXX=13080 fi13081 esac13082 shared_flag='-shared'13083 if test yes = "$aix_use_runtimelinking"; then13084 shared_flag=$shared_flag' $wl-G'13085 fi13086 # Need to ensure runtime linking is disabled for the traditional13087 # shared library, or the linker may eventually find shared libraries13088 # /with/ Import File - we do not want to mix them.13089 shared_flag_aix='-shared'13090 shared_flag_svr4='-shared $wl-G'13091 else13092 # not using gcc13093 if test ia64 = "$host_cpu"; then13094 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release13095 # chokes on -Wl,-G. The following line is correct:13096 shared_flag='-G'13097 else13098 if test yes = "$aix_use_runtimelinking"; then13099 shared_flag='$wl-G'13100 else13101 shared_flag='$wl-bM:SRE'13102 fi13103 shared_flag_aix='$wl-bM:SRE'13104 shared_flag_svr4='$wl-G'13105 fi13106 fi13107 13108 export_dynamic_flag_spec_CXX='$wl-bexpall'13109 # It seems that -bexpall does not export symbols beginning with13110 # underscore (_), so it is better to generate a list of symbols to13111 # export.13112 always_export_symbols_CXX=yes13113 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then13114 # Warning - without using the other runtime loading flags (-brtl),13115 # -berok will link without error, but may produce a broken library.13116 # The "-G" linker flag allows undefined symbols.13117 no_undefined_flag_CXX='-bernotok'13118 # Determine the default libpath from the value encoded in an empty13119 # executable.13120 if test set = "${lt_cv_aix_libpath+set}"; then13121 aix_libpath=$lt_cv_aix_libpath13122 else13123 if ${lt_cv_aix_libpath__CXX+:} false; then :13124 $as_echo_n "(cached) " >&613125 else13126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13127 /* end confdefs.h. */13128 13129 int13130 main ()13131 {13132 13133 ;13134 return 0;13135 }13136 _ACEOF13137 if ac_fn_cxx_try_link "$LINENO"; then :13138 13139 lt_aix_libpath_sed='13140 /Import File Strings/,/^$/ {13141 /^0/ {13142 s/^0 *\([^ ]*\) *$/\1/13143 p13144 }13145 }'13146 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13147 # Check for a 64-bit object if we didn't find anything.13148 if test -z "$lt_cv_aix_libpath__CXX"; then13149 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13150 fi13151 fi13152 rm -f core conftest.err conftest.$ac_objext \13153 conftest$ac_exeext conftest.$ac_ext13154 if test -z "$lt_cv_aix_libpath__CXX"; then13155 lt_cv_aix_libpath__CXX=/usr/lib:/lib13156 fi13157 13158 fi13159 13160 aix_libpath=$lt_cv_aix_libpath__CXX13161 fi13162 13163 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13164 13165 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_flag13166 else13167 if test ia64 = "$host_cpu"; then13168 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'13169 allow_undefined_flag_CXX="-z nodefs"13170 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"13171 else13172 # Determine the default libpath from the value encoded in an13173 # empty executable.13174 if test set = "${lt_cv_aix_libpath+set}"; then13175 aix_libpath=$lt_cv_aix_libpath13176 else13177 if ${lt_cv_aix_libpath__CXX+:} false; then :13178 $as_echo_n "(cached) " >&613179 else13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13181 /* end confdefs.h. */13182 13183 int13184 main ()13185 {13186 13187 ;13188 return 0;13189 }13190 _ACEOF13191 if ac_fn_cxx_try_link "$LINENO"; then :13192 13193 lt_aix_libpath_sed='13194 /Import File Strings/,/^$/ {13195 /^0/ {13196 s/^0 *\([^ ]*\) *$/\1/13197 p13198 }13199 }'13200 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13201 # Check for a 64-bit object if we didn't find anything.13202 if test -z "$lt_cv_aix_libpath__CXX"; then13203 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13204 fi13205 fi13206 rm -f core conftest.err conftest.$ac_objext \13207 conftest$ac_exeext conftest.$ac_ext13208 if test -z "$lt_cv_aix_libpath__CXX"; then13209 lt_cv_aix_libpath__CXX=/usr/lib:/lib13210 fi13211 13212 fi13213 13214 aix_libpath=$lt_cv_aix_libpath__CXX13215 fi13216 13217 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13218 # Warning - without using the other run time loading flags,13219 # -berok will link without error, but may produce a broken library.13220 no_undefined_flag_CXX=' $wl-bernotok'13221 allow_undefined_flag_CXX=' $wl-berok'13222 if test yes = "$with_gnu_ld"; then13223 # We only use this code for GNU lds that support --whole-archive.13224 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13225 else13226 # Exported symbols can be pulled into shared objects from archives13227 whole_archive_flag_spec_CXX='$convenience'13228 fi13229 archive_cmds_need_lc_CXX=yes13230 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'13231 # -brtl affects multiple linker settings, -berok does not and is overridden later13232 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'13233 if test svr4 != "$with_aix_soname"; then13234 # This is similar to how AIX traditionally builds its shared13235 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.13236 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'13237 fi13238 if test aix != "$with_aix_soname"; then13239 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'13240 else13241 # used by -dlpreopen to get the symbols13242 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'13243 fi13244 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'13245 fi13246 fi13247 ;;13248 13249 beos*)13250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then13251 allow_undefined_flag_CXX=unsupported13252 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc13253 # support --undefined. This deserves some investigation. FIXME13254 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13255 else13256 ld_shlibs_CXX=no13257 fi13258 ;;13259 13260 chorus*)13261 case $cc_basename in13262 *)13263 # FIXME: insert proper C++ library support13264 ld_shlibs_CXX=no13265 ;;13266 esac13267 ;;13268 13269 cygwin* | mingw* | pw32* | cegcc*)13270 case $GXX,$cc_basename in13271 ,cl* | no,cl*)13272 # Native MSVC13273 # hardcode_libdir_flag_spec is actually meaningless, as there is13274 # no search path for DLLs.13275 hardcode_libdir_flag_spec_CXX=' '13276 allow_undefined_flag_CXX=unsupported13277 always_export_symbols_CXX=yes13278 file_list_spec_CXX='@'13279 # Tell ltmain to make .lib files, not .a files.13280 libext=lib13281 # Tell ltmain to make .dll files, not .so files.13282 shrext_cmds=.dll13283 # FIXME: Setting linknames here is a bad hack.13284 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='13285 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13286 cp "$export_symbols" "$output_objdir/$soname.def";13287 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";13288 else13289 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;13290 fi~13291 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~13292 linknames='13293 # The linker will not automatically build a static lib if we build a DLL.13294 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'13295 enable_shared_with_static_runtimes_CXX=yes13296 # Don't use ranlib13297 old_postinstall_cmds_CXX='chmod 644 $oldlib'13298 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~13299 lt_tool_outputfile="@TOOL_OUTPUT@"~13300 case $lt_outputfile in13301 *.exe|*.EXE) ;;13302 *)13303 lt_outputfile=$lt_outputfile.exe13304 lt_tool_outputfile=$lt_tool_outputfile.exe13305 ;;13306 esac~13307 func_to_tool_file "$lt_outputfile"~13308 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then13309 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;13310 $RM "$lt_outputfile.manifest";13311 fi'13312 ;;13313 *)13314 # g++13315 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,13316 # as there is no search path for DLLs.13317 hardcode_libdir_flag_spec_CXX='-L$libdir'13318 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'13319 allow_undefined_flag_CXX=unsupported13320 always_export_symbols_CXX=no13321 enable_shared_with_static_runtimes_CXX=yes13322 13323 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then13324 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'13325 # If the export-symbols file already is a .def file, use it as13326 # is; otherwise, prepend EXPORTS...13327 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then13328 cp $export_symbols $output_objdir/$soname.def;13329 else13330 echo EXPORTS > $output_objdir/$soname.def;13331 cat $export_symbols >> $output_objdir/$soname.def;13332 fi~13333 $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'13334 else13335 ld_shlibs_CXX=no13336 fi13337 ;;13338 esac13339 ;;13340 darwin* | rhapsody*)13341 13342 13343 archive_cmds_need_lc_CXX=no13344 hardcode_direct_CXX=no13345 hardcode_automatic_CXX=yes13346 hardcode_shlibpath_var_CXX=unsupported13347 if test yes = "$lt_cv_ld_force_load"; then13348 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\"`'13349 13350 else13351 whole_archive_flag_spec_CXX=''13352 fi13353 link_all_deplibs_CXX=yes13354 allow_undefined_flag_CXX=$_lt_dar_allow_undefined13355 case $cc_basename in13356 ifort*|nagfor*) _lt_dar_can_shared=yes ;;13357 *) _lt_dar_can_shared=$GCC ;;13358 esac13359 if test yes = "$_lt_dar_can_shared"; then13360 output_verbose_link_cmd=func_echo_all13361 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"13362 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"13363 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"13364 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"13365 if test yes != "$lt_cv_apple_cc_single_mod"; then13366 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"13367 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"13368 fi13369 13370 else13371 ld_shlibs_CXX=no13372 fi13373 13374 ;;13375 13376 os2*)13377 hardcode_libdir_flag_spec_CXX='-L$libdir'13378 hardcode_minus_L_CXX=yes13379 allow_undefined_flag_CXX=unsupported13380 shrext_cmds=.dll13381 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13382 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13383 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13384 $ECHO EXPORTS >> $output_objdir/$libname.def~13385 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~13386 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13387 emximp -o $lib $output_objdir/$libname.def'13388 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~13389 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~13390 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~13391 $ECHO EXPORTS >> $output_objdir/$libname.def~13392 prefix_cmds="$SED"~13393 if test EXPORTS = "`$SED 1q $export_symbols`"; then13394 prefix_cmds="$prefix_cmds -e 1d";13395 fi~13396 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~13397 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~13398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~13399 emximp -o $lib $output_objdir/$libname.def'13400 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'13401 enable_shared_with_static_runtimes_CXX=yes13402 ;;13403 13404 dgux*)13405 case $cc_basename in13406 ec++*)13407 # FIXME: insert proper C++ library support13408 ld_shlibs_CXX=no13409 ;;13410 ghcx*)13411 # Green Hills C++ Compiler13412 # FIXME: insert proper C++ library support13413 ld_shlibs_CXX=no13414 ;;13415 *)13416 # FIXME: insert proper C++ library support13417 ld_shlibs_CXX=no13418 ;;13419 esac13420 ;;13421 13422 freebsd2.*)13423 # C++ shared libraries reported to be fairly broken before13424 # switch to ELF13425 ld_shlibs_CXX=no13426 ;;13427 13428 freebsd-elf*)13429 archive_cmds_need_lc_CXX=no13430 ;;13431 13432 freebsd* | dragonfly*)13433 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF13434 # conventions13435 ld_shlibs_CXX=yes13436 ;;13437 13438 haiku*)13439 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13440 link_all_deplibs_CXX=yes13441 ;;13442 13443 hpux9*)13444 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13445 hardcode_libdir_separator_CXX=:13446 export_dynamic_flag_spec_CXX='$wl-E'13447 hardcode_direct_CXX=yes13448 hardcode_minus_L_CXX=yes # Not in the search PATH,13449 # but as the default13450 # location of the library.13451 13452 case $cc_basename in13453 CC*)13454 # FIXME: insert proper C++ library support13455 ld_shlibs_CXX=no13456 ;;13457 aCC*)13458 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'13459 # Commands to make compiler produce verbose output that lists13460 # what "hidden" libraries, object files and flags are used when13461 # linking a shared library.13462 #13463 # There doesn't appear to be a way to prevent this compiler from13464 # explicitly linking system object files so we need to strip them13465 # from the output so that they don't get included in the library13466 # dependencies.13467 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"'13468 ;;13469 *)13470 if test yes = "$GXX"; then13471 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'13472 else13473 # FIXME: insert proper C++ library support13474 ld_shlibs_CXX=no13475 fi13476 ;;13477 esac13478 ;;13479 13480 hpux10*|hpux11*)13481 if test no = "$with_gnu_ld"; then13482 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'13483 hardcode_libdir_separator_CXX=:13484 13485 case $host_cpu in13486 hppa*64*|ia64*)13487 ;;13488 *)13489 export_dynamic_flag_spec_CXX='$wl-E'13490 ;;13491 esac13492 fi13493 case $host_cpu in13494 hppa*64*|ia64*)13495 hardcode_direct_CXX=no13496 hardcode_shlibpath_var_CXX=no13497 ;;13498 *)13499 hardcode_direct_CXX=yes13500 hardcode_direct_absolute_CXX=yes13501 hardcode_minus_L_CXX=yes # Not in the search PATH,13502 # but as the default13503 # location of the library.13504 ;;13505 esac13506 13507 case $cc_basename in13508 CC*)13509 # FIXME: insert proper C++ library support13510 ld_shlibs_CXX=no13511 ;;13512 aCC*)13513 case $host_cpu in13514 hppa*64*)13515 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13516 ;;13517 ia64*)13518 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13519 ;;13520 *)13521 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13522 ;;13523 esac13524 # Commands to make compiler produce verbose output that lists13525 # what "hidden" libraries, object files and flags are used when13526 # linking a shared library.13527 #13528 # There doesn't appear to be a way to prevent this compiler from13529 # explicitly linking system object files so we need to strip them13530 # from the output so that they don't get included in the library13531 # dependencies.13532 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"'13533 ;;13534 *)13535 if test yes = "$GXX"; then13536 if test no = "$with_gnu_ld"; then13537 case $host_cpu in13538 hppa*64*)13539 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13540 ;;13541 ia64*)13542 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13543 ;;13544 *)13545 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'13546 ;;13547 esac13548 fi13549 else13550 # FIXME: insert proper C++ library support13551 ld_shlibs_CXX=no13552 fi13553 ;;13554 esac13555 ;;13556 13557 interix[3-9]*)13558 hardcode_direct_CXX=no13559 hardcode_shlibpath_var_CXX=no13560 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13561 export_dynamic_flag_spec_CXX='$wl-E'13562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.13563 # Instead, shared libraries are loaded at an image base (0x10000000 by13564 # default) and relocated if they conflict, which is a slow very memory13565 # consuming and fragmenting process. To avoid this, we pick a random,13566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link13567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.13568 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'13569 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'13570 ;;13571 irix5* | irix6*)13572 case $cc_basename in13573 CC*)13574 # SGI C++13575 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'13576 13577 # Archives containing C++ object files must be created using13578 # "CC -ar", where "CC" is the IRIX C++ compiler. This is13579 # necessary to make sure instantiated templates are included13580 # in the archive.13581 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'13582 ;;13583 *)13584 if test yes = "$GXX"; then13585 if test no = "$with_gnu_ld"; then13586 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'13587 else13588 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'13589 fi13590 fi13591 link_all_deplibs_CXX=yes13592 ;;13593 esac13594 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13595 hardcode_libdir_separator_CXX=:13596 inherit_rpath_CXX=yes13597 ;;13598 13599 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)13600 case $cc_basename in13601 KCC*)13602 # Kuck and Associates, Inc. (KAI) C++ Compiler13603 13604 # KCC will only create a shared library if the output file13605 # ends with ".so" (or ".sl" for HP-UX), so rename the library13606 # to its proper name (with version) after linking.13607 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'13608 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'13609 # Commands to make compiler produce verbose output that lists13610 # what "hidden" libraries, object files and flags are used when13611 # linking a shared library.13612 #13613 # There doesn't appear to be a way to prevent this compiler from13614 # explicitly linking system object files so we need to strip them13615 # from the output so that they don't get included in the library13616 # dependencies.13617 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"'13618 13619 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13620 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13621 13622 # Archives containing C++ object files must be created using13623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.13624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'13625 ;;13626 icpc* | ecpc* )13627 # Intel C++13628 with_gnu_ld=yes13629 # version 8.0 and above of icpc choke on multiply defined symbols13630 # if we add $predep_objects and $postdep_objects, however 7.1 and13631 # earlier do not add the objects themselves.13632 case `$CC -V 2>&1` in13633 *"Version 7."*)13634 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13635 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'13636 ;;13637 *) # Version 8.0 or newer13638 tmp_idyn=13639 case $host_cpu in13640 ia64*) tmp_idyn=' -i_dynamic';;13641 esac13642 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13643 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'13644 ;;13645 esac13646 archive_cmds_need_lc_CXX=no13647 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13648 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13649 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'13650 ;;13651 pgCC* | pgcpp*)13652 # Portland Group C++ compiler13653 case `$CC -V` in13654 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)13655 prelink_cmds_CXX='tpldir=Template.dir~13656 rm -rf $tpldir~13657 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~13658 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'13659 old_archive_cmds_CXX='tpldir=Template.dir~13660 rm -rf $tpldir~13661 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~13662 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~13663 $RANLIB $oldlib'13664 archive_cmds_CXX='tpldir=Template.dir~13665 rm -rf $tpldir~13666 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13667 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13668 archive_expsym_cmds_CXX='tpldir=Template.dir~13669 rm -rf $tpldir~13670 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~13671 $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'13672 ;;13673 *) # Version 6 and above use weak symbols13674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13675 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'13676 ;;13677 esac13678 13679 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'13680 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13681 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'13682 ;;13683 cxx*)13684 # Compaq C++13685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13686 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'13687 13688 runpath_var=LD_RUN_PATH13689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13690 hardcode_libdir_separator_CXX=:13691 13692 # Commands to make compiler produce verbose output that lists13693 # what "hidden" libraries, object files and flags are used when13694 # linking a shared library.13695 #13696 # There doesn't appear to be a way to prevent this compiler from13697 # explicitly linking system object files so we need to strip them13698 # from the output so that they don't get included in the library13699 # dependencies.13700 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'13701 ;;13702 xl* | mpixl* | bgxl*)13703 # IBM XL 8.0 on PPC, with GNU ld13704 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13705 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13706 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'13707 if test yes = "$supports_anon_versioning"; then13708 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~13709 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~13710 echo "local: *; };" >> $output_objdir/$libname.ver~13711 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'13712 fi13713 ;;13714 *)13715 case `$CC -V 2>&1 | sed 5q` in13716 *Sun\ C*)13717 # Sun C++ 5.913718 no_undefined_flag_CXX=' -zdefs'13719 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13720 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'13721 hardcode_libdir_flag_spec_CXX='-R$libdir'13722 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'13723 compiler_needs_object_CXX=yes13724 13725 # Not sure whether something based on13726 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&113727 # would be better.13728 output_verbose_link_cmd='func_echo_all'13729 13730 # Archives containing C++ object files must be created using13731 # "CC -xar", where "CC" is the Sun C++ compiler. This is13732 # necessary to make sure instantiated templates are included13733 # in the archive.13734 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13735 ;;13736 esac13737 ;;13738 esac13739 ;;13740 13741 lynxos*)13742 # FIXME: insert proper C++ library support13743 ld_shlibs_CXX=no13744 ;;13745 13746 m88k*)13747 # FIXME: insert proper C++ library support13748 ld_shlibs_CXX=no13749 ;;13750 13751 mvs*)13752 case $cc_basename in13753 cxx*)13754 # FIXME: insert proper C++ library support13755 ld_shlibs_CXX=no13756 ;;13757 *)13758 # FIXME: insert proper C++ library support13759 ld_shlibs_CXX=no13760 ;;13761 esac13762 ;;13763 13764 netbsd*)13765 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then13766 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'13767 wlarc=13768 hardcode_libdir_flag_spec_CXX='-R$libdir'13769 hardcode_direct_CXX=yes13770 hardcode_shlibpath_var_CXX=no13771 fi13772 # Workaround some broken pre-1.5 toolchains13773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'13774 ;;13775 13776 *nto* | *qnx*)13777 ld_shlibs_CXX=yes13778 ;;13779 13780 openbsd* | bitrig*)13781 if test -f /usr/libexec/ld.so; then13782 hardcode_direct_CXX=yes13783 hardcode_shlibpath_var_CXX=no13784 hardcode_direct_absolute_CXX=yes13785 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'13786 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then13788 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'13789 export_dynamic_flag_spec_CXX='$wl-E'13790 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'13791 fi13792 output_verbose_link_cmd=func_echo_all13793 else13794 ld_shlibs_CXX=no13795 fi13796 ;;13797 13798 osf3* | osf4* | osf5*)13799 case $cc_basename in13800 KCC*)13801 # Kuck and Associates, Inc. (KAI) C++ Compiler13802 13803 # KCC will only create a shared library if the output file13804 # ends with ".so" (or ".sl" for HP-UX), so rename the library13805 # to its proper name (with version) after linking.13806 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'13807 13808 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'13809 hardcode_libdir_separator_CXX=:13810 13811 # Archives containing C++ object files must be created using13812 # the KAI C++ compiler.13813 case $host in13814 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;13815 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;13816 esac13817 ;;13818 RCC*)13819 # Rational C++ 2.4.113820 # FIXME: insert proper C++ library support13821 ld_shlibs_CXX=no13822 ;;13823 cxx*)13824 case $host in13825 osf3*)13826 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13827 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'13828 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13829 ;;13830 *)13831 allow_undefined_flag_CXX=' -expect_unresolved \*'13832 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'13833 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~13834 echo "-hidden">> $lib.exp~13835 $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~13836 $RM $lib.exp'13837 hardcode_libdir_flag_spec_CXX='-rpath $libdir'13838 ;;13839 esac13840 13841 hardcode_libdir_separator_CXX=:13842 13843 # Commands to make compiler produce verbose output that lists13844 # what "hidden" libraries, object files and flags are used when13845 # linking a shared library.13846 #13847 # There doesn't appear to be a way to prevent this compiler from13848 # explicitly linking system object files so we need to strip them13849 # from the output so that they don't get included in the library13850 # dependencies.13851 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"'13852 ;;13853 *)13854 if test yes,no = "$GXX,$with_gnu_ld"; then13855 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'13856 case $host in13857 osf3*)13858 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'13859 ;;13860 *)13861 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'13862 ;;13863 esac13864 13865 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'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 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13872 13873 else13874 # FIXME: insert proper C++ library support13875 ld_shlibs_CXX=no13876 fi13877 ;;13878 esac13879 ;;13880 13881 psos*)13882 # FIXME: insert proper C++ library support13883 ld_shlibs_CXX=no13884 ;;13885 13886 sunos4*)13887 case $cc_basename in13888 CC*)13889 # Sun C++ 4.x13890 # FIXME: insert proper C++ library support13891 ld_shlibs_CXX=no13892 ;;13893 lcc*)13894 # Lucid13895 # FIXME: insert proper C++ library support13896 ld_shlibs_CXX=no13897 ;;13898 *)13899 # FIXME: insert proper C++ library support13900 ld_shlibs_CXX=no13901 ;;13902 esac13903 ;;13904 13905 solaris*)13906 case $cc_basename in13907 CC* | sunCC*)13908 # Sun C++ 4.2, 5.x and Centerline C++13909 archive_cmds_need_lc_CXX=yes13910 no_undefined_flag_CXX=' -zdefs'13911 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'13912 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13913 $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'13914 13915 hardcode_libdir_flag_spec_CXX='-R$libdir'13916 hardcode_shlibpath_var_CXX=no13917 case $host_os in13918 solaris2.[0-5] | solaris2.[0-5].*) ;;13919 *)13920 # The compiler driver will combine and reorder linker options,13921 # but understands '-z linker_flag'.13922 # Supported since Solaris 2.6 (maybe 2.5.1?)13923 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'13924 ;;13925 esac13926 link_all_deplibs_CXX=yes13927 13928 output_verbose_link_cmd='func_echo_all'13929 13930 # Archives containing C++ object files must be created using13931 # "CC -xar", where "CC" is the Sun C++ compiler. This is13932 # necessary to make sure instantiated templates are included13933 # in the archive.13934 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'13935 ;;13936 gcx*)13937 # Green Hills C++ Compiler13938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13939 13940 # The C++ compiler must be used to create the archive.13941 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'13942 ;;13943 *)13944 # GNU C++ compiler with Solaris linker13945 if test yes,no = "$GXX,$with_gnu_ld"; then13946 no_undefined_flag_CXX=' $wl-z ${wl}defs'13947 if $CC --version | $GREP -v '^2\.7' > /dev/null; then13948 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13949 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13950 $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'13951 13952 # Commands to make compiler produce verbose output that lists13953 # what "hidden" libraries, object files and flags are used when13954 # linking a shared library.13955 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13956 else13957 # g++ 2.7 appears to require '-G' NOT '-shared' on this13958 # platform.13959 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'13960 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~13961 $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'13962 13963 # Commands to make compiler produce verbose output that lists13964 # what "hidden" libraries, object files and flags are used when13965 # linking a shared library.13966 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13967 fi13968 13969 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'13970 case $host_os in13971 solaris2.[0-5] | solaris2.[0-5].*) ;;13972 *)13973 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'13974 ;;13975 esac13976 fi13977 ;;13978 esac13979 ;;13980 13981 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)13982 no_undefined_flag_CXX='$wl-z,text'13983 archive_cmds_need_lc_CXX=no13984 hardcode_shlibpath_var_CXX=no13985 runpath_var='LD_RUN_PATH'13986 13987 case $cc_basename in13988 CC*)13989 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13990 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13991 ;;13992 *)13993 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13994 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'13995 ;;13996 esac13997 ;;13998 13999 sysv5* | sco3.2v5* | sco5v6*)14000 # Note: We CANNOT use -z defs as we might desire, because we do not14001 # link with -lc, and that would cause any symbols used from libc to14002 # always be unresolved, which means just about no library would14003 # ever link correctly. If we're not using GNU ld we use -z text14004 # though, which does catch some bad symbols but isn't as heavy-handed14005 # as -z defs.14006 no_undefined_flag_CXX='$wl-z,text'14007 allow_undefined_flag_CXX='$wl-z,nodefs'14008 archive_cmds_need_lc_CXX=no14009 hardcode_shlibpath_var_CXX=no14010 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'14011 hardcode_libdir_separator_CXX=':'14012 link_all_deplibs_CXX=yes14013 export_dynamic_flag_spec_CXX='$wl-Bexport'14014 runpath_var='LD_RUN_PATH'14015 14016 case $cc_basename in14017 CC*)14018 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14019 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14020 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~14021 '"$old_archive_cmds_CXX"14022 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~14023 '"$reload_cmds_CXX"14024 ;;14025 *)14026 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14027 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14028 ;;14029 esac14030 ;;14031 14032 tandem*)14033 case $cc_basename in14034 NCC*)14035 # NonStop-UX NCC 3.2014036 # FIXME: insert proper C++ library support14037 ld_shlibs_CXX=no14038 ;;14039 *)14040 # FIXME: insert proper C++ library support14041 ld_shlibs_CXX=no14042 ;;14043 esac14044 ;;14045 14046 vxworks*)14047 # FIXME: insert proper C++ library support14048 ld_shlibs_CXX=no14049 ;;14050 14051 *)14052 # FIXME: insert proper C++ library support14053 ld_shlibs_CXX=no14054 ;;14055 esac14056 14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514058 $as_echo "$ld_shlibs_CXX" >&6; }14059 test no = "$ld_shlibs_CXX" && can_build_shared=no14060 14061 GCC_CXX=$GXX14062 LD_CXX=$LD14063 14064 ## CAVEAT EMPTOR:14065 ## There is no encapsulation within the following macros, do not change14066 ## the running order or otherwise move them around unless you know exactly14067 ## what you are doing...14068 # Dependencies to place before and after the object being linked:14069 predep_objects_CXX=14070 postdep_objects_CXX=14071 predeps_CXX=14072 postdeps_CXX=14073 compiler_lib_search_path_CXX=14074 14075 cat > conftest.$ac_ext <<_LT_EOF14076 class Foo14077 {14078 public:14079 Foo (void) { a = 0; }14080 private:14081 int a;14082 };14083 _LT_EOF14084 14085 14086 _lt_libdeps_save_CFLAGS=$CFLAGS14087 case "$CC $CFLAGS " in #(14088 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;14089 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;14090 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;14091 esac14092 14093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514094 (eval $ac_compile) 2>&514095 ac_status=$?14096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514097 test $ac_status = 0; }; then14098 # Parse the compiler output and extract the necessary14099 # objects, libraries and library flags.14100 14101 # Sentinel used to keep track of whether or not we are before14102 # the conftest object file.14103 pre_test_object_deps_done=no14104 14105 for p in `eval "$output_verbose_link_cmd"`; do14106 case $prev$p in14107 14108 -L* | -R* | -l*)14109 # Some compilers place space between "-{L,R}" and the path.14110 # Remove the space.14111 if test x-L = "$p" ||14112 test x-R = "$p"; then14113 prev=$p14114 continue14115 fi14116 14117 # Expand the sysroot to ease extracting the directories later.14118 if test -z "$prev"; then14119 case $p in14120 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;14121 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;14122 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;14123 esac14124 fi14125 case $p in14126 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;14127 esac14128 if test no = "$pre_test_object_deps_done"; then14129 case $prev in14130 -L | -R)14131 # Internal compiler library paths should come after those14132 # provided the user. The postdeps already come after the14133 # user supplied libs so there is no need to process them.14134 if test -z "$compiler_lib_search_path_CXX"; then14135 compiler_lib_search_path_CXX=$prev$p14136 else14137 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"14138 fi14139 ;;14140 # The "-l" case would never come before the object being14141 # linked, so don't bother handling this case.14142 esac14143 else14144 if test -z "$postdeps_CXX"; then14145 postdeps_CXX=$prev$p14146 else14147 postdeps_CXX="${postdeps_CXX} $prev$p"14148 fi14149 fi14150 prev=14151 ;;14152 14153 *.lto.$objext) ;; # Ignore GCC LTO objects14154 *.$objext)14155 # This assumes that the test object file only shows up14156 # once in the compiler output.14157 if test "$p" = "conftest.$objext"; then14158 pre_test_object_deps_done=yes14159 continue14160 fi14161 14162 if test no = "$pre_test_object_deps_done"; then14163 if test -z "$predep_objects_CXX"; then14164 predep_objects_CXX=$p14165 else14166 predep_objects_CXX="$predep_objects_CXX $p"14167 fi14168 else14169 if test -z "$postdep_objects_CXX"; then14170 postdep_objects_CXX=$p14171 else14172 postdep_objects_CXX="$postdep_objects_CXX $p"14173 fi14174 fi14175 ;;14176 14177 *) ;; # Ignore the rest.14178 14179 esac14180 done14181 14182 # Clean up.14183 rm -f a.out a.exe14184 else14185 echo "libtool.m4: error: problem compiling CXX test program"14186 fi14187 14188 $RM -f confest.$objext14189 CFLAGS=$_lt_libdeps_save_CFLAGS14190 14191 # PORTME: override above test on systems where it is broken14192 case $host_os in14193 interix[3-9]*)14194 # Interix 3.5 installs completely hosed .la files for C++, so rather than14195 # hack all around it, let's just trust "g++" to DTRT.14196 predep_objects_CXX=14197 postdep_objects_CXX=14198 postdeps_CXX=14199 ;;14200 esac14201 14202 14203 case " $postdeps_CXX " in14204 *" -lc "*) archive_cmds_need_lc_CXX=no ;;14205 esac14206 compiler_lib_search_dirs_CXX=14207 if test -n "${compiler_lib_search_path_CXX}"; then14208 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`14209 fi14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 lt_prog_compiler_wl_CXX=14242 lt_prog_compiler_pic_CXX=14243 lt_prog_compiler_static_CXX=14244 14245 14246 # C++ specific cases for pic, static, wl, etc.14247 if test yes = "$GXX"; then14248 lt_prog_compiler_wl_CXX='-Wl,'14249 lt_prog_compiler_static_CXX='-static'14250 14251 case $host_os in14252 aix*)14253 # All AIX code is PIC.14254 if test ia64 = "$host_cpu"; then14255 # AIX 5 now supports IA64 processor14256 lt_prog_compiler_static_CXX='-Bstatic'14257 fi14258 lt_prog_compiler_pic_CXX='-fPIC'14259 ;;14260 14261 amigaos*)14262 case $host_cpu in14263 powerpc)14264 # see comment about AmigaOS4 .so support14265 lt_prog_compiler_pic_CXX='-fPIC'14266 ;;14267 m68k)14268 # FIXME: we need at least 68020 code to build shared libraries, but14269 # adding the '-m68020' flag to GCC prevents building anything better,14270 # like '-m68040'.14271 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'14272 ;;14273 esac14274 ;;14275 14276 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)14277 # PIC is the default for these OSes.14278 ;;14279 mingw* | cygwin* | os2* | pw32* | cegcc*)14280 # This hack is so that the source file can tell whether it is being14281 # built for inclusion in a dll (and should export symbols for example).14282 # Although the cygwin gcc ignores -fPIC, still need this for old-style14283 # (--disable-auto-import) libraries14284 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14285 case $host_os in14286 os2*)14287 lt_prog_compiler_static_CXX='$wl-static'14288 ;;14289 esac14290 ;;14291 darwin* | rhapsody*)14292 # PIC is the default on this platform14293 # Common symbols not allowed in MH_DYLIB files14294 lt_prog_compiler_pic_CXX='-fno-common'14295 ;;14296 *djgpp*)14297 # DJGPP does not support shared libraries at all14298 lt_prog_compiler_pic_CXX=14299 ;;14300 haiku*)14301 # PIC is the default for Haiku.14302 # The "-static" flag exists, but is broken.14303 lt_prog_compiler_static_CXX=14304 ;;14305 interix[3-9]*)14306 # Interix 3.x gcc -fpic/-fPIC options generate broken code.14307 # Instead, we relocate shared libraries at runtime.14308 ;;14309 sysv4*MP*)14310 if test -d /usr/nec; then14311 lt_prog_compiler_pic_CXX=-Kconform_pic14312 fi14313 ;;14314 hpux*)14315 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit14316 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag14317 # sets the default TLS model and affects inlining.14318 case $host_cpu in14319 hppa*64*)14320 ;;14321 *)14322 lt_prog_compiler_pic_CXX='-fPIC'14323 ;;14324 esac14325 ;;14326 *qnx* | *nto*)14327 # QNX uses GNU C++, but need to define -shared option too, otherwise14328 # it will coredump.14329 lt_prog_compiler_pic_CXX='-fPIC -shared'14330 ;;14331 *)14332 lt_prog_compiler_pic_CXX='-fPIC'14333 ;;14334 esac14335 else14336 case $host_os in14337 aix[4-9]*)14338 # All AIX code is PIC.14339 if test ia64 = "$host_cpu"; then14340 # AIX 5 now supports IA64 processor14341 lt_prog_compiler_static_CXX='-Bstatic'14342 else14343 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'14344 fi14345 ;;14346 chorus*)14347 case $cc_basename in14348 cxch68*)14349 # Green Hills C++ Compiler14350 # _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"14351 ;;14352 esac14353 ;;14354 mingw* | cygwin* | os2* | pw32* | cegcc*)14355 # This hack is so that the source file can tell whether it is being14356 # built for inclusion in a dll (and should export symbols for example).14357 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'14358 ;;14359 dgux*)14360 case $cc_basename in14361 ec++*)14362 lt_prog_compiler_pic_CXX='-KPIC'14363 ;;14364 ghcx*)14365 # Green Hills C++ Compiler14366 lt_prog_compiler_pic_CXX='-pic'14367 ;;14368 *)14369 ;;14370 esac14371 ;;14372 freebsd* | dragonfly*)14373 # FreeBSD uses GNU C++14374 ;;14375 hpux9* | hpux10* | hpux11*)14376 case $cc_basename in14377 CC*)14378 lt_prog_compiler_wl_CXX='-Wl,'14379 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14380 if test ia64 != "$host_cpu"; then14381 lt_prog_compiler_pic_CXX='+Z'14382 fi14383 ;;14384 aCC*)14385 lt_prog_compiler_wl_CXX='-Wl,'14386 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'14387 case $host_cpu in14388 hppa*64*|ia64*)14389 # +Z the default14390 ;;14391 *)14392 lt_prog_compiler_pic_CXX='+Z'14393 ;;14394 esac14395 ;;14396 *)14397 ;;14398 esac14399 ;;14400 interix*)14401 # This is c89, which is MS Visual C++ (no shared libs)14402 # Anyone wants to do a port?14403 ;;14404 irix5* | irix6* | nonstopux*)14405 case $cc_basename in14406 CC*)14407 lt_prog_compiler_wl_CXX='-Wl,'14408 lt_prog_compiler_static_CXX='-non_shared'14409 # CC pic flag -KPIC is the default.14410 ;;14411 *)14412 ;;14413 esac14414 ;;14415 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)14416 case $cc_basename in14417 KCC*)14418 # KAI C++ Compiler14419 lt_prog_compiler_wl_CXX='--backend -Wl,'14420 lt_prog_compiler_pic_CXX='-fPIC'14421 ;;14422 ecpc* )14423 # old Intel C++ for x86_64, which still supported -KPIC.14424 lt_prog_compiler_wl_CXX='-Wl,'14425 lt_prog_compiler_pic_CXX='-KPIC'14426 lt_prog_compiler_static_CXX='-static'14427 ;;14428 icpc* )14429 # Intel C++, used to be incompatible with GCC.14430 # ICC 10 doesn't accept -KPIC any more.14431 lt_prog_compiler_wl_CXX='-Wl,'14432 lt_prog_compiler_pic_CXX='-fPIC'14433 lt_prog_compiler_static_CXX='-static'14434 ;;14435 pgCC* | pgcpp*)14436 # Portland Group C++ compiler14437 lt_prog_compiler_wl_CXX='-Wl,'14438 lt_prog_compiler_pic_CXX='-fpic'14439 lt_prog_compiler_static_CXX='-Bstatic'14440 ;;14441 cxx*)14442 # Compaq C++14443 # Make sure the PIC flag is empty. It appears that all Alpha14444 # Linux and Compaq Tru64 Unix objects are PIC.14445 lt_prog_compiler_pic_CXX=14446 lt_prog_compiler_static_CXX='-non_shared'14447 ;;14448 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)14449 # IBM XL 8.0, 9.0 on PPC and BlueGene14450 lt_prog_compiler_wl_CXX='-Wl,'14451 lt_prog_compiler_pic_CXX='-qpic'14452 lt_prog_compiler_static_CXX='-qstaticlink'14453 ;;14454 *)14455 case `$CC -V 2>&1 | sed 5q` in14456 *Sun\ C*)14457 # Sun C++ 5.914458 lt_prog_compiler_pic_CXX='-KPIC'14459 lt_prog_compiler_static_CXX='-Bstatic'14460 lt_prog_compiler_wl_CXX='-Qoption ld '14461 ;;14462 esac14463 ;;14464 esac14465 ;;14466 lynxos*)14467 ;;14468 m88k*)14469 ;;14470 mvs*)14471 case $cc_basename in14472 cxx*)14473 lt_prog_compiler_pic_CXX='-W c,exportall'14474 ;;14475 *)14476 ;;14477 esac14478 ;;14479 netbsd* | netbsdelf*-gnu)14480 ;;14481 *qnx* | *nto*)14482 # QNX uses GNU C++, but need to define -shared option too, otherwise14483 # it will coredump.14484 lt_prog_compiler_pic_CXX='-fPIC -shared'14485 ;;14486 osf3* | osf4* | osf5*)14487 case $cc_basename in14488 KCC*)14489 lt_prog_compiler_wl_CXX='--backend -Wl,'14490 ;;14491 RCC*)14492 # Rational C++ 2.4.114493 lt_prog_compiler_pic_CXX='-pic'14494 ;;14495 cxx*)14496 # Digital/Compaq C++14497 lt_prog_compiler_wl_CXX='-Wl,'14498 # Make sure the PIC flag is empty. It appears that all Alpha14499 # Linux and Compaq Tru64 Unix objects are PIC.14500 lt_prog_compiler_pic_CXX=14501 lt_prog_compiler_static_CXX='-non_shared'14502 ;;14503 *)14504 ;;14505 esac14506 ;;14507 psos*)14508 ;;14509 solaris*)14510 case $cc_basename in14511 CC* | sunCC*)14512 # Sun C++ 4.2, 5.x and Centerline C++14513 lt_prog_compiler_pic_CXX='-KPIC'14514 lt_prog_compiler_static_CXX='-Bstatic'14515 lt_prog_compiler_wl_CXX='-Qoption ld '14516 ;;14517 gcx*)14518 # Green Hills C++ Compiler14519 lt_prog_compiler_pic_CXX='-PIC'14520 ;;14521 *)14522 ;;14523 esac14524 ;;14525 sunos4*)14526 case $cc_basename in14527 CC*)14528 # Sun C++ 4.x14529 lt_prog_compiler_pic_CXX='-pic'14530 lt_prog_compiler_static_CXX='-Bstatic'14531 ;;14532 lcc*)14533 # Lucid14534 lt_prog_compiler_pic_CXX='-pic'14535 ;;14536 *)14537 ;;14538 esac14539 ;;14540 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)14541 case $cc_basename in14542 CC*)14543 lt_prog_compiler_wl_CXX='-Wl,'14544 lt_prog_compiler_pic_CXX='-KPIC'14545 lt_prog_compiler_static_CXX='-Bstatic'14546 ;;14547 esac14548 ;;14549 tandem*)14550 case $cc_basename in14551 NCC*)14552 # NonStop-UX NCC 3.2014553 lt_prog_compiler_pic_CXX='-KPIC'14554 ;;14555 *)14556 ;;14557 esac14558 ;;14559 vxworks*)14560 ;;14561 *)14562 lt_prog_compiler_can_build_shared_CXX=no14563 ;;14564 esac14565 fi14566 14567 case $host_os in14568 # For platforms that do not support PIC, -DPIC is meaningless:14569 *djgpp*)14570 lt_prog_compiler_pic_CXX=14571 ;;14572 *)14573 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"14574 ;;14575 esac14576 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&514578 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }14579 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :14580 $as_echo_n "(cached) " >&614581 else14582 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX14583 fi14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&514585 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }14586 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX14587 14588 #14589 # Check to make sure the PIC flag actually works.14590 #14591 if test -n "$lt_prog_compiler_pic_CXX"; then14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&514593 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }14594 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :14595 $as_echo_n "(cached) " >&614596 else14597 lt_cv_prog_compiler_pic_works_CXX=no14598 ac_outfile=conftest.$ac_objext14599 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14600 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment14601 # Insert the option either (1) after the last *FLAGS variable, or14602 # (2) before a word containing "conftest.", or (3) at the end.14603 # Note that $ac_compile itself does not contain backslashes and begins14604 # with a dollar sign (not a hyphen), so the echo should work correctly.14605 # The option is referenced via a variable to avoid confusing sed.14606 lt_compile=`echo "$ac_compile" | $SED \14607 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14608 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14609 -e 's:$: $lt_compiler_flag:'`14610 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14611 (eval "$lt_compile" 2>conftest.err)14612 ac_status=$?14613 cat conftest.err >&514614 echo "$as_me:$LINENO: \$? = $ac_status" >&514615 if (exit $ac_status) && test -s "$ac_outfile"; then14616 # The compiler can only warn and ignore the option if not recognized14617 # So say no if there are warnings other than the usual output.14618 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp14619 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214620 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then14621 lt_cv_prog_compiler_pic_works_CXX=yes14622 fi14623 fi14624 $RM conftest*14625 14626 fi14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&514628 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }14629 14630 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then14631 case $lt_prog_compiler_pic_CXX in14632 "" | " "*) ;;14633 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;14634 esac14635 else14636 lt_prog_compiler_pic_CXX=14637 lt_prog_compiler_can_build_shared_CXX=no14638 fi14639 14640 fi14641 14642 14643 14644 14645 14646 #14647 # Check to make sure the static flag actually works.14648 #14649 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&514651 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }14652 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :14653 $as_echo_n "(cached) " >&614654 else14655 lt_cv_prog_compiler_static_works_CXX=no14656 save_LDFLAGS=$LDFLAGS14657 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"14658 echo "$lt_simple_link_test_code" > conftest.$ac_ext14659 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then14660 # The linker can only warn and ignore the option if not recognized14661 # So say no if there are warnings14662 if test -s conftest.err; then14663 # Append any errors to the config.log.14664 cat conftest.err 1>&514665 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp14666 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er214667 if diff conftest.exp conftest.er2 >/dev/null; then14668 lt_cv_prog_compiler_static_works_CXX=yes14669 fi14670 else14671 lt_cv_prog_compiler_static_works_CXX=yes14672 fi14673 fi14674 $RM -r conftest*14675 LDFLAGS=$save_LDFLAGS14676 14677 fi14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&514679 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }14680 14681 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then14682 :14683 else14684 lt_prog_compiler_static_CXX=14685 fi14686 14687 14688 14689 14690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514691 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14692 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14693 $as_echo_n "(cached) " >&614694 else14695 lt_cv_prog_compiler_c_o_CXX=no14696 $RM -r conftest 2>/dev/null14697 mkdir conftest14698 cd conftest14699 mkdir out14700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14701 14702 lt_compiler_flag="-o out/conftest2.$ac_objext"14703 # Insert the option either (1) after the last *FLAGS variable, or14704 # (2) before a word containing "conftest.", or (3) at the end.14705 # Note that $ac_compile itself does not contain backslashes and begins14706 # with a dollar sign (not a hyphen), so the echo should work correctly.14707 lt_compile=`echo "$ac_compile" | $SED \14708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14710 -e 's:$: $lt_compiler_flag:'`14711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14712 (eval "$lt_compile" 2>out/conftest.err)14713 ac_status=$?14714 cat out/conftest.err >&514715 echo "$as_me:$LINENO: \$? = $ac_status" >&514716 if (exit $ac_status) && test -s out/conftest2.$ac_objext14717 then14718 # The compiler can only warn and ignore the option if not recognized14719 # So say no if there are warnings14720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14723 lt_cv_prog_compiler_c_o_CXX=yes14724 fi14725 fi14726 chmod u+w . 2>&514727 $RM conftest*14728 # SGI C++ compiler will create directory out/ii_files/ for14729 # template instantiation14730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14731 $RM out/* && rmdir out14732 cd ..14733 $RM -r conftest14734 $RM conftest*14735 14736 fi14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514738 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14739 14740 14741 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&514743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }14744 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :14745 $as_echo_n "(cached) " >&614746 else14747 lt_cv_prog_compiler_c_o_CXX=no14748 $RM -r conftest 2>/dev/null14749 mkdir conftest14750 cd conftest14751 mkdir out14752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14753 14754 lt_compiler_flag="-o out/conftest2.$ac_objext"14755 # Insert the option either (1) after the last *FLAGS variable, or14756 # (2) before a word containing "conftest.", or (3) at the end.14757 # Note that $ac_compile itself does not contain backslashes and begins14758 # with a dollar sign (not a hyphen), so the echo should work correctly.14759 lt_compile=`echo "$ac_compile" | $SED \14760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \14761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \14762 -e 's:$: $lt_compiler_flag:'`14763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)14764 (eval "$lt_compile" 2>out/conftest.err)14765 ac_status=$?14766 cat out/conftest.err >&514767 echo "$as_me:$LINENO: \$? = $ac_status" >&514768 if (exit $ac_status) && test -s out/conftest2.$ac_objext14769 then14770 # The compiler can only warn and ignore the option if not recognized14771 # So say no if there are warnings14772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp14773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er214774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then14775 lt_cv_prog_compiler_c_o_CXX=yes14776 fi14777 fi14778 chmod u+w . 2>&514779 $RM conftest*14780 # SGI C++ compiler will create directory out/ii_files/ for14781 # template instantiation14782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files14783 $RM out/* && rmdir out14784 cd ..14785 $RM -r conftest14786 $RM conftest*14787 14788 fi14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&514790 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }14791 14792 14793 14794 14795 hard_links=nottested14796 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then14797 # do not overwrite the value of need_locks provided by the user14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&514799 $as_echo_n "checking if we can lock with hard links... " >&6; }14800 hard_links=yes14801 $RM conftest*14802 ln conftest.a conftest.b 2>/dev/null && hard_links=no14803 touch conftest.a14804 ln conftest.a conftest.b 2>&5 || hard_links=no14805 ln conftest.a conftest.b 2>/dev/null && hard_links=no14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&514807 $as_echo "$hard_links" >&6; }14808 if test no = "$hard_links"; then14809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&514810 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}14811 need_locks=warn14812 fi14813 else14814 need_locks=no14815 fi14816 14817 14818 14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&514820 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }14821 14822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14823 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'14824 case $host_os in14825 aix[4-9]*)14826 # If we're using GNU nm, then we don't want the "-C" option.14827 # -C means demangle to GNU nm, but means don't demangle to AIX nm.14828 # Without the "-l" option, or with the "-B" option, AIX nm treats14829 # weak defined symbols like other global defined symbols, whereas14830 # GNU nm marks them as "W".14831 # While the 'weak' keyword is ignored in the Export File, we need14832 # it in the Import File for the 'aix-soname' feature, so we have14833 # to replace the "-B" option with "-P" for AIX nm.14834 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then14835 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'14836 else14837 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'14838 fi14839 ;;14840 pw32*)14841 export_symbols_cmds_CXX=$ltdll_cmds14842 ;;14843 cygwin* | mingw* | cegcc*)14844 case $cc_basename in14845 cl*)14846 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'14847 ;;14848 *)14849 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'14850 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'14851 ;;14852 esac14853 ;;14854 linux* | k*bsd*-gnu | gnu*)14855 link_all_deplibs_CXX=no14856 ;;14857 *)14858 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'14859 ;;14860 esac14861 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514863 $as_echo "$ld_shlibs_CXX" >&6; }14864 test no = "$ld_shlibs_CXX" && can_build_shared=no14865 14866 with_gnu_ld_CXX=$with_gnu_ld14867 14868 14869 14870 14871 14872 14873 #14874 # Do we need to explicitly link libc?14875 #14876 case "x$archive_cmds_need_lc_CXX" in14877 x|xyes)14878 # Assume -lc should be added14879 archive_cmds_need_lc_CXX=yes14880 14881 if test yes,yes = "$GCC,$enable_shared"; then14882 case $archive_cmds_CXX in14883 *'~'*)14884 # FIXME: we may have to deal with multi-command sequences.14885 ;;14886 '$CC '*)14887 # Test whether the compiler implicitly links with -lc since on some14888 # systems, -lgcc has to come before -lc. If gcc already passes -lc14889 # to ld, don't add -lc before -lgcc.14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&514891 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }14892 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :14893 $as_echo_n "(cached) " >&614894 else14895 $RM conftest*14896 echo "$lt_simple_compile_test_code" > conftest.$ac_ext14897 14898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514899 (eval $ac_compile) 2>&514900 ac_status=$?14901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514902 test $ac_status = 0; } 2>conftest.err; then14903 soname=conftest14904 lib=conftest14905 libobjs=conftest.$ac_objext14906 deplibs=14907 wl=$lt_prog_compiler_wl_CXX14908 pic_flag=$lt_prog_compiler_pic_CXX14909 compiler_flags=-v14910 linker_flags=-v14911 verstring=14912 output_objdir=.14913 libname=conftest14914 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX14915 allow_undefined_flag_CXX=14916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&514917 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&514918 ac_status=$?14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514920 test $ac_status = 0; }14921 then14922 lt_cv_archive_cmds_need_lc_CXX=no14923 else14924 lt_cv_archive_cmds_need_lc_CXX=yes14925 fi14926 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag14927 else14928 cat conftest.err 1>&514929 fi14930 $RM conftest*14931 14932 fi14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&514934 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }14935 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX14936 ;;14937 esac14938 fi14939 ;;14940 esac14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&515004 $as_echo_n "checking dynamic linker characteristics... " >&6; }15005 15006 library_names_spec=15007 libname_spec='lib$name'15008 soname_spec=15009 shrext_cmds=.so15010 postinstall_cmds=15011 postuninstall_cmds=15012 finish_cmds=15013 finish_eval=15014 shlibpath_var=15015 shlibpath_overrides_runpath=unknown15016 version_type=none15017 dynamic_linker="$host_os ld.so"15018 sys_lib_dlsearch_path_spec="/lib /usr/lib"15019 need_lib_prefix=unknown15020 hardcode_into_libs=no15021 15022 # when you set need_version to no, make sure it does not cause -set_version15023 # flags to be left without arguments15024 need_version=unknown15025 15026 15027 15028 case $host_os in15029 aix3*)15030 version_type=linux # correct to gnu/linux during the next big refactor15031 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'15032 shlibpath_var=LIBPATH15033 15034 # AIX 3 has no versioning support, so we append a major version to the name.15035 soname_spec='$libname$release$shared_ext$major'15036 ;;15037 15038 aix[4-9]*)15039 version_type=linux # correct to gnu/linux during the next big refactor15040 need_lib_prefix=no15041 need_version=no15042 hardcode_into_libs=yes15043 if test ia64 = "$host_cpu"; then15044 # AIX 5 supports IA6415045 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'15046 shlibpath_var=LD_LIBRARY_PATH15047 else15048 # With GCC up to 2.95.x, collect2 would create an import file15049 # for dependence libraries. The import file would start with15050 # the line '#! .'. This would cause the generated library to15051 # depend on '.', always an invalid library. This was fixed in15052 # development snapshots of GCC prior to 3.0.15053 case $host_os in15054 aix4 | aix4.[01] | aix4.[01].*)15055 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'15056 echo ' yes '15057 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then15058 :15059 else15060 can_build_shared=no15061 fi15062 ;;15063 esac15064 # Using Import Files as archive members, it is possible to support15065 # filename-based versioning of shared library archives on AIX. While15066 # this would work for both with and without runtime linking, it will15067 # prevent static linking of such archives. So we do filename-based15068 # shared library versioning with .so extension only, which is used15069 # when both runtime linking and shared linking is enabled.15070 # Unfortunately, runtime linking may impact performance, so we do15071 # not want this to be the default eventually. Also, we use the15072 # versioned .so libs for executables only if there is the -brtl15073 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.15074 # To allow for filename-based versioning support, we need to create15075 # libNAME.so.V as an archive file, containing:15076 # *) an Import File, referring to the versioned filename of the15077 # archive as well as the shared archive member, telling the15078 # bitwidth (32 or 64) of that shared object, and providing the15079 # list of exported symbols of that shared object, eventually15080 # decorated with the 'weak' keyword15081 # *) the shared object with the F_LOADONLY flag set, to really avoid15082 # it being seen by the linker.15083 # At run time we better use the real file rather than another symlink,15084 # but for link time we create the symlink libNAME.so -> libNAME.so.V15085 15086 case $with_aix_soname,$aix_use_runtimelinking in15087 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct15088 # soname into executable. Probably we can add versioning support to15089 # collect2, so additional links can be useful in future.15090 aix,yes) # traditional libtool15091 dynamic_linker='AIX unversionable lib.so'15092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so15093 # instead of lib<name>.a to let people know that these are not15094 # typical AIX shared libraries.15095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15096 ;;15097 aix,no) # traditional AIX only15098 dynamic_linker='AIX lib.a(lib.so.V)'15099 # We preserve .a as extension for shared libraries through AIX4.215100 # and later when we are not doing run time linking.15101 library_names_spec='$libname$release.a $libname.a'15102 soname_spec='$libname$release$shared_ext$major'15103 ;;15104 svr4,*) # full svr4 only15105 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"15106 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15107 # We do not specify a path in Import Files, so LIBPATH fires.15108 shlibpath_overrides_runpath=yes15109 ;;15110 *,yes) # both, prefer svr415111 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"15112 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15113 # unpreferred sharedlib libNAME.a needs extra handling15114 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"'15115 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"'15116 # We do not specify a path in Import Files, so LIBPATH fires.15117 shlibpath_overrides_runpath=yes15118 ;;15119 *,no) # both, prefer aix15120 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"15121 library_names_spec='$libname$release.a $libname.a'15122 soname_spec='$libname$release$shared_ext$major'15123 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling15124 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)'15125 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"'15126 ;;15127 esac15128 shlibpath_var=LIBPATH15129 fi15130 ;;15131 15132 amigaos*)15133 case $host_cpu in15134 powerpc)15135 # Since July 2007 AmigaOS4 officially supports .so libraries.15136 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.15137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15138 ;;15139 m68k)15140 library_names_spec='$libname.ixlibrary $libname.a'15141 # Create ${libname}_ixlibrary.a entries in /sys/libs.15142 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'15143 ;;15144 esac15145 ;;15146 15147 beos*)15148 library_names_spec='$libname$shared_ext'15149 dynamic_linker="$host_os ld.so"15150 shlibpath_var=LIBRARY_PATH15151 ;;15152 15153 bsdi[45]*)15154 version_type=linux # correct to gnu/linux during the next big refactor15155 need_version=no15156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15157 soname_spec='$libname$release$shared_ext$major'15158 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'15159 shlibpath_var=LD_LIBRARY_PATH15160 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"15161 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"15162 # the default ld.so.conf also contains /usr/contrib/lib and15163 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow15164 # libtool to hard-code these into programs15165 ;;15166 15167 cygwin* | mingw* | pw32* | cegcc*)15168 version_type=windows15169 shrext_cmds=.dll15170 need_version=no15171 need_lib_prefix=no15172 15173 case $GCC,$cc_basename in15174 yes,*)15175 # gcc15176 library_names_spec='$libname.dll.a'15177 # DLL is installed to $(libdir)/../bin by postinstall_cmds15178 postinstall_cmds='base_file=`basename \$file`~15179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15180 dldir=$destdir/`dirname \$dlpath`~15181 test -d \$dldir || mkdir -p \$dldir~15182 $install_prog $dir/$dlname \$dldir/$dlname~15183 chmod a+x \$dldir/$dlname~15184 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15185 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15186 fi'15187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15188 dlpath=$dir/\$dldll~15189 $RM \$dlpath'15190 shlibpath_overrides_runpath=yes15191 15192 case $host_os in15193 cygwin*)15194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'15195 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15196 15197 ;;15198 mingw* | cegcc*)15199 # MinGW DLLs use traditional 'lib' prefix15200 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15201 ;;15202 pw32*)15203 # pw32 DLLs use 'pw' prefix rather than 'lib'15204 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15205 ;;15206 esac15207 dynamic_linker='Win32 ld.exe'15208 ;;15209 15210 *,cl*)15211 # Native MSVC15212 libname_spec='$name'15213 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'15214 library_names_spec='$libname.dll.lib'15215 15216 case $build_os in15217 mingw*)15218 sys_lib_search_path_spec=15219 lt_save_ifs=$IFS15220 IFS=';'15221 for lt_path in $LIB15222 do15223 IFS=$lt_save_ifs15224 # Let DOS variable expansion print the short 8.3 style file name.15225 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`15226 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"15227 done15228 IFS=$lt_save_ifs15229 # Convert to MSYS style.15230 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`15231 ;;15232 cygwin*)15233 # Convert to unix form, then to dos form, then back to unix form15234 # but this time dos style (no spaces!) so that the unix form looks15235 # like /cygdrive/c/PROGRA~1:/cygdr...15236 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`15237 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`15238 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15239 ;;15240 *)15241 sys_lib_search_path_spec=$LIB15242 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then15243 # It is most probably a Windows format PATH.15244 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`15245 else15246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`15247 fi15248 # FIXME: find the short name or the path components, as spaces are15249 # common. (e.g. "Program Files" -> "PROGRA~1")15250 ;;15251 esac15252 15253 # DLL is installed to $(libdir)/../bin by postinstall_cmds15254 postinstall_cmds='base_file=`basename \$file`~15255 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~15256 dldir=$destdir/`dirname \$dlpath`~15257 test -d \$dldir || mkdir -p \$dldir~15258 $install_prog $dir/$dlname \$dldir/$dlname'15259 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~15260 dlpath=$dir/\$dldll~15261 $RM \$dlpath'15262 shlibpath_overrides_runpath=yes15263 dynamic_linker='Win32 link.exe'15264 ;;15265 15266 *)15267 # Assume MSVC wrapper15268 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'15269 dynamic_linker='Win32 ld.exe'15270 ;;15271 esac15272 # FIXME: first we should search . and the directory the executable is in15273 shlibpath_var=PATH15274 ;;15275 15276 darwin* | rhapsody*)15277 dynamic_linker="$host_os dyld"15278 version_type=darwin15279 need_lib_prefix=no15280 need_version=no15281 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'15282 soname_spec='$libname$release$major$shared_ext'15283 shlibpath_overrides_runpath=yes15284 shlibpath_var=DYLD_LIBRARY_PATH15285 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'15286 15287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'15288 ;;15289 15290 dgux*)15291 version_type=linux # correct to gnu/linux during the next big refactor15292 need_lib_prefix=no15293 need_version=no15294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15295 soname_spec='$libname$release$shared_ext$major'15296 shlibpath_var=LD_LIBRARY_PATH15297 ;;15298 15299 freebsd* | dragonfly*)15300 # DragonFly does not have aout. When/if they implement a new15301 # versioning mechanism, adjust this.15302 if test -x /usr/bin/objformat; then15303 objformat=`/usr/bin/objformat`15304 else15305 case $host_os in15306 freebsd[23].*) objformat=aout ;;15307 *) objformat=elf ;;15308 esac15309 fi15310 version_type=freebsd-$objformat15311 case $version_type in15312 freebsd-elf*)15313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15314 soname_spec='$libname$release$shared_ext$major'15315 need_version=no15316 need_lib_prefix=no15317 ;;15318 freebsd-*)15319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15320 need_version=yes15321 ;;15322 esac15323 shlibpath_var=LD_LIBRARY_PATH15324 case $host_os in15325 freebsd2.*)15326 shlibpath_overrides_runpath=yes15327 ;;15328 freebsd3.[01]* | freebsdelf3.[01]*)15329 shlibpath_overrides_runpath=yes15330 hardcode_into_libs=yes15331 ;;15332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \15333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)15334 shlibpath_overrides_runpath=no15335 hardcode_into_libs=yes15336 ;;15337 *) # from 4.6 on, and DragonFly15338 shlibpath_overrides_runpath=yes15339 hardcode_into_libs=yes15340 ;;15341 esac15342 ;;15343 15344 haiku*)15345 version_type=linux # correct to gnu/linux during the next big refactor15346 need_lib_prefix=no15347 need_version=no15348 dynamic_linker="$host_os runtime_loader"15349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15350 soname_spec='$libname$release$shared_ext$major'15351 shlibpath_var=LIBRARY_PATH15352 shlibpath_overrides_runpath=no15353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'15354 hardcode_into_libs=yes15355 ;;15356 15357 hpux9* | hpux10* | hpux11*)15358 # Give a soname corresponding to the major version so that dld.sl refuses to15359 # link against other versions.15360 version_type=sunos15361 need_lib_prefix=no15362 need_version=no15363 case $host_cpu in15364 ia64*)15365 shrext_cmds='.so'15366 hardcode_into_libs=yes15367 dynamic_linker="$host_os dld.so"15368 shlibpath_var=LD_LIBRARY_PATH15369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15371 soname_spec='$libname$release$shared_ext$major'15372 if test 32 = "$HPUX_IA64_MODE"; then15373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"15374 sys_lib_dlsearch_path_spec=/usr/lib/hpux3215375 else15376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"15377 sys_lib_dlsearch_path_spec=/usr/lib/hpux6415378 fi15379 ;;15380 hppa*64*)15381 shrext_cmds='.sl'15382 hardcode_into_libs=yes15383 dynamic_linker="$host_os dld.sl"15384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH15385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.15386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15387 soname_spec='$libname$release$shared_ext$major'15388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"15389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15390 ;;15391 *)15392 shrext_cmds='.sl'15393 dynamic_linker="$host_os dld.sl"15394 shlibpath_var=SHLIB_PATH15395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH15396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15397 soname_spec='$libname$release$shared_ext$major'15398 ;;15399 esac15400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...15401 postinstall_cmds='chmod 555 $lib'15402 # or fails outright, so override atomically:15403 install_override_mode=55515404 ;;15405 15406 interix[3-9]*)15407 version_type=linux # correct to gnu/linux during the next big refactor15408 need_lib_prefix=no15409 need_version=no15410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15411 soname_spec='$libname$release$shared_ext$major'15412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'15413 shlibpath_var=LD_LIBRARY_PATH15414 shlibpath_overrides_runpath=no15415 hardcode_into_libs=yes15416 ;;15417 15418 irix5* | irix6* | nonstopux*)15419 case $host_os in15420 nonstopux*) version_type=nonstopux ;;15421 *)15422 if test yes = "$lt_cv_prog_gnu_ld"; then15423 version_type=linux # correct to gnu/linux during the next big refactor15424 else15425 version_type=irix15426 fi ;;15427 esac15428 need_lib_prefix=no15429 need_version=no15430 soname_spec='$libname$release$shared_ext$major'15431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'15432 case $host_os in15433 irix5* | nonstopux*)15434 libsuff= shlibsuff=15435 ;;15436 *)15437 case $LD in # libtool.m4 will add one of these switches to LD15438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")15439 libsuff= shlibsuff= libmagic=32-bit;;15440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")15441 libsuff=32 shlibsuff=N32 libmagic=N32;;15442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")15443 libsuff=64 shlibsuff=64 libmagic=64-bit;;15444 *) libsuff= shlibsuff= libmagic=never-match;;15445 esac15446 ;;15447 esac15448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH15449 shlibpath_overrides_runpath=no15450 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"15451 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"15452 hardcode_into_libs=yes15453 ;;15454 15455 # No shared lib support for Linux oldld, aout, or coff.15456 linux*oldld* | linux*aout* | linux*coff*)15457 dynamic_linker=no15458 ;;15459 15460 linux*android*)15461 version_type=none # Android doesn't support versioned libraries.15462 need_lib_prefix=no15463 need_version=no15464 library_names_spec='$libname$release$shared_ext'15465 soname_spec='$libname$release$shared_ext'15466 finish_cmds=15467 shlibpath_var=LD_LIBRARY_PATH15468 shlibpath_overrides_runpath=yes15469 15470 # This implies no fast_install, which is unacceptable.15471 # Some rework will be needed to allow for fast_install15472 # before this can be enabled.15473 hardcode_into_libs=yes15474 15475 dynamic_linker='Android linker'15476 # Don't embed -rpath directories since the linker doesn't support them.15477 hardcode_libdir_flag_spec_CXX='-L$libdir'15478 ;;15479 15480 # This must be glibc/ELF.15481 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)15482 version_type=linux # correct to gnu/linux during the next big refactor15483 need_lib_prefix=no15484 need_version=no15485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15486 soname_spec='$libname$release$shared_ext$major'15487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'15488 shlibpath_var=LD_LIBRARY_PATH15489 shlibpath_overrides_runpath=no15490 15491 # Some binutils ld are patched to set DT_RUNPATH15492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :15493 $as_echo_n "(cached) " >&615494 else15495 lt_cv_shlibpath_overrides_runpath=no15496 save_LDFLAGS=$LDFLAGS15497 save_libdir=$libdir15498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \15499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""15500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext15501 /* end confdefs.h. */15502 15503 int15504 main ()15505 {15506 15507 ;15508 return 0;15509 }15510 _ACEOF15511 if ac_fn_cxx_try_link "$LINENO"; then :15512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :15513 lt_cv_shlibpath_overrides_runpath=yes15514 fi15515 fi15516 rm -f core conftest.err conftest.$ac_objext \15517 conftest$ac_exeext conftest.$ac_ext15518 LDFLAGS=$save_LDFLAGS15519 libdir=$save_libdir15520 15521 fi15522 15523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath15524 15525 # This implies no fast_install, which is unacceptable.15526 # Some rework will be needed to allow for fast_install15527 # before this can be enabled.15528 hardcode_into_libs=yes15529 15530 # Ideally, we could use ldconfig to report *all* directores which are15531 # searched for libraries, however this is still not possible. Aside from not15532 # being certain /sbin/ldconfig is available, command15533 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,15534 # even though it is searched at run-time. Try to do the best guess by15535 # appending ld.so.conf contents (and includes) to the search path.15536 if test -f /etc/ld.so.conf; then15537 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' ' '`15538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"15539 fi15540 15541 # We used to test for /lib/ld.so.1 and disable shared libraries on15542 # powerpc, because MkLinux only supported shared libraries with the15543 # GNU dynamic linker. Since this was broken with cross compilers,15544 # most powerpc-linux boxes support dynamic linking these days and15545 # people can always --disable-shared, the test was removed, and we15546 # assume the GNU/Linux dynamic linker is in use.15547 dynamic_linker='GNU/Linux ld.so'15548 ;;15549 15550 netbsdelf*-gnu)15551 version_type=linux15552 need_lib_prefix=no15553 need_version=no15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'15555 soname_spec='${libname}${release}${shared_ext}$major'15556 shlibpath_var=LD_LIBRARY_PATH15557 shlibpath_overrides_runpath=no15558 hardcode_into_libs=yes15559 dynamic_linker='NetBSD ld.elf_so'15560 ;;15561 15562 netbsd*)15563 version_type=sunos15564 need_lib_prefix=no15565 need_version=no15566 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then15567 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15569 dynamic_linker='NetBSD (a.out) ld.so'15570 else15571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15572 soname_spec='$libname$release$shared_ext$major'15573 dynamic_linker='NetBSD ld.elf_so'15574 fi15575 shlibpath_var=LD_LIBRARY_PATH15576 shlibpath_overrides_runpath=yes15577 hardcode_into_libs=yes15578 ;;15579 15580 newsos6)15581 version_type=linux # correct to gnu/linux during the next big refactor15582 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15583 shlibpath_var=LD_LIBRARY_PATH15584 shlibpath_overrides_runpath=yes15585 ;;15586 15587 *nto* | *qnx*)15588 version_type=qnx15589 need_lib_prefix=no15590 need_version=no15591 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15592 soname_spec='$libname$release$shared_ext$major'15593 shlibpath_var=LD_LIBRARY_PATH15594 shlibpath_overrides_runpath=no15595 hardcode_into_libs=yes15596 dynamic_linker='ldqnx.so'15597 ;;15598 15599 openbsd* | bitrig*)15600 version_type=sunos15601 sys_lib_dlsearch_path_spec=/usr/lib15602 need_lib_prefix=no15603 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then15604 need_version=no15605 else15606 need_version=yes15607 fi15608 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'15610 shlibpath_var=LD_LIBRARY_PATH15611 shlibpath_overrides_runpath=yes15612 ;;15613 15614 os2*)15615 libname_spec='$name'15616 version_type=windows15617 shrext_cmds=.dll15618 need_version=no15619 need_lib_prefix=no15620 # OS/2 can only load a DLL with a base name of 8 characters or less.15621 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";15622 v=$($ECHO $release$versuffix | tr -d .-);15623 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);15624 $ECHO $n$v`$shared_ext'15625 library_names_spec='${libname}_dll.$libext'15626 dynamic_linker='OS/2 ld.exe'15627 shlibpath_var=BEGINLIBPATH15628 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"15629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15630 postinstall_cmds='base_file=`basename \$file`~15631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~15632 dldir=$destdir/`dirname \$dlpath`~15633 test -d \$dldir || mkdir -p \$dldir~15634 $install_prog $dir/$dlname \$dldir/$dlname~15635 chmod a+x \$dldir/$dlname~15636 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then15637 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;15638 fi'15639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~15640 dlpath=$dir/\$dldll~15641 $RM \$dlpath'15642 ;;15643 15644 osf3* | osf4* | osf5*)15645 version_type=osf15646 need_lib_prefix=no15647 need_version=no15648 soname_spec='$libname$release$shared_ext$major'15649 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15650 shlibpath_var=LD_LIBRARY_PATH15651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"15652 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec15653 ;;15654 15655 rdos*)15656 dynamic_linker=no15657 ;;15658 15659 solaris*)15660 version_type=linux # correct to gnu/linux during the next big refactor15661 need_lib_prefix=no15662 need_version=no15663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15664 soname_spec='$libname$release$shared_ext$major'15665 shlibpath_var=LD_LIBRARY_PATH15666 shlibpath_overrides_runpath=yes15667 hardcode_into_libs=yes15668 # ldd complains unless libraries are executable15669 postinstall_cmds='chmod +x $lib'15670 ;;15671 15672 sunos4*)15673 version_type=sunos15674 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'15675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'15676 shlibpath_var=LD_LIBRARY_PATH15677 shlibpath_overrides_runpath=yes15678 if test yes = "$with_gnu_ld"; then15679 need_lib_prefix=no15680 fi15681 need_version=yes15682 ;;15683 15684 sysv4 | sysv4.3*)15685 version_type=linux # correct to gnu/linux during the next big refactor15686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15687 soname_spec='$libname$release$shared_ext$major'15688 shlibpath_var=LD_LIBRARY_PATH15689 case $host_vendor in15690 sni)15691 shlibpath_overrides_runpath=no15692 need_lib_prefix=no15693 runpath_var=LD_RUN_PATH15694 ;;15695 siemens)15696 need_lib_prefix=no15697 ;;15698 motorola)15699 need_lib_prefix=no15700 need_version=no15701 shlibpath_overrides_runpath=no15702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'15703 ;;15704 esac15705 ;;15706 15707 sysv4*MP*)15708 if test -d /usr/nec; then15709 version_type=linux # correct to gnu/linux during the next big refactor15710 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'15711 soname_spec='$libname$shared_ext.$major'15712 shlibpath_var=LD_LIBRARY_PATH15713 fi15714 ;;15715 15716 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)15717 version_type=sco15718 need_lib_prefix=no15719 need_version=no15720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'15721 soname_spec='$libname$release$shared_ext$major'15722 shlibpath_var=LD_LIBRARY_PATH15723 shlibpath_overrides_runpath=yes15724 hardcode_into_libs=yes15725 if test yes = "$with_gnu_ld"; then15726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'15727 else15728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'15729 case $host_os in15730 sco3.2v5*)15731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"15732 ;;15733 esac15734 fi15735 sys_lib_dlsearch_path_spec='/usr/lib'15736 ;;15737 15738 tpf*)15739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.15740 version_type=linux # correct to gnu/linux during the next big refactor15741 need_lib_prefix=no15742 need_version=no15743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15744 shlibpath_var=LD_LIBRARY_PATH15745 shlibpath_overrides_runpath=no15746 hardcode_into_libs=yes15747 ;;15748 15749 uts4*)15750 version_type=linux # correct to gnu/linux during the next big refactor15751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15752 soname_spec='$libname$release$shared_ext$major'15753 shlibpath_var=LD_LIBRARY_PATH15754 ;;15755 15756 *)15757 dynamic_linker=no15758 ;;15759 esac15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&515761 $as_echo "$dynamic_linker" >&6; }15762 test no = "$dynamic_linker" && can_build_shared=no15763 15764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"15765 if test yes = "$GCC"; then15766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"15767 fi15768 15769 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then15770 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec15771 fi15772 15773 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then15774 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec15775 fi15776 15777 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...15778 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec15779 15780 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code15781 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"15782 15783 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool15784 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&515826 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }15827 hardcode_action_CXX=15828 if test -n "$hardcode_libdir_flag_spec_CXX" ||15829 test -n "$runpath_var_CXX" ||15830 test yes = "$hardcode_automatic_CXX"; then15831 15832 # We can hardcode non-existent directories.15833 if test no != "$hardcode_direct_CXX" &&15834 # If the only mechanism to avoid hardcoding is shlibpath_var, we15835 # have to relink, otherwise we might link with an installed library15836 # when we should be linking with a yet-to-be-installed one15837 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&15838 test no != "$hardcode_minus_L_CXX"; then15839 # Linking always hardcodes the temporary library directory.15840 hardcode_action_CXX=relink15841 else15842 # We can link without hardcoding, and we can hardcode nonexisting dirs.15843 hardcode_action_CXX=immediate15844 fi15845 else15846 # We cannot hardcode anything, or else we can only hardcode existing15847 # directories.15848 hardcode_action_CXX=unsupported15849 fi15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&515851 $as_echo "$hardcode_action_CXX" >&6; }15852 15853 if test relink = "$hardcode_action_CXX" ||15854 test yes = "$inherit_rpath_CXX"; then15855 # Fast installation is not supported15856 enable_fast_install=no15857 elif test yes = "$shlibpath_overrides_runpath" ||15858 test no = "$enable_shared"; then15859 # Fast installation is not necessary15860 enable_fast_install=needless15861 fi15862 15863 15864 15865 15866 15867 15868 15869 fi # test -n "$compiler"15870 15871 CC=$lt_save_CC15872 CFLAGS=$lt_save_CFLAGS15873 LDCXX=$LD15874 LD=$lt_save_LD15875 GCC=$lt_save_GCC15876 with_gnu_ld=$lt_save_with_gnu_ld15877 lt_cv_path_LDCXX=$lt_cv_path_LD15878 lt_cv_path_LD=$lt_save_path_LD15879 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld15880 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld15881 fi # test yes != "$_lt_caught_CXX_error"15882 15883 ac_ext=c15884 ac_cpp='$CPP $CPPFLAGS'15885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15887 ac_compiler_gnu=$ac_cv_c_compiler_gnu15888 15889 15890 ac_ext=c15891 ac_cpp='$CPP $CPPFLAGS'15892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'15893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'15894 ac_compiler_gnu=$ac_cv_c_compiler_gnu15895 if test -n "$ac_tool_prefix"; then15896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.15897 set dummy ${ac_tool_prefix}gcc; ac_word=$215898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515899 $as_echo_n "checking for $ac_word... " >&6; }15900 if ${ac_cv_prog_CC+:} false; then :15901 $as_echo_n "(cached) " >&615902 else15903 if test -n "$CC"; then15904 ac_cv_prog_CC="$CC" # Let the user override the test.15905 else15906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15907 for as_dir in $PATH15908 do15909 IFS=$as_save_IFS15910 test -z "$as_dir" && as_dir=.15911 for ac_exec_ext in '' $ac_executable_extensions; do15912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15913 ac_cv_prog_CC="${ac_tool_prefix}gcc"15914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515915 break 215916 fi15917 done15918 done15919 IFS=$as_save_IFS15920 15921 fi15922 fi15923 CC=$ac_cv_prog_CC15924 if test -n "$CC"; then15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&515926 $as_echo "$CC" >&6; }15927 else15928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515929 $as_echo "no" >&6; }15930 fi15931 15932 15933 fi15934 if test -z "$ac_cv_prog_CC"; then15935 ac_ct_CC=$CC15936 # Extract the first word of "gcc", so it can be a program name with args.15937 set dummy gcc; ac_word=$215938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515939 $as_echo_n "checking for $ac_word... " >&6; }15940 if ${ac_cv_prog_ac_ct_CC+:} false; then :15941 $as_echo_n "(cached) " >&615942 else15943 if test -n "$ac_ct_CC"; then15944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.15945 else15946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR15947 for as_dir in $PATH15948 do15949 IFS=$as_save_IFS15950 test -z "$as_dir" && as_dir=.15951 for ac_exec_ext in '' $ac_executable_extensions; do15952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then15953 ac_cv_prog_ac_ct_CC="gcc"15954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&515955 break 215956 fi15957 done15958 done15959 IFS=$as_save_IFS15960 15961 fi15962 fi15963 ac_ct_CC=$ac_cv_prog_ac_ct_CC15964 if test -n "$ac_ct_CC"; then15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&515966 $as_echo "$ac_ct_CC" >&6; }15967 else15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&515969 $as_echo "no" >&6; }15970 fi15971 15972 if test "x$ac_ct_CC" = x; then15973 CC=""15974 else15975 case $cross_compiling:$ac_tool_warned in15976 yes:)15977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&515978 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}15979 ac_tool_warned=yes ;;15980 esac15981 CC=$ac_ct_CC15982 fi15983 else15984 CC="$ac_cv_prog_CC"15985 fi15986 15987 if test -z "$CC"; then15988 if test -n "$ac_tool_prefix"; then15989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.15990 set dummy ${ac_tool_prefix}cc; ac_word=$215991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&515992 $as_echo_n "checking for $ac_word... " >&6; }15993 if ${ac_cv_prog_CC+:} false; then :15994 $as_echo_n "(cached) " >&615995 else15996 if test -n "$CC"; then15997 ac_cv_prog_CC="$CC" # Let the user override the test.15998 else15999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16000 for as_dir in $PATH16001 do16002 IFS=$as_save_IFS16003 test -z "$as_dir" && as_dir=.16004 for ac_exec_ext in '' $ac_executable_extensions; do16005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16006 ac_cv_prog_CC="${ac_tool_prefix}cc"16007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516008 break 216009 fi16010 done16011 done16012 IFS=$as_save_IFS16013 16014 fi16015 fi16016 CC=$ac_cv_prog_CC16017 if test -n "$CC"; then16018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516019 $as_echo "$CC" >&6; }16020 else16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516022 $as_echo "no" >&6; }16023 fi16024 16025 16026 fi16027 fi16028 if test -z "$CC"; then16029 # Extract the first word of "cc", so it can be a program name with args.16030 set dummy cc; ac_word=$216031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516032 $as_echo_n "checking for $ac_word... " >&6; }16033 if ${ac_cv_prog_CC+:} false; then :16034 $as_echo_n "(cached) " >&616035 else16036 if test -n "$CC"; then16037 ac_cv_prog_CC="$CC" # Let the user override the test.16038 else16039 ac_prog_rejected=no16040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16041 for as_dir in $PATH16042 do16043 IFS=$as_save_IFS16044 test -z "$as_dir" && as_dir=.16045 for ac_exec_ext in '' $ac_executable_extensions; do16046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then16048 ac_prog_rejected=yes16049 continue16050 fi16051 ac_cv_prog_CC="cc"16052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516053 break 216054 fi16055 done16056 done16057 IFS=$as_save_IFS16058 16059 if test $ac_prog_rejected = yes; then16060 # We found a bogon in the path, so make sure we never use it.16061 set dummy $ac_cv_prog_CC16062 shift16063 if test $# != 0; then16064 # We chose a different compiler from the bogus one.16065 # However, it has the same basename, so the bogon will be chosen16066 # first if we set CC to just the basename; use the full file name.16067 shift16068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"16069 fi16070 fi16071 fi16072 fi16073 CC=$ac_cv_prog_CC16074 if test -n "$CC"; then16075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516076 $as_echo "$CC" >&6; }16077 else16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516079 $as_echo "no" >&6; }16080 fi16081 16082 16083 fi16084 if test -z "$CC"; then16085 if test -n "$ac_tool_prefix"; then16086 for ac_prog in cl.exe16087 do16088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.16089 set dummy $ac_tool_prefix$ac_prog; ac_word=$216090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516091 $as_echo_n "checking for $ac_word... " >&6; }16092 if ${ac_cv_prog_CC+:} false; then :16093 $as_echo_n "(cached) " >&616094 else16095 if test -n "$CC"; then16096 ac_cv_prog_CC="$CC" # Let the user override the test.16097 else16098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16099 for as_dir in $PATH16100 do16101 IFS=$as_save_IFS16102 test -z "$as_dir" && as_dir=.16103 for ac_exec_ext in '' $ac_executable_extensions; do16104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"16106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516107 break 216108 fi16109 done16110 done16111 IFS=$as_save_IFS16112 16113 fi16114 fi16115 CC=$ac_cv_prog_CC16116 if test -n "$CC"; then16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&516118 $as_echo "$CC" >&6; }16119 else16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516121 $as_echo "no" >&6; }16122 fi16123 16124 16125 test -n "$CC" && break16126 done16127 fi16128 if test -z "$CC"; then16129 ac_ct_CC=$CC16130 for ac_prog in cl.exe16131 do16132 # Extract the first word of "$ac_prog", so it can be a program name with args.16133 set dummy $ac_prog; ac_word=$216134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&516135 $as_echo_n "checking for $ac_word... " >&6; }16136 if ${ac_cv_prog_ac_ct_CC+:} false; then :16137 $as_echo_n "(cached) " >&616138 else16139 if test -n "$ac_ct_CC"; then16140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.16141 else16142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR16143 for as_dir in $PATH16144 do16145 IFS=$as_save_IFS16146 test -z "$as_dir" && as_dir=.16147 for ac_exec_ext in '' $ac_executable_extensions; do16148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then16149 ac_cv_prog_ac_ct_CC="$ac_prog"16150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&516151 break 216152 fi16153 done16154 done16155 IFS=$as_save_IFS16156 16157 fi16158 fi16159 ac_ct_CC=$ac_cv_prog_ac_ct_CC16160 if test -n "$ac_ct_CC"; then16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&516162 $as_echo "$ac_ct_CC" >&6; }16163 else16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516165 $as_echo "no" >&6; }16166 fi16167 16168 16169 test -n "$ac_ct_CC" && break16170 done16171 16172 if test "x$ac_ct_CC" = x; then16173 CC=""16174 else16175 case $cross_compiling:$ac_tool_warned in16176 yes:)16177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&516178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}16179 ac_tool_warned=yes ;;16180 esac16181 CC=$ac_ct_CC16182 fi16183 fi16184 16185 fi16186 16187 16188 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&516189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}16190 as_fn_error $? "no acceptable C compiler found in \$PATH16191 See \`config.log' for more details" "$LINENO" 5; }16192 16193 # Provide some information about the compiler.16194 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&516195 set X $ac_compile16196 ac_compiler=$216197 for ac_option in --version -v -V -qversion; do16198 { { ac_try="$ac_compiler $ac_option >&5"16199 case "(($ac_try" in16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;16201 *) ac_try_echo=$ac_try;;16202 esac16203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""16204 $as_echo "$ac_try_echo"; } >&516205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err16206 ac_status=$?16207 if test -s conftest.err; then16208 sed '10a\16209 ... rest of stderr output deleted ...16210 10q' conftest.err >conftest.er116211 cat conftest.er1 >&516212 fi16213 rm -f conftest.er1 conftest.err16214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&516215 test $ac_status = 0; }16216 done16217 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&516219 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }16220 if ${ac_cv_c_compiler_gnu+:} false; then :16221 $as_echo_n "(cached) " >&616222 else16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16224 /* end confdefs.h. */16225 16226 int16227 main ()16228 {16229 #ifndef __GNUC__16230 choke me16231 #endif16232 16233 ;16234 return 0;16235 }16236 _ACEOF16237 if ac_fn_c_try_compile "$LINENO"; then :16238 ac_compiler_gnu=yes16239 else16240 ac_compiler_gnu=no16241 fi16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16243 ac_cv_c_compiler_gnu=$ac_compiler_gnu16244 16245 fi16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&516247 $as_echo "$ac_cv_c_compiler_gnu" >&6; }16248 if test $ac_compiler_gnu = yes; then16249 GCC=yes16250 else16251 GCC=16252 fi16253 ac_test_CFLAGS=${CFLAGS+set}16254 ac_save_CFLAGS=$CFLAGS16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&516256 $as_echo_n "checking whether $CC accepts -g... " >&6; }16257 if ${ac_cv_prog_cc_g+:} false; then :16258 $as_echo_n "(cached) " >&616259 else16260 ac_save_c_werror_flag=$ac_c_werror_flag16261 ac_c_werror_flag=yes16262 ac_cv_prog_cc_g=no16263 CFLAGS="-g"16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16265 /* end confdefs.h. */16266 16267 int16268 main ()16269 {16270 16271 ;16272 return 0;16273 }16274 _ACEOF16275 if ac_fn_c_try_compile "$LINENO"; then :16276 ac_cv_prog_cc_g=yes16277 else16278 CFLAGS=""16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16280 /* end confdefs.h. */16281 16282 int16283 main ()16284 {16285 16286 ;16287 return 0;16288 }16289 _ACEOF16290 if ac_fn_c_try_compile "$LINENO"; then :16291 16292 else16293 ac_c_werror_flag=$ac_save_c_werror_flag16294 CFLAGS="-g"16295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16296 /* end confdefs.h. */16297 16298 int16299 main ()16300 {16301 16302 ;16303 return 0;16304 }16305 _ACEOF16306 if ac_fn_c_try_compile "$LINENO"; then :16307 ac_cv_prog_cc_g=yes16308 fi16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16310 fi16311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16312 fi16313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext16314 ac_c_werror_flag=$ac_save_c_werror_flag16315 fi16316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&516317 $as_echo "$ac_cv_prog_cc_g" >&6; }16318 if test "$ac_test_CFLAGS" = set; then16319 CFLAGS=$ac_save_CFLAGS16320 elif test $ac_cv_prog_cc_g = yes; then16321 if test "$GCC" = yes; then16322 CFLAGS="-g -O2"16323 else16324 CFLAGS="-g"16325 fi16326 else16327 if test "$GCC" = yes; then16328 CFLAGS="-O2"16329 else16330 CFLAGS=16331 fi16332 fi16333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&516334 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }16335 if ${ac_cv_prog_cc_c89+:} false; then :16336 $as_echo_n "(cached) " >&616337 else16338 ac_cv_prog_cc_c89=no16339 ac_save_CC=$CC16340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16341 /* end confdefs.h. */16342 #include <stdarg.h>16343 #include <stdio.h>16344 struct stat;16345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */16346 struct buf { int x; };16347 FILE * (*rcsopen) (struct buf *, struct stat *, int);16348 static char *e (p, i)16349 char **p;16350 int i;16351 {16352 return p[i];16353 }16354 static char *f (char * (*g) (char **, int), char **p, ...)16355 {16356 char *s;16357 va_list v;16358 va_start (v,p);16359 s = g (p, va_arg (v,int));16360 va_end (v);16361 return s;16362 }16363 16364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has16365 function prototypes and stuff, but not '\xHH' hex character constants.16366 These don't provoke an error unfortunately, instead are silently treated16367 as 'x'. The following induces an error, until -std is added to get16368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an16369 array size at least. It's necessary to write '\x00'==0 to get something16370 that's true only with -std. */16371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];16372 16373 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters16374 inside strings and character constants. */16375 #define FOO(x) 'x'16376 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];16377 16378 int test (int i, double x);16379 struct s1 {int (*f) (int a);};16380 struct s2 {int (*f) (double a);};16381 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);16382 int argc;16383 char **argv;16384 int16385 main ()16386 {16387 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];16388 ;16389 return 0;16390 }16391 _ACEOF16392 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \16393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"16394 do16395 CC="$ac_save_CC $ac_arg"16396 if ac_fn_c_try_compile "$LINENO"; then :16397 ac_cv_prog_cc_c89=$ac_arg16398 fi16399 rm -f core conftest.err conftest.$ac_objext16400 test "x$ac_cv_prog_cc_c89" != "xno" && break16401 done16402 rm -f conftest.$ac_ext16403 CC=$ac_save_CC16404 16405 fi16406 # AC_CACHE_VAL16407 case "x$ac_cv_prog_cc_c89" in16408 x)16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&516410 $as_echo "none needed" >&6; } ;;16411 xno)16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&516413 $as_echo "unsupported" >&6; } ;;16414 *)16415 CC="$CC $ac_cv_prog_cc_c89"16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&516417 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;16418 esac16419 if test "x$ac_cv_prog_cc_c89" != xno; then :16420 16421 fi16422 16423 ac_ext=c16424 ac_cpp='$CPP $CPPFLAGS'16425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16427 ac_compiler_gnu=$ac_cv_c_compiler_gnu16428 16429 ac_ext=c16430 ac_cpp='$CPP $CPPFLAGS'16431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16433 ac_compiler_gnu=$ac_cv_c_compiler_gnu16434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&516435 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }16436 if ${am_cv_prog_cc_c_o+:} false; then :16437 $as_echo_n "(cached) " >&616438 else16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16440 /* end confdefs.h. */16441 16442 int16443 main ()16444 {16445 16446 ;16447 return 0;16448 }16449 _ACEOF16450 # Make sure it works both with $CC and with simple cc.16451 # Following AC_PROG_CC_C_O, we do the test twice because some16452 # compilers refuse to overwrite an existing .o file with -o,16453 # though they will create one.16454 am_cv_prog_cc_c_o=yes16455 for am_i in 1 2; do16456 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&516457 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&516458 ac_status=$?16459 echo "$as_me:$LINENO: \$? = $ac_status" >&516460 (exit $ac_status); } \16461 && test -f conftest2.$ac_objext; then16462 : OK16463 else16464 am_cv_prog_cc_c_o=no16465 break16466 fi16467 done16468 rm -f core conftest*16469 unset am_i16470 fi16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&516472 $as_echo "$am_cv_prog_cc_c_o" >&6; }16473 if test "$am_cv_prog_cc_c_o" != yes; then16474 # Losing compiler, so override with the script.16475 # FIXME: It is wrong to rewrite CC.16476 # But if we don't then we get into trouble of one sort or another.16477 # A longer-term fix would be to have automake use am__CC in this case,16478 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"16479 CC="$am_aux_dir/compile $CC"16480 fi16481 ac_ext=c16482 ac_cpp='$CPP $CPPFLAGS'16483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16485 ac_compiler_gnu=$ac_cv_c_compiler_gnu16486 16487 16488 depcc="$CC" am_compiler_list=16489 16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&516491 $as_echo_n "checking dependency style of $depcc... " >&6; }16492 if ${am_cv_CC_dependencies_compiler_type+:} false; then :16493 $as_echo_n "(cached) " >&616494 else16495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then16496 # We make a subdir and do the tests there. Otherwise we can end up16497 # making bogus files that we don't know about and never remove. For16498 # instance it was reported that on HP-UX the gcc test will end up16499 # making a dummy file named 'D' -- because '-MD' means "put the output16500 # in D".16501 rm -rf conftest.dir16502 mkdir conftest.dir16503 # Copy depcomp to subdir because otherwise we won't find it if we're16504 # using a relative directory.16505 cp "$am_depcomp" conftest.dir16506 cd conftest.dir16507 # We will build objects and dependencies in a subdirectory because16508 # it helps to detect inapplicable dependency modes. For instance16509 # both Tru64's cc and ICC support -MD to output dependencies as a16510 # side effect of compilation, but ICC will put the dependencies in16511 # the current directory while Tru64 will put them in the object16512 # directory.16513 mkdir sub16514 16515 am_cv_CC_dependencies_compiler_type=none16516 if test "$am_compiler_list" = ""; then16517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`16518 fi16519 am__universal=false16520 case " $depcc " in #(16521 *\ -arch\ *\ -arch\ *) am__universal=true ;;16522 esac16523 16524 for depmode in $am_compiler_list; do16525 # Setup a source with many dependencies, because some compilers16526 # like to wrap large dependency lists on column 80 (with \), and16527 # we should not choose a depcomp mode which is confused by this.16528 #16529 # We need to recreate these files for each test, as the compiler may16530 # overwrite some of them when testing with obscure command lines.16531 # This happens at least with the AIX C compiler.16532 : > sub/conftest.c16533 for i in 1 2 3 4 5 6; do16534 echo '#include "conftst'$i'.h"' >> sub/conftest.c16535 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with16536 # Solaris 10 /bin/sh.16537 echo '/* dummy */' > sub/conftst$i.h16538 done16539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf16540 16541 # We check with '-c' and '-o' for the sake of the "dashmstdout"16542 # mode. It turns out that the SunPro C++ compiler does not properly16543 # handle '-M -o', and we need to detect this. Also, some Intel16544 # versions had trouble with output in subdirs.16545 am__obj=sub/conftest.${OBJEXT-o}16546 am__minus_obj="-o $am__obj"16547 case $depmode in16548 gcc)16549 # This depmode causes a compiler race in universal mode.16550 test "$am__universal" = false || continue16551 ;;16552 nosideeffect)16553 # After this tag, mechanisms are not by side-effect, so they'll16554 # only be used when explicitly requested.16555 if test "x$enable_dependency_tracking" = xyes; then16556 continue16557 else16558 break16559 fi16560 ;;16561 msvc7 | msvc7msys | msvisualcpp | msvcmsys)16562 # This compiler won't grok '-c -o', but also, the minuso test has16563 # not run yet. These depmodes are late enough in the game, and16564 # so weak that their functioning should not be impacted.16565 am__obj=conftest.${OBJEXT-o}16566 am__minus_obj=16567 ;;16568 none) break ;;16569 esac16570 if depmode=$depmode \16571 source=sub/conftest.c object=$am__obj \16572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \16573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \16574 >/dev/null 2>conftest.err &&16575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&16576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&16577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&16578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then16579 # icc doesn't choke on unknown options, it will just issue warnings16580 # or remarks (even with -Werror). So we grep stderr for any message16581 # that says an option was ignored or not supported.16582 # When given -MP, icc 7.0 and 7.1 complain thusly:16583 # icc: Command line warning: ignoring option '-M'; no argument required16584 # The diagnosis changed in icc 8.0:16585 # icc: Command line remark: option '-MP' not supported16586 if (grep 'ignoring option' conftest.err ||16587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else16588 am_cv_CC_dependencies_compiler_type=$depmode16589 break16590 fi16591 fi16592 done16593 16594 cd ..16595 rm -rf conftest.dir16596 else16597 am_cv_CC_dependencies_compiler_type=none16598 fi16599 16600 fi16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&516602 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }16603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type16604 16605 if16606 test "x$enable_dependency_tracking" != xno \16607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then16608 am__fastdepCC_TRUE=16609 am__fastdepCC_FALSE='#'16610 else16611 am__fastdepCC_TRUE='#'16612 am__fastdepCC_FALSE=16613 fi16614 16615 16616 4074 # By default we simply use the C compiler to build assembly code. 16617 4075 … … 16779 4237 fi 16780 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 16781 4331 16782 4332 ac_config_files="$ac_config_files Makefile src/Makefile prelude/Makefile" … … 16944 4494 fi 16945 4495 4496 if test -z "${BUILDLIB_TRUE}" && test -z "${BUILDLIB_FALSE}"; then 4497 as_fn_error $? "conditional \"BUILDLIB\" was never defined. 4498 Usually this means the macro was only invoked conditionally." "$LINENO" 5 4499 fi 16946 4500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 16947 4501 as_fn_error $? "conditional \"AMDEP\" was never defined. 16948 Usually this means the macro was only invoked conditionally." "$LINENO" 516949 fi16950 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then16951 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.16952 4502 Usually this means the macro was only invoked conditionally." "$LINENO" 5 16953 4503 fi … … 17528 5078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 17529 5079 17530 17531 # The HP-UX ksh and POSIX shell print the target directory to stdout17532 # if CDPATH is set.17533 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH17534 17535 sed_quote_subst='$sed_quote_subst'17536 double_quote_subst='$double_quote_subst'17537 delay_variable_subst='$delay_variable_subst'17538 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'17539 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'17540 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'17541 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'17542 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'17543 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'17544 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'17545 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'17546 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'17547 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'17548 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'17549 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'17550 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'17551 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'17552 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'17553 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'17554 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'17555 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'17556 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'17557 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'17558 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'17559 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'17560 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'17561 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'17562 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'17563 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'17564 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'17565 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'17566 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'17567 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'17568 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'17569 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'17570 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'17571 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'17572 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'17573 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'17574 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'17575 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'17576 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'17577 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'17578 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'17579 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'17580 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'17581 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'17582 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'17583 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'17584 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'17585 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17586 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'17587 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'17588 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'17589 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'17590 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'17591 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'17592 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'17593 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'17594 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'17595 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'17596 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"`'17597 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'17598 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'17599 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'17600 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'17601 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'17602 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'17603 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'17604 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'17605 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'17606 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'17607 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'17608 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'17609 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'17610 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'17611 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'17612 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'17613 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'17614 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'17615 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'17616 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'17617 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17618 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'17619 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'17620 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'17621 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'17622 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'17623 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'17624 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'17625 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'17626 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'17627 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'17628 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'17629 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'17630 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'17631 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'17632 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'17633 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'17634 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'17635 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'17636 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'17637 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'17638 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'17639 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'17640 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'17641 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'17642 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'17643 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'17644 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'17645 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'17646 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'17647 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'17648 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'17649 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'17650 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'17651 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'17652 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'17653 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'17654 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'17655 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'17656 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'17657 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'17658 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'17659 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'17660 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'17661 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'17662 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'17663 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'17664 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'17665 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'17666 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'17667 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'17668 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'17669 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'17670 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'17671 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'17672 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'17673 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'17674 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'17675 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'17676 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'17677 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'17678 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'17679 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'17680 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'17681 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'17682 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17683 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'17684 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'17685 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'17686 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'17687 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'17688 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'17689 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'17690 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'17691 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'17692 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17693 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17694 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'17695 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'17696 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'17697 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'17698 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17699 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'17700 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'17701 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'17702 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17703 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'17704 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'17705 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'17706 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'17707 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'17708 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'17709 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'17710 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'17711 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'17712 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'17713 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'17714 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'17715 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17716 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'17717 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17718 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'17719 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'17720 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'17721 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'17722 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'17723 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'17724 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'17725 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'17726 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'17727 17728 LTCC='$LTCC'17729 LTCFLAGS='$LTCFLAGS'17730 compiler='$compiler_DEFAULT'17731 17732 # A function that is used when there is no print builtin or printf.17733 func_fallback_echo ()17734 {17735 eval 'cat <<_LTECHO_EOF17736 \$117737 _LTECHO_EOF'17738 }17739 17740 # Quote evaled strings.17741 for var in SHELL \17742 ECHO \17743 PATH_SEPARATOR \17744 SED \17745 GREP \17746 EGREP \17747 FGREP \17748 LD \17749 NM \17750 LN_S \17751 lt_SP2NL \17752 lt_NL2SP \17753 reload_flag \17754 OBJDUMP \17755 deplibs_check_method \17756 file_magic_cmd \17757 file_magic_glob \17758 want_nocaseglob \17759 DLLTOOL \17760 sharedlib_from_linklib_cmd \17761 AR \17762 AR_FLAGS \17763 archiver_list_spec \17764 STRIP \17765 RANLIB \17766 CC \17767 CFLAGS \17768 compiler \17769 lt_cv_sys_global_symbol_pipe \17770 lt_cv_sys_global_symbol_to_cdecl \17771 lt_cv_sys_global_symbol_to_import \17772 lt_cv_sys_global_symbol_to_c_name_address \17773 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \17774 lt_cv_nm_interface \17775 nm_file_list_spec \17776 lt_cv_truncate_bin \17777 lt_prog_compiler_no_builtin_flag \17778 lt_prog_compiler_pic \17779 lt_prog_compiler_wl \17780 lt_prog_compiler_static \17781 lt_cv_prog_compiler_c_o \17782 need_locks \17783 MANIFEST_TOOL \17784 DSYMUTIL \17785 NMEDIT \17786 LIPO \17787 OTOOL \17788 OTOOL64 \17789 shrext_cmds \17790 export_dynamic_flag_spec \17791 whole_archive_flag_spec \17792 compiler_needs_object \17793 with_gnu_ld \17794 allow_undefined_flag \17795 no_undefined_flag \17796 hardcode_libdir_flag_spec \17797 hardcode_libdir_separator \17798 exclude_expsyms \17799 include_expsyms \17800 file_list_spec \17801 variables_saved_for_relink \17802 libname_spec \17803 library_names_spec \17804 soname_spec \17805 install_override_mode \17806 finish_eval \17807 old_striplib \17808 striplib \17809 compiler_lib_search_dirs \17810 predep_objects \17811 postdep_objects \17812 predeps \17813 postdeps \17814 compiler_lib_search_path \17815 LD_CXX \17816 reload_flag_CXX \17817 compiler_CXX \17818 lt_prog_compiler_no_builtin_flag_CXX \17819 lt_prog_compiler_pic_CXX \17820 lt_prog_compiler_wl_CXX \17821 lt_prog_compiler_static_CXX \17822 lt_cv_prog_compiler_c_o_CXX \17823 export_dynamic_flag_spec_CXX \17824 whole_archive_flag_spec_CXX \17825 compiler_needs_object_CXX \17826 with_gnu_ld_CXX \17827 allow_undefined_flag_CXX \17828 no_undefined_flag_CXX \17829 hardcode_libdir_flag_spec_CXX \17830 hardcode_libdir_separator_CXX \17831 exclude_expsyms_CXX \17832 include_expsyms_CXX \17833 file_list_spec_CXX \17834 compiler_lib_search_dirs_CXX \17835 predep_objects_CXX \17836 postdep_objects_CXX \17837 predeps_CXX \17838 postdeps_CXX \17839 compiler_lib_search_path_CXX; do17840 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17841 *[\\\\\\\`\\"\\\$]*)17842 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17843 ;;17844 *)17845 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17846 ;;17847 esac17848 done17849 17850 # Double-quote double-evaled strings.17851 for var in reload_cmds \17852 old_postinstall_cmds \17853 old_postuninstall_cmds \17854 old_archive_cmds \17855 extract_expsyms_cmds \17856 old_archive_from_new_cmds \17857 old_archive_from_expsyms_cmds \17858 archive_cmds \17859 archive_expsym_cmds \17860 module_cmds \17861 module_expsym_cmds \17862 export_symbols_cmds \17863 prelink_cmds \17864 postlink_cmds \17865 postinstall_cmds \17866 postuninstall_cmds \17867 finish_cmds \17868 sys_lib_search_path_spec \17869 configure_time_dlsearch_path \17870 configure_time_lt_sys_library_path \17871 reload_cmds_CXX \17872 old_archive_cmds_CXX \17873 old_archive_from_new_cmds_CXX \17874 old_archive_from_expsyms_cmds_CXX \17875 archive_cmds_CXX \17876 archive_expsym_cmds_CXX \17877 module_cmds_CXX \17878 module_expsym_cmds_CXX \17879 export_symbols_cmds_CXX \17880 prelink_cmds_CXX \17881 postlink_cmds_CXX; do17882 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in17883 *[\\\\\\\`\\"\\\$]*)17884 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes17885 ;;17886 *)17887 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""17888 ;;17889 esac17890 done17891 17892 ac_aux_dir='$ac_aux_dir'17893 17894 # See if we are running on zsh, and set the options that allow our17895 # commands through without removal of \ escapes INIT.17896 if test -n "\${ZSH_VERSION+set}"; then17897 setopt NO_GLOB_SUBST17898 fi17899 17900 17901 PACKAGE='$PACKAGE'17902 VERSION='$VERSION'17903 RM='$RM'17904 ofile='$ofile'17905 17906 17907 17908 17909 17910 17911 5080 _ACEOF 17912 5081 … … 17918 5087 case $ac_config_target in 17919 5088 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 17920 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;17921 5089 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 17922 5090 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; … … 18444 5612 } 18445 5613 ;; 18446 "libtool":C)18447 18448 # See if we are running on zsh, and set the options that allow our18449 # commands through without removal of \ escapes.18450 if test -n "${ZSH_VERSION+set}"; then18451 setopt NO_GLOB_SUBST18452 fi18453 18454 cfgfile=${ofile}T18455 trap "$RM \"$cfgfile\"; exit 1" 1 2 1518456 $RM "$cfgfile"18457 18458 cat <<_LT_EOF >> "$cfgfile"18459 #! $SHELL18460 # Generated automatically by $as_me ($PACKAGE) $VERSION18461 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:18462 # NOTE: Changes made to this file will be lost: look at ltmain.sh.18463 18464 # Provide generalized library-building support services.18465 # Written by Gordon Matzigkeit, 199618466 18467 # Copyright (C) 2014 Free Software Foundation, Inc.18468 # This is free software; see the source for copying conditions. There is NO18469 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.18470 18471 # GNU Libtool is free software; you can redistribute it and/or modify18472 # it under the terms of the GNU General Public License as published by18473 # the Free Software Foundation; either version 2 of of the License, or18474 # (at your option) any later version.18475 #18476 # As a special exception to the GNU General Public License, if you18477 # distribute this file as part of a program or library that is built18478 # using GNU Libtool, you may include this file under the same18479 # distribution terms that you use for the rest of that program.18480 #18481 # GNU Libtool is distributed in the hope that it will be useful, but18482 # WITHOUT ANY WARRANTY; without even the implied warranty of18483 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the18484 # GNU General Public License for more details.18485 #18486 # You should have received a copy of the GNU General Public License18487 # along with this program. If not, see <http://www.gnu.org/licenses/>.18488 18489 18490 # The names of the tagged configurations supported by this script.18491 available_tags='CXX '18492 18493 # Configured defaults for sys_lib_dlsearch_path munging.18494 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}18495 18496 # ### BEGIN LIBTOOL CONFIG18497 18498 # Which release of libtool.m4 was used?18499 macro_version=$macro_version18500 macro_revision=$macro_revision18501 18502 # Whether or not to build shared libraries.18503 build_libtool_libs=$enable_shared18504 18505 # Whether or not to build static libraries.18506 build_old_libs=$enable_static18507 18508 # What type of objects to build.18509 pic_mode=$pic_mode18510 18511 # Whether or not to optimize for fast installation.18512 fast_install=$enable_fast_install18513 18514 # Shared archive member basename,for filename based shared library versioning on AIX.18515 shared_archive_member_spec=$shared_archive_member_spec18516 18517 # Shell to use when invoking shell scripts.18518 SHELL=$lt_SHELL18519 18520 # An echo program that protects backslashes.18521 ECHO=$lt_ECHO18522 18523 # The PATH separator for the build system.18524 PATH_SEPARATOR=$lt_PATH_SEPARATOR18525 18526 # The host system.18527 host_alias=$host_alias18528 host=$host18529 host_os=$host_os18530 18531 # The build system.18532 build_alias=$build_alias18533 build=$build18534 build_os=$build_os18535 18536 # A sed program that does not truncate output.18537 SED=$lt_SED18538 18539 # Sed that helps us avoid accidentally triggering echo(1) options like -n.18540 Xsed="\$SED -e 1s/^X//"18541 18542 # A grep program that handles long lines.18543 GREP=$lt_GREP18544 18545 # An ERE matcher.18546 EGREP=$lt_EGREP18547 18548 # A literal string matcher.18549 FGREP=$lt_FGREP18550 18551 # A BSD- or MS-compatible name lister.18552 NM=$lt_NM18553 18554 # Whether we need soft or hard links.18555 LN_S=$lt_LN_S18556 18557 # What is the maximum length of a command?18558 max_cmd_len=$max_cmd_len18559 18560 # Object file suffix (normally "o").18561 objext=$ac_objext18562 18563 # Executable file suffix (normally "").18564 exeext=$exeext18565 18566 # whether the shell understands "unset".18567 lt_unset=$lt_unset18568 18569 # turn spaces into newlines.18570 SP2NL=$lt_lt_SP2NL18571 18572 # turn newlines into spaces.18573 NL2SP=$lt_lt_NL2SP18574 18575 # convert \$build file names to \$host format.18576 to_host_file_cmd=$lt_cv_to_host_file_cmd18577 18578 # convert \$build files to toolchain format.18579 to_tool_file_cmd=$lt_cv_to_tool_file_cmd18580 18581 # An object symbol dumper.18582 OBJDUMP=$lt_OBJDUMP18583 18584 # Method to check whether dependent libraries are shared objects.18585 deplibs_check_method=$lt_deplibs_check_method18586 18587 # Command to use when deplibs_check_method = "file_magic".18588 file_magic_cmd=$lt_file_magic_cmd18589 18590 # How to find potential files when deplibs_check_method = "file_magic".18591 file_magic_glob=$lt_file_magic_glob18592 18593 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".18594 want_nocaseglob=$lt_want_nocaseglob18595 18596 # DLL creation program.18597 DLLTOOL=$lt_DLLTOOL18598 18599 # Command to associate shared and link libraries.18600 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd18601 18602 # The archiver.18603 AR=$lt_AR18604 18605 # Flags to create an archive.18606 AR_FLAGS=$lt_AR_FLAGS18607 18608 # How to feed a file listing to the archiver.18609 archiver_list_spec=$lt_archiver_list_spec18610 18611 # A symbol stripping program.18612 STRIP=$lt_STRIP18613 18614 # Commands used to install an old-style archive.18615 RANLIB=$lt_RANLIB18616 old_postinstall_cmds=$lt_old_postinstall_cmds18617 old_postuninstall_cmds=$lt_old_postuninstall_cmds18618 18619 # Whether to use a lock for old archive extraction.18620 lock_old_archive_extraction=$lock_old_archive_extraction18621 18622 # A C compiler.18623 LTCC=$lt_CC18624 18625 # LTCC compiler flags.18626 LTCFLAGS=$lt_CFLAGS18627 18628 # Take the output of nm and produce a listing of raw symbols and C names.18629 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe18630 18631 # Transform the output of nm in a proper C declaration.18632 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl18633 18634 # Transform the output of nm into a list of symbols to manually relocate.18635 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import18636 18637 # Transform the output of nm in a C name address pair.18638 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address18639 18640 # Transform the output of nm in a C name address pair when lib prefix is needed.18641 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix18642 18643 # The name lister interface.18644 nm_interface=$lt_lt_cv_nm_interface18645 18646 # Specify filename containing input files for \$NM.18647 nm_file_list_spec=$lt_nm_file_list_spec18648 18649 # The root where to search for dependent libraries,and where our libraries should be installed.18650 lt_sysroot=$lt_sysroot18651 18652 # Command to truncate a binary pipe.18653 lt_truncate_bin=$lt_lt_cv_truncate_bin18654 18655 # The name of the directory that contains temporary libtool files.18656 objdir=$objdir18657 18658 # Used to examine libraries when file_magic_cmd begins with "file".18659 MAGIC_CMD=$MAGIC_CMD18660 18661 # Must we lock files when doing compilation?18662 need_locks=$lt_need_locks18663 18664 # Manifest tool.18665 MANIFEST_TOOL=$lt_MANIFEST_TOOL18666 18667 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.18668 DSYMUTIL=$lt_DSYMUTIL18669 18670 # Tool to change global to local symbols on Mac OS X.18671 NMEDIT=$lt_NMEDIT18672 18673 # Tool to manipulate fat objects and archives on Mac OS X.18674 LIPO=$lt_LIPO18675 18676 # ldd/readelf like tool for Mach-O binaries on Mac OS X.18677 OTOOL=$lt_OTOOL18678 18679 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.18680 OTOOL64=$lt_OTOOL6418681 18682 # Old archive suffix (normally "a").18683 libext=$libext18684 18685 # Shared library suffix (normally ".so").18686 shrext_cmds=$lt_shrext_cmds18687 18688 # The commands to extract the exported symbol list from a shared archive.18689 extract_expsyms_cmds=$lt_extract_expsyms_cmds18690 18691 # Variables whose values should be saved in libtool wrapper scripts and18692 # restored at link time.18693 variables_saved_for_relink=$lt_variables_saved_for_relink18694 18695 # Do we need the "lib" prefix for modules?18696 need_lib_prefix=$need_lib_prefix18697 18698 # Do we need a version for libraries?18699 need_version=$need_version18700 18701 # Library versioning type.18702 version_type=$version_type18703 18704 # Shared library runtime path variable.18705 runpath_var=$runpath_var18706 18707 # Shared library path variable.18708 shlibpath_var=$shlibpath_var18709 18710 # Is shlibpath searched before the hard-coded library search path?18711 shlibpath_overrides_runpath=$shlibpath_overrides_runpath18712 18713 # Format of library name prefix.18714 libname_spec=$lt_libname_spec18715 18716 # List of archive names. First name is the real one, the rest are links.18717 # The last name is the one that the linker finds with -lNAME18718 library_names_spec=$lt_library_names_spec18719 18720 # The coded name of the library, if different from the real name.18721 soname_spec=$lt_soname_spec18722 18723 # Permission mode override for installation of shared libraries.18724 install_override_mode=$lt_install_override_mode18725 18726 # Command to use after installation of a shared archive.18727 postinstall_cmds=$lt_postinstall_cmds18728 18729 # Command to use after uninstallation of a shared archive.18730 postuninstall_cmds=$lt_postuninstall_cmds18731 18732 # Commands used to finish a libtool library installation in a directory.18733 finish_cmds=$lt_finish_cmds18734 18735 # As "finish_cmds", except a single script fragment to be evaled but18736 # not shown.18737 finish_eval=$lt_finish_eval18738 18739 # Whether we should hardcode library paths into libraries.18740 hardcode_into_libs=$hardcode_into_libs18741 18742 # Compile-time system search path for libraries.18743 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec18744 18745 # Detected run-time system search path for libraries.18746 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path18747 18748 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.18749 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path18750 18751 # Whether dlopen is supported.18752 dlopen_support=$enable_dlopen18753 18754 # Whether dlopen of programs is supported.18755 dlopen_self=$enable_dlopen_self18756 18757 # Whether dlopen of statically linked programs is supported.18758 dlopen_self_static=$enable_dlopen_self_static18759 18760 # Commands to strip libraries.18761 old_striplib=$lt_old_striplib18762 striplib=$lt_striplib18763 18764 18765 # The linker used to build libraries.18766 LD=$lt_LD18767 18768 # How to create reloadable object files.18769 reload_flag=$lt_reload_flag18770 reload_cmds=$lt_reload_cmds18771 18772 # Commands used to build an old-style archive.18773 old_archive_cmds=$lt_old_archive_cmds18774 18775 # A language specific compiler.18776 CC=$lt_compiler18777 18778 # Is the compiler the GNU compiler?18779 with_gcc=$GCC18780 18781 # Compiler flag to turn off builtin functions.18782 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag18783 18784 # Additional compiler flags for building library objects.18785 pic_flag=$lt_lt_prog_compiler_pic18786 18787 # How to pass a linker flag through the compiler.18788 wl=$lt_lt_prog_compiler_wl18789 18790 # Compiler flag to prevent dynamic linking.18791 link_static_flag=$lt_lt_prog_compiler_static18792 18793 # Does compiler simultaneously support -c and -o options?18794 compiler_c_o=$lt_lt_cv_prog_compiler_c_o18795 18796 # Whether or not to add -lc for building shared libraries.18797 build_libtool_need_lc=$archive_cmds_need_lc18798 18799 # Whether or not to disallow shared libs when runtime libs are static.18800 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes18801 18802 # Compiler flag to allow reflexive dlopens.18803 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec18804 18805 # Compiler flag to generate shared objects directly from archives.18806 whole_archive_flag_spec=$lt_whole_archive_flag_spec18807 18808 # Whether the compiler copes with passing no objects directly.18809 compiler_needs_object=$lt_compiler_needs_object18810 18811 # Create an old-style archive from a shared archive.18812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds18813 18814 # Create a temporary old-style archive to link instead of a shared archive.18815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds18816 18817 # Commands used to build a shared archive.18818 archive_cmds=$lt_archive_cmds18819 archive_expsym_cmds=$lt_archive_expsym_cmds18820 18821 # Commands used to build a loadable module if different from building18822 # a shared archive.18823 module_cmds=$lt_module_cmds18824 module_expsym_cmds=$lt_module_expsym_cmds18825 18826 # Whether we are building with GNU ld or not.18827 with_gnu_ld=$lt_with_gnu_ld18828 18829 # Flag that allows shared libraries with undefined symbols to be built.18830 allow_undefined_flag=$lt_allow_undefined_flag18831 18832 # Flag that enforces no undefined symbols.18833 no_undefined_flag=$lt_no_undefined_flag18834 18835 # Flag to hardcode \$libdir into a binary during linking.18836 # This must work even if \$libdir does not exist18837 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec18838 18839 # Whether we need a single "-rpath" flag with a separated argument.18840 hardcode_libdir_separator=$lt_hardcode_libdir_separator18841 18842 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18843 # DIR into the resulting binary.18844 hardcode_direct=$hardcode_direct18845 18846 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes18847 # DIR into the resulting binary and the resulting library dependency is18848 # "absolute",i.e impossible to change by setting \$shlibpath_var if the18849 # library is relocated.18850 hardcode_direct_absolute=$hardcode_direct_absolute18851 18852 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR18853 # into the resulting binary.18854 hardcode_minus_L=$hardcode_minus_L18855 18856 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR18857 # into the resulting binary.18858 hardcode_shlibpath_var=$hardcode_shlibpath_var18859 18860 # Set to "yes" if building a shared library automatically hardcodes DIR18861 # into the library and all subsequent libraries and executables linked18862 # against it.18863 hardcode_automatic=$hardcode_automatic18864 18865 # Set to yes if linker adds runtime paths of dependent libraries18866 # to runtime path list.18867 inherit_rpath=$inherit_rpath18868 18869 # Whether libtool must link a program against all its dependency libraries.18870 link_all_deplibs=$link_all_deplibs18871 18872 # Set to "yes" if exported symbols are required.18873 always_export_symbols=$always_export_symbols18874 18875 # The commands to list exported symbols.18876 export_symbols_cmds=$lt_export_symbols_cmds18877 18878 # Symbols that should not be listed in the preloaded symbols.18879 exclude_expsyms=$lt_exclude_expsyms18880 18881 # Symbols that must always be exported.18882 include_expsyms=$lt_include_expsyms18883 18884 # Commands necessary for linking programs (against libraries) with templates.18885 prelink_cmds=$lt_prelink_cmds18886 18887 # Commands necessary for finishing linking programs.18888 postlink_cmds=$lt_postlink_cmds18889 18890 # Specify filename containing input files.18891 file_list_spec=$lt_file_list_spec18892 18893 # How to hardcode a shared library path into an executable.18894 hardcode_action=$hardcode_action18895 18896 # The directories searched by this compiler when creating a shared library.18897 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs18898 18899 # Dependencies to place before and after the objects being linked to18900 # create a shared library.18901 predep_objects=$lt_predep_objects18902 postdep_objects=$lt_postdep_objects18903 predeps=$lt_predeps18904 postdeps=$lt_postdeps18905 18906 # The library search path used internally by the compiler when linking18907 # a shared library.18908 compiler_lib_search_path=$lt_compiler_lib_search_path18909 18910 # ### END LIBTOOL CONFIG18911 18912 _LT_EOF18913 18914 cat <<'_LT_EOF' >> "$cfgfile"18915 18916 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE18917 18918 # func_munge_path_list VARIABLE PATH18919 # -----------------------------------18920 # VARIABLE is name of variable containing _space_ separated list of18921 # directories to be munged by the contents of PATH, which is string18922 # having a format:18923 # "DIR[:DIR]:"18924 # string "DIR[ DIR]" will be prepended to VARIABLE18925 # ":DIR[:DIR]"18926 # string "DIR[ DIR]" will be appended to VARIABLE18927 # "DIRP[:DIRP]::[DIRA:]DIRA"18928 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string18929 # "DIRA[ DIRA]" will be appended to VARIABLE18930 # "DIR[:DIR]"18931 # VARIABLE will be replaced by "DIR[ DIR]"18932 func_munge_path_list ()18933 {18934 case x$2 in18935 x)18936 ;;18937 *:)18938 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"18939 ;;18940 x:*)18941 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"18942 ;;18943 *::*)18944 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"18945 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"18946 ;;18947 *)18948 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"18949 ;;18950 esac18951 }18952 18953 18954 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.18955 func_cc_basename ()18956 {18957 for cc_temp in $*""; do18958 case $cc_temp in18959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;18960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;18961 \-*) ;;18962 *) break;;18963 esac18964 done18965 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`18966 }18967 18968 18969 # ### END FUNCTIONS SHARED WITH CONFIGURE18970 18971 _LT_EOF18972 18973 case $host_os in18974 aix3*)18975 cat <<\_LT_EOF >> "$cfgfile"18976 # AIX sometimes has problems with the GCC collect2 program. For some18977 # reason, if we set the COLLECT_NAMES environment variable, the problems18978 # vanish in a puff of smoke.18979 if test set != "${COLLECT_NAMES+set}"; then18980 COLLECT_NAMES=18981 export COLLECT_NAMES18982 fi18983 _LT_EOF18984 ;;18985 esac18986 18987 18988 ltmain=$ac_aux_dir/ltmain.sh18989 18990 18991 # We use sed instead of cat because bash on DJGPP gets confused if18992 # if finds mixed CR/LF and LF-only lines. Since sed operates in18993 # text mode, it properly converts lines to CR/LF. This bash problem18994 # is reportedly fixed, but why not run on old versions too?18995 sed '$q' "$ltmain" >> "$cfgfile" \18996 || (rm -f "$cfgfile"; exit 1)18997 18998 mv -f "$cfgfile" "$ofile" ||18999 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")19000 chmod +x "$ofile"19001 19002 19003 cat <<_LT_EOF >> "$ofile"19004 19005 # ### BEGIN LIBTOOL TAG CONFIG: CXX19006 19007 # The linker used to build libraries.19008 LD=$lt_LD_CXX19009 19010 # How to create reloadable object files.19011 reload_flag=$lt_reload_flag_CXX19012 reload_cmds=$lt_reload_cmds_CXX19013 19014 # Commands used to build an old-style archive.19015 old_archive_cmds=$lt_old_archive_cmds_CXX19016 19017 # A language specific compiler.19018 CC=$lt_compiler_CXX19019 19020 # Is the compiler the GNU compiler?19021 with_gcc=$GCC_CXX19022 19023 # Compiler flag to turn off builtin functions.19024 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX19025 19026 # Additional compiler flags for building library objects.19027 pic_flag=$lt_lt_prog_compiler_pic_CXX19028 19029 # How to pass a linker flag through the compiler.19030 wl=$lt_lt_prog_compiler_wl_CXX19031 19032 # Compiler flag to prevent dynamic linking.19033 link_static_flag=$lt_lt_prog_compiler_static_CXX19034 19035 # Does compiler simultaneously support -c and -o options?19036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX19037 19038 # Whether or not to add -lc for building shared libraries.19039 build_libtool_need_lc=$archive_cmds_need_lc_CXX19040 19041 # Whether or not to disallow shared libs when runtime libs are static.19042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX19043 19044 # Compiler flag to allow reflexive dlopens.19045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX19046 19047 # Compiler flag to generate shared objects directly from archives.19048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX19049 19050 # Whether the compiler copes with passing no objects directly.19051 compiler_needs_object=$lt_compiler_needs_object_CXX19052 19053 # Create an old-style archive from a shared archive.19054 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX19055 19056 # Create a temporary old-style archive to link instead of a shared archive.19057 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX19058 19059 # Commands used to build a shared archive.19060 archive_cmds=$lt_archive_cmds_CXX19061 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX19062 19063 # Commands used to build a loadable module if different from building19064 # a shared archive.19065 module_cmds=$lt_module_cmds_CXX19066 module_expsym_cmds=$lt_module_expsym_cmds_CXX19067 19068 # Whether we are building with GNU ld or not.19069 with_gnu_ld=$lt_with_gnu_ld_CXX19070 19071 # Flag that allows shared libraries with undefined symbols to be built.19072 allow_undefined_flag=$lt_allow_undefined_flag_CXX19073 19074 # Flag that enforces no undefined symbols.19075 no_undefined_flag=$lt_no_undefined_flag_CXX19076 19077 # Flag to hardcode \$libdir into a binary during linking.19078 # This must work even if \$libdir does not exist19079 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX19080 19081 # Whether we need a single "-rpath" flag with a separated argument.19082 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX19083 19084 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19085 # DIR into the resulting binary.19086 hardcode_direct=$hardcode_direct_CXX19087 19088 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19089 # DIR into the resulting binary and the resulting library dependency is19090 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19091 # library is relocated.19092 hardcode_direct_absolute=$hardcode_direct_absolute_CXX19093 19094 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19095 # into the resulting binary.19096 hardcode_minus_L=$hardcode_minus_L_CXX19097 19098 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19099 # into the resulting binary.19100 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX19101 19102 # Set to "yes" if building a shared library automatically hardcodes DIR19103 # into the library and all subsequent libraries and executables linked19104 # against it.19105 hardcode_automatic=$hardcode_automatic_CXX19106 19107 # Set to yes if linker adds runtime paths of dependent libraries19108 # to runtime path list.19109 inherit_rpath=$inherit_rpath_CXX19110 19111 # Whether libtool must link a program against all its dependency libraries.19112 link_all_deplibs=$link_all_deplibs_CXX19113 19114 # Set to "yes" if exported symbols are required.19115 always_export_symbols=$always_export_symbols_CXX19116 19117 # The commands to list exported symbols.19118 export_symbols_cmds=$lt_export_symbols_cmds_CXX19119 19120 # Symbols that should not be listed in the preloaded symbols.19121 exclude_expsyms=$lt_exclude_expsyms_CXX19122 19123 # Symbols that must always be exported.19124 include_expsyms=$lt_include_expsyms_CXX19125 19126 # Commands necessary for linking programs (against libraries) with templates.19127 prelink_cmds=$lt_prelink_cmds_CXX19128 19129 # Commands necessary for finishing linking programs.19130 postlink_cmds=$lt_postlink_cmds_CXX19131 19132 # Specify filename containing input files.19133 file_list_spec=$lt_file_list_spec_CXX19134 19135 # How to hardcode a shared library path into an executable.19136 hardcode_action=$hardcode_action_CXX19137 19138 # The directories searched by this compiler when creating a shared library.19139 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX19140 19141 # Dependencies to place before and after the objects being linked to19142 # create a shared library.19143 predep_objects=$lt_predep_objects_CXX19144 postdep_objects=$lt_postdep_objects_CXX19145 predeps=$lt_predeps_CXX19146 postdeps=$lt_postdeps_CXX19147 19148 # The library search path used internally by the compiler when linking19149 # a shared library.19150 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX19151 19152 # ### END LIBTOOL TAG CONFIG: CXX19153 _LT_EOF19154 19155 ;;19156 5614 19157 5615 esac
Note:
See TracChangeset
for help on using the changeset viewer.