Changes in configure [107b01a:41cca44]
Legend:
- Unmodified
- Added
- Removed
-
configure
r107b01a r41cca44 199 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 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\$ECHO205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO206 PATH=/empty FPATH=/empty; export PATH FPATH207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1209 201 test \$(( 1 + 1 )) = 2 || exit 1" 210 202 if (eval "$as_required") 2>/dev/null; then : … … 565 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 558 567 SHELL=${CONFIG_SHELL-/bin/sh}568 569 559 570 560 test -n "$DJDIR" || exec 7<&0 </dev/null … … 636 626 LTLIBOBJS 637 627 LIBOBJS 638 CFA_BACKEND_CC639 628 ALLOCA 629 EGREP 630 GREP 631 CPP 640 632 WITH_LIBFIBRE_FALSE 641 633 WITH_LIBFIBRE_TRUE 642 CXXCPP643 CPP644 LT_SYS_LIBRARY_PATH645 OTOOL64646 OTOOL647 LIPO648 NMEDIT649 DSYMUTIL650 MANIFEST_TOOL651 634 RANLIB 652 ac_ct_AR653 AR654 DLLTOOL655 OBJDUMP656 LN_S657 NM658 ac_ct_DUMPBIN659 DUMPBIN660 LD661 FGREP662 EGREP663 GREP664 SED665 LIBTOOL666 635 LEXLIB 667 636 LEX_OUTPUT_ROOT … … 718 687 CFA_INCDIR 719 688 CFA_PREFIX 689 CFA_BACKEND_CC 690 BACKEND_CC 720 691 DOendif 721 692 DOifskipcompile … … 792 763 enable_silent_rules 793 764 with_cfa_name 765 with_backend_compiler 794 766 with_target_hosts 795 767 enable_dependency_tracking 796 enable_shared797 enable_static798 with_pic799 enable_fast_install800 with_aix_soname801 with_gnu_ld802 with_sysroot803 enable_libtool_lock804 768 ' 805 769 ac_precious_vars='build_alias … … 818 782 YACC 819 783 YFLAGS 820 LT_SYS_LIBRARY_PATH 821 CPP 822 CXXCPP' 784 CPP' 823 785 824 786 … … 1456 1418 --disable-dependency-tracking 1457 1419 speeds up one-time build 1458 --enable-shared[=PKGS] build shared libraries [default=yes]1459 --enable-static[=PKGS] build static libraries [default=yes]1460 --enable-fast-install[=PKGS]1461 optimize for fast installation [default=yes]1462 --disable-libtool-lock avoid locking (might break parallel builds)1463 1420 1464 1421 Optional Packages: … … 1466 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 1424 --with-cfa-name=NAME NAME too which cfa will be installed 1425 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) 1468 1426 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib 1469 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use1470 both]1471 --with-aix-soname=aix|svr4|both1472 shared library versioning (aka "SONAME") variant to1473 provide on AIX, [default=aix].1474 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1475 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the1476 compiler's sysroot if not specified).1477 1427 1478 1428 Some influential environment variables: … … 1494 1444 This script will default YFLAGS to the empty string to avoid a 1495 1445 default value of `-d' given by some make applications. 1496 LT_SYS_LIBRARY_PATH1497 User-defined run-time library search path.1498 1446 CPP C preprocessor 1499 CXXCPP C++ preprocessor1500 1447 1501 1448 Use these variables to override the choices made by `configure' or to help … … 1701 1648 } # ac_fn_c_try_link 1702 1649 1703 # ac_fn_c_check_ header_compile LINENO HEADERVAR INCLUDES1704 # ------------------------------------------- ------------1705 # Tests whether HEADER exists and can be compiled using the include files in1706 # INCLUDES, setting the cachevariable VAR accordingly.1707 ac_fn_c_check_ header_compile ()1650 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1651 # ------------------------------------------- 1652 # Tests whether TYPE exists after having included INCLUDES, setting cache 1653 # variable VAR accordingly. 1654 ac_fn_c_check_type () 1708 1655 { 1709 1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack … … 1713 1660 $as_echo_n "(cached) " >&6 1714 1661 else 1662 eval "$3=no" 1715 1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716 1664 /* end confdefs.h. */ 1717 1665 $4 1718 #include <$2> 1666 int 1667 main () 1668 { 1669 if (sizeof ($2)) 1670 return 0; 1671 ; 1672 return 0; 1673 } 1719 1674 _ACEOF 1720 1675 if ac_fn_c_try_compile "$LINENO"; then : 1676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1677 /* end confdefs.h. */ 1678 $4 1679 int 1680 main () 1681 { 1682 if (sizeof (($2))) 1683 return 0; 1684 ; 1685 return 0; 1686 } 1687 _ACEOF 1688 if ac_fn_c_try_compile "$LINENO"; then : 1689 1690 else 1721 1691 eval "$3=yes" 1722 else 1723 eval "$3=no" 1692 fi 1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1724 1694 fi 1725 1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext … … 1730 1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1731 1701 1732 } # ac_fn_c_check_ header_compile1702 } # ac_fn_c_check_type 1733 1703 1734 1704 # ac_fn_c_try_cpp LINENO … … 1811 1781 } # ac_fn_c_try_run 1812 1782 1783 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1784 # ------------------------------------------------------- 1785 # Tests whether HEADER exists and can be compiled using the include files in 1786 # INCLUDES, setting the cache variable VAR accordingly. 1787 ac_fn_c_check_header_compile () 1788 { 1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1791 $as_echo_n "checking for $2... " >&6; } 1792 if eval \${$3+:} false; then : 1793 $as_echo_n "(cached) " >&6 1794 else 1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1796 /* end confdefs.h. */ 1797 $4 1798 #include <$2> 1799 _ACEOF 1800 if ac_fn_c_try_compile "$LINENO"; then : 1801 eval "$3=yes" 1802 else 1803 eval "$3=no" 1804 fi 1805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1806 fi 1807 eval ac_res=\$$3 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1809 $as_echo "$ac_res" >&6; } 1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1811 1812 } # ac_fn_c_check_header_compile 1813 1813 1814 # ac_fn_c_check_func LINENO FUNC VAR 1814 1815 # ---------------------------------- … … 1877 1878 1878 1879 } # ac_fn_c_check_func 1879 1880 # ac_fn_cxx_try_cpp LINENO1881 # ------------------------1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.1883 ac_fn_cxx_try_cpp ()1884 {1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1886 if { { ac_try="$ac_cpp conftest.$ac_ext"1887 case "(($ac_try" in1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1889 *) ac_try_echo=$ac_try;;1890 esac1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1892 $as_echo "$ac_try_echo"; } >&51893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err1894 ac_status=$?1895 if test -s conftest.err; then1896 grep -v '^ *+' conftest.err >conftest.er11897 cat conftest.er1 >&51898 mv -f conftest.er1 conftest.err1899 fi1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51901 test $ac_status = 0; } > conftest.i && {1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||1903 test ! -s conftest.err1904 }; then :1905 ac_retval=01906 else1907 $as_echo "$as_me: failed program was:" >&51908 sed 's/^/| /' conftest.$ac_ext >&51909 1910 ac_retval=11911 fi1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1913 as_fn_set_status $ac_retval1914 1915 } # ac_fn_cxx_try_cpp1916 1917 # ac_fn_cxx_try_link LINENO1918 # -------------------------1919 # Try to link conftest.$ac_ext, and return whether this succeeded.1920 ac_fn_cxx_try_link ()1921 {1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1923 rm -f conftest.$ac_objext conftest$ac_exeext1924 if { { ac_try="$ac_link"1925 case "(($ac_try" in1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;1927 *) ac_try_echo=$ac_try;;1928 esac1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""1930 $as_echo "$ac_try_echo"; } >&51931 (eval "$ac_link") 2>conftest.err1932 ac_status=$?1933 if test -s conftest.err; then1934 grep -v '^ *+' conftest.err >conftest.er11935 cat conftest.er1 >&51936 mv -f conftest.er1 conftest.err1937 fi1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&51939 test $ac_status = 0; } && {1940 test -z "$ac_cxx_werror_flag" ||1941 test ! -s conftest.err1942 } && test -s conftest$ac_exeext && {1943 test "$cross_compiling" = yes ||1944 test -x conftest$ac_exeext1945 }; then :1946 ac_retval=01947 else1948 $as_echo "$as_me: failed program was:" >&51949 sed 's/^/| /' conftest.$ac_ext >&51950 1951 ac_retval=11952 fi1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would1955 # interfere with the next link command; also delete a directory that is1956 # left behind by Apple's compiler. We do this before executing the actions.1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno1959 as_fn_set_status $ac_retval1960 1961 } # ac_fn_cxx_try_link1962 1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES1964 # -------------------------------------------1965 # Tests whether TYPE exists after having included INCLUDES, setting cache1966 # variable VAR accordingly.1967 ac_fn_c_check_type ()1968 {1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&51971 $as_echo_n "checking for $2... " >&6; }1972 if eval \${$3+:} false; then :1973 $as_echo_n "(cached) " >&61974 else1975 eval "$3=no"1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1977 /* end confdefs.h. */1978 $41979 int1980 main ()1981 {1982 if (sizeof ($2))1983 return 0;1984 ;1985 return 0;1986 }1987 _ACEOF1988 if ac_fn_c_try_compile "$LINENO"; then :1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext1990 /* end confdefs.h. */1991 $41992 int1993 main ()1994 {1995 if (sizeof (($2)))1996 return 0;1997 ;1998 return 0;1999 }2000 _ACEOF2001 if ac_fn_c_try_compile "$LINENO"; then :2002 2003 else2004 eval "$3=yes"2005 fi2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2007 fi2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext2009 fi2010 eval ac_res=\$$32011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&52012 $as_echo "$ac_res" >&6; }2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno2014 2015 } # ac_fn_c_check_type2016 1880 2017 1881 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES … … 2616 2480 2617 2481 2618 2619 2482 #AC_CONFIG_SRCDIR([src/main.cc]) 2620 2483 ac_config_headers="$ac_config_headers config.h:src/config.h.in" … … 3303 3166 3304 3167 #============================================================================== 3168 # backend compiler implementation 3169 3170 # Check whether --with-backend-compiler was given. 3171 if test "${with_backend_compiler+set}" = set; then : 3172 withval=$with_backend_compiler; backendcompiler=$withval 3173 else 3174 backendcompiler="" 3175 fi 3176 3177 if test "x$backendcompiler" != "x"; then 3178 BACKEND_CC=${backendcompiler} 3179 else 3180 # Extract the first word of "gcc", so it can be a program name with args. 3181 set dummy gcc; ac_word=$2 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183 $as_echo_n "checking for $ac_word... " >&6; } 3184 if ${ac_cv_path_BACKEND_CC+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186 else 3187 case $BACKEND_CC in 3188 [\\/]* | ?:[\\/]*) 3189 ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. 3190 ;; 3191 *) 3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193 for as_dir in $PATH 3194 do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" 3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3201 break 2 3202 fi 3203 done 3204 done 3205 IFS=$as_save_IFS 3206 3207 ;; 3208 esac 3209 fi 3210 BACKEND_CC=$ac_cv_path_BACKEND_CC 3211 if test -n "$BACKEND_CC"; then 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 3213 $as_echo "$BACKEND_CC" >&6; } 3214 else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216 $as_echo "no" >&6; } 3217 fi 3218 3219 # check gcc installed 3220 if test "x$BACKEND_CC" = "x"; then 3221 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 3222 exit 1 3223 fi 3224 fi 3225 3226 cat >>confdefs.h <<_ACEOF 3227 #define CFA_BACKEND_CC "${BACKEND_CC}" 3228 _ACEOF 3229 3230 3231 3232 #============================================================================== 3305 3233 # Installation paths 3306 3234 … … 3566 3494 echo -n "${LIBCFA_PATHS} " >> ${lib_dir}/config.data 3567 3495 echo -n "ARCHITECTURE=${lib_arch} " >> ${lib_dir}/config.data 3568 echo -n "CONFIGURATION=${lib_config} " >> ${lib_dir}/config.data 3569 echo -n "CFA_VERSION=${ver_major}:${ver_minor}:${ver_patch}" >> ${lib_dir}/config.data 3496 echo -n "CONFIGURATION=${lib_config}" >> ${lib_dir}/config.data 3570 3497 done 3571 3498 … … 5388 5315 fi 5389 5316 if test "${LEX}" = "lex" ; then echo "Error: flex required." ; exit 1 ; fi 5390 case `pwd` in 5391 *\ * | *\ *) 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5317 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5319 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5320 set x ${MAKE-make} 5321 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5322 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5323 $as_echo_n "(cached) " >&6 5324 else 5325 cat >conftest.make <<\_ACEOF 5326 SHELL = /bin/sh 5327 all: 5328 @echo '@@@%%%=$(MAKE)=@@@%%%' 5329 _ACEOF 5330 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5331 case `${MAKE-make} -f conftest.make 2>/dev/null` in 5332 *@@@%%%=?*=@@@%%%*) 5333 eval ac_cv_prog_make_${ac_make}_set=yes;; 5334 *) 5335 eval ac_cv_prog_make_${ac_make}_set=no;; 5394 5336 esac 5395 5396 5397 5398 macro_version='2.4.6' 5399 macro_revision='2.4.6' 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 ltmain=$ac_aux_dir/ltmain.sh 5414 5415 # Backslashify metacharacters that are still active within 5416 # double-quoted strings. 5417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5418 5419 # Same as above, but do not quote variable references. 5420 double_quote_subst='s/\(["`\\]\)/\\\1/g' 5421 5422 # Sed substitution to delay expansion of an escaped shell variable in a 5423 # double_quote_subst'ed string. 5424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5425 5426 # Sed substitution to delay expansion of an escaped single quote. 5427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5428 5429 # Sed substitution to avoid accidental globbing in evaled expressions 5430 no_glob_subst='s/\*/\\\*/g' 5431 5432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5435 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5437 $as_echo_n "checking how to print strings... " >&6; } 5438 # Test print first, because it will be a builtin if present. 5439 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5440 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5441 ECHO='print -r --' 5442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5443 ECHO='printf %s\n' 5444 else 5445 # Use this function as a fallback that always works. 5446 func_fallback_echo () 5447 { 5448 eval 'cat <<_LTECHO_EOF 5449 $1 5450 _LTECHO_EOF' 5451 } 5452 ECHO='func_fallback_echo' 5453 fi 5454 5455 # func_echo_all arg... 5456 # Invoke $ECHO with all args, space-separated. 5457 func_echo_all () 5458 { 5459 $ECHO "" 5460 } 5461 5462 case $ECHO in 5463 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5464 $as_echo "printf" >&6; } ;; 5465 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5466 $as_echo "print -r" >&6; } ;; 5467 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5468 $as_echo "cat" >&6; } ;; 5469 esac 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5485 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 5486 if ${ac_cv_path_SED+:} false; then : 5337 rm -f conftest.make 5338 fi 5339 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5341 $as_echo "yes" >&6; } 5342 SET_MAKE= 5343 else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345 $as_echo "no" >&6; } 5346 SET_MAKE="MAKE=${MAKE-make}" 5347 fi 5348 5349 if test -n "$ac_tool_prefix"; then 5350 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5353 $as_echo_n "checking for $ac_word... " >&6; } 5354 if ${ac_cv_prog_RANLIB+:} false; then : 5487 5355 $as_echo_n "(cached) " >&6 5488 5356 else 5489 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5490 for ac_i in 1 2 3 4 5 6 7; do 5491 ac_script="$ac_script$as_nl$ac_script" 5492 done 5493 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5494 { ac_script=; unset ac_script;} 5495 if test -z "$SED"; then 5496 ac_path_SED_found=false 5497 # Loop through the user's path and test for each of PROGNAME-LIST 5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5357 if test -n "$RANLIB"; then 5358 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5359 else 5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5499 5361 for as_dir in $PATH 5500 5362 do 5501 5363 IFS=$as_save_IFS 5502 5364 test -z "$as_dir" && as_dir=. 5503 for ac_prog in sed gsed; do5504 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5505 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5506 as_fn_executable_p "$ac_path_SED" || continue 5507 # Check for GNU ac_path_SED and select it if it is found. 5508 # Check for GNU $ac_path_SED 5509 case `"$ac_path_SED" --version 2>&1` in 5510 *GNU*) 5511 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5512 *) 5513 ac_count=0 5514 $as_echo_n 0123456789 >"conftest.in" 5515 while : 5516 do 5517 cat "conftest.in" "conftest.in" >"conftest.tmp" 5518 mv "conftest.tmp" "conftest.in" 5519 cp "conftest.in" "conftest.nl" 5520 $as_echo '' >> "conftest.nl" 5521 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5522 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5523 as_fn_arith $ac_count + 1 && ac_count=$as_val 5524 if test $ac_count -gt ${ac_path_SED_max-0}; then 5525 # Best one so far, save it but keep looking for a better one 5526 ac_cv_path_SED="$ac_path_SED" 5527 ac_path_SED_max=$ac_count 5528 fi 5529 # 10*(2^10) chars as input seems more than enough 5530 test $ac_count -gt 10 && break 5531 done 5532 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5533 esac 5534 5535 $ac_path_SED_found && break 3 5536 done 5537 done 5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5367 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371 done 5538 5372 done 5539 5373 IFS=$as_save_IFS 5540 if test -z "$ac_cv_path_SED"; then 5541 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5374 5375 fi 5376 fi 5377 RANLIB=$ac_cv_prog_RANLIB 5378 if test -n "$RANLIB"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5380 $as_echo "$RANLIB" >&6; } 5381 else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383 $as_echo "no" >&6; } 5384 fi 5385 5386 5387 fi 5388 if test -z "$ac_cv_prog_RANLIB"; then 5389 ac_ct_RANLIB=$RANLIB 5390 # Extract the first word of "ranlib", so it can be a program name with args. 5391 set dummy ranlib; ac_word=$2 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5393 $as_echo_n "checking for $ac_word... " >&6; } 5394 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5395 $as_echo_n "(cached) " >&6 5396 else 5397 if test -n "$ac_ct_RANLIB"; then 5398 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5399 else 5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5401 for as_dir in $PATH 5402 do 5403 IFS=$as_save_IFS 5404 test -z "$as_dir" && as_dir=. 5405 for ac_exec_ext in '' $ac_executable_extensions; do 5406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5407 ac_cv_prog_ac_ct_RANLIB="ranlib" 5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5409 break 2 5542 5410 fi 5543 else 5544 ac_cv_path_SED=$SED 5545 fi 5546 5547 fi 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5549 $as_echo "$ac_cv_path_SED" >&6; } 5550 SED="$ac_cv_path_SED" 5551 rm -f conftest.sed 5552 5553 test -z "$SED" && SED=sed 5554 Xsed="$SED -e 1s/^X//" 5555 5556 5557 5558 5559 5560 5561 5562 5563 5411 done 5412 done 5413 IFS=$as_save_IFS 5414 5415 fi 5416 fi 5417 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5418 if test -n "$ac_ct_RANLIB"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5420 $as_echo "$ac_ct_RANLIB" >&6; } 5421 else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 $as_echo "no" >&6; } 5424 fi 5425 5426 if test "x$ac_ct_RANLIB" = x; then 5427 RANLIB=":" 5428 else 5429 case $cross_compiling:$ac_tool_warned in 5430 yes:) 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5433 ac_tool_warned=yes ;; 5434 esac 5435 RANLIB=$ac_ct_RANLIB 5436 fi 5437 else 5438 RANLIB="$ac_cv_prog_RANLIB" 5439 fi 5440 5441 5442 # Checks for libraries. 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&5 5444 $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; } 5445 if ${ac_cv_lib_fibre_Fibre__yield+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447 else 5448 ac_check_lib_save_LIBS=$LIBS 5449 LIBS="-lfibre $LIBS" 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 5453 /* Override any GCC internal prototype to avoid an error. 5454 Use char because int might match the return type of a GCC 5455 builtin and then its argument prototype would still apply. */ 5456 #ifdef __cplusplus 5457 extern "C" 5458 #endif 5459 char Fibre::yield (); 5460 int 5461 main () 5462 { 5463 return Fibre::yield (); 5464 ; 5465 return 0; 5466 } 5467 _ACEOF 5468 if ac_fn_c_try_link "$LINENO"; then : 5469 ac_cv_lib_fibre_Fibre__yield=yes 5470 else 5471 ac_cv_lib_fibre_Fibre__yield=no 5472 fi 5473 rm -f core conftest.err conftest.$ac_objext \ 5474 conftest$ac_exeext conftest.$ac_ext 5475 LIBS=$ac_check_lib_save_LIBS 5476 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&5 5478 $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; } 5479 if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then : 5480 HAVE_LIBFIBRE=1 5481 else 5482 HAVE_LIBFIBRE=0 5483 fi 5484 5485 if test "$HAVE_LIBFIBRE" -eq 1; then 5486 WITH_LIBFIBRE_TRUE= 5487 WITH_LIBFIBRE_FALSE='#' 5488 else 5489 WITH_LIBFIBRE_TRUE='#' 5490 WITH_LIBFIBRE_FALSE= 5491 fi 5492 5493 5494 # Checks for header files. 5495 ac_ext=c 5496 ac_cpp='$CPP $CPPFLAGS' 5497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5499 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5501 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5502 # On Suns, sometimes $CPP names a directory. 5503 if test -n "$CPP" && test -d "$CPP"; then 5504 CPP= 5505 fi 5506 if test -z "$CPP"; then 5507 if ${ac_cv_prog_CPP+:} false; then : 5508 $as_echo_n "(cached) " >&6 5509 else 5510 # Double quotes because CPP needs to be expanded 5511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5512 do 5513 ac_preproc_ok=false 5514 for ac_c_preproc_warn_flag in '' yes 5515 do 5516 # Use a header file that comes with gcc, so configuring glibc 5517 # with a fresh cross-compiler works. 5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5519 # <limits.h> exists even on freestanding compilers. 5520 # On the NeXT, cc -E runs the code through the compiler's parser, 5521 # not just through cpp. "Syntax error" is here to catch this case. 5522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5523 /* end confdefs.h. */ 5524 #ifdef __STDC__ 5525 # include <limits.h> 5526 #else 5527 # include <assert.h> 5528 #endif 5529 Syntax error 5530 _ACEOF 5531 if ac_fn_c_try_cpp "$LINENO"; then : 5532 5533 else 5534 # Broken: fails on valid input. 5535 continue 5536 fi 5537 rm -f conftest.err conftest.i conftest.$ac_ext 5538 5539 # OK, works on sane cases. Now check whether nonexistent headers 5540 # can be detected and how. 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542 /* end confdefs.h. */ 5543 #include <ac_nonexistent.h> 5544 _ACEOF 5545 if ac_fn_c_try_cpp "$LINENO"; then : 5546 # Broken: success on invalid input. 5547 continue 5548 else 5549 # Passes both tests. 5550 ac_preproc_ok=: 5551 break 5552 fi 5553 rm -f conftest.err conftest.i conftest.$ac_ext 5554 5555 done 5556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5557 rm -f conftest.i conftest.err conftest.$ac_ext 5558 if $ac_preproc_ok; then : 5559 break 5560 fi 5561 5562 done 5563 ac_cv_prog_CPP=$CPP 5564 5565 fi 5566 CPP=$ac_cv_prog_CPP 5567 else 5568 ac_cv_prog_CPP=$CPP 5569 fi 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5571 $as_echo "$CPP" >&6; } 5572 ac_preproc_ok=false 5573 for ac_c_preproc_warn_flag in '' yes 5574 do 5575 # Use a header file that comes with gcc, so configuring glibc 5576 # with a fresh cross-compiler works. 5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5578 # <limits.h> exists even on freestanding compilers. 5579 # On the NeXT, cc -E runs the code through the compiler's parser, 5580 # not just through cpp. "Syntax error" is here to catch this case. 5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5582 /* end confdefs.h. */ 5583 #ifdef __STDC__ 5584 # include <limits.h> 5585 #else 5586 # include <assert.h> 5587 #endif 5588 Syntax error 5589 _ACEOF 5590 if ac_fn_c_try_cpp "$LINENO"; then : 5591 5592 else 5593 # Broken: fails on valid input. 5594 continue 5595 fi 5596 rm -f conftest.err conftest.i conftest.$ac_ext 5597 5598 # OK, works on sane cases. Now check whether nonexistent headers 5599 # can be detected and how. 5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5601 /* end confdefs.h. */ 5602 #include <ac_nonexistent.h> 5603 _ACEOF 5604 if ac_fn_c_try_cpp "$LINENO"; then : 5605 # Broken: success on invalid input. 5606 continue 5607 else 5608 # Passes both tests. 5609 ac_preproc_ok=: 5610 break 5611 fi 5612 rm -f conftest.err conftest.i conftest.$ac_ext 5613 5614 done 5615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5616 rm -f conftest.i conftest.err conftest.$ac_ext 5617 if $ac_preproc_ok; then : 5618 5619 else 5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5622 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5623 See \`config.log' for more details" "$LINENO" 5; } 5624 fi 5625 5626 ac_ext=c 5627 ac_cpp='$CPP $CPPFLAGS' 5628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5630 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5564 5631 5565 5632 … … 5694 5761 5695 5762 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&55697 $as_echo_n "checking for fgrep... " >&6; }5698 if ${ac_cv_path_FGREP+:} false; then :5699 $as_echo_n "(cached) " >&65700 else5701 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&15702 then ac_cv_path_FGREP="$GREP -F"5703 else5704 if test -z "$FGREP"; then5705 ac_path_FGREP_found=false5706 # Loop through the user's path and test for each of PROGNAME-LIST5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin5709 do5710 IFS=$as_save_IFS5711 test -z "$as_dir" && as_dir=.5712 for ac_prog in fgrep; do5713 for ac_exec_ext in '' $ac_executable_extensions; do5714 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"5715 as_fn_executable_p "$ac_path_FGREP" || continue5716 # Check for GNU ac_path_FGREP and select it if it is found.5717 # Check for GNU $ac_path_FGREP5718 case `"$ac_path_FGREP" --version 2>&1` in5719 *GNU*)5720 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;5721 *)5722 ac_count=05723 $as_echo_n 0123456789 >"conftest.in"5724 while :5725 do5726 cat "conftest.in" "conftest.in" >"conftest.tmp"5727 mv "conftest.tmp" "conftest.in"5728 cp "conftest.in" "conftest.nl"5729 $as_echo 'FGREP' >> "conftest.nl"5730 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break5731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break5732 as_fn_arith $ac_count + 1 && ac_count=$as_val5733 if test $ac_count -gt ${ac_path_FGREP_max-0}; then5734 # Best one so far, save it but keep looking for a better one5735 ac_cv_path_FGREP="$ac_path_FGREP"5736 ac_path_FGREP_max=$ac_count5737 fi5738 # 10*(2^10) chars as input seems more than enough5739 test $ac_count -gt 10 && break5740 done5741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;5742 esac5743 5744 $ac_path_FGREP_found && break 35745 done5746 done5747 done5748 IFS=$as_save_IFS5749 if test -z "$ac_cv_path_FGREP"; then5750 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 55751 fi5752 else5753 ac_cv_path_FGREP=$FGREP5754 fi5755 5756 fi5757 fi5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&55759 $as_echo "$ac_cv_path_FGREP" >&6; }5760 FGREP="$ac_cv_path_FGREP"5761 5762 5763 test -z "$GREP" && GREP=grep5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 # Check whether --with-gnu-ld was given.5784 if test "${with_gnu_ld+set}" = set; then :5785 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes5786 else5787 with_gnu_ld=no5788 fi5789 5790 ac_prog=ld5791 if test yes = "$GCC"; then5792 # Check if gcc -print-prog-name=ld gives a path.5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&55794 $as_echo_n "checking for ld used by $CC... " >&6; }5795 case $host in5796 *-*-mingw*)5797 # gcc leaves a trailing carriage return, which upsets mingw5798 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;5799 *)5800 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;5801 esac5802 case $ac_prog in5803 # Accept absolute paths.5804 [\\/]* | ?:[\\/]*)5805 re_direlt='/[^/][^/]*/\.\./'5806 # Canonicalize the pathname of ld5807 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`5808 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do5809 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`5810 done5811 test -z "$LD" && LD=$ac_prog5812 ;;5813 "")5814 # If it fails, then pretend we aren't using GCC.5815 ac_prog=ld5816 ;;5817 *)5818 # If it is relative, then search for the first ld in PATH.5819 with_gnu_ld=unknown5820 ;;5821 esac5822 elif test yes = "$with_gnu_ld"; then5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&55824 $as_echo_n "checking for GNU ld... " >&6; }5825 else5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&55827 $as_echo_n "checking for non-GNU ld... " >&6; }5828 fi5829 if ${lt_cv_path_LD+:} false; then :5830 $as_echo_n "(cached) " >&65831 else5832 if test -z "$LD"; then5833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR5834 for ac_dir in $PATH; do5835 IFS=$lt_save_ifs5836 test -z "$ac_dir" && ac_dir=.5837 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then5838 lt_cv_path_LD=$ac_dir/$ac_prog5839 # Check to see if the program is GNU ld. I'd rather use --version,5840 # but apparently some variants of GNU ld only accept -v.5841 # Break only if it was the GNU/non-GNU ld that we prefer.5842 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in5843 *GNU* | *'with BFD'*)5844 test no != "$with_gnu_ld" && break5845 ;;5846 *)5847 test yes != "$with_gnu_ld" && break5848 ;;5849 esac5850 fi5851 done5852 IFS=$lt_save_ifs5853 else5854 lt_cv_path_LD=$LD # Let the user override the test with a path.5855 fi5856 fi5857 5858 LD=$lt_cv_path_LD5859 if test -n "$LD"; then5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&55861 $as_echo "$LD" >&6; }5862 else5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55864 $as_echo "no" >&6; }5865 fi5866 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 55867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&55868 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }5869 if ${lt_cv_prog_gnu_ld+:} false; then :5870 $as_echo_n "(cached) " >&65871 else5872 # I'd rather use --version here, but apparently some GNU lds only accept -v.5873 case `$LD -v 2>&1 </dev/null` in5874 *GNU* | *'with BFD'*)5875 lt_cv_prog_gnu_ld=yes5876 ;;5877 *)5878 lt_cv_prog_gnu_ld=no5879 ;;5880 esac5881 fi5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&55883 $as_echo "$lt_cv_prog_gnu_ld" >&6; }5884 with_gnu_ld=$lt_cv_prog_gnu_ld5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&55895 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }5896 if ${lt_cv_path_NM+:} false; then :5897 $as_echo_n "(cached) " >&65898 else5899 if test -n "$NM"; then5900 # Let the user override the test.5901 lt_cv_path_NM=$NM5902 else5903 lt_nm_to_check=${ac_tool_prefix}nm5904 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then5905 lt_nm_to_check="$lt_nm_to_check nm"5906 fi5907 for lt_tmp_nm in $lt_nm_to_check; do5908 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR5909 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do5910 IFS=$lt_save_ifs5911 test -z "$ac_dir" && ac_dir=.5912 tmp_nm=$ac_dir/$lt_tmp_nm5913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then5914 # Check to see if the nm accepts a BSD-compat flag.5915 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:5916 # nm: unknown option "B" ignored5917 # Tru64's nm complains that /dev/null is an invalid object file5918 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty5919 case $build_os in5920 mingw*) lt_bad_file=conftest.nm/nofile ;;5921 *) lt_bad_file=/dev/null ;;5922 esac5923 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in5924 *$lt_bad_file* | *'Invalid file or object type'*)5925 lt_cv_path_NM="$tmp_nm -B"5926 break 25927 ;;5928 *)5929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in5930 */dev/null*)5931 lt_cv_path_NM="$tmp_nm -p"5932 break 25933 ;;5934 *)5935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but5936 continue # so that we can try to find one that supports BSD flags5937 ;;5938 esac5939 ;;5940 esac5941 fi5942 done5943 IFS=$lt_save_ifs5944 done5945 : ${lt_cv_path_NM=no}5946 fi5947 fi5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&55949 $as_echo "$lt_cv_path_NM" >&6; }5950 if test no != "$lt_cv_path_NM"; then5951 NM=$lt_cv_path_NM5952 else5953 # Didn't find any BSD compatible name lister, look for dumpbin.5954 if test -n "$DUMPBIN"; then :5955 # Let the user override the test.5956 else5957 if test -n "$ac_tool_prefix"; then5958 for ac_prog in dumpbin "link -dump"5959 do5960 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.5961 set dummy $ac_tool_prefix$ac_prog; ac_word=$25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&55963 $as_echo_n "checking for $ac_word... " >&6; }5964 if ${ac_cv_prog_DUMPBIN+:} false; then :5965 $as_echo_n "(cached) " >&65966 else5967 if test -n "$DUMPBIN"; then5968 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.5969 else5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5971 for as_dir in $PATH5972 do5973 IFS=$as_save_IFS5974 test -z "$as_dir" && as_dir=.5975 for ac_exec_ext in '' $ac_executable_extensions; do5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5977 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&55979 break 25980 fi5981 done5982 done5983 IFS=$as_save_IFS5984 5985 fi5986 fi5987 DUMPBIN=$ac_cv_prog_DUMPBIN5988 if test -n "$DUMPBIN"; then5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&55990 $as_echo "$DUMPBIN" >&6; }5991 else5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&55993 $as_echo "no" >&6; }5994 fi5995 5996 5997 test -n "$DUMPBIN" && break5998 done5999 fi6000 if test -z "$DUMPBIN"; then6001 ac_ct_DUMPBIN=$DUMPBIN6002 for ac_prog in dumpbin "link -dump"6003 do6004 # Extract the first word of "$ac_prog", so it can be a program name with args.6005 set dummy $ac_prog; ac_word=$26006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56007 $as_echo_n "checking for $ac_word... " >&6; }6008 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :6009 $as_echo_n "(cached) " >&66010 else6011 if test -n "$ac_ct_DUMPBIN"; then6012 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.6013 else6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6015 for as_dir in $PATH6016 do6017 IFS=$as_save_IFS6018 test -z "$as_dir" && as_dir=.6019 for ac_exec_ext in '' $ac_executable_extensions; do6020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6021 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"6022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56023 break 26024 fi6025 done6026 done6027 IFS=$as_save_IFS6028 6029 fi6030 fi6031 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN6032 if test -n "$ac_ct_DUMPBIN"; then6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&56034 $as_echo "$ac_ct_DUMPBIN" >&6; }6035 else6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56037 $as_echo "no" >&6; }6038 fi6039 6040 6041 test -n "$ac_ct_DUMPBIN" && break6042 done6043 6044 if test "x$ac_ct_DUMPBIN" = x; then6045 DUMPBIN=":"6046 else6047 case $cross_compiling:$ac_tool_warned in6048 yes:)6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6051 ac_tool_warned=yes ;;6052 esac6053 DUMPBIN=$ac_ct_DUMPBIN6054 fi6055 fi6056 6057 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in6058 *COFF*)6059 DUMPBIN="$DUMPBIN -symbols -headers"6060 ;;6061 *)6062 DUMPBIN=:6063 ;;6064 esac6065 fi6066 6067 if test : != "$DUMPBIN"; then6068 NM=$DUMPBIN6069 fi6070 fi6071 test -z "$NM" && NM=nm6072 6073 6074 6075 6076 6077 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&56079 $as_echo_n "checking the name lister ($NM) interface... " >&6; }6080 if ${lt_cv_nm_interface+:} false; then :6081 $as_echo_n "(cached) " >&66082 else6083 lt_cv_nm_interface="BSD nm"6084 echo "int some_variable = 0;" > conftest.$ac_ext6085 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)6086 (eval "$ac_compile" 2>conftest.err)6087 cat conftest.err >&56088 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)6089 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)6090 cat conftest.err >&56091 (eval echo "\"\$as_me:$LINENO: output\"" >&5)6092 cat conftest.out >&56093 if $GREP 'External.*some_variable' conftest.out > /dev/null; then6094 lt_cv_nm_interface="MS dumpbin"6095 fi6096 rm -f conftest*6097 fi6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&56099 $as_echo "$lt_cv_nm_interface" >&6; }6100 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&56102 $as_echo_n "checking whether ln -s works... " >&6; }6103 LN_S=$as_ln_s6104 if test "$LN_S" = "ln -s"; then6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&56106 $as_echo "yes" >&6; }6107 else6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&56109 $as_echo "no, using $LN_S" >&6; }6110 fi6111 6112 # find the maximum length of command line arguments6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&56114 $as_echo_n "checking the maximum length of command line arguments... " >&6; }6115 if ${lt_cv_sys_max_cmd_len+:} false; then :6116 $as_echo_n "(cached) " >&66117 else6118 i=06119 teststring=ABCD6120 6121 case $build_os in6122 msdosdjgpp*)6123 # On DJGPP, this test can blow up pretty badly due to problems in libc6124 # (any single argument exceeding 2000 bytes causes a buffer overrun6125 # during glob expansion). Even if it were fixed, the result of this6126 # check would be larger than it should be.6127 lt_cv_sys_max_cmd_len=12288; # 12K is about right6128 ;;6129 6130 gnu*)6131 # Under GNU Hurd, this test is not required because there is6132 # no limit to the length of command line arguments.6133 # Libtool will interpret -1 as no limit whatsoever6134 lt_cv_sys_max_cmd_len=-1;6135 ;;6136 6137 cygwin* | mingw* | cegcc*)6138 # On Win9x/ME, this test blows up -- it succeeds, but takes6139 # about 5 minutes as the teststring grows exponentially.6140 # Worse, since 9x/ME are not pre-emptively multitasking,6141 # you end up with a "frozen" computer, even though with patience6142 # the test eventually succeeds (with a max line length of 256k).6143 # Instead, let's just punt: use the minimum linelength reported by6144 # all of the supported platforms: 8192 (on NT/2K/XP).6145 lt_cv_sys_max_cmd_len=8192;6146 ;;6147 6148 mint*)6149 # On MiNT this can take a long time and run out of memory.6150 lt_cv_sys_max_cmd_len=8192;6151 ;;6152 6153 amigaos*)6154 # On AmigaOS with pdksh, this test takes hours, literally.6155 # So we just punt and use a minimum line length of 8192.6156 lt_cv_sys_max_cmd_len=8192;6157 ;;6158 6159 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)6160 # This has been around since 386BSD, at least. Likely further.6161 if test -x /sbin/sysctl; then6162 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`6163 elif test -x /usr/sbin/sysctl; then6164 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`6165 else6166 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs6167 fi6168 # And add a safety zone6169 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`6170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`6171 ;;6172 6173 interix*)6174 # We know the value 262144 and hardcode it with a safety zone (like BSD)6175 lt_cv_sys_max_cmd_len=1966086176 ;;6177 6178 os2*)6179 # The test takes a long time on OS/2.6180 lt_cv_sys_max_cmd_len=81926181 ;;6182 6183 osf*)6184 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure6185 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not6186 # nice to cause kernel panics so lets avoid the loop below.6187 # First set a reasonable default.6188 lt_cv_sys_max_cmd_len=163846189 #6190 if test -x /sbin/sysconfig; then6191 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in6192 *1*) lt_cv_sys_max_cmd_len=-1 ;;6193 esac6194 fi6195 ;;6196 sco3.2v5*)6197 lt_cv_sys_max_cmd_len=1024006198 ;;6199 sysv5* | sco5v6* | sysv4.2uw2*)6200 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`6201 if test -n "$kargmax"; then6202 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`6203 else6204 lt_cv_sys_max_cmd_len=327686205 fi6206 ;;6207 *)6208 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`6209 if test -n "$lt_cv_sys_max_cmd_len" && \6210 test undefined != "$lt_cv_sys_max_cmd_len"; then6211 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`6212 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`6213 else6214 # Make teststring a little bigger before we do anything with it.6215 # a 1K string should be a reasonable start.6216 for i in 1 2 3 4 5 6 7 8; do6217 teststring=$teststring$teststring6218 done6219 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}6220 # If test is not a shell built-in, we'll probably end up computing a6221 # maximum length that is only half of the actual maximum length, but6222 # we can't tell.6223 while { test X`env echo "$teststring$teststring" 2>/dev/null` \6224 = "X$teststring$teststring"; } >/dev/null 2>&1 &&6225 test 17 != "$i" # 1/2 MB should be enough6226 do6227 i=`expr $i + 1`6228 teststring=$teststring$teststring6229 done6230 # Only check the string length outside the loop.6231 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`6232 teststring=6233 # Add a significant safety factor because C++ compilers can tack on6234 # massive amounts of additional arguments before passing them to the6235 # linker. It appears as though 1/2 is a usable value.6236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`6237 fi6238 ;;6239 esac6240 6241 fi6242 6243 if test -n "$lt_cv_sys_max_cmd_len"; then6244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&56245 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }6246 else6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&56248 $as_echo "none" >&6; }6249 fi6250 max_cmd_len=$lt_cv_sys_max_cmd_len6251 6252 6253 6254 6255 6256 6257 : ${CP="cp -f"}6258 : ${MV="mv -f"}6259 : ${RM="rm -f"}6260 6261 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then6262 lt_unset=unset6263 else6264 lt_unset=false6265 fi6266 6267 6268 6269 6270 6271 # test EBCDIC or ASCII6272 case `echo X|tr X '\101'` in6273 A) # ASCII based system6274 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr6275 lt_SP2NL='tr \040 \012'6276 lt_NL2SP='tr \015\012 \040\040'6277 ;;6278 *) # EBCDIC based system6279 lt_SP2NL='tr \100 \n'6280 lt_NL2SP='tr \r\n \100\100'6281 ;;6282 esac6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&56293 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }6294 if ${lt_cv_to_host_file_cmd+:} false; then :6295 $as_echo_n "(cached) " >&66296 else6297 case $host in6298 *-*-mingw* )6299 case $build in6300 *-*-mingw* ) # actually msys6301 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w326302 ;;6303 *-*-cygwin* )6304 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w326305 ;;6306 * ) # otherwise, assume *nix6307 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w326308 ;;6309 esac6310 ;;6311 *-*-cygwin* )6312 case $build in6313 *-*-mingw* ) # actually msys6314 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin6315 ;;6316 *-*-cygwin* )6317 lt_cv_to_host_file_cmd=func_convert_file_noop6318 ;;6319 * ) # otherwise, assume *nix6320 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin6321 ;;6322 esac6323 ;;6324 * ) # unhandled hosts (and "normal" native builds)6325 lt_cv_to_host_file_cmd=func_convert_file_noop6326 ;;6327 esac6328 6329 fi6330 6331 to_host_file_cmd=$lt_cv_to_host_file_cmd6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&56333 $as_echo "$lt_cv_to_host_file_cmd" >&6; }6334 6335 6336 6337 6338 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&56340 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }6341 if ${lt_cv_to_tool_file_cmd+:} false; then :6342 $as_echo_n "(cached) " >&66343 else6344 #assume ordinary cross tools, or native build.6345 lt_cv_to_tool_file_cmd=func_convert_file_noop6346 case $host in6347 *-*-mingw* )6348 case $build in6349 *-*-mingw* ) # actually msys6350 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w326351 ;;6352 esac6353 ;;6354 esac6355 6356 fi6357 6358 to_tool_file_cmd=$lt_cv_to_tool_file_cmd6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&56360 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }6361 6362 6363 6364 6365 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&56367 $as_echo_n "checking for $LD option to reload object files... " >&6; }6368 if ${lt_cv_ld_reload_flag+:} false; then :6369 $as_echo_n "(cached) " >&66370 else6371 lt_cv_ld_reload_flag='-r'6372 fi6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&56374 $as_echo "$lt_cv_ld_reload_flag" >&6; }6375 reload_flag=$lt_cv_ld_reload_flag6376 case $reload_flag in6377 "" | " "*) ;;6378 *) reload_flag=" $reload_flag" ;;6379 esac6380 reload_cmds='$LD$reload_flag -o $output$reload_objs'6381 case $host_os in6382 cygwin* | mingw* | pw32* | cegcc*)6383 if test yes != "$GCC"; then6384 reload_cmds=false6385 fi6386 ;;6387 darwin*)6388 if test yes = "$GCC"; then6389 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'6390 else6391 reload_cmds='$LD$reload_flag -o $output$reload_objs'6392 fi6393 ;;6394 esac6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 if test -n "$ac_tool_prefix"; then6405 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.6406 set dummy ${ac_tool_prefix}objdump; ac_word=$26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56408 $as_echo_n "checking for $ac_word... " >&6; }6409 if ${ac_cv_prog_OBJDUMP+:} false; then :6410 $as_echo_n "(cached) " >&66411 else6412 if test -n "$OBJDUMP"; then6413 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.6414 else6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6416 for as_dir in $PATH6417 do6418 IFS=$as_save_IFS6419 test -z "$as_dir" && as_dir=.6420 for ac_exec_ext in '' $ac_executable_extensions; do6421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6422 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"6423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56424 break 26425 fi6426 done6427 done6428 IFS=$as_save_IFS6429 6430 fi6431 fi6432 OBJDUMP=$ac_cv_prog_OBJDUMP6433 if test -n "$OBJDUMP"; then6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&56435 $as_echo "$OBJDUMP" >&6; }6436 else6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56438 $as_echo "no" >&6; }6439 fi6440 6441 6442 fi6443 if test -z "$ac_cv_prog_OBJDUMP"; then6444 ac_ct_OBJDUMP=$OBJDUMP6445 # Extract the first word of "objdump", so it can be a program name with args.6446 set dummy objdump; ac_word=$26447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56448 $as_echo_n "checking for $ac_word... " >&6; }6449 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :6450 $as_echo_n "(cached) " >&66451 else6452 if test -n "$ac_ct_OBJDUMP"; then6453 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.6454 else6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6456 for as_dir in $PATH6457 do6458 IFS=$as_save_IFS6459 test -z "$as_dir" && as_dir=.6460 for ac_exec_ext in '' $ac_executable_extensions; do6461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6462 ac_cv_prog_ac_ct_OBJDUMP="objdump"6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56464 break 26465 fi6466 done6467 done6468 IFS=$as_save_IFS6469 6470 fi6471 fi6472 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP6473 if test -n "$ac_ct_OBJDUMP"; then6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&56475 $as_echo "$ac_ct_OBJDUMP" >&6; }6476 else6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56478 $as_echo "no" >&6; }6479 fi6480 6481 if test "x$ac_ct_OBJDUMP" = x; then6482 OBJDUMP="false"6483 else6484 case $cross_compiling:$ac_tool_warned in6485 yes:)6486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6488 ac_tool_warned=yes ;;6489 esac6490 OBJDUMP=$ac_ct_OBJDUMP6491 fi6492 else6493 OBJDUMP="$ac_cv_prog_OBJDUMP"6494 fi6495 6496 test -z "$OBJDUMP" && OBJDUMP=objdump6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&56507 $as_echo_n "checking how to recognize dependent libraries... " >&6; }6508 if ${lt_cv_deplibs_check_method+:} false; then :6509 $as_echo_n "(cached) " >&66510 else6511 lt_cv_file_magic_cmd='$MAGIC_CMD'6512 lt_cv_file_magic_test_file=6513 lt_cv_deplibs_check_method='unknown'6514 # Need to set the preceding variable on all platforms that support6515 # interlibrary dependencies.6516 # 'none' -- dependencies not supported.6517 # 'unknown' -- same as none, but documents that we really don't know.6518 # 'pass_all' -- all dependencies passed with no checks.6519 # 'test_compile' -- check by making test program.6520 # 'file_magic [[regex]]' -- check by looking for files in library path6521 # that responds to the $file_magic_cmd with a given extended regex.6522 # If you have 'file' or equivalent on your system and you're not sure6523 # whether 'pass_all' will *always* work, you probably want this one.6524 6525 case $host_os in6526 aix[4-9]*)6527 lt_cv_deplibs_check_method=pass_all6528 ;;6529 6530 beos*)6531 lt_cv_deplibs_check_method=pass_all6532 ;;6533 6534 bsdi[45]*)6535 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'6536 lt_cv_file_magic_cmd='/usr/bin/file -L'6537 lt_cv_file_magic_test_file=/shlib/libc.so6538 ;;6539 6540 cygwin*)6541 # func_win32_libid is a shell function defined in ltmain.sh6542 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'6543 lt_cv_file_magic_cmd='func_win32_libid'6544 ;;6545 6546 mingw* | pw32*)6547 # Base MSYS/MinGW do not provide the 'file' command needed by6548 # func_win32_libid shell function, so use a weaker test based on 'objdump',6549 # unless we find 'file', for example because we are cross-compiling.6550 if ( file / ) >/dev/null 2>&1; then6551 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'6552 lt_cv_file_magic_cmd='func_win32_libid'6553 else6554 # Keep this pattern in sync with the one in func_win32_libid.6555 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'6556 lt_cv_file_magic_cmd='$OBJDUMP -f'6557 fi6558 ;;6559 6560 cegcc*)6561 # use the weaker test based on 'objdump'. See mingw*.6562 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'6563 lt_cv_file_magic_cmd='$OBJDUMP -f'6564 ;;6565 6566 darwin* | rhapsody*)6567 lt_cv_deplibs_check_method=pass_all6568 ;;6569 6570 freebsd* | dragonfly*)6571 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then6572 case $host_cpu in6573 i*86 )6574 # Not sure whether the presence of OpenBSD here was a mistake.6575 # Let's accept both of them until this is cleared up.6576 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'6577 lt_cv_file_magic_cmd=/usr/bin/file6578 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`6579 ;;6580 esac6581 else6582 lt_cv_deplibs_check_method=pass_all6583 fi6584 ;;6585 6586 haiku*)6587 lt_cv_deplibs_check_method=pass_all6588 ;;6589 6590 hpux10.20* | hpux11*)6591 lt_cv_file_magic_cmd=/usr/bin/file6592 case $host_cpu in6593 ia64*)6594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'6595 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so6596 ;;6597 hppa*64*)6598 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]'6599 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl6600 ;;6601 *)6602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'6603 lt_cv_file_magic_test_file=/usr/lib/libc.sl6604 ;;6605 esac6606 ;;6607 6608 interix[3-9]*)6609 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here6610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'6611 ;;6612 6613 irix5* | irix6* | nonstopux*)6614 case $LD in6615 *-32|*"-32 ") libmagic=32-bit;;6616 *-n32|*"-n32 ") libmagic=N32;;6617 *-64|*"-64 ") libmagic=64-bit;;6618 *) libmagic=never-match;;6619 esac6620 lt_cv_deplibs_check_method=pass_all6621 ;;6622 6623 # This must be glibc/ELF.6624 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)6625 lt_cv_deplibs_check_method=pass_all6626 ;;6627 6628 netbsd* | netbsdelf*-gnu)6629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then6630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'6631 else6632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'6633 fi6634 ;;6635 6636 newos6*)6637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'6638 lt_cv_file_magic_cmd=/usr/bin/file6639 lt_cv_file_magic_test_file=/usr/lib/libnls.so6640 ;;6641 6642 *nto* | *qnx*)6643 lt_cv_deplibs_check_method=pass_all6644 ;;6645 6646 openbsd* | bitrig*)6647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then6648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'6649 else6650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'6651 fi6652 ;;6653 6654 osf3* | osf4* | osf5*)6655 lt_cv_deplibs_check_method=pass_all6656 ;;6657 6658 rdos*)6659 lt_cv_deplibs_check_method=pass_all6660 ;;6661 6662 solaris*)6663 lt_cv_deplibs_check_method=pass_all6664 ;;6665 6666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)6667 lt_cv_deplibs_check_method=pass_all6668 ;;6669 6670 sysv4 | sysv4.3*)6671 case $host_vendor in6672 motorola)6673 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]'6674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`6675 ;;6676 ncr)6677 lt_cv_deplibs_check_method=pass_all6678 ;;6679 sequent)6680 lt_cv_file_magic_cmd='/bin/file'6681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'6682 ;;6683 sni)6684 lt_cv_file_magic_cmd='/bin/file'6685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"6686 lt_cv_file_magic_test_file=/lib/libc.so6687 ;;6688 siemens)6689 lt_cv_deplibs_check_method=pass_all6690 ;;6691 pc)6692 lt_cv_deplibs_check_method=pass_all6693 ;;6694 esac6695 ;;6696 6697 tpf*)6698 lt_cv_deplibs_check_method=pass_all6699 ;;6700 os2*)6701 lt_cv_deplibs_check_method=pass_all6702 ;;6703 esac6704 6705 fi6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&56707 $as_echo "$lt_cv_deplibs_check_method" >&6; }6708 6709 file_magic_glob=6710 want_nocaseglob=no6711 if test "$build" = "$host"; then6712 case $host_os in6713 mingw* | pw32*)6714 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then6715 want_nocaseglob=yes6716 else6717 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`6718 fi6719 ;;6720 esac6721 fi6722 6723 file_magic_cmd=$lt_cv_file_magic_cmd6724 deplibs_check_method=$lt_cv_deplibs_check_method6725 test -z "$deplibs_check_method" && deplibs_check_method=unknown6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 if test -n "$ac_tool_prefix"; then6749 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.6750 set dummy ${ac_tool_prefix}dlltool; ac_word=$26751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56752 $as_echo_n "checking for $ac_word... " >&6; }6753 if ${ac_cv_prog_DLLTOOL+:} false; then :6754 $as_echo_n "(cached) " >&66755 else6756 if test -n "$DLLTOOL"; then6757 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.6758 else6759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6760 for as_dir in $PATH6761 do6762 IFS=$as_save_IFS6763 test -z "$as_dir" && as_dir=.6764 for ac_exec_ext in '' $ac_executable_extensions; do6765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6766 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"6767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56768 break 26769 fi6770 done6771 done6772 IFS=$as_save_IFS6773 6774 fi6775 fi6776 DLLTOOL=$ac_cv_prog_DLLTOOL6777 if test -n "$DLLTOOL"; then6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&56779 $as_echo "$DLLTOOL" >&6; }6780 else6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56782 $as_echo "no" >&6; }6783 fi6784 6785 6786 fi6787 if test -z "$ac_cv_prog_DLLTOOL"; then6788 ac_ct_DLLTOOL=$DLLTOOL6789 # Extract the first word of "dlltool", so it can be a program name with args.6790 set dummy dlltool; ac_word=$26791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56792 $as_echo_n "checking for $ac_word... " >&6; }6793 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :6794 $as_echo_n "(cached) " >&66795 else6796 if test -n "$ac_ct_DLLTOOL"; then6797 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.6798 else6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6800 for as_dir in $PATH6801 do6802 IFS=$as_save_IFS6803 test -z "$as_dir" && as_dir=.6804 for ac_exec_ext in '' $ac_executable_extensions; do6805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6806 ac_cv_prog_ac_ct_DLLTOOL="dlltool"6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56808 break 26809 fi6810 done6811 done6812 IFS=$as_save_IFS6813 6814 fi6815 fi6816 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL6817 if test -n "$ac_ct_DLLTOOL"; then6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&56819 $as_echo "$ac_ct_DLLTOOL" >&6; }6820 else6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56822 $as_echo "no" >&6; }6823 fi6824 6825 if test "x$ac_ct_DLLTOOL" = x; then6826 DLLTOOL="false"6827 else6828 case $cross_compiling:$ac_tool_warned in6829 yes:)6830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6832 ac_tool_warned=yes ;;6833 esac6834 DLLTOOL=$ac_ct_DLLTOOL6835 fi6836 else6837 DLLTOOL="$ac_cv_prog_DLLTOOL"6838 fi6839 6840 test -z "$DLLTOOL" && DLLTOOL=dlltool6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&56852 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }6853 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :6854 $as_echo_n "(cached) " >&66855 else6856 lt_cv_sharedlib_from_linklib_cmd='unknown'6857 6858 case $host_os in6859 cygwin* | mingw* | pw32* | cegcc*)6860 # two different shell functions defined in ltmain.sh;6861 # decide which one to use based on capabilities of $DLLTOOL6862 case `$DLLTOOL --help 2>&1` in6863 *--identify-strict*)6864 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib6865 ;;6866 *)6867 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback6868 ;;6869 esac6870 ;;6871 *)6872 # fallback: assume linklib IS sharedlib6873 lt_cv_sharedlib_from_linklib_cmd=$ECHO6874 ;;6875 esac6876 6877 fi6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&56879 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }6880 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd6881 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO6882 6883 6884 6885 6886 6887 6888 6889 if test -n "$ac_tool_prefix"; then6890 for ac_prog in ar6891 do6892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.6893 set dummy $ac_tool_prefix$ac_prog; ac_word=$26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56895 $as_echo_n "checking for $ac_word... " >&6; }6896 if ${ac_cv_prog_AR+:} false; then :6897 $as_echo_n "(cached) " >&66898 else6899 if test -n "$AR"; then6900 ac_cv_prog_AR="$AR" # Let the user override the test.6901 else6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6903 for as_dir in $PATH6904 do6905 IFS=$as_save_IFS6906 test -z "$as_dir" && as_dir=.6907 for ac_exec_ext in '' $ac_executable_extensions; do6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6909 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56911 break 26912 fi6913 done6914 done6915 IFS=$as_save_IFS6916 6917 fi6918 fi6919 AR=$ac_cv_prog_AR6920 if test -n "$AR"; then6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&56922 $as_echo "$AR" >&6; }6923 else6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56925 $as_echo "no" >&6; }6926 fi6927 6928 6929 test -n "$AR" && break6930 done6931 fi6932 if test -z "$AR"; then6933 ac_ct_AR=$AR6934 for ac_prog in ar6935 do6936 # Extract the first word of "$ac_prog", so it can be a program name with args.6937 set dummy $ac_prog; ac_word=$26938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&56939 $as_echo_n "checking for $ac_word... " >&6; }6940 if ${ac_cv_prog_ac_ct_AR+:} false; then :6941 $as_echo_n "(cached) " >&66942 else6943 if test -n "$ac_ct_AR"; then6944 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.6945 else6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6947 for as_dir in $PATH6948 do6949 IFS=$as_save_IFS6950 test -z "$as_dir" && as_dir=.6951 for ac_exec_ext in '' $ac_executable_extensions; do6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6953 ac_cv_prog_ac_ct_AR="$ac_prog"6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&56955 break 26956 fi6957 done6958 done6959 IFS=$as_save_IFS6960 6961 fi6962 fi6963 ac_ct_AR=$ac_cv_prog_ac_ct_AR6964 if test -n "$ac_ct_AR"; then6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&56966 $as_echo "$ac_ct_AR" >&6; }6967 else6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&56969 $as_echo "no" >&6; }6970 fi6971 6972 6973 test -n "$ac_ct_AR" && break6974 done6975 6976 if test "x$ac_ct_AR" = x; then6977 AR="false"6978 else6979 case $cross_compiling:$ac_tool_warned in6980 yes:)6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&56982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}6983 ac_tool_warned=yes ;;6984 esac6985 AR=$ac_ct_AR6986 fi6987 fi6988 6989 : ${AR=ar}6990 : ${AR_FLAGS=cru}6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&57003 $as_echo_n "checking for archiver @FILE support... " >&6; }7004 if ${lt_cv_ar_at_file+:} false; then :7005 $as_echo_n "(cached) " >&67006 else7007 lt_cv_ar_at_file=no7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7009 /* end confdefs.h. */7010 7011 int7012 main ()7013 {7014 7015 ;7016 return 0;7017 }7018 _ACEOF7019 if ac_fn_c_try_compile "$LINENO"; then :7020 echo conftest.$ac_objext > conftest.lst7021 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'7022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&57023 (eval $lt_ar_try) 2>&57024 ac_status=$?7025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57026 test $ac_status = 0; }7027 if test 0 -eq "$ac_status"; then7028 # Ensure the archiver fails upon bogus file names.7029 rm -f conftest.$ac_objext libconftest.a7030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&57031 (eval $lt_ar_try) 2>&57032 ac_status=$?7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57034 test $ac_status = 0; }7035 if test 0 -ne "$ac_status"; then7036 lt_cv_ar_at_file=@7037 fi7038 fi7039 rm -f conftest.* libconftest.a7040 7041 fi7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7043 7044 fi7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&57046 $as_echo "$lt_cv_ar_at_file" >&6; }7047 7048 if test no = "$lt_cv_ar_at_file"; then7049 archiver_list_spec=7050 else7051 archiver_list_spec=$lt_cv_ar_at_file7052 fi7053 7054 7055 7056 7057 7058 7059 7060 if test -n "$ac_tool_prefix"; then7061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.7062 set dummy ${ac_tool_prefix}strip; ac_word=$27063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57064 $as_echo_n "checking for $ac_word... " >&6; }7065 if ${ac_cv_prog_STRIP+:} false; then :7066 $as_echo_n "(cached) " >&67067 else7068 if test -n "$STRIP"; then7069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.7070 else7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7072 for as_dir in $PATH7073 do7074 IFS=$as_save_IFS7075 test -z "$as_dir" && as_dir=.7076 for ac_exec_ext in '' $ac_executable_extensions; do7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57080 break 27081 fi7082 done7083 done7084 IFS=$as_save_IFS7085 7086 fi7087 fi7088 STRIP=$ac_cv_prog_STRIP7089 if test -n "$STRIP"; then7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&57091 $as_echo "$STRIP" >&6; }7092 else7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57094 $as_echo "no" >&6; }7095 fi7096 7097 7098 fi7099 if test -z "$ac_cv_prog_STRIP"; then7100 ac_ct_STRIP=$STRIP7101 # Extract the first word of "strip", so it can be a program name with args.7102 set dummy strip; ac_word=$27103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57104 $as_echo_n "checking for $ac_word... " >&6; }7105 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :7106 $as_echo_n "(cached) " >&67107 else7108 if test -n "$ac_ct_STRIP"; then7109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.7110 else7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7112 for as_dir in $PATH7113 do7114 IFS=$as_save_IFS7115 test -z "$as_dir" && as_dir=.7116 for ac_exec_ext in '' $ac_executable_extensions; do7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7118 ac_cv_prog_ac_ct_STRIP="strip"7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57120 break 27121 fi7122 done7123 done7124 IFS=$as_save_IFS7125 7126 fi7127 fi7128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP7129 if test -n "$ac_ct_STRIP"; then7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&57131 $as_echo "$ac_ct_STRIP" >&6; }7132 else7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57134 $as_echo "no" >&6; }7135 fi7136 7137 if test "x$ac_ct_STRIP" = x; then7138 STRIP=":"7139 else7140 case $cross_compiling:$ac_tool_warned in7141 yes:)7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7144 ac_tool_warned=yes ;;7145 esac7146 STRIP=$ac_ct_STRIP7147 fi7148 else7149 STRIP="$ac_cv_prog_STRIP"7150 fi7151 7152 test -z "$STRIP" && STRIP=:7153 7154 7155 7156 7157 7158 7159 if test -n "$ac_tool_prefix"; then7160 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.7161 set dummy ${ac_tool_prefix}ranlib; ac_word=$27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57163 $as_echo_n "checking for $ac_word... " >&6; }7164 if ${ac_cv_prog_RANLIB+:} false; then :7165 $as_echo_n "(cached) " >&67166 else7167 if test -n "$RANLIB"; then7168 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.7169 else7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7171 for as_dir in $PATH7172 do7173 IFS=$as_save_IFS7174 test -z "$as_dir" && as_dir=.7175 for ac_exec_ext in '' $ac_executable_extensions; do7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7177 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57179 break 27180 fi7181 done7182 done7183 IFS=$as_save_IFS7184 7185 fi7186 fi7187 RANLIB=$ac_cv_prog_RANLIB7188 if test -n "$RANLIB"; then7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&57190 $as_echo "$RANLIB" >&6; }7191 else7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57193 $as_echo "no" >&6; }7194 fi7195 7196 7197 fi7198 if test -z "$ac_cv_prog_RANLIB"; then7199 ac_ct_RANLIB=$RANLIB7200 # Extract the first word of "ranlib", so it can be a program name with args.7201 set dummy ranlib; ac_word=$27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&57203 $as_echo_n "checking for $ac_word... " >&6; }7204 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :7205 $as_echo_n "(cached) " >&67206 else7207 if test -n "$ac_ct_RANLIB"; then7208 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.7209 else7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7211 for as_dir in $PATH7212 do7213 IFS=$as_save_IFS7214 test -z "$as_dir" && as_dir=.7215 for ac_exec_ext in '' $ac_executable_extensions; do7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then7217 ac_cv_prog_ac_ct_RANLIB="ranlib"7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&57219 break 27220 fi7221 done7222 done7223 IFS=$as_save_IFS7224 7225 fi7226 fi7227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB7228 if test -n "$ac_ct_RANLIB"; then7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&57230 $as_echo "$ac_ct_RANLIB" >&6; }7231 else7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&57233 $as_echo "no" >&6; }7234 fi7235 7236 if test "x$ac_ct_RANLIB" = x; then7237 RANLIB=":"7238 else7239 case $cross_compiling:$ac_tool_warned in7240 yes:)7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&57242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}7243 ac_tool_warned=yes ;;7244 esac7245 RANLIB=$ac_ct_RANLIB7246 fi7247 else7248 RANLIB="$ac_cv_prog_RANLIB"7249 fi7250 7251 test -z "$RANLIB" && RANLIB=:7252 7253 7254 7255 7256 7257 7258 # Determine commands to create old-style static archives.7259 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'7260 old_postinstall_cmds='chmod 644 $oldlib'7261 old_postuninstall_cmds=7262 7263 if test -n "$RANLIB"; then7264 case $host_os in7265 bitrig* | openbsd*)7266 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"7267 ;;7268 *)7269 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"7270 ;;7271 esac7272 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"7273 fi7274 7275 case $host_os in7276 darwin*)7277 lock_old_archive_extraction=yes ;;7278 *)7279 lock_old_archive_extraction=no ;;7280 esac7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 # If no C compiler was specified, use CC.7321 LTCC=${LTCC-"$CC"}7322 7323 # If no C compiler flags were specified, use CFLAGS.7324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}7325 7326 # Allow CC to be a program name with arguments.7327 compiler=$CC7328 7329 7330 # Check for command to grab the raw symbol name followed by C symbol from nm.7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&57332 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }7333 if ${lt_cv_sys_global_symbol_pipe+:} false; then :7334 $as_echo_n "(cached) " >&67335 else7336 7337 # These are sane defaults that work on at least a few old systems.7338 # [They come from Ultrix. What could be older than Ultrix?!! ;)]7339 7340 # Character class describing NM global symbol codes.7341 symcode='[BCDEGRST]'7342 7343 # Regexp to match symbols that can be accessed directly from C.7344 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'7345 7346 # Define system-specific variables.7347 case $host_os in7348 aix*)7349 symcode='[BCDT]'7350 ;;7351 cygwin* | mingw* | pw32* | cegcc*)7352 symcode='[ABCDGISTW]'7353 ;;7354 hpux*)7355 if test ia64 = "$host_cpu"; then7356 symcode='[ABCDEGRST]'7357 fi7358 ;;7359 irix* | nonstopux*)7360 symcode='[BCDEGRST]'7361 ;;7362 osf*)7363 symcode='[BCDEGQRST]'7364 ;;7365 solaris*)7366 symcode='[BDRT]'7367 ;;7368 sco3.2v5*)7369 symcode='[DT]'7370 ;;7371 sysv4.2uw2*)7372 symcode='[DT]'7373 ;;7374 sysv5* | sco5v6* | unixware* | OpenUNIX*)7375 symcode='[ABDT]'7376 ;;7377 sysv4)7378 symcode='[DFNSTU]'7379 ;;7380 esac7381 7382 # If we're using GNU nm, then use its standard symbol codes.7383 case `$NM -V 2>&1` in7384 *GNU* | *'with BFD'*)7385 symcode='[ABCDGIRSTW]' ;;7386 esac7387 7388 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7389 # Gets list of data symbols to import.7390 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"7391 # Adjust the below global symbol transforms to fixup imported variables.7392 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"7393 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"7394 lt_c_name_lib_hook="\7395 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\7396 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"7397 else7398 # Disable hooks by default.7399 lt_cv_sys_global_symbol_to_import=7400 lt_cdecl_hook=7401 lt_c_name_hook=7402 lt_c_name_lib_hook=7403 fi7404 7405 # Transform an extracted symbol line into a proper C declaration.7406 # Some systems (esp. on ia64) link data and code symbols differently,7407 # so use this general approach.7408 lt_cv_sys_global_symbol_to_cdecl="sed -n"\7409 $lt_cdecl_hook\7410 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\7411 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"7412 7413 # Transform an extracted symbol line into symbol name and symbol address7414 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\7415 $lt_c_name_hook\7416 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\7417 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"7418 7419 # Transform an extracted symbol line into symbol name with lib prefix and7420 # symbol address.7421 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\7422 $lt_c_name_lib_hook\7423 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\7424 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\7425 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"7426 7427 # Handle CRLF in mingw tool chain7428 opt_cr=7429 case $build_os in7430 mingw*)7431 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp7432 ;;7433 esac7434 7435 # Try without a prefix underscore, then with it.7436 for ac_symprfx in "" "_"; do7437 7438 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.7439 symxfrm="\\1 $ac_symprfx\\2 \\2"7440 7441 # Write the raw and C identifiers.7442 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7443 # Fake it for dumpbin and say T for any non-static function,7444 # D for any global variable and I for any imported variable.7445 # Also find C++ and __fastcall symbols from MSVC++,7446 # which start with @ or ?.7447 lt_cv_sys_global_symbol_pipe="$AWK '"\7448 " {last_section=section; section=\$ 3};"\7449 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\7450 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\7451 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\7452 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\7453 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\7454 " \$ 0!~/External *\|/{next};"\7455 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\7456 " {if(hide[section]) next};"\7457 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\7458 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\7459 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\7460 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\7461 " ' prfx=^$ac_symprfx"7462 else7463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"7464 fi7465 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"7466 7467 # Check to see that the pipe works correctly.7468 pipe_works=no7469 7470 rm -f conftest*7471 cat > conftest.$ac_ext <<_LT_EOF7472 #ifdef __cplusplus7473 extern "C" {7474 #endif7475 char nm_test_var;7476 void nm_test_func(void);7477 void nm_test_func(void){}7478 #ifdef __cplusplus7479 }7480 #endif7481 int main(){nm_test_var='a';nm_test_func();return(0);}7482 _LT_EOF7483 7484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57485 (eval $ac_compile) 2>&57486 ac_status=$?7487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57488 test $ac_status = 0; }; then7489 # Now try to grab the symbols.7490 nlist=conftest.nm7491 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&57492 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&57493 ac_status=$?7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57495 test $ac_status = 0; } && test -s "$nlist"; then7496 # Try sorting and uniquifying the output.7497 if sort "$nlist" | uniq > "$nlist"T; then7498 mv -f "$nlist"T "$nlist"7499 else7500 rm -f "$nlist"T7501 fi7502 7503 # Make sure that we snagged all the symbols we need.7504 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then7505 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then7506 cat <<_LT_EOF > conftest.$ac_ext7507 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */7508 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE7509 /* DATA imports from DLLs on WIN32 can't be const, because runtime7510 relocations are performed -- see ld's documentation on pseudo-relocs. */7511 # define LT_DLSYM_CONST7512 #elif defined __osf__7513 /* This system does not cope well with relocations in const data. */7514 # define LT_DLSYM_CONST7515 #else7516 # define LT_DLSYM_CONST const7517 #endif7518 7519 #ifdef __cplusplus7520 extern "C" {7521 #endif7522 7523 _LT_EOF7524 # Now generate the symbol file.7525 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'7526 7527 cat <<_LT_EOF >> conftest.$ac_ext7528 7529 /* The mapping between symbol names and symbols. */7530 LT_DLSYM_CONST struct {7531 const char *name;7532 void *address;7533 }7534 lt__PROGRAM__LTX_preloaded_symbols[] =7535 {7536 { "@PROGRAM@", (void *) 0 },7537 _LT_EOF7538 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext7539 cat <<\_LT_EOF >> conftest.$ac_ext7540 {0, (void *) 0}7541 };7542 7543 /* This works around a problem in FreeBSD linker */7544 #ifdef FREEBSD_WORKAROUND7545 static const void *lt_preloaded_setup() {7546 return lt__PROGRAM__LTX_preloaded_symbols;7547 }7548 #endif7549 7550 #ifdef __cplusplus7551 }7552 #endif7553 _LT_EOF7554 # Now try linking the two files.7555 mv conftest.$ac_objext conftstm.$ac_objext7556 lt_globsym_save_LIBS=$LIBS7557 lt_globsym_save_CFLAGS=$CFLAGS7558 LIBS=conftstm.$ac_objext7559 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"7560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&57561 (eval $ac_link) 2>&57562 ac_status=$?7563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57564 test $ac_status = 0; } && test -s conftest$ac_exeext; then7565 pipe_works=yes7566 fi7567 LIBS=$lt_globsym_save_LIBS7568 CFLAGS=$lt_globsym_save_CFLAGS7569 else7570 echo "cannot find nm_test_func in $nlist" >&57571 fi7572 else7573 echo "cannot find nm_test_var in $nlist" >&57574 fi7575 else7576 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&57577 fi7578 else7579 echo "$progname: failed program was:" >&57580 cat conftest.$ac_ext >&57581 fi7582 rm -rf conftest* conftst*7583 7584 # Do not use the global_symbol_pipe unless it works.7585 if test yes = "$pipe_works"; then7586 break7587 else7588 lt_cv_sys_global_symbol_pipe=7589 fi7590 done7591 7592 fi7593 7594 if test -z "$lt_cv_sys_global_symbol_pipe"; then7595 lt_cv_sys_global_symbol_to_cdecl=7596 fi7597 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&57599 $as_echo "failed" >&6; }7600 else7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&57602 $as_echo "ok" >&6; }7603 fi7604 7605 # Response file support.7606 if test "$lt_cv_nm_interface" = "MS dumpbin"; then7607 nm_file_list_spec='@'7608 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then7609 nm_file_list_spec='@'7610 fi7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&57649 $as_echo_n "checking for sysroot... " >&6; }7650 7651 # Check whether --with-sysroot was given.7652 if test "${with_sysroot+set}" = set; then :7653 withval=$with_sysroot;7654 else7655 with_sysroot=no7656 fi7657 7658 7659 lt_sysroot=7660 case $with_sysroot in #(7661 yes)7662 if test yes = "$GCC"; then7663 lt_sysroot=`$CC --print-sysroot 2>/dev/null`7664 fi7665 ;; #(7666 /*)7667 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`7668 ;; #(7669 no|'')7670 ;; #(7671 *)7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&57673 $as_echo "$with_sysroot" >&6; }7674 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 57675 ;;7676 esac7677 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&57679 $as_echo "${lt_sysroot:-no}" >&6; }7680 7681 7682 7683 7684 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&57686 $as_echo_n "checking for a working dd... " >&6; }7687 if ${ac_cv_path_lt_DD+:} false; then :7688 $as_echo_n "(cached) " >&67689 else7690 printf 0123456789abcdef0123456789abcdef >conftest.i7691 cat conftest.i conftest.i >conftest2.i7692 : ${lt_DD:=$DD}7693 if test -z "$lt_DD"; then7694 ac_path_lt_DD_found=false7695 # Loop through the user's path and test for each of PROGNAME-LIST7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR7697 for as_dir in $PATH7698 do7699 IFS=$as_save_IFS7700 test -z "$as_dir" && as_dir=.7701 for ac_prog in dd; do7702 for ac_exec_ext in '' $ac_executable_extensions; do7703 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"7704 as_fn_executable_p "$ac_path_lt_DD" || continue7705 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then7706 cmp -s conftest.i conftest.out \7707 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:7708 fi7709 $ac_path_lt_DD_found && break 37710 done7711 done7712 done7713 IFS=$as_save_IFS7714 if test -z "$ac_cv_path_lt_DD"; then7715 :7716 fi7717 else7718 ac_cv_path_lt_DD=$lt_DD7719 fi7720 7721 rm -f conftest.i conftest2.i conftest.out7722 fi7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&57724 $as_echo "$ac_cv_path_lt_DD" >&6; }7725 7726 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&57728 $as_echo_n "checking how to truncate binary pipes... " >&6; }7729 if ${lt_cv_truncate_bin+:} false; then :7730 $as_echo_n "(cached) " >&67731 else7732 printf 0123456789abcdef0123456789abcdef >conftest.i7733 cat conftest.i conftest.i >conftest2.i7734 lt_cv_truncate_bin=7735 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then7736 cmp -s conftest.i conftest.out \7737 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"7738 fi7739 rm -f conftest.i conftest2.i conftest.out7740 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"7741 fi7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&57743 $as_echo "$lt_cv_truncate_bin" >&6; }7744 7745 7746 7747 7748 7749 7750 7751 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.7752 func_cc_basename ()7753 {7754 for cc_temp in $*""; do7755 case $cc_temp in7756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;7757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;7758 \-*) ;;7759 *) break;;7760 esac7761 done7762 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`7763 }7764 7765 # Check whether --enable-libtool-lock was given.7766 if test "${enable_libtool_lock+set}" = set; then :7767 enableval=$enable_libtool_lock;7768 fi7769 7770 test no = "$enable_libtool_lock" || enable_libtool_lock=yes7771 7772 # Some flags need to be propagated to the compiler or linker for good7773 # libtool support.7774 case $host in7775 ia64-*-hpux*)7776 # Find out what ABI is being produced by ac_compile, and set mode7777 # options accordingly.7778 echo 'int i;' > conftest.$ac_ext7779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57780 (eval $ac_compile) 2>&57781 ac_status=$?7782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57783 test $ac_status = 0; }; then7784 case `/usr/bin/file conftest.$ac_objext` in7785 *ELF-32*)7786 HPUX_IA64_MODE=327787 ;;7788 *ELF-64*)7789 HPUX_IA64_MODE=647790 ;;7791 esac7792 fi7793 rm -rf conftest*7794 ;;7795 *-*-irix6*)7796 # Find out what ABI is being produced by ac_compile, and set linker7797 # options accordingly.7798 echo '#line '$LINENO' "configure"' > conftest.$ac_ext7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57800 (eval $ac_compile) 2>&57801 ac_status=$?7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57803 test $ac_status = 0; }; then7804 if test yes = "$lt_cv_prog_gnu_ld"; then7805 case `/usr/bin/file conftest.$ac_objext` in7806 *32-bit*)7807 LD="${LD-ld} -melf32bsmip"7808 ;;7809 *N32*)7810 LD="${LD-ld} -melf32bmipn32"7811 ;;7812 *64-bit*)7813 LD="${LD-ld} -melf64bmip"7814 ;;7815 esac7816 else7817 case `/usr/bin/file conftest.$ac_objext` in7818 *32-bit*)7819 LD="${LD-ld} -32"7820 ;;7821 *N32*)7822 LD="${LD-ld} -n32"7823 ;;7824 *64-bit*)7825 LD="${LD-ld} -64"7826 ;;7827 esac7828 fi7829 fi7830 rm -rf conftest*7831 ;;7832 7833 mips64*-*linux*)7834 # Find out what ABI is being produced by ac_compile, and set linker7835 # options accordingly.7836 echo '#line '$LINENO' "configure"' > conftest.$ac_ext7837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57838 (eval $ac_compile) 2>&57839 ac_status=$?7840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57841 test $ac_status = 0; }; then7842 emul=elf7843 case `/usr/bin/file conftest.$ac_objext` in7844 *32-bit*)7845 emul="${emul}32"7846 ;;7847 *64-bit*)7848 emul="${emul}64"7849 ;;7850 esac7851 case `/usr/bin/file conftest.$ac_objext` in7852 *MSB*)7853 emul="${emul}btsmip"7854 ;;7855 *LSB*)7856 emul="${emul}ltsmip"7857 ;;7858 esac7859 case `/usr/bin/file conftest.$ac_objext` in7860 *N32*)7861 emul="${emul}n32"7862 ;;7863 esac7864 LD="${LD-ld} -m $emul"7865 fi7866 rm -rf conftest*7867 ;;7868 7869 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \7870 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)7871 # Find out what ABI is being produced by ac_compile, and set linker7872 # options accordingly. Note that the listed cases only cover the7873 # situations where additional linker options are needed (such as when7874 # doing 32-bit compilation for a host where ld defaults to 64-bit, or7875 # vice versa); the common cases where no linker options are needed do7876 # not appear in the list.7877 echo 'int i;' > conftest.$ac_ext7878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57879 (eval $ac_compile) 2>&57880 ac_status=$?7881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57882 test $ac_status = 0; }; then7883 case `/usr/bin/file conftest.o` in7884 *32-bit*)7885 case $host in7886 x86_64-*kfreebsd*-gnu)7887 LD="${LD-ld} -m elf_i386_fbsd"7888 ;;7889 x86_64-*linux*)7890 case `/usr/bin/file conftest.o` in7891 *x86-64*)7892 LD="${LD-ld} -m elf32_x86_64"7893 ;;7894 *)7895 LD="${LD-ld} -m elf_i386"7896 ;;7897 esac7898 ;;7899 powerpc64le-*linux*)7900 LD="${LD-ld} -m elf32lppclinux"7901 ;;7902 powerpc64-*linux*)7903 LD="${LD-ld} -m elf32ppclinux"7904 ;;7905 s390x-*linux*)7906 LD="${LD-ld} -m elf_s390"7907 ;;7908 sparc64-*linux*)7909 LD="${LD-ld} -m elf32_sparc"7910 ;;7911 esac7912 ;;7913 *64-bit*)7914 case $host in7915 x86_64-*kfreebsd*-gnu)7916 LD="${LD-ld} -m elf_x86_64_fbsd"7917 ;;7918 x86_64-*linux*)7919 LD="${LD-ld} -m elf_x86_64"7920 ;;7921 powerpcle-*linux*)7922 LD="${LD-ld} -m elf64lppc"7923 ;;7924 powerpc-*linux*)7925 LD="${LD-ld} -m elf64ppc"7926 ;;7927 s390*-*linux*|s390*-*tpf*)7928 LD="${LD-ld} -m elf64_s390"7929 ;;7930 sparc*-*linux*)7931 LD="${LD-ld} -m elf64_sparc"7932 ;;7933 esac7934 ;;7935 esac7936 fi7937 rm -rf conftest*7938 ;;7939 7940 *-*-sco3.2v5*)7941 # On SCO OpenServer 5, we need -belf to get full-featured binaries.7942 SAVE_CFLAGS=$CFLAGS7943 CFLAGS="$CFLAGS -belf"7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&57945 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }7946 if ${lt_cv_cc_needs_belf+:} false; then :7947 $as_echo_n "(cached) " >&67948 else7949 ac_ext=c7950 ac_cpp='$CPP $CPPFLAGS'7951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7953 ac_compiler_gnu=$ac_cv_c_compiler_gnu7954 7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7956 /* end confdefs.h. */7957 7958 int7959 main ()7960 {7961 7962 ;7963 return 0;7964 }7965 _ACEOF7966 if ac_fn_c_try_link "$LINENO"; then :7967 lt_cv_cc_needs_belf=yes7968 else7969 lt_cv_cc_needs_belf=no7970 fi7971 rm -f core conftest.err conftest.$ac_objext \7972 conftest$ac_exeext conftest.$ac_ext7973 ac_ext=c7974 ac_cpp='$CPP $CPPFLAGS'7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu7978 7979 fi7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&57981 $as_echo "$lt_cv_cc_needs_belf" >&6; }7982 if test yes != "$lt_cv_cc_needs_belf"; then7983 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf7984 CFLAGS=$SAVE_CFLAGS7985 fi7986 ;;7987 *-*solaris*)7988 # Find out what ABI is being produced by ac_compile, and set linker7989 # options accordingly.7990 echo 'int i;' > conftest.$ac_ext7991 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&57992 (eval $ac_compile) 2>&57993 ac_status=$?7994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&57995 test $ac_status = 0; }; then7996 case `/usr/bin/file conftest.o` in7997 *64-bit*)7998 case $lt_cv_prog_gnu_ld in7999 yes*)8000 case $host in8001 i?86-*-solaris*|x86_64-*-solaris*)8002 LD="${LD-ld} -m elf_x86_64"8003 ;;8004 sparc*-*-solaris*)8005 LD="${LD-ld} -m elf64_sparc"8006 ;;8007 esac8008 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.8009 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then8010 LD=${LD-ld}_sol28011 fi8012 ;;8013 *)8014 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then8015 LD="${LD-ld} -64"8016 fi8017 ;;8018 esac8019 ;;8020 esac8021 fi8022 rm -rf conftest*8023 ;;8024 esac8025 8026 need_locks=$enable_libtool_lock8027 8028 if test -n "$ac_tool_prefix"; then8029 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.8030 set dummy ${ac_tool_prefix}mt; ac_word=$28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58032 $as_echo_n "checking for $ac_word... " >&6; }8033 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :8034 $as_echo_n "(cached) " >&68035 else8036 if test -n "$MANIFEST_TOOL"; then8037 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.8038 else8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8040 for as_dir in $PATH8041 do8042 IFS=$as_save_IFS8043 test -z "$as_dir" && as_dir=.8044 for ac_exec_ext in '' $ac_executable_extensions; do8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8046 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58048 break 28049 fi8050 done8051 done8052 IFS=$as_save_IFS8053 8054 fi8055 fi8056 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL8057 if test -n "$MANIFEST_TOOL"; then8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&58059 $as_echo "$MANIFEST_TOOL" >&6; }8060 else8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58062 $as_echo "no" >&6; }8063 fi8064 8065 8066 fi8067 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then8068 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL8069 # Extract the first word of "mt", so it can be a program name with args.8070 set dummy mt; ac_word=$28071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58072 $as_echo_n "checking for $ac_word... " >&6; }8073 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :8074 $as_echo_n "(cached) " >&68075 else8076 if test -n "$ac_ct_MANIFEST_TOOL"; then8077 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.8078 else8079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8080 for as_dir in $PATH8081 do8082 IFS=$as_save_IFS8083 test -z "$as_dir" && as_dir=.8084 for ac_exec_ext in '' $ac_executable_extensions; do8085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8086 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"8087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58088 break 28089 fi8090 done8091 done8092 IFS=$as_save_IFS8093 8094 fi8095 fi8096 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL8097 if test -n "$ac_ct_MANIFEST_TOOL"; then8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&58099 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }8100 else8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58102 $as_echo "no" >&6; }8103 fi8104 8105 if test "x$ac_ct_MANIFEST_TOOL" = x; then8106 MANIFEST_TOOL=":"8107 else8108 case $cross_compiling:$ac_tool_warned in8109 yes:)8110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8112 ac_tool_warned=yes ;;8113 esac8114 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL8115 fi8116 else8117 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"8118 fi8119 8120 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&58122 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }8123 if ${lt_cv_path_mainfest_tool+:} false; then :8124 $as_echo_n "(cached) " >&68125 else8126 lt_cv_path_mainfest_tool=no8127 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&58128 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out8129 cat conftest.err >&58130 if $GREP 'Manifest Tool' conftest.out > /dev/null; then8131 lt_cv_path_mainfest_tool=yes8132 fi8133 rm -f conftest*8134 fi8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&58136 $as_echo "$lt_cv_path_mainfest_tool" >&6; }8137 if test yes != "$lt_cv_path_mainfest_tool"; then8138 MANIFEST_TOOL=:8139 fi8140 8141 8142 8143 8144 8145 8146 case $host_os in8147 rhapsody* | darwin*)8148 if test -n "$ac_tool_prefix"; then8149 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.8150 set dummy ${ac_tool_prefix}dsymutil; ac_word=$28151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58152 $as_echo_n "checking for $ac_word... " >&6; }8153 if ${ac_cv_prog_DSYMUTIL+:} false; then :8154 $as_echo_n "(cached) " >&68155 else8156 if test -n "$DSYMUTIL"; then8157 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.8158 else8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8160 for as_dir in $PATH8161 do8162 IFS=$as_save_IFS8163 test -z "$as_dir" && as_dir=.8164 for ac_exec_ext in '' $ac_executable_extensions; do8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8166 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58168 break 28169 fi8170 done8171 done8172 IFS=$as_save_IFS8173 8174 fi8175 fi8176 DSYMUTIL=$ac_cv_prog_DSYMUTIL8177 if test -n "$DSYMUTIL"; then8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&58179 $as_echo "$DSYMUTIL" >&6; }8180 else8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58182 $as_echo "no" >&6; }8183 fi8184 8185 8186 fi8187 if test -z "$ac_cv_prog_DSYMUTIL"; then8188 ac_ct_DSYMUTIL=$DSYMUTIL8189 # Extract the first word of "dsymutil", so it can be a program name with args.8190 set dummy dsymutil; ac_word=$28191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58192 $as_echo_n "checking for $ac_word... " >&6; }8193 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :8194 $as_echo_n "(cached) " >&68195 else8196 if test -n "$ac_ct_DSYMUTIL"; then8197 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.8198 else8199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8200 for as_dir in $PATH8201 do8202 IFS=$as_save_IFS8203 test -z "$as_dir" && as_dir=.8204 for ac_exec_ext in '' $ac_executable_extensions; do8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8206 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58208 break 28209 fi8210 done8211 done8212 IFS=$as_save_IFS8213 8214 fi8215 fi8216 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL8217 if test -n "$ac_ct_DSYMUTIL"; then8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&58219 $as_echo "$ac_ct_DSYMUTIL" >&6; }8220 else8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58222 $as_echo "no" >&6; }8223 fi8224 8225 if test "x$ac_ct_DSYMUTIL" = x; then8226 DSYMUTIL=":"8227 else8228 case $cross_compiling:$ac_tool_warned in8229 yes:)8230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8232 ac_tool_warned=yes ;;8233 esac8234 DSYMUTIL=$ac_ct_DSYMUTIL8235 fi8236 else8237 DSYMUTIL="$ac_cv_prog_DSYMUTIL"8238 fi8239 8240 if test -n "$ac_tool_prefix"; then8241 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.8242 set dummy ${ac_tool_prefix}nmedit; ac_word=$28243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58244 $as_echo_n "checking for $ac_word... " >&6; }8245 if ${ac_cv_prog_NMEDIT+:} false; then :8246 $as_echo_n "(cached) " >&68247 else8248 if test -n "$NMEDIT"; then8249 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.8250 else8251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8252 for as_dir in $PATH8253 do8254 IFS=$as_save_IFS8255 test -z "$as_dir" && as_dir=.8256 for ac_exec_ext in '' $ac_executable_extensions; do8257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8258 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"8259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58260 break 28261 fi8262 done8263 done8264 IFS=$as_save_IFS8265 8266 fi8267 fi8268 NMEDIT=$ac_cv_prog_NMEDIT8269 if test -n "$NMEDIT"; then8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&58271 $as_echo "$NMEDIT" >&6; }8272 else8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58274 $as_echo "no" >&6; }8275 fi8276 8277 8278 fi8279 if test -z "$ac_cv_prog_NMEDIT"; then8280 ac_ct_NMEDIT=$NMEDIT8281 # Extract the first word of "nmedit", so it can be a program name with args.8282 set dummy nmedit; ac_word=$28283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58284 $as_echo_n "checking for $ac_word... " >&6; }8285 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :8286 $as_echo_n "(cached) " >&68287 else8288 if test -n "$ac_ct_NMEDIT"; then8289 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.8290 else8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8292 for as_dir in $PATH8293 do8294 IFS=$as_save_IFS8295 test -z "$as_dir" && as_dir=.8296 for ac_exec_ext in '' $ac_executable_extensions; do8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8298 ac_cv_prog_ac_ct_NMEDIT="nmedit"8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58300 break 28301 fi8302 done8303 done8304 IFS=$as_save_IFS8305 8306 fi8307 fi8308 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT8309 if test -n "$ac_ct_NMEDIT"; then8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&58311 $as_echo "$ac_ct_NMEDIT" >&6; }8312 else8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58314 $as_echo "no" >&6; }8315 fi8316 8317 if test "x$ac_ct_NMEDIT" = x; then8318 NMEDIT=":"8319 else8320 case $cross_compiling:$ac_tool_warned in8321 yes:)8322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8324 ac_tool_warned=yes ;;8325 esac8326 NMEDIT=$ac_ct_NMEDIT8327 fi8328 else8329 NMEDIT="$ac_cv_prog_NMEDIT"8330 fi8331 8332 if test -n "$ac_tool_prefix"; then8333 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.8334 set dummy ${ac_tool_prefix}lipo; ac_word=$28335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58336 $as_echo_n "checking for $ac_word... " >&6; }8337 if ${ac_cv_prog_LIPO+:} false; then :8338 $as_echo_n "(cached) " >&68339 else8340 if test -n "$LIPO"; then8341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.8342 else8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8344 for as_dir in $PATH8345 do8346 IFS=$as_save_IFS8347 test -z "$as_dir" && as_dir=.8348 for ac_exec_ext in '' $ac_executable_extensions; do8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8350 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58352 break 28353 fi8354 done8355 done8356 IFS=$as_save_IFS8357 8358 fi8359 fi8360 LIPO=$ac_cv_prog_LIPO8361 if test -n "$LIPO"; then8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&58363 $as_echo "$LIPO" >&6; }8364 else8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58366 $as_echo "no" >&6; }8367 fi8368 8369 8370 fi8371 if test -z "$ac_cv_prog_LIPO"; then8372 ac_ct_LIPO=$LIPO8373 # Extract the first word of "lipo", so it can be a program name with args.8374 set dummy lipo; ac_word=$28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58376 $as_echo_n "checking for $ac_word... " >&6; }8377 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :8378 $as_echo_n "(cached) " >&68379 else8380 if test -n "$ac_ct_LIPO"; then8381 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.8382 else8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8384 for as_dir in $PATH8385 do8386 IFS=$as_save_IFS8387 test -z "$as_dir" && as_dir=.8388 for ac_exec_ext in '' $ac_executable_extensions; do8389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8390 ac_cv_prog_ac_ct_LIPO="lipo"8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58392 break 28393 fi8394 done8395 done8396 IFS=$as_save_IFS8397 8398 fi8399 fi8400 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO8401 if test -n "$ac_ct_LIPO"; then8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&58403 $as_echo "$ac_ct_LIPO" >&6; }8404 else8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58406 $as_echo "no" >&6; }8407 fi8408 8409 if test "x$ac_ct_LIPO" = x; then8410 LIPO=":"8411 else8412 case $cross_compiling:$ac_tool_warned in8413 yes:)8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8416 ac_tool_warned=yes ;;8417 esac8418 LIPO=$ac_ct_LIPO8419 fi8420 else8421 LIPO="$ac_cv_prog_LIPO"8422 fi8423 8424 if test -n "$ac_tool_prefix"; then8425 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.8426 set dummy ${ac_tool_prefix}otool; ac_word=$28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58428 $as_echo_n "checking for $ac_word... " >&6; }8429 if ${ac_cv_prog_OTOOL+:} false; then :8430 $as_echo_n "(cached) " >&68431 else8432 if test -n "$OTOOL"; then8433 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.8434 else8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8436 for as_dir in $PATH8437 do8438 IFS=$as_save_IFS8439 test -z "$as_dir" && as_dir=.8440 for ac_exec_ext in '' $ac_executable_extensions; do8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8442 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58444 break 28445 fi8446 done8447 done8448 IFS=$as_save_IFS8449 8450 fi8451 fi8452 OTOOL=$ac_cv_prog_OTOOL8453 if test -n "$OTOOL"; then8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&58455 $as_echo "$OTOOL" >&6; }8456 else8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58458 $as_echo "no" >&6; }8459 fi8460 8461 8462 fi8463 if test -z "$ac_cv_prog_OTOOL"; then8464 ac_ct_OTOOL=$OTOOL8465 # Extract the first word of "otool", so it can be a program name with args.8466 set dummy otool; ac_word=$28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58468 $as_echo_n "checking for $ac_word... " >&6; }8469 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :8470 $as_echo_n "(cached) " >&68471 else8472 if test -n "$ac_ct_OTOOL"; then8473 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.8474 else8475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8476 for as_dir in $PATH8477 do8478 IFS=$as_save_IFS8479 test -z "$as_dir" && as_dir=.8480 for ac_exec_ext in '' $ac_executable_extensions; do8481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8482 ac_cv_prog_ac_ct_OTOOL="otool"8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58484 break 28485 fi8486 done8487 done8488 IFS=$as_save_IFS8489 8490 fi8491 fi8492 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL8493 if test -n "$ac_ct_OTOOL"; then8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&58495 $as_echo "$ac_ct_OTOOL" >&6; }8496 else8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58498 $as_echo "no" >&6; }8499 fi8500 8501 if test "x$ac_ct_OTOOL" = x; then8502 OTOOL=":"8503 else8504 case $cross_compiling:$ac_tool_warned in8505 yes:)8506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8508 ac_tool_warned=yes ;;8509 esac8510 OTOOL=$ac_ct_OTOOL8511 fi8512 else8513 OTOOL="$ac_cv_prog_OTOOL"8514 fi8515 8516 if test -n "$ac_tool_prefix"; then8517 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.8518 set dummy ${ac_tool_prefix}otool64; ac_word=$28519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58520 $as_echo_n "checking for $ac_word... " >&6; }8521 if ${ac_cv_prog_OTOOL64+:} false; then :8522 $as_echo_n "(cached) " >&68523 else8524 if test -n "$OTOOL64"; then8525 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.8526 else8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8528 for as_dir in $PATH8529 do8530 IFS=$as_save_IFS8531 test -z "$as_dir" && as_dir=.8532 for ac_exec_ext in '' $ac_executable_extensions; do8533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8534 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58536 break 28537 fi8538 done8539 done8540 IFS=$as_save_IFS8541 8542 fi8543 fi8544 OTOOL64=$ac_cv_prog_OTOOL648545 if test -n "$OTOOL64"; then8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&58547 $as_echo "$OTOOL64" >&6; }8548 else8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58550 $as_echo "no" >&6; }8551 fi8552 8553 8554 fi8555 if test -z "$ac_cv_prog_OTOOL64"; then8556 ac_ct_OTOOL64=$OTOOL648557 # Extract the first word of "otool64", so it can be a program name with args.8558 set dummy otool64; ac_word=$28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&58560 $as_echo_n "checking for $ac_word... " >&6; }8561 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :8562 $as_echo_n "(cached) " >&68563 else8564 if test -n "$ac_ct_OTOOL64"; then8565 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.8566 else8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR8568 for as_dir in $PATH8569 do8570 IFS=$as_save_IFS8571 test -z "$as_dir" && as_dir=.8572 for ac_exec_ext in '' $ac_executable_extensions; do8573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then8574 ac_cv_prog_ac_ct_OTOOL64="otool64"8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&58576 break 28577 fi8578 done8579 done8580 IFS=$as_save_IFS8581 8582 fi8583 fi8584 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL648585 if test -n "$ac_ct_OTOOL64"; then8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&58587 $as_echo "$ac_ct_OTOOL64" >&6; }8588 else8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&58590 $as_echo "no" >&6; }8591 fi8592 8593 if test "x$ac_ct_OTOOL64" = x; then8594 OTOOL64=":"8595 else8596 case $cross_compiling:$ac_tool_warned in8597 yes:)8598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&58599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}8600 ac_tool_warned=yes ;;8601 esac8602 OTOOL64=$ac_ct_OTOOL648603 fi8604 else8605 OTOOL64="$ac_cv_prog_OTOOL64"8606 fi8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&58635 $as_echo_n "checking for -single_module linker flag... " >&6; }8636 if ${lt_cv_apple_cc_single_mod+:} false; then :8637 $as_echo_n "(cached) " >&68638 else8639 lt_cv_apple_cc_single_mod=no8640 if test -z "$LT_MULTI_MODULE"; then8641 # By default we will add the -single_module flag. You can override8642 # by either setting the environment variable LT_MULTI_MODULE8643 # non-empty at configure time, or by adding -multi_module to the8644 # link flags.8645 rm -rf libconftest.dylib*8646 echo "int foo(void){return 1;}" > conftest.c8647 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \8648 -dynamiclib -Wl,-single_module conftest.c" >&58649 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \8650 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err8651 _lt_result=$?8652 # If there is a non-empty error log, and "single_module"8653 # appears in it, assume the flag caused a linker warning8654 if test -s conftest.err && $GREP single_module conftest.err; then8655 cat conftest.err >&58656 # Otherwise, if the output was created with a 0 exit code from8657 # the compiler, it worked.8658 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then8659 lt_cv_apple_cc_single_mod=yes8660 else8661 cat conftest.err >&58662 fi8663 rm -rf libconftest.dylib*8664 rm -f conftest.*8665 fi8666 fi8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&58668 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }8669 8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&58671 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }8672 if ${lt_cv_ld_exported_symbols_list+:} false; then :8673 $as_echo_n "(cached) " >&68674 else8675 lt_cv_ld_exported_symbols_list=no8676 save_LDFLAGS=$LDFLAGS8677 echo "_main" > conftest.sym8678 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8680 /* end confdefs.h. */8681 8682 int8683 main ()8684 {8685 8686 ;8687 return 0;8688 }8689 _ACEOF8690 if ac_fn_c_try_link "$LINENO"; then :8691 lt_cv_ld_exported_symbols_list=yes8692 else8693 lt_cv_ld_exported_symbols_list=no8694 fi8695 rm -f core conftest.err conftest.$ac_objext \8696 conftest$ac_exeext conftest.$ac_ext8697 LDFLAGS=$save_LDFLAGS8698 8699 fi8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&58701 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }8702 8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&58704 $as_echo_n "checking for -force_load linker flag... " >&6; }8705 if ${lt_cv_ld_force_load+:} false; then :8706 $as_echo_n "(cached) " >&68707 else8708 lt_cv_ld_force_load=no8709 cat > conftest.c << _LT_EOF8710 int forced_loaded() { return 2;}8711 _LT_EOF8712 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&58713 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&58714 echo "$AR cru libconftest.a conftest.o" >&58715 $AR cru libconftest.a conftest.o 2>&58716 echo "$RANLIB libconftest.a" >&58717 $RANLIB libconftest.a 2>&58718 cat > conftest.c << _LT_EOF8719 int main() { return 0;}8720 _LT_EOF8721 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&58722 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err8723 _lt_result=$?8724 if test -s conftest.err && $GREP force_load conftest.err; then8725 cat conftest.err >&58726 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then8727 lt_cv_ld_force_load=yes8728 else8729 cat conftest.err >&58730 fi8731 rm -f conftest.err libconftest.a conftest conftest.c8732 rm -rf conftest.dSYM8733 8734 fi8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&58736 $as_echo "$lt_cv_ld_force_load" >&6; }8737 case $host_os in8738 rhapsody* | darwin1.[012])8739 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;8740 darwin1.*)8741 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;8742 darwin*) # darwin 5.x on8743 # if running on 10.5 or later, the deployment target defaults8744 # to the OS version, if on x86, and 10.4, the deployment8745 # target defaults to 10.4. Don't you love it?8746 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in8747 10.0,*86*-darwin8*|10.0,*-darwin[91]*)8748 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;8749 10.[012][,.]*)8750 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;8751 10.*)8752 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;8753 esac8754 ;;8755 esac8756 if test yes = "$lt_cv_apple_cc_single_mod"; then8757 _lt_dar_single_mod='$single_module'8758 fi8759 if test yes = "$lt_cv_ld_exported_symbols_list"; then8760 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'8761 else8762 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'8763 fi8764 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then8765 _lt_dsymutil='~$DSYMUTIL $lib || :'8766 else8767 _lt_dsymutil=8768 fi8769 ;;8770 esac8771 8772 # func_munge_path_list VARIABLE PATH8773 # -----------------------------------8774 # VARIABLE is name of variable containing _space_ separated list of8775 # directories to be munged by the contents of PATH, which is string8776 # having a format:8777 # "DIR[:DIR]:"8778 # string "DIR[ DIR]" will be prepended to VARIABLE8779 # ":DIR[:DIR]"8780 # string "DIR[ DIR]" will be appended to VARIABLE8781 # "DIRP[:DIRP]::[DIRA:]DIRA"8782 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string8783 # "DIRA[ DIRA]" will be appended to VARIABLE8784 # "DIR[:DIR]"8785 # VARIABLE will be replaced by "DIR[ DIR]"8786 func_munge_path_list ()8787 {8788 case x$2 in8789 x)8790 ;;8791 *:)8792 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"8793 ;;8794 x:*)8795 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"8796 ;;8797 *::*)8798 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"8799 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"8800 ;;8801 *)8802 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"8803 ;;8804 esac8805 }8806 8807 ac_ext=c8808 ac_cpp='$CPP $CPPFLAGS'8809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8811 ac_compiler_gnu=$ac_cv_c_compiler_gnu8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&58813 $as_echo_n "checking how to run the C preprocessor... " >&6; }8814 # On Suns, sometimes $CPP names a directory.8815 if test -n "$CPP" && test -d "$CPP"; then8816 CPP=8817 fi8818 if test -z "$CPP"; then8819 if ${ac_cv_prog_CPP+:} false; then :8820 $as_echo_n "(cached) " >&68821 else8822 # Double quotes because CPP needs to be expanded8823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"8824 do8825 ac_preproc_ok=false8826 for ac_c_preproc_warn_flag in '' yes8827 do8828 # Use a header file that comes with gcc, so configuring glibc8829 # with a fresh cross-compiler works.8830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since8831 # <limits.h> exists even on freestanding compilers.8832 # On the NeXT, cc -E runs the code through the compiler's parser,8833 # not just through cpp. "Syntax error" is here to catch this case.8834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8835 /* end confdefs.h. */8836 #ifdef __STDC__8837 # include <limits.h>8838 #else8839 # include <assert.h>8840 #endif8841 Syntax error8842 _ACEOF8843 if ac_fn_c_try_cpp "$LINENO"; then :8844 8845 else8846 # Broken: fails on valid input.8847 continue8848 fi8849 rm -f conftest.err conftest.i conftest.$ac_ext8850 8851 # OK, works on sane cases. Now check whether nonexistent headers8852 # can be detected and how.8853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8854 /* end confdefs.h. */8855 #include <ac_nonexistent.h>8856 _ACEOF8857 if ac_fn_c_try_cpp "$LINENO"; then :8858 # Broken: success on invalid input.8859 continue8860 else8861 # Passes both tests.8862 ac_preproc_ok=:8863 break8864 fi8865 rm -f conftest.err conftest.i conftest.$ac_ext8866 8867 done8868 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.8869 rm -f conftest.i conftest.err conftest.$ac_ext8870 if $ac_preproc_ok; then :8871 break8872 fi8873 8874 done8875 ac_cv_prog_CPP=$CPP8876 8877 fi8878 CPP=$ac_cv_prog_CPP8879 else8880 ac_cv_prog_CPP=$CPP8881 fi8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&58883 $as_echo "$CPP" >&6; }8884 ac_preproc_ok=false8885 for ac_c_preproc_warn_flag in '' yes8886 do8887 # Use a header file that comes with gcc, so configuring glibc8888 # with a fresh cross-compiler works.8889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since8890 # <limits.h> exists even on freestanding compilers.8891 # On the NeXT, cc -E runs the code through the compiler's parser,8892 # not just through cpp. "Syntax error" is here to catch this case.8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8894 /* end confdefs.h. */8895 #ifdef __STDC__8896 # include <limits.h>8897 #else8898 # include <assert.h>8899 #endif8900 Syntax error8901 _ACEOF8902 if ac_fn_c_try_cpp "$LINENO"; then :8903 8904 else8905 # Broken: fails on valid input.8906 continue8907 fi8908 rm -f conftest.err conftest.i conftest.$ac_ext8909 8910 # OK, works on sane cases. Now check whether nonexistent headers8911 # can be detected and how.8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext8913 /* end confdefs.h. */8914 #include <ac_nonexistent.h>8915 _ACEOF8916 if ac_fn_c_try_cpp "$LINENO"; then :8917 # Broken: success on invalid input.8918 continue8919 else8920 # Passes both tests.8921 ac_preproc_ok=:8922 break8923 fi8924 rm -f conftest.err conftest.i conftest.$ac_ext8925 8926 done8927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.8928 rm -f conftest.i conftest.err conftest.$ac_ext8929 if $ac_preproc_ok; then :8930 8931 else8932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&58933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}8934 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check8935 See \`config.log' for more details" "$LINENO" 5; }8936 fi8937 8938 ac_ext=c8939 ac_cpp='$CPP $CPPFLAGS'8940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'8941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'8942 ac_compiler_gnu=$ac_cv_c_compiler_gnu8943 8944 8945 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 8946 5764 $as_echo_n "checking for ANSI C header files... " >&6; } … … 9072 5890 9073 5891 9074 for ac_header in dlfcn.h9075 do :9076 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default9077 "9078 if test "x$ac_cv_header_dlfcn_h" = xyes; then :9079 cat >>confdefs.h <<_ACEOF9080 #define HAVE_DLFCN_H 19081 _ACEOF9082 9083 fi9084 9085 done9086 9087 9088 9089 9090 func_stripname_cnf ()9091 {9092 case $2 in9093 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;9094 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;9095 esac9096 } # func_stripname_cnf9097 9098 9099 9100 9101 9102 # Set options9103 9104 9105 9106 enable_dlopen=no9107 9108 9109 enable_win32_dll=no9110 9111 9112 # Check whether --enable-shared was given.9113 if test "${enable_shared+set}" = set; then :9114 enableval=$enable_shared; p=${PACKAGE-default}9115 case $enableval in9116 yes) enable_shared=yes ;;9117 no) enable_shared=no ;;9118 *)9119 enable_shared=no9120 # Look at the argument we got. We use all the common list separators.9121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9122 for pkg in $enableval; do9123 IFS=$lt_save_ifs9124 if test "X$pkg" = "X$p"; then9125 enable_shared=yes9126 fi9127 done9128 IFS=$lt_save_ifs9129 ;;9130 esac9131 else9132 enable_shared=yes9133 fi9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 # Check whether --enable-static was given.9144 if test "${enable_static+set}" = set; then :9145 enableval=$enable_static; p=${PACKAGE-default}9146 case $enableval in9147 yes) enable_static=yes ;;9148 no) enable_static=no ;;9149 *)9150 enable_static=no9151 # Look at the argument we got. We use all the common list separators.9152 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9153 for pkg in $enableval; do9154 IFS=$lt_save_ifs9155 if test "X$pkg" = "X$p"; then9156 enable_static=yes9157 fi9158 done9159 IFS=$lt_save_ifs9160 ;;9161 esac9162 else9163 enable_static=yes9164 fi9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 # Check whether --with-pic was given.9176 if test "${with_pic+set}" = set; then :9177 withval=$with_pic; lt_p=${PACKAGE-default}9178 case $withval in9179 yes|no) pic_mode=$withval ;;9180 *)9181 pic_mode=default9182 # Look at the argument we got. We use all the common list separators.9183 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9184 for lt_pkg in $withval; do9185 IFS=$lt_save_ifs9186 if test "X$lt_pkg" = "X$lt_p"; then9187 pic_mode=yes9188 fi9189 done9190 IFS=$lt_save_ifs9191 ;;9192 esac9193 else9194 pic_mode=default9195 fi9196 9197 9198 9199 9200 9201 9202 9203 9204 # Check whether --enable-fast-install was given.9205 if test "${enable_fast_install+set}" = set; then :9206 enableval=$enable_fast_install; p=${PACKAGE-default}9207 case $enableval in9208 yes) enable_fast_install=yes ;;9209 no) enable_fast_install=no ;;9210 *)9211 enable_fast_install=no9212 # Look at the argument we got. We use all the common list separators.9213 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,9214 for pkg in $enableval; do9215 IFS=$lt_save_ifs9216 if test "X$pkg" = "X$p"; then9217 enable_fast_install=yes9218 fi9219 done9220 IFS=$lt_save_ifs9221 ;;9222 esac9223 else9224 enable_fast_install=yes9225 fi9226 9227 9228 9229 9230 9231 9232 9233 9234 shared_archive_member_spec=9235 case $host,$enable_shared in9236 power*-*-aix[5-9]*,yes)9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&59238 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }9239 9240 # Check whether --with-aix-soname was given.9241 if test "${with_aix_soname+set}" = set; then :9242 withval=$with_aix_soname; case $withval in9243 aix|svr4|both)9244 ;;9245 *)9246 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 59247 ;;9248 esac9249 lt_cv_with_aix_soname=$with_aix_soname9250 else9251 if ${lt_cv_with_aix_soname+:} false; then :9252 $as_echo_n "(cached) " >&69253 else9254 lt_cv_with_aix_soname=aix9255 fi9256 9257 with_aix_soname=$lt_cv_with_aix_soname9258 fi9259 9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&59261 $as_echo "$with_aix_soname" >&6; }9262 if test aix != "$with_aix_soname"; then9263 # For the AIX way of multilib, we name the shared archive member9264 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',9265 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.9266 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,9267 # the AIX toolchain works better with OBJECT_MODE set (default 32).9268 if test 64 = "${OBJECT_MODE-32}"; then9269 shared_archive_member_spec=shr_649270 else9271 shared_archive_member_spec=shr9272 fi9273 fi9274 ;;9275 *)9276 with_aix_soname=aix9277 ;;9278 esac9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 # This can be used to rebuild libtool when needed9290 LIBTOOL_DEPS=$ltmain9291 9292 # Always use our own libtool.9293 LIBTOOL='$(SHELL) $(top_builddir)/libtool'9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 test -z "$LN_S" && LN_S="ln -s"9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 if test -n "${ZSH_VERSION+set}"; then9340 setopt NO_GLOB_SUBST9341 fi9342 9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&59344 $as_echo_n "checking for objdir... " >&6; }9345 if ${lt_cv_objdir+:} false; then :9346 $as_echo_n "(cached) " >&69347 else9348 rm -f .libs 2>/dev/null9349 mkdir .libs 2>/dev/null9350 if test -d .libs; then9351 lt_cv_objdir=.libs9352 else9353 # MS-DOS does not allow filenames that begin with a dot.9354 lt_cv_objdir=_libs9355 fi9356 rmdir .libs 2>/dev/null9357 fi9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&59359 $as_echo "$lt_cv_objdir" >&6; }9360 objdir=$lt_cv_objdir9361 9362 9363 9364 9365 9366 cat >>confdefs.h <<_ACEOF9367 #define LT_OBJDIR "$lt_cv_objdir/"9368 _ACEOF9369 9370 9371 9372 9373 case $host_os in9374 aix3*)9375 # AIX sometimes has problems with the GCC collect2 program. For some9376 # reason, if we set the COLLECT_NAMES environment variable, the problems9377 # vanish in a puff of smoke.9378 if test set != "${COLLECT_NAMES+set}"; then9379 COLLECT_NAMES=9380 export COLLECT_NAMES9381 fi9382 ;;9383 esac9384 9385 # Global variables:9386 ofile=libtool9387 can_build_shared=yes9388 9389 # All known linkers require a '.a' archive for static linking (except MSVC,9390 # which needs '.lib').9391 libext=a9392 9393 with_gnu_ld=$lt_cv_prog_gnu_ld9394 9395 old_CC=$CC9396 old_CFLAGS=$CFLAGS9397 9398 # Set sane defaults for various variables9399 test -z "$CC" && CC=cc9400 test -z "$LTCC" && LTCC=$CC9401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS9402 test -z "$LD" && LD=ld9403 test -z "$ac_objext" && ac_objext=o9404 9405 func_cc_basename $compiler9406 cc_basename=$func_cc_basename_result9407 9408 9409 # Only perform the check for file, if the check method requires it9410 test -z "$MAGIC_CMD" && MAGIC_CMD=file9411 case $deplibs_check_method in9412 file_magic*)9413 if test "$file_magic_cmd" = '$MAGIC_CMD'; then9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&59415 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }9416 if ${lt_cv_path_MAGIC_CMD+:} false; then :9417 $as_echo_n "(cached) " >&69418 else9419 case $MAGIC_CMD in9420 [\\/*] | ?:[\\/]*)9421 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.9422 ;;9423 *)9424 lt_save_MAGIC_CMD=$MAGIC_CMD9425 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR9426 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"9427 for ac_dir in $ac_dummy; do9428 IFS=$lt_save_ifs9429 test -z "$ac_dir" && ac_dir=.9430 if test -f "$ac_dir/${ac_tool_prefix}file"; then9431 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"9432 if test -n "$file_magic_test_file"; then9433 case $deplibs_check_method in9434 "file_magic "*)9435 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`9436 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9437 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |9438 $EGREP "$file_magic_regex" > /dev/null; then9439 :9440 else9441 cat <<_LT_EOF 1>&29442 9443 *** Warning: the command libtool uses to detect shared libraries,9444 *** $file_magic_cmd, produces output that libtool cannot recognize.9445 *** The result is that libtool may fail to recognize shared libraries9446 *** as such. This will affect the creation of libtool libraries that9447 *** depend on shared libraries, but programs linked with such libtool9448 *** libraries will work regardless of this problem. Nevertheless, you9449 *** may want to report the problem to your system manager and/or to9450 *** bug-libtool@gnu.org9451 9452 _LT_EOF9453 fi ;;9454 esac9455 fi9456 break9457 fi9458 done9459 IFS=$lt_save_ifs9460 MAGIC_CMD=$lt_save_MAGIC_CMD9461 ;;9462 esac9463 fi9464 9465 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9466 if test -n "$MAGIC_CMD"; then9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&59468 $as_echo "$MAGIC_CMD" >&6; }9469 else9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59471 $as_echo "no" >&6; }9472 fi9473 9474 9475 9476 9477 9478 if test -z "$lt_cv_path_MAGIC_CMD"; then9479 if test -n "$ac_tool_prefix"; then9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&59481 $as_echo_n "checking for file... " >&6; }9482 if ${lt_cv_path_MAGIC_CMD+:} false; then :9483 $as_echo_n "(cached) " >&69484 else9485 case $MAGIC_CMD in9486 [\\/*] | ?:[\\/]*)9487 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.9488 ;;9489 *)9490 lt_save_MAGIC_CMD=$MAGIC_CMD9491 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR9492 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"9493 for ac_dir in $ac_dummy; do9494 IFS=$lt_save_ifs9495 test -z "$ac_dir" && ac_dir=.9496 if test -f "$ac_dir/file"; then9497 lt_cv_path_MAGIC_CMD=$ac_dir/"file"9498 if test -n "$file_magic_test_file"; then9499 case $deplibs_check_method in9500 "file_magic "*)9501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`9502 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |9504 $EGREP "$file_magic_regex" > /dev/null; then9505 :9506 else9507 cat <<_LT_EOF 1>&29508 9509 *** Warning: the command libtool uses to detect shared libraries,9510 *** $file_magic_cmd, produces output that libtool cannot recognize.9511 *** The result is that libtool may fail to recognize shared libraries9512 *** as such. This will affect the creation of libtool libraries that9513 *** depend on shared libraries, but programs linked with such libtool9514 *** libraries will work regardless of this problem. Nevertheless, you9515 *** may want to report the problem to your system manager and/or to9516 *** bug-libtool@gnu.org9517 9518 _LT_EOF9519 fi ;;9520 esac9521 fi9522 break9523 fi9524 done9525 IFS=$lt_save_ifs9526 MAGIC_CMD=$lt_save_MAGIC_CMD9527 ;;9528 esac9529 fi9530 9531 MAGIC_CMD=$lt_cv_path_MAGIC_CMD9532 if test -n "$MAGIC_CMD"; then9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&59534 $as_echo "$MAGIC_CMD" >&6; }9535 else9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&59537 $as_echo "no" >&6; }9538 fi9539 9540 9541 else9542 MAGIC_CMD=:9543 fi9544 fi9545 9546 fi9547 ;;9548 esac9549 9550 # Use C for the default configuration in the libtool script9551 9552 lt_save_CC=$CC9553 ac_ext=c9554 ac_cpp='$CPP $CPPFLAGS'9555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'9556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'9557 ac_compiler_gnu=$ac_cv_c_compiler_gnu9558 9559 9560 # Source file extension for C test sources.9561 ac_ext=c9562 9563 # Object file extension for compiled C test sources.9564 objext=o9565 objext=$objext9566 9567 # Code to be used in simple compile tests9568 lt_simple_compile_test_code="int some_variable = 0;"9569 9570 # Code to be used in simple link tests9571 lt_simple_link_test_code='int main(){return(0);}'9572 9573 9574 9575 9576 9577 9578 9579 # If no C compiler was specified, use CC.9580 LTCC=${LTCC-"$CC"}9581 9582 # If no C compiler flags were specified, use CFLAGS.9583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}9584 9585 # Allow CC to be a program name with arguments.9586 compiler=$CC9587 9588 # Save the default compiler, since it gets overwritten when the other9589 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.9590 compiler_DEFAULT=$CC9591 9592 # save warnings/boilerplate of simple test code9593 ac_outfile=conftest.$ac_objext9594 echo "$lt_simple_compile_test_code" >conftest.$ac_ext9595 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err9596 _lt_compiler_boilerplate=`cat conftest.err`9597 $RM conftest*9598 9599 ac_outfile=conftest.$ac_objext9600 echo "$lt_simple_link_test_code" >conftest.$ac_ext9601 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err9602 _lt_linker_boilerplate=`cat conftest.err`9603 $RM -r conftest*9604 9605 9606 ## CAVEAT EMPTOR:9607 ## There is no encapsulation within the following macros, do not change9608 ## the running order or otherwise move them around unless you know exactly9609 ## what you are doing...9610 if test -n "$compiler"; then9611 9612 lt_prog_compiler_no_builtin_flag=9613 9614 if test yes = "$GCC"; then9615 case $cc_basename in9616 nvcc*)9617 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;9618 *)9619 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;9620 esac9621 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&59623 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }9624 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :9625 $as_echo_n "(cached) " >&69626 else9627 lt_cv_prog_compiler_rtti_exceptions=no9628 ac_outfile=conftest.$ac_objext9629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext9630 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment9631 # Insert the option either (1) after the last *FLAGS variable, or9632 # (2) before a word containing "conftest.", or (3) at the end.9633 # Note that $ac_compile itself does not contain backslashes and begins9634 # with a dollar sign (not a hyphen), so the echo should work correctly.9635 # The option is referenced via a variable to avoid confusing sed.9636 lt_compile=`echo "$ac_compile" | $SED \9637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \9638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \9639 -e 's:$: $lt_compiler_flag:'`9640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)9641 (eval "$lt_compile" 2>conftest.err)9642 ac_status=$?9643 cat conftest.err >&59644 echo "$as_me:$LINENO: \$? = $ac_status" >&59645 if (exit $ac_status) && test -s "$ac_outfile"; then9646 # The compiler can only warn and ignore the option if not recognized9647 # So say no if there are warnings other than the usual output.9648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp9649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er29650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then9651 lt_cv_prog_compiler_rtti_exceptions=yes9652 fi9653 fi9654 $RM conftest*9655 9656 fi9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&59658 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }9659 9660 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then9661 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"9662 else9663 :9664 fi9665 9666 fi9667 9668 9669 9670 9671 9672 9673 lt_prog_compiler_wl=9674 lt_prog_compiler_pic=9675 lt_prog_compiler_static=9676 9677 9678 if test yes = "$GCC"; then9679 lt_prog_compiler_wl='-Wl,'9680 lt_prog_compiler_static='-static'9681 9682 case $host_os in9683 aix*)9684 # All AIX code is PIC.9685 if test ia64 = "$host_cpu"; then9686 # AIX 5 now supports IA64 processor9687 lt_prog_compiler_static='-Bstatic'9688 fi9689 lt_prog_compiler_pic='-fPIC'9690 ;;9691 9692 amigaos*)9693 case $host_cpu in9694 powerpc)9695 # see comment about AmigaOS4 .so support9696 lt_prog_compiler_pic='-fPIC'9697 ;;9698 m68k)9699 # FIXME: we need at least 68020 code to build shared libraries, but9700 # adding the '-m68020' flag to GCC prevents building anything better,9701 # like '-m68040'.9702 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'9703 ;;9704 esac9705 ;;9706 9707 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)9708 # PIC is the default for these OSes.9709 ;;9710 9711 mingw* | cygwin* | pw32* | os2* | cegcc*)9712 # This hack is so that the source file can tell whether it is being9713 # built for inclusion in a dll (and should export symbols for example).9714 # Although the cygwin gcc ignores -fPIC, still need this for old-style9715 # (--disable-auto-import) libraries9716 lt_prog_compiler_pic='-DDLL_EXPORT'9717 case $host_os in9718 os2*)9719 lt_prog_compiler_static='$wl-static'9720 ;;9721 esac9722 ;;9723 9724 darwin* | rhapsody*)9725 # PIC is the default on this platform9726 # Common symbols not allowed in MH_DYLIB files9727 lt_prog_compiler_pic='-fno-common'9728 ;;9729 9730 haiku*)9731 # PIC is the default for Haiku.9732 # The "-static" flag exists, but is broken.9733 lt_prog_compiler_static=9734 ;;9735 9736 hpux*)9737 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit9738 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag9739 # sets the default TLS model and affects inlining.9740 case $host_cpu in9741 hppa*64*)9742 # +Z the default9743 ;;9744 *)9745 lt_prog_compiler_pic='-fPIC'9746 ;;9747 esac9748 ;;9749 9750 interix[3-9]*)9751 # Interix 3.x gcc -fpic/-fPIC options generate broken code.9752 # Instead, we relocate shared libraries at runtime.9753 ;;9754 9755 msdosdjgpp*)9756 # Just because we use GCC doesn't mean we suddenly get shared libraries9757 # on systems that don't support them.9758 lt_prog_compiler_can_build_shared=no9759 enable_shared=no9760 ;;9761 9762 *nto* | *qnx*)9763 # QNX uses GNU C++, but need to define -shared option too, otherwise9764 # it will coredump.9765 lt_prog_compiler_pic='-fPIC -shared'9766 ;;9767 9768 sysv4*MP*)9769 if test -d /usr/nec; then9770 lt_prog_compiler_pic=-Kconform_pic9771 fi9772 ;;9773 9774 *)9775 lt_prog_compiler_pic='-fPIC'9776 ;;9777 esac9778 9779 case $cc_basename in9780 nvcc*) # Cuda Compiler Driver 2.29781 lt_prog_compiler_wl='-Xlinker '9782 if test -n "$lt_prog_compiler_pic"; then9783 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"9784 fi9785 ;;9786 esac9787 else9788 # PORTME Check for flag to pass linker flags through the system compiler.9789 case $host_os in9790 aix*)9791 lt_prog_compiler_wl='-Wl,'9792 if test ia64 = "$host_cpu"; then9793 # AIX 5 now supports IA64 processor9794 lt_prog_compiler_static='-Bstatic'9795 else9796 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'9797 fi9798 ;;9799 9800 darwin* | rhapsody*)9801 # PIC is the default on this platform9802 # Common symbols not allowed in MH_DYLIB files9803 lt_prog_compiler_pic='-fno-common'9804 case $cc_basename in9805 nagfor*)9806 # NAG Fortran compiler9807 lt_prog_compiler_wl='-Wl,-Wl,,'9808 lt_prog_compiler_pic='-PIC'9809 lt_prog_compiler_static='-Bstatic'9810 ;;9811 esac9812 ;;9813 9814 mingw* | cygwin* | pw32* | os2* | cegcc*)9815 # This hack is so that the source file can tell whether it is being9816 # built for inclusion in a dll (and should export symbols for example).9817 lt_prog_compiler_pic='-DDLL_EXPORT'9818 case $host_os in9819 os2*)9820 lt_prog_compiler_static='$wl-static'9821 ;;9822 esac9823 ;;9824 9825 hpux9* | hpux10* | hpux11*)9826 lt_prog_compiler_wl='-Wl,'9827 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but9828 # not for PA HP-UX.9829 case $host_cpu in9830 hppa*64*|ia64*)9831 # +Z the default9832 ;;9833 *)9834 lt_prog_compiler_pic='+Z'9835 ;;9836 esac9837 # Is there a better lt_prog_compiler_static that works with the bundled CC?9838 lt_prog_compiler_static='$wl-a ${wl}archive'9839 ;;9840 9841 irix5* | irix6* | nonstopux*)9842 lt_prog_compiler_wl='-Wl,'9843 # PIC (with -KPIC) is the default.9844 lt_prog_compiler_static='-non_shared'9845 ;;9846 9847 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)9848 case $cc_basename in9849 # old Intel for x86_64, which still supported -KPIC.9850 ecc*)9851 lt_prog_compiler_wl='-Wl,'9852 lt_prog_compiler_pic='-KPIC'9853 lt_prog_compiler_static='-static'9854 ;;9855 # icc used to be incompatible with GCC.9856 # ICC 10 doesn't accept -KPIC any more.9857 icc* | ifort*)9858 lt_prog_compiler_wl='-Wl,'9859 lt_prog_compiler_pic='-fPIC'9860 lt_prog_compiler_static='-static'9861 ;;9862 # Lahey Fortran 8.1.9863 lf95*)9864 lt_prog_compiler_wl='-Wl,'9865 lt_prog_compiler_pic='--shared'9866 lt_prog_compiler_static='--static'9867 ;;9868 nagfor*)9869 # NAG Fortran compiler9870 lt_prog_compiler_wl='-Wl,-Wl,,'9871 lt_prog_compiler_pic='-PIC'9872 lt_prog_compiler_static='-Bstatic'9873 ;;9874 tcc*)9875 # Fabrice Bellard et al's Tiny C Compiler9876 lt_prog_compiler_wl='-Wl,'9877 lt_prog_compiler_pic='-fPIC'9878 lt_prog_compiler_static='-static'9879 ;;9880 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)9881 # Portland Group compilers (*not* the Pentium gcc compiler,9882 # which looks to be a dead project)9883 lt_prog_compiler_wl='-Wl,'9884 lt_prog_compiler_pic='-fpic'9885 lt_prog_compiler_static='-Bstatic'9886 ;;9887 ccc*)9888 lt_prog_compiler_wl='-Wl,'9889 # All Alpha code is PIC.9890 lt_prog_compiler_static='-non_shared'9891 ;;9892 xl* | bgxl* | bgf* | mpixl*)9893 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene9894 lt_prog_compiler_wl='-Wl,'9895 lt_prog_compiler_pic='-qpic'9896 lt_prog_compiler_static='-qstaticlink'9897 ;;9898 *)9899 case `$CC -V 2>&1 | sed 5q` in9900 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)9901 # Sun Fortran 8.3 passes all unrecognized flags to the linker9902 lt_prog_compiler_pic='-KPIC'9903 lt_prog_compiler_static='-Bstatic'9904 lt_prog_compiler_wl=''9905 ;;9906 *Sun\ F* | *Sun*Fortran*)9907 lt_prog_compiler_pic='-KPIC'9908 lt_prog_compiler_static='-Bstatic'9909 lt_prog_compiler_wl='-Qoption ld '9910 ;;9911 *Sun\ C*)9912 # Sun C 5.99913 lt_prog_compiler_pic='-KPIC'9914 lt_prog_compiler_static='-Bstatic'9915 lt_prog_compiler_wl='-Wl,'9916 ;;9917 *Intel*\ [CF]*Compiler*)9918 lt_prog_compiler_wl='-Wl,'9919 lt_prog_compiler_pic='-fPIC'9920 lt_prog_compiler_static='-static'9921 ;;9922 *Portland\ Group*)9923 lt_prog_compiler_wl='-Wl,'9924 lt_prog_compiler_pic='-fpic'9925 lt_prog_compiler_static='-Bstatic'9926 ;;9927 esac9928 ;;9929 esac9930 ;;9931 9932 newsos6)9933 lt_prog_compiler_pic='-KPIC'9934 lt_prog_compiler_static='-Bstatic'9935 ;;9936 9937 *nto* | *qnx*)9938 # QNX uses GNU C++, but need to define -shared option too, otherwise9939 # it will coredump.9940 lt_prog_compiler_pic='-fPIC -shared'9941 ;;9942 9943 osf3* | osf4* | osf5*)9944 lt_prog_compiler_wl='-Wl,'9945 # All OSF/1 code is PIC.9946 lt_prog_compiler_static='-non_shared'9947 ;;9948 9949 rdos*)9950 lt_prog_compiler_static='-non_shared'9951 ;;9952 9953 solaris*)9954 lt_prog_compiler_pic='-KPIC'9955 lt_prog_compiler_static='-Bstatic'9956 case $cc_basename in9957 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)9958 lt_prog_compiler_wl='-Qoption ld ';;9959 *)9960 lt_prog_compiler_wl='-Wl,';;9961 esac9962 ;;9963 9964 sunos4*)9965 lt_prog_compiler_wl='-Qoption ld '9966 lt_prog_compiler_pic='-PIC'9967 lt_prog_compiler_static='-Bstatic'9968 ;;9969 9970 sysv4 | sysv4.2uw2* | sysv4.3*)9971 lt_prog_compiler_wl='-Wl,'9972 lt_prog_compiler_pic='-KPIC'9973 lt_prog_compiler_static='-Bstatic'9974 ;;9975 9976 sysv4*MP*)9977 if test -d /usr/nec; then9978 lt_prog_compiler_pic='-Kconform_pic'9979 lt_prog_compiler_static='-Bstatic'9980 fi9981 ;;9982 9983 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)9984 lt_prog_compiler_wl='-Wl,'9985 lt_prog_compiler_pic='-KPIC'9986 lt_prog_compiler_static='-Bstatic'9987 ;;9988 9989 unicos*)9990 lt_prog_compiler_wl='-Wl,'9991 lt_prog_compiler_can_build_shared=no9992 ;;9993 9994 uts4*)9995 lt_prog_compiler_pic='-pic'9996 lt_prog_compiler_static='-Bstatic'9997 ;;9998 9999 *)10000 lt_prog_compiler_can_build_shared=no10001 ;;10002 esac10003 fi10004 10005 case $host_os in10006 # For platforms that do not support PIC, -DPIC is meaningless:10007 *djgpp*)10008 lt_prog_compiler_pic=10009 ;;10010 *)10011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"10012 ;;10013 esac10014 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&510016 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }10017 if ${lt_cv_prog_compiler_pic+:} false; then :10018 $as_echo_n "(cached) " >&610019 else10020 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic10021 fi10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&510023 $as_echo "$lt_cv_prog_compiler_pic" >&6; }10024 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic10025 10026 #10027 # Check to make sure the PIC flag actually works.10028 #10029 if test -n "$lt_prog_compiler_pic"; then10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&510031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }10032 if ${lt_cv_prog_compiler_pic_works+:} false; then :10033 $as_echo_n "(cached) " >&610034 else10035 lt_cv_prog_compiler_pic_works=no10036 ac_outfile=conftest.$ac_objext10037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10038 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment10039 # Insert the option either (1) after the last *FLAGS variable, or10040 # (2) before a word containing "conftest.", or (3) at the end.10041 # Note that $ac_compile itself does not contain backslashes and begins10042 # with a dollar sign (not a hyphen), so the echo should work correctly.10043 # The option is referenced via a variable to avoid confusing sed.10044 lt_compile=`echo "$ac_compile" | $SED \10045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10047 -e 's:$: $lt_compiler_flag:'`10048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10049 (eval "$lt_compile" 2>conftest.err)10050 ac_status=$?10051 cat conftest.err >&510052 echo "$as_me:$LINENO: \$? = $ac_status" >&510053 if (exit $ac_status) && test -s "$ac_outfile"; then10054 # The compiler can only warn and ignore the option if not recognized10055 # So say no if there are warnings other than the usual output.10056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp10057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er210058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then10059 lt_cv_prog_compiler_pic_works=yes10060 fi10061 fi10062 $RM conftest*10063 10064 fi10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&510066 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }10067 10068 if test yes = "$lt_cv_prog_compiler_pic_works"; then10069 case $lt_prog_compiler_pic in10070 "" | " "*) ;;10071 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;10072 esac10073 else10074 lt_prog_compiler_pic=10075 lt_prog_compiler_can_build_shared=no10076 fi10077 10078 fi10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 #10091 # Check to make sure the static flag actually works.10092 #10093 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&510095 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }10096 if ${lt_cv_prog_compiler_static_works+:} false; then :10097 $as_echo_n "(cached) " >&610098 else10099 lt_cv_prog_compiler_static_works=no10100 save_LDFLAGS=$LDFLAGS10101 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"10102 echo "$lt_simple_link_test_code" > conftest.$ac_ext10103 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then10104 # The linker can only warn and ignore the option if not recognized10105 # So say no if there are warnings10106 if test -s conftest.err; then10107 # Append any errors to the config.log.10108 cat conftest.err 1>&510109 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp10110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er210111 if diff conftest.exp conftest.er2 >/dev/null; then10112 lt_cv_prog_compiler_static_works=yes10113 fi10114 else10115 lt_cv_prog_compiler_static_works=yes10116 fi10117 fi10118 $RM -r conftest*10119 LDFLAGS=$save_LDFLAGS10120 10121 fi10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&510123 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }10124 10125 if test yes = "$lt_cv_prog_compiler_static_works"; then10126 :10127 else10128 lt_prog_compiler_static=10129 fi10130 10131 10132 10133 10134 10135 10136 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&510138 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }10139 if ${lt_cv_prog_compiler_c_o+:} false; then :10140 $as_echo_n "(cached) " >&610141 else10142 lt_cv_prog_compiler_c_o=no10143 $RM -r conftest 2>/dev/null10144 mkdir conftest10145 cd conftest10146 mkdir out10147 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10148 10149 lt_compiler_flag="-o out/conftest2.$ac_objext"10150 # Insert the option either (1) after the last *FLAGS variable, or10151 # (2) before a word containing "conftest.", or (3) at the end.10152 # Note that $ac_compile itself does not contain backslashes and begins10153 # with a dollar sign (not a hyphen), so the echo should work correctly.10154 lt_compile=`echo "$ac_compile" | $SED \10155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10157 -e 's:$: $lt_compiler_flag:'`10158 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10159 (eval "$lt_compile" 2>out/conftest.err)10160 ac_status=$?10161 cat out/conftest.err >&510162 echo "$as_me:$LINENO: \$? = $ac_status" >&510163 if (exit $ac_status) && test -s out/conftest2.$ac_objext10164 then10165 # The compiler can only warn and ignore the option if not recognized10166 # So say no if there are warnings10167 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp10168 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er210169 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then10170 lt_cv_prog_compiler_c_o=yes10171 fi10172 fi10173 chmod u+w . 2>&510174 $RM conftest*10175 # SGI C++ compiler will create directory out/ii_files/ for10176 # template instantiation10177 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files10178 $RM out/* && rmdir out10179 cd ..10180 $RM -r conftest10181 $RM conftest*10182 10183 fi10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&510185 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }10186 10187 10188 10189 10190 10191 10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&510193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }10194 if ${lt_cv_prog_compiler_c_o+:} false; then :10195 $as_echo_n "(cached) " >&610196 else10197 lt_cv_prog_compiler_c_o=no10198 $RM -r conftest 2>/dev/null10199 mkdir conftest10200 cd conftest10201 mkdir out10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext10203 10204 lt_compiler_flag="-o out/conftest2.$ac_objext"10205 # Insert the option either (1) after the last *FLAGS variable, or10206 # (2) before a word containing "conftest.", or (3) at the end.10207 # Note that $ac_compile itself does not contain backslashes and begins10208 # with a dollar sign (not a hyphen), so the echo should work correctly.10209 lt_compile=`echo "$ac_compile" | $SED \10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \10212 -e 's:$: $lt_compiler_flag:'`10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)10214 (eval "$lt_compile" 2>out/conftest.err)10215 ac_status=$?10216 cat out/conftest.err >&510217 echo "$as_me:$LINENO: \$? = $ac_status" >&510218 if (exit $ac_status) && test -s out/conftest2.$ac_objext10219 then10220 # The compiler can only warn and ignore the option if not recognized10221 # So say no if there are warnings10222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp10223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er210224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then10225 lt_cv_prog_compiler_c_o=yes10226 fi10227 fi10228 chmod u+w . 2>&510229 $RM conftest*10230 # SGI C++ compiler will create directory out/ii_files/ for10231 # template instantiation10232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files10233 $RM out/* && rmdir out10234 cd ..10235 $RM -r conftest10236 $RM conftest*10237 10238 fi10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&510240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }10241 10242 10243 10244 10245 hard_links=nottested10246 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then10247 # do not overwrite the value of need_locks provided by the user10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&510249 $as_echo_n "checking if we can lock with hard links... " >&6; }10250 hard_links=yes10251 $RM conftest*10252 ln conftest.a conftest.b 2>/dev/null && hard_links=no10253 touch conftest.a10254 ln conftest.a conftest.b 2>&5 || hard_links=no10255 ln conftest.a conftest.b 2>/dev/null && hard_links=no10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&510257 $as_echo "$hard_links" >&6; }10258 if test no = "$hard_links"; then10259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&510260 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}10261 need_locks=warn10262 fi10263 else10264 need_locks=no10265 fi10266 10267 10268 10269 10270 10271 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&510273 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }10274 10275 runpath_var=10276 allow_undefined_flag=10277 always_export_symbols=no10278 archive_cmds=10279 archive_expsym_cmds=10280 compiler_needs_object=no10281 enable_shared_with_static_runtimes=no10282 export_dynamic_flag_spec=10283 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'10284 hardcode_automatic=no10285 hardcode_direct=no10286 hardcode_direct_absolute=no10287 hardcode_libdir_flag_spec=10288 hardcode_libdir_separator=10289 hardcode_minus_L=no10290 hardcode_shlibpath_var=unsupported10291 inherit_rpath=no10292 link_all_deplibs=unknown10293 module_cmds=10294 module_expsym_cmds=10295 old_archive_from_new_cmds=10296 old_archive_from_expsyms_cmds=10297 thread_safe_flag_spec=10298 whole_archive_flag_spec=10299 # include_expsyms should be a list of space-separated symbols to be *always*10300 # included in the symbol list10301 include_expsyms=10302 # exclude_expsyms can be an extended regexp of symbols to exclude10303 # it will be wrapped by ' (' and ')$', so one must not match beginning or10304 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',10305 # as well as any symbol that contains 'd'.10306 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'10307 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out10308 # platforms (ab)use it in PIC code, but their linkers get confused if10309 # the symbol is explicitly referenced. Since portable code cannot10310 # rely on this symbol name, it's probably fine to never include it in10311 # preloaded symbol tables.10312 # Exclude shared library initialization/finalization symbols.10313 extract_expsyms_cmds=10314 10315 case $host_os in10316 cygwin* | mingw* | pw32* | cegcc*)10317 # FIXME: the MSVC++ port hasn't been tested in a loooong time10318 # When not using gcc, we currently assume that we are using10319 # Microsoft Visual C++.10320 if test yes != "$GCC"; then10321 with_gnu_ld=no10322 fi10323 ;;10324 interix*)10325 # we just hope/assume this is gcc and not c89 (= MSVC++)10326 with_gnu_ld=yes10327 ;;10328 openbsd* | bitrig*)10329 with_gnu_ld=no10330 ;;10331 linux* | k*bsd*-gnu | gnu*)10332 link_all_deplibs=no10333 ;;10334 esac10335 10336 ld_shlibs=yes10337 10338 # On some targets, GNU ld is compatible enough with the native linker10339 # that we're better off using the native interface for both.10340 lt_use_gnu_ld_interface=no10341 if test yes = "$with_gnu_ld"; then10342 case $host_os in10343 aix*)10344 # The AIX port of GNU ld has always aspired to compatibility10345 # with the native linker. However, as the warning in the GNU ld10346 # block says, versions before 2.19.5* couldn't really create working10347 # shared libraries, regardless of the interface used.10348 case `$LD -v 2>&1` in10349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;10350 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;10351 *\ \(GNU\ Binutils\)\ [3-9]*) ;;10352 *)10353 lt_use_gnu_ld_interface=yes10354 ;;10355 esac10356 ;;10357 *)10358 lt_use_gnu_ld_interface=yes10359 ;;10360 esac10361 fi10362 10363 if test yes = "$lt_use_gnu_ld_interface"; then10364 # If archive_cmds runs LD, not CC, wlarc should be empty10365 wlarc='$wl'10366 10367 # Set some defaults for GNU ld with shared library support. These10368 # are reset later if shared libraries are not supported. Putting them10369 # here allows them to be overridden if necessary.10370 runpath_var=LD_RUN_PATH10371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10372 export_dynamic_flag_spec='$wl--export-dynamic'10373 # ancient GNU ld didn't support --whole-archive et. al.10374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then10375 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'10376 else10377 whole_archive_flag_spec=10378 fi10379 supports_anon_versioning=no10380 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in10381 *GNU\ gold*) supports_anon_versioning=yes ;;10382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.1110383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...10384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...10385 *\ 2.11.*) ;; # other 2.11 versions10386 *) supports_anon_versioning=yes ;;10387 esac10388 10389 # See if GNU ld supports shared libraries.10390 case $host_os in10391 aix[3-9]*)10392 # On AIX/PPC, the GNU linker is very broken10393 if test ia64 != "$host_cpu"; then10394 ld_shlibs=no10395 cat <<_LT_EOF 1>&210396 10397 *** Warning: the GNU linker, at least up to release 2.19, is reported10398 *** to be unable to reliably create shared libraries on AIX.10399 *** Therefore, libtool is disabling shared libraries support. If you10400 *** really care for shared libraries, you may want to install binutils10401 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.10402 *** You will then need to restart the configuration process.10403 10404 _LT_EOF10405 fi10406 ;;10407 10408 amigaos*)10409 case $host_cpu in10410 powerpc)10411 # see comment about AmigaOS4 .so support10412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10413 archive_expsym_cmds=''10414 ;;10415 m68k)10416 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)'10417 hardcode_libdir_flag_spec='-L$libdir'10418 hardcode_minus_L=yes10419 ;;10420 esac10421 ;;10422 10423 beos*)10424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10425 allow_undefined_flag=unsupported10426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc10427 # support --undefined. This deserves some investigation. FIXME10428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10429 else10430 ld_shlibs=no10431 fi10432 ;;10433 10434 cygwin* | mingw* | pw32* | cegcc*)10435 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,10436 # as there is no search path for DLLs.10437 hardcode_libdir_flag_spec='-L$libdir'10438 export_dynamic_flag_spec='$wl--export-all-symbols'10439 allow_undefined_flag=unsupported10440 always_export_symbols=no10441 enable_shared_with_static_runtimes=yes10442 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'10443 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'10444 10445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then10446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'10447 # If the export-symbols file already is a .def file, use it as10448 # is; otherwise, prepend EXPORTS...10449 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then10450 cp $export_symbols $output_objdir/$soname.def;10451 else10452 echo EXPORTS > $output_objdir/$soname.def;10453 cat $export_symbols >> $output_objdir/$soname.def;10454 fi~10455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'10456 else10457 ld_shlibs=no10458 fi10459 ;;10460 10461 haiku*)10462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10463 link_all_deplibs=yes10464 ;;10465 10466 os2*)10467 hardcode_libdir_flag_spec='-L$libdir'10468 hardcode_minus_L=yes10469 allow_undefined_flag=unsupported10470 shrext_cmds=.dll10471 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10474 $ECHO EXPORTS >> $output_objdir/$libname.def~10475 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~10476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10477 emximp -o $lib $output_objdir/$libname.def'10478 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~10479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~10480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~10481 $ECHO EXPORTS >> $output_objdir/$libname.def~10482 prefix_cmds="$SED"~10483 if test EXPORTS = "`$SED 1q $export_symbols`"; then10484 prefix_cmds="$prefix_cmds -e 1d";10485 fi~10486 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~10487 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~10488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~10489 emximp -o $lib $output_objdir/$libname.def'10490 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'10491 enable_shared_with_static_runtimes=yes10492 ;;10493 10494 interix[3-9]*)10495 hardcode_direct=no10496 hardcode_shlibpath_var=no10497 hardcode_libdir_flag_spec='$wl-rpath,$libdir'10498 export_dynamic_flag_spec='$wl-E'10499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.10500 # Instead, shared libraries are loaded at an image base (0x10000000 by10501 # default) and relocated if they conflict, which is a slow very memory10502 # consuming and fragmenting process. To avoid this, we pick a random,10503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link10504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.10505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'10506 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'10507 ;;10508 10509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)10510 tmp_diet=no10511 if test linux-dietlibc = "$host_os"; then10512 case $cc_basename in10513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)10514 esac10515 fi10516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \10517 && test no = "$tmp_diet"10518 then10519 tmp_addflag=' $pic_flag'10520 tmp_sharedflag='-shared'10521 case $cc_basename,$host_cpu in10522 pgcc*) # Portland Group C compiler10523 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'10524 tmp_addflag=' $pic_flag'10525 ;;10526 pgf77* | pgf90* | pgf95* | pgfortran*)10527 # Portland Group f77 and f90 compilers10528 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'10529 tmp_addflag=' $pic_flag -Mnomain' ;;10530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia6410531 tmp_addflag=' -i_dynamic' ;;10532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia6410533 tmp_addflag=' -i_dynamic -nofor_main' ;;10534 ifc* | ifort*) # Intel Fortran compiler10535 tmp_addflag=' -nofor_main' ;;10536 lf95*) # Lahey Fortran 8.110537 whole_archive_flag_spec=10538 tmp_sharedflag='--shared' ;;10539 nagfor*) # NAGFOR 5.310540 tmp_sharedflag='-Wl,-shared' ;;10541 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)10542 tmp_sharedflag='-qmkshrobj'10543 tmp_addflag= ;;10544 nvcc*) # Cuda Compiler Driver 2.210545 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'10546 compiler_needs_object=yes10547 ;;10548 esac10549 case `$CC -V 2>&1 | sed 5q` in10550 *Sun\ C*) # Sun C 5.910551 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'10552 compiler_needs_object=yes10553 tmp_sharedflag='-G' ;;10554 *Sun\ F*) # Sun Fortran 8.310555 tmp_sharedflag='-G' ;;10556 esac10557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10558 10559 if test yes = "$supports_anon_versioning"; then10560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~10561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10562 echo "local: *; };" >> $output_objdir/$libname.ver~10563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'10564 fi10565 10566 case $cc_basename in10567 tcc*)10568 export_dynamic_flag_spec='-rdynamic'10569 ;;10570 xlf* | bgf* | bgxlf* | mpixlf*)10571 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself10572 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'10573 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10574 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'10575 if test yes = "$supports_anon_versioning"; then10576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~10577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~10578 echo "local: *; };" >> $output_objdir/$libname.ver~10579 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'10580 fi10581 ;;10582 esac10583 else10584 ld_shlibs=no10585 fi10586 ;;10587 10588 netbsd* | netbsdelf*-gnu)10589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then10590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'10591 wlarc=10592 else10593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10595 fi10596 ;;10597 10598 solaris*)10599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then10600 ld_shlibs=no10601 cat <<_LT_EOF 1>&210602 10603 *** Warning: The releases 2.8.* of the GNU linker cannot reliably10604 *** create shared libraries on Solaris systems. Therefore, libtool10605 *** is disabling shared libraries support. We urge you to upgrade GNU10606 *** binutils to release 2.9.1 or newer. Another option is to modify10607 *** your PATH or compiler configuration so that the native linker is10608 *** used, and then restart.10609 10610 _LT_EOF10611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10614 else10615 ld_shlibs=no10616 fi10617 ;;10618 10619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)10620 case `$LD -v 2>&1` in10621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)10622 ld_shlibs=no10623 cat <<_LT_EOF 1>&210624 10625 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot10626 *** reliably create shared libraries on SCO systems. Therefore, libtool10627 *** is disabling shared libraries support. We urge you to upgrade GNU10628 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify10629 *** your PATH or compiler configuration so that the native linker is10630 *** used, and then restart.10631 10632 _LT_EOF10633 ;;10634 *)10635 # For security reasons, it is highly recommended that you always10636 # use absolute paths for naming shared libraries, and exclude the10637 # DT_RUNPATH tag from executables and libraries. But doing so10638 # requires that you compile everything twice, which is a pain.10639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'10641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10643 else10644 ld_shlibs=no10645 fi10646 ;;10647 esac10648 ;;10649 10650 sunos4*)10651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'10652 wlarc=10653 hardcode_direct=yes10654 hardcode_shlibpath_var=no10655 ;;10656 10657 *)10658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then10659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10660 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'10661 else10662 ld_shlibs=no10663 fi10664 ;;10665 esac10666 10667 if test no = "$ld_shlibs"; then10668 runpath_var=10669 hardcode_libdir_flag_spec=10670 export_dynamic_flag_spec=10671 whole_archive_flag_spec=10672 fi10673 else10674 # PORTME fill in a description of your system's linker (not GNU ld)10675 case $host_os in10676 aix3*)10677 allow_undefined_flag=unsupported10678 always_export_symbols=yes10679 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'10680 # Note: this linker hardcodes the directories in LIBPATH if there10681 # are no directories specified by -L.10682 hardcode_minus_L=yes10683 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then10684 # Neither direct hardcoding nor static linking is supported with a10685 # broken collect2.10686 hardcode_direct=unsupported10687 fi10688 ;;10689 10690 aix[4-9]*)10691 if test ia64 = "$host_cpu"; then10692 # On IA64, the linker does run time linking by default, so we don't10693 # have to do anything special.10694 aix_use_runtimelinking=no10695 exp_sym_flag='-Bexport'10696 no_entry_flag=10697 else10698 # If we're using GNU nm, then we don't want the "-C" option.10699 # -C means demangle to GNU nm, but means don't demangle to AIX nm.10700 # Without the "-l" option, or with the "-B" option, AIX nm treats10701 # weak defined symbols like other global defined symbols, whereas10702 # GNU nm marks them as "W".10703 # While the 'weak' keyword is ignored in the Export File, we need10704 # it in the Import File for the 'aix-soname' feature, so we have10705 # to replace the "-B" option with "-P" for AIX nm.10706 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then10707 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'10708 else10709 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'10710 fi10711 aix_use_runtimelinking=no10712 10713 # Test if we are trying to use run time linking or normal10714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we10715 # have runtime linking enabled, and use it for executables.10716 # For shared libraries, we enable/disable runtime linking10717 # depending on the kind of the shared library created -10718 # when "with_aix_soname,aix_use_runtimelinking" is:10719 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables10720 # "aix,yes" lib.so shared, rtl:yes, for executables10721 # lib.a static archive10722 # "both,no" lib.so.V(shr.o) shared, rtl:yes10723 # lib.a(lib.so.V) shared, rtl:no, for executables10724 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables10725 # lib.a(lib.so.V) shared, rtl:no10726 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables10727 # lib.a static archive10728 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)10729 for ld_flag in $LDFLAGS; do10730 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then10731 aix_use_runtimelinking=yes10732 break10733 fi10734 done10735 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then10736 # With aix-soname=svr4, we create the lib.so.V shared archives only,10737 # so we don't have lib.a shared libs to link our executables.10738 # We have to force runtime linking in this case.10739 aix_use_runtimelinking=yes10740 LDFLAGS="$LDFLAGS -Wl,-brtl"10741 fi10742 ;;10743 esac10744 10745 exp_sym_flag='-bexport'10746 no_entry_flag='-bnoentry'10747 fi10748 10749 # When large executables or shared objects are built, AIX ld can10750 # have problems creating the table of contents. If linking a library10751 # or program results in "error TOC overflow" add -mminimal-toc to10752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not10753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.10754 10755 archive_cmds=''10756 hardcode_direct=yes10757 hardcode_direct_absolute=yes10758 hardcode_libdir_separator=':'10759 link_all_deplibs=yes10760 file_list_spec='$wl-f,'10761 case $with_aix_soname,$aix_use_runtimelinking in10762 aix,*) ;; # traditional, no import file10763 svr4,* | *,yes) # use import file10764 # The Import File defines what to hardcode.10765 hardcode_direct=no10766 hardcode_direct_absolute=no10767 ;;10768 esac10769 10770 if test yes = "$GCC"; then10771 case $host_os in aix4.[012]|aix4.[012].*)10772 # We only want to do this on AIX 4.2 and lower, the check10773 # below for broken collect2 doesn't work under 4.3+10774 collect2name=`$CC -print-prog-name=collect2`10775 if test -f "$collect2name" &&10776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null10777 then10778 # We have reworked collect210779 :10780 else10781 # We have old collect210782 hardcode_direct=unsupported10783 # It fails to find uninstalled libraries when the uninstalled10784 # path is not listed in the libpath. Setting hardcode_minus_L10785 # to unsupported forces relinking10786 hardcode_minus_L=yes10787 hardcode_libdir_flag_spec='-L$libdir'10788 hardcode_libdir_separator=10789 fi10790 ;;10791 esac10792 shared_flag='-shared'10793 if test yes = "$aix_use_runtimelinking"; then10794 shared_flag="$shared_flag "'$wl-G'10795 fi10796 # Need to ensure runtime linking is disabled for the traditional10797 # shared library, or the linker may eventually find shared libraries10798 # /with/ Import File - we do not want to mix them.10799 shared_flag_aix='-shared'10800 shared_flag_svr4='-shared $wl-G'10801 else10802 # not using gcc10803 if test ia64 = "$host_cpu"; then10804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release10805 # chokes on -Wl,-G. The following line is correct:10806 shared_flag='-G'10807 else10808 if test yes = "$aix_use_runtimelinking"; then10809 shared_flag='$wl-G'10810 else10811 shared_flag='$wl-bM:SRE'10812 fi10813 shared_flag_aix='$wl-bM:SRE'10814 shared_flag_svr4='$wl-G'10815 fi10816 fi10817 10818 export_dynamic_flag_spec='$wl-bexpall'10819 # It seems that -bexpall does not export symbols beginning with10820 # underscore (_), so it is better to generate a list of symbols to export.10821 always_export_symbols=yes10822 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then10823 # Warning - without using the other runtime loading flags (-brtl),10824 # -berok will link without error, but may produce a broken library.10825 allow_undefined_flag='-berok'10826 # Determine the default libpath from the value encoded in an10827 # empty executable.10828 if test set = "${lt_cv_aix_libpath+set}"; then10829 aix_libpath=$lt_cv_aix_libpath10830 else10831 if ${lt_cv_aix_libpath_+:} false; then :10832 $as_echo_n "(cached) " >&610833 else10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10835 /* end confdefs.h. */10836 10837 int10838 main ()10839 {10840 10841 ;10842 return 0;10843 }10844 _ACEOF10845 if ac_fn_c_try_link "$LINENO"; then :10846 10847 lt_aix_libpath_sed='10848 /Import File Strings/,/^$/ {10849 /^0/ {10850 s/^0 *\([^ ]*\) *$/\1/10851 p10852 }10853 }'10854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10855 # Check for a 64-bit object if we didn't find anything.10856 if test -z "$lt_cv_aix_libpath_"; then10857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10858 fi10859 fi10860 rm -f core conftest.err conftest.$ac_objext \10861 conftest$ac_exeext conftest.$ac_ext10862 if test -z "$lt_cv_aix_libpath_"; then10863 lt_cv_aix_libpath_=/usr/lib:/lib10864 fi10865 10866 fi10867 10868 aix_libpath=$lt_cv_aix_libpath_10869 fi10870 10871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"10872 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_flag10873 else10874 if test ia64 = "$host_cpu"; then10875 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'10876 allow_undefined_flag="-z nodefs"10877 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"10878 else10879 # Determine the default libpath from the value encoded in an10880 # empty executable.10881 if test set = "${lt_cv_aix_libpath+set}"; then10882 aix_libpath=$lt_cv_aix_libpath10883 else10884 if ${lt_cv_aix_libpath_+:} false; then :10885 $as_echo_n "(cached) " >&610886 else10887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext10888 /* end confdefs.h. */10889 10890 int10891 main ()10892 {10893 10894 ;10895 return 0;10896 }10897 _ACEOF10898 if ac_fn_c_try_link "$LINENO"; then :10899 10900 lt_aix_libpath_sed='10901 /Import File Strings/,/^$/ {10902 /^0/ {10903 s/^0 *\([^ ]*\) *$/\1/10904 p10905 }10906 }'10907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10908 # Check for a 64-bit object if we didn't find anything.10909 if test -z "$lt_cv_aix_libpath_"; then10910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`10911 fi10912 fi10913 rm -f core conftest.err conftest.$ac_objext \10914 conftest$ac_exeext conftest.$ac_ext10915 if test -z "$lt_cv_aix_libpath_"; then10916 lt_cv_aix_libpath_=/usr/lib:/lib10917 fi10918 10919 fi10920 10921 aix_libpath=$lt_cv_aix_libpath_10922 fi10923 10924 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"10925 # Warning - without using the other run time loading flags,10926 # -berok will link without error, but may produce a broken library.10927 no_undefined_flag=' $wl-bernotok'10928 allow_undefined_flag=' $wl-berok'10929 if test yes = "$with_gnu_ld"; then10930 # We only use this code for GNU lds that support --whole-archive.10931 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'10932 else10933 # Exported symbols can be pulled into shared objects from archives10934 whole_archive_flag_spec='$convenience'10935 fi10936 archive_cmds_need_lc=yes10937 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'10938 # -brtl affects multiple linker settings, -berok does not and is overridden later10939 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'10940 if test svr4 != "$with_aix_soname"; then10941 # This is similar to how AIX traditionally builds its shared libraries.10942 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'10943 fi10944 if test aix != "$with_aix_soname"; then10945 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'10946 else10947 # used by -dlpreopen to get the symbols10948 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'10949 fi10950 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'10951 fi10952 fi10953 ;;10954 10955 amigaos*)10956 case $host_cpu in10957 powerpc)10958 # see comment about AmigaOS4 .so support10959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'10960 archive_expsym_cmds=''10961 ;;10962 m68k)10963 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)'10964 hardcode_libdir_flag_spec='-L$libdir'10965 hardcode_minus_L=yes10966 ;;10967 esac10968 ;;10969 10970 bsdi[45]*)10971 export_dynamic_flag_spec=-rdynamic10972 ;;10973 10974 cygwin* | mingw* | pw32* | cegcc*)10975 # When not using gcc, we currently assume that we are using10976 # Microsoft Visual C++.10977 # hardcode_libdir_flag_spec is actually meaningless, as there is10978 # no search path for DLLs.10979 case $cc_basename in10980 cl*)10981 # Native MSVC10982 hardcode_libdir_flag_spec=' '10983 allow_undefined_flag=unsupported10984 always_export_symbols=yes10985 file_list_spec='@'10986 # Tell ltmain to make .lib files, not .a files.10987 libext=lib10988 # Tell ltmain to make .dll files, not .so files.10989 shrext_cmds=.dll10990 # FIXME: Setting linknames here is a bad hack.10991 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='10992 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then10993 cp "$export_symbols" "$output_objdir/$soname.def";10994 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";10995 else10996 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;10997 fi~10998 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~10999 linknames='11000 # The linker will not automatically build a static lib if we build a DLL.11001 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'11002 enable_shared_with_static_runtimes=yes11003 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'11004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'11005 # Don't use ranlib11006 old_postinstall_cmds='chmod 644 $oldlib'11007 postlink_cmds='lt_outputfile="@OUTPUT@"~11008 lt_tool_outputfile="@TOOL_OUTPUT@"~11009 case $lt_outputfile in11010 *.exe|*.EXE) ;;11011 *)11012 lt_outputfile=$lt_outputfile.exe11013 lt_tool_outputfile=$lt_tool_outputfile.exe11014 ;;11015 esac~11016 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then11017 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;11018 $RM "$lt_outputfile.manifest";11019 fi'11020 ;;11021 *)11022 # Assume MSVC wrapper11023 hardcode_libdir_flag_spec=' '11024 allow_undefined_flag=unsupported11025 # Tell ltmain to make .lib files, not .a files.11026 libext=lib11027 # Tell ltmain to make .dll files, not .so files.11028 shrext_cmds=.dll11029 # FIXME: Setting linknames here is a bad hack.11030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='11031 # The linker will automatically build a .lib file if we build a DLL.11032 old_archive_from_new_cmds='true'11033 # FIXME: Should let the user specify the lib program.11034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'11035 enable_shared_with_static_runtimes=yes11036 ;;11037 esac11038 ;;11039 11040 darwin* | rhapsody*)11041 11042 11043 archive_cmds_need_lc=no11044 hardcode_direct=no11045 hardcode_automatic=yes11046 hardcode_shlibpath_var=unsupported11047 if test yes = "$lt_cv_ld_force_load"; then11048 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\"`'11049 11050 else11051 whole_archive_flag_spec=''11052 fi11053 link_all_deplibs=yes11054 allow_undefined_flag=$_lt_dar_allow_undefined11055 case $cc_basename in11056 ifort*|nagfor*) _lt_dar_can_shared=yes ;;11057 *) _lt_dar_can_shared=$GCC ;;11058 esac11059 if test yes = "$_lt_dar_can_shared"; then11060 output_verbose_link_cmd=func_echo_all11061 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"11062 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"11063 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"11064 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"11065 11066 else11067 ld_shlibs=no11068 fi11069 11070 ;;11071 11072 dgux*)11073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11074 hardcode_libdir_flag_spec='-L$libdir'11075 hardcode_shlibpath_var=no11076 ;;11077 11078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor11079 # support. Future versions do this automatically, but an explicit c++rt0.o11080 # does not break anything, and helps significantly (at the cost of a little11081 # extra space).11082 freebsd2.2*)11083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'11084 hardcode_libdir_flag_spec='-R$libdir'11085 hardcode_direct=yes11086 hardcode_shlibpath_var=no11087 ;;11088 11089 # Unfortunately, older versions of FreeBSD 2 do not have this feature.11090 freebsd2.*)11091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'11092 hardcode_direct=yes11093 hardcode_minus_L=yes11094 hardcode_shlibpath_var=no11095 ;;11096 11097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.11098 freebsd* | dragonfly*)11099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11100 hardcode_libdir_flag_spec='-R$libdir'11101 hardcode_direct=yes11102 hardcode_shlibpath_var=no11103 ;;11104 11105 hpux9*)11106 if test yes = "$GCC"; then11107 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'11108 else11109 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'11110 fi11111 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11112 hardcode_libdir_separator=:11113 hardcode_direct=yes11114 11115 # hardcode_minus_L: Not really in the search PATH,11116 # but as the default location of the library.11117 hardcode_minus_L=yes11118 export_dynamic_flag_spec='$wl-E'11119 ;;11120 11121 hpux10*)11122 if test yes,no = "$GCC,$with_gnu_ld"; then11123 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11124 else11125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'11126 fi11127 if test no = "$with_gnu_ld"; then11128 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11129 hardcode_libdir_separator=:11130 hardcode_direct=yes11131 hardcode_direct_absolute=yes11132 export_dynamic_flag_spec='$wl-E'11133 # hardcode_minus_L: Not really in the search PATH,11134 # but as the default location of the library.11135 hardcode_minus_L=yes11136 fi11137 ;;11138 11139 hpux11*)11140 if test yes,no = "$GCC,$with_gnu_ld"; then11141 case $host_cpu in11142 hppa*64*)11143 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11144 ;;11145 ia64*)11146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'11147 ;;11148 *)11149 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11150 ;;11151 esac11152 else11153 case $host_cpu in11154 hppa*64*)11155 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11156 ;;11157 ia64*)11158 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'11159 ;;11160 *)11161 11162 # Older versions of the 11.00 compiler do not understand -b yet11163 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&511165 $as_echo_n "checking if $CC understands -b... " >&6; }11166 if ${lt_cv_prog_compiler__b+:} false; then :11167 $as_echo_n "(cached) " >&611168 else11169 lt_cv_prog_compiler__b=no11170 save_LDFLAGS=$LDFLAGS11171 LDFLAGS="$LDFLAGS -b"11172 echo "$lt_simple_link_test_code" > conftest.$ac_ext11173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then11174 # The linker can only warn and ignore the option if not recognized11175 # So say no if there are warnings11176 if test -s conftest.err; then11177 # Append any errors to the config.log.11178 cat conftest.err 1>&511179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp11180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er211181 if diff conftest.exp conftest.er2 >/dev/null; then11182 lt_cv_prog_compiler__b=yes11183 fi11184 else11185 lt_cv_prog_compiler__b=yes11186 fi11187 fi11188 $RM -r conftest*11189 LDFLAGS=$save_LDFLAGS11190 11191 fi11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&511193 $as_echo "$lt_cv_prog_compiler__b" >&6; }11194 11195 if test yes = "$lt_cv_prog_compiler__b"; then11196 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'11197 else11198 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'11199 fi11200 11201 ;;11202 esac11203 fi11204 if test no = "$with_gnu_ld"; then11205 hardcode_libdir_flag_spec='$wl+b $wl$libdir'11206 hardcode_libdir_separator=:11207 11208 case $host_cpu in11209 hppa*64*|ia64*)11210 hardcode_direct=no11211 hardcode_shlibpath_var=no11212 ;;11213 *)11214 hardcode_direct=yes11215 hardcode_direct_absolute=yes11216 export_dynamic_flag_spec='$wl-E'11217 11218 # hardcode_minus_L: Not really in the search PATH,11219 # but as the default location of the library.11220 hardcode_minus_L=yes11221 ;;11222 esac11223 fi11224 ;;11225 11226 irix5* | irix6* | nonstopux*)11227 if test yes = "$GCC"; then11228 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'11229 # Try to use the -exported_symbol ld option, if it does not11230 # work, assume that -exports_file does not work either and11231 # implicitly export all symbols.11232 # This should be the same for all languages, so no per-tag cache variable.11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&511234 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }11235 if ${lt_cv_irix_exported_symbol+:} false; then :11236 $as_echo_n "(cached) " >&611237 else11238 save_LDFLAGS=$LDFLAGS11239 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"11240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext11241 /* end confdefs.h. */11242 int foo (void) { return 0; }11243 _ACEOF11244 if ac_fn_c_try_link "$LINENO"; then :11245 lt_cv_irix_exported_symbol=yes11246 else11247 lt_cv_irix_exported_symbol=no11248 fi11249 rm -f core conftest.err conftest.$ac_objext \11250 conftest$ac_exeext conftest.$ac_ext11251 LDFLAGS=$save_LDFLAGS11252 fi11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&511254 $as_echo "$lt_cv_irix_exported_symbol" >&6; }11255 if test yes = "$lt_cv_irix_exported_symbol"; then11256 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'11257 fi11258 link_all_deplibs=no11259 else11260 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'11261 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'11262 fi11263 archive_cmds_need_lc='no'11264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11265 hardcode_libdir_separator=:11266 inherit_rpath=yes11267 link_all_deplibs=yes11268 ;;11269 11270 linux*)11271 case $cc_basename in11272 tcc*)11273 # Fabrice Bellard et al's Tiny C Compiler11274 ld_shlibs=yes11275 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11276 ;;11277 esac11278 ;;11279 11280 netbsd* | netbsdelf*-gnu)11281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then11282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out11283 else11284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF11285 fi11286 hardcode_libdir_flag_spec='-R$libdir'11287 hardcode_direct=yes11288 hardcode_shlibpath_var=no11289 ;;11290 11291 newsos6)11292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11293 hardcode_direct=yes11294 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11295 hardcode_libdir_separator=:11296 hardcode_shlibpath_var=no11297 ;;11298 11299 *nto* | *qnx*)11300 ;;11301 11302 openbsd* | bitrig*)11303 if test -f /usr/libexec/ld.so; then11304 hardcode_direct=yes11305 hardcode_shlibpath_var=no11306 hardcode_direct_absolute=yes11307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then11308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'11310 hardcode_libdir_flag_spec='$wl-rpath,$libdir'11311 export_dynamic_flag_spec='$wl-E'11312 else11313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'11314 hardcode_libdir_flag_spec='$wl-rpath,$libdir'11315 fi11316 else11317 ld_shlibs=no11318 fi11319 ;;11320 11321 os2*)11322 hardcode_libdir_flag_spec='-L$libdir'11323 hardcode_minus_L=yes11324 allow_undefined_flag=unsupported11325 shrext_cmds=.dll11326 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~11327 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~11328 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~11329 $ECHO EXPORTS >> $output_objdir/$libname.def~11330 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~11331 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~11332 emximp -o $lib $output_objdir/$libname.def'11333 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~11334 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~11335 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~11336 $ECHO EXPORTS >> $output_objdir/$libname.def~11337 prefix_cmds="$SED"~11338 if test EXPORTS = "`$SED 1q $export_symbols`"; then11339 prefix_cmds="$prefix_cmds -e 1d";11340 fi~11341 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~11342 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~11343 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~11344 emximp -o $lib $output_objdir/$libname.def'11345 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'11346 enable_shared_with_static_runtimes=yes11347 ;;11348 11349 osf3*)11350 if test yes = "$GCC"; then11351 allow_undefined_flag=' $wl-expect_unresolved $wl\*'11352 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'11353 else11354 allow_undefined_flag=' -expect_unresolved \*'11355 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'11356 fi11357 archive_cmds_need_lc='no'11358 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11359 hardcode_libdir_separator=:11360 ;;11361 11362 osf4* | osf5*) # as osf3* with the addition of -msym flag11363 if test yes = "$GCC"; then11364 allow_undefined_flag=' $wl-expect_unresolved $wl\*'11365 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'11366 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'11367 else11368 allow_undefined_flag=' -expect_unresolved \*'11369 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'11370 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~11371 $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'11372 11373 # Both c and cxx compiler support -rpath directly11374 hardcode_libdir_flag_spec='-rpath $libdir'11375 fi11376 archive_cmds_need_lc='no'11377 hardcode_libdir_separator=:11378 ;;11379 11380 solaris*)11381 no_undefined_flag=' -z defs'11382 if test yes = "$GCC"; then11383 wlarc='$wl'11384 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'11385 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11386 $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'11387 else11388 case `$CC -V 2>&1` in11389 *"Compilers 5.0"*)11390 wlarc=''11391 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'11392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11393 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'11394 ;;11395 *)11396 wlarc='$wl'11397 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'11398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~11399 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'11400 ;;11401 esac11402 fi11403 hardcode_libdir_flag_spec='-R$libdir'11404 hardcode_shlibpath_var=no11405 case $host_os in11406 solaris2.[0-5] | solaris2.[0-5].*) ;;11407 *)11408 # The compiler driver will combine and reorder linker options,11409 # but understands '-z linker_flag'. GCC discards it without '$wl',11410 # but is careful enough not to reorder.11411 # Supported since Solaris 2.6 (maybe 2.5.1?)11412 if test yes = "$GCC"; then11413 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'11414 else11415 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'11416 fi11417 ;;11418 esac11419 link_all_deplibs=yes11420 ;;11421 11422 sunos4*)11423 if test sequent = "$host_vendor"; then11424 # Use $CC to link under sequent, because it throws in some extra .o11425 # files that make .init and .fini sections work.11426 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'11427 else11428 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'11429 fi11430 hardcode_libdir_flag_spec='-L$libdir'11431 hardcode_direct=yes11432 hardcode_minus_L=yes11433 hardcode_shlibpath_var=no11434 ;;11435 11436 sysv4)11437 case $host_vendor in11438 sni)11439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11440 hardcode_direct=yes # is this really true???11441 ;;11442 siemens)11443 ## LD is ld it makes a PLAMLIB11444 ## CC just makes a GrossModule.11445 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'11446 reload_cmds='$CC -r -o $output$reload_objs'11447 hardcode_direct=no11448 ;;11449 motorola)11450 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11451 hardcode_direct=no #Motorola manual says yes, but my tests say they lie11452 ;;11453 esac11454 runpath_var='LD_RUN_PATH'11455 hardcode_shlibpath_var=no11456 ;;11457 11458 sysv4.3*)11459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11460 hardcode_shlibpath_var=no11461 export_dynamic_flag_spec='-Bexport'11462 ;;11463 11464 sysv4*MP*)11465 if test -d /usr/nec; then11466 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11467 hardcode_shlibpath_var=no11468 runpath_var=LD_RUN_PATH11469 hardcode_runpath_var=yes11470 ld_shlibs=yes11471 fi11472 ;;11473 11474 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)11475 no_undefined_flag='$wl-z,text'11476 archive_cmds_need_lc=no11477 hardcode_shlibpath_var=no11478 runpath_var='LD_RUN_PATH'11479 11480 if test yes = "$GCC"; then11481 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11482 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11483 else11484 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11485 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11486 fi11487 ;;11488 11489 sysv5* | sco3.2v5* | sco5v6*)11490 # Note: We CANNOT use -z defs as we might desire, because we do not11491 # link with -lc, and that would cause any symbols used from libc to11492 # always be unresolved, which means just about no library would11493 # ever link correctly. If we're not using GNU ld we use -z text11494 # though, which does catch some bad symbols but isn't as heavy-handed11495 # as -z defs.11496 no_undefined_flag='$wl-z,text'11497 allow_undefined_flag='$wl-z,nodefs'11498 archive_cmds_need_lc=no11499 hardcode_shlibpath_var=no11500 hardcode_libdir_flag_spec='$wl-R,$libdir'11501 hardcode_libdir_separator=':'11502 link_all_deplibs=yes11503 export_dynamic_flag_spec='$wl-Bexport'11504 runpath_var='LD_RUN_PATH'11505 11506 if test yes = "$GCC"; then11507 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11508 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11509 else11510 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11511 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'11512 fi11513 ;;11514 11515 uts4*)11516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'11517 hardcode_libdir_flag_spec='-L$libdir'11518 hardcode_shlibpath_var=no11519 ;;11520 11521 *)11522 ld_shlibs=no11523 ;;11524 esac11525 11526 if test sni = "$host_vendor"; then11527 case $host in11528 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)11529 export_dynamic_flag_spec='$wl-Blargedynsym'11530 ;;11531 esac11532 fi11533 fi11534 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&511536 $as_echo "$ld_shlibs" >&6; }11537 test no = "$ld_shlibs" && can_build_shared=no11538 11539 with_gnu_ld=$with_gnu_ld11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 #11556 # Do we need to explicitly link libc?11557 #11558 case "x$archive_cmds_need_lc" in11559 x|xyes)11560 # Assume -lc should be added11561 archive_cmds_need_lc=yes11562 11563 if test yes,yes = "$GCC,$enable_shared"; then11564 case $archive_cmds in11565 *'~'*)11566 # FIXME: we may have to deal with multi-command sequences.11567 ;;11568 '$CC '*)11569 # Test whether the compiler implicitly links with -lc since on some11570 # systems, -lgcc has to come before -lc. If gcc already passes -lc11571 # to ld, don't add -lc before -lgcc.11572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&511573 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }11574 if ${lt_cv_archive_cmds_need_lc+:} false; then :11575 $as_echo_n "(cached) " >&611576 else11577 $RM conftest*11578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext11579 11580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&511581 (eval $ac_compile) 2>&511582 ac_status=$?11583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511584 test $ac_status = 0; } 2>conftest.err; then11585 soname=conftest11586 lib=conftest11587 libobjs=conftest.$ac_objext11588 deplibs=11589 wl=$lt_prog_compiler_wl11590 pic_flag=$lt_prog_compiler_pic11591 compiler_flags=-v11592 linker_flags=-v11593 verstring=11594 output_objdir=.11595 libname=conftest11596 lt_save_allow_undefined_flag=$allow_undefined_flag11597 allow_undefined_flag=11598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&511599 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&511600 ac_status=$?11601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&511602 test $ac_status = 0; }11603 then11604 lt_cv_archive_cmds_need_lc=no11605 else11606 lt_cv_archive_cmds_need_lc=yes11607 fi11608 allow_undefined_flag=$lt_save_allow_undefined_flag11609 else11610 cat conftest.err 1>&511611 fi11612 $RM conftest*11613 11614 fi11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&511616 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }11617 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc11618 ;;11619 esac11620 fi11621 ;;11622 esac11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&511776 $as_echo_n "checking dynamic linker characteristics... " >&6; }11777 11778 if test yes = "$GCC"; then11779 case $host_os in11780 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;11781 *) lt_awk_arg='/^libraries:/' ;;11782 esac11783 case $host_os in11784 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;11785 *) lt_sed_strip_eq='s|=/|/|g' ;;11786 esac11787 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`11788 case $lt_search_path_spec in11789 *\;*)11790 # if the path contains ";" then we assume it to be the separator11791 # otherwise default to the standard path separator (i.e. ":") - it is11792 # assumed that no part of a normal pathname contains ";" but that should11793 # okay in the real world where ";" in dirpaths is itself problematic.11794 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`11795 ;;11796 *)11797 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`11798 ;;11799 esac11800 # Ok, now we have the path, separated by spaces, we can step through it11801 # and add multilib dir if necessary...11802 lt_tmp_lt_search_path_spec=11803 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`11804 # ...but if some path component already ends with the multilib dir we assume11805 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).11806 case "$lt_multi_os_dir; $lt_search_path_spec " in11807 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)11808 lt_multi_os_dir=11809 ;;11810 esac11811 for lt_sys_path in $lt_search_path_spec; do11812 if test -d "$lt_sys_path$lt_multi_os_dir"; then11813 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"11814 elif test -n "$lt_multi_os_dir"; then11815 test -d "$lt_sys_path" && \11816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"11817 fi11818 done11819 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '11820 BEGIN {RS = " "; FS = "/|\n";} {11821 lt_foo = "";11822 lt_count = 0;11823 for (lt_i = NF; lt_i > 0; lt_i--) {11824 if ($lt_i != "" && $lt_i != ".") {11825 if ($lt_i == "..") {11826 lt_count++;11827 } else {11828 if (lt_count == 0) {11829 lt_foo = "/" $lt_i lt_foo;11830 } else {11831 lt_count--;11832 }11833 }11834 }11835 }11836 if (lt_foo != "") { lt_freq[lt_foo]++; }11837 if (lt_freq[lt_foo] == 1) { print lt_foo; }11838 }'`11839 # AWK program above erroneously prepends '/' to C:/dos/paths11840 # for these hosts.11841 case $host_os in11842 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\11843 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;11844 esac11845 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`11846 else11847 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"11848 fi11849 library_names_spec=11850 libname_spec='lib$name'11851 soname_spec=11852 shrext_cmds=.so11853 postinstall_cmds=11854 postuninstall_cmds=11855 finish_cmds=11856 finish_eval=11857 shlibpath_var=11858 shlibpath_overrides_runpath=unknown11859 version_type=none11860 dynamic_linker="$host_os ld.so"11861 sys_lib_dlsearch_path_spec="/lib /usr/lib"11862 need_lib_prefix=unknown11863 hardcode_into_libs=no11864 11865 # when you set need_version to no, make sure it does not cause -set_version11866 # flags to be left without arguments11867 need_version=unknown11868 11869 11870 11871 case $host_os in11872 aix3*)11873 version_type=linux # correct to gnu/linux during the next big refactor11874 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'11875 shlibpath_var=LIBPATH11876 11877 # AIX 3 has no versioning support, so we append a major version to the name.11878 soname_spec='$libname$release$shared_ext$major'11879 ;;11880 11881 aix[4-9]*)11882 version_type=linux # correct to gnu/linux during the next big refactor11883 need_lib_prefix=no11884 need_version=no11885 hardcode_into_libs=yes11886 if test ia64 = "$host_cpu"; then11887 # AIX 5 supports IA6411888 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'11889 shlibpath_var=LD_LIBRARY_PATH11890 else11891 # With GCC up to 2.95.x, collect2 would create an import file11892 # for dependence libraries. The import file would start with11893 # the line '#! .'. This would cause the generated library to11894 # depend on '.', always an invalid library. This was fixed in11895 # development snapshots of GCC prior to 3.0.11896 case $host_os in11897 aix4 | aix4.[01] | aix4.[01].*)11898 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'11899 echo ' yes '11900 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then11901 :11902 else11903 can_build_shared=no11904 fi11905 ;;11906 esac11907 # Using Import Files as archive members, it is possible to support11908 # filename-based versioning of shared library archives on AIX. While11909 # this would work for both with and without runtime linking, it will11910 # prevent static linking of such archives. So we do filename-based11911 # shared library versioning with .so extension only, which is used11912 # when both runtime linking and shared linking is enabled.11913 # Unfortunately, runtime linking may impact performance, so we do11914 # not want this to be the default eventually. Also, we use the11915 # versioned .so libs for executables only if there is the -brtl11916 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.11917 # To allow for filename-based versioning support, we need to create11918 # libNAME.so.V as an archive file, containing:11919 # *) an Import File, referring to the versioned filename of the11920 # archive as well as the shared archive member, telling the11921 # bitwidth (32 or 64) of that shared object, and providing the11922 # list of exported symbols of that shared object, eventually11923 # decorated with the 'weak' keyword11924 # *) the shared object with the F_LOADONLY flag set, to really avoid11925 # it being seen by the linker.11926 # At run time we better use the real file rather than another symlink,11927 # but for link time we create the symlink libNAME.so -> libNAME.so.V11928 11929 case $with_aix_soname,$aix_use_runtimelinking in11930 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct11931 # soname into executable. Probably we can add versioning support to11932 # collect2, so additional links can be useful in future.11933 aix,yes) # traditional libtool11934 dynamic_linker='AIX unversionable lib.so'11935 # If using run time linking (on AIX 4.2 or later) use lib<name>.so11936 # instead of lib<name>.a to let people know that these are not11937 # typical AIX shared libraries.11938 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11939 ;;11940 aix,no) # traditional AIX only11941 dynamic_linker='AIX lib.a(lib.so.V)'11942 # We preserve .a as extension for shared libraries through AIX4.211943 # and later when we are not doing run time linking.11944 library_names_spec='$libname$release.a $libname.a'11945 soname_spec='$libname$release$shared_ext$major'11946 ;;11947 svr4,*) # full svr4 only11948 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"11949 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'11950 # We do not specify a path in Import Files, so LIBPATH fires.11951 shlibpath_overrides_runpath=yes11952 ;;11953 *,yes) # both, prefer svr411954 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"11955 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'11956 # unpreferred sharedlib libNAME.a needs extra handling11957 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"'11958 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"'11959 # We do not specify a path in Import Files, so LIBPATH fires.11960 shlibpath_overrides_runpath=yes11961 ;;11962 *,no) # both, prefer aix11963 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"11964 library_names_spec='$libname$release.a $libname.a'11965 soname_spec='$libname$release$shared_ext$major'11966 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling11967 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)'11968 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"'11969 ;;11970 esac11971 shlibpath_var=LIBPATH11972 fi11973 ;;11974 11975 amigaos*)11976 case $host_cpu in11977 powerpc)11978 # Since July 2007 AmigaOS4 officially supports .so libraries.11979 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.11980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'11981 ;;11982 m68k)11983 library_names_spec='$libname.ixlibrary $libname.a'11984 # Create ${libname}_ixlibrary.a entries in /sys/libs.11985 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'11986 ;;11987 esac11988 ;;11989 11990 beos*)11991 library_names_spec='$libname$shared_ext'11992 dynamic_linker="$host_os ld.so"11993 shlibpath_var=LIBRARY_PATH11994 ;;11995 11996 bsdi[45]*)11997 version_type=linux # correct to gnu/linux during the next big refactor11998 need_version=no11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12000 soname_spec='$libname$release$shared_ext$major'12001 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'12002 shlibpath_var=LD_LIBRARY_PATH12003 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"12004 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"12005 # the default ld.so.conf also contains /usr/contrib/lib and12006 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow12007 # libtool to hard-code these into programs12008 ;;12009 12010 cygwin* | mingw* | pw32* | cegcc*)12011 version_type=windows12012 shrext_cmds=.dll12013 need_version=no12014 need_lib_prefix=no12015 12016 case $GCC,$cc_basename in12017 yes,*)12018 # gcc12019 library_names_spec='$libname.dll.a'12020 # DLL is installed to $(libdir)/../bin by postinstall_cmds12021 postinstall_cmds='base_file=`basename \$file`~12022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~12023 dldir=$destdir/`dirname \$dlpath`~12024 test -d \$dldir || mkdir -p \$dldir~12025 $install_prog $dir/$dlname \$dldir/$dlname~12026 chmod a+x \$dldir/$dlname~12027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then12028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;12029 fi'12030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~12031 dlpath=$dir/\$dldll~12032 $RM \$dlpath'12033 shlibpath_overrides_runpath=yes12034 12035 case $host_os in12036 cygwin*)12037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'12038 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12039 12040 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"12041 ;;12042 mingw* | cegcc*)12043 # MinGW DLLs use traditional 'lib' prefix12044 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12045 ;;12046 pw32*)12047 # pw32 DLLs use 'pw' prefix rather than 'lib'12048 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12049 ;;12050 esac12051 dynamic_linker='Win32 ld.exe'12052 ;;12053 12054 *,cl*)12055 # Native MSVC12056 libname_spec='$name'12057 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'12058 library_names_spec='$libname.dll.lib'12059 12060 case $build_os in12061 mingw*)12062 sys_lib_search_path_spec=12063 lt_save_ifs=$IFS12064 IFS=';'12065 for lt_path in $LIB12066 do12067 IFS=$lt_save_ifs12068 # Let DOS variable expansion print the short 8.3 style file name.12069 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`12070 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"12071 done12072 IFS=$lt_save_ifs12073 # Convert to MSYS style.12074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`12075 ;;12076 cygwin*)12077 # Convert to unix form, then to dos form, then back to unix form12078 # but this time dos style (no spaces!) so that the unix form looks12079 # like /cygdrive/c/PROGRA~1:/cygdr...12080 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`12081 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`12082 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`12083 ;;12084 *)12085 sys_lib_search_path_spec=$LIB12086 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then12087 # It is most probably a Windows format PATH.12088 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`12089 else12090 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`12091 fi12092 # FIXME: find the short name or the path components, as spaces are12093 # common. (e.g. "Program Files" -> "PROGRA~1")12094 ;;12095 esac12096 12097 # DLL is installed to $(libdir)/../bin by postinstall_cmds12098 postinstall_cmds='base_file=`basename \$file`~12099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~12100 dldir=$destdir/`dirname \$dlpath`~12101 test -d \$dldir || mkdir -p \$dldir~12102 $install_prog $dir/$dlname \$dldir/$dlname'12103 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~12104 dlpath=$dir/\$dldll~12105 $RM \$dlpath'12106 shlibpath_overrides_runpath=yes12107 dynamic_linker='Win32 link.exe'12108 ;;12109 12110 *)12111 # Assume MSVC wrapper12112 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'12113 dynamic_linker='Win32 ld.exe'12114 ;;12115 esac12116 # FIXME: first we should search . and the directory the executable is in12117 shlibpath_var=PATH12118 ;;12119 12120 darwin* | rhapsody*)12121 dynamic_linker="$host_os dyld"12122 version_type=darwin12123 need_lib_prefix=no12124 need_version=no12125 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'12126 soname_spec='$libname$release$major$shared_ext'12127 shlibpath_overrides_runpath=yes12128 shlibpath_var=DYLD_LIBRARY_PATH12129 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'12130 12131 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"12132 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'12133 ;;12134 12135 dgux*)12136 version_type=linux # correct to gnu/linux during the next big refactor12137 need_lib_prefix=no12138 need_version=no12139 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12140 soname_spec='$libname$release$shared_ext$major'12141 shlibpath_var=LD_LIBRARY_PATH12142 ;;12143 12144 freebsd* | dragonfly*)12145 # DragonFly does not have aout. When/if they implement a new12146 # versioning mechanism, adjust this.12147 if test -x /usr/bin/objformat; then12148 objformat=`/usr/bin/objformat`12149 else12150 case $host_os in12151 freebsd[23].*) objformat=aout ;;12152 *) objformat=elf ;;12153 esac12154 fi12155 version_type=freebsd-$objformat12156 case $version_type in12157 freebsd-elf*)12158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12159 soname_spec='$libname$release$shared_ext$major'12160 need_version=no12161 need_lib_prefix=no12162 ;;12163 freebsd-*)12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12165 need_version=yes12166 ;;12167 esac12168 shlibpath_var=LD_LIBRARY_PATH12169 case $host_os in12170 freebsd2.*)12171 shlibpath_overrides_runpath=yes12172 ;;12173 freebsd3.[01]* | freebsdelf3.[01]*)12174 shlibpath_overrides_runpath=yes12175 hardcode_into_libs=yes12176 ;;12177 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \12178 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)12179 shlibpath_overrides_runpath=no12180 hardcode_into_libs=yes12181 ;;12182 *) # from 4.6 on, and DragonFly12183 shlibpath_overrides_runpath=yes12184 hardcode_into_libs=yes12185 ;;12186 esac12187 ;;12188 12189 haiku*)12190 version_type=linux # correct to gnu/linux during the next big refactor12191 need_lib_prefix=no12192 need_version=no12193 dynamic_linker="$host_os runtime_loader"12194 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12195 soname_spec='$libname$release$shared_ext$major'12196 shlibpath_var=LIBRARY_PATH12197 shlibpath_overrides_runpath=no12198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'12199 hardcode_into_libs=yes12200 ;;12201 12202 hpux9* | hpux10* | hpux11*)12203 # Give a soname corresponding to the major version so that dld.sl refuses to12204 # link against other versions.12205 version_type=sunos12206 need_lib_prefix=no12207 need_version=no12208 case $host_cpu in12209 ia64*)12210 shrext_cmds='.so'12211 hardcode_into_libs=yes12212 dynamic_linker="$host_os dld.so"12213 shlibpath_var=LD_LIBRARY_PATH12214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.12215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12216 soname_spec='$libname$release$shared_ext$major'12217 if test 32 = "$HPUX_IA64_MODE"; then12218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"12219 sys_lib_dlsearch_path_spec=/usr/lib/hpux3212220 else12221 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"12222 sys_lib_dlsearch_path_spec=/usr/lib/hpux6412223 fi12224 ;;12225 hppa*64*)12226 shrext_cmds='.sl'12227 hardcode_into_libs=yes12228 dynamic_linker="$host_os dld.sl"12229 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH12230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.12231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12232 soname_spec='$libname$release$shared_ext$major'12233 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"12234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12235 ;;12236 *)12237 shrext_cmds='.sl'12238 dynamic_linker="$host_os dld.sl"12239 shlibpath_var=SHLIB_PATH12240 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH12241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12242 soname_spec='$libname$release$shared_ext$major'12243 ;;12244 esac12245 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...12246 postinstall_cmds='chmod 555 $lib'12247 # or fails outright, so override atomically:12248 install_override_mode=55512249 ;;12250 12251 interix[3-9]*)12252 version_type=linux # correct to gnu/linux during the next big refactor12253 need_lib_prefix=no12254 need_version=no12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12256 soname_spec='$libname$release$shared_ext$major'12257 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'12258 shlibpath_var=LD_LIBRARY_PATH12259 shlibpath_overrides_runpath=no12260 hardcode_into_libs=yes12261 ;;12262 12263 irix5* | irix6* | nonstopux*)12264 case $host_os in12265 nonstopux*) version_type=nonstopux ;;12266 *)12267 if test yes = "$lt_cv_prog_gnu_ld"; then12268 version_type=linux # correct to gnu/linux during the next big refactor12269 else12270 version_type=irix12271 fi ;;12272 esac12273 need_lib_prefix=no12274 need_version=no12275 soname_spec='$libname$release$shared_ext$major'12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'12277 case $host_os in12278 irix5* | nonstopux*)12279 libsuff= shlibsuff=12280 ;;12281 *)12282 case $LD in # libtool.m4 will add one of these switches to LD12283 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")12284 libsuff= shlibsuff= libmagic=32-bit;;12285 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")12286 libsuff=32 shlibsuff=N32 libmagic=N32;;12287 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")12288 libsuff=64 shlibsuff=64 libmagic=64-bit;;12289 *) libsuff= shlibsuff= libmagic=never-match;;12290 esac12291 ;;12292 esac12293 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH12294 shlibpath_overrides_runpath=no12295 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"12296 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"12297 hardcode_into_libs=yes12298 ;;12299 12300 # No shared lib support for Linux oldld, aout, or coff.12301 linux*oldld* | linux*aout* | linux*coff*)12302 dynamic_linker=no12303 ;;12304 12305 linux*android*)12306 version_type=none # Android doesn't support versioned libraries.12307 need_lib_prefix=no12308 need_version=no12309 library_names_spec='$libname$release$shared_ext'12310 soname_spec='$libname$release$shared_ext'12311 finish_cmds=12312 shlibpath_var=LD_LIBRARY_PATH12313 shlibpath_overrides_runpath=yes12314 12315 # This implies no fast_install, which is unacceptable.12316 # Some rework will be needed to allow for fast_install12317 # before this can be enabled.12318 hardcode_into_libs=yes12319 12320 dynamic_linker='Android linker'12321 # Don't embed -rpath directories since the linker doesn't support them.12322 hardcode_libdir_flag_spec='-L$libdir'12323 ;;12324 12325 # This must be glibc/ELF.12326 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)12327 version_type=linux # correct to gnu/linux during the next big refactor12328 need_lib_prefix=no12329 need_version=no12330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12331 soname_spec='$libname$release$shared_ext$major'12332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'12333 shlibpath_var=LD_LIBRARY_PATH12334 shlibpath_overrides_runpath=no12335 12336 # Some binutils ld are patched to set DT_RUNPATH12337 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :12338 $as_echo_n "(cached) " >&612339 else12340 lt_cv_shlibpath_overrides_runpath=no12341 save_LDFLAGS=$LDFLAGS12342 save_libdir=$libdir12343 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \12344 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12346 /* end confdefs.h. */12347 12348 int12349 main ()12350 {12351 12352 ;12353 return 0;12354 }12355 _ACEOF12356 if ac_fn_c_try_link "$LINENO"; then :12357 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :12358 lt_cv_shlibpath_overrides_runpath=yes12359 fi12360 fi12361 rm -f core conftest.err conftest.$ac_objext \12362 conftest$ac_exeext conftest.$ac_ext12363 LDFLAGS=$save_LDFLAGS12364 libdir=$save_libdir12365 12366 fi12367 12368 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath12369 12370 # This implies no fast_install, which is unacceptable.12371 # Some rework will be needed to allow for fast_install12372 # before this can be enabled.12373 hardcode_into_libs=yes12374 12375 # Ideally, we could use ldconfig to report *all* directores which are12376 # searched for libraries, however this is still not possible. Aside from not12377 # being certain /sbin/ldconfig is available, command12378 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,12379 # even though it is searched at run-time. Try to do the best guess by12380 # appending ld.so.conf contents (and includes) to the search path.12381 if test -f /etc/ld.so.conf; then12382 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' ' '`12383 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"12384 fi12385 12386 # We used to test for /lib/ld.so.1 and disable shared libraries on12387 # powerpc, because MkLinux only supported shared libraries with the12388 # GNU dynamic linker. Since this was broken with cross compilers,12389 # most powerpc-linux boxes support dynamic linking these days and12390 # people can always --disable-shared, the test was removed, and we12391 # assume the GNU/Linux dynamic linker is in use.12392 dynamic_linker='GNU/Linux ld.so'12393 ;;12394 12395 netbsdelf*-gnu)12396 version_type=linux12397 need_lib_prefix=no12398 need_version=no12399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'12400 soname_spec='${libname}${release}${shared_ext}$major'12401 shlibpath_var=LD_LIBRARY_PATH12402 shlibpath_overrides_runpath=no12403 hardcode_into_libs=yes12404 dynamic_linker='NetBSD ld.elf_so'12405 ;;12406 12407 netbsd*)12408 version_type=sunos12409 need_lib_prefix=no12410 need_version=no12411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then12412 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'12414 dynamic_linker='NetBSD (a.out) ld.so'12415 else12416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12417 soname_spec='$libname$release$shared_ext$major'12418 dynamic_linker='NetBSD ld.elf_so'12419 fi12420 shlibpath_var=LD_LIBRARY_PATH12421 shlibpath_overrides_runpath=yes12422 hardcode_into_libs=yes12423 ;;12424 12425 newsos6)12426 version_type=linux # correct to gnu/linux during the next big refactor12427 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12428 shlibpath_var=LD_LIBRARY_PATH12429 shlibpath_overrides_runpath=yes12430 ;;12431 12432 *nto* | *qnx*)12433 version_type=qnx12434 need_lib_prefix=no12435 need_version=no12436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12437 soname_spec='$libname$release$shared_ext$major'12438 shlibpath_var=LD_LIBRARY_PATH12439 shlibpath_overrides_runpath=no12440 hardcode_into_libs=yes12441 dynamic_linker='ldqnx.so'12442 ;;12443 12444 openbsd* | bitrig*)12445 version_type=sunos12446 sys_lib_dlsearch_path_spec=/usr/lib12447 need_lib_prefix=no12448 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then12449 need_version=no12450 else12451 need_version=yes12452 fi12453 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'12455 shlibpath_var=LD_LIBRARY_PATH12456 shlibpath_overrides_runpath=yes12457 ;;12458 12459 os2*)12460 libname_spec='$name'12461 version_type=windows12462 shrext_cmds=.dll12463 need_version=no12464 need_lib_prefix=no12465 # OS/2 can only load a DLL with a base name of 8 characters or less.12466 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";12467 v=$($ECHO $release$versuffix | tr -d .-);12468 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);12469 $ECHO $n$v`$shared_ext'12470 library_names_spec='${libname}_dll.$libext'12471 dynamic_linker='OS/2 ld.exe'12472 shlibpath_var=BEGINLIBPATH12473 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"12474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12475 postinstall_cmds='base_file=`basename \$file`~12476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~12477 dldir=$destdir/`dirname \$dlpath`~12478 test -d \$dldir || mkdir -p \$dldir~12479 $install_prog $dir/$dlname \$dldir/$dlname~12480 chmod a+x \$dldir/$dlname~12481 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then12482 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;12483 fi'12484 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~12485 dlpath=$dir/\$dldll~12486 $RM \$dlpath'12487 ;;12488 12489 osf3* | osf4* | osf5*)12490 version_type=osf12491 need_lib_prefix=no12492 need_version=no12493 soname_spec='$libname$release$shared_ext$major'12494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12495 shlibpath_var=LD_LIBRARY_PATH12496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"12497 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec12498 ;;12499 12500 rdos*)12501 dynamic_linker=no12502 ;;12503 12504 solaris*)12505 version_type=linux # correct to gnu/linux during the next big refactor12506 need_lib_prefix=no12507 need_version=no12508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12509 soname_spec='$libname$release$shared_ext$major'12510 shlibpath_var=LD_LIBRARY_PATH12511 shlibpath_overrides_runpath=yes12512 hardcode_into_libs=yes12513 # ldd complains unless libraries are executable12514 postinstall_cmds='chmod +x $lib'12515 ;;12516 12517 sunos4*)12518 version_type=sunos12519 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'12520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'12521 shlibpath_var=LD_LIBRARY_PATH12522 shlibpath_overrides_runpath=yes12523 if test yes = "$with_gnu_ld"; then12524 need_lib_prefix=no12525 fi12526 need_version=yes12527 ;;12528 12529 sysv4 | sysv4.3*)12530 version_type=linux # correct to gnu/linux during the next big refactor12531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12532 soname_spec='$libname$release$shared_ext$major'12533 shlibpath_var=LD_LIBRARY_PATH12534 case $host_vendor in12535 sni)12536 shlibpath_overrides_runpath=no12537 need_lib_prefix=no12538 runpath_var=LD_RUN_PATH12539 ;;12540 siemens)12541 need_lib_prefix=no12542 ;;12543 motorola)12544 need_lib_prefix=no12545 need_version=no12546 shlibpath_overrides_runpath=no12547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'12548 ;;12549 esac12550 ;;12551 12552 sysv4*MP*)12553 if test -d /usr/nec; then12554 version_type=linux # correct to gnu/linux during the next big refactor12555 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'12556 soname_spec='$libname$shared_ext.$major'12557 shlibpath_var=LD_LIBRARY_PATH12558 fi12559 ;;12560 12561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)12562 version_type=sco12563 need_lib_prefix=no12564 need_version=no12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'12566 soname_spec='$libname$release$shared_ext$major'12567 shlibpath_var=LD_LIBRARY_PATH12568 shlibpath_overrides_runpath=yes12569 hardcode_into_libs=yes12570 if test yes = "$with_gnu_ld"; then12571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'12572 else12573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'12574 case $host_os in12575 sco3.2v5*)12576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"12577 ;;12578 esac12579 fi12580 sys_lib_dlsearch_path_spec='/usr/lib'12581 ;;12582 12583 tpf*)12584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.12585 version_type=linux # correct to gnu/linux during the next big refactor12586 need_lib_prefix=no12587 need_version=no12588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12589 shlibpath_var=LD_LIBRARY_PATH12590 shlibpath_overrides_runpath=no12591 hardcode_into_libs=yes12592 ;;12593 12594 uts4*)12595 version_type=linux # correct to gnu/linux during the next big refactor12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'12597 soname_spec='$libname$release$shared_ext$major'12598 shlibpath_var=LD_LIBRARY_PATH12599 ;;12600 12601 *)12602 dynamic_linker=no12603 ;;12604 esac12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&512606 $as_echo "$dynamic_linker" >&6; }12607 test no = "$dynamic_linker" && can_build_shared=no12608 12609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"12610 if test yes = "$GCC"; then12611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"12612 fi12613 12614 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then12615 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec12616 fi12617 12618 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then12619 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec12620 fi12621 12622 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...12623 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec12624 12625 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code12626 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"12627 12628 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool12629 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&512728 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }12729 hardcode_action=12730 if test -n "$hardcode_libdir_flag_spec" ||12731 test -n "$runpath_var" ||12732 test yes = "$hardcode_automatic"; then12733 12734 # We can hardcode non-existent directories.12735 if test no != "$hardcode_direct" &&12736 # If the only mechanism to avoid hardcoding is shlibpath_var, we12737 # have to relink, otherwise we might link with an installed library12738 # when we should be linking with a yet-to-be-installed one12739 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&12740 test no != "$hardcode_minus_L"; then12741 # Linking always hardcodes the temporary library directory.12742 hardcode_action=relink12743 else12744 # We can link without hardcoding, and we can hardcode nonexisting dirs.12745 hardcode_action=immediate12746 fi12747 else12748 # We cannot hardcode anything, or else we can only hardcode existing12749 # directories.12750 hardcode_action=unsupported12751 fi12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&512753 $as_echo "$hardcode_action" >&6; }12754 12755 if test relink = "$hardcode_action" ||12756 test yes = "$inherit_rpath"; then12757 # Fast installation is not supported12758 enable_fast_install=no12759 elif test yes = "$shlibpath_overrides_runpath" ||12760 test no = "$enable_shared"; then12761 # Fast installation is not necessary12762 enable_fast_install=needless12763 fi12764 12765 12766 12767 12768 12769 12770 if test yes != "$enable_dlopen"; then12771 enable_dlopen=unknown12772 enable_dlopen_self=unknown12773 enable_dlopen_self_static=unknown12774 else12775 lt_cv_dlopen=no12776 lt_cv_dlopen_libs=12777 12778 case $host_os in12779 beos*)12780 lt_cv_dlopen=load_add_on12781 lt_cv_dlopen_libs=12782 lt_cv_dlopen_self=yes12783 ;;12784 12785 mingw* | pw32* | cegcc*)12786 lt_cv_dlopen=LoadLibrary12787 lt_cv_dlopen_libs=12788 ;;12789 12790 cygwin*)12791 lt_cv_dlopen=dlopen12792 lt_cv_dlopen_libs=12793 ;;12794 12795 darwin*)12796 # if libdl is installed we need to link against it12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&512798 $as_echo_n "checking for dlopen in -ldl... " >&6; }12799 if ${ac_cv_lib_dl_dlopen+:} false; then :12800 $as_echo_n "(cached) " >&612801 else12802 ac_check_lib_save_LIBS=$LIBS12803 LIBS="-ldl $LIBS"12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12805 /* end confdefs.h. */12806 12807 /* Override any GCC internal prototype to avoid an error.12808 Use char because int might match the return type of a GCC12809 builtin and then its argument prototype would still apply. */12810 #ifdef __cplusplus12811 extern "C"12812 #endif12813 char dlopen ();12814 int12815 main ()12816 {12817 return dlopen ();12818 ;12819 return 0;12820 }12821 _ACEOF12822 if ac_fn_c_try_link "$LINENO"; then :12823 ac_cv_lib_dl_dlopen=yes12824 else12825 ac_cv_lib_dl_dlopen=no12826 fi12827 rm -f core conftest.err conftest.$ac_objext \12828 conftest$ac_exeext conftest.$ac_ext12829 LIBS=$ac_check_lib_save_LIBS12830 fi12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&512832 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }12833 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :12834 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl12835 else12836 12837 lt_cv_dlopen=dyld12838 lt_cv_dlopen_libs=12839 lt_cv_dlopen_self=yes12840 12841 fi12842 12843 ;;12844 12845 tpf*)12846 # Don't try to run any link tests for TPF. We know it's impossible12847 # because TPF is a cross-compiler, and we know how we open DSOs.12848 lt_cv_dlopen=dlopen12849 lt_cv_dlopen_libs=12850 lt_cv_dlopen_self=no12851 ;;12852 12853 *)12854 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"12855 if test "x$ac_cv_func_shl_load" = xyes; then :12856 lt_cv_dlopen=shl_load12857 else12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&512859 $as_echo_n "checking for shl_load in -ldld... " >&6; }12860 if ${ac_cv_lib_dld_shl_load+:} false; then :12861 $as_echo_n "(cached) " >&612862 else12863 ac_check_lib_save_LIBS=$LIBS12864 LIBS="-ldld $LIBS"12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12866 /* end confdefs.h. */12867 12868 /* Override any GCC internal prototype to avoid an error.12869 Use char because int might match the return type of a GCC12870 builtin and then its argument prototype would still apply. */12871 #ifdef __cplusplus12872 extern "C"12873 #endif12874 char shl_load ();12875 int12876 main ()12877 {12878 return shl_load ();12879 ;12880 return 0;12881 }12882 _ACEOF12883 if ac_fn_c_try_link "$LINENO"; then :12884 ac_cv_lib_dld_shl_load=yes12885 else12886 ac_cv_lib_dld_shl_load=no12887 fi12888 rm -f core conftest.err conftest.$ac_objext \12889 conftest$ac_exeext conftest.$ac_ext12890 LIBS=$ac_check_lib_save_LIBS12891 fi12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&512893 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }12894 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :12895 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld12896 else12897 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"12898 if test "x$ac_cv_func_dlopen" = xyes; then :12899 lt_cv_dlopen=dlopen12900 else12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&512902 $as_echo_n "checking for dlopen in -ldl... " >&6; }12903 if ${ac_cv_lib_dl_dlopen+:} false; then :12904 $as_echo_n "(cached) " >&612905 else12906 ac_check_lib_save_LIBS=$LIBS12907 LIBS="-ldl $LIBS"12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12909 /* end confdefs.h. */12910 12911 /* Override any GCC internal prototype to avoid an error.12912 Use char because int might match the return type of a GCC12913 builtin and then its argument prototype would still apply. */12914 #ifdef __cplusplus12915 extern "C"12916 #endif12917 char dlopen ();12918 int12919 main ()12920 {12921 return dlopen ();12922 ;12923 return 0;12924 }12925 _ACEOF12926 if ac_fn_c_try_link "$LINENO"; then :12927 ac_cv_lib_dl_dlopen=yes12928 else12929 ac_cv_lib_dl_dlopen=no12930 fi12931 rm -f core conftest.err conftest.$ac_objext \12932 conftest$ac_exeext conftest.$ac_ext12933 LIBS=$ac_check_lib_save_LIBS12934 fi12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&512936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }12937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :12938 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl12939 else12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&512941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }12942 if ${ac_cv_lib_svld_dlopen+:} false; then :12943 $as_echo_n "(cached) " >&612944 else12945 ac_check_lib_save_LIBS=$LIBS12946 LIBS="-lsvld $LIBS"12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12948 /* end confdefs.h. */12949 12950 /* Override any GCC internal prototype to avoid an error.12951 Use char because int might match the return type of a GCC12952 builtin and then its argument prototype would still apply. */12953 #ifdef __cplusplus12954 extern "C"12955 #endif12956 char dlopen ();12957 int12958 main ()12959 {12960 return dlopen ();12961 ;12962 return 0;12963 }12964 _ACEOF12965 if ac_fn_c_try_link "$LINENO"; then :12966 ac_cv_lib_svld_dlopen=yes12967 else12968 ac_cv_lib_svld_dlopen=no12969 fi12970 rm -f core conftest.err conftest.$ac_objext \12971 conftest$ac_exeext conftest.$ac_ext12972 LIBS=$ac_check_lib_save_LIBS12973 fi12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&512975 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }12976 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :12977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld12978 else12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&512980 $as_echo_n "checking for dld_link in -ldld... " >&6; }12981 if ${ac_cv_lib_dld_dld_link+:} false; then :12982 $as_echo_n "(cached) " >&612983 else12984 ac_check_lib_save_LIBS=$LIBS12985 LIBS="-ldld $LIBS"12986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext12987 /* end confdefs.h. */12988 12989 /* Override any GCC internal prototype to avoid an error.12990 Use char because int might match the return type of a GCC12991 builtin and then its argument prototype would still apply. */12992 #ifdef __cplusplus12993 extern "C"12994 #endif12995 char dld_link ();12996 int12997 main ()12998 {12999 return dld_link ();13000 ;13001 return 0;13002 }13003 _ACEOF13004 if ac_fn_c_try_link "$LINENO"; then :13005 ac_cv_lib_dld_dld_link=yes13006 else13007 ac_cv_lib_dld_dld_link=no13008 fi13009 rm -f core conftest.err conftest.$ac_objext \13010 conftest$ac_exeext conftest.$ac_ext13011 LIBS=$ac_check_lib_save_LIBS13012 fi13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&513014 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }13015 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :13016 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld13017 fi13018 13019 13020 fi13021 13022 13023 fi13024 13025 13026 fi13027 13028 13029 fi13030 13031 13032 fi13033 13034 ;;13035 esac13036 13037 if test no = "$lt_cv_dlopen"; then13038 enable_dlopen=no13039 else13040 enable_dlopen=yes13041 fi13042 13043 case $lt_cv_dlopen in13044 dlopen)13045 save_CPPFLAGS=$CPPFLAGS13046 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"13047 13048 save_LDFLAGS=$LDFLAGS13049 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"13050 13051 save_LIBS=$LIBS13052 LIBS="$lt_cv_dlopen_libs $LIBS"13053 13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&513055 $as_echo_n "checking whether a program can dlopen itself... " >&6; }13056 if ${lt_cv_dlopen_self+:} false; then :13057 $as_echo_n "(cached) " >&613058 else13059 if test yes = "$cross_compiling"; then :13060 lt_cv_dlopen_self=cross13061 else13062 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=213063 lt_status=$lt_dlunknown13064 cat > conftest.$ac_ext <<_LT_EOF13065 #line $LINENO "configure"13066 #include "confdefs.h"13067 13068 #if HAVE_DLFCN_H13069 #include <dlfcn.h>13070 #endif13071 13072 #include <stdio.h>13073 13074 #ifdef RTLD_GLOBAL13075 # define LT_DLGLOBAL RTLD_GLOBAL13076 #else13077 # ifdef DL_GLOBAL13078 # define LT_DLGLOBAL DL_GLOBAL13079 # else13080 # define LT_DLGLOBAL 013081 # endif13082 #endif13083 13084 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we13085 find out it does not work in some platform. */13086 #ifndef LT_DLLAZY_OR_NOW13087 # ifdef RTLD_LAZY13088 # define LT_DLLAZY_OR_NOW RTLD_LAZY13089 # else13090 # ifdef DL_LAZY13091 # define LT_DLLAZY_OR_NOW DL_LAZY13092 # else13093 # ifdef RTLD_NOW13094 # define LT_DLLAZY_OR_NOW RTLD_NOW13095 # else13096 # ifdef DL_NOW13097 # define LT_DLLAZY_OR_NOW DL_NOW13098 # else13099 # define LT_DLLAZY_OR_NOW 013100 # endif13101 # endif13102 # endif13103 # endif13104 #endif13105 13106 /* When -fvisibility=hidden is used, assume the code has been annotated13107 correspondingly for the symbols needed. */13108 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))13109 int fnord () __attribute__((visibility("default")));13110 #endif13111 13112 int fnord () { return 42; }13113 int main ()13114 {13115 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);13116 int status = $lt_dlunknown;13117 13118 if (self)13119 {13120 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;13121 else13122 {13123 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;13124 else puts (dlerror ());13125 }13126 /* dlclose (self); */13127 }13128 else13129 puts (dlerror ());13130 13131 return status;13132 }13133 _LT_EOF13134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&513135 (eval $ac_link) 2>&513136 ac_status=$?13137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513138 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then13139 (./conftest; exit; ) >&5 2>/dev/null13140 lt_status=$?13141 case x$lt_status in13142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;13143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;13144 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;13145 esac13146 else :13147 # compilation failed13148 lt_cv_dlopen_self=no13149 fi13150 fi13151 rm -fr conftest*13152 13153 13154 fi13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&513156 $as_echo "$lt_cv_dlopen_self" >&6; }13157 13158 if test yes = "$lt_cv_dlopen_self"; then13159 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&513161 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }13162 if ${lt_cv_dlopen_self_static+:} false; then :13163 $as_echo_n "(cached) " >&613164 else13165 if test yes = "$cross_compiling"; then :13166 lt_cv_dlopen_self_static=cross13167 else13168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=213169 lt_status=$lt_dlunknown13170 cat > conftest.$ac_ext <<_LT_EOF13171 #line $LINENO "configure"13172 #include "confdefs.h"13173 13174 #if HAVE_DLFCN_H13175 #include <dlfcn.h>13176 #endif13177 13178 #include <stdio.h>13179 13180 #ifdef RTLD_GLOBAL13181 # define LT_DLGLOBAL RTLD_GLOBAL13182 #else13183 # ifdef DL_GLOBAL13184 # define LT_DLGLOBAL DL_GLOBAL13185 # else13186 # define LT_DLGLOBAL 013187 # endif13188 #endif13189 13190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we13191 find out it does not work in some platform. */13192 #ifndef LT_DLLAZY_OR_NOW13193 # ifdef RTLD_LAZY13194 # define LT_DLLAZY_OR_NOW RTLD_LAZY13195 # else13196 # ifdef DL_LAZY13197 # define LT_DLLAZY_OR_NOW DL_LAZY13198 # else13199 # ifdef RTLD_NOW13200 # define LT_DLLAZY_OR_NOW RTLD_NOW13201 # else13202 # ifdef DL_NOW13203 # define LT_DLLAZY_OR_NOW DL_NOW13204 # else13205 # define LT_DLLAZY_OR_NOW 013206 # endif13207 # endif13208 # endif13209 # endif13210 #endif13211 13212 /* When -fvisibility=hidden is used, assume the code has been annotated13213 correspondingly for the symbols needed. */13214 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))13215 int fnord () __attribute__((visibility("default")));13216 #endif13217 13218 int fnord () { return 42; }13219 int main ()13220 {13221 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);13222 int status = $lt_dlunknown;13223 13224 if (self)13225 {13226 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;13227 else13228 {13229 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;13230 else puts (dlerror ());13231 }13232 /* dlclose (self); */13233 }13234 else13235 puts (dlerror ());13236 13237 return status;13238 }13239 _LT_EOF13240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&513241 (eval $ac_link) 2>&513242 ac_status=$?13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&513244 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then13245 (./conftest; exit; ) >&5 2>/dev/null13246 lt_status=$?13247 case x$lt_status in13248 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;13249 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;13250 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;13251 esac13252 else :13253 # compilation failed13254 lt_cv_dlopen_self_static=no13255 fi13256 fi13257 rm -fr conftest*13258 13259 13260 fi13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&513262 $as_echo "$lt_cv_dlopen_self_static" >&6; }13263 fi13264 13265 CPPFLAGS=$save_CPPFLAGS13266 LDFLAGS=$save_LDFLAGS13267 LIBS=$save_LIBS13268 ;;13269 esac13270 13271 case $lt_cv_dlopen_self in13272 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;13273 *) enable_dlopen_self=unknown ;;13274 esac13275 13276 case $lt_cv_dlopen_self_static in13277 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;13278 *) enable_dlopen_self_static=unknown ;;13279 esac13280 fi13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 striplib=13299 old_striplib=13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&513301 $as_echo_n "checking whether stripping libraries is possible... " >&6; }13302 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then13303 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"13304 test -z "$striplib" && striplib="$STRIP --strip-unneeded"13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&513306 $as_echo "yes" >&6; }13307 else13308 # FIXME - insert some real tests, host_os isn't really good enough13309 case $host_os in13310 darwin*)13311 if test -n "$STRIP"; then13312 striplib="$STRIP -x"13313 old_striplib="$STRIP -S"13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&513315 $as_echo "yes" >&6; }13316 else13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513318 $as_echo "no" >&6; }13319 fi13320 ;;13321 *)13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513323 $as_echo "no" >&6; }13324 ;;13325 esac13326 fi13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 # Report what library types will actually be built13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&513341 $as_echo_n "checking if libtool supports shared libraries... " >&6; }13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&513343 $as_echo "$can_build_shared" >&6; }13344 13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&513346 $as_echo_n "checking whether to build shared libraries... " >&6; }13347 test no = "$can_build_shared" && enable_shared=no13348 13349 # On AIX, shared libraries and static libraries use the same namespace, and13350 # are all built from PIC.13351 case $host_os in13352 aix3*)13353 test yes = "$enable_shared" && enable_static=no13354 if test -n "$RANLIB"; then13355 archive_cmds="$archive_cmds~\$RANLIB \$lib"13356 postinstall_cmds='$RANLIB $lib'13357 fi13358 ;;13359 13360 aix[4-9]*)13361 if test ia64 != "$host_cpu"; then13362 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in13363 yes,aix,yes) ;; # shared object as lib.so file only13364 yes,svr4,*) ;; # shared object as lib.so archive member only13365 yes,*) enable_static=no ;; # shared object in lib.a archive as well13366 esac13367 fi13368 ;;13369 esac13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&513371 $as_echo "$enable_shared" >&6; }13372 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&513374 $as_echo_n "checking whether to build static libraries... " >&6; }13375 # Make sure either enable_shared or enable_static is yes.13376 test yes = "$enable_shared" || enable_static=yes13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&513378 $as_echo "$enable_static" >&6; }13379 13380 13381 13382 13383 fi13384 ac_ext=c13385 ac_cpp='$CPP $CPPFLAGS'13386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'13387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13388 ac_compiler_gnu=$ac_cv_c_compiler_gnu13389 13390 CC=$lt_save_CC13391 13392 if test -n "$CXX" && ( test no != "$CXX" &&13393 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||13394 (test g++ != "$CXX"))); then13395 ac_ext=cpp13396 ac_cpp='$CXXCPP $CPPFLAGS'13397 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'13398 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13399 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&513401 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }13402 if test -z "$CXXCPP"; then13403 if ${ac_cv_prog_CXXCPP+:} false; then :13404 $as_echo_n "(cached) " >&613405 else13406 # Double quotes because CXXCPP needs to be expanded13407 for CXXCPP in "$CXX -E" "/lib/cpp"13408 do13409 ac_preproc_ok=false13410 for ac_cxx_preproc_warn_flag in '' yes13411 do13412 # Use a header file that comes with gcc, so configuring glibc13413 # with a fresh cross-compiler works.13414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13415 # <limits.h> exists even on freestanding compilers.13416 # On the NeXT, cc -E runs the code through the compiler's parser,13417 # not just through cpp. "Syntax error" is here to catch this case.13418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13419 /* end confdefs.h. */13420 #ifdef __STDC__13421 # include <limits.h>13422 #else13423 # include <assert.h>13424 #endif13425 Syntax error13426 _ACEOF13427 if ac_fn_cxx_try_cpp "$LINENO"; then :13428 13429 else13430 # Broken: fails on valid input.13431 continue13432 fi13433 rm -f conftest.err conftest.i conftest.$ac_ext13434 13435 # OK, works on sane cases. Now check whether nonexistent headers13436 # can be detected and how.13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13438 /* end confdefs.h. */13439 #include <ac_nonexistent.h>13440 _ACEOF13441 if ac_fn_cxx_try_cpp "$LINENO"; then :13442 # Broken: success on invalid input.13443 continue13444 else13445 # Passes both tests.13446 ac_preproc_ok=:13447 break13448 fi13449 rm -f conftest.err conftest.i conftest.$ac_ext13450 13451 done13452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.13453 rm -f conftest.i conftest.err conftest.$ac_ext13454 if $ac_preproc_ok; then :13455 break13456 fi13457 13458 done13459 ac_cv_prog_CXXCPP=$CXXCPP13460 13461 fi13462 CXXCPP=$ac_cv_prog_CXXCPP13463 else13464 ac_cv_prog_CXXCPP=$CXXCPP13465 fi13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&513467 $as_echo "$CXXCPP" >&6; }13468 ac_preproc_ok=false13469 for ac_cxx_preproc_warn_flag in '' yes13470 do13471 # Use a header file that comes with gcc, so configuring glibc13472 # with a fresh cross-compiler works.13473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since13474 # <limits.h> exists even on freestanding compilers.13475 # On the NeXT, cc -E runs the code through the compiler's parser,13476 # not just through cpp. "Syntax error" is here to catch this case.13477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13478 /* end confdefs.h. */13479 #ifdef __STDC__13480 # include <limits.h>13481 #else13482 # include <assert.h>13483 #endif13484 Syntax error13485 _ACEOF13486 if ac_fn_cxx_try_cpp "$LINENO"; then :13487 13488 else13489 # Broken: fails on valid input.13490 continue13491 fi13492 rm -f conftest.err conftest.i conftest.$ac_ext13493 13494 # OK, works on sane cases. Now check whether nonexistent headers13495 # can be detected and how.13496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13497 /* end confdefs.h. */13498 #include <ac_nonexistent.h>13499 _ACEOF13500 if ac_fn_cxx_try_cpp "$LINENO"; then :13501 # Broken: success on invalid input.13502 continue13503 else13504 # Passes both tests.13505 ac_preproc_ok=:13506 break13507 fi13508 rm -f conftest.err conftest.i conftest.$ac_ext13509 13510 done13511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.13512 rm -f conftest.i conftest.err conftest.$ac_ext13513 if $ac_preproc_ok; then :13514 13515 else13516 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&513517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}13518 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check13519 See \`config.log' for more details" "$LINENO" 5; }13520 fi13521 13522 ac_ext=c13523 ac_cpp='$CPP $CPPFLAGS'13524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'13525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13526 ac_compiler_gnu=$ac_cv_c_compiler_gnu13527 13528 else13529 _lt_caught_CXX_error=yes13530 fi13531 13532 ac_ext=cpp13533 ac_cpp='$CXXCPP $CPPFLAGS'13534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'13535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'13536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu13537 13538 archive_cmds_need_lc_CXX=no13539 allow_undefined_flag_CXX=13540 always_export_symbols_CXX=no13541 archive_expsym_cmds_CXX=13542 compiler_needs_object_CXX=no13543 export_dynamic_flag_spec_CXX=13544 hardcode_direct_CXX=no13545 hardcode_direct_absolute_CXX=no13546 hardcode_libdir_flag_spec_CXX=13547 hardcode_libdir_separator_CXX=13548 hardcode_minus_L_CXX=no13549 hardcode_shlibpath_var_CXX=unsupported13550 hardcode_automatic_CXX=no13551 inherit_rpath_CXX=no13552 module_cmds_CXX=13553 module_expsym_cmds_CXX=13554 link_all_deplibs_CXX=unknown13555 old_archive_cmds_CXX=$old_archive_cmds13556 reload_flag_CXX=$reload_flag13557 reload_cmds_CXX=$reload_cmds13558 no_undefined_flag_CXX=13559 whole_archive_flag_spec_CXX=13560 enable_shared_with_static_runtimes_CXX=no13561 13562 # Source file extension for C++ test sources.13563 ac_ext=cpp13564 13565 # Object file extension for compiled C++ test sources.13566 objext=o13567 objext_CXX=$objext13568 13569 # No sense in running all these tests if we already determined that13570 # the CXX compiler isn't working. Some variables (like enable_shared)13571 # are currently assumed to apply to all compilers on this platform,13572 # and will be corrupted by setting them based on a non-working compiler.13573 if test yes != "$_lt_caught_CXX_error"; then13574 # Code to be used in simple compile tests13575 lt_simple_compile_test_code="int some_variable = 0;"13576 13577 # Code to be used in simple link tests13578 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'13579 13580 # ltmain only uses $CC for tagged configurations so make sure $CC is set.13581 13582 13583 13584 13585 13586 13587 # If no C compiler was specified, use CC.13588 LTCC=${LTCC-"$CC"}13589 13590 # If no C compiler flags were specified, use CFLAGS.13591 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}13592 13593 # Allow CC to be a program name with arguments.13594 compiler=$CC13595 13596 13597 # save warnings/boilerplate of simple test code13598 ac_outfile=conftest.$ac_objext13599 echo "$lt_simple_compile_test_code" >conftest.$ac_ext13600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err13601 _lt_compiler_boilerplate=`cat conftest.err`13602 $RM conftest*13603 13604 ac_outfile=conftest.$ac_objext13605 echo "$lt_simple_link_test_code" >conftest.$ac_ext13606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err13607 _lt_linker_boilerplate=`cat conftest.err`13608 $RM -r conftest*13609 13610 13611 # Allow CC to be a program name with arguments.13612 lt_save_CC=$CC13613 lt_save_CFLAGS=$CFLAGS13614 lt_save_LD=$LD13615 lt_save_GCC=$GCC13616 GCC=$GXX13617 lt_save_with_gnu_ld=$with_gnu_ld13618 lt_save_path_LD=$lt_cv_path_LD13619 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then13620 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx13621 else13622 $as_unset lt_cv_prog_gnu_ld13623 fi13624 if test -n "${lt_cv_path_LDCXX+set}"; then13625 lt_cv_path_LD=$lt_cv_path_LDCXX13626 else13627 $as_unset lt_cv_path_LD13628 fi13629 test -z "${LDCXX+set}" || LD=$LDCXX13630 CC=${CXX-"c++"}13631 CFLAGS=$CXXFLAGS13632 compiler=$CC13633 compiler_CXX=$CC13634 func_cc_basename $compiler13635 cc_basename=$func_cc_basename_result13636 13637 13638 if test -n "$compiler"; then13639 # We don't want -fno-exception when compiling C++ code, so set the13640 # no_builtin_flag separately13641 if test yes = "$GXX"; then13642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'13643 else13644 lt_prog_compiler_no_builtin_flag_CXX=13645 fi13646 13647 if test yes = "$GXX"; then13648 # Set up default GNU C++ configuration13649 13650 13651 13652 # Check whether --with-gnu-ld was given.13653 if test "${with_gnu_ld+set}" = set; then :13654 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes13655 else13656 with_gnu_ld=no13657 fi13658 13659 ac_prog=ld13660 if test yes = "$GCC"; then13661 # Check if gcc -print-prog-name=ld gives a path.13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&513663 $as_echo_n "checking for ld used by $CC... " >&6; }13664 case $host in13665 *-*-mingw*)13666 # gcc leaves a trailing carriage return, which upsets mingw13667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;13668 *)13669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;13670 esac13671 case $ac_prog in13672 # Accept absolute paths.13673 [\\/]* | ?:[\\/]*)13674 re_direlt='/[^/][^/]*/\.\./'13675 # Canonicalize the pathname of ld13676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`13677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do13678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`13679 done13680 test -z "$LD" && LD=$ac_prog13681 ;;13682 "")13683 # If it fails, then pretend we aren't using GCC.13684 ac_prog=ld13685 ;;13686 *)13687 # If it is relative, then search for the first ld in PATH.13688 with_gnu_ld=unknown13689 ;;13690 esac13691 elif test yes = "$with_gnu_ld"; then13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&513693 $as_echo_n "checking for GNU ld... " >&6; }13694 else13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&513696 $as_echo_n "checking for non-GNU ld... " >&6; }13697 fi13698 if ${lt_cv_path_LD+:} false; then :13699 $as_echo_n "(cached) " >&613700 else13701 if test -z "$LD"; then13702 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR13703 for ac_dir in $PATH; do13704 IFS=$lt_save_ifs13705 test -z "$ac_dir" && ac_dir=.13706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then13707 lt_cv_path_LD=$ac_dir/$ac_prog13708 # Check to see if the program is GNU ld. I'd rather use --version,13709 # but apparently some variants of GNU ld only accept -v.13710 # Break only if it was the GNU/non-GNU ld that we prefer.13711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in13712 *GNU* | *'with BFD'*)13713 test no != "$with_gnu_ld" && break13714 ;;13715 *)13716 test yes != "$with_gnu_ld" && break13717 ;;13718 esac13719 fi13720 done13721 IFS=$lt_save_ifs13722 else13723 lt_cv_path_LD=$LD # Let the user override the test with a path.13724 fi13725 fi13726 13727 LD=$lt_cv_path_LD13728 if test -n "$LD"; then13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&513730 $as_echo "$LD" >&6; }13731 else13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&513733 $as_echo "no" >&6; }13734 fi13735 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 513736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&513737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }13738 if ${lt_cv_prog_gnu_ld+:} false; then :13739 $as_echo_n "(cached) " >&613740 else13741 # I'd rather use --version here, but apparently some GNU lds only accept -v.13742 case `$LD -v 2>&1 </dev/null` in13743 *GNU* | *'with BFD'*)13744 lt_cv_prog_gnu_ld=yes13745 ;;13746 *)13747 lt_cv_prog_gnu_ld=no13748 ;;13749 esac13750 fi13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&513752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }13753 with_gnu_ld=$lt_cv_prog_gnu_ld13754 13755 13756 13757 13758 13759 13760 13761 # Check if GNU C++ uses GNU ld as the underlying linker, since the13762 # archiving commands below assume that GNU ld is being used.13763 if test yes = "$with_gnu_ld"; then13764 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'13765 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'13766 13767 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'13768 export_dynamic_flag_spec_CXX='$wl--export-dynamic'13769 13770 # If archive_cmds runs LD, not CC, wlarc should be empty13771 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to13772 # investigate it a little bit more. (MM)13773 wlarc='$wl'13774 13775 # ancient GNU ld didn't support --whole-archive et. al.13776 if eval "`$CC -print-prog-name=ld` --help 2>&1" |13777 $GREP 'no-whole-archive' > /dev/null; then13778 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'13779 else13780 whole_archive_flag_spec_CXX=13781 fi13782 else13783 with_gnu_ld=no13784 wlarc=13785 13786 # A generic and very simple default shared library creation13787 # command for GNU C++ for the case where it uses the native13788 # linker, instead of GNU ld. If possible, this setting should13789 # overridden to take advantage of the native linker features on13790 # the platform it is being used on.13791 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'13792 fi13793 13794 # Commands to make compiler produce verbose output that lists13795 # what "hidden" libraries, object files and flags are used when13796 # linking a shared library.13797 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'13798 13799 else13800 GXX=no13801 with_gnu_ld=no13802 wlarc=13803 fi13804 13805 # PORTME: fill in a description of your system's C++ link characteristics13806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&513807 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }13808 ld_shlibs_CXX=yes13809 case $host_os in13810 aix3*)13811 # FIXME: insert proper C++ library support13812 ld_shlibs_CXX=no13813 ;;13814 aix[4-9]*)13815 if test ia64 = "$host_cpu"; then13816 # On IA64, the linker does run time linking by default, so we don't13817 # have to do anything special.13818 aix_use_runtimelinking=no13819 exp_sym_flag='-Bexport'13820 no_entry_flag=13821 else13822 aix_use_runtimelinking=no13823 13824 # Test if we are trying to use run time linking or normal13825 # AIX style linking. If -brtl is somewhere in LDFLAGS, we13826 # have runtime linking enabled, and use it for executables.13827 # For shared libraries, we enable/disable runtime linking13828 # depending on the kind of the shared library created -13829 # when "with_aix_soname,aix_use_runtimelinking" is:13830 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables13831 # "aix,yes" lib.so shared, rtl:yes, for executables13832 # lib.a static archive13833 # "both,no" lib.so.V(shr.o) shared, rtl:yes13834 # lib.a(lib.so.V) shared, rtl:no, for executables13835 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables13836 # lib.a(lib.so.V) shared, rtl:no13837 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables13838 # lib.a static archive13839 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)13840 for ld_flag in $LDFLAGS; do13841 case $ld_flag in13842 *-brtl*)13843 aix_use_runtimelinking=yes13844 break13845 ;;13846 esac13847 done13848 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then13849 # With aix-soname=svr4, we create the lib.so.V shared archives only,13850 # so we don't have lib.a shared libs to link our executables.13851 # We have to force runtime linking in this case.13852 aix_use_runtimelinking=yes13853 LDFLAGS="$LDFLAGS -Wl,-brtl"13854 fi13855 ;;13856 esac13857 13858 exp_sym_flag='-bexport'13859 no_entry_flag='-bnoentry'13860 fi13861 13862 # When large executables or shared objects are built, AIX ld can13863 # have problems creating the table of contents. If linking a library13864 # or program results in "error TOC overflow" add -mminimal-toc to13865 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not13866 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.13867 13868 archive_cmds_CXX=''13869 hardcode_direct_CXX=yes13870 hardcode_direct_absolute_CXX=yes13871 hardcode_libdir_separator_CXX=':'13872 link_all_deplibs_CXX=yes13873 file_list_spec_CXX='$wl-f,'13874 case $with_aix_soname,$aix_use_runtimelinking in13875 aix,*) ;; # no import file13876 svr4,* | *,yes) # use import file13877 # The Import File defines what to hardcode.13878 hardcode_direct_CXX=no13879 hardcode_direct_absolute_CXX=no13880 ;;13881 esac13882 13883 if test yes = "$GXX"; then13884 case $host_os in aix4.[012]|aix4.[012].*)13885 # We only want to do this on AIX 4.2 and lower, the check13886 # below for broken collect2 doesn't work under 4.3+13887 collect2name=`$CC -print-prog-name=collect2`13888 if test -f "$collect2name" &&13889 strings "$collect2name" | $GREP resolve_lib_name >/dev/null13890 then13891 # We have reworked collect213892 :13893 else13894 # We have old collect213895 hardcode_direct_CXX=unsupported13896 # It fails to find uninstalled libraries when the uninstalled13897 # path is not listed in the libpath. Setting hardcode_minus_L13898 # to unsupported forces relinking13899 hardcode_minus_L_CXX=yes13900 hardcode_libdir_flag_spec_CXX='-L$libdir'13901 hardcode_libdir_separator_CXX=13902 fi13903 esac13904 shared_flag='-shared'13905 if test yes = "$aix_use_runtimelinking"; then13906 shared_flag=$shared_flag' $wl-G'13907 fi13908 # Need to ensure runtime linking is disabled for the traditional13909 # shared library, or the linker may eventually find shared libraries13910 # /with/ Import File - we do not want to mix them.13911 shared_flag_aix='-shared'13912 shared_flag_svr4='-shared $wl-G'13913 else13914 # not using gcc13915 if test ia64 = "$host_cpu"; then13916 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release13917 # chokes on -Wl,-G. The following line is correct:13918 shared_flag='-G'13919 else13920 if test yes = "$aix_use_runtimelinking"; then13921 shared_flag='$wl-G'13922 else13923 shared_flag='$wl-bM:SRE'13924 fi13925 shared_flag_aix='$wl-bM:SRE'13926 shared_flag_svr4='$wl-G'13927 fi13928 fi13929 13930 export_dynamic_flag_spec_CXX='$wl-bexpall'13931 # It seems that -bexpall does not export symbols beginning with13932 # underscore (_), so it is better to generate a list of symbols to13933 # export.13934 always_export_symbols_CXX=yes13935 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then13936 # Warning - without using the other runtime loading flags (-brtl),13937 # -berok will link without error, but may produce a broken library.13938 # The "-G" linker flag allows undefined symbols.13939 no_undefined_flag_CXX='-bernotok'13940 # Determine the default libpath from the value encoded in an empty13941 # executable.13942 if test set = "${lt_cv_aix_libpath+set}"; then13943 aix_libpath=$lt_cv_aix_libpath13944 else13945 if ${lt_cv_aix_libpath__CXX+:} false; then :13946 $as_echo_n "(cached) " >&613947 else13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext13949 /* end confdefs.h. */13950 13951 int13952 main ()13953 {13954 13955 ;13956 return 0;13957 }13958 _ACEOF13959 if ac_fn_cxx_try_link "$LINENO"; then :13960 13961 lt_aix_libpath_sed='13962 /Import File Strings/,/^$/ {13963 /^0/ {13964 s/^0 *\([^ ]*\) *$/\1/13965 p13966 }13967 }'13968 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13969 # Check for a 64-bit object if we didn't find anything.13970 if test -z "$lt_cv_aix_libpath__CXX"; then13971 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`13972 fi13973 fi13974 rm -f core conftest.err conftest.$ac_objext \13975 conftest$ac_exeext conftest.$ac_ext13976 if test -z "$lt_cv_aix_libpath__CXX"; then13977 lt_cv_aix_libpath__CXX=/usr/lib:/lib13978 fi13979 13980 fi13981 13982 aix_libpath=$lt_cv_aix_libpath__CXX13983 fi13984 13985 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"13986 13987 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_flag13988 else13989 if test ia64 = "$host_cpu"; then13990 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'13991 allow_undefined_flag_CXX="-z nodefs"13992 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"13993 else13994 # Determine the default libpath from the value encoded in an13995 # empty executable.13996 if test set = "${lt_cv_aix_libpath+set}"; then13997 aix_libpath=$lt_cv_aix_libpath13998 else13999 if ${lt_cv_aix_libpath__CXX+:} false; then :14000 $as_echo_n "(cached) " >&614001 else14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext14003 /* end confdefs.h. */14004 14005 int14006 main ()14007 {14008 14009 ;14010 return 0;14011 }14012 _ACEOF14013 if ac_fn_cxx_try_link "$LINENO"; then :14014 14015 lt_aix_libpath_sed='14016 /Import File Strings/,/^$/ {14017 /^0/ {14018 s/^0 *\([^ ]*\) *$/\1/14019 p14020 }14021 }'14022 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`14023 # Check for a 64-bit object if we didn't find anything.14024 if test -z "$lt_cv_aix_libpath__CXX"; then14025 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`14026 fi14027 fi14028 rm -f core conftest.err conftest.$ac_objext \14029 conftest$ac_exeext conftest.$ac_ext14030 if test -z "$lt_cv_aix_libpath__CXX"; then14031 lt_cv_aix_libpath__CXX=/usr/lib:/lib14032 fi14033 14034 fi14035 14036 aix_libpath=$lt_cv_aix_libpath__CXX14037 fi14038 14039 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"14040 # Warning - without using the other run time loading flags,14041 # -berok will link without error, but may produce a broken library.14042 no_undefined_flag_CXX=' $wl-bernotok'14043 allow_undefined_flag_CXX=' $wl-berok'14044 if test yes = "$with_gnu_ld"; then14045 # We only use this code for GNU lds that support --whole-archive.14046 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'14047 else14048 # Exported symbols can be pulled into shared objects from archives14049 whole_archive_flag_spec_CXX='$convenience'14050 fi14051 archive_cmds_need_lc_CXX=yes14052 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'14053 # -brtl affects multiple linker settings, -berok does not and is overridden later14054 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'14055 if test svr4 != "$with_aix_soname"; then14056 # This is similar to how AIX traditionally builds its shared14057 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.14058 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'14059 fi14060 if test aix != "$with_aix_soname"; then14061 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'14062 else14063 # used by -dlpreopen to get the symbols14064 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'14065 fi14066 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'14067 fi14068 fi14069 ;;14070 14071 beos*)14072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then14073 allow_undefined_flag_CXX=unsupported14074 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc14075 # support --undefined. This deserves some investigation. FIXME14076 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14077 else14078 ld_shlibs_CXX=no14079 fi14080 ;;14081 14082 chorus*)14083 case $cc_basename in14084 *)14085 # FIXME: insert proper C++ library support14086 ld_shlibs_CXX=no14087 ;;14088 esac14089 ;;14090 14091 cygwin* | mingw* | pw32* | cegcc*)14092 case $GXX,$cc_basename in14093 ,cl* | no,cl*)14094 # Native MSVC14095 # hardcode_libdir_flag_spec is actually meaningless, as there is14096 # no search path for DLLs.14097 hardcode_libdir_flag_spec_CXX=' '14098 allow_undefined_flag_CXX=unsupported14099 always_export_symbols_CXX=yes14100 file_list_spec_CXX='@'14101 # Tell ltmain to make .lib files, not .a files.14102 libext=lib14103 # Tell ltmain to make .dll files, not .so files.14104 shrext_cmds=.dll14105 # FIXME: Setting linknames here is a bad hack.14106 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='14107 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then14108 cp "$export_symbols" "$output_objdir/$soname.def";14109 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";14110 else14111 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;14112 fi~14113 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~14114 linknames='14115 # The linker will not automatically build a static lib if we build a DLL.14116 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'14117 enable_shared_with_static_runtimes_CXX=yes14118 # Don't use ranlib14119 old_postinstall_cmds_CXX='chmod 644 $oldlib'14120 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~14121 lt_tool_outputfile="@TOOL_OUTPUT@"~14122 case $lt_outputfile in14123 *.exe|*.EXE) ;;14124 *)14125 lt_outputfile=$lt_outputfile.exe14126 lt_tool_outputfile=$lt_tool_outputfile.exe14127 ;;14128 esac~14129 func_to_tool_file "$lt_outputfile"~14130 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then14131 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;14132 $RM "$lt_outputfile.manifest";14133 fi'14134 ;;14135 *)14136 # g++14137 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,14138 # as there is no search path for DLLs.14139 hardcode_libdir_flag_spec_CXX='-L$libdir'14140 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'14141 allow_undefined_flag_CXX=unsupported14142 always_export_symbols_CXX=no14143 enable_shared_with_static_runtimes_CXX=yes14144 14145 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then14146 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'14147 # If the export-symbols file already is a .def file, use it as14148 # is; otherwise, prepend EXPORTS...14149 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then14150 cp $export_symbols $output_objdir/$soname.def;14151 else14152 echo EXPORTS > $output_objdir/$soname.def;14153 cat $export_symbols >> $output_objdir/$soname.def;14154 fi~14155 $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'14156 else14157 ld_shlibs_CXX=no14158 fi14159 ;;14160 esac14161 ;;14162 darwin* | rhapsody*)14163 14164 14165 archive_cmds_need_lc_CXX=no14166 hardcode_direct_CXX=no14167 hardcode_automatic_CXX=yes14168 hardcode_shlibpath_var_CXX=unsupported14169 if test yes = "$lt_cv_ld_force_load"; then14170 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\"`'14171 14172 else14173 whole_archive_flag_spec_CXX=''14174 fi14175 link_all_deplibs_CXX=yes14176 allow_undefined_flag_CXX=$_lt_dar_allow_undefined14177 case $cc_basename in14178 ifort*|nagfor*) _lt_dar_can_shared=yes ;;14179 *) _lt_dar_can_shared=$GCC ;;14180 esac14181 if test yes = "$_lt_dar_can_shared"; then14182 output_verbose_link_cmd=func_echo_all14183 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"14184 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"14185 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"14186 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"14187 if test yes != "$lt_cv_apple_cc_single_mod"; then14188 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"14189 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"14190 fi14191 14192 else14193 ld_shlibs_CXX=no14194 fi14195 14196 ;;14197 14198 os2*)14199 hardcode_libdir_flag_spec_CXX='-L$libdir'14200 hardcode_minus_L_CXX=yes14201 allow_undefined_flag_CXX=unsupported14202 shrext_cmds=.dll14203 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~14204 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~14205 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~14206 $ECHO EXPORTS >> $output_objdir/$libname.def~14207 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~14208 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~14209 emximp -o $lib $output_objdir/$libname.def'14210 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~14211 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~14212 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~14213 $ECHO EXPORTS >> $output_objdir/$libname.def~14214 prefix_cmds="$SED"~14215 if test EXPORTS = "`$SED 1q $export_symbols`"; then14216 prefix_cmds="$prefix_cmds -e 1d";14217 fi~14218 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~14219 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~14220 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~14221 emximp -o $lib $output_objdir/$libname.def'14222 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'14223 enable_shared_with_static_runtimes_CXX=yes14224 ;;14225 14226 dgux*)14227 case $cc_basename in14228 ec++*)14229 # FIXME: insert proper C++ library support14230 ld_shlibs_CXX=no14231 ;;14232 ghcx*)14233 # Green Hills C++ Compiler14234 # FIXME: insert proper C++ library support14235 ld_shlibs_CXX=no14236 ;;14237 *)14238 # FIXME: insert proper C++ library support14239 ld_shlibs_CXX=no14240 ;;14241 esac14242 ;;14243 14244 freebsd2.*)14245 # C++ shared libraries reported to be fairly broken before14246 # switch to ELF14247 ld_shlibs_CXX=no14248 ;;14249 14250 freebsd-elf*)14251 archive_cmds_need_lc_CXX=no14252 ;;14253 14254 freebsd* | dragonfly*)14255 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF14256 # conventions14257 ld_shlibs_CXX=yes14258 ;;14259 14260 haiku*)14261 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14262 link_all_deplibs_CXX=yes14263 ;;14264 14265 hpux9*)14266 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'14267 hardcode_libdir_separator_CXX=:14268 export_dynamic_flag_spec_CXX='$wl-E'14269 hardcode_direct_CXX=yes14270 hardcode_minus_L_CXX=yes # Not in the search PATH,14271 # but as the default14272 # location of the library.14273 14274 case $cc_basename in14275 CC*)14276 # FIXME: insert proper C++ library support14277 ld_shlibs_CXX=no14278 ;;14279 aCC*)14280 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'14281 # Commands to make compiler produce verbose output that lists14282 # what "hidden" libraries, object files and flags are used when14283 # linking a shared library.14284 #14285 # There doesn't appear to be a way to prevent this compiler from14286 # explicitly linking system object files so we need to strip them14287 # from the output so that they don't get included in the library14288 # dependencies.14289 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"'14290 ;;14291 *)14292 if test yes = "$GXX"; then14293 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'14294 else14295 # FIXME: insert proper C++ library support14296 ld_shlibs_CXX=no14297 fi14298 ;;14299 esac14300 ;;14301 14302 hpux10*|hpux11*)14303 if test no = "$with_gnu_ld"; then14304 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'14305 hardcode_libdir_separator_CXX=:14306 14307 case $host_cpu in14308 hppa*64*|ia64*)14309 ;;14310 *)14311 export_dynamic_flag_spec_CXX='$wl-E'14312 ;;14313 esac14314 fi14315 case $host_cpu in14316 hppa*64*|ia64*)14317 hardcode_direct_CXX=no14318 hardcode_shlibpath_var_CXX=no14319 ;;14320 *)14321 hardcode_direct_CXX=yes14322 hardcode_direct_absolute_CXX=yes14323 hardcode_minus_L_CXX=yes # Not in the search PATH,14324 # but as the default14325 # location of the library.14326 ;;14327 esac14328 14329 case $cc_basename in14330 CC*)14331 # FIXME: insert proper C++ library support14332 ld_shlibs_CXX=no14333 ;;14334 aCC*)14335 case $host_cpu in14336 hppa*64*)14337 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14338 ;;14339 ia64*)14340 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14341 ;;14342 *)14343 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14344 ;;14345 esac14346 # Commands to make compiler produce verbose output that lists14347 # what "hidden" libraries, object files and flags are used when14348 # linking a shared library.14349 #14350 # There doesn't appear to be a way to prevent this compiler from14351 # explicitly linking system object files so we need to strip them14352 # from the output so that they don't get included in the library14353 # dependencies.14354 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"'14355 ;;14356 *)14357 if test yes = "$GXX"; then14358 if test no = "$with_gnu_ld"; then14359 case $host_cpu in14360 hppa*64*)14361 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14362 ;;14363 ia64*)14364 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14365 ;;14366 *)14367 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'14368 ;;14369 esac14370 fi14371 else14372 # FIXME: insert proper C++ library support14373 ld_shlibs_CXX=no14374 fi14375 ;;14376 esac14377 ;;14378 14379 interix[3-9]*)14380 hardcode_direct_CXX=no14381 hardcode_shlibpath_var_CXX=no14382 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14383 export_dynamic_flag_spec_CXX='$wl-E'14384 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.14385 # Instead, shared libraries are loaded at an image base (0x10000000 by14386 # default) and relocated if they conflict, which is a slow very memory14387 # consuming and fragmenting process. To avoid this, we pick a random,14388 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link14389 # time. Moving up from 0x10000000 also allows more sbrk(2) space.14390 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'14391 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'14392 ;;14393 irix5* | irix6*)14394 case $cc_basename in14395 CC*)14396 # SGI C++14397 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'14398 14399 # Archives containing C++ object files must be created using14400 # "CC -ar", where "CC" is the IRIX C++ compiler. This is14401 # necessary to make sure instantiated templates are included14402 # in the archive.14403 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'14404 ;;14405 *)14406 if test yes = "$GXX"; then14407 if test no = "$with_gnu_ld"; then14408 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'14409 else14410 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'14411 fi14412 fi14413 link_all_deplibs_CXX=yes14414 ;;14415 esac14416 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14417 hardcode_libdir_separator_CXX=:14418 inherit_rpath_CXX=yes14419 ;;14420 14421 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)14422 case $cc_basename in14423 KCC*)14424 # Kuck and Associates, Inc. (KAI) C++ Compiler14425 14426 # KCC will only create a shared library if the output file14427 # ends with ".so" (or ".sl" for HP-UX), so rename the library14428 # to its proper name (with version) after linking.14429 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'14430 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'14431 # Commands to make compiler produce verbose output that lists14432 # what "hidden" libraries, object files and flags are used when14433 # linking a shared library.14434 #14435 # There doesn't appear to be a way to prevent this compiler from14436 # explicitly linking system object files so we need to strip them14437 # from the output so that they don't get included in the library14438 # dependencies.14439 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"'14440 14441 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14442 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14443 14444 # Archives containing C++ object files must be created using14445 # "CC -Bstatic", where "CC" is the KAI C++ compiler.14446 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'14447 ;;14448 icpc* | ecpc* )14449 # Intel C++14450 with_gnu_ld=yes14451 # version 8.0 and above of icpc choke on multiply defined symbols14452 # if we add $predep_objects and $postdep_objects, however 7.1 and14453 # earlier do not add the objects themselves.14454 case `$CC -V 2>&1` in14455 *"Version 7."*)14456 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14457 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'14458 ;;14459 *) # Version 8.0 or newer14460 tmp_idyn=14461 case $host_cpu in14462 ia64*) tmp_idyn=' -i_dynamic';;14463 esac14464 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14465 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'14466 ;;14467 esac14468 archive_cmds_need_lc_CXX=no14469 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14470 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14471 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'14472 ;;14473 pgCC* | pgcpp*)14474 # Portland Group C++ compiler14475 case `$CC -V` in14476 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)14477 prelink_cmds_CXX='tpldir=Template.dir~14478 rm -rf $tpldir~14479 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~14480 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'14481 old_archive_cmds_CXX='tpldir=Template.dir~14482 rm -rf $tpldir~14483 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~14484 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~14485 $RANLIB $oldlib'14486 archive_cmds_CXX='tpldir=Template.dir~14487 rm -rf $tpldir~14488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~14489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14490 archive_expsym_cmds_CXX='tpldir=Template.dir~14491 rm -rf $tpldir~14492 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~14493 $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'14494 ;;14495 *) # Version 6 and above use weak symbols14496 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14497 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'14498 ;;14499 esac14500 14501 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'14502 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14503 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'14504 ;;14505 cxx*)14506 # Compaq C++14507 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'14508 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'14509 14510 runpath_var=LD_RUN_PATH14511 hardcode_libdir_flag_spec_CXX='-rpath $libdir'14512 hardcode_libdir_separator_CXX=:14513 14514 # Commands to make compiler produce verbose output that lists14515 # what "hidden" libraries, object files and flags are used when14516 # linking a shared library.14517 #14518 # There doesn't appear to be a way to prevent this compiler from14519 # explicitly linking system object files so we need to strip them14520 # from the output so that they don't get included in the library14521 # dependencies.14522 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'14523 ;;14524 xl* | mpixl* | bgxl*)14525 # IBM XL 8.0 on PPC, with GNU ld14526 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14527 export_dynamic_flag_spec_CXX='$wl--export-dynamic'14528 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'14529 if test yes = "$supports_anon_versioning"; then14530 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~14531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~14532 echo "local: *; };" >> $output_objdir/$libname.ver~14533 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'14534 fi14535 ;;14536 *)14537 case `$CC -V 2>&1 | sed 5q` in14538 *Sun\ C*)14539 # Sun C++ 5.914540 no_undefined_flag_CXX=' -zdefs'14541 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14542 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'14543 hardcode_libdir_flag_spec_CXX='-R$libdir'14544 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'14545 compiler_needs_object_CXX=yes14546 14547 # Not sure whether something based on14548 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&114549 # would be better.14550 output_verbose_link_cmd='func_echo_all'14551 14552 # Archives containing C++ object files must be created using14553 # "CC -xar", where "CC" is the Sun C++ compiler. This is14554 # necessary to make sure instantiated templates are included14555 # in the archive.14556 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'14557 ;;14558 esac14559 ;;14560 esac14561 ;;14562 14563 lynxos*)14564 # FIXME: insert proper C++ library support14565 ld_shlibs_CXX=no14566 ;;14567 14568 m88k*)14569 # FIXME: insert proper C++ library support14570 ld_shlibs_CXX=no14571 ;;14572 14573 mvs*)14574 case $cc_basename in14575 cxx*)14576 # FIXME: insert proper C++ library support14577 ld_shlibs_CXX=no14578 ;;14579 *)14580 # FIXME: insert proper C++ library support14581 ld_shlibs_CXX=no14582 ;;14583 esac14584 ;;14585 14586 netbsd*)14587 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then14588 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'14589 wlarc=14590 hardcode_libdir_flag_spec_CXX='-R$libdir'14591 hardcode_direct_CXX=yes14592 hardcode_shlibpath_var_CXX=no14593 fi14594 # Workaround some broken pre-1.5 toolchains14595 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'14596 ;;14597 14598 *nto* | *qnx*)14599 ld_shlibs_CXX=yes14600 ;;14601 14602 openbsd* | bitrig*)14603 if test -f /usr/libexec/ld.so; then14604 hardcode_direct_CXX=yes14605 hardcode_shlibpath_var_CXX=no14606 hardcode_direct_absolute_CXX=yes14607 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'14608 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14609 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then14610 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'14611 export_dynamic_flag_spec_CXX='$wl-E'14612 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'14613 fi14614 output_verbose_link_cmd=func_echo_all14615 else14616 ld_shlibs_CXX=no14617 fi14618 ;;14619 14620 osf3* | osf4* | osf5*)14621 case $cc_basename in14622 KCC*)14623 # Kuck and Associates, Inc. (KAI) C++ Compiler14624 14625 # KCC will only create a shared library if the output file14626 # ends with ".so" (or ".sl" for HP-UX), so rename the library14627 # to its proper name (with version) after linking.14628 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'14629 14630 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'14631 hardcode_libdir_separator_CXX=:14632 14633 # Archives containing C++ object files must be created using14634 # the KAI C++ compiler.14635 case $host in14636 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;14637 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;14638 esac14639 ;;14640 RCC*)14641 # Rational C++ 2.4.114642 # FIXME: insert proper C++ library support14643 ld_shlibs_CXX=no14644 ;;14645 cxx*)14646 case $host in14647 osf3*)14648 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'14649 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'14650 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14651 ;;14652 *)14653 allow_undefined_flag_CXX=' -expect_unresolved \*'14654 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'14655 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~14656 echo "-hidden">> $lib.exp~14657 $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~14658 $RM $lib.exp'14659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'14660 ;;14661 esac14662 14663 hardcode_libdir_separator_CXX=:14664 14665 # Commands to make compiler produce verbose output that lists14666 # what "hidden" libraries, object files and flags are used when14667 # linking a shared library.14668 #14669 # There doesn't appear to be a way to prevent this compiler from14670 # explicitly linking system object files so we need to strip them14671 # from the output so that they don't get included in the library14672 # dependencies.14673 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"'14674 ;;14675 *)14676 if test yes,no = "$GXX,$with_gnu_ld"; then14677 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'14678 case $host in14679 osf3*)14680 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'14681 ;;14682 *)14683 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'14684 ;;14685 esac14686 14687 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'14688 hardcode_libdir_separator_CXX=:14689 14690 # Commands to make compiler produce verbose output that lists14691 # what "hidden" libraries, object files and flags are used when14692 # linking a shared library.14693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14694 14695 else14696 # FIXME: insert proper C++ library support14697 ld_shlibs_CXX=no14698 fi14699 ;;14700 esac14701 ;;14702 14703 psos*)14704 # FIXME: insert proper C++ library support14705 ld_shlibs_CXX=no14706 ;;14707 14708 sunos4*)14709 case $cc_basename in14710 CC*)14711 # Sun C++ 4.x14712 # FIXME: insert proper C++ library support14713 ld_shlibs_CXX=no14714 ;;14715 lcc*)14716 # Lucid14717 # FIXME: insert proper C++ library support14718 ld_shlibs_CXX=no14719 ;;14720 *)14721 # FIXME: insert proper C++ library support14722 ld_shlibs_CXX=no14723 ;;14724 esac14725 ;;14726 14727 solaris*)14728 case $cc_basename in14729 CC* | sunCC*)14730 # Sun C++ 4.2, 5.x and Centerline C++14731 archive_cmds_need_lc_CXX=yes14732 no_undefined_flag_CXX=' -zdefs'14733 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'14734 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14735 $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'14736 14737 hardcode_libdir_flag_spec_CXX='-R$libdir'14738 hardcode_shlibpath_var_CXX=no14739 case $host_os in14740 solaris2.[0-5] | solaris2.[0-5].*) ;;14741 *)14742 # The compiler driver will combine and reorder linker options,14743 # but understands '-z linker_flag'.14744 # Supported since Solaris 2.6 (maybe 2.5.1?)14745 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'14746 ;;14747 esac14748 link_all_deplibs_CXX=yes14749 14750 output_verbose_link_cmd='func_echo_all'14751 14752 # Archives containing C++ object files must be created using14753 # "CC -xar", where "CC" is the Sun C++ compiler. This is14754 # necessary to make sure instantiated templates are included14755 # in the archive.14756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'14757 ;;14758 gcx*)14759 # Green Hills C++ Compiler14760 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14761 14762 # The C++ compiler must be used to create the archive.14763 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'14764 ;;14765 *)14766 # GNU C++ compiler with Solaris linker14767 if test yes,no = "$GXX,$with_gnu_ld"; then14768 no_undefined_flag_CXX=' $wl-z ${wl}defs'14769 if $CC --version | $GREP -v '^2\.7' > /dev/null; then14770 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14771 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14772 $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'14773 14774 # Commands to make compiler produce verbose output that lists14775 # what "hidden" libraries, object files and flags are used when14776 # linking a shared library.14777 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14778 else14779 # g++ 2.7 appears to require '-G' NOT '-shared' on this14780 # platform.14781 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'14782 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~14783 $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'14784 14785 # Commands to make compiler produce verbose output that lists14786 # what "hidden" libraries, object files and flags are used when14787 # linking a shared library.14788 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'14789 fi14790 14791 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'14792 case $host_os in14793 solaris2.[0-5] | solaris2.[0-5].*) ;;14794 *)14795 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'14796 ;;14797 esac14798 fi14799 ;;14800 esac14801 ;;14802 14803 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)14804 no_undefined_flag_CXX='$wl-z,text'14805 archive_cmds_need_lc_CXX=no14806 hardcode_shlibpath_var_CXX=no14807 runpath_var='LD_RUN_PATH'14808 14809 case $cc_basename in14810 CC*)14811 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14812 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14813 ;;14814 *)14815 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14816 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14817 ;;14818 esac14819 ;;14820 14821 sysv5* | sco3.2v5* | sco5v6*)14822 # Note: We CANNOT use -z defs as we might desire, because we do not14823 # link with -lc, and that would cause any symbols used from libc to14824 # always be unresolved, which means just about no library would14825 # ever link correctly. If we're not using GNU ld we use -z text14826 # though, which does catch some bad symbols but isn't as heavy-handed14827 # as -z defs.14828 no_undefined_flag_CXX='$wl-z,text'14829 allow_undefined_flag_CXX='$wl-z,nodefs'14830 archive_cmds_need_lc_CXX=no14831 hardcode_shlibpath_var_CXX=no14832 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'14833 hardcode_libdir_separator_CXX=':'14834 link_all_deplibs_CXX=yes14835 export_dynamic_flag_spec_CXX='$wl-Bexport'14836 runpath_var='LD_RUN_PATH'14837 14838 case $cc_basename in14839 CC*)14840 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14841 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14842 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~14843 '"$old_archive_cmds_CXX"14844 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~14845 '"$reload_cmds_CXX"14846 ;;14847 *)14848 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14849 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'14850 ;;14851 esac14852 ;;14853 14854 tandem*)14855 case $cc_basename in14856 NCC*)14857 # NonStop-UX NCC 3.2014858 # FIXME: insert proper C++ library support14859 ld_shlibs_CXX=no14860 ;;14861 *)14862 # FIXME: insert proper C++ library support14863 ld_shlibs_CXX=no14864 ;;14865 esac14866 ;;14867 14868 vxworks*)14869 # FIXME: insert proper C++ library support14870 ld_shlibs_CXX=no14871 ;;14872 14873 *)14874 # FIXME: insert proper C++ library support14875 ld_shlibs_CXX=no14876 ;;14877 esac14878 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&514880 $as_echo "$ld_shlibs_CXX" >&6; }14881 test no = "$ld_shlibs_CXX" && can_build_shared=no14882 14883 GCC_CXX=$GXX14884 LD_CXX=$LD14885 14886 ## CAVEAT EMPTOR:14887 ## There is no encapsulation within the following macros, do not change14888 ## the running order or otherwise move them around unless you know exactly14889 ## what you are doing...14890 # Dependencies to place before and after the object being linked:14891 predep_objects_CXX=14892 postdep_objects_CXX=14893 predeps_CXX=14894 postdeps_CXX=14895 compiler_lib_search_path_CXX=14896 14897 cat > conftest.$ac_ext <<_LT_EOF14898 class Foo14899 {14900 public:14901 Foo (void) { a = 0; }14902 private:14903 int a;14904 };14905 _LT_EOF14906 14907 14908 _lt_libdeps_save_CFLAGS=$CFLAGS14909 case "$CC $CFLAGS " in #(14910 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;14911 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;14912 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;14913 esac14914 14915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&514916 (eval $ac_compile) 2>&514917 ac_status=$?14918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&514919 test $ac_status = 0; }; then14920 # Parse the compiler output and extract the necessary14921 # objects, libraries and library flags.14922 14923 # Sentinel used to keep track of whether or not we are before14924 # the conftest object file.14925 pre_test_object_deps_done=no14926 14927 for p in `eval "$output_verbose_link_cmd"`; do14928 case $prev$p in14929 14930 -L* | -R* | -l*)14931 # Some compilers place space between "-{L,R}" and the path.14932 # Remove the space.14933 if test x-L = "$p" ||14934 test x-R = "$p"; then14935 prev=$p14936 continue14937 fi14938 14939 # Expand the sysroot to ease extracting the directories later.14940 if test -z "$prev"; then14941 case $p in14942 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;14943 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;14944 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;14945 esac14946 fi14947 case $p in14948 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;14949 esac14950 if test no = "$pre_test_object_deps_done"; then14951 case $prev in14952 -L | -R)14953 # Internal compiler library paths should come after those14954 # provided the user. The postdeps already come after the14955 # user supplied libs so there is no need to process them.14956 if test -z "$compiler_lib_search_path_CXX"; then14957 compiler_lib_search_path_CXX=$prev$p14958 else14959 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"14960 fi14961 ;;14962 # The "-l" case would never come before the object being14963 # linked, so don't bother handling this case.14964 esac14965 else14966 if test -z "$postdeps_CXX"; then14967 postdeps_CXX=$prev$p14968 else14969 postdeps_CXX="${postdeps_CXX} $prev$p"14970 fi14971 fi14972 prev=14973 ;;14974 14975 *.lto.$objext) ;; # Ignore GCC LTO objects14976 *.$objext)14977 # This assumes that the test object file only shows up14978 # once in the compiler output.14979 if test "$p" = "conftest.$objext"; then14980 pre_test_object_deps_done=yes14981 continue14982 fi14983 14984 if test no = "$pre_test_object_deps_done"; then14985 if test -z "$predep_objects_CXX"; then14986 predep_objects_CXX=$p14987 else14988 predep_objects_CXX="$predep_objects_CXX $p"14989 fi14990 else14991 if test -z "$postdep_objects_CXX"; then14992 postdep_objects_CXX=$p14993 else14994 postdep_objects_CXX="$postdep_objects_CXX $p"14995 fi14996 fi14997 ;;14998 14999 *) ;; # Ignore the rest.15000 15001 esac15002 done15003 15004 # Clean up.15005 rm -f a.out a.exe15006 else15007 echo "libtool.m4: error: problem compiling CXX test program"15008 fi15009 15010 $RM -f confest.$objext15011 CFLAGS=$_lt_libdeps_save_CFLAGS15012 15013 # PORTME: override above test on systems where it is broken15014 case $host_os in15015 interix[3-9]*)15016 # Interix 3.5 installs completely hosed .la files for C++, so rather than15017 # hack all around it, let's just trust "g++" to DTRT.15018 predep_objects_CXX=15019 postdep_objects_CXX=15020 postdeps_CXX=15021 ;;15022 esac15023 15024 15025 case " $postdeps_CXX " in15026 *" -lc "*) archive_cmds_need_lc_CXX=no ;;15027 esac15028 compiler_lib_search_dirs_CXX=15029 if test -n "${compiler_lib_search_path_CXX}"; then15030 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`15031 fi15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 lt_prog_compiler_wl_CXX=15064 lt_prog_compiler_pic_CXX=15065 lt_prog_compiler_static_CXX=15066 15067 15068 # C++ specific cases for pic, static, wl, etc.15069 if test yes = "$GXX"; then15070 lt_prog_compiler_wl_CXX='-Wl,'15071 lt_prog_compiler_static_CXX='-static'15072 15073 case $host_os in15074 aix*)15075 # All AIX code is PIC.15076 if test ia64 = "$host_cpu"; then15077 # AIX 5 now supports IA64 processor15078 lt_prog_compiler_static_CXX='-Bstatic'15079 fi15080 lt_prog_compiler_pic_CXX='-fPIC'15081 ;;15082 15083 amigaos*)15084 case $host_cpu in15085 powerpc)15086 # see comment about AmigaOS4 .so support15087 lt_prog_compiler_pic_CXX='-fPIC'15088 ;;15089 m68k)15090 # FIXME: we need at least 68020 code to build shared libraries, but15091 # adding the '-m68020' flag to GCC prevents building anything better,15092 # like '-m68040'.15093 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'15094 ;;15095 esac15096 ;;15097 15098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)15099 # PIC is the default for these OSes.15100 ;;15101 mingw* | cygwin* | os2* | pw32* | cegcc*)15102 # This hack is so that the source file can tell whether it is being15103 # built for inclusion in a dll (and should export symbols for example).15104 # Although the cygwin gcc ignores -fPIC, still need this for old-style15105 # (--disable-auto-import) libraries15106 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'15107 case $host_os in15108 os2*)15109 lt_prog_compiler_static_CXX='$wl-static'15110 ;;15111 esac15112 ;;15113 darwin* | rhapsody*)15114 # PIC is the default on this platform15115 # Common symbols not allowed in MH_DYLIB files15116 lt_prog_compiler_pic_CXX='-fno-common'15117 ;;15118 *djgpp*)15119 # DJGPP does not support shared libraries at all15120 lt_prog_compiler_pic_CXX=15121 ;;15122 haiku*)15123 # PIC is the default for Haiku.15124 # The "-static" flag exists, but is broken.15125 lt_prog_compiler_static_CXX=15126 ;;15127 interix[3-9]*)15128 # Interix 3.x gcc -fpic/-fPIC options generate broken code.15129 # Instead, we relocate shared libraries at runtime.15130 ;;15131 sysv4*MP*)15132 if test -d /usr/nec; then15133 lt_prog_compiler_pic_CXX=-Kconform_pic15134 fi15135 ;;15136 hpux*)15137 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit15138 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag15139 # sets the default TLS model and affects inlining.15140 case $host_cpu in15141 hppa*64*)15142 ;;15143 *)15144 lt_prog_compiler_pic_CXX='-fPIC'15145 ;;15146 esac15147 ;;15148 *qnx* | *nto*)15149 # QNX uses GNU C++, but need to define -shared option too, otherwise15150 # it will coredump.15151 lt_prog_compiler_pic_CXX='-fPIC -shared'15152 ;;15153 *)15154 lt_prog_compiler_pic_CXX='-fPIC'15155 ;;15156 esac15157 else15158 case $host_os in15159 aix[4-9]*)15160 # All AIX code is PIC.15161 if test ia64 = "$host_cpu"; then15162 # AIX 5 now supports IA64 processor15163 lt_prog_compiler_static_CXX='-Bstatic'15164 else15165 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'15166 fi15167 ;;15168 chorus*)15169 case $cc_basename in15170 cxch68*)15171 # Green Hills C++ Compiler15172 # _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"15173 ;;15174 esac15175 ;;15176 mingw* | cygwin* | os2* | pw32* | cegcc*)15177 # This hack is so that the source file can tell whether it is being15178 # built for inclusion in a dll (and should export symbols for example).15179 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'15180 ;;15181 dgux*)15182 case $cc_basename in15183 ec++*)15184 lt_prog_compiler_pic_CXX='-KPIC'15185 ;;15186 ghcx*)15187 # Green Hills C++ Compiler15188 lt_prog_compiler_pic_CXX='-pic'15189 ;;15190 *)15191 ;;15192 esac15193 ;;15194 freebsd* | dragonfly*)15195 # FreeBSD uses GNU C++15196 ;;15197 hpux9* | hpux10* | hpux11*)15198 case $cc_basename in15199 CC*)15200 lt_prog_compiler_wl_CXX='-Wl,'15201 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'15202 if test ia64 != "$host_cpu"; then15203 lt_prog_compiler_pic_CXX='+Z'15204 fi15205 ;;15206 aCC*)15207 lt_prog_compiler_wl_CXX='-Wl,'15208 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'15209 case $host_cpu in15210 hppa*64*|ia64*)15211 # +Z the default15212 ;;15213 *)15214 lt_prog_compiler_pic_CXX='+Z'15215 ;;15216 esac15217 ;;15218 *)15219 ;;15220 esac15221 ;;15222 interix*)15223 # This is c89, which is MS Visual C++ (no shared libs)15224 # Anyone wants to do a port?15225 ;;15226 irix5* | irix6* | nonstopux*)15227 case $cc_basename in15228 CC*)15229 lt_prog_compiler_wl_CXX='-Wl,'15230 lt_prog_compiler_static_CXX='-non_shared'15231 # CC pic flag -KPIC is the default.15232 ;;15233 *)15234 ;;15235 esac15236 ;;15237 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)15238 case $cc_basename in15239 KCC*)15240 # KAI C++ Compiler15241 lt_prog_compiler_wl_CXX='--backend -Wl,'15242 lt_prog_compiler_pic_CXX='-fPIC'15243 ;;15244 ecpc* )15245 # old Intel C++ for x86_64, which still supported -KPIC.15246 lt_prog_compiler_wl_CXX='-Wl,'15247 lt_prog_compiler_pic_CXX='-KPIC'15248 lt_prog_compiler_static_CXX='-static'15249 ;;15250 icpc* )15251 # Intel C++, used to be incompatible with GCC.15252 # ICC 10 doesn't accept -KPIC any more.15253 lt_prog_compiler_wl_CXX='-Wl,'15254 lt_prog_compiler_pic_CXX='-fPIC'15255 lt_prog_compiler_static_CXX='-static'15256 ;;15257 pgCC* | pgcpp*)15258 # Portland Group C++ compiler15259 lt_prog_compiler_wl_CXX='-Wl,'15260 lt_prog_compiler_pic_CXX='-fpic'15261 lt_prog_compiler_static_CXX='-Bstatic'15262 ;;15263 cxx*)15264 # Compaq C++15265 # Make sure the PIC flag is empty. It appears that all Alpha15266 # Linux and Compaq Tru64 Unix objects are PIC.15267 lt_prog_compiler_pic_CXX=15268 lt_prog_compiler_static_CXX='-non_shared'15269 ;;15270 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)15271 # IBM XL 8.0, 9.0 on PPC and BlueGene15272 lt_prog_compiler_wl_CXX='-Wl,'15273 lt_prog_compiler_pic_CXX='-qpic'15274 lt_prog_compiler_static_CXX='-qstaticlink'15275 ;;15276 *)15277 case `$CC -V 2>&1 | sed 5q` in15278 *Sun\ C*)15279 # Sun C++ 5.915280 lt_prog_compiler_pic_CXX='-KPIC'15281 lt_prog_compiler_static_CXX='-Bstatic'15282 lt_prog_compiler_wl_CXX='-Qoption ld '15283 ;;15284 esac15285 ;;15286 esac15287 ;;15288 lynxos*)15289 ;;15290 m88k*)15291 ;;15292 mvs*)15293 case $cc_basename in15294 cxx*)15295 lt_prog_compiler_pic_CXX='-W c,exportall'15296 ;;15297 *)15298 ;;15299 esac15300 ;;15301 netbsd* | netbsdelf*-gnu)15302 ;;15303 *qnx* | *nto*)15304 # QNX uses GNU C++, but need to define -shared option too, otherwise15305 # it will coredump.15306 lt_prog_compiler_pic_CXX='-fPIC -shared'15307 ;;15308 osf3* | osf4* | osf5*)15309 case $cc_basename in15310 KCC*)15311 lt_prog_compiler_wl_CXX='--backend -Wl,'15312 ;;15313 RCC*)15314 # Rational C++ 2.4.115315 lt_prog_compiler_pic_CXX='-pic'15316 ;;15317 cxx*)15318 # Digital/Compaq C++15319 lt_prog_compiler_wl_CXX='-Wl,'15320 # Make sure the PIC flag is empty. It appears that all Alpha15321 # Linux and Compaq Tru64 Unix objects are PIC.15322 lt_prog_compiler_pic_CXX=15323 lt_prog_compiler_static_CXX='-non_shared'15324 ;;15325 *)15326 ;;15327 esac15328 ;;15329 psos*)15330 ;;15331 solaris*)15332 case $cc_basename in15333 CC* | sunCC*)15334 # Sun C++ 4.2, 5.x and Centerline C++15335 lt_prog_compiler_pic_CXX='-KPIC'15336 lt_prog_compiler_static_CXX='-Bstatic'15337 lt_prog_compiler_wl_CXX='-Qoption ld '15338 ;;15339 gcx*)15340 # Green Hills C++ Compiler15341 lt_prog_compiler_pic_CXX='-PIC'15342 ;;15343 *)15344 ;;15345 esac15346 ;;15347 sunos4*)15348 case $cc_basename in15349 CC*)15350 # Sun C++ 4.x15351 lt_prog_compiler_pic_CXX='-pic'15352 lt_prog_compiler_static_CXX='-Bstatic'15353 ;;15354 lcc*)15355 # Lucid15356 lt_prog_compiler_pic_CXX='-pic'15357 ;;15358 *)15359 ;;15360 esac15361 ;;15362 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)15363 case $cc_basename in15364 CC*)15365 lt_prog_compiler_wl_CXX='-Wl,'15366 lt_prog_compiler_pic_CXX='-KPIC'15367 lt_prog_compiler_static_CXX='-Bstatic'15368 ;;15369 esac15370 ;;15371 tandem*)15372 case $cc_basename in15373 NCC*)15374 # NonStop-UX NCC 3.2015375 lt_prog_compiler_pic_CXX='-KPIC'15376 ;;15377 *)15378 ;;15379 esac15380 ;;15381 vxworks*)15382 ;;15383 *)15384 lt_prog_compiler_can_build_shared_CXX=no15385 ;;15386 esac15387 fi15388 15389 case $host_os in15390 # For platforms that do not support PIC, -DPIC is meaningless:15391 *djgpp*)15392 lt_prog_compiler_pic_CXX=15393 ;;15394 *)15395 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"15396 ;;15397 esac15398 15399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&515400 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }15401 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :15402 $as_echo_n "(cached) " >&615403 else15404 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX15405 fi15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&515407 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }15408 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX15409 15410 #15411 # Check to make sure the PIC flag actually works.15412 #15413 if test -n "$lt_prog_compiler_pic_CXX"; then15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&515415 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }15416 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :15417 $as_echo_n "(cached) " >&615418 else15419 lt_cv_prog_compiler_pic_works_CXX=no15420 ac_outfile=conftest.$ac_objext15421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15422 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment15423 # Insert the option either (1) after the last *FLAGS variable, or15424 # (2) before a word containing "conftest.", or (3) at the end.15425 # Note that $ac_compile itself does not contain backslashes and begins15426 # with a dollar sign (not a hyphen), so the echo should work correctly.15427 # The option is referenced via a variable to avoid confusing sed.15428 lt_compile=`echo "$ac_compile" | $SED \15429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15431 -e 's:$: $lt_compiler_flag:'`15432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15433 (eval "$lt_compile" 2>conftest.err)15434 ac_status=$?15435 cat conftest.err >&515436 echo "$as_me:$LINENO: \$? = $ac_status" >&515437 if (exit $ac_status) && test -s "$ac_outfile"; then15438 # The compiler can only warn and ignore the option if not recognized15439 # So say no if there are warnings other than the usual output.15440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp15441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er215442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then15443 lt_cv_prog_compiler_pic_works_CXX=yes15444 fi15445 fi15446 $RM conftest*15447 15448 fi15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&515450 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }15451 15452 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then15453 case $lt_prog_compiler_pic_CXX in15454 "" | " "*) ;;15455 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;15456 esac15457 else15458 lt_prog_compiler_pic_CXX=15459 lt_prog_compiler_can_build_shared_CXX=no15460 fi15461 15462 fi15463 15464 15465 15466 15467 15468 #15469 # Check to make sure the static flag actually works.15470 #15471 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&515473 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }15474 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :15475 $as_echo_n "(cached) " >&615476 else15477 lt_cv_prog_compiler_static_works_CXX=no15478 save_LDFLAGS=$LDFLAGS15479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"15480 echo "$lt_simple_link_test_code" > conftest.$ac_ext15481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then15482 # The linker can only warn and ignore the option if not recognized15483 # So say no if there are warnings15484 if test -s conftest.err; then15485 # Append any errors to the config.log.15486 cat conftest.err 1>&515487 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp15488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er215489 if diff conftest.exp conftest.er2 >/dev/null; then15490 lt_cv_prog_compiler_static_works_CXX=yes15491 fi15492 else15493 lt_cv_prog_compiler_static_works_CXX=yes15494 fi15495 fi15496 $RM -r conftest*15497 LDFLAGS=$save_LDFLAGS15498 15499 fi15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&515501 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }15502 15503 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then15504 :15505 else15506 lt_prog_compiler_static_CXX=15507 fi15508 15509 15510 15511 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&515513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }15514 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :15515 $as_echo_n "(cached) " >&615516 else15517 lt_cv_prog_compiler_c_o_CXX=no15518 $RM -r conftest 2>/dev/null15519 mkdir conftest15520 cd conftest15521 mkdir out15522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15523 15524 lt_compiler_flag="-o out/conftest2.$ac_objext"15525 # Insert the option either (1) after the last *FLAGS variable, or15526 # (2) before a word containing "conftest.", or (3) at the end.15527 # Note that $ac_compile itself does not contain backslashes and begins15528 # with a dollar sign (not a hyphen), so the echo should work correctly.15529 lt_compile=`echo "$ac_compile" | $SED \15530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15532 -e 's:$: $lt_compiler_flag:'`15533 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15534 (eval "$lt_compile" 2>out/conftest.err)15535 ac_status=$?15536 cat out/conftest.err >&515537 echo "$as_me:$LINENO: \$? = $ac_status" >&515538 if (exit $ac_status) && test -s out/conftest2.$ac_objext15539 then15540 # The compiler can only warn and ignore the option if not recognized15541 # So say no if there are warnings15542 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp15543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er215544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then15545 lt_cv_prog_compiler_c_o_CXX=yes15546 fi15547 fi15548 chmod u+w . 2>&515549 $RM conftest*15550 # SGI C++ compiler will create directory out/ii_files/ for15551 # template instantiation15552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files15553 $RM out/* && rmdir out15554 cd ..15555 $RM -r conftest15556 $RM conftest*15557 15558 fi15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&515560 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }15561 15562 15563 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&515565 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }15566 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :15567 $as_echo_n "(cached) " >&615568 else15569 lt_cv_prog_compiler_c_o_CXX=no15570 $RM -r conftest 2>/dev/null15571 mkdir conftest15572 cd conftest15573 mkdir out15574 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15575 15576 lt_compiler_flag="-o out/conftest2.$ac_objext"15577 # Insert the option either (1) after the last *FLAGS variable, or15578 # (2) before a word containing "conftest.", or (3) at the end.15579 # Note that $ac_compile itself does not contain backslashes and begins15580 # with a dollar sign (not a hyphen), so the echo should work correctly.15581 lt_compile=`echo "$ac_compile" | $SED \15582 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \15583 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \15584 -e 's:$: $lt_compiler_flag:'`15585 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)15586 (eval "$lt_compile" 2>out/conftest.err)15587 ac_status=$?15588 cat out/conftest.err >&515589 echo "$as_me:$LINENO: \$? = $ac_status" >&515590 if (exit $ac_status) && test -s out/conftest2.$ac_objext15591 then15592 # The compiler can only warn and ignore the option if not recognized15593 # So say no if there are warnings15594 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp15595 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er215596 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then15597 lt_cv_prog_compiler_c_o_CXX=yes15598 fi15599 fi15600 chmod u+w . 2>&515601 $RM conftest*15602 # SGI C++ compiler will create directory out/ii_files/ for15603 # template instantiation15604 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files15605 $RM out/* && rmdir out15606 cd ..15607 $RM -r conftest15608 $RM conftest*15609 15610 fi15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&515612 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }15613 15614 15615 15616 15617 hard_links=nottested15618 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then15619 # do not overwrite the value of need_locks provided by the user15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&515621 $as_echo_n "checking if we can lock with hard links... " >&6; }15622 hard_links=yes15623 $RM conftest*15624 ln conftest.a conftest.b 2>/dev/null && hard_links=no15625 touch conftest.a15626 ln conftest.a conftest.b 2>&5 || hard_links=no15627 ln conftest.a conftest.b 2>/dev/null && hard_links=no15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&515629 $as_echo "$hard_links" >&6; }15630 if test no = "$hard_links"; then15631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&515632 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}15633 need_locks=warn15634 fi15635 else15636 need_locks=no15637 fi15638 15639 15640 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&515642 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }15643 15644 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'15645 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'15646 case $host_os in15647 aix[4-9]*)15648 # If we're using GNU nm, then we don't want the "-C" option.15649 # -C means demangle to GNU nm, but means don't demangle to AIX nm.15650 # Without the "-l" option, or with the "-B" option, AIX nm treats15651 # weak defined symbols like other global defined symbols, whereas15652 # GNU nm marks them as "W".15653 # While the 'weak' keyword is ignored in the Export File, we need15654 # it in the Import File for the 'aix-soname' feature, so we have15655 # to replace the "-B" option with "-P" for AIX nm.15656 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then15657 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'15658 else15659 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'15660 fi15661 ;;15662 pw32*)15663 export_symbols_cmds_CXX=$ltdll_cmds15664 ;;15665 cygwin* | mingw* | cegcc*)15666 case $cc_basename in15667 cl*)15668 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'15669 ;;15670 *)15671 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'15672 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'15673 ;;15674 esac15675 ;;15676 linux* | k*bsd*-gnu | gnu*)15677 link_all_deplibs_CXX=no15678 ;;15679 *)15680 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'15681 ;;15682 esac15683 15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&515685 $as_echo "$ld_shlibs_CXX" >&6; }15686 test no = "$ld_shlibs_CXX" && can_build_shared=no15687 15688 with_gnu_ld_CXX=$with_gnu_ld15689 15690 15691 15692 15693 15694 15695 #15696 # Do we need to explicitly link libc?15697 #15698 case "x$archive_cmds_need_lc_CXX" in15699 x|xyes)15700 # Assume -lc should be added15701 archive_cmds_need_lc_CXX=yes15702 15703 if test yes,yes = "$GCC,$enable_shared"; then15704 case $archive_cmds_CXX in15705 *'~'*)15706 # FIXME: we may have to deal with multi-command sequences.15707 ;;15708 '$CC '*)15709 # Test whether the compiler implicitly links with -lc since on some15710 # systems, -lgcc has to come before -lc. If gcc already passes -lc15711 # to ld, don't add -lc before -lgcc.15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&515713 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }15714 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :15715 $as_echo_n "(cached) " >&615716 else15717 $RM conftest*15718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext15719 15720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&515721 (eval $ac_compile) 2>&515722 ac_status=$?15723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&515724 test $ac_status = 0; } 2>conftest.err; then15725 soname=conftest15726 lib=conftest15727 libobjs=conftest.$ac_objext15728 deplibs=15729 wl=$lt_prog_compiler_wl_CXX15730 pic_flag=$lt_prog_compiler_pic_CXX15731 compiler_flags=-v15732 linker_flags=-v15733 verstring=15734 output_objdir=.15735 libname=conftest15736 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX15737 allow_undefined_flag_CXX=15738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&515739 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&515740 ac_status=$?15741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&515742 test $ac_status = 0; }15743 then15744 lt_cv_archive_cmds_need_lc_CXX=no15745 else15746 lt_cv_archive_cmds_need_lc_CXX=yes15747 fi15748 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag15749 else15750 cat conftest.err 1>&515751 fi15752 $RM conftest*15753 15754 fi15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&515756 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }15757 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX15758 ;;15759 esac15760 fi15761 ;;15762 esac15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 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 dynamic linker characteristics" >&515826 $as_echo_n "checking dynamic linker characteristics... " >&6; }15827 15828 library_names_spec=15829 libname_spec='lib$name'15830 soname_spec=15831 shrext_cmds=.so15832 postinstall_cmds=15833 postuninstall_cmds=15834 finish_cmds=15835 finish_eval=15836 shlibpath_var=15837 shlibpath_overrides_runpath=unknown15838 version_type=none15839 dynamic_linker="$host_os ld.so"15840 sys_lib_dlsearch_path_spec="/lib /usr/lib"15841 need_lib_prefix=unknown15842 hardcode_into_libs=no15843 15844 # when you set need_version to no, make sure it does not cause -set_version15845 # flags to be left without arguments15846 need_version=unknown15847 15848 15849 15850 case $host_os in15851 aix3*)15852 version_type=linux # correct to gnu/linux during the next big refactor15853 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'15854 shlibpath_var=LIBPATH15855 15856 # AIX 3 has no versioning support, so we append a major version to the name.15857 soname_spec='$libname$release$shared_ext$major'15858 ;;15859 15860 aix[4-9]*)15861 version_type=linux # correct to gnu/linux during the next big refactor15862 need_lib_prefix=no15863 need_version=no15864 hardcode_into_libs=yes15865 if test ia64 = "$host_cpu"; then15866 # AIX 5 supports IA6415867 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'15868 shlibpath_var=LD_LIBRARY_PATH15869 else15870 # With GCC up to 2.95.x, collect2 would create an import file15871 # for dependence libraries. The import file would start with15872 # the line '#! .'. This would cause the generated library to15873 # depend on '.', always an invalid library. This was fixed in15874 # development snapshots of GCC prior to 3.0.15875 case $host_os in15876 aix4 | aix4.[01] | aix4.[01].*)15877 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'15878 echo ' yes '15879 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then15880 :15881 else15882 can_build_shared=no15883 fi15884 ;;15885 esac15886 # Using Import Files as archive members, it is possible to support15887 # filename-based versioning of shared library archives on AIX. While15888 # this would work for both with and without runtime linking, it will15889 # prevent static linking of such archives. So we do filename-based15890 # shared library versioning with .so extension only, which is used15891 # when both runtime linking and shared linking is enabled.15892 # Unfortunately, runtime linking may impact performance, so we do15893 # not want this to be the default eventually. Also, we use the15894 # versioned .so libs for executables only if there is the -brtl15895 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.15896 # To allow for filename-based versioning support, we need to create15897 # libNAME.so.V as an archive file, containing:15898 # *) an Import File, referring to the versioned filename of the15899 # archive as well as the shared archive member, telling the15900 # bitwidth (32 or 64) of that shared object, and providing the15901 # list of exported symbols of that shared object, eventually15902 # decorated with the 'weak' keyword15903 # *) the shared object with the F_LOADONLY flag set, to really avoid15904 # it being seen by the linker.15905 # At run time we better use the real file rather than another symlink,15906 # but for link time we create the symlink libNAME.so -> libNAME.so.V15907 15908 case $with_aix_soname,$aix_use_runtimelinking in15909 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct15910 # soname into executable. Probably we can add versioning support to15911 # collect2, so additional links can be useful in future.15912 aix,yes) # traditional libtool15913 dynamic_linker='AIX unversionable lib.so'15914 # If using run time linking (on AIX 4.2 or later) use lib<name>.so15915 # instead of lib<name>.a to let people know that these are not15916 # typical AIX shared libraries.15917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15918 ;;15919 aix,no) # traditional AIX only15920 dynamic_linker='AIX lib.a(lib.so.V)'15921 # We preserve .a as extension for shared libraries through AIX4.215922 # and later when we are not doing run time linking.15923 library_names_spec='$libname$release.a $libname.a'15924 soname_spec='$libname$release$shared_ext$major'15925 ;;15926 svr4,*) # full svr4 only15927 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"15928 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15929 # We do not specify a path in Import Files, so LIBPATH fires.15930 shlibpath_overrides_runpath=yes15931 ;;15932 *,yes) # both, prefer svr415933 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"15934 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'15935 # unpreferred sharedlib libNAME.a needs extra handling15936 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"'15937 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"'15938 # We do not specify a path in Import Files, so LIBPATH fires.15939 shlibpath_overrides_runpath=yes15940 ;;15941 *,no) # both, prefer aix15942 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"15943 library_names_spec='$libname$release.a $libname.a'15944 soname_spec='$libname$release$shared_ext$major'15945 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling15946 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)'15947 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"'15948 ;;15949 esac15950 shlibpath_var=LIBPATH15951 fi15952 ;;15953 15954 amigaos*)15955 case $host_cpu in15956 powerpc)15957 # Since July 2007 AmigaOS4 officially supports .so libraries.15958 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.15959 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15960 ;;15961 m68k)15962 library_names_spec='$libname.ixlibrary $libname.a'15963 # Create ${libname}_ixlibrary.a entries in /sys/libs.15964 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'15965 ;;15966 esac15967 ;;15968 15969 beos*)15970 library_names_spec='$libname$shared_ext'15971 dynamic_linker="$host_os ld.so"15972 shlibpath_var=LIBRARY_PATH15973 ;;15974 15975 bsdi[45]*)15976 version_type=linux # correct to gnu/linux during the next big refactor15977 need_version=no15978 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'15979 soname_spec='$libname$release$shared_ext$major'15980 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'15981 shlibpath_var=LD_LIBRARY_PATH15982 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"15983 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"15984 # the default ld.so.conf also contains /usr/contrib/lib and15985 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow15986 # libtool to hard-code these into programs15987 ;;15988 15989 cygwin* | mingw* | pw32* | cegcc*)15990 version_type=windows15991 shrext_cmds=.dll15992 need_version=no15993 need_lib_prefix=no15994 15995 case $GCC,$cc_basename in15996 yes,*)15997 # gcc15998 library_names_spec='$libname.dll.a'15999 # DLL is installed to $(libdir)/../bin by postinstall_cmds16000 postinstall_cmds='base_file=`basename \$file`~16001 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~16002 dldir=$destdir/`dirname \$dlpath`~16003 test -d \$dldir || mkdir -p \$dldir~16004 $install_prog $dir/$dlname \$dldir/$dlname~16005 chmod a+x \$dldir/$dlname~16006 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then16007 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;16008 fi'16009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~16010 dlpath=$dir/\$dldll~16011 $RM \$dlpath'16012 shlibpath_overrides_runpath=yes16013 16014 case $host_os in16015 cygwin*)16016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'16017 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16018 16019 ;;16020 mingw* | cegcc*)16021 # MinGW DLLs use traditional 'lib' prefix16022 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16023 ;;16024 pw32*)16025 # pw32 DLLs use 'pw' prefix rather than 'lib'16026 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16027 ;;16028 esac16029 dynamic_linker='Win32 ld.exe'16030 ;;16031 16032 *,cl*)16033 # Native MSVC16034 libname_spec='$name'16035 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'16036 library_names_spec='$libname.dll.lib'16037 16038 case $build_os in16039 mingw*)16040 sys_lib_search_path_spec=16041 lt_save_ifs=$IFS16042 IFS=';'16043 for lt_path in $LIB16044 do16045 IFS=$lt_save_ifs16046 # Let DOS variable expansion print the short 8.3 style file name.16047 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`16048 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"16049 done16050 IFS=$lt_save_ifs16051 # Convert to MSYS style.16052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`16053 ;;16054 cygwin*)16055 # Convert to unix form, then to dos form, then back to unix form16056 # but this time dos style (no spaces!) so that the unix form looks16057 # like /cygdrive/c/PROGRA~1:/cygdr...16058 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`16059 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`16060 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`16061 ;;16062 *)16063 sys_lib_search_path_spec=$LIB16064 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then16065 # It is most probably a Windows format PATH.16066 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`16067 else16068 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`16069 fi16070 # FIXME: find the short name or the path components, as spaces are16071 # common. (e.g. "Program Files" -> "PROGRA~1")16072 ;;16073 esac16074 16075 # DLL is installed to $(libdir)/../bin by postinstall_cmds16076 postinstall_cmds='base_file=`basename \$file`~16077 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~16078 dldir=$destdir/`dirname \$dlpath`~16079 test -d \$dldir || mkdir -p \$dldir~16080 $install_prog $dir/$dlname \$dldir/$dlname'16081 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~16082 dlpath=$dir/\$dldll~16083 $RM \$dlpath'16084 shlibpath_overrides_runpath=yes16085 dynamic_linker='Win32 link.exe'16086 ;;16087 16088 *)16089 # Assume MSVC wrapper16090 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'16091 dynamic_linker='Win32 ld.exe'16092 ;;16093 esac16094 # FIXME: first we should search . and the directory the executable is in16095 shlibpath_var=PATH16096 ;;16097 16098 darwin* | rhapsody*)16099 dynamic_linker="$host_os dyld"16100 version_type=darwin16101 need_lib_prefix=no16102 need_version=no16103 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'16104 soname_spec='$libname$release$major$shared_ext'16105 shlibpath_overrides_runpath=yes16106 shlibpath_var=DYLD_LIBRARY_PATH16107 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'16108 16109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'16110 ;;16111 16112 dgux*)16113 version_type=linux # correct to gnu/linux during the next big refactor16114 need_lib_prefix=no16115 need_version=no16116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16117 soname_spec='$libname$release$shared_ext$major'16118 shlibpath_var=LD_LIBRARY_PATH16119 ;;16120 16121 freebsd* | dragonfly*)16122 # DragonFly does not have aout. When/if they implement a new16123 # versioning mechanism, adjust this.16124 if test -x /usr/bin/objformat; then16125 objformat=`/usr/bin/objformat`16126 else16127 case $host_os in16128 freebsd[23].*) objformat=aout ;;16129 *) objformat=elf ;;16130 esac16131 fi16132 version_type=freebsd-$objformat16133 case $version_type in16134 freebsd-elf*)16135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16136 soname_spec='$libname$release$shared_ext$major'16137 need_version=no16138 need_lib_prefix=no16139 ;;16140 freebsd-*)16141 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16142 need_version=yes16143 ;;16144 esac16145 shlibpath_var=LD_LIBRARY_PATH16146 case $host_os in16147 freebsd2.*)16148 shlibpath_overrides_runpath=yes16149 ;;16150 freebsd3.[01]* | freebsdelf3.[01]*)16151 shlibpath_overrides_runpath=yes16152 hardcode_into_libs=yes16153 ;;16154 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \16155 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)16156 shlibpath_overrides_runpath=no16157 hardcode_into_libs=yes16158 ;;16159 *) # from 4.6 on, and DragonFly16160 shlibpath_overrides_runpath=yes16161 hardcode_into_libs=yes16162 ;;16163 esac16164 ;;16165 16166 haiku*)16167 version_type=linux # correct to gnu/linux during the next big refactor16168 need_lib_prefix=no16169 need_version=no16170 dynamic_linker="$host_os runtime_loader"16171 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16172 soname_spec='$libname$release$shared_ext$major'16173 shlibpath_var=LIBRARY_PATH16174 shlibpath_overrides_runpath=no16175 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'16176 hardcode_into_libs=yes16177 ;;16178 16179 hpux9* | hpux10* | hpux11*)16180 # Give a soname corresponding to the major version so that dld.sl refuses to16181 # link against other versions.16182 version_type=sunos16183 need_lib_prefix=no16184 need_version=no16185 case $host_cpu in16186 ia64*)16187 shrext_cmds='.so'16188 hardcode_into_libs=yes16189 dynamic_linker="$host_os dld.so"16190 shlibpath_var=LD_LIBRARY_PATH16191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.16192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16193 soname_spec='$libname$release$shared_ext$major'16194 if test 32 = "$HPUX_IA64_MODE"; then16195 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"16196 sys_lib_dlsearch_path_spec=/usr/lib/hpux3216197 else16198 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"16199 sys_lib_dlsearch_path_spec=/usr/lib/hpux6416200 fi16201 ;;16202 hppa*64*)16203 shrext_cmds='.sl'16204 hardcode_into_libs=yes16205 dynamic_linker="$host_os dld.sl"16206 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH16207 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.16208 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16209 soname_spec='$libname$release$shared_ext$major'16210 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"16211 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16212 ;;16213 *)16214 shrext_cmds='.sl'16215 dynamic_linker="$host_os dld.sl"16216 shlibpath_var=SHLIB_PATH16217 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH16218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16219 soname_spec='$libname$release$shared_ext$major'16220 ;;16221 esac16222 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...16223 postinstall_cmds='chmod 555 $lib'16224 # or fails outright, so override atomically:16225 install_override_mode=55516226 ;;16227 16228 interix[3-9]*)16229 version_type=linux # correct to gnu/linux during the next big refactor16230 need_lib_prefix=no16231 need_version=no16232 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16233 soname_spec='$libname$release$shared_ext$major'16234 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'16235 shlibpath_var=LD_LIBRARY_PATH16236 shlibpath_overrides_runpath=no16237 hardcode_into_libs=yes16238 ;;16239 16240 irix5* | irix6* | nonstopux*)16241 case $host_os in16242 nonstopux*) version_type=nonstopux ;;16243 *)16244 if test yes = "$lt_cv_prog_gnu_ld"; then16245 version_type=linux # correct to gnu/linux during the next big refactor16246 else16247 version_type=irix16248 fi ;;16249 esac16250 need_lib_prefix=no16251 need_version=no16252 soname_spec='$libname$release$shared_ext$major'16253 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'16254 case $host_os in16255 irix5* | nonstopux*)16256 libsuff= shlibsuff=16257 ;;16258 *)16259 case $LD in # libtool.m4 will add one of these switches to LD16260 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")16261 libsuff= shlibsuff= libmagic=32-bit;;16262 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")16263 libsuff=32 shlibsuff=N32 libmagic=N32;;16264 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")16265 libsuff=64 shlibsuff=64 libmagic=64-bit;;16266 *) libsuff= shlibsuff= libmagic=never-match;;16267 esac16268 ;;16269 esac16270 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH16271 shlibpath_overrides_runpath=no16272 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"16273 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"16274 hardcode_into_libs=yes16275 ;;16276 16277 # No shared lib support for Linux oldld, aout, or coff.16278 linux*oldld* | linux*aout* | linux*coff*)16279 dynamic_linker=no16280 ;;16281 16282 linux*android*)16283 version_type=none # Android doesn't support versioned libraries.16284 need_lib_prefix=no16285 need_version=no16286 library_names_spec='$libname$release$shared_ext'16287 soname_spec='$libname$release$shared_ext'16288 finish_cmds=16289 shlibpath_var=LD_LIBRARY_PATH16290 shlibpath_overrides_runpath=yes16291 16292 # This implies no fast_install, which is unacceptable.16293 # Some rework will be needed to allow for fast_install16294 # before this can be enabled.16295 hardcode_into_libs=yes16296 16297 dynamic_linker='Android linker'16298 # Don't embed -rpath directories since the linker doesn't support them.16299 hardcode_libdir_flag_spec_CXX='-L$libdir'16300 ;;16301 16302 # This must be glibc/ELF.16303 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)16304 version_type=linux # correct to gnu/linux during the next big refactor16305 need_lib_prefix=no16306 need_version=no16307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16308 soname_spec='$libname$release$shared_ext$major'16309 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'16310 shlibpath_var=LD_LIBRARY_PATH16311 shlibpath_overrides_runpath=no16312 16313 # Some binutils ld are patched to set DT_RUNPATH16314 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :16315 $as_echo_n "(cached) " >&616316 else16317 lt_cv_shlibpath_overrides_runpath=no16318 save_LDFLAGS=$LDFLAGS16319 save_libdir=$libdir16320 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \16321 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16323 /* end confdefs.h. */16324 16325 int16326 main ()16327 {16328 16329 ;16330 return 0;16331 }16332 _ACEOF16333 if ac_fn_cxx_try_link "$LINENO"; then :16334 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :16335 lt_cv_shlibpath_overrides_runpath=yes16336 fi16337 fi16338 rm -f core conftest.err conftest.$ac_objext \16339 conftest$ac_exeext conftest.$ac_ext16340 LDFLAGS=$save_LDFLAGS16341 libdir=$save_libdir16342 16343 fi16344 16345 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath16346 16347 # This implies no fast_install, which is unacceptable.16348 # Some rework will be needed to allow for fast_install16349 # before this can be enabled.16350 hardcode_into_libs=yes16351 16352 # Ideally, we could use ldconfig to report *all* directores which are16353 # searched for libraries, however this is still not possible. Aside from not16354 # being certain /sbin/ldconfig is available, command16355 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,16356 # even though it is searched at run-time. Try to do the best guess by16357 # appending ld.so.conf contents (and includes) to the search path.16358 if test -f /etc/ld.so.conf; then16359 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' ' '`16360 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"16361 fi16362 16363 # We used to test for /lib/ld.so.1 and disable shared libraries on16364 # powerpc, because MkLinux only supported shared libraries with the16365 # GNU dynamic linker. Since this was broken with cross compilers,16366 # most powerpc-linux boxes support dynamic linking these days and16367 # people can always --disable-shared, the test was removed, and we16368 # assume the GNU/Linux dynamic linker is in use.16369 dynamic_linker='GNU/Linux ld.so'16370 ;;16371 16372 netbsdelf*-gnu)16373 version_type=linux16374 need_lib_prefix=no16375 need_version=no16376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'16377 soname_spec='${libname}${release}${shared_ext}$major'16378 shlibpath_var=LD_LIBRARY_PATH16379 shlibpath_overrides_runpath=no16380 hardcode_into_libs=yes16381 dynamic_linker='NetBSD ld.elf_so'16382 ;;16383 16384 netbsd*)16385 version_type=sunos16386 need_lib_prefix=no16387 need_version=no16388 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then16389 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16390 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'16391 dynamic_linker='NetBSD (a.out) ld.so'16392 else16393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16394 soname_spec='$libname$release$shared_ext$major'16395 dynamic_linker='NetBSD ld.elf_so'16396 fi16397 shlibpath_var=LD_LIBRARY_PATH16398 shlibpath_overrides_runpath=yes16399 hardcode_into_libs=yes16400 ;;16401 16402 newsos6)16403 version_type=linux # correct to gnu/linux during the next big refactor16404 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16405 shlibpath_var=LD_LIBRARY_PATH16406 shlibpath_overrides_runpath=yes16407 ;;16408 16409 *nto* | *qnx*)16410 version_type=qnx16411 need_lib_prefix=no16412 need_version=no16413 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16414 soname_spec='$libname$release$shared_ext$major'16415 shlibpath_var=LD_LIBRARY_PATH16416 shlibpath_overrides_runpath=no16417 hardcode_into_libs=yes16418 dynamic_linker='ldqnx.so'16419 ;;16420 16421 openbsd* | bitrig*)16422 version_type=sunos16423 sys_lib_dlsearch_path_spec=/usr/lib16424 need_lib_prefix=no16425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then16426 need_version=no16427 else16428 need_version=yes16429 fi16430 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'16432 shlibpath_var=LD_LIBRARY_PATH16433 shlibpath_overrides_runpath=yes16434 ;;16435 16436 os2*)16437 libname_spec='$name'16438 version_type=windows16439 shrext_cmds=.dll16440 need_version=no16441 need_lib_prefix=no16442 # OS/2 can only load a DLL with a base name of 8 characters or less.16443 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";16444 v=$($ECHO $release$versuffix | tr -d .-);16445 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);16446 $ECHO $n$v`$shared_ext'16447 library_names_spec='${libname}_dll.$libext'16448 dynamic_linker='OS/2 ld.exe'16449 shlibpath_var=BEGINLIBPATH16450 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"16451 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16452 postinstall_cmds='base_file=`basename \$file`~16453 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~16454 dldir=$destdir/`dirname \$dlpath`~16455 test -d \$dldir || mkdir -p \$dldir~16456 $install_prog $dir/$dlname \$dldir/$dlname~16457 chmod a+x \$dldir/$dlname~16458 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then16459 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;16460 fi'16461 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~16462 dlpath=$dir/\$dldll~16463 $RM \$dlpath'16464 ;;16465 16466 osf3* | osf4* | osf5*)16467 version_type=osf16468 need_lib_prefix=no16469 need_version=no16470 soname_spec='$libname$release$shared_ext$major'16471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16472 shlibpath_var=LD_LIBRARY_PATH16473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"16474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec16475 ;;16476 16477 rdos*)16478 dynamic_linker=no16479 ;;16480 16481 solaris*)16482 version_type=linux # correct to gnu/linux during the next big refactor16483 need_lib_prefix=no16484 need_version=no16485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16486 soname_spec='$libname$release$shared_ext$major'16487 shlibpath_var=LD_LIBRARY_PATH16488 shlibpath_overrides_runpath=yes16489 hardcode_into_libs=yes16490 # ldd complains unless libraries are executable16491 postinstall_cmds='chmod +x $lib'16492 ;;16493 16494 sunos4*)16495 version_type=sunos16496 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'16497 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'16498 shlibpath_var=LD_LIBRARY_PATH16499 shlibpath_overrides_runpath=yes16500 if test yes = "$with_gnu_ld"; then16501 need_lib_prefix=no16502 fi16503 need_version=yes16504 ;;16505 16506 sysv4 | sysv4.3*)16507 version_type=linux # correct to gnu/linux during the next big refactor16508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16509 soname_spec='$libname$release$shared_ext$major'16510 shlibpath_var=LD_LIBRARY_PATH16511 case $host_vendor in16512 sni)16513 shlibpath_overrides_runpath=no16514 need_lib_prefix=no16515 runpath_var=LD_RUN_PATH16516 ;;16517 siemens)16518 need_lib_prefix=no16519 ;;16520 motorola)16521 need_lib_prefix=no16522 need_version=no16523 shlibpath_overrides_runpath=no16524 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'16525 ;;16526 esac16527 ;;16528 16529 sysv4*MP*)16530 if test -d /usr/nec; then16531 version_type=linux # correct to gnu/linux during the next big refactor16532 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'16533 soname_spec='$libname$shared_ext.$major'16534 shlibpath_var=LD_LIBRARY_PATH16535 fi16536 ;;16537 16538 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)16539 version_type=sco16540 need_lib_prefix=no16541 need_version=no16542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'16543 soname_spec='$libname$release$shared_ext$major'16544 shlibpath_var=LD_LIBRARY_PATH16545 shlibpath_overrides_runpath=yes16546 hardcode_into_libs=yes16547 if test yes = "$with_gnu_ld"; then16548 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'16549 else16550 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'16551 case $host_os in16552 sco3.2v5*)16553 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"16554 ;;16555 esac16556 fi16557 sys_lib_dlsearch_path_spec='/usr/lib'16558 ;;16559 16560 tpf*)16561 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.16562 version_type=linux # correct to gnu/linux during the next big refactor16563 need_lib_prefix=no16564 need_version=no16565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16566 shlibpath_var=LD_LIBRARY_PATH16567 shlibpath_overrides_runpath=no16568 hardcode_into_libs=yes16569 ;;16570 16571 uts4*)16572 version_type=linux # correct to gnu/linux during the next big refactor16573 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'16574 soname_spec='$libname$release$shared_ext$major'16575 shlibpath_var=LD_LIBRARY_PATH16576 ;;16577 16578 *)16579 dynamic_linker=no16580 ;;16581 esac16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&516583 $as_echo "$dynamic_linker" >&6; }16584 test no = "$dynamic_linker" && can_build_shared=no16585 16586 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"16587 if test yes = "$GCC"; then16588 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"16589 fi16590 16591 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then16592 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec16593 fi16594 16595 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then16596 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec16597 fi16598 16599 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...16600 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec16601 16602 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code16603 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"16604 16605 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool16606 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&516648 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }16649 hardcode_action_CXX=16650 if test -n "$hardcode_libdir_flag_spec_CXX" ||16651 test -n "$runpath_var_CXX" ||16652 test yes = "$hardcode_automatic_CXX"; then16653 16654 # We can hardcode non-existent directories.16655 if test no != "$hardcode_direct_CXX" &&16656 # If the only mechanism to avoid hardcoding is shlibpath_var, we16657 # have to relink, otherwise we might link with an installed library16658 # when we should be linking with a yet-to-be-installed one16659 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&16660 test no != "$hardcode_minus_L_CXX"; then16661 # Linking always hardcodes the temporary library directory.16662 hardcode_action_CXX=relink16663 else16664 # We can link without hardcoding, and we can hardcode nonexisting dirs.16665 hardcode_action_CXX=immediate16666 fi16667 else16668 # We cannot hardcode anything, or else we can only hardcode existing16669 # directories.16670 hardcode_action_CXX=unsupported16671 fi16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&516673 $as_echo "$hardcode_action_CXX" >&6; }16674 16675 if test relink = "$hardcode_action_CXX" ||16676 test yes = "$inherit_rpath_CXX"; then16677 # Fast installation is not supported16678 enable_fast_install=no16679 elif test yes = "$shlibpath_overrides_runpath" ||16680 test no = "$enable_shared"; then16681 # Fast installation is not necessary16682 enable_fast_install=needless16683 fi16684 16685 16686 16687 16688 16689 16690 16691 fi # test -n "$compiler"16692 16693 CC=$lt_save_CC16694 CFLAGS=$lt_save_CFLAGS16695 LDCXX=$LD16696 LD=$lt_save_LD16697 GCC=$lt_save_GCC16698 with_gnu_ld=$lt_save_with_gnu_ld16699 lt_cv_path_LDCXX=$lt_cv_path_LD16700 lt_cv_path_LD=$lt_save_path_LD16701 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld16702 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld16703 fi # test yes != "$_lt_caught_CXX_error"16704 16705 ac_ext=c16706 ac_cpp='$CPP $CPPFLAGS'16707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'16708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'16709 ac_compiler_gnu=$ac_cv_c_compiler_gnu16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 ac_config_commands="$ac_config_commands libtool"16726 16727 16728 16729 16730 # Only expand once:16731 16732 16733 16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&516735 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }16736 set x ${MAKE-make}16737 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`16738 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :16739 $as_echo_n "(cached) " >&616740 else16741 cat >conftest.make <<\_ACEOF16742 SHELL = /bin/sh16743 all:16744 @echo '@@@%%%=$(MAKE)=@@@%%%'16745 _ACEOF16746 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.16747 case `${MAKE-make} -f conftest.make 2>/dev/null` in16748 *@@@%%%=?*=@@@%%%*)16749 eval ac_cv_prog_make_${ac_make}_set=yes;;16750 *)16751 eval ac_cv_prog_make_${ac_make}_set=no;;16752 esac16753 rm -f conftest.make16754 fi16755 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&516757 $as_echo "yes" >&6; }16758 SET_MAKE=16759 else16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&516761 $as_echo "no" >&6; }16762 SET_MAKE="MAKE=${MAKE-make}"16763 fi16764 16765 16766 # Checks for libraries.16767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&516768 $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; }16769 if ${ac_cv_lib_fibre_Fibre__yield+:} false; then :16770 $as_echo_n "(cached) " >&616771 else16772 ac_check_lib_save_LIBS=$LIBS16773 LIBS="-lfibre $LIBS"16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext16775 /* end confdefs.h. */16776 16777 /* Override any GCC internal prototype to avoid an error.16778 Use char because int might match the return type of a GCC16779 builtin and then its argument prototype would still apply. */16780 #ifdef __cplusplus16781 extern "C"16782 #endif16783 char Fibre::yield ();16784 int16785 main ()16786 {16787 return Fibre::yield ();16788 ;16789 return 0;16790 }16791 _ACEOF16792 if ac_fn_c_try_link "$LINENO"; then :16793 ac_cv_lib_fibre_Fibre__yield=yes16794 else16795 ac_cv_lib_fibre_Fibre__yield=no16796 fi16797 rm -f core conftest.err conftest.$ac_objext \16798 conftest$ac_exeext conftest.$ac_ext16799 LIBS=$ac_check_lib_save_LIBS16800 fi16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&516802 $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; }16803 if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then :16804 HAVE_LIBFIBRE=116805 else16806 HAVE_LIBFIBRE=016807 fi16808 16809 if test "$HAVE_LIBFIBRE" -eq 1; then16810 WITH_LIBFIBRE_TRUE=16811 WITH_LIBFIBRE_FALSE='#'16812 else16813 WITH_LIBFIBRE_TRUE='#'16814 WITH_LIBFIBRE_FALSE=16815 fi16816 16817 16818 # Checks for header files.16819 5892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16820 5893 if test "x$ac_cv_type_size_t" = xyes; then : … … 17307 6380 fi 17308 6381 done 17309 17310 17311 #==============================================================================17312 # backend compiler implementation17313 17314 cat >>confdefs.h <<_ACEOF17315 #define CFA_BACKEND_CC "${CC}"17316 _ACEOF17317 17318 6382 17319 6383 … … 18060 7124 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18061 7125 18062 18063 # The HP-UX ksh and POSIX shell print the target directory to stdout18064 # if CDPATH is set.18065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH18066 18067 sed_quote_subst='$sed_quote_subst'18068 double_quote_subst='$double_quote_subst'18069 delay_variable_subst='$delay_variable_subst'18070 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'18071 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'18072 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'18073 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'18074 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'18075 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'18076 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'18077 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'18078 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'18079 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'18080 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'18081 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'18082 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'18083 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'18084 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'18085 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'18086 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'18087 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'18088 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'18089 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'18090 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'18091 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'18092 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'18093 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'18094 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'18095 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'18096 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'18097 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'18098 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'18099 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'18100 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'18101 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'18102 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'18103 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'18104 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'18105 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'18106 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'18107 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'18108 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'18109 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'18110 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'18111 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'18112 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'18113 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'18114 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'18115 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'18116 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'18117 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'18118 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'18119 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'18120 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'18121 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'18122 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'18123 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'18124 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'18125 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'18126 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'18127 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'18128 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"`'18129 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'18130 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'18131 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'18132 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'18133 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'18134 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'18135 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'18136 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'18137 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'18138 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'18139 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'18140 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'18141 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'18142 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'18143 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'18144 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'18145 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'18146 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'18147 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'18148 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'18149 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'18150 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'18151 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'18152 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'18153 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'18154 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'18155 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'18156 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'18157 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'18158 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'18159 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'18160 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'18161 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'18162 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'18163 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'18164 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'18165 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'18166 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'18167 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'18168 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'18169 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'18170 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'18171 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'18172 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'18173 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'18174 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'18175 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'18176 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'18177 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'18178 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'18179 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'18180 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'18181 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'18182 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'18183 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'18184 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'18185 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'18186 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'18187 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'18188 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'18189 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'18190 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'18191 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'18192 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'18193 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'18194 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'18195 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'18196 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'18197 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'18198 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'18199 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'18200 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'18201 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'18202 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'18203 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'18204 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'18205 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'18206 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'18207 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'18208 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'18209 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'18210 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'18211 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'18212 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'18213 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'18214 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'18215 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'18216 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'18217 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'18218 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'18219 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'18220 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'18221 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'18222 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'18223 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'18224 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18225 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18226 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'18227 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'18228 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'18229 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'18230 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'18231 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'18232 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'18233 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'18234 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'18235 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'18236 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'18237 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'18238 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'18239 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'18240 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'18241 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'18242 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'18243 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'18244 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'18245 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'18246 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'18247 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'18248 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'18249 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'18250 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'18251 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'18252 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'18253 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'18254 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'18255 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'18256 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'18257 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'18258 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'18259 18260 LTCC='$LTCC'18261 LTCFLAGS='$LTCFLAGS'18262 compiler='$compiler_DEFAULT'18263 18264 # A function that is used when there is no print builtin or printf.18265 func_fallback_echo ()18266 {18267 eval 'cat <<_LTECHO_EOF18268 \$118269 _LTECHO_EOF'18270 }18271 18272 # Quote evaled strings.18273 for var in SHELL \18274 ECHO \18275 PATH_SEPARATOR \18276 SED \18277 GREP \18278 EGREP \18279 FGREP \18280 LD \18281 NM \18282 LN_S \18283 lt_SP2NL \18284 lt_NL2SP \18285 reload_flag \18286 OBJDUMP \18287 deplibs_check_method \18288 file_magic_cmd \18289 file_magic_glob \18290 want_nocaseglob \18291 DLLTOOL \18292 sharedlib_from_linklib_cmd \18293 AR \18294 AR_FLAGS \18295 archiver_list_spec \18296 STRIP \18297 RANLIB \18298 CC \18299 CFLAGS \18300 compiler \18301 lt_cv_sys_global_symbol_pipe \18302 lt_cv_sys_global_symbol_to_cdecl \18303 lt_cv_sys_global_symbol_to_import \18304 lt_cv_sys_global_symbol_to_c_name_address \18305 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \18306 lt_cv_nm_interface \18307 nm_file_list_spec \18308 lt_cv_truncate_bin \18309 lt_prog_compiler_no_builtin_flag \18310 lt_prog_compiler_pic \18311 lt_prog_compiler_wl \18312 lt_prog_compiler_static \18313 lt_cv_prog_compiler_c_o \18314 need_locks \18315 MANIFEST_TOOL \18316 DSYMUTIL \18317 NMEDIT \18318 LIPO \18319 OTOOL \18320 OTOOL64 \18321 shrext_cmds \18322 export_dynamic_flag_spec \18323 whole_archive_flag_spec \18324 compiler_needs_object \18325 with_gnu_ld \18326 allow_undefined_flag \18327 no_undefined_flag \18328 hardcode_libdir_flag_spec \18329 hardcode_libdir_separator \18330 exclude_expsyms \18331 include_expsyms \18332 file_list_spec \18333 variables_saved_for_relink \18334 libname_spec \18335 library_names_spec \18336 soname_spec \18337 install_override_mode \18338 finish_eval \18339 old_striplib \18340 striplib \18341 compiler_lib_search_dirs \18342 predep_objects \18343 postdep_objects \18344 predeps \18345 postdeps \18346 compiler_lib_search_path \18347 LD_CXX \18348 reload_flag_CXX \18349 compiler_CXX \18350 lt_prog_compiler_no_builtin_flag_CXX \18351 lt_prog_compiler_pic_CXX \18352 lt_prog_compiler_wl_CXX \18353 lt_prog_compiler_static_CXX \18354 lt_cv_prog_compiler_c_o_CXX \18355 export_dynamic_flag_spec_CXX \18356 whole_archive_flag_spec_CXX \18357 compiler_needs_object_CXX \18358 with_gnu_ld_CXX \18359 allow_undefined_flag_CXX \18360 no_undefined_flag_CXX \18361 hardcode_libdir_flag_spec_CXX \18362 hardcode_libdir_separator_CXX \18363 exclude_expsyms_CXX \18364 include_expsyms_CXX \18365 file_list_spec_CXX \18366 compiler_lib_search_dirs_CXX \18367 predep_objects_CXX \18368 postdep_objects_CXX \18369 predeps_CXX \18370 postdeps_CXX \18371 compiler_lib_search_path_CXX; do18372 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in18373 *[\\\\\\\`\\"\\\$]*)18374 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes18375 ;;18376 *)18377 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""18378 ;;18379 esac18380 done18381 18382 # Double-quote double-evaled strings.18383 for var in reload_cmds \18384 old_postinstall_cmds \18385 old_postuninstall_cmds \18386 old_archive_cmds \18387 extract_expsyms_cmds \18388 old_archive_from_new_cmds \18389 old_archive_from_expsyms_cmds \18390 archive_cmds \18391 archive_expsym_cmds \18392 module_cmds \18393 module_expsym_cmds \18394 export_symbols_cmds \18395 prelink_cmds \18396 postlink_cmds \18397 postinstall_cmds \18398 postuninstall_cmds \18399 finish_cmds \18400 sys_lib_search_path_spec \18401 configure_time_dlsearch_path \18402 configure_time_lt_sys_library_path \18403 reload_cmds_CXX \18404 old_archive_cmds_CXX \18405 old_archive_from_new_cmds_CXX \18406 old_archive_from_expsyms_cmds_CXX \18407 archive_cmds_CXX \18408 archive_expsym_cmds_CXX \18409 module_cmds_CXX \18410 module_expsym_cmds_CXX \18411 export_symbols_cmds_CXX \18412 prelink_cmds_CXX \18413 postlink_cmds_CXX; do18414 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in18415 *[\\\\\\\`\\"\\\$]*)18416 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes18417 ;;18418 *)18419 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""18420 ;;18421 esac18422 done18423 18424 ac_aux_dir='$ac_aux_dir'18425 18426 # See if we are running on zsh, and set the options that allow our18427 # commands through without removal of \ escapes INIT.18428 if test -n "\${ZSH_VERSION+set}"; then18429 setopt NO_GLOB_SUBST18430 fi18431 18432 18433 PACKAGE='$PACKAGE'18434 VERSION='$VERSION'18435 RM='$RM'18436 ofile='$ofile'18437 18438 18439 18440 18441 18442 18443 7126 _ACEOF 18444 7127 … … 18451 7134 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:src/config.h.in" ;; 18452 7135 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18453 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;18454 7136 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18455 7137 "driver/Makefile") CONFIG_FILES="$CONFIG_FILES driver/Makefile" ;; … … 19182 7864 } 19183 7865 ;; 19184 "libtool":C)19185 19186 # See if we are running on zsh, and set the options that allow our19187 # commands through without removal of \ escapes.19188 if test -n "${ZSH_VERSION+set}"; then19189 setopt NO_GLOB_SUBST19190 fi19191 19192 cfgfile=${ofile}T19193 trap "$RM \"$cfgfile\"; exit 1" 1 2 1519194 $RM "$cfgfile"19195 19196 cat <<_LT_EOF >> "$cfgfile"19197 #! $SHELL19198 # Generated automatically by $as_me ($PACKAGE) $VERSION19199 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:19200 # NOTE: Changes made to this file will be lost: look at ltmain.sh.19201 19202 # Provide generalized library-building support services.19203 # Written by Gordon Matzigkeit, 199619204 19205 # Copyright (C) 2014 Free Software Foundation, Inc.19206 # This is free software; see the source for copying conditions. There is NO19207 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.19208 19209 # GNU Libtool is free software; you can redistribute it and/or modify19210 # it under the terms of the GNU General Public License as published by19211 # the Free Software Foundation; either version 2 of of the License, or19212 # (at your option) any later version.19213 #19214 # As a special exception to the GNU General Public License, if you19215 # distribute this file as part of a program or library that is built19216 # using GNU Libtool, you may include this file under the same19217 # distribution terms that you use for the rest of that program.19218 #19219 # GNU Libtool is distributed in the hope that it will be useful, but19220 # WITHOUT ANY WARRANTY; without even the implied warranty of19221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the19222 # GNU General Public License for more details.19223 #19224 # You should have received a copy of the GNU General Public License19225 # along with this program. If not, see <http://www.gnu.org/licenses/>.19226 19227 19228 # The names of the tagged configurations supported by this script.19229 available_tags='CXX '19230 19231 # Configured defaults for sys_lib_dlsearch_path munging.19232 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}19233 19234 # ### BEGIN LIBTOOL CONFIG19235 19236 # Which release of libtool.m4 was used?19237 macro_version=$macro_version19238 macro_revision=$macro_revision19239 19240 # Whether or not to build shared libraries.19241 build_libtool_libs=$enable_shared19242 19243 # Whether or not to build static libraries.19244 build_old_libs=$enable_static19245 19246 # What type of objects to build.19247 pic_mode=$pic_mode19248 19249 # Whether or not to optimize for fast installation.19250 fast_install=$enable_fast_install19251 19252 # Shared archive member basename,for filename based shared library versioning on AIX.19253 shared_archive_member_spec=$shared_archive_member_spec19254 19255 # Shell to use when invoking shell scripts.19256 SHELL=$lt_SHELL19257 19258 # An echo program that protects backslashes.19259 ECHO=$lt_ECHO19260 19261 # The PATH separator for the build system.19262 PATH_SEPARATOR=$lt_PATH_SEPARATOR19263 19264 # The host system.19265 host_alias=$host_alias19266 host=$host19267 host_os=$host_os19268 19269 # The build system.19270 build_alias=$build_alias19271 build=$build19272 build_os=$build_os19273 19274 # A sed program that does not truncate output.19275 SED=$lt_SED19276 19277 # Sed that helps us avoid accidentally triggering echo(1) options like -n.19278 Xsed="\$SED -e 1s/^X//"19279 19280 # A grep program that handles long lines.19281 GREP=$lt_GREP19282 19283 # An ERE matcher.19284 EGREP=$lt_EGREP19285 19286 # A literal string matcher.19287 FGREP=$lt_FGREP19288 19289 # A BSD- or MS-compatible name lister.19290 NM=$lt_NM19291 19292 # Whether we need soft or hard links.19293 LN_S=$lt_LN_S19294 19295 # What is the maximum length of a command?19296 max_cmd_len=$max_cmd_len19297 19298 # Object file suffix (normally "o").19299 objext=$ac_objext19300 19301 # Executable file suffix (normally "").19302 exeext=$exeext19303 19304 # whether the shell understands "unset".19305 lt_unset=$lt_unset19306 19307 # turn spaces into newlines.19308 SP2NL=$lt_lt_SP2NL19309 19310 # turn newlines into spaces.19311 NL2SP=$lt_lt_NL2SP19312 19313 # convert \$build file names to \$host format.19314 to_host_file_cmd=$lt_cv_to_host_file_cmd19315 19316 # convert \$build files to toolchain format.19317 to_tool_file_cmd=$lt_cv_to_tool_file_cmd19318 19319 # An object symbol dumper.19320 OBJDUMP=$lt_OBJDUMP19321 19322 # Method to check whether dependent libraries are shared objects.19323 deplibs_check_method=$lt_deplibs_check_method19324 19325 # Command to use when deplibs_check_method = "file_magic".19326 file_magic_cmd=$lt_file_magic_cmd19327 19328 # How to find potential files when deplibs_check_method = "file_magic".19329 file_magic_glob=$lt_file_magic_glob19330 19331 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".19332 want_nocaseglob=$lt_want_nocaseglob19333 19334 # DLL creation program.19335 DLLTOOL=$lt_DLLTOOL19336 19337 # Command to associate shared and link libraries.19338 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd19339 19340 # The archiver.19341 AR=$lt_AR19342 19343 # Flags to create an archive.19344 AR_FLAGS=$lt_AR_FLAGS19345 19346 # How to feed a file listing to the archiver.19347 archiver_list_spec=$lt_archiver_list_spec19348 19349 # A symbol stripping program.19350 STRIP=$lt_STRIP19351 19352 # Commands used to install an old-style archive.19353 RANLIB=$lt_RANLIB19354 old_postinstall_cmds=$lt_old_postinstall_cmds19355 old_postuninstall_cmds=$lt_old_postuninstall_cmds19356 19357 # Whether to use a lock for old archive extraction.19358 lock_old_archive_extraction=$lock_old_archive_extraction19359 19360 # A C compiler.19361 LTCC=$lt_CC19362 19363 # LTCC compiler flags.19364 LTCFLAGS=$lt_CFLAGS19365 19366 # Take the output of nm and produce a listing of raw symbols and C names.19367 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe19368 19369 # Transform the output of nm in a proper C declaration.19370 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl19371 19372 # Transform the output of nm into a list of symbols to manually relocate.19373 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import19374 19375 # Transform the output of nm in a C name address pair.19376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address19377 19378 # Transform the output of nm in a C name address pair when lib prefix is needed.19379 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix19380 19381 # The name lister interface.19382 nm_interface=$lt_lt_cv_nm_interface19383 19384 # Specify filename containing input files for \$NM.19385 nm_file_list_spec=$lt_nm_file_list_spec19386 19387 # The root where to search for dependent libraries,and where our libraries should be installed.19388 lt_sysroot=$lt_sysroot19389 19390 # Command to truncate a binary pipe.19391 lt_truncate_bin=$lt_lt_cv_truncate_bin19392 19393 # The name of the directory that contains temporary libtool files.19394 objdir=$objdir19395 19396 # Used to examine libraries when file_magic_cmd begins with "file".19397 MAGIC_CMD=$MAGIC_CMD19398 19399 # Must we lock files when doing compilation?19400 need_locks=$lt_need_locks19401 19402 # Manifest tool.19403 MANIFEST_TOOL=$lt_MANIFEST_TOOL19404 19405 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.19406 DSYMUTIL=$lt_DSYMUTIL19407 19408 # Tool to change global to local symbols on Mac OS X.19409 NMEDIT=$lt_NMEDIT19410 19411 # Tool to manipulate fat objects and archives on Mac OS X.19412 LIPO=$lt_LIPO19413 19414 # ldd/readelf like tool for Mach-O binaries on Mac OS X.19415 OTOOL=$lt_OTOOL19416 19417 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.19418 OTOOL64=$lt_OTOOL6419419 19420 # Old archive suffix (normally "a").19421 libext=$libext19422 19423 # Shared library suffix (normally ".so").19424 shrext_cmds=$lt_shrext_cmds19425 19426 # The commands to extract the exported symbol list from a shared archive.19427 extract_expsyms_cmds=$lt_extract_expsyms_cmds19428 19429 # Variables whose values should be saved in libtool wrapper scripts and19430 # restored at link time.19431 variables_saved_for_relink=$lt_variables_saved_for_relink19432 19433 # Do we need the "lib" prefix for modules?19434 need_lib_prefix=$need_lib_prefix19435 19436 # Do we need a version for libraries?19437 need_version=$need_version19438 19439 # Library versioning type.19440 version_type=$version_type19441 19442 # Shared library runtime path variable.19443 runpath_var=$runpath_var19444 19445 # Shared library path variable.19446 shlibpath_var=$shlibpath_var19447 19448 # Is shlibpath searched before the hard-coded library search path?19449 shlibpath_overrides_runpath=$shlibpath_overrides_runpath19450 19451 # Format of library name prefix.19452 libname_spec=$lt_libname_spec19453 19454 # List of archive names. First name is the real one, the rest are links.19455 # The last name is the one that the linker finds with -lNAME19456 library_names_spec=$lt_library_names_spec19457 19458 # The coded name of the library, if different from the real name.19459 soname_spec=$lt_soname_spec19460 19461 # Permission mode override for installation of shared libraries.19462 install_override_mode=$lt_install_override_mode19463 19464 # Command to use after installation of a shared archive.19465 postinstall_cmds=$lt_postinstall_cmds19466 19467 # Command to use after uninstallation of a shared archive.19468 postuninstall_cmds=$lt_postuninstall_cmds19469 19470 # Commands used to finish a libtool library installation in a directory.19471 finish_cmds=$lt_finish_cmds19472 19473 # As "finish_cmds", except a single script fragment to be evaled but19474 # not shown.19475 finish_eval=$lt_finish_eval19476 19477 # Whether we should hardcode library paths into libraries.19478 hardcode_into_libs=$hardcode_into_libs19479 19480 # Compile-time system search path for libraries.19481 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec19482 19483 # Detected run-time system search path for libraries.19484 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path19485 19486 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.19487 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path19488 19489 # Whether dlopen is supported.19490 dlopen_support=$enable_dlopen19491 19492 # Whether dlopen of programs is supported.19493 dlopen_self=$enable_dlopen_self19494 19495 # Whether dlopen of statically linked programs is supported.19496 dlopen_self_static=$enable_dlopen_self_static19497 19498 # Commands to strip libraries.19499 old_striplib=$lt_old_striplib19500 striplib=$lt_striplib19501 19502 19503 # The linker used to build libraries.19504 LD=$lt_LD19505 19506 # How to create reloadable object files.19507 reload_flag=$lt_reload_flag19508 reload_cmds=$lt_reload_cmds19509 19510 # Commands used to build an old-style archive.19511 old_archive_cmds=$lt_old_archive_cmds19512 19513 # A language specific compiler.19514 CC=$lt_compiler19515 19516 # Is the compiler the GNU compiler?19517 with_gcc=$GCC19518 19519 # Compiler flag to turn off builtin functions.19520 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag19521 19522 # Additional compiler flags for building library objects.19523 pic_flag=$lt_lt_prog_compiler_pic19524 19525 # How to pass a linker flag through the compiler.19526 wl=$lt_lt_prog_compiler_wl19527 19528 # Compiler flag to prevent dynamic linking.19529 link_static_flag=$lt_lt_prog_compiler_static19530 19531 # Does compiler simultaneously support -c and -o options?19532 compiler_c_o=$lt_lt_cv_prog_compiler_c_o19533 19534 # Whether or not to add -lc for building shared libraries.19535 build_libtool_need_lc=$archive_cmds_need_lc19536 19537 # Whether or not to disallow shared libs when runtime libs are static.19538 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes19539 19540 # Compiler flag to allow reflexive dlopens.19541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec19542 19543 # Compiler flag to generate shared objects directly from archives.19544 whole_archive_flag_spec=$lt_whole_archive_flag_spec19545 19546 # Whether the compiler copes with passing no objects directly.19547 compiler_needs_object=$lt_compiler_needs_object19548 19549 # Create an old-style archive from a shared archive.19550 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds19551 19552 # Create a temporary old-style archive to link instead of a shared archive.19553 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds19554 19555 # Commands used to build a shared archive.19556 archive_cmds=$lt_archive_cmds19557 archive_expsym_cmds=$lt_archive_expsym_cmds19558 19559 # Commands used to build a loadable module if different from building19560 # a shared archive.19561 module_cmds=$lt_module_cmds19562 module_expsym_cmds=$lt_module_expsym_cmds19563 19564 # Whether we are building with GNU ld or not.19565 with_gnu_ld=$lt_with_gnu_ld19566 19567 # Flag that allows shared libraries with undefined symbols to be built.19568 allow_undefined_flag=$lt_allow_undefined_flag19569 19570 # Flag that enforces no undefined symbols.19571 no_undefined_flag=$lt_no_undefined_flag19572 19573 # Flag to hardcode \$libdir into a binary during linking.19574 # This must work even if \$libdir does not exist19575 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec19576 19577 # Whether we need a single "-rpath" flag with a separated argument.19578 hardcode_libdir_separator=$lt_hardcode_libdir_separator19579 19580 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19581 # DIR into the resulting binary.19582 hardcode_direct=$hardcode_direct19583 19584 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19585 # DIR into the resulting binary and the resulting library dependency is19586 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19587 # library is relocated.19588 hardcode_direct_absolute=$hardcode_direct_absolute19589 19590 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19591 # into the resulting binary.19592 hardcode_minus_L=$hardcode_minus_L19593 19594 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19595 # into the resulting binary.19596 hardcode_shlibpath_var=$hardcode_shlibpath_var19597 19598 # Set to "yes" if building a shared library automatically hardcodes DIR19599 # into the library and all subsequent libraries and executables linked19600 # against it.19601 hardcode_automatic=$hardcode_automatic19602 19603 # Set to yes if linker adds runtime paths of dependent libraries19604 # to runtime path list.19605 inherit_rpath=$inherit_rpath19606 19607 # Whether libtool must link a program against all its dependency libraries.19608 link_all_deplibs=$link_all_deplibs19609 19610 # Set to "yes" if exported symbols are required.19611 always_export_symbols=$always_export_symbols19612 19613 # The commands to list exported symbols.19614 export_symbols_cmds=$lt_export_symbols_cmds19615 19616 # Symbols that should not be listed in the preloaded symbols.19617 exclude_expsyms=$lt_exclude_expsyms19618 19619 # Symbols that must always be exported.19620 include_expsyms=$lt_include_expsyms19621 19622 # Commands necessary for linking programs (against libraries) with templates.19623 prelink_cmds=$lt_prelink_cmds19624 19625 # Commands necessary for finishing linking programs.19626 postlink_cmds=$lt_postlink_cmds19627 19628 # Specify filename containing input files.19629 file_list_spec=$lt_file_list_spec19630 19631 # How to hardcode a shared library path into an executable.19632 hardcode_action=$hardcode_action19633 19634 # The directories searched by this compiler when creating a shared library.19635 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs19636 19637 # Dependencies to place before and after the objects being linked to19638 # create a shared library.19639 predep_objects=$lt_predep_objects19640 postdep_objects=$lt_postdep_objects19641 predeps=$lt_predeps19642 postdeps=$lt_postdeps19643 19644 # The library search path used internally by the compiler when linking19645 # a shared library.19646 compiler_lib_search_path=$lt_compiler_lib_search_path19647 19648 # ### END LIBTOOL CONFIG19649 19650 _LT_EOF19651 19652 cat <<'_LT_EOF' >> "$cfgfile"19653 19654 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE19655 19656 # func_munge_path_list VARIABLE PATH19657 # -----------------------------------19658 # VARIABLE is name of variable containing _space_ separated list of19659 # directories to be munged by the contents of PATH, which is string19660 # having a format:19661 # "DIR[:DIR]:"19662 # string "DIR[ DIR]" will be prepended to VARIABLE19663 # ":DIR[:DIR]"19664 # string "DIR[ DIR]" will be appended to VARIABLE19665 # "DIRP[:DIRP]::[DIRA:]DIRA"19666 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string19667 # "DIRA[ DIRA]" will be appended to VARIABLE19668 # "DIR[:DIR]"19669 # VARIABLE will be replaced by "DIR[ DIR]"19670 func_munge_path_list ()19671 {19672 case x$2 in19673 x)19674 ;;19675 *:)19676 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"19677 ;;19678 x:*)19679 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"19680 ;;19681 *::*)19682 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"19683 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"19684 ;;19685 *)19686 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"19687 ;;19688 esac19689 }19690 19691 19692 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.19693 func_cc_basename ()19694 {19695 for cc_temp in $*""; do19696 case $cc_temp in19697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;19698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;19699 \-*) ;;19700 *) break;;19701 esac19702 done19703 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`19704 }19705 19706 19707 # ### END FUNCTIONS SHARED WITH CONFIGURE19708 19709 _LT_EOF19710 19711 case $host_os in19712 aix3*)19713 cat <<\_LT_EOF >> "$cfgfile"19714 # AIX sometimes has problems with the GCC collect2 program. For some19715 # reason, if we set the COLLECT_NAMES environment variable, the problems19716 # vanish in a puff of smoke.19717 if test set != "${COLLECT_NAMES+set}"; then19718 COLLECT_NAMES=19719 export COLLECT_NAMES19720 fi19721 _LT_EOF19722 ;;19723 esac19724 19725 19726 ltmain=$ac_aux_dir/ltmain.sh19727 19728 19729 # We use sed instead of cat because bash on DJGPP gets confused if19730 # if finds mixed CR/LF and LF-only lines. Since sed operates in19731 # text mode, it properly converts lines to CR/LF. This bash problem19732 # is reportedly fixed, but why not run on old versions too?19733 sed '$q' "$ltmain" >> "$cfgfile" \19734 || (rm -f "$cfgfile"; exit 1)19735 19736 mv -f "$cfgfile" "$ofile" ||19737 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")19738 chmod +x "$ofile"19739 19740 19741 cat <<_LT_EOF >> "$ofile"19742 19743 # ### BEGIN LIBTOOL TAG CONFIG: CXX19744 19745 # The linker used to build libraries.19746 LD=$lt_LD_CXX19747 19748 # How to create reloadable object files.19749 reload_flag=$lt_reload_flag_CXX19750 reload_cmds=$lt_reload_cmds_CXX19751 19752 # Commands used to build an old-style archive.19753 old_archive_cmds=$lt_old_archive_cmds_CXX19754 19755 # A language specific compiler.19756 CC=$lt_compiler_CXX19757 19758 # Is the compiler the GNU compiler?19759 with_gcc=$GCC_CXX19760 19761 # Compiler flag to turn off builtin functions.19762 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX19763 19764 # Additional compiler flags for building library objects.19765 pic_flag=$lt_lt_prog_compiler_pic_CXX19766 19767 # How to pass a linker flag through the compiler.19768 wl=$lt_lt_prog_compiler_wl_CXX19769 19770 # Compiler flag to prevent dynamic linking.19771 link_static_flag=$lt_lt_prog_compiler_static_CXX19772 19773 # Does compiler simultaneously support -c and -o options?19774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX19775 19776 # Whether or not to add -lc for building shared libraries.19777 build_libtool_need_lc=$archive_cmds_need_lc_CXX19778 19779 # Whether or not to disallow shared libs when runtime libs are static.19780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX19781 19782 # Compiler flag to allow reflexive dlopens.19783 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX19784 19785 # Compiler flag to generate shared objects directly from archives.19786 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX19787 19788 # Whether the compiler copes with passing no objects directly.19789 compiler_needs_object=$lt_compiler_needs_object_CXX19790 19791 # Create an old-style archive from a shared archive.19792 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX19793 19794 # Create a temporary old-style archive to link instead of a shared archive.19795 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX19796 19797 # Commands used to build a shared archive.19798 archive_cmds=$lt_archive_cmds_CXX19799 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX19800 19801 # Commands used to build a loadable module if different from building19802 # a shared archive.19803 module_cmds=$lt_module_cmds_CXX19804 module_expsym_cmds=$lt_module_expsym_cmds_CXX19805 19806 # Whether we are building with GNU ld or not.19807 with_gnu_ld=$lt_with_gnu_ld_CXX19808 19809 # Flag that allows shared libraries with undefined symbols to be built.19810 allow_undefined_flag=$lt_allow_undefined_flag_CXX19811 19812 # Flag that enforces no undefined symbols.19813 no_undefined_flag=$lt_no_undefined_flag_CXX19814 19815 # Flag to hardcode \$libdir into a binary during linking.19816 # This must work even if \$libdir does not exist19817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX19818 19819 # Whether we need a single "-rpath" flag with a separated argument.19820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX19821 19822 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19823 # DIR into the resulting binary.19824 hardcode_direct=$hardcode_direct_CXX19825 19826 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes19827 # DIR into the resulting binary and the resulting library dependency is19828 # "absolute",i.e impossible to change by setting \$shlibpath_var if the19829 # library is relocated.19830 hardcode_direct_absolute=$hardcode_direct_absolute_CXX19831 19832 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR19833 # into the resulting binary.19834 hardcode_minus_L=$hardcode_minus_L_CXX19835 19836 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR19837 # into the resulting binary.19838 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX19839 19840 # Set to "yes" if building a shared library automatically hardcodes DIR19841 # into the library and all subsequent libraries and executables linked19842 # against it.19843 hardcode_automatic=$hardcode_automatic_CXX19844 19845 # Set to yes if linker adds runtime paths of dependent libraries19846 # to runtime path list.19847 inherit_rpath=$inherit_rpath_CXX19848 19849 # Whether libtool must link a program against all its dependency libraries.19850 link_all_deplibs=$link_all_deplibs_CXX19851 19852 # Set to "yes" if exported symbols are required.19853 always_export_symbols=$always_export_symbols_CXX19854 19855 # The commands to list exported symbols.19856 export_symbols_cmds=$lt_export_symbols_cmds_CXX19857 19858 # Symbols that should not be listed in the preloaded symbols.19859 exclude_expsyms=$lt_exclude_expsyms_CXX19860 19861 # Symbols that must always be exported.19862 include_expsyms=$lt_include_expsyms_CXX19863 19864 # Commands necessary for linking programs (against libraries) with templates.19865 prelink_cmds=$lt_prelink_cmds_CXX19866 19867 # Commands necessary for finishing linking programs.19868 postlink_cmds=$lt_postlink_cmds_CXX19869 19870 # Specify filename containing input files.19871 file_list_spec=$lt_file_list_spec_CXX19872 19873 # How to hardcode a shared library path into an executable.19874 hardcode_action=$hardcode_action_CXX19875 19876 # The directories searched by this compiler when creating a shared library.19877 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX19878 19879 # Dependencies to place before and after the objects being linked to19880 # create a shared library.19881 predep_objects=$lt_predep_objects_CXX19882 postdep_objects=$lt_postdep_objects_CXX19883 predeps=$lt_predeps_CXX19884 postdeps=$lt_postdeps_CXX19885 19886 # The library search path used internally by the compiler when linking19887 # a shared library.19888 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX19889 19890 # ### END LIBTOOL TAG CONFIG: CXX19891 _LT_EOF19892 19893 ;;19894 7866 19895 7867 esac
Note:
See TracChangeset
for help on using the changeset viewer.