Changeset 5463 in orxonox.OLD for trunk/configure
- Timestamp:
- Nov 1, 2005, 11:09:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure
r5450 r5463 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 3747 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 3750 echo $ECHO_N "(cached) $ECHO_C" >&6 3751 else 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' 3755 fi 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 3760 3761 4579 3762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4580 3763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 … … 4743 3926 fi 4744 3927 4745 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 3928 3929 ## THIS IS OUR DEFAULT-DATA-DIRECTORY 3930 3931 ################################## 3932 ## CHECKING OPTIONAL ARGUMENTS ## 3933 ################################## 3934 #----------------# 3935 # Data-Directory # 3936 #----------------# 3937 DATA_DIR=$datadir 3938 echo \$\{prefix\} 3939 if test $DATA_DIR = \$\{prefix\}/share ; then 3940 echo "not given" 3941 DATA_DIR=/usr/share 3942 else 3943 echo "given: $DATA_DIR" 3944 fi 3945 3946 cat >>confdefs.h <<_ACEOF 3947 #define DATADIR "$DATA_DIR" 3948 _ACEOF 3949 3950 3951 #-----------------# 3952 # shared-lib-path # 3953 #-----------------# 3954 SHARED_LIB_PATH=no 3955 echo "$as_me:$LINENO: checking shared lib path" >&5 3956 echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 3957 3958 # Check whether --with-shared-lib-path or --without-shared-lib-path was given. 3959 if test "${with_shared_lib_path+set}" = set; then 3960 withval="$with_shared_lib_path" 3961 SHARED_LIB_PATH=$withval 3962 fi; 3963 if test x$SHARED_LIB_PATH != xno; then 3964 echo "set to $SHARED_LIB_PATH" 3965 else 3966 echo "no" 3967 fi 3968 3969 3970 #-----------------# 3971 # DEBUG-statement # 3972 #-----------------# 3973 DEBUG=no 3974 echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 3975 echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 3976 # Check whether --enable-debug or --disable-debug was given. 3977 if test "${enable_debug+set}" = set; then 3978 enableval="$enable_debug" 3979 DEBUG=$enableval 3980 fi; 3981 3982 if test x$DEBUG = xno; then 3983 echo "no" 3984 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 3985 DEBUG=4 3986 elif test x$DEBUG = xyes; then 3987 echo "yes" 3988 echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." 3989 DEBUG=4 3990 else 3991 echo "yes: setting debuglevel to to $DEBUG" 3992 fi 3993 3994 cat >>confdefs.h <<_ACEOF 3995 #define DEBUG $DEBUG 3996 _ACEOF 3997 3998 3999 4000 #---------------# 4001 # Modular Debug # 4002 #---------------# 4003 MODULAR_DEBUG=yes 4004 echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 4005 echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 4006 # Check whether --enable-modular-debug or --disable-modular-debug was given. 4007 if test "${enable_modular_debug+set}" = set; then 4008 enableval="$enable_modular_debug" 4009 MODULAR_DEBUG=$enableval 4010 fi; 4011 4012 if test x$MODULAR_DEBUG = xno; then 4013 echo "no" 4014 elif test x$MODULAR_DEBUG = xyes; then 4015 echo "yes" 4016 4017 cat >>confdefs.h <<_ACEOF 4018 #define MODULAR_DEBUG 1 4019 _ACEOF 4020 4021 fi 4022 4023 #--------------# 4024 # GTK-disabled # 4025 #--------------# 4026 echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 4027 echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 4028 # Check whether --enable-gtk or --disable-gtk was given. 4029 if test "${enable_gtk+set}" = set; then 4030 enableval="$enable_gtk" 4031 def_gtk=no 4032 else 4033 def_gtk=yes 4034 fi; 4035 if test x$def_gtk = xyes; then 4036 echo "yes" 4037 fi 4038 if test x$def_gtk = xno; then 4039 echo "no" 4040 fi 4041 4042 #------------------# 4043 # libCurl-disabled # 4044 #------------------# 4045 echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 4046 echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 4047 # Check whether --enable-curl or --disable-curl was given. 4048 if test "${enable_curl+set}" = set; then 4049 enableval="$enable_curl" 4050 def_curl=no 4051 else 4052 def_curl=yes 4053 fi; 4054 if test x$def_curl = xyes; then 4055 echo "yes" 4056 fi 4057 if test x$def_curl = xno; then 4058 echo "no" 4059 fi 4060 4061 #-------------------# 4062 # SubProject-enable # 4063 #-------------------# 4064 def_sub_projects=no 4065 echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 4066 echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 4067 4068 # Check whether --with-sub-projects or --without-sub-projects was given. 4069 if test "${with_sub_projects+set}" = set; then 4070 withval="$with_sub_projects" 4071 def_sub_projects=yes 4072 fi; 4073 if test x$def_sub_projects = xyes; then 4074 echo "yes" 4075 fi 4076 if test x$def_sub_projects = xno; then 4077 echo "no" 4078 fi 4079 4080 4081 if test x$def_sub_projects = xyes; then 4082 SUB_PROJECTS_TRUE= 4083 SUB_PROJECTS_FALSE='#' 4084 else 4085 SUB_PROJECTS_TRUE='#' 4086 SUB_PROJECTS_FALSE= 4087 fi 4088 4089 4090 #-------------------# 4091 # Profiling Enabled # 4092 #-------------------# 4093 def_profiling=no 4094 echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 4095 echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 4096 # Check whether --enable-profile or --disable-profile was given. 4097 if test "${enable_profile+set}" = set; then 4098 enableval="$enable_profile" 4099 def_profiling=yes 4100 fi; 4101 if test x$def_profiling = xyes; then 4102 echo "yes" 4103 CXXFLAGS="$CXXFLAGS -pg" 4104 fi 4105 if test x$def_profiling = xno; then 4106 echo "no" 4107 fi 4108 4109 #----------------# 4110 # efence Enabled # 4111 #----------------# 4112 def_efence=no 4113 echo "$as_me:$LINENO: checking if efence should be enabled" >&5 4114 echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 4115 # Check whether --enable-efence or --disable-efence was given. 4116 if test "${enable_efence+set}" = set; then 4117 enableval="$enable_efence" 4118 def_efence=yes 4119 fi; 4120 if test x$def_efence = xyes; then 4121 echo "yes" 4122 fi 4123 if test x$def_efence = xno; then 4124 echo "no" 4125 fi 4126 4127 #----------------------# 4128 # Documentation-enable # 4129 #----------------------# 4130 def_documentation=no 4131 echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 4132 echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 4133 # Check whether --enable-documentation or --disable-documentation was given. 4134 if test "${enable_documentation+set}" = set; then 4135 enableval="$enable_documentation" 4136 def_documentation=yes 4137 fi; 4138 if test x$def_documentation = xyes; then 4139 echo "yes" 4140 fi 4141 if test x$def_documentation = xno; then 4142 echo "no" 4143 fi 4144 4145 4146 if test x$def_documentation = xyes; then 4147 DOCUMENTATION_TRUE= 4148 DOCUMENTATION_FALSE='#' 4149 else 4150 DOCUMENTATION_TRUE='#' 4151 DOCUMENTATION_FALSE= 4152 fi 4153 4154 4155 ####################### 4156 ## PROGRAMM CHECKING ## 4157 ## 3. party Programs ## 4158 ####################### 4159 4160 #----------------------# 4161 # checking for Doxygen # 4162 #----------------------# 4163 # Extract the first word of "doxygen", so it can be a program name with args. 4164 set dummy doxygen; ac_word=$2 4165 echo "$as_me:$LINENO: checking for $ac_word" >&5 4166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4167 if test "${ac_cv_path_DOXYGEN+set}" = set; then 4168 echo $ECHO_N "(cached) $ECHO_C" >&6 4169 else 4170 case $DOXYGEN in 4171 [\\/]* | ?:[\\/]*) 4172 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 4173 ;; 4174 *) 4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4176 for as_dir in $PATH 4177 do 4178 IFS=$as_save_IFS 4179 test -z "$as_dir" && as_dir=. 4180 for ac_exec_ext in '' $ac_executable_extensions; do 4181 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4182 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 4183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4184 break 2 4185 fi 4186 done 4187 done 4188 4189 ;; 4190 esac 4191 fi 4192 DOXYGEN=$ac_cv_path_DOXYGEN 4193 4194 if test -n "$DOXYGEN"; then 4195 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 4196 echo "${ECHO_T}$DOXYGEN" >&6 4197 else 4198 echo "$as_me:$LINENO: result: no" >&5 4199 echo "${ECHO_T}no" >&6 4200 fi 4201 4202 4203 4204 if test $DOXYGEN; then 4205 DOXYGEN_TRUE= 4206 DOXYGEN_FALSE='#' 4207 else 4208 DOXYGEN_TRUE='#' 4209 DOXYGEN_FALSE= 4210 fi 4211 4212 4213 #--------------------# 4214 # checking for gprof # 4215 #--------------------# 4216 # Extract the first word of "gprof", so it can be a program name with args. 4217 set dummy gprof; ac_word=$2 4218 echo "$as_me:$LINENO: checking for $ac_word" >&5 4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4220 if test "${ac_cv_path_GPROF+set}" = set; then 4221 echo $ECHO_N "(cached) $ECHO_C" >&6 4222 else 4223 case $GPROF in 4224 [\\/]* | ?:[\\/]*) 4225 ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. 4226 ;; 4227 *) 4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4229 for as_dir in $PATH 4230 do 4231 IFS=$as_save_IFS 4232 test -z "$as_dir" && as_dir=. 4233 for ac_exec_ext in '' $ac_executable_extensions; do 4234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4235 ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" 4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4237 break 2 4238 fi 4239 done 4240 done 4241 4242 ;; 4243 esac 4244 fi 4245 GPROF=$ac_cv_path_GPROF 4246 4247 if test -n "$GPROF"; then 4248 echo "$as_me:$LINENO: result: $GPROF" >&5 4249 echo "${ECHO_T}$GPROF" >&6 4250 else 4251 echo "$as_me:$LINENO: result: no" >&5 4252 echo "${ECHO_T}no" >&6 4253 fi 4254 4255 4256 #-------------------------# 4257 # checking for pkg-config # 4258 #-------------------------# 4259 if test x$def_gtk = xyes; then 4260 # Extract the first word of "pkg-config", so it can be a program name with args. 4261 set dummy pkg-config; ac_word=$2 4262 echo "$as_me:$LINENO: checking for $ac_word" >&5 4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 4265 echo $ECHO_N "(cached) $ECHO_C" >&6 4266 else 4267 case $PKG_CONFIG in 4268 [\\/]* | ?:[\\/]*) 4269 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4270 ;; 4271 *) 4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4273 for as_dir in $PATH 4274 do 4275 IFS=$as_save_IFS 4276 test -z "$as_dir" && as_dir=. 4277 for ac_exec_ext in '' $ac_executable_extensions; do 4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4279 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4281 break 2 4282 fi 4283 done 4284 done 4285 4286 ;; 4287 esac 4288 fi 4289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4290 4291 if test -n "$PKG_CONFIG"; then 4292 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 4293 echo "${ECHO_T}$PKG_CONFIG" >&6 4294 else 4295 echo "$as_me:$LINENO: result: no" >&5 4296 echo "${ECHO_T}no" >&6 4297 fi 4298 4299 fi 4300 4301 4302 ######################### 4303 ## CHECKING FOR SYSTEM ## 4304 ######################### 4305 ## here the system is checked, and openGL is included 4306 ## also checking for SDL on differen Systems 4307 4308 echo "$as_me:$LINENO: checking for System" >&5 4309 echo $ECHO_N "checking for System... $ECHO_C" >&6 4310 ## checking for openGL-environment and other sys-specific parameters 4311 case "$target" in 4312 4313 ########### 4314 #---------# 4315 # WINDOWS # 4316 #---------# 4317 ########### 4318 *-*-mingw32*) 4319 echo "mingw-WINDOWS detected" 4320 4321 CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" 4322 4323 mingw="yes" 4324 MSBITFIELDS="-mms-bitfields" 4325 MWINDOWS="-mwindows" 4326 4327 #--------# 4328 # MIN-GW # 4329 #--------# 4330 # checking for mingw32 4331 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 4332 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 4333 if test "${ac_cv_lib_mingw32_main+set}" = set; then 4334 echo $ECHO_N "(cached) $ECHO_C" >&6 4335 else 4336 ac_check_lib_save_LIBS=$LIBS 4337 LIBS="-lmingw32 $LIBS" 4338 cat >conftest.$ac_ext <<_ACEOF 4339 /* confdefs.h. */ 4340 _ACEOF 4341 cat confdefs.h >>conftest.$ac_ext 4342 cat >>conftest.$ac_ext <<_ACEOF 4343 /* end confdefs.h. */ 4344 4345 4346 int 4347 main () 4348 { 4349 main (); 4350 ; 4351 return 0; 4352 } 4353 _ACEOF 4354 rm -f conftest.$ac_objext conftest$ac_exeext 4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4356 (eval $ac_link) 2>conftest.er1 4357 ac_status=$? 4358 grep -v '^ *+' conftest.er1 >conftest.err 4359 rm -f conftest.er1 4360 cat conftest.err >&5 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4362 (exit $ac_status); } && 4363 { ac_try='test -z "$ac_c_werror_flag" 4364 || test ! -s conftest.err' 4365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4366 (eval $ac_try) 2>&5 4367 ac_status=$? 4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4369 (exit $ac_status); }; } && 4370 { ac_try='test -s conftest$ac_exeext' 4371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4372 (eval $ac_try) 2>&5 4373 ac_status=$? 4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4375 (exit $ac_status); }; }; then 4376 ac_cv_lib_mingw32_main=yes 4377 else 4378 echo "$as_me: failed program was:" >&5 4379 sed 's/^/| /' conftest.$ac_ext >&5 4380 4381 ac_cv_lib_mingw32_main=no 4382 fi 4383 rm -f conftest.err conftest.$ac_objext \ 4384 conftest$ac_exeext conftest.$ac_ext 4385 LIBS=$ac_check_lib_save_LIBS 4386 fi 4387 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 4388 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 4389 if test $ac_cv_lib_mingw32_main = yes; then 4390 FOUND_mingw32=yes 4391 fi 4392 4393 if test x$FOUND_mingw32 = xyes; then 4394 LIBS="$LIBS -lmingw32" 4395 fi 4396 4397 #---------------# 4398 # open-GL (win) # 4399 #---------------# 4400 # checking gl header 4401 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4746 4402 4747 4403 … … 4816 4472 4817 4473 4818 for ac_header in dlfcn.h4474 for ac_header in GL/gl.h 4819 4475 do 4820 4476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 4961 4617 _ACEOF 4962 4618 4619 else 4620 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 4621 echo "$as_me: error: cannot find opengl headers" >&2;} 4622 { (exit 1); exit 1; }; } 4963 4623 fi 4964 4624 4965 4625 done 4966 4626 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 4627 # checking for Windows openGl library 4628 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 4629 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 4630 if test "${ac_cv_lib_opengl32_main+set}" = set; then 4981 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 4982 4632 else 4983 # Double quotes because CXXCPP needs to be expanded4984 for CXXCPP in "$CXX -E" "/lib/cpp"4985 do4986 ac_preproc_ok=false4987 for ac_cxx_preproc_warn_flag in '' yes4988 do4989 # Use a header file that comes with gcc, so configuring glibc4990 # with a fresh cross-compiler works.4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since4992 # <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 <<_ACEOF4996 /* confdefs.h. */4997 _ACEOF4998 cat confdefs.h >>conftest.$ac_ext4999 cat >>conftest.$ac_ext <<_ACEOF5000 /* end confdefs.h. */5001 #ifdef __STDC__5002 # include <limits.h>5003 #else5004 # include <assert.h>5005 #endif5006 Syntax error5007 _ACEOF5008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15010 ac_status=$?5011 grep -v '^ *+' conftest.er1 >conftest.err5012 rm -f conftest.er15013 cat conftest.err >&55014 echo "$as_me:$LINENO: \$? = $ac_status" >&55015 (exit $ac_status); } >/dev/null; then5016 if test -s conftest.err; then5017 ac_cpp_err=$ac_cxx_preproc_warn_flag5018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag5019 else5020 ac_cpp_err=5021 fi5022 else5023 ac_cpp_err=yes5024 fi5025 if test -z "$ac_cpp_err"; then5026 :5027 else5028 echo "$as_me: failed program was:" >&55029 sed 's/^/| /' conftest.$ac_ext >&55030 5031 # Broken: fails on valid input.5032 continue5033 fi5034 rm -f conftest.err conftest.$ac_ext5035 5036 # OK, works on sane cases. Now check whether non-existent headers5037 # can be detected and how.5038 cat >conftest.$ac_ext <<_ACEOF5039 /* confdefs.h. */5040 _ACEOF5041 cat confdefs.h >>conftest.$ac_ext5042 cat >>conftest.$ac_ext <<_ACEOF5043 /* end confdefs.h. */5044 #include <ac_nonexistent.h>5045 _ACEOF5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15048 ac_status=$?5049 grep -v '^ *+' conftest.er1 >conftest.err5050 rm -f conftest.er15051 cat conftest.err >&55052 echo "$as_me:$LINENO: \$? = $ac_status" >&55053 (exit $ac_status); } >/dev/null; then5054 if test -s conftest.err; then5055 ac_cpp_err=$ac_cxx_preproc_warn_flag5056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag5057 else5058 ac_cpp_err=5059 fi5060 else5061 ac_cpp_err=yes5062 fi5063 if test -z "$ac_cpp_err"; then5064 # Broken: success on invalid input.5065 continue5066 else5067 echo "$as_me: failed program was:" >&55068 sed 's/^/| /' conftest.$ac_ext >&55069 5070 # Passes both tests.5071 ac_preproc_ok=:5072 break5073 fi5074 rm -f conftest.err conftest.$ac_ext5075 5076 done5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.5078 rm -f conftest.err conftest.$ac_ext5079 if $ac_preproc_ok; then5080 break5081 fi5082 5083 done5084 ac_cv_prog_CXXCPP=$CXXCPP5085 5086 fi5087 CXXCPP=$ac_cv_prog_CXXCPP5088 else5089 ac_cv_prog_CXXCPP=$CXXCPP5090 fi5091 echo "$as_me:$LINENO: result: $CXXCPP" >&55092 echo "${ECHO_T}$CXXCPP" >&65093 ac_preproc_ok=false5094 for ac_cxx_preproc_warn_flag in '' yes5095 do5096 # Use a header file that comes with gcc, so configuring glibc5097 # with a fresh cross-compiler works.5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since5099 # <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 <<_ACEOF5103 /* confdefs.h. */5104 _ACEOF5105 cat confdefs.h >>conftest.$ac_ext5106 cat >>conftest.$ac_ext <<_ACEOF5107 /* end confdefs.h. */5108 #ifdef __STDC__5109 # include <limits.h>5110 #else5111 # include <assert.h>5112 #endif5113 Syntax error5114 _ACEOF5115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15117 ac_status=$?5118 grep -v '^ *+' conftest.er1 >conftest.err5119 rm -f conftest.er15120 cat conftest.err >&55121 echo "$as_me:$LINENO: \$? = $ac_status" >&55122 (exit $ac_status); } >/dev/null; then5123 if test -s conftest.err; then5124 ac_cpp_err=$ac_cxx_preproc_warn_flag5125 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag5126 else5127 ac_cpp_err=5128 fi5129 else5130 ac_cpp_err=yes5131 fi5132 if test -z "$ac_cpp_err"; then5133 :5134 else5135 echo "$as_me: failed program was:" >&55136 sed 's/^/| /' conftest.$ac_ext >&55137 5138 # Broken: fails on valid input.5139 continue5140 fi5141 rm -f conftest.err conftest.$ac_ext5142 5143 # OK, works on sane cases. Now check whether non-existent headers5144 # can be detected and how.5145 cat >conftest.$ac_ext <<_ACEOF5146 /* confdefs.h. */5147 _ACEOF5148 cat confdefs.h >>conftest.$ac_ext5149 cat >>conftest.$ac_ext <<_ACEOF5150 /* end confdefs.h. */5151 #include <ac_nonexistent.h>5152 _ACEOF5153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&55154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er15155 ac_status=$?5156 grep -v '^ *+' conftest.er1 >conftest.err5157 rm -f conftest.er15158 cat conftest.err >&55159 echo "$as_me:$LINENO: \$? = $ac_status" >&55160 (exit $ac_status); } >/dev/null; then5161 if test -s conftest.err; then5162 ac_cpp_err=$ac_cxx_preproc_warn_flag5163 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag5164 else5165 ac_cpp_err=5166 fi5167 else5168 ac_cpp_err=yes5169 fi5170 if test -z "$ac_cpp_err"; then5171 # Broken: success on invalid input.5172 continue5173 else5174 echo "$as_me: failed program was:" >&55175 sed 's/^/| /' conftest.$ac_ext >&55176 5177 # Passes both tests.5178 ac_preproc_ok=:5179 break5180 fi5181 rm -f conftest.err conftest.$ac_ext5182 5183 done5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.5185 rm -f conftest.err conftest.$ac_ext5186 if $ac_preproc_ok; then5187 :5188 else5189 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check5190 See \`config.log' for more details." >&55191 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check5192 See \`config.log' for more details." >&2;}5193 { (exit 1); exit 1; }; }5194 fi5195 5196 ac_ext=cc5197 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_gnu5201 5202 fi5203 5204 5205 ac_ext=f5206 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_gnu5209 if test -n "$ac_tool_prefix"; then5210 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran5211 do5212 # 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=$25214 echo "$as_me:$LINENO: checking for $ac_word" >&55215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65216 if test "${ac_cv_prog_F77+set}" = set; then5217 echo $ECHO_N "(cached) $ECHO_C" >&65218 else5219 if test -n "$F77"; then5220 ac_cv_prog_F77="$F77" # Let the user override the test.5221 else5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5223 for as_dir in $PATH5224 do5225 IFS=$as_save_IFS5226 test -z "$as_dir" && as_dir=.5227 for ac_exec_ext in '' $ac_executable_extensions; do5228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5229 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55231 break 25232 fi5233 done5234 done5235 5236 fi5237 fi5238 F77=$ac_cv_prog_F775239 if test -n "$F77"; then5240 echo "$as_me:$LINENO: result: $F77" >&55241 echo "${ECHO_T}$F77" >&65242 else5243 echo "$as_me:$LINENO: result: no" >&55244 echo "${ECHO_T}no" >&65245 fi5246 5247 test -n "$F77" && break5248 done5249 fi5250 if test -z "$F77"; then5251 ac_ct_F77=$F775252 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran5253 do5254 # Extract the first word of "$ac_prog", so it can be a program name with args.5255 set dummy $ac_prog; ac_word=$25256 echo "$as_me:$LINENO: checking for $ac_word" >&55257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65258 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then5259 echo $ECHO_N "(cached) $ECHO_C" >&65260 else5261 if test -n "$ac_ct_F77"; then5262 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.5263 else5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5265 for as_dir in $PATH5266 do5267 IFS=$as_save_IFS5268 test -z "$as_dir" && as_dir=.5269 for ac_exec_ext in '' $ac_executable_extensions; do5270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5271 ac_cv_prog_ac_ct_F77="$ac_prog"5272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55273 break 25274 fi5275 done5276 done5277 5278 fi5279 fi5280 ac_ct_F77=$ac_cv_prog_ac_ct_F775281 if test -n "$ac_ct_F77"; then5282 echo "$as_me:$LINENO: result: $ac_ct_F77" >&55283 echo "${ECHO_T}$ac_ct_F77" >&65284 else5285 echo "$as_me:$LINENO: result: no" >&55286 echo "${ECHO_T}no" >&65287 fi5288 5289 test -n "$ac_ct_F77" && break5290 done5291 5292 F77=$ac_ct_F775293 fi5294 5295 5296 # Provide some information about the compiler.5297 echo "$as_me:5297:" \5298 "checking for Fortran 77 compiler version" >&55299 ac_compiler=`set X $ac_compile; echo $2`5300 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&55301 (eval $ac_compiler --version </dev/null >&5) 2>&55302 ac_status=$?5303 echo "$as_me:$LINENO: \$? = $ac_status" >&55304 (exit $ac_status); }5305 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&55306 (eval $ac_compiler -v </dev/null >&5) 2>&55307 ac_status=$?5308 echo "$as_me:$LINENO: \$? = $ac_status" >&55309 (exit $ac_status); }5310 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&55311 (eval $ac_compiler -V </dev/null >&5) 2>&55312 ac_status=$?5313 echo "$as_me:$LINENO: \$? = $ac_status" >&55314 (exit $ac_status); }5315 rm -f a.out5316 5317 # If we don't use `.F' as extension, the preprocessor is not run on the5318 # input file. (Note that this only needs to work for GNU compilers.)5319 ac_save_ext=$ac_ext5320 ac_ext=F5321 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&55322 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&65323 if test "${ac_cv_f77_compiler_gnu+set}" = set; then5324 echo $ECHO_N "(cached) $ECHO_C" >&65325 else5326 cat >conftest.$ac_ext <<_ACEOF5327 program main5328 #ifndef __GNUC__5329 choke me5330 #endif5331 5332 end5333 _ACEOF5334 rm -f conftest.$ac_objext5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55336 (eval $ac_compile) 2>conftest.er15337 ac_status=$?5338 grep -v '^ *+' conftest.er1 >conftest.err5339 rm -f conftest.er15340 cat conftest.err >&55341 echo "$as_me:$LINENO: \$? = $ac_status" >&55342 (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\"") >&55346 (eval $ac_try) 2>&55347 ac_status=$?5348 echo "$as_me:$LINENO: \$? = $ac_status" >&55349 (exit $ac_status); }; } &&5350 { ac_try='test -s conftest.$ac_objext'5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55352 (eval $ac_try) 2>&55353 ac_status=$?5354 echo "$as_me:$LINENO: \$? = $ac_status" >&55355 (exit $ac_status); }; }; then5356 ac_compiler_gnu=yes5357 else5358 echo "$as_me: failed program was:" >&55359 sed 's/^/| /' conftest.$ac_ext >&55360 5361 ac_compiler_gnu=no5362 fi5363 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5364 ac_cv_f77_compiler_gnu=$ac_compiler_gnu5365 5366 fi5367 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&55368 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&65369 ac_ext=$ac_save_ext5370 ac_test_FFLAGS=${FFLAGS+set}5371 ac_save_FFLAGS=$FFLAGS5372 FFLAGS=5373 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&55374 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&65375 if test "${ac_cv_prog_f77_g+set}" = set; then5376 echo $ECHO_N "(cached) $ECHO_C" >&65377 else5378 FFLAGS=-g5379 cat >conftest.$ac_ext <<_ACEOF5380 program main5381 5382 end5383 _ACEOF5384 rm -f conftest.$ac_objext5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55386 (eval $ac_compile) 2>conftest.er15387 ac_status=$?5388 grep -v '^ *+' conftest.er1 >conftest.err5389 rm -f conftest.er15390 cat conftest.err >&55391 echo "$as_me:$LINENO: \$? = $ac_status" >&55392 (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\"") >&55396 (eval $ac_try) 2>&55397 ac_status=$?5398 echo "$as_me:$LINENO: \$? = $ac_status" >&55399 (exit $ac_status); }; } &&5400 { ac_try='test -s conftest.$ac_objext'5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&55402 (eval $ac_try) 2>&55403 ac_status=$?5404 echo "$as_me:$LINENO: \$? = $ac_status" >&55405 (exit $ac_status); }; }; then5406 ac_cv_prog_f77_g=yes5407 else5408 echo "$as_me: failed program was:" >&55409 sed 's/^/| /' conftest.$ac_ext >&55410 5411 ac_cv_prog_f77_g=no5412 fi5413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext5414 5415 fi5416 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&55417 echo "${ECHO_T}$ac_cv_prog_f77_g" >&65418 if test "$ac_test_FFLAGS" = set; then5419 FFLAGS=$ac_save_FFLAGS5420 elif test $ac_cv_prog_f77_g = yes; then5421 if test "x$ac_cv_f77_compiler_gnu" = xyes; then5422 FFLAGS="-g -O2"5423 else5424 FFLAGS="-g"5425 fi5426 else5427 if test "x$ac_cv_f77_compiler_gnu" = xyes; then5428 FFLAGS="-O2"5429 else5430 FFLAGS=5431 fi5432 fi5433 5434 G77=`test $ac_compiler_gnu = yes && echo yes`5435 ac_ext=c5436 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_gnu5440 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 arguments5446 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&55447 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&65448 if test "${lt_cv_sys_max_cmd_len+set}" = set; then5449 echo $ECHO_N "(cached) $ECHO_C" >&65450 else5451 i=05452 teststring="ABCD"5453 5454 case $build_os in5455 msdosdjgpp*)5456 # On DJGPP, this test can blow up pretty badly due to problems in libc5457 # (any single argument exceeding 2000 bytes causes a buffer overrun5458 # during glob expansion). Even if it were fixed, the result of this5459 # check would be larger than it should be.5460 lt_cv_sys_max_cmd_len=12288; # 12K is about right5461 ;;5462 5463 gnu*)5464 # Under GNU Hurd, this test is not required because there is5465 # no limit to the length of command line arguments.5466 # Libtool will interpret -1 as no limit whatsoever5467 lt_cv_sys_max_cmd_len=-1;5468 ;;5469 5470 cygwin* | mingw*)5471 # On Win9x/ME, this test blows up -- it succeeds, but takes5472 # 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 patience5475 # the test eventually succeeds (with a max line length of 256k).5476 # Instead, let's just punt: use the minimum linelength reported by5477 # 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; then5490 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`5491 elif test -x /usr/sbin/sysctl; then5492 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`5493 else5494 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs5495 fi5496 # And add a safety zone5497 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 configure5502 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not5503 # nice to cause kernel panics so lets avoid the loop below.5504 # First set a reasonable default.5505 lt_cv_sys_max_cmd_len=163845506 #5507 if test -x /sbin/sysconfig; then5508 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in5509 *1*) lt_cv_sys_max_cmd_len=-1 ;;5510 esac5511 fi5512 ;;5513 *)5514 # If test is not a shell built-in, we'll probably end up computing a5515 # maximum length that is only half of the actual maximum length, but5516 # 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 enough5523 do5524 i=`expr $i + 1`5525 teststring=$teststring$teststring5526 done5527 teststring=5528 # Add a significant safety factor because C++ compilers can tack on massive5529 # 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 esac5534 5535 fi5536 5537 if test -n $lt_cv_sys_max_cmd_len ; then5538 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&55539 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&65540 else5541 echo "$as_me:$LINENO: result: none" >&55542 echo "${ECHO_T}none" >&65543 fi5544 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" >&55550 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&65551 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then5552 echo $ECHO_N "(cached) $ECHO_C" >&65553 else5554 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 declaration5565 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 address5568 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 in5572 aix*)5573 symcode='[BCDT]'5574 ;;5575 cygwin* | mingw* | pw32*)5576 symcode='[ABCDGISTW]'5577 ;;5578 hpux*) # Its linker distinguishes data from code symbols5579 if test "$host_cpu" = ia64; then5580 symcode='[ABCDEGRST]'5581 fi5582 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; then5587 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 fi5591 ;;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 esac5605 5606 # Handle CRLF in mingw tool chain5607 opt_cr=5608 case $build_os in5609 mingw*)5610 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp5611 ;;5612 esac5613 5614 # If we're using GNU nm, then use its standard symbol codes.5615 case `$NM -V 2>&1` in5616 *GNU* | *'with BFD'*)5617 symcode='[ABCDGIRSTW]' ;;5618 esac5619 5620 # Try without a prefix undercore, then with it.5621 for ac_symprfx in "" "_"; do5622 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=no5631 5632 rm -f conftest*5633 cat > conftest.$ac_ext <<EOF5634 #ifdef __cplusplus5635 extern "C" {5636 #endif5637 char nm_test_var;5638 void nm_test_func(){}5639 #ifdef __cplusplus5640 }5641 #endif5642 int main(){nm_test_var='a';nm_test_func();return(0);}5643 EOF5644 5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&55646 (eval $ac_compile) 2>&55647 ac_status=$?5648 echo "$as_me:$LINENO: \$? = $ac_status" >&55649 (exit $ac_status); }; then5650 # Now try to grab the symbols.5651 nlist=conftest.nm5652 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&55653 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&55654 ac_status=$?5655 echo "$as_me:$LINENO: \$? = $ac_status" >&55656 (exit $ac_status); } && test -s "$nlist"; then5657 # Try sorting and uniquifying the output.5658 if sort "$nlist" | uniq > "$nlist"T; then5659 mv -f "$nlist"T "$nlist"5660 else5661 rm -f "$nlist"T5662 fi5663 5664 # Make sure that we snagged all the symbols we need.5665 if grep ' nm_test_var$' "$nlist" >/dev/null; then5666 if grep ' nm_test_func$' "$nlist" >/dev/null; then5667 cat <<EOF > conftest.$ac_ext5668 #ifdef __cplusplus5669 extern "C" {5670 #endif5671 5672 EOF5673 # 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_ext5677 #if defined (__STDC__) && __STDC__5678 # define lt_ptr_t void *5679 #else5680 # define lt_ptr_t char *5681 # define const5682 #endif5683 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 EOF5692 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext5693 cat <<\EOF >> conftest.$ac_ext5694 {0, (lt_ptr_t) 0}5695 };5696 5697 #ifdef __cplusplus5698 }5699 #endif5700 EOF5701 # Now try linking the two files.5702 mv conftest.$ac_objext conftstm.$ac_objext5703 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\"") >&55708 (eval $ac_link) 2>&55709 ac_status=$?5710 echo "$as_me:$LINENO: \$? = $ac_status" >&55711 (exit $ac_status); } && test -s conftest${ac_exeext}; then5712 pipe_works=yes5713 fi5714 LIBS="$lt_save_LIBS"5715 CFLAGS="$lt_save_CFLAGS"5716 else5717 echo "cannot find nm_test_func in $nlist" >&55718 fi5719 else5720 echo "cannot find nm_test_var in $nlist" >&55721 fi5722 else5723 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&55724 fi5725 else5726 echo "$progname: failed program was:" >&55727 cat conftest.$ac_ext >&55728 fi5729 rm -f conftest* conftst*5730 5731 # Do not use the global_symbol_pipe unless it works.5732 if test "$pipe_works" = yes; then5733 break5734 else5735 lt_cv_sys_global_symbol_pipe=5736 fi5737 done5738 5739 fi5740 5741 if test -z "$lt_cv_sys_global_symbol_pipe"; then5742 lt_cv_sys_global_symbol_to_cdecl=5743 fi5744 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then5745 echo "$as_me:$LINENO: result: failed" >&55746 echo "${ECHO_T}failed" >&65747 else5748 echo "$as_me:$LINENO: result: ok" >&55749 echo "${ECHO_T}ok" >&65750 fi5751 5752 echo "$as_me:$LINENO: checking for objdir" >&55753 echo $ECHO_N "checking for objdir... $ECHO_C" >&65754 if test "${lt_cv_objdir+set}" = set; then5755 echo $ECHO_N "(cached) $ECHO_C" >&65756 else5757 rm -f .libs 2>/dev/null5758 mkdir .libs 2>/dev/null5759 if test -d .libs; then5760 lt_cv_objdir=.libs5761 else5762 # MS-DOS does not allow filenames that begin with a dot.5763 lt_cv_objdir=_libs5764 fi5765 rmdir .libs 2>/dev/null5766 fi5767 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&55768 echo "${ECHO_T}$lt_cv_objdir" >&65769 objdir=$lt_cv_objdir5770 5771 5772 5773 5774 5775 case $host_os in5776 aix3*)5777 # AIX sometimes has problems with the GCC collect2 program. For some5778 # reason, if we set the COLLECT_NAMES environment variable, the problems5779 # vanish in a puff of smoke.5780 if test "X${COLLECT_NAMES+set}" != Xset; then5781 COLLECT_NAMES=5782 export COLLECT_NAMES5783 fi5784 ;;5785 esac5786 5787 # Sed substitution that helps us do robust quoting. It backslashifies5788 # 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 a5796 # double_quote_subst'ed string.5797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'5798 5799 # Sed substitution to avoid accidental globbing in evaled expressions5800 no_glob_subst='s/\*/\\\*/g'5801 5802 # Constants:5803 rm="rm -f"5804 5805 # Global variables:5806 default_ofile=libtool5807 can_build_shared=yes5808 5809 # All known linkers require a `.a' archive for static linking (except MSVC,5810 # which needs '.lib').5811 libext=a5812 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"; then5817 # 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=$25819 echo "$as_me:$LINENO: checking for $ac_word" >&55820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65821 if test "${ac_cv_prog_AR+set}" = set; then5822 echo $ECHO_N "(cached) $ECHO_C" >&65823 else5824 if test -n "$AR"; then5825 ac_cv_prog_AR="$AR" # Let the user override the test.5826 else5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5828 for as_dir in $PATH5829 do5830 IFS=$as_save_IFS5831 test -z "$as_dir" && as_dir=.5832 for ac_exec_ext in '' $ac_executable_extensions; do5833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5834 ac_cv_prog_AR="${ac_tool_prefix}ar"5835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55836 break 25837 fi5838 done5839 done5840 5841 fi5842 fi5843 AR=$ac_cv_prog_AR5844 if test -n "$AR"; then5845 echo "$as_me:$LINENO: result: $AR" >&55846 echo "${ECHO_T}$AR" >&65847 else5848 echo "$as_me:$LINENO: result: no" >&55849 echo "${ECHO_T}no" >&65850 fi5851 5852 fi5853 if test -z "$ac_cv_prog_AR"; then5854 ac_ct_AR=$AR5855 # Extract the first word of "ar", so it can be a program name with args.5856 set dummy ar; ac_word=$25857 echo "$as_me:$LINENO: checking for $ac_word" >&55858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65859 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then5860 echo $ECHO_N "(cached) $ECHO_C" >&65861 else5862 if test -n "$ac_ct_AR"; then5863 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.5864 else5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5866 for as_dir in $PATH5867 do5868 IFS=$as_save_IFS5869 test -z "$as_dir" && as_dir=.5870 for ac_exec_ext in '' $ac_executable_extensions; do5871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5872 ac_cv_prog_ac_ct_AR="ar"5873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55874 break 25875 fi5876 done5877 done5878 5879 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"5880 fi5881 fi5882 ac_ct_AR=$ac_cv_prog_ac_ct_AR5883 if test -n "$ac_ct_AR"; then5884 echo "$as_me:$LINENO: result: $ac_ct_AR" >&55885 echo "${ECHO_T}$ac_ct_AR" >&65886 else5887 echo "$as_me:$LINENO: result: no" >&55888 echo "${ECHO_T}no" >&65889 fi5890 5891 AR=$ac_ct_AR5892 else5893 AR="$ac_cv_prog_AR"5894 fi5895 5896 if test -n "$ac_tool_prefix"; then5897 # 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=$25899 echo "$as_me:$LINENO: checking for $ac_word" >&55900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65901 if test "${ac_cv_prog_RANLIB+set}" = set; then5902 echo $ECHO_N "(cached) $ECHO_C" >&65903 else5904 if test -n "$RANLIB"; then5905 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.5906 else5907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5908 for as_dir in $PATH5909 do5910 IFS=$as_save_IFS5911 test -z "$as_dir" && as_dir=.5912 for ac_exec_ext in '' $ac_executable_extensions; do5913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5914 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"5915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55916 break 25917 fi5918 done5919 done5920 5921 fi5922 fi5923 RANLIB=$ac_cv_prog_RANLIB5924 if test -n "$RANLIB"; then5925 echo "$as_me:$LINENO: result: $RANLIB" >&55926 echo "${ECHO_T}$RANLIB" >&65927 else5928 echo "$as_me:$LINENO: result: no" >&55929 echo "${ECHO_T}no" >&65930 fi5931 5932 fi5933 if test -z "$ac_cv_prog_RANLIB"; then5934 ac_ct_RANLIB=$RANLIB5935 # Extract the first word of "ranlib", so it can be a program name with args.5936 set dummy ranlib; ac_word=$25937 echo "$as_me:$LINENO: checking for $ac_word" >&55938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65939 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then5940 echo $ECHO_N "(cached) $ECHO_C" >&65941 else5942 if test -n "$ac_ct_RANLIB"; then5943 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.5944 else5945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5946 for as_dir in $PATH5947 do5948 IFS=$as_save_IFS5949 test -z "$as_dir" && as_dir=.5950 for ac_exec_ext in '' $ac_executable_extensions; do5951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5952 ac_cv_prog_ac_ct_RANLIB="ranlib"5953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55954 break 25955 fi5956 done5957 done5958 5959 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"5960 fi5961 fi5962 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB5963 if test -n "$ac_ct_RANLIB"; then5964 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&55965 echo "${ECHO_T}$ac_ct_RANLIB" >&65966 else5967 echo "$as_me:$LINENO: result: no" >&55968 echo "${ECHO_T}no" >&65969 fi5970 5971 RANLIB=$ac_ct_RANLIB5972 else5973 RANLIB="$ac_cv_prog_RANLIB"5974 fi5975 5976 if test -n "$ac_tool_prefix"; then5977 # 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=$25979 echo "$as_me:$LINENO: checking for $ac_word" >&55980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&65981 if test "${ac_cv_prog_STRIP+set}" = set; then5982 echo $ECHO_N "(cached) $ECHO_C" >&65983 else5984 if test -n "$STRIP"; then5985 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.5986 else5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR5988 for as_dir in $PATH5989 do5990 IFS=$as_save_IFS5991 test -z "$as_dir" && as_dir=.5992 for ac_exec_ext in '' $ac_executable_extensions; do5993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then5994 ac_cv_prog_STRIP="${ac_tool_prefix}strip"5995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&55996 break 25997 fi5998 done5999 done6000 6001 fi6002 fi6003 STRIP=$ac_cv_prog_STRIP6004 if test -n "$STRIP"; then6005 echo "$as_me:$LINENO: result: $STRIP" >&56006 echo "${ECHO_T}$STRIP" >&66007 else6008 echo "$as_me:$LINENO: result: no" >&56009 echo "${ECHO_T}no" >&66010 fi6011 6012 fi6013 if test -z "$ac_cv_prog_STRIP"; then6014 ac_ct_STRIP=$STRIP6015 # Extract the first word of "strip", so it can be a program name with args.6016 set dummy strip; ac_word=$26017 echo "$as_me:$LINENO: checking for $ac_word" >&56018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&66019 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then6020 echo $ECHO_N "(cached) $ECHO_C" >&66021 else6022 if test -n "$ac_ct_STRIP"; then6023 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.6024 else6025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR6026 for as_dir in $PATH6027 do6028 IFS=$as_save_IFS6029 test -z "$as_dir" && as_dir=.6030 for ac_exec_ext in '' $ac_executable_extensions; do6031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then6032 ac_cv_prog_ac_ct_STRIP="strip"6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&56034 break 26035 fi6036 done6037 done6038 6039 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"6040 fi6041 fi6042 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP6043 if test -n "$ac_ct_STRIP"; then6044 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&56045 echo "${ECHO_T}$ac_ct_STRIP" >&66046 else6047 echo "$as_me:$LINENO: result: no" >&56048 echo "${ECHO_T}no" >&66049 fi6050 6051 STRIP=$ac_ct_STRIP6052 else6053 STRIP="$ac_cv_prog_STRIP"6054 fi6055 6056 6057 old_CC="$CC"6058 old_CFLAGS="$CFLAGS"6059 6060 # Set sane defaults for various variables6061 test -z "$AR" && AR=ar6062 test -z "$AR_FLAGS" && AR_FLAGS=cru6063 test -z "$AS" && AS=as6064 test -z "$CC" && CC=cc6065 test -z "$LTCC" && LTCC=$CC6066 test -z "$DLLTOOL" && DLLTOOL=dlltool6067 test -z "$LD" && LD=ld6068 test -z "$LN_S" && LN_S="ln -s"6069 test -z "$MAGIC_CMD" && MAGIC_CMD=file6070 test -z "$NM" && NM=nm6071 test -z "$SED" && SED=sed6072 test -z "$OBJDUMP" && OBJDUMP=objdump6073 test -z "$RANLIB" && RANLIB=:6074 test -z "$STRIP" && STRIP=:6075 test -z "$ac_objext" && ac_objext=o6076 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"; then6083 case $host_os in6084 openbsd*)6085 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"6086 ;;6087 *)6088 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"6089 ;;6090 esac6091 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"6092 fi6093 6094 for cc_temp in $compiler""; do6095 case $cc_temp in6096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;6097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;6098 \-*) ;;6099 *) break;;6100 esac6101 done6102 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 it6106 case $deplibs_check_method in6107 file_magic*)6108 if test "$file_magic_cmd" = '$MAGIC_CMD'; then6109 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&56110 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&66111 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then6112 echo $ECHO_N "(cached) $ECHO_C" >&66113 else6114 case $MAGIC_CMD in6115 [\\/*] | ?:[\\/]*)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_SEPARATOR6121 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"6122 for ac_dir in $ac_dummy; do6123 IFS="$lt_save_ifs"6124 test -z "$ac_dir" && ac_dir=.6125 if test -f $ac_dir/${ac_tool_prefix}file; then6126 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"6127 if test -n "$file_magic_test_file"; then6128 case $deplibs_check_method in6129 "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; then6134 :6135 else6136 cat <<EOF 1>&26137 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 libraries6141 *** as such. This will affect the creation of libtool libraries that6142 *** depend on shared libraries, but programs linked with such libtool6143 *** libraries will work regardless of this problem. Nevertheless, you6144 *** may want to report the problem to your system manager and/or to6145 *** bug-libtool@gnu.org6146 6147 EOF6148 fi ;;6149 esac6150 fi6151 break6152 fi6153 done6154 IFS="$lt_save_ifs"6155 MAGIC_CMD="$lt_save_MAGIC_CMD"6156 ;;6157 esac6158 fi6159 6160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"6161 if test -n "$MAGIC_CMD"; then6162 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&56163 echo "${ECHO_T}$MAGIC_CMD" >&66164 else6165 echo "$as_me:$LINENO: result: no" >&56166 echo "${ECHO_T}no" >&66167 fi6168 6169 if test -z "$lt_cv_path_MAGIC_CMD"; then6170 if test -n "$ac_tool_prefix"; then6171 echo "$as_me:$LINENO: checking for file" >&56172 echo $ECHO_N "checking for file... $ECHO_C" >&66173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then6174 echo $ECHO_N "(cached) $ECHO_C" >&66175 else6176 case $MAGIC_CMD in6177 [\\/*] | ?:[\\/]*)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_SEPARATOR6183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"6184 for ac_dir in $ac_dummy; do6185 IFS="$lt_save_ifs"6186 test -z "$ac_dir" && ac_dir=.6187 if test -f $ac_dir/file; then6188 lt_cv_path_MAGIC_CMD="$ac_dir/file"6189 if test -n "$file_magic_test_file"; then6190 case $deplibs_check_method in6191 "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; then6196 :6197 else6198 cat <<EOF 1>&26199 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 libraries6203 *** as such. This will affect the creation of libtool libraries that6204 *** depend on shared libraries, but programs linked with such libtool6205 *** libraries will work regardless of this problem. Nevertheless, you6206 *** may want to report the problem to your system manager and/or to6207 *** bug-libtool@gnu.org6208 6209 EOF6210 fi ;;6211 esac6212 fi6213 break6214 fi6215 done6216 IFS="$lt_save_ifs"6217 MAGIC_CMD="$lt_save_MAGIC_CMD"6218 ;;6219 esac6220 fi6221 6222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"6223 if test -n "$MAGIC_CMD"; then6224 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&56225 echo "${ECHO_T}$MAGIC_CMD" >&66226 else6227 echo "$as_me:$LINENO: result: no" >&56228 echo "${ECHO_T}no" >&66229 fi6230 6231 else6232 MAGIC_CMD=:6233 fi6234 fi6235 6236 fi6237 ;;6238 esac6239 6240 enable_dlopen=no6241 enable_win32_dll=no6242 6243 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.6244 if test "${enable_libtool_lock+set}" = set; then6245 enableval="$enable_libtool_lock"6246 6247 fi;6248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes6249 6250 6251 # Check whether --with-pic or --without-pic was given.6252 if test "${with_pic+set}" = set; then6253 withval="$with_pic"6254 pic_mode="$withval"6255 else6256 pic_mode=default6257 fi;6258 test -z "$pic_mode" && pic_mode=default6259 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 actually6264 # calls AC_LIBTOOL_CONFIG and creates libtool.6265 #6266 echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&56267 echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&66268 if test -z "$ltmain"; then6269 echo "$as_me:$LINENO: result: no" >&56270 echo "${ECHO_T}no" >&66271 echo6272 echo "*** [Gentoo] sanity check failed! ***"6273 echo "*** \$ltmain is not defined, please check the patch for consistency! ***"6274 echo6275 exit 16276 fi6277 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"; then6280 echo "$as_me:$LINENO: result: no" >&56281 echo "${ECHO_T}no" >&66282 echo6283 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 echo6287 echo "Please run:"6288 echo6289 echo " libtoolize --copy --force"6290 echo6291 echo "if appropriate, please contact the maintainer of this"6292 echo "package (or your distribution) for help."6293 echo6294 exit 16295 else6296 echo "$as_me:$LINENO: result: yes" >&56297 echo "${ECHO_T}yes" >&66298 fi6299 6300 6301 # Use C for the default configuration in the libtool script6302 tagname=6303 lt_save_CC="$CC"6304 ac_ext=c6305 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_gnu6309 6310 6311 # Source file extension for C test sources.6312 ac_ext=c6313 6314 # Object file extension for compiled C test sources.6315 objext=o6316 objext=$objext6317 6318 # Code to be used in simple compile tests6319 lt_simple_compile_test_code="int some_variable = 0;\n"6320 6321 # Code to be used in simple link tests6322 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=$CC6330 6331 6332 # save warnings/boilerplate of simple test code6333 ac_outfile=conftest.$ac_objext6334 printf "$lt_simple_compile_test_code" >conftest.$ac_ext6335 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err6336 _lt_compiler_boilerplate=`cat conftest.err`6337 $rm conftest*6338 6339 ac_outfile=conftest.$ac_objext6340 printf "$lt_simple_link_test_code" >conftest.$ac_ext6341 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err6342 _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; then6351 case $host_os in6352 sco3.2v5*)6353 lt_prog_cc_shlib='-belf'6354 ;;6355 esac6356 fi6357 if test -n "$lt_prog_cc_shlib"; then6358 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&56359 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 else6362 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&56363 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=no6365 fi6366 fi6367 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" >&56373 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&66374 if test "${lt_prog_compiler_static_works+set}" = set; then6375 echo $ECHO_N "(cached) $ECHO_C" >&66376 else6377 lt_prog_compiler_static_works=no6378 save_LDFLAGS="$LDFLAGS"6379 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"6380 printf "$lt_simple_link_test_code" > conftest.$ac_ext6381 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then6382 # The linker can only warn and ignore the option if not recognized6383 # So say no if there are warnings6384 if test -s conftest.err; then6385 # Append any errors to the config.log.6386 cat conftest.err 1>&56387 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp6388 $SED '/^$/d' conftest.err >conftest.er26389 if diff conftest.exp conftest.er2 >/dev/null; then6390 lt_prog_compiler_static_works=yes6391 fi6392 else6393 lt_prog_compiler_static_works=yes6394 fi6395 fi6396 $rm conftest*6397 LDFLAGS="$save_LDFLAGS"6398 6399 fi6400 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&56401 echo "${ECHO_T}$lt_prog_compiler_static_works" >&66402 6403 if test x"$lt_prog_compiler_static_works" = xyes; then6404 :6405 else6406 lt_prog_compiler_static=6407 fi6408 6409 6410 6411 6412 lt_prog_compiler_no_builtin_flag=6413 6414 if test "$GCC" = yes; then6415 lt_prog_compiler_no_builtin_flag=' -fno-builtin'6416 6417 6418 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&56419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&66420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then6421 echo $ECHO_N "(cached) $ECHO_C" >&66422 else6423 lt_cv_prog_compiler_rtti_exceptions=no6424 ac_outfile=conftest.$ac_objext6425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext6426 lt_compiler_flag="-fno-rtti -fno-exceptions"6427 # Insert the option either (1) after the last *FLAGS variable, or6428 # (2) before a word containing "conftest.", or (3) at the end.6429 # Note that $ac_compile itself does not contain backslashes and begins6430 # 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 >&56440 echo "$as_me:6440: \$? = $ac_status" >&56441 if (exit $ac_status) && test -s "$ac_outfile"; then6442 # The compiler can only warn and ignore the option if not recognized6443 # So say no if there are warnings other than the usual output.6444 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp6445 $SED '/^$/d' conftest.err >conftest.er26446 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then6447 lt_cv_prog_compiler_rtti_exceptions=yes6448 fi6449 fi6450 $rm conftest*6451 6452 fi6453 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&56454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&66455 6456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then6457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"6458 else6459 :6460 fi6461 6462 fi6463 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" >&56469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&66470 6471 if test "$GCC" = yes; then6472 lt_prog_compiler_wl='-Wl,'6473 lt_prog_compiler_static='-static'6474 6475 case $host_os in6476 aix*)6477 # All AIX code is PIC.6478 if test "$host_cpu" = ia64; then6479 # AIX 5 now supports IA64 processor6480 lt_prog_compiler_static='-Bstatic'6481 fi6482 ;;6483 6484 amigaos*)6485 # FIXME: we need at least 68020 code to build shared libraries, but6486 # 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 being6497 # 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 platform6503 # Common symbols not allowed in MH_DYLIB files6504 lt_prog_compiler_pic='-fno-common'6505 ;;6506 6507 msdosdjgpp*)6508 # Just because we use GCC doesn't mean we suddenly get shared libraries6509 # on systems that don't support them.6510 lt_prog_compiler_can_build_shared=no6511 enable_shared=no6512 ;;6513 6514 sysv4*MP*)6515 if test -d /usr/nec; then6516 lt_prog_compiler_pic=-Kconform_pic6517 fi6518 ;;6519 6520 hpux*)6521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but6522 # not for PA HP-UX.6523 case $host_cpu in6524 hppa*64*|ia64*)6525 # +Z the default6526 ;;6527 *)6528 lt_prog_compiler_pic='-fPIC'6529 ;;6530 esac6531 ;;6532 6533 *)6534 lt_prog_compiler_pic='-fPIC'6535 ;;6536 esac6537 else6538 # PORTME Check for flag to pass linker flags through the system compiler.6539 case $host_os in6540 aix*)6541 lt_prog_compiler_wl='-Wl,'6542 if test "$host_cpu" = ia64; then6543 # AIX 5 now supports IA64 processor6544 lt_prog_compiler_static='-Bstatic'6545 else6546 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'6547 fi6548 ;;6549 darwin*)6550 # PIC is the default on this platform6551 # Common symbols not allowed in MH_DYLIB files6552 case $cc_basename in6553 xlc*)6554 lt_prog_compiler_pic='-qnocommon'6555 lt_prog_compiler_wl='-Wl,'6556 ;;6557 esac6558 ;;6559 6560 mingw* | pw32* | os2*)6561 # This hack is so that the source file can tell whether it is being6562 # 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, but6569 # not for PA HP-UX.6570 case $host_cpu in6571 hppa*64*|ia64*)6572 # +Z the default6573 ;;6574 *)6575 lt_prog_compiler_pic='+Z'6576 ;;6577 esac6578 # 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 in6595 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 esac6613 ;;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 in6630 f77* | f90* | f95*)6631 lt_prog_compiler_wl='-Qoption ld ';;6632 *)6633 lt_prog_compiler_wl='-Wl,';;6634 esac6635 ;;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 ;then6651 lt_prog_compiler_pic='-Kconform_pic'6652 lt_prog_compiler_static='-Bstatic'6653 fi6654 ;;6655 6656 unicos*)6657 lt_prog_compiler_wl='-Wl,'6658 lt_prog_compiler_can_build_shared=no6659 ;;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=no6668 ;;6669 esac6670 fi6671 6672 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&56673 echo "${ECHO_T}$lt_prog_compiler_pic" >&66674 6675 #6676 # Check to make sure the PIC flag actually works.6677 #6678 if test -n "$lt_prog_compiler_pic"; then6679 6680 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&56681 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&66682 if test "${lt_prog_compiler_pic_works+set}" = set; then6683 echo $ECHO_N "(cached) $ECHO_C" >&66684 else6685 lt_prog_compiler_pic_works=no6686 ac_outfile=conftest.$ac_objext6687 printf "$lt_simple_compile_test_code" > conftest.$ac_ext6688 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"6689 # Insert the option either (1) after the last *FLAGS variable, or6690 # (2) before a word containing "conftest.", or (3) at the end.6691 # Note that $ac_compile itself does not contain backslashes and begins6692 # 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 >&56702 echo "$as_me:6702: \$? = $ac_status" >&56703 if (exit $ac_status) && test -s "$ac_outfile"; then6704 # The compiler can only warn and ignore the option if not recognized6705 # So say no if there are warnings other than the usual output.6706 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp6707 $SED '/^$/d' conftest.err >conftest.er26708 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then6709 lt_prog_compiler_pic_works=yes6710 fi6711 fi6712 $rm conftest*6713 6714 fi6715 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&56716 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&66717 6718 if test x"$lt_prog_compiler_pic_works" = xyes; then6719 case $lt_prog_compiler_pic in6720 "" | " "*) ;;6721 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;6722 esac6723 else6724 lt_prog_compiler_pic=6725 lt_prog_compiler_can_build_shared=no6726 fi6727 6728 fi6729 case $host_os in6730 # 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 esac6738 6739 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&56740 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&66741 if test "${lt_cv_prog_compiler_c_o+set}" = set; then6742 echo $ECHO_N "(cached) $ECHO_C" >&66743 else6744 lt_cv_prog_compiler_c_o=no6745 $rm -r conftest 2>/dev/null6746 mkdir conftest6747 cd conftest6748 mkdir out6749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext6750 6751 lt_compiler_flag="-o out/conftest2.$ac_objext"6752 # Insert the option either (1) after the last *FLAGS variable, or6753 # (2) before a word containing "conftest.", or (3) at the end.6754 # Note that $ac_compile itself does not contain backslashes and begins6755 # 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 >&56764 echo "$as_me:6764: \$? = $ac_status" >&56765 if (exit $ac_status) && test -s out/conftest2.$ac_objext6766 then6767 # The compiler can only warn and ignore the option if not recognized6768 # So say no if there are warnings6769 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp6770 $SED '/^$/d' out/conftest.err >out/conftest.er26771 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then6772 lt_cv_prog_compiler_c_o=yes6773 fi6774 fi6775 chmod u+w . 2>&56776 $rm conftest*6777 # SGI C++ compiler will create directory out/ii_files/ for6778 # template instantiation6779 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files6780 $rm out/* && rmdir out6781 cd ..6782 rmdir conftest6783 $rm conftest*6784 6785 fi6786 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&56787 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&66788 6789 6790 hard_links="nottested"6791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then6792 # do not overwrite the value of need_locks provided by the user6793 echo "$as_me:$LINENO: checking if we can lock with hard links" >&56794 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&66795 hard_links=yes6796 $rm conftest*6797 ln conftest.a conftest.b 2>/dev/null && hard_links=no6798 touch conftest.a6799 ln conftest.a conftest.b 2>&5 || hard_links=no6800 ln conftest.a conftest.b 2>/dev/null && hard_links=no6801 echo "$as_me:$LINENO: result: $hard_links" >&56802 echo "${ECHO_T}$hard_links" >&66803 if test "$hard_links" = no; then6804 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&56805 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}6806 need_locks=warn6807 fi6808 else6809 need_locks=no6810 fi6811 6812 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&56813 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&66814 6815 runpath_var=6816 allow_undefined_flag=6817 enable_shared_with_static_runtimes=no6818 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=no6829 hardcode_minus_L=no6830 hardcode_shlibpath_var=unsupported6831 link_all_deplibs=unknown6832 hardcode_automatic=no6833 module_cmds=6834 module_expsym_cmds=6835 always_export_symbols=no6836 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 list6839 include_expsyms=6840 # exclude_expsyms can be an extended regexp of symbols to exclude6841 # it will be wrapped by ` (' and `)$', so one must not match beginning or6842 # 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.out6846 # platforms (ab)use it in PIC code, but their linkers get confused if6847 # the symbol is explicitly referenced. Since portable code cannot6848 # rely on this symbol name, it's probably fine to never include it in6849 # preloaded symbol tables.6850 extract_expsyms_cmds=6851 # Just being paranoid about ensuring that cc_basename is set.6852 for cc_temp in $compiler""; do6853 case $cc_temp in6854 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;6855 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;6856 \-*) ;;6857 *) break;;6858 esac6859 done6860 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`6861 6862 case $host_os in6863 cygwin* | mingw* | pw32*)6864 # FIXME: the MSVC++ port hasn't been tested in a loooong time6865 # When not using gcc, we currently assume that we are using6866 # Microsoft Visual C++.6867 if test "$GCC" != yes; then6868 with_gnu_ld=no6869 fi6870 ;;6871 openbsd*)6872 with_gnu_ld=no6873 ;;6874 esac6875 6876 ld_shlibs=yes6877 if test "$with_gnu_ld" = yes; then6878 # If archive_cmds runs LD, not CC, wlarc should be empty6879 wlarc='${wl}'6880 6881 # Set some defaults for GNU ld with shared library support. These6882 # are reset later if shared libraries are not supported. Putting them6883 # here allows them to be overridden if necessary.6884 runpath_var=LD_RUN_PATH6885 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; then6889 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'6890 else6891 whole_archive_flag_spec=6892 fi6893 supports_anon_versioning=no6894 case `$LD -v 2>/dev/null` in6895 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.116896 *\ 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 versions6899 *) supports_anon_versioning=yes ;;6900 esac6901 6902 # See if GNU ld supports shared libraries.6903 case $host_os in6904 aix3* | aix4* | aix5*)6905 # On AIX/PPC, the GNU linker is very broken6906 if test "$host_cpu" != ia64; then6907 ld_shlibs=no6908 cat <<EOF 1>&26909 6910 *** Warning: the GNU linker, at least up to release 2.9.1, is reported6911 *** to be unable to reliably create shared libraries on AIX.6912 *** Therefore, libtool is disabling shared libraries support. If you6913 *** really care for shared libraries, you may want to modify your PATH6914 *** so that a non-GNU linker is found, and then restart.6915 6916 EOF6917 fi6918 ;;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=yes6924 6925 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports6926 # that the semantics of dynamic libraries on AmigaOS, at least up6927 # to version 4, is to share data among multiple programs linked6928 # with the same dynamic library. Since this doesn't match the6929 # behavior of shared libraries on other platforms, we can't use6930 # them.6931 ld_shlibs=no6932 ;;6933 6934 beos*)6935 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then6936 allow_undefined_flag=unsupported6937 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc6938 # support --undefined. This deserves some investigation. FIXME6939 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'6940 else6941 ld_shlibs=no6942 fi6943 ;;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=unsupported6950 always_export_symbols=no6951 enable_shared_with_static_runtimes=yes6952 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; then6955 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 line6957 # is EXPORTS), use it as is; otherwise, prepend...6958 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then6959 cp $export_symbols $output_objdir/$soname.def;6960 else6961 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 else6966 ld_shlibs=no6967 fi6968 ;;6969 6970 linux*)6971 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then6972 tmp_addflag=6973 case $cc_basename,$host_cpu in6974 pgcc*) # Portland Group C compiler6975 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 compilers6979 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 ia646982 tmp_addflag=' -i_dynamic' ;;6983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia646984 tmp_addflag=' -i_dynamic -nofor_main' ;;6985 ifc* | ifort*) # Intel Fortran compiler6986 tmp_addflag=' -nofor_main' ;;6987 esac6988 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'6989 6990 if test $supports_anon_versioning = yes; then6991 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 fi6996 else6997 ld_shlibs=no6998 fi6999 ;;7000 7001 netbsd*)7002 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then7003 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'7004 wlarc=7005 else7006 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 fi7009 ;;7010 7011 solaris* | sysv5*)7012 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then7013 ld_shlibs=no7014 cat <<EOF 1>&27015 7016 *** Warning: The releases 2.8.* of the GNU linker cannot reliably7017 *** create shared libraries on Solaris systems. Therefore, libtool7018 *** is disabling shared libraries support. We urge you to upgrade GNU7019 *** binutils to release 2.9.1 or newer. Another option is to modify7020 *** your PATH or compiler configuration so that the native linker is7021 *** used, and then restart.7022 7023 EOF7024 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then7025 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 else7028 ld_shlibs=no7029 fi7030 ;;7031 7032 sunos4*)7033 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'7034 wlarc=7035 hardcode_direct=yes7036 hardcode_shlibpath_var=no7037 ;;7038 7039 *)7040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then7041 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 else7044 ld_shlibs=no7045 fi7046 ;;7047 esac7048 7049 if test "$ld_shlibs" = no; then7050 runpath_var=7051 hardcode_libdir_flag_spec=7052 export_dynamic_flag_spec=7053 whole_archive_flag_spec=7054 fi7055 else7056 # PORTME fill in a description of your system's linker (not GNU ld)7057 case $host_os in7058 aix3*)7059 allow_undefined_flag=unsupported7060 always_export_symbols=yes7061 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 there7063 # are no directories specified by -L.7064 hardcode_minus_L=yes7065 if test "$GCC" = yes && test -z "$link_static_flag"; then7066 # Neither direct hardcoding nor static linking is supported with a7067 # broken collect2.7068 hardcode_direct=unsupported7069 fi7070 ;;7071 7072 aix4* | aix5*)7073 if test "$host_cpu" = ia64; then7074 # On IA64, the linker does run time linking by default, so we don't7075 # have to do anything special.7076 aix_use_runtimelinking=no7077 exp_sym_flag='-Bexport'7078 no_entry_flag=""7079 else7080 # 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 nm7082 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then7083 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 else7085 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 fi7087 aix_use_runtimelinking=no7088 7089 # Test if we are trying to use run time linking or normal7090 # AIX style linking. If -brtl is somewhere in LDFLAGS, we7091 # need to do runtime linking.7092 case $host_os in aix4.[23]|aix4.[23].*|aix5*)7093 for ld_flag in $LDFLAGS; do7094 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then7095 aix_use_runtimelinking=yes7096 break7097 fi7098 done7099 esac7100 7101 exp_sym_flag='-bexport'7102 no_entry_flag='-bnoentry'7103 fi7104 7105 # When large executables or shared objects are built, AIX ld can7106 # have problems creating the table of contents. If linking a library7107 # or program results in "error TOC overflow" add -mminimal-toc to7108 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not7109 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.7110 7111 archive_cmds=''7112 hardcode_direct=yes7113 hardcode_libdir_separator=':'7114 link_all_deplibs=yes7115 7116 if test "$GCC" = yes; then7117 case $host_os in aix4.[012]|aix4.[012].*)7118 # We only want to do this on AIX 4.2 and lower, the check7119 # 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/null7123 then7124 # We have reworked collect27125 hardcode_direct=yes7126 else7127 # We have old collect27128 hardcode_direct=unsupported7129 # It fails to find uninstalled libraries when the uninstalled7130 # path is not listed in the libpath. Setting hardcode_minus_L7131 # to unsupported forces relinking7132 hardcode_minus_L=yes7133 hardcode_libdir_flag_spec='-L$libdir'7134 hardcode_libdir_separator=7135 fi7136 esac7137 shared_flag='-shared'7138 if test "$aix_use_runtimelinking" = yes; then7139 shared_flag="$shared_flag "'${wl}-G'7140 fi7141 else7142 # not using gcc7143 if test "$host_cpu" = ia64; then7144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release7145 # chokes on -Wl,-G. The following line is correct:7146 shared_flag='-G'7147 else7148 if test "$aix_use_runtimelinking" = yes; then7149 shared_flag='${wl}-G'7150 else7151 shared_flag='${wl}-bM:SRE'7152 fi7153 fi7154 fi7155 7156 # It seems that -bexpall does not export symbols beginning with7157 # underscore (_), so it is better to generate a list of symbols to export.7158 always_export_symbols=yes7159 if test "$aix_use_runtimelinking" = yes; then7160 # 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 <<_ACEOF7165 /* confdefs.h. */7166 _ACEOF7167 cat confdefs.h >>conftest.$ac_ext7168 cat >>conftest.$ac_ext <<_ACEOF7169 /* end confdefs.h. */7170 7171 int7172 main ()7173 {7174 7175 ;7176 return 0;7177 }7178 _ACEOF7179 rm -f conftest.$ac_objext conftest$ac_exeext7180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&57181 (eval $ac_link) 2>conftest.er17182 ac_status=$?7183 grep -v '^ *+' conftest.er1 >conftest.err7184 rm -f conftest.er17185 cat conftest.err >&57186 echo "$as_me:$LINENO: \$? = $ac_status" >&57187 (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\"") >&57191 (eval $ac_try) 2>&57192 ac_status=$?7193 echo "$as_me:$LINENO: \$? = $ac_status" >&57194 (exit $ac_status); }; } &&7195 { ac_try='test -s conftest$ac_exeext'7196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&57197 (eval $ac_try) 2>&57198 ac_status=$?7199 echo "$as_me:$LINENO: \$? = $ac_status" >&57200 (exit $ac_status); }; }; then7201 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 }'`; fi7207 else7208 echo "$as_me: failed program was:" >&57209 sed 's/^/| /' conftest.$ac_ext >&57210 7211 fi7212 rm -f conftest.err conftest.$ac_objext \7213 conftest$ac_exeext conftest.$ac_ext7214 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi7215 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 else7219 if test "$host_cpu" = ia64; then7220 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 else7224 # Determine the default libpath from the value encoded in an empty executable.7225 cat >conftest.$ac_ext <<_ACEOF7226 /* confdefs.h. */7227 _ACEOF7228 cat confdefs.h >>conftest.$ac_ext7229 cat >>conftest.$ac_ext <<_ACEOF7230 /* end confdefs.h. */7231 7232 int7233 main ()7234 {7235 7236 ;7237 return 0;7238 }7239 _ACEOF7240 rm -f conftest.$ac_objext conftest$ac_exeext7241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&57242 (eval $ac_link) 2>conftest.er17243 ac_status=$?7244 grep -v '^ *+' conftest.er1 >conftest.err7245 rm -f conftest.er17246 cat conftest.err >&57247 echo "$as_me:$LINENO: \$? = $ac_status" >&57248 (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\"") >&57252 (eval $ac_try) 2>&57253 ac_status=$?7254 echo "$as_me:$LINENO: \$? = $ac_status" >&57255 (exit $ac_status); }; } &&7256 { ac_try='test -s conftest$ac_exeext'7257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&57258 (eval $ac_try) 2>&57259 ac_status=$?7260 echo "$as_me:$LINENO: \$? = $ac_status" >&57261 (exit $ac_status); }; }; then7262 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 }'`; fi7268 else7269 echo "$as_me: failed program was:" >&57270 sed 's/^/| /' conftest.$ac_ext >&57271 7272 fi7273 rm -f conftest.err conftest.$ac_objext \7274 conftest$ac_exeext conftest.$ac_ext7275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi7276 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=yes7284 # Exported symbols can be pulled into shared objects from archives7285 whole_archive_flag_spec=' '7286 archive_cmds_need_lc=yes7287 # 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 fi7290 fi7291 ;;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=yes7297 # see comment about different semantics on the GNU ld section7298 ld_shlibs=no7299 ;;7300 7301 bsdi[45]*)7302 export_dynamic_flag_spec=-rdynamic7303 ;;7304 7305 cygwin* | mingw* | pw32*)7306 # When not using gcc, we currently assume that we are using7307 # Microsoft Visual C++.7308 # hardcode_libdir_flag_spec is actually meaningless, as there is7309 # no search path for DLLs.7310 hardcode_libdir_flag_spec=' '7311 allow_undefined_flag=unsupported7312 # Tell ltmain to make .lib files, not .a files.7313 libext=lib7314 # 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=yes7324 ;;7325 7326 darwin* | rhapsody*)7327 case $host_os in7328 rhapsody* | darwin1.[012])7329 allow_undefined_flag='${wl}-undefined ${wl}suppress'7330 ;;7331 *) # Darwin 1.3 on7332 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then7333 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'7334 else7335 case ${MACOSX_DEPLOYMENT_TARGET} in7336 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 esac7343 fi7344 ;;7345 esac7346 archive_cmds_need_lc=no7347 hardcode_direct=no7348 hardcode_automatic=yes7349 hardcode_shlibpath_var=unsupported7350 whole_archive_flag_spec=''7351 link_all_deplibs=yes7352 if test "$GCC" = yes ; then7353 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 lds7357 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 else7360 case $cc_basename in7361 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 lds7366 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=no7371 ;;7372 esac7373 fi7374 ;;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=no7380 ;;7381 7382 freebsd1*)7383 ld_shlibs=no7384 ;;7385 7386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor7387 # support. Future versions do this automatically, but an explicit c++rt0.o7388 # does not break anything, and helps significantly (at the cost of a little7389 # 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=yes7394 hardcode_shlibpath_var=no7395 ;;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=yes7401 hardcode_minus_L=yes7402 hardcode_shlibpath_var=no7403 ;;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=yes7410 hardcode_shlibpath_var=no7411 ;;7412 7413 hpux9*)7414 if test "$GCC" = yes; then7415 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 else7417 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 fi7419 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'7420 hardcode_libdir_separator=:7421 hardcode_direct=yes7422 7423 # hardcode_minus_L: Not really in the search PATH,7424 # but as the default location of the library.7425 hardcode_minus_L=yes7426 export_dynamic_flag_spec='${wl}-E'7427 ;;7428 7429 hpux10* | hpux11*)7430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then7431 case $host_cpu in7432 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 esac7439 else7440 case $host_cpu in7441 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 esac7448 fi7449 if test "$with_gnu_ld" = no; then7450 case $host_cpu in7451 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=no7456 hardcode_shlibpath_var=no7457 ;;7458 ia64*)7459 hardcode_libdir_flag_spec='-L$libdir'7460 hardcode_direct=no7461 hardcode_shlibpath_var=no7462 7463 # hardcode_minus_L: Not really in the search PATH,7464 # but as the default location of the library.7465 hardcode_minus_L=yes7466 ;;7467 *)7468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'7469 hardcode_libdir_separator=:7470 hardcode_direct=yes7471 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=yes7476 ;;7477 esac7478 fi7479 ;;7480 7481 irix5* | irix6* | nonstopux*)7482 if test "$GCC" = yes; then7483 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 else7485 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 fi7488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'7489 hardcode_libdir_separator=:7490 link_all_deplibs=yes7491 ;;7492 7493 netbsd*)7494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then7495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out7496 else7497 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF7498 fi7499 hardcode_libdir_flag_spec='-R$libdir'7500 hardcode_direct=yes7501 hardcode_shlibpath_var=no7502 ;;7503 7504 newsos6)7505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'7506 hardcode_direct=yes7507 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'7508 hardcode_libdir_separator=:7509 hardcode_shlibpath_var=no7510 ;;7511 7512 openbsd*)7513 hardcode_direct=yes7514 hardcode_shlibpath_var=no7515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then7516 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 else7521 case $host_os in7522 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 esac7531 fi7532 ;;7533 7534 os2*)7535 hardcode_libdir_flag_spec='-L$libdir'7536 hardcode_minus_L=yes7537 allow_undefined_flag=unsupported7538 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; then7544 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 else7547 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 fi7550 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'7551 hardcode_libdir_separator=:7552 ;;7553 7554 osf4* | osf5*) # as osf3* with the addition of -msym flag7555 if test "$GCC" = yes; then7556 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 else7560 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 directly7566 hardcode_libdir_flag_spec='-rpath $libdir'7567 fi7568 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=no7574 export_dynamic_flag_spec='${wl}-Bexport'7575 runpath_var=LD_RUN_PATH7576 hardcode_runpath_var=yes7577 ;;7578 7579 solaris*)7580 no_undefined_flag=' -z text'7581 if test "$GCC" = yes; then7582 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 else7587 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 fi7592 hardcode_libdir_flag_spec='-R$libdir'7593 hardcode_shlibpath_var=no7594 case $host_os in7595 solaris2.[0-5] | solaris2.[0-5].*) ;;7596 *)7597 # The compiler driver will combine linker options so we7598 # cannot just pass the convience library names through7599 # 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 in7603 '')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 esac7609 link_all_deplibs=yes7610 ;;7611 7612 sunos4*)7613 if test "x$host_vendor" = xsequent; then7614 # Use $CC to link under sequent, because it throws in some extra .o7615 # files that make .init and .fini sections work.7616 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'7617 else7618 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'7619 fi7620 hardcode_libdir_flag_spec='-L$libdir'7621 hardcode_direct=yes7622 hardcode_minus_L=yes7623 hardcode_shlibpath_var=no7624 ;;7625 7626 sysv4)7627 case $host_vendor in7628 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 PLAMLIB7634 ## 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=no7638 ;;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 lie7642 ;;7643 esac7644 runpath_var='LD_RUN_PATH'7645 hardcode_shlibpath_var=no7646 ;;7647 7648 sysv4.3*)7649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'7650 hardcode_shlibpath_var=no7651 export_dynamic_flag_spec='-Bexport'7652 ;;7653 7654 sysv4*MP*)7655 if test -d /usr/nec; then7656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'7657 hardcode_shlibpath_var=no7658 runpath_var=LD_RUN_PATH7659 hardcode_runpath_var=yes7660 ld_shlibs=yes7661 fi7662 ;;7663 7664 sysv4.2uw2*)7665 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'7666 hardcode_direct=yes7667 hardcode_minus_L=no7668 hardcode_shlibpath_var=no7669 hardcode_runpath_var=yes7670 runpath_var=LD_RUN_PATH7671 ;;7672 7673 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)7674 no_undefined_flag='${wl}-z ${wl}text'7675 if test "$GCC" = yes; then7676 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'7677 else7678 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'7679 fi7680 runpath_var='LD_RUN_PATH'7681 hardcode_shlibpath_var=no7682 ;;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 now7688 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=no7693 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=no7700 ;;7701 7702 *)7703 ld_shlibs=no7704 ;;7705 esac7706 fi7707 7708 echo "$as_me:$LINENO: result: $ld_shlibs" >&57709 echo "${ECHO_T}$ld_shlibs" >&67710 test "$ld_shlibs" = no && can_build_shared=no7711 7712 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"7713 if test "$GCC" = yes; then7714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"7715 fi7716 7717 #7718 # Do we need to explicitly link libc?7719 #7720 case "x$archive_cmds_need_lc" in7721 x|xyes)7722 # Assume -lc should be added7723 archive_cmds_need_lc=yes7724 7725 if test "$enable_shared" = yes && test "$GCC" = yes; then7726 case $archive_cmds in7727 *'~'*)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 some7732 # systems, -lgcc has to come before -lc. If gcc already passes -lc7733 # to ld, don't add -lc before -lgcc.7734 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&57735 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&67736 $rm conftest*7737 printf "$lt_simple_compile_test_code" > conftest.$ac_ext7738 7739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&57740 (eval $ac_compile) 2>&57741 ac_status=$?7742 echo "$as_me:$LINENO: \$? = $ac_status" >&57743 (exit $ac_status); } 2>conftest.err; then7744 soname=conftest7745 lib=conftest7746 libobjs=conftest.$ac_objext7747 deplibs=7748 wl=$lt_prog_compiler_wl7749 compiler_flags=-v7750 linker_flags=-v7751 verstring=7752 output_objdir=.7753 libname=conftest7754 lt_save_allow_undefined_flag=$allow_undefined_flag7755 allow_undefined_flag=7756 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&57757 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&57758 ac_status=$?7759 echo "$as_me:$LINENO: \$? = $ac_status" >&57760 (exit $ac_status); }7761 then7762 archive_cmds_need_lc=no7763 else7764 archive_cmds_need_lc=yes7765 fi7766 allow_undefined_flag=$lt_save_allow_undefined_flag7767 else7768 cat conftest.err 1>&57769 fi7770 $rm conftest*7771 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&57772 echo "${ECHO_T}$archive_cmds_need_lc" >&67773 ;;7774 esac7775 fi7776 ;;7777 esac7778 7779 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&57780 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&67781 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=unknown7791 version_type=none7792 dynamic_linker="$host_os ld.so"7793 sys_lib_dlsearch_path_spec="/lib /usr/lib"7794 if test "$GCC" = yes; then7795 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 ; then7797 # if the path contains ";" then we assume it to be the separator7798 # otherwise default to the standard path separator (i.e. ":") - it is7799 # assumed that no part of a normal pathname contains ";" but that should7800 # 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 else7803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`7804 fi7805 else7806 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"7807 fi7808 need_lib_prefix=unknown7809 hardcode_into_libs=no7810 7811 # when you set need_version to no, make sure it does not cause -set_version7812 # flags to be left without arguments7813 need_version=unknown7814 7815 case $host_os in7816 aix3*)7817 version_type=linux7818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'7819 shlibpath_var=LIBPATH7820 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=linux7827 need_lib_prefix=no7828 need_version=no7829 hardcode_into_libs=yes7830 if test "$host_cpu" = ia64; then7831 # AIX 5 supports IA647832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'7833 shlibpath_var=LD_LIBRARY_PATH7834 else7835 # With GCC up to 2.95.x, collect2 would create an import file7836 # for dependence libraries. The import file would start with7837 # the line `#! .'. This would cause the generated library to7838 # depend on `.', always an invalid library. This was fixed in7839 # development snapshots of GCC prior to 3.0.7840 case $host_os in7841 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; then7845 :7846 else7847 can_build_shared=no7848 fi7849 ;;7850 esac7851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct7852 # soname into executable. Probably we can add versioning support to7853 # collect2, so additional links can be useful in future.7854 if test "$aix_use_runtimelinking" = yes; then7855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so7856 # instead of lib<name>.a to let people know that these are not7857 # typical AIX shared libraries.7858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'7859 else7860 # We preserve .a as extension for shared libraries through AIX4.27861 # 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 fi7865 shlibpath_var=LIBPATH7866 fi7867 ;;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_PATH7879 ;;7880 7881 bsdi[45]*)7882 version_type=linux7883 need_version=no7884 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_PATH7888 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 and7891 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow7892 # libtool to hard-code these into programs7893 ;;7894 7895 cygwin* | mingw* | pw32*)7896 version_type=windows7897 shrext_cmds=".dll"7898 need_version=no7899 need_lib_prefix=no7900 7901 case $GCC,$host_os in7902 yes,cygwin* | yes,mingw* | yes,pw32*)7903 library_names_spec='$libname.dll.a'7904 # DLL is installed to $(libdir)/../bin by postinstall_cmds7905 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=yes7915 7916 case $host_os in7917 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' prefix7924 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; then7927 # It is most probably a Windows format PATH printed by7928 # mingw gcc, but we are running on Cygwin. Gcc prints its search7929 # path with ; separators, and with drive letters. We can handle the7930 # 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 else7935 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`7936 fi7937 ;;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 esac7943 ;;7944 7945 linux*)7946 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then7947 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'7948 supports_anon_versioning=no7949 case `$LD -v 2>/dev/null` in7950 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.117951 *\ 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 versions7954 *) supports_anon_versioning=yes ;;7955 esac7956 if test $supports_anon_versioning = yes; then7957 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 else7962 $archive_expsym_cmds="$archive_cmds"7963 fi7964 else7965 ld_shlibs=no7966 fi7967 ;;7968 7969 *)7970 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'7971 ;;7972 esac7973 dynamic_linker='Win32 ld.exe'7974 # FIXME: first we should search . and the directory the executable is in7975 shlibpath_var=PATH7976 ;;7977 7978 darwin* | rhapsody*)7979 dynamic_linker="$host_os dyld"7980 version_type=darwin7981 need_lib_prefix=no7982 need_version=no7983 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=yes7986 shlibpath_var=DYLD_LIBRARY_PATH7987 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; then7990 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 else7992 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'7993 fi7994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'7995 ;;7996 7997 dgux*)7998 version_type=linux7999 need_lib_prefix=no8000 need_version=no8001 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_PATH8004 ;;8005 8006 freebsd1*)8007 dynamic_linker=no8008 ;;8009 8010 kfreebsd*-gnu)8011 version_type=linux8012 need_lib_prefix=no8013 need_version=no8014 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_PATH8017 shlibpath_overrides_runpath=no8018 hardcode_into_libs=yes8019 dynamic_linker='GNU ld.so'8020 ;;8021 8022 freebsd* | dragonfly*)8023 # DragonFly does not have aout. When/if they implement a new8024 # versioning mechanism, adjust this.8025 if test -x /usr/bin/objformat; then8026 objformat=`/usr/bin/objformat`8027 else8028 case $host_os in8029 freebsd[123]*) objformat=aout ;;8030 *) objformat=elf ;;8031 esac8032 fi8033 version_type=freebsd-$objformat8034 case $version_type in8035 freebsd-elf*)8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'8037 need_version=no8038 need_lib_prefix=no8039 ;;8040 freebsd-*)8041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'8042 need_version=yes8043 ;;8044 esac8045 shlibpath_var=LD_LIBRARY_PATH8046 case $host_os in8047 freebsd2*)8048 shlibpath_overrides_runpath=yes8049 ;;8050 freebsd3.[01]* | freebsdelf3.[01]*)8051 shlibpath_overrides_runpath=yes8052 hardcode_into_libs=yes8053 ;;8054 *) # from 3.2 on8055 shlibpath_overrides_runpath=no8056 hardcode_into_libs=yes8057 ;;8058 esac8059 ;;8060 8061 gnu*)8062 version_type=linux8063 need_lib_prefix=no8064 need_version=no8065 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_PATH8068 hardcode_into_libs=yes8069 ;;8070 8071 hpux9* | hpux10* | hpux11*)8072 # Give a soname corresponding to the major version so that dld.sl refuses to8073 # link against other versions.8074 version_type=sunos8075 need_lib_prefix=no8076 need_version=no8077 case $host_cpu in8078 ia64*)8079 shrext_cmds='.so'8080 hardcode_into_libs=yes8081 dynamic_linker="$host_os dld.so"8082 shlibpath_var=LD_LIBRARY_PATH8083 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; then8087 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"8088 else8089 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"8090 fi8091 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec8092 ;;8093 hppa*64*)8094 shrext_cmds='.sl'8095 hardcode_into_libs=yes8096 dynamic_linker="$host_os dld.sl"8097 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH8098 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_spec8103 ;;8104 *)8105 shrext_cmds='.sl'8106 dynamic_linker="$host_os dld.sl"8107 shlibpath_var=SHLIB_PATH8108 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH8109 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 esac8113 # 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 in8119 nonstopux*) version_type=nonstopux ;;8120 *)8121 if test "$lt_cv_prog_gnu_ld" = yes; then8122 version_type=linux8123 else8124 version_type=irix8125 fi ;;8126 esac8127 need_lib_prefix=no8128 need_version=no8129 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 in8132 irix5* | nonstopux*)8133 libsuff= shlibsuff=8134 ;;8135 *)8136 case $LD in # libtool.m4 will add one of these switches to LD8137 *-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 esac8145 ;;8146 esac8147 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH8148 shlibpath_overrides_runpath=no8149 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=yes8152 ;;8153 8154 # No shared lib support for Linux oldld, aout, or coff.8155 linux*oldld* | linux*aout* | linux*coff*)8156 dynamic_linker=no8157 ;;8158 8159 # This must be Linux ELF.8160 linux*)8161 version_type=linux8162 need_lib_prefix=no8163 need_version=no8164 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_PATH8168 shlibpath_overrides_runpath=no8169 # This implies no fast_install, which is unacceptable.8170 # Some rework will be needed to allow for fast_install8171 # before this can be enabled.8172 hardcode_into_libs=yes8173 8174 # Append ld.so.conf contents to the search path8175 if test -f /etc/ld.so.conf; then8176 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 fi8179 8180 case $host_cpu:$lt_cv_cc_64bit_output in8181 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 esac8186 8187 # We used to test for /lib/ld.so.1 and disable shared libraries on8188 # powerpc, because MkLinux only supported shared libraries with the8189 # GNU dynamic linker. Since this was broken with cross compilers,8190 # most powerpc-linux boxes support dynamic linking these days and8191 # people can always --disable-shared, the test was removed, and we8192 # 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" in8198 x86_64*)8199 echo '#line 8199 "configure"' > conftest.$ac_ext8200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&58201 (eval $ac_compile) 2>&58202 ac_status=$?8203 echo "$as_me:$LINENO: \$? = $ac_status" >&58204 (exit $ac_status); }; then8205 case `/usr/bin/file conftest.$ac_objext` in8206 *64-bit*)8207 libsuff=648208 ;;8209 esac8210 fi8211 rm -rf conftest*8212 ;;8213 *)8214 ;;8215 esac8216 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=linux8222 need_lib_prefix=no8223 need_version=no8224 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_PATH8227 shlibpath_overrides_runpath=no8228 hardcode_into_libs=yes8229 dynamic_linker='GNU ld.so'8230 ;;8231 8232 netbsd*)8233 version_type=sunos8234 need_lib_prefix=no8235 need_version=no8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then8237 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 else8241 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 fi8245 shlibpath_var=LD_LIBRARY_PATH8246 shlibpath_overrides_runpath=yes8247 hardcode_into_libs=yes8248 ;;8249 8250 newsos6)8251 version_type=linux8252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'8253 shlibpath_var=LD_LIBRARY_PATH8254 shlibpath_overrides_runpath=yes8255 ;;8256 8257 nto-qnx*)8258 version_type=linux8259 need_lib_prefix=no8260 need_version=no8261 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_PATH8264 shlibpath_overrides_runpath=yes8265 ;;8266 8267 openbsd*)8268 version_type=sunos8269 need_lib_prefix=no8270 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.8271 case $host_os in8272 openbsd3.3 | openbsd3.3.*) need_version=yes ;;8273 *) need_version=no ;;8274 esac8275 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_PATH8278 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then8279 case $host_os in8280 openbsd2.[89] | openbsd2.[89].*)8281 shlibpath_overrides_runpath=no8282 ;;8283 *)8284 shlibpath_overrides_runpath=yes8285 ;;8286 esac8287 else8288 shlibpath_overrides_runpath=yes8289 fi8290 ;;8291 8292 os2*)8293 libname_spec='$name'8294 shrext_cmds=".dll"8295 need_lib_prefix=no8296 library_names_spec='$libname${shared_ext} $libname.a'8297 dynamic_linker='OS/2 ld.exe'8298 shlibpath_var=LIBPATH8299 ;;8300 8301 osf3* | osf4* | osf5*)8302 version_type=osf8303 need_lib_prefix=no8304 need_version=no8305 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_PATH8308 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=osf8314 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_PATH8317 ;;8318 8319 solaris*)8320 version_type=linux8321 need_lib_prefix=no8322 need_version=no8323 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_PATH8326 shlibpath_overrides_runpath=yes8327 hardcode_into_libs=yes8328 # ldd complains unless libraries are executable8329 postinstall_cmds='chmod +x $lib'8330 ;;8331 8332 sunos4*)8333 version_type=sunos8334 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_PATH8337 shlibpath_overrides_runpath=yes8338 if test "$with_gnu_ld" = yes; then8339 need_lib_prefix=no8340 fi8341 need_version=yes8342 ;;8343 8344 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)8345 version_type=linux8346 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_PATH8349 case $host_vendor in8350 sni)8351 shlibpath_overrides_runpath=no8352 need_lib_prefix=no8353 export_dynamic_flag_spec='${wl}-Blargedynsym'8354 runpath_var=LD_RUN_PATH8355 ;;8356 siemens)8357 need_lib_prefix=no8358 ;;8359 motorola)8360 need_lib_prefix=no8361 need_version=no8362 shlibpath_overrides_runpath=no8363 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'8364 ;;8365 esac8366 ;;8367 8368 sysv4*MP*)8369 if test -d /usr/nec ;then8370 version_type=linux8371 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_PATH8374 fi8375 ;;8376 8377 uts4*)8378 version_type=linux8379 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_PATH8382 ;;8383 8384 *)8385 dynamic_linker=no8386 ;;8387 esac8388 echo "$as_me:$LINENO: result: $dynamic_linker" >&58389 echo "${ECHO_T}$dynamic_linker" >&68390 test "$dynamic_linker" = no && can_build_shared=no8391 8392 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&58393 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&68394 hardcode_action=8395 if test -n "$hardcode_libdir_flag_spec" || \8396 test -n "$runpath_var" || \8397 test "X$hardcode_automatic" = "Xyes" ; then8398 8399 # We can hardcode non-existant directories.8400 if test "$hardcode_direct" != no &&8401 # If the only mechanism to avoid hardcoding is shlibpath_var, we8402 # have to relink, otherwise we might link with an installed library8403 # when we should be linking with a yet-to-be-installed one8404 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&8405 test "$hardcode_minus_L" != no; then8406 # Linking always hardcodes the temporary library directory.8407 hardcode_action=relink8408 else8409 # We can link without hardcoding, and we can hardcode nonexisting dirs.8410 hardcode_action=immediate8411 fi8412 else8413 # We cannot hardcode anything, or else we can only hardcode existing8414 # directories.8415 hardcode_action=unsupported8416 fi8417 echo "$as_me:$LINENO: result: $hardcode_action" >&58418 echo "${ECHO_T}$hardcode_action" >&68419 8420 if test "$hardcode_action" = relink; then8421 # Fast installation is not supported8422 enable_fast_install=no8423 elif test "$shlibpath_overrides_runpath" = yes ||8424 test "$enable_shared" = no; then8425 # Fast installation is not necessary8426 enable_fast_install=needless8427 fi8428 8429 striplib=8430 old_striplib=8431 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&58432 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&68433 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then8434 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"8435 test -z "$striplib" && striplib="$STRIP --strip-unneeded"8436 echo "$as_me:$LINENO: result: yes" >&58437 echo "${ECHO_T}yes" >&68438 else8439 # FIXME - insert some real tests, host_os isn't really good enough8440 case $host_os in8441 darwin*)8442 if test -n "$STRIP" ; then8443 striplib="$STRIP -x"8444 echo "$as_me:$LINENO: result: yes" >&58445 echo "${ECHO_T}yes" >&68446 else8447 echo "$as_me:$LINENO: result: no" >&58448 echo "${ECHO_T}no" >&68449 fi8450 ;;8451 *)8452 echo "$as_me:$LINENO: result: no" >&58453 echo "${ECHO_T}no" >&68454 ;;8455 esac8456 fi8457 8458 if test "x$enable_dlopen" != xyes; then8459 enable_dlopen=unknown8460 enable_dlopen_self=unknown8461 enable_dlopen_self_static=unknown8462 else8463 lt_cv_dlopen=no8464 lt_cv_dlopen_libs=8465 8466 case $host_os in8467 beos*)8468 lt_cv_dlopen="load_add_on"8469 lt_cv_dlopen_libs=8470 lt_cv_dlopen_self=yes8471 ;;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 it8485 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&58486 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&68487 if test "${ac_cv_lib_dl_dlopen+set}" = set; then8488 echo $ECHO_N "(cached) $ECHO_C" >&68489 else8490 4633 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 19913 19914 19915 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 19916 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 19917 if test "${ac_cv_header_stdc+set}" = set; then 19918 echo $ECHO_N "(cached) $ECHO_C" >&6 19919 else 19920 cat >conftest.$ac_ext <<_ACEOF 19921 /* confdefs.h. */ 19922 _ACEOF 19923 cat confdefs.h >>conftest.$ac_ext 19924 cat >>conftest.$ac_ext <<_ACEOF 19925 /* end confdefs.h. */ 19926 #include <stdlib.h> 19927 #include <stdarg.h> 19928 #include <string.h> 19929 #include <float.h> 19930 19931 int 19932 main () 19933 { 19934 19935 ; 19936 return 0; 19937 } 19938 _ACEOF 19939 rm -f conftest.$ac_objext 19940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19941 (eval $ac_compile) 2>conftest.er1 19942 ac_status=$? 19943 grep -v '^ *+' conftest.er1 >conftest.err 19944 rm -f conftest.er1 19945 cat conftest.err >&5 19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19947 (exit $ac_status); } && 19948 { ac_try='test -z "$ac_c_werror_flag" 19949 || test ! -s conftest.err' 19950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19951 (eval $ac_try) 2>&5 19952 ac_status=$? 19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19954 (exit $ac_status); }; } && 19955 { ac_try='test -s conftest.$ac_objext' 19956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19957 (eval $ac_try) 2>&5 19958 ac_status=$? 19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19960 (exit $ac_status); }; }; then 19961 ac_cv_header_stdc=yes 19962 else 19963 echo "$as_me: failed program was:" >&5 19964 sed 's/^/| /' conftest.$ac_ext >&5 19965 19966 ac_cv_header_stdc=no 19967 fi 19968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19969 19970 if test $ac_cv_header_stdc = yes; then 19971 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19972 cat >conftest.$ac_ext <<_ACEOF 19973 /* confdefs.h. */ 19974 _ACEOF 19975 cat confdefs.h >>conftest.$ac_ext 19976 cat >>conftest.$ac_ext <<_ACEOF 19977 /* end confdefs.h. */ 19978 #include <string.h> 19979 19980 _ACEOF 19981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19982 $EGREP "memchr" >/dev/null 2>&1; then 19983 : 19984 else 19985 ac_cv_header_stdc=no 19986 fi 19987 rm -f conftest* 19988 19989 fi 19990 19991 if test $ac_cv_header_stdc = yes; then 19992 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19993 cat >conftest.$ac_ext <<_ACEOF 19994 /* confdefs.h. */ 19995 _ACEOF 19996 cat confdefs.h >>conftest.$ac_ext 19997 cat >>conftest.$ac_ext <<_ACEOF 19998 /* end confdefs.h. */ 19999 #include <stdlib.h> 20000 20001 _ACEOF 20002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20003 $EGREP "free" >/dev/null 2>&1; then 20004 : 20005 else 20006 ac_cv_header_stdc=no 20007 fi 20008 rm -f conftest* 20009 20010 fi 20011 20012 if test $ac_cv_header_stdc = yes; then 20013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20014 if test "$cross_compiling" = yes; then 20015 : 20016 else 20017 cat >conftest.$ac_ext <<_ACEOF 20018 /* confdefs.h. */ 20019 _ACEOF 20020 cat confdefs.h >>conftest.$ac_ext 20021 cat >>conftest.$ac_ext <<_ACEOF 20022 /* end confdefs.h. */ 20023 #include <ctype.h> 20024 #if ((' ' & 0x0FF) == 0x020) 20025 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20026 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20027 #else 20028 # define ISLOWER(c) \ 20029 (('a' <= (c) && (c) <= 'i') \ 20030 || ('j' <= (c) && (c) <= 'r') \ 20031 || ('s' <= (c) && (c) <= 'z')) 20032 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20033 #endif 20034 20035 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20036 int 20037 main () 20038 { 20039 int i; 20040 for (i = 0; i < 256; i++) 20041 if (XOR (islower (i), ISLOWER (i)) 20042 || toupper (i) != TOUPPER (i)) 20043 exit(2); 20044 exit (0); 20045 } 20046 _ACEOF 20047 rm -f conftest$ac_exeext 20048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20049 (eval $ac_link) 2>&5 20050 ac_status=$? 20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20054 (eval $ac_try) 2>&5 20055 ac_status=$? 20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20057 (exit $ac_status); }; }; then 20058 : 20059 else 20060 echo "$as_me: program exited with status $ac_status" >&5 20061 echo "$as_me: failed program was:" >&5 20062 sed 's/^/| /' conftest.$ac_ext >&5 20063 20064 ( exit $ac_status ) 20065 ac_cv_header_stdc=no 20066 fi 20067 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 20068 fi 20069 fi 20070 fi 20071 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 20072 echo "${ECHO_T}$ac_cv_header_stdc" >&6 20073 if test $ac_cv_header_stdc = yes; then 20074 20075 cat >>confdefs.h <<\_ACEOF 20076 #define STDC_HEADERS 1 20077 _ACEOF 20078 20079 fi 20080 20081 20082 ## THIS IS OUR DEFAULT-DATA-DIRECTORY 20083 20084 ################################## 20085 ## CHECKING OPTIONAL ARGUMENTS ## 20086 ################################## 20087 #----------------# 20088 # Data-Directory # 20089 #----------------# 20090 DATA_DIR=$datadir 20091 echo \$\{prefix\} 20092 if test $DATA_DIR = \$\{prefix\}/share ; then 20093 echo "not given" 20094 DATA_DIR=/usr/share 20095 else 20096 echo "given: $DATA_DIR" 20097 fi 20098 20099 cat >>confdefs.h <<_ACEOF 20100 #define DATADIR "$DATA_DIR" 20101 _ACEOF 20102 20103 20104 #-----------------# 20105 # shared-lib-path # 20106 #-----------------# 20107 SHARED_LIB_PATH=no 20108 echo "$as_me:$LINENO: checking shared lib path" >&5 20109 echo $ECHO_N "checking shared lib path... $ECHO_C" >&6 20110 20111 # Check whether --with-shared-lib-path or --without-shared-lib-path was given. 20112 if test "${with_shared_lib_path+set}" = set; then 20113 withval="$with_shared_lib_path" 20114 SHARED_LIB_PATH=$withval 20115 fi; 20116 if test x$SHARED_LIB_PATH != xno; then 20117 echo "set to $SHARED_LIB_PATH" 20118 else 20119 echo "no" 20120 fi 20121 20122 20123 #-----------------# 20124 # DEBUG-statement # 20125 #-----------------# 20126 DEBUG=no 20127 echo "$as_me:$LINENO: checking if DEBUG-mode should be enabled" >&5 20128 echo $ECHO_N "checking if DEBUG-mode should be enabled... $ECHO_C" >&6 20129 # Check whether --enable-debug or --disable-debug was given. 20130 if test "${enable_debug+set}" = set; then 20131 enableval="$enable_debug" 20132 DEBUG=$enableval 20133 fi; 20134 20135 if test x$DEBUG = xno; then 20136 echo "no" 20137 echo " -> Setting debuglevel to 4. (orxonox is still in Development. It really is needed." 20138 DEBUG=4 20139 elif test x$DEBUG = xyes; then 20140 echo "yes" 20141 echo " -> Setting debuglevel to 4. HARD DEBUG MODE!!." 20142 DEBUG=4 20143 else 20144 echo "yes: setting debuglevel to to $DEBUG" 20145 fi 20146 20147 cat >>confdefs.h <<_ACEOF 20148 #define DEBUG $DEBUG 20149 _ACEOF 20150 20151 20152 20153 #---------------# 20154 # Modular Debug # 20155 #---------------# 20156 MODULAR_DEBUG=yes 20157 echo "$as_me:$LINENO: checking if Modular-DEBUG-mode should be ebabled" >&5 20158 echo $ECHO_N "checking if Modular-DEBUG-mode should be ebabled... $ECHO_C" >&6 20159 # Check whether --enable-modular-debug or --disable-modular-debug was given. 20160 if test "${enable_modular_debug+set}" = set; then 20161 enableval="$enable_modular_debug" 20162 MODULAR_DEBUG=$enableval 20163 fi; 20164 20165 if test x$MODULAR_DEBUG = xno; then 20166 echo "no" 20167 elif test x$MODULAR_DEBUG = xyes; then 20168 echo "yes" 20169 20170 cat >>confdefs.h <<_ACEOF 20171 #define MODULAR_DEBUG 1 20172 _ACEOF 20173 20174 fi 20175 20176 #--------------# 20177 # GTK-disabled # 20178 #--------------# 20179 echo "$as_me:$LINENO: checking if gtk should be enabled" >&5 20180 echo $ECHO_N "checking if gtk should be enabled... $ECHO_C" >&6 20181 # Check whether --enable-gtk or --disable-gtk was given. 20182 if test "${enable_gtk+set}" = set; then 20183 enableval="$enable_gtk" 20184 def_gtk=no 20185 else 20186 def_gtk=yes 20187 fi; 20188 if test x$def_gtk = xyes; then 20189 echo "yes" 20190 fi 20191 if test x$def_gtk = xno; then 20192 echo "no" 20193 fi 20194 20195 #------------------# 20196 # libCurl-disabled # 20197 #------------------# 20198 echo "$as_me:$LINENO: checking if libcURL should be enabled" >&5 20199 echo $ECHO_N "checking if libcURL should be enabled... $ECHO_C" >&6 20200 # Check whether --enable-curl or --disable-curl was given. 20201 if test "${enable_curl+set}" = set; then 20202 enableval="$enable_curl" 20203 def_curl=no 20204 else 20205 def_curl=yes 20206 fi; 20207 if test x$def_curl = xyes; then 20208 echo "yes" 20209 fi 20210 if test x$def_curl = xno; then 20211 echo "no" 20212 fi 20213 20214 #-------------------# 20215 # SubProject-enable # 20216 #-------------------# 20217 def_sub_projects=no 20218 echo "$as_me:$LINENO: checking if the SubProjects should be built" >&5 20219 echo $ECHO_N "checking if the SubProjects should be built... $ECHO_C" >&6 20220 20221 # Check whether --with-sub-projects or --without-sub-projects was given. 20222 if test "${with_sub_projects+set}" = set; then 20223 withval="$with_sub_projects" 20224 def_sub_projects=yes 20225 fi; 20226 if test x$def_sub_projects = xyes; then 20227 echo "yes" 20228 fi 20229 if test x$def_sub_projects = xno; then 20230 echo "no" 20231 fi 20232 20233 20234 if test x$def_sub_projects = xyes; then 20235 SUB_PROJECTS_TRUE= 20236 SUB_PROJECTS_FALSE='#' 20237 else 20238 SUB_PROJECTS_TRUE='#' 20239 SUB_PROJECTS_FALSE= 20240 fi 20241 20242 20243 #-------------------# 20244 # Profiling Enabled # 20245 #-------------------# 20246 def_profiling=no 20247 echo "$as_me:$LINENO: checking if Profiling should be enabled" >&5 20248 echo $ECHO_N "checking if Profiling should be enabled... $ECHO_C" >&6 20249 # Check whether --enable-profile or --disable-profile was given. 20250 if test "${enable_profile+set}" = set; then 20251 enableval="$enable_profile" 20252 def_profiling=yes 20253 fi; 20254 if test x$def_profiling = xyes; then 20255 echo "yes" 20256 CXXFLAGS="$CXXFLAGS -pg" 20257 fi 20258 if test x$def_profiling = xno; then 20259 echo "no" 20260 fi 20261 20262 #----------------# 20263 # efence Enabled # 20264 #----------------# 20265 def_efence=no 20266 echo "$as_me:$LINENO: checking if efence should be enabled" >&5 20267 echo $ECHO_N "checking if efence should be enabled... $ECHO_C" >&6 20268 # Check whether --enable-efence or --disable-efence was given. 20269 if test "${enable_efence+set}" = set; then 20270 enableval="$enable_efence" 20271 def_efence=yes 20272 fi; 20273 if test x$def_efence = xyes; then 20274 echo "yes" 20275 fi 20276 if test x$def_efence = xno; then 20277 echo "no" 20278 fi 20279 20280 #----------------------# 20281 # Documentation-enable # 20282 #----------------------# 20283 def_documentation=no 20284 echo "$as_me:$LINENO: checking if the Documentation should be build by default" >&5 20285 echo $ECHO_N "checking if the Documentation should be build by default... $ECHO_C" >&6 20286 # Check whether --enable-documentation or --disable-documentation was given. 20287 if test "${enable_documentation+set}" = set; then 20288 enableval="$enable_documentation" 20289 def_documentation=yes 20290 fi; 20291 if test x$def_documentation = xyes; then 20292 echo "yes" 20293 fi 20294 if test x$def_documentation = xno; then 20295 echo "no" 20296 fi 20297 20298 20299 if test x$def_documentation = xyes; then 20300 DOCUMENTATION_TRUE= 20301 DOCUMENTATION_FALSE='#' 20302 else 20303 DOCUMENTATION_TRUE='#' 20304 DOCUMENTATION_FALSE= 20305 fi 20306 20307 20308 ####################### 20309 ## PROGRAMM CHECKING ## 20310 ## 3. party Programs ## 20311 ####################### 20312 20313 #----------------------# 20314 # checking for Doxygen # 20315 #----------------------# 20316 # Extract the first word of "doxygen", so it can be a program name with args. 20317 set dummy doxygen; ac_word=$2 20318 echo "$as_me:$LINENO: checking for $ac_word" >&5 20319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20320 if test "${ac_cv_path_DOXYGEN+set}" = set; then 20321 echo $ECHO_N "(cached) $ECHO_C" >&6 20322 else 20323 case $DOXYGEN in 20324 [\\/]* | ?:[\\/]*) 20325 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 20326 ;; 20327 *) 20328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20329 for as_dir in $PATH 20330 do 20331 IFS=$as_save_IFS 20332 test -z "$as_dir" && as_dir=. 20333 for ac_exec_ext in '' $ac_executable_extensions; do 20334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20335 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 20336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20337 break 2 20338 fi 20339 done 20340 done 20341 20342 ;; 20343 esac 20344 fi 20345 DOXYGEN=$ac_cv_path_DOXYGEN 20346 20347 if test -n "$DOXYGEN"; then 20348 echo "$as_me:$LINENO: result: $DOXYGEN" >&5 20349 echo "${ECHO_T}$DOXYGEN" >&6 20350 else 20351 echo "$as_me:$LINENO: result: no" >&5 20352 echo "${ECHO_T}no" >&6 20353 fi 20354 20355 20356 20357 if test $DOXYGEN; then 20358 DOXYGEN_TRUE= 20359 DOXYGEN_FALSE='#' 20360 else 20361 DOXYGEN_TRUE='#' 20362 DOXYGEN_FALSE= 20363 fi 20364 20365 20366 #--------------------# 20367 # checking for gprof # 20368 #--------------------# 20369 # Extract the first word of "gprof", so it can be a program name with args. 20370 set dummy gprof; ac_word=$2 20371 echo "$as_me:$LINENO: checking for $ac_word" >&5 20372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20373 if test "${ac_cv_path_GPROF+set}" = set; then 20374 echo $ECHO_N "(cached) $ECHO_C" >&6 20375 else 20376 case $GPROF in 20377 [\\/]* | ?:[\\/]*) 20378 ac_cv_path_GPROF="$GPROF" # Let the user override the test with a path. 20379 ;; 20380 *) 20381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20382 for as_dir in $PATH 20383 do 20384 IFS=$as_save_IFS 20385 test -z "$as_dir" && as_dir=. 20386 for ac_exec_ext in '' $ac_executable_extensions; do 20387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20388 ac_cv_path_GPROF="$as_dir/$ac_word$ac_exec_ext" 20389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20390 break 2 20391 fi 20392 done 20393 done 20394 20395 ;; 20396 esac 20397 fi 20398 GPROF=$ac_cv_path_GPROF 20399 20400 if test -n "$GPROF"; then 20401 echo "$as_me:$LINENO: result: $GPROF" >&5 20402 echo "${ECHO_T}$GPROF" >&6 20403 else 20404 echo "$as_me:$LINENO: result: no" >&5 20405 echo "${ECHO_T}no" >&6 20406 fi 20407 20408 20409 #-------------------------# 20410 # checking for pkg-config # 20411 #-------------------------# 20412 if test x$def_gtk = xyes; then 20413 # Extract the first word of "pkg-config", so it can be a program name with args. 20414 set dummy pkg-config; ac_word=$2 20415 echo "$as_me:$LINENO: checking for $ac_word" >&5 20416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20417 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 20418 echo $ECHO_N "(cached) $ECHO_C" >&6 20419 else 20420 case $PKG_CONFIG in 20421 [\\/]* | ?:[\\/]*) 20422 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20423 ;; 20424 *) 20425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20426 for as_dir in $PATH 20427 do 20428 IFS=$as_save_IFS 20429 test -z "$as_dir" && as_dir=. 20430 for ac_exec_ext in '' $ac_executable_extensions; do 20431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20434 break 2 20435 fi 20436 done 20437 done 20438 20439 ;; 20440 esac 20441 fi 20442 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20443 20444 if test -n "$PKG_CONFIG"; then 20445 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 20446 echo "${ECHO_T}$PKG_CONFIG" >&6 20447 else 20448 echo "$as_me:$LINENO: result: no" >&5 20449 echo "${ECHO_T}no" >&6 20450 fi 20451 20452 fi 20453 20454 20455 ######################### 20456 ## CHECKING FOR SYSTEM ## 20457 ######################### 20458 ## here the system is checked, and openGL is included 20459 ## also checking for SDL on differen Systems 20460 20461 echo "$as_me:$LINENO: checking for System" >&5 20462 echo $ECHO_N "checking for System... $ECHO_C" >&6 20463 ## checking for openGL-environment and other sys-specific parameters 20464 case "$target" in 20465 20466 ########### 20467 #---------# 20468 # WINDOWS # 20469 #---------# 20470 ########### 20471 *-*-mingw32*) 20472 echo "mingw-WINDOWS detected" 20473 20474 CPPFLAGS="-I/usr/include -I/mingw/include $CPPFLAGS" 20475 20476 mingw="yes" 20477 MSBITFIELDS="-mms-bitfields" 20478 MWINDOWS="-mwindows" 20479 20480 #--------# 20481 # MIN-GW # 20482 #--------# 20483 # checking for mingw32 20484 echo "$as_me:$LINENO: checking for main in -lmingw32" >&5 20485 echo $ECHO_N "checking for main in -lmingw32... $ECHO_C" >&6 20486 if test "${ac_cv_lib_mingw32_main+set}" = set; then 20487 echo $ECHO_N "(cached) $ECHO_C" >&6 20488 else 20489 ac_check_lib_save_LIBS=$LIBS 20490 LIBS="-lmingw32 $LIBS" 4634 LIBS="-lopengl32 $LIBS" 20491 4635 cat >conftest.$ac_ext <<_ACEOF 20492 4636 /* confdefs.h. */ … … 20527 4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20528 4672 (exit $ac_status); }; }; then 20529 ac_cv_lib_ mingw32_main=yes4673 ac_cv_lib_opengl32_main=yes 20530 4674 else 20531 4675 echo "$as_me: failed program was:" >&5 20532 4676 sed 's/^/| /' conftest.$ac_ext >&5 20533 4677 20534 ac_cv_lib_ mingw32_main=no4678 ac_cv_lib_opengl32_main=no 20535 4679 fi 20536 4680 rm -f conftest.err conftest.$ac_objext \ … … 20538 4682 LIBS=$ac_check_lib_save_LIBS 20539 4683 fi 20540 echo "$as_me:$LINENO: result: $ac_cv_lib_mingw32_main" >&5 20541 echo "${ECHO_T}$ac_cv_lib_mingw32_main" >&6 20542 if test $ac_cv_lib_mingw32_main = yes; then 20543 FOUND_mingw32=yes 20544 fi 20545 20546 if test x$FOUND_mingw32 = xyes; then 20547 LIBS="$LIBS -lmingw32" 4684 echo "$as_me:$LINENO: result: $ac_cv_lib_opengl32_main" >&5 4685 echo "${ECHO_T}$ac_cv_lib_opengl32_main" >&6 4686 if test $ac_cv_lib_opengl32_main = yes; then 4687 FOUND_GL=yes; LIBS="$LIBS -lopengl32" 4688 fi 4689 4690 if test x$FOUND_GL != xyes ; then 4691 echo "------------------" 4692 echo "opengl not found." 4693 echo "please install the opengl package which can be found at http://www.opengl.org" 4694 echo "------------------" 4695 exit -1 20548 4696 fi 20549 4697 20550 #---------------# 20551 # open-GL (win) # 20552 #---------------# 20553 # checking gl header 20554 20555 for ac_header in GL/gl.h 4698 # cheking for GLU-header 4699 4700 for ac_header in GL/glu.h 20556 4701 do 20557 4702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 20706 4851 done 20707 4852 20708 # checking for Windows openGl library 20709 echo "$as_me:$LINENO: checking for main in -lopengl32" >&5 20710 echo $ECHO_N "checking for main in -lopengl32... $ECHO_C" >&6 20711 if test "${ac_cv_lib_opengl32_main+set}" = set; then 4853 4854 # checking for libGLU 4855 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 4856 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 4857 if test "${ac_cv_lib_glu32_main+set}" = set; then 20712 4858 echo $ECHO_N "(cached) $ECHO_C" >&6 20713 4859 else 20714 4860 ac_check_lib_save_LIBS=$LIBS 20715 LIBS="-l opengl32 $LIBS"4861 LIBS="-lglu32 $LIBS" 20716 4862 cat >conftest.$ac_ext <<_ACEOF 20717 4863 /* confdefs.h. */ … … 20752 4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20753 4899 (exit $ac_status); }; }; then 20754 ac_cv_lib_ opengl32_main=yes4900 ac_cv_lib_glu32_main=yes 20755 4901 else 20756 4902 echo "$as_me: failed program was:" >&5 20757 4903 sed 's/^/| /' conftest.$ac_ext >&5 20758 4904 20759 ac_cv_lib_ opengl32_main=no4905 ac_cv_lib_glu32_main=no 20760 4906 fi 20761 4907 rm -f conftest.err conftest.$ac_objext \ … … 20763 4909 LIBS=$ac_check_lib_save_LIBS 20764 4910 fi 20765 echo "$as_me:$LINENO: result: $ac_cv_lib_ opengl32_main" >&520766 echo "${ECHO_T}$ac_cv_lib_ opengl32_main" >&620767 if test $ac_cv_lib_ opengl32_main = yes; then20768 FOUND_GL =yes; LIBS="$LIBS -lopengl32"20769 fi 20770 20771 if test x$FOUND_GL != xyes ; then4911 echo "$as_me:$LINENO: result: $ac_cv_lib_glu32_main" >&5 4912 echo "${ECHO_T}$ac_cv_lib_glu32_main" >&6 4913 if test $ac_cv_lib_glu32_main = yes; then 4914 FOUND_GLU=yes; LIBS="$LIBS -lGLU32" 4915 fi 4916 4917 if test x$FOUND_GLU != xyes ; then 20772 4918 echo "------------------" 20773 echo " openglnot found."20774 echo "please install the opengl packagewhich can be found at http://www.opengl.org"4919 echo "GLU library not found." 4920 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 20775 4921 echo "------------------" 20776 4922 exit -1 20777 4923 fi 20778 4924 20779 # che king for GLU-header20780 20781 for ac_header in GL/gl u.h4925 # checking glew header 4926 4927 for ac_header in GL/glew.h 20782 4928 do 20783 4929 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 20925 5071 20926 5072 else 20927 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&520928 echo "$as_me: error: cannot find opengl headers" >&2;}5073 { { echo "$as_me:$LINENO: error: cannot find opengl extension wrangler headers" >&5 5074 echo "$as_me: error: cannot find opengl extension wrangler headers" >&2;} 20929 5075 { (exit 1); exit 1; }; } 20930 5076 fi … … 20932 5078 done 20933 5079 20934 20935 # checking for libGLU 20936 echo "$as_me:$LINENO: checking for main in -lglu32" >&5 20937 echo $ECHO_N "checking for main in -lglu32... $ECHO_C" >&6 20938 if test "${ac_cv_lib_glu32_main+set}" = set; then 5080 # checking for Windows glew library 5081 echo "$as_me:$LINENO: checking for main in -lglew32" >&5 5082 echo $ECHO_N "checking for main in -lglew32... $ECHO_C" >&6 5083 if test "${ac_cv_lib_glew32_main+set}" = set; then 20939 5084 echo $ECHO_N "(cached) $ECHO_C" >&6 20940 5085 else 20941 5086 ac_check_lib_save_LIBS=$LIBS 20942 LIBS="-lgl u32 $LIBS"5087 LIBS="-lglew32 $LIBS" 20943 5088 cat >conftest.$ac_ext <<_ACEOF 20944 5089 /* confdefs.h. */ … … 20979 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20980 5125 (exit $ac_status); }; }; then 20981 ac_cv_lib_gl u32_main=yes5126 ac_cv_lib_glew32_main=yes 20982 5127 else 20983 5128 echo "$as_me: failed program was:" >&5 20984 5129 sed 's/^/| /' conftest.$ac_ext >&5 20985 5130 20986 ac_cv_lib_gl u32_main=no5131 ac_cv_lib_glew32_main=no 20987 5132 fi 20988 5133 rm -f conftest.err conftest.$ac_objext \ … … 20990 5135 LIBS=$ac_check_lib_save_LIBS 20991 5136 fi 20992 echo "$as_me:$LINENO: result: $ac_cv_lib_gl u32_main" >&520993 echo "${ECHO_T}$ac_cv_lib_gl u32_main" >&620994 if test $ac_cv_lib_gl u32_main = yes; then20995 FOUND_GL U=yes; LIBS="$LIBS -lGLU32"20996 fi 20997 20998 if test x$FOUND_GL U!= xyes ; then5137 echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 5138 echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 5139 if test $ac_cv_lib_glew32_main = yes; then 5140 FOUND_GLEW=yes; LIBS="$LIBS -lglew32" 5141 fi 5142 5143 if test x$FOUND_GLEW != xyes ; then 20999 5144 echo "------------------" 21000 echo " GLU librarynot found."21001 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"5145 echo "opengl extension wrangler not found." 5146 echo "please install the glew package which can be found at http://glew.sourceforge.net" 21002 5147 echo "------------------" 21003 5148 exit -1 21004 5149 fi 21005 5150 21006 # checking glew header 21007 21008 for ac_header in GL/glew.h 5151 #--------# 5152 # openAL # 5153 #--------# 5154 # checking for openAL-headers 5155 5156 for ac_header in AL/al.h 21009 5157 do 21010 5158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 21152 5300 21153 5301 else 21154 { { echo "$as_me:$LINENO: error: cannot find open gl extension wrangler headers" >&521155 echo "$as_me: error: cannot find open gl extension wrangler headers" >&2;}5302 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 5303 echo "$as_me: error: cannot find openAL header." >&2;} 21156 5304 { (exit 1); exit 1; }; } 21157 5305 fi … … 21159 5307 done 21160 5308 21161 # checking for Windows glew library21162 echo "$as_me:$LINENO: checking for main in -lglew32" >&521163 echo $ECHO_N "checking for main in -l glew32... $ECHO_C" >&621164 if test "${ac_cv_lib_ glew32_main+set}" = set; then5309 # checking for openAL-lib 5310 echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 5311 echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 5312 if test "${ac_cv_lib_OpenAL32_main+set}" = set; then 21165 5313 echo $ECHO_N "(cached) $ECHO_C" >&6 21166 5314 else 21167 5315 ac_check_lib_save_LIBS=$LIBS 21168 LIBS="-l glew32 $LIBS"5316 LIBS="-lOpenAL32 $LIBS" 21169 5317 cat >conftest.$ac_ext <<_ACEOF 21170 5318 /* confdefs.h. */ … … 21205 5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21206 5354 (exit $ac_status); }; }; then 21207 ac_cv_lib_ glew32_main=yes5355 ac_cv_lib_OpenAL32_main=yes 21208 5356 else 21209 5357 echo "$as_me: failed program was:" >&5 21210 5358 sed 's/^/| /' conftest.$ac_ext >&5 21211 5359 21212 ac_cv_lib_ glew32_main=no5360 ac_cv_lib_OpenAL32_main=no 21213 5361 fi 21214 5362 rm -f conftest.err conftest.$ac_objext \ … … 21216 5364 LIBS=$ac_check_lib_save_LIBS 21217 5365 fi 21218 echo "$as_me:$LINENO: result: $ac_cv_lib_glew32_main" >&5 21219 echo "${ECHO_T}$ac_cv_lib_glew32_main" >&6 21220 if test $ac_cv_lib_glew32_main = yes; then 21221 FOUND_GLEW=yes; LIBS="$LIBS -lglew32" 21222 fi 21223 21224 if test x$FOUND_GLEW != xyes ; then 21225 echo "------------------" 21226 echo "opengl extension wrangler not found." 21227 echo "please install the glew package which can be found at http://glew.sourceforge.net" 21228 echo "------------------" 21229 exit -1 21230 fi 21231 21232 #--------# 21233 # openAL # 21234 #--------# 21235 # checking for openAL-headers 21236 21237 for ac_header in AL/al.h 5366 echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 5367 echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 5368 if test $ac_cv_lib_OpenAL32_main = yes; then 5369 FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" 5370 fi 5371 5372 echo "$as_me:$LINENO: checking for main in -lALut" >&5 5373 echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 5374 if test "${ac_cv_lib_ALut_main+set}" = set; then 5375 echo $ECHO_N "(cached) $ECHO_C" >&6 5376 else 5377 ac_check_lib_save_LIBS=$LIBS 5378 LIBS="-lALut $LIBS" 5379 cat >conftest.$ac_ext <<_ACEOF 5380 /* confdefs.h. */ 5381 _ACEOF 5382 cat confdefs.h >>conftest.$ac_ext 5383 cat >>conftest.$ac_ext <<_ACEOF 5384 /* end confdefs.h. */ 5385 5386 5387 int 5388 main () 5389 { 5390 main (); 5391 ; 5392 return 0; 5393 } 5394 _ACEOF 5395 rm -f conftest.$ac_objext conftest$ac_exeext 5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5397 (eval $ac_link) 2>conftest.er1 5398 ac_status=$? 5399 grep -v '^ *+' conftest.er1 >conftest.err 5400 rm -f conftest.er1 5401 cat conftest.err >&5 5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5403 (exit $ac_status); } && 5404 { ac_try='test -z "$ac_c_werror_flag" 5405 || test ! -s conftest.err' 5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5407 (eval $ac_try) 2>&5 5408 ac_status=$? 5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5410 (exit $ac_status); }; } && 5411 { ac_try='test -s conftest$ac_exeext' 5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5413 (eval $ac_try) 2>&5 5414 ac_status=$? 5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5416 (exit $ac_status); }; }; then 5417 ac_cv_lib_ALut_main=yes 5418 else 5419 echo "$as_me: failed program was:" >&5 5420 sed 's/^/| /' conftest.$ac_ext >&5 5421 5422 ac_cv_lib_ALut_main=no 5423 fi 5424 rm -f conftest.err conftest.$ac_objext \ 5425 conftest$ac_exeext conftest.$ac_ext 5426 LIBS=$ac_check_lib_save_LIBS 5427 fi 5428 echo "$as_me:$LINENO: result: $ac_cv_lib_ALut_main" >&5 5429 echo "${ECHO_T}$ac_cv_lib_ALut_main" >&6 5430 if test $ac_cv_lib_ALut_main = yes; then 5431 FOUND_ALUT=yes; LIBS="-lALut $LIBS" 5432 fi 5433 5434 if test x$FOUND_OPENAL != xyes ; then 5435 echo "------------------" 5436 echo "openal library not found." 5437 echo "please install the openal library, which can be found at http://www.openal.org" 5438 echo "------------------" 5439 exit -1 5440 fi 5441 5442 5443 #-----------# 5444 # SDL(win) # 5445 #-----------# 5446 # checking for SDL-headers 5447 5448 for ac_header in SDL/SDL.h 21238 5449 do 21239 5450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 21381 5592 21382 5593 else 21383 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&521384 echo "$as_me: error: cannot find openAL header." >&2;}5594 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 5595 echo "$as_me: error: cannot find SDL headers" >&2;} 21385 5596 { (exit 1); exit 1; }; } 21386 5597 fi … … 21388 5599 done 21389 5600 21390 # checking for openAL-lib 21391 echo "$as_me:$LINENO: checking for main in -lOpenAL32" >&5 21392 echo $ECHO_N "checking for main in -lOpenAL32... $ECHO_C" >&6 21393 if test "${ac_cv_lib_OpenAL32_main+set}" = set; then 5601 5602 #checking for libSDL 5603 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&5 5604 echo $ECHO_N "checking for main in -lsdlmain... $ECHO_C" >&6 5605 if test "${ac_cv_lib_sdlmain_main+set}" = set; then 21394 5606 echo $ECHO_N "(cached) $ECHO_C" >&6 21395 5607 else 21396 5608 ac_check_lib_save_LIBS=$LIBS 21397 LIBS="-l OpenAL32$LIBS"5609 LIBS="-lsdlmain $LIBS" 21398 5610 cat >conftest.$ac_ext <<_ACEOF 21399 5611 /* confdefs.h. */ … … 21434 5646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21435 5647 (exit $ac_status); }; }; then 21436 ac_cv_lib_ OpenAL32_main=yes5648 ac_cv_lib_sdlmain_main=yes 21437 5649 else 21438 5650 echo "$as_me: failed program was:" >&5 21439 5651 sed 's/^/| /' conftest.$ac_ext >&5 21440 5652 21441 ac_cv_lib_ OpenAL32_main=no5653 ac_cv_lib_sdlmain_main=no 21442 5654 fi 21443 5655 rm -f conftest.err conftest.$ac_objext \ … … 21445 5657 LIBS=$ac_check_lib_save_LIBS 21446 5658 fi 21447 echo "$as_me:$LINENO: result: $ac_cv_lib_OpenAL32_main" >&5 21448 echo "${ECHO_T}$ac_cv_lib_OpenAL32_main" >&6 21449 if test $ac_cv_lib_OpenAL32_main = yes; then 21450 FOUND_OPENAL=yes; LIBS="$LIBS -lOpenAL32" 21451 fi 21452 21453 echo "$as_me:$LINENO: checking for main in -lALut" >&5 21454 echo $ECHO_N "checking for main in -lALut... $ECHO_C" >&6 21455 if test "${ac_cv_lib_ALut_main+set}" = set; then 5659 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 5660 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 5661 if test $ac_cv_lib_sdlmain_main = yes; then 5662 FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" 5663 fi 5664 5665 if test x$FOUND_sdlmain != xyes ; then 5666 echo "------------------" 5667 echo "SDL library not found." 5668 echo "please install the SDL library, which can be found at http://www.libsdl.org" 5669 echo "------------------" 5670 exit 1 5671 fi 5672 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 5673 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 5674 if test "${ac_cv_lib_sdl_main+set}" = set; then 21456 5675 echo $ECHO_N "(cached) $ECHO_C" >&6 21457 5676 else 21458 5677 ac_check_lib_save_LIBS=$LIBS 21459 LIBS="-l ALut$LIBS"5678 LIBS="-lsdl $LIBS" 21460 5679 cat >conftest.$ac_ext <<_ACEOF 21461 5680 /* confdefs.h. */ … … 21496 5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21497 5716 (exit $ac_status); }; }; then 21498 ac_cv_lib_ ALut_main=yes5717 ac_cv_lib_sdl_main=yes 21499 5718 else 21500 5719 echo "$as_me: failed program was:" >&5 21501 5720 sed 's/^/| /' conftest.$ac_ext >&5 21502 5721 21503 ac_cv_lib_ ALut_main=no5722 ac_cv_lib_sdl_main=no 21504 5723 fi 21505 5724 rm -f conftest.err conftest.$ac_objext \ … … 21507 5726 LIBS=$ac_check_lib_save_LIBS 21508 5727 fi 21509 echo "$as_me:$LINENO: result: $ac_cv_lib_ ALut_main" >&521510 echo "${ECHO_T}$ac_cv_lib_ ALut_main" >&621511 if test $ac_cv_lib_ ALut_main = yes; then21512 FOUND_ ALUT=yes; LIBS="-lALut $LIBS"21513 fi 21514 21515 if test x$FOUND_OPENAL != xyes ; then5728 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 5729 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 5730 if test $ac_cv_lib_sdl_main = yes; then 5731 FOUND_SDL=yes; LIBS="$LIBS -lsdl" 5732 fi 5733 5734 if test x$FOUND_SDL != xyes ; then 21516 5735 echo "------------------" 21517 echo " openallibrary not found."21518 echo "please install the openal library, which can be found at http://www.openal.org"5736 echo "SDL library not found." 5737 echo "please install the SDL library, which can be found at http://www.libsdl.org" 21519 5738 echo "------------------" 21520 5739 exit -1 21521 fi 21522 21523 21524 #-----------# 21525 # SDL(win) # 21526 #-----------# 21527 # checking for SDL-headers 21528 21529 for ac_header in SDL/SDL.h 5740 fi 5741 5742 ;; 5743 5744 ######### 5745 #-------# 5746 # LINUX # 5747 #-------# 5748 ######### 5749 *-*-linux*) 5750 echo "Linux detected" 5751 5752 Linux="yes" 5753 5754 ##CPPFLAGS="-I/usr/include $CPPFLAGS" 5755 ##LDFLAGS="-L/usr/lib $LDFLAGS" 5756 if test x$SHARED_LIB_PATH != xno; then 5757 echo "setting new LDFLAGS with $SHARED_LIB_PATH" 5758 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" 5759 fi 5760 5761 #--------# 5762 # openGL # 5763 #--------# 5764 # checking gl header 5765 5766 for ac_header in GL/gl.h 21530 5767 do 21531 5768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 21673 5910 21674 5911 else 21675 { { echo "$as_me:$LINENO: error: cannot find SDLheaders" >&521676 echo "$as_me: error: cannot find SDLheaders" >&2;}5912 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 5913 echo "$as_me: error: cannot find opengl headers" >&2;} 21677 5914 { (exit 1); exit 1; }; } 21678 5915 fi … … 21681 5918 21682 5919 21683 # checking for libSDL21684 echo "$as_me:$LINENO: checking for main in -lsdlmain" >&521685 echo $ECHO_N "checking for main in -l sdlmain... $ECHO_C" >&621686 if test "${ac_cv_lib_ sdlmain_main+set}" = set; then5920 # checking for Unix GL 5921 echo "$as_me:$LINENO: checking for main in -lGL" >&5 5922 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 5923 if test "${ac_cv_lib_GL_main+set}" = set; then 21687 5924 echo $ECHO_N "(cached) $ECHO_C" >&6 21688 5925 else 21689 5926 ac_check_lib_save_LIBS=$LIBS 21690 LIBS="-l sdlmain$LIBS"5927 LIBS="-lGL $LIBS" 21691 5928 cat >conftest.$ac_ext <<_ACEOF 21692 5929 /* confdefs.h. */ … … 21727 5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21728 5965 (exit $ac_status); }; }; then 21729 ac_cv_lib_ sdlmain_main=yes5966 ac_cv_lib_GL_main=yes 21730 5967 else 21731 5968 echo "$as_me: failed program was:" >&5 21732 5969 sed 's/^/| /' conftest.$ac_ext >&5 21733 5970 21734 ac_cv_lib_ sdlmain_main=no5971 ac_cv_lib_GL_main=no 21735 5972 fi 21736 5973 rm -f conftest.err conftest.$ac_objext \ … … 21738 5975 LIBS=$ac_check_lib_save_LIBS 21739 5976 fi 21740 echo "$as_me:$LINENO: result: $ac_cv_lib_sdlmain_main" >&5 21741 echo "${ECHO_T}$ac_cv_lib_sdlmain_main" >&6 21742 if test $ac_cv_lib_sdlmain_main = yes; then 21743 FOUND_sdlmain=yes; LIBS="$LIBS -lsdlmain" 21744 fi 21745 21746 if test x$FOUND_sdlmain != xyes ; then 21747 echo "------------------" 21748 echo "SDL library not found." 21749 echo "please install the SDL library, which can be found at http://www.libsdl.org" 21750 echo "------------------" 21751 exit 1 21752 fi 21753 echo "$as_me:$LINENO: checking for main in -lsdl" >&5 21754 echo $ECHO_N "checking for main in -lsdl... $ECHO_C" >&6 21755 if test "${ac_cv_lib_sdl_main+set}" = set; then 21756 echo $ECHO_N "(cached) $ECHO_C" >&6 21757 else 21758 ac_check_lib_save_LIBS=$LIBS 21759 LIBS="-lsdl $LIBS" 21760 cat >conftest.$ac_ext <<_ACEOF 21761 /* confdefs.h. */ 21762 _ACEOF 21763 cat confdefs.h >>conftest.$ac_ext 21764 cat >>conftest.$ac_ext <<_ACEOF 21765 /* end confdefs.h. */ 21766 21767 21768 int 21769 main () 21770 { 21771 main (); 21772 ; 21773 return 0; 21774 } 21775 _ACEOF 21776 rm -f conftest.$ac_objext conftest$ac_exeext 21777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21778 (eval $ac_link) 2>conftest.er1 21779 ac_status=$? 21780 grep -v '^ *+' conftest.er1 >conftest.err 21781 rm -f conftest.er1 21782 cat conftest.err >&5 21783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21784 (exit $ac_status); } && 21785 { ac_try='test -z "$ac_c_werror_flag" 21786 || test ! -s conftest.err' 21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21788 (eval $ac_try) 2>&5 21789 ac_status=$? 21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21791 (exit $ac_status); }; } && 21792 { ac_try='test -s conftest$ac_exeext' 21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21794 (eval $ac_try) 2>&5 21795 ac_status=$? 21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21797 (exit $ac_status); }; }; then 21798 ac_cv_lib_sdl_main=yes 21799 else 21800 echo "$as_me: failed program was:" >&5 21801 sed 's/^/| /' conftest.$ac_ext >&5 21802 21803 ac_cv_lib_sdl_main=no 21804 fi 21805 rm -f conftest.err conftest.$ac_objext \ 21806 conftest$ac_exeext conftest.$ac_ext 21807 LIBS=$ac_check_lib_save_LIBS 21808 fi 21809 echo "$as_me:$LINENO: result: $ac_cv_lib_sdl_main" >&5 21810 echo "${ECHO_T}$ac_cv_lib_sdl_main" >&6 21811 if test $ac_cv_lib_sdl_main = yes; then 21812 FOUND_SDL=yes; LIBS="$LIBS -lsdl" 21813 fi 21814 21815 if test x$FOUND_SDL != xyes ; then 21816 echo "------------------" 21817 echo "SDL library not found." 21818 echo "please install the SDL library, which can be found at http://www.libsdl.org" 21819 echo "------------------" 21820 exit -1 21821 fi 21822 21823 ;; 21824 21825 ######### 21826 #-------# 21827 # LINUX # 21828 #-------# 21829 ######### 21830 *-*-linux*) 21831 echo "Linux detected" 21832 21833 Linux="yes" 21834 21835 ##CPPFLAGS="-I/usr/include $CPPFLAGS" 21836 ##LDFLAGS="-L/usr/lib $LDFLAGS" 21837 if test x$SHARED_LIB_PATH != xno; then 21838 echo "setting new LDFLAGS with $SHARED_LIB_PATH" 21839 LDFLAGS="-Wl,-rpath,$SHARED_LIB_PATH -L$SHARED_LIB_PATH $LDFLAGS" 21840 fi 21841 21842 #--------# 21843 # openGL # 21844 #--------# 21845 # checking gl header 21846 21847 for ac_header in GL/gl.h 5977 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5 5978 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6 5979 if test $ac_cv_lib_GL_main = yes; then 5980 FOUND_GL=yes; LIBS="$LIBS -lGL" 5981 fi 5982 5983 if test x$FOUND_GL != xyes ; then 5984 echo "------------------" 5985 echo "opengl not found." 5986 echo "please install the opengl package which can be found at http://www.opengl.org" 5987 echo "------------------" 5988 exit -1 5989 fi 5990 5991 # cheking for GLU-header 5992 5993 for ac_header in GL/glu.h 21848 5994 do 21849 5995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 21998 6144 done 21999 6145 22000 22001 # checking for Unix GL 22002 echo "$as_me:$LINENO: checking for main in -lGL" >&5 22003 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6 22004 if test "${ac_cv_lib_GL_main+set}" = set; then 6146 echo "$as_me:$LINENO: checking for main in -lGLU" >&5 6147 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 6148 if test "${ac_cv_lib_GLU_main+set}" = set; then 22005 6149 echo $ECHO_N "(cached) $ECHO_C" >&6 22006 6150 else 22007 6151 ac_check_lib_save_LIBS=$LIBS 22008 LIBS="-lGL $LIBS"6152 LIBS="-lGLU $LIBS" 22009 6153 cat >conftest.$ac_ext <<_ACEOF 22010 6154 /* confdefs.h. */ … … 22045 6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22046 6190 (exit $ac_status); }; }; then 22047 ac_cv_lib_GL _main=yes6191 ac_cv_lib_GLU_main=yes 22048 6192 else 22049 6193 echo "$as_me: failed program was:" >&5 22050 6194 sed 's/^/| /' conftest.$ac_ext >&5 22051 6195 22052 ac_cv_lib_GL _main=no6196 ac_cv_lib_GLU_main=no 22053 6197 fi 22054 6198 rm -f conftest.err conftest.$ac_objext \ … … 22056 6200 LIBS=$ac_check_lib_save_LIBS 22057 6201 fi 22058 echo "$as_me:$LINENO: result: $ac_cv_lib_GL _main" >&522059 echo "${ECHO_T}$ac_cv_lib_GL _main" >&622060 if test $ac_cv_lib_GL _main = yes; then22061 FOUND_GL =yes; LIBS="$LIBS -lGL"22062 fi 22063 22064 if test x$FOUND_GL!= xyes ; then6202 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5 6203 echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6 6204 if test $ac_cv_lib_GLU_main = yes; then 6205 FOUND_GLU=yes; LIBS="$LIBS -lGLU" 6206 fi 6207 6208 if test x$FOUND_GLU != xyes ; then 22065 6209 echo "------------------" 22066 echo " openglnot found."22067 echo "please install the opengl packagewhich can be found at http://www.opengl.org"6210 echo "GLU library not found." 6211 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org" 22068 6212 echo "------------------" 22069 6213 exit -1 22070 fi22071 22072 # che king for GLU-header22073 22074 for ac_header in GL/gl u.h6214 fi 6215 6216 # checking for GLEW-headers 6217 6218 for ac_header in GL/glew.h 22075 6219 do 22076 6220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 22218 6362 22219 6363 else 22220 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&522221 echo "$as_me: error: cannot find openglheaders" >&2;}6364 { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 6365 echo "$as_me: error: cannot find glew headers" >&2;} 22222 6366 { (exit 1); exit 1; }; } 22223 6367 fi … … 22225 6369 done 22226 6370 22227 echo "$as_me:$LINENO: checking for main in -lGLU" >&5 22228 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6 22229 if test "${ac_cv_lib_GLU_main+set}" = set; then 6371 # checking for GLEW-lib 6372 echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 6373 echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 6374 if test "${ac_cv_lib_GLEW_main+set}" = set; then 22230 6375 echo $ECHO_N "(cached) $ECHO_C" >&6 22231 6376 else 22232 6377 ac_check_lib_save_LIBS=$LIBS 22233 LIBS="-lGL U$LIBS"6378 LIBS="-lGLEW $LIBS" 22234 6379 cat >conftest.$ac_ext <<_ACEOF 22235 6380 /* confdefs.h. */ … … 22270 6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22271 6416 (exit $ac_status); }; }; then 22272 ac_cv_lib_GL U_main=yes6417 ac_cv_lib_GLEW_main=yes 22273 6418 else 22274 6419 echo "$as_me: failed program was:" >&5 22275 6420 sed 's/^/| /' conftest.$ac_ext >&5 22276 6421 22277 ac_cv_lib_GL U_main=no6422 ac_cv_lib_GLEW_main=no 22278 6423 fi 22279 6424 rm -f conftest.err conftest.$ac_objext \ … … 22281 6426 LIBS=$ac_check_lib_save_LIBS 22282 6427 fi 22283 echo "$as_me:$LINENO: result: $ac_cv_lib_GL U_main" >&522284 echo "${ECHO_T}$ac_cv_lib_GL U_main" >&622285 if test $ac_cv_lib_GL U_main = yes; then22286 FOUND_GL U=yes; LIBS="$LIBS -lGLU"22287 fi 22288 22289 if test x$FOUND_GLU!= xyes ; then6428 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 6429 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 6430 if test $ac_cv_lib_GLEW_main = yes; then 6431 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 6432 fi 6433 6434 if test x$FOUND_GLEW != xyes ; then 22290 6435 echo "------------------" 22291 echo " GLU librarynot found."22292 echo "please install the GLU library, that should come with openGL, which can be found at http://www.opengl.org"6436 echo "glew not found." 6437 echo "please install the glew package which can be found at http://glew.sourceforge.net" 22293 6438 echo "------------------" 22294 6439 exit -1 22295 fi 22296 22297 # checking for GLEW-headers 22298 22299 for ac_header in GL/glew.h 6440 fi 6441 6442 #--------# 6443 # openAL # 6444 #--------# 6445 # checking for openAL-headers 6446 6447 for ac_header in AL/al.h 22300 6448 do 22301 6449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 22443 6591 22444 6592 else 22445 { { echo "$as_me:$LINENO: error: cannot find glew headers" >&522446 echo "$as_me: error: cannot find glew headers" >&2;}6593 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&5 6594 echo "$as_me: error: cannot find openAL header." >&2;} 22447 6595 { (exit 1); exit 1; }; } 22448 6596 fi … … 22450 6598 done 22451 6599 22452 # checking for GLEW-lib22453 echo "$as_me:$LINENO: checking for main in -l GLEW" >&522454 echo $ECHO_N "checking for main in -l GLEW... $ECHO_C" >&622455 if test "${ac_cv_lib_ GLEW_main+set}" = set; then6600 # checking for openAL-lib 6601 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 6602 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 6603 if test "${ac_cv_lib_openal_main+set}" = set; then 22456 6604 echo $ECHO_N "(cached) $ECHO_C" >&6 22457 6605 else 22458 6606 ac_check_lib_save_LIBS=$LIBS 22459 LIBS="-l GLEW$LIBS"6607 LIBS="-lopenal $LIBS" 22460 6608 cat >conftest.$ac_ext <<_ACEOF 22461 6609 /* confdefs.h. */ … … 22496 6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22497 6645 (exit $ac_status); }; }; then 22498 ac_cv_lib_ GLEW_main=yes6646 ac_cv_lib_openal_main=yes 22499 6647 else 22500 6648 echo "$as_me: failed program was:" >&5 22501 6649 sed 's/^/| /' conftest.$ac_ext >&5 22502 6650 22503 ac_cv_lib_ GLEW_main=no6651 ac_cv_lib_openal_main=no 22504 6652 fi 22505 6653 rm -f conftest.err conftest.$ac_objext \ … … 22507 6655 LIBS=$ac_check_lib_save_LIBS 22508 6656 fi 22509 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 22510 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 22511 if test $ac_cv_lib_GLEW_main = yes; then 22512 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 22513 fi 22514 22515 if test x$FOUND_GLEW != xyes ; then 22516 echo "------------------" 22517 echo "glew not found." 22518 echo "please install the glew package which can be found at http://glew.sourceforge.net" 22519 echo "------------------" 22520 exit -1 22521 fi 22522 22523 #--------# 22524 # openAL # 22525 #--------# 22526 # checking for openAL-headers 22527 22528 for ac_header in AL/al.h 6657 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 6658 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 6659 if test $ac_cv_lib_openal_main = yes; then 6660 FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" 6661 fi 6662 6663 if test x$FOUND_OPENAL != xyes ; then 6664 echo "------------------" 6665 echo "openal library not found." 6666 echo "please install the openal library, which can be found at http://www.openal.org" 6667 echo "------------------" 6668 exit -1 6669 fi 6670 # checking for alut 6671 6672 for ac_header in AL/alut.h 22529 6673 do 22530 6674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 22672 6816 22673 6817 else 22674 { { echo "$as_me:$LINENO: error: cannot find openAL header." >&522675 echo "$as_me: error: cannot find openAL header." >&2;}6818 { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 6819 echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} 22676 6820 { (exit 1); exit 1; }; } 22677 6821 fi … … 22679 6823 done 22680 6824 22681 # checking for openAL-lib 22682 echo "$as_me:$LINENO: checking for main in -lopenal" >&5 22683 echo $ECHO_N "checking for main in -lopenal... $ECHO_C" >&6 22684 if test "${ac_cv_lib_openal_main+set}" = set; then 6825 echo "$as_me:$LINENO: checking for main in -lalut" >&5 6826 echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 6827 if test "${ac_cv_lib_alut_main+set}" = set; then 22685 6828 echo $ECHO_N "(cached) $ECHO_C" >&6 22686 6829 else 22687 6830 ac_check_lib_save_LIBS=$LIBS 22688 LIBS="-l openal$LIBS"6831 LIBS="-lalut $LIBS" 22689 6832 cat >conftest.$ac_ext <<_ACEOF 22690 6833 /* confdefs.h. */ … … 22725 6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22726 6869 (exit $ac_status); }; }; then 22727 ac_cv_lib_ openal_main=yes6870 ac_cv_lib_alut_main=yes 22728 6871 else 22729 6872 echo "$as_me: failed program was:" >&5 22730 6873 sed 's/^/| /' conftest.$ac_ext >&5 22731 6874 22732 ac_cv_lib_ openal_main=no6875 ac_cv_lib_alut_main=no 22733 6876 fi 22734 6877 rm -f conftest.err conftest.$ac_objext \ … … 22736 6879 LIBS=$ac_check_lib_save_LIBS 22737 6880 fi 22738 echo "$as_me:$LINENO: result: $ac_cv_lib_openal_main" >&5 22739 echo "${ECHO_T}$ac_cv_lib_openal_main" >&6 22740 if test $ac_cv_lib_openal_main = yes; then 22741 FOUND_OPENAL=yes; LIBS="$LIBS -lopenal" 22742 fi 22743 22744 if test x$FOUND_OPENAL != xyes ; then 22745 echo "------------------" 22746 echo "openal library not found." 22747 echo "please install the openal library, which can be found at http://www.openal.org" 22748 echo "------------------" 22749 exit -1 22750 fi 22751 # checking for alut 22752 22753 for ac_header in AL/alut.h 6881 echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 6882 echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 6883 if test $ac_cv_lib_alut_main = yes; then 6884 FOUND_ALUT=yes; LIBS="-lalut $LIBS" 6885 fi 6886 6887 6888 #-----# 6889 # SDL # 6890 #-----# 6891 # checking for SDL 6892 echo "$as_me:$LINENO: checking for SDL-version" >&5 6893 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 6894 SDL_VERSION=`sdl-config --version` 6895 echo $SDL_VERSION 6896 6897 CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" 6898 6899 for ac_header in SDL.h 22754 6900 do 22755 6901 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 22897 7043 22898 7044 else 22899 { { echo "$as_me:$LINENO: error: cannot find openAL Utility Toolkit (alut) header." >&5 22900 echo "$as_me: error: cannot find openAL Utility Toolkit (alut) header." >&2;} 22901 { (exit 1); exit 1; }; } 22902 fi 22903 22904 done 22905 22906 echo "$as_me:$LINENO: checking for main in -lalut" >&5 22907 echo $ECHO_N "checking for main in -lalut... $ECHO_C" >&6 22908 if test "${ac_cv_lib_alut_main+set}" = set; then 22909 echo $ECHO_N "(cached) $ECHO_C" >&6 22910 else 22911 ac_check_lib_save_LIBS=$LIBS 22912 LIBS="-lalut $LIBS" 22913 cat >conftest.$ac_ext <<_ACEOF 22914 /* confdefs.h. */ 22915 _ACEOF 22916 cat confdefs.h >>conftest.$ac_ext 22917 cat >>conftest.$ac_ext <<_ACEOF 22918 /* end confdefs.h. */ 22919 22920 22921 int 22922 main () 22923 { 22924 main (); 22925 ; 22926 return 0; 22927 } 22928 _ACEOF 22929 rm -f conftest.$ac_objext conftest$ac_exeext 22930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22931 (eval $ac_link) 2>conftest.er1 22932 ac_status=$? 22933 grep -v '^ *+' conftest.er1 >conftest.err 22934 rm -f conftest.er1 22935 cat conftest.err >&5 22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22937 (exit $ac_status); } && 22938 { ac_try='test -z "$ac_c_werror_flag" 22939 || test ! -s conftest.err' 22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22941 (eval $ac_try) 2>&5 22942 ac_status=$? 22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22944 (exit $ac_status); }; } && 22945 { ac_try='test -s conftest$ac_exeext' 22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22947 (eval $ac_try) 2>&5 22948 ac_status=$? 22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22950 (exit $ac_status); }; }; then 22951 ac_cv_lib_alut_main=yes 22952 else 22953 echo "$as_me: failed program was:" >&5 22954 sed 's/^/| /' conftest.$ac_ext >&5 22955 22956 ac_cv_lib_alut_main=no 22957 fi 22958 rm -f conftest.err conftest.$ac_objext \ 22959 conftest$ac_exeext conftest.$ac_ext 22960 LIBS=$ac_check_lib_save_LIBS 22961 fi 22962 echo "$as_me:$LINENO: result: $ac_cv_lib_alut_main" >&5 22963 echo "${ECHO_T}$ac_cv_lib_alut_main" >&6 22964 if test $ac_cv_lib_alut_main = yes; then 22965 FOUND_ALUT=yes; LIBS="-lalut $LIBS" 22966 fi 22967 22968 22969 #-----# 22970 # SDL # 22971 #-----# 22972 # checking for SDL 22973 echo "$as_me:$LINENO: checking for SDL-version" >&5 22974 echo $ECHO_N "checking for SDL-version... $ECHO_C" >&6 22975 SDL_VERSION=`sdl-config --version` 22976 echo $SDL_VERSION 22977 22978 CPPFLAGS="$CPPFLAGS `sdl-config --cflags`" 22979 22980 for ac_header in SDL.h 7045 7046 for ac_header in SDL/SDL.h 22981 7047 do 22982 7048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 23124 7190 23125 7191 else 23126 23127 for ac_header in SDL/SDL.h 7192 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&5 7193 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;} 7194 { (exit 1); exit 1; }; } 7195 fi 7196 7197 done 7198 7199 fi 7200 7201 done 7202 7203 LIBS="`sdl-config --libs` $LIBS" 7204 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 7205 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 7206 if test "${ac_cv_lib_SDL_main+set}" = set; then 7207 echo $ECHO_N "(cached) $ECHO_C" >&6 7208 else 7209 ac_check_lib_save_LIBS=$LIBS 7210 LIBS="-lSDL $LIBS" 7211 cat >conftest.$ac_ext <<_ACEOF 7212 /* confdefs.h. */ 7213 _ACEOF 7214 cat confdefs.h >>conftest.$ac_ext 7215 cat >>conftest.$ac_ext <<_ACEOF 7216 /* end confdefs.h. */ 7217 7218 7219 int 7220 main () 7221 { 7222 main (); 7223 ; 7224 return 0; 7225 } 7226 _ACEOF 7227 rm -f conftest.$ac_objext conftest$ac_exeext 7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7229 (eval $ac_link) 2>conftest.er1 7230 ac_status=$? 7231 grep -v '^ *+' conftest.er1 >conftest.err 7232 rm -f conftest.er1 7233 cat conftest.err >&5 7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7235 (exit $ac_status); } && 7236 { ac_try='test -z "$ac_c_werror_flag" 7237 || test ! -s conftest.err' 7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7239 (eval $ac_try) 2>&5 7240 ac_status=$? 7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7242 (exit $ac_status); }; } && 7243 { ac_try='test -s conftest$ac_exeext' 7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7245 (eval $ac_try) 2>&5 7246 ac_status=$? 7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7248 (exit $ac_status); }; }; then 7249 ac_cv_lib_SDL_main=yes 7250 else 7251 echo "$as_me: failed program was:" >&5 7252 sed 's/^/| /' conftest.$ac_ext >&5 7253 7254 ac_cv_lib_SDL_main=no 7255 fi 7256 rm -f conftest.err conftest.$ac_objext \ 7257 conftest$ac_exeext conftest.$ac_ext 7258 LIBS=$ac_check_lib_save_LIBS 7259 fi 7260 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 7261 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 7262 if test $ac_cv_lib_SDL_main = yes; then 7263 FOUND_SDL=yes 7264 fi 7265 7266 if test x$FOUND_SDL != xyes ; then 7267 echo "------------------" 7268 echo "SDL library not found." 7269 echo "please install the SDL library, which can be found at http://www.libsdl.org" 7270 echo "------------------" 7271 exit -1 7272 fi 7273 7274 ;; 7275 7276 ############# 7277 #-----------# 7278 # MAC -OS X # 7279 #-----------# 7280 ############# 7281 *darwin*) 7282 echo "OS X detected" 7283 7284 osX="yes" 7285 7286 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 7287 LDFLAGS="$LDFLAGS -L/sw/lib" 7288 # checking gl header 7289 7290 for ac_header in OpenGL/gl.h 23128 7291 do 23129 7292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 23271 7434 23272 7435 else 23273 { { echo "$as_me:$LINENO: error: cannot find SDL header. please download from libsdl.org" >&523274 echo "$as_me: error: cannot find SDL header. please download from libsdl.org" >&2;}7436 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 7437 echo "$as_me: error: cannot find opengl headers" >&2;} 23275 7438 { (exit 1); exit 1; }; } 23276 7439 fi … … 23278 7441 done 23279 7442 23280 fi 23281 23282 done 23283 23284 LIBS="`sdl-config --libs` $LIBS" 23285 echo "$as_me:$LINENO: checking for main in -lSDL" >&5 23286 echo $ECHO_N "checking for main in -lSDL... $ECHO_C" >&6 23287 if test "${ac_cv_lib_SDL_main+set}" = set; then 23288 echo $ECHO_N "(cached) $ECHO_C" >&6 23289 else 23290 ac_check_lib_save_LIBS=$LIBS 23291 LIBS="-lSDL $LIBS" 23292 cat >conftest.$ac_ext <<_ACEOF 23293 /* confdefs.h. */ 23294 _ACEOF 23295 cat confdefs.h >>conftest.$ac_ext 23296 cat >>conftest.$ac_ext <<_ACEOF 23297 /* end confdefs.h. */ 23298 23299 23300 int 23301 main () 23302 { 23303 main (); 23304 ; 23305 return 0; 23306 } 23307 _ACEOF 23308 rm -f conftest.$ac_objext conftest$ac_exeext 23309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23310 (eval $ac_link) 2>conftest.er1 23311 ac_status=$? 23312 grep -v '^ *+' conftest.er1 >conftest.err 23313 rm -f conftest.er1 23314 cat conftest.err >&5 23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23316 (exit $ac_status); } && 23317 { ac_try='test -z "$ac_c_werror_flag" 23318 || test ! -s conftest.err' 23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23320 (eval $ac_try) 2>&5 23321 ac_status=$? 23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23323 (exit $ac_status); }; } && 23324 { ac_try='test -s conftest$ac_exeext' 23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23326 (eval $ac_try) 2>&5 23327 ac_status=$? 23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23329 (exit $ac_status); }; }; then 23330 ac_cv_lib_SDL_main=yes 23331 else 23332 echo "$as_me: failed program was:" >&5 23333 sed 's/^/| /' conftest.$ac_ext >&5 23334 23335 ac_cv_lib_SDL_main=no 23336 fi 23337 rm -f conftest.err conftest.$ac_objext \ 23338 conftest$ac_exeext conftest.$ac_ext 23339 LIBS=$ac_check_lib_save_LIBS 23340 fi 23341 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_main" >&5 23342 echo "${ECHO_T}$ac_cv_lib_SDL_main" >&6 23343 if test $ac_cv_lib_SDL_main = yes; then 23344 FOUND_SDL=yes 23345 fi 23346 23347 if test x$FOUND_SDL != xyes ; then 23348 echo "------------------" 23349 echo "SDL library not found." 23350 echo "please install the SDL library, which can be found at http://www.libsdl.org" 23351 echo "------------------" 23352 exit -1 23353 fi 23354 23355 ;; 23356 23357 ############# 23358 #-----------# 23359 # MAC -OS X # 23360 #-----------# 23361 ############# 23362 *darwin*) 23363 echo "OS X detected" 23364 23365 osX="yes" 23366 23367 CPPFLAGS="-I/sw/include -I/sw/include $CPPFLAGS" 23368 LDFLAGS="$LDFLAGS -L/sw/lib" 23369 # checking gl header 23370 23371 for ac_header in OpenGL/gl.h 7443 # cheking for GLU-header 7444 7445 for ac_header in OpenGL/glu.h 23372 7446 do 23373 7447 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 23522 7596 done 23523 7597 23524 # cheking for GLU-header 23525 23526 for ac_header in OpenGL/glu.h 7598 7599 LIBS="$LIBS -framework OpenGL" 7600 7601 7602 7603 # checking for GLEW-headers 7604 7605 for ac_header in GL/glew.h 23527 7606 do 23528 7607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 23670 7749 23671 7750 else 23672 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&523673 echo "$as_me: error: cannot find openglheaders" >&2;}7751 { { echo "$as_me:$LINENO: error: cannot find glew headers" >&5 7752 echo "$as_me: error: cannot find glew headers" >&2;} 23674 7753 { (exit 1); exit 1; }; } 23675 7754 fi … … 23677 7756 done 23678 7757 23679 23680 LIBS="$LIBS -framework OpenGL" 23681 23682 23683 23684 # checking for GLEW-headers 23685 23686 for ac_header in GL/glew.h 7758 # checking for GLEW-lib 7759 echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 7760 echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 7761 if test "${ac_cv_lib_GLEW_main+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763 else 7764 ac_check_lib_save_LIBS=$LIBS 7765 LIBS="-lGLEW $LIBS" 7766 cat >conftest.$ac_ext <<_ACEOF 7767 /* confdefs.h. */ 7768 _ACEOF 7769 cat confdefs.h >>conftest.$ac_ext 7770 cat >>conftest.$ac_ext <<_ACEOF 7771 /* end confdefs.h. */ 7772 7773 7774 int 7775 main () 7776 { 7777 main (); 7778 ; 7779 return 0; 7780 } 7781 _ACEOF 7782 rm -f conftest.$ac_objext conftest$ac_exeext 7783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7784 (eval $ac_link) 2>conftest.er1 7785 ac_status=$? 7786 grep -v '^ *+' conftest.er1 >conftest.err 7787 rm -f conftest.er1 7788 cat conftest.err >&5 7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7790 (exit $ac_status); } && 7791 { ac_try='test -z "$ac_c_werror_flag" 7792 || test ! -s conftest.err' 7793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7794 (eval $ac_try) 2>&5 7795 ac_status=$? 7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7797 (exit $ac_status); }; } && 7798 { ac_try='test -s conftest$ac_exeext' 7799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7800 (eval $ac_try) 2>&5 7801 ac_status=$? 7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7803 (exit $ac_status); }; }; then 7804 ac_cv_lib_GLEW_main=yes 7805 else 7806 echo "$as_me: failed program was:" >&5 7807 sed 's/^/| /' conftest.$ac_ext >&5 7808 7809 ac_cv_lib_GLEW_main=no 7810 fi 7811 rm -f conftest.err conftest.$ac_objext \ 7812 conftest$ac_exeext conftest.$ac_ext 7813 LIBS=$ac_check_lib_save_LIBS 7814 fi 7815 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 7816 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 7817 if test $ac_cv_lib_GLEW_main = yes; then 7818 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 7819 fi 7820 7821 if test x$FOUND_GLEW != xyes ; then 7822 echo "------------------" 7823 echo "glew not found." 7824 echo "please install the glew package which can be found at http://glew.sourceforge.net" 7825 echo "------------------" 7826 exit -1 7827 fi 7828 7829 7830 7831 for ac_header in OpenAL/al.h 23687 7832 do 23688 7833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 23830 7975 23831 7976 else 23832 { { echo "$as_me:$LINENO: error: cannot find glewheaders" >&523833 echo "$as_me: error: cannot find glewheaders" >&2;}7977 { { echo "$as_me:$LINENO: error: cannot find opengl headers" >&5 7978 echo "$as_me: error: cannot find opengl headers" >&2;} 23834 7979 { (exit 1); exit 1; }; } 23835 7980 fi … … 23837 7982 done 23838 7983 23839 # checking for GLEW-lib 23840 echo "$as_me:$LINENO: checking for main in -lGLEW" >&5 23841 echo $ECHO_N "checking for main in -lGLEW... $ECHO_C" >&6 23842 if test "${ac_cv_lib_GLEW_main+set}" = set; then 23843 echo $ECHO_N "(cached) $ECHO_C" >&6 23844 else 23845 ac_check_lib_save_LIBS=$LIBS 23846 LIBS="-lGLEW $LIBS" 23847 cat >conftest.$ac_ext <<_ACEOF 23848 /* confdefs.h. */ 23849 _ACEOF 23850 cat confdefs.h >>conftest.$ac_ext 23851 cat >>conftest.$ac_ext <<_ACEOF 23852 /* end confdefs.h. */ 23853 23854 23855 int 23856 main () 23857 { 23858 main (); 23859 ; 23860 return 0; 23861 } 23862 _ACEOF 23863 rm -f conftest.$ac_objext conftest$ac_exeext 23864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23865 (eval $ac_link) 2>conftest.er1 23866 ac_status=$? 23867 grep -v '^ *+' conftest.er1 >conftest.err 23868 rm -f conftest.er1 23869 cat conftest.err >&5 23870 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23871 (exit $ac_status); } && 23872 { ac_try='test -z "$ac_c_werror_flag" 23873 || test ! -s conftest.err' 23874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23875 (eval $ac_try) 2>&5 23876 ac_status=$? 23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23878 (exit $ac_status); }; } && 23879 { ac_try='test -s conftest$ac_exeext' 23880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23881 (eval $ac_try) 2>&5 23882 ac_status=$? 23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23884 (exit $ac_status); }; }; then 23885 ac_cv_lib_GLEW_main=yes 23886 else 23887 echo "$as_me: failed program was:" >&5 23888 sed 's/^/| /' conftest.$ac_ext >&5 23889 23890 ac_cv_lib_GLEW_main=no 23891 fi 23892 rm -f conftest.err conftest.$ac_objext \ 23893 conftest$ac_exeext conftest.$ac_ext 23894 LIBS=$ac_check_lib_save_LIBS 23895 fi 23896 echo "$as_me:$LINENO: result: $ac_cv_lib_GLEW_main" >&5 23897 echo "${ECHO_T}$ac_cv_lib_GLEW_main" >&6 23898 if test $ac_cv_lib_GLEW_main = yes; then 23899 FOUND_GLEW=yes; LIBS="$LIBS -lGLEW" 23900 fi 23901 23902 if test x$FOUND_GLEW != xyes ; then 23903 echo "------------------" 23904 echo "glew not found." 23905 echo "please install the glew package which can be found at http://glew.sourceforge.net" 23906 echo "------------------" 23907 exit -1 23908 fi 23909 23910 23911 23912 for ac_header in OpenAL/al.h 7984 HAVE_OPENAL=yes 7985 LIBS="$LIBS -framework OpenAL" 7986 7987 7988 ## SDL-check 7989 SDL_CFLAGS=`sdl-config --cflags` 7990 SDL_LIBS=`sdl-config --libs` 7991 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 7992 LIBS="$LIBS $SDL_LIBS" 7993 7994 for ac_header in SDL/SDL.h 23913 7995 do 23914 7996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24056 8138 24057 8139 else 24058 { { echo "$as_me:$LINENO: error: cannot find openglheaders" >&524059 echo "$as_me: error: cannot find openglheaders" >&2;}8140 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 8141 echo "$as_me: error: cannot find SDL headers" >&2;} 24060 8142 { (exit 1); exit 1; }; } 24061 8143 fi … … 24063 8145 done 24064 8146 24065 HAVE_OPENAL=yes 24066 LIBS="$LIBS -framework OpenAL" 24067 24068 24069 ## SDL-check 24070 SDL_CFLAGS=`sdl-config --cflags` 24071 SDL_LIBS=`sdl-config --libs` 24072 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" 24073 LIBS="$LIBS $SDL_LIBS" 24074 24075 for ac_header in SDL/SDL.h 8147 HAVE_SDL=yes 8148 # LIBS="$LIBS -framework SDL" 8149 8150 # checking for SDL-headers 8151 # AC_CHECK_HEADERS(SDL/SDL.h ,, 8152 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 8153 8154 ## checking for SDL 8155 # SDL_VERSION=1.2.7 8156 # AM_PATH_SDL($SDL_VERSION, 8157 # :, 8158 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 8159 # ) 8160 8161 8162 ;; 8163 8164 *) 8165 ;; 8166 esac 8167 8168 8169 8170 ################################### 8171 ## CHECKING FOR HEADERS AND LIBS ## 8172 ################################### 8173 8174 #---------# 8175 # SDL_ttf # 8176 #---------# 8177 # checking for SDL_ttf-headers 8178 8179 for ac_header in SDL_ttf.h 24076 8180 do 24077 8181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24219 8323 24220 8324 else 24221 { { echo "$as_me:$LINENO: error: cannot find SDL headers" >&5 24222 echo "$as_me: error: cannot find SDL headers" >&2;} 24223 { (exit 1); exit 1; }; } 24224 fi 24225 24226 done 24227 24228 HAVE_SDL=yes 24229 # LIBS="$LIBS -framework SDL" 24230 24231 # checking for SDL-headers 24232 # AC_CHECK_HEADERS(SDL/SDL.h ,, 24233 # [AC_MSG_ERROR([cannot find SDL headers]) ]) 24234 24235 ## checking for SDL 24236 # SDL_VERSION=1.2.7 24237 # AM_PATH_SDL($SDL_VERSION, 24238 # :, 24239 # AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]) 24240 # ) 24241 24242 24243 ;; 24244 24245 *) 24246 ;; 24247 esac 24248 24249 24250 24251 ################################### 24252 ## CHECKING FOR HEADERS AND LIBS ## 24253 ################################### 24254 24255 #---------# 24256 # SDL_ttf # 24257 #---------# 24258 # checking for SDL_ttf-headers 24259 24260 for ac_header in SDL_ttf.h 8325 8326 for ac_header in SDL/SDL_ttf.h 24261 8327 do 24262 8328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24404 8470 24405 8471 else 24406 24407 for ac_header in SDL/SDL_ttf.h 8472 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 8473 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 8474 { (exit 1); exit 1; }; } 8475 fi 8476 8477 done 8478 8479 fi 8480 8481 done 8482 8483 # checking for SDL_ttf-lib 8484 echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 8485 echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 8486 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then 8487 echo $ECHO_N "(cached) $ECHO_C" >&6 8488 else 8489 ac_check_lib_save_LIBS=$LIBS 8490 LIBS="-lSDL_ttf $LIBS" 8491 cat >conftest.$ac_ext <<_ACEOF 8492 /* confdefs.h. */ 8493 _ACEOF 8494 cat confdefs.h >>conftest.$ac_ext 8495 cat >>conftest.$ac_ext <<_ACEOF 8496 /* end confdefs.h. */ 8497 8498 /* Override any gcc2 internal prototype to avoid an error. */ 8499 #ifdef __cplusplus 8500 extern "C" 8501 #endif 8502 /* We use char because int might match the return type of a gcc2 8503 builtin and then its argument prototype would still apply. */ 8504 char TTF_OpenFont (); 8505 int 8506 main () 8507 { 8508 TTF_OpenFont (); 8509 ; 8510 return 0; 8511 } 8512 _ACEOF 8513 rm -f conftest.$ac_objext conftest$ac_exeext 8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8515 (eval $ac_link) 2>conftest.er1 8516 ac_status=$? 8517 grep -v '^ *+' conftest.er1 >conftest.err 8518 rm -f conftest.er1 8519 cat conftest.err >&5 8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8521 (exit $ac_status); } && 8522 { ac_try='test -z "$ac_c_werror_flag" 8523 || test ! -s conftest.err' 8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8525 (eval $ac_try) 2>&5 8526 ac_status=$? 8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8528 (exit $ac_status); }; } && 8529 { ac_try='test -s conftest$ac_exeext' 8530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8531 (eval $ac_try) 2>&5 8532 ac_status=$? 8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8534 (exit $ac_status); }; }; then 8535 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 8536 else 8537 echo "$as_me: failed program was:" >&5 8538 sed 's/^/| /' conftest.$ac_ext >&5 8539 8540 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 8541 fi 8542 rm -f conftest.err conftest.$ac_objext \ 8543 conftest$ac_exeext conftest.$ac_ext 8544 LIBS=$ac_check_lib_save_LIBS 8545 fi 8546 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 8547 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 8548 if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then 8549 FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" 8550 fi 8551 8552 if test x$FOUND_SDL_ttf != xyes ; then 8553 echo "------------------" 8554 echo "SDL_ttf library not found." 8555 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 8556 echo "------------------" 8557 exit -1 8558 fi 8559 8560 #-----------# 8561 # SDL_Image # 8562 #-----------# 8563 # checking for SDL_image-headers 8564 8565 for ac_header in SDL_image.h 24408 8566 do 24409 8567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24551 8709 24552 8710 else 24553 { { echo "$as_me:$LINENO: error: cannot find SDL_ttf header." >&5 24554 echo "$as_me: error: cannot find SDL_ttf header." >&2;} 24555 { (exit 1); exit 1; }; } 24556 fi 24557 24558 done 24559 24560 fi 24561 24562 done 24563 24564 # checking for SDL_ttf-lib 24565 echo "$as_me:$LINENO: checking for TTF_OpenFont in -lSDL_ttf" >&5 24566 echo $ECHO_N "checking for TTF_OpenFont in -lSDL_ttf... $ECHO_C" >&6 24567 if test "${ac_cv_lib_SDL_ttf_TTF_OpenFont+set}" = set; then 24568 echo $ECHO_N "(cached) $ECHO_C" >&6 24569 else 24570 ac_check_lib_save_LIBS=$LIBS 24571 LIBS="-lSDL_ttf $LIBS" 24572 cat >conftest.$ac_ext <<_ACEOF 24573 /* confdefs.h. */ 24574 _ACEOF 24575 cat confdefs.h >>conftest.$ac_ext 24576 cat >>conftest.$ac_ext <<_ACEOF 24577 /* end confdefs.h. */ 24578 24579 /* Override any gcc2 internal prototype to avoid an error. */ 24580 #ifdef __cplusplus 24581 extern "C" 24582 #endif 24583 /* We use char because int might match the return type of a gcc2 24584 builtin and then its argument prototype would still apply. */ 24585 char TTF_OpenFont (); 24586 int 24587 main () 24588 { 24589 TTF_OpenFont (); 24590 ; 24591 return 0; 24592 } 24593 _ACEOF 24594 rm -f conftest.$ac_objext conftest$ac_exeext 24595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24596 (eval $ac_link) 2>conftest.er1 24597 ac_status=$? 24598 grep -v '^ *+' conftest.er1 >conftest.err 24599 rm -f conftest.er1 24600 cat conftest.err >&5 24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24602 (exit $ac_status); } && 24603 { ac_try='test -z "$ac_c_werror_flag" 24604 || test ! -s conftest.err' 24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24606 (eval $ac_try) 2>&5 24607 ac_status=$? 24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24609 (exit $ac_status); }; } && 24610 { ac_try='test -s conftest$ac_exeext' 24611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24612 (eval $ac_try) 2>&5 24613 ac_status=$? 24614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24615 (exit $ac_status); }; }; then 24616 ac_cv_lib_SDL_ttf_TTF_OpenFont=yes 24617 else 24618 echo "$as_me: failed program was:" >&5 24619 sed 's/^/| /' conftest.$ac_ext >&5 24620 24621 ac_cv_lib_SDL_ttf_TTF_OpenFont=no 24622 fi 24623 rm -f conftest.err conftest.$ac_objext \ 24624 conftest$ac_exeext conftest.$ac_ext 24625 LIBS=$ac_check_lib_save_LIBS 24626 fi 24627 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_ttf_TTF_OpenFont" >&5 24628 echo "${ECHO_T}$ac_cv_lib_SDL_ttf_TTF_OpenFont" >&6 24629 if test $ac_cv_lib_SDL_ttf_TTF_OpenFont = yes; then 24630 FOUND_SDL_ttf=yes; LIBS="$LIBS -lSDL_ttf" 24631 fi 24632 24633 if test x$FOUND_SDL_ttf != xyes ; then 24634 echo "------------------" 24635 echo "SDL_ttf library not found." 24636 echo "please install the SDL_ttf library, which can be found at http://www.libsdl.org/projects/SDL_ttf/" 24637 echo "------------------" 24638 exit -1 24639 fi 24640 24641 #-----------# 24642 # SDL_Image # 24643 #-----------# 24644 # checking for SDL_image-headers 24645 24646 for ac_header in SDL_image.h 8711 8712 for ac_header in SDL/SDL_image.h 24647 8713 do 24648 8714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24790 8856 24791 8857 else 24792 24793 for ac_header in SDL/SDL_image.h 8858 { { echo "$as_me:$LINENO: error: SDL_image header not found." >&5 8859 echo "$as_me: error: SDL_image header not found." >&2;} 8860 { (exit 1); exit 1; }; } 8861 fi 8862 8863 done 8864 8865 fi 8866 8867 done 8868 8869 # checking for SDL_image-lib 8870 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 8871 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 8872 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 8873 echo $ECHO_N "(cached) $ECHO_C" >&6 8874 else 8875 ac_check_lib_save_LIBS=$LIBS 8876 LIBS="-lSDL_image $LIBS" 8877 cat >conftest.$ac_ext <<_ACEOF 8878 /* confdefs.h. */ 8879 _ACEOF 8880 cat confdefs.h >>conftest.$ac_ext 8881 cat >>conftest.$ac_ext <<_ACEOF 8882 /* end confdefs.h. */ 8883 8884 8885 int 8886 main () 8887 { 8888 main (); 8889 ; 8890 return 0; 8891 } 8892 _ACEOF 8893 rm -f conftest.$ac_objext conftest$ac_exeext 8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8895 (eval $ac_link) 2>conftest.er1 8896 ac_status=$? 8897 grep -v '^ *+' conftest.er1 >conftest.err 8898 rm -f conftest.er1 8899 cat conftest.err >&5 8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8901 (exit $ac_status); } && 8902 { ac_try='test -z "$ac_c_werror_flag" 8903 || test ! -s conftest.err' 8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8905 (eval $ac_try) 2>&5 8906 ac_status=$? 8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8908 (exit $ac_status); }; } && 8909 { ac_try='test -s conftest$ac_exeext' 8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8911 (eval $ac_try) 2>&5 8912 ac_status=$? 8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8914 (exit $ac_status); }; }; then 8915 ac_cv_lib_SDL_image_main=yes 8916 else 8917 echo "$as_me: failed program was:" >&5 8918 sed 's/^/| /' conftest.$ac_ext >&5 8919 8920 ac_cv_lib_SDL_image_main=no 8921 fi 8922 rm -f conftest.err conftest.$ac_objext \ 8923 conftest$ac_exeext conftest.$ac_ext 8924 LIBS=$ac_check_lib_save_LIBS 8925 fi 8926 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 8927 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 8928 if test $ac_cv_lib_SDL_image_main = yes; then 8929 FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" 8930 fi 8931 8932 if test x$FOUND_SDL_image != xyes ; then 8933 echo "------------------" 8934 echo "SDL_image library not found." 8935 echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" 8936 echo "------------------" 8937 exit -1 8938 fi 8939 8940 #-----# 8941 # ogg # 8942 #-----# 8943 # checking for ogg-headers 8944 8945 for ac_header in ogg/ogg.h 24794 8946 do 24795 8947 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 24937 9089 24938 9090 else 24939 { { echo "$as_me:$LINENO: error: SDL_image header not found." >&524940 echo "$as_me: error: SDL_image header not found." >&2;}9091 { { echo "$as_me:$LINENO: error: cannot find ogg header." >&5 9092 echo "$as_me: error: cannot find ogg header." >&2;} 24941 9093 { (exit 1); exit 1; }; } 24942 9094 fi … … 24944 9096 done 24945 9097 24946 fi 24947 24948 done 24949 24950 # checking for SDL_image-lib 24951 echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5 24952 echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6 24953 if test "${ac_cv_lib_SDL_image_main+set}" = set; then 9098 # checking for ogg-lib 9099 echo "$as_me:$LINENO: checking for main in -logg" >&5 9100 echo $ECHO_N "checking for main in -logg... $ECHO_C" >&6 9101 if test "${ac_cv_lib_ogg_main+set}" = set; then 24954 9102 echo $ECHO_N "(cached) $ECHO_C" >&6 24955 9103 else 24956 9104 ac_check_lib_save_LIBS=$LIBS 24957 LIBS="-l SDL_image$LIBS"9105 LIBS="-logg $LIBS" 24958 9106 cat >conftest.$ac_ext <<_ACEOF 24959 9107 /* confdefs.h. */ … … 24994 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24995 9143 (exit $ac_status); }; }; then 24996 ac_cv_lib_ SDL_image_main=yes9144 ac_cv_lib_ogg_main=yes 24997 9145 else 24998 9146 echo "$as_me: failed program was:" >&5 24999 9147 sed 's/^/| /' conftest.$ac_ext >&5 25000 9148 25001 ac_cv_lib_ SDL_image_main=no9149 ac_cv_lib_ogg_main=no 25002 9150 fi 25003 9151 rm -f conftest.err conftest.$ac_objext \ … … 25005 9153 LIBS=$ac_check_lib_save_LIBS 25006 9154 fi 25007 echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5 25008 echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6 25009 if test $ac_cv_lib_SDL_image_main = yes; then 25010 FOUND_SDL_image=yes; LIBS="$LIBS -lSDL_image" 25011 fi 25012 25013 if test x$FOUND_SDL_image != xyes ; then 25014 echo "------------------" 25015 echo "SDL_image library not found." 25016 echo "please install the SDL_image library, which can be found at http://www.l ibsdl.org/projects/SDL_image/" 25017 echo "------------------" 25018 exit -1 25019 fi 25020 25021 #-----# 25022 # ogg # 25023 #-----# 25024 # checking for ogg-headers 25025 25026 for ac_header in ogg/ogg.h 9155 echo "$as_me:$LINENO: result: $ac_cv_lib_ogg_main" >&5 9156 echo "${ECHO_T}$ac_cv_lib_ogg_main" >&6 9157 if test $ac_cv_lib_ogg_main = yes; then 9158 FOUND_ogg=yes; LIBS="$LIBS -logg" 9159 fi 9160 9161 if test x$FOUND_ogg != xyes ; then 9162 echo "------------------" 9163 echo "ogg library not found." 9164 echo "please install the ogg library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 9165 echo "------------------" 9166 exit -1 9167 fi 9168 9169 #--------# 9170 # vorbis # 9171 #--------# 9172 # checking for vorbis-lib 9173 echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 9174 echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 9175 if test "${ac_cv_lib_vorbis_main+set}" = set; then 9176 echo $ECHO_N "(cached) $ECHO_C" >&6 9177 else 9178 ac_check_lib_save_LIBS=$LIBS 9179 LIBS="-lvorbis $LIBS" 9180 cat >conftest.$ac_ext <<_ACEOF 9181 /* confdefs.h. */ 9182 _ACEOF 9183 cat confdefs.h >>conftest.$ac_ext 9184 cat >>conftest.$ac_ext <<_ACEOF 9185 /* end confdefs.h. */ 9186 9187 9188 int 9189 main () 9190 { 9191 main (); 9192 ; 9193 return 0; 9194 } 9195 _ACEOF 9196 rm -f conftest.$ac_objext conftest$ac_exeext 9197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9198 (eval $ac_link) 2>conftest.er1 9199 ac_status=$? 9200 grep -v '^ *+' conftest.er1 >conftest.err 9201 rm -f conftest.er1 9202 cat conftest.err >&5 9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9204 (exit $ac_status); } && 9205 { ac_try='test -z "$ac_c_werror_flag" 9206 || test ! -s conftest.err' 9207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9208 (eval $ac_try) 2>&5 9209 ac_status=$? 9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9211 (exit $ac_status); }; } && 9212 { ac_try='test -s conftest$ac_exeext' 9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9214 (eval $ac_try) 2>&5 9215 ac_status=$? 9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9217 (exit $ac_status); }; }; then 9218 ac_cv_lib_vorbis_main=yes 9219 else 9220 echo "$as_me: failed program was:" >&5 9221 sed 's/^/| /' conftest.$ac_ext >&5 9222 9223 ac_cv_lib_vorbis_main=no 9224 fi 9225 rm -f conftest.err conftest.$ac_objext \ 9226 conftest$ac_exeext conftest.$ac_ext 9227 LIBS=$ac_check_lib_save_LIBS 9228 fi 9229 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 9230 echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 9231 if test $ac_cv_lib_vorbis_main = yes; then 9232 FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" 9233 fi 9234 9235 if test x$FOUND_vorbis != xyes ; then 9236 echo "------------------" 9237 echo "vorbis library not found." 9238 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 9239 echo "------------------" 9240 exit -1 9241 fi 9242 9243 #------------# 9244 # vorbisfile # 9245 #------------# 9246 # checking for vorbis-headers 9247 9248 for ac_header in vorbis/vorbisfile.h 25027 9249 do 25028 9250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 25170 9392 25171 9393 else 25172 { { echo "$as_me:$LINENO: error: cannot find oggheader." >&525173 echo "$as_me: error: cannot find oggheader." >&2;}9394 { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 9395 echo "$as_me: error: cannot find vorbisfile header." >&2;} 25174 9396 { (exit 1); exit 1; }; } 25175 9397 fi … … 25177 9399 done 25178 9400 25179 # checking for ogg-lib25180 echo "$as_me:$LINENO: checking for main in -l ogg" >&525181 echo $ECHO_N "checking for main in -l ogg... $ECHO_C" >&625182 if test "${ac_cv_lib_ ogg_main+set}" = set; then9401 # checking for vorbisfile-lib 9402 echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 9403 echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 9404 if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 25183 9405 echo $ECHO_N "(cached) $ECHO_C" >&6 25184 9406 else 25185 9407 ac_check_lib_save_LIBS=$LIBS 25186 LIBS="-l ogg$LIBS"9408 LIBS="-lvorbisfile $LIBS" 25187 9409 cat >conftest.$ac_ext <<_ACEOF 25188 9410 /* confdefs.h. */ … … 25223 9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25224 9446 (exit $ac_status); }; }; then 25225 ac_cv_lib_ ogg_main=yes9447 ac_cv_lib_vorbisfile_main=yes 25226 9448 else 25227 9449 echo "$as_me: failed program was:" >&5 25228 9450 sed 's/^/| /' conftest.$ac_ext >&5 25229 9451 25230 ac_cv_lib_ ogg_main=no9452 ac_cv_lib_vorbisfile_main=no 25231 9453 fi 25232 9454 rm -f conftest.err conftest.$ac_objext \ … … 25234 9456 LIBS=$ac_check_lib_save_LIBS 25235 9457 fi 25236 echo "$as_me:$LINENO: result: $ac_cv_lib_ ogg_main" >&525237 echo "${ECHO_T}$ac_cv_lib_ ogg_main" >&625238 if test $ac_cv_lib_ ogg_main = yes; then25239 FOUND_ ogg=yes; LIBS="$LIBS -logg"25240 fi 25241 25242 if test x$FOUND_ ogg!= xyes ; then9458 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 9459 echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 9460 if test $ac_cv_lib_vorbisfile_main = yes; then 9461 FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" 9462 fi 9463 9464 if test x$FOUND_vorbisfile != xyes ; then 25243 9465 echo "------------------" 25244 echo " ogglibrary not found."25245 echo "please install the ogglibrary, which can be found at http://www.xiph.org/ogg/vorbis/index.html"9466 echo "vorbisfile library not found." 9467 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 25246 9468 echo "------------------" 25247 9469 exit -1 25248 9470 fi 25249 9471 25250 #--------# 25251 # vorbis # 25252 #--------# 25253 # checking for vorbis-lib 25254 echo "$as_me:$LINENO: checking for main in -lvorbis" >&5 25255 echo $ECHO_N "checking for main in -lvorbis... $ECHO_C" >&6 25256 if test "${ac_cv_lib_vorbis_main+set}" = set; then 25257 echo $ECHO_N "(cached) $ECHO_C" >&6 25258 else 25259 ac_check_lib_save_LIBS=$LIBS 25260 LIBS="-lvorbis $LIBS" 25261 cat >conftest.$ac_ext <<_ACEOF 25262 /* confdefs.h. */ 25263 _ACEOF 25264 cat confdefs.h >>conftest.$ac_ext 25265 cat >>conftest.$ac_ext <<_ACEOF 25266 /* end confdefs.h. */ 25267 25268 25269 int 25270 main () 25271 { 25272 main (); 25273 ; 25274 return 0; 25275 } 25276 _ACEOF 25277 rm -f conftest.$ac_objext conftest$ac_exeext 25278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25279 (eval $ac_link) 2>conftest.er1 25280 ac_status=$? 25281 grep -v '^ *+' conftest.er1 >conftest.err 25282 rm -f conftest.er1 25283 cat conftest.err >&5 25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25285 (exit $ac_status); } && 25286 { ac_try='test -z "$ac_c_werror_flag" 25287 || test ! -s conftest.err' 25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25289 (eval $ac_try) 2>&5 25290 ac_status=$? 25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25292 (exit $ac_status); }; } && 25293 { ac_try='test -s conftest$ac_exeext' 25294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25295 (eval $ac_try) 2>&5 25296 ac_status=$? 25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25298 (exit $ac_status); }; }; then 25299 ac_cv_lib_vorbis_main=yes 25300 else 25301 echo "$as_me: failed program was:" >&5 25302 sed 's/^/| /' conftest.$ac_ext >&5 25303 25304 ac_cv_lib_vorbis_main=no 25305 fi 25306 rm -f conftest.err conftest.$ac_objext \ 25307 conftest$ac_exeext conftest.$ac_ext 25308 LIBS=$ac_check_lib_save_LIBS 25309 fi 25310 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbis_main" >&5 25311 echo "${ECHO_T}$ac_cv_lib_vorbis_main" >&6 25312 if test $ac_cv_lib_vorbis_main = yes; then 25313 FOUND_vorbis=yes; LIBS="$LIBS -lvorbis" 25314 fi 25315 25316 if test x$FOUND_vorbis != xyes ; then 25317 echo "------------------" 25318 echo "vorbis library not found." 25319 echo "please install the vorbis library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 25320 echo "------------------" 25321 exit -1 25322 fi 25323 25324 #------------# 25325 # vorbisfile # 25326 #------------# 25327 # checking for vorbis-headers 25328 25329 for ac_header in vorbis/vorbisfile.h 9472 9473 #---------# 9474 # libcURL # 9475 #---------# 9476 if test x$def_curl = xyes; then 9477 9478 for ac_header in curl/curl.h 25330 9479 do 25331 9480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 25471 9620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25472 9621 _ACEOF 25473 25474 else 25475 { { echo "$as_me:$LINENO: error: cannot find vorbisfile header." >&5 25476 echo "$as_me: error: cannot find vorbisfile header." >&2;} 25477 { (exit 1); exit 1; }; } 9622 curlHeader=yes 9623 else 9624 curlHeader=no 25478 9625 fi 25479 9626 25480 9627 done 25481 9628 25482 # checking for vorbisfile-lib 25483 echo "$as_me:$LINENO: checking for main in -lvorbisfile" >&5 25484 echo $ECHO_N "checking for main in -lvorbisfile... $ECHO_C" >&6 25485 if test "${ac_cv_lib_vorbisfile_main+set}" = set; then 9629 echo "$as_me:$LINENO: checking for main in -lcurl" >&5 9630 echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 9631 if test "${ac_cv_lib_curl_main+set}" = set; then 25486 9632 echo $ECHO_N "(cached) $ECHO_C" >&6 25487 9633 else 25488 9634 ac_check_lib_save_LIBS=$LIBS 25489 LIBS="-l vorbisfile$LIBS"9635 LIBS="-lcurl $LIBS" 25490 9636 cat >conftest.$ac_ext <<_ACEOF 25491 9637 /* confdefs.h. */ … … 25526 9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25527 9673 (exit $ac_status); }; }; then 25528 ac_cv_lib_ vorbisfile_main=yes9674 ac_cv_lib_curl_main=yes 25529 9675 else 25530 9676 echo "$as_me: failed program was:" >&5 25531 9677 sed 's/^/| /' conftest.$ac_ext >&5 25532 9678 25533 ac_cv_lib_ vorbisfile_main=no9679 ac_cv_lib_curl_main=no 25534 9680 fi 25535 9681 rm -f conftest.err conftest.$ac_objext \ … … 25537 9683 LIBS=$ac_check_lib_save_LIBS 25538 9684 fi 25539 echo "$as_me:$LINENO: result: $ac_cv_lib_vorbisfile_main" >&5 25540 echo "${ECHO_T}$ac_cv_lib_vorbisfile_main" >&6 25541 if test $ac_cv_lib_vorbisfile_main = yes; then 25542 FOUND_vorbisfile=yes; LIBS="$LIBS -lvorbisfile" 25543 fi 25544 25545 if test x$FOUND_vorbisfile != xyes ; then 25546 echo "------------------" 25547 echo "vorbisfile library not found." 25548 echo "please install the vorbisfile library, which can be found at http://www.xiph.org/ogg/vorbis/index.html" 25549 echo "------------------" 25550 exit -1 25551 fi 25552 25553 25554 #---------# 25555 # libcURL # 25556 #---------# 25557 if test x$def_curl = xyes; then 25558 25559 for ac_header in curl/curl.h 9685 echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 9686 echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 9687 if test $ac_cv_lib_curl_main = yes; then 9688 FOUND_curl=yes 9689 fi 9690 9691 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then 9692 have_curl=yes 9693 CURL_LIBS=`curl-config --libs` 9694 CURLCFLAGS=`curl-config --cflags` 9695 9696 cat >>confdefs.h <<_ACEOF 9697 #define HAVE_CURL 1 9698 _ACEOF 9699 9700 else 9701 have_curl=no 9702 fi 9703 9704 fi 9705 9706 9707 9708 9709 if test x$have_curl = xyes; then 9710 HAVE_CURL_TRUE= 9711 HAVE_CURL_FALSE='#' 9712 else 9713 HAVE_CURL_TRUE='#' 9714 HAVE_CURL_FALSE= 9715 fi 9716 9717 9718 #--------# 9719 # efence # 9720 #--------# 9721 if test x$def_efence = xyes ; then 9722 echo "$as_me:$LINENO: checking for main in -lefence" >&5 9723 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 9724 if test "${ac_cv_lib_efence_main+set}" = set; then 9725 echo $ECHO_N "(cached) $ECHO_C" >&6 9726 else 9727 ac_check_lib_save_LIBS=$LIBS 9728 LIBS="-lefence $LIBS" 9729 cat >conftest.$ac_ext <<_ACEOF 9730 /* confdefs.h. */ 9731 _ACEOF 9732 cat confdefs.h >>conftest.$ac_ext 9733 cat >>conftest.$ac_ext <<_ACEOF 9734 /* end confdefs.h. */ 9735 9736 9737 int 9738 main () 9739 { 9740 main (); 9741 ; 9742 return 0; 9743 } 9744 _ACEOF 9745 rm -f conftest.$ac_objext conftest$ac_exeext 9746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9747 (eval $ac_link) 2>conftest.er1 9748 ac_status=$? 9749 grep -v '^ *+' conftest.er1 >conftest.err 9750 rm -f conftest.er1 9751 cat conftest.err >&5 9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9753 (exit $ac_status); } && 9754 { ac_try='test -z "$ac_c_werror_flag" 9755 || test ! -s conftest.err' 9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9757 (eval $ac_try) 2>&5 9758 ac_status=$? 9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9760 (exit $ac_status); }; } && 9761 { ac_try='test -s conftest$ac_exeext' 9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9763 (eval $ac_try) 2>&5 9764 ac_status=$? 9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9766 (exit $ac_status); }; }; then 9767 ac_cv_lib_efence_main=yes 9768 else 9769 echo "$as_me: failed program was:" >&5 9770 sed 's/^/| /' conftest.$ac_ext >&5 9771 9772 ac_cv_lib_efence_main=no 9773 fi 9774 rm -f conftest.err conftest.$ac_objext \ 9775 conftest$ac_exeext conftest.$ac_ext 9776 LIBS=$ac_check_lib_save_LIBS 9777 fi 9778 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 9779 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 9780 if test $ac_cv_lib_efence_main = yes; then 9781 FOUND_efence=yes; LIBS="$LIBS -lefence" 9782 fi 9783 9784 if test x$FOUND_efence != xyes ; then 9785 echo "efence was requested, but is not installed!! going on" 9786 fi 9787 9788 fi 9789 9790 #-----# 9791 # GTK # 9792 #-----# 9793 if test x$def_gtk = xyes; then 9794 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 9795 echo "$as_me:$LINENO: checking for gtk2.0" >&5 9796 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 9797 if `$PKG_CONFIG --exists gtk+-2.0`; then 9798 echo "yes" 9799 have_gtk2=yes 9800 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9801 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9802 9803 cat >>confdefs.h <<_ACEOF 9804 #define HAVE_GTK2 1 9805 _ACEOF 9806 9807 if test $DEBUG -ge 3; then 9808 echo "cflags: $GTK2_CFLAGS" 9809 echo "libs: $GTK2_LIBS" 9810 fi 9811 else 9812 echo "no" 9813 fi 9814 9815 fi 9816 9817 9818 9819 9820 if test x$have_gtk2 = xyes; then 9821 HAVE_GTK2_TRUE= 9822 HAVE_GTK2_FALSE='#' 9823 else 9824 HAVE_GTK2_TRUE='#' 9825 HAVE_GTK2_FALSE= 9826 fi 9827 9828 9829 9830 # FIXME: Replace `main' with a function in `-lm': 9831 9832 echo "$as_me:$LINENO: checking for main in -lm" >&5 9833 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 9834 if test "${ac_cv_lib_m_main+set}" = set; then 9835 echo $ECHO_N "(cached) $ECHO_C" >&6 9836 else 9837 ac_check_lib_save_LIBS=$LIBS 9838 LIBS="-lm $LIBS" 9839 cat >conftest.$ac_ext <<_ACEOF 9840 /* confdefs.h. */ 9841 _ACEOF 9842 cat confdefs.h >>conftest.$ac_ext 9843 cat >>conftest.$ac_ext <<_ACEOF 9844 /* end confdefs.h. */ 9845 9846 9847 int 9848 main () 9849 { 9850 main (); 9851 ; 9852 return 0; 9853 } 9854 _ACEOF 9855 rm -f conftest.$ac_objext conftest$ac_exeext 9856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9857 (eval $ac_link) 2>conftest.er1 9858 ac_status=$? 9859 grep -v '^ *+' conftest.er1 >conftest.err 9860 rm -f conftest.er1 9861 cat conftest.err >&5 9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9863 (exit $ac_status); } && 9864 { ac_try='test -z "$ac_c_werror_flag" 9865 || test ! -s conftest.err' 9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9867 (eval $ac_try) 2>&5 9868 ac_status=$? 9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9870 (exit $ac_status); }; } && 9871 { ac_try='test -s conftest$ac_exeext' 9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9873 (eval $ac_try) 2>&5 9874 ac_status=$? 9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9876 (exit $ac_status); }; }; then 9877 ac_cv_lib_m_main=yes 9878 else 9879 echo "$as_me: failed program was:" >&5 9880 sed 's/^/| /' conftest.$ac_ext >&5 9881 9882 ac_cv_lib_m_main=no 9883 fi 9884 rm -f conftest.err conftest.$ac_objext \ 9885 conftest$ac_exeext conftest.$ac_ext 9886 LIBS=$ac_check_lib_save_LIBS 9887 fi 9888 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 9889 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 9890 if test $ac_cv_lib_m_main = yes; then 9891 cat >>confdefs.h <<_ACEOF 9892 #define HAVE_LIBM 1 9893 _ACEOF 9894 9895 LIBS="-lm $LIBS" 9896 9897 fi 9898 9899 9900 9901 # Checks for header files. 9902 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 9903 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 9904 if test "${ac_cv_header_stdc+set}" = set; then 9905 echo $ECHO_N "(cached) $ECHO_C" >&6 9906 else 9907 cat >conftest.$ac_ext <<_ACEOF 9908 /* confdefs.h. */ 9909 _ACEOF 9910 cat confdefs.h >>conftest.$ac_ext 9911 cat >>conftest.$ac_ext <<_ACEOF 9912 /* end confdefs.h. */ 9913 #include <stdlib.h> 9914 #include <stdarg.h> 9915 #include <string.h> 9916 #include <float.h> 9917 9918 int 9919 main () 9920 { 9921 9922 ; 9923 return 0; 9924 } 9925 _ACEOF 9926 rm -f conftest.$ac_objext 9927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9928 (eval $ac_compile) 2>conftest.er1 9929 ac_status=$? 9930 grep -v '^ *+' conftest.er1 >conftest.err 9931 rm -f conftest.er1 9932 cat conftest.err >&5 9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9934 (exit $ac_status); } && 9935 { ac_try='test -z "$ac_c_werror_flag" 9936 || test ! -s conftest.err' 9937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9938 (eval $ac_try) 2>&5 9939 ac_status=$? 9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9941 (exit $ac_status); }; } && 9942 { ac_try='test -s conftest.$ac_objext' 9943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9944 (eval $ac_try) 2>&5 9945 ac_status=$? 9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9947 (exit $ac_status); }; }; then 9948 ac_cv_header_stdc=yes 9949 else 9950 echo "$as_me: failed program was:" >&5 9951 sed 's/^/| /' conftest.$ac_ext >&5 9952 9953 ac_cv_header_stdc=no 9954 fi 9955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9956 9957 if test $ac_cv_header_stdc = yes; then 9958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9959 cat >conftest.$ac_ext <<_ACEOF 9960 /* confdefs.h. */ 9961 _ACEOF 9962 cat confdefs.h >>conftest.$ac_ext 9963 cat >>conftest.$ac_ext <<_ACEOF 9964 /* end confdefs.h. */ 9965 #include <string.h> 9966 9967 _ACEOF 9968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9969 $EGREP "memchr" >/dev/null 2>&1; then 9970 : 9971 else 9972 ac_cv_header_stdc=no 9973 fi 9974 rm -f conftest* 9975 9976 fi 9977 9978 if test $ac_cv_header_stdc = yes; then 9979 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9980 cat >conftest.$ac_ext <<_ACEOF 9981 /* confdefs.h. */ 9982 _ACEOF 9983 cat confdefs.h >>conftest.$ac_ext 9984 cat >>conftest.$ac_ext <<_ACEOF 9985 /* end confdefs.h. */ 9986 #include <stdlib.h> 9987 9988 _ACEOF 9989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9990 $EGREP "free" >/dev/null 2>&1; then 9991 : 9992 else 9993 ac_cv_header_stdc=no 9994 fi 9995 rm -f conftest* 9996 9997 fi 9998 9999 if test $ac_cv_header_stdc = yes; then 10000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10001 if test "$cross_compiling" = yes; then 10002 : 10003 else 10004 cat >conftest.$ac_ext <<_ACEOF 10005 /* confdefs.h. */ 10006 _ACEOF 10007 cat confdefs.h >>conftest.$ac_ext 10008 cat >>conftest.$ac_ext <<_ACEOF 10009 /* end confdefs.h. */ 10010 #include <ctype.h> 10011 #if ((' ' & 0x0FF) == 0x020) 10012 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10013 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10014 #else 10015 # define ISLOWER(c) \ 10016 (('a' <= (c) && (c) <= 'i') \ 10017 || ('j' <= (c) && (c) <= 'r') \ 10018 || ('s' <= (c) && (c) <= 'z')) 10019 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10020 #endif 10021 10022 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10023 int 10024 main () 10025 { 10026 int i; 10027 for (i = 0; i < 256; i++) 10028 if (XOR (islower (i), ISLOWER (i)) 10029 || toupper (i) != TOUPPER (i)) 10030 exit(2); 10031 exit (0); 10032 } 10033 _ACEOF 10034 rm -f conftest$ac_exeext 10035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10036 (eval $ac_link) 2>&5 10037 ac_status=$? 10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10041 (eval $ac_try) 2>&5 10042 ac_status=$? 10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10044 (exit $ac_status); }; }; then 10045 : 10046 else 10047 echo "$as_me: program exited with status $ac_status" >&5 10048 echo "$as_me: failed program was:" >&5 10049 sed 's/^/| /' conftest.$ac_ext >&5 10050 10051 ( exit $ac_status ) 10052 ac_cv_header_stdc=no 10053 fi 10054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10055 fi 10056 fi 10057 fi 10058 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 10059 echo "${ECHO_T}$ac_cv_header_stdc" >&6 10060 if test $ac_cv_header_stdc = yes; then 10061 10062 cat >>confdefs.h <<\_ACEOF 10063 #define STDC_HEADERS 1 10064 _ACEOF 10065 10066 fi 10067 10068 10069 10070 for ac_header in stdlib.h string.h 25560 10071 do 25561 10072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 25701 10212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25702 10213 _ACEOF 25703 curlHeader=yes 25704 else 25705 curlHeader=no 10214 25706 10215 fi 25707 10216 25708 10217 done 25709 10218 25710 echo "$as_me:$LINENO: checking for main in -lcurl" >&5 25711 echo $ECHO_N "checking for main in -lcurl... $ECHO_C" >&6 25712 if test "${ac_cv_lib_curl_main+set}" = set; then 10219 10220 # Checks for typedefs, structures, and compiler characteristics. 10221 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 10222 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6 10223 if test "${ac_cv_header_stdbool_h+set}" = set; then 25713 10224 echo $ECHO_N "(cached) $ECHO_C" >&6 25714 10225 else 25715 ac_check_lib_save_LIBS=$LIBS 25716 LIBS="-lcurl $LIBS" 25717 cat >conftest.$ac_ext <<_ACEOF 10226 cat >conftest.$ac_ext <<_ACEOF 25718 10227 /* confdefs.h. */ 25719 10228 _ACEOF … … 25722 10231 /* end confdefs.h. */ 25723 10232 10233 #include <stdbool.h> 10234 #ifndef bool 10235 # error bool is not defined 10236 #endif 10237 #ifndef false 10238 # error false is not defined 10239 #endif 10240 #if false 10241 # error false is not 0 10242 #endif 10243 #ifndef true 10244 # error true is not defined 10245 #endif 10246 #if true != 1 10247 # error true is not 1 10248 #endif 10249 #ifndef __bool_true_false_are_defined 10250 # error __bool_true_false_are_defined is not defined 10251 #endif 10252 10253 struct s { _Bool s: 1; _Bool t; } s; 10254 10255 char a[true == 1 ? 1 : -1]; 10256 char b[false == 0 ? 1 : -1]; 10257 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 10258 char d[(bool) -0.5 == true ? 1 : -1]; 10259 bool e = &s; 10260 char f[(_Bool) -0.0 == false ? 1 : -1]; 10261 char g[true]; 10262 char h[sizeof (_Bool)]; 10263 char i[sizeof s.t]; 25724 10264 25725 10265 int 25726 10266 main () 25727 10267 { 25728 main ();10268 return !a + !b + !c + !d + !e + !f + !g + !h + !i; 25729 10269 ; 25730 10270 return 0; 25731 10271 } 25732 10272 _ACEOF 25733 rm -f conftest.$ac_objext conftest$ac_exeext25734 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&525735 (eval $ac_ link) 2>conftest.er110273 rm -f conftest.$ac_objext 10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10275 (eval $ac_compile) 2>conftest.er1 25736 10276 ac_status=$? 25737 10277 grep -v '^ *+' conftest.er1 >conftest.err … … 25747 10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25748 10288 (exit $ac_status); }; } && 25749 { ac_try='test -s conftest $ac_exeext'10289 { ac_try='test -s conftest.$ac_objext' 25750 10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25751 10291 (eval $ac_try) 2>&5 … … 25753 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25754 10294 (exit $ac_status); }; }; then 25755 ac_cv_ lib_curl_main=yes10295 ac_cv_header_stdbool_h=yes 25756 10296 else 25757 10297 echo "$as_me: failed program was:" >&5 25758 10298 sed 's/^/| /' conftest.$ac_ext >&5 25759 10299 25760 ac_cv_lib_curl_main=no 25761 fi 25762 rm -f conftest.err conftest.$ac_objext \ 25763 conftest$ac_exeext conftest.$ac_ext 25764 LIBS=$ac_check_lib_save_LIBS 25765 fi 25766 echo "$as_me:$LINENO: result: $ac_cv_lib_curl_main" >&5 25767 echo "${ECHO_T}$ac_cv_lib_curl_main" >&6 25768 if test $ac_cv_lib_curl_main = yes; then 25769 FOUND_curl=yes 25770 fi 25771 25772 if test x$curlHeader = xyes & test x$FOUND_curl = xyes ; then 25773 have_curl=yes 25774 CURL_LIBS=`curl-config --libs` 25775 CURLCFLAGS=`curl-config --cflags` 25776 25777 cat >>confdefs.h <<_ACEOF 25778 #define HAVE_CURL 1 25779 _ACEOF 25780 25781 else 25782 have_curl=no 25783 fi 25784 25785 fi 25786 25787 25788 25789 25790 if test x$have_curl = xyes; then 25791 HAVE_CURL_TRUE= 25792 HAVE_CURL_FALSE='#' 25793 else 25794 HAVE_CURL_TRUE='#' 25795 HAVE_CURL_FALSE= 25796 fi 25797 25798 25799 #--------# 25800 # efence # 25801 #--------# 25802 if test x$def_efence = xyes ; then 25803 echo "$as_me:$LINENO: checking for main in -lefence" >&5 25804 echo $ECHO_N "checking for main in -lefence... $ECHO_C" >&6 25805 if test "${ac_cv_lib_efence_main+set}" = set; then 10300 ac_cv_header_stdbool_h=no 10301 fi 10302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10303 fi 10304 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 10305 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6 10306 echo "$as_me:$LINENO: checking for _Bool" >&5 10307 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6 10308 if test "${ac_cv_type__Bool+set}" = set; then 25806 10309 echo $ECHO_N "(cached) $ECHO_C" >&6 25807 10310 else 25808 ac_check_lib_save_LIBS=$LIBS 25809 LIBS="-lefence $LIBS" 25810 cat >conftest.$ac_ext <<_ACEOF 10311 cat >conftest.$ac_ext <<_ACEOF 25811 10312 /* confdefs.h. */ 25812 10313 _ACEOF … … 25814 10315 cat >>conftest.$ac_ext <<_ACEOF 25815 10316 /* end confdefs.h. */ 25816 25817 10317 $ac_includes_default 25818 10318 int 25819 10319 main () 25820 10320 { 25821 main (); 10321 if ((_Bool *) 0) 10322 return 0; 10323 if (sizeof (_Bool)) 10324 return 0; 25822 10325 ; 25823 10326 return 0; 25824 10327 } 25825 10328 _ACEOF 25826 rm -f conftest.$ac_objext conftest$ac_exeext25827 if { (eval echo "$as_me:$LINENO: \"$ac_ link\"") >&525828 (eval $ac_ link) 2>conftest.er110329 rm -f conftest.$ac_objext 10330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10331 (eval $ac_compile) 2>conftest.er1 25829 10332 ac_status=$? 25830 10333 grep -v '^ *+' conftest.er1 >conftest.err … … 25840 10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25841 10344 (exit $ac_status); }; } && 25842 { ac_try='test -s conftest $ac_exeext'10345 { ac_try='test -s conftest.$ac_objext' 25843 10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25844 10347 (eval $ac_try) 2>&5 … … 25846 10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25847 10350 (exit $ac_status); }; }; then 25848 ac_cv_ lib_efence_main=yes10351 ac_cv_type__Bool=yes 25849 10352 else 25850 10353 echo "$as_me: failed program was:" >&5 25851 10354 sed 's/^/| /' conftest.$ac_ext >&5 25852 10355 25853 ac_cv_lib_efence_main=no 25854 fi 25855 rm -f conftest.err conftest.$ac_objext \ 25856 conftest$ac_exeext conftest.$ac_ext 25857 LIBS=$ac_check_lib_save_LIBS 25858 fi 25859 echo "$as_me:$LINENO: result: $ac_cv_lib_efence_main" >&5 25860 echo "${ECHO_T}$ac_cv_lib_efence_main" >&6 25861 if test $ac_cv_lib_efence_main = yes; then 25862 FOUND_efence=yes; LIBS="$LIBS -lefence" 25863 fi 25864 25865 if test x$FOUND_efence != xyes ; then 25866 echo "efence was requested, but is not installed!! going on" 25867 fi 25868 25869 fi 25870 25871 #-----# 25872 # GTK # 25873 #-----# 25874 if test x$def_gtk = xyes; then 25875 #PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.0.3 gthread-2.0 >= 2.0.3, have_gtk2=yes, have_gtk2=no) 25876 echo "$as_me:$LINENO: checking for gtk2.0" >&5 25877 echo $ECHO_N "checking for gtk2.0... $ECHO_C" >&6 25878 if `$PKG_CONFIG --exists gtk+-2.0`; then 25879 echo "yes" 25880 have_gtk2=yes 25881 GTK2_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 25882 GTK2_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 10356 ac_cv_type__Bool=no 10357 fi 10358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10359 fi 10360 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 10361 echo "${ECHO_T}$ac_cv_type__Bool" >&6 10362 if test $ac_cv_type__Bool = yes; then 25883 10363 25884 10364 cat >>confdefs.h <<_ACEOF 25885 #define HAVE_GTK2 1 25886 _ACEOF 25887 25888 if test $DEBUG -ge 3; then 25889 echo "cflags: $GTK2_CFLAGS" 25890 echo "libs: $GTK2_LIBS" 25891 fi 25892 else 25893 echo "no" 25894 fi 25895 25896 fi 25897 25898 25899 25900 25901 if test x$have_gtk2 = xyes; then 25902 HAVE_GTK2_TRUE= 25903 HAVE_GTK2_FALSE='#' 25904 else 25905 HAVE_GTK2_TRUE='#' 25906 HAVE_GTK2_FALSE= 25907 fi 25908 25909 25910 25911 # FIXME: Replace `main' with a function in `-lm': 25912 25913 echo "$as_me:$LINENO: checking for main in -lm" >&5 25914 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 25915 if test "${ac_cv_lib_m_main+set}" = set; then 25916 echo $ECHO_N "(cached) $ECHO_C" >&6 25917 else 25918 ac_check_lib_save_LIBS=$LIBS 25919 LIBS="-lm $LIBS" 25920 cat >conftest.$ac_ext <<_ACEOF 25921 /* confdefs.h. */ 25922 _ACEOF 25923 cat confdefs.h >>conftest.$ac_ext 25924 cat >>conftest.$ac_ext <<_ACEOF 25925 /* end confdefs.h. */ 25926 25927 25928 int 25929 main () 25930 { 25931 main (); 25932 ; 25933 return 0; 25934 } 25935 _ACEOF 25936 rm -f conftest.$ac_objext conftest$ac_exeext 25937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25938 (eval $ac_link) 2>conftest.er1 25939 ac_status=$? 25940 grep -v '^ *+' conftest.er1 >conftest.err 25941 rm -f conftest.er1 25942 cat conftest.err >&5 25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25944 (exit $ac_status); } && 25945 { ac_try='test -z "$ac_c_werror_flag" 25946 || test ! -s conftest.err' 25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25948 (eval $ac_try) 2>&5 25949 ac_status=$? 25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25951 (exit $ac_status); }; } && 25952 { ac_try='test -s conftest$ac_exeext' 25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25954 (eval $ac_try) 2>&5 25955 ac_status=$? 25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25957 (exit $ac_status); }; }; then 25958 ac_cv_lib_m_main=yes 25959 else 25960 echo "$as_me: failed program was:" >&5 25961 sed 's/^/| /' conftest.$ac_ext >&5 25962 25963 ac_cv_lib_m_main=no 25964 fi 25965 rm -f conftest.err conftest.$ac_objext \ 25966 conftest$ac_exeext conftest.$ac_ext 25967 LIBS=$ac_check_lib_save_LIBS 25968 fi 25969 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 25970 echo "${ECHO_T}$ac_cv_lib_m_main" >&6 25971 if test $ac_cv_lib_m_main = yes; then 25972 cat >>confdefs.h <<_ACEOF 25973 #define HAVE_LIBM 1 25974 _ACEOF 25975 25976 LIBS="-lm $LIBS" 25977 25978 fi 25979 25980 25981 25982 # Checks for header files. 25983 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 25984 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 25985 if test "${ac_cv_header_stdc+set}" = set; then 25986 echo $ECHO_N "(cached) $ECHO_C" >&6 25987 else 25988 cat >conftest.$ac_ext <<_ACEOF 25989 /* confdefs.h. */ 25990 _ACEOF 25991 cat confdefs.h >>conftest.$ac_ext 25992 cat >>conftest.$ac_ext <<_ACEOF 25993 /* end confdefs.h. */ 25994 #include <stdlib.h> 25995 #include <stdarg.h> 25996 #include <string.h> 25997 #include <float.h> 25998 25999 int 26000 main () 26001 { 26002 26003 ; 26004 return 0; 26005 } 26006 _ACEOF 26007 rm -f conftest.$ac_objext 26008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26009 (eval $ac_compile) 2>conftest.er1 26010 ac_status=$? 26011 grep -v '^ *+' conftest.er1 >conftest.err 26012 rm -f conftest.er1 26013 cat conftest.err >&5 26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26015 (exit $ac_status); } && 26016 { ac_try='test -z "$ac_c_werror_flag" 26017 || test ! -s conftest.err' 26018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26019 (eval $ac_try) 2>&5 26020 ac_status=$? 26021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26022 (exit $ac_status); }; } && 26023 { ac_try='test -s conftest.$ac_objext' 26024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26025 (eval $ac_try) 2>&5 26026 ac_status=$? 26027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26028 (exit $ac_status); }; }; then 26029 ac_cv_header_stdc=yes 26030 else 26031 echo "$as_me: failed program was:" >&5 26032 sed 's/^/| /' conftest.$ac_ext >&5 26033 26034 ac_cv_header_stdc=no 26035 fi 26036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26037 26038 if test $ac_cv_header_stdc = yes; then 26039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 26040 cat >conftest.$ac_ext <<_ACEOF 26041 /* confdefs.h. */ 26042 _ACEOF 26043 cat confdefs.h >>conftest.$ac_ext 26044 cat >>conftest.$ac_ext <<_ACEOF 26045 /* end confdefs.h. */ 26046 #include <string.h> 26047 26048 _ACEOF 26049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26050 $EGREP "memchr" >/dev/null 2>&1; then 26051 : 26052 else 26053 ac_cv_header_stdc=no 26054 fi 26055 rm -f conftest* 26056 26057 fi 26058 26059 if test $ac_cv_header_stdc = yes; then 26060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 26061 cat >conftest.$ac_ext <<_ACEOF 26062 /* confdefs.h. */ 26063 _ACEOF 26064 cat confdefs.h >>conftest.$ac_ext 26065 cat >>conftest.$ac_ext <<_ACEOF 26066 /* end confdefs.h. */ 26067 #include <stdlib.h> 26068 26069 _ACEOF 26070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26071 $EGREP "free" >/dev/null 2>&1; then 26072 : 26073 else 26074 ac_cv_header_stdc=no 26075 fi 26076 rm -f conftest* 26077 26078 fi 26079 26080 if test $ac_cv_header_stdc = yes; then 26081 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 26082 if test "$cross_compiling" = yes; then 26083 : 26084 else 26085 cat >conftest.$ac_ext <<_ACEOF 26086 /* confdefs.h. */ 26087 _ACEOF 26088 cat confdefs.h >>conftest.$ac_ext 26089 cat >>conftest.$ac_ext <<_ACEOF 26090 /* end confdefs.h. */ 26091 #include <ctype.h> 26092 #if ((' ' & 0x0FF) == 0x020) 26093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 26094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 26095 #else 26096 # define ISLOWER(c) \ 26097 (('a' <= (c) && (c) <= 'i') \ 26098 || ('j' <= (c) && (c) <= 'r') \ 26099 || ('s' <= (c) && (c) <= 'z')) 26100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 26101 #endif 26102 26103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 26104 int 26105 main () 26106 { 26107 int i; 26108 for (i = 0; i < 256; i++) 26109 if (XOR (islower (i), ISLOWER (i)) 26110 || toupper (i) != TOUPPER (i)) 26111 exit(2); 26112 exit (0); 26113 } 26114 _ACEOF 26115 rm -f conftest$ac_exeext 26116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26117 (eval $ac_link) 2>&5 26118 ac_status=$? 26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 26121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26122 (eval $ac_try) 2>&5 26123 ac_status=$? 26124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26125 (exit $ac_status); }; }; then 26126 : 26127 else 26128 echo "$as_me: program exited with status $ac_status" >&5 26129 echo "$as_me: failed program was:" >&5 26130 sed 's/^/| /' conftest.$ac_ext >&5 26131 26132 ( exit $ac_status ) 26133 ac_cv_header_stdc=no 26134 fi 26135 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 26136 fi 26137 fi 26138 fi 26139 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 26140 echo "${ECHO_T}$ac_cv_header_stdc" >&6 26141 if test $ac_cv_header_stdc = yes; then 10365 #define HAVE__BOOL 1 10366 _ACEOF 10367 10368 10369 fi 10370 10371 if test $ac_cv_header_stdbool_h = yes; then 26142 10372 26143 10373 cat >>confdefs.h <<\_ACEOF 26144 #define STDC_HEADERS 1 26145 _ACEOF 26146 26147 fi 26148 26149 26150 26151 for ac_header in stdlib.h string.h 10374 #define HAVE_STDBOOL_H 1 10375 _ACEOF 10376 10377 fi 10378 10379 10380 # Checks for library functions. 10381 10382 for ac_header in stdlib.h 26152 10383 do 26153 10384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` … … 26298 10529 done 26299 10530 26300 26301 # Checks for typedefs, structures, and compiler characteristics.26302 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&526303 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&626304 if test "${ac_cv_header_stdbool_h+set}" = set; then26305 echo $ECHO_N "(cached) $ECHO_C" >&626306 else26307 cat >conftest.$ac_ext <<_ACEOF26308 /* confdefs.h. */26309 _ACEOF26310 cat confdefs.h >>conftest.$ac_ext26311 cat >>conftest.$ac_ext <<_ACEOF26312 /* end confdefs.h. */26313 26314 #include <stdbool.h>26315 #ifndef bool26316 # error bool is not defined26317 #endif26318 #ifndef false26319 # error false is not defined26320 #endif26321 #if false26322 # error false is not 026323 #endif26324 #ifndef true26325 # error true is not defined26326 #endif26327 #if true != 126328 # error true is not 126329 #endif26330 #ifndef __bool_true_false_are_defined26331 # error __bool_true_false_are_defined is not defined26332 #endif26333 26334 struct s { _Bool s: 1; _Bool t; } s;26335 26336 char a[true == 1 ? 1 : -1];26337 char b[false == 0 ? 1 : -1];26338 char c[__bool_true_false_are_defined == 1 ? 1 : -1];26339 char d[(bool) -0.5 == true ? 1 : -1];26340 bool e = &s;26341 char f[(_Bool) -0.0 == false ? 1 : -1];26342 char g[true];26343 char h[sizeof (_Bool)];26344 char i[sizeof s.t];26345 26346 int26347 main ()26348 {26349 return !a + !b + !c + !d + !e + !f + !g + !h + !i;26350 ;26351 return 0;26352 }26353 _ACEOF26354 rm -f conftest.$ac_objext26355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&526356 (eval $ac_compile) 2>conftest.er126357 ac_status=$?26358 grep -v '^ *+' conftest.er1 >conftest.err26359 rm -f conftest.er126360 cat conftest.err >&526361 echo "$as_me:$LINENO: \$? = $ac_status" >&526362 (exit $ac_status); } &&26363 { ac_try='test -z "$ac_c_werror_flag"26364 || test ! -s conftest.err'26365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526366 (eval $ac_try) 2>&526367 ac_status=$?26368 echo "$as_me:$LINENO: \$? = $ac_status" >&526369 (exit $ac_status); }; } &&26370 { ac_try='test -s conftest.$ac_objext'26371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526372 (eval $ac_try) 2>&526373 ac_status=$?26374 echo "$as_me:$LINENO: \$? = $ac_status" >&526375 (exit $ac_status); }; }; then26376 ac_cv_header_stdbool_h=yes26377 else26378 echo "$as_me: failed program was:" >&526379 sed 's/^/| /' conftest.$ac_ext >&526380 26381 ac_cv_header_stdbool_h=no26382 fi26383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext26384 fi26385 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&526386 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&626387 echo "$as_me:$LINENO: checking for _Bool" >&526388 echo $ECHO_N "checking for _Bool... $ECHO_C" >&626389 if test "${ac_cv_type__Bool+set}" = set; then26390 echo $ECHO_N "(cached) $ECHO_C" >&626391 else26392 cat >conftest.$ac_ext <<_ACEOF26393 /* confdefs.h. */26394 _ACEOF26395 cat confdefs.h >>conftest.$ac_ext26396 cat >>conftest.$ac_ext <<_ACEOF26397 /* end confdefs.h. */26398 $ac_includes_default26399 int26400 main ()26401 {26402 if ((_Bool *) 0)26403 return 0;26404 if (sizeof (_Bool))26405 return 0;26406 ;26407 return 0;26408 }26409 _ACEOF26410 rm -f conftest.$ac_objext26411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&526412 (eval $ac_compile) 2>conftest.er126413 ac_status=$?26414 grep -v '^ *+' conftest.er1 >conftest.err26415 rm -f conftest.er126416 cat conftest.err >&526417 echo "$as_me:$LINENO: \$? = $ac_status" >&526418 (exit $ac_status); } &&26419 { ac_try='test -z "$ac_c_werror_flag"26420 || test ! -s conftest.err'26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526422 (eval $ac_try) 2>&526423 ac_status=$?26424 echo "$as_me:$LINENO: \$? = $ac_status" >&526425 (exit $ac_status); }; } &&26426 { ac_try='test -s conftest.$ac_objext'26427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526428 (eval $ac_try) 2>&526429 ac_status=$?26430 echo "$as_me:$LINENO: \$? = $ac_status" >&526431 (exit $ac_status); }; }; then26432 ac_cv_type__Bool=yes26433 else26434 echo "$as_me: failed program was:" >&526435 sed 's/^/| /' conftest.$ac_ext >&526436 26437 ac_cv_type__Bool=no26438 fi26439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext26440 fi26441 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&526442 echo "${ECHO_T}$ac_cv_type__Bool" >&626443 if test $ac_cv_type__Bool = yes; then26444 26445 cat >>confdefs.h <<_ACEOF26446 #define HAVE__BOOL 126447 _ACEOF26448 26449 26450 fi26451 26452 if test $ac_cv_header_stdbool_h = yes; then26453 26454 cat >>confdefs.h <<\_ACEOF26455 #define HAVE_STDBOOL_H 126456 _ACEOF26457 26458 fi26459 26460 26461 # Checks for library functions.26462 26463 for ac_header in stdlib.h26464 do26465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`26466 if eval "test \"\${$as_ac_Header+set}\" = set"; then26467 echo "$as_me:$LINENO: checking for $ac_header" >&526468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&626469 if eval "test \"\${$as_ac_Header+set}\" = set"; then26470 echo $ECHO_N "(cached) $ECHO_C" >&626471 fi26472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&526473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&626474 else26475 # Is the header compilable?26476 echo "$as_me:$LINENO: checking $ac_header usability" >&526477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&626478 cat >conftest.$ac_ext <<_ACEOF26479 /* confdefs.h. */26480 _ACEOF26481 cat confdefs.h >>conftest.$ac_ext26482 cat >>conftest.$ac_ext <<_ACEOF26483 /* end confdefs.h. */26484 $ac_includes_default26485 #include <$ac_header>26486 _ACEOF26487 rm -f conftest.$ac_objext26488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&526489 (eval $ac_compile) 2>conftest.er126490 ac_status=$?26491 grep -v '^ *+' conftest.er1 >conftest.err26492 rm -f conftest.er126493 cat conftest.err >&526494 echo "$as_me:$LINENO: \$? = $ac_status" >&526495 (exit $ac_status); } &&26496 { ac_try='test -z "$ac_c_werror_flag"26497 || test ! -s conftest.err'26498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526499 (eval $ac_try) 2>&526500 ac_status=$?26501 echo "$as_me:$LINENO: \$? = $ac_status" >&526502 (exit $ac_status); }; } &&26503 { ac_try='test -s conftest.$ac_objext'26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&526505 (eval $ac_try) 2>&526506 ac_status=$?26507 echo "$as_me:$LINENO: \$? = $ac_status" >&526508 (exit $ac_status); }; }; then26509 ac_header_compiler=yes26510 else26511 echo "$as_me: failed program was:" >&526512 sed 's/^/| /' conftest.$ac_ext >&526513 26514 ac_header_compiler=no26515 fi26516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext26517 echo "$as_me:$LINENO: result: $ac_header_compiler" >&526518 echo "${ECHO_T}$ac_header_compiler" >&626519 26520 # Is the header present?26521 echo "$as_me:$LINENO: checking $ac_header presence" >&526522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&626523 cat >conftest.$ac_ext <<_ACEOF26524 /* confdefs.h. */26525 _ACEOF26526 cat confdefs.h >>conftest.$ac_ext26527 cat >>conftest.$ac_ext <<_ACEOF26528 /* end confdefs.h. */26529 #include <$ac_header>26530 _ACEOF26531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&526532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er126533 ac_status=$?26534 grep -v '^ *+' conftest.er1 >conftest.err26535 rm -f conftest.er126536 cat conftest.err >&526537 echo "$as_me:$LINENO: \$? = $ac_status" >&526538 (exit $ac_status); } >/dev/null; then26539 if test -s conftest.err; then26540 ac_cpp_err=$ac_c_preproc_warn_flag26541 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag26542 else26543 ac_cpp_err=26544 fi26545 else26546 ac_cpp_err=yes26547 fi26548 if test -z "$ac_cpp_err"; then26549 ac_header_preproc=yes26550 else26551 echo "$as_me: failed program was:" >&526552 sed 's/^/| /' conftest.$ac_ext >&526553 26554 ac_header_preproc=no26555 fi26556 rm -f conftest.err conftest.$ac_ext26557 echo "$as_me:$LINENO: result: $ac_header_preproc" >&526558 echo "${ECHO_T}$ac_header_preproc" >&626559 26560 # So? What about this header?26561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in26562 yes:no: )26563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&526564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}26565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&526566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}26567 ac_header_preproc=yes26568 ;;26569 no:yes:* )26570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&526571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}26572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&526573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}26574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&526575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}26576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&526577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}26578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&526579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}26580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&526581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}26582 (26583 cat <<\_ASBOX26584 ## ---------------------------------------------- ##26585 ## Report this to orxonox-dev at mail.datacore.ch ##26586 ## ---------------------------------------------- ##26587 _ASBOX26588 ) |26589 sed "s/^/$as_me: WARNING: /" >&226590 ;;26591 esac26592 echo "$as_me:$LINENO: checking for $ac_header" >&526593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&626594 if eval "test \"\${$as_ac_Header+set}\" = set"; then26595 echo $ECHO_N "(cached) $ECHO_C" >&626596 else26597 eval "$as_ac_Header=\$ac_header_preproc"26598 fi26599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&526600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&626601 26602 fi26603 if test `eval echo '${'$as_ac_Header'}'` = yes; then26604 cat >>confdefs.h <<_ACEOF26605 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 126606 _ACEOF26607 26608 fi26609 26610 done26611 26612 10531 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5 26613 10532 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6 … … 26798 10717 ## OUTPUT CONFIGURE ## 26799 10718 ###################### 26800 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/world_entities/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile"10719 ac_config_files="$ac_config_files Makefile src/Makefile src/lib/Makefile src/lib/graphics/Makefile src/lib/graphics/importer/Makefile src/lib/graphics/spatial_separation/Makefile src/lib/sound/Makefile src/lib/event/Makefile src/lib/physics/Makefile src/lib/particles/Makefile src/lib/collision_detection/Makefile src/lib/shell/Makefile src/lib/gui/Makefile src/lib/gui/gtk_gui/Makefile src/lib/gui/gl_gui/Makefile src/lib/tinyxml/Makefile src/util/Makefile src/subprojects/Makefile src/subprojects/testmain/Makefile src/subprojects/importer/Makefile src/subprojects/particles/Makefile src/subprojects/collision_detection/Makefile" 26801 10720 26802 10721 … … 27409 11328 "src/lib/tinyxml/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/tinyxml/Makefile" ;; 27410 11329 "src/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;; 27411 "src/world_entities/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/world_entities/Makefile" ;;27412 11330 "src/subprojects/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/Makefile" ;; 27413 11331 "src/subprojects/testmain/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/subprojects/testmain/Makefile" ;; … … 27550 11468 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t 27551 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 27552 11472 s,@CC@,$CC,;t t 27553 11473 s,@CFLAGS@,$CFLAGS,;t t … … 27556 11476 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 27557 11477 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 11478 s,@CPP@,$CPP,;t t 27558 11479 s,@EGREP@,$EGREP,;t t 27559 s,@LN_S@,$LN_S,;t t27560 s,@ECHO@,$ECHO,;t t27561 s,@AR@,$AR,;t t27562 s,@ac_ct_AR@,$ac_ct_AR,;t t27563 s,@RANLIB@,$RANLIB,;t t27564 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t27565 s,@CPP@,$CPP,;t t27566 s,@CXXCPP@,$CXXCPP,;t t27567 s,@F77@,$F77,;t t27568 s,@FFLAGS@,$FFLAGS,;t t27569 s,@ac_ct_F77@,$ac_ct_F77,;t t27570 s,@LIBTOOL@,$LIBTOOL,;t t27571 11480 s,@DEBUG@,$DEBUG,;t t 27572 11481 s,@SUB_PROJECTS_TRUE@,$SUB_PROJECTS_TRUE,;t t
Note: See TracChangeset
for help on using the changeset viewer.