Changeset 5413 in orxonox.OLD for trunk/configure
- Timestamp:
- Oct 20, 2005, 11:42:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5410 r5413 244 244 245 245 246 247 # Check that we are running under the correct shell.248 SHELL=${CONFIG_SHELL-/bin/sh}249 250 case X$ECHO in251 X*--fallback-echo)252 # Remove one level of quotation (which was required for Make).253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`254 ;;255 esac256 257 echo=${ECHO-echo}258 if test "X$1" = X--no-reexec; then259 # Discard the --no-reexec flag, and continue.260 shift261 elif test "X$1" = X--fallback-echo; then262 # Avoid inline document here, it may be left over263 :264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then265 # Yippee, $echo works!266 :267 else268 # Restart under the correct shell.269 exec $SHELL "$0" --no-reexec ${1+"$@"}270 fi271 272 if test "X$1" = X--fallback-echo; then273 # used as fallback echo274 shift275 cat <<EOF276 $*277 EOF278 exit 0279 fi280 281 # The HP-UX ksh and POSIX shell print the target directory to stdout282 # if CDPATH is set.283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH284 285 if test -z "$ECHO"; then286 if test "X${echo_test_string+set}" != Xset; then287 # find a string as large as possible, as long as the shell can cope with it288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...290 if (echo_test_string=`eval $cmd`) 2>/dev/null &&291 echo_test_string=`eval $cmd` &&292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null293 then294 break295 fi296 done297 fi298 299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&301 test "X$echo_testing_string" = "X$echo_test_string"; then302 :303 else304 # The Solaris, AIX, and Digital Unix default echo programs unquote305 # backslashes. This makes it impossible to quote backslashes using306 # echo "$something" | sed 's/\\/\\\\/g'307 #308 # So, first we look for a working echo in the user's PATH.309 310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR311 for dir in $PATH /usr/ucb; do312 IFS="$lt_save_ifs"313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&316 test "X$echo_testing_string" = "X$echo_test_string"; then317 echo="$dir/echo"318 break319 fi320 done321 IFS="$lt_save_ifs"322 323 if test "X$echo" = Xecho; then324 # We didn't find a better echo, so look for alternatives.325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&327 test "X$echo_testing_string" = "X$echo_test_string"; then328 # This shell has a builtin print -r that does the trick.329 echo='print -r'330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&331 test "X$CONFIG_SHELL" != X/bin/ksh; then332 # If we have ksh, try running configure again with it.333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}334 export ORIGINAL_CONFIG_SHELL335 CONFIG_SHELL=/bin/ksh336 export CONFIG_SHELL337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}338 else339 # Try using printf.340 echo='printf %s\n'341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&343 test "X$echo_testing_string" = "X$echo_test_string"; then344 # Cool, printf works345 :346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&347 test "X$echo_testing_string" = 'X\t' &&348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&349 test "X$echo_testing_string" = "X$echo_test_string"; then350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL351 export CONFIG_SHELL352 SHELL="$CONFIG_SHELL"353 export SHELL354 echo="$CONFIG_SHELL $0 --fallback-echo"355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&356 test "X$echo_testing_string" = 'X\t' &&357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&358 test "X$echo_testing_string" = "X$echo_test_string"; then359 echo="$CONFIG_SHELL $0 --fallback-echo"360 else361 # maybe with a smaller string...362 prev=:363 364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null366 then367 break368 fi369 prev="$cmd"370 done371 372 if test "$prev" != 'sed 50q "$0"'; then373 echo_test_string=`eval $prev`374 export echo_test_string375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}376 else377 # Oops. We lost completely, so just stick with echo.378 echo=echo379 fi380 fi381 fi382 fi383 fi384 fi385 386 # Copy echo and quote the copy suitably for passing to libtool from387 # the Makefile, instead of quoting the original, which is used later.388 ECHO=$echo389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"391 fi392 393 394 395 396 tagnames=${tagnames+${tagnames},}CXX397 398 tagnames=${tagnames+${tagnames},}F77399 400 246 # Name of the host. 401 247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, … … 466 312 #endif" 467 313 468 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOLDEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS'314 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE RANLIB ac_ct_RANLIB CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP DEBUG SUB_PROJECTS_TRUE SUB_PROJECTS_FALSE DOCUMENTATION_TRUE DOCUMENTATION_FALSE DOXYGEN DOXYGEN_TRUE DOXYGEN_FALSE GPROF PKG_CONFIG MSBITFIELDS CURL_LIBS CURL_CFLAGS HAVE_CURL_TRUE HAVE_CURL_FALSE GTK2_LIBS GTK2_CFLAGS HAVE_GTK2_TRUE HAVE_GTK2_FALSE LIBOBJS LTLIBOBJS' 469 315 ac_subst_files='' 470 316 … … 935 781 ac_cv_env_CPP_set=${CPP+set} 936 782 ac_cv_env_CPP_value=$CPP 937 ac_env_CXXCPP_set=${CXXCPP+set}938 ac_env_CXXCPP_value=$CXXCPP939 ac_cv_env_CXXCPP_set=${CXXCPP+set}940 ac_cv_env_CXXCPP_value=$CXXCPP941 ac_env_F77_set=${F77+set}942 ac_env_F77_value=$F77943 ac_cv_env_F77_set=${F77+set}944 ac_cv_env_F77_value=$F77945 ac_env_FFLAGS_set=${FFLAGS+set}946 ac_env_FFLAGS_value=$FFLAGS947 ac_cv_env_FFLAGS_set=${FFLAGS+set}948 ac_cv_env_FFLAGS_value=$FFLAGS949 783 950 784 # … … 1031 865 --disable-dependency-tracking speeds up one-time build 1032 866 --enable-dependency-tracking do not reject slow dependency extractors 1033 --enable-shared[=PKGS]1034 build shared libraries [default=yes]1035 --enable-static[=PKGS]1036 build static libraries [default=yes]1037 --enable-fast-install[=PKGS]1038 optimize for fast installation [default=yes]1039 --disable-libtool-lock avoid locking (might break parallel builds)1040 867 --enable-debug compiles in debug mode. Lots of debug info about the 1041 868 game. … … 1052 879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1053 880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]1055 --with-pic try to use only PIC/non-PIC objects [default=use1056 both]1057 --with-tags[=TAGS]1058 include additional configurations [automatic]1059 881 --with-shared-lib-path Tells the executable, where to look for the shared 1060 882 libraries. … … 1071 893 CFLAGS C compiler flags 1072 894 CPP C preprocessor 1073 CXXCPP C++ preprocessor1074 F77 Fortran 77 compiler command1075 FFLAGS Fortran 77 compiler flags1076 895 1077 896 Use these variables to override the choices made by `configure' or to help … … 2772 2591 2773 2592 2774 # Check whether --enable-shared or --disable-shared was given. 2775 if test "${enable_shared+set}" = set; then 2776 enableval="$enable_shared" 2777 p=${PACKAGE-default} 2778 case $enableval in 2779 yes) enable_shared=yes ;; 2780 no) enable_shared=no ;; 2781 *) 2782 enable_shared=no 2783 # Look at the argument we got. We use all the common list separators. 2784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2785 for pkg in $enableval; do 2786 IFS="$lt_save_ifs" 2787 if test "X$pkg" = "X$p"; then 2788 enable_shared=yes 2789 fi 2790 done 2791 IFS="$lt_save_ifs" 2792 ;; 2793 esac 2794 else 2795 enable_shared=yes 2796 fi; 2797 2798 # Check whether --enable-static or --disable-static was given. 2799 if test "${enable_static+set}" = set; then 2800 enableval="$enable_static" 2801 p=${PACKAGE-default} 2802 case $enableval in 2803 yes) enable_static=yes ;; 2804 no) enable_static=no ;; 2805 *) 2806 enable_static=no 2807 # Look at the argument we got. We use all the common list separators. 2808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2809 for pkg in $enableval; do 2810 IFS="$lt_save_ifs" 2811 if test "X$pkg" = "X$p"; then 2812 enable_static=yes 2813 fi 2814 done 2815 IFS="$lt_save_ifs" 2816 ;; 2817 esac 2818 else 2819 enable_static=yes 2820 fi; 2821 2822 # Check whether --enable-fast-install or --disable-fast-install was given. 2823 if test "${enable_fast_install+set}" = set; then 2824 enableval="$enable_fast_install" 2825 p=${PACKAGE-default} 2826 case $enableval in 2827 yes) enable_fast_install=yes ;; 2828 no) enable_fast_install=no ;; 2829 *) 2830 enable_fast_install=no 2831 # Look at the argument we got. We use all the common list separators. 2832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 2833 for pkg in $enableval; do 2834 IFS="$lt_save_ifs" 2835 if test "X$pkg" = "X$p"; then 2836 enable_fast_install=yes 2837 fi 2838 done 2839 IFS="$lt_save_ifs" 2840 ;; 2841 esac 2842 else 2843 enable_fast_install=yes 2844 fi; 2593 if test -n "$ac_tool_prefix"; then 2594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2596 echo "$as_me:$LINENO: checking for $ac_word" >&5 2597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2598 if test "${ac_cv_prog_RANLIB+set}" = set; then 2599 echo $ECHO_N "(cached) $ECHO_C" >&6 2600 else 2601 if test -n "$RANLIB"; then 2602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2603 else 2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2605 for as_dir in $PATH 2606 do 2607 IFS=$as_save_IFS 2608 test -z "$as_dir" && as_dir=. 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2613 break 2 2614 fi 2615 done 2616 done 2617 2618 fi 2619 fi 2620 RANLIB=$ac_cv_prog_RANLIB 2621 if test -n "$RANLIB"; then 2622 echo "$as_me:$LINENO: result: $RANLIB" >&5 2623 echo "${ECHO_T}$RANLIB" >&6 2624 else 2625 echo "$as_me:$LINENO: result: no" >&5 2626 echo "${ECHO_T}no" >&6 2627 fi 2628 2629 fi 2630 if test -z "$ac_cv_prog_RANLIB"; then 2631 ac_ct_RANLIB=$RANLIB 2632 # Extract the first word of "ranlib", so it can be a program name with args. 2633 set dummy ranlib; ac_word=$2 2634 echo "$as_me:$LINENO: checking for $ac_word" >&5 2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2636 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2637 echo $ECHO_N "(cached) $ECHO_C" >&6 2638 else 2639 if test -n "$ac_ct_RANLIB"; then 2640 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2641 else 2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643 for as_dir in $PATH 2644 do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2649 ac_cv_prog_ac_ct_RANLIB="ranlib" 2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653 done 2654 done 2655 2656 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2657 fi 2658 fi 2659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2660 if test -n "$ac_ct_RANLIB"; then 2661 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2662 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2663 else 2664 echo "$as_me:$LINENO: result: no" >&5 2665 echo "${ECHO_T}no" >&6 2666 fi 2667 2668 RANLIB=$ac_ct_RANLIB 2669 else 2670 RANLIB="$ac_cv_prog_RANLIB" 2671 fi 2845 2672 2846 2673 ac_ext=c … … 3682 3509 3683 3510 3684 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&53685 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&63686 if test "${lt_cv_path_SED+set}" = set; then3687 echo $ECHO_N "(cached) $ECHO_C" >&63688 else3689 # Loop through the user's path and test for sed and gsed.3690 # Then use that list of sed's as ones to test for truncation.3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR3692 for as_dir in $PATH3693 do3694 IFS=$as_save_IFS3695 test -z "$as_dir" && as_dir=.3696 for lt_ac_prog in sed gsed; do3697 for ac_exec_ext in '' $ac_executable_extensions; do3698 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then3699 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"3700 fi3701 done3702 done3703 done3704 lt_ac_max=03705 lt_ac_count=03706 # Add /usr/xpg4/bin/sed as it is typically found on Solaris3707 # along with /bin/sed that truncates output.3708 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do3709 test ! -f $lt_ac_sed && continue3710 cat /dev/null > conftest.in3711 lt_ac_count=03712 echo $ECHO_N "0123456789$ECHO_C" >conftest.in3713 # Check for GNU sed and select it if it is found.3714 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then3715 lt_cv_path_SED=$lt_ac_sed3716 break3717 fi3718 while true; do3719 cat conftest.in conftest.in >conftest.tmp3720 mv conftest.tmp conftest.in3721 cp conftest.in conftest.nl3722 echo >>conftest.nl3723 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break3724 cmp -s conftest.out conftest.nl || break3725 # 10000 chars as input seems more than enough3726 test $lt_ac_count -gt 10 && break3727 lt_ac_count=`expr $lt_ac_count + 1`3728 if test $lt_ac_count -gt $lt_ac_max; then3729 lt_ac_max=$lt_ac_count3730 lt_cv_path_SED=$lt_ac_sed3731 fi3732 done3733 done3734 3735 fi3736 3737 SED=$lt_cv_path_SED3738 echo "$as_me:$LINENO: result: $SED" >&53739 echo "${ECHO_T}$SED" >&63740 3741 echo "$as_me:$LINENO: checking for egrep" >&53742 echo $ECHO_N "checking for egrep... $ECHO_C" >&63743 if test "${ac_cv_prog_egrep+set}" = set; then3744 echo $ECHO_N "(cached) $ECHO_C" >&63745 else3746 if echo a | (grep -E '(a|b)') >/dev/null 2>&13747 then ac_cv_prog_egrep='grep -E'3748 else ac_cv_prog_egrep='egrep'3749 fi3750 fi3751 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&53752 echo "${ECHO_T}$ac_cv_prog_egrep" >&63753 EGREP=$ac_cv_prog_egrep3754 3755 3756 3757 # Check whether --with-gnu-ld or --without-gnu-ld was given.3758 if test "${with_gnu_ld+set}" = set; then3759 withval="$with_gnu_ld"3760 test "$withval" = no || with_gnu_ld=yes3761 else3762 with_gnu_ld=no3763 fi;3764 ac_prog=ld3765 if test "$GCC" = yes; then3766 # Check if gcc -print-prog-name=ld gives a path.3767 echo "$as_me:$LINENO: checking for ld used by $CC" >&53768 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&63769 case $host in3770 *-*-mingw*)3771 # gcc leaves a trailing carriage return which upsets mingw3772 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;3773 *)3774 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;3775 esac3776 case $ac_prog in3777 # Accept absolute paths.3778 [\\/]* | ?:[\\/]*)3779 re_direlt='/[^/][^/]*/\.\./'3780 # Canonicalize the pathname of ld3781 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`3782 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do3783 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`3784 done3785 test -z "$LD" && LD="$ac_prog"3786 ;;3787 "")3788 # If it fails, then pretend we aren't using GCC.3789 ac_prog=ld3790 ;;3791 *)3792 # If it is relative, then search for the first ld in PATH.3793 with_gnu_ld=unknown3794 ;;3795 esac3796 elif test "$with_gnu_ld" = yes; then3797 echo "$as_me:$LINENO: checking for GNU ld" >&53798 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&63799 else3800 echo "$as_me:$LINENO: checking for non-GNU ld" >&53801 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&63802 fi3803 if test "${lt_cv_path_LD+set}" = set; then3804 echo $ECHO_N "(cached) $ECHO_C" >&63805 else3806 if test -z "$LD"; then3807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR3808 for ac_dir in $PATH; do3809 IFS="$lt_save_ifs"3810 test -z "$ac_dir" && ac_dir=.3811 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then3812 lt_cv_path_LD="$ac_dir/$ac_prog"3813 # Check to see if the program is GNU ld. I'd rather use --version,3814 # but apparently some variants of GNU ld only accept -v.3815 # Break only if it was the GNU/non-GNU ld that we prefer.3816 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in3817 *GNU* | *'with BFD'*)3818 test "$with_gnu_ld" != no && break3819 ;;3820 *)3821 test "$with_gnu_ld" != yes && break3822 ;;3823 esac3824 fi3825 done3826 IFS="$lt_save_ifs"3827 else3828 lt_cv_path_LD="$LD" # Let the user override the test with a path.3829 fi3830 fi3831 3832 LD="$lt_cv_path_LD"3833 if test -n "$LD"; then3834 echo "$as_me:$LINENO: result: $LD" >&53835 echo "${ECHO_T}$LD" >&63836 else3837 echo "$as_me:$LINENO: result: no" >&53838 echo "${ECHO_T}no" >&63839 fi3840 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&53841 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}3842 { (exit 1); exit 1; }; }3843 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&53844 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&63845 if test "${lt_cv_prog_gnu_ld+set}" = set; then3846 echo $ECHO_N "(cached) $ECHO_C" >&63847 else3848 # I'd rather use --version here, but apparently some GNU lds only accept -v.3849 case `$LD -v 2>&1 </dev/null` in3850 *GNU* | *'with BFD'*)3851 lt_cv_prog_gnu_ld=yes3852 ;;3853 *)3854 lt_cv_prog_gnu_ld=no3855 ;;3856 esac3857 fi3858 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&53859 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&63860 with_gnu_ld=$lt_cv_prog_gnu_ld3861 3862 3863 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&53864 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&63865 if test "${lt_cv_ld_reload_flag+set}" = set; then3866 echo $ECHO_N "(cached) $ECHO_C" >&63867 else3868 lt_cv_ld_reload_flag='-r'3869 fi3870 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&53871 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&63872 reload_flag=$lt_cv_ld_reload_flag3873 case $reload_flag in3874 "" | " "*) ;;3875 *) reload_flag=" $reload_flag" ;;3876 esac3877 reload_cmds='$LD$reload_flag -o $output$reload_objs'3878 case $host_os in3879 darwin*)3880 if test "$GCC" = yes; then3881 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'3882 else3883 reload_cmds='$LD$reload_flag -o $output$reload_objs'3884 fi3885 ;;3886 esac3887 3888 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&53889 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&63890 if test "${lt_cv_path_NM+set}" = set; then3891 echo $ECHO_N "(cached) $ECHO_C" >&63892 else3893 if test -n "$NM"; then3894 # Let the user override the test.3895 lt_cv_path_NM="$NM"3896 else3897 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR3898 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do3899 IFS="$lt_save_ifs"3900 test -z "$ac_dir" && ac_dir=.3901 tmp_nm="$ac_dir/${ac_tool_prefix}nm"3902 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then3903 # Check to see if the nm accepts a BSD-compat flag.3904 # Adding the `sed 1q' prevents false positives on HP-UX, which says:3905 # nm: unknown option "B" ignored3906 # Tru64's nm complains that /dev/null is an invalid object file3907 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in3908 */dev/null* | *'Invalid file or object type'*)3909 lt_cv_path_NM="$tmp_nm -B"3910 break3911 ;;3912 *)3913 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in3914 */dev/null*)3915 lt_cv_path_NM="$tmp_nm -p"3916 break3917 ;;3918 *)3919 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but3920 continue # so that we can try to find one that supports BSD flags3921 ;;3922 esac3923 esac3924 fi3925 done3926 IFS="$lt_save_ifs"3927 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm3928 fi3929 fi3930 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&53931 echo "${ECHO_T}$lt_cv_path_NM" >&63932 NM="$lt_cv_path_NM"3933 3934 echo "$as_me:$LINENO: checking whether ln -s works" >&53935 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&63936 LN_S=$as_ln_s3937 if test "$LN_S" = "ln -s"; then3938 echo "$as_me:$LINENO: result: yes" >&53939 echo "${ECHO_T}yes" >&63940 else3941 echo "$as_me:$LINENO: result: no, using $LN_S" >&53942 echo "${ECHO_T}no, using $LN_S" >&63943 fi3944 3945 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&53946 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&63947 if test "${lt_cv_deplibs_check_method+set}" = set; then3948 echo $ECHO_N "(cached) $ECHO_C" >&63949 else3950 lt_cv_file_magic_cmd='$MAGIC_CMD'3951 lt_cv_file_magic_test_file=3952 lt_cv_deplibs_check_method='unknown'3953 # Need to set the preceding variable on all platforms that support3954 # interlibrary dependencies.3955 # 'none' -- dependencies not supported.3956 # `unknown' -- same as none, but documents that we really don't know.3957 # 'pass_all' -- all dependencies passed with no checks.3958 # 'test_compile' -- check by making test program.3959 # 'file_magic [[regex]]' -- check by looking for files in library path3960 # which responds to the $file_magic_cmd with a given extended regex.3961 # If you have `file' or equivalent on your system and you're not sure3962 # whether `pass_all' will *always* work, you probably want this one.3963 3964 case $host_os in3965 aix4* | aix5*)3966 lt_cv_deplibs_check_method=pass_all3967 ;;3968 3969 beos*)3970 lt_cv_deplibs_check_method=pass_all3971 ;;3972 3973 bsdi[45]*)3974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'3975 lt_cv_file_magic_cmd='/usr/bin/file -L'3976 lt_cv_file_magic_test_file=/shlib/libc.so3977 ;;3978 3979 cygwin*)3980 # func_win32_libid is a shell function defined in ltmain.sh3981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'3982 lt_cv_file_magic_cmd='func_win32_libid'3983 ;;3984 3985 mingw* | pw32*)3986 # Base MSYS/MinGW do not provide the 'file' command needed by3987 # func_win32_libid shell function, so use a weaker test based on 'objdump'.3988 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'3989 lt_cv_file_magic_cmd='$OBJDUMP -f'3990 ;;3991 3992 darwin* | rhapsody*)3993 lt_cv_deplibs_check_method=pass_all3994 ;;3995 3996 freebsd* | kfreebsd*-gnu | dragonfly*)3997 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then3998 case $host_cpu in3999 i*86 )4000 # Not sure whether the presence of OpenBSD here was a mistake.4001 # Let's accept both of them until this is cleared up.4002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'4003 lt_cv_file_magic_cmd=/usr/bin/file4004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`4005 ;;4006 esac4007 else4008 lt_cv_deplibs_check_method=pass_all4009 fi4010 ;;4011 4012 gnu*)4013 lt_cv_deplibs_check_method=pass_all4014 ;;4015 4016 hpux10.20* | hpux11*)4017 lt_cv_file_magic_cmd=/usr/bin/file4018 case $host_cpu in4019 ia64*)4020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'4021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so4022 ;;4023 hppa*64*)4024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'4025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl4026 ;;4027 *)4028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'4029 lt_cv_file_magic_test_file=/usr/lib/libc.sl4030 ;;4031 esac4032 ;;4033 4034 irix5* | irix6* | nonstopux*)4035 case $LD in4036 *-32|*"-32 ") libmagic=32-bit;;4037 *-n32|*"-n32 ") libmagic=N32;;4038 *-64|*"-64 ") libmagic=64-bit;;4039 *) libmagic=never-match;;4040 esac4041 lt_cv_deplibs_check_method=pass_all4042 ;;4043 4044 # This must be Linux ELF.4045 linux*)4046 lt_cv_deplibs_check_method=pass_all4047 ;;4048 4049 netbsd*)4050 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then4051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'4052 else4053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'4054 fi4055 ;;4056 4057 newos6*)4058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'4059 lt_cv_file_magic_cmd=/usr/bin/file4060 lt_cv_file_magic_test_file=/usr/lib/libnls.so4061 ;;4062 4063 nto-qnx*)4064 lt_cv_deplibs_check_method=unknown4065 ;;4066 4067 openbsd*)4068 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then4069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'4070 else4071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'4072 fi4073 ;;4074 4075 osf3* | osf4* | osf5*)4076 lt_cv_deplibs_check_method=pass_all4077 ;;4078 4079 sco3.2v5*)4080 lt_cv_deplibs_check_method=pass_all4081 ;;4082 4083 solaris*)4084 lt_cv_deplibs_check_method=pass_all4085 ;;4086 4087 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)4088 case $host_vendor in4089 motorola)4090 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]'4091 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`4092 ;;4093 ncr)4094 lt_cv_deplibs_check_method=pass_all4095 ;;4096 sequent)4097 lt_cv_file_magic_cmd='/bin/file'4098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'4099 ;;4100 sni)4101 lt_cv_file_magic_cmd='/bin/file'4102 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"4103 lt_cv_file_magic_test_file=/lib/libc.so4104 ;;4105 siemens)4106 lt_cv_deplibs_check_method=pass_all4107 ;;4108 esac4109 ;;4110 4111 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)4112 lt_cv_deplibs_check_method=pass_all4113 ;;4114 esac4115 4116 fi4117 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&54118 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&64119 file_magic_cmd=$lt_cv_file_magic_cmd4120 deplibs_check_method=$lt_cv_deplibs_check_method4121 test -z "$deplibs_check_method" && deplibs_check_method=unknown4122 4123 4124 4125 4126 # If no C compiler was specified, use CC.4127 LTCC=${LTCC-"$CC"}4128 4129 # Allow CC to be a program name with arguments.4130 compiler=$CC4131 4132 4133 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.4134 if test "${enable_libtool_lock+set}" = set; then4135 enableval="$enable_libtool_lock"4136 4137 fi;4138 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes4139 4140 # Some flags need to be propagated to the compiler or linker for good4141 # libtool support.4142 case $host in4143 ia64-*-hpux*)4144 # Find out which ABI we are using.4145 echo 'int i;' > conftest.$ac_ext4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54147 (eval $ac_compile) 2>&54148 ac_status=$?4149 echo "$as_me:$LINENO: \$? = $ac_status" >&54150 (exit $ac_status); }; then4151 case `/usr/bin/file conftest.$ac_objext` in4152 *ELF-32*)4153 HPUX_IA64_MODE="32"4154 ;;4155 *ELF-64*)4156 HPUX_IA64_MODE="64"4157 ;;4158 esac4159 fi4160 rm -rf conftest*4161 ;;4162 *-*-irix6*)4163 # Find out which ABI we are using.4164 echo '#line 4164 "configure"' > conftest.$ac_ext4165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54166 (eval $ac_compile) 2>&54167 ac_status=$?4168 echo "$as_me:$LINENO: \$? = $ac_status" >&54169 (exit $ac_status); }; then4170 if test "$lt_cv_prog_gnu_ld" = yes; then4171 case `/usr/bin/file conftest.$ac_objext` in4172 *32-bit*)4173 LD="${LD-ld} -melf32bsmip"4174 ;;4175 *N32*)4176 LD="${LD-ld} -melf32bmipn32"4177 ;;4178 *64-bit*)4179 LD="${LD-ld} -melf64bmip"4180 ;;4181 esac4182 else4183 case `/usr/bin/file conftest.$ac_objext` in4184 *32-bit*)4185 LD="${LD-ld} -32"4186 ;;4187 *N32*)4188 LD="${LD-ld} -n32"4189 ;;4190 *64-bit*)4191 LD="${LD-ld} -64"4192 ;;4193 esac4194 fi4195 fi4196 rm -rf conftest*4197 ;;4198 4199 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)4200 # Find out which ABI we are using.4201 echo 'int i;' > conftest.$ac_ext4202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54203 (eval $ac_compile) 2>&54204 ac_status=$?4205 echo "$as_me:$LINENO: \$? = $ac_status" >&54206 (exit $ac_status); }; then4207 case `/usr/bin/file conftest.o` in4208 *32-bit*)4209 case $host in4210 x86_64-*linux*)4211 LD="${LD-ld} -m elf_i386"4212 ;;4213 ppc64-*linux*|powerpc64-*linux*)4214 LD="${LD-ld} -m elf32ppclinux"4215 ;;4216 s390x-*linux*)4217 LD="${LD-ld} -m elf_s390"4218 ;;4219 sparc64-*linux*)4220 LD="${LD-ld} -m elf32_sparc"4221 ;;4222 esac4223 ;;4224 *64-bit*)4225 case $host in4226 x86_64-*linux*)4227 LD="${LD-ld} -m elf_x86_64"4228 ;;4229 ppc*-*linux*|powerpc*-*linux*)4230 LD="${LD-ld} -m elf64ppc"4231 ;;4232 s390*-*linux*)4233 LD="${LD-ld} -m elf64_s390"4234 ;;4235 sparc*-*linux*)4236 LD="${LD-ld} -m elf64_sparc"4237 ;;4238 esac4239 ;;4240 esac4241 fi4242 rm -rf conftest*4243 ;;4244 4245 *-*-linux*)4246 # Test if the compiler is 64bit4247 echo 'int i;' > conftest.$ac_ext4248 lt_cv_cc_64bit_output=no4249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&54250 (eval $ac_compile) 2>&54251 ac_status=$?4252 echo "$as_me:$LINENO: \$? = $ac_status" >&54253 (exit $ac_status); }; then4254 case `/usr/bin/file conftest.$ac_objext` in4255 *"ELF 64"*)4256 lt_cv_cc_64bit_output=yes4257 ;;4258 esac4259 fi4260 rm -rf conftest*4261 ;;4262 4263 *-*-sco3.2v5*)4264 # On SCO OpenServer 5, we need -belf to get full-featured binaries.4265 SAVE_CFLAGS="$CFLAGS"4266 CFLAGS="$CFLAGS -belf"4267 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&54268 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&64269 if test "${lt_cv_cc_needs_belf+set}" = set; then4270 echo $ECHO_N "(cached) $ECHO_C" >&64271 else4272 ac_ext=c4273 ac_cpp='$CPP $CPPFLAGS'4274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4276 ac_compiler_gnu=$ac_cv_c_compiler_gnu4277 4278 cat >conftest.$ac_ext <<_ACEOF4279 /* confdefs.h. */4280 _ACEOF4281 cat confdefs.h >>conftest.$ac_ext4282 cat >>conftest.$ac_ext <<_ACEOF4283 /* end confdefs.h. */4284 4285 int4286 main ()4287 {4288 4289 ;4290 return 0;4291 }4292 _ACEOF4293 rm -f conftest.$ac_objext conftest$ac_exeext4294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&54295 (eval $ac_link) 2>conftest.er14296 ac_status=$?4297 grep -v '^ *+' conftest.er1 >conftest.err4298 rm -f conftest.er14299 cat conftest.err >&54300 echo "$as_me:$LINENO: \$? = $ac_status" >&54301 (exit $ac_status); } &&4302 { ac_try='test -z "$ac_c_werror_flag"4303 || test ! -s conftest.err'4304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54305 (eval $ac_try) 2>&54306 ac_status=$?4307 echo "$as_me:$LINENO: \$? = $ac_status" >&54308 (exit $ac_status); }; } &&4309 { ac_try='test -s conftest$ac_exeext'4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&54311 (eval $ac_try) 2>&54312 ac_status=$?4313 echo "$as_me:$LINENO: \$? = $ac_status" >&54314 (exit $ac_status); }; }; then4315 lt_cv_cc_needs_belf=yes4316 else4317 echo "$as_me: failed program was:" >&54318 sed 's/^/| /' conftest.$ac_ext >&54319 4320 lt_cv_cc_needs_belf=no4321 fi4322 rm -f conftest.err conftest.$ac_objext \4323 conftest$ac_exeext conftest.$ac_ext4324 ac_ext=c4325 ac_cpp='$CPP $CPPFLAGS'4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu4329 4330 fi4331 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&54332 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&64333 if test x"$lt_cv_cc_needs_belf" != x"yes"; then4334 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf4335 CFLAGS="$SAVE_CFLAGS"4336 fi4337 ;;4338 4339 esac4340 4341 need_locks="$enable_libtool_lock"4342 4343 3511 4344 3512 ac_ext=c … … 4577 3745 4578 3746 4579 echo "$as_me:$LINENO: checking for ANSI C header files" >&54580 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&64581 if test "${ac_cv_ header_stdc+set}" = set; then3747 echo "$as_me:$LINENO: checking for egrep" >&5 3748 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3749 if test "${ac_cv_prog_egrep+set}" = set; then 4582 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 4583 3751 else 4584 cat >conftest.$ac_ext <<_ACEOF 4585 /* confdefs.h. */ 4586 _ACEOF 4587 cat confdefs.h >>conftest.$ac_ext 4588 cat >>conftest.$ac_ext <<_ACEOF 4589 /* end confdefs.h. */ 4590 #include <stdlib.h> 4591 #include <stdarg.h> 4592 #include <string.h> 4593 #include <float.h> 4594 4595 int 4596 main () 4597 { 4598 4599 ; 4600 return 0; 4601 } 4602 _ACEOF 4603 rm -f conftest.$ac_objext 4604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4605 (eval $ac_compile) 2>conftest.er1 4606 ac_status=$? 4607 grep -v '^ *+' conftest.er1 >conftest.err 4608 rm -f conftest.er1 4609 cat conftest.err >&5 4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4611 (exit $ac_status); } && 4612 { ac_try='test -z "$ac_c_werror_flag" 4613 || test ! -s conftest.err' 4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4615 (eval $ac_try) 2>&5 4616 ac_status=$? 4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4618 (exit $ac_status); }; } && 4619 { ac_try='test -s conftest.$ac_objext' 4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4621 (eval $ac_try) 2>&5 4622 ac_status=$? 4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4624 (exit $ac_status); }; }; then 4625 ac_cv_header_stdc=yes 4626 else 4627 echo "$as_me: failed program was:" >&5 4628 sed 's/^/| /' conftest.$ac_ext >&5 4629 4630 ac_cv_header_stdc=no 4631 fi 4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4633 4634 if test $ac_cv_header_stdc = yes; then 4635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4636 cat >conftest.$ac_ext <<_ACEOF 4637 /* confdefs.h. */ 4638 _ACEOF 4639 cat confdefs.h >>conftest.$ac_ext 4640 cat >>conftest.$ac_ext <<_ACEOF 4641 /* end confdefs.h. */ 4642 #include <string.h> 4643 4644 _ACEOF 4645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4646 $EGREP "memchr" >/dev/null 2>&1; then 4647 : 4648 else 4649 ac_cv_header_stdc=no 4650 fi 4651 rm -f conftest* 4652 4653 fi 4654 4655 if test $ac_cv_header_stdc = yes; then 4656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4657 cat >conftest.$ac_ext <<_ACEOF 4658 /* confdefs.h. */ 4659 _ACEOF 4660 cat confdefs.h >>conftest.$ac_ext 4661 cat >>conftest.$ac_ext <<_ACEOF 4662 /* end confdefs.h. */ 4663 #include <stdlib.h> 4664 4665 _ACEOF 4666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4667 $EGREP "free" >/dev/null 2>&1; then 4668 : 4669 else 4670 ac_cv_header_stdc=no 4671 fi 4672 rm -f conftest* 4673 4674 fi 4675 4676 if test $ac_cv_header_stdc = yes; then 4677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4678 if test "$cross_compiling" = yes; then 4679 : 4680 else 4681 cat >conftest.$ac_ext <<_ACEOF 4682 /* confdefs.h. */ 4683 _ACEOF 4684 cat confdefs.h >>conftest.$ac_ext 4685 cat >>conftest.$ac_ext <<_ACEOF 4686 /* end confdefs.h. */ 4687 #include <ctype.h> 4688 #if ((' ' & 0x0FF) == 0x020) 4689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4691 #else 4692 # define ISLOWER(c) \ 4693 (('a' <= (c) && (c) <= 'i') \ 4694 || ('j' <= (c) && (c) <= 'r') \ 4695 || ('s' <= (c) && (c) <= 'z')) 4696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4697 #endif 4698 4699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4700 int 4701 main () 4702 { 4703 int i; 4704 for (i = 0; i < 256; i++) 4705 if (XOR (islower (i), ISLOWER (i)) 4706 || toupper (i) != TOUPPER (i)) 4707 exit(2); 4708 exit (0); 4709 } 4710 _ACEOF 4711 rm -f conftest$ac_exeext 4712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4713 (eval $ac_link) 2>&5 4714 ac_status=$? 4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4718 (eval $ac_try) 2>&5 4719 ac_status=$? 4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4721 (exit $ac_status); }; }; then 4722 : 4723 else 4724 echo "$as_me: program exited with status $ac_status" >&5 4725 echo "$as_me: failed program was:" >&5 4726 sed 's/^/| /' conftest.$ac_ext >&5 4727 4728 ( exit $ac_status ) 4729 ac_cv_header_stdc=no 4730 fi 4731 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4732 fi 4733 fi 4734 fi 4735 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4736 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4737 if test $ac_cv_header_stdc = yes; then 4738 4739 cat >>confdefs.h <<\_ACEOF 4740 #define STDC_HEADERS 1 4741 _ACEOF 4742 4743 fi 4744 4745 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4756 inttypes.h stdint.h unistd.h 4757 do 4758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4759 echo "$as_me:$LINENO: checking for $ac_header" >&5 4760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4761 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4762 echo $ECHO_N "(cached) $ECHO_C" >&6 4763 else 4764 cat >conftest.$ac_ext <<_ACEOF 4765 /* confdefs.h. */ 4766 _ACEOF 4767 cat confdefs.h >>conftest.$ac_ext 4768 cat >>conftest.$ac_ext <<_ACEOF 4769 /* end confdefs.h. */ 4770 $ac_includes_default 4771 4772 #include <$ac_header> 4773 _ACEOF 4774 rm -f conftest.$ac_objext 4775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4776 (eval $ac_compile) 2>conftest.er1 4777 ac_status=$? 4778 grep -v '^ *+' conftest.er1 >conftest.err 4779 rm -f conftest.er1 4780 cat conftest.err >&5 4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4782 (exit $ac_status); } && 4783 { ac_try='test -z "$ac_c_werror_flag" 4784 || test ! -s conftest.err' 4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4786 (eval $ac_try) 2>&5 4787 ac_status=$? 4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4789 (exit $ac_status); }; } && 4790 { ac_try='test -s conftest.$ac_objext' 4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4792 (eval $ac_try) 2>&5 4793 ac_status=$? 4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4795 (exit $ac_status); }; }; then 4796 eval "$as_ac_Header=yes" 4797 else 4798 echo "$as_me: failed program was:" >&5 4799 sed 's/^/| /' conftest.$ac_ext >&5 4800 4801 eval "$as_ac_Header=no" 4802 fi 4803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4804 fi 4805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4807 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4808 cat >>confdefs.h <<_ACEOF 4809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4810 _ACEOF 4811 4812 fi 4813 4814 done 4815 4816 4817 4818 for ac_header in dlfcn.h 4819 do 4820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4821 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4822 echo "$as_me:$LINENO: checking for $ac_header" >&5 4823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4824 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4825 echo $ECHO_N "(cached) $ECHO_C" >&6 4826 fi 4827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4829 else 4830 # Is the header compilable? 4831 echo "$as_me:$LINENO: checking $ac_header usability" >&5 4832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4833 cat >conftest.$ac_ext <<_ACEOF 4834 /* confdefs.h. */ 4835 _ACEOF 4836 cat confdefs.h >>conftest.$ac_ext 4837 cat >>conftest.$ac_ext <<_ACEOF 4838 /* end confdefs.h. */ 4839 $ac_includes_default 4840 #include <$ac_header> 4841 _ACEOF 4842 rm -f conftest.$ac_objext 4843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4844 (eval $ac_compile) 2>conftest.er1 4845 ac_status=$? 4846 grep -v '^ *+' conftest.er1 >conftest.err 4847 rm -f conftest.er1 4848 cat conftest.err >&5 4849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4850 (exit $ac_status); } && 4851 { ac_try='test -z "$ac_c_werror_flag" 4852 || test ! -s conftest.err' 4853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4854 (eval $ac_try) 2>&5 4855 ac_status=$? 4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4857 (exit $ac_status); }; } && 4858 { ac_try='test -s conftest.$ac_objext' 4859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4860 (eval $ac_try) 2>&5 4861 ac_status=$? 4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4863 (exit $ac_status); }; }; then 4864 ac_header_compiler=yes 4865 else 4866 echo "$as_me: failed program was:" >&5 4867 sed 's/^/| /' conftest.$ac_ext >&5 4868 4869 ac_header_compiler=no 4870 fi 4871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4873 echo "${ECHO_T}$ac_header_compiler" >&6 4874 4875 # Is the header present? 4876 echo "$as_me:$LINENO: checking $ac_header presence" >&5 4877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4878 cat >conftest.$ac_ext <<_ACEOF 4879 /* confdefs.h. */ 4880 _ACEOF 4881 cat confdefs.h >>conftest.$ac_ext 4882 cat >>conftest.$ac_ext <<_ACEOF 4883 /* end confdefs.h. */ 4884 #include <$ac_header> 4885 _ACEOF 4886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4888 ac_status=$? 4889 grep -v '^ *+' conftest.er1 >conftest.err 4890 rm -f conftest.er1 4891 cat conftest.err >&5 4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4893 (exit $ac_status); } >/dev/null; then 4894 if test -s conftest.err; then 4895 ac_cpp_err=$ac_c_preproc_warn_flag 4896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4897 else 4898 ac_cpp_err= 4899 fi 4900 else 4901 ac_cpp_err=yes 4902 fi 4903 if test -z "$ac_cpp_err"; then 4904 ac_header_preproc=yes 4905 else 4906 echo "$as_me: failed program was:" >&5 4907 sed 's/^/| /' conftest.$ac_ext >&5 4908 4909 ac_header_preproc=no 4910 fi 4911 rm -f conftest.err conftest.$ac_ext 4912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4913 echo "${ECHO_T}$ac_header_preproc" >&6 4914 4915 # So? What about this header? 4916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4917 yes:no: ) 4918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4922 ac_header_preproc=yes 4923 ;; 4924 no:yes:* ) 4925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4937 ( 4938 cat <<\_ASBOX 4939 ## ---------------------------------------------- ## 4940 ## Report this to orxonox-dev at mail.datacore.ch ## 4941 ## ---------------------------------------------- ## 4942 _ASBOX 4943 ) | 4944 sed "s/^/$as_me: WARNING: /" >&2 4945 ;; 4946 esac 4947 echo "$as_me:$LINENO: checking for $ac_header" >&5 4948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4949 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4950 echo $ECHO_N "(cached) $ECHO_C" >&6 4951 else 4952 eval "$as_ac_Header=\$ac_header_preproc" 4953 fi 4954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4956 4957 fi 4958 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4959 cat >>confdefs.h <<_ACEOF 4960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4961 _ACEOF 4962 4963 fi 4964 4965 done 4966 4967 4968 4969 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 4970 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 4971 (test "X$CXX" != "Xg++"))) ; then 4972 ac_ext=cc 4973 ac_cpp='$CXXCPP $CPPFLAGS' 4974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4977 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4978 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4979 if test -z "$CXXCPP"; then 4980 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4981 echo $ECHO_N "(cached) $ECHO_C" >&6 4982 else 4983 # Double quotes because CXXCPP needs to be expanded 4984 for CXXCPP in "$CXX -E" "/lib/cpp" 4985 do 4986 ac_preproc_ok=false 4987 for ac_cxx_preproc_warn_flag in '' yes 4988 do 4989 # Use a header file that comes with gcc, so configuring glibc 4990 # with a fresh cross-compiler works. 4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4992 # <limits.h> exists even on freestanding compilers. 4993 # On the NeXT, cc -E runs the code through the compiler's parser, 4994 # not just through cpp. "Syntax error" is here to catch this case. 4995 cat >conftest.$ac_ext <<_ACEOF 4996 /* confdefs.h. */ 4997 _ACEOF 4998 cat confdefs.h >>conftest.$ac_ext 4999 cat >>conftest.$ac_ext <<_ACEOF 5000 /* end confdefs.h. */ 5001 #ifdef __STDC__ 5002 # include <limits.h> 5003 #else 5004 # include <assert.h> 5005 #endif 5006 Syntax error 5007 _ACEOF 5008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5010 ac_status=$? 5011 grep -v '^ *+' conftest.er1 >conftest.err 5012 rm -f conftest.er1 5013 cat conftest.err >&5 5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5015 (exit $ac_status); } >/dev/null; then 5016 if test -s conftest.err; then 5017 ac_cpp_err=$ac_cxx_preproc_warn_flag 5018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5019 else 5020 ac_cpp_err= 5021 fi 5022 else 5023 ac_cpp_err=yes 5024 fi 5025 if test -z "$ac_cpp_err"; then 5026 : 5027 else 5028 echo "$as_me: failed program was:" >&5 5029 sed 's/^/| /' conftest.$ac_ext >&5 5030 5031 # Broken: fails on valid input. 5032 continue 5033 fi 5034 rm -f conftest.err conftest.$ac_ext 5035 5036 # OK, works on sane cases. Now check whether non-existent headers 5037 # can be detected and how. 5038 cat >conftest.$ac_ext <<_ACEOF 5039 /* confdefs.h. */ 5040 _ACEOF 5041 cat confdefs.h >>conftest.$ac_ext 5042 cat >>conftest.$ac_ext <<_ACEOF 5043 /* end confdefs.h. */ 5044 #include <ac_nonexistent.h> 5045 _ACEOF 5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5048 ac_status=$? 5049 grep -v '^ *+' conftest.er1 >conftest.err 5050 rm -f conftest.er1 5051 cat conftest.err >&5 5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5053 (exit $ac_status); } >/dev/null; then 5054 if test -s conftest.err; then 5055 ac_cpp_err=$ac_cxx_preproc_warn_flag 5056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5057 else 5058 ac_cpp_err= 5059 fi 5060 else 5061 ac_cpp_err=yes 5062 fi 5063 if test -z "$ac_cpp_err"; then 5064 # Broken: success on invalid input. 5065 continue 5066 else 5067 echo "$as_me: failed program was:" >&5 5068 sed 's/^/| /' conftest.$ac_ext >&5 5069 5070 # Passes both tests. 5071 ac_preproc_ok=: 5072 break 5073 fi 5074 rm -f conftest.err conftest.$ac_ext 5075 5076 done 5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5078 rm -f conftest.err conftest.$ac_ext 5079 if $ac_preproc_ok; then 5080 break 5081 fi 5082 5083 done 5084 ac_cv_prog_CXXCPP=$CXXCPP 5085 5086 fi 5087 CXXCPP=$ac_cv_prog_CXXCPP 5088 else 5089 ac_cv_prog_CXXCPP=$CXXCPP 5090 fi 5091 echo "$as_me:$LINENO: result: $CXXCPP" >&5 5092 echo "${ECHO_T}$CXXCPP" >&6 5093 ac_preproc_ok=false 5094 for ac_cxx_preproc_warn_flag in '' yes 5095 do 5096 # Use a header file that comes with gcc, so configuring glibc 5097 # with a fresh cross-compiler works. 5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5099 # <limits.h> exists even on freestanding compilers. 5100 # On the NeXT, cc -E runs the code through the compiler's parser, 5101 # not just through cpp. "Syntax error" is here to catch this case. 5102 cat >conftest.$ac_ext <<_ACEOF 5103 /* confdefs.h. */ 5104 _ACEOF 5105 cat confdefs.h >>conftest.$ac_ext 5106 cat >>conftest.$ac_ext <<_ACEOF 5107 /* end confdefs.h. */ 5108 #ifdef __STDC__ 5109 # include <limits.h> 5110 #else 5111 # include <assert.h> 5112 #endif 5113 Syntax error 5114 _ACEOF 5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5117 ac_status=$? 5118 grep -v '^ *+' conftest.er1 >conftest.err 5119 rm -f conftest.er1 5120 cat conftest.err >&5 5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5122 (exit $ac_status); } >/dev/null; then 5123 if test -s conftest.err; then 5124 ac_cpp_err=$ac_cxx_preproc_warn_flag 5125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5126 else 5127 ac_cpp_err= 5128 fi 5129 else 5130 ac_cpp_err=yes 5131 fi 5132 if test -z "$ac_cpp_err"; then 5133 : 5134 else 5135 echo "$as_me: failed program was:" >&5 5136 sed 's/^/| /' conftest.$ac_ext >&5 5137 5138 # Broken: fails on valid input. 5139 continue 5140 fi 5141 rm -f conftest.err conftest.$ac_ext 5142 5143 # OK, works on sane cases. Now check whether non-existent headers 5144 # can be detected and how. 5145 cat >conftest.$ac_ext <<_ACEOF 5146 /* confdefs.h. */ 5147 _ACEOF 5148 cat confdefs.h >>conftest.$ac_ext 5149 cat >>conftest.$ac_ext <<_ACEOF 5150 /* end confdefs.h. */ 5151 #include <ac_nonexistent.h> 5152 _ACEOF 5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5155 ac_status=$? 5156 grep -v '^ *+' conftest.er1 >conftest.err 5157 rm -f conftest.er1 5158 cat conftest.err >&5 5159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5160 (exit $ac_status); } >/dev/null; then 5161 if test -s conftest.err; then 5162 ac_cpp_err=$ac_cxx_preproc_warn_flag 5163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 5164 else 5165 ac_cpp_err= 5166 fi 5167 else 5168 ac_cpp_err=yes 5169 fi 5170 if test -z "$ac_cpp_err"; then 5171 # Broken: success on invalid input. 5172 continue 5173 else 5174 echo "$as_me: failed program was:" >&5 5175 sed 's/^/| /' conftest.$ac_ext >&5 5176 5177 # Passes both tests. 5178 ac_preproc_ok=: 5179 break 5180 fi 5181 rm -f conftest.err conftest.$ac_ext 5182 5183 done 5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5185 rm -f conftest.err conftest.$ac_ext 5186 if $ac_preproc_ok; then 5187 : 5188 else 5189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5190 See \`config.log' for more details." >&5 5191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5192 See \`config.log' for more details." >&2;} 5193 { (exit 1); exit 1; }; } 5194 fi 5195 5196 ac_ext=cc 5197 ac_cpp='$CXXCPP $CPPFLAGS' 5198 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5199 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5200 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5201 5202 fi 5203 5204 5205 ac_ext=f 5206 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5207 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5208 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5209 if test -n "$ac_tool_prefix"; then 5210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5211 do 5212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5214 echo "$as_me:$LINENO: checking for $ac_word" >&5 5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5216 if test "${ac_cv_prog_F77+set}" = set; then 5217 echo $ECHO_N "(cached) $ECHO_C" >&6 5218 else 5219 if test -n "$F77"; then 5220 ac_cv_prog_F77="$F77" # Let the user override the test. 5221 else 5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5223 for as_dir in $PATH 5224 do 5225 IFS=$as_save_IFS 5226 test -z "$as_dir" && as_dir=. 5227 for ac_exec_ext in '' $ac_executable_extensions; do 5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5229 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5231 break 2 5232 fi 5233 done 5234 done 5235 5236 fi 5237 fi 5238 F77=$ac_cv_prog_F77 5239 if test -n "$F77"; then 5240 echo "$as_me:$LINENO: result: $F77" >&5 5241 echo "${ECHO_T}$F77" >&6 5242 else 5243 echo "$as_me:$LINENO: result: no" >&5 5244 echo "${ECHO_T}no" >&6 5245 fi 5246 5247 test -n "$F77" && break 5248 done 5249 fi 5250 if test -z "$F77"; then 5251 ac_ct_F77=$F77 5252 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 5253 do 5254 # Extract the first word of "$ac_prog", so it can be a program name with args. 5255 set dummy $ac_prog; ac_word=$2 5256 echo "$as_me:$LINENO: checking for $ac_word" >&5 5257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5258 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 5259 echo $ECHO_N "(cached) $ECHO_C" >&6 5260 else 5261 if test -n "$ac_ct_F77"; then 5262 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 5263 else 5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5265 for as_dir in $PATH 5266 do 5267 IFS=$as_save_IFS 5268 test -z "$as_dir" && as_dir=. 5269 for ac_exec_ext in '' $ac_executable_extensions; do 5270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5271 ac_cv_prog_ac_ct_F77="$ac_prog" 5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5273 break 2 5274 fi 5275 done 5276 done 5277 5278 fi 5279 fi 5280 ac_ct_F77=$ac_cv_prog_ac_ct_F77 5281 if test -n "$ac_ct_F77"; then 5282 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 5283 echo "${ECHO_T}$ac_ct_F77" >&6 5284 else 5285 echo "$as_me:$LINENO: result: no" >&5 5286 echo "${ECHO_T}no" >&6 5287 fi 5288 5289 test -n "$ac_ct_F77" && break 5290 done 5291 5292 F77=$ac_ct_F77 5293 fi 5294 5295 5296 # Provide some information about the compiler. 5297 echo "$as_me:5297:" \ 5298 "checking for Fortran 77 compiler version" >&5 5299 ac_compiler=`set X $ac_compile; echo $2` 5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 5301 (eval $ac_compiler --version </dev/null >&5) 2>&5 5302 ac_status=$? 5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5304 (exit $ac_status); } 5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 5306 (eval $ac_compiler -v </dev/null >&5) 2>&5 5307 ac_status=$? 5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5309 (exit $ac_status); } 5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 5311 (eval $ac_compiler -V </dev/null >&5) 2>&5 5312 ac_status=$? 5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5314 (exit $ac_status); } 5315 rm -f a.out 5316 5317 # If we don't use `.F' as extension, the preprocessor is not run on the 5318 # input file. (Note that this only needs to work for GNU compilers.) 5319 ac_save_ext=$ac_ext 5320 ac_ext=F 5321 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 5322 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 5323 if test "${ac_cv_f77_compiler_gnu+set}" = set; then 5324 echo $ECHO_N "(cached) $ECHO_C" >&6 5325 else 5326 cat >conftest.$ac_ext <<_ACEOF 5327 program main 5328 #ifndef __GNUC__ 5329 choke me 5330 #endif 5331 5332 end 5333 _ACEOF 5334 rm -f conftest.$ac_objext 5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5336 (eval $ac_compile) 2>conftest.er1 5337 ac_status=$? 5338 grep -v '^ *+' conftest.er1 >conftest.err 5339 rm -f conftest.er1 5340 cat conftest.err >&5 5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5342 (exit $ac_status); } && 5343 { ac_try='test -z "$ac_f77_werror_flag" 5344 || test ! -s conftest.err' 5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5346 (eval $ac_try) 2>&5 5347 ac_status=$? 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5349 (exit $ac_status); }; } && 5350 { ac_try='test -s conftest.$ac_objext' 5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5352 (eval $ac_try) 2>&5 5353 ac_status=$? 5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5355 (exit $ac_status); }; }; then 5356 ac_compiler_gnu=yes 5357 else 5358 echo "$as_me: failed program was:" >&5 5359 sed 's/^/| /' conftest.$ac_ext >&5 5360 5361 ac_compiler_gnu=no 5362 fi 5363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5364 ac_cv_f77_compiler_gnu=$ac_compiler_gnu 5365 5366 fi 5367 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 5368 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 5369 ac_ext=$ac_save_ext 5370 ac_test_FFLAGS=${FFLAGS+set} 5371 ac_save_FFLAGS=$FFLAGS 5372 FFLAGS= 5373 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 5374 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 5375 if test "${ac_cv_prog_f77_g+set}" = set; then 5376 echo $ECHO_N "(cached) $ECHO_C" >&6 5377 else 5378 FFLAGS=-g 5379 cat >conftest.$ac_ext <<_ACEOF 5380 program main 5381 5382 end 5383 _ACEOF 5384 rm -f conftest.$ac_objext 5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5386 (eval $ac_compile) 2>conftest.er1 5387 ac_status=$? 5388 grep -v '^ *+' conftest.er1 >conftest.err 5389 rm -f conftest.er1 5390 cat conftest.err >&5 5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5392 (exit $ac_status); } && 5393 { ac_try='test -z "$ac_f77_werror_flag" 5394 || test ! -s conftest.err' 5395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5396 (eval $ac_try) 2>&5 5397 ac_status=$? 5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5399 (exit $ac_status); }; } && 5400 { ac_try='test -s conftest.$ac_objext' 5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5402 (eval $ac_try) 2>&5 5403 ac_status=$? 5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5405 (exit $ac_status); }; }; then 5406 ac_cv_prog_f77_g=yes 5407 else 5408 echo "$as_me: failed program was:" >&5 5409 sed 's/^/| /' conftest.$ac_ext >&5 5410 5411 ac_cv_prog_f77_g=no 5412 fi 5413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5414 5415 fi 5416 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 5417 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 5418 if test "$ac_test_FFLAGS" = set; then 5419 FFLAGS=$ac_save_FFLAGS 5420 elif test $ac_cv_prog_f77_g = yes; then 5421 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5422 FFLAGS="-g -O2" 5423 else 5424 FFLAGS="-g" 5425 fi 5426 else 5427 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 5428 FFLAGS="-O2" 5429 else 5430 FFLAGS= 5431 fi 5432 fi 5433 5434 G77=`test $ac_compiler_gnu = yes && echo yes` 5435 ac_ext=c 5436 ac_cpp='$CPP $CPPFLAGS' 5437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5439 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5440 5441 5442 5443 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 5444 5445 # find the maximum length of command line arguments 5446 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 5447 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 5448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 5449 echo $ECHO_N "(cached) $ECHO_C" >&6 5450 else 5451 i=0 5452 teststring="ABCD" 5453 5454 case $build_os in 5455 msdosdjgpp*) 5456 # On DJGPP, this test can blow up pretty badly due to problems in libc 5457 # (any single argument exceeding 2000 bytes causes a buffer overrun 5458 # during glob expansion). Even if it were fixed, the result of this 5459 # check would be larger than it should be. 5460 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5461 ;; 5462 5463 gnu*) 5464 # Under GNU Hurd, this test is not required because there is 5465 # no limit to the length of command line arguments. 5466 # Libtool will interpret -1 as no limit whatsoever 5467 lt_cv_sys_max_cmd_len=-1; 5468 ;; 5469 5470 cygwin* | mingw*) 5471 # On Win9x/ME, this test blows up -- it succeeds, but takes 5472 # about 5 minutes as the teststring grows exponentially. 5473 # Worse, since 9x/ME are not pre-emptively multitasking, 5474 # you end up with a "frozen" computer, even though with patience 5475 # the test eventually succeeds (with a max line length of 256k). 5476 # Instead, let's just punt: use the minimum linelength reported by 5477 # all of the supported platforms: 8192 (on NT/2K/XP). 5478 lt_cv_sys_max_cmd_len=8192; 5479 ;; 5480 5481 amigaos*) 5482 # On AmigaOS with pdksh, this test takes hours, literally. 5483 # So we just punt and use a minimum line length of 8192. 5484 lt_cv_sys_max_cmd_len=8192; 5485 ;; 5486 5487 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5488 # This has been around since 386BSD, at least. Likely further. 5489 if test -x /sbin/sysctl; then 5490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5491 elif test -x /usr/sbin/sysctl; then 5492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5493 else 5494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 3752 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3753 then ac_cv_prog_egrep='grep -E' 3754 else ac_cv_prog_egrep='egrep' 5495 3755 fi 5496 # And add a safety zone 5497 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5499 ;; 5500 osf*) 5501 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5502 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5503 # nice to cause kernel panics so lets avoid the loop below. 5504 # First set a reasonable default. 5505 lt_cv_sys_max_cmd_len=16384 5506 # 5507 if test -x /sbin/sysconfig; then 5508 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5509 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5510 esac 5511 fi 5512 ;; 5513 *) 5514 # If test is not a shell built-in, we'll probably end up computing a 5515 # maximum length that is only half of the actual maximum length, but 5516 # we can't tell. 5517 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5518 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 5519 = "XX$teststring") >/dev/null 2>&1 && 5520 new_result=`expr "X$teststring" : ".*" 2>&1` && 5521 lt_cv_sys_max_cmd_len=$new_result && 5522 test $i != 17 # 1/2 MB should be enough 5523 do 5524 i=`expr $i + 1` 5525 teststring=$teststring$teststring 5526 done 5527 teststring= 5528 # Add a significant safety factor because C++ compilers can tack on massive 5529 # amounts of additional arguments before passing them to the linker. 5530 # It appears as though 1/2 is a usable value. 5531 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5532 ;; 5533 esac 5534 5535 fi 5536 5537 if test -n $lt_cv_sys_max_cmd_len ; then 5538 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 5539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 5540 else 5541 echo "$as_me:$LINENO: result: none" >&5 5542 echo "${ECHO_T}none" >&6 5543 fi 5544 5545 5546 5547 5548 # Check for command to grab the raw symbol name followed by C symbol from nm. 5549 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5552 echo $ECHO_N "(cached) $ECHO_C" >&6 5553 else 5554 5555 # These are sane defaults that work on at least a few old systems. 5556 # [They come from Ultrix. What could be older than Ultrix?!! ;)] 5557 5558 # Character class describing NM global symbol codes. 5559 symcode='[BCDEGRST]' 5560 5561 # Regexp to match symbols that can be accessed directly from C. 5562 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5563 5564 # Transform an extracted symbol line into a proper C declaration 5565 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 5566 5567 # Transform an extracted symbol line into symbol name and symbol address 5568 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5569 5570 # Define system-specific variables. 5571 case $host_os in 5572 aix*) 5573 symcode='[BCDT]' 5574 ;; 5575 cygwin* | mingw* | pw32*) 5576 symcode='[ABCDGISTW]' 5577 ;; 5578 hpux*) # Its linker distinguishes data from code symbols 5579 if test "$host_cpu" = ia64; then 5580 symcode='[ABCDEGRST]' 5581 fi 5582 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5583 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5584 ;; 5585 linux*) 5586 if test "$host_cpu" = ia64; then 5587 symcode='[ABCDGIRSTW]' 5588 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5589 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5590 fi 5591 ;; 5592 irix* | nonstopux*) 5593 symcode='[BCDEGRST]' 5594 ;; 5595 osf*) 5596 symcode='[BCDEGQRST]' 5597 ;; 5598 solaris* | sysv5*) 5599 symcode='[BDRT]' 5600 ;; 5601 sysv4) 5602 symcode='[DFNSTU]' 5603 ;; 5604 esac 5605 5606 # Handle CRLF in mingw tool chain 5607 opt_cr= 5608 case $build_os in 5609 mingw*) 5610 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5611 ;; 5612 esac 5613 5614 # If we're using GNU nm, then use its standard symbol codes. 5615 case `$NM -V 2>&1` in 5616 *GNU* | *'with BFD'*) 5617 symcode='[ABCDGIRSTW]' ;; 5618 esac 5619 5620 # Try without a prefix undercore, then with it. 5621 for ac_symprfx in "" "_"; do 5622 5623 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5624 symxfrm="\\1 $ac_symprfx\\2 \\2" 5625 5626 # Write the raw and C identifiers. 5627 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5628 5629 # Check to see that the pipe works correctly. 5630 pipe_works=no 5631 5632 rm -f conftest* 5633 cat > conftest.$ac_ext <<EOF 5634 #ifdef __cplusplus 5635 extern "C" { 5636 #endif 5637 char nm_test_var; 5638 void nm_test_func(){} 5639 #ifdef __cplusplus 5640 } 5641 #endif 5642 int main(){nm_test_var='a';nm_test_func();return(0);} 5643 EOF 5644 5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5646 (eval $ac_compile) 2>&5 5647 ac_status=$? 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); }; then 5650 # Now try to grab the symbols. 5651 nlist=conftest.nm 5652 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5653 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5654 ac_status=$? 5655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5656 (exit $ac_status); } && test -s "$nlist"; then 5657 # Try sorting and uniquifying the output. 5658 if sort "$nlist" | uniq > "$nlist"T; then 5659 mv -f "$nlist"T "$nlist" 5660 else 5661 rm -f "$nlist"T 5662 fi 5663 5664 # Make sure that we snagged all the symbols we need. 5665 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5666 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5667 cat <<EOF > conftest.$ac_ext 5668 #ifdef __cplusplus 5669 extern "C" { 5670 #endif 5671 5672 EOF 5673 # Now generate the symbol file. 5674 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5675 5676 cat <<EOF >> conftest.$ac_ext 5677 #if defined (__STDC__) && __STDC__ 5678 # define lt_ptr_t void * 5679 #else 5680 # define lt_ptr_t char * 5681 # define const 5682 #endif 5683 5684 /* The mapping between symbol names and symbols. */ 5685 const struct { 5686 const char *name; 5687 lt_ptr_t address; 5688 } 5689 lt_preloaded_symbols[] = 5690 { 5691 EOF 5692 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5693 cat <<\EOF >> conftest.$ac_ext 5694 {0, (lt_ptr_t) 0} 5695 }; 5696 5697 #ifdef __cplusplus 5698 } 5699 #endif 5700 EOF 5701 # Now try linking the two files. 5702 mv conftest.$ac_objext conftstm.$ac_objext 5703 lt_save_LIBS="$LIBS" 5704 lt_save_CFLAGS="$CFLAGS" 5705 LIBS="conftstm.$ac_objext" 5706 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5708 (eval $ac_link) 2>&5 5709 ac_status=$? 5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5711 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5712 pipe_works=yes 5713 fi 5714 LIBS="$lt_save_LIBS" 5715 CFLAGS="$lt_save_CFLAGS" 5716 else 5717 echo "cannot find nm_test_func in $nlist" >&5 5718 fi 5719 else 5720 echo "cannot find nm_test_var in $nlist" >&5 5721 fi 5722 else 5723 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5724 fi 5725 else 5726 echo "$progname: failed program was:" >&5 5727 cat conftest.$ac_ext >&5 5728 fi 5729 rm -f conftest* conftst* 5730 5731 # Do not use the global_symbol_pipe unless it works. 5732 if test "$pipe_works" = yes; then 5733 break 5734 else 5735 lt_cv_sys_global_symbol_pipe= 5736 fi 5737 done 5738 5739 fi 5740 5741 if test -z "$lt_cv_sys_global_symbol_pipe"; then 5742 lt_cv_sys_global_symbol_to_cdecl= 5743 fi 5744 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5745 echo "$as_me:$LINENO: result: failed" >&5 5746 echo "${ECHO_T}failed" >&6 5747 else 5748 echo "$as_me:$LINENO: result: ok" >&5 5749 echo "${ECHO_T}ok" >&6 5750 fi 5751 5752 echo "$as_me:$LINENO: checking for objdir" >&5 5753 echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5754 if test "${lt_cv_objdir+set}" = set; then 5755 echo $ECHO_N "(cached) $ECHO_C" >&6 5756 else 5757 rm -f .libs 2>/dev/null 5758 mkdir .libs 2>/dev/null 5759 if test -d .libs; then 5760 lt_cv_objdir=.libs 5761 else 5762 # MS-DOS does not allow filenames that begin with a dot. 5763 lt_cv_objdir=_libs 5764 fi 5765 rmdir .libs 2>/dev/null 5766 fi 5767 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5768 echo "${ECHO_T}$lt_cv_objdir" >&6 5769 objdir=$lt_cv_objdir 5770 5771 5772 5773 5774 5775 case $host_os in 5776 aix3*) 5777 # AIX sometimes has problems with the GCC collect2 program. For some 5778 # reason, if we set the COLLECT_NAMES environment variable, the problems 5779 # vanish in a puff of smoke. 5780 if test "X${COLLECT_NAMES+set}" != Xset; then 5781 COLLECT_NAMES= 5782 export COLLECT_NAMES 5783 fi 5784 ;; 5785 esac 5786 5787 # Sed substitution that helps us do robust quoting. It backslashifies 5788 # metacharacters that are still active within double-quoted strings. 5789 Xsed='sed -e 1s/^X//' 5790 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5791 5792 # Same as above, but do not quote variable references. 5793 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5794 5795 # Sed substitution to delay expansion of an escaped shell variable in a 5796 # double_quote_subst'ed string. 5797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5798 5799 # Sed substitution to avoid accidental globbing in evaled expressions 5800 no_glob_subst='s/\*/\\\*/g' 5801 5802 # Constants: 5803 rm="rm -f" 5804 5805 # Global variables: 5806 default_ofile=libtool 5807 can_build_shared=yes 5808 5809 # All known linkers require a `.a' archive for static linking (except MSVC, 5810 # which needs '.lib'). 5811 libext=a 5812 ltmain="$ac_aux_dir/ltmain.sh" 5813 ofile="$default_ofile" 5814 with_gnu_ld="$lt_cv_prog_gnu_ld" 5815 5816 if test -n "$ac_tool_prefix"; then 5817 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5818 set dummy ${ac_tool_prefix}ar; ac_word=$2 5819 echo "$as_me:$LINENO: checking for $ac_word" >&5 5820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5821 if test "${ac_cv_prog_AR+set}" = set; then 5822 echo $ECHO_N "(cached) $ECHO_C" >&6 5823 else 5824 if test -n "$AR"; then 5825 ac_cv_prog_AR="$AR" # Let the user override the test. 5826 else 5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5828 for as_dir in $PATH 5829 do 5830 IFS=$as_save_IFS 5831 test -z "$as_dir" && as_dir=. 5832 for ac_exec_ext in '' $ac_executable_extensions; do 5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5834 ac_cv_prog_AR="${ac_tool_prefix}ar" 5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5836 break 2 5837 fi 5838 done 5839 done 5840 5841 fi 5842 fi 5843 AR=$ac_cv_prog_AR 5844 if test -n "$AR"; then 5845 echo "$as_me:$LINENO: result: $AR" >&5 5846 echo "${ECHO_T}$AR" >&6 5847 else 5848 echo "$as_me:$LINENO: result: no" >&5 5849 echo "${ECHO_T}no" >&6 5850 fi 5851 5852 fi 5853 if test -z "$ac_cv_prog_AR"; then 5854 ac_ct_AR=$AR 5855 # Extract the first word of "ar", so it can be a program name with args. 5856 set dummy ar; ac_word=$2 5857 echo "$as_me:$LINENO: checking for $ac_word" >&5 5858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5860 echo $ECHO_N "(cached) $ECHO_C" >&6 5861 else 5862 if test -n "$ac_ct_AR"; then 5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5864 else 5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5866 for as_dir in $PATH 5867 do 5868 IFS=$as_save_IFS 5869 test -z "$as_dir" && as_dir=. 5870 for ac_exec_ext in '' $ac_executable_extensions; do 5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5872 ac_cv_prog_ac_ct_AR="ar" 5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5874 break 2 5875 fi 5876 done 5877 done 5878 5879 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5880 fi 5881 fi 5882 ac_ct_AR=$ac_cv_prog_ac_ct_AR 5883 if test -n "$ac_ct_AR"; then 5884 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5885 echo "${ECHO_T}$ac_ct_AR" >&6 5886 else 5887 echo "$as_me:$LINENO: result: no" >&5 5888 echo "${ECHO_T}no" >&6 5889 fi 5890 5891 AR=$ac_ct_AR 5892 else 5893 AR="$ac_cv_prog_AR" 5894 fi 5895 5896 if test -n "$ac_tool_prefix"; then 5897 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5898 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5899 echo "$as_me:$LINENO: checking for $ac_word" >&5 5900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5901 if test "${ac_cv_prog_RANLIB+set}" = set; then 5902 echo $ECHO_N "(cached) $ECHO_C" >&6 5903 else 5904 if test -n "$RANLIB"; then 5905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5906 else 5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5908 for as_dir in $PATH 5909 do 5910 IFS=$as_save_IFS 5911 test -z "$as_dir" && as_dir=. 5912 for ac_exec_ext in '' $ac_executable_extensions; do 5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5916 break 2 5917 fi 5918 done 5919 done 5920 5921 fi 5922 fi 5923 RANLIB=$ac_cv_prog_RANLIB 5924 if test -n "$RANLIB"; then 5925 echo "$as_me:$LINENO: result: $RANLIB" >&5 5926 echo "${ECHO_T}$RANLIB" >&6 5927 else 5928 echo "$as_me:$LINENO: result: no" >&5 5929 echo "${ECHO_T}no" >&6 5930 fi 5931 5932 fi 5933 if test -z "$ac_cv_prog_RANLIB"; then 5934 ac_ct_RANLIB=$RANLIB 5935 # Extract the first word of "ranlib", so it can be a program name with args. 5936 set dummy ranlib; ac_word=$2 5937 echo "$as_me:$LINENO: checking for $ac_word" >&5 5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5940 echo $ECHO_N "(cached) $ECHO_C" >&6 5941 else 5942 if test -n "$ac_ct_RANLIB"; then 5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5944 else 5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5946 for as_dir in $PATH 5947 do 5948 IFS=$as_save_IFS 5949 test -z "$as_dir" && as_dir=. 5950 for ac_exec_ext in '' $ac_executable_extensions; do 5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5952 ac_cv_prog_ac_ct_RANLIB="ranlib" 5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5954 break 2 5955 fi 5956 done 5957 done 5958 5959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5960 fi 5961 fi 5962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5963 if test -n "$ac_ct_RANLIB"; then 5964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5965 echo "${ECHO_T}$ac_ct_RANLIB" >&6 5966 else 5967 echo "$as_me:$LINENO: result: no" >&5 5968 echo "${ECHO_T}no" >&6 5969 fi 5970 5971 RANLIB=$ac_ct_RANLIB 5972 else 5973 RANLIB="$ac_cv_prog_RANLIB" 5974 fi 5975 5976 if test -n "$ac_tool_prefix"; then 5977 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5978 set dummy ${ac_tool_prefix}strip; ac_word=$2 5979 echo "$as_me:$LINENO: checking for $ac_word" >&5 5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5981 if test "${ac_cv_prog_STRIP+set}" = set; then 5982 echo $ECHO_N "(cached) $ECHO_C" >&6 5983 else 5984 if test -n "$STRIP"; then 5985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5986 else 5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5988 for as_dir in $PATH 5989 do 5990 IFS=$as_save_IFS 5991 test -z "$as_dir" && as_dir=. 5992 for ac_exec_ext in '' $ac_executable_extensions; do 5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5994 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5996 break 2 5997 fi 5998 done 5999 done 6000 6001 fi 6002 fi 6003 STRIP=$ac_cv_prog_STRIP 6004 if test -n "$STRIP"; then 6005 echo "$as_me:$LINENO: result: $STRIP" >&5 6006 echo "${ECHO_T}$STRIP" >&6 6007 else 6008 echo "$as_me:$LINENO: result: no" >&5 6009 echo "${ECHO_T}no" >&6 6010 fi 6011 6012 fi 6013 if test -z "$ac_cv_prog_STRIP"; then 6014 ac_ct_STRIP=$STRIP 6015 # Extract the first word of "strip", so it can be a program name with args. 6016 set dummy strip; ac_word=$2 6017 echo "$as_me:$LINENO: checking for $ac_word" >&5 6018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 6019 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 6020 echo $ECHO_N "(cached) $ECHO_C" >&6 6021 else 6022 if test -n "$ac_ct_STRIP"; then 6023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6024 else 6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6026 for as_dir in $PATH 6027 do 6028 IFS=$as_save_IFS 6029 test -z "$as_dir" && as_dir=. 6030 for ac_exec_ext in '' $ac_executable_extensions; do 6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6032 ac_cv_prog_ac_ct_STRIP="strip" 6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6034 break 2 6035 fi 6036 done 6037 done 6038 6039 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 6040 fi 6041 fi 6042 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6043 if test -n "$ac_ct_STRIP"; then 6044 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 6045 echo "${ECHO_T}$ac_ct_STRIP" >&6 6046 else 6047 echo "$as_me:$LINENO: result: no" >&5 6048 echo "${ECHO_T}no" >&6 6049 fi 6050 6051 STRIP=$ac_ct_STRIP 6052 else 6053 STRIP="$ac_cv_prog_STRIP" 6054 fi 6055 6056 6057 old_CC="$CC" 6058 old_CFLAGS="$CFLAGS" 6059 6060 # Set sane defaults for various variables 6061 test -z "$AR" && AR=ar 6062 test -z "$AR_FLAGS" && AR_FLAGS=cru 6063 test -z "$AS" && AS=as 6064 test -z "$CC" && CC=cc 6065 test -z "$LTCC" && LTCC=$CC 6066 test -z "$DLLTOOL" && DLLTOOL=dlltool 6067 test -z "$LD" && LD=ld 6068 test -z "$LN_S" && LN_S="ln -s" 6069 test -z "$MAGIC_CMD" && MAGIC_CMD=file 6070 test -z "$NM" && NM=nm 6071 test -z "$SED" && SED=sed 6072 test -z "$OBJDUMP" && OBJDUMP=objdump 6073 test -z "$RANLIB" && RANLIB=: 6074 test -z "$STRIP" && STRIP=: 6075 test -z "$ac_objext" && ac_objext=o 6076 6077 # Determine commands to create old-style static archives. 6078 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 6079 old_postinstall_cmds='chmod 644 $oldlib' 6080 old_postuninstall_cmds= 6081 6082 if test -n "$RANLIB"; then 6083 case $host_os in 6084 openbsd*) 6085 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 6086 ;; 6087 *) 6088 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 6089 ;; 6090 esac 6091 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6092 fi 6093 6094 for cc_temp in $compiler""; do 6095 case $cc_temp in 6096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6098 \-*) ;; 6099 *) break;; 6100 esac 6101 done 6102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6103 6104 6105 # Only perform the check for file, if the check method requires it 6106 case $deplibs_check_method in 6107 file_magic*) 6108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6109 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6110 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6111 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6112 echo $ECHO_N "(cached) $ECHO_C" >&6 6113 else 6114 case $MAGIC_CMD in 6115 [\\/*] | ?:[\\/]*) 6116 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6117 ;; 6118 *) 6119 lt_save_MAGIC_CMD="$MAGIC_CMD" 6120 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6122 for ac_dir in $ac_dummy; do 6123 IFS="$lt_save_ifs" 6124 test -z "$ac_dir" && ac_dir=. 6125 if test -f $ac_dir/${ac_tool_prefix}file; then 6126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6127 if test -n "$file_magic_test_file"; then 6128 case $deplibs_check_method in 6129 "file_magic "*) 6130 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6131 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6132 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6133 $EGREP "$file_magic_regex" > /dev/null; then 6134 : 6135 else 6136 cat <<EOF 1>&2 6137 6138 *** Warning: the command libtool uses to detect shared libraries, 6139 *** $file_magic_cmd, produces output that libtool cannot recognize. 6140 *** The result is that libtool may fail to recognize shared libraries 6141 *** as such. This will affect the creation of libtool libraries that 6142 *** depend on shared libraries, but programs linked with such libtool 6143 *** libraries will work regardless of this problem. Nevertheless, you 6144 *** may want to report the problem to your system manager and/or to 6145 *** bug-libtool@gnu.org 6146 6147 EOF 6148 fi ;; 6149 esac 6150 fi 6151 break 6152 fi 6153 done 6154 IFS="$lt_save_ifs" 6155 MAGIC_CMD="$lt_save_MAGIC_CMD" 6156 ;; 6157 esac 6158 fi 6159 6160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6161 if test -n "$MAGIC_CMD"; then 6162 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6163 echo "${ECHO_T}$MAGIC_CMD" >&6 6164 else 6165 echo "$as_me:$LINENO: result: no" >&5 6166 echo "${ECHO_T}no" >&6 6167 fi 6168 6169 if test -z "$lt_cv_path_MAGIC_CMD"; then 6170 if test -n "$ac_tool_prefix"; then 6171 echo "$as_me:$LINENO: checking for file" >&5 6172 echo $ECHO_N "checking for file... $ECHO_C" >&6 6173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6174 echo $ECHO_N "(cached) $ECHO_C" >&6 6175 else 6176 case $MAGIC_CMD in 6177 [\\/*] | ?:[\\/]*) 6178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6179 ;; 6180 *) 6181 lt_save_MAGIC_CMD="$MAGIC_CMD" 6182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6184 for ac_dir in $ac_dummy; do 6185 IFS="$lt_save_ifs" 6186 test -z "$ac_dir" && ac_dir=. 6187 if test -f $ac_dir/file; then 6188 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6189 if test -n "$file_magic_test_file"; then 6190 case $deplibs_check_method in 6191 "file_magic "*) 6192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6195 $EGREP "$file_magic_regex" > /dev/null; then 6196 : 6197 else 6198 cat <<EOF 1>&2 6199 6200 *** Warning: the command libtool uses to detect shared libraries, 6201 *** $file_magic_cmd, produces output that libtool cannot recognize. 6202 *** The result is that libtool may fail to recognize shared libraries 6203 *** as such. This will affect the creation of libtool libraries that 6204 *** depend on shared libraries, but programs linked with such libtool 6205 *** libraries will work regardless of this problem. Nevertheless, you 6206 *** may want to report the problem to your system manager and/or to 6207 *** bug-libtool@gnu.org 6208 6209 EOF 6210 fi ;; 6211 esac 6212 fi 6213 break 6214 fi 6215 done 6216 IFS="$lt_save_ifs" 6217 MAGIC_CMD="$lt_save_MAGIC_CMD" 6218 ;; 6219 esac 6220 fi 6221 6222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6223 if test -n "$MAGIC_CMD"; then 6224 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6225 echo "${ECHO_T}$MAGIC_CMD" >&6 6226 else 6227 echo "$as_me:$LINENO: result: no" >&5 6228 echo "${ECHO_T}no" >&6 6229 fi 6230 6231 else 6232 MAGIC_CMD=: 6233 fi 6234 fi 6235 6236 fi 6237 ;; 6238 esac 6239 6240 enable_dlopen=no 6241 enable_win32_dll=no 6242 6243 # Check whether --enable-libtool-lock or --disable-libtool-lock was given. 6244 if test "${enable_libtool_lock+set}" = set; then 6245 enableval="$enable_libtool_lock" 6246 6247 fi; 6248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6249 6250 6251 # Check whether --with-pic or --without-pic was given. 6252 if test "${with_pic+set}" = set; then 6253 withval="$with_pic" 6254 pic_mode="$withval" 6255 else 6256 pic_mode=default 6257 fi; 6258 test -z "$pic_mode" && pic_mode=default 6259 6260 # Check if we have a version mismatch between libtool.m4 and ltmain.sh. 6261 # 6262 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. 6263 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually 6264 # calls AC_LIBTOOL_CONFIG and creates libtool. 6265 # 6266 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5 6267 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6 6268 if test -z "$ltmain"; then 6269 echo "$as_me:$LINENO: result: no" >&5 6270 echo "${ECHO_T}no" >&6 6271 echo 6272 echo "*** [Gentoo] sanity check failed! ***" 6273 echo "*** \$ltmain is not defined, please check the patch for consistency! ***" 6274 echo 6275 exit 1 6276 fi 6277 gentoo_lt_version="1.5.20" 6278 gentoo_ltmain_version=`grep '^[[:space:]]*VERSION=' $ltmain | sed -e 's|^[[:space:]]*VERSION=||'` 6279 if test "$gentoo_lt_version" != "$gentoo_ltmain_version"; then 6280 echo "$as_me:$LINENO: result: no" >&5 6281 echo "${ECHO_T}no" >&6 6282 echo 6283 echo "*** [Gentoo] sanity check failed! ***" 6284 echo "*** libtool.m4 and ltmain.sh have a version mismatch! ***" 6285 echo "*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***" 6286 echo 6287 echo "Please run:" 6288 echo 6289 echo " libtoolize --copy --force" 6290 echo 6291 echo "if appropriate, please contact the maintainer of this" 6292 echo "package (or your distribution) for help." 6293 echo 6294 exit 1 6295 else 6296 echo "$as_me:$LINENO: result: yes" >&5 6297 echo "${ECHO_T}yes" >&6 6298 fi 6299 6300 6301 # Use C for the default configuration in the libtool script 6302 tagname= 6303 lt_save_CC="$CC" 6304 ac_ext=c 6305 ac_cpp='$CPP $CPPFLAGS' 6306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6308 ac_compiler_gnu=$ac_cv_c_compiler_gnu 6309 6310 6311 # Source file extension for C test sources. 6312 ac_ext=c 6313 6314 # Object file extension for compiled C test sources. 6315 objext=o 6316 objext=$objext 6317 6318 # Code to be used in simple compile tests 6319 lt_simple_compile_test_code="int some_variable = 0;\n" 6320 6321 # Code to be used in simple link tests 6322 lt_simple_link_test_code='int main(){return(0);}\n' 6323 6324 6325 # If no C compiler was specified, use CC. 6326 LTCC=${LTCC-"$CC"} 6327 6328 # Allow CC to be a program name with arguments. 6329 compiler=$CC 6330 6331 6332 # save warnings/boilerplate of simple test code 6333 ac_outfile=conftest.$ac_objext 6334 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 6335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6336 _lt_compiler_boilerplate=`cat conftest.err` 6337 $rm conftest* 6338 6339 ac_outfile=conftest.$ac_objext 6340 printf "$lt_simple_link_test_code" >conftest.$ac_ext 6341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 6342 _lt_linker_boilerplate=`cat conftest.err` 6343 $rm conftest* 6344 6345 6346 # 6347 # Check for any special shared library compilation flags. 6348 # 6349 lt_prog_cc_shlib= 6350 if test "$GCC" = no; then 6351 case $host_os in 6352 sco3.2v5*) 6353 lt_prog_cc_shlib='-belf' 6354 ;; 6355 esac 6356 fi 6357 if test -n "$lt_prog_cc_shlib"; then 6358 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 6359 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 6360 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 6361 else 6362 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 6363 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 6364 lt_cv_prog_cc_can_build_shared=no 6365 fi 6366 fi 6367 6368 6369 # 6370 # Check to make sure the static flag actually works. 6371 # 6372 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 6373 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 6374 if test "${lt_prog_compiler_static_works+set}" = set; then 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 6376 else 6377 lt_prog_compiler_static_works=no 6378 save_LDFLAGS="$LDFLAGS" 6379 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 6380 printf "$lt_simple_link_test_code" > conftest.$ac_ext 6381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6382 # The linker can only warn and ignore the option if not recognized 6383 # So say no if there are warnings 6384 if test -s conftest.err; then 6385 # Append any errors to the config.log. 6386 cat conftest.err 1>&5 6387 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp 6388 $SED '/^$/d' conftest.err >conftest.er2 6389 if diff conftest.exp conftest.er2 >/dev/null; then 6390 lt_prog_compiler_static_works=yes 6391 fi 6392 else 6393 lt_prog_compiler_static_works=yes 6394 fi 6395 fi 6396 $rm conftest* 6397 LDFLAGS="$save_LDFLAGS" 6398 6399 fi 6400 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6401 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6402 6403 if test x"$lt_prog_compiler_static_works" = xyes; then 6404 : 6405 else 6406 lt_prog_compiler_static= 6407 fi 6408 6409 6410 6411 6412 lt_prog_compiler_no_builtin_flag= 6413 6414 if test "$GCC" = yes; then 6415 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6416 6417 6418 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6421 echo $ECHO_N "(cached) $ECHO_C" >&6 6422 else 6423 lt_cv_prog_compiler_rtti_exceptions=no 6424 ac_outfile=conftest.$ac_objext 6425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6426 lt_compiler_flag="-fno-rtti -fno-exceptions" 6427 # Insert the option either (1) after the last *FLAGS variable, or 6428 # (2) before a word containing "conftest.", or (3) at the end. 6429 # Note that $ac_compile itself does not contain backslashes and begins 6430 # with a dollar sign (not a hyphen), so the echo should work correctly. 6431 # The option is referenced via a variable to avoid confusing sed. 6432 lt_compile=`echo "$ac_compile" | $SED \ 6433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6435 -e 's:$: $lt_compiler_flag:'` 6436 (eval echo "\"\$as_me:6436: $lt_compile\"" >&5) 6437 (eval "$lt_compile" 2>conftest.err) 6438 ac_status=$? 6439 cat conftest.err >&5 6440 echo "$as_me:6440: \$? = $ac_status" >&5 6441 if (exit $ac_status) && test -s "$ac_outfile"; then 6442 # The compiler can only warn and ignore the option if not recognized 6443 # So say no if there are warnings other than the usual output. 6444 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6445 $SED '/^$/d' conftest.err >conftest.er2 6446 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6447 lt_cv_prog_compiler_rtti_exceptions=yes 6448 fi 6449 fi 6450 $rm conftest* 6451 6452 fi 6453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6455 6456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6458 else 6459 : 6460 fi 6461 6462 fi 6463 6464 lt_prog_compiler_wl= 6465 lt_prog_compiler_pic= 6466 lt_prog_compiler_static= 6467 6468 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6470 6471 if test "$GCC" = yes; then 6472 lt_prog_compiler_wl='-Wl,' 6473 lt_prog_compiler_static='-static' 6474 6475 case $host_os in 6476 aix*) 6477 # All AIX code is PIC. 6478 if test "$host_cpu" = ia64; then 6479 # AIX 5 now supports IA64 processor 6480 lt_prog_compiler_static='-Bstatic' 6481 fi 6482 ;; 6483 6484 amigaos*) 6485 # FIXME: we need at least 68020 code to build shared libraries, but 6486 # adding the `-m68020' flag to GCC prevents building anything better, 6487 # like `-m68040'. 6488 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6489 ;; 6490 6491 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6492 # PIC is the default for these OSes. 6493 ;; 6494 6495 mingw* | pw32* | os2*) 6496 # This hack is so that the source file can tell whether it is being 6497 # built for inclusion in a dll (and should export symbols for example). 6498 lt_prog_compiler_pic='-DDLL_EXPORT' 6499 ;; 6500 6501 darwin* | rhapsody*) 6502 # PIC is the default on this platform 6503 # Common symbols not allowed in MH_DYLIB files 6504 lt_prog_compiler_pic='-fno-common' 6505 ;; 6506 6507 msdosdjgpp*) 6508 # Just because we use GCC doesn't mean we suddenly get shared libraries 6509 # on systems that don't support them. 6510 lt_prog_compiler_can_build_shared=no 6511 enable_shared=no 6512 ;; 6513 6514 sysv4*MP*) 6515 if test -d /usr/nec; then 6516 lt_prog_compiler_pic=-Kconform_pic 6517 fi 6518 ;; 6519 6520 hpux*) 6521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6522 # not for PA HP-UX. 6523 case $host_cpu in 6524 hppa*64*|ia64*) 6525 # +Z the default 6526 ;; 6527 *) 6528 lt_prog_compiler_pic='-fPIC' 6529 ;; 6530 esac 6531 ;; 6532 6533 *) 6534 lt_prog_compiler_pic='-fPIC' 6535 ;; 6536 esac 6537 else 6538 # PORTME Check for flag to pass linker flags through the system compiler. 6539 case $host_os in 6540 aix*) 6541 lt_prog_compiler_wl='-Wl,' 6542 if test "$host_cpu" = ia64; then 6543 # AIX 5 now supports IA64 processor 6544 lt_prog_compiler_static='-Bstatic' 6545 else 6546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6547 fi 6548 ;; 6549 darwin*) 6550 # PIC is the default on this platform 6551 # Common symbols not allowed in MH_DYLIB files 6552 case $cc_basename in 6553 xlc*) 6554 lt_prog_compiler_pic='-qnocommon' 6555 lt_prog_compiler_wl='-Wl,' 6556 ;; 6557 esac 6558 ;; 6559 6560 mingw* | pw32* | os2*) 6561 # This hack is so that the source file can tell whether it is being 6562 # built for inclusion in a dll (and should export symbols for example). 6563 lt_prog_compiler_pic='-DDLL_EXPORT' 6564 ;; 6565 6566 hpux9* | hpux10* | hpux11*) 6567 lt_prog_compiler_wl='-Wl,' 6568 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6569 # not for PA HP-UX. 6570 case $host_cpu in 6571 hppa*64*|ia64*) 6572 # +Z the default 6573 ;; 6574 *) 6575 lt_prog_compiler_pic='+Z' 6576 ;; 6577 esac 6578 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6579 lt_prog_compiler_static='${wl}-a ${wl}archive' 6580 ;; 6581 6582 irix5* | irix6* | nonstopux*) 6583 lt_prog_compiler_wl='-Wl,' 6584 # PIC (with -KPIC) is the default. 6585 lt_prog_compiler_static='-non_shared' 6586 ;; 6587 6588 newsos6) 6589 lt_prog_compiler_pic='-KPIC' 6590 lt_prog_compiler_static='-Bstatic' 6591 ;; 6592 6593 linux*) 6594 case $cc_basename in 6595 icc* | ecc*) 6596 lt_prog_compiler_wl='-Wl,' 6597 lt_prog_compiler_pic='-KPIC' 6598 lt_prog_compiler_static='-static' 6599 ;; 6600 pgcc* | pgf77* | pgf90* | pgf95*) 6601 # Portland Group compilers (*not* the Pentium gcc compiler, 6602 # which looks to be a dead project) 6603 lt_prog_compiler_wl='-Wl,' 6604 lt_prog_compiler_pic='-fpic' 6605 lt_prog_compiler_static='-Bstatic' 6606 ;; 6607 ccc*) 6608 lt_prog_compiler_wl='-Wl,' 6609 # All Alpha code is PIC. 6610 lt_prog_compiler_static='-non_shared' 6611 ;; 6612 esac 6613 ;; 6614 6615 osf3* | osf4* | osf5*) 6616 lt_prog_compiler_wl='-Wl,' 6617 # All OSF/1 code is PIC. 6618 lt_prog_compiler_static='-non_shared' 6619 ;; 6620 6621 sco3.2v5*) 6622 lt_prog_compiler_pic='-Kpic' 6623 lt_prog_compiler_static='-dn' 6624 ;; 6625 6626 solaris*) 6627 lt_prog_compiler_pic='-KPIC' 6628 lt_prog_compiler_static='-Bstatic' 6629 case $cc_basename in 6630 f77* | f90* | f95*) 6631 lt_prog_compiler_wl='-Qoption ld ';; 6632 *) 6633 lt_prog_compiler_wl='-Wl,';; 6634 esac 6635 ;; 6636 6637 sunos4*) 6638 lt_prog_compiler_wl='-Qoption ld ' 6639 lt_prog_compiler_pic='-PIC' 6640 lt_prog_compiler_static='-Bstatic' 6641 ;; 6642 6643 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 6644 lt_prog_compiler_wl='-Wl,' 6645 lt_prog_compiler_pic='-KPIC' 6646 lt_prog_compiler_static='-Bstatic' 6647 ;; 6648 6649 sysv4*MP*) 6650 if test -d /usr/nec ;then 6651 lt_prog_compiler_pic='-Kconform_pic' 6652 lt_prog_compiler_static='-Bstatic' 6653 fi 6654 ;; 6655 6656 unicos*) 6657 lt_prog_compiler_wl='-Wl,' 6658 lt_prog_compiler_can_build_shared=no 6659 ;; 6660 6661 uts4*) 6662 lt_prog_compiler_pic='-pic' 6663 lt_prog_compiler_static='-Bstatic' 6664 ;; 6665 6666 *) 6667 lt_prog_compiler_can_build_shared=no 6668 ;; 6669 esac 6670 fi 6671 6672 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6673 echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6674 6675 # 6676 # Check to make sure the PIC flag actually works. 6677 # 6678 if test -n "$lt_prog_compiler_pic"; then 6679 6680 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6681 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6682 if test "${lt_prog_compiler_pic_works+set}" = set; then 6683 echo $ECHO_N "(cached) $ECHO_C" >&6 6684 else 6685 lt_prog_compiler_pic_works=no 6686 ac_outfile=conftest.$ac_objext 6687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6689 # Insert the option either (1) after the last *FLAGS variable, or 6690 # (2) before a word containing "conftest.", or (3) at the end. 6691 # Note that $ac_compile itself does not contain backslashes and begins 6692 # with a dollar sign (not a hyphen), so the echo should work correctly. 6693 # The option is referenced via a variable to avoid confusing sed. 6694 lt_compile=`echo "$ac_compile" | $SED \ 6695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6697 -e 's:$: $lt_compiler_flag:'` 6698 (eval echo "\"\$as_me:6698: $lt_compile\"" >&5) 6699 (eval "$lt_compile" 2>conftest.err) 6700 ac_status=$? 6701 cat conftest.err >&5 6702 echo "$as_me:6702: \$? = $ac_status" >&5 6703 if (exit $ac_status) && test -s "$ac_outfile"; then 6704 # The compiler can only warn and ignore the option if not recognized 6705 # So say no if there are warnings other than the usual output. 6706 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 6707 $SED '/^$/d' conftest.err >conftest.er2 6708 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 6709 lt_prog_compiler_pic_works=yes 6710 fi 6711 fi 6712 $rm conftest* 6713 6714 fi 6715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6716 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6717 6718 if test x"$lt_prog_compiler_pic_works" = xyes; then 6719 case $lt_prog_compiler_pic in 6720 "" | " "*) ;; 6721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6722 esac 6723 else 6724 lt_prog_compiler_pic= 6725 lt_prog_compiler_can_build_shared=no 6726 fi 6727 6728 fi 6729 case $host_os in 6730 # For platforms which do not support PIC, -DPIC is meaningless: 6731 *djgpp*) 6732 lt_prog_compiler_pic= 6733 ;; 6734 *) 6735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6736 ;; 6737 esac 6738 6739 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6741 if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6742 echo $ECHO_N "(cached) $ECHO_C" >&6 6743 else 6744 lt_cv_prog_compiler_c_o=no 6745 $rm -r conftest 2>/dev/null 6746 mkdir conftest 6747 cd conftest 6748 mkdir out 6749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6750 6751 lt_compiler_flag="-o out/conftest2.$ac_objext" 6752 # Insert the option either (1) after the last *FLAGS variable, or 6753 # (2) before a word containing "conftest.", or (3) at the end. 6754 # Note that $ac_compile itself does not contain backslashes and begins 6755 # with a dollar sign (not a hyphen), so the echo should work correctly. 6756 lt_compile=`echo "$ac_compile" | $SED \ 6757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6759 -e 's:$: $lt_compiler_flag:'` 6760 (eval echo "\"\$as_me:6760: $lt_compile\"" >&5) 6761 (eval "$lt_compile" 2>out/conftest.err) 6762 ac_status=$? 6763 cat out/conftest.err >&5 6764 echo "$as_me:6764: \$? = $ac_status" >&5 6765 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6766 then 6767 # The compiler can only warn and ignore the option if not recognized 6768 # So say no if there are warnings 6769 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 6770 $SED '/^$/d' out/conftest.err >out/conftest.er2 6771 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6772 lt_cv_prog_compiler_c_o=yes 6773 fi 6774 fi 6775 chmod u+w . 2>&5 6776 $rm conftest* 6777 # SGI C++ compiler will create directory out/ii_files/ for 6778 # template instantiation 6779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6780 $rm out/* && rmdir out 6781 cd .. 6782 rmdir conftest 6783 $rm conftest* 6784 6785 fi 6786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6788 6789 6790 hard_links="nottested" 6791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6792 # do not overwrite the value of need_locks provided by the user 6793 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6795 hard_links=yes 6796 $rm conftest* 6797 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6798 touch conftest.a 6799 ln conftest.a conftest.b 2>&5 || hard_links=no 6800 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6801 echo "$as_me:$LINENO: result: $hard_links" >&5 6802 echo "${ECHO_T}$hard_links" >&6 6803 if test "$hard_links" = no; then 6804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6806 need_locks=warn 6807 fi 6808 else 6809 need_locks=no 6810 fi 6811 6812 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6814 6815 runpath_var= 6816 allow_undefined_flag= 6817 enable_shared_with_static_runtimes=no 6818 archive_cmds= 6819 archive_expsym_cmds= 6820 old_archive_From_new_cmds= 6821 old_archive_from_expsyms_cmds= 6822 export_dynamic_flag_spec= 6823 whole_archive_flag_spec= 6824 thread_safe_flag_spec= 6825 hardcode_libdir_flag_spec= 6826 hardcode_libdir_flag_spec_ld= 6827 hardcode_libdir_separator= 6828 hardcode_direct=no 6829 hardcode_minus_L=no 6830 hardcode_shlibpath_var=unsupported 6831 link_all_deplibs=unknown 6832 hardcode_automatic=no 6833 module_cmds= 6834 module_expsym_cmds= 6835 always_export_symbols=no 6836 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6837 # include_expsyms should be a list of space-separated symbols to be *always* 6838 # included in the symbol list 6839 include_expsyms= 6840 # exclude_expsyms can be an extended regexp of symbols to exclude 6841 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6842 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6843 # as well as any symbol that contains `d'. 6844 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6845 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6846 # platforms (ab)use it in PIC code, but their linkers get confused if 6847 # the symbol is explicitly referenced. Since portable code cannot 6848 # rely on this symbol name, it's probably fine to never include it in 6849 # preloaded symbol tables. 6850 extract_expsyms_cmds= 6851 # Just being paranoid about ensuring that cc_basename is set. 6852 for cc_temp in $compiler""; do 6853 case $cc_temp in 6854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6856 \-*) ;; 6857 *) break;; 6858 esac 6859 done 6860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6861 6862 case $host_os in 6863 cygwin* | mingw* | pw32*) 6864 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6865 # When not using gcc, we currently assume that we are using 6866 # Microsoft Visual C++. 6867 if test "$GCC" != yes; then 6868 with_gnu_ld=no 6869 fi 6870 ;; 6871 openbsd*) 6872 with_gnu_ld=no 6873 ;; 6874 esac 6875 6876 ld_shlibs=yes 6877 if test "$with_gnu_ld" = yes; then 6878 # If archive_cmds runs LD, not CC, wlarc should be empty 6879 wlarc='${wl}' 6880 6881 # Set some defaults for GNU ld with shared library support. These 6882 # are reset later if shared libraries are not supported. Putting them 6883 # here allows them to be overridden if necessary. 6884 runpath_var=LD_RUN_PATH 6885 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6886 export_dynamic_flag_spec='${wl}--export-dynamic' 6887 # ancient GNU ld didn't support --whole-archive et. al. 6888 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6889 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6890 else 6891 whole_archive_flag_spec= 6892 fi 6893 supports_anon_versioning=no 6894 case `$LD -v 2>/dev/null` in 6895 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6896 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6897 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6898 *\ 2.11.*) ;; # other 2.11 versions 6899 *) supports_anon_versioning=yes ;; 6900 esac 6901 6902 # See if GNU ld supports shared libraries. 6903 case $host_os in 6904 aix3* | aix4* | aix5*) 6905 # On AIX/PPC, the GNU linker is very broken 6906 if test "$host_cpu" != ia64; then 6907 ld_shlibs=no 6908 cat <<EOF 1>&2 6909 6910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 6911 *** to be unable to reliably create shared libraries on AIX. 6912 *** Therefore, libtool is disabling shared libraries support. If you 6913 *** really care for shared libraries, you may want to modify your PATH 6914 *** so that a non-GNU linker is found, and then restart. 6915 6916 EOF 6917 fi 6918 ;; 6919 6920 amigaos*) 6921 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)' 6922 hardcode_libdir_flag_spec='-L$libdir' 6923 hardcode_minus_L=yes 6924 6925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6926 # that the semantics of dynamic libraries on AmigaOS, at least up 6927 # to version 4, is to share data among multiple programs linked 6928 # with the same dynamic library. Since this doesn't match the 6929 # behavior of shared libraries on other platforms, we can't use 6930 # them. 6931 ld_shlibs=no 6932 ;; 6933 6934 beos*) 6935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6936 allow_undefined_flag=unsupported 6937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6938 # support --undefined. This deserves some investigation. FIXME 6939 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6940 else 6941 ld_shlibs=no 6942 fi 6943 ;; 6944 6945 cygwin* | mingw* | pw32*) 6946 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6947 # as there is no search path for DLLs. 6948 hardcode_libdir_flag_spec='-L$libdir' 6949 allow_undefined_flag=unsupported 6950 always_export_symbols=no 6951 enable_shared_with_static_runtimes=yes 6952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6953 6954 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6955 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6956 # If the export-symbols file already is a .def file (1st line 6957 # is EXPORTS), use it as is; otherwise, prepend... 6958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6959 cp $export_symbols $output_objdir/$soname.def; 6960 else 6961 echo EXPORTS > $output_objdir/$soname.def; 6962 cat $export_symbols >> $output_objdir/$soname.def; 6963 fi~ 6964 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6965 else 6966 ld_shlibs=no 6967 fi 6968 ;; 6969 6970 linux*) 6971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6972 tmp_addflag= 6973 case $cc_basename,$host_cpu in 6974 pgcc*) # Portland Group C compiler 6975 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6976 tmp_addflag=' $pic_flag' 6977 ;; 6978 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 6979 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 6980 tmp_addflag=' $pic_flag -Mnomain' ;; 6981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 6982 tmp_addflag=' -i_dynamic' ;; 6983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 6984 tmp_addflag=' -i_dynamic -nofor_main' ;; 6985 ifc* | ifort*) # Intel Fortran compiler 6986 tmp_addflag=' -nofor_main' ;; 6987 esac 6988 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6989 6990 if test $supports_anon_versioning = yes; then 6991 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6993 $echo "local: *; };" >> $output_objdir/$libname.ver~ 6994 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6995 fi 6996 else 6997 ld_shlibs=no 6998 fi 6999 ;; 7000 7001 netbsd*) 7002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7003 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7004 wlarc= 7005 else 7006 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7007 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7008 fi 7009 ;; 7010 7011 solaris* | sysv5*) 7012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 7013 ld_shlibs=no 7014 cat <<EOF 1>&2 7015 7016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 7017 *** create shared libraries on Solaris systems. Therefore, libtool 7018 *** is disabling shared libraries support. We urge you to upgrade GNU 7019 *** binutils to release 2.9.1 or newer. Another option is to modify 7020 *** your PATH or compiler configuration so that the native linker is 7021 *** used, and then restart. 7022 7023 EOF 7024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7025 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7026 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7027 else 7028 ld_shlibs=no 7029 fi 7030 ;; 7031 7032 sunos4*) 7033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7034 wlarc= 7035 hardcode_direct=yes 7036 hardcode_shlibpath_var=no 7037 ;; 7038 7039 *) 7040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 7041 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7042 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7043 else 7044 ld_shlibs=no 7045 fi 7046 ;; 7047 esac 7048 7049 if test "$ld_shlibs" = no; then 7050 runpath_var= 7051 hardcode_libdir_flag_spec= 7052 export_dynamic_flag_spec= 7053 whole_archive_flag_spec= 7054 fi 7055 else 7056 # PORTME fill in a description of your system's linker (not GNU ld) 7057 case $host_os in 7058 aix3*) 7059 allow_undefined_flag=unsupported 7060 always_export_symbols=yes 7061 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' 7062 # Note: this linker hardcodes the directories in LIBPATH if there 7063 # are no directories specified by -L. 7064 hardcode_minus_L=yes 7065 if test "$GCC" = yes && test -z "$link_static_flag"; then 7066 # Neither direct hardcoding nor static linking is supported with a 7067 # broken collect2. 7068 hardcode_direct=unsupported 7069 fi 7070 ;; 7071 7072 aix4* | aix5*) 7073 if test "$host_cpu" = ia64; then 7074 # On IA64, the linker does run time linking by default, so we don't 7075 # have to do anything special. 7076 aix_use_runtimelinking=no 7077 exp_sym_flag='-Bexport' 7078 no_entry_flag="" 7079 else 7080 # If we're using GNU nm, then we don't want the "-C" option. 7081 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7082 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 7083 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7084 else 7085 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 7086 fi 7087 aix_use_runtimelinking=no 7088 7089 # Test if we are trying to use run time linking or normal 7090 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7091 # need to do runtime linking. 7092 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 7093 for ld_flag in $LDFLAGS; do 7094 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7095 aix_use_runtimelinking=yes 7096 break 7097 fi 7098 done 7099 esac 7100 7101 exp_sym_flag='-bexport' 7102 no_entry_flag='-bnoentry' 7103 fi 7104 7105 # When large executables or shared objects are built, AIX ld can 7106 # have problems creating the table of contents. If linking a library 7107 # or program results in "error TOC overflow" add -mminimal-toc to 7108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7110 7111 archive_cmds='' 7112 hardcode_direct=yes 7113 hardcode_libdir_separator=':' 7114 link_all_deplibs=yes 7115 7116 if test "$GCC" = yes; then 7117 case $host_os in aix4.[012]|aix4.[012].*) 7118 # We only want to do this on AIX 4.2 and lower, the check 7119 # below for broken collect2 doesn't work under 4.3+ 7120 collect2name=`${CC} -print-prog-name=collect2` 7121 if test -f "$collect2name" && \ 7122 strings "$collect2name" | grep resolve_lib_name >/dev/null 7123 then 7124 # We have reworked collect2 7125 hardcode_direct=yes 7126 else 7127 # We have old collect2 7128 hardcode_direct=unsupported 7129 # It fails to find uninstalled libraries when the uninstalled 7130 # path is not listed in the libpath. Setting hardcode_minus_L 7131 # to unsupported forces relinking 7132 hardcode_minus_L=yes 7133 hardcode_libdir_flag_spec='-L$libdir' 7134 hardcode_libdir_separator= 7135 fi 7136 esac 7137 shared_flag='-shared' 7138 if test "$aix_use_runtimelinking" = yes; then 7139 shared_flag="$shared_flag "'${wl}-G' 7140 fi 7141 else 7142 # not using gcc 7143 if test "$host_cpu" = ia64; then 7144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7145 # chokes on -Wl,-G. The following line is correct: 7146 shared_flag='-G' 7147 else 7148 if test "$aix_use_runtimelinking" = yes; then 7149 shared_flag='${wl}-G' 7150 else 7151 shared_flag='${wl}-bM:SRE' 7152 fi 7153 fi 7154 fi 7155 7156 # It seems that -bexpall does not export symbols beginning with 7157 # underscore (_), so it is better to generate a list of symbols to export. 7158 always_export_symbols=yes 7159 if test "$aix_use_runtimelinking" = yes; then 7160 # Warning - without using the other runtime loading flags (-brtl), 7161 # -berok will link without error, but may produce a broken library. 7162 allow_undefined_flag='-berok' 7163 # Determine the default libpath from the value encoded in an empty executable. 7164 cat >conftest.$ac_ext <<_ACEOF 7165 /* confdefs.h. */ 7166 _ACEOF 7167 cat confdefs.h >>conftest.$ac_ext 7168 cat >>conftest.$ac_ext <<_ACEOF 7169 /* end confdefs.h. */ 7170 7171 int 7172 main () 7173 { 7174 7175 ; 7176 return 0; 7177 } 7178 _ACEOF 7179 rm -f conftest.$ac_objext conftest$ac_exeext 7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7181 (eval $ac_link) 2>conftest.er1 7182 ac_status=$? 7183 grep -v '^ *+' conftest.er1 >conftest.err 7184 rm -f conftest.er1 7185 cat conftest.err >&5 7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7187 (exit $ac_status); } && 7188 { ac_try='test -z "$ac_c_werror_flag" 7189 || test ! -s conftest.err' 7190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7191 (eval $ac_try) 2>&5 7192 ac_status=$? 7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7194 (exit $ac_status); }; } && 7195 { ac_try='test -s conftest$ac_exeext' 7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7197 (eval $ac_try) 2>&5 7198 ac_status=$? 7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7200 (exit $ac_status); }; }; then 7201 7202 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7203 }'` 7204 # Check for a 64-bit object if we didn't find anything. 7205 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7206 }'`; fi 7207 else 7208 echo "$as_me: failed program was:" >&5 7209 sed 's/^/| /' conftest.$ac_ext >&5 7210 7211 fi 7212 rm -f conftest.err conftest.$ac_objext \ 7213 conftest$ac_exeext conftest.$ac_ext 7214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7215 7216 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7217 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7218 else 7219 if test "$host_cpu" = ia64; then 7220 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7221 allow_undefined_flag="-z nodefs" 7222 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 7223 else 7224 # Determine the default libpath from the value encoded in an empty executable. 7225 cat >conftest.$ac_ext <<_ACEOF 7226 /* confdefs.h. */ 7227 _ACEOF 7228 cat confdefs.h >>conftest.$ac_ext 7229 cat >>conftest.$ac_ext <<_ACEOF 7230 /* end confdefs.h. */ 7231 7232 int 7233 main () 7234 { 7235 7236 ; 7237 return 0; 7238 } 7239 _ACEOF 7240 rm -f conftest.$ac_objext conftest$ac_exeext 7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7242 (eval $ac_link) 2>conftest.er1 7243 ac_status=$? 7244 grep -v '^ *+' conftest.er1 >conftest.err 7245 rm -f conftest.er1 7246 cat conftest.err >&5 7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7248 (exit $ac_status); } && 7249 { ac_try='test -z "$ac_c_werror_flag" 7250 || test ! -s conftest.err' 7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7252 (eval $ac_try) 2>&5 7253 ac_status=$? 7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7255 (exit $ac_status); }; } && 7256 { ac_try='test -s conftest$ac_exeext' 7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7258 (eval $ac_try) 2>&5 7259 ac_status=$? 7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7261 (exit $ac_status); }; }; then 7262 7263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7264 }'` 7265 # Check for a 64-bit object if we didn't find anything. 7266 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 7267 }'`; fi 7268 else 7269 echo "$as_me: failed program was:" >&5 7270 sed 's/^/| /' conftest.$ac_ext >&5 7271 7272 fi 7273 rm -f conftest.err conftest.$ac_objext \ 7274 conftest$ac_exeext conftest.$ac_ext 7275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7276 7277 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7278 # Warning - without using the other run time loading flags, 7279 # -berok will link without error, but may produce a broken library. 7280 no_undefined_flag=' ${wl}-bernotok' 7281 allow_undefined_flag=' ${wl}-berok' 7282 # -bexpall does not export symbols beginning with underscore (_) 7283 always_export_symbols=yes 7284 # Exported symbols can be pulled into shared objects from archives 7285 whole_archive_flag_spec=' ' 7286 archive_cmds_need_lc=yes 7287 # This is similar to how AIX traditionally builds its shared libraries. 7288 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7289 fi 7290 fi 7291 ;; 7292 7293 amigaos*) 7294 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)' 7295 hardcode_libdir_flag_spec='-L$libdir' 7296 hardcode_minus_L=yes 7297 # see comment about different semantics on the GNU ld section 7298 ld_shlibs=no 7299 ;; 7300 7301 bsdi[45]*) 7302 export_dynamic_flag_spec=-rdynamic 7303 ;; 7304 7305 cygwin* | mingw* | pw32*) 7306 # When not using gcc, we currently assume that we are using 7307 # Microsoft Visual C++. 7308 # hardcode_libdir_flag_spec is actually meaningless, as there is 7309 # no search path for DLLs. 7310 hardcode_libdir_flag_spec=' ' 7311 allow_undefined_flag=unsupported 7312 # Tell ltmain to make .lib files, not .a files. 7313 libext=lib 7314 # Tell ltmain to make .dll files, not .so files. 7315 shrext_cmds=".dll" 7316 # FIXME: Setting linknames here is a bad hack. 7317 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7318 # The linker will automatically build a .lib file if we build a DLL. 7319 old_archive_From_new_cmds='true' 7320 # FIXME: Should let the user specify the lib program. 7321 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 7322 fix_srcfile_path='`cygpath -w "$srcfile"`' 7323 enable_shared_with_static_runtimes=yes 7324 ;; 7325 7326 darwin* | rhapsody*) 7327 case $host_os in 7328 rhapsody* | darwin1.[012]) 7329 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7330 ;; 7331 *) # Darwin 1.3 on 7332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 7333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7334 else 7335 case ${MACOSX_DEPLOYMENT_TARGET} in 7336 10.[012]) 7337 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7338 ;; 7339 10.*) 7340 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7341 ;; 7342 esac 7343 fi 7344 ;; 7345 esac 7346 archive_cmds_need_lc=no 7347 hardcode_direct=no 7348 hardcode_automatic=yes 7349 hardcode_shlibpath_var=unsupported 7350 whole_archive_flag_spec='' 7351 link_all_deplibs=yes 7352 if test "$GCC" = yes ; then 7353 output_verbose_link_cmd='echo' 7354 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7355 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7356 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7357 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7358 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7359 else 7360 case $cc_basename in 7361 xlc*) 7362 output_verbose_link_cmd='echo' 7363 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 7364 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7366 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7367 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7368 ;; 7369 *) 7370 ld_shlibs=no 7371 ;; 7372 esac 7373 fi 7374 ;; 7375 7376 dgux*) 7377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7378 hardcode_libdir_flag_spec='-L$libdir' 7379 hardcode_shlibpath_var=no 7380 ;; 7381 7382 freebsd1*) 7383 ld_shlibs=no 7384 ;; 7385 7386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7387 # support. Future versions do this automatically, but an explicit c++rt0.o 7388 # does not break anything, and helps significantly (at the cost of a little 7389 # extra space). 7390 freebsd2.2*) 7391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7392 hardcode_libdir_flag_spec='-R$libdir' 7393 hardcode_direct=yes 7394 hardcode_shlibpath_var=no 7395 ;; 7396 7397 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7398 freebsd2*) 7399 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7400 hardcode_direct=yes 7401 hardcode_minus_L=yes 7402 hardcode_shlibpath_var=no 7403 ;; 7404 7405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7406 freebsd* | kfreebsd*-gnu | dragonfly*) 7407 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7408 hardcode_libdir_flag_spec='-R$libdir' 7409 hardcode_direct=yes 7410 hardcode_shlibpath_var=no 7411 ;; 7412 7413 hpux9*) 7414 if test "$GCC" = yes; then 7415 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7416 else 7417 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 7418 fi 7419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7420 hardcode_libdir_separator=: 7421 hardcode_direct=yes 7422 7423 # hardcode_minus_L: Not really in the search PATH, 7424 # but as the default location of the library. 7425 hardcode_minus_L=yes 7426 export_dynamic_flag_spec='${wl}-E' 7427 ;; 7428 7429 hpux10* | hpux11*) 7430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7431 case $host_cpu in 7432 hppa*64*|ia64*) 7433 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7434 ;; 7435 *) 7436 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7437 ;; 7438 esac 7439 else 7440 case $host_cpu in 7441 hppa*64*|ia64*) 7442 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 7443 ;; 7444 *) 7445 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7446 ;; 7447 esac 7448 fi 7449 if test "$with_gnu_ld" = no; then 7450 case $host_cpu in 7451 hppa*64*) 7452 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7453 hardcode_libdir_flag_spec_ld='+b $libdir' 7454 hardcode_libdir_separator=: 7455 hardcode_direct=no 7456 hardcode_shlibpath_var=no 7457 ;; 7458 ia64*) 7459 hardcode_libdir_flag_spec='-L$libdir' 7460 hardcode_direct=no 7461 hardcode_shlibpath_var=no 7462 7463 # hardcode_minus_L: Not really in the search PATH, 7464 # but as the default location of the library. 7465 hardcode_minus_L=yes 7466 ;; 7467 *) 7468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7469 hardcode_libdir_separator=: 7470 hardcode_direct=yes 7471 export_dynamic_flag_spec='${wl}-E' 7472 7473 # hardcode_minus_L: Not really in the search PATH, 7474 # but as the default location of the library. 7475 hardcode_minus_L=yes 7476 ;; 7477 esac 7478 fi 7479 ;; 7480 7481 irix5* | irix6* | nonstopux*) 7482 if test "$GCC" = yes; then 7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7484 else 7485 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7486 hardcode_libdir_flag_spec_ld='-rpath $libdir' 7487 fi 7488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7489 hardcode_libdir_separator=: 7490 link_all_deplibs=yes 7491 ;; 7492 7493 netbsd*) 7494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7496 else 7497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7498 fi 7499 hardcode_libdir_flag_spec='-R$libdir' 7500 hardcode_direct=yes 7501 hardcode_shlibpath_var=no 7502 ;; 7503 7504 newsos6) 7505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7506 hardcode_direct=yes 7507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7508 hardcode_libdir_separator=: 7509 hardcode_shlibpath_var=no 7510 ;; 7511 7512 openbsd*) 7513 hardcode_direct=yes 7514 hardcode_shlibpath_var=no 7515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7516 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7517 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7518 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7519 export_dynamic_flag_spec='${wl}-E' 7520 else 7521 case $host_os in 7522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7524 hardcode_libdir_flag_spec='-R$libdir' 7525 ;; 7526 *) 7527 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7529 ;; 7530 esac 7531 fi 7532 ;; 7533 7534 os2*) 7535 hardcode_libdir_flag_spec='-L$libdir' 7536 hardcode_minus_L=yes 7537 allow_undefined_flag=unsupported 7538 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 7539 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7540 ;; 7541 7542 osf3*) 7543 if test "$GCC" = yes; then 7544 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7545 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7546 else 7547 allow_undefined_flag=' -expect_unresolved \*' 7548 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7549 fi 7550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7551 hardcode_libdir_separator=: 7552 ;; 7553 7554 osf4* | osf5*) # as osf3* with the addition of -msym flag 7555 if test "$GCC" = yes; then 7556 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7557 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7558 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7559 else 7560 allow_undefined_flag=' -expect_unresolved \*' 7561 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 7562 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 7563 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 7564 7565 # Both c and cxx compiler support -rpath directly 7566 hardcode_libdir_flag_spec='-rpath $libdir' 7567 fi 7568 hardcode_libdir_separator=: 7569 ;; 7570 7571 sco3.2v5*) 7572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7573 hardcode_shlibpath_var=no 7574 export_dynamic_flag_spec='${wl}-Bexport' 7575 runpath_var=LD_RUN_PATH 7576 hardcode_runpath_var=yes 7577 ;; 7578 7579 solaris*) 7580 no_undefined_flag=' -z text' 7581 if test "$GCC" = yes; then 7582 wlarc='${wl}' 7583 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7584 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7585 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 7586 else 7587 wlarc='' 7588 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7589 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7590 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7591 fi 7592 hardcode_libdir_flag_spec='-R$libdir' 7593 hardcode_shlibpath_var=no 7594 case $host_os in 7595 solaris2.[0-5] | solaris2.[0-5].*) ;; 7596 *) 7597 # The compiler driver will combine linker options so we 7598 # cannot just pass the convience library names through 7599 # without $wl, iff we do not link with $LD. 7600 # Luckily, gcc supports the same syntax we need for Sun Studio. 7601 # Supported since Solaris 2.6 (maybe 2.5.1?) 7602 case $wlarc in 7603 '') 7604 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 7605 *) 7606 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 7607 esac ;; 7608 esac 7609 link_all_deplibs=yes 7610 ;; 7611 7612 sunos4*) 7613 if test "x$host_vendor" = xsequent; then 7614 # Use $CC to link under sequent, because it throws in some extra .o 7615 # files that make .init and .fini sections work. 7616 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7617 else 7618 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7619 fi 7620 hardcode_libdir_flag_spec='-L$libdir' 7621 hardcode_direct=yes 7622 hardcode_minus_L=yes 7623 hardcode_shlibpath_var=no 7624 ;; 7625 7626 sysv4) 7627 case $host_vendor in 7628 sni) 7629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7630 hardcode_direct=yes # is this really true??? 7631 ;; 7632 siemens) 7633 ## LD is ld it makes a PLAMLIB 7634 ## CC just makes a GrossModule. 7635 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7636 reload_cmds='$CC -r -o $output$reload_objs' 7637 hardcode_direct=no 7638 ;; 7639 motorola) 7640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7641 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7642 ;; 7643 esac 7644 runpath_var='LD_RUN_PATH' 7645 hardcode_shlibpath_var=no 7646 ;; 7647 7648 sysv4.3*) 7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7650 hardcode_shlibpath_var=no 7651 export_dynamic_flag_spec='-Bexport' 7652 ;; 7653 7654 sysv4*MP*) 7655 if test -d /usr/nec; then 7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7657 hardcode_shlibpath_var=no 7658 runpath_var=LD_RUN_PATH 7659 hardcode_runpath_var=yes 7660 ld_shlibs=yes 7661 fi 7662 ;; 7663 7664 sysv4.2uw2*) 7665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7666 hardcode_direct=yes 7667 hardcode_minus_L=no 7668 hardcode_shlibpath_var=no 7669 hardcode_runpath_var=yes 7670 runpath_var=LD_RUN_PATH 7671 ;; 7672 7673 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 7674 no_undefined_flag='${wl}-z ${wl}text' 7675 if test "$GCC" = yes; then 7676 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7677 else 7678 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7679 fi 7680 runpath_var='LD_RUN_PATH' 7681 hardcode_shlibpath_var=no 7682 ;; 7683 7684 sysv5*) 7685 no_undefined_flag=' -z text' 7686 # $CC -shared without GNU ld will not create a library from C++ 7687 # object files and a static libstdc++, better avoid it by now 7688 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7689 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 7690 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 7691 hardcode_libdir_flag_spec= 7692 hardcode_shlibpath_var=no 7693 runpath_var='LD_RUN_PATH' 7694 ;; 7695 7696 uts4*) 7697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7698 hardcode_libdir_flag_spec='-L$libdir' 7699 hardcode_shlibpath_var=no 7700 ;; 7701 7702 *) 7703 ld_shlibs=no 7704 ;; 7705 esac 7706 fi 7707 7708 echo "$as_me:$LINENO: result: $ld_shlibs" >&5 7709 echo "${ECHO_T}$ld_shlibs" >&6 7710 test "$ld_shlibs" = no && can_build_shared=no 7711 7712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7713 if test "$GCC" = yes; then 7714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7715 fi 7716 7717 # 7718 # Do we need to explicitly link libc? 7719 # 7720 case "x$archive_cmds_need_lc" in 7721 x|xyes) 7722 # Assume -lc should be added 7723 archive_cmds_need_lc=yes 7724 7725 if test "$enable_shared" = yes && test "$GCC" = yes; then 7726 case $archive_cmds in 7727 *'~'*) 7728 # FIXME: we may have to deal with multi-command sequences. 7729 ;; 7730 '$CC '*) 7731 # Test whether the compiler implicitly links with -lc since on some 7732 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7733 # to ld, don't add -lc before -lgcc. 7734 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7735 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7736 $rm conftest* 7737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7738 7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7740 (eval $ac_compile) 2>&5 7741 ac_status=$? 7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7743 (exit $ac_status); } 2>conftest.err; then 7744 soname=conftest 7745 lib=conftest 7746 libobjs=conftest.$ac_objext 7747 deplibs= 7748 wl=$lt_prog_compiler_wl 7749 compiler_flags=-v 7750 linker_flags=-v 7751 verstring= 7752 output_objdir=. 7753 libname=conftest 7754 lt_save_allow_undefined_flag=$allow_undefined_flag 7755 allow_undefined_flag= 7756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7757 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7758 ac_status=$? 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } 7761 then 7762 archive_cmds_need_lc=no 7763 else 7764 archive_cmds_need_lc=yes 7765 fi 7766 allow_undefined_flag=$lt_save_allow_undefined_flag 7767 else 7768 cat conftest.err 1>&5 7769 fi 7770 $rm conftest* 7771 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7772 echo "${ECHO_T}$archive_cmds_need_lc" >&6 7773 ;; 7774 esac 7775 fi 7776 ;; 7777 esac 7778 7779 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7781 library_names_spec= 7782 libname_spec='lib$name' 7783 soname_spec= 7784 shrext_cmds=".so" 7785 postinstall_cmds= 7786 postuninstall_cmds= 7787 finish_cmds= 7788 finish_eval= 7789 shlibpath_var= 7790 shlibpath_overrides_runpath=unknown 7791 version_type=none 7792 dynamic_linker="$host_os ld.so" 7793 sys_lib_dlsearch_path_spec="/lib /usr/lib" 7794 if test "$GCC" = yes; then 7795 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7796 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7797 # if the path contains ";" then we assume it to be the separator 7798 # otherwise default to the standard path separator (i.e. ":") - it is 7799 # assumed that no part of a normal pathname contains ";" but that should 7800 # okay in the real world where ";" in dirpaths is itself problematic. 7801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7802 else 7803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7804 fi 7805 else 7806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7807 fi 7808 need_lib_prefix=unknown 7809 hardcode_into_libs=no 7810 7811 # when you set need_version to no, make sure it does not cause -set_version 7812 # flags to be left without arguments 7813 need_version=unknown 7814 7815 case $host_os in 7816 aix3*) 7817 version_type=linux 7818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7819 shlibpath_var=LIBPATH 7820 7821 # AIX 3 has no versioning support, so we append a major version to the name. 7822 soname_spec='${libname}${release}${shared_ext}$major' 7823 ;; 7824 7825 aix4* | aix5*) 7826 version_type=linux 7827 need_lib_prefix=no 7828 need_version=no 7829 hardcode_into_libs=yes 7830 if test "$host_cpu" = ia64; then 7831 # AIX 5 supports IA64 7832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7833 shlibpath_var=LD_LIBRARY_PATH 7834 else 7835 # With GCC up to 2.95.x, collect2 would create an import file 7836 # for dependence libraries. The import file would start with 7837 # the line `#! .'. This would cause the generated library to 7838 # depend on `.', always an invalid library. This was fixed in 7839 # development snapshots of GCC prior to 3.0. 7840 case $host_os in 7841 aix4 | aix4.[01] | aix4.[01].*) 7842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7843 echo ' yes ' 7844 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7845 : 7846 else 7847 can_build_shared=no 7848 fi 7849 ;; 7850 esac 7851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7852 # soname into executable. Probably we can add versioning support to 7853 # collect2, so additional links can be useful in future. 7854 if test "$aix_use_runtimelinking" = yes; then 7855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7856 # instead of lib<name>.a to let people know that these are not 7857 # typical AIX shared libraries. 7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7859 else 7860 # We preserve .a as extension for shared libraries through AIX4.2 7861 # and later when we are not doing run time linking. 7862 library_names_spec='${libname}${release}.a $libname.a' 7863 soname_spec='${libname}${release}${shared_ext}$major' 7864 fi 7865 shlibpath_var=LIBPATH 7866 fi 7867 ;; 7868 7869 amigaos*) 7870 library_names_spec='$libname.ixlibrary $libname.a' 7871 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7872 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 7873 ;; 7874 7875 beos*) 7876 library_names_spec='${libname}${shared_ext}' 7877 dynamic_linker="$host_os ld.so" 7878 shlibpath_var=LIBRARY_PATH 7879 ;; 7880 7881 bsdi[45]*) 7882 version_type=linux 7883 need_version=no 7884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7885 soname_spec='${libname}${release}${shared_ext}$major' 7886 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7887 shlibpath_var=LD_LIBRARY_PATH 7888 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7889 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7890 # the default ld.so.conf also contains /usr/contrib/lib and 7891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7892 # libtool to hard-code these into programs 7893 ;; 7894 7895 cygwin* | mingw* | pw32*) 7896 version_type=windows 7897 shrext_cmds=".dll" 7898 need_version=no 7899 need_lib_prefix=no 7900 7901 case $GCC,$host_os in 7902 yes,cygwin* | yes,mingw* | yes,pw32*) 7903 library_names_spec='$libname.dll.a' 7904 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7905 postinstall_cmds='base_file=`basename \${file}`~ 7906 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7907 dldir=$destdir/`dirname \$dlpath`~ 7908 test -d \$dldir || mkdir -p \$dldir~ 7909 $install_prog $dir/$dlname \$dldir/$dlname~ 7910 chmod a+x \$dldir/$dlname' 7911 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7912 dlpath=$dir/\$dldll~ 7913 $rm \$dlpath' 7914 shlibpath_overrides_runpath=yes 7915 7916 case $host_os in 7917 cygwin*) 7918 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7919 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7920 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7921 ;; 7922 mingw*) 7923 # MinGW DLLs use traditional 'lib' prefix 7924 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7926 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7927 # It is most probably a Windows format PATH printed by 7928 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7929 # path with ; separators, and with drive letters. We can handle the 7930 # drive letters (cygwin fileutils understands them), so leave them, 7931 # especially as we might pass files found there to a mingw objdump, 7932 # which wouldn't understand a cygwinified path. Ahh. 7933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7934 else 7935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7936 fi 7937 ;; 7938 pw32*) 7939 # pw32 DLLs use 'pw' prefix rather than 'lib' 7940 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7941 ;; 7942 esac 7943 ;; 7944 7945 linux*) 7946 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 7947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7948 supports_anon_versioning=no 7949 case `$LD -v 2>/dev/null` in 7950 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7953 *\ 2.11.*) ;; # other 2.11 versions 7954 *) supports_anon_versioning=yes ;; 7955 esac 7956 if test $supports_anon_versioning = yes; then 7957 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 7958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7959 $echo "local: *; };" >> $output_objdir/$libname.ver~ 7960 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7961 else 7962 $archive_expsym_cmds="$archive_cmds" 7963 fi 7964 else 7965 ld_shlibs=no 7966 fi 7967 ;; 7968 7969 *) 7970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7971 ;; 7972 esac 7973 dynamic_linker='Win32 ld.exe' 7974 # FIXME: first we should search . and the directory the executable is in 7975 shlibpath_var=PATH 7976 ;; 7977 7978 darwin* | rhapsody*) 7979 dynamic_linker="$host_os dyld" 7980 version_type=darwin 7981 need_lib_prefix=no 7982 need_version=no 7983 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7984 soname_spec='${libname}${release}${major}$shared_ext' 7985 shlibpath_overrides_runpath=yes 7986 shlibpath_var=DYLD_LIBRARY_PATH 7987 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 7988 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7989 if test "$GCC" = yes; then 7990 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 7991 else 7992 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7993 fi 7994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7995 ;; 7996 7997 dgux*) 7998 version_type=linux 7999 need_lib_prefix=no 8000 need_version=no 8001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8002 soname_spec='${libname}${release}${shared_ext}$major' 8003 shlibpath_var=LD_LIBRARY_PATH 8004 ;; 8005 8006 freebsd1*) 8007 dynamic_linker=no 8008 ;; 8009 8010 kfreebsd*-gnu) 8011 version_type=linux 8012 need_lib_prefix=no 8013 need_version=no 8014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8015 soname_spec='${libname}${release}${shared_ext}$major' 8016 shlibpath_var=LD_LIBRARY_PATH 8017 shlibpath_overrides_runpath=no 8018 hardcode_into_libs=yes 8019 dynamic_linker='GNU ld.so' 8020 ;; 8021 8022 freebsd* | dragonfly*) 8023 # DragonFly does not have aout. When/if they implement a new 8024 # versioning mechanism, adjust this. 8025 if test -x /usr/bin/objformat; then 8026 objformat=`/usr/bin/objformat` 8027 else 8028 case $host_os in 8029 freebsd[123]*) objformat=aout ;; 8030 *) objformat=elf ;; 8031 esac 8032 fi 8033 version_type=freebsd-$objformat 8034 case $version_type in 8035 freebsd-elf*) 8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8037 need_version=no 8038 need_lib_prefix=no 8039 ;; 8040 freebsd-*) 8041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8042 need_version=yes 8043 ;; 8044 esac 8045 shlibpath_var=LD_LIBRARY_PATH 8046 case $host_os in 8047 freebsd2*) 8048 shlibpath_overrides_runpath=yes 8049 ;; 8050 freebsd3.[01]* | freebsdelf3.[01]*) 8051 shlibpath_overrides_runpath=yes 8052 hardcode_into_libs=yes 8053 ;; 8054 *) # from 3.2 on 8055 shlibpath_overrides_runpath=no 8056 hardcode_into_libs=yes 8057 ;; 8058 esac 8059 ;; 8060 8061 gnu*) 8062 version_type=linux 8063 need_lib_prefix=no 8064 need_version=no 8065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8066 soname_spec='${libname}${release}${shared_ext}$major' 8067 shlibpath_var=LD_LIBRARY_PATH 8068 hardcode_into_libs=yes 8069 ;; 8070 8071 hpux9* | hpux10* | hpux11*) 8072 # Give a soname corresponding to the major version so that dld.sl refuses to 8073 # link against other versions. 8074 version_type=sunos 8075 need_lib_prefix=no 8076 need_version=no 8077 case $host_cpu in 8078 ia64*) 8079 shrext_cmds='.so' 8080 hardcode_into_libs=yes 8081 dynamic_linker="$host_os dld.so" 8082 shlibpath_var=LD_LIBRARY_PATH 8083 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8085 soname_spec='${libname}${release}${shared_ext}$major' 8086 if test "X$HPUX_IA64_MODE" = X32; then 8087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8088 else 8089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8090 fi 8091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8092 ;; 8093 hppa*64*) 8094 shrext_cmds='.sl' 8095 hardcode_into_libs=yes 8096 dynamic_linker="$host_os dld.sl" 8097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8098 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8100 soname_spec='${libname}${release}${shared_ext}$major' 8101 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8102 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8103 ;; 8104 *) 8105 shrext_cmds='.sl' 8106 dynamic_linker="$host_os dld.sl" 8107 shlibpath_var=SHLIB_PATH 8108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8110 soname_spec='${libname}${release}${shared_ext}$major' 8111 ;; 8112 esac 8113 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8114 postinstall_cmds='chmod 555 $lib' 8115 ;; 8116 8117 irix5* | irix6* | nonstopux*) 8118 case $host_os in 8119 nonstopux*) version_type=nonstopux ;; 8120 *) 8121 if test "$lt_cv_prog_gnu_ld" = yes; then 8122 version_type=linux 8123 else 8124 version_type=irix 8125 fi ;; 8126 esac 8127 need_lib_prefix=no 8128 need_version=no 8129 soname_spec='${libname}${release}${shared_ext}$major' 8130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8131 case $host_os in 8132 irix5* | nonstopux*) 8133 libsuff= shlibsuff= 8134 ;; 8135 *) 8136 case $LD in # libtool.m4 will add one of these switches to LD 8137 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8138 libsuff= shlibsuff= libmagic=32-bit;; 8139 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8140 libsuff=32 shlibsuff=N32 libmagic=N32;; 8141 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8142 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8143 *) libsuff= shlibsuff= libmagic=never-match;; 8144 esac 8145 ;; 8146 esac 8147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8148 shlibpath_overrides_runpath=no 8149 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8150 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8151 hardcode_into_libs=yes 8152 ;; 8153 8154 # No shared lib support for Linux oldld, aout, or coff. 8155 linux*oldld* | linux*aout* | linux*coff*) 8156 dynamic_linker=no 8157 ;; 8158 8159 # This must be Linux ELF. 8160 linux*) 8161 version_type=linux 8162 need_lib_prefix=no 8163 need_version=no 8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8165 soname_spec='${libname}${release}${shared_ext}$major' 8166 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8167 shlibpath_var=LD_LIBRARY_PATH 8168 shlibpath_overrides_runpath=no 8169 # This implies no fast_install, which is unacceptable. 8170 # Some rework will be needed to allow for fast_install 8171 # before this can be enabled. 8172 hardcode_into_libs=yes 8173 8174 # Append ld.so.conf contents to the search path 8175 if test -f /etc/ld.so.conf; then 8176 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8178 fi 8179 8180 case $host_cpu:$lt_cv_cc_64bit_output in 8181 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 8182 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 8183 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 8184 ;; 8185 esac 8186 8187 # We used to test for /lib/ld.so.1 and disable shared libraries on 8188 # powerpc, because MkLinux only supported shared libraries with the 8189 # GNU dynamic linker. Since this was broken with cross compilers, 8190 # most powerpc-linux boxes support dynamic linking these days and 8191 # people can always --disable-shared, the test was removed, and we 8192 # assume the GNU/Linux dynamic linker is in use. 8193 dynamic_linker='GNU/Linux ld.so' 8194 8195 # Find out which ABI we are using (multilib Linux x86_64 hack). 8196 libsuff= 8197 case "$host_cpu" in 8198 x86_64*) 8199 echo '#line 8199 "configure"' > conftest.$ac_ext 8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8201 (eval $ac_compile) 2>&5 8202 ac_status=$? 8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8204 (exit $ac_status); }; then 8205 case `/usr/bin/file conftest.$ac_objext` in 8206 *64-bit*) 8207 libsuff=64 8208 ;; 8209 esac 8210 fi 8211 rm -rf conftest* 8212 ;; 8213 *) 8214 ;; 8215 esac 8216 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 8217 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 8218 ;; 8219 8220 knetbsd*-gnu) 8221 version_type=linux 8222 need_lib_prefix=no 8223 need_version=no 8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8225 soname_spec='${libname}${release}${shared_ext}$major' 8226 shlibpath_var=LD_LIBRARY_PATH 8227 shlibpath_overrides_runpath=no 8228 hardcode_into_libs=yes 8229 dynamic_linker='GNU ld.so' 8230 ;; 8231 8232 netbsd*) 8233 version_type=sunos 8234 need_lib_prefix=no 8235 need_version=no 8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 8237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8239 dynamic_linker='NetBSD (a.out) ld.so' 8240 else 8241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8242 soname_spec='${libname}${release}${shared_ext}$major' 8243 dynamic_linker='NetBSD ld.elf_so' 8244 fi 8245 shlibpath_var=LD_LIBRARY_PATH 8246 shlibpath_overrides_runpath=yes 8247 hardcode_into_libs=yes 8248 ;; 8249 8250 newsos6) 8251 version_type=linux 8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8253 shlibpath_var=LD_LIBRARY_PATH 8254 shlibpath_overrides_runpath=yes 8255 ;; 8256 8257 nto-qnx*) 8258 version_type=linux 8259 need_lib_prefix=no 8260 need_version=no 8261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8262 soname_spec='${libname}${release}${shared_ext}$major' 8263 shlibpath_var=LD_LIBRARY_PATH 8264 shlibpath_overrides_runpath=yes 8265 ;; 8266 8267 openbsd*) 8268 version_type=sunos 8269 need_lib_prefix=no 8270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8271 case $host_os in 8272 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8273 *) need_version=no ;; 8274 esac 8275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8277 shlibpath_var=LD_LIBRARY_PATH 8278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8279 case $host_os in 8280 openbsd2.[89] | openbsd2.[89].*) 8281 shlibpath_overrides_runpath=no 8282 ;; 8283 *) 8284 shlibpath_overrides_runpath=yes 8285 ;; 8286 esac 8287 else 8288 shlibpath_overrides_runpath=yes 8289 fi 8290 ;; 8291 8292 os2*) 8293 libname_spec='$name' 8294 shrext_cmds=".dll" 8295 need_lib_prefix=no 8296 library_names_spec='$libname${shared_ext} $libname.a' 8297 dynamic_linker='OS/2 ld.exe' 8298 shlibpath_var=LIBPATH 8299 ;; 8300 8301 osf3* | osf4* | osf5*) 8302 version_type=osf 8303 need_lib_prefix=no 8304 need_version=no 8305 soname_spec='${libname}${release}${shared_ext}$major' 8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8307 shlibpath_var=LD_LIBRARY_PATH 8308 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8309 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8310 ;; 8311 8312 sco3.2v5*) 8313 version_type=osf 8314 soname_spec='${libname}${release}${shared_ext}$major' 8315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8316 shlibpath_var=LD_LIBRARY_PATH 8317 ;; 8318 8319 solaris*) 8320 version_type=linux 8321 need_lib_prefix=no 8322 need_version=no 8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8324 soname_spec='${libname}${release}${shared_ext}$major' 8325 shlibpath_var=LD_LIBRARY_PATH 8326 shlibpath_overrides_runpath=yes 8327 hardcode_into_libs=yes 8328 # ldd complains unless libraries are executable 8329 postinstall_cmds='chmod +x $lib' 8330 ;; 8331 8332 sunos4*) 8333 version_type=sunos 8334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8336 shlibpath_var=LD_LIBRARY_PATH 8337 shlibpath_overrides_runpath=yes 8338 if test "$with_gnu_ld" = yes; then 8339 need_lib_prefix=no 8340 fi 8341 need_version=yes 8342 ;; 8343 8344 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8345 version_type=linux 8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8347 soname_spec='${libname}${release}${shared_ext}$major' 8348 shlibpath_var=LD_LIBRARY_PATH 8349 case $host_vendor in 8350 sni) 8351 shlibpath_overrides_runpath=no 8352 need_lib_prefix=no 8353 export_dynamic_flag_spec='${wl}-Blargedynsym' 8354 runpath_var=LD_RUN_PATH 8355 ;; 8356 siemens) 8357 need_lib_prefix=no 8358 ;; 8359 motorola) 8360 need_lib_prefix=no 8361 need_version=no 8362 shlibpath_overrides_runpath=no 8363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8364 ;; 8365 esac 8366 ;; 8367 8368 sysv4*MP*) 8369 if test -d /usr/nec ;then 8370 version_type=linux 8371 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8372 soname_spec='$libname${shared_ext}.$major' 8373 shlibpath_var=LD_LIBRARY_PATH 8374 fi 8375 ;; 8376 8377 uts4*) 8378 version_type=linux 8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8380 soname_spec='${libname}${release}${shared_ext}$major' 8381 shlibpath_var=LD_LIBRARY_PATH 8382 ;; 8383 8384 *) 8385 dynamic_linker=no 8386 ;; 8387 esac 8388 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8389 echo "${ECHO_T}$dynamic_linker" >&6 8390 test "$dynamic_linker" = no && can_build_shared=no 8391 8392 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 8393 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 8394 hardcode_action= 8395 if test -n "$hardcode_libdir_flag_spec" || \ 8396 test -n "$runpath_var" || \ 8397 test "X$hardcode_automatic" = "Xyes" ; then 8398 8399 # We can hardcode non-existant directories. 8400 if test "$hardcode_direct" != no && 8401 # If the only mechanism to avoid hardcoding is shlibpath_var, we 8402 # have to relink, otherwise we might link with an installed library 8403 # when we should be linking with a yet-to-be-installed one 8404 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 8405 test "$hardcode_minus_L" != no; then 8406 # Linking always hardcodes the temporary library directory. 8407 hardcode_action=relink 8408 else 8409 # We can link without hardcoding, and we can hardcode nonexisting dirs. 8410 hardcode_action=immediate 8411 fi 8412 else 8413 # We cannot hardcode anything, or else we can only hardcode existing 8414 # directories. 8415 hardcode_action=unsupported 8416 fi 8417 echo "$as_me:$LINENO: result: $hardcode_action" >&5 8418 echo "${ECHO_T}$hardcode_action" >&6 8419 8420 if test "$hardcode_action" = relink; then 8421 # Fast installation is not supported 8422 enable_fast_install=no 8423 elif test "$shlibpath_overrides_runpath" = yes || 8424 test "$enable_shared" = no; then 8425 # Fast installation is not necessary 8426 enable_fast_install=needless 8427 fi 8428 8429 striplib= 8430 old_striplib= 8431 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 8432 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 8433 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 8434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 8435 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 8436 echo "$as_me:$LINENO: result: yes" >&5 8437 echo "${ECHO_T}yes" >&6 8438 else 8439 # FIXME - insert some real tests, host_os isn't really good enough 8440 case $host_os in 8441 darwin*) 8442 if test -n "$STRIP" ; then 8443 striplib="$STRIP -x" 8444 echo "$as_me:$LINENO: result: yes" >&5 8445 echo "${ECHO_T}yes" >&6 8446 else 8447 echo "$as_me:$LINENO: result: no" >&5 8448 echo "${ECHO_T}no" >&6 8449 fi 8450 ;; 8451 *) 8452 echo "$as_me:$LINENO: result: no" >&5 8453 echo "${ECHO_T}no" >&6 8454 ;; 8455 esac 8456 fi 8457 8458 if test "x$enable_dlopen" != xyes; then 8459 enable_dlopen=unknown 8460 enable_dlopen_self=unknown 8461 enable_dlopen_self_static=unknown 8462 else 8463 lt_cv_dlopen=no 8464 lt_cv_dlopen_libs= 8465 8466 case $host_os in 8467 beos*) 8468 lt_cv_dlopen="load_add_on" 8469 lt_cv_dlopen_libs= 8470 lt_cv_dlopen_self=yes 8471 ;; 8472 8473 mingw* | pw32*) 8474 lt_cv_dlopen="LoadLibrary" 8475 lt_cv_dlopen_libs= 8476 ;; 8477 8478 cygwin*) 8479 lt_cv_dlopen="dlopen" 8480 lt_cv_dlopen_libs= 8481 ;; 8482 8483 darwin*) 8484 # if libdl is installed we need to link against it 8485 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8488 echo $ECHO_N "(cached) $ECHO_C" >&6 8489 else 8490 ac_check_lib_save_LIBS=$LIBS 8491 LIBS="-ldl $LIBS" 8492 cat >conftest.$ac_ext <<_ACEOF 8493 /* confdefs.h. */ 8494 _ACEOF 8495 cat confdefs.h >>conftest.$ac_ext 8496 cat >>conftest.$ac_ext <<_ACEOF 8497 /* end confdefs.h. */ 8498 8499 /* Override any gcc2 internal prototype to avoid an error. */ 8500 #ifdef __cplusplus 8501 extern "C" 8502 #endif 8503 /* We use char because int might match the return type of a gcc2 8504 builtin and then its argument prototype would still apply. */ 8505 char dlopen (); 8506 int 8507 main () 8508 { 8509 dlopen (); 8510 ; 8511 return 0; 8512 } 8513 _ACEOF 8514 rm -f conftest.$ac_objext conftest$ac_exeext 8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8516 (eval $ac_link) 2>conftest.er1 8517 ac_status=$? 8518 grep -v '^ *+' conftest.er1 >conftest.err 8519 rm -f conftest.er1 8520 cat conftest.err >&5 8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8522 (exit $ac_status); } && 8523 { ac_try='test -z "$ac_c_werror_flag" 8524 || test ! -s conftest.err' 8525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8526 (eval $ac_try) 2>&5 8527 ac_status=$? 8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8529 (exit $ac_status); }; } && 8530 { ac_try='test -s conftest$ac_exeext' 8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8532 (eval $ac_try) 2>&5 8533 ac_status=$? 8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8535 (exit $ac_status); }; }; then 8536 ac_cv_lib_dl_dlopen=yes 8537 else 8538 echo "$as_me: failed program was:" >&5 8539 sed 's/^/| /' conftest.$ac_ext >&5 8540 8541 ac_cv_lib_dl_dlopen=no 8542 fi 8543 rm -f conftest.err conftest.$ac_objext \ 8544 conftest$ac_exeext conftest.$ac_ext 8545 LIBS=$ac_check_lib_save_LIBS 8546 fi 8547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8549 if test $ac_cv_lib_dl_dlopen = yes; then 8550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8551 else 8552 8553 lt_cv_dlopen="dyld" 8554 lt_cv_dlopen_libs= 8555 lt_cv_dlopen_self=yes 8556 8557 fi 8558 8559 ;; 8560 8561 *) 8562 echo "$as_me:$LINENO: checking for shl_load" >&5 8563 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 8564 if test "${ac_cv_func_shl_load+set}" = set; then 8565 echo $ECHO_N "(cached) $ECHO_C" >&6 8566 else 8567 cat >conftest.$ac_ext <<_ACEOF 8568 /* confdefs.h. */ 8569 _ACEOF 8570 cat confdefs.h >>conftest.$ac_ext 8571 cat >>conftest.$ac_ext <<_ACEOF 8572 /* end confdefs.h. */ 8573 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 8574 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8575 #define shl_load innocuous_shl_load 8576 8577 /* System header to define __stub macros and hopefully few prototypes, 8578 which can conflict with char shl_load (); below. 8579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8580 <limits.h> exists even on freestanding compilers. */ 8581 8582 #ifdef __STDC__ 8583 # include <limits.h> 8584 #else 8585 # include <assert.h> 8586 #endif 8587 8588 #undef shl_load 8589 8590 /* Override any gcc2 internal prototype to avoid an error. */ 8591 #ifdef __cplusplus 8592 extern "C" 8593 { 8594 #endif 8595 /* We use char because int might match the return type of a gcc2 8596 builtin and then its argument prototype would still apply. */ 8597 char shl_load (); 8598 /* The GNU C library defines this for functions which it implements 8599 to always fail with ENOSYS. Some functions are actually named 8600 something starting with __ and the normal name is an alias. */ 8601 #if defined (__stub_shl_load) || defined (__stub___shl_load) 8602 choke me 8603 #else 8604 char (*f) () = shl_load; 8605 #endif 8606 #ifdef __cplusplus 8607 } 8608 #endif 8609 8610 int 8611 main () 8612 { 8613 return f != shl_load; 8614 ; 8615 return 0; 8616 } 8617 _ACEOF 8618 rm -f conftest.$ac_objext conftest$ac_exeext 8619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8620 (eval $ac_link) 2>conftest.er1 8621 ac_status=$? 8622 grep -v '^ *+' conftest.er1 >conftest.err 8623 rm -f conftest.er1 8624 cat conftest.err >&5 8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8626 (exit $ac_status); } && 8627 { ac_try='test -z "$ac_c_werror_flag" 8628 || test ! -s conftest.err' 8629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8630 (eval $ac_try) 2>&5 8631 ac_status=$? 8632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8633 (exit $ac_status); }; } && 8634 { ac_try='test -s conftest$ac_exeext' 8635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8636 (eval $ac_try) 2>&5 8637 ac_status=$? 8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8639 (exit $ac_status); }; }; then 8640 ac_cv_func_shl_load=yes 8641 else 8642 echo "$as_me: failed program was:" >&5 8643 sed 's/^/| /' conftest.$ac_ext >&5 8644 8645 ac_cv_func_shl_load=no 8646 fi 8647 rm -f conftest.err conftest.$ac_objext \ 8648 conftest$ac_exeext conftest.$ac_ext 8649 fi 8650 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 8651 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 8652 if test $ac_cv_func_shl_load = yes; then 8653 lt_cv_dlopen="shl_load" 8654 else 8655 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 8656 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 8657 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 8658 echo $ECHO_N "(cached) $ECHO_C" >&6 8659 else 8660 ac_check_lib_save_LIBS=$LIBS 8661 LIBS="-ldld $LIBS" 8662 cat >conftest.$ac_ext <<_ACEOF 8663 /* confdefs.h. */ 8664 _ACEOF 8665 cat confdefs.h >>conftest.$ac_ext 8666 cat >>conftest.$ac_ext <<_ACEOF 8667 /* end confdefs.h. */ 8668 8669 /* Override any gcc2 internal prototype to avoid an error. */ 8670 #ifdef __cplusplus 8671 extern "C" 8672 #endif 8673 /* We use char because int might match the return type of a gcc2 8674 builtin and then its argument prototype would still apply. */ 8675 char shl_load (); 8676 int 8677 main () 8678 { 8679 shl_load (); 8680 ; 8681 return 0; 8682 } 8683 _ACEOF 8684 rm -f conftest.$ac_objext conftest$ac_exeext 8685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8686 (eval $ac_link) 2>conftest.er1 8687 ac_status=$? 8688 grep -v '^ *+' conftest.er1 >conftest.err 8689 rm -f conftest.er1 8690 cat conftest.err >&5 8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8692 (exit $ac_status); } && 8693 { ac_try='test -z "$ac_c_werror_flag" 8694 || test ! -s conftest.err' 8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8696 (eval $ac_try) 2>&5 8697 ac_status=$? 8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8699 (exit $ac_status); }; } && 8700 { ac_try='test -s conftest$ac_exeext' 8701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8702 (eval $ac_try) 2>&5 8703 ac_status=$? 8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8705 (exit $ac_status); }; }; then 8706 ac_cv_lib_dld_shl_load=yes 8707 else 8708 echo "$as_me: failed program was:" >&5 8709 sed 's/^/| /' conftest.$ac_ext >&5 8710 8711 ac_cv_lib_dld_shl_load=no 8712 fi 8713 rm -f conftest.err conftest.$ac_objext \ 8714 conftest$ac_exeext conftest.$ac_ext 8715 LIBS=$ac_check_lib_save_LIBS 8716 fi 8717 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 8718 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 8719 if test $ac_cv_lib_dld_shl_load = yes; then 8720 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 8721 else 8722 echo "$as_me:$LINENO: checking for dlopen" >&5 8723 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 8724 if test "${ac_cv_func_dlopen+set}" = set; then 8725 echo $ECHO_N "(cached) $ECHO_C" >&6 8726 else 8727 cat >conftest.$ac_ext <<_ACEOF 8728 /* confdefs.h. */ 8729 _ACEOF 8730 cat confdefs.h >>conftest.$ac_ext 8731 cat >>conftest.$ac_ext <<_ACEOF 8732 /* end confdefs.h. */ 8733 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 8734 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 8735 #define dlopen innocuous_dlopen 8736 8737 /* System header to define __stub macros and hopefully few prototypes, 8738 which can conflict with char dlopen (); below. 8739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8740 <limits.h> exists even on freestanding compilers. */ 8741 8742 #ifdef __STDC__ 8743 # include <limits.h> 8744 #else 8745 # include <assert.h> 8746 #endif 8747 8748 #undef dlopen 8749 8750 /* Override any gcc2 internal prototype to avoid an error. */ 8751 #ifdef __cplusplus 8752 extern "C" 8753 { 8754 #endif 8755 /* We use char because int might match the return type of a gcc2 8756 builtin and then its argument prototype would still apply. */ 8757 char dlopen (); 8758 /* The GNU C library defines this for functions which it implements 8759 to always fail with ENOSYS. Some functions are actually named 8760 something starting with __ and the normal name is an alias. */ 8761 #if defined (__stub_dlopen) || defined (__stub___dlopen) 8762 choke me 8763 #else 8764 char (*f) () = dlopen; 8765 #endif 8766 #ifdef __cplusplus 8767 } 8768 #endif 8769 8770 int 8771 main () 8772 { 8773 return f != dlopen; 8774 ; 8775 return 0; 8776 } 8777 _ACEOF 8778 rm -f conftest.$ac_objext conftest$ac_exeext 8779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8780 (eval $ac_link) 2>conftest.er1 8781 ac_status=$? 8782 grep -v '^ *+' conftest.er1 >conftest.err 8783 rm -f conftest.er1 8784 cat conftest.err >&5 8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8786 (exit $ac_status); } && 8787 { ac_try='test -z "$ac_c_werror_flag" 8788 || test ! -s conftest.err' 8789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8790 (eval $ac_try) 2>&5 8791 ac_status=$? 8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8793 (exit $ac_status); }; } && 8794 { ac_try='test -s conftest$ac_exeext' 8795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8796 (eval $ac_try) 2>&5 8797 ac_status=$? 8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8799 (exit $ac_status); }; }; then 8800 ac_cv_func_dlopen=yes 8801 else 8802 echo "$as_me: failed program was:" >&5 8803 sed 's/^/| /' conftest.$ac_ext >&5 8804 8805 ac_cv_func_dlopen=no 8806 fi 8807 rm -f conftest.err conftest.$ac_objext \ 8808 conftest$ac_exeext conftest.$ac_ext 8809 fi 8810 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8811 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8812 if test $ac_cv_func_dlopen = yes; then 8813 lt_cv_dlopen="dlopen" 8814 else 8815 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8816 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8817 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8818 echo $ECHO_N "(cached) $ECHO_C" >&6 8819 else 8820 ac_check_lib_save_LIBS=$LIBS 8821 LIBS="-ldl $LIBS" 8822 cat >conftest.$ac_ext <<_ACEOF 8823 /* confdefs.h. */ 8824 _ACEOF 8825 cat confdefs.h >>conftest.$ac_ext 8826 cat >>conftest.$ac_ext <<_ACEOF 8827 /* end confdefs.h. */ 8828 8829 /* Override any gcc2 internal prototype to avoid an error. */ 8830 #ifdef __cplusplus 8831 extern "C" 8832 #endif 8833 /* We use char because int might match the return type of a gcc2 8834 builtin and then its argument prototype would still apply. */ 8835 char dlopen (); 8836 int 8837 main () 8838 { 8839 dlopen (); 8840 ; 8841 return 0; 8842 } 8843 _ACEOF 8844 rm -f conftest.$ac_objext conftest$ac_exeext 8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8846 (eval $ac_link) 2>conftest.er1 8847 ac_status=$? 8848 grep -v '^ *+' conftest.er1 >conftest.err 8849 rm -f conftest.er1 8850 cat conftest.err >&5 8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8852 (exit $ac_status); } && 8853 { ac_try='test -z "$ac_c_werror_flag" 8854 || test ! -s conftest.err' 8855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8856 (eval $ac_try) 2>&5 8857 ac_status=$? 8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8859 (exit $ac_status); }; } && 8860 { ac_try='test -s conftest$ac_exeext' 8861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8862 (eval $ac_try) 2>&5 8863 ac_status=$? 8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8865 (exit $ac_status); }; }; then 8866 ac_cv_lib_dl_dlopen=yes 8867 else 8868 echo "$as_me: failed program was:" >&5 8869 sed 's/^/| /' conftest.$ac_ext >&5 8870 8871 ac_cv_lib_dl_dlopen=no 8872 fi 8873 rm -f conftest.err conftest.$ac_objext \ 8874 conftest$ac_exeext conftest.$ac_ext 8875 LIBS=$ac_check_lib_save_LIBS 8876 fi 8877 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8878 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8879 if test $ac_cv_lib_dl_dlopen = yes; then 8880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8881 else 8882 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8883 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8884 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8885 echo $ECHO_N "(cached) $ECHO_C" >&6 8886 else 8887 ac_check_lib_save_LIBS=$LIBS 8888 LIBS="-lsvld $LIBS" 8889 cat >conftest.$ac_ext <<_ACEOF 8890 /* confdefs.h. */ 8891 _ACEOF 8892 cat confdefs.h >>conftest.$ac_ext 8893 cat >>conftest.$ac_ext <<_ACEOF 8894 /* end confdefs.h. */ 8895 8896 /* Override any gcc2 internal prototype to avoid an error. */ 8897 #ifdef __cplusplus 8898 extern "C" 8899 #endif 8900 /* We use char because int might match the return type of a gcc2 8901 builtin and then its argument prototype would still apply. */ 8902 char dlopen (); 8903 int 8904 main () 8905 { 8906 dlopen (); 8907 ; 8908 return 0; 8909 } 8910 _ACEOF 8911 rm -f conftest.$ac_objext conftest$ac_exeext 8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8913 (eval $ac_link) 2>conftest.er1 8914 ac_status=$? 8915 grep -v '^ *+' conftest.er1 >conftest.err 8916 rm -f conftest.er1 8917 cat conftest.err >&5 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); } && 8920 { ac_try='test -z "$ac_c_werror_flag" 8921 || test ! -s conftest.err' 8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8923 (eval $ac_try) 2>&5 8924 ac_status=$? 8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8926 (exit $ac_status); }; } && 8927 { ac_try='test -s conftest$ac_exeext' 8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8929 (eval $ac_try) 2>&5 8930 ac_status=$? 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 (exit $ac_status); }; }; then 8933 ac_cv_lib_svld_dlopen=yes 8934 else 8935 echo "$as_me: failed program was:" >&5 8936 sed 's/^/| /' conftest.$ac_ext >&5 8937 8938 ac_cv_lib_svld_dlopen=no 8939 fi 8940 rm -f conftest.err conftest.$ac_objext \ 8941 conftest$ac_exeext conftest.$ac_ext 8942 LIBS=$ac_check_lib_save_LIBS 8943 fi 8944 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8945 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8946 if test $ac_cv_lib_svld_dlopen = yes; then 8947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8948 else 8949 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8950 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8951 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8952 echo $ECHO_N "(cached) $ECHO_C" >&6 8953 else 8954 ac_check_lib_save_LIBS=$LIBS 8955 LIBS="-ldld $LIBS" 8956 cat >conftest.$ac_ext <<_ACEOF 8957 /* confdefs.h. */ 8958 _ACEOF 8959 cat confdefs.h >>conftest.$ac_ext 8960 cat >>conftest.$ac_ext <<_ACEOF 8961 /* end confdefs.h. */ 8962 8963 /* Override any gcc2 internal prototype to avoid an error. */ 8964 #ifdef __cplusplus 8965 extern "C" 8966 #endif 8967 /* We use char because int might match the return type of a gcc2 8968 builtin and then its argument prototype would still apply. */ 8969 char dld_link (); 8970 int 8971 main () 8972 { 8973 dld_link (); 8974 ; 8975 return 0; 8976 } 8977 _ACEOF 8978 rm -f conftest.$ac_objext conftest$ac_exeext 8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8980 (eval $ac_link) 2>conftest.er1 8981 ac_status=$? 8982 grep -v '^ *+' conftest.er1 >conftest.err 8983 rm -f conftest.er1 8984 cat conftest.err >&5 8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8986 (exit $ac_status); } && 8987 { ac_try='test -z "$ac_c_werror_flag" 8988 || test ! -s conftest.err' 8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8990 (eval $ac_try) 2>&5 8991 ac_status=$? 8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8993 (exit $ac_status); }; } && 8994 { ac_try='test -s conftest$ac_exeext' 8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8996 (eval $ac_try) 2>&5 8997 ac_status=$? 8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8999 (exit $ac_status); }; }; then 9000 ac_cv_lib_dld_dld_link=yes 9001 else 9002 echo "$as_me: failed program was:" >&5 9003 sed 's/^/| /' conftest.$ac_ext >&5 9004 9005 ac_cv_lib_dld_dld_link=no 9006 fi 9007 rm -f conftest.err conftest.$ac_objext \ 9008 conftest$ac_exeext conftest.$ac_ext 9009 LIBS=$ac_check_lib_save_LIBS 9010 fi 9011 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9012 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9013 if test $ac_cv_lib_dld_dld_link = yes; then 9014 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9015 fi 9016 9017 9018 fi 9019 9020 9021 fi 9022 9023 9024 fi 9025 9026 9027 fi 9028 9029 9030 fi 9031 9032 ;; 9033 esac 9034 9035 if test "x$lt_cv_dlopen" != xno; then 9036 enable_dlopen=yes 9037 else 9038 enable_dlopen=no 9039 fi 9040 9041 case $lt_cv_dlopen in 9042 dlopen) 9043 save_CPPFLAGS="$CPPFLAGS" 9044 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9045 9046 save_LDFLAGS="$LDFLAGS" 9047 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9048 9049 save_LIBS="$LIBS" 9050 LIBS="$lt_cv_dlopen_libs $LIBS" 9051 9052 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9053 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9054 if test "${lt_cv_dlopen_self+set}" = set; then 9055 echo $ECHO_N "(cached) $ECHO_C" >&6 9056 else 9057 if test "$cross_compiling" = yes; then : 9058 lt_cv_dlopen_self=cross 9059 else 9060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9061 lt_status=$lt_dlunknown 9062 cat > conftest.$ac_ext <<EOF 9063 #line 9063 "configure" 9064 #include "confdefs.h" 9065 9066 #if HAVE_DLFCN_H 9067 #include <dlfcn.h> 9068 #endif 9069 9070 #include <stdio.h> 9071 9072 #ifdef RTLD_GLOBAL 9073 # define LT_DLGLOBAL RTLD_GLOBAL 9074 #else 9075 # ifdef DL_GLOBAL 9076 # define LT_DLGLOBAL DL_GLOBAL 9077 # else 9078 # define LT_DLGLOBAL 0 9079 # endif 9080 #endif 9081 9082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9083 find out it does not work in some platform. */ 9084 #ifndef LT_DLLAZY_OR_NOW 9085 # ifdef RTLD_LAZY 9086 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9087 # else 9088 # ifdef DL_LAZY 9089 # define LT_DLLAZY_OR_NOW DL_LAZY 9090 # else 9091 # ifdef RTLD_NOW 9092 # define LT_DLLAZY_OR_NOW RTLD_NOW 9093 # else 9094 # ifdef DL_NOW 9095 # define LT_DLLAZY_OR_NOW DL_NOW 9096 # else 9097 # define LT_DLLAZY_OR_NOW 0 9098 # endif 9099 # endif 9100 # endif 9101 # endif 9102 #endif 9103 9104 #ifdef __cplusplus 9105 extern "C" void exit (int); 9106 #endif 9107 9108 void fnord() { int i=42;} 9109 int main () 9110 { 9111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9112 int status = $lt_dlunknown; 9113 9114 if (self) 9115 { 9116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9118 /* dlclose (self); */ 9119 } 9120 9121 exit (status); 9122 } 9123 EOF 9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9125 (eval $ac_link) 2>&5 9126 ac_status=$? 9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9128 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9129 (./conftest; exit; ) >&5 2>/dev/null 9130 lt_status=$? 9131 case x$lt_status in 9132 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9133 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9134 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 9135 esac 9136 else : 9137 # compilation failed 9138 lt_cv_dlopen_self=no 9139 fi 9140 fi 9141 rm -fr conftest* 9142 9143 9144 fi 9145 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9146 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9147 9148 if test "x$lt_cv_dlopen_self" = xyes; then 9149 LDFLAGS="$LDFLAGS $link_static_flag" 9150 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9151 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9152 if test "${lt_cv_dlopen_self_static+set}" = set; then 9153 echo $ECHO_N "(cached) $ECHO_C" >&6 9154 else 9155 if test "$cross_compiling" = yes; then : 9156 lt_cv_dlopen_self_static=cross 9157 else 9158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9159 lt_status=$lt_dlunknown 9160 cat > conftest.$ac_ext <<EOF 9161 #line 9161 "configure" 9162 #include "confdefs.h" 9163 9164 #if HAVE_DLFCN_H 9165 #include <dlfcn.h> 9166 #endif 9167 9168 #include <stdio.h> 9169 9170 #ifdef RTLD_GLOBAL 9171 # define LT_DLGLOBAL RTLD_GLOBAL 9172 #else 9173 # ifdef DL_GLOBAL 9174 # define LT_DLGLOBAL DL_GLOBAL 9175 # else 9176 # define LT_DLGLOBAL 0 9177 # endif 9178 #endif 9179 9180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9181 find out it does not work in some platform. */ 9182 #ifndef LT_DLLAZY_OR_NOW 9183 # ifdef RTLD_LAZY 9184 # define LT_DLLAZY_OR_NOW RTLD_LAZY 9185 # else 9186 # ifdef DL_LAZY 9187 # define LT_DLLAZY_OR_NOW DL_LAZY 9188 # else 9189 # ifdef RTLD_NOW 9190 # define LT_DLLAZY_OR_NOW RTLD_NOW 9191 # else 9192 # ifdef DL_NOW 9193 # define LT_DLLAZY_OR_NOW DL_NOW 9194 # else 9195 # define LT_DLLAZY_OR_NOW 0 9196 # endif 9197 # endif 9198 # endif 9199 # endif 9200 #endif 9201 9202 #ifdef __cplusplus 9203 extern "C" void exit (int); 9204 #endif 9205 9206 void fnord() { int i=42;} 9207 int main () 9208 { 9209 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9210 int status = $lt_dlunknown; 9211 9212 if (self) 9213 { 9214 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9215 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9216 /* dlclose (self); */ 9217 } 9218 9219 exit (status); 9220 } 9221 EOF 9222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9223 (eval $ac_link) 2>&5 9224 ac_status=$? 9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9226 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9227 (./conftest; exit; ) >&5 2>/dev/null 9228 lt_status=$? 9229 case x$lt_status in 9230 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9231 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9232 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 9233 esac 9234 else : 9235 # compilation failed 9236 lt_cv_dlopen_self_static=no 9237 fi 9238 fi 9239 rm -fr conftest* 9240 9241 9242 fi 9243 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9244 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9245 fi 9246 9247 CPPFLAGS="$save_CPPFLAGS" 9248 LDFLAGS="$save_LDFLAGS" 9249 LIBS="$save_LIBS" 9250 ;; 9251 esac 9252 9253 case $lt_cv_dlopen_self in 9254 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9255 *) enable_dlopen_self=unknown ;; 9256 esac 9257 9258 case $lt_cv_dlopen_self_static in 9259 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9260 *) enable_dlopen_self_static=unknown ;; 9261 esac 9262 fi 9263 9264 9265 # Report which librarie types wil actually be built 9266 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9267 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9268 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9269 echo "${ECHO_T}$can_build_shared" >&6 9270 9271 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9272 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9273 test "$can_build_shared" = "no" && enable_shared=no 9274 9275 # On AIX, shared libraries and static libraries use the same namespace, and 9276 # are all built from PIC. 9277 case $host_os in 9278 aix3*) 9279 test "$enable_shared" = yes && enable_static=no 9280 if test -n "$RANLIB"; then 9281 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9282 postinstall_cmds='$RANLIB $lib' 9283 fi 9284 ;; 9285 9286 aix4* | aix5*) 9287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9288 test "$enable_shared" = yes && enable_static=no 9289 fi 9290 ;; 9291 esac 9292 echo "$as_me:$LINENO: result: $enable_shared" >&5 9293 echo "${ECHO_T}$enable_shared" >&6 9294 9295 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9296 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9297 # Make sure either enable_shared or enable_static is yes. 9298 test "$enable_shared" = yes || enable_static=yes 9299 echo "$as_me:$LINENO: result: $enable_static" >&5 9300 echo "${ECHO_T}$enable_static" >&6 9301 9302 # The else clause should only fire when bootstrapping the 9303 # libtool distribution, otherwise you forgot to ship ltmain.sh 9304 # with your package, and you will get complaints that there are 9305 # no rules to generate ltmain.sh. 9306 if test -f "$ltmain"; then 9307 # See if we are running on zsh, and set the options which allow our commands through 9308 # without removal of \ escapes. 9309 if test -n "${ZSH_VERSION+set}" ; then 9310 setopt NO_GLOB_SUBST 9311 fi 9312 # Now quote all the things that may contain metacharacters while being 9313 # careful not to overquote the AC_SUBSTed values. We take copies of the 9314 # variables and quote the copies for generation of the libtool script. 9315 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 9316 SED SHELL STRIP \ 9317 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 9318 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 9319 deplibs_check_method reload_flag reload_cmds need_locks \ 9320 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 9321 lt_cv_sys_global_symbol_to_c_name_address \ 9322 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 9323 old_postinstall_cmds old_postuninstall_cmds \ 9324 compiler \ 9325 CC \ 9326 LD \ 9327 lt_prog_compiler_wl \ 9328 lt_prog_compiler_pic \ 9329 lt_prog_compiler_static \ 9330 lt_prog_compiler_no_builtin_flag \ 9331 export_dynamic_flag_spec \ 9332 thread_safe_flag_spec \ 9333 whole_archive_flag_spec \ 9334 enable_shared_with_static_runtimes \ 9335 old_archive_cmds \ 9336 old_archive_from_new_cmds \ 9337 predep_objects \ 9338 postdep_objects \ 9339 predeps \ 9340 postdeps \ 9341 compiler_lib_search_path \ 9342 archive_cmds \ 9343 archive_expsym_cmds \ 9344 postinstall_cmds \ 9345 postuninstall_cmds \ 9346 old_archive_from_expsyms_cmds \ 9347 allow_undefined_flag \ 9348 no_undefined_flag \ 9349 export_symbols_cmds \ 9350 hardcode_libdir_flag_spec \ 9351 hardcode_libdir_flag_spec_ld \ 9352 hardcode_libdir_separator \ 9353 hardcode_automatic \ 9354 module_cmds \ 9355 module_expsym_cmds \ 9356 lt_cv_prog_compiler_c_o \ 9357 exclude_expsyms \ 9358 include_expsyms; do 9359 9360 case $var in 9361 old_archive_cmds | \ 9362 old_archive_from_new_cmds | \ 9363 archive_cmds | \ 9364 archive_expsym_cmds | \ 9365 module_cmds | \ 9366 module_expsym_cmds | \ 9367 old_archive_from_expsyms_cmds | \ 9368 export_symbols_cmds | \ 9369 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 9370 postinstall_cmds | postuninstall_cmds | \ 9371 old_postinstall_cmds | old_postuninstall_cmds | \ 9372 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 9373 # Double-quote double-evaled strings. 9374 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 9375 ;; 9376 *) 9377 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 9378 ;; 9379 esac 9380 done 9381 9382 case $lt_echo in 9383 *'\$0 --fallback-echo"') 9384 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 9385 ;; 9386 esac 9387 9388 cfgfile="${ofile}T" 9389 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 9390 $rm -f "$cfgfile" 9391 { echo "$as_me:$LINENO: creating $ofile" >&5 9392 echo "$as_me: creating $ofile" >&6;} 9393 9394 cat <<__EOF__ >> "$cfgfile" 9395 #! $SHELL 9396 9397 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 9398 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 9399 # NOTE: Changes made to this file will be lost: look at ltmain.sh. 9400 # 9401 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 9402 # Free Software Foundation, Inc. 9403 # 9404 # This file is part of GNU Libtool: 9405 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 9406 # 9407 # This program is free software; you can redistribute it and/or modify 9408 # it under the terms of the GNU General Public License as published by 9409 # the Free Software Foundation; either version 2 of the License, or 9410 # (at your option) any later version. 9411 # 9412 # This program is distributed in the hope that it will be useful, but 9413 # WITHOUT ANY WARRANTY; without even the implied warranty of 9414 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9415 # General Public License for more details. 9416 # 9417 # You should have received a copy of the GNU General Public License 9418 # along with this program; if not, write to the Free Software 9419 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 9420 # 9421 # As a special exception to the GNU General Public License, if you 9422 # distribute this file as part of a program that contains a 9423 # configuration script generated by Autoconf, you may include it under 9424 # the same distribution terms that you use for the rest of that program. 9425 9426 # A sed program that does not truncate output. 9427 SED=$lt_SED 9428 9429 # Sed that helps us avoid accidentally triggering echo(1) options like -n. 9430 Xsed="$SED -e 1s/^X//" 9431 9432 # The HP-UX ksh and POSIX shell print the target directory to stdout 9433 # if CDPATH is set. 9434 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9435 9436 # The names of the tagged configurations supported by this script. 9437 available_tags= 9438 9439 # ### BEGIN LIBTOOL CONFIG 9440 9441 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 9442 9443 # Shell to use when invoking shell scripts. 9444 SHELL=$lt_SHELL 9445 9446 # Whether or not to build shared libraries. 9447 build_libtool_libs=$enable_shared 9448 9449 # Whether or not to build static libraries. 9450 build_old_libs=$enable_static 9451 9452 # Whether or not to add -lc for building shared libraries. 9453 build_libtool_need_lc=$archive_cmds_need_lc 9454 9455 # Whether or not to disallow shared libs when runtime libs are static 9456 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 9457 9458 # Whether or not to optimize for fast installation. 9459 fast_install=$enable_fast_install 9460 9461 # The host system. 9462 host_alias=$host_alias 9463 host=$host 9464 host_os=$host_os 9465 9466 # The build system. 9467 build_alias=$build_alias 9468 build=$build 9469 build_os=$build_os 9470 9471 # An echo program that does not interpret backslashes. 9472 echo=$lt_echo 9473 9474 # The archiver. 9475 AR=$lt_AR 9476 AR_FLAGS=$lt_AR_FLAGS 9477 9478 # A C compiler. 9479 LTCC=$lt_LTCC 9480 9481 # A language-specific compiler. 9482 CC=$lt_compiler 9483 9484 # Is the compiler the GNU C compiler? 9485 with_gcc=$GCC 9486 9487 # An ERE matcher. 9488 EGREP=$lt_EGREP 9489 9490 # The linker used to build libraries. 9491 LD=$lt_LD 9492 9493 # Whether we need hard or soft links. 9494 LN_S=$lt_LN_S 9495 9496 # A BSD-compatible nm program. 9497 NM=$lt_NM 9498 9499 # A symbol stripping program 9500 STRIP=$lt_STRIP 9501 9502 # Used to examine libraries when file_magic_cmd begins "file" 9503 MAGIC_CMD=$MAGIC_CMD 9504 9505 # Used on cygwin: DLL creation program. 9506 DLLTOOL="$DLLTOOL" 9507 9508 # Used on cygwin: object dumper. 9509 OBJDUMP="$OBJDUMP" 9510 9511 # Used on cygwin: assembler. 9512 AS="$AS" 9513 9514 # The name of the directory that contains temporary libtool files. 9515 objdir=$objdir 9516 9517 # How to create reloadable object files. 9518 reload_flag=$lt_reload_flag 9519 reload_cmds=$lt_reload_cmds 9520 9521 # How to pass a linker flag through the compiler. 9522 wl=$lt_lt_prog_compiler_wl 9523 9524 # Object file suffix (normally "o"). 9525 objext="$ac_objext" 9526 9527 # Old archive suffix (normally "a"). 9528 libext="$libext" 9529 9530 # Shared library suffix (normally ".so"). 9531 shrext_cmds='$shrext_cmds' 9532 9533 # Executable file suffix (normally ""). 9534 exeext="$exeext" 9535 9536 # Additional compiler flags for building library objects. 9537 pic_flag=$lt_lt_prog_compiler_pic 9538 pic_mode=$pic_mode 9539 9540 # What is the maximum length of a command? 9541 max_cmd_len=$lt_cv_sys_max_cmd_len 9542 9543 # Does compiler simultaneously support -c and -o options? 9544 compiler_c_o=$lt_lt_cv_prog_compiler_c_o 9545 9546 # Must we lock files when doing compilation? 9547 need_locks=$lt_need_locks 9548 9549 # Do we need the lib prefix for modules? 9550 need_lib_prefix=$need_lib_prefix 9551 9552 # Do we need a version for libraries? 9553 need_version=$need_version 9554 9555 # Whether dlopen is supported. 9556 dlopen_support=$enable_dlopen 9557 9558 # Whether dlopen of programs is supported. 9559 dlopen_self=$enable_dlopen_self 9560 9561 # Whether dlopen of statically linked programs is supported. 9562 dlopen_self_static=$enable_dlopen_self_static 9563 9564 # Compiler flag to prevent dynamic linking. 9565 link_static_flag=$lt_lt_prog_compiler_static 9566 9567 # Compiler flag to turn off builtin functions. 9568 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 9569 9570 # Compiler flag to allow reflexive dlopens. 9571 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 9572 9573 # Compiler flag to generate shared objects directly from archives. 9574 whole_archive_flag_spec=$lt_whole_archive_flag_spec 9575 9576 # Compiler flag to generate thread-safe objects. 9577 thread_safe_flag_spec=$lt_thread_safe_flag_spec 9578 9579 # Library versioning type. 9580 version_type=$version_type 9581 9582 # Format of library name prefix. 9583 libname_spec=$lt_libname_spec 9584 9585 # List of archive names. First name is the real one, the rest are links. 9586 # The last name is the one that the linker finds with -lNAME. 9587 library_names_spec=$lt_library_names_spec 9588 9589 # The coded name of the library, if different from the real name. 9590 soname_spec=$lt_soname_spec 9591 9592 # Commands used to build and install an old-style archive. 9593 RANLIB=$lt_RANLIB 9594 old_archive_cmds=$lt_old_archive_cmds 9595 old_postinstall_cmds=$lt_old_postinstall_cmds 9596 old_postuninstall_cmds=$lt_old_postuninstall_cmds 9597 9598 # Create an old-style archive from a shared archive. 9599 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 9600 9601 # Create a temporary old-style archive to link instead of a shared archive. 9602 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 9603 9604 # Commands used to build and install a shared archive. 9605 archive_cmds=$lt_archive_cmds 9606 archive_expsym_cmds=$lt_archive_expsym_cmds 9607 postinstall_cmds=$lt_postinstall_cmds 9608 postuninstall_cmds=$lt_postuninstall_cmds 9609 9610 # Commands used to build a loadable module (assumed same as above if empty) 9611 module_cmds=$lt_module_cmds 9612 module_expsym_cmds=$lt_module_expsym_cmds 9613 9614 # Commands to strip libraries. 9615 old_striplib=$lt_old_striplib 9616 striplib=$lt_striplib 9617 9618 # Dependencies to place before the objects being linked to create a 9619 # shared library. 9620 predep_objects=$lt_predep_objects 9621 9622 # Dependencies to place after the objects being linked to create a 9623 # shared library. 9624 postdep_objects=$lt_postdep_objects 9625 9626 # Dependencies to place before the objects being linked to create a 9627 # shared library. 9628 predeps=$lt_predeps 9629 9630 # Dependencies to place after the objects being linked to create a 9631 # shared library. 9632 postdeps=$lt_postdeps 9633 9634 # The library search path used internally by the compiler when linking 9635 # a shared library. 9636 compiler_lib_search_path=$lt_compiler_lib_search_path 9637 9638 # Method to check whether dependent libraries are shared objects. 9639 deplibs_check_method=$lt_deplibs_check_method 9640 9641 # Command to use when deplibs_check_method == file_magic. 9642 file_magic_cmd=$lt_file_magic_cmd 9643 9644 # Flag that allows shared libraries with undefined symbols to be built. 9645 allow_undefined_flag=$lt_allow_undefined_flag 9646 9647 # Flag that forces no undefined symbols. 9648 no_undefined_flag=$lt_no_undefined_flag 9649 9650 # Commands used to finish a libtool library installation in a directory. 9651 finish_cmds=$lt_finish_cmds 9652 9653 # Same as above, but a single script fragment to be evaled but not shown. 9654 finish_eval=$lt_finish_eval 9655 9656 # Take the output of nm and produce a listing of raw symbols and C names. 9657 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 9658 9659 # Transform the output of nm in a proper C declaration 9660 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 9661 9662 # Transform the output of nm in a C name address pair 9663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 9664 9665 # This is the shared library runtime path variable. 9666 runpath_var=$runpath_var 9667 9668 # This is the shared library path variable. 9669 shlibpath_var=$shlibpath_var 9670 9671 # Is shlibpath searched before the hard-coded library search path? 9672 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 9673 9674 # How to hardcode a shared library path into an executable. 9675 hardcode_action=$hardcode_action 9676 9677 # Whether we should hardcode library paths into libraries. 9678 hardcode_into_libs=$hardcode_into_libs 9679 9680 # Flag to hardcode \$libdir into a binary during linking. 9681 # This must work even if \$libdir does not exist. 9682 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 9683 9684 # If ld is used when linking, flag to hardcode \$libdir into 9685 # a binary during linking. This must work even if \$libdir does 9686 # not exist. 9687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 9688 9689 # Whether we need a single -rpath flag with a separated argument. 9690 hardcode_libdir_separator=$lt_hardcode_libdir_separator 9691 9692 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 9693 # resulting binary. 9694 hardcode_direct=$hardcode_direct 9695 9696 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 9697 # resulting binary. 9698 hardcode_minus_L=$hardcode_minus_L 9699 9700 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 9701 # the resulting binary. 9702 hardcode_shlibpath_var=$hardcode_shlibpath_var 9703 9704 # Set to yes if building a shared library automatically hardcodes DIR into the library 9705 # and all subsequent libraries and executables linked against it. 9706 hardcode_automatic=$hardcode_automatic 9707 9708 # Variables whose values should be saved in libtool wrapper scripts and 9709 # restored at relink time. 9710 variables_saved_for_relink="$variables_saved_for_relink" 9711 9712 # Whether libtool must link a program against all its dependency libraries. 9713 link_all_deplibs=$link_all_deplibs 9714 9715 # Compile-time system search path for libraries 9716 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 9717 9718 # Run-time system search path for libraries 9719 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 9720 9721 # Fix the shell variable \$srcfile for the compiler. 9722 fix_srcfile_path="$fix_srcfile_path" 9723 9724 # Set to yes if exported symbols are required. 9725 always_export_symbols=$always_export_symbols 9726 9727 # The commands to list exported symbols. 9728 export_symbols_cmds=$lt_export_symbols_cmds 9729 9730 # The commands to extract the exported symbol list from a shared archive. 9731 extract_expsyms_cmds=$lt_extract_expsyms_cmds 9732 9733 # Symbols that should not be listed in the preloaded symbols. 9734 exclude_expsyms=$lt_exclude_expsyms 9735 9736 # Symbols that must always be exported. 9737 include_expsyms=$lt_include_expsyms 9738 9739 # ### END LIBTOOL CONFIG 9740 9741 __EOF__ 9742 9743 9744 case $host_os in 9745 aix3*) 9746 cat <<\EOF >> "$cfgfile" 9747 9748 # AIX sometimes has problems with the GCC collect2 program. For some 9749 # reason, if we set the COLLECT_NAMES environment variable, the problems 9750 # vanish in a puff of smoke. 9751 if test "X${COLLECT_NAMES+set}" != Xset; then 9752 COLLECT_NAMES= 9753 export COLLECT_NAMES 9754 fi 9755 EOF 9756 ;; 9757 esac 9758 9759 # We use sed instead of cat because bash on DJGPP gets confused if 9760 # if finds mixed CR/LF and LF-only lines. Since sed operates in 9761 # text mode, it properly converts lines to CR/LF. This bash problem 9762 # is reportedly fixed, but why not run on old versions too? 9763 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 9764 9765 mv -f "$cfgfile" "$ofile" || \ 9766 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 9767 chmod +x "$ofile" 9768 9769 else 9770 # If there is no Makefile yet, we rely on a make rule to execute 9771 # `config.status --recheck' to rerun these tests and create the 9772 # libtool script then. 9773 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9774 if test -f "$ltmain_in"; then 9775 test -f Makefile && make "$ltmain" 9776 fi 9777 fi 9778 9779 9780 ac_ext=c 9781 ac_cpp='$CPP $CPPFLAGS' 9782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9784 ac_compiler_gnu=$ac_cv_c_compiler_gnu 9785 9786 CC="$lt_save_CC" 9787 9788 9789 # Check whether --with-tags or --without-tags was given. 9790 if test "${with_tags+set}" = set; then 9791 withval="$with_tags" 9792 tagnames="$withval" 9793 fi; 9794 9795 if test -f "$ltmain" && test -n "$tagnames"; then 9796 if test ! -f "${ofile}"; then 9797 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9798 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9799 fi 9800 9801 if test -z "$LTCC"; then 9802 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9803 if test -z "$LTCC"; then 9804 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9805 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9806 else 9807 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9808 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9809 fi 9810 fi 9811 9812 # Extract list of available tagged configurations in $ofile. 9813 # Note that this assumes the entire list is on one line. 9814 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9815 9816 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9817 for tagname in $tagnames; do 9818 IFS="$lt_save_ifs" 9819 # Check whether tagname contains only valid characters 9820 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9821 "") ;; 9822 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9823 echo "$as_me: error: invalid tag name: $tagname" >&2;} 9824 { (exit 1); exit 1; }; } 9825 ;; 9826 esac 9827 9828 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9829 then 9830 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9831 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9832 { (exit 1); exit 1; }; } 9833 fi 9834 9835 # Update the list of available tags. 9836 if test -n "$tagname"; then 9837 echo appending configuration tag \"$tagname\" to $ofile 9838 9839 case $tagname in 9840 CXX) 9841 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 9842 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 9843 (test "X$CXX" != "Xg++"))) ; then 9844 ac_ext=cc 9845 ac_cpp='$CXXCPP $CPPFLAGS' 9846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9849 9850 9851 9852 9853 archive_cmds_need_lc_CXX=no 9854 allow_undefined_flag_CXX= 9855 always_export_symbols_CXX=no 9856 archive_expsym_cmds_CXX= 9857 export_dynamic_flag_spec_CXX= 9858 hardcode_direct_CXX=no 9859 hardcode_libdir_flag_spec_CXX= 9860 hardcode_libdir_flag_spec_ld_CXX= 9861 hardcode_libdir_separator_CXX= 9862 hardcode_minus_L_CXX=no 9863 hardcode_automatic_CXX=no 9864 module_cmds_CXX= 9865 module_expsym_cmds_CXX= 9866 link_all_deplibs_CXX=unknown 9867 old_archive_cmds_CXX=$old_archive_cmds 9868 no_undefined_flag_CXX= 9869 whole_archive_flag_spec_CXX= 9870 enable_shared_with_static_runtimes_CXX=no 9871 9872 # Dependencies to place before and after the object being linked: 9873 predep_objects_CXX= 9874 postdep_objects_CXX= 9875 predeps_CXX= 9876 postdeps_CXX= 9877 compiler_lib_search_path_CXX= 9878 9879 # Source file extension for C++ test sources. 9880 ac_ext=cpp 9881 9882 # Object file extension for compiled C++ test sources. 9883 objext=o 9884 objext_CXX=$objext 9885 9886 # Code to be used in simple compile tests 9887 lt_simple_compile_test_code="int some_variable = 0;\n" 9888 9889 # Code to be used in simple link tests 9890 lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9891 9892 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 9893 9894 # If no C compiler was specified, use CC. 9895 LTCC=${LTCC-"$CC"} 9896 9897 # Allow CC to be a program name with arguments. 9898 compiler=$CC 9899 9900 9901 # save warnings/boilerplate of simple test code 9902 ac_outfile=conftest.$ac_objext 9903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 9904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9905 _lt_compiler_boilerplate=`cat conftest.err` 9906 $rm conftest* 9907 9908 ac_outfile=conftest.$ac_objext 9909 printf "$lt_simple_link_test_code" >conftest.$ac_ext 9910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 9911 _lt_linker_boilerplate=`cat conftest.err` 9912 $rm conftest* 9913 9914 9915 # Allow CC to be a program name with arguments. 9916 lt_save_CC=$CC 9917 lt_save_LD=$LD 9918 lt_save_GCC=$GCC 9919 GCC=$GXX 9920 lt_save_with_gnu_ld=$with_gnu_ld 9921 lt_save_path_LD=$lt_cv_path_LD 9922 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9923 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9924 else 9925 unset lt_cv_prog_gnu_ld 9926 fi 9927 if test -n "${lt_cv_path_LDCXX+set}"; then 9928 lt_cv_path_LD=$lt_cv_path_LDCXX 9929 else 9930 unset lt_cv_path_LD 9931 fi 9932 test -z "${LDCXX+set}" || LD=$LDCXX 9933 CC=${CXX-"c++"} 9934 compiler=$CC 9935 compiler_CXX=$CC 9936 for cc_temp in $compiler""; do 9937 case $cc_temp in 9938 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9939 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9940 \-*) ;; 9941 *) break;; 9942 esac 9943 done 9944 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 9945 9946 9947 # We don't want -fno-exception wen compiling C++ code, so set the 9948 # no_builtin_flag separately 9949 if test "$GXX" = yes; then 9950 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9951 else 9952 lt_prog_compiler_no_builtin_flag_CXX= 9953 fi 9954 9955 if test "$GXX" = yes; then 9956 # Set up default GNU C++ configuration 9957 9958 9959 # Check whether --with-gnu-ld or --without-gnu-ld was given. 9960 if test "${with_gnu_ld+set}" = set; then 9961 withval="$with_gnu_ld" 9962 test "$withval" = no || with_gnu_ld=yes 9963 else 9964 with_gnu_ld=no 9965 fi; 9966 ac_prog=ld 9967 if test "$GCC" = yes; then 9968 # Check if gcc -print-prog-name=ld gives a path. 9969 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9970 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9971 case $host in 9972 *-*-mingw*) 9973 # gcc leaves a trailing carriage return which upsets mingw 9974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9975 *) 9976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9977 esac 9978 case $ac_prog in 9979 # Accept absolute paths. 9980 [\\/]* | ?:[\\/]*) 9981 re_direlt='/[^/][^/]*/\.\./' 9982 # Canonicalize the pathname of ld 9983 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9985 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9986 done 9987 test -z "$LD" && LD="$ac_prog" 9988 ;; 9989 "") 9990 # If it fails, then pretend we aren't using GCC. 9991 ac_prog=ld 9992 ;; 9993 *) 9994 # If it is relative, then search for the first ld in PATH. 9995 with_gnu_ld=unknown 9996 ;; 9997 esac 9998 elif test "$with_gnu_ld" = yes; then 9999 echo "$as_me:$LINENO: checking for GNU ld" >&5 10000 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 10001 else 10002 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 10003 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 10004 fi 10005 if test "${lt_cv_path_LD+set}" = set; then 10006 echo $ECHO_N "(cached) $ECHO_C" >&6 10007 else 10008 if test -z "$LD"; then 10009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10010 for ac_dir in $PATH; do 10011 IFS="$lt_save_ifs" 10012 test -z "$ac_dir" && ac_dir=. 10013 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10014 lt_cv_path_LD="$ac_dir/$ac_prog" 10015 # Check to see if the program is GNU ld. I'd rather use --version, 10016 # but apparently some variants of GNU ld only accept -v. 10017 # Break only if it was the GNU/non-GNU ld that we prefer. 10018 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 10019 *GNU* | *'with BFD'*) 10020 test "$with_gnu_ld" != no && break 10021 ;; 10022 *) 10023 test "$with_gnu_ld" != yes && break 10024 ;; 10025 esac 10026 fi 10027 done 10028 IFS="$lt_save_ifs" 10029 else 10030 lt_cv_path_LD="$LD" # Let the user override the test with a path. 10031 fi 10032 fi 10033 10034 LD="$lt_cv_path_LD" 10035 if test -n "$LD"; then 10036 echo "$as_me:$LINENO: result: $LD" >&5 10037 echo "${ECHO_T}$LD" >&6 10038 else 10039 echo "$as_me:$LINENO: result: no" >&5 10040 echo "${ECHO_T}no" >&6 10041 fi 10042 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 10043 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 10044 { (exit 1); exit 1; }; } 10045 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 10046 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 10047 if test "${lt_cv_prog_gnu_ld+set}" = set; then 10048 echo $ECHO_N "(cached) $ECHO_C" >&6 10049 else 10050 # I'd rather use --version here, but apparently some GNU lds only accept -v. 10051 case `$LD -v 2>&1 </dev/null` in 10052 *GNU* | *'with BFD'*) 10053 lt_cv_prog_gnu_ld=yes 10054 ;; 10055 *) 10056 lt_cv_prog_gnu_ld=no 10057 ;; 10058 esac 10059 fi 10060 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 10061 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 10062 with_gnu_ld=$lt_cv_prog_gnu_ld 10063 10064 10065 10066 # Check if GNU C++ uses GNU ld as the underlying linker, since the 10067 # archiving commands below assume that GNU ld is being used. 10068 if test "$with_gnu_ld" = yes; then 10069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10070 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10071 10072 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10073 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10074 10075 # If archive_cmds runs LD, not CC, wlarc should be empty 10076 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 10077 # investigate it a little bit more. (MM) 10078 wlarc='${wl}' 10079 10080 # ancient GNU ld didn't support --whole-archive et. al. 10081 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 10082 grep 'no-whole-archive' > /dev/null; then 10083 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10084 else 10085 whole_archive_flag_spec_CXX= 10086 fi 10087 else 10088 with_gnu_ld=no 10089 wlarc= 10090 10091 # A generic and very simple default shared library creation 10092 # command for GNU C++ for the case where it uses the native 10093 # linker, instead of GNU ld. If possible, this setting should 10094 # overridden to take advantage of the native linker features on 10095 # the platform it is being used on. 10096 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10097 fi 10098 10099 # Commands to make compiler produce verbose output that lists 10100 # what "hidden" libraries, object files and flags are used when 10101 # linking a shared library. 10102 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10103 10104 else 10105 GXX=no 10106 with_gnu_ld=no 10107 wlarc= 10108 fi 10109 10110 # PORTME: fill in a description of your system's C++ link characteristics 10111 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10112 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10113 ld_shlibs_CXX=yes 10114 case $host_os in 10115 aix3*) 10116 # FIXME: insert proper C++ library support 10117 ld_shlibs_CXX=no 10118 ;; 10119 aix4* | aix5*) 10120 if test "$host_cpu" = ia64; then 10121 # On IA64, the linker does run time linking by default, so we don't 10122 # have to do anything special. 10123 aix_use_runtimelinking=no 10124 exp_sym_flag='-Bexport' 10125 no_entry_flag="" 10126 else 10127 aix_use_runtimelinking=no 10128 10129 # Test if we are trying to use run time linking or normal 10130 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10131 # need to do runtime linking. 10132 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 10133 for ld_flag in $LDFLAGS; do 10134 case $ld_flag in 10135 *-brtl*) 10136 aix_use_runtimelinking=yes 10137 break 10138 ;; 10139 esac 10140 done 10141 esac 10142 10143 exp_sym_flag='-bexport' 10144 no_entry_flag='-bnoentry' 10145 fi 10146 10147 # When large executables or shared objects are built, AIX ld can 10148 # have problems creating the table of contents. If linking a library 10149 # or program results in "error TOC overflow" add -mminimal-toc to 10150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10152 10153 archive_cmds_CXX='' 10154 hardcode_direct_CXX=yes 10155 hardcode_libdir_separator_CXX=':' 10156 link_all_deplibs_CXX=yes 10157 10158 if test "$GXX" = yes; then 10159 case $host_os in aix4.[012]|aix4.[012].*) 10160 # We only want to do this on AIX 4.2 and lower, the check 10161 # below for broken collect2 doesn't work under 4.3+ 10162 collect2name=`${CC} -print-prog-name=collect2` 10163 if test -f "$collect2name" && \ 10164 strings "$collect2name" | grep resolve_lib_name >/dev/null 10165 then 10166 # We have reworked collect2 10167 hardcode_direct_CXX=yes 10168 else 10169 # We have old collect2 10170 hardcode_direct_CXX=unsupported 10171 # It fails to find uninstalled libraries when the uninstalled 10172 # path is not listed in the libpath. Setting hardcode_minus_L 10173 # to unsupported forces relinking 10174 hardcode_minus_L_CXX=yes 10175 hardcode_libdir_flag_spec_CXX='-L$libdir' 10176 hardcode_libdir_separator_CXX= 10177 fi 10178 esac 10179 shared_flag='-shared' 10180 if test "$aix_use_runtimelinking" = yes; then 10181 shared_flag="$shared_flag "'${wl}-G' 10182 fi 10183 else 10184 # not using gcc 10185 if test "$host_cpu" = ia64; then 10186 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10187 # chokes on -Wl,-G. The following line is correct: 10188 shared_flag='-G' 10189 else 10190 if test "$aix_use_runtimelinking" = yes; then 10191 shared_flag='${wl}-G' 10192 else 10193 shared_flag='${wl}-bM:SRE' 10194 fi 10195 fi 10196 fi 10197 10198 # It seems that -bexpall does not export symbols beginning with 10199 # underscore (_), so it is better to generate a list of symbols to export. 10200 always_export_symbols_CXX=yes 10201 if test "$aix_use_runtimelinking" = yes; then 10202 # Warning - without using the other runtime loading flags (-brtl), 10203 # -berok will link without error, but may produce a broken library. 10204 allow_undefined_flag_CXX='-berok' 10205 # Determine the default libpath from the value encoded in an empty executable. 10206 cat >conftest.$ac_ext <<_ACEOF 10207 /* confdefs.h. */ 10208 _ACEOF 10209 cat confdefs.h >>conftest.$ac_ext 10210 cat >>conftest.$ac_ext <<_ACEOF 10211 /* end confdefs.h. */ 10212 10213 int 10214 main () 10215 { 10216 10217 ; 10218 return 0; 10219 } 10220 _ACEOF 10221 rm -f conftest.$ac_objext conftest$ac_exeext 10222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10223 (eval $ac_link) 2>conftest.er1 10224 ac_status=$? 10225 grep -v '^ *+' conftest.er1 >conftest.err 10226 rm -f conftest.er1 10227 cat conftest.err >&5 10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10229 (exit $ac_status); } && 10230 { ac_try='test -z "$ac_cxx_werror_flag" 10231 || test ! -s conftest.err' 10232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10233 (eval $ac_try) 2>&5 10234 ac_status=$? 10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10236 (exit $ac_status); }; } && 10237 { ac_try='test -s conftest$ac_exeext' 10238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10239 (eval $ac_try) 2>&5 10240 ac_status=$? 10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10242 (exit $ac_status); }; }; then 10243 10244 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10245 }'` 10246 # Check for a 64-bit object if we didn't find anything. 10247 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10248 }'`; fi 10249 else 10250 echo "$as_me: failed program was:" >&5 10251 sed 's/^/| /' conftest.$ac_ext >&5 10252 10253 fi 10254 rm -f conftest.err conftest.$ac_objext \ 10255 conftest$ac_exeext conftest.$ac_ext 10256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10257 10258 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10259 10260 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10261 else 10262 if test "$host_cpu" = ia64; then 10263 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 10264 allow_undefined_flag_CXX="-z nodefs" 10265 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10266 else 10267 # Determine the default libpath from the value encoded in an empty executable. 10268 cat >conftest.$ac_ext <<_ACEOF 10269 /* confdefs.h. */ 10270 _ACEOF 10271 cat confdefs.h >>conftest.$ac_ext 10272 cat >>conftest.$ac_ext <<_ACEOF 10273 /* end confdefs.h. */ 10274 10275 int 10276 main () 10277 { 10278 10279 ; 10280 return 0; 10281 } 10282 _ACEOF 10283 rm -f conftest.$ac_objext conftest$ac_exeext 10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10285 (eval $ac_link) 2>conftest.er1 10286 ac_status=$? 10287 grep -v '^ *+' conftest.er1 >conftest.err 10288 rm -f conftest.er1 10289 cat conftest.err >&5 10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10291 (exit $ac_status); } && 10292 { ac_try='test -z "$ac_cxx_werror_flag" 10293 || test ! -s conftest.err' 10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10295 (eval $ac_try) 2>&5 10296 ac_status=$? 10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10298 (exit $ac_status); }; } && 10299 { ac_try='test -s conftest$ac_exeext' 10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10301 (eval $ac_try) 2>&5 10302 ac_status=$? 10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10304 (exit $ac_status); }; }; then 10305 10306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10307 }'` 10308 # Check for a 64-bit object if we didn't find anything. 10309 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 10310 }'`; fi 10311 else 10312 echo "$as_me: failed program was:" >&5 10313 sed 's/^/| /' conftest.$ac_ext >&5 10314 10315 fi 10316 rm -f conftest.err conftest.$ac_objext \ 10317 conftest$ac_exeext conftest.$ac_ext 10318 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10319 10320 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 10321 # Warning - without using the other run time loading flags, 10322 # -berok will link without error, but may produce a broken library. 10323 no_undefined_flag_CXX=' ${wl}-bernotok' 10324 allow_undefined_flag_CXX=' ${wl}-berok' 10325 # -bexpall does not export symbols beginning with underscore (_) 10326 always_export_symbols_CXX=yes 10327 # Exported symbols can be pulled into shared objects from archives 10328 whole_archive_flag_spec_CXX=' ' 10329 archive_cmds_need_lc_CXX=yes 10330 # This is similar to how AIX traditionally builds its shared libraries. 10331 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 10332 fi 10333 fi 10334 ;; 10335 chorus*) 10336 case $cc_basename in 10337 *) 10338 # FIXME: insert proper C++ library support 10339 ld_shlibs_CXX=no 10340 ;; 10341 esac 10342 ;; 10343 10344 10345 cygwin* | mingw* | pw32*) 10346 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 10347 # as there is no search path for DLLs. 10348 hardcode_libdir_flag_spec_CXX='-L$libdir' 10349 allow_undefined_flag_CXX=unsupported 10350 always_export_symbols_CXX=no 10351 enable_shared_with_static_runtimes_CXX=yes 10352 10353 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 10354 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10355 # If the export-symbols file already is a .def file (1st line 10356 # is EXPORTS), use it as is; otherwise, prepend... 10357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10358 cp $export_symbols $output_objdir/$soname.def; 10359 else 10360 echo EXPORTS > $output_objdir/$soname.def; 10361 cat $export_symbols >> $output_objdir/$soname.def; 10362 fi~ 10363 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 10364 else 10365 ld_shlibs_CXX=no 10366 fi 10367 ;; 10368 darwin* | rhapsody*) 10369 case $host_os in 10370 rhapsody* | darwin1.[012]) 10371 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' 10372 ;; 10373 *) # Darwin 1.3 on 10374 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 10375 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10376 else 10377 case ${MACOSX_DEPLOYMENT_TARGET} in 10378 10.[012]) 10379 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 10380 ;; 10381 10.*) 10382 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' 10383 ;; 10384 esac 10385 fi 10386 ;; 10387 esac 10388 archive_cmds_need_lc_CXX=no 10389 hardcode_direct_CXX=no 10390 hardcode_automatic_CXX=yes 10391 hardcode_shlibpath_var_CXX=unsupported 10392 whole_archive_flag_spec_CXX='' 10393 link_all_deplibs_CXX=yes 10394 10395 if test "$GXX" = yes ; then 10396 lt_int_apple_cc_single_mod=no 10397 output_verbose_link_cmd='echo' 10398 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 10399 lt_int_apple_cc_single_mod=yes 10400 fi 10401 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10402 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 10403 else 10404 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' 10405 fi 10406 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10407 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10408 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 10409 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10410 else 10411 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10412 fi 10413 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10414 else 10415 case $cc_basename in 10416 xlc*) 10417 output_verbose_link_cmd='echo' 10418 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 10419 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 10420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 10421 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10422 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 10423 ;; 10424 *) 10425 ld_shlibs_CXX=no 10426 ;; 10427 esac 10428 fi 10429 ;; 10430 10431 dgux*) 10432 case $cc_basename in 10433 ec++*) 10434 # FIXME: insert proper C++ library support 10435 ld_shlibs_CXX=no 10436 ;; 10437 ghcx*) 10438 # Green Hills C++ Compiler 10439 # FIXME: insert proper C++ library support 10440 ld_shlibs_CXX=no 10441 ;; 10442 *) 10443 # FIXME: insert proper C++ library support 10444 ld_shlibs_CXX=no 10445 ;; 10446 esac 10447 ;; 10448 freebsd[12]*) 10449 # C++ shared libraries reported to be fairly broken before switch to ELF 10450 ld_shlibs_CXX=no 10451 ;; 10452 freebsd-elf*) 10453 archive_cmds_need_lc_CXX=no 10454 ;; 10455 freebsd* | kfreebsd*-gnu | dragonfly*) 10456 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 10457 # conventions 10458 ld_shlibs_CXX=yes 10459 ;; 10460 gnu*) 10461 ;; 10462 hpux9*) 10463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10464 hardcode_libdir_separator_CXX=: 10465 export_dynamic_flag_spec_CXX='${wl}-E' 10466 hardcode_direct_CXX=yes 10467 hardcode_minus_L_CXX=yes # Not in the search PATH, 10468 # but as the default 10469 # location of the library. 10470 10471 case $cc_basename in 10472 CC*) 10473 # FIXME: insert proper C++ library support 10474 ld_shlibs_CXX=no 10475 ;; 10476 aCC*) 10477 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10478 # Commands to make compiler produce verbose output that lists 10479 # what "hidden" libraries, object files and flags are used when 10480 # linking a shared library. 10481 # 10482 # There doesn't appear to be a way to prevent this compiler from 10483 # explicitly linking system object files so we need to strip them 10484 # from the output so that they don't get included in the library 10485 # dependencies. 10486 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10487 ;; 10488 *) 10489 if test "$GXX" = yes; then 10490 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 10491 else 10492 # FIXME: insert proper C++ library support 10493 ld_shlibs_CXX=no 10494 fi 10495 ;; 10496 esac 10497 ;; 10498 hpux10*|hpux11*) 10499 if test $with_gnu_ld = no; then 10500 case $host_cpu in 10501 hppa*64*) 10502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10503 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 10504 hardcode_libdir_separator_CXX=: 10505 ;; 10506 ia64*) 10507 hardcode_libdir_flag_spec_CXX='-L$libdir' 10508 ;; 10509 *) 10510 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 10511 hardcode_libdir_separator_CXX=: 10512 export_dynamic_flag_spec_CXX='${wl}-E' 10513 ;; 10514 esac 10515 fi 10516 case $host_cpu in 10517 hppa*64*) 10518 hardcode_direct_CXX=no 10519 hardcode_shlibpath_var_CXX=no 10520 ;; 10521 ia64*) 10522 hardcode_direct_CXX=no 10523 hardcode_shlibpath_var_CXX=no 10524 hardcode_minus_L_CXX=yes # Not in the search PATH, 10525 # but as the default 10526 # location of the library. 10527 ;; 10528 *) 10529 hardcode_direct_CXX=yes 10530 hardcode_minus_L_CXX=yes # Not in the search PATH, 10531 # but as the default 10532 # location of the library. 10533 ;; 10534 esac 10535 10536 case $cc_basename in 10537 CC*) 10538 # FIXME: insert proper C++ library support 10539 ld_shlibs_CXX=no 10540 ;; 10541 aCC*) 10542 case $host_cpu in 10543 hppa*64*|ia64*) 10544 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10545 ;; 10546 *) 10547 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10548 ;; 10549 esac 10550 # Commands to make compiler produce verbose output that lists 10551 # what "hidden" libraries, object files and flags are used when 10552 # linking a shared library. 10553 # 10554 # There doesn't appear to be a way to prevent this compiler from 10555 # explicitly linking system object files so we need to strip them 10556 # from the output so that they don't get included in the library 10557 # dependencies. 10558 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10559 ;; 10560 *) 10561 if test "$GXX" = yes; then 10562 if test $with_gnu_ld = no; then 10563 case $host_cpu in 10564 ia64*|hppa*64*) 10565 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 10566 ;; 10567 *) 10568 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10569 ;; 10570 esac 10571 fi 10572 else 10573 # FIXME: insert proper C++ library support 10574 ld_shlibs_CXX=no 10575 fi 10576 ;; 10577 esac 10578 ;; 10579 irix5* | irix6*) 10580 case $cc_basename in 10581 CC*) 10582 # SGI C++ 10583 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10584 10585 # Archives containing C++ object files must be created using 10586 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 10587 # necessary to make sure instantiated templates are included 10588 # in the archive. 10589 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 10590 ;; 10591 *) 10592 if test "$GXX" = yes; then 10593 if test "$with_gnu_ld" = no; then 10594 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10595 else 10596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 10597 fi 10598 fi 10599 link_all_deplibs_CXX=yes 10600 ;; 10601 esac 10602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10603 hardcode_libdir_separator_CXX=: 10604 ;; 10605 linux*) 10606 case $cc_basename in 10607 KCC*) 10608 # Kuck and Associates, Inc. (KAI) C++ Compiler 10609 10610 # KCC will only create a shared library if the output file 10611 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10612 # to its proper name (with version) after linking. 10613 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' 10614 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' 10615 # Commands to make compiler produce verbose output that lists 10616 # what "hidden" libraries, object files and flags are used when 10617 # linking a shared library. 10618 # 10619 # There doesn't appear to be a way to prevent this compiler from 10620 # explicitly linking system object files so we need to strip them 10621 # from the output so that they don't get included in the library 10622 # dependencies. 10623 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; echo $list' 10624 10625 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 10626 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10627 10628 # Archives containing C++ object files must be created using 10629 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10630 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10631 ;; 10632 icpc*) 10633 # Intel C++ 10634 with_gnu_ld=yes 10635 # version 8.0 and above of icpc choke on multiply defined symbols 10636 # if we add $predep_objects and $postdep_objects, however 7.1 and 10637 # earlier do not add the objects themselves. 10638 case `$CC -V 2>&1` in 10639 *"Version 7."*) 10640 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10641 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' 10642 ;; 10643 *) # Version 8.0 or newer 10644 tmp_idyn= 10645 case $host_cpu in 10646 ia64*) tmp_idyn=' -i_dynamic';; 10647 esac 10648 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10649 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' 10650 ;; 10651 esac 10652 archive_cmds_need_lc_CXX=no 10653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10654 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10655 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10656 ;; 10657 pgCC*) 10658 # Portland Group C++ compiler 10659 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 10660 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' 10661 10662 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 10663 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 10664 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 10665 ;; 10666 cxx*) 10667 # Compaq C++ 10668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 10669 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' 10670 10671 runpath_var=LD_RUN_PATH 10672 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10673 hardcode_libdir_separator_CXX=: 10674 10675 # Commands to make compiler produce verbose output that lists 10676 # what "hidden" libraries, object files and flags are used when 10677 # linking a shared library. 10678 # 10679 # There doesn't appear to be a way to prevent this compiler from 10680 # explicitly linking system object files so we need to strip them 10681 # from the output so that they don't get included in the library 10682 # dependencies. 10683 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10684 ;; 10685 esac 10686 ;; 10687 lynxos*) 10688 # FIXME: insert proper C++ library support 10689 ld_shlibs_CXX=no 10690 ;; 10691 m88k*) 10692 # FIXME: insert proper C++ library support 10693 ld_shlibs_CXX=no 10694 ;; 10695 mvs*) 10696 case $cc_basename in 10697 cxx*) 10698 # FIXME: insert proper C++ library support 10699 ld_shlibs_CXX=no 10700 ;; 10701 *) 10702 # FIXME: insert proper C++ library support 10703 ld_shlibs_CXX=no 10704 ;; 10705 esac 10706 ;; 10707 netbsd*) 10708 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10709 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 10710 wlarc= 10711 hardcode_libdir_flag_spec_CXX='-R$libdir' 10712 hardcode_direct_CXX=yes 10713 hardcode_shlibpath_var_CXX=no 10714 fi 10715 # Workaround some broken pre-1.5 toolchains 10716 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 10717 ;; 10718 openbsd2*) 10719 # C++ shared libraries are fairly broken 10720 ld_shlibs_CXX=no 10721 ;; 10722 openbsd*) 10723 hardcode_direct_CXX=yes 10724 hardcode_shlibpath_var_CXX=no 10725 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 10726 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10727 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10728 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 10729 export_dynamic_flag_spec_CXX='${wl}-E' 10730 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10731 fi 10732 output_verbose_link_cmd='echo' 10733 ;; 10734 osf3*) 10735 case $cc_basename in 10736 KCC*) 10737 # Kuck and Associates, Inc. (KAI) C++ Compiler 10738 10739 # KCC will only create a shared library if the output file 10740 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10741 # to its proper name (with version) after linking. 10742 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' 10743 10744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10745 hardcode_libdir_separator_CXX=: 10746 10747 # Archives containing C++ object files must be created using 10748 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 10749 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 10750 10751 ;; 10752 RCC*) 10753 # Rational C++ 2.4.1 10754 # FIXME: insert proper C++ library support 10755 ld_shlibs_CXX=no 10756 ;; 10757 cxx*) 10758 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10759 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10760 10761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10762 hardcode_libdir_separator_CXX=: 10763 10764 # Commands to make compiler produce verbose output that lists 10765 # what "hidden" libraries, object files and flags are used when 10766 # linking a shared library. 10767 # 10768 # There doesn't appear to be a way to prevent this compiler from 10769 # explicitly linking system object files so we need to strip them 10770 # from the output so that they don't get included in the library 10771 # dependencies. 10772 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10773 ;; 10774 *) 10775 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10776 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10777 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10778 10779 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10780 hardcode_libdir_separator_CXX=: 10781 10782 # Commands to make compiler produce verbose output that lists 10783 # what "hidden" libraries, object files and flags are used when 10784 # linking a shared library. 10785 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10786 10787 else 10788 # FIXME: insert proper C++ library support 10789 ld_shlibs_CXX=no 10790 fi 10791 ;; 10792 esac 10793 ;; 10794 osf4* | osf5*) 10795 case $cc_basename in 10796 KCC*) 10797 # Kuck and Associates, Inc. (KAI) C++ Compiler 10798 10799 # KCC will only create a shared library if the output file 10800 # ends with ".so" (or ".sl" for HP-UX), so rename the library 10801 # to its proper name (with version) after linking. 10802 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' 10803 10804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 10805 hardcode_libdir_separator_CXX=: 10806 10807 # Archives containing C++ object files must be created using 10808 # the KAI C++ compiler. 10809 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 10810 ;; 10811 RCC*) 10812 # Rational C++ 2.4.1 10813 # FIXME: insert proper C++ library support 10814 ld_shlibs_CXX=no 10815 ;; 10816 cxx*) 10817 allow_undefined_flag_CXX=' -expect_unresolved \*' 10818 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10819 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 10820 echo "-hidden">> $lib.exp~ 10821 $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~ 10822 $rm $lib.exp' 10823 10824 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 10825 hardcode_libdir_separator_CXX=: 10826 10827 # Commands to make compiler produce verbose output that lists 10828 # what "hidden" libraries, object files and flags are used when 10829 # linking a shared library. 10830 # 10831 # There doesn't appear to be a way to prevent this compiler from 10832 # explicitly linking system object files so we need to strip them 10833 # from the output so that they don't get included in the library 10834 # dependencies. 10835 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10836 ;; 10837 *) 10838 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 10840 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10841 10842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 10843 hardcode_libdir_separator_CXX=: 10844 10845 # Commands to make compiler produce verbose output that lists 10846 # what "hidden" libraries, object files and flags are used when 10847 # linking a shared library. 10848 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 10849 10850 else 10851 # FIXME: insert proper C++ library support 10852 ld_shlibs_CXX=no 10853 fi 10854 ;; 10855 esac 10856 ;; 10857 psos*) 10858 # FIXME: insert proper C++ library support 10859 ld_shlibs_CXX=no 10860 ;; 10861 sco*) 10862 archive_cmds_need_lc_CXX=no 10863 case $cc_basename in 10864 CC*) 10865 # FIXME: insert proper C++ library support 10866 ld_shlibs_CXX=no 10867 ;; 10868 *) 10869 # FIXME: insert proper C++ library support 10870 ld_shlibs_CXX=no 10871 ;; 10872 esac 10873 ;; 10874 sunos4*) 10875 case $cc_basename in 10876 CC*) 10877 # Sun C++ 4.x 10878 # FIXME: insert proper C++ library support 10879 ld_shlibs_CXX=no 10880 ;; 10881 lcc*) 10882 # Lucid 10883 # FIXME: insert proper C++ library support 10884 ld_shlibs_CXX=no 10885 ;; 10886 *) 10887 # FIXME: insert proper C++ library support 10888 ld_shlibs_CXX=no 10889 ;; 10890 esac 10891 ;; 10892 solaris*) 10893 case $cc_basename in 10894 CC*) 10895 # Sun C++ 4.2, 5.x and Centerline C++ 10896 archive_cmds_need_lc_CXX=yes 10897 no_undefined_flag_CXX=' -zdefs' 10898 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10899 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10900 $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' 10901 10902 hardcode_libdir_flag_spec_CXX='-R$libdir' 10903 hardcode_shlibpath_var_CXX=no 10904 case $host_os in 10905 solaris2.[0-5] | solaris2.[0-5].*) ;; 10906 *) 10907 # The C++ compiler is used as linker so we must use $wl 10908 # flag to pass the commands to the underlying system 10909 # linker. We must also pass each convience library through 10910 # to the system linker between allextract/defaultextract. 10911 # The C++ compiler will combine linker options so we 10912 # cannot just pass the convience library names through 10913 # without $wl. 10914 # Supported since Solaris 2.6 (maybe 2.5.1?) 10915 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 10916 ;; 10917 esac 10918 link_all_deplibs_CXX=yes 10919 10920 output_verbose_link_cmd='echo' 10921 10922 # Archives containing C++ object files must be created using 10923 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10924 # necessary to make sure instantiated templates are included 10925 # in the archive. 10926 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10927 ;; 10928 gcx*) 10929 # Green Hills C++ Compiler 10930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10931 10932 # The C++ compiler must be used to create the archive. 10933 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10934 ;; 10935 *) 10936 # GNU C++ compiler with Solaris linker 10937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10938 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10939 if $CC --version | grep -v '^2\.7' > /dev/null; then 10940 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10941 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10942 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10943 10944 # Commands to make compiler produce verbose output that lists 10945 # what "hidden" libraries, object files and flags are used when 10946 # linking a shared library. 10947 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10948 else 10949 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10950 # platform. 10951 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10952 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10953 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10954 10955 # Commands to make compiler produce verbose output that lists 10956 # what "hidden" libraries, object files and flags are used when 10957 # linking a shared library. 10958 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10959 fi 10960 10961 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10962 fi 10963 ;; 10964 esac 10965 ;; 10966 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10967 archive_cmds_need_lc_CXX=no 10968 ;; 10969 tandem*) 10970 case $cc_basename in 10971 NCC*) 10972 # NonStop-UX NCC 3.20 10973 # FIXME: insert proper C++ library support 10974 ld_shlibs_CXX=no 10975 ;; 10976 *) 10977 # FIXME: insert proper C++ library support 10978 ld_shlibs_CXX=no 10979 ;; 10980 esac 10981 ;; 10982 vxworks*) 10983 # FIXME: insert proper C++ library support 10984 ld_shlibs_CXX=no 10985 ;; 10986 *) 10987 # FIXME: insert proper C++ library support 10988 ld_shlibs_CXX=no 10989 ;; 10990 esac 10991 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10992 echo "${ECHO_T}$ld_shlibs_CXX" >&6 10993 test "$ld_shlibs_CXX" = no && can_build_shared=no 10994 10995 GCC_CXX="$GXX" 10996 LD_CXX="$LD" 10997 10998 10999 cat > conftest.$ac_ext <<EOF 11000 class Foo 11001 { 11002 public: 11003 Foo (void) { a = 0; } 11004 private: 11005 int a; 11006 }; 11007 EOF 11008 11009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11010 (eval $ac_compile) 2>&5 11011 ac_status=$? 11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11013 (exit $ac_status); }; then 11014 # Parse the compiler output and extract the necessary 11015 # objects, libraries and library flags. 11016 11017 # Sentinel used to keep track of whether or not we are before 11018 # the conftest object file. 11019 pre_test_object_deps_done=no 11020 11021 # The `*' in the case matches for architectures that use `case' in 11022 # $output_verbose_cmd can trigger glob expansion during the loop 11023 # eval without this substitution. 11024 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 11025 11026 for p in `eval $output_verbose_link_cmd`; do 11027 case $p in 11028 11029 -L* | -R* | -l*) 11030 # Some compilers place space between "-{L,R}" and the path. 11031 # Remove the space. 11032 if test $p = "-L" \ 11033 || test $p = "-R"; then 11034 prev=$p 11035 continue 11036 else 11037 prev= 11038 fi 11039 11040 if test "$pre_test_object_deps_done" = no; then 11041 case $p in 11042 -L* | -R*) 11043 # Internal compiler library paths should come after those 11044 # provided the user. The postdeps already come after the 11045 # user supplied libs so there is no need to process them. 11046 if test -z "$compiler_lib_search_path_CXX"; then 11047 compiler_lib_search_path_CXX="${prev}${p}" 11048 else 11049 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 11050 fi 11051 ;; 11052 # The "-l" case would never come before the object being 11053 # linked, so don't bother handling this case. 11054 esac 11055 else 11056 if test -z "$postdeps_CXX"; then 11057 postdeps_CXX="${prev}${p}" 11058 else 11059 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 11060 fi 11061 fi 11062 ;; 11063 11064 *.$objext) 11065 # This assumes that the test object file only shows up 11066 # once in the compiler output. 11067 if test "$p" = "conftest.$objext"; then 11068 pre_test_object_deps_done=yes 11069 continue 11070 fi 11071 11072 if test "$pre_test_object_deps_done" = no; then 11073 if test -z "$predep_objects_CXX"; then 11074 predep_objects_CXX="$p" 11075 else 11076 predep_objects_CXX="$predep_objects_CXX $p" 11077 fi 11078 else 11079 if test -z "$postdep_objects_CXX"; then 11080 postdep_objects_CXX="$p" 11081 else 11082 postdep_objects_CXX="$postdep_objects_CXX $p" 11083 fi 11084 fi 11085 ;; 11086 11087 *) ;; # Ignore the rest. 11088 11089 esac 11090 done 11091 11092 # Clean up. 11093 rm -f a.out a.exe 11094 else 11095 echo "libtool.m4: error: problem compiling CXX test program" 11096 fi 11097 11098 $rm -f confest.$objext 11099 11100 # PORTME: override above test on systems where it is broken 11101 case $host_os in 11102 solaris*) 11103 case $cc_basename in 11104 CC*) 11105 # Adding this requires a known-good setup of shared libraries for 11106 # Sun compiler versions before 5.6, else PIC objects from an old 11107 # archive will be linked into the output, leading to subtle bugs. 11108 postdeps_CXX='-lCstd -lCrun' 11109 ;; 11110 esac 11111 esac 11112 11113 11114 case " $postdeps_CXX " in 11115 *" -lc "*) archive_cmds_need_lc_CXX=no ;; 11116 esac 11117 11118 lt_prog_compiler_wl_CXX= 11119 lt_prog_compiler_pic_CXX= 11120 lt_prog_compiler_static_CXX= 11121 11122 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 11123 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 11124 11125 # C++ specific cases for pic, static, wl, etc. 11126 if test "$GXX" = yes; then 11127 lt_prog_compiler_wl_CXX='-Wl,' 11128 lt_prog_compiler_static_CXX='-static' 11129 11130 case $host_os in 11131 aix*) 11132 # All AIX code is PIC. 11133 if test "$host_cpu" = ia64; then 11134 # AIX 5 now supports IA64 processor 11135 lt_prog_compiler_static_CXX='-Bstatic' 11136 fi 11137 ;; 11138 amigaos*) 11139 # FIXME: we need at least 68020 code to build shared libraries, but 11140 # adding the `-m68020' flag to GCC prevents building anything better, 11141 # like `-m68040'. 11142 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 11143 ;; 11144 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 11145 # PIC is the default for these OSes. 11146 ;; 11147 mingw* | os2* | pw32*) 11148 # This hack is so that the source file can tell whether it is being 11149 # built for inclusion in a dll (and should export symbols for example). 11150 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 11151 ;; 11152 darwin* | rhapsody*) 11153 # PIC is the default on this platform 11154 # Common symbols not allowed in MH_DYLIB files 11155 lt_prog_compiler_pic_CXX='-fno-common' 11156 ;; 11157 *djgpp*) 11158 # DJGPP does not support shared libraries at all 11159 lt_prog_compiler_pic_CXX= 11160 ;; 11161 sysv4*MP*) 11162 if test -d /usr/nec; then 11163 lt_prog_compiler_pic_CXX=-Kconform_pic 11164 fi 11165 ;; 11166 hpux*) 11167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 11168 # not for PA HP-UX. 11169 case $host_cpu in 11170 hppa*64*|ia64*) 11171 ;; 11172 *) 11173 lt_prog_compiler_pic_CXX='-fPIC' 11174 ;; 11175 esac 11176 ;; 11177 *) 11178 lt_prog_compiler_pic_CXX='-fPIC' 11179 ;; 11180 esac 11181 else 11182 case $host_os in 11183 aix4* | aix5*) 11184 # All AIX code is PIC. 11185 if test "$host_cpu" = ia64; then 11186 # AIX 5 now supports IA64 processor 11187 lt_prog_compiler_static_CXX='-Bstatic' 11188 else 11189 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 11190 fi 11191 ;; 11192 chorus*) 11193 case $cc_basename in 11194 cxch68*) 11195 # Green Hills C++ Compiler 11196 # _LT_AC_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" 11197 ;; 11198 esac 11199 ;; 11200 darwin*) 11201 # PIC is the default on this platform 11202 # Common symbols not allowed in MH_DYLIB files 11203 case $cc_basename in 11204 xlc*) 11205 lt_prog_compiler_pic_CXX='-qnocommon' 11206 lt_prog_compiler_wl_CXX='-Wl,' 11207 ;; 11208 esac 11209 ;; 11210 dgux*) 11211 case $cc_basename in 11212 ec++*) 11213 lt_prog_compiler_pic_CXX='-KPIC' 11214 ;; 11215 ghcx*) 11216 # Green Hills C++ Compiler 11217 lt_prog_compiler_pic_CXX='-pic' 11218 ;; 11219 *) 11220 ;; 11221 esac 11222 ;; 11223 freebsd* | kfreebsd*-gnu | dragonfly*) 11224 # FreeBSD uses GNU C++ 11225 ;; 11226 hpux9* | hpux10* | hpux11*) 11227 case $cc_basename in 11228 CC*) 11229 lt_prog_compiler_wl_CXX='-Wl,' 11230 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11231 if test "$host_cpu" != ia64; then 11232 lt_prog_compiler_pic_CXX='+Z' 11233 fi 11234 ;; 11235 aCC*) 11236 lt_prog_compiler_wl_CXX='-Wl,' 11237 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 11238 case $host_cpu in 11239 hppa*64*|ia64*) 11240 # +Z the default 11241 ;; 11242 *) 11243 lt_prog_compiler_pic_CXX='+Z' 11244 ;; 11245 esac 11246 ;; 11247 *) 11248 ;; 11249 esac 11250 ;; 11251 irix5* | irix6* | nonstopux*) 11252 case $cc_basename in 11253 CC*) 11254 lt_prog_compiler_wl_CXX='-Wl,' 11255 lt_prog_compiler_static_CXX='-non_shared' 11256 # CC pic flag -KPIC is the default. 11257 ;; 11258 *) 11259 ;; 11260 esac 11261 ;; 11262 linux*) 11263 case $cc_basename in 11264 KCC*) 11265 # KAI C++ Compiler 11266 lt_prog_compiler_wl_CXX='--backend -Wl,' 11267 lt_prog_compiler_pic_CXX='-fPIC' 11268 ;; 11269 icpc* | ecpc*) 11270 # Intel C++ 11271 lt_prog_compiler_wl_CXX='-Wl,' 11272 lt_prog_compiler_pic_CXX='-KPIC' 11273 lt_prog_compiler_static_CXX='-static' 11274 ;; 11275 pgCC*) 11276 # Portland Group C++ compiler. 11277 lt_prog_compiler_wl_CXX='-Wl,' 11278 lt_prog_compiler_pic_CXX='-fpic' 11279 lt_prog_compiler_static_CXX='-Bstatic' 11280 ;; 11281 cxx*) 11282 # Compaq C++ 11283 # Make sure the PIC flag is empty. It appears that all Alpha 11284 # Linux and Compaq Tru64 Unix objects are PIC. 11285 lt_prog_compiler_pic_CXX= 11286 lt_prog_compiler_static_CXX='-non_shared' 11287 ;; 11288 *) 11289 ;; 11290 esac 11291 ;; 11292 lynxos*) 11293 ;; 11294 m88k*) 11295 ;; 11296 mvs*) 11297 case $cc_basename in 11298 cxx*) 11299 lt_prog_compiler_pic_CXX='-W c,exportall' 11300 ;; 11301 *) 11302 ;; 11303 esac 11304 ;; 11305 netbsd*) 11306 ;; 11307 osf3* | osf4* | osf5*) 11308 case $cc_basename in 11309 KCC*) 11310 lt_prog_compiler_wl_CXX='--backend -Wl,' 11311 ;; 11312 RCC*) 11313 # Rational C++ 2.4.1 11314 lt_prog_compiler_pic_CXX='-pic' 11315 ;; 11316 cxx*) 11317 # Digital/Compaq C++ 11318 lt_prog_compiler_wl_CXX='-Wl,' 11319 # Make sure the PIC flag is empty. It appears that all Alpha 11320 # Linux and Compaq Tru64 Unix objects are PIC. 11321 lt_prog_compiler_pic_CXX= 11322 lt_prog_compiler_static_CXX='-non_shared' 11323 ;; 11324 *) 11325 ;; 11326 esac 11327 ;; 11328 psos*) 11329 ;; 11330 sco*) 11331 case $cc_basename in 11332 CC*) 11333 lt_prog_compiler_pic_CXX='-fPIC' 11334 ;; 11335 *) 11336 ;; 11337 esac 11338 ;; 11339 solaris*) 11340 case $cc_basename in 11341 CC*) 11342 # Sun C++ 4.2, 5.x and Centerline C++ 11343 lt_prog_compiler_pic_CXX='-KPIC' 11344 lt_prog_compiler_static_CXX='-Bstatic' 11345 lt_prog_compiler_wl_CXX='-Qoption ld ' 11346 ;; 11347 gcx*) 11348 # Green Hills C++ Compiler 11349 lt_prog_compiler_pic_CXX='-PIC' 11350 ;; 11351 *) 11352 ;; 11353 esac 11354 ;; 11355 sunos4*) 11356 case $cc_basename in 11357 CC*) 11358 # Sun C++ 4.x 11359 lt_prog_compiler_pic_CXX='-pic' 11360 lt_prog_compiler_static_CXX='-Bstatic' 11361 ;; 11362 lcc*) 11363 # Lucid 11364 lt_prog_compiler_pic_CXX='-pic' 11365 ;; 11366 *) 11367 ;; 11368 esac 11369 ;; 11370 tandem*) 11371 case $cc_basename in 11372 NCC*) 11373 # NonStop-UX NCC 3.20 11374 lt_prog_compiler_pic_CXX='-KPIC' 11375 ;; 11376 *) 11377 ;; 11378 esac 11379 ;; 11380 unixware*) 11381 ;; 11382 vxworks*) 11383 ;; 11384 *) 11385 lt_prog_compiler_can_build_shared_CXX=no 11386 ;; 11387 esac 11388 fi 11389 11390 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 11391 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 11392 11393 # 11394 # Check to make sure the PIC flag actually works. 11395 # 11396 if test -n "$lt_prog_compiler_pic_CXX"; then 11397 11398 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 11399 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 11400 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 11401 echo $ECHO_N "(cached) $ECHO_C" >&6 11402 else 11403 lt_prog_compiler_pic_works_CXX=no 11404 ac_outfile=conftest.$ac_objext 11405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11406 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 11407 # Insert the option either (1) after the last *FLAGS variable, or 11408 # (2) before a word containing "conftest.", or (3) at the end. 11409 # Note that $ac_compile itself does not contain backslashes and begins 11410 # with a dollar sign (not a hyphen), so the echo should work correctly. 11411 # The option is referenced via a variable to avoid confusing sed. 11412 lt_compile=`echo "$ac_compile" | $SED \ 11413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11415 -e 's:$: $lt_compiler_flag:'` 11416 (eval echo "\"\$as_me:11416: $lt_compile\"" >&5) 11417 (eval "$lt_compile" 2>conftest.err) 11418 ac_status=$? 11419 cat conftest.err >&5 11420 echo "$as_me:11420: \$? = $ac_status" >&5 11421 if (exit $ac_status) && test -s "$ac_outfile"; then 11422 # The compiler can only warn and ignore the option if not recognized 11423 # So say no if there are warnings other than the usual output. 11424 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 11425 $SED '/^$/d' conftest.err >conftest.er2 11426 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 11427 lt_prog_compiler_pic_works_CXX=yes 11428 fi 11429 fi 11430 $rm conftest* 11431 11432 fi 11433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 11434 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 11435 11436 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 11437 case $lt_prog_compiler_pic_CXX in 11438 "" | " "*) ;; 11439 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 11440 esac 11441 else 11442 lt_prog_compiler_pic_CXX= 11443 lt_prog_compiler_can_build_shared_CXX=no 11444 fi 11445 11446 fi 11447 case $host_os in 11448 # For platforms which do not support PIC, -DPIC is meaningless: 11449 *djgpp*) 11450 lt_prog_compiler_pic_CXX= 11451 ;; 11452 *) 11453 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 11454 ;; 11455 esac 11456 11457 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 11460 echo $ECHO_N "(cached) $ECHO_C" >&6 11461 else 11462 lt_cv_prog_compiler_c_o_CXX=no 11463 $rm -r conftest 2>/dev/null 11464 mkdir conftest 11465 cd conftest 11466 mkdir out 11467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11468 11469 lt_compiler_flag="-o out/conftest2.$ac_objext" 11470 # Insert the option either (1) after the last *FLAGS variable, or 11471 # (2) before a word containing "conftest.", or (3) at the end. 11472 # Note that $ac_compile itself does not contain backslashes and begins 11473 # with a dollar sign (not a hyphen), so the echo should work correctly. 11474 lt_compile=`echo "$ac_compile" | $SED \ 11475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11477 -e 's:$: $lt_compiler_flag:'` 11478 (eval echo "\"\$as_me:11478: $lt_compile\"" >&5) 11479 (eval "$lt_compile" 2>out/conftest.err) 11480 ac_status=$? 11481 cat out/conftest.err >&5 11482 echo "$as_me:11482: \$? = $ac_status" >&5 11483 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11484 then 11485 # The compiler can only warn and ignore the option if not recognized 11486 # So say no if there are warnings 11487 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 11488 $SED '/^$/d' out/conftest.err >out/conftest.er2 11489 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11490 lt_cv_prog_compiler_c_o_CXX=yes 11491 fi 11492 fi 11493 chmod u+w . 2>&5 11494 $rm conftest* 11495 # SGI C++ compiler will create directory out/ii_files/ for 11496 # template instantiation 11497 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11498 $rm out/* && rmdir out 11499 cd .. 11500 rmdir conftest 11501 $rm conftest* 11502 11503 fi 11504 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 11505 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 11506 11507 11508 hard_links="nottested" 11509 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 11510 # do not overwrite the value of need_locks provided by the user 11511 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11512 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11513 hard_links=yes 11514 $rm conftest* 11515 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11516 touch conftest.a 11517 ln conftest.a conftest.b 2>&5 || hard_links=no 11518 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11519 echo "$as_me:$LINENO: result: $hard_links" >&5 11520 echo "${ECHO_T}$hard_links" >&6 11521 if test "$hard_links" = no; then 11522 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11523 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11524 need_locks=warn 11525 fi 11526 else 11527 need_locks=no 11528 fi 11529 11530 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11531 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11532 11533 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11534 case $host_os in 11535 aix4* | aix5*) 11536 # If we're using GNU nm, then we don't want the "-C" option. 11537 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11538 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 11539 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11540 else 11541 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 11542 fi 11543 ;; 11544 pw32*) 11545 export_symbols_cmds_CXX="$ltdll_cmds" 11546 ;; 11547 cygwin* | mingw*) 11548 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 11549 ;; 11550 *) 11551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11552 ;; 11553 esac 11554 11555 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 11556 echo "${ECHO_T}$ld_shlibs_CXX" >&6 11557 test "$ld_shlibs_CXX" = no && can_build_shared=no 11558 11559 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11560 if test "$GCC" = yes; then 11561 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11562 fi 11563 11564 # 11565 # Do we need to explicitly link libc? 11566 # 11567 case "x$archive_cmds_need_lc_CXX" in 11568 x|xyes) 11569 # Assume -lc should be added 11570 archive_cmds_need_lc_CXX=yes 11571 11572 if test "$enable_shared" = yes && test "$GCC" = yes; then 11573 case $archive_cmds_CXX in 11574 *'~'*) 11575 # FIXME: we may have to deal with multi-command sequences. 11576 ;; 11577 '$CC '*) 11578 # Test whether the compiler implicitly links with -lc since on some 11579 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11580 # to ld, don't add -lc before -lgcc. 11581 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 11582 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 11583 $rm conftest* 11584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 11585 11586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11587 (eval $ac_compile) 2>&5 11588 ac_status=$? 11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11590 (exit $ac_status); } 2>conftest.err; then 11591 soname=conftest 11592 lib=conftest 11593 libobjs=conftest.$ac_objext 11594 deplibs= 11595 wl=$lt_prog_compiler_wl_CXX 11596 compiler_flags=-v 11597 linker_flags=-v 11598 verstring= 11599 output_objdir=. 11600 libname=conftest 11601 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 11602 allow_undefined_flag_CXX= 11603 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 11604 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 11605 ac_status=$? 11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11607 (exit $ac_status); } 11608 then 11609 archive_cmds_need_lc_CXX=no 11610 else 11611 archive_cmds_need_lc_CXX=yes 11612 fi 11613 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 11614 else 11615 cat conftest.err 1>&5 11616 fi 11617 $rm conftest* 11618 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 11619 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 11620 ;; 11621 esac 11622 fi 11623 ;; 11624 esac 11625 11626 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 11627 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 11628 library_names_spec= 11629 libname_spec='lib$name' 11630 soname_spec= 11631 shrext_cmds=".so" 11632 postinstall_cmds= 11633 postuninstall_cmds= 11634 finish_cmds= 11635 finish_eval= 11636 shlibpath_var= 11637 shlibpath_overrides_runpath=unknown 11638 version_type=none 11639 dynamic_linker="$host_os ld.so" 11640 sys_lib_dlsearch_path_spec="/lib /usr/lib" 11641 if test "$GCC" = yes; then 11642 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11643 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 11644 # if the path contains ";" then we assume it to be the separator 11645 # otherwise default to the standard path separator (i.e. ":") - it is 11646 # assumed that no part of a normal pathname contains ";" but that should 11647 # okay in the real world where ";" in dirpaths is itself problematic. 11648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11649 else 11650 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11651 fi 11652 else 11653 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11654 fi 11655 need_lib_prefix=unknown 11656 hardcode_into_libs=no 11657 11658 # when you set need_version to no, make sure it does not cause -set_version 11659 # flags to be left without arguments 11660 need_version=unknown 11661 11662 case $host_os in 11663 aix3*) 11664 version_type=linux 11665 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 11666 shlibpath_var=LIBPATH 11667 11668 # AIX 3 has no versioning support, so we append a major version to the name. 11669 soname_spec='${libname}${release}${shared_ext}$major' 11670 ;; 11671 11672 aix4* | aix5*) 11673 version_type=linux 11674 need_lib_prefix=no 11675 need_version=no 11676 hardcode_into_libs=yes 11677 if test "$host_cpu" = ia64; then 11678 # AIX 5 supports IA64 11679 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 11680 shlibpath_var=LD_LIBRARY_PATH 11681 else 11682 # With GCC up to 2.95.x, collect2 would create an import file 11683 # for dependence libraries. The import file would start with 11684 # the line `#! .'. This would cause the generated library to 11685 # depend on `.', always an invalid library. This was fixed in 11686 # development snapshots of GCC prior to 3.0. 11687 case $host_os in 11688 aix4 | aix4.[01] | aix4.[01].*) 11689 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11690 echo ' yes ' 11691 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 11692 : 11693 else 11694 can_build_shared=no 11695 fi 11696 ;; 11697 esac 11698 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 11699 # soname into executable. Probably we can add versioning support to 11700 # collect2, so additional links can be useful in future. 11701 if test "$aix_use_runtimelinking" = yes; then 11702 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11703 # instead of lib<name>.a to let people know that these are not 11704 # typical AIX shared libraries. 11705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11706 else 11707 # We preserve .a as extension for shared libraries through AIX4.2 11708 # and later when we are not doing run time linking. 11709 library_names_spec='${libname}${release}.a $libname.a' 11710 soname_spec='${libname}${release}${shared_ext}$major' 11711 fi 11712 shlibpath_var=LIBPATH 11713 fi 11714 ;; 11715 11716 amigaos*) 11717 library_names_spec='$libname.ixlibrary $libname.a' 11718 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11719 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 11720 ;; 11721 11722 beos*) 11723 library_names_spec='${libname}${shared_ext}' 11724 dynamic_linker="$host_os ld.so" 11725 shlibpath_var=LIBRARY_PATH 11726 ;; 11727 11728 bsdi[45]*) 11729 version_type=linux 11730 need_version=no 11731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11732 soname_spec='${libname}${release}${shared_ext}$major' 11733 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11734 shlibpath_var=LD_LIBRARY_PATH 11735 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11736 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11737 # the default ld.so.conf also contains /usr/contrib/lib and 11738 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11739 # libtool to hard-code these into programs 11740 ;; 11741 11742 cygwin* | mingw* | pw32*) 11743 version_type=windows 11744 shrext_cmds=".dll" 11745 need_version=no 11746 need_lib_prefix=no 11747 11748 case $GCC,$host_os in 11749 yes,cygwin* | yes,mingw* | yes,pw32*) 11750 library_names_spec='$libname.dll.a' 11751 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11752 postinstall_cmds='base_file=`basename \${file}`~ 11753 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 11754 dldir=$destdir/`dirname \$dlpath`~ 11755 test -d \$dldir || mkdir -p \$dldir~ 11756 $install_prog $dir/$dlname \$dldir/$dlname~ 11757 chmod a+x \$dldir/$dlname' 11758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11759 dlpath=$dir/\$dldll~ 11760 $rm \$dlpath' 11761 shlibpath_overrides_runpath=yes 11762 11763 case $host_os in 11764 cygwin*) 11765 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11767 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 11768 ;; 11769 mingw*) 11770 # MinGW DLLs use traditional 'lib' prefix 11771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11772 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 11773 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 11774 # It is most probably a Windows format PATH printed by 11775 # mingw gcc, but we are running on Cygwin. Gcc prints its search 11776 # path with ; separators, and with drive letters. We can handle the 11777 # drive letters (cygwin fileutils understands them), so leave them, 11778 # especially as we might pass files found there to a mingw objdump, 11779 # which wouldn't understand a cygwinified path. Ahh. 11780 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11781 else 11782 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11783 fi 11784 ;; 11785 pw32*) 11786 # pw32 DLLs use 'pw' prefix rather than 'lib' 11787 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11788 ;; 11789 esac 11790 ;; 11791 11792 linux*) 11793 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 11794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11795 supports_anon_versioning=no 11796 case `$LD -v 2>/dev/null` in 11797 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11798 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11799 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11800 *\ 2.11.*) ;; # other 2.11 versions 11801 *) supports_anon_versioning=yes ;; 11802 esac 11803 if test $supports_anon_versioning = yes; then 11804 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 11805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11806 $echo "local: *; };" >> $output_objdir/$libname.ver~ 11807 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11808 else 11809 $archive_expsym_cmds="$archive_cmds" 11810 fi 11811 else 11812 ld_shlibs=no 11813 fi 11814 ;; 11815 11816 *) 11817 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11818 ;; 11819 esac 11820 dynamic_linker='Win32 ld.exe' 11821 # FIXME: first we should search . and the directory the executable is in 11822 shlibpath_var=PATH 11823 ;; 11824 11825 darwin* | rhapsody*) 11826 dynamic_linker="$host_os dyld" 11827 version_type=darwin 11828 need_lib_prefix=no 11829 need_version=no 11830 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11831 soname_spec='${libname}${release}${major}$shared_ext' 11832 shlibpath_overrides_runpath=yes 11833 shlibpath_var=DYLD_LIBRARY_PATH 11834 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11835 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 11836 if test "$GCC" = yes; then 11837 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 11838 else 11839 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 11840 fi 11841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11842 ;; 11843 11844 dgux*) 11845 version_type=linux 11846 need_lib_prefix=no 11847 need_version=no 11848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11849 soname_spec='${libname}${release}${shared_ext}$major' 11850 shlibpath_var=LD_LIBRARY_PATH 11851 ;; 11852 11853 freebsd1*) 11854 dynamic_linker=no 11855 ;; 11856 11857 kfreebsd*-gnu) 11858 version_type=linux 11859 need_lib_prefix=no 11860 need_version=no 11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11862 soname_spec='${libname}${release}${shared_ext}$major' 11863 shlibpath_var=LD_LIBRARY_PATH 11864 shlibpath_overrides_runpath=no 11865 hardcode_into_libs=yes 11866 dynamic_linker='GNU ld.so' 11867 ;; 11868 11869 freebsd* | dragonfly*) 11870 # DragonFly does not have aout. When/if they implement a new 11871 # versioning mechanism, adjust this. 11872 if test -x /usr/bin/objformat; then 11873 objformat=`/usr/bin/objformat` 11874 else 11875 case $host_os in 11876 freebsd[123]*) objformat=aout ;; 11877 *) objformat=elf ;; 11878 esac 11879 fi 11880 version_type=freebsd-$objformat 11881 case $version_type in 11882 freebsd-elf*) 11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11884 need_version=no 11885 need_lib_prefix=no 11886 ;; 11887 freebsd-*) 11888 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11889 need_version=yes 11890 ;; 11891 esac 11892 shlibpath_var=LD_LIBRARY_PATH 11893 case $host_os in 11894 freebsd2*) 11895 shlibpath_overrides_runpath=yes 11896 ;; 11897 freebsd3.[01]* | freebsdelf3.[01]*) 11898 shlibpath_overrides_runpath=yes 11899 hardcode_into_libs=yes 11900 ;; 11901 *) # from 3.2 on 11902 shlibpath_overrides_runpath=no 11903 hardcode_into_libs=yes 11904 ;; 11905 esac 11906 ;; 11907 11908 gnu*) 11909 version_type=linux 11910 need_lib_prefix=no 11911 need_version=no 11912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11913 soname_spec='${libname}${release}${shared_ext}$major' 11914 shlibpath_var=LD_LIBRARY_PATH 11915 hardcode_into_libs=yes 11916 ;; 11917 11918 hpux9* | hpux10* | hpux11*) 11919 # Give a soname corresponding to the major version so that dld.sl refuses to 11920 # link against other versions. 11921 version_type=sunos 11922 need_lib_prefix=no 11923 need_version=no 11924 case $host_cpu in 11925 ia64*) 11926 shrext_cmds='.so' 11927 hardcode_into_libs=yes 11928 dynamic_linker="$host_os dld.so" 11929 shlibpath_var=LD_LIBRARY_PATH 11930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11932 soname_spec='${libname}${release}${shared_ext}$major' 11933 if test "X$HPUX_IA64_MODE" = X32; then 11934 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11935 else 11936 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11937 fi 11938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11939 ;; 11940 hppa*64*) 11941 shrext_cmds='.sl' 11942 hardcode_into_libs=yes 11943 dynamic_linker="$host_os dld.sl" 11944 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11947 soname_spec='${libname}${release}${shared_ext}$major' 11948 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11950 ;; 11951 *) 11952 shrext_cmds='.sl' 11953 dynamic_linker="$host_os dld.sl" 11954 shlibpath_var=SHLIB_PATH 11955 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11957 soname_spec='${libname}${release}${shared_ext}$major' 11958 ;; 11959 esac 11960 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11961 postinstall_cmds='chmod 555 $lib' 11962 ;; 11963 11964 irix5* | irix6* | nonstopux*) 11965 case $host_os in 11966 nonstopux*) version_type=nonstopux ;; 11967 *) 11968 if test "$lt_cv_prog_gnu_ld" = yes; then 11969 version_type=linux 11970 else 11971 version_type=irix 11972 fi ;; 11973 esac 11974 need_lib_prefix=no 11975 need_version=no 11976 soname_spec='${libname}${release}${shared_ext}$major' 11977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11978 case $host_os in 11979 irix5* | nonstopux*) 11980 libsuff= shlibsuff= 11981 ;; 11982 *) 11983 case $LD in # libtool.m4 will add one of these switches to LD 11984 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11985 libsuff= shlibsuff= libmagic=32-bit;; 11986 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11987 libsuff=32 shlibsuff=N32 libmagic=N32;; 11988 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11989 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11990 *) libsuff= shlibsuff= libmagic=never-match;; 11991 esac 11992 ;; 11993 esac 11994 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11995 shlibpath_overrides_runpath=no 11996 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11997 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11998 hardcode_into_libs=yes 11999 ;; 12000 12001 # No shared lib support for Linux oldld, aout, or coff. 12002 linux*oldld* | linux*aout* | linux*coff*) 12003 dynamic_linker=no 12004 ;; 12005 12006 # This must be Linux ELF. 12007 linux*) 12008 version_type=linux 12009 need_lib_prefix=no 12010 need_version=no 12011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12012 soname_spec='${libname}${release}${shared_ext}$major' 12013 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12014 shlibpath_var=LD_LIBRARY_PATH 12015 shlibpath_overrides_runpath=no 12016 # This implies no fast_install, which is unacceptable. 12017 # Some rework will be needed to allow for fast_install 12018 # before this can be enabled. 12019 hardcode_into_libs=yes 12020 12021 # Append ld.so.conf contents to the search path 12022 if test -f /etc/ld.so.conf; then 12023 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12024 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12025 fi 12026 12027 case $host_cpu:$lt_cv_cc_64bit_output in 12028 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 12029 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 12030 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 12031 ;; 12032 esac 12033 12034 # We used to test for /lib/ld.so.1 and disable shared libraries on 12035 # powerpc, because MkLinux only supported shared libraries with the 12036 # GNU dynamic linker. Since this was broken with cross compilers, 12037 # most powerpc-linux boxes support dynamic linking these days and 12038 # people can always --disable-shared, the test was removed, and we 12039 # assume the GNU/Linux dynamic linker is in use. 12040 dynamic_linker='GNU/Linux ld.so' 12041 12042 # Find out which ABI we are using (multilib Linux x86_64 hack). 12043 libsuff= 12044 case "$host_cpu" in 12045 x86_64*) 12046 echo '#line 12046 "configure"' > conftest.$ac_ext 12047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12048 (eval $ac_compile) 2>&5 12049 ac_status=$? 12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12051 (exit $ac_status); }; then 12052 case `/usr/bin/file conftest.$ac_objext` in 12053 *64-bit*) 12054 libsuff=64 12055 ;; 12056 esac 12057 fi 12058 rm -rf conftest* 12059 ;; 12060 *) 12061 ;; 12062 esac 12063 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 12064 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 12065 ;; 12066 12067 knetbsd*-gnu) 12068 version_type=linux 12069 need_lib_prefix=no 12070 need_version=no 12071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12072 soname_spec='${libname}${release}${shared_ext}$major' 12073 shlibpath_var=LD_LIBRARY_PATH 12074 shlibpath_overrides_runpath=no 12075 hardcode_into_libs=yes 12076 dynamic_linker='GNU ld.so' 12077 ;; 12078 12079 netbsd*) 12080 version_type=sunos 12081 need_lib_prefix=no 12082 need_version=no 12083 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 12084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12085 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12086 dynamic_linker='NetBSD (a.out) ld.so' 12087 else 12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12089 soname_spec='${libname}${release}${shared_ext}$major' 12090 dynamic_linker='NetBSD ld.elf_so' 12091 fi 12092 shlibpath_var=LD_LIBRARY_PATH 12093 shlibpath_overrides_runpath=yes 12094 hardcode_into_libs=yes 12095 ;; 12096 12097 newsos6) 12098 version_type=linux 12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12100 shlibpath_var=LD_LIBRARY_PATH 12101 shlibpath_overrides_runpath=yes 12102 ;; 12103 12104 nto-qnx*) 12105 version_type=linux 12106 need_lib_prefix=no 12107 need_version=no 12108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12109 soname_spec='${libname}${release}${shared_ext}$major' 12110 shlibpath_var=LD_LIBRARY_PATH 12111 shlibpath_overrides_runpath=yes 12112 ;; 12113 12114 openbsd*) 12115 version_type=sunos 12116 need_lib_prefix=no 12117 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12118 case $host_os in 12119 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12120 *) need_version=no ;; 12121 esac 12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12124 shlibpath_var=LD_LIBRARY_PATH 12125 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12126 case $host_os in 12127 openbsd2.[89] | openbsd2.[89].*) 12128 shlibpath_overrides_runpath=no 12129 ;; 12130 *) 12131 shlibpath_overrides_runpath=yes 12132 ;; 12133 esac 12134 else 12135 shlibpath_overrides_runpath=yes 12136 fi 12137 ;; 12138 12139 os2*) 12140 libname_spec='$name' 12141 shrext_cmds=".dll" 12142 need_lib_prefix=no 12143 library_names_spec='$libname${shared_ext} $libname.a' 12144 dynamic_linker='OS/2 ld.exe' 12145 shlibpath_var=LIBPATH 12146 ;; 12147 12148 osf3* | osf4* | osf5*) 12149 version_type=osf 12150 need_lib_prefix=no 12151 need_version=no 12152 soname_spec='${libname}${release}${shared_ext}$major' 12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12154 shlibpath_var=LD_LIBRARY_PATH 12155 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12156 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12157 ;; 12158 12159 sco3.2v5*) 12160 version_type=osf 12161 soname_spec='${libname}${release}${shared_ext}$major' 12162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12163 shlibpath_var=LD_LIBRARY_PATH 12164 ;; 12165 12166 solaris*) 12167 version_type=linux 12168 need_lib_prefix=no 12169 need_version=no 12170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12171 soname_spec='${libname}${release}${shared_ext}$major' 12172 shlibpath_var=LD_LIBRARY_PATH 12173 shlibpath_overrides_runpath=yes 12174 hardcode_into_libs=yes 12175 # ldd complains unless libraries are executable 12176 postinstall_cmds='chmod +x $lib' 12177 ;; 12178 12179 sunos4*) 12180 version_type=sunos 12181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12182 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12183 shlibpath_var=LD_LIBRARY_PATH 12184 shlibpath_overrides_runpath=yes 12185 if test "$with_gnu_ld" = yes; then 12186 need_lib_prefix=no 12187 fi 12188 need_version=yes 12189 ;; 12190 12191 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12192 version_type=linux 12193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12194 soname_spec='${libname}${release}${shared_ext}$major' 12195 shlibpath_var=LD_LIBRARY_PATH 12196 case $host_vendor in 12197 sni) 12198 shlibpath_overrides_runpath=no 12199 need_lib_prefix=no 12200 export_dynamic_flag_spec='${wl}-Blargedynsym' 12201 runpath_var=LD_RUN_PATH 12202 ;; 12203 siemens) 12204 need_lib_prefix=no 12205 ;; 12206 motorola) 12207 need_lib_prefix=no 12208 need_version=no 12209 shlibpath_overrides_runpath=no 12210 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12211 ;; 12212 esac 12213 ;; 12214 12215 sysv4*MP*) 12216 if test -d /usr/nec ;then 12217 version_type=linux 12218 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12219 soname_spec='$libname${shared_ext}.$major' 12220 shlibpath_var=LD_LIBRARY_PATH 12221 fi 12222 ;; 12223 12224 uts4*) 12225 version_type=linux 12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12227 soname_spec='${libname}${release}${shared_ext}$major' 12228 shlibpath_var=LD_LIBRARY_PATH 12229 ;; 12230 12231 *) 12232 dynamic_linker=no 12233 ;; 12234 esac 12235 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 12236 echo "${ECHO_T}$dynamic_linker" >&6 12237 test "$dynamic_linker" = no && can_build_shared=no 12238 12239 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 12240 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 12241 hardcode_action_CXX= 12242 if test -n "$hardcode_libdir_flag_spec_CXX" || \ 12243 test -n "$runpath_var_CXX" || \ 12244 test "X$hardcode_automatic_CXX" = "Xyes" ; then 12245 12246 # We can hardcode non-existant directories. 12247 if test "$hardcode_direct_CXX" != no && 12248 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12249 # have to relink, otherwise we might link with an installed library 12250 # when we should be linking with a yet-to-be-installed one 12251 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 12252 test "$hardcode_minus_L_CXX" != no; then 12253 # Linking always hardcodes the temporary library directory. 12254 hardcode_action_CXX=relink 12255 else 12256 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12257 hardcode_action_CXX=immediate 12258 fi 12259 else 12260 # We cannot hardcode anything, or else we can only hardcode existing 12261 # directories. 12262 hardcode_action_CXX=unsupported 12263 fi 12264 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 12265 echo "${ECHO_T}$hardcode_action_CXX" >&6 12266 12267 if test "$hardcode_action_CXX" = relink; then 12268 # Fast installation is not supported 12269 enable_fast_install=no 12270 elif test "$shlibpath_overrides_runpath" = yes || 12271 test "$enable_shared" = no; then 12272 # Fast installation is not necessary 12273 enable_fast_install=needless 12274 fi 12275 12276 striplib= 12277 old_striplib= 12278 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 12279 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 12280 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12281 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12282 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12283 echo "$as_me:$LINENO: result: yes" >&5 12284 echo "${ECHO_T}yes" >&6 12285 else 12286 # FIXME - insert some real tests, host_os isn't really good enough 12287 case $host_os in 12288 darwin*) 12289 if test -n "$STRIP" ; then 12290 striplib="$STRIP -x" 12291 echo "$as_me:$LINENO: result: yes" >&5 12292 echo "${ECHO_T}yes" >&6 12293 else 12294 echo "$as_me:$LINENO: result: no" >&5 12295 echo "${ECHO_T}no" >&6 12296 fi 12297 ;; 12298 *) 12299 echo "$as_me:$LINENO: result: no" >&5 12300 echo "${ECHO_T}no" >&6 12301 ;; 12302 esac 12303 fi 12304 12305 if test "x$enable_dlopen" != xyes; then 12306 enable_dlopen=unknown 12307 enable_dlopen_self=unknown 12308 enable_dlopen_self_static=unknown 12309 else 12310 lt_cv_dlopen=no 12311 lt_cv_dlopen_libs= 12312 12313 case $host_os in 12314 beos*) 12315 lt_cv_dlopen="load_add_on" 12316 lt_cv_dlopen_libs= 12317 lt_cv_dlopen_self=yes 12318 ;; 12319 12320 mingw* | pw32*) 12321 lt_cv_dlopen="LoadLibrary" 12322 lt_cv_dlopen_libs= 12323 ;; 12324 12325 cygwin*) 12326 lt_cv_dlopen="dlopen" 12327 lt_cv_dlopen_libs= 12328 ;; 12329 12330 darwin*) 12331 # if libdl is installed we need to link against it 12332 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12333 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12334 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12335 echo $ECHO_N "(cached) $ECHO_C" >&6 12336 else 12337 ac_check_lib_save_LIBS=$LIBS 12338 LIBS="-ldl $LIBS" 12339 cat >conftest.$ac_ext <<_ACEOF 12340 /* confdefs.h. */ 12341 _ACEOF 12342 cat confdefs.h >>conftest.$ac_ext 12343 cat >>conftest.$ac_ext <<_ACEOF 12344 /* end confdefs.h. */ 12345 12346 /* Override any gcc2 internal prototype to avoid an error. */ 12347 #ifdef __cplusplus 12348 extern "C" 12349 #endif 12350 /* We use char because int might match the return type of a gcc2 12351 builtin and then its argument prototype would still apply. */ 12352 char dlopen (); 12353 int 12354 main () 12355 { 12356 dlopen (); 12357 ; 12358 return 0; 12359 } 12360 _ACEOF 12361 rm -f conftest.$ac_objext conftest$ac_exeext 12362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12363 (eval $ac_link) 2>conftest.er1 12364 ac_status=$? 12365 grep -v '^ *+' conftest.er1 >conftest.err 12366 rm -f conftest.er1 12367 cat conftest.err >&5 12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12369 (exit $ac_status); } && 12370 { ac_try='test -z "$ac_cxx_werror_flag" 12371 || test ! -s conftest.err' 12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12373 (eval $ac_try) 2>&5 12374 ac_status=$? 12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12376 (exit $ac_status); }; } && 12377 { ac_try='test -s conftest$ac_exeext' 12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12379 (eval $ac_try) 2>&5 12380 ac_status=$? 12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12382 (exit $ac_status); }; }; then 12383 ac_cv_lib_dl_dlopen=yes 12384 else 12385 echo "$as_me: failed program was:" >&5 12386 sed 's/^/| /' conftest.$ac_ext >&5 12387 12388 ac_cv_lib_dl_dlopen=no 12389 fi 12390 rm -f conftest.err conftest.$ac_objext \ 12391 conftest$ac_exeext conftest.$ac_ext 12392 LIBS=$ac_check_lib_save_LIBS 12393 fi 12394 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12395 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12396 if test $ac_cv_lib_dl_dlopen = yes; then 12397 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12398 else 12399 12400 lt_cv_dlopen="dyld" 12401 lt_cv_dlopen_libs= 12402 lt_cv_dlopen_self=yes 12403 12404 fi 12405 12406 ;; 12407 12408 *) 12409 echo "$as_me:$LINENO: checking for shl_load" >&5 12410 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 12411 if test "${ac_cv_func_shl_load+set}" = set; then 12412 echo $ECHO_N "(cached) $ECHO_C" >&6 12413 else 12414 cat >conftest.$ac_ext <<_ACEOF 12415 /* confdefs.h. */ 12416 _ACEOF 12417 cat confdefs.h >>conftest.$ac_ext 12418 cat >>conftest.$ac_ext <<_ACEOF 12419 /* end confdefs.h. */ 12420 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12422 #define shl_load innocuous_shl_load 12423 12424 /* System header to define __stub macros and hopefully few prototypes, 12425 which can conflict with char shl_load (); below. 12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12427 <limits.h> exists even on freestanding compilers. */ 12428 12429 #ifdef __STDC__ 12430 # include <limits.h> 12431 #else 12432 # include <assert.h> 12433 #endif 12434 12435 #undef shl_load 12436 12437 /* Override any gcc2 internal prototype to avoid an error. */ 12438 #ifdef __cplusplus 12439 extern "C" 12440 { 12441 #endif 12442 /* We use char because int might match the return type of a gcc2 12443 builtin and then its argument prototype would still apply. */ 12444 char shl_load (); 12445 /* The GNU C library defines this for functions which it implements 12446 to always fail with ENOSYS. Some functions are actually named 12447 something starting with __ and the normal name is an alias. */ 12448 #if defined (__stub_shl_load) || defined (__stub___shl_load) 12449 choke me 12450 #else 12451 char (*f) () = shl_load; 12452 #endif 12453 #ifdef __cplusplus 12454 } 12455 #endif 12456 12457 int 12458 main () 12459 { 12460 return f != shl_load; 12461 ; 12462 return 0; 12463 } 12464 _ACEOF 12465 rm -f conftest.$ac_objext conftest$ac_exeext 12466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12467 (eval $ac_link) 2>conftest.er1 12468 ac_status=$? 12469 grep -v '^ *+' conftest.er1 >conftest.err 12470 rm -f conftest.er1 12471 cat conftest.err >&5 12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12473 (exit $ac_status); } && 12474 { ac_try='test -z "$ac_cxx_werror_flag" 12475 || test ! -s conftest.err' 12476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12477 (eval $ac_try) 2>&5 12478 ac_status=$? 12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12480 (exit $ac_status); }; } && 12481 { ac_try='test -s conftest$ac_exeext' 12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12483 (eval $ac_try) 2>&5 12484 ac_status=$? 12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12486 (exit $ac_status); }; }; then 12487 ac_cv_func_shl_load=yes 12488 else 12489 echo "$as_me: failed program was:" >&5 12490 sed 's/^/| /' conftest.$ac_ext >&5 12491 12492 ac_cv_func_shl_load=no 12493 fi 12494 rm -f conftest.err conftest.$ac_objext \ 12495 conftest$ac_exeext conftest.$ac_ext 12496 fi 12497 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 12498 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 12499 if test $ac_cv_func_shl_load = yes; then 12500 lt_cv_dlopen="shl_load" 12501 else 12502 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 12503 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 12504 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 12505 echo $ECHO_N "(cached) $ECHO_C" >&6 12506 else 12507 ac_check_lib_save_LIBS=$LIBS 12508 LIBS="-ldld $LIBS" 12509 cat >conftest.$ac_ext <<_ACEOF 12510 /* confdefs.h. */ 12511 _ACEOF 12512 cat confdefs.h >>conftest.$ac_ext 12513 cat >>conftest.$ac_ext <<_ACEOF 12514 /* end confdefs.h. */ 12515 12516 /* Override any gcc2 internal prototype to avoid an error. */ 12517 #ifdef __cplusplus 12518 extern "C" 12519 #endif 12520 /* We use char because int might match the return type of a gcc2 12521 builtin and then its argument prototype would still apply. */ 12522 char shl_load (); 12523 int 12524 main () 12525 { 12526 shl_load (); 12527 ; 12528 return 0; 12529 } 12530 _ACEOF 12531 rm -f conftest.$ac_objext conftest$ac_exeext 12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12533 (eval $ac_link) 2>conftest.er1 12534 ac_status=$? 12535 grep -v '^ *+' conftest.er1 >conftest.err 12536 rm -f conftest.er1 12537 cat conftest.err >&5 12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12539 (exit $ac_status); } && 12540 { ac_try='test -z "$ac_cxx_werror_flag" 12541 || test ! -s conftest.err' 12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12543 (eval $ac_try) 2>&5 12544 ac_status=$? 12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12546 (exit $ac_status); }; } && 12547 { ac_try='test -s conftest$ac_exeext' 12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12549 (eval $ac_try) 2>&5 12550 ac_status=$? 12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12552 (exit $ac_status); }; }; then 12553 ac_cv_lib_dld_shl_load=yes 12554 else 12555 echo "$as_me: failed program was:" >&5 12556 sed 's/^/| /' conftest.$ac_ext >&5 12557 12558 ac_cv_lib_dld_shl_load=no 12559 fi 12560 rm -f conftest.err conftest.$ac_objext \ 12561 conftest$ac_exeext conftest.$ac_ext 12562 LIBS=$ac_check_lib_save_LIBS 12563 fi 12564 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 12565 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 12566 if test $ac_cv_lib_dld_shl_load = yes; then 12567 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 12568 else 12569 echo "$as_me:$LINENO: checking for dlopen" >&5 12570 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 12571 if test "${ac_cv_func_dlopen+set}" = set; then 12572 echo $ECHO_N "(cached) $ECHO_C" >&6 12573 else 12574 cat >conftest.$ac_ext <<_ACEOF 12575 /* confdefs.h. */ 12576 _ACEOF 12577 cat confdefs.h >>conftest.$ac_ext 12578 cat >>conftest.$ac_ext <<_ACEOF 12579 /* end confdefs.h. */ 12580 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 12581 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 12582 #define dlopen innocuous_dlopen 12583 12584 /* System header to define __stub macros and hopefully few prototypes, 12585 which can conflict with char dlopen (); below. 12586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 12587 <limits.h> exists even on freestanding compilers. */ 12588 12589 #ifdef __STDC__ 12590 # include <limits.h> 12591 #else 12592 # include <assert.h> 12593 #endif 12594 12595 #undef dlopen 12596 12597 /* Override any gcc2 internal prototype to avoid an error. */ 12598 #ifdef __cplusplus 12599 extern "C" 12600 { 12601 #endif 12602 /* We use char because int might match the return type of a gcc2 12603 builtin and then its argument prototype would still apply. */ 12604 char dlopen (); 12605 /* The GNU C library defines this for functions which it implements 12606 to always fail with ENOSYS. Some functions are actually named 12607 something starting with __ and the normal name is an alias. */ 12608 #if defined (__stub_dlopen) || defined (__stub___dlopen) 12609 choke me 12610 #else 12611 char (*f) () = dlopen; 12612 #endif 12613 #ifdef __cplusplus 12614 } 12615 #endif 12616 12617 int 12618 main () 12619 { 12620 return f != dlopen; 12621 ; 12622 return 0; 12623 } 12624 _ACEOF 12625 rm -f conftest.$ac_objext conftest$ac_exeext 12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12627 (eval $ac_link) 2>conftest.er1 12628 ac_status=$? 12629 grep -v '^ *+' conftest.er1 >conftest.err 12630 rm -f conftest.er1 12631 cat conftest.err >&5 12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12633 (exit $ac_status); } && 12634 { ac_try='test -z "$ac_cxx_werror_flag" 12635 || test ! -s conftest.err' 12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12637 (eval $ac_try) 2>&5 12638 ac_status=$? 12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12640 (exit $ac_status); }; } && 12641 { ac_try='test -s conftest$ac_exeext' 12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12643 (eval $ac_try) 2>&5 12644 ac_status=$? 12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12646 (exit $ac_status); }; }; then 12647 ac_cv_func_dlopen=yes 12648 else 12649 echo "$as_me: failed program was:" >&5 12650 sed 's/^/| /' conftest.$ac_ext >&5 12651 12652 ac_cv_func_dlopen=no 12653 fi 12654 rm -f conftest.err conftest.$ac_objext \ 12655 conftest$ac_exeext conftest.$ac_ext 12656 fi 12657 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 12658 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 12659 if test $ac_cv_func_dlopen = yes; then 12660 lt_cv_dlopen="dlopen" 12661 else 12662 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 12663 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 12664 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 12665 echo $ECHO_N "(cached) $ECHO_C" >&6 12666 else 12667 ac_check_lib_save_LIBS=$LIBS 12668 LIBS="-ldl $LIBS" 12669 cat >conftest.$ac_ext <<_ACEOF 12670 /* confdefs.h. */ 12671 _ACEOF 12672 cat confdefs.h >>conftest.$ac_ext 12673 cat >>conftest.$ac_ext <<_ACEOF 12674 /* end confdefs.h. */ 12675 12676 /* Override any gcc2 internal prototype to avoid an error. */ 12677 #ifdef __cplusplus 12678 extern "C" 12679 #endif 12680 /* We use char because int might match the return type of a gcc2 12681 builtin and then its argument prototype would still apply. */ 12682 char dlopen (); 12683 int 12684 main () 12685 { 12686 dlopen (); 12687 ; 12688 return 0; 12689 } 12690 _ACEOF 12691 rm -f conftest.$ac_objext conftest$ac_exeext 12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12693 (eval $ac_link) 2>conftest.er1 12694 ac_status=$? 12695 grep -v '^ *+' conftest.er1 >conftest.err 12696 rm -f conftest.er1 12697 cat conftest.err >&5 12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12699 (exit $ac_status); } && 12700 { ac_try='test -z "$ac_cxx_werror_flag" 12701 || test ! -s conftest.err' 12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12703 (eval $ac_try) 2>&5 12704 ac_status=$? 12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12706 (exit $ac_status); }; } && 12707 { ac_try='test -s conftest$ac_exeext' 12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12709 (eval $ac_try) 2>&5 12710 ac_status=$? 12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12712 (exit $ac_status); }; }; then 12713 ac_cv_lib_dl_dlopen=yes 12714 else 12715 echo "$as_me: failed program was:" >&5 12716 sed 's/^/| /' conftest.$ac_ext >&5 12717 12718 ac_cv_lib_dl_dlopen=no 12719 fi 12720 rm -f conftest.err conftest.$ac_objext \ 12721 conftest$ac_exeext conftest.$ac_ext 12722 LIBS=$ac_check_lib_save_LIBS 12723 fi 12724 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 12725 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 12726 if test $ac_cv_lib_dl_dlopen = yes; then 12727 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 12728 else 12729 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 12730 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 12731 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 12732 echo $ECHO_N "(cached) $ECHO_C" >&6 12733 else 12734 ac_check_lib_save_LIBS=$LIBS 12735 LIBS="-lsvld $LIBS" 12736 cat >conftest.$ac_ext <<_ACEOF 12737 /* confdefs.h. */ 12738 _ACEOF 12739 cat confdefs.h >>conftest.$ac_ext 12740 cat >>conftest.$ac_ext <<_ACEOF 12741 /* end confdefs.h. */ 12742 12743 /* Override any gcc2 internal prototype to avoid an error. */ 12744 #ifdef __cplusplus 12745 extern "C" 12746 #endif 12747 /* We use char because int might match the return type of a gcc2 12748 builtin and then its argument prototype would still apply. */ 12749 char dlopen (); 12750 int 12751 main () 12752 { 12753 dlopen (); 12754 ; 12755 return 0; 12756 } 12757 _ACEOF 12758 rm -f conftest.$ac_objext conftest$ac_exeext 12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12760 (eval $ac_link) 2>conftest.er1 12761 ac_status=$? 12762 grep -v '^ *+' conftest.er1 >conftest.err 12763 rm -f conftest.er1 12764 cat conftest.err >&5 12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12766 (exit $ac_status); } && 12767 { ac_try='test -z "$ac_cxx_werror_flag" 12768 || test ! -s conftest.err' 12769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12770 (eval $ac_try) 2>&5 12771 ac_status=$? 12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12773 (exit $ac_status); }; } && 12774 { ac_try='test -s conftest$ac_exeext' 12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12776 (eval $ac_try) 2>&5 12777 ac_status=$? 12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12779 (exit $ac_status); }; }; then 12780 ac_cv_lib_svld_dlopen=yes 12781 else 12782 echo "$as_me: failed program was:" >&5 12783 sed 's/^/| /' conftest.$ac_ext >&5 12784 12785 ac_cv_lib_svld_dlopen=no 12786 fi 12787 rm -f conftest.err conftest.$ac_objext \ 12788 conftest$ac_exeext conftest.$ac_ext 12789 LIBS=$ac_check_lib_save_LIBS 12790 fi 12791 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 12792 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 12793 if test $ac_cv_lib_svld_dlopen = yes; then 12794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 12795 else 12796 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 12797 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 12798 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 12799 echo $ECHO_N "(cached) $ECHO_C" >&6 12800 else 12801 ac_check_lib_save_LIBS=$LIBS 12802 LIBS="-ldld $LIBS" 12803 cat >conftest.$ac_ext <<_ACEOF 12804 /* confdefs.h. */ 12805 _ACEOF 12806 cat confdefs.h >>conftest.$ac_ext 12807 cat >>conftest.$ac_ext <<_ACEOF 12808 /* end confdefs.h. */ 12809 12810 /* Override any gcc2 internal prototype to avoid an error. */ 12811 #ifdef __cplusplus 12812 extern "C" 12813 #endif 12814 /* We use char because int might match the return type of a gcc2 12815 builtin and then its argument prototype would still apply. */ 12816 char dld_link (); 12817 int 12818 main () 12819 { 12820 dld_link (); 12821 ; 12822 return 0; 12823 } 12824 _ACEOF 12825 rm -f conftest.$ac_objext conftest$ac_exeext 12826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12827 (eval $ac_link) 2>conftest.er1 12828 ac_status=$? 12829 grep -v '^ *+' conftest.er1 >conftest.err 12830 rm -f conftest.er1 12831 cat conftest.err >&5 12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12833 (exit $ac_status); } && 12834 { ac_try='test -z "$ac_cxx_werror_flag" 12835 || test ! -s conftest.err' 12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12837 (eval $ac_try) 2>&5 12838 ac_status=$? 12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12840 (exit $ac_status); }; } && 12841 { ac_try='test -s conftest$ac_exeext' 12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12843 (eval $ac_try) 2>&5 12844 ac_status=$? 12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12846 (exit $ac_status); }; }; then 12847 ac_cv_lib_dld_dld_link=yes 12848 else 12849 echo "$as_me: failed program was:" >&5 12850 sed 's/^/| /' conftest.$ac_ext >&5 12851 12852 ac_cv_lib_dld_dld_link=no 12853 fi 12854 rm -f conftest.err conftest.$ac_objext \ 12855 conftest$ac_exeext conftest.$ac_ext 12856 LIBS=$ac_check_lib_save_LIBS 12857 fi 12858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 12859 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 12860 if test $ac_cv_lib_dld_dld_link = yes; then 12861 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 12862 fi 12863 12864 12865 fi 12866 12867 12868 fi 12869 12870 12871 fi 12872 12873 12874 fi 12875 12876 12877 fi 12878 12879 ;; 12880 esac 12881 12882 if test "x$lt_cv_dlopen" != xno; then 12883 enable_dlopen=yes 12884 else 12885 enable_dlopen=no 12886 fi 12887 12888 case $lt_cv_dlopen in 12889 dlopen) 12890 save_CPPFLAGS="$CPPFLAGS" 12891 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12892 12893 save_LDFLAGS="$LDFLAGS" 12894 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12895 12896 save_LIBS="$LIBS" 12897 LIBS="$lt_cv_dlopen_libs $LIBS" 12898 12899 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 12900 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 12901 if test "${lt_cv_dlopen_self+set}" = set; then 12902 echo $ECHO_N "(cached) $ECHO_C" >&6 12903 else 12904 if test "$cross_compiling" = yes; then : 12905 lt_cv_dlopen_self=cross 12906 else 12907 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12908 lt_status=$lt_dlunknown 12909 cat > conftest.$ac_ext <<EOF 12910 #line 12910 "configure" 12911 #include "confdefs.h" 12912 12913 #if HAVE_DLFCN_H 12914 #include <dlfcn.h> 12915 #endif 12916 12917 #include <stdio.h> 12918 12919 #ifdef RTLD_GLOBAL 12920 # define LT_DLGLOBAL RTLD_GLOBAL 12921 #else 12922 # ifdef DL_GLOBAL 12923 # define LT_DLGLOBAL DL_GLOBAL 12924 # else 12925 # define LT_DLGLOBAL 0 12926 # endif 12927 #endif 12928 12929 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12930 find out it does not work in some platform. */ 12931 #ifndef LT_DLLAZY_OR_NOW 12932 # ifdef RTLD_LAZY 12933 # define LT_DLLAZY_OR_NOW RTLD_LAZY 12934 # else 12935 # ifdef DL_LAZY 12936 # define LT_DLLAZY_OR_NOW DL_LAZY 12937 # else 12938 # ifdef RTLD_NOW 12939 # define LT_DLLAZY_OR_NOW RTLD_NOW 12940 # else 12941 # ifdef DL_NOW 12942 # define LT_DLLAZY_OR_NOW DL_NOW 12943 # else 12944 # define LT_DLLAZY_OR_NOW 0 12945 # endif 12946 # endif 12947 # endif 12948 # endif 12949 #endif 12950 12951 #ifdef __cplusplus 12952 extern "C" void exit (int); 12953 #endif 12954 12955 void fnord() { int i=42;} 12956 int main () 12957 { 12958 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12959 int status = $lt_dlunknown; 12960 12961 if (self) 12962 { 12963 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12964 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12965 /* dlclose (self); */ 12966 } 12967 12968 exit (status); 12969 } 12970 EOF 12971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12972 (eval $ac_link) 2>&5 12973 ac_status=$? 12974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12975 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12976 (./conftest; exit; ) >&5 2>/dev/null 12977 lt_status=$? 12978 case x$lt_status in 12979 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12980 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12981 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12982 esac 12983 else : 12984 # compilation failed 12985 lt_cv_dlopen_self=no 12986 fi 12987 fi 12988 rm -fr conftest* 12989 12990 12991 fi 12992 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12993 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12994 12995 if test "x$lt_cv_dlopen_self" = xyes; then 12996 LDFLAGS="$LDFLAGS $link_static_flag" 12997 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12998 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12999 if test "${lt_cv_dlopen_self_static+set}" = set; then 13000 echo $ECHO_N "(cached) $ECHO_C" >&6 13001 else 13002 if test "$cross_compiling" = yes; then : 13003 lt_cv_dlopen_self_static=cross 13004 else 13005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13006 lt_status=$lt_dlunknown 13007 cat > conftest.$ac_ext <<EOF 13008 #line 13008 "configure" 13009 #include "confdefs.h" 13010 13011 #if HAVE_DLFCN_H 13012 #include <dlfcn.h> 13013 #endif 13014 13015 #include <stdio.h> 13016 13017 #ifdef RTLD_GLOBAL 13018 # define LT_DLGLOBAL RTLD_GLOBAL 13019 #else 13020 # ifdef DL_GLOBAL 13021 # define LT_DLGLOBAL DL_GLOBAL 13022 # else 13023 # define LT_DLGLOBAL 0 13024 # endif 13025 #endif 13026 13027 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13028 find out it does not work in some platform. */ 13029 #ifndef LT_DLLAZY_OR_NOW 13030 # ifdef RTLD_LAZY 13031 # define LT_DLLAZY_OR_NOW RTLD_LAZY 13032 # else 13033 # ifdef DL_LAZY 13034 # define LT_DLLAZY_OR_NOW DL_LAZY 13035 # else 13036 # ifdef RTLD_NOW 13037 # define LT_DLLAZY_OR_NOW RTLD_NOW 13038 # else 13039 # ifdef DL_NOW 13040 # define LT_DLLAZY_OR_NOW DL_NOW 13041 # else 13042 # define LT_DLLAZY_OR_NOW 0 13043 # endif 13044 # endif 13045 # endif 13046 # endif 13047 #endif 13048 13049 #ifdef __cplusplus 13050 extern "C" void exit (int); 13051 #endif 13052 13053 void fnord() { int i=42;} 13054 int main () 13055 { 13056 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13057 int status = $lt_dlunknown; 13058 13059 if (self) 13060 { 13061 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13062 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13063 /* dlclose (self); */ 13064 } 13065 13066 exit (status); 13067 } 13068 EOF 13069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13070 (eval $ac_link) 2>&5 13071 ac_status=$? 13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13073 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 13074 (./conftest; exit; ) >&5 2>/dev/null 13075 lt_status=$? 13076 case x$lt_status in 13077 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13078 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13079 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 13080 esac 13081 else : 13082 # compilation failed 13083 lt_cv_dlopen_self_static=no 13084 fi 13085 fi 13086 rm -fr conftest* 13087 13088 13089 fi 13090 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 13091 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 13092 fi 13093 13094 CPPFLAGS="$save_CPPFLAGS" 13095 LDFLAGS="$save_LDFLAGS" 13096 LIBS="$save_LIBS" 13097 ;; 13098 esac 13099 13100 case $lt_cv_dlopen_self in 13101 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13102 *) enable_dlopen_self=unknown ;; 13103 esac 13104 13105 case $lt_cv_dlopen_self_static in 13106 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13107 *) enable_dlopen_self_static=unknown ;; 13108 esac 13109 fi 13110 13111 13112 # The else clause should only fire when bootstrapping the 13113 # libtool distribution, otherwise you forgot to ship ltmain.sh 13114 # with your package, and you will get complaints that there are 13115 # no rules to generate ltmain.sh. 13116 if test -f "$ltmain"; then 13117 # See if we are running on zsh, and set the options which allow our commands through 13118 # without removal of \ escapes. 13119 if test -n "${ZSH_VERSION+set}" ; then 13120 setopt NO_GLOB_SUBST 13121 fi 13122 # Now quote all the things that may contain metacharacters while being 13123 # careful not to overquote the AC_SUBSTed values. We take copies of the 13124 # variables and quote the copies for generation of the libtool script. 13125 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 13126 SED SHELL STRIP \ 13127 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 13128 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 13129 deplibs_check_method reload_flag reload_cmds need_locks \ 13130 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 13131 lt_cv_sys_global_symbol_to_c_name_address \ 13132 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 13133 old_postinstall_cmds old_postuninstall_cmds \ 13134 compiler_CXX \ 13135 CC_CXX \ 13136 LD_CXX \ 13137 lt_prog_compiler_wl_CXX \ 13138 lt_prog_compiler_pic_CXX \ 13139 lt_prog_compiler_static_CXX \ 13140 lt_prog_compiler_no_builtin_flag_CXX \ 13141 export_dynamic_flag_spec_CXX \ 13142 thread_safe_flag_spec_CXX \ 13143 whole_archive_flag_spec_CXX \ 13144 enable_shared_with_static_runtimes_CXX \ 13145 old_archive_cmds_CXX \ 13146 old_archive_from_new_cmds_CXX \ 13147 predep_objects_CXX \ 13148 postdep_objects_CXX \ 13149 predeps_CXX \ 13150 postdeps_CXX \ 13151 compiler_lib_search_path_CXX \ 13152 archive_cmds_CXX \ 13153 archive_expsym_cmds_CXX \ 13154 postinstall_cmds_CXX \ 13155 postuninstall_cmds_CXX \ 13156 old_archive_from_expsyms_cmds_CXX \ 13157 allow_undefined_flag_CXX \ 13158 no_undefined_flag_CXX \ 13159 export_symbols_cmds_CXX \ 13160 hardcode_libdir_flag_spec_CXX \ 13161 hardcode_libdir_flag_spec_ld_CXX \ 13162 hardcode_libdir_separator_CXX \ 13163 hardcode_automatic_CXX \ 13164 module_cmds_CXX \ 13165 module_expsym_cmds_CXX \ 13166 lt_cv_prog_compiler_c_o_CXX \ 13167 exclude_expsyms_CXX \ 13168 include_expsyms_CXX; do 13169 13170 case $var in 13171 old_archive_cmds_CXX | \ 13172 old_archive_from_new_cmds_CXX | \ 13173 archive_cmds_CXX | \ 13174 archive_expsym_cmds_CXX | \ 13175 module_cmds_CXX | \ 13176 module_expsym_cmds_CXX | \ 13177 old_archive_from_expsyms_cmds_CXX | \ 13178 export_symbols_cmds_CXX | \ 13179 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 13180 postinstall_cmds | postuninstall_cmds | \ 13181 old_postinstall_cmds | old_postuninstall_cmds | \ 13182 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 13183 # Double-quote double-evaled strings. 13184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 13185 ;; 13186 *) 13187 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 13188 ;; 13189 esac 13190 done 13191 13192 case $lt_echo in 13193 *'\$0 --fallback-echo"') 13194 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 13195 ;; 13196 esac 13197 13198 cfgfile="$ofile" 13199 13200 cat <<__EOF__ >> "$cfgfile" 13201 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 13202 13203 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13204 13205 # Shell to use when invoking shell scripts. 13206 SHELL=$lt_SHELL 13207 13208 # Whether or not to build shared libraries. 13209 build_libtool_libs=$enable_shared 13210 13211 # Whether or not to build static libraries. 13212 build_old_libs=$enable_static 13213 13214 # Whether or not to add -lc for building shared libraries. 13215 build_libtool_need_lc=$archive_cmds_need_lc_CXX 13216 13217 # Whether or not to disallow shared libs when runtime libs are static 13218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 13219 13220 # Whether or not to optimize for fast installation. 13221 fast_install=$enable_fast_install 13222 13223 # The host system. 13224 host_alias=$host_alias 13225 host=$host 13226 host_os=$host_os 13227 13228 # The build system. 13229 build_alias=$build_alias 13230 build=$build 13231 build_os=$build_os 13232 13233 # An echo program that does not interpret backslashes. 13234 echo=$lt_echo 13235 13236 # The archiver. 13237 AR=$lt_AR 13238 AR_FLAGS=$lt_AR_FLAGS 13239 13240 # A C compiler. 13241 LTCC=$lt_LTCC 13242 13243 # A language-specific compiler. 13244 CC=$lt_compiler_CXX 13245 13246 # Is the compiler the GNU C compiler? 13247 with_gcc=$GCC_CXX 13248 13249 # An ERE matcher. 13250 EGREP=$lt_EGREP 13251 13252 # The linker used to build libraries. 13253 LD=$lt_LD_CXX 13254 13255 # Whether we need hard or soft links. 13256 LN_S=$lt_LN_S 13257 13258 # A BSD-compatible nm program. 13259 NM=$lt_NM 13260 13261 # A symbol stripping program 13262 STRIP=$lt_STRIP 13263 13264 # Used to examine libraries when file_magic_cmd begins "file" 13265 MAGIC_CMD=$MAGIC_CMD 13266 13267 # Used on cygwin: DLL creation program. 13268 DLLTOOL="$DLLTOOL" 13269 13270 # Used on cygwin: object dumper. 13271 OBJDUMP="$OBJDUMP" 13272 13273 # Used on cygwin: assembler. 13274 AS="$AS" 13275 13276 # The name of the directory that contains temporary libtool files. 13277 objdir=$objdir 13278 13279 # How to create reloadable object files. 13280 reload_flag=$lt_reload_flag 13281 reload_cmds=$lt_reload_cmds 13282 13283 # How to pass a linker flag through the compiler. 13284 wl=$lt_lt_prog_compiler_wl_CXX 13285 13286 # Object file suffix (normally "o"). 13287 objext="$ac_objext" 13288 13289 # Old archive suffix (normally "a"). 13290 libext="$libext" 13291 13292 # Shared library suffix (normally ".so"). 13293 shrext_cmds='$shrext_cmds' 13294 13295 # Executable file suffix (normally ""). 13296 exeext="$exeext" 13297 13298 # Additional compiler flags for building library objects. 13299 pic_flag=$lt_lt_prog_compiler_pic_CXX 13300 pic_mode=$pic_mode 13301 13302 # What is the maximum length of a command? 13303 max_cmd_len=$lt_cv_sys_max_cmd_len 13304 13305 # Does compiler simultaneously support -c and -o options? 13306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 13307 13308 # Must we lock files when doing compilation? 13309 need_locks=$lt_need_locks 13310 13311 # Do we need the lib prefix for modules? 13312 need_lib_prefix=$need_lib_prefix 13313 13314 # Do we need a version for libraries? 13315 need_version=$need_version 13316 13317 # Whether dlopen is supported. 13318 dlopen_support=$enable_dlopen 13319 13320 # Whether dlopen of programs is supported. 13321 dlopen_self=$enable_dlopen_self 13322 13323 # Whether dlopen of statically linked programs is supported. 13324 dlopen_self_static=$enable_dlopen_self_static 13325 13326 # Compiler flag to prevent dynamic linking. 13327 link_static_flag=$lt_lt_prog_compiler_static_CXX 13328 13329 # Compiler flag to turn off builtin functions. 13330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 13331 13332 # Compiler flag to allow reflexive dlopens. 13333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 13334 13335 # Compiler flag to generate shared objects directly from archives. 13336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 13337 13338 # Compiler flag to generate thread-safe objects. 13339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 13340 13341 # Library versioning type. 13342 version_type=$version_type 13343 13344 # Format of library name prefix. 13345 libname_spec=$lt_libname_spec 13346 13347 # List of archive names. First name is the real one, the rest are links. 13348 # The last name is the one that the linker finds with -lNAME. 13349 library_names_spec=$lt_library_names_spec 13350 13351 # The coded name of the library, if different from the real name. 13352 soname_spec=$lt_soname_spec 13353 13354 # Commands used to build and install an old-style archive. 13355 RANLIB=$lt_RANLIB 13356 old_archive_cmds=$lt_old_archive_cmds_CXX 13357 old_postinstall_cmds=$lt_old_postinstall_cmds 13358 old_postuninstall_cmds=$lt_old_postuninstall_cmds 13359 13360 # Create an old-style archive from a shared archive. 13361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 13362 13363 # Create a temporary old-style archive to link instead of a shared archive. 13364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 13365 13366 # Commands used to build and install a shared archive. 13367 archive_cmds=$lt_archive_cmds_CXX 13368 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 13369 postinstall_cmds=$lt_postinstall_cmds 13370 postuninstall_cmds=$lt_postuninstall_cmds 13371 13372 # Commands used to build a loadable module (assumed same as above if empty) 13373 module_cmds=$lt_module_cmds_CXX 13374 module_expsym_cmds=$lt_module_expsym_cmds_CXX 13375 13376 # Commands to strip libraries. 13377 old_striplib=$lt_old_striplib 13378 striplib=$lt_striplib 13379 13380 # Dependencies to place before the objects being linked to create a 13381 # shared library. 13382 predep_objects=$lt_predep_objects_CXX 13383 13384 # Dependencies to place after the objects being linked to create a 13385 # shared library. 13386 postdep_objects=$lt_postdep_objects_CXX 13387 13388 # Dependencies to place before the objects being linked to create a 13389 # shared library. 13390 predeps=$lt_predeps_CXX 13391 13392 # Dependencies to place after the objects being linked to create a 13393 # shared library. 13394 postdeps=$lt_postdeps_CXX 13395 13396 # The library search path used internally by the compiler when linking 13397 # a shared library. 13398 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 13399 13400 # Method to check whether dependent libraries are shared objects. 13401 deplibs_check_method=$lt_deplibs_check_method 13402 13403 # Command to use when deplibs_check_method == file_magic. 13404 file_magic_cmd=$lt_file_magic_cmd 13405 13406 # Flag that allows shared libraries with undefined symbols to be built. 13407 allow_undefined_flag=$lt_allow_undefined_flag_CXX 13408 13409 # Flag that forces no undefined symbols. 13410 no_undefined_flag=$lt_no_undefined_flag_CXX 13411 13412 # Commands used to finish a libtool library installation in a directory. 13413 finish_cmds=$lt_finish_cmds 13414 13415 # Same as above, but a single script fragment to be evaled but not shown. 13416 finish_eval=$lt_finish_eval 13417 13418 # Take the output of nm and produce a listing of raw symbols and C names. 13419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13420 13421 # Transform the output of nm in a proper C declaration 13422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13423 13424 # Transform the output of nm in a C name address pair 13425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13426 13427 # This is the shared library runtime path variable. 13428 runpath_var=$runpath_var 13429 13430 # This is the shared library path variable. 13431 shlibpath_var=$shlibpath_var 13432 13433 # Is shlibpath searched before the hard-coded library search path? 13434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13435 13436 # How to hardcode a shared library path into an executable. 13437 hardcode_action=$hardcode_action_CXX 13438 13439 # Whether we should hardcode library paths into libraries. 13440 hardcode_into_libs=$hardcode_into_libs 13441 13442 # Flag to hardcode \$libdir into a binary during linking. 13443 # This must work even if \$libdir does not exist. 13444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 13445 13446 # If ld is used when linking, flag to hardcode \$libdir into 13447 # a binary during linking. This must work even if \$libdir does 13448 # not exist. 13449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 13450 13451 # Whether we need a single -rpath flag with a separated argument. 13452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 13453 13454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 13455 # resulting binary. 13456 hardcode_direct=$hardcode_direct_CXX 13457 13458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 13459 # resulting binary. 13460 hardcode_minus_L=$hardcode_minus_L_CXX 13461 13462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 13463 # the resulting binary. 13464 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 13465 13466 # Set to yes if building a shared library automatically hardcodes DIR into the library 13467 # and all subsequent libraries and executables linked against it. 13468 hardcode_automatic=$hardcode_automatic_CXX 13469 13470 # Variables whose values should be saved in libtool wrapper scripts and 13471 # restored at relink time. 13472 variables_saved_for_relink="$variables_saved_for_relink" 13473 13474 # Whether libtool must link a program against all its dependency libraries. 13475 link_all_deplibs=$link_all_deplibs_CXX 13476 13477 # Compile-time system search path for libraries 13478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13479 13480 # Run-time system search path for libraries 13481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13482 13483 # Fix the shell variable \$srcfile for the compiler. 13484 fix_srcfile_path="$fix_srcfile_path_CXX" 13485 13486 # Set to yes if exported symbols are required. 13487 always_export_symbols=$always_export_symbols_CXX 13488 13489 # The commands to list exported symbols. 13490 export_symbols_cmds=$lt_export_symbols_cmds_CXX 13491 13492 # The commands to extract the exported symbol list from a shared archive. 13493 extract_expsyms_cmds=$lt_extract_expsyms_cmds 13494 13495 # Symbols that should not be listed in the preloaded symbols. 13496 exclude_expsyms=$lt_exclude_expsyms_CXX 13497 13498 # Symbols that must always be exported. 13499 include_expsyms=$lt_include_expsyms_CXX 13500 13501 # ### END LIBTOOL TAG CONFIG: $tagname 13502 13503 __EOF__ 13504 13505 13506 else 13507 # If there is no Makefile yet, we rely on a make rule to execute 13508 # `config.status --recheck' to rerun these tests and create the 13509 # libtool script then. 13510 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 13511 if test -f "$ltmain_in"; then 13512 test -f Makefile && make "$ltmain" 13513 fi 13514 fi 13515 13516 13517 ac_ext=c 13518 ac_cpp='$CPP $CPPFLAGS' 13519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13521 ac_compiler_gnu=$ac_cv_c_compiler_gnu 13522 13523 CC=$lt_save_CC 13524 LDCXX=$LD 13525 LD=$lt_save_LD 13526 GCC=$lt_save_GCC 13527 with_gnu_ldcxx=$with_gnu_ld 13528 with_gnu_ld=$lt_save_with_gnu_ld 13529 lt_cv_path_LDCXX=$lt_cv_path_LD 13530 lt_cv_path_LD=$lt_save_path_LD 13531 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 13532 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 13533 13534 else 13535 tagname="" 13536 fi 13537 ;; 13538 13539 F77) 13540 if test -n "$F77" && test "X$F77" != "Xno"; then 13541 13542 ac_ext=f 13543 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 13544 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13545 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 13546 13547 13548 archive_cmds_need_lc_F77=no 13549 allow_undefined_flag_F77= 13550 always_export_symbols_F77=no 13551 archive_expsym_cmds_F77= 13552 export_dynamic_flag_spec_F77= 13553 hardcode_direct_F77=no 13554 hardcode_libdir_flag_spec_F77= 13555 hardcode_libdir_flag_spec_ld_F77= 13556 hardcode_libdir_separator_F77= 13557 hardcode_minus_L_F77=no 13558 hardcode_automatic_F77=no 13559 module_cmds_F77= 13560 module_expsym_cmds_F77= 13561 link_all_deplibs_F77=unknown 13562 old_archive_cmds_F77=$old_archive_cmds 13563 no_undefined_flag_F77= 13564 whole_archive_flag_spec_F77= 13565 enable_shared_with_static_runtimes_F77=no 13566 13567 # Source file extension for f77 test sources. 13568 ac_ext=f 13569 13570 # Object file extension for compiled f77 test sources. 13571 objext=o 13572 objext_F77=$objext 13573 13574 # Code to be used in simple compile tests 13575 lt_simple_compile_test_code=" subroutine t\n return\n end\n" 13576 13577 # Code to be used in simple link tests 13578 lt_simple_link_test_code=" program t\n end\n" 13579 13580 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13581 13582 # If no C compiler was specified, use CC. 13583 LTCC=${LTCC-"$CC"} 13584 13585 # Allow CC to be a program name with arguments. 13586 compiler=$CC 13587 13588 13589 # save warnings/boilerplate of simple test code 13590 ac_outfile=conftest.$ac_objext 13591 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 13592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13593 _lt_compiler_boilerplate=`cat conftest.err` 13594 $rm conftest* 13595 13596 ac_outfile=conftest.$ac_objext 13597 printf "$lt_simple_link_test_code" >conftest.$ac_ext 13598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 13599 _lt_linker_boilerplate=`cat conftest.err` 13600 $rm conftest* 13601 13602 13603 # Allow CC to be a program name with arguments. 13604 lt_save_CC="$CC" 13605 CC=${F77-"f77"} 13606 compiler=$CC 13607 compiler_F77=$CC 13608 for cc_temp in $compiler""; do 13609 case $cc_temp in 13610 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13611 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13612 \-*) ;; 13613 *) break;; 13614 esac 13615 done 13616 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 13617 13618 13619 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 13620 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 13621 echo "$as_me:$LINENO: result: $can_build_shared" >&5 13622 echo "${ECHO_T}$can_build_shared" >&6 13623 13624 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 13625 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 13626 test "$can_build_shared" = "no" && enable_shared=no 13627 13628 # On AIX, shared libraries and static libraries use the same namespace, and 13629 # are all built from PIC. 13630 case $host_os in 13631 aix3*) 13632 test "$enable_shared" = yes && enable_static=no 13633 if test -n "$RANLIB"; then 13634 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13635 postinstall_cmds='$RANLIB $lib' 13636 fi 13637 ;; 13638 aix4* | aix5*) 13639 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13640 test "$enable_shared" = yes && enable_static=no 13641 fi 13642 ;; 13643 esac 13644 echo "$as_me:$LINENO: result: $enable_shared" >&5 13645 echo "${ECHO_T}$enable_shared" >&6 13646 13647 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 13648 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 13649 # Make sure either enable_shared or enable_static is yes. 13650 test "$enable_shared" = yes || enable_static=yes 13651 echo "$as_me:$LINENO: result: $enable_static" >&5 13652 echo "${ECHO_T}$enable_static" >&6 13653 13654 test "$ld_shlibs_F77" = no && can_build_shared=no 13655 13656 GCC_F77="$G77" 13657 LD_F77="$LD" 13658 13659 lt_prog_compiler_wl_F77= 13660 lt_prog_compiler_pic_F77= 13661 lt_prog_compiler_static_F77= 13662 13663 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 13664 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 13665 13666 if test "$GCC" = yes; then 13667 lt_prog_compiler_wl_F77='-Wl,' 13668 lt_prog_compiler_static_F77='-static' 13669 13670 case $host_os in 13671 aix*) 13672 # All AIX code is PIC. 13673 if test "$host_cpu" = ia64; then 13674 # AIX 5 now supports IA64 processor 13675 lt_prog_compiler_static_F77='-Bstatic' 13676 fi 13677 ;; 13678 13679 amigaos*) 13680 # FIXME: we need at least 68020 code to build shared libraries, but 13681 # adding the `-m68020' flag to GCC prevents building anything better, 13682 # like `-m68040'. 13683 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 13684 ;; 13685 13686 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 13687 # PIC is the default for these OSes. 13688 ;; 13689 13690 mingw* | pw32* | os2*) 13691 # This hack is so that the source file can tell whether it is being 13692 # built for inclusion in a dll (and should export symbols for example). 13693 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13694 ;; 13695 13696 darwin* | rhapsody*) 13697 # PIC is the default on this platform 13698 # Common symbols not allowed in MH_DYLIB files 13699 lt_prog_compiler_pic_F77='-fno-common' 13700 ;; 13701 13702 msdosdjgpp*) 13703 # Just because we use GCC doesn't mean we suddenly get shared libraries 13704 # on systems that don't support them. 13705 lt_prog_compiler_can_build_shared_F77=no 13706 enable_shared=no 13707 ;; 13708 13709 sysv4*MP*) 13710 if test -d /usr/nec; then 13711 lt_prog_compiler_pic_F77=-Kconform_pic 13712 fi 13713 ;; 13714 13715 hpux*) 13716 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13717 # not for PA HP-UX. 13718 case $host_cpu in 13719 hppa*64*|ia64*) 13720 # +Z the default 13721 ;; 13722 *) 13723 lt_prog_compiler_pic_F77='-fPIC' 13724 ;; 13725 esac 13726 ;; 13727 13728 *) 13729 lt_prog_compiler_pic_F77='-fPIC' 13730 ;; 13731 esac 13732 else 13733 # PORTME Check for flag to pass linker flags through the system compiler. 13734 case $host_os in 13735 aix*) 13736 lt_prog_compiler_wl_F77='-Wl,' 13737 if test "$host_cpu" = ia64; then 13738 # AIX 5 now supports IA64 processor 13739 lt_prog_compiler_static_F77='-Bstatic' 13740 else 13741 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 13742 fi 13743 ;; 13744 darwin*) 13745 # PIC is the default on this platform 13746 # Common symbols not allowed in MH_DYLIB files 13747 case $cc_basename in 13748 xlc*) 13749 lt_prog_compiler_pic_F77='-qnocommon' 13750 lt_prog_compiler_wl_F77='-Wl,' 13751 ;; 13752 esac 13753 ;; 13754 13755 mingw* | pw32* | os2*) 13756 # This hack is so that the source file can tell whether it is being 13757 # built for inclusion in a dll (and should export symbols for example). 13758 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 13759 ;; 13760 13761 hpux9* | hpux10* | hpux11*) 13762 lt_prog_compiler_wl_F77='-Wl,' 13763 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 13764 # not for PA HP-UX. 13765 case $host_cpu in 13766 hppa*64*|ia64*) 13767 # +Z the default 13768 ;; 13769 *) 13770 lt_prog_compiler_pic_F77='+Z' 13771 ;; 13772 esac 13773 # Is there a better lt_prog_compiler_static that works with the bundled CC? 13774 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 13775 ;; 13776 13777 irix5* | irix6* | nonstopux*) 13778 lt_prog_compiler_wl_F77='-Wl,' 13779 # PIC (with -KPIC) is the default. 13780 lt_prog_compiler_static_F77='-non_shared' 13781 ;; 13782 13783 newsos6) 13784 lt_prog_compiler_pic_F77='-KPIC' 13785 lt_prog_compiler_static_F77='-Bstatic' 13786 ;; 13787 13788 linux*) 13789 case $cc_basename in 13790 icc* | ecc*) 13791 lt_prog_compiler_wl_F77='-Wl,' 13792 lt_prog_compiler_pic_F77='-KPIC' 13793 lt_prog_compiler_static_F77='-static' 13794 ;; 13795 pgcc* | pgf77* | pgf90* | pgf95*) 13796 # Portland Group compilers (*not* the Pentium gcc compiler, 13797 # which looks to be a dead project) 13798 lt_prog_compiler_wl_F77='-Wl,' 13799 lt_prog_compiler_pic_F77='-fpic' 13800 lt_prog_compiler_static_F77='-Bstatic' 13801 ;; 13802 ccc*) 13803 lt_prog_compiler_wl_F77='-Wl,' 13804 # All Alpha code is PIC. 13805 lt_prog_compiler_static_F77='-non_shared' 13806 ;; 13807 esac 13808 ;; 13809 13810 osf3* | osf4* | osf5*) 13811 lt_prog_compiler_wl_F77='-Wl,' 13812 # All OSF/1 code is PIC. 13813 lt_prog_compiler_static_F77='-non_shared' 13814 ;; 13815 13816 sco3.2v5*) 13817 lt_prog_compiler_pic_F77='-Kpic' 13818 lt_prog_compiler_static_F77='-dn' 13819 ;; 13820 13821 solaris*) 13822 lt_prog_compiler_pic_F77='-KPIC' 13823 lt_prog_compiler_static_F77='-Bstatic' 13824 case $cc_basename in 13825 f77* | f90* | f95*) 13826 lt_prog_compiler_wl_F77='-Qoption ld ';; 13827 *) 13828 lt_prog_compiler_wl_F77='-Wl,';; 13829 esac 13830 ;; 13831 13832 sunos4*) 13833 lt_prog_compiler_wl_F77='-Qoption ld ' 13834 lt_prog_compiler_pic_F77='-PIC' 13835 lt_prog_compiler_static_F77='-Bstatic' 13836 ;; 13837 13838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 13839 lt_prog_compiler_wl_F77='-Wl,' 13840 lt_prog_compiler_pic_F77='-KPIC' 13841 lt_prog_compiler_static_F77='-Bstatic' 13842 ;; 13843 13844 sysv4*MP*) 13845 if test -d /usr/nec ;then 13846 lt_prog_compiler_pic_F77='-Kconform_pic' 13847 lt_prog_compiler_static_F77='-Bstatic' 13848 fi 13849 ;; 13850 13851 unicos*) 13852 lt_prog_compiler_wl_F77='-Wl,' 13853 lt_prog_compiler_can_build_shared_F77=no 13854 ;; 13855 13856 uts4*) 13857 lt_prog_compiler_pic_F77='-pic' 13858 lt_prog_compiler_static_F77='-Bstatic' 13859 ;; 13860 13861 *) 13862 lt_prog_compiler_can_build_shared_F77=no 13863 ;; 13864 esac 13865 fi 13866 13867 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 13868 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 13869 13870 # 13871 # Check to make sure the PIC flag actually works. 13872 # 13873 if test -n "$lt_prog_compiler_pic_F77"; then 13874 13875 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 13876 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 13877 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 13878 echo $ECHO_N "(cached) $ECHO_C" >&6 13879 else 13880 lt_prog_compiler_pic_works_F77=no 13881 ac_outfile=conftest.$ac_objext 13882 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13883 lt_compiler_flag="$lt_prog_compiler_pic_F77" 13884 # Insert the option either (1) after the last *FLAGS variable, or 13885 # (2) before a word containing "conftest.", or (3) at the end. 13886 # Note that $ac_compile itself does not contain backslashes and begins 13887 # with a dollar sign (not a hyphen), so the echo should work correctly. 13888 # The option is referenced via a variable to avoid confusing sed. 13889 lt_compile=`echo "$ac_compile" | $SED \ 13890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13892 -e 's:$: $lt_compiler_flag:'` 13893 (eval echo "\"\$as_me:13893: $lt_compile\"" >&5) 13894 (eval "$lt_compile" 2>conftest.err) 13895 ac_status=$? 13896 cat conftest.err >&5 13897 echo "$as_me:13897: \$? = $ac_status" >&5 13898 if (exit $ac_status) && test -s "$ac_outfile"; then 13899 # The compiler can only warn and ignore the option if not recognized 13900 # So say no if there are warnings other than the usual output. 13901 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 13902 $SED '/^$/d' conftest.err >conftest.er2 13903 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 13904 lt_prog_compiler_pic_works_F77=yes 13905 fi 13906 fi 13907 $rm conftest* 13908 13909 fi 13910 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 13911 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 13912 13913 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 13914 case $lt_prog_compiler_pic_F77 in 13915 "" | " "*) ;; 13916 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 13917 esac 13918 else 13919 lt_prog_compiler_pic_F77= 13920 lt_prog_compiler_can_build_shared_F77=no 13921 fi 13922 13923 fi 13924 case $host_os in 13925 # For platforms which do not support PIC, -DPIC is meaningless: 13926 *djgpp*) 13927 lt_prog_compiler_pic_F77= 13928 ;; 13929 *) 13930 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 13931 ;; 13932 esac 13933 13934 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 13935 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 13936 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 13937 echo $ECHO_N "(cached) $ECHO_C" >&6 13938 else 13939 lt_cv_prog_compiler_c_o_F77=no 13940 $rm -r conftest 2>/dev/null 13941 mkdir conftest 13942 cd conftest 13943 mkdir out 13944 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13945 13946 lt_compiler_flag="-o out/conftest2.$ac_objext" 13947 # Insert the option either (1) after the last *FLAGS variable, or 13948 # (2) before a word containing "conftest.", or (3) at the end. 13949 # Note that $ac_compile itself does not contain backslashes and begins 13950 # with a dollar sign (not a hyphen), so the echo should work correctly. 13951 lt_compile=`echo "$ac_compile" | $SED \ 13952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 13953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13954 -e 's:$: $lt_compiler_flag:'` 13955 (eval echo "\"\$as_me:13955: $lt_compile\"" >&5) 13956 (eval "$lt_compile" 2>out/conftest.err) 13957 ac_status=$? 13958 cat out/conftest.err >&5 13959 echo "$as_me:13959: \$? = $ac_status" >&5 13960 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13961 then 13962 # The compiler can only warn and ignore the option if not recognized 13963 # So say no if there are warnings 13964 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 13965 $SED '/^$/d' out/conftest.err >out/conftest.er2 13966 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 13967 lt_cv_prog_compiler_c_o_F77=yes 13968 fi 13969 fi 13970 chmod u+w . 2>&5 13971 $rm conftest* 13972 # SGI C++ compiler will create directory out/ii_files/ for 13973 # template instantiation 13974 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 13975 $rm out/* && rmdir out 13976 cd .. 13977 rmdir conftest 13978 $rm conftest* 13979 13980 fi 13981 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 13982 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 13983 13984 13985 hard_links="nottested" 13986 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 13987 # do not overwrite the value of need_locks provided by the user 13988 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 13989 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 13990 hard_links=yes 13991 $rm conftest* 13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13993 touch conftest.a 13994 ln conftest.a conftest.b 2>&5 || hard_links=no 13995 ln conftest.a conftest.b 2>/dev/null && hard_links=no 13996 echo "$as_me:$LINENO: result: $hard_links" >&5 13997 echo "${ECHO_T}$hard_links" >&6 13998 if test "$hard_links" = no; then 13999 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14000 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14001 need_locks=warn 14002 fi 14003 else 14004 need_locks=no 14005 fi 14006 14007 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14008 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 14009 14010 runpath_var= 14011 allow_undefined_flag_F77= 14012 enable_shared_with_static_runtimes_F77=no 14013 archive_cmds_F77= 14014 archive_expsym_cmds_F77= 14015 old_archive_From_new_cmds_F77= 14016 old_archive_from_expsyms_cmds_F77= 14017 export_dynamic_flag_spec_F77= 14018 whole_archive_flag_spec_F77= 14019 thread_safe_flag_spec_F77= 14020 hardcode_libdir_flag_spec_F77= 14021 hardcode_libdir_flag_spec_ld_F77= 14022 hardcode_libdir_separator_F77= 14023 hardcode_direct_F77=no 14024 hardcode_minus_L_F77=no 14025 hardcode_shlibpath_var_F77=unsupported 14026 link_all_deplibs_F77=unknown 14027 hardcode_automatic_F77=no 14028 module_cmds_F77= 14029 module_expsym_cmds_F77= 14030 always_export_symbols_F77=no 14031 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14032 # include_expsyms should be a list of space-separated symbols to be *always* 14033 # included in the symbol list 14034 include_expsyms_F77= 14035 # exclude_expsyms can be an extended regexp of symbols to exclude 14036 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14038 # as well as any symbol that contains `d'. 14039 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 14040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14041 # platforms (ab)use it in PIC code, but their linkers get confused if 14042 # the symbol is explicitly referenced. Since portable code cannot 14043 # rely on this symbol name, it's probably fine to never include it in 14044 # preloaded symbol tables. 14045 extract_expsyms_cmds= 14046 # Just being paranoid about ensuring that cc_basename is set. 14047 for cc_temp in $compiler""; do 14048 case $cc_temp in 14049 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14050 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14051 \-*) ;; 14052 *) break;; 14053 esac 14054 done 14055 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 14056 14057 case $host_os in 14058 cygwin* | mingw* | pw32*) 14059 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14060 # When not using gcc, we currently assume that we are using 14061 # Microsoft Visual C++. 14062 if test "$GCC" != yes; then 14063 with_gnu_ld=no 14064 fi 14065 ;; 14066 openbsd*) 14067 with_gnu_ld=no 14068 ;; 14069 esac 14070 14071 ld_shlibs_F77=yes 14072 if test "$with_gnu_ld" = yes; then 14073 # If archive_cmds runs LD, not CC, wlarc should be empty 14074 wlarc='${wl}' 14075 14076 # Set some defaults for GNU ld with shared library support. These 14077 # are reset later if shared libraries are not supported. Putting them 14078 # here allows them to be overridden if necessary. 14079 runpath_var=LD_RUN_PATH 14080 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 14081 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 14082 # ancient GNU ld didn't support --whole-archive et. al. 14083 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 14084 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14085 else 14086 whole_archive_flag_spec_F77= 14087 fi 14088 supports_anon_versioning=no 14089 case `$LD -v 2>/dev/null` in 14090 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14091 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14092 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14093 *\ 2.11.*) ;; # other 2.11 versions 14094 *) supports_anon_versioning=yes ;; 14095 esac 14096 14097 # See if GNU ld supports shared libraries. 14098 case $host_os in 14099 aix3* | aix4* | aix5*) 14100 # On AIX/PPC, the GNU linker is very broken 14101 if test "$host_cpu" != ia64; then 14102 ld_shlibs_F77=no 14103 cat <<EOF 1>&2 14104 14105 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 14106 *** to be unable to reliably create shared libraries on AIX. 14107 *** Therefore, libtool is disabling shared libraries support. If you 14108 *** really care for shared libraries, you may want to modify your PATH 14109 *** so that a non-GNU linker is found, and then restart. 14110 14111 EOF 14112 fi 14113 ;; 14114 14115 amigaos*) 14116 archive_cmds_F77='$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)' 14117 hardcode_libdir_flag_spec_F77='-L$libdir' 14118 hardcode_minus_L_F77=yes 14119 14120 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 14121 # that the semantics of dynamic libraries on AmigaOS, at least up 14122 # to version 4, is to share data among multiple programs linked 14123 # with the same dynamic library. Since this doesn't match the 14124 # behavior of shared libraries on other platforms, we can't use 14125 # them. 14126 ld_shlibs_F77=no 14127 ;; 14128 14129 beos*) 14130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14131 allow_undefined_flag_F77=unsupported 14132 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14133 # support --undefined. This deserves some investigation. FIXME 14134 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14135 else 14136 ld_shlibs_F77=no 14137 fi 14138 ;; 14139 14140 cygwin* | mingw* | pw32*) 14141 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 14142 # as there is no search path for DLLs. 14143 hardcode_libdir_flag_spec_F77='-L$libdir' 14144 allow_undefined_flag_F77=unsupported 14145 always_export_symbols_F77=no 14146 enable_shared_with_static_runtimes_F77=yes 14147 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 14148 14149 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 14150 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14151 # If the export-symbols file already is a .def file (1st line 14152 # is EXPORTS), use it as is; otherwise, prepend... 14153 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14154 cp $export_symbols $output_objdir/$soname.def; 14155 else 14156 echo EXPORTS > $output_objdir/$soname.def; 14157 cat $export_symbols >> $output_objdir/$soname.def; 14158 fi~ 14159 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 14160 else 14161 ld_shlibs_F77=no 14162 fi 14163 ;; 14164 14165 linux*) 14166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14167 tmp_addflag= 14168 case $cc_basename,$host_cpu in 14169 pgcc*) # Portland Group C compiler 14170 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14171 tmp_addflag=' $pic_flag' 14172 ;; 14173 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 14174 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 14175 tmp_addflag=' $pic_flag -Mnomain' ;; 14176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 14177 tmp_addflag=' -i_dynamic' ;; 14178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 14179 tmp_addflag=' -i_dynamic -nofor_main' ;; 14180 ifc* | ifort*) # Intel Fortran compiler 14181 tmp_addflag=' -nofor_main' ;; 14182 esac 14183 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14184 14185 if test $supports_anon_versioning = yes; then 14186 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 14187 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14188 $echo "local: *; };" >> $output_objdir/$libname.ver~ 14189 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 14190 fi 14191 else 14192 ld_shlibs_F77=no 14193 fi 14194 ;; 14195 14196 netbsd*) 14197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14198 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 14199 wlarc= 14200 else 14201 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14202 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14203 fi 14204 ;; 14205 14206 solaris* | sysv5*) 14207 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 14208 ld_shlibs_F77=no 14209 cat <<EOF 1>&2 14210 14211 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 14212 *** create shared libraries on Solaris systems. Therefore, libtool 14213 *** is disabling shared libraries support. We urge you to upgrade GNU 14214 *** binutils to release 2.9.1 or newer. Another option is to modify 14215 *** your PATH or compiler configuration so that the native linker is 14216 *** used, and then restart. 14217 14218 EOF 14219 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14220 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14221 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14222 else 14223 ld_shlibs_F77=no 14224 fi 14225 ;; 14226 14227 sunos4*) 14228 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14229 wlarc= 14230 hardcode_direct_F77=yes 14231 hardcode_shlibpath_var_F77=no 14232 ;; 14233 14234 *) 14235 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 14236 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14237 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 14238 else 14239 ld_shlibs_F77=no 14240 fi 14241 ;; 14242 esac 14243 14244 if test "$ld_shlibs_F77" = no; then 14245 runpath_var= 14246 hardcode_libdir_flag_spec_F77= 14247 export_dynamic_flag_spec_F77= 14248 whole_archive_flag_spec_F77= 14249 fi 14250 else 14251 # PORTME fill in a description of your system's linker (not GNU ld) 14252 case $host_os in 14253 aix3*) 14254 allow_undefined_flag_F77=unsupported 14255 always_export_symbols_F77=yes 14256 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 14257 # Note: this linker hardcodes the directories in LIBPATH if there 14258 # are no directories specified by -L. 14259 hardcode_minus_L_F77=yes 14260 if test "$GCC" = yes && test -z "$link_static_flag"; then 14261 # Neither direct hardcoding nor static linking is supported with a 14262 # broken collect2. 14263 hardcode_direct_F77=unsupported 14264 fi 14265 ;; 14266 14267 aix4* | aix5*) 14268 if test "$host_cpu" = ia64; then 14269 # On IA64, the linker does run time linking by default, so we don't 14270 # have to do anything special. 14271 aix_use_runtimelinking=no 14272 exp_sym_flag='-Bexport' 14273 no_entry_flag="" 14274 else 14275 # If we're using GNU nm, then we don't want the "-C" option. 14276 # -C means demangle to AIX nm, but means don't demangle with GNU nm 14277 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 14278 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14279 else 14280 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 14281 fi 14282 aix_use_runtimelinking=no 14283 14284 # Test if we are trying to use run time linking or normal 14285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 14286 # need to do runtime linking. 14287 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 14288 for ld_flag in $LDFLAGS; do 14289 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 14290 aix_use_runtimelinking=yes 14291 break 14292 fi 14293 done 14294 esac 14295 14296 exp_sym_flag='-bexport' 14297 no_entry_flag='-bnoentry' 14298 fi 14299 14300 # When large executables or shared objects are built, AIX ld can 14301 # have problems creating the table of contents. If linking a library 14302 # or program results in "error TOC overflow" add -mminimal-toc to 14303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14305 14306 archive_cmds_F77='' 14307 hardcode_direct_F77=yes 14308 hardcode_libdir_separator_F77=':' 14309 link_all_deplibs_F77=yes 14310 14311 if test "$GCC" = yes; then 14312 case $host_os in aix4.[012]|aix4.[012].*) 14313 # We only want to do this on AIX 4.2 and lower, the check 14314 # below for broken collect2 doesn't work under 4.3+ 14315 collect2name=`${CC} -print-prog-name=collect2` 14316 if test -f "$collect2name" && \ 14317 strings "$collect2name" | grep resolve_lib_name >/dev/null 14318 then 14319 # We have reworked collect2 14320 hardcode_direct_F77=yes 14321 else 14322 # We have old collect2 14323 hardcode_direct_F77=unsupported 14324 # It fails to find uninstalled libraries when the uninstalled 14325 # path is not listed in the libpath. Setting hardcode_minus_L 14326 # to unsupported forces relinking 14327 hardcode_minus_L_F77=yes 14328 hardcode_libdir_flag_spec_F77='-L$libdir' 14329 hardcode_libdir_separator_F77= 14330 fi 14331 esac 14332 shared_flag='-shared' 14333 if test "$aix_use_runtimelinking" = yes; then 14334 shared_flag="$shared_flag "'${wl}-G' 14335 fi 14336 else 14337 # not using gcc 14338 if test "$host_cpu" = ia64; then 14339 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14340 # chokes on -Wl,-G. The following line is correct: 14341 shared_flag='-G' 14342 else 14343 if test "$aix_use_runtimelinking" = yes; then 14344 shared_flag='${wl}-G' 14345 else 14346 shared_flag='${wl}-bM:SRE' 14347 fi 14348 fi 14349 fi 14350 14351 # It seems that -bexpall does not export symbols beginning with 14352 # underscore (_), so it is better to generate a list of symbols to export. 14353 always_export_symbols_F77=yes 14354 if test "$aix_use_runtimelinking" = yes; then 14355 # Warning - without using the other runtime loading flags (-brtl), 14356 # -berok will link without error, but may produce a broken library. 14357 allow_undefined_flag_F77='-berok' 14358 # Determine the default libpath from the value encoded in an empty executable. 14359 cat >conftest.$ac_ext <<_ACEOF 14360 program main 14361 14362 end 14363 _ACEOF 14364 rm -f conftest.$ac_objext conftest$ac_exeext 14365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14366 (eval $ac_link) 2>conftest.er1 14367 ac_status=$? 14368 grep -v '^ *+' conftest.er1 >conftest.err 14369 rm -f conftest.er1 14370 cat conftest.err >&5 14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14372 (exit $ac_status); } && 14373 { ac_try='test -z "$ac_f77_werror_flag" 14374 || test ! -s conftest.err' 14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14376 (eval $ac_try) 2>&5 14377 ac_status=$? 14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14379 (exit $ac_status); }; } && 14380 { ac_try='test -s conftest$ac_exeext' 14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14382 (eval $ac_try) 2>&5 14383 ac_status=$? 14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14385 (exit $ac_status); }; }; then 14386 14387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14388 }'` 14389 # Check for a 64-bit object if we didn't find anything. 14390 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14391 }'`; fi 14392 else 14393 echo "$as_me: failed program was:" >&5 14394 sed 's/^/| /' conftest.$ac_ext >&5 14395 14396 fi 14397 rm -f conftest.err conftest.$ac_objext \ 14398 conftest$ac_exeext conftest.$ac_ext 14399 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14400 14401 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14402 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 14403 else 14404 if test "$host_cpu" = ia64; then 14405 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 14406 allow_undefined_flag_F77="-z nodefs" 14407 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 14408 else 14409 # Determine the default libpath from the value encoded in an empty executable. 14410 cat >conftest.$ac_ext <<_ACEOF 14411 program main 14412 14413 end 14414 _ACEOF 14415 rm -f conftest.$ac_objext conftest$ac_exeext 14416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14417 (eval $ac_link) 2>conftest.er1 14418 ac_status=$? 14419 grep -v '^ *+' conftest.er1 >conftest.err 14420 rm -f conftest.er1 14421 cat conftest.err >&5 14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14423 (exit $ac_status); } && 14424 { ac_try='test -z "$ac_f77_werror_flag" 14425 || test ! -s conftest.err' 14426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14427 (eval $ac_try) 2>&5 14428 ac_status=$? 14429 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14430 (exit $ac_status); }; } && 14431 { ac_try='test -s conftest$ac_exeext' 14432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14433 (eval $ac_try) 2>&5 14434 ac_status=$? 14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14436 (exit $ac_status); }; }; then 14437 14438 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14439 }'` 14440 # Check for a 64-bit object if we didn't find anything. 14441 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 14442 }'`; fi 14443 else 14444 echo "$as_me: failed program was:" >&5 14445 sed 's/^/| /' conftest.$ac_ext >&5 14446 14447 fi 14448 rm -f conftest.err conftest.$ac_objext \ 14449 conftest$ac_exeext conftest.$ac_ext 14450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 14451 14452 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 14453 # Warning - without using the other run time loading flags, 14454 # -berok will link without error, but may produce a broken library. 14455 no_undefined_flag_F77=' ${wl}-bernotok' 14456 allow_undefined_flag_F77=' ${wl}-berok' 14457 # -bexpall does not export symbols beginning with underscore (_) 14458 always_export_symbols_F77=yes 14459 # Exported symbols can be pulled into shared objects from archives 14460 whole_archive_flag_spec_F77=' ' 14461 archive_cmds_need_lc_F77=yes 14462 # This is similar to how AIX traditionally builds its shared libraries. 14463 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 14464 fi 14465 fi 14466 ;; 14467 14468 amigaos*) 14469 archive_cmds_F77='$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)' 14470 hardcode_libdir_flag_spec_F77='-L$libdir' 14471 hardcode_minus_L_F77=yes 14472 # see comment about different semantics on the GNU ld section 14473 ld_shlibs_F77=no 14474 ;; 14475 14476 bsdi[45]*) 14477 export_dynamic_flag_spec_F77=-rdynamic 14478 ;; 14479 14480 cygwin* | mingw* | pw32*) 14481 # When not using gcc, we currently assume that we are using 14482 # Microsoft Visual C++. 14483 # hardcode_libdir_flag_spec is actually meaningless, as there is 14484 # no search path for DLLs. 14485 hardcode_libdir_flag_spec_F77=' ' 14486 allow_undefined_flag_F77=unsupported 14487 # Tell ltmain to make .lib files, not .a files. 14488 libext=lib 14489 # Tell ltmain to make .dll files, not .so files. 14490 shrext_cmds=".dll" 14491 # FIXME: Setting linknames here is a bad hack. 14492 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 14493 # The linker will automatically build a .lib file if we build a DLL. 14494 old_archive_From_new_cmds_F77='true' 14495 # FIXME: Should let the user specify the lib program. 14496 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 14497 fix_srcfile_path_F77='`cygpath -w "$srcfile"`' 14498 enable_shared_with_static_runtimes_F77=yes 14499 ;; 14500 14501 darwin* | rhapsody*) 14502 case $host_os in 14503 rhapsody* | darwin1.[012]) 14504 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' 14505 ;; 14506 *) # Darwin 1.3 on 14507 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 14508 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14509 else 14510 case ${MACOSX_DEPLOYMENT_TARGET} in 14511 10.[012]) 14512 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 14513 ;; 14514 10.*) 14515 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' 14516 ;; 14517 esac 14518 fi 14519 ;; 14520 esac 14521 archive_cmds_need_lc_F77=no 14522 hardcode_direct_F77=no 14523 hardcode_automatic_F77=yes 14524 hardcode_shlibpath_var_F77=unsupported 14525 whole_archive_flag_spec_F77='' 14526 link_all_deplibs_F77=yes 14527 if test "$GCC" = yes ; then 14528 output_verbose_link_cmd='echo' 14529 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 14530 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14531 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14532 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14533 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14534 else 14535 case $cc_basename in 14536 xlc*) 14537 output_verbose_link_cmd='echo' 14538 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 14539 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 14540 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 14541 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14542 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 14543 ;; 14544 *) 14545 ld_shlibs_F77=no 14546 ;; 14547 esac 14548 fi 14549 ;; 14550 14551 dgux*) 14552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14553 hardcode_libdir_flag_spec_F77='-L$libdir' 14554 hardcode_shlibpath_var_F77=no 14555 ;; 14556 14557 freebsd1*) 14558 ld_shlibs_F77=no 14559 ;; 14560 14561 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 14562 # support. Future versions do this automatically, but an explicit c++rt0.o 14563 # does not break anything, and helps significantly (at the cost of a little 14564 # extra space). 14565 freebsd2.2*) 14566 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 14567 hardcode_libdir_flag_spec_F77='-R$libdir' 14568 hardcode_direct_F77=yes 14569 hardcode_shlibpath_var_F77=no 14570 ;; 14571 14572 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 14573 freebsd2*) 14574 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14575 hardcode_direct_F77=yes 14576 hardcode_minus_L_F77=yes 14577 hardcode_shlibpath_var_F77=no 14578 ;; 14579 14580 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 14581 freebsd* | kfreebsd*-gnu | dragonfly*) 14582 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 14583 hardcode_libdir_flag_spec_F77='-R$libdir' 14584 hardcode_direct_F77=yes 14585 hardcode_shlibpath_var_F77=no 14586 ;; 14587 14588 hpux9*) 14589 if test "$GCC" = yes; then 14590 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14591 else 14592 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 14593 fi 14594 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14595 hardcode_libdir_separator_F77=: 14596 hardcode_direct_F77=yes 14597 14598 # hardcode_minus_L: Not really in the search PATH, 14599 # but as the default location of the library. 14600 hardcode_minus_L_F77=yes 14601 export_dynamic_flag_spec_F77='${wl}-E' 14602 ;; 14603 14604 hpux10* | hpux11*) 14605 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 14606 case $host_cpu in 14607 hppa*64*|ia64*) 14608 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14609 ;; 14610 *) 14611 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 14612 ;; 14613 esac 14614 else 14615 case $host_cpu in 14616 hppa*64*|ia64*) 14617 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 14618 ;; 14619 *) 14620 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 14621 ;; 14622 esac 14623 fi 14624 if test "$with_gnu_ld" = no; then 14625 case $host_cpu in 14626 hppa*64*) 14627 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14628 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 14629 hardcode_libdir_separator_F77=: 14630 hardcode_direct_F77=no 14631 hardcode_shlibpath_var_F77=no 14632 ;; 14633 ia64*) 14634 hardcode_libdir_flag_spec_F77='-L$libdir' 14635 hardcode_direct_F77=no 14636 hardcode_shlibpath_var_F77=no 14637 14638 # hardcode_minus_L: Not really in the search PATH, 14639 # but as the default location of the library. 14640 hardcode_minus_L_F77=yes 14641 ;; 14642 *) 14643 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 14644 hardcode_libdir_separator_F77=: 14645 hardcode_direct_F77=yes 14646 export_dynamic_flag_spec_F77='${wl}-E' 14647 14648 # hardcode_minus_L: Not really in the search PATH, 14649 # but as the default location of the library. 14650 hardcode_minus_L_F77=yes 14651 ;; 14652 esac 14653 fi 14654 ;; 14655 14656 irix5* | irix6* | nonstopux*) 14657 if test "$GCC" = yes; then 14658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14659 else 14660 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14661 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 14662 fi 14663 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14664 hardcode_libdir_separator_F77=: 14665 link_all_deplibs_F77=yes 14666 ;; 14667 14668 netbsd*) 14669 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14670 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 14671 else 14672 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 14673 fi 14674 hardcode_libdir_flag_spec_F77='-R$libdir' 14675 hardcode_direct_F77=yes 14676 hardcode_shlibpath_var_F77=no 14677 ;; 14678 14679 newsos6) 14680 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14681 hardcode_direct_F77=yes 14682 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14683 hardcode_libdir_separator_F77=: 14684 hardcode_shlibpath_var_F77=no 14685 ;; 14686 14687 openbsd*) 14688 hardcode_direct_F77=yes 14689 hardcode_shlibpath_var_F77=no 14690 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14691 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14692 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 14693 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14694 export_dynamic_flag_spec_F77='${wl}-E' 14695 else 14696 case $host_os in 14697 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 14698 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 14699 hardcode_libdir_flag_spec_F77='-R$libdir' 14700 ;; 14701 *) 14702 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 14703 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 14704 ;; 14705 esac 14706 fi 14707 ;; 14708 14709 os2*) 14710 hardcode_libdir_flag_spec_F77='-L$libdir' 14711 hardcode_minus_L_F77=yes 14712 allow_undefined_flag_F77=unsupported 14713 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 14714 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 14715 ;; 14716 14717 osf3*) 14718 if test "$GCC" = yes; then 14719 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14720 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14721 else 14722 allow_undefined_flag_F77=' -expect_unresolved \*' 14723 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14724 fi 14725 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14726 hardcode_libdir_separator_F77=: 14727 ;; 14728 14729 osf4* | osf5*) # as osf3* with the addition of -msym flag 14730 if test "$GCC" = yes; then 14731 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 14732 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 14733 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 14734 else 14735 allow_undefined_flag_F77=' -expect_unresolved \*' 14736 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 14737 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 14738 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 14739 14740 # Both c and cxx compiler support -rpath directly 14741 hardcode_libdir_flag_spec_F77='-rpath $libdir' 14742 fi 14743 hardcode_libdir_separator_F77=: 14744 ;; 14745 14746 sco3.2v5*) 14747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14748 hardcode_shlibpath_var_F77=no 14749 export_dynamic_flag_spec_F77='${wl}-Bexport' 14750 runpath_var=LD_RUN_PATH 14751 hardcode_runpath_var=yes 14752 ;; 14753 14754 solaris*) 14755 no_undefined_flag_F77=' -z text' 14756 if test "$GCC" = yes; then 14757 wlarc='${wl}' 14758 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14759 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14760 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 14761 else 14762 wlarc='' 14763 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14764 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14765 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14766 fi 14767 hardcode_libdir_flag_spec_F77='-R$libdir' 14768 hardcode_shlibpath_var_F77=no 14769 case $host_os in 14770 solaris2.[0-5] | solaris2.[0-5].*) ;; 14771 *) 14772 # The compiler driver will combine linker options so we 14773 # cannot just pass the convience library names through 14774 # without $wl, iff we do not link with $LD. 14775 # Luckily, gcc supports the same syntax we need for Sun Studio. 14776 # Supported since Solaris 2.6 (maybe 2.5.1?) 14777 case $wlarc in 14778 '') 14779 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 14780 *) 14781 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 14782 esac ;; 14783 esac 14784 link_all_deplibs_F77=yes 14785 ;; 14786 14787 sunos4*) 14788 if test "x$host_vendor" = xsequent; then 14789 # Use $CC to link under sequent, because it throws in some extra .o 14790 # files that make .init and .fini sections work. 14791 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 14792 else 14793 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 14794 fi 14795 hardcode_libdir_flag_spec_F77='-L$libdir' 14796 hardcode_direct_F77=yes 14797 hardcode_minus_L_F77=yes 14798 hardcode_shlibpath_var_F77=no 14799 ;; 14800 14801 sysv4) 14802 case $host_vendor in 14803 sni) 14804 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14805 hardcode_direct_F77=yes # is this really true??? 14806 ;; 14807 siemens) 14808 ## LD is ld it makes a PLAMLIB 14809 ## CC just makes a GrossModule. 14810 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14811 reload_cmds_F77='$CC -r -o $output$reload_objs' 14812 hardcode_direct_F77=no 14813 ;; 14814 motorola) 14815 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14816 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 14817 ;; 14818 esac 14819 runpath_var='LD_RUN_PATH' 14820 hardcode_shlibpath_var_F77=no 14821 ;; 14822 14823 sysv4.3*) 14824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14825 hardcode_shlibpath_var_F77=no 14826 export_dynamic_flag_spec_F77='-Bexport' 14827 ;; 14828 14829 sysv4*MP*) 14830 if test -d /usr/nec; then 14831 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14832 hardcode_shlibpath_var_F77=no 14833 runpath_var=LD_RUN_PATH 14834 hardcode_runpath_var=yes 14835 ld_shlibs_F77=yes 14836 fi 14837 ;; 14838 14839 sysv4.2uw2*) 14840 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 14841 hardcode_direct_F77=yes 14842 hardcode_minus_L_F77=no 14843 hardcode_shlibpath_var_F77=no 14844 hardcode_runpath_var=yes 14845 runpath_var=LD_RUN_PATH 14846 ;; 14847 14848 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 14849 no_undefined_flag_F77='${wl}-z ${wl}text' 14850 if test "$GCC" = yes; then 14851 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14852 else 14853 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 14854 fi 14855 runpath_var='LD_RUN_PATH' 14856 hardcode_shlibpath_var_F77=no 14857 ;; 14858 14859 sysv5*) 14860 no_undefined_flag_F77=' -z text' 14861 # $CC -shared without GNU ld will not create a library from C++ 14862 # object files and a static libstdc++, better avoid it by now 14863 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 14864 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 14865 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 14866 hardcode_libdir_flag_spec_F77= 14867 hardcode_shlibpath_var_F77=no 14868 runpath_var='LD_RUN_PATH' 14869 ;; 14870 14871 uts4*) 14872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 14873 hardcode_libdir_flag_spec_F77='-L$libdir' 14874 hardcode_shlibpath_var_F77=no 14875 ;; 14876 14877 *) 14878 ld_shlibs_F77=no 14879 ;; 14880 esac 14881 fi 14882 14883 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 14884 echo "${ECHO_T}$ld_shlibs_F77" >&6 14885 test "$ld_shlibs_F77" = no && can_build_shared=no 14886 14887 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 14888 if test "$GCC" = yes; then 14889 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 14890 fi 14891 14892 # 14893 # Do we need to explicitly link libc? 14894 # 14895 case "x$archive_cmds_need_lc_F77" in 14896 x|xyes) 14897 # Assume -lc should be added 14898 archive_cmds_need_lc_F77=yes 14899 14900 if test "$enable_shared" = yes && test "$GCC" = yes; then 14901 case $archive_cmds_F77 in 14902 *'~'*) 14903 # FIXME: we may have to deal with multi-command sequences. 14904 ;; 14905 '$CC '*) 14906 # Test whether the compiler implicitly links with -lc since on some 14907 # systems, -lgcc has to come before -lc. If gcc already passes -lc 14908 # to ld, don't add -lc before -lgcc. 14909 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 14910 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 14911 $rm conftest* 14912 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14913 14914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14915 (eval $ac_compile) 2>&5 14916 ac_status=$? 14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14918 (exit $ac_status); } 2>conftest.err; then 14919 soname=conftest 14920 lib=conftest 14921 libobjs=conftest.$ac_objext 14922 deplibs= 14923 wl=$lt_prog_compiler_wl_F77 14924 compiler_flags=-v 14925 linker_flags=-v 14926 verstring= 14927 output_objdir=. 14928 libname=conftest 14929 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 14930 allow_undefined_flag_F77= 14931 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 14932 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 14933 ac_status=$? 14934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14935 (exit $ac_status); } 14936 then 14937 archive_cmds_need_lc_F77=no 14938 else 14939 archive_cmds_need_lc_F77=yes 14940 fi 14941 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 14942 else 14943 cat conftest.err 1>&5 14944 fi 14945 $rm conftest* 14946 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 14947 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 14948 ;; 14949 esac 14950 fi 14951 ;; 14952 esac 14953 14954 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 14955 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 14956 library_names_spec= 14957 libname_spec='lib$name' 14958 soname_spec= 14959 shrext_cmds=".so" 14960 postinstall_cmds= 14961 postuninstall_cmds= 14962 finish_cmds= 14963 finish_eval= 14964 shlibpath_var= 14965 shlibpath_overrides_runpath=unknown 14966 version_type=none 14967 dynamic_linker="$host_os ld.so" 14968 sys_lib_dlsearch_path_spec="/lib /usr/lib" 14969 if test "$GCC" = yes; then 14970 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14971 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 14972 # if the path contains ";" then we assume it to be the separator 14973 # otherwise default to the standard path separator (i.e. ":") - it is 14974 # assumed that no part of a normal pathname contains ";" but that should 14975 # okay in the real world where ";" in dirpaths is itself problematic. 14976 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14977 else 14978 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14979 fi 14980 else 14981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 14982 fi 14983 need_lib_prefix=unknown 14984 hardcode_into_libs=no 14985 14986 # when you set need_version to no, make sure it does not cause -set_version 14987 # flags to be left without arguments 14988 need_version=unknown 14989 14990 case $host_os in 14991 aix3*) 14992 version_type=linux 14993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 14994 shlibpath_var=LIBPATH 14995 14996 # AIX 3 has no versioning support, so we append a major version to the name. 14997 soname_spec='${libname}${release}${shared_ext}$major' 14998 ;; 14999 15000 aix4* | aix5*) 15001 version_type=linux 15002 need_lib_prefix=no 15003 need_version=no 15004 hardcode_into_libs=yes 15005 if test "$host_cpu" = ia64; then 15006 # AIX 5 supports IA64 15007 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 15008 shlibpath_var=LD_LIBRARY_PATH 15009 else 15010 # With GCC up to 2.95.x, collect2 would create an import file 15011 # for dependence libraries. The import file would start with 15012 # the line `#! .'. This would cause the generated library to 15013 # depend on `.', always an invalid library. This was fixed in 15014 # development snapshots of GCC prior to 3.0. 15015 case $host_os in 15016 aix4 | aix4.[01] | aix4.[01].*) 15017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 15018 echo ' yes ' 15019 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 15020 : 15021 else 15022 can_build_shared=no 15023 fi 15024 ;; 15025 esac 15026 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 15027 # soname into executable. Probably we can add versioning support to 15028 # collect2, so additional links can be useful in future. 15029 if test "$aix_use_runtimelinking" = yes; then 15030 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 15031 # instead of lib<name>.a to let people know that these are not 15032 # typical AIX shared libraries. 15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15034 else 15035 # We preserve .a as extension for shared libraries through AIX4.2 15036 # and later when we are not doing run time linking. 15037 library_names_spec='${libname}${release}.a $libname.a' 15038 soname_spec='${libname}${release}${shared_ext}$major' 15039 fi 15040 shlibpath_var=LIBPATH 15041 fi 15042 ;; 15043 15044 amigaos*) 15045 library_names_spec='$libname.ixlibrary $libname.a' 15046 # Create ${libname}_ixlibrary.a entries in /sys/libs. 15047 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 15048 ;; 15049 15050 beos*) 15051 library_names_spec='${libname}${shared_ext}' 15052 dynamic_linker="$host_os ld.so" 15053 shlibpath_var=LIBRARY_PATH 15054 ;; 15055 15056 bsdi[45]*) 15057 version_type=linux 15058 need_version=no 15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15060 soname_spec='${libname}${release}${shared_ext}$major' 15061 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 15062 shlibpath_var=LD_LIBRARY_PATH 15063 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 15064 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 15065 # the default ld.so.conf also contains /usr/contrib/lib and 15066 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 15067 # libtool to hard-code these into programs 15068 ;; 15069 15070 cygwin* | mingw* | pw32*) 15071 version_type=windows 15072 shrext_cmds=".dll" 15073 need_version=no 15074 need_lib_prefix=no 15075 15076 case $GCC,$host_os in 15077 yes,cygwin* | yes,mingw* | yes,pw32*) 15078 library_names_spec='$libname.dll.a' 15079 # DLL is installed to $(libdir)/../bin by postinstall_cmds 15080 postinstall_cmds='base_file=`basename \${file}`~ 15081 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 15082 dldir=$destdir/`dirname \$dlpath`~ 15083 test -d \$dldir || mkdir -p \$dldir~ 15084 $install_prog $dir/$dlname \$dldir/$dlname~ 15085 chmod a+x \$dldir/$dlname' 15086 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 15087 dlpath=$dir/\$dldll~ 15088 $rm \$dlpath' 15089 shlibpath_overrides_runpath=yes 15090 15091 case $host_os in 15092 cygwin*) 15093 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 15094 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15095 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 15096 ;; 15097 mingw*) 15098 # MinGW DLLs use traditional 'lib' prefix 15099 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15100 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 15101 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 15102 # It is most probably a Windows format PATH printed by 15103 # mingw gcc, but we are running on Cygwin. Gcc prints its search 15104 # path with ; separators, and with drive letters. We can handle the 15105 # drive letters (cygwin fileutils understands them), so leave them, 15106 # especially as we might pass files found there to a mingw objdump, 15107 # which wouldn't understand a cygwinified path. Ahh. 15108 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 15109 else 15110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 15111 fi 15112 ;; 15113 pw32*) 15114 # pw32 DLLs use 'pw' prefix rather than 'lib' 15115 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 15116 ;; 15117 esac 15118 ;; 15119 15120 linux*) 15121 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 15122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15123 supports_anon_versioning=no 15124 case `$LD -v 2>/dev/null` in 15125 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15126 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15127 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15128 *\ 2.11.*) ;; # other 2.11 versions 15129 *) supports_anon_versioning=yes ;; 15130 esac 15131 if test $supports_anon_versioning = yes; then 15132 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 15133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15134 $echo "local: *; };" >> $output_objdir/$libname.ver~ 15135 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15136 else 15137 $archive_expsym_cmds="$archive_cmds" 15138 fi 15139 else 15140 ld_shlibs=no 15141 fi 15142 ;; 15143 15144 *) 15145 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 15146 ;; 15147 esac 15148 dynamic_linker='Win32 ld.exe' 15149 # FIXME: first we should search . and the directory the executable is in 15150 shlibpath_var=PATH 15151 ;; 15152 15153 darwin* | rhapsody*) 15154 dynamic_linker="$host_os dyld" 15155 version_type=darwin 15156 need_lib_prefix=no 15157 need_version=no 15158 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15159 soname_spec='${libname}${release}${major}$shared_ext' 15160 shlibpath_overrides_runpath=yes 15161 shlibpath_var=DYLD_LIBRARY_PATH 15162 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15163 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 15164 if test "$GCC" = yes; then 15165 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 15166 else 15167 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 15168 fi 15169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15170 ;; 15171 15172 dgux*) 15173 version_type=linux 15174 need_lib_prefix=no 15175 need_version=no 15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15177 soname_spec='${libname}${release}${shared_ext}$major' 15178 shlibpath_var=LD_LIBRARY_PATH 15179 ;; 15180 15181 freebsd1*) 15182 dynamic_linker=no 15183 ;; 15184 15185 kfreebsd*-gnu) 15186 version_type=linux 15187 need_lib_prefix=no 15188 need_version=no 15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15190 soname_spec='${libname}${release}${shared_ext}$major' 15191 shlibpath_var=LD_LIBRARY_PATH 15192 shlibpath_overrides_runpath=no 15193 hardcode_into_libs=yes 15194 dynamic_linker='GNU ld.so' 15195 ;; 15196 15197 freebsd* | dragonfly*) 15198 # DragonFly does not have aout. When/if they implement a new 15199 # versioning mechanism, adjust this. 15200 if test -x /usr/bin/objformat; then 15201 objformat=`/usr/bin/objformat` 15202 else 15203 case $host_os in 15204 freebsd[123]*) objformat=aout ;; 15205 *) objformat=elf ;; 15206 esac 15207 fi 15208 version_type=freebsd-$objformat 15209 case $version_type in 15210 freebsd-elf*) 15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15212 need_version=no 15213 need_lib_prefix=no 15214 ;; 15215 freebsd-*) 15216 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15217 need_version=yes 15218 ;; 15219 esac 15220 shlibpath_var=LD_LIBRARY_PATH 15221 case $host_os in 15222 freebsd2*) 15223 shlibpath_overrides_runpath=yes 15224 ;; 15225 freebsd3.[01]* | freebsdelf3.[01]*) 15226 shlibpath_overrides_runpath=yes 15227 hardcode_into_libs=yes 15228 ;; 15229 *) # from 3.2 on 15230 shlibpath_overrides_runpath=no 15231 hardcode_into_libs=yes 15232 ;; 15233 esac 15234 ;; 15235 15236 gnu*) 15237 version_type=linux 15238 need_lib_prefix=no 15239 need_version=no 15240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15241 soname_spec='${libname}${release}${shared_ext}$major' 15242 shlibpath_var=LD_LIBRARY_PATH 15243 hardcode_into_libs=yes 15244 ;; 15245 15246 hpux9* | hpux10* | hpux11*) 15247 # Give a soname corresponding to the major version so that dld.sl refuses to 15248 # link against other versions. 15249 version_type=sunos 15250 need_lib_prefix=no 15251 need_version=no 15252 case $host_cpu in 15253 ia64*) 15254 shrext_cmds='.so' 15255 hardcode_into_libs=yes 15256 dynamic_linker="$host_os dld.so" 15257 shlibpath_var=LD_LIBRARY_PATH 15258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15260 soname_spec='${libname}${release}${shared_ext}$major' 15261 if test "X$HPUX_IA64_MODE" = X32; then 15262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 15263 else 15264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 15265 fi 15266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15267 ;; 15268 hppa*64*) 15269 shrext_cmds='.sl' 15270 hardcode_into_libs=yes 15271 dynamic_linker="$host_os dld.sl" 15272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 15273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15275 soname_spec='${libname}${release}${shared_ext}$major' 15276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 15277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 15278 ;; 15279 *) 15280 shrext_cmds='.sl' 15281 dynamic_linker="$host_os dld.sl" 15282 shlibpath_var=SHLIB_PATH 15283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15285 soname_spec='${libname}${release}${shared_ext}$major' 15286 ;; 15287 esac 15288 # HP-UX runs *really* slowly unless shared libraries are mode 555. 15289 postinstall_cmds='chmod 555 $lib' 15290 ;; 15291 15292 irix5* | irix6* | nonstopux*) 15293 case $host_os in 15294 nonstopux*) version_type=nonstopux ;; 15295 *) 15296 if test "$lt_cv_prog_gnu_ld" = yes; then 15297 version_type=linux 15298 else 15299 version_type=irix 15300 fi ;; 15301 esac 15302 need_lib_prefix=no 15303 need_version=no 15304 soname_spec='${libname}${release}${shared_ext}$major' 15305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15306 case $host_os in 15307 irix5* | nonstopux*) 15308 libsuff= shlibsuff= 15309 ;; 15310 *) 15311 case $LD in # libtool.m4 will add one of these switches to LD 15312 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15313 libsuff= shlibsuff= libmagic=32-bit;; 15314 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15315 libsuff=32 shlibsuff=N32 libmagic=N32;; 15316 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15317 libsuff=64 shlibsuff=64 libmagic=64-bit;; 15318 *) libsuff= shlibsuff= libmagic=never-match;; 15319 esac 15320 ;; 15321 esac 15322 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15323 shlibpath_overrides_runpath=no 15324 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15325 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15326 hardcode_into_libs=yes 15327 ;; 15328 15329 # No shared lib support for Linux oldld, aout, or coff. 15330 linux*oldld* | linux*aout* | linux*coff*) 15331 dynamic_linker=no 15332 ;; 15333 15334 # This must be Linux ELF. 15335 linux*) 15336 version_type=linux 15337 need_lib_prefix=no 15338 need_version=no 15339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15340 soname_spec='${libname}${release}${shared_ext}$major' 15341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15342 shlibpath_var=LD_LIBRARY_PATH 15343 shlibpath_overrides_runpath=no 15344 # This implies no fast_install, which is unacceptable. 15345 # Some rework will be needed to allow for fast_install 15346 # before this can be enabled. 15347 hardcode_into_libs=yes 15348 15349 # Append ld.so.conf contents to the search path 15350 if test -f /etc/ld.so.conf; then 15351 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15352 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15353 fi 15354 15355 case $host_cpu:$lt_cv_cc_64bit_output in 15356 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 15357 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 15358 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 15359 ;; 15360 esac 15361 15362 # We used to test for /lib/ld.so.1 and disable shared libraries on 15363 # powerpc, because MkLinux only supported shared libraries with the 15364 # GNU dynamic linker. Since this was broken with cross compilers, 15365 # most powerpc-linux boxes support dynamic linking these days and 15366 # people can always --disable-shared, the test was removed, and we 15367 # assume the GNU/Linux dynamic linker is in use. 15368 dynamic_linker='GNU/Linux ld.so' 15369 15370 # Find out which ABI we are using (multilib Linux x86_64 hack). 15371 libsuff= 15372 case "$host_cpu" in 15373 x86_64*) 15374 echo '#line 15374 "configure"' > conftest.$ac_ext 15375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15376 (eval $ac_compile) 2>&5 15377 ac_status=$? 15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15379 (exit $ac_status); }; then 15380 case `/usr/bin/file conftest.$ac_objext` in 15381 *64-bit*) 15382 libsuff=64 15383 ;; 15384 esac 15385 fi 15386 rm -rf conftest* 15387 ;; 15388 *) 15389 ;; 15390 esac 15391 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 15392 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 15393 ;; 15394 15395 knetbsd*-gnu) 15396 version_type=linux 15397 need_lib_prefix=no 15398 need_version=no 15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15400 soname_spec='${libname}${release}${shared_ext}$major' 15401 shlibpath_var=LD_LIBRARY_PATH 15402 shlibpath_overrides_runpath=no 15403 hardcode_into_libs=yes 15404 dynamic_linker='GNU ld.so' 15405 ;; 15406 15407 netbsd*) 15408 version_type=sunos 15409 need_lib_prefix=no 15410 need_version=no 15411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15414 dynamic_linker='NetBSD (a.out) ld.so' 15415 else 15416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15417 soname_spec='${libname}${release}${shared_ext}$major' 15418 dynamic_linker='NetBSD ld.elf_so' 15419 fi 15420 shlibpath_var=LD_LIBRARY_PATH 15421 shlibpath_overrides_runpath=yes 15422 hardcode_into_libs=yes 15423 ;; 15424 15425 newsos6) 15426 version_type=linux 15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15428 shlibpath_var=LD_LIBRARY_PATH 15429 shlibpath_overrides_runpath=yes 15430 ;; 15431 15432 nto-qnx*) 15433 version_type=linux 15434 need_lib_prefix=no 15435 need_version=no 15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15437 soname_spec='${libname}${release}${shared_ext}$major' 15438 shlibpath_var=LD_LIBRARY_PATH 15439 shlibpath_overrides_runpath=yes 15440 ;; 15441 15442 openbsd*) 15443 version_type=sunos 15444 need_lib_prefix=no 15445 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 15446 case $host_os in 15447 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 15448 *) need_version=no ;; 15449 esac 15450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 15452 shlibpath_var=LD_LIBRARY_PATH 15453 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15454 case $host_os in 15455 openbsd2.[89] | openbsd2.[89].*) 15456 shlibpath_overrides_runpath=no 15457 ;; 15458 *) 15459 shlibpath_overrides_runpath=yes 15460 ;; 15461 esac 15462 else 15463 shlibpath_overrides_runpath=yes 15464 fi 15465 ;; 15466 15467 os2*) 15468 libname_spec='$name' 15469 shrext_cmds=".dll" 15470 need_lib_prefix=no 15471 library_names_spec='$libname${shared_ext} $libname.a' 15472 dynamic_linker='OS/2 ld.exe' 15473 shlibpath_var=LIBPATH 15474 ;; 15475 15476 osf3* | osf4* | osf5*) 15477 version_type=osf 15478 need_lib_prefix=no 15479 need_version=no 15480 soname_spec='${libname}${release}${shared_ext}$major' 15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15482 shlibpath_var=LD_LIBRARY_PATH 15483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 15484 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 15485 ;; 15486 15487 sco3.2v5*) 15488 version_type=osf 15489 soname_spec='${libname}${release}${shared_ext}$major' 15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15491 shlibpath_var=LD_LIBRARY_PATH 15492 ;; 15493 15494 solaris*) 15495 version_type=linux 15496 need_lib_prefix=no 15497 need_version=no 15498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15499 soname_spec='${libname}${release}${shared_ext}$major' 15500 shlibpath_var=LD_LIBRARY_PATH 15501 shlibpath_overrides_runpath=yes 15502 hardcode_into_libs=yes 15503 # ldd complains unless libraries are executable 15504 postinstall_cmds='chmod +x $lib' 15505 ;; 15506 15507 sunos4*) 15508 version_type=sunos 15509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 15510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 15511 shlibpath_var=LD_LIBRARY_PATH 15512 shlibpath_overrides_runpath=yes 15513 if test "$with_gnu_ld" = yes; then 15514 need_lib_prefix=no 15515 fi 15516 need_version=yes 15517 ;; 15518 15519 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15520 version_type=linux 15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15522 soname_spec='${libname}${release}${shared_ext}$major' 15523 shlibpath_var=LD_LIBRARY_PATH 15524 case $host_vendor in 15525 sni) 15526 shlibpath_overrides_runpath=no 15527 need_lib_prefix=no 15528 export_dynamic_flag_spec='${wl}-Blargedynsym' 15529 runpath_var=LD_RUN_PATH 15530 ;; 15531 siemens) 15532 need_lib_prefix=no 15533 ;; 15534 motorola) 15535 need_lib_prefix=no 15536 need_version=no 15537 shlibpath_overrides_runpath=no 15538 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 15539 ;; 15540 esac 15541 ;; 15542 15543 sysv4*MP*) 15544 if test -d /usr/nec ;then 15545 version_type=linux 15546 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 15547 soname_spec='$libname${shared_ext}.$major' 15548 shlibpath_var=LD_LIBRARY_PATH 15549 fi 15550 ;; 15551 15552 uts4*) 15553 version_type=linux 15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15555 soname_spec='${libname}${release}${shared_ext}$major' 15556 shlibpath_var=LD_LIBRARY_PATH 15557 ;; 15558 15559 *) 15560 dynamic_linker=no 15561 ;; 15562 esac 15563 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 15564 echo "${ECHO_T}$dynamic_linker" >&6 15565 test "$dynamic_linker" = no && can_build_shared=no 15566 15567 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 15568 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 15569 hardcode_action_F77= 15570 if test -n "$hardcode_libdir_flag_spec_F77" || \ 15571 test -n "$runpath_var_F77" || \ 15572 test "X$hardcode_automatic_F77" = "Xyes" ; then 15573 15574 # We can hardcode non-existant directories. 15575 if test "$hardcode_direct_F77" != no && 15576 # If the only mechanism to avoid hardcoding is shlibpath_var, we 15577 # have to relink, otherwise we might link with an installed library 15578 # when we should be linking with a yet-to-be-installed one 15579 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 15580 test "$hardcode_minus_L_F77" != no; then 15581 # Linking always hardcodes the temporary library directory. 15582 hardcode_action_F77=relink 15583 else 15584 # We can link without hardcoding, and we can hardcode nonexisting dirs. 15585 hardcode_action_F77=immediate 15586 fi 15587 else 15588 # We cannot hardcode anything, or else we can only hardcode existing 15589 # directories. 15590 hardcode_action_F77=unsupported 15591 fi 15592 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 15593 echo "${ECHO_T}$hardcode_action_F77" >&6 15594 15595 if test "$hardcode_action_F77" = relink; then 15596 # Fast installation is not supported 15597 enable_fast_install=no 15598 elif test "$shlibpath_overrides_runpath" = yes || 15599 test "$enable_shared" = no; then 15600 # Fast installation is not necessary 15601 enable_fast_install=needless 15602 fi 15603 15604 striplib= 15605 old_striplib= 15606 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 15607 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 15608 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 15609 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 15610 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 15611 echo "$as_me:$LINENO: result: yes" >&5 15612 echo "${ECHO_T}yes" >&6 15613 else 15614 # FIXME - insert some real tests, host_os isn't really good enough 15615 case $host_os in 15616 darwin*) 15617 if test -n "$STRIP" ; then 15618 striplib="$STRIP -x" 15619 echo "$as_me:$LINENO: result: yes" >&5 15620 echo "${ECHO_T}yes" >&6 15621 else 15622 echo "$as_me:$LINENO: result: no" >&5 15623 echo "${ECHO_T}no" >&6 15624 fi 15625 ;; 15626 *) 15627 echo "$as_me:$LINENO: result: no" >&5 15628 echo "${ECHO_T}no" >&6 15629 ;; 15630 esac 15631 fi 15632 15633 15634 15635 # The else clause should only fire when bootstrapping the 15636 # libtool distribution, otherwise you forgot to ship ltmain.sh 15637 # with your package, and you will get complaints that there are 15638 # no rules to generate ltmain.sh. 15639 if test -f "$ltmain"; then 15640 # See if we are running on zsh, and set the options which allow our commands through 15641 # without removal of \ escapes. 15642 if test -n "${ZSH_VERSION+set}" ; then 15643 setopt NO_GLOB_SUBST 15644 fi 15645 # Now quote all the things that may contain metacharacters while being 15646 # careful not to overquote the AC_SUBSTed values. We take copies of the 15647 # variables and quote the copies for generation of the libtool script. 15648 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 15649 SED SHELL STRIP \ 15650 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 15651 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 15652 deplibs_check_method reload_flag reload_cmds need_locks \ 15653 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 15654 lt_cv_sys_global_symbol_to_c_name_address \ 15655 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 15656 old_postinstall_cmds old_postuninstall_cmds \ 15657 compiler_F77 \ 15658 CC_F77 \ 15659 LD_F77 \ 15660 lt_prog_compiler_wl_F77 \ 15661 lt_prog_compiler_pic_F77 \ 15662 lt_prog_compiler_static_F77 \ 15663 lt_prog_compiler_no_builtin_flag_F77 \ 15664 export_dynamic_flag_spec_F77 \ 15665 thread_safe_flag_spec_F77 \ 15666 whole_archive_flag_spec_F77 \ 15667 enable_shared_with_static_runtimes_F77 \ 15668 old_archive_cmds_F77 \ 15669 old_archive_from_new_cmds_F77 \ 15670 predep_objects_F77 \ 15671 postdep_objects_F77 \ 15672 predeps_F77 \ 15673 postdeps_F77 \ 15674 compiler_lib_search_path_F77 \ 15675 archive_cmds_F77 \ 15676 archive_expsym_cmds_F77 \ 15677 postinstall_cmds_F77 \ 15678 postuninstall_cmds_F77 \ 15679 old_archive_from_expsyms_cmds_F77 \ 15680 allow_undefined_flag_F77 \ 15681 no_undefined_flag_F77 \ 15682 export_symbols_cmds_F77 \ 15683 hardcode_libdir_flag_spec_F77 \ 15684 hardcode_libdir_flag_spec_ld_F77 \ 15685 hardcode_libdir_separator_F77 \ 15686 hardcode_automatic_F77 \ 15687 module_cmds_F77 \ 15688 module_expsym_cmds_F77 \ 15689 lt_cv_prog_compiler_c_o_F77 \ 15690 exclude_expsyms_F77 \ 15691 include_expsyms_F77; do 15692 15693 case $var in 15694 old_archive_cmds_F77 | \ 15695 old_archive_from_new_cmds_F77 | \ 15696 archive_cmds_F77 | \ 15697 archive_expsym_cmds_F77 | \ 15698 module_cmds_F77 | \ 15699 module_expsym_cmds_F77 | \ 15700 old_archive_from_expsyms_cmds_F77 | \ 15701 export_symbols_cmds_F77 | \ 15702 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 15703 postinstall_cmds | postuninstall_cmds | \ 15704 old_postinstall_cmds | old_postuninstall_cmds | \ 15705 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 15706 # Double-quote double-evaled strings. 15707 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 15708 ;; 15709 *) 15710 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 15711 ;; 15712 esac 15713 done 15714 15715 case $lt_echo in 15716 *'\$0 --fallback-echo"') 15717 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 15718 ;; 15719 esac 15720 15721 cfgfile="$ofile" 15722 15723 cat <<__EOF__ >> "$cfgfile" 15724 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 15725 15726 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15727 15728 # Shell to use when invoking shell scripts. 15729 SHELL=$lt_SHELL 15730 15731 # Whether or not to build shared libraries. 15732 build_libtool_libs=$enable_shared 15733 15734 # Whether or not to build static libraries. 15735 build_old_libs=$enable_static 15736 15737 # Whether or not to add -lc for building shared libraries. 15738 build_libtool_need_lc=$archive_cmds_need_lc_F77 15739 15740 # Whether or not to disallow shared libs when runtime libs are static 15741 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 15742 15743 # Whether or not to optimize for fast installation. 15744 fast_install=$enable_fast_install 15745 15746 # The host system. 15747 host_alias=$host_alias 15748 host=$host 15749 host_os=$host_os 15750 15751 # The build system. 15752 build_alias=$build_alias 15753 build=$build 15754 build_os=$build_os 15755 15756 # An echo program that does not interpret backslashes. 15757 echo=$lt_echo 15758 15759 # The archiver. 15760 AR=$lt_AR 15761 AR_FLAGS=$lt_AR_FLAGS 15762 15763 # A C compiler. 15764 LTCC=$lt_LTCC 15765 15766 # A language-specific compiler. 15767 CC=$lt_compiler_F77 15768 15769 # Is the compiler the GNU C compiler? 15770 with_gcc=$GCC_F77 15771 15772 # An ERE matcher. 15773 EGREP=$lt_EGREP 15774 15775 # The linker used to build libraries. 15776 LD=$lt_LD_F77 15777 15778 # Whether we need hard or soft links. 15779 LN_S=$lt_LN_S 15780 15781 # A BSD-compatible nm program. 15782 NM=$lt_NM 15783 15784 # A symbol stripping program 15785 STRIP=$lt_STRIP 15786 15787 # Used to examine libraries when file_magic_cmd begins "file" 15788 MAGIC_CMD=$MAGIC_CMD 15789 15790 # Used on cygwin: DLL creation program. 15791 DLLTOOL="$DLLTOOL" 15792 15793 # Used on cygwin: object dumper. 15794 OBJDUMP="$OBJDUMP" 15795 15796 # Used on cygwin: assembler. 15797 AS="$AS" 15798 15799 # The name of the directory that contains temporary libtool files. 15800 objdir=$objdir 15801 15802 # How to create reloadable object files. 15803 reload_flag=$lt_reload_flag 15804 reload_cmds=$lt_reload_cmds 15805 15806 # How to pass a linker flag through the compiler. 15807 wl=$lt_lt_prog_compiler_wl_F77 15808 15809 # Object file suffix (normally "o"). 15810 objext="$ac_objext" 15811 15812 # Old archive suffix (normally "a"). 15813 libext="$libext" 15814 15815 # Shared library suffix (normally ".so"). 15816 shrext_cmds='$shrext_cmds' 15817 15818 # Executable file suffix (normally ""). 15819 exeext="$exeext" 15820 15821 # Additional compiler flags for building library objects. 15822 pic_flag=$lt_lt_prog_compiler_pic_F77 15823 pic_mode=$pic_mode 15824 15825 # What is the maximum length of a command? 15826 max_cmd_len=$lt_cv_sys_max_cmd_len 15827 15828 # Does compiler simultaneously support -c and -o options? 15829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 15830 15831 # Must we lock files when doing compilation? 15832 need_locks=$lt_need_locks 15833 15834 # Do we need the lib prefix for modules? 15835 need_lib_prefix=$need_lib_prefix 15836 15837 # Do we need a version for libraries? 15838 need_version=$need_version 15839 15840 # Whether dlopen is supported. 15841 dlopen_support=$enable_dlopen 15842 15843 # Whether dlopen of programs is supported. 15844 dlopen_self=$enable_dlopen_self 15845 15846 # Whether dlopen of statically linked programs is supported. 15847 dlopen_self_static=$enable_dlopen_self_static 15848 15849 # Compiler flag to prevent dynamic linking. 15850 link_static_flag=$lt_lt_prog_compiler_static_F77 15851 15852 # Compiler flag to turn off builtin functions. 15853 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 15854 15855 # Compiler flag to allow reflexive dlopens. 15856 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 15857 15858 # Compiler flag to generate shared objects directly from archives. 15859 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 15860 15861 # Compiler flag to generate thread-safe objects. 15862 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 15863 15864 # Library versioning type. 15865 version_type=$version_type 15866 15867 # Format of library name prefix. 15868 libname_spec=$lt_libname_spec 15869 15870 # List of archive names. First name is the real one, the rest are links. 15871 # The last name is the one that the linker finds with -lNAME. 15872 library_names_spec=$lt_library_names_spec 15873 15874 # The coded name of the library, if different from the real name. 15875 soname_spec=$lt_soname_spec 15876 15877 # Commands used to build and install an old-style archive. 15878 RANLIB=$lt_RANLIB 15879 old_archive_cmds=$lt_old_archive_cmds_F77 15880 old_postinstall_cmds=$lt_old_postinstall_cmds 15881 old_postuninstall_cmds=$lt_old_postuninstall_cmds 15882 15883 # Create an old-style archive from a shared archive. 15884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 15885 15886 # Create a temporary old-style archive to link instead of a shared archive. 15887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 15888 15889 # Commands used to build and install a shared archive. 15890 archive_cmds=$lt_archive_cmds_F77 15891 archive_expsym_cmds=$lt_archive_expsym_cmds_F77 15892 postinstall_cmds=$lt_postinstall_cmds 15893 postuninstall_cmds=$lt_postuninstall_cmds 15894 15895 # Commands used to build a loadable module (assumed same as above if empty) 15896 module_cmds=$lt_module_cmds_F77 15897 module_expsym_cmds=$lt_module_expsym_cmds_F77 15898 15899 # Commands to strip libraries. 15900 old_striplib=$lt_old_striplib 15901 striplib=$lt_striplib 15902 15903 # Dependencies to place before the objects being linked to create a 15904 # shared library. 15905 predep_objects=$lt_predep_objects_F77 15906 15907 # Dependencies to place after the objects being linked to create a 15908 # shared library. 15909 postdep_objects=$lt_postdep_objects_F77 15910 15911 # Dependencies to place before the objects being linked to create a 15912 # shared library. 15913 predeps=$lt_predeps_F77 15914 15915 # Dependencies to place after the objects being linked to create a 15916 # shared library. 15917 postdeps=$lt_postdeps_F77 15918 15919 # The library search path used internally by the compiler when linking 15920 # a shared library. 15921 compiler_lib_search_path=$lt_compiler_lib_search_path_F77 15922 15923 # Method to check whether dependent libraries are shared objects. 15924 deplibs_check_method=$lt_deplibs_check_method 15925 15926 # Command to use when deplibs_check_method == file_magic. 15927 file_magic_cmd=$lt_file_magic_cmd 15928 15929 # Flag that allows shared libraries with undefined symbols to be built. 15930 allow_undefined_flag=$lt_allow_undefined_flag_F77 15931 15932 # Flag that forces no undefined symbols. 15933 no_undefined_flag=$lt_no_undefined_flag_F77 15934 15935 # Commands used to finish a libtool library installation in a directory. 15936 finish_cmds=$lt_finish_cmds 15937 15938 # Same as above, but a single script fragment to be evaled but not shown. 15939 finish_eval=$lt_finish_eval 15940 15941 # Take the output of nm and produce a listing of raw symbols and C names. 15942 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15943 15944 # Transform the output of nm in a proper C declaration 15945 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15946 15947 # Transform the output of nm in a C name address pair 15948 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15949 15950 # This is the shared library runtime path variable. 15951 runpath_var=$runpath_var 15952 15953 # This is the shared library path variable. 15954 shlibpath_var=$shlibpath_var 15955 15956 # Is shlibpath searched before the hard-coded library search path? 15957 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15958 15959 # How to hardcode a shared library path into an executable. 15960 hardcode_action=$hardcode_action_F77 15961 15962 # Whether we should hardcode library paths into libraries. 15963 hardcode_into_libs=$hardcode_into_libs 15964 15965 # Flag to hardcode \$libdir into a binary during linking. 15966 # This must work even if \$libdir does not exist. 15967 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 15968 15969 # If ld is used when linking, flag to hardcode \$libdir into 15970 # a binary during linking. This must work even if \$libdir does 15971 # not exist. 15972 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 15973 15974 # Whether we need a single -rpath flag with a separated argument. 15975 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 15976 15977 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 15978 # resulting binary. 15979 hardcode_direct=$hardcode_direct_F77 15980 15981 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 15982 # resulting binary. 15983 hardcode_minus_L=$hardcode_minus_L_F77 15984 15985 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 15986 # the resulting binary. 15987 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 15988 15989 # Set to yes if building a shared library automatically hardcodes DIR into the library 15990 # and all subsequent libraries and executables linked against it. 15991 hardcode_automatic=$hardcode_automatic_F77 15992 15993 # Variables whose values should be saved in libtool wrapper scripts and 15994 # restored at relink time. 15995 variables_saved_for_relink="$variables_saved_for_relink" 15996 15997 # Whether libtool must link a program against all its dependency libraries. 15998 link_all_deplibs=$link_all_deplibs_F77 15999 16000 # Compile-time system search path for libraries 16001 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 16002 16003 # Run-time system search path for libraries 16004 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 16005 16006 # Fix the shell variable \$srcfile for the compiler. 16007 fix_srcfile_path="$fix_srcfile_path_F77" 16008 16009 # Set to yes if exported symbols are required. 16010 always_export_symbols=$always_export_symbols_F77 16011 16012 # The commands to list exported symbols. 16013 export_symbols_cmds=$lt_export_symbols_cmds_F77 16014 16015 # The commands to extract the exported symbol list from a shared archive. 16016 extract_expsyms_cmds=$lt_extract_expsyms_cmds 16017 16018 # Symbols that should not be listed in the preloaded symbols. 16019 exclude_expsyms=$lt_exclude_expsyms_F77 16020 16021 # Symbols that must always be exported. 16022 include_expsyms=$lt_include_expsyms_F77 16023 16024 # ### END LIBTOOL TAG CONFIG: $tagname 16025 16026 __EOF__ 16027 16028 16029 else 16030 # If there is no Makefile yet, we rely on a make rule to execute 16031 # `config.status --recheck' to rerun these tests and create the 16032 # libtool script then. 16033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 16034 if test -f "$ltmain_in"; then 16035 test -f Makefile && make "$ltmain" 16036 fi 16037 fi 16038 16039 16040 ac_ext=c 16041 ac_cpp='$CPP $CPPFLAGS' 16042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16044 ac_compiler_gnu=$ac_cv_c_compiler_gnu 16045 16046 CC="$lt_save_CC" 16047 16048 else 16049 tagname="" 16050 fi 16051 ;; 16052 16053 GCJ) 16054 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 16055 16056 16057 16058 # Source file extension for Java test sources. 16059 ac_ext=java 16060 16061 # Object file extension for compiled Java test sources. 16062 objext=o 16063 objext_GCJ=$objext 16064 16065 # Code to be used in simple compile tests 16066 lt_simple_compile_test_code="class foo {}\n" 16067 16068 # Code to be used in simple link tests 16069 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' 16070 16071 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 16072 16073 # If no C compiler was specified, use CC. 16074 LTCC=${LTCC-"$CC"} 16075 16076 # Allow CC to be a program name with arguments. 16077 compiler=$CC 16078 16079 16080 # save warnings/boilerplate of simple test code 16081 ac_outfile=conftest.$ac_objext 16082 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 16083 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16084 _lt_compiler_boilerplate=`cat conftest.err` 16085 $rm conftest* 16086 16087 ac_outfile=conftest.$ac_objext 16088 printf "$lt_simple_link_test_code" >conftest.$ac_ext 16089 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 16090 _lt_linker_boilerplate=`cat conftest.err` 16091 $rm conftest* 16092 16093 16094 # Allow CC to be a program name with arguments. 16095 lt_save_CC="$CC" 16096 CC=${GCJ-"gcj"} 16097 compiler=$CC 16098 compiler_GCJ=$CC 16099 for cc_temp in $compiler""; do 16100 case $cc_temp in 16101 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16102 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16103 \-*) ;; 16104 *) break;; 16105 esac 16106 done 16107 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16108 16109 16110 # GCJ did not exist at the time GCC didn't implicitly link libc in. 16111 archive_cmds_need_lc_GCJ=no 16112 16113 old_archive_cmds_GCJ=$old_archive_cmds 16114 16115 16116 lt_prog_compiler_no_builtin_flag_GCJ= 16117 16118 if test "$GCC" = yes; then 16119 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 16120 16121 16122 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 16123 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 16124 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 16125 echo $ECHO_N "(cached) $ECHO_C" >&6 16126 else 16127 lt_cv_prog_compiler_rtti_exceptions=no 16128 ac_outfile=conftest.$ac_objext 16129 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16130 lt_compiler_flag="-fno-rtti -fno-exceptions" 16131 # Insert the option either (1) after the last *FLAGS variable, or 16132 # (2) before a word containing "conftest.", or (3) at the end. 16133 # Note that $ac_compile itself does not contain backslashes and begins 16134 # with a dollar sign (not a hyphen), so the echo should work correctly. 16135 # The option is referenced via a variable to avoid confusing sed. 16136 lt_compile=`echo "$ac_compile" | $SED \ 16137 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16139 -e 's:$: $lt_compiler_flag:'` 16140 (eval echo "\"\$as_me:16140: $lt_compile\"" >&5) 16141 (eval "$lt_compile" 2>conftest.err) 16142 ac_status=$? 16143 cat conftest.err >&5 16144 echo "$as_me:16144: \$? = $ac_status" >&5 16145 if (exit $ac_status) && test -s "$ac_outfile"; then 16146 # The compiler can only warn and ignore the option if not recognized 16147 # So say no if there are warnings other than the usual output. 16148 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16149 $SED '/^$/d' conftest.err >conftest.er2 16150 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16151 lt_cv_prog_compiler_rtti_exceptions=yes 16152 fi 16153 fi 16154 $rm conftest* 16155 16156 fi 16157 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 16158 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 16159 16160 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 16161 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 16162 else 16163 : 16164 fi 16165 16166 fi 16167 16168 lt_prog_compiler_wl_GCJ= 16169 lt_prog_compiler_pic_GCJ= 16170 lt_prog_compiler_static_GCJ= 16171 16172 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 16173 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 16174 16175 if test "$GCC" = yes; then 16176 lt_prog_compiler_wl_GCJ='-Wl,' 16177 lt_prog_compiler_static_GCJ='-static' 16178 16179 case $host_os in 16180 aix*) 16181 # All AIX code is PIC. 16182 if test "$host_cpu" = ia64; then 16183 # AIX 5 now supports IA64 processor 16184 lt_prog_compiler_static_GCJ='-Bstatic' 16185 fi 16186 ;; 16187 16188 amigaos*) 16189 # FIXME: we need at least 68020 code to build shared libraries, but 16190 # adding the `-m68020' flag to GCC prevents building anything better, 16191 # like `-m68040'. 16192 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 16193 ;; 16194 16195 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 16196 # PIC is the default for these OSes. 16197 ;; 16198 16199 mingw* | pw32* | os2*) 16200 # This hack is so that the source file can tell whether it is being 16201 # built for inclusion in a dll (and should export symbols for example). 16202 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16203 ;; 16204 16205 darwin* | rhapsody*) 16206 # PIC is the default on this platform 16207 # Common symbols not allowed in MH_DYLIB files 16208 lt_prog_compiler_pic_GCJ='-fno-common' 16209 ;; 16210 16211 msdosdjgpp*) 16212 # Just because we use GCC doesn't mean we suddenly get shared libraries 16213 # on systems that don't support them. 16214 lt_prog_compiler_can_build_shared_GCJ=no 16215 enable_shared=no 16216 ;; 16217 16218 sysv4*MP*) 16219 if test -d /usr/nec; then 16220 lt_prog_compiler_pic_GCJ=-Kconform_pic 16221 fi 16222 ;; 16223 16224 hpux*) 16225 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16226 # not for PA HP-UX. 16227 case $host_cpu in 16228 hppa*64*|ia64*) 16229 # +Z the default 16230 ;; 16231 *) 16232 lt_prog_compiler_pic_GCJ='-fPIC' 16233 ;; 16234 esac 16235 ;; 16236 16237 *) 16238 lt_prog_compiler_pic_GCJ='-fPIC' 16239 ;; 16240 esac 16241 else 16242 # PORTME Check for flag to pass linker flags through the system compiler. 16243 case $host_os in 16244 aix*) 16245 lt_prog_compiler_wl_GCJ='-Wl,' 16246 if test "$host_cpu" = ia64; then 16247 # AIX 5 now supports IA64 processor 16248 lt_prog_compiler_static_GCJ='-Bstatic' 16249 else 16250 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 16251 fi 16252 ;; 16253 darwin*) 16254 # PIC is the default on this platform 16255 # Common symbols not allowed in MH_DYLIB files 16256 case $cc_basename in 16257 xlc*) 16258 lt_prog_compiler_pic_GCJ='-qnocommon' 16259 lt_prog_compiler_wl_GCJ='-Wl,' 16260 ;; 16261 esac 16262 ;; 16263 16264 mingw* | pw32* | os2*) 16265 # This hack is so that the source file can tell whether it is being 16266 # built for inclusion in a dll (and should export symbols for example). 16267 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 16268 ;; 16269 16270 hpux9* | hpux10* | hpux11*) 16271 lt_prog_compiler_wl_GCJ='-Wl,' 16272 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 16273 # not for PA HP-UX. 16274 case $host_cpu in 16275 hppa*64*|ia64*) 16276 # +Z the default 16277 ;; 16278 *) 16279 lt_prog_compiler_pic_GCJ='+Z' 16280 ;; 16281 esac 16282 # Is there a better lt_prog_compiler_static that works with the bundled CC? 16283 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 16284 ;; 16285 16286 irix5* | irix6* | nonstopux*) 16287 lt_prog_compiler_wl_GCJ='-Wl,' 16288 # PIC (with -KPIC) is the default. 16289 lt_prog_compiler_static_GCJ='-non_shared' 16290 ;; 16291 16292 newsos6) 16293 lt_prog_compiler_pic_GCJ='-KPIC' 16294 lt_prog_compiler_static_GCJ='-Bstatic' 16295 ;; 16296 16297 linux*) 16298 case $cc_basename in 16299 icc* | ecc*) 16300 lt_prog_compiler_wl_GCJ='-Wl,' 16301 lt_prog_compiler_pic_GCJ='-KPIC' 16302 lt_prog_compiler_static_GCJ='-static' 16303 ;; 16304 pgcc* | pgf77* | pgf90* | pgf95*) 16305 # Portland Group compilers (*not* the Pentium gcc compiler, 16306 # which looks to be a dead project) 16307 lt_prog_compiler_wl_GCJ='-Wl,' 16308 lt_prog_compiler_pic_GCJ='-fpic' 16309 lt_prog_compiler_static_GCJ='-Bstatic' 16310 ;; 16311 ccc*) 16312 lt_prog_compiler_wl_GCJ='-Wl,' 16313 # All Alpha code is PIC. 16314 lt_prog_compiler_static_GCJ='-non_shared' 16315 ;; 16316 esac 16317 ;; 16318 16319 osf3* | osf4* | osf5*) 16320 lt_prog_compiler_wl_GCJ='-Wl,' 16321 # All OSF/1 code is PIC. 16322 lt_prog_compiler_static_GCJ='-non_shared' 16323 ;; 16324 16325 sco3.2v5*) 16326 lt_prog_compiler_pic_GCJ='-Kpic' 16327 lt_prog_compiler_static_GCJ='-dn' 16328 ;; 16329 16330 solaris*) 16331 lt_prog_compiler_pic_GCJ='-KPIC' 16332 lt_prog_compiler_static_GCJ='-Bstatic' 16333 case $cc_basename in 16334 f77* | f90* | f95*) 16335 lt_prog_compiler_wl_GCJ='-Qoption ld ';; 16336 *) 16337 lt_prog_compiler_wl_GCJ='-Wl,';; 16338 esac 16339 ;; 16340 16341 sunos4*) 16342 lt_prog_compiler_wl_GCJ='-Qoption ld ' 16343 lt_prog_compiler_pic_GCJ='-PIC' 16344 lt_prog_compiler_static_GCJ='-Bstatic' 16345 ;; 16346 16347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16348 lt_prog_compiler_wl_GCJ='-Wl,' 16349 lt_prog_compiler_pic_GCJ='-KPIC' 16350 lt_prog_compiler_static_GCJ='-Bstatic' 16351 ;; 16352 16353 sysv4*MP*) 16354 if test -d /usr/nec ;then 16355 lt_prog_compiler_pic_GCJ='-Kconform_pic' 16356 lt_prog_compiler_static_GCJ='-Bstatic' 16357 fi 16358 ;; 16359 16360 unicos*) 16361 lt_prog_compiler_wl_GCJ='-Wl,' 16362 lt_prog_compiler_can_build_shared_GCJ=no 16363 ;; 16364 16365 uts4*) 16366 lt_prog_compiler_pic_GCJ='-pic' 16367 lt_prog_compiler_static_GCJ='-Bstatic' 16368 ;; 16369 16370 *) 16371 lt_prog_compiler_can_build_shared_GCJ=no 16372 ;; 16373 esac 16374 fi 16375 16376 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 16377 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 16378 16379 # 16380 # Check to make sure the PIC flag actually works. 16381 # 16382 if test -n "$lt_prog_compiler_pic_GCJ"; then 16383 16384 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 16385 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 16386 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 16387 echo $ECHO_N "(cached) $ECHO_C" >&6 16388 else 16389 lt_prog_compiler_pic_works_GCJ=no 16390 ac_outfile=conftest.$ac_objext 16391 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16392 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 16393 # Insert the option either (1) after the last *FLAGS variable, or 16394 # (2) before a word containing "conftest.", or (3) at the end. 16395 # Note that $ac_compile itself does not contain backslashes and begins 16396 # with a dollar sign (not a hyphen), so the echo should work correctly. 16397 # The option is referenced via a variable to avoid confusing sed. 16398 lt_compile=`echo "$ac_compile" | $SED \ 16399 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16400 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16401 -e 's:$: $lt_compiler_flag:'` 16402 (eval echo "\"\$as_me:16402: $lt_compile\"" >&5) 16403 (eval "$lt_compile" 2>conftest.err) 16404 ac_status=$? 16405 cat conftest.err >&5 16406 echo "$as_me:16406: \$? = $ac_status" >&5 16407 if (exit $ac_status) && test -s "$ac_outfile"; then 16408 # The compiler can only warn and ignore the option if not recognized 16409 # So say no if there are warnings other than the usual output. 16410 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp 16411 $SED '/^$/d' conftest.err >conftest.er2 16412 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then 16413 lt_prog_compiler_pic_works_GCJ=yes 16414 fi 16415 fi 16416 $rm conftest* 16417 16418 fi 16419 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 16420 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 16421 16422 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 16423 case $lt_prog_compiler_pic_GCJ in 16424 "" | " "*) ;; 16425 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 16426 esac 16427 else 16428 lt_prog_compiler_pic_GCJ= 16429 lt_prog_compiler_can_build_shared_GCJ=no 16430 fi 16431 16432 fi 16433 case $host_os in 16434 # For platforms which do not support PIC, -DPIC is meaningless: 16435 *djgpp*) 16436 lt_prog_compiler_pic_GCJ= 16437 ;; 16438 *) 16439 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 16440 ;; 16441 esac 16442 16443 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 16444 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 16445 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 16446 echo $ECHO_N "(cached) $ECHO_C" >&6 16447 else 16448 lt_cv_prog_compiler_c_o_GCJ=no 16449 $rm -r conftest 2>/dev/null 16450 mkdir conftest 16451 cd conftest 16452 mkdir out 16453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16454 16455 lt_compiler_flag="-o out/conftest2.$ac_objext" 16456 # Insert the option either (1) after the last *FLAGS variable, or 16457 # (2) before a word containing "conftest.", or (3) at the end. 16458 # Note that $ac_compile itself does not contain backslashes and begins 16459 # with a dollar sign (not a hyphen), so the echo should work correctly. 16460 lt_compile=`echo "$ac_compile" | $SED \ 16461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 16462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16463 -e 's:$: $lt_compiler_flag:'` 16464 (eval echo "\"\$as_me:16464: $lt_compile\"" >&5) 16465 (eval "$lt_compile" 2>out/conftest.err) 16466 ac_status=$? 16467 cat out/conftest.err >&5 16468 echo "$as_me:16468: \$? = $ac_status" >&5 16469 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16470 then 16471 # The compiler can only warn and ignore the option if not recognized 16472 # So say no if there are warnings 16473 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp 16474 $SED '/^$/d' out/conftest.err >out/conftest.er2 16475 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then 16476 lt_cv_prog_compiler_c_o_GCJ=yes 16477 fi 16478 fi 16479 chmod u+w . 2>&5 16480 $rm conftest* 16481 # SGI C++ compiler will create directory out/ii_files/ for 16482 # template instantiation 16483 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 16484 $rm out/* && rmdir out 16485 cd .. 16486 rmdir conftest 16487 $rm conftest* 16488 16489 fi 16490 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 16491 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 16492 16493 16494 hard_links="nottested" 16495 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 16496 # do not overwrite the value of need_locks provided by the user 16497 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 16498 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 16499 hard_links=yes 16500 $rm conftest* 16501 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16502 touch conftest.a 16503 ln conftest.a conftest.b 2>&5 || hard_links=no 16504 ln conftest.a conftest.b 2>/dev/null && hard_links=no 16505 echo "$as_me:$LINENO: result: $hard_links" >&5 16506 echo "${ECHO_T}$hard_links" >&6 16507 if test "$hard_links" = no; then 16508 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 16509 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 16510 need_locks=warn 16511 fi 16512 else 16513 need_locks=no 16514 fi 16515 16516 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 16517 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 16518 16519 runpath_var= 16520 allow_undefined_flag_GCJ= 16521 enable_shared_with_static_runtimes_GCJ=no 16522 archive_cmds_GCJ= 16523 archive_expsym_cmds_GCJ= 16524 old_archive_From_new_cmds_GCJ= 16525 old_archive_from_expsyms_cmds_GCJ= 16526 export_dynamic_flag_spec_GCJ= 16527 whole_archive_flag_spec_GCJ= 16528 thread_safe_flag_spec_GCJ= 16529 hardcode_libdir_flag_spec_GCJ= 16530 hardcode_libdir_flag_spec_ld_GCJ= 16531 hardcode_libdir_separator_GCJ= 16532 hardcode_direct_GCJ=no 16533 hardcode_minus_L_GCJ=no 16534 hardcode_shlibpath_var_GCJ=unsupported 16535 link_all_deplibs_GCJ=unknown 16536 hardcode_automatic_GCJ=no 16537 module_cmds_GCJ= 16538 module_expsym_cmds_GCJ= 16539 always_export_symbols_GCJ=no 16540 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 16541 # include_expsyms should be a list of space-separated symbols to be *always* 16542 # included in the symbol list 16543 include_expsyms_GCJ= 16544 # exclude_expsyms can be an extended regexp of symbols to exclude 16545 # it will be wrapped by ` (' and `)$', so one must not match beginning or 16546 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 16547 # as well as any symbol that contains `d'. 16548 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 16549 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 16550 # platforms (ab)use it in PIC code, but their linkers get confused if 16551 # the symbol is explicitly referenced. Since portable code cannot 16552 # rely on this symbol name, it's probably fine to never include it in 16553 # preloaded symbol tables. 16554 extract_expsyms_cmds= 16555 # Just being paranoid about ensuring that cc_basename is set. 16556 for cc_temp in $compiler""; do 16557 case $cc_temp in 16558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 16559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 16560 \-*) ;; 16561 *) break;; 16562 esac 16563 done 16564 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 16565 16566 case $host_os in 16567 cygwin* | mingw* | pw32*) 16568 # FIXME: the MSVC++ port hasn't been tested in a loooong time 16569 # When not using gcc, we currently assume that we are using 16570 # Microsoft Visual C++. 16571 if test "$GCC" != yes; then 16572 with_gnu_ld=no 16573 fi 16574 ;; 16575 openbsd*) 16576 with_gnu_ld=no 16577 ;; 16578 esac 16579 16580 ld_shlibs_GCJ=yes 16581 if test "$with_gnu_ld" = yes; then 16582 # If archive_cmds runs LD, not CC, wlarc should be empty 16583 wlarc='${wl}' 16584 16585 # Set some defaults for GNU ld with shared library support. These 16586 # are reset later if shared libraries are not supported. Putting them 16587 # here allows them to be overridden if necessary. 16588 runpath_var=LD_RUN_PATH 16589 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 16590 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 16591 # ancient GNU ld didn't support --whole-archive et. al. 16592 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 16593 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 16594 else 16595 whole_archive_flag_spec_GCJ= 16596 fi 16597 supports_anon_versioning=no 16598 case `$LD -v 2>/dev/null` in 16599 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 16600 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 16601 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 16602 *\ 2.11.*) ;; # other 2.11 versions 16603 *) supports_anon_versioning=yes ;; 16604 esac 16605 16606 # See if GNU ld supports shared libraries. 16607 case $host_os in 16608 aix3* | aix4* | aix5*) 16609 # On AIX/PPC, the GNU linker is very broken 16610 if test "$host_cpu" != ia64; then 16611 ld_shlibs_GCJ=no 16612 cat <<EOF 1>&2 16613 16614 *** Warning: the GNU linker, at least up to release 2.9.1, is reported 16615 *** to be unable to reliably create shared libraries on AIX. 16616 *** Therefore, libtool is disabling shared libraries support. If you 16617 *** really care for shared libraries, you may want to modify your PATH 16618 *** so that a non-GNU linker is found, and then restart. 16619 16620 EOF 16621 fi 16622 ;; 16623 16624 amigaos*) 16625 archive_cmds_GCJ='$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)' 16626 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16627 hardcode_minus_L_GCJ=yes 16628 16629 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 16630 # that the semantics of dynamic libraries on AmigaOS, at least up 16631 # to version 4, is to share data among multiple programs linked 16632 # with the same dynamic library. Since this doesn't match the 16633 # behavior of shared libraries on other platforms, we can't use 16634 # them. 16635 ld_shlibs_GCJ=no 16636 ;; 16637 16638 beos*) 16639 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16640 allow_undefined_flag_GCJ=unsupported 16641 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 16642 # support --undefined. This deserves some investigation. FIXME 16643 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16644 else 16645 ld_shlibs_GCJ=no 16646 fi 16647 ;; 16648 16649 cygwin* | mingw* | pw32*) 16650 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 16651 # as there is no search path for DLLs. 16652 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16653 allow_undefined_flag_GCJ=unsupported 16654 always_export_symbols_GCJ=no 16655 enable_shared_with_static_runtimes_GCJ=yes 16656 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 16657 16658 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 16659 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16660 # If the export-symbols file already is a .def file (1st line 16661 # is EXPORTS), use it as is; otherwise, prepend... 16662 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16663 cp $export_symbols $output_objdir/$soname.def; 16664 else 16665 echo EXPORTS > $output_objdir/$soname.def; 16666 cat $export_symbols >> $output_objdir/$soname.def; 16667 fi~ 16668 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 16669 else 16670 ld_shlibs_GCJ=no 16671 fi 16672 ;; 16673 16674 linux*) 16675 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16676 tmp_addflag= 16677 case $cc_basename,$host_cpu in 16678 pgcc*) # Portland Group C compiler 16679 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16680 tmp_addflag=' $pic_flag' 16681 ;; 16682 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 16683 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 16684 tmp_addflag=' $pic_flag -Mnomain' ;; 16685 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16686 tmp_addflag=' -i_dynamic' ;; 16687 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16688 tmp_addflag=' -i_dynamic -nofor_main' ;; 16689 ifc* | ifort*) # Intel Fortran compiler 16690 tmp_addflag=' -nofor_main' ;; 16691 esac 16692 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16693 16694 if test $supports_anon_versioning = yes; then 16695 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 16696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16697 $echo "local: *; };" >> $output_objdir/$libname.ver~ 16698 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16699 fi 16700 else 16701 ld_shlibs_GCJ=no 16702 fi 16703 ;; 16704 16705 netbsd*) 16706 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16707 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16708 wlarc= 16709 else 16710 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16711 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16712 fi 16713 ;; 16714 16715 solaris* | sysv5*) 16716 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 16717 ld_shlibs_GCJ=no 16718 cat <<EOF 1>&2 16719 16720 *** Warning: The releases 2.8.* of the GNU linker cannot reliably 16721 *** create shared libraries on Solaris systems. Therefore, libtool 16722 *** is disabling shared libraries support. We urge you to upgrade GNU 16723 *** binutils to release 2.9.1 or newer. Another option is to modify 16724 *** your PATH or compiler configuration so that the native linker is 16725 *** used, and then restart. 16726 16727 EOF 16728 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16729 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16730 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16731 else 16732 ld_shlibs_GCJ=no 16733 fi 16734 ;; 16735 16736 sunos4*) 16737 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16738 wlarc= 16739 hardcode_direct_GCJ=yes 16740 hardcode_shlibpath_var_GCJ=no 16741 ;; 16742 16743 *) 16744 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 16745 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16746 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16747 else 16748 ld_shlibs_GCJ=no 16749 fi 16750 ;; 16751 esac 16752 16753 if test "$ld_shlibs_GCJ" = no; then 16754 runpath_var= 16755 hardcode_libdir_flag_spec_GCJ= 16756 export_dynamic_flag_spec_GCJ= 16757 whole_archive_flag_spec_GCJ= 16758 fi 16759 else 16760 # PORTME fill in a description of your system's linker (not GNU ld) 16761 case $host_os in 16762 aix3*) 16763 allow_undefined_flag_GCJ=unsupported 16764 always_export_symbols_GCJ=yes 16765 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 16766 # Note: this linker hardcodes the directories in LIBPATH if there 16767 # are no directories specified by -L. 16768 hardcode_minus_L_GCJ=yes 16769 if test "$GCC" = yes && test -z "$link_static_flag"; then 16770 # Neither direct hardcoding nor static linking is supported with a 16771 # broken collect2. 16772 hardcode_direct_GCJ=unsupported 16773 fi 16774 ;; 16775 16776 aix4* | aix5*) 16777 if test "$host_cpu" = ia64; then 16778 # On IA64, the linker does run time linking by default, so we don't 16779 # have to do anything special. 16780 aix_use_runtimelinking=no 16781 exp_sym_flag='-Bexport' 16782 no_entry_flag="" 16783 else 16784 # If we're using GNU nm, then we don't want the "-C" option. 16785 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16786 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 16787 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16788 else 16789 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 16790 fi 16791 aix_use_runtimelinking=no 16792 16793 # Test if we are trying to use run time linking or normal 16794 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16795 # need to do runtime linking. 16796 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 16797 for ld_flag in $LDFLAGS; do 16798 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16799 aix_use_runtimelinking=yes 16800 break 16801 fi 16802 done 16803 esac 16804 16805 exp_sym_flag='-bexport' 16806 no_entry_flag='-bnoentry' 16807 fi 16808 16809 # When large executables or shared objects are built, AIX ld can 16810 # have problems creating the table of contents. If linking a library 16811 # or program results in "error TOC overflow" add -mminimal-toc to 16812 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16813 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16814 16815 archive_cmds_GCJ='' 16816 hardcode_direct_GCJ=yes 16817 hardcode_libdir_separator_GCJ=':' 16818 link_all_deplibs_GCJ=yes 16819 16820 if test "$GCC" = yes; then 16821 case $host_os in aix4.[012]|aix4.[012].*) 16822 # We only want to do this on AIX 4.2 and lower, the check 16823 # below for broken collect2 doesn't work under 4.3+ 16824 collect2name=`${CC} -print-prog-name=collect2` 16825 if test -f "$collect2name" && \ 16826 strings "$collect2name" | grep resolve_lib_name >/dev/null 16827 then 16828 # We have reworked collect2 16829 hardcode_direct_GCJ=yes 16830 else 16831 # We have old collect2 16832 hardcode_direct_GCJ=unsupported 16833 # It fails to find uninstalled libraries when the uninstalled 16834 # path is not listed in the libpath. Setting hardcode_minus_L 16835 # to unsupported forces relinking 16836 hardcode_minus_L_GCJ=yes 16837 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16838 hardcode_libdir_separator_GCJ= 16839 fi 16840 esac 16841 shared_flag='-shared' 16842 if test "$aix_use_runtimelinking" = yes; then 16843 shared_flag="$shared_flag "'${wl}-G' 16844 fi 16845 else 16846 # not using gcc 16847 if test "$host_cpu" = ia64; then 16848 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16849 # chokes on -Wl,-G. The following line is correct: 16850 shared_flag='-G' 16851 else 16852 if test "$aix_use_runtimelinking" = yes; then 16853 shared_flag='${wl}-G' 16854 else 16855 shared_flag='${wl}-bM:SRE' 16856 fi 16857 fi 16858 fi 16859 16860 # It seems that -bexpall does not export symbols beginning with 16861 # underscore (_), so it is better to generate a list of symbols to export. 16862 always_export_symbols_GCJ=yes 16863 if test "$aix_use_runtimelinking" = yes; then 16864 # Warning - without using the other runtime loading flags (-brtl), 16865 # -berok will link without error, but may produce a broken library. 16866 allow_undefined_flag_GCJ='-berok' 16867 # Determine the default libpath from the value encoded in an empty executable. 16868 cat >conftest.$ac_ext <<_ACEOF 16869 /* confdefs.h. */ 16870 _ACEOF 16871 cat confdefs.h >>conftest.$ac_ext 16872 cat >>conftest.$ac_ext <<_ACEOF 16873 /* end confdefs.h. */ 16874 16875 int 16876 main () 16877 { 16878 16879 ; 16880 return 0; 16881 } 16882 _ACEOF 16883 rm -f conftest.$ac_objext conftest$ac_exeext 16884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16885 (eval $ac_link) 2>conftest.er1 16886 ac_status=$? 16887 grep -v '^ *+' conftest.er1 >conftest.err 16888 rm -f conftest.er1 16889 cat conftest.err >&5 16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16891 (exit $ac_status); } && 16892 { ac_try='test -z "$ac_c_werror_flag" 16893 || test ! -s conftest.err' 16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16895 (eval $ac_try) 2>&5 16896 ac_status=$? 16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16898 (exit $ac_status); }; } && 16899 { ac_try='test -s conftest$ac_exeext' 16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16901 (eval $ac_try) 2>&5 16902 ac_status=$? 16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16904 (exit $ac_status); }; }; then 16905 16906 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16907 }'` 16908 # Check for a 64-bit object if we didn't find anything. 16909 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16910 }'`; fi 16911 else 16912 echo "$as_me: failed program was:" >&5 16913 sed 's/^/| /' conftest.$ac_ext >&5 16914 16915 fi 16916 rm -f conftest.err conftest.$ac_objext \ 16917 conftest$ac_exeext conftest.$ac_ext 16918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16919 16920 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16921 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16922 else 16923 if test "$host_cpu" = ia64; then 16924 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 16925 allow_undefined_flag_GCJ="-z nodefs" 16926 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 16927 else 16928 # Determine the default libpath from the value encoded in an empty executable. 16929 cat >conftest.$ac_ext <<_ACEOF 16930 /* confdefs.h. */ 16931 _ACEOF 16932 cat confdefs.h >>conftest.$ac_ext 16933 cat >>conftest.$ac_ext <<_ACEOF 16934 /* end confdefs.h. */ 16935 16936 int 16937 main () 16938 { 16939 16940 ; 16941 return 0; 16942 } 16943 _ACEOF 16944 rm -f conftest.$ac_objext conftest$ac_exeext 16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16946 (eval $ac_link) 2>conftest.er1 16947 ac_status=$? 16948 grep -v '^ *+' conftest.er1 >conftest.err 16949 rm -f conftest.er1 16950 cat conftest.err >&5 16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16952 (exit $ac_status); } && 16953 { ac_try='test -z "$ac_c_werror_flag" 16954 || test ! -s conftest.err' 16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16956 (eval $ac_try) 2>&5 16957 ac_status=$? 16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16959 (exit $ac_status); }; } && 16960 { ac_try='test -s conftest$ac_exeext' 16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16962 (eval $ac_try) 2>&5 16963 ac_status=$? 16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16965 (exit $ac_status); }; }; then 16966 16967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16968 }'` 16969 # Check for a 64-bit object if we didn't find anything. 16970 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 16971 }'`; fi 16972 else 16973 echo "$as_me: failed program was:" >&5 16974 sed 's/^/| /' conftest.$ac_ext >&5 16975 16976 fi 16977 rm -f conftest.err conftest.$ac_objext \ 16978 conftest$ac_exeext conftest.$ac_ext 16979 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 16980 16981 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 16982 # Warning - without using the other run time loading flags, 16983 # -berok will link without error, but may produce a broken library. 16984 no_undefined_flag_GCJ=' ${wl}-bernotok' 16985 allow_undefined_flag_GCJ=' ${wl}-berok' 16986 # -bexpall does not export symbols beginning with underscore (_) 16987 always_export_symbols_GCJ=yes 16988 # Exported symbols can be pulled into shared objects from archives 16989 whole_archive_flag_spec_GCJ=' ' 16990 archive_cmds_need_lc_GCJ=yes 16991 # This is similar to how AIX traditionally builds its shared libraries. 16992 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16993 fi 16994 fi 16995 ;; 16996 16997 amigaos*) 16998 archive_cmds_GCJ='$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)' 16999 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17000 hardcode_minus_L_GCJ=yes 17001 # see comment about different semantics on the GNU ld section 17002 ld_shlibs_GCJ=no 17003 ;; 17004 17005 bsdi[45]*) 17006 export_dynamic_flag_spec_GCJ=-rdynamic 17007 ;; 17008 17009 cygwin* | mingw* | pw32*) 17010 # When not using gcc, we currently assume that we are using 17011 # Microsoft Visual C++. 17012 # hardcode_libdir_flag_spec is actually meaningless, as there is 17013 # no search path for DLLs. 17014 hardcode_libdir_flag_spec_GCJ=' ' 17015 allow_undefined_flag_GCJ=unsupported 17016 # Tell ltmain to make .lib files, not .a files. 17017 libext=lib 17018 # Tell ltmain to make .dll files, not .so files. 17019 shrext_cmds=".dll" 17020 # FIXME: Setting linknames here is a bad hack. 17021 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 17022 # The linker will automatically build a .lib file if we build a DLL. 17023 old_archive_From_new_cmds_GCJ='true' 17024 # FIXME: Should let the user specify the lib program. 17025 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 17026 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' 17027 enable_shared_with_static_runtimes_GCJ=yes 17028 ;; 17029 17030 darwin* | rhapsody*) 17031 case $host_os in 17032 rhapsody* | darwin1.[012]) 17033 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' 17034 ;; 17035 *) # Darwin 1.3 on 17036 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 17037 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17038 else 17039 case ${MACOSX_DEPLOYMENT_TARGET} in 17040 10.[012]) 17041 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 17042 ;; 17043 10.*) 17044 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' 17045 ;; 17046 esac 17047 fi 17048 ;; 17049 esac 17050 archive_cmds_need_lc_GCJ=no 17051 hardcode_direct_GCJ=no 17052 hardcode_automatic_GCJ=yes 17053 hardcode_shlibpath_var_GCJ=unsupported 17054 whole_archive_flag_spec_GCJ='' 17055 link_all_deplibs_GCJ=yes 17056 if test "$GCC" = yes ; then 17057 output_verbose_link_cmd='echo' 17058 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 17059 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17060 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17061 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17062 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17063 else 17064 case $cc_basename in 17065 xlc*) 17066 output_verbose_link_cmd='echo' 17067 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 17068 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 17069 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 17070 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17071 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 17072 ;; 17073 *) 17074 ld_shlibs_GCJ=no 17075 ;; 17076 esac 17077 fi 17078 ;; 17079 17080 dgux*) 17081 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17082 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17083 hardcode_shlibpath_var_GCJ=no 17084 ;; 17085 17086 freebsd1*) 17087 ld_shlibs_GCJ=no 17088 ;; 17089 17090 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 17091 # support. Future versions do this automatically, but an explicit c++rt0.o 17092 # does not break anything, and helps significantly (at the cost of a little 17093 # extra space). 17094 freebsd2.2*) 17095 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 17096 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17097 hardcode_direct_GCJ=yes 17098 hardcode_shlibpath_var_GCJ=no 17099 ;; 17100 17101 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 17102 freebsd2*) 17103 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17104 hardcode_direct_GCJ=yes 17105 hardcode_minus_L_GCJ=yes 17106 hardcode_shlibpath_var_GCJ=no 17107 ;; 17108 17109 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 17110 freebsd* | kfreebsd*-gnu | dragonfly*) 17111 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 17112 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17113 hardcode_direct_GCJ=yes 17114 hardcode_shlibpath_var_GCJ=no 17115 ;; 17116 17117 hpux9*) 17118 if test "$GCC" = yes; then 17119 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17120 else 17121 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 17122 fi 17123 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17124 hardcode_libdir_separator_GCJ=: 17125 hardcode_direct_GCJ=yes 17126 17127 # hardcode_minus_L: Not really in the search PATH, 17128 # but as the default location of the library. 17129 hardcode_minus_L_GCJ=yes 17130 export_dynamic_flag_spec_GCJ='${wl}-E' 17131 ;; 17132 17133 hpux10* | hpux11*) 17134 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 17135 case $host_cpu in 17136 hppa*64*|ia64*) 17137 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17138 ;; 17139 *) 17140 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 17141 ;; 17142 esac 17143 else 17144 case $host_cpu in 17145 hppa*64*|ia64*) 17146 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 17147 ;; 17148 *) 17149 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 17150 ;; 17151 esac 17152 fi 17153 if test "$with_gnu_ld" = no; then 17154 case $host_cpu in 17155 hppa*64*) 17156 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17157 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 17158 hardcode_libdir_separator_GCJ=: 17159 hardcode_direct_GCJ=no 17160 hardcode_shlibpath_var_GCJ=no 17161 ;; 17162 ia64*) 17163 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17164 hardcode_direct_GCJ=no 17165 hardcode_shlibpath_var_GCJ=no 17166 17167 # hardcode_minus_L: Not really in the search PATH, 17168 # but as the default location of the library. 17169 hardcode_minus_L_GCJ=yes 17170 ;; 17171 *) 17172 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 17173 hardcode_libdir_separator_GCJ=: 17174 hardcode_direct_GCJ=yes 17175 export_dynamic_flag_spec_GCJ='${wl}-E' 17176 17177 # hardcode_minus_L: Not really in the search PATH, 17178 # but as the default location of the library. 17179 hardcode_minus_L_GCJ=yes 17180 ;; 17181 esac 17182 fi 17183 ;; 17184 17185 irix5* | irix6* | nonstopux*) 17186 if test "$GCC" = yes; then 17187 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17188 else 17189 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17190 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 17191 fi 17192 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17193 hardcode_libdir_separator_GCJ=: 17194 link_all_deplibs_GCJ=yes 17195 ;; 17196 17197 netbsd*) 17198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17199 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 17200 else 17201 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 17202 fi 17203 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17204 hardcode_direct_GCJ=yes 17205 hardcode_shlibpath_var_GCJ=no 17206 ;; 17207 17208 newsos6) 17209 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17210 hardcode_direct_GCJ=yes 17211 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17212 hardcode_libdir_separator_GCJ=: 17213 hardcode_shlibpath_var_GCJ=no 17214 ;; 17215 17216 openbsd*) 17217 hardcode_direct_GCJ=yes 17218 hardcode_shlibpath_var_GCJ=no 17219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17220 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17221 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 17222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17223 export_dynamic_flag_spec_GCJ='${wl}-E' 17224 else 17225 case $host_os in 17226 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 17227 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 17228 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17229 ;; 17230 *) 17231 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 17232 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 17233 ;; 17234 esac 17235 fi 17236 ;; 17237 17238 os2*) 17239 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17240 hardcode_minus_L_GCJ=yes 17241 allow_undefined_flag_GCJ=unsupported 17242 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 17243 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 17244 ;; 17245 17246 osf3*) 17247 if test "$GCC" = yes; then 17248 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17249 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17250 else 17251 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17252 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17253 fi 17254 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17255 hardcode_libdir_separator_GCJ=: 17256 ;; 17257 17258 osf4* | osf5*) # as osf3* with the addition of -msym flag 17259 if test "$GCC" = yes; then 17260 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 17261 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 17262 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 17263 else 17264 allow_undefined_flag_GCJ=' -expect_unresolved \*' 17265 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 17266 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 17267 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' 17268 17269 # Both c and cxx compiler support -rpath directly 17270 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 17271 fi 17272 hardcode_libdir_separator_GCJ=: 17273 ;; 17274 17275 sco3.2v5*) 17276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17277 hardcode_shlibpath_var_GCJ=no 17278 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 17279 runpath_var=LD_RUN_PATH 17280 hardcode_runpath_var=yes 17281 ;; 17282 17283 solaris*) 17284 no_undefined_flag_GCJ=' -z text' 17285 if test "$GCC" = yes; then 17286 wlarc='${wl}' 17287 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17288 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17289 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 17290 else 17291 wlarc='' 17292 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17293 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17294 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17295 fi 17296 hardcode_libdir_flag_spec_GCJ='-R$libdir' 17297 hardcode_shlibpath_var_GCJ=no 17298 case $host_os in 17299 solaris2.[0-5] | solaris2.[0-5].*) ;; 17300 *) 17301 # The compiler driver will combine linker options so we 17302 # cannot just pass the convience library names through 17303 # without $wl, iff we do not link with $LD. 17304 # Luckily, gcc supports the same syntax we need for Sun Studio. 17305 # Supported since Solaris 2.6 (maybe 2.5.1?) 17306 case $wlarc in 17307 '') 17308 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 17309 *) 17310 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 17311 esac ;; 17312 esac 17313 link_all_deplibs_GCJ=yes 17314 ;; 17315 17316 sunos4*) 17317 if test "x$host_vendor" = xsequent; then 17318 # Use $CC to link under sequent, because it throws in some extra .o 17319 # files that make .init and .fini sections work. 17320 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 17321 else 17322 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 17323 fi 17324 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17325 hardcode_direct_GCJ=yes 17326 hardcode_minus_L_GCJ=yes 17327 hardcode_shlibpath_var_GCJ=no 17328 ;; 17329 17330 sysv4) 17331 case $host_vendor in 17332 sni) 17333 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17334 hardcode_direct_GCJ=yes # is this really true??? 17335 ;; 17336 siemens) 17337 ## LD is ld it makes a PLAMLIB 17338 ## CC just makes a GrossModule. 17339 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17340 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 17341 hardcode_direct_GCJ=no 17342 ;; 17343 motorola) 17344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17345 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 17346 ;; 17347 esac 17348 runpath_var='LD_RUN_PATH' 17349 hardcode_shlibpath_var_GCJ=no 17350 ;; 17351 17352 sysv4.3*) 17353 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17354 hardcode_shlibpath_var_GCJ=no 17355 export_dynamic_flag_spec_GCJ='-Bexport' 17356 ;; 17357 17358 sysv4*MP*) 17359 if test -d /usr/nec; then 17360 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17361 hardcode_shlibpath_var_GCJ=no 17362 runpath_var=LD_RUN_PATH 17363 hardcode_runpath_var=yes 17364 ld_shlibs_GCJ=yes 17365 fi 17366 ;; 17367 17368 sysv4.2uw2*) 17369 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 17370 hardcode_direct_GCJ=yes 17371 hardcode_minus_L_GCJ=no 17372 hardcode_shlibpath_var_GCJ=no 17373 hardcode_runpath_var=yes 17374 runpath_var=LD_RUN_PATH 17375 ;; 17376 17377 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 17378 no_undefined_flag_GCJ='${wl}-z ${wl}text' 17379 if test "$GCC" = yes; then 17380 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17381 else 17382 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 17383 fi 17384 runpath_var='LD_RUN_PATH' 17385 hardcode_shlibpath_var_GCJ=no 17386 ;; 17387 17388 sysv5*) 17389 no_undefined_flag_GCJ=' -z text' 17390 # $CC -shared without GNU ld will not create a library from C++ 17391 # object files and a static libstdc++, better avoid it by now 17392 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 17393 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 17394 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 17395 hardcode_libdir_flag_spec_GCJ= 17396 hardcode_shlibpath_var_GCJ=no 17397 runpath_var='LD_RUN_PATH' 17398 ;; 17399 17400 uts4*) 17401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 17402 hardcode_libdir_flag_spec_GCJ='-L$libdir' 17403 hardcode_shlibpath_var_GCJ=no 17404 ;; 17405 17406 *) 17407 ld_shlibs_GCJ=no 17408 ;; 17409 esac 17410 fi 17411 17412 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 17413 echo "${ECHO_T}$ld_shlibs_GCJ" >&6 17414 test "$ld_shlibs_GCJ" = no && can_build_shared=no 17415 17416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17417 if test "$GCC" = yes; then 17418 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17419 fi 17420 17421 # 17422 # Do we need to explicitly link libc? 17423 # 17424 case "x$archive_cmds_need_lc_GCJ" in 17425 x|xyes) 17426 # Assume -lc should be added 17427 archive_cmds_need_lc_GCJ=yes 17428 17429 if test "$enable_shared" = yes && test "$GCC" = yes; then 17430 case $archive_cmds_GCJ in 17431 *'~'*) 17432 # FIXME: we may have to deal with multi-command sequences. 17433 ;; 17434 '$CC '*) 17435 # Test whether the compiler implicitly links with -lc since on some 17436 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17437 # to ld, don't add -lc before -lgcc. 17438 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 17439 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 17440 $rm conftest* 17441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 17442 17443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17444 (eval $ac_compile) 2>&5 17445 ac_status=$? 17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17447 (exit $ac_status); } 2>conftest.err; then 17448 soname=conftest 17449 lib=conftest 17450 libobjs=conftest.$ac_objext 17451 deplibs= 17452 wl=$lt_prog_compiler_wl_GCJ 17453 compiler_flags=-v 17454 linker_flags=-v 17455 verstring= 17456 output_objdir=. 17457 libname=conftest 17458 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 17459 allow_undefined_flag_GCJ= 17460 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 17461 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 17462 ac_status=$? 17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17464 (exit $ac_status); } 17465 then 17466 archive_cmds_need_lc_GCJ=no 17467 else 17468 archive_cmds_need_lc_GCJ=yes 17469 fi 17470 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 17471 else 17472 cat conftest.err 1>&5 17473 fi 17474 $rm conftest* 17475 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 17476 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 17477 ;; 17478 esac 17479 fi 17480 ;; 17481 esac 17482 17483 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 17484 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 17485 library_names_spec= 17486 libname_spec='lib$name' 17487 soname_spec= 17488 shrext_cmds=".so" 17489 postinstall_cmds= 17490 postuninstall_cmds= 17491 finish_cmds= 17492 finish_eval= 17493 shlibpath_var= 17494 shlibpath_overrides_runpath=unknown 17495 version_type=none 17496 dynamic_linker="$host_os ld.so" 17497 sys_lib_dlsearch_path_spec="/lib /usr/lib" 17498 if test "$GCC" = yes; then 17499 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17500 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 17501 # if the path contains ";" then we assume it to be the separator 17502 # otherwise default to the standard path separator (i.e. ":") - it is 17503 # assumed that no part of a normal pathname contains ";" but that should 17504 # okay in the real world where ";" in dirpaths is itself problematic. 17505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17506 else 17507 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17508 fi 17509 else 17510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17511 fi 17512 need_lib_prefix=unknown 17513 hardcode_into_libs=no 17514 17515 # when you set need_version to no, make sure it does not cause -set_version 17516 # flags to be left without arguments 17517 need_version=unknown 17518 17519 case $host_os in 17520 aix3*) 17521 version_type=linux 17522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17523 shlibpath_var=LIBPATH 17524 17525 # AIX 3 has no versioning support, so we append a major version to the name. 17526 soname_spec='${libname}${release}${shared_ext}$major' 17527 ;; 17528 17529 aix4* | aix5*) 17530 version_type=linux 17531 need_lib_prefix=no 17532 need_version=no 17533 hardcode_into_libs=yes 17534 if test "$host_cpu" = ia64; then 17535 # AIX 5 supports IA64 17536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17537 shlibpath_var=LD_LIBRARY_PATH 17538 else 17539 # With GCC up to 2.95.x, collect2 would create an import file 17540 # for dependence libraries. The import file would start with 17541 # the line `#! .'. This would cause the generated library to 17542 # depend on `.', always an invalid library. This was fixed in 17543 # development snapshots of GCC prior to 3.0. 17544 case $host_os in 17545 aix4 | aix4.[01] | aix4.[01].*) 17546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17547 echo ' yes ' 17548 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 17549 : 17550 else 17551 can_build_shared=no 17552 fi 17553 ;; 17554 esac 17555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17556 # soname into executable. Probably we can add versioning support to 17557 # collect2, so additional links can be useful in future. 17558 if test "$aix_use_runtimelinking" = yes; then 17559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17560 # instead of lib<name>.a to let people know that these are not 17561 # typical AIX shared libraries. 17562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17563 else 17564 # We preserve .a as extension for shared libraries through AIX4.2 17565 # and later when we are not doing run time linking. 17566 library_names_spec='${libname}${release}.a $libname.a' 17567 soname_spec='${libname}${release}${shared_ext}$major' 17568 fi 17569 shlibpath_var=LIBPATH 17570 fi 17571 ;; 17572 17573 amigaos*) 17574 library_names_spec='$libname.ixlibrary $libname.a' 17575 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17576 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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' 17577 ;; 17578 17579 beos*) 17580 library_names_spec='${libname}${shared_ext}' 17581 dynamic_linker="$host_os ld.so" 17582 shlibpath_var=LIBRARY_PATH 17583 ;; 17584 17585 bsdi[45]*) 17586 version_type=linux 17587 need_version=no 17588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17589 soname_spec='${libname}${release}${shared_ext}$major' 17590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17591 shlibpath_var=LD_LIBRARY_PATH 17592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17594 # the default ld.so.conf also contains /usr/contrib/lib and 17595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17596 # libtool to hard-code these into programs 17597 ;; 17598 17599 cygwin* | mingw* | pw32*) 17600 version_type=windows 17601 shrext_cmds=".dll" 17602 need_version=no 17603 need_lib_prefix=no 17604 17605 case $GCC,$host_os in 17606 yes,cygwin* | yes,mingw* | yes,pw32*) 17607 library_names_spec='$libname.dll.a' 17608 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17609 postinstall_cmds='base_file=`basename \${file}`~ 17610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 17611 dldir=$destdir/`dirname \$dlpath`~ 17612 test -d \$dldir || mkdir -p \$dldir~ 17613 $install_prog $dir/$dlname \$dldir/$dlname~ 17614 chmod a+x \$dldir/$dlname' 17615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17616 dlpath=$dir/\$dldll~ 17617 $rm \$dlpath' 17618 shlibpath_overrides_runpath=yes 17619 17620 case $host_os in 17621 cygwin*) 17622 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17623 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17624 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 17625 ;; 17626 mingw*) 17627 # MinGW DLLs use traditional 'lib' prefix 17628 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17629 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 17630 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 17631 # It is most probably a Windows format PATH printed by 17632 # mingw gcc, but we are running on Cygwin. Gcc prints its search 17633 # path with ; separators, and with drive letters. We can handle the 17634 # drive letters (cygwin fileutils understands them), so leave them, 17635 # especially as we might pass files found there to a mingw objdump, 17636 # which wouldn't understand a cygwinified path. Ahh. 17637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17638 else 17639 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17640 fi 17641 ;; 17642 pw32*) 17643 # pw32 DLLs use 'pw' prefix rather than 'lib' 17644 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17645 ;; 17646 esac 17647 ;; 17648 17649 linux*) 17650 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 17651 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 17652 supports_anon_versioning=no 17653 case `$LD -v 2>/dev/null` in 17654 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 17655 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 17656 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 17657 *\ 2.11.*) ;; # other 2.11 versions 17658 *) supports_anon_versioning=yes ;; 17659 esac 17660 if test $supports_anon_versioning = yes; then 17661 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 17662 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 17663 $echo "local: *; };" >> $output_objdir/$libname.ver~ 17664 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 17665 else 17666 $archive_expsym_cmds="$archive_cmds" 17667 fi 17668 else 17669 ld_shlibs=no 17670 fi 17671 ;; 17672 17673 *) 17674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17675 ;; 17676 esac 17677 dynamic_linker='Win32 ld.exe' 17678 # FIXME: first we should search . and the directory the executable is in 17679 shlibpath_var=PATH 17680 ;; 17681 17682 darwin* | rhapsody*) 17683 dynamic_linker="$host_os dyld" 17684 version_type=darwin 17685 need_lib_prefix=no 17686 need_version=no 17687 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17688 soname_spec='${libname}${release}${major}$shared_ext' 17689 shlibpath_overrides_runpath=yes 17690 shlibpath_var=DYLD_LIBRARY_PATH 17691 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17692 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 17693 if test "$GCC" = yes; then 17694 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 17695 else 17696 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 17697 fi 17698 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17699 ;; 17700 17701 dgux*) 17702 version_type=linux 17703 need_lib_prefix=no 17704 need_version=no 17705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17706 soname_spec='${libname}${release}${shared_ext}$major' 17707 shlibpath_var=LD_LIBRARY_PATH 17708 ;; 17709 17710 freebsd1*) 17711 dynamic_linker=no 17712 ;; 17713 17714 kfreebsd*-gnu) 17715 version_type=linux 17716 need_lib_prefix=no 17717 need_version=no 17718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17719 soname_spec='${libname}${release}${shared_ext}$major' 17720 shlibpath_var=LD_LIBRARY_PATH 17721 shlibpath_overrides_runpath=no 17722 hardcode_into_libs=yes 17723 dynamic_linker='GNU ld.so' 17724 ;; 17725 17726 freebsd* | dragonfly*) 17727 # DragonFly does not have aout. When/if they implement a new 17728 # versioning mechanism, adjust this. 17729 if test -x /usr/bin/objformat; then 17730 objformat=`/usr/bin/objformat` 17731 else 17732 case $host_os in 17733 freebsd[123]*) objformat=aout ;; 17734 *) objformat=elf ;; 17735 esac 17736 fi 17737 version_type=freebsd-$objformat 17738 case $version_type in 17739 freebsd-elf*) 17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17741 need_version=no 17742 need_lib_prefix=no 17743 ;; 17744 freebsd-*) 17745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17746 need_version=yes 17747 ;; 17748 esac 17749 shlibpath_var=LD_LIBRARY_PATH 17750 case $host_os in 17751 freebsd2*) 17752 shlibpath_overrides_runpath=yes 17753 ;; 17754 freebsd3.[01]* | freebsdelf3.[01]*) 17755 shlibpath_overrides_runpath=yes 17756 hardcode_into_libs=yes 17757 ;; 17758 *) # from 3.2 on 17759 shlibpath_overrides_runpath=no 17760 hardcode_into_libs=yes 17761 ;; 17762 esac 17763 ;; 17764 17765 gnu*) 17766 version_type=linux 17767 need_lib_prefix=no 17768 need_version=no 17769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17770 soname_spec='${libname}${release}${shared_ext}$major' 17771 shlibpath_var=LD_LIBRARY_PATH 17772 hardcode_into_libs=yes 17773 ;; 17774 17775 hpux9* | hpux10* | hpux11*) 17776 # Give a soname corresponding to the major version so that dld.sl refuses to 17777 # link against other versions. 17778 version_type=sunos 17779 need_lib_prefix=no 17780 need_version=no 17781 case $host_cpu in 17782 ia64*) 17783 shrext_cmds='.so' 17784 hardcode_into_libs=yes 17785 dynamic_linker="$host_os dld.so" 17786 shlibpath_var=LD_LIBRARY_PATH 17787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17789 soname_spec='${libname}${release}${shared_ext}$major' 17790 if test "X$HPUX_IA64_MODE" = X32; then 17791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17792 else 17793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17794 fi 17795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17796 ;; 17797 hppa*64*) 17798 shrext_cmds='.sl' 17799 hardcode_into_libs=yes 17800 dynamic_linker="$host_os dld.sl" 17801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17804 soname_spec='${libname}${release}${shared_ext}$major' 17805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17807 ;; 17808 *) 17809 shrext_cmds='.sl' 17810 dynamic_linker="$host_os dld.sl" 17811 shlibpath_var=SHLIB_PATH 17812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17814 soname_spec='${libname}${release}${shared_ext}$major' 17815 ;; 17816 esac 17817 # HP-UX runs *really* slowly unless shared libraries are mode 555. 17818 postinstall_cmds='chmod 555 $lib' 17819 ;; 17820 17821 irix5* | irix6* | nonstopux*) 17822 case $host_os in 17823 nonstopux*) version_type=nonstopux ;; 17824 *) 17825 if test "$lt_cv_prog_gnu_ld" = yes; then 17826 version_type=linux 17827 else 17828 version_type=irix 17829 fi ;; 17830 esac 17831 need_lib_prefix=no 17832 need_version=no 17833 soname_spec='${libname}${release}${shared_ext}$major' 17834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17835 case $host_os in 17836 irix5* | nonstopux*) 17837 libsuff= shlibsuff= 17838 ;; 17839 *) 17840 case $LD in # libtool.m4 will add one of these switches to LD 17841 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17842 libsuff= shlibsuff= libmagic=32-bit;; 17843 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17844 libsuff=32 shlibsuff=N32 libmagic=N32;; 17845 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17846 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17847 *) libsuff= shlibsuff= libmagic=never-match;; 17848 esac 17849 ;; 17850 esac 17851 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17852 shlibpath_overrides_runpath=no 17853 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17854 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17855 hardcode_into_libs=yes 17856 ;; 17857 17858 # No shared lib support for Linux oldld, aout, or coff. 17859 linux*oldld* | linux*aout* | linux*coff*) 17860 dynamic_linker=no 17861 ;; 17862 17863 # This must be Linux ELF. 17864 linux*) 17865 version_type=linux 17866 need_lib_prefix=no 17867 need_version=no 17868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17869 soname_spec='${libname}${release}${shared_ext}$major' 17870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17871 shlibpath_var=LD_LIBRARY_PATH 17872 shlibpath_overrides_runpath=no 17873 # This implies no fast_install, which is unacceptable. 17874 # Some rework will be needed to allow for fast_install 17875 # before this can be enabled. 17876 hardcode_into_libs=yes 17877 17878 # Append ld.so.conf contents to the search path 17879 if test -f /etc/ld.so.conf; then 17880 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 17881 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17882 fi 17883 17884 case $host_cpu:$lt_cv_cc_64bit_output in 17885 powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes) 17886 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /usr/X11R6/lib64" 17887 sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /usr/X11R6/lib64" 17888 ;; 17889 esac 17890 17891 # We used to test for /lib/ld.so.1 and disable shared libraries on 17892 # powerpc, because MkLinux only supported shared libraries with the 17893 # GNU dynamic linker. Since this was broken with cross compilers, 17894 # most powerpc-linux boxes support dynamic linking these days and 17895 # people can always --disable-shared, the test was removed, and we 17896 # assume the GNU/Linux dynamic linker is in use. 17897 dynamic_linker='GNU/Linux ld.so' 17898 17899 # Find out which ABI we are using (multilib Linux x86_64 hack). 17900 libsuff= 17901 case "$host_cpu" in 17902 x86_64*) 17903 echo '#line 17903 "configure"' > conftest.$ac_ext 17904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17905 (eval $ac_compile) 2>&5 17906 ac_status=$? 17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17908 (exit $ac_status); }; then 17909 case `/usr/bin/file conftest.$ac_objext` in 17910 *64-bit*) 17911 libsuff=64 17912 ;; 17913 esac 17914 fi 17915 rm -rf conftest* 17916 ;; 17917 *) 17918 ;; 17919 esac 17920 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}" 17921 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" 17922 ;; 17923 17924 knetbsd*-gnu) 17925 version_type=linux 17926 need_lib_prefix=no 17927 need_version=no 17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17929 soname_spec='${libname}${release}${shared_ext}$major' 17930 shlibpath_var=LD_LIBRARY_PATH 17931 shlibpath_overrides_runpath=no 17932 hardcode_into_libs=yes 17933 dynamic_linker='GNU ld.so' 17934 ;; 17935 17936 netbsd*) 17937 version_type=sunos 17938 need_lib_prefix=no 17939 need_version=no 17940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17943 dynamic_linker='NetBSD (a.out) ld.so' 17944 else 17945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17946 soname_spec='${libname}${release}${shared_ext}$major' 17947 dynamic_linker='NetBSD ld.elf_so' 17948 fi 17949 shlibpath_var=LD_LIBRARY_PATH 17950 shlibpath_overrides_runpath=yes 17951 hardcode_into_libs=yes 17952 ;; 17953 17954 newsos6) 17955 version_type=linux 17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17957 shlibpath_var=LD_LIBRARY_PATH 17958 shlibpath_overrides_runpath=yes 17959 ;; 17960 17961 nto-qnx*) 17962 version_type=linux 17963 need_lib_prefix=no 17964 need_version=no 17965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17966 soname_spec='${libname}${release}${shared_ext}$major' 17967 shlibpath_var=LD_LIBRARY_PATH 17968 shlibpath_overrides_runpath=yes 17969 ;; 17970 17971 openbsd*) 17972 version_type=sunos 17973 need_lib_prefix=no 17974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17975 case $host_os in 17976 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17977 *) need_version=no ;; 17978 esac 17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17981 shlibpath_var=LD_LIBRARY_PATH 17982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17983 case $host_os in 17984 openbsd2.[89] | openbsd2.[89].*) 17985 shlibpath_overrides_runpath=no 17986 ;; 17987 *) 17988 shlibpath_overrides_runpath=yes 17989 ;; 17990 esac 17991 else 17992 shlibpath_overrides_runpath=yes 17993 fi 17994 ;; 17995 17996 os2*) 17997 libname_spec='$name' 17998 shrext_cmds=".dll" 17999 need_lib_prefix=no 18000 library_names_spec='$libname${shared_ext} $libname.a' 18001 dynamic_linker='OS/2 ld.exe' 18002 shlibpath_var=LIBPATH 18003 ;; 18004 18005 osf3* | osf4* | osf5*) 18006 version_type=osf 18007 need_lib_prefix=no 18008 need_version=no 18009 soname_spec='${libname}${release}${shared_ext}$major' 18010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18011 shlibpath_var=LD_LIBRARY_PATH 18012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18014 ;; 18015 18016 sco3.2v5*) 18017 version_type=osf 18018 soname_spec='${libname}${release}${shared_ext}$major' 18019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18020 shlibpath_var=LD_LIBRARY_PATH 18021 ;; 18022 18023 solaris*) 18024 version_type=linux 18025 need_lib_prefix=no 18026 need_version=no 18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18028 soname_spec='${libname}${release}${shared_ext}$major' 18029 shlibpath_var=LD_LIBRARY_PATH 18030 shlibpath_overrides_runpath=yes 18031 hardcode_into_libs=yes 18032 # ldd complains unless libraries are executable 18033 postinstall_cmds='chmod +x $lib' 18034 ;; 18035 18036 sunos4*) 18037 version_type=sunos 18038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18039 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18040 shlibpath_var=LD_LIBRARY_PATH 18041 shlibpath_overrides_runpath=yes 18042 if test "$with_gnu_ld" = yes; then 18043 need_lib_prefix=no 18044 fi 18045 need_version=yes 18046 ;; 18047 18048 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 18049 version_type=linux 18050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18051 soname_spec='${libname}${release}${shared_ext}$major' 18052 shlibpath_var=LD_LIBRARY_PATH 18053 case $host_vendor in 18054 sni) 18055 shlibpath_overrides_runpath=no 18056 need_lib_prefix=no 18057 export_dynamic_flag_spec='${wl}-Blargedynsym' 18058 runpath_var=LD_RUN_PATH 18059 ;; 18060 siemens) 18061 need_lib_prefix=no 18062 ;; 18063 motorola) 18064 need_lib_prefix=no 18065 need_version=no 18066 shlibpath_overrides_runpath=no 18067 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18068 ;; 18069 esac 18070 ;; 18071 18072 sysv4*MP*) 18073 if test -d /usr/nec ;then 18074 version_type=linux 18075 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18076 soname_spec='$libname${shared_ext}.$major' 18077 shlibpath_var=LD_LIBRARY_PATH 18078 fi 18079 ;; 18080 18081 uts4*) 18082 version_type=linux 18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18084 soname_spec='${libname}${release}${shared_ext}$major' 18085 shlibpath_var=LD_LIBRARY_PATH 18086 ;; 18087 18088 *) 18089 dynamic_linker=no 18090 ;; 18091 esac 18092 echo "$as_me:$LINENO: result: $dynamic_linker" >&5 18093 echo "${ECHO_T}$dynamic_linker" >&6 18094 test "$dynamic_linker" = no && can_build_shared=no 18095 18096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 18097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 18098 hardcode_action_GCJ= 18099 if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 18100 test -n "$runpath_var_GCJ" || \ 18101 test "X$hardcode_automatic_GCJ" = "Xyes" ; then 18102 18103 # We can hardcode non-existant directories. 18104 if test "$hardcode_direct_GCJ" != no && 18105 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18106 # have to relink, otherwise we might link with an installed library 18107 # when we should be linking with a yet-to-be-installed one 18108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 18109 test "$hardcode_minus_L_GCJ" != no; then 18110 # Linking always hardcodes the temporary library directory. 18111 hardcode_action_GCJ=relink 18112 else 18113 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18114 hardcode_action_GCJ=immediate 18115 fi 18116 else 18117 # We cannot hardcode anything, or else we can only hardcode existing 18118 # directories. 18119 hardcode_action_GCJ=unsupported 18120 fi 18121 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 18122 echo "${ECHO_T}$hardcode_action_GCJ" >&6 18123 18124 if test "$hardcode_action_GCJ" = relink; then 18125 # Fast installation is not supported 18126 enable_fast_install=no 18127 elif test "$shlibpath_overrides_runpath" = yes || 18128 test "$enable_shared" = no; then 18129 # Fast installation is not necessary 18130 enable_fast_install=needless 18131 fi 18132 18133 striplib= 18134 old_striplib= 18135 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 18136 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 18137 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 18138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18139 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18140 echo "$as_me:$LINENO: result: yes" >&5 18141 echo "${ECHO_T}yes" >&6 18142 else 18143 # FIXME - insert some real tests, host_os isn't really good enough 18144 case $host_os in 18145 darwin*) 18146 if test -n "$STRIP" ; then 18147 striplib="$STRIP -x" 18148 echo "$as_me:$LINENO: result: yes" >&5 18149 echo "${ECHO_T}yes" >&6 18150 else 18151 echo "$as_me:$LINENO: result: no" >&5 18152 echo "${ECHO_T}no" >&6 18153 fi 18154 ;; 18155 *) 18156 echo "$as_me:$LINENO: result: no" >&5 18157 echo "${ECHO_T}no" >&6 18158 ;; 18159 esac 18160 fi 18161 18162 if test "x$enable_dlopen" != xyes; then 18163 enable_dlopen=unknown 18164 enable_dlopen_self=unknown 18165 enable_dlopen_self_static=unknown 18166 else 18167 lt_cv_dlopen=no 18168 lt_cv_dlopen_libs= 18169 18170 case $host_os in 18171 beos*) 18172 lt_cv_dlopen="load_add_on" 18173 lt_cv_dlopen_libs= 18174 lt_cv_dlopen_self=yes 18175 ;; 18176 18177 mingw* | pw32*) 18178 lt_cv_dlopen="LoadLibrary" 18179 lt_cv_dlopen_libs= 18180 ;; 18181 18182 cygwin*) 18183 lt_cv_dlopen="dlopen" 18184 lt_cv_dlopen_libs= 18185 ;; 18186 18187 darwin*) 18188 # if libdl is installed we need to link against it 18189 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18190 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18191 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18192 echo $ECHO_N "(cached) $ECHO_C" >&6 18193 else 18194 ac_check_lib_save_LIBS=$LIBS 18195 LIBS="-ldl $LIBS" 18196 cat >conftest.$ac_ext <<_ACEOF 18197 /* confdefs.h. */ 18198 _ACEOF 18199 cat confdefs.h >>conftest.$ac_ext 18200 cat >>conftest.$ac_ext <<_ACEOF 18201 /* end confdefs.h. */ 18202 18203 /* Override any gcc2 internal prototype to avoid an error. */ 18204 #ifdef __cplusplus 18205 extern "C" 18206 #endif 18207 /* We use char because int might match the return type of a gcc2 18208 builtin and then its argument prototype would still apply. */ 18209 char dlopen (); 18210 int 18211 main () 18212 { 18213 dlopen (); 18214 ; 18215 return 0; 18216 } 18217 _ACEOF 18218 rm -f conftest.$ac_objext conftest$ac_exeext 18219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18220 (eval $ac_link) 2>conftest.er1 18221 ac_status=$? 18222 grep -v '^ *+' conftest.er1 >conftest.err 18223 rm -f conftest.er1 18224 cat conftest.err >&5 18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18226 (exit $ac_status); } && 18227 { ac_try='test -z "$ac_c_werror_flag" 18228 || test ! -s conftest.err' 18229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18230 (eval $ac_try) 2>&5 18231 ac_status=$? 18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18233 (exit $ac_status); }; } && 18234 { ac_try='test -s conftest$ac_exeext' 18235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18236 (eval $ac_try) 2>&5 18237 ac_status=$? 18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18239 (exit $ac_status); }; }; then 18240 ac_cv_lib_dl_dlopen=yes 18241 else 18242 echo "$as_me: failed program was:" >&5 18243 sed 's/^/| /' conftest.$ac_ext >&5 18244 18245 ac_cv_lib_dl_dlopen=no 18246 fi 18247 rm -f conftest.err conftest.$ac_objext \ 18248 conftest$ac_exeext conftest.$ac_ext 18249 LIBS=$ac_check_lib_save_LIBS 18250 fi 18251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18253 if test $ac_cv_lib_dl_dlopen = yes; then 18254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18255 else 18256 18257 lt_cv_dlopen="dyld" 18258 lt_cv_dlopen_libs= 18259 lt_cv_dlopen_self=yes 18260 18261 fi 18262 18263 ;; 18264 18265 *) 18266 echo "$as_me:$LINENO: checking for shl_load" >&5 18267 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 18268 if test "${ac_cv_func_shl_load+set}" = set; then 18269 echo $ECHO_N "(cached) $ECHO_C" >&6 18270 else 18271 cat >conftest.$ac_ext <<_ACEOF 18272 /* confdefs.h. */ 18273 _ACEOF 18274 cat confdefs.h >>conftest.$ac_ext 18275 cat >>conftest.$ac_ext <<_ACEOF 18276 /* end confdefs.h. */ 18277 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 18278 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18279 #define shl_load innocuous_shl_load 18280 18281 /* System header to define __stub macros and hopefully few prototypes, 18282 which can conflict with char shl_load (); below. 18283 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18284 <limits.h> exists even on freestanding compilers. */ 18285 18286 #ifdef __STDC__ 18287 # include <limits.h> 18288 #else 18289 # include <assert.h> 18290 #endif 18291 18292 #undef shl_load 18293 18294 /* Override any gcc2 internal prototype to avoid an error. */ 18295 #ifdef __cplusplus 18296 extern "C" 18297 { 18298 #endif 18299 /* We use char because int might match the return type of a gcc2 18300 builtin and then its argument prototype would still apply. */ 18301 char shl_load (); 18302 /* The GNU C library defines this for functions which it implements 18303 to always fail with ENOSYS. Some functions are actually named 18304 something starting with __ and the normal name is an alias. */ 18305 #if defined (__stub_shl_load) || defined (__stub___shl_load) 18306 choke me 18307 #else 18308 char (*f) () = shl_load; 18309 #endif 18310 #ifdef __cplusplus 18311 } 18312 #endif 18313 18314 int 18315 main () 18316 { 18317 return f != shl_load; 18318 ; 18319 return 0; 18320 } 18321 _ACEOF 18322 rm -f conftest.$ac_objext conftest$ac_exeext 18323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18324 (eval $ac_link) 2>conftest.er1 18325 ac_status=$? 18326 grep -v '^ *+' conftest.er1 >conftest.err 18327 rm -f conftest.er1 18328 cat conftest.err >&5 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); } && 18331 { ac_try='test -z "$ac_c_werror_flag" 18332 || test ! -s conftest.err' 18333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18334 (eval $ac_try) 2>&5 18335 ac_status=$? 18336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18337 (exit $ac_status); }; } && 18338 { ac_try='test -s conftest$ac_exeext' 18339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18340 (eval $ac_try) 2>&5 18341 ac_status=$? 18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18343 (exit $ac_status); }; }; then 18344 ac_cv_func_shl_load=yes 18345 else 18346 echo "$as_me: failed program was:" >&5 18347 sed 's/^/| /' conftest.$ac_ext >&5 18348 18349 ac_cv_func_shl_load=no 18350 fi 18351 rm -f conftest.err conftest.$ac_objext \ 18352 conftest$ac_exeext conftest.$ac_ext 18353 fi 18354 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 18355 echo "${ECHO_T}$ac_cv_func_shl_load" >&6 18356 if test $ac_cv_func_shl_load = yes; then 18357 lt_cv_dlopen="shl_load" 18358 else 18359 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 18360 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 18361 if test "${ac_cv_lib_dld_shl_load+set}" = set; then 18362 echo $ECHO_N "(cached) $ECHO_C" >&6 18363 else 18364 ac_check_lib_save_LIBS=$LIBS 18365 LIBS="-ldld $LIBS" 18366 cat >conftest.$ac_ext <<_ACEOF 18367 /* confdefs.h. */ 18368 _ACEOF 18369 cat confdefs.h >>conftest.$ac_ext 18370 cat >>conftest.$ac_ext <<_ACEOF 18371 /* end confdefs.h. */ 18372 18373 /* Override any gcc2 internal prototype to avoid an error. */ 18374 #ifdef __cplusplus 18375 extern "C" 18376 #endif 18377 /* We use char because int might match the return type of a gcc2 18378 builtin and then its argument prototype would still apply. */ 18379 char shl_load (); 18380 int 18381 main () 18382 { 18383 shl_load (); 18384 ; 18385 return 0; 18386 } 18387 _ACEOF 18388 rm -f conftest.$ac_objext conftest$ac_exeext 18389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18390 (eval $ac_link) 2>conftest.er1 18391 ac_status=$? 18392 grep -v '^ *+' conftest.er1 >conftest.err 18393 rm -f conftest.er1 18394 cat conftest.err >&5 18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18396 (exit $ac_status); } && 18397 { ac_try='test -z "$ac_c_werror_flag" 18398 || test ! -s conftest.err' 18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18400 (eval $ac_try) 2>&5 18401 ac_status=$? 18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18403 (exit $ac_status); }; } && 18404 { ac_try='test -s conftest$ac_exeext' 18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18406 (eval $ac_try) 2>&5 18407 ac_status=$? 18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18409 (exit $ac_status); }; }; then 18410 ac_cv_lib_dld_shl_load=yes 18411 else 18412 echo "$as_me: failed program was:" >&5 18413 sed 's/^/| /' conftest.$ac_ext >&5 18414 18415 ac_cv_lib_dld_shl_load=no 18416 fi 18417 rm -f conftest.err conftest.$ac_objext \ 18418 conftest$ac_exeext conftest.$ac_ext 18419 LIBS=$ac_check_lib_save_LIBS 18420 fi 18421 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 18422 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 18423 if test $ac_cv_lib_dld_shl_load = yes; then 18424 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 18425 else 18426 echo "$as_me:$LINENO: checking for dlopen" >&5 18427 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 18428 if test "${ac_cv_func_dlopen+set}" = set; then 18429 echo $ECHO_N "(cached) $ECHO_C" >&6 18430 else 18431 cat >conftest.$ac_ext <<_ACEOF 18432 /* confdefs.h. */ 18433 _ACEOF 18434 cat confdefs.h >>conftest.$ac_ext 18435 cat >>conftest.$ac_ext <<_ACEOF 18436 /* end confdefs.h. */ 18437 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 18438 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 18439 #define dlopen innocuous_dlopen 18440 18441 /* System header to define __stub macros and hopefully few prototypes, 18442 which can conflict with char dlopen (); below. 18443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18444 <limits.h> exists even on freestanding compilers. */ 18445 18446 #ifdef __STDC__ 18447 # include <limits.h> 18448 #else 18449 # include <assert.h> 18450 #endif 18451 18452 #undef dlopen 18453 18454 /* Override any gcc2 internal prototype to avoid an error. */ 18455 #ifdef __cplusplus 18456 extern "C" 18457 { 18458 #endif 18459 /* We use char because int might match the return type of a gcc2 18460 builtin and then its argument prototype would still apply. */ 18461 char dlopen (); 18462 /* The GNU C library defines this for functions which it implements 18463 to always fail with ENOSYS. Some functions are actually named 18464 something starting with __ and the normal name is an alias. */ 18465 #if defined (__stub_dlopen) || defined (__stub___dlopen) 18466 choke me 18467 #else 18468 char (*f) () = dlopen; 18469 #endif 18470 #ifdef __cplusplus 18471 } 18472 #endif 18473 18474 int 18475 main () 18476 { 18477 return f != dlopen; 18478 ; 18479 return 0; 18480 } 18481 _ACEOF 18482 rm -f conftest.$ac_objext conftest$ac_exeext 18483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18484 (eval $ac_link) 2>conftest.er1 18485 ac_status=$? 18486 grep -v '^ *+' conftest.er1 >conftest.err 18487 rm -f conftest.er1 18488 cat conftest.err >&5 18489 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18490 (exit $ac_status); } && 18491 { ac_try='test -z "$ac_c_werror_flag" 18492 || test ! -s conftest.err' 18493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18494 (eval $ac_try) 2>&5 18495 ac_status=$? 18496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18497 (exit $ac_status); }; } && 18498 { ac_try='test -s conftest$ac_exeext' 18499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18500 (eval $ac_try) 2>&5 18501 ac_status=$? 18502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18503 (exit $ac_status); }; }; then 18504 ac_cv_func_dlopen=yes 18505 else 18506 echo "$as_me: failed program was:" >&5 18507 sed 's/^/| /' conftest.$ac_ext >&5 18508 18509 ac_cv_func_dlopen=no 18510 fi 18511 rm -f conftest.err conftest.$ac_objext \ 18512 conftest$ac_exeext conftest.$ac_ext 18513 fi 18514 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 18515 echo "${ECHO_T}$ac_cv_func_dlopen" >&6 18516 if test $ac_cv_func_dlopen = yes; then 18517 lt_cv_dlopen="dlopen" 18518 else 18519 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 18520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 18521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then 18522 echo $ECHO_N "(cached) $ECHO_C" >&6 18523 else 18524 ac_check_lib_save_LIBS=$LIBS 18525 LIBS="-ldl $LIBS" 18526 cat >conftest.$ac_ext <<_ACEOF 18527 /* confdefs.h. */ 18528 _ACEOF 18529 cat confdefs.h >>conftest.$ac_ext 18530 cat >>conftest.$ac_ext <<_ACEOF 18531 /* end confdefs.h. */ 18532 18533 /* Override any gcc2 internal prototype to avoid an error. */ 18534 #ifdef __cplusplus 18535 extern "C" 18536 #endif 18537 /* We use char because int might match the return type of a gcc2 18538 builtin and then its argument prototype would still apply. */ 18539 char dlopen (); 18540 int 18541 main () 18542 { 18543 dlopen (); 18544 ; 18545 return 0; 18546 } 18547 _ACEOF 18548 rm -f conftest.$ac_objext conftest$ac_exeext 18549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18550 (eval $ac_link) 2>conftest.er1 18551 ac_status=$? 18552 grep -v '^ *+' conftest.er1 >conftest.err 18553 rm -f conftest.er1 18554 cat conftest.err >&5 18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18556 (exit $ac_status); } && 18557 { ac_try='test -z "$ac_c_werror_flag" 18558 || test ! -s conftest.err' 18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18560 (eval $ac_try) 2>&5 18561 ac_status=$? 18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18563 (exit $ac_status); }; } && 18564 { ac_try='test -s conftest$ac_exeext' 18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18566 (eval $ac_try) 2>&5 18567 ac_status=$? 18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18569 (exit $ac_status); }; }; then 18570 ac_cv_lib_dl_dlopen=yes 18571 else 18572 echo "$as_me: failed program was:" >&5 18573 sed 's/^/| /' conftest.$ac_ext >&5 18574 18575 ac_cv_lib_dl_dlopen=no 18576 fi 18577 rm -f conftest.err conftest.$ac_objext \ 18578 conftest$ac_exeext conftest.$ac_ext 18579 LIBS=$ac_check_lib_save_LIBS 18580 fi 18581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 18582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 18583 if test $ac_cv_lib_dl_dlopen = yes; then 18584 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18585 else 18586 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 18587 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 18588 if test "${ac_cv_lib_svld_dlopen+set}" = set; then 18589 echo $ECHO_N "(cached) $ECHO_C" >&6 18590 else 18591 ac_check_lib_save_LIBS=$LIBS 18592 LIBS="-lsvld $LIBS" 18593 cat >conftest.$ac_ext <<_ACEOF 18594 /* confdefs.h. */ 18595 _ACEOF 18596 cat confdefs.h >>conftest.$ac_ext 18597 cat >>conftest.$ac_ext <<_ACEOF 18598 /* end confdefs.h. */ 18599 18600 /* Override any gcc2 internal prototype to avoid an error. */ 18601 #ifdef __cplusplus 18602 extern "C" 18603 #endif 18604 /* We use char because int might match the return type of a gcc2 18605 builtin and then its argument prototype would still apply. */ 18606 char dlopen (); 18607 int 18608 main () 18609 { 18610 dlopen (); 18611 ; 18612 return 0; 18613 } 18614 _ACEOF 18615 rm -f conftest.$ac_objext conftest$ac_exeext 18616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18617 (eval $ac_link) 2>conftest.er1 18618 ac_status=$? 18619 grep -v '^ *+' conftest.er1 >conftest.err 18620 rm -f conftest.er1 18621 cat conftest.err >&5 18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18623 (exit $ac_status); } && 18624 { ac_try='test -z "$ac_c_werror_flag" 18625 || test ! -s conftest.err' 18626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18627 (eval $ac_try) 2>&5 18628 ac_status=$? 18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18630 (exit $ac_status); }; } && 18631 { ac_try='test -s conftest$ac_exeext' 18632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18633 (eval $ac_try) 2>&5 18634 ac_status=$? 18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18636 (exit $ac_status); }; }; then 18637 ac_cv_lib_svld_dlopen=yes 18638 else 18639 echo "$as_me: failed program was:" >&5 18640 sed 's/^/| /' conftest.$ac_ext >&5 18641 18642 ac_cv_lib_svld_dlopen=no 18643 fi 18644 rm -f conftest.err conftest.$ac_objext \ 18645 conftest$ac_exeext conftest.$ac_ext 18646 LIBS=$ac_check_lib_save_LIBS 18647 fi 18648 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 18649 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 18650 if test $ac_cv_lib_svld_dlopen = yes; then 18651 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18652 else 18653 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 18654 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 18655 if test "${ac_cv_lib_dld_dld_link+set}" = set; then 18656 echo $ECHO_N "(cached) $ECHO_C" >&6 18657 else 18658 ac_check_lib_save_LIBS=$LIBS 18659 LIBS="-ldld $LIBS" 18660 cat >conftest.$ac_ext <<_ACEOF 18661 /* confdefs.h. */ 18662 _ACEOF 18663 cat confdefs.h >>conftest.$ac_ext 18664 cat >>conftest.$ac_ext <<_ACEOF 18665 /* end confdefs.h. */ 18666 18667 /* Override any gcc2 internal prototype to avoid an error. */ 18668 #ifdef __cplusplus 18669 extern "C" 18670 #endif 18671 /* We use char because int might match the return type of a gcc2 18672 builtin and then its argument prototype would still apply. */ 18673 char dld_link (); 18674 int 18675 main () 18676 { 18677 dld_link (); 18678 ; 18679 return 0; 18680 } 18681 _ACEOF 18682 rm -f conftest.$ac_objext conftest$ac_exeext 18683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18684 (eval $ac_link) 2>conftest.er1 18685 ac_status=$? 18686 grep -v '^ *+' conftest.er1 >conftest.err 18687 rm -f conftest.er1 18688 cat conftest.err >&5 18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18690 (exit $ac_status); } && 18691 { ac_try='test -z "$ac_c_werror_flag" 18692 || test ! -s conftest.err' 18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18694 (eval $ac_try) 2>&5 18695 ac_status=$? 18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18697 (exit $ac_status); }; } && 18698 { ac_try='test -s conftest$ac_exeext' 18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18700 (eval $ac_try) 2>&5 18701 ac_status=$? 18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18703 (exit $ac_status); }; }; then 18704 ac_cv_lib_dld_dld_link=yes 18705 else 18706 echo "$as_me: failed program was:" >&5 18707 sed 's/^/| /' conftest.$ac_ext >&5 18708 18709 ac_cv_lib_dld_dld_link=no 18710 fi 18711 rm -f conftest.err conftest.$ac_objext \ 18712 conftest$ac_exeext conftest.$ac_ext 18713 LIBS=$ac_check_lib_save_LIBS 18714 fi 18715 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 18716 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 18717 if test $ac_cv_lib_dld_dld_link = yes; then 18718 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 18719 fi 18720 18721 18722 fi 18723 18724 18725 fi 18726 18727 18728 fi 18729 18730 18731 fi 18732 18733 18734 fi 18735 18736 ;; 18737 esac 18738 18739 if test "x$lt_cv_dlopen" != xno; then 18740 enable_dlopen=yes 18741 else 18742 enable_dlopen=no 18743 fi 18744 18745 case $lt_cv_dlopen in 18746 dlopen) 18747 save_CPPFLAGS="$CPPFLAGS" 18748 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18749 18750 save_LDFLAGS="$LDFLAGS" 18751 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18752 18753 save_LIBS="$LIBS" 18754 LIBS="$lt_cv_dlopen_libs $LIBS" 18755 18756 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 18757 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 18758 if test "${lt_cv_dlopen_self+set}" = set; then 18759 echo $ECHO_N "(cached) $ECHO_C" >&6 18760 else 18761 if test "$cross_compiling" = yes; then : 18762 lt_cv_dlopen_self=cross 18763 else 18764 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18765 lt_status=$lt_dlunknown 18766 cat > conftest.$ac_ext <<EOF 18767 #line 18767 "configure" 18768 #include "confdefs.h" 18769 18770 #if HAVE_DLFCN_H 18771 #include <dlfcn.h> 18772 #endif 18773 18774 #include <stdio.h> 18775 18776 #ifdef RTLD_GLOBAL 18777 # define LT_DLGLOBAL RTLD_GLOBAL 18778 #else 18779 # ifdef DL_GLOBAL 18780 # define LT_DLGLOBAL DL_GLOBAL 18781 # else 18782 # define LT_DLGLOBAL 0 18783 # endif 18784 #endif 18785 18786 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18787 find out it does not work in some platform. */ 18788 #ifndef LT_DLLAZY_OR_NOW 18789 # ifdef RTLD_LAZY 18790 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18791 # else 18792 # ifdef DL_LAZY 18793 # define LT_DLLAZY_OR_NOW DL_LAZY 18794 # else 18795 # ifdef RTLD_NOW 18796 # define LT_DLLAZY_OR_NOW RTLD_NOW 18797 # else 18798 # ifdef DL_NOW 18799 # define LT_DLLAZY_OR_NOW DL_NOW 18800 # else 18801 # define LT_DLLAZY_OR_NOW 0 18802 # endif 18803 # endif 18804 # endif 18805 # endif 18806 #endif 18807 18808 #ifdef __cplusplus 18809 extern "C" void exit (int); 18810 #endif 18811 18812 void fnord() { int i=42;} 18813 int main () 18814 { 18815 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18816 int status = $lt_dlunknown; 18817 18818 if (self) 18819 { 18820 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18821 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18822 /* dlclose (self); */ 18823 } 18824 18825 exit (status); 18826 } 18827 EOF 18828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18829 (eval $ac_link) 2>&5 18830 ac_status=$? 18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18832 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18833 (./conftest; exit; ) >&5 2>/dev/null 18834 lt_status=$? 18835 case x$lt_status in 18836 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18837 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18838 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 18839 esac 18840 else : 18841 # compilation failed 18842 lt_cv_dlopen_self=no 18843 fi 18844 fi 18845 rm -fr conftest* 18846 18847 18848 fi 18849 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 18850 echo "${ECHO_T}$lt_cv_dlopen_self" >&6 18851 18852 if test "x$lt_cv_dlopen_self" = xyes; then 18853 LDFLAGS="$LDFLAGS $link_static_flag" 18854 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 18855 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 18856 if test "${lt_cv_dlopen_self_static+set}" = set; then 18857 echo $ECHO_N "(cached) $ECHO_C" >&6 18858 else 18859 if test "$cross_compiling" = yes; then : 18860 lt_cv_dlopen_self_static=cross 18861 else 18862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18863 lt_status=$lt_dlunknown 18864 cat > conftest.$ac_ext <<EOF 18865 #line 18865 "configure" 18866 #include "confdefs.h" 18867 18868 #if HAVE_DLFCN_H 18869 #include <dlfcn.h> 18870 #endif 18871 18872 #include <stdio.h> 18873 18874 #ifdef RTLD_GLOBAL 18875 # define LT_DLGLOBAL RTLD_GLOBAL 18876 #else 18877 # ifdef DL_GLOBAL 18878 # define LT_DLGLOBAL DL_GLOBAL 18879 # else 18880 # define LT_DLGLOBAL 0 18881 # endif 18882 #endif 18883 18884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18885 find out it does not work in some platform. */ 18886 #ifndef LT_DLLAZY_OR_NOW 18887 # ifdef RTLD_LAZY 18888 # define LT_DLLAZY_OR_NOW RTLD_LAZY 18889 # else 18890 # ifdef DL_LAZY 18891 # define LT_DLLAZY_OR_NOW DL_LAZY 18892 # else 18893 # ifdef RTLD_NOW 18894 # define LT_DLLAZY_OR_NOW RTLD_NOW 18895 # else 18896 # ifdef DL_NOW 18897 # define LT_DLLAZY_OR_NOW DL_NOW 18898 # else 18899 # define LT_DLLAZY_OR_NOW 0 18900 # endif 18901 # endif 18902 # endif 18903 # endif 18904 #endif 18905 18906 #ifdef __cplusplus 18907 extern "C" void exit (int); 18908 #endif 18909 18910 void fnord() { int i=42;} 18911 int main () 18912 { 18913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18914 int status = $lt_dlunknown; 18915 18916 if (self) 18917 { 18918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18920 /* dlclose (self); */ 18921 } 18922 18923 exit (status); 18924 } 18925 EOF 18926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18927 (eval $ac_link) 2>&5 18928 ac_status=$? 18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18930 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 18931 (./conftest; exit; ) >&5 2>/dev/null 18932 lt_status=$? 18933 case x$lt_status in 18934 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18935 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18936 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 18937 esac 18938 else : 18939 # compilation failed 18940 lt_cv_dlopen_self_static=no 18941 fi 18942 fi 18943 rm -fr conftest* 18944 18945 18946 fi 18947 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 18948 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 18949 fi 18950 18951 CPPFLAGS="$save_CPPFLAGS" 18952 LDFLAGS="$save_LDFLAGS" 18953 LIBS="$save_LIBS" 18954 ;; 18955 esac 18956 18957 case $lt_cv_dlopen_self in 18958 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18959 *) enable_dlopen_self=unknown ;; 18960 esac 18961 18962 case $lt_cv_dlopen_self_static in 18963 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18964 *) enable_dlopen_self_static=unknown ;; 18965 esac 18966 fi 18967 18968 18969 # The else clause should only fire when bootstrapping the 18970 # libtool distribution, otherwise you forgot to ship ltmain.sh 18971 # with your package, and you will get complaints that there are 18972 # no rules to generate ltmain.sh. 18973 if test -f "$ltmain"; then 18974 # See if we are running on zsh, and set the options which allow our commands through 18975 # without removal of \ escapes. 18976 if test -n "${ZSH_VERSION+set}" ; then 18977 setopt NO_GLOB_SUBST 18978 fi 18979 # Now quote all the things that may contain metacharacters while being 18980 # careful not to overquote the AC_SUBSTed values. We take copies of the 18981 # variables and quote the copies for generation of the libtool script. 18982 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18983 SED SHELL STRIP \ 18984 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18985 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18986 deplibs_check_method reload_flag reload_cmds need_locks \ 18987 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18988 lt_cv_sys_global_symbol_to_c_name_address \ 18989 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18990 old_postinstall_cmds old_postuninstall_cmds \ 18991 compiler_GCJ \ 18992 CC_GCJ \ 18993 LD_GCJ \ 18994 lt_prog_compiler_wl_GCJ \ 18995 lt_prog_compiler_pic_GCJ \ 18996 lt_prog_compiler_static_GCJ \ 18997 lt_prog_compiler_no_builtin_flag_GCJ \ 18998 export_dynamic_flag_spec_GCJ \ 18999 thread_safe_flag_spec_GCJ \ 19000 whole_archive_flag_spec_GCJ \ 19001 enable_shared_with_static_runtimes_GCJ \ 19002 old_archive_cmds_GCJ \ 19003 old_archive_from_new_cmds_GCJ \ 19004 predep_objects_GCJ \ 19005 postdep_objects_GCJ \ 19006 predeps_GCJ \ 19007 postdeps_GCJ \ 19008 compiler_lib_search_path_GCJ \ 19009 archive_cmds_GCJ \ 19010 archive_expsym_cmds_GCJ \ 19011 postinstall_cmds_GCJ \ 19012 postuninstall_cmds_GCJ \ 19013 old_archive_from_expsyms_cmds_GCJ \ 19014 allow_undefined_flag_GCJ \ 19015 no_undefined_flag_GCJ \ 19016 export_symbols_cmds_GCJ \ 19017 hardcode_libdir_flag_spec_GCJ \ 19018 hardcode_libdir_flag_spec_ld_GCJ \ 19019 hardcode_libdir_separator_GCJ \ 19020 hardcode_automatic_GCJ \ 19021 module_cmds_GCJ \ 19022 module_expsym_cmds_GCJ \ 19023 lt_cv_prog_compiler_c_o_GCJ \ 19024 exclude_expsyms_GCJ \ 19025 include_expsyms_GCJ; do 19026 19027 case $var in 19028 old_archive_cmds_GCJ | \ 19029 old_archive_from_new_cmds_GCJ | \ 19030 archive_cmds_GCJ | \ 19031 archive_expsym_cmds_GCJ | \ 19032 module_cmds_GCJ | \ 19033 module_expsym_cmds_GCJ | \ 19034 old_archive_from_expsyms_cmds_GCJ | \ 19035 export_symbols_cmds_GCJ | \ 19036 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19037 postinstall_cmds | postuninstall_cmds | \ 19038 old_postinstall_cmds | old_postuninstall_cmds | \ 19039 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19040 # Double-quote double-evaled strings. 19041 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19042 ;; 19043 *) 19044 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19045 ;; 19046 esac 19047 done 19048 19049 case $lt_echo in 19050 *'\$0 --fallback-echo"') 19051 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19052 ;; 19053 esac 19054 19055 cfgfile="$ofile" 19056 19057 cat <<__EOF__ >> "$cfgfile" 19058 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19059 19060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19061 19062 # Shell to use when invoking shell scripts. 19063 SHELL=$lt_SHELL 19064 19065 # Whether or not to build shared libraries. 19066 build_libtool_libs=$enable_shared 19067 19068 # Whether or not to build static libraries. 19069 build_old_libs=$enable_static 19070 19071 # Whether or not to add -lc for building shared libraries. 19072 build_libtool_need_lc=$archive_cmds_need_lc_GCJ 19073 19074 # Whether or not to disallow shared libs when runtime libs are static 19075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 19076 19077 # Whether or not to optimize for fast installation. 19078 fast_install=$enable_fast_install 19079 19080 # The host system. 19081 host_alias=$host_alias 19082 host=$host 19083 host_os=$host_os 19084 19085 # The build system. 19086 build_alias=$build_alias 19087 build=$build 19088 build_os=$build_os 19089 19090 # An echo program that does not interpret backslashes. 19091 echo=$lt_echo 19092 19093 # The archiver. 19094 AR=$lt_AR 19095 AR_FLAGS=$lt_AR_FLAGS 19096 19097 # A C compiler. 19098 LTCC=$lt_LTCC 19099 19100 # A language-specific compiler. 19101 CC=$lt_compiler_GCJ 19102 19103 # Is the compiler the GNU C compiler? 19104 with_gcc=$GCC_GCJ 19105 19106 # An ERE matcher. 19107 EGREP=$lt_EGREP 19108 19109 # The linker used to build libraries. 19110 LD=$lt_LD_GCJ 19111 19112 # Whether we need hard or soft links. 19113 LN_S=$lt_LN_S 19114 19115 # A BSD-compatible nm program. 19116 NM=$lt_NM 19117 19118 # A symbol stripping program 19119 STRIP=$lt_STRIP 19120 19121 # Used to examine libraries when file_magic_cmd begins "file" 19122 MAGIC_CMD=$MAGIC_CMD 19123 19124 # Used on cygwin: DLL creation program. 19125 DLLTOOL="$DLLTOOL" 19126 19127 # Used on cygwin: object dumper. 19128 OBJDUMP="$OBJDUMP" 19129 19130 # Used on cygwin: assembler. 19131 AS="$AS" 19132 19133 # The name of the directory that contains temporary libtool files. 19134 objdir=$objdir 19135 19136 # How to create reloadable object files. 19137 reload_flag=$lt_reload_flag 19138 reload_cmds=$lt_reload_cmds 19139 19140 # How to pass a linker flag through the compiler. 19141 wl=$lt_lt_prog_compiler_wl_GCJ 19142 19143 # Object file suffix (normally "o"). 19144 objext="$ac_objext" 19145 19146 # Old archive suffix (normally "a"). 19147 libext="$libext" 19148 19149 # Shared library suffix (normally ".so"). 19150 shrext_cmds='$shrext_cmds' 19151 19152 # Executable file suffix (normally ""). 19153 exeext="$exeext" 19154 19155 # Additional compiler flags for building library objects. 19156 pic_flag=$lt_lt_prog_compiler_pic_GCJ 19157 pic_mode=$pic_mode 19158 19159 # What is the maximum length of a command? 19160 max_cmd_len=$lt_cv_sys_max_cmd_len 19161 19162 # Does compiler simultaneously support -c and -o options? 19163 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 19164 19165 # Must we lock files when doing compilation? 19166 need_locks=$lt_need_locks 19167 19168 # Do we need the lib prefix for modules? 19169 need_lib_prefix=$need_lib_prefix 19170 19171 # Do we need a version for libraries? 19172 need_version=$need_version 19173 19174 # Whether dlopen is supported. 19175 dlopen_support=$enable_dlopen 19176 19177 # Whether dlopen of programs is supported. 19178 dlopen_self=$enable_dlopen_self 19179 19180 # Whether dlopen of statically linked programs is supported. 19181 dlopen_self_static=$enable_dlopen_self_static 19182 19183 # Compiler flag to prevent dynamic linking. 19184 link_static_flag=$lt_lt_prog_compiler_static_GCJ 19185 19186 # Compiler flag to turn off builtin functions. 19187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 19188 19189 # Compiler flag to allow reflexive dlopens. 19190 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 19191 19192 # Compiler flag to generate shared objects directly from archives. 19193 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 19194 19195 # Compiler flag to generate thread-safe objects. 19196 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 19197 19198 # Library versioning type. 19199 version_type=$version_type 19200 19201 # Format of library name prefix. 19202 libname_spec=$lt_libname_spec 19203 19204 # List of archive names. First name is the real one, the rest are links. 19205 # The last name is the one that the linker finds with -lNAME. 19206 library_names_spec=$lt_library_names_spec 19207 19208 # The coded name of the library, if different from the real name. 19209 soname_spec=$lt_soname_spec 19210 19211 # Commands used to build and install an old-style archive. 19212 RANLIB=$lt_RANLIB 19213 old_archive_cmds=$lt_old_archive_cmds_GCJ 19214 old_postinstall_cmds=$lt_old_postinstall_cmds 19215 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19216 19217 # Create an old-style archive from a shared archive. 19218 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 19219 19220 # Create a temporary old-style archive to link instead of a shared archive. 19221 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 19222 19223 # Commands used to build and install a shared archive. 19224 archive_cmds=$lt_archive_cmds_GCJ 19225 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 19226 postinstall_cmds=$lt_postinstall_cmds 19227 postuninstall_cmds=$lt_postuninstall_cmds 19228 19229 # Commands used to build a loadable module (assumed same as above if empty) 19230 module_cmds=$lt_module_cmds_GCJ 19231 module_expsym_cmds=$lt_module_expsym_cmds_GCJ 19232 19233 # Commands to strip libraries. 19234 old_striplib=$lt_old_striplib 19235 striplib=$lt_striplib 19236 19237 # Dependencies to place before the objects being linked to create a 19238 # shared library. 19239 predep_objects=$lt_predep_objects_GCJ 19240 19241 # Dependencies to place after the objects being linked to create a 19242 # shared library. 19243 postdep_objects=$lt_postdep_objects_GCJ 19244 19245 # Dependencies to place before the objects being linked to create a 19246 # shared library. 19247 predeps=$lt_predeps_GCJ 19248 19249 # Dependencies to place after the objects being linked to create a 19250 # shared library. 19251 postdeps=$lt_postdeps_GCJ 19252 19253 # The library search path used internally by the compiler when linking 19254 # a shared library. 19255 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 19256 19257 # Method to check whether dependent libraries are shared objects. 19258 deplibs_check_method=$lt_deplibs_check_method 19259 19260 # Command to use when deplibs_check_method == file_magic. 19261 file_magic_cmd=$lt_file_magic_cmd 19262 19263 # Flag that allows shared libraries with undefined symbols to be built. 19264 allow_undefined_flag=$lt_allow_undefined_flag_GCJ 19265 19266 # Flag that forces no undefined symbols. 19267 no_undefined_flag=$lt_no_undefined_flag_GCJ 19268 19269 # Commands used to finish a libtool library installation in a directory. 19270 finish_cmds=$lt_finish_cmds 19271 19272 # Same as above, but a single script fragment to be evaled but not shown. 19273 finish_eval=$lt_finish_eval 19274 19275 # Take the output of nm and produce a listing of raw symbols and C names. 19276 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19277 19278 # Transform the output of nm in a proper C declaration 19279 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19280 19281 # Transform the output of nm in a C name address pair 19282 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19283 19284 # This is the shared library runtime path variable. 19285 runpath_var=$runpath_var 19286 19287 # This is the shared library path variable. 19288 shlibpath_var=$shlibpath_var 19289 19290 # Is shlibpath searched before the hard-coded library search path? 19291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19292 19293 # How to hardcode a shared library path into an executable. 19294 hardcode_action=$hardcode_action_GCJ 19295 19296 # Whether we should hardcode library paths into libraries. 19297 hardcode_into_libs=$hardcode_into_libs 19298 19299 # Flag to hardcode \$libdir into a binary during linking. 19300 # This must work even if \$libdir does not exist. 19301 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 19302 19303 # If ld is used when linking, flag to hardcode \$libdir into 19304 # a binary during linking. This must work even if \$libdir does 19305 # not exist. 19306 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 19307 19308 # Whether we need a single -rpath flag with a separated argument. 19309 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 19310 19311 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19312 # resulting binary. 19313 hardcode_direct=$hardcode_direct_GCJ 19314 19315 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19316 # resulting binary. 19317 hardcode_minus_L=$hardcode_minus_L_GCJ 19318 19319 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19320 # the resulting binary. 19321 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 19322 19323 # Set to yes if building a shared library automatically hardcodes DIR into the library 19324 # and all subsequent libraries and executables linked against it. 19325 hardcode_automatic=$hardcode_automatic_GCJ 19326 19327 # Variables whose values should be saved in libtool wrapper scripts and 19328 # restored at relink time. 19329 variables_saved_for_relink="$variables_saved_for_relink" 19330 19331 # Whether libtool must link a program against all its dependency libraries. 19332 link_all_deplibs=$link_all_deplibs_GCJ 19333 19334 # Compile-time system search path for libraries 19335 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19336 19337 # Run-time system search path for libraries 19338 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19339 19340 # Fix the shell variable \$srcfile for the compiler. 19341 fix_srcfile_path="$fix_srcfile_path_GCJ" 19342 19343 # Set to yes if exported symbols are required. 19344 always_export_symbols=$always_export_symbols_GCJ 19345 19346 # The commands to list exported symbols. 19347 export_symbols_cmds=$lt_export_symbols_cmds_GCJ 19348 19349 # The commands to extract the exported symbol list from a shared archive. 19350 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19351 19352 # Symbols that should not be listed in the preloaded symbols. 19353 exclude_expsyms=$lt_exclude_expsyms_GCJ 19354 19355 # Symbols that must always be exported. 19356 include_expsyms=$lt_include_expsyms_GCJ 19357 19358 # ### END LIBTOOL TAG CONFIG: $tagname 19359 19360 __EOF__ 19361 19362 19363 else 19364 # If there is no Makefile yet, we rely on a make rule to execute 19365 # `config.status --recheck' to rerun these tests and create the 19366 # libtool script then. 19367 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19368 if test -f "$ltmain_in"; then 19369 test -f Makefile && make "$ltmain" 19370 fi 19371 fi 19372 19373 19374 ac_ext=c 19375 ac_cpp='$CPP $CPPFLAGS' 19376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19378 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19379 19380 CC="$lt_save_CC" 19381 19382 else 19383 tagname="" 19384 fi 19385 ;; 19386 19387 RC) 19388 19389 19390 19391 # Source file extension for RC test sources. 19392 ac_ext=rc 19393 19394 # Object file extension for compiled RC test sources. 19395 objext=o 19396 objext_RC=$objext 19397 19398 # Code to be used in simple compile tests 19399 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 19400 19401 # Code to be used in simple link tests 19402 lt_simple_link_test_code="$lt_simple_compile_test_code" 19403 19404 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 19405 19406 # If no C compiler was specified, use CC. 19407 LTCC=${LTCC-"$CC"} 19408 19409 # Allow CC to be a program name with arguments. 19410 compiler=$CC 19411 19412 19413 # save warnings/boilerplate of simple test code 19414 ac_outfile=conftest.$ac_objext 19415 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 19416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19417 _lt_compiler_boilerplate=`cat conftest.err` 19418 $rm conftest* 19419 19420 ac_outfile=conftest.$ac_objext 19421 printf "$lt_simple_link_test_code" >conftest.$ac_ext 19422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 19423 _lt_linker_boilerplate=`cat conftest.err` 19424 $rm conftest* 19425 19426 19427 # Allow CC to be a program name with arguments. 19428 lt_save_CC="$CC" 19429 CC=${RC-"windres"} 19430 compiler=$CC 19431 compiler_RC=$CC 19432 for cc_temp in $compiler""; do 19433 case $cc_temp in 19434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 19435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 19436 \-*) ;; 19437 *) break;; 19438 esac 19439 done 19440 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 19441 19442 lt_cv_prog_compiler_c_o_RC=yes 19443 19444 # The else clause should only fire when bootstrapping the 19445 # libtool distribution, otherwise you forgot to ship ltmain.sh 19446 # with your package, and you will get complaints that there are 19447 # no rules to generate ltmain.sh. 19448 if test -f "$ltmain"; then 19449 # See if we are running on zsh, and set the options which allow our commands through 19450 # without removal of \ escapes. 19451 if test -n "${ZSH_VERSION+set}" ; then 19452 setopt NO_GLOB_SUBST 19453 fi 19454 # Now quote all the things that may contain metacharacters while being 19455 # careful not to overquote the AC_SUBSTed values. We take copies of the 19456 # variables and quote the copies for generation of the libtool script. 19457 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 19458 SED SHELL STRIP \ 19459 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 19460 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 19461 deplibs_check_method reload_flag reload_cmds need_locks \ 19462 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 19463 lt_cv_sys_global_symbol_to_c_name_address \ 19464 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 19465 old_postinstall_cmds old_postuninstall_cmds \ 19466 compiler_RC \ 19467 CC_RC \ 19468 LD_RC \ 19469 lt_prog_compiler_wl_RC \ 19470 lt_prog_compiler_pic_RC \ 19471 lt_prog_compiler_static_RC \ 19472 lt_prog_compiler_no_builtin_flag_RC \ 19473 export_dynamic_flag_spec_RC \ 19474 thread_safe_flag_spec_RC \ 19475 whole_archive_flag_spec_RC \ 19476 enable_shared_with_static_runtimes_RC \ 19477 old_archive_cmds_RC \ 19478 old_archive_from_new_cmds_RC \ 19479 predep_objects_RC \ 19480 postdep_objects_RC \ 19481 predeps_RC \ 19482 postdeps_RC \ 19483 compiler_lib_search_path_RC \ 19484 archive_cmds_RC \ 19485 archive_expsym_cmds_RC \ 19486 postinstall_cmds_RC \ 19487 postuninstall_cmds_RC \ 19488 old_archive_from_expsyms_cmds_RC \ 19489 allow_undefined_flag_RC \ 19490 no_undefined_flag_RC \ 19491 export_symbols_cmds_RC \ 19492 hardcode_libdir_flag_spec_RC \ 19493 hardcode_libdir_flag_spec_ld_RC \ 19494 hardcode_libdir_separator_RC \ 19495 hardcode_automatic_RC \ 19496 module_cmds_RC \ 19497 module_expsym_cmds_RC \ 19498 lt_cv_prog_compiler_c_o_RC \ 19499 exclude_expsyms_RC \ 19500 include_expsyms_RC; do 19501 19502 case $var in 19503 old_archive_cmds_RC | \ 19504 old_archive_from_new_cmds_RC | \ 19505 archive_cmds_RC | \ 19506 archive_expsym_cmds_RC | \ 19507 module_cmds_RC | \ 19508 module_expsym_cmds_RC | \ 19509 old_archive_from_expsyms_cmds_RC | \ 19510 export_symbols_cmds_RC | \ 19511 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 19512 postinstall_cmds | postuninstall_cmds | \ 19513 old_postinstall_cmds | old_postuninstall_cmds | \ 19514 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 19515 # Double-quote double-evaled strings. 19516 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 19517 ;; 19518 *) 19519 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 19520 ;; 19521 esac 19522 done 19523 19524 case $lt_echo in 19525 *'\$0 --fallback-echo"') 19526 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 19527 ;; 19528 esac 19529 19530 cfgfile="$ofile" 19531 19532 cat <<__EOF__ >> "$cfgfile" 19533 # ### BEGIN LIBTOOL TAG CONFIG: $tagname 19534 19535 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19536 19537 # Shell to use when invoking shell scripts. 19538 SHELL=$lt_SHELL 19539 19540 # Whether or not to build shared libraries. 19541 build_libtool_libs=$enable_shared 19542 19543 # Whether or not to build static libraries. 19544 build_old_libs=$enable_static 19545 19546 # Whether or not to add -lc for building shared libraries. 19547 build_libtool_need_lc=$archive_cmds_need_lc_RC 19548 19549 # Whether or not to disallow shared libs when runtime libs are static 19550 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 19551 19552 # Whether or not to optimize for fast installation. 19553 fast_install=$enable_fast_install 19554 19555 # The host system. 19556 host_alias=$host_alias 19557 host=$host 19558 host_os=$host_os 19559 19560 # The build system. 19561 build_alias=$build_alias 19562 build=$build 19563 build_os=$build_os 19564 19565 # An echo program that does not interpret backslashes. 19566 echo=$lt_echo 19567 19568 # The archiver. 19569 AR=$lt_AR 19570 AR_FLAGS=$lt_AR_FLAGS 19571 19572 # A C compiler. 19573 LTCC=$lt_LTCC 19574 19575 # A language-specific compiler. 19576 CC=$lt_compiler_RC 19577 19578 # Is the compiler the GNU C compiler? 19579 with_gcc=$GCC_RC 19580 19581 # An ERE matcher. 19582 EGREP=$lt_EGREP 19583 19584 # The linker used to build libraries. 19585 LD=$lt_LD_RC 19586 19587 # Whether we need hard or soft links. 19588 LN_S=$lt_LN_S 19589 19590 # A BSD-compatible nm program. 19591 NM=$lt_NM 19592 19593 # A symbol stripping program 19594 STRIP=$lt_STRIP 19595 19596 # Used to examine libraries when file_magic_cmd begins "file" 19597 MAGIC_CMD=$MAGIC_CMD 19598 19599 # Used on cygwin: DLL creation program. 19600 DLLTOOL="$DLLTOOL" 19601 19602 # Used on cygwin: object dumper. 19603 OBJDUMP="$OBJDUMP" 19604 19605 # Used on cygwin: assembler. 19606 AS="$AS" 19607 19608 # The name of the directory that contains temporary libtool files. 19609 objdir=$objdir 19610 19611 # How to create reloadable object files. 19612 reload_flag=$lt_reload_flag 19613 reload_cmds=$lt_reload_cmds 19614 19615 # How to pass a linker flag through the compiler. 19616 wl=$lt_lt_prog_compiler_wl_RC 19617 19618 # Object file suffix (normally "o"). 19619 objext="$ac_objext" 19620 19621 # Old archive suffix (normally "a"). 19622 libext="$libext" 19623 19624 # Shared library suffix (normally ".so"). 19625 shrext_cmds='$shrext_cmds' 19626 19627 # Executable file suffix (normally ""). 19628 exeext="$exeext" 19629 19630 # Additional compiler flags for building library objects. 19631 pic_flag=$lt_lt_prog_compiler_pic_RC 19632 pic_mode=$pic_mode 19633 19634 # What is the maximum length of a command? 19635 max_cmd_len=$lt_cv_sys_max_cmd_len 19636 19637 # Does compiler simultaneously support -c and -o options? 19638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 19639 19640 # Must we lock files when doing compilation? 19641 need_locks=$lt_need_locks 19642 19643 # Do we need the lib prefix for modules? 19644 need_lib_prefix=$need_lib_prefix 19645 19646 # Do we need a version for libraries? 19647 need_version=$need_version 19648 19649 # Whether dlopen is supported. 19650 dlopen_support=$enable_dlopen 19651 19652 # Whether dlopen of programs is supported. 19653 dlopen_self=$enable_dlopen_self 19654 19655 # Whether dlopen of statically linked programs is supported. 19656 dlopen_self_static=$enable_dlopen_self_static 19657 19658 # Compiler flag to prevent dynamic linking. 19659 link_static_flag=$lt_lt_prog_compiler_static_RC 19660 19661 # Compiler flag to turn off builtin functions. 19662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 19663 19664 # Compiler flag to allow reflexive dlopens. 19665 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 19666 19667 # Compiler flag to generate shared objects directly from archives. 19668 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 19669 19670 # Compiler flag to generate thread-safe objects. 19671 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 19672 19673 # Library versioning type. 19674 version_type=$version_type 19675 19676 # Format of library name prefix. 19677 libname_spec=$lt_libname_spec 19678 19679 # List of archive names. First name is the real one, the rest are links. 19680 # The last name is the one that the linker finds with -lNAME. 19681 library_names_spec=$lt_library_names_spec 19682 19683 # The coded name of the library, if different from the real name. 19684 soname_spec=$lt_soname_spec 19685 19686 # Commands used to build and install an old-style archive. 19687 RANLIB=$lt_RANLIB 19688 old_archive_cmds=$lt_old_archive_cmds_RC 19689 old_postinstall_cmds=$lt_old_postinstall_cmds 19690 old_postuninstall_cmds=$lt_old_postuninstall_cmds 19691 19692 # Create an old-style archive from a shared archive. 19693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 19694 19695 # Create a temporary old-style archive to link instead of a shared archive. 19696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 19697 19698 # Commands used to build and install a shared archive. 19699 archive_cmds=$lt_archive_cmds_RC 19700 archive_expsym_cmds=$lt_archive_expsym_cmds_RC 19701 postinstall_cmds=$lt_postinstall_cmds 19702 postuninstall_cmds=$lt_postuninstall_cmds 19703 19704 # Commands used to build a loadable module (assumed same as above if empty) 19705 module_cmds=$lt_module_cmds_RC 19706 module_expsym_cmds=$lt_module_expsym_cmds_RC 19707 19708 # Commands to strip libraries. 19709 old_striplib=$lt_old_striplib 19710 striplib=$lt_striplib 19711 19712 # Dependencies to place before the objects being linked to create a 19713 # shared library. 19714 predep_objects=$lt_predep_objects_RC 19715 19716 # Dependencies to place after the objects being linked to create a 19717 # shared library. 19718 postdep_objects=$lt_postdep_objects_RC 19719 19720 # Dependencies to place before the objects being linked to create a 19721 # shared library. 19722 predeps=$lt_predeps_RC 19723 19724 # Dependencies to place after the objects being linked to create a 19725 # shared library. 19726 postdeps=$lt_postdeps_RC 19727 19728 # The library search path used internally by the compiler when linking 19729 # a shared library. 19730 compiler_lib_search_path=$lt_compiler_lib_search_path_RC 19731 19732 # Method to check whether dependent libraries are shared objects. 19733 deplibs_check_method=$lt_deplibs_check_method 19734 19735 # Command to use when deplibs_check_method == file_magic. 19736 file_magic_cmd=$lt_file_magic_cmd 19737 19738 # Flag that allows shared libraries with undefined symbols to be built. 19739 allow_undefined_flag=$lt_allow_undefined_flag_RC 19740 19741 # Flag that forces no undefined symbols. 19742 no_undefined_flag=$lt_no_undefined_flag_RC 19743 19744 # Commands used to finish a libtool library installation in a directory. 19745 finish_cmds=$lt_finish_cmds 19746 19747 # Same as above, but a single script fragment to be evaled but not shown. 19748 finish_eval=$lt_finish_eval 19749 19750 # Take the output of nm and produce a listing of raw symbols and C names. 19751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19752 19753 # Transform the output of nm in a proper C declaration 19754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19755 19756 # Transform the output of nm in a C name address pair 19757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19758 19759 # This is the shared library runtime path variable. 19760 runpath_var=$runpath_var 19761 19762 # This is the shared library path variable. 19763 shlibpath_var=$shlibpath_var 19764 19765 # Is shlibpath searched before the hard-coded library search path? 19766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19767 19768 # How to hardcode a shared library path into an executable. 19769 hardcode_action=$hardcode_action_RC 19770 19771 # Whether we should hardcode library paths into libraries. 19772 hardcode_into_libs=$hardcode_into_libs 19773 19774 # Flag to hardcode \$libdir into a binary during linking. 19775 # This must work even if \$libdir does not exist. 19776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 19777 19778 # If ld is used when linking, flag to hardcode \$libdir into 19779 # a binary during linking. This must work even if \$libdir does 19780 # not exist. 19781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 19782 19783 # Whether we need a single -rpath flag with a separated argument. 19784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 19785 19786 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 19787 # resulting binary. 19788 hardcode_direct=$hardcode_direct_RC 19789 19790 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the 19791 # resulting binary. 19792 hardcode_minus_L=$hardcode_minus_L_RC 19793 19794 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 19795 # the resulting binary. 19796 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 19797 19798 # Set to yes if building a shared library automatically hardcodes DIR into the library 19799 # and all subsequent libraries and executables linked against it. 19800 hardcode_automatic=$hardcode_automatic_RC 19801 19802 # Variables whose values should be saved in libtool wrapper scripts and 19803 # restored at relink time. 19804 variables_saved_for_relink="$variables_saved_for_relink" 19805 19806 # Whether libtool must link a program against all its dependency libraries. 19807 link_all_deplibs=$link_all_deplibs_RC 19808 19809 # Compile-time system search path for libraries 19810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19811 19812 # Run-time system search path for libraries 19813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19814 19815 # Fix the shell variable \$srcfile for the compiler. 19816 fix_srcfile_path="$fix_srcfile_path_RC" 19817 19818 # Set to yes if exported symbols are required. 19819 always_export_symbols=$always_export_symbols_RC 19820 19821 # The commands to list exported symbols. 19822 export_symbols_cmds=$lt_export_symbols_cmds_RC 19823 19824 # The commands to extract the exported symbol list from a shared archive. 19825 extract_expsyms_cmds=$lt_extract_expsyms_cmds 19826 19827 # Symbols that should not be listed in the preloaded symbols. 19828 exclude_expsyms=$lt_exclude_expsyms_RC 19829 19830 # Symbols that must always be exported. 19831 include_expsyms=$lt_include_expsyms_RC 19832 19833 # ### END LIBTOOL TAG CONFIG: $tagname 19834 19835 __EOF__ 19836 19837 19838 else 19839 # If there is no Makefile yet, we rely on a make rule to execute 19840 # `config.status --recheck' to rerun these tests and create the 19841 # libtool script then. 19842 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 19843 if test -f "$ltmain_in"; then 19844 test -f Makefile && make "$ltmain" 19845 fi 19846 fi 19847 19848 19849 ac_ext=c 19850 ac_cpp='$CPP $CPPFLAGS' 19851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19853 ac_compiler_gnu=$ac_cv_c_compiler_gnu 19854 19855 CC="$lt_save_CC" 19856 19857 ;; 19858 19859 *) 19860 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 19861 echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 19862 { (exit 1); exit 1; }; } 19863 ;; 19864 esac 19865 19866 # Append the new tag name to the list of available tags. 19867 if test -n "$tagname" ; then 19868 available_tags="$available_tags $tagname" 19869 fi 19870 fi 19871 done 19872 IFS="$lt_save_ifs" 19873 19874 # Now substitute the updated list of available tags. 19875 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 19876 mv "${ofile}T" "$ofile" 19877 chmod +x "$ofile" 19878 else 19879 rm -f "${ofile}T" 19880 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 19881 echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 19882 { (exit 1); exit 1; }; } 19883 fi 19884 fi 19885 19886 19887 19888 # This can be used to rebuild libtool when needed 19889 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 19890 19891 # Always use our own libtool. 19892 LIBTOOL='$(SHELL) $(top_builddir)/libtool' 19893 19894 # Prevent multiple expansion 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 3756 fi 3757 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3758 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3759 EGREP=$ac_cv_prog_egrep 19913 3760 19914 3761 … … 20552 4399 #---------------# 20553 4400 # checking gl header 4401 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4412 inttypes.h stdint.h unistd.h 4413 do 4414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4415 echo "$as_me:$LINENO: checking for $ac_header" >&5 4416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4417 if eval "test \"\${$as_ac_Header+set}\" = set"; then 4418 echo $ECHO_N "(cached) $ECHO_C" >&6 4419 else 4420 cat >conftest.$ac_ext <<_ACEOF 4421 /* confdefs.h. */ 4422 _ACEOF 4423 cat confdefs.h >>conftest.$ac_ext 4424 cat >>conftest.$ac_ext <<_ACEOF 4425 /* end confdefs.h. */ 4426 $ac_includes_default 4427 4428 #include <$ac_header> 4429 _ACEOF 4430 rm -f conftest.$ac_objext 4431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4432 (eval $ac_compile) 2>conftest.er1 4433 ac_status=$? 4434 grep -v '^ *+' conftest.er1 >conftest.err 4435 rm -f conftest.er1 4436 cat conftest.err >&5 4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4438 (exit $ac_status); } && 4439 { ac_try='test -z "$ac_c_werror_flag" 4440 || test ! -s conftest.err' 4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4442 (eval $ac_try) 2>&5 4443 ac_status=$? 4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4445 (exit $ac_status); }; } && 4446 { ac_try='test -s conftest.$ac_objext' 4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4448 (eval $ac_try) 2>&5 4449 ac_status=$? 4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4451 (exit $ac_status); }; }; then 4452 eval "$as_ac_Header=yes" 4453 else 4454 echo "$as_me: failed program was:" >&5 4455 sed 's/^/| /' conftest.$ac_ext >&5 4456 4457 eval "$as_ac_Header=no" 4458 fi 4459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4460 fi 4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4463 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4464 cat >>confdefs.h <<_ACEOF 4465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4466 _ACEOF 4467 4468 fi 4469 4470 done 4471 4472 20554 4473 20555 4474 for ac_header in GL/gl.h … … 27549 11468 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 27550 11469 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t 11470 s,@RANLIB@,$RANLIB,;t t 11471 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 27551 11472 s,@CC@,$CC,;t t 27552 11473 s,@CFLAGS@,$CFLAGS,;t t … … 27555 11476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 27556 11477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 11478 s,@CPP@,$CPP,;t t 27557 11479 s,@EGREP@,$EGREP,;t t 27558 s,@LN_S@,$LN_S,;t t27559 s,@ECHO@,$ECHO,;t t27560 s,@AR@,$AR,;t t27561 s,@ac_ct_AR@,$ac_ct_AR,;t t27562 s,@RANLIB@,$RANLIB,;t t27563 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t27564 s,@CPP@,$CPP,;t t27565 s,@CXXCPP@,$CXXCPP,;t t27566 s,@F77@,$F77,;t t27567 s,@FFLAGS@,$FFLAGS,;t t27568 s,@ac_ct_F77@,$ac_ct_F77,;t t27569 s,@LIBTOOL@,$LIBTOOL,;t t27570 11480 s,@DEBUG@,$DEBUG,;t t 27571 11481 s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
Note: See TracChangeset
for help on using the changeset viewer.