diff options
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-x | libltdl/configure | 3325 |
1 files changed, 1147 insertions, 2178 deletions
diff --git a/libltdl/configure b/libltdl/configure index 4bf2ba56..5bce4b0d 100755 --- a/libltdl/configure +++ b/libltdl/configure | |||
@@ -3592,7 +3592,7 @@ reload_cmds='$LD$reload_flag -o $output$reload_objs' | |||
3592 | case $host_os in | 3592 | case $host_os in |
3593 | darwin*) | 3593 | darwin*) |
3594 | if test "$GCC" = yes; then | 3594 | if test "$GCC" = yes; then |
3595 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' | 3595 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3596 | else | 3596 | else |
3597 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | 3597 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3598 | fi | 3598 | fi |
@@ -3608,36 +3608,43 @@ else | |||
3608 | # Let the user override the test. | 3608 | # Let the user override the test. |
3609 | lt_cv_path_NM="$NM" | 3609 | lt_cv_path_NM="$NM" |
3610 | else | 3610 | else |
3611 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | 3611 | lt_nm_to_check="${ac_tool_prefix}nm" |
3612 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 3612 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3613 | IFS="$lt_save_ifs" | 3613 | lt_nm_to_check="$lt_nm_to_check nm" |
3614 | test -z "$ac_dir" && ac_dir=. | 3614 | fi |
3615 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | 3615 | for lt_tmp_nm in $lt_nm_to_check; do |
3616 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | 3616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3617 | # Check to see if the nm accepts a BSD-compat flag. | 3617 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3618 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 3618 | IFS="$lt_save_ifs" |
3619 | # nm: unknown option "B" ignored | 3619 | test -z "$ac_dir" && ac_dir=. |
3620 | # Tru64's nm complains that /dev/null is an invalid object file | 3620 | tmp_nm="$ac_dir/$lt_tmp_nm" |
3621 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | 3621 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3622 | */dev/null* | *'Invalid file or object type'*) | 3622 | # Check to see if the nm accepts a BSD-compat flag. |
3623 | lt_cv_path_NM="$tmp_nm -B" | 3623 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3624 | break | 3624 | # nm: unknown option "B" ignored |
3625 | ;; | 3625 | # Tru64's nm complains that /dev/null is an invalid object file |
3626 | *) | 3626 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3627 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | 3627 | */dev/null* | *'Invalid file or object type'*) |
3628 | */dev/null*) | 3628 | lt_cv_path_NM="$tmp_nm -B" |
3629 | lt_cv_path_NM="$tmp_nm -p" | ||
3630 | break | 3629 | break |
3631 | ;; | 3630 | ;; |
3632 | *) | 3631 | *) |
3633 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | 3632 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3634 | continue # so that we can try to find one that supports BSD flags | 3633 | */dev/null*) |
3634 | lt_cv_path_NM="$tmp_nm -p" | ||
3635 | break | ||
3636 | ;; | ||
3637 | *) | ||
3638 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3639 | continue # so that we can try to find one that supports BSD flags | ||
3640 | ;; | ||
3641 | esac | ||
3635 | ;; | 3642 | ;; |
3636 | esac | 3643 | esac |
3637 | esac | 3644 | fi |
3638 | fi | 3645 | done |
3646 | IFS="$lt_save_ifs" | ||
3639 | done | 3647 | done |
3640 | IFS="$lt_save_ifs" | ||
3641 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | 3648 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3642 | fi | 3649 | fi |
3643 | fi | 3650 | fi |
@@ -3745,6 +3752,11 @@ hpux10.20* | hpux11*) | |||
3745 | esac | 3752 | esac |
3746 | ;; | 3753 | ;; |
3747 | 3754 | ||
3755 | interix3*) | ||
3756 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
3757 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | ||
3758 | ;; | ||
3759 | |||
3748 | irix5* | irix6* | nonstopux*) | 3760 | irix5* | irix6* | nonstopux*) |
3749 | case $LD in | 3761 | case $LD in |
3750 | *-32|*"-32 ") libmagic=32-bit;; | 3762 | *-32|*"-32 ") libmagic=32-bit;; |
@@ -3790,15 +3802,11 @@ osf3* | osf4* | osf5*) | |||
3790 | lt_cv_deplibs_check_method=pass_all | 3802 | lt_cv_deplibs_check_method=pass_all |
3791 | ;; | 3803 | ;; |
3792 | 3804 | ||
3793 | sco3.2v5*) | ||
3794 | lt_cv_deplibs_check_method=pass_all | ||
3795 | ;; | ||
3796 | |||
3797 | solaris*) | 3805 | solaris*) |
3798 | lt_cv_deplibs_check_method=pass_all | 3806 | lt_cv_deplibs_check_method=pass_all |
3799 | ;; | 3807 | ;; |
3800 | 3808 | ||
3801 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 3809 | sysv4 | sysv4.3*) |
3802 | case $host_vendor in | 3810 | case $host_vendor in |
3803 | motorola) | 3811 | motorola) |
3804 | 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]' | 3812 | 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]' |
@@ -3819,10 +3827,13 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |||
3819 | siemens) | 3827 | siemens) |
3820 | lt_cv_deplibs_check_method=pass_all | 3828 | lt_cv_deplibs_check_method=pass_all |
3821 | ;; | 3829 | ;; |
3830 | pc) | ||
3831 | lt_cv_deplibs_check_method=pass_all | ||
3832 | ;; | ||
3822 | esac | 3833 | esac |
3823 | ;; | 3834 | ;; |
3824 | 3835 | ||
3825 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | 3836 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3826 | lt_cv_deplibs_check_method=pass_all | 3837 | lt_cv_deplibs_check_method=pass_all |
3827 | ;; | 3838 | ;; |
3828 | esac | 3839 | esac |
@@ -3840,6 +3851,9 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown | |||
3840 | # If no C compiler was specified, use CC. | 3851 | # If no C compiler was specified, use CC. |
3841 | LTCC=${LTCC-"$CC"} | 3852 | LTCC=${LTCC-"$CC"} |
3842 | 3853 | ||
3854 | # If no C compiler flags were specified, use CFLAGS. | ||
3855 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
3856 | |||
3843 | # Allow CC to be a program name with arguments. | 3857 | # Allow CC to be a program name with arguments. |
3844 | compiler=$CC | 3858 | compiler=$CC |
3845 | 3859 | ||
@@ -3874,7 +3888,7 @@ ia64-*-hpux*) | |||
3874 | ;; | 3888 | ;; |
3875 | *-*-irix6*) | 3889 | *-*-irix6*) |
3876 | # Find out which ABI we are using. | 3890 | # Find out which ABI we are using. |
3877 | echo '#line 3877 "configure"' > conftest.$ac_ext | 3891 | echo '#line 3891 "configure"' > conftest.$ac_ext |
3878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | 3892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3879 | (eval $ac_compile) 2>&5 | 3893 | (eval $ac_compile) 2>&5 |
3880 | ac_status=$? | 3894 | ac_status=$? |
@@ -4029,6 +4043,26 @@ echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |||
4029 | CFLAGS="$SAVE_CFLAGS" | 4043 | CFLAGS="$SAVE_CFLAGS" |
4030 | fi | 4044 | fi |
4031 | ;; | 4045 | ;; |
4046 | sparc*-*solaris*) | ||
4047 | # Find out which ABI we are using. | ||
4048 | echo 'int i;' > conftest.$ac_ext | ||
4049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4050 | (eval $ac_compile) 2>&5 | ||
4051 | ac_status=$? | ||
4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4053 | (exit $ac_status); }; then | ||
4054 | case `/usr/bin/file conftest.o` in | ||
4055 | *64-bit*) | ||
4056 | case $lt_cv_prog_gnu_ld in | ||
4057 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
4058 | *) LD="${LD-ld} -64" ;; | ||
4059 | esac | ||
4060 | ;; | ||
4061 | esac | ||
4062 | fi | ||
4063 | rm -rf conftest* | ||
4064 | ;; | ||
4065 | |||
4032 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | 4066 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) |
4033 | if test -n "$ac_tool_prefix"; then | 4067 | if test -n "$ac_tool_prefix"; then |
4034 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | 4068 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
@@ -5687,7 +5721,7 @@ fi | |||
5687 | 5721 | ||
5688 | 5722 | ||
5689 | # Provide some information about the compiler. | 5723 | # Provide some information about the compiler. |
5690 | echo "$as_me:5690:" \ | 5724 | echo "$as_me:5724:" \ |
5691 | "checking for Fortran 77 compiler version" >&5 | 5725 | "checking for Fortran 77 compiler version" >&5 |
5692 | ac_compiler=`set X $ac_compile; echo $2` | 5726 | ac_compiler=`set X $ac_compile; echo $2` |
5693 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | 5727 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
@@ -5888,6 +5922,12 @@ else | |||
5888 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | 5922 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5889 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | 5923 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
5890 | ;; | 5924 | ;; |
5925 | |||
5926 | interix*) | ||
5927 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
5928 | lt_cv_sys_max_cmd_len=196608 | ||
5929 | ;; | ||
5930 | |||
5891 | osf*) | 5931 | osf*) |
5892 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | 5932 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
5893 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | 5933 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
@@ -5901,6 +5941,17 @@ else | |||
5901 | esac | 5941 | esac |
5902 | fi | 5942 | fi |
5903 | ;; | 5943 | ;; |
5944 | sco3.2v5*) | ||
5945 | lt_cv_sys_max_cmd_len=102400 | ||
5946 | ;; | ||
5947 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
5948 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
5949 | if test -n "$kargmax"; then | ||
5950 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | ||
5951 | else | ||
5952 | lt_cv_sys_max_cmd_len=32768 | ||
5953 | fi | ||
5954 | ;; | ||
5904 | *) | 5955 | *) |
5905 | # If test is not a shell built-in, we'll probably end up computing a | 5956 | # If test is not a shell built-in, we'll probably end up computing a |
5906 | # maximum length that is only half of the actual maximum length, but | 5957 | # maximum length that is only half of the actual maximum length, but |
@@ -5986,9 +6037,18 @@ irix* | nonstopux*) | |||
5986 | osf*) | 6037 | osf*) |
5987 | symcode='[BCDEGQRST]' | 6038 | symcode='[BCDEGQRST]' |
5988 | ;; | 6039 | ;; |
5989 | solaris* | sysv5*) | 6040 | solaris*) |
5990 | symcode='[BDRT]' | 6041 | symcode='[BDRT]' |
5991 | ;; | 6042 | ;; |
6043 | sco3.2v5*) | ||
6044 | symcode='[DT]' | ||
6045 | ;; | ||
6046 | sysv4.2uw2*) | ||
6047 | symcode='[DT]' | ||
6048 | ;; | ||
6049 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
6050 | symcode='[ABDT]' | ||
6051 | ;; | ||
5992 | sysv4) | 6052 | sysv4) |
5993 | symcode='[DFNSTU]' | 6053 | symcode='[DFNSTU]' |
5994 | ;; | 6054 | ;; |
@@ -6454,6 +6514,7 @@ test -z "$AR_FLAGS" && AR_FLAGS=cru | |||
6454 | test -z "$AS" && AS=as | 6514 | test -z "$AS" && AS=as |
6455 | test -z "$CC" && CC=cc | 6515 | test -z "$CC" && CC=cc |
6456 | test -z "$LTCC" && LTCC=$CC | 6516 | test -z "$LTCC" && LTCC=$CC |
6517 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
6457 | test -z "$DLLTOOL" && DLLTOOL=dlltool | 6518 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6458 | test -z "$LD" && LD=ld | 6519 | test -z "$LD" && LD=ld |
6459 | test -z "$LN_S" && LN_S="ln -s" | 6520 | test -z "$LN_S" && LN_S="ln -s" |
@@ -6473,10 +6534,10 @@ old_postuninstall_cmds= | |||
6473 | if test -n "$RANLIB"; then | 6534 | if test -n "$RANLIB"; then |
6474 | case $host_os in | 6535 | case $host_os in |
6475 | openbsd*) | 6536 | openbsd*) |
6476 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | 6537 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6477 | ;; | 6538 | ;; |
6478 | *) | 6539 | *) |
6479 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | 6540 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6480 | ;; | 6541 | ;; |
6481 | esac | 6542 | esac |
6482 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | 6543 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
@@ -6675,6 +6736,9 @@ lt_simple_link_test_code='int main(){return(0);}\n' | |||
6675 | # If no C compiler was specified, use CC. | 6736 | # If no C compiler was specified, use CC. |
6676 | LTCC=${LTCC-"$CC"} | 6737 | LTCC=${LTCC-"$CC"} |
6677 | 6738 | ||
6739 | # If no C compiler flags were specified, use CFLAGS. | ||
6740 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
6741 | |||
6678 | # Allow CC to be a program name with arguments. | 6742 | # Allow CC to be a program name with arguments. |
6679 | compiler=$CC | 6743 | compiler=$CC |
6680 | 6744 | ||
@@ -6682,82 +6746,17 @@ compiler=$CC | |||
6682 | # save warnings/boilerplate of simple test code | 6746 | # save warnings/boilerplate of simple test code |
6683 | ac_outfile=conftest.$ac_objext | 6747 | ac_outfile=conftest.$ac_objext |
6684 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 6748 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
6685 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 6749 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6686 | _lt_compiler_boilerplate=`cat conftest.err` | 6750 | _lt_compiler_boilerplate=`cat conftest.err` |
6687 | $rm conftest* | 6751 | $rm conftest* |
6688 | 6752 | ||
6689 | ac_outfile=conftest.$ac_objext | 6753 | ac_outfile=conftest.$ac_objext |
6690 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 6754 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
6691 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 6755 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
6692 | _lt_linker_boilerplate=`cat conftest.err` | 6756 | _lt_linker_boilerplate=`cat conftest.err` |
6693 | $rm conftest* | 6757 | $rm conftest* |
6694 | 6758 | ||
6695 | 6759 | ||
6696 | # | ||
6697 | # Check for any special shared library compilation flags. | ||
6698 | # | ||
6699 | lt_prog_cc_shlib= | ||
6700 | if test "$GCC" = no; then | ||
6701 | case $host_os in | ||
6702 | sco3.2v5*) | ||
6703 | lt_prog_cc_shlib='-belf' | ||
6704 | ;; | ||
6705 | esac | ||
6706 | fi | ||
6707 | if test -n "$lt_prog_cc_shlib"; then | ||
6708 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | ||
6709 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | ||
6710 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | ||
6711 | else | ||
6712 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | ||
6713 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | ||
6714 | lt_cv_prog_cc_can_build_shared=no | ||
6715 | fi | ||
6716 | fi | ||
6717 | |||
6718 | |||
6719 | # | ||
6720 | # Check to make sure the static flag actually works. | ||
6721 | # | ||
6722 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | ||
6723 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | ||
6724 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
6725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6726 | else | ||
6727 | lt_prog_compiler_static_works=no | ||
6728 | save_LDFLAGS="$LDFLAGS" | ||
6729 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | ||
6730 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
6731 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
6732 | # The linker can only warn and ignore the option if not recognized | ||
6733 | # So say no if there are warnings | ||
6734 | if test -s conftest.err; then | ||
6735 | # Append any errors to the config.log. | ||
6736 | cat conftest.err 1>&5 | ||
6737 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp | ||
6738 | $SED '/^$/d' conftest.err >conftest.er2 | ||
6739 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
6740 | lt_prog_compiler_static_works=yes | ||
6741 | fi | ||
6742 | else | ||
6743 | lt_prog_compiler_static_works=yes | ||
6744 | fi | ||
6745 | fi | ||
6746 | $rm conftest* | ||
6747 | LDFLAGS="$save_LDFLAGS" | ||
6748 | |||
6749 | fi | ||
6750 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
6751 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | ||
6752 | |||
6753 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
6754 | : | ||
6755 | else | ||
6756 | lt_prog_compiler_static= | ||
6757 | fi | ||
6758 | |||
6759 | |||
6760 | |||
6761 | 6760 | ||
6762 | lt_prog_compiler_no_builtin_flag= | 6761 | lt_prog_compiler_no_builtin_flag= |
6763 | 6762 | ||
@@ -6783,17 +6782,17 @@ else | |||
6783 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 6782 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
6784 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 6783 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6785 | -e 's:$: $lt_compiler_flag:'` | 6784 | -e 's:$: $lt_compiler_flag:'` |
6786 | (eval echo "\"\$as_me:6786: $lt_compile\"" >&5) | 6785 | (eval echo "\"\$as_me:6785: $lt_compile\"" >&5) |
6787 | (eval "$lt_compile" 2>conftest.err) | 6786 | (eval "$lt_compile" 2>conftest.err) |
6788 | ac_status=$? | 6787 | ac_status=$? |
6789 | cat conftest.err >&5 | 6788 | cat conftest.err >&5 |
6790 | echo "$as_me:6790: \$? = $ac_status" >&5 | 6789 | echo "$as_me:6789: \$? = $ac_status" >&5 |
6791 | if (exit $ac_status) && test -s "$ac_outfile"; then | 6790 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6792 | # The compiler can only warn and ignore the option if not recognized | 6791 | # The compiler can only warn and ignore the option if not recognized |
6793 | # So say no if there are warnings other than the usual output. | 6792 | # So say no if there are warnings other than the usual output. |
6794 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 6793 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6795 | $SED '/^$/d' conftest.err >conftest.er2 | 6794 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
6796 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 6795 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
6797 | lt_cv_prog_compiler_rtti_exceptions=yes | 6796 | lt_cv_prog_compiler_rtti_exceptions=yes |
6798 | fi | 6797 | fi |
6799 | fi | 6798 | fi |
@@ -6854,6 +6853,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
6854 | lt_prog_compiler_pic='-fno-common' | 6853 | lt_prog_compiler_pic='-fno-common' |
6855 | ;; | 6854 | ;; |
6856 | 6855 | ||
6856 | interix3*) | ||
6857 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
6858 | # Instead, we relocate shared libraries at runtime. | ||
6859 | ;; | ||
6860 | |||
6857 | msdosdjgpp*) | 6861 | msdosdjgpp*) |
6858 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 6862 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
6859 | # on systems that don't support them. | 6863 | # on systems that don't support them. |
@@ -6968,11 +6972,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
6968 | lt_prog_compiler_static='-non_shared' | 6972 | lt_prog_compiler_static='-non_shared' |
6969 | ;; | 6973 | ;; |
6970 | 6974 | ||
6971 | sco3.2v5*) | ||
6972 | lt_prog_compiler_pic='-Kpic' | ||
6973 | lt_prog_compiler_static='-dn' | ||
6974 | ;; | ||
6975 | |||
6976 | solaris*) | 6975 | solaris*) |
6977 | lt_prog_compiler_pic='-KPIC' | 6976 | lt_prog_compiler_pic='-KPIC' |
6978 | lt_prog_compiler_static='-Bstatic' | 6977 | lt_prog_compiler_static='-Bstatic' |
@@ -6990,7 +6989,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
6990 | lt_prog_compiler_static='-Bstatic' | 6989 | lt_prog_compiler_static='-Bstatic' |
6991 | ;; | 6990 | ;; |
6992 | 6991 | ||
6993 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 6992 | sysv4 | sysv4.2uw2* | sysv4.3*) |
6994 | lt_prog_compiler_wl='-Wl,' | 6993 | lt_prog_compiler_wl='-Wl,' |
6995 | lt_prog_compiler_pic='-KPIC' | 6994 | lt_prog_compiler_pic='-KPIC' |
6996 | lt_prog_compiler_static='-Bstatic' | 6995 | lt_prog_compiler_static='-Bstatic' |
@@ -7003,6 +7002,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
7003 | fi | 7002 | fi |
7004 | ;; | 7003 | ;; |
7005 | 7004 | ||
7005 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
7006 | lt_prog_compiler_wl='-Wl,' | ||
7007 | lt_prog_compiler_pic='-KPIC' | ||
7008 | lt_prog_compiler_static='-Bstatic' | ||
7009 | ;; | ||
7010 | |||
7006 | unicos*) | 7011 | unicos*) |
7007 | lt_prog_compiler_wl='-Wl,' | 7012 | lt_prog_compiler_wl='-Wl,' |
7008 | lt_prog_compiler_can_build_shared=no | 7013 | lt_prog_compiler_can_build_shared=no |
@@ -7045,17 +7050,17 @@ else | |||
7045 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7050 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7046 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7051 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7047 | -e 's:$: $lt_compiler_flag:'` | 7052 | -e 's:$: $lt_compiler_flag:'` |
7048 | (eval echo "\"\$as_me:7048: $lt_compile\"" >&5) | 7053 | (eval echo "\"\$as_me:7053: $lt_compile\"" >&5) |
7049 | (eval "$lt_compile" 2>conftest.err) | 7054 | (eval "$lt_compile" 2>conftest.err) |
7050 | ac_status=$? | 7055 | ac_status=$? |
7051 | cat conftest.err >&5 | 7056 | cat conftest.err >&5 |
7052 | echo "$as_me:7052: \$? = $ac_status" >&5 | 7057 | echo "$as_me:7057: \$? = $ac_status" >&5 |
7053 | if (exit $ac_status) && test -s "$ac_outfile"; then | 7058 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7054 | # The compiler can only warn and ignore the option if not recognized | 7059 | # The compiler can only warn and ignore the option if not recognized |
7055 | # So say no if there are warnings other than the usual output. | 7060 | # So say no if there are warnings other than the usual output. |
7056 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 7061 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7057 | $SED '/^$/d' conftest.err >conftest.er2 | 7062 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7058 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 7063 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7059 | lt_prog_compiler_pic_works=yes | 7064 | lt_prog_compiler_pic_works=yes |
7060 | fi | 7065 | fi |
7061 | fi | 7066 | fi |
@@ -7086,6 +7091,48 @@ case $host_os in | |||
7086 | ;; | 7091 | ;; |
7087 | esac | 7092 | esac |
7088 | 7093 | ||
7094 | # | ||
7095 | # Check to make sure the static flag actually works. | ||
7096 | # | ||
7097 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | ||
7098 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
7099 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | ||
7100 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
7101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7102 | else | ||
7103 | lt_prog_compiler_static_works=no | ||
7104 | save_LDFLAGS="$LDFLAGS" | ||
7105 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
7106 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
7107 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
7108 | # The linker can only warn and ignore the option if not recognized | ||
7109 | # So say no if there are warnings | ||
7110 | if test -s conftest.err; then | ||
7111 | # Append any errors to the config.log. | ||
7112 | cat conftest.err 1>&5 | ||
7113 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
7114 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
7115 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
7116 | lt_prog_compiler_static_works=yes | ||
7117 | fi | ||
7118 | else | ||
7119 | lt_prog_compiler_static_works=yes | ||
7120 | fi | ||
7121 | fi | ||
7122 | $rm conftest* | ||
7123 | LDFLAGS="$save_LDFLAGS" | ||
7124 | |||
7125 | fi | ||
7126 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
7127 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | ||
7128 | |||
7129 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
7130 | : | ||
7131 | else | ||
7132 | lt_prog_compiler_static= | ||
7133 | fi | ||
7134 | |||
7135 | |||
7089 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 7136 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7090 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 7137 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
7091 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | 7138 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
@@ -7107,18 +7154,18 @@ else | |||
7107 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 7154 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7108 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 7155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7109 | -e 's:$: $lt_compiler_flag:'` | 7156 | -e 's:$: $lt_compiler_flag:'` |
7110 | (eval echo "\"\$as_me:7110: $lt_compile\"" >&5) | 7157 | (eval echo "\"\$as_me:7157: $lt_compile\"" >&5) |
7111 | (eval "$lt_compile" 2>out/conftest.err) | 7158 | (eval "$lt_compile" 2>out/conftest.err) |
7112 | ac_status=$? | 7159 | ac_status=$? |
7113 | cat out/conftest.err >&5 | 7160 | cat out/conftest.err >&5 |
7114 | echo "$as_me:7114: \$? = $ac_status" >&5 | 7161 | echo "$as_me:7161: \$? = $ac_status" >&5 |
7115 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 7162 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7116 | then | 7163 | then |
7117 | # The compiler can only warn and ignore the option if not recognized | 7164 | # The compiler can only warn and ignore the option if not recognized |
7118 | # So say no if there are warnings | 7165 | # So say no if there are warnings |
7119 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | 7166 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7120 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | 7167 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7121 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 7168 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7122 | lt_cv_prog_compiler_c_o=yes | 7169 | lt_cv_prog_compiler_c_o=yes |
7123 | fi | 7170 | fi |
7124 | fi | 7171 | fi |
@@ -7218,6 +7265,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |||
7218 | with_gnu_ld=no | 7265 | with_gnu_ld=no |
7219 | fi | 7266 | fi |
7220 | ;; | 7267 | ;; |
7268 | interix*) | ||
7269 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
7270 | with_gnu_ld=yes | ||
7271 | ;; | ||
7221 | openbsd*) | 7272 | openbsd*) |
7222 | with_gnu_ld=no | 7273 | with_gnu_ld=no |
7223 | ;; | 7274 | ;; |
@@ -7302,7 +7353,7 @@ EOF | |||
7302 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 7353 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7303 | 7354 | ||
7304 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 7355 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7305 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 7356 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7306 | # If the export-symbols file already is a .def file (1st line | 7357 | # If the export-symbols file already is a .def file (1st line |
7307 | # is EXPORTS), use it as is; otherwise, prepend... | 7358 | # is EXPORTS), use it as is; otherwise, prepend... |
7308 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 7359 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -7311,12 +7362,27 @@ EOF | |||
7311 | echo EXPORTS > $output_objdir/$soname.def; | 7362 | echo EXPORTS > $output_objdir/$soname.def; |
7312 | cat $export_symbols >> $output_objdir/$soname.def; | 7363 | cat $export_symbols >> $output_objdir/$soname.def; |
7313 | fi~ | 7364 | fi~ |
7314 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 7365 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7315 | else | 7366 | else |
7316 | ld_shlibs=no | 7367 | ld_shlibs=no |
7317 | fi | 7368 | fi |
7318 | ;; | 7369 | ;; |
7319 | 7370 | ||
7371 | interix3*) | ||
7372 | hardcode_direct=no | ||
7373 | hardcode_shlibpath_var=no | ||
7374 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
7375 | export_dynamic_flag_spec='${wl}-E' | ||
7376 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
7377 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
7378 | # default) and relocated if they conflict, which is a slow very memory | ||
7379 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
7380 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
7381 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
7382 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
7383 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
7384 | ;; | ||
7385 | |||
7320 | linux*) | 7386 | linux*) |
7321 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 7387 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7322 | tmp_addflag= | 7388 | tmp_addflag= |
@@ -7359,7 +7425,7 @@ EOF | |||
7359 | fi | 7425 | fi |
7360 | ;; | 7426 | ;; |
7361 | 7427 | ||
7362 | solaris* | sysv5*) | 7428 | solaris*) |
7363 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 7429 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7364 | ld_shlibs=no | 7430 | ld_shlibs=no |
7365 | cat <<EOF 1>&2 | 7431 | cat <<EOF 1>&2 |
@@ -7380,6 +7446,33 @@ EOF | |||
7380 | fi | 7446 | fi |
7381 | ;; | 7447 | ;; |
7382 | 7448 | ||
7449 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
7450 | case `$LD -v 2>&1` in | ||
7451 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
7452 | ld_shlibs=no | ||
7453 | cat <<_LT_EOF 1>&2 | ||
7454 | |||
7455 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
7456 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
7457 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
7458 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
7459 | *** your PATH or compiler configuration so that the native linker is | ||
7460 | *** used, and then restart. | ||
7461 | |||
7462 | _LT_EOF | ||
7463 | ;; | ||
7464 | *) | ||
7465 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7466 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
7467 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
7468 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
7469 | else | ||
7470 | ld_shlibs=no | ||
7471 | fi | ||
7472 | ;; | ||
7473 | esac | ||
7474 | ;; | ||
7475 | |||
7383 | sunos4*) | 7476 | sunos4*) |
7384 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 7477 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7385 | wlarc= | 7478 | wlarc= |
@@ -7413,7 +7506,7 @@ EOF | |||
7413 | # Note: this linker hardcodes the directories in LIBPATH if there | 7506 | # Note: this linker hardcodes the directories in LIBPATH if there |
7414 | # are no directories specified by -L. | 7507 | # are no directories specified by -L. |
7415 | hardcode_minus_L=yes | 7508 | hardcode_minus_L=yes |
7416 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 7509 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7417 | # Neither direct hardcoding nor static linking is supported with a | 7510 | # Neither direct hardcoding nor static linking is supported with a |
7418 | # broken collect2. | 7511 | # broken collect2. |
7419 | hardcode_direct=unsupported | 7512 | hardcode_direct=unsupported |
@@ -7447,6 +7540,7 @@ EOF | |||
7447 | break | 7540 | break |
7448 | fi | 7541 | fi |
7449 | done | 7542 | done |
7543 | ;; | ||
7450 | esac | 7544 | esac |
7451 | 7545 | ||
7452 | exp_sym_flag='-bexport' | 7546 | exp_sym_flag='-bexport' |
@@ -7484,6 +7578,7 @@ EOF | |||
7484 | hardcode_libdir_flag_spec='-L$libdir' | 7578 | hardcode_libdir_flag_spec='-L$libdir' |
7485 | hardcode_libdir_separator= | 7579 | hardcode_libdir_separator= |
7486 | fi | 7580 | fi |
7581 | ;; | ||
7487 | esac | 7582 | esac |
7488 | shared_flag='-shared' | 7583 | shared_flag='-shared' |
7489 | if test "$aix_use_runtimelinking" = yes; then | 7584 | if test "$aix_use_runtimelinking" = yes; then |
@@ -7496,11 +7591,11 @@ EOF | |||
7496 | # chokes on -Wl,-G. The following line is correct: | 7591 | # chokes on -Wl,-G. The following line is correct: |
7497 | shared_flag='-G' | 7592 | shared_flag='-G' |
7498 | else | 7593 | else |
7499 | if test "$aix_use_runtimelinking" = yes; then | 7594 | if test "$aix_use_runtimelinking" = yes; then |
7500 | shared_flag='${wl}-G' | 7595 | shared_flag='${wl}-G' |
7501 | else | 7596 | else |
7502 | shared_flag='${wl}-bM:SRE' | 7597 | shared_flag='${wl}-bM:SRE' |
7503 | fi | 7598 | fi |
7504 | fi | 7599 | fi |
7505 | fi | 7600 | fi |
7506 | 7601 | ||
@@ -7564,12 +7659,12 @@ rm -f conftest.err conftest.$ac_objext \ | |||
7564 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 7659 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7565 | 7660 | ||
7566 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | 7661 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
7567 | 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" | 7662 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
7568 | else | 7663 | else |
7569 | if test "$host_cpu" = ia64; then | 7664 | if test "$host_cpu" = ia64; then |
7570 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | 7665 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
7571 | allow_undefined_flag="-z nodefs" | 7666 | allow_undefined_flag="-z nodefs" |
7572 | 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" | 7667 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
7573 | else | 7668 | else |
7574 | # Determine the default libpath from the value encoded in an empty executable. | 7669 | # Determine the default libpath from the value encoded in an empty executable. |
7575 | cat >conftest.$ac_ext <<_ACEOF | 7670 | cat >conftest.$ac_ext <<_ACEOF |
@@ -7628,13 +7723,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
7628 | # -berok will link without error, but may produce a broken library. | 7723 | # -berok will link without error, but may produce a broken library. |
7629 | no_undefined_flag=' ${wl}-bernotok' | 7724 | no_undefined_flag=' ${wl}-bernotok' |
7630 | allow_undefined_flag=' ${wl}-berok' | 7725 | allow_undefined_flag=' ${wl}-berok' |
7631 | # -bexpall does not export symbols beginning with underscore (_) | ||
7632 | always_export_symbols=yes | ||
7633 | # Exported symbols can be pulled into shared objects from archives | 7726 | # Exported symbols can be pulled into shared objects from archives |
7634 | whole_archive_flag_spec=' ' | 7727 | whole_archive_flag_spec='$convenience' |
7635 | archive_cmds_need_lc=yes | 7728 | archive_cmds_need_lc=yes |
7636 | # This is similar to how AIX traditionally builds its shared libraries. | 7729 | # This is similar to how AIX traditionally builds its shared libraries. |
7637 | 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' | 7730 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
7638 | fi | 7731 | fi |
7639 | fi | 7732 | fi |
7640 | ;; | 7733 | ;; |
@@ -7752,11 +7845,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
7752 | ;; | 7845 | ;; |
7753 | 7846 | ||
7754 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 7847 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
7755 | freebsd* | kfreebsd*-gnu | dragonfly*) | 7848 | freebsd* | dragonfly*) |
7849 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
7850 | hardcode_libdir_flag_spec='-R$libdir' | ||
7851 | hardcode_direct=yes | ||
7852 | hardcode_shlibpath_var=no | ||
7853 | ;; | ||
7854 | |||
7855 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. | ||
7856 | kfreebsd*-gnu) | ||
7756 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 7857 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7757 | hardcode_libdir_flag_spec='-R$libdir' | 7858 | hardcode_libdir_flag_spec='-R$libdir' |
7758 | hardcode_direct=yes | 7859 | hardcode_direct=yes |
7759 | hardcode_shlibpath_var=no | 7860 | hardcode_shlibpath_var=no |
7861 | link_all_deplibs=no | ||
7760 | ;; | 7862 | ;; |
7761 | 7863 | ||
7762 | hpux9*) | 7864 | hpux9*) |
@@ -7775,47 +7877,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
7775 | export_dynamic_flag_spec='${wl}-E' | 7877 | export_dynamic_flag_spec='${wl}-E' |
7776 | ;; | 7878 | ;; |
7777 | 7879 | ||
7778 | hpux10* | hpux11*) | 7880 | hpux10*) |
7881 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
7882 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7883 | else | ||
7884 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
7885 | fi | ||
7886 | if test "$with_gnu_ld" = no; then | ||
7887 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7888 | hardcode_libdir_separator=: | ||
7889 | |||
7890 | hardcode_direct=yes | ||
7891 | export_dynamic_flag_spec='${wl}-E' | ||
7892 | |||
7893 | # hardcode_minus_L: Not really in the search PATH, | ||
7894 | # but as the default location of the library. | ||
7895 | hardcode_minus_L=yes | ||
7896 | fi | ||
7897 | ;; | ||
7898 | |||
7899 | hpux11*) | ||
7779 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 7900 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
7780 | case $host_cpu in | 7901 | case $host_cpu in |
7781 | hppa*64*|ia64*) | 7902 | hppa*64*) |
7782 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 7903 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7783 | ;; | 7904 | ;; |
7905 | ia64*) | ||
7906 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7907 | ;; | ||
7784 | *) | 7908 | *) |
7785 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 7909 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7786 | ;; | 7910 | ;; |
7787 | esac | 7911 | esac |
7788 | else | 7912 | else |
7789 | case $host_cpu in | 7913 | case $host_cpu in |
7790 | hppa*64*|ia64*) | 7914 | hppa*64*) |
7791 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 7915 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7916 | ;; | ||
7917 | ia64*) | ||
7918 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7792 | ;; | 7919 | ;; |
7793 | *) | 7920 | *) |
7794 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 7921 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
7795 | ;; | 7922 | ;; |
7796 | esac | 7923 | esac |
7797 | fi | 7924 | fi |
7798 | if test "$with_gnu_ld" = no; then | 7925 | if test "$with_gnu_ld" = no; then |
7926 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7927 | hardcode_libdir_separator=: | ||
7928 | |||
7799 | case $host_cpu in | 7929 | case $host_cpu in |
7800 | hppa*64*) | 7930 | hppa*64*|ia64*) |
7801 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7802 | hardcode_libdir_flag_spec_ld='+b $libdir' | 7931 | hardcode_libdir_flag_spec_ld='+b $libdir' |
7803 | hardcode_libdir_separator=: | ||
7804 | hardcode_direct=no | 7932 | hardcode_direct=no |
7805 | hardcode_shlibpath_var=no | 7933 | hardcode_shlibpath_var=no |
7806 | ;; | 7934 | ;; |
7807 | ia64*) | ||
7808 | hardcode_libdir_flag_spec='-L$libdir' | ||
7809 | hardcode_direct=no | ||
7810 | hardcode_shlibpath_var=no | ||
7811 | |||
7812 | # hardcode_minus_L: Not really in the search PATH, | ||
7813 | # but as the default location of the library. | ||
7814 | hardcode_minus_L=yes | ||
7815 | ;; | ||
7816 | *) | 7935 | *) |
7817 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7818 | hardcode_libdir_separator=: | ||
7819 | hardcode_direct=yes | 7936 | hardcode_direct=yes |
7820 | export_dynamic_flag_spec='${wl}-E' | 7937 | export_dynamic_flag_spec='${wl}-E' |
7821 | 7938 | ||
@@ -7917,14 +8034,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
7917 | hardcode_libdir_separator=: | 8034 | hardcode_libdir_separator=: |
7918 | ;; | 8035 | ;; |
7919 | 8036 | ||
7920 | sco3.2v5*) | ||
7921 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7922 | hardcode_shlibpath_var=no | ||
7923 | export_dynamic_flag_spec='${wl}-Bexport' | ||
7924 | runpath_var=LD_RUN_PATH | ||
7925 | hardcode_runpath_var=yes | ||
7926 | ;; | ||
7927 | |||
7928 | solaris*) | 8037 | solaris*) |
7929 | no_undefined_flag=' -z text' | 8038 | no_undefined_flag=' -z text' |
7930 | if test "$GCC" = yes; then | 8039 | if test "$GCC" = yes; then |
@@ -8010,36 +8119,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
8010 | fi | 8119 | fi |
8011 | ;; | 8120 | ;; |
8012 | 8121 | ||
8013 | sysv4.2uw2*) | 8122 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8014 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 8123 | no_undefined_flag='${wl}-z,text' |
8015 | hardcode_direct=yes | 8124 | archive_cmds_need_lc=no |
8016 | hardcode_minus_L=no | ||
8017 | hardcode_shlibpath_var=no | 8125 | hardcode_shlibpath_var=no |
8018 | hardcode_runpath_var=yes | 8126 | runpath_var='LD_RUN_PATH' |
8019 | runpath_var=LD_RUN_PATH | ||
8020 | ;; | ||
8021 | 8127 | ||
8022 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
8023 | no_undefined_flag='${wl}-z ${wl}text' | ||
8024 | if test "$GCC" = yes; then | 8128 | if test "$GCC" = yes; then |
8025 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 8129 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8130 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8026 | else | 8131 | else |
8027 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 8132 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8133 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8028 | fi | 8134 | fi |
8029 | runpath_var='LD_RUN_PATH' | ||
8030 | hardcode_shlibpath_var=no | ||
8031 | ;; | 8135 | ;; |
8032 | 8136 | ||
8033 | sysv5*) | 8137 | sysv5* | sco3.2v5* | sco5v6*) |
8034 | no_undefined_flag=' -z text' | 8138 | # Note: We can NOT use -z defs as we might desire, because we do not |
8035 | # $CC -shared without GNU ld will not create a library from C++ | 8139 | # link with -lc, and that would cause any symbols used from libc to |
8036 | # object files and a static libstdc++, better avoid it by now | 8140 | # always be unresolved, which means just about no library would |
8037 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 8141 | # ever link correctly. If we're not using GNU ld we use -z text |
8038 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 8142 | # though, which does catch some bad symbols but isn't as heavy-handed |
8039 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 8143 | # as -z defs. |
8040 | hardcode_libdir_flag_spec= | 8144 | no_undefined_flag='${wl}-z,text' |
8145 | allow_undefined_flag='${wl}-z,nodefs' | ||
8146 | archive_cmds_need_lc=no | ||
8041 | hardcode_shlibpath_var=no | 8147 | hardcode_shlibpath_var=no |
8148 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
8149 | hardcode_libdir_separator=':' | ||
8150 | link_all_deplibs=yes | ||
8151 | export_dynamic_flag_spec='${wl}-Bexport' | ||
8042 | runpath_var='LD_RUN_PATH' | 8152 | runpath_var='LD_RUN_PATH' |
8153 | |||
8154 | if test "$GCC" = yes; then | ||
8155 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8156 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8157 | else | ||
8158 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8159 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8160 | fi | ||
8043 | ;; | 8161 | ;; |
8044 | 8162 | ||
8045 | uts4*) | 8163 | uts4*) |
@@ -8058,11 +8176,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |||
8058 | echo "${ECHO_T}$ld_shlibs" >&6 | 8176 | echo "${ECHO_T}$ld_shlibs" >&6 |
8059 | test "$ld_shlibs" = no && can_build_shared=no | 8177 | test "$ld_shlibs" = no && can_build_shared=no |
8060 | 8178 | ||
8061 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
8062 | if test "$GCC" = yes; then | ||
8063 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
8064 | fi | ||
8065 | |||
8066 | # | 8179 | # |
8067 | # Do we need to explicitly link libc? | 8180 | # Do we need to explicitly link libc? |
8068 | # | 8181 | # |
@@ -8095,6 +8208,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& | |||
8095 | libobjs=conftest.$ac_objext | 8208 | libobjs=conftest.$ac_objext |
8096 | deplibs= | 8209 | deplibs= |
8097 | wl=$lt_prog_compiler_wl | 8210 | wl=$lt_prog_compiler_wl |
8211 | pic_flag=$lt_prog_compiler_pic | ||
8098 | compiler_flags=-v | 8212 | compiler_flags=-v |
8099 | linker_flags=-v | 8213 | linker_flags=-v |
8100 | verstring= | 8214 | verstring= |
@@ -8376,10 +8490,15 @@ freebsd* | dragonfly*) | |||
8376 | shlibpath_overrides_runpath=yes | 8490 | shlibpath_overrides_runpath=yes |
8377 | hardcode_into_libs=yes | 8491 | hardcode_into_libs=yes |
8378 | ;; | 8492 | ;; |
8379 | *) # from 3.2 on | 8493 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8494 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
8380 | shlibpath_overrides_runpath=no | 8495 | shlibpath_overrides_runpath=no |
8381 | hardcode_into_libs=yes | 8496 | hardcode_into_libs=yes |
8382 | ;; | 8497 | ;; |
8498 | freebsd*) # from 4.6 on | ||
8499 | shlibpath_overrides_runpath=yes | ||
8500 | hardcode_into_libs=yes | ||
8501 | ;; | ||
8383 | esac | 8502 | esac |
8384 | ;; | 8503 | ;; |
8385 | 8504 | ||
@@ -8439,6 +8558,18 @@ hpux9* | hpux10* | hpux11*) | |||
8439 | postinstall_cmds='chmod 555 $lib' | 8558 | postinstall_cmds='chmod 555 $lib' |
8440 | ;; | 8559 | ;; |
8441 | 8560 | ||
8561 | interix3*) | ||
8562 | version_type=linux | ||
8563 | need_lib_prefix=no | ||
8564 | need_version=no | ||
8565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
8566 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8567 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
8568 | shlibpath_var=LD_LIBRARY_PATH | ||
8569 | shlibpath_overrides_runpath=no | ||
8570 | hardcode_into_libs=yes | ||
8571 | ;; | ||
8572 | |||
8442 | irix5* | irix6* | nonstopux*) | 8573 | irix5* | irix6* | nonstopux*) |
8443 | case $host_os in | 8574 | case $host_os in |
8444 | nonstopux*) version_type=nonstopux ;; | 8575 | nonstopux*) version_type=nonstopux ;; |
@@ -8572,6 +8703,7 @@ nto-qnx*) | |||
8572 | 8703 | ||
8573 | openbsd*) | 8704 | openbsd*) |
8574 | version_type=sunos | 8705 | version_type=sunos |
8706 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
8575 | need_lib_prefix=no | 8707 | need_lib_prefix=no |
8576 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 8708 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8577 | case $host_os in | 8709 | case $host_os in |
@@ -8615,13 +8747,6 @@ osf3* | osf4* | osf5*) | |||
8615 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 8747 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
8616 | ;; | 8748 | ;; |
8617 | 8749 | ||
8618 | sco3.2v5*) | ||
8619 | version_type=osf | ||
8620 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8622 | shlibpath_var=LD_LIBRARY_PATH | ||
8623 | ;; | ||
8624 | |||
8625 | solaris*) | 8750 | solaris*) |
8626 | version_type=linux | 8751 | version_type=linux |
8627 | need_lib_prefix=no | 8752 | need_lib_prefix=no |
@@ -8647,7 +8772,7 @@ sunos4*) | |||
8647 | need_version=yes | 8772 | need_version=yes |
8648 | ;; | 8773 | ;; |
8649 | 8774 | ||
8650 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 8775 | sysv4 | sysv4.3*) |
8651 | version_type=linux | 8776 | version_type=linux |
8652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 8777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8653 | soname_spec='${libname}${release}${shared_ext}$major' | 8778 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -8680,6 +8805,29 @@ sysv4*MP*) | |||
8680 | fi | 8805 | fi |
8681 | ;; | 8806 | ;; |
8682 | 8807 | ||
8808 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
8809 | version_type=freebsd-elf | ||
8810 | need_lib_prefix=no | ||
8811 | need_version=no | ||
8812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
8813 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8814 | shlibpath_var=LD_LIBRARY_PATH | ||
8815 | hardcode_into_libs=yes | ||
8816 | if test "$with_gnu_ld" = yes; then | ||
8817 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
8818 | shlibpath_overrides_runpath=no | ||
8819 | else | ||
8820 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
8821 | shlibpath_overrides_runpath=yes | ||
8822 | case $host_os in | ||
8823 | sco3.2v5*) | ||
8824 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
8825 | ;; | ||
8826 | esac | ||
8827 | fi | ||
8828 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
8829 | ;; | ||
8830 | |||
8683 | uts4*) | 8831 | uts4*) |
8684 | version_type=linux | 8832 | version_type=linux |
8685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 8833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -8695,6 +8843,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |||
8695 | echo "${ECHO_T}$dynamic_linker" >&6 | 8843 | echo "${ECHO_T}$dynamic_linker" >&6 |
8696 | test "$dynamic_linker" = no && can_build_shared=no | 8844 | test "$dynamic_linker" = no && can_build_shared=no |
8697 | 8845 | ||
8846 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
8847 | if test "$GCC" = yes; then | ||
8848 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
8849 | fi | ||
8850 | |||
8698 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 8851 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8699 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 8852 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
8700 | hardcode_action= | 8853 | hardcode_action= |
@@ -9343,7 +9496,7 @@ fi | |||
9343 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | 9496 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9344 | 9497 | ||
9345 | save_LDFLAGS="$LDFLAGS" | 9498 | save_LDFLAGS="$LDFLAGS" |
9346 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | 9499 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9347 | 9500 | ||
9348 | save_LIBS="$LIBS" | 9501 | save_LIBS="$LIBS" |
9349 | LIBS="$lt_cv_dlopen_libs $LIBS" | 9502 | LIBS="$lt_cv_dlopen_libs $LIBS" |
@@ -9359,7 +9512,7 @@ else | |||
9359 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 9512 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9360 | lt_status=$lt_dlunknown | 9513 | lt_status=$lt_dlunknown |
9361 | cat > conftest.$ac_ext <<EOF | 9514 | cat > conftest.$ac_ext <<EOF |
9362 | #line 9362 "configure" | 9515 | #line 9515 "configure" |
9363 | #include "confdefs.h" | 9516 | #include "confdefs.h" |
9364 | 9517 | ||
9365 | #if HAVE_DLFCN_H | 9518 | #if HAVE_DLFCN_H |
@@ -9416,6 +9569,8 @@ int main () | |||
9416 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 9569 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9417 | /* dlclose (self); */ | 9570 | /* dlclose (self); */ |
9418 | } | 9571 | } |
9572 | else | ||
9573 | puts (dlerror ()); | ||
9419 | 9574 | ||
9420 | exit (status); | 9575 | exit (status); |
9421 | } | 9576 | } |
@@ -9430,7 +9585,7 @@ EOF | |||
9430 | case x$lt_status in | 9585 | case x$lt_status in |
9431 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | 9586 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9432 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | 9587 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9433 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | 9588 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9434 | esac | 9589 | esac |
9435 | else : | 9590 | else : |
9436 | # compilation failed | 9591 | # compilation failed |
@@ -9445,7 +9600,7 @@ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |||
9445 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | 9600 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 |
9446 | 9601 | ||
9447 | if test "x$lt_cv_dlopen_self" = xyes; then | 9602 | if test "x$lt_cv_dlopen_self" = xyes; then |
9448 | LDFLAGS="$LDFLAGS $link_static_flag" | 9603 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
9449 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | 9604 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9450 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | 9605 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 |
9451 | if test "${lt_cv_dlopen_self_static+set}" = set; then | 9606 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
@@ -9457,7 +9612,7 @@ else | |||
9457 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 9612 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9458 | lt_status=$lt_dlunknown | 9613 | lt_status=$lt_dlunknown |
9459 | cat > conftest.$ac_ext <<EOF | 9614 | cat > conftest.$ac_ext <<EOF |
9460 | #line 9460 "configure" | 9615 | #line 9615 "configure" |
9461 | #include "confdefs.h" | 9616 | #include "confdefs.h" |
9462 | 9617 | ||
9463 | #if HAVE_DLFCN_H | 9618 | #if HAVE_DLFCN_H |
@@ -9514,6 +9669,8 @@ int main () | |||
9514 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 9669 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9515 | /* dlclose (self); */ | 9670 | /* dlclose (self); */ |
9516 | } | 9671 | } |
9672 | else | ||
9673 | puts (dlerror ()); | ||
9517 | 9674 | ||
9518 | exit (status); | 9675 | exit (status); |
9519 | } | 9676 | } |
@@ -9528,7 +9685,7 @@ EOF | |||
9528 | case x$lt_status in | 9685 | case x$lt_status in |
9529 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | 9686 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
9530 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | 9687 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
9531 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | 9688 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
9532 | esac | 9689 | esac |
9533 | else : | 9690 | else : |
9534 | # compilation failed | 9691 | # compilation failed |
@@ -9561,7 +9718,7 @@ echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |||
9561 | fi | 9718 | fi |
9562 | 9719 | ||
9563 | 9720 | ||
9564 | # Report which librarie types wil actually be built | 9721 | # Report which library types will actually be built |
9565 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | 9722 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9566 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | 9723 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 |
9567 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | 9724 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
@@ -9611,7 +9768,7 @@ if test -f "$ltmain"; then | |||
9611 | # Now quote all the things that may contain metacharacters while being | 9768 | # Now quote all the things that may contain metacharacters while being |
9612 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 9769 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
9613 | # variables and quote the copies for generation of the libtool script. | 9770 | # variables and quote the copies for generation of the libtool script. |
9614 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 9771 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
9615 | SED SHELL STRIP \ | 9772 | SED SHELL STRIP \ |
9616 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 9773 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
9617 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 9774 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -9777,6 +9934,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
9777 | # A C compiler. | 9934 | # A C compiler. |
9778 | LTCC=$lt_LTCC | 9935 | LTCC=$lt_LTCC |
9779 | 9936 | ||
9937 | # LTCC compiler flags. | ||
9938 | LTCFLAGS=$lt_LTCFLAGS | ||
9939 | |||
9780 | # A language-specific compiler. | 9940 | # A language-specific compiler. |
9781 | CC=$lt_compiler | 9941 | CC=$lt_compiler |
9782 | 9942 | ||
@@ -10107,6 +10267,9 @@ echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script | |||
10107 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | 10267 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10108 | fi | 10268 | fi |
10109 | fi | 10269 | fi |
10270 | if test -z "$LTCFLAGS"; then | ||
10271 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
10272 | fi | ||
10110 | 10273 | ||
10111 | # Extract list of available tagged configurations in $ofile. | 10274 | # Extract list of available tagged configurations in $ofile. |
10112 | # Note that this assumes the entire list is on one line. | 10275 | # Note that this assumes the entire list is on one line. |
@@ -10159,6 +10322,7 @@ hardcode_libdir_flag_spec_CXX= | |||
10159 | hardcode_libdir_flag_spec_ld_CXX= | 10322 | hardcode_libdir_flag_spec_ld_CXX= |
10160 | hardcode_libdir_separator_CXX= | 10323 | hardcode_libdir_separator_CXX= |
10161 | hardcode_minus_L_CXX=no | 10324 | hardcode_minus_L_CXX=no |
10325 | hardcode_shlibpath_var_CXX=unsupported | ||
10162 | hardcode_automatic_CXX=no | 10326 | hardcode_automatic_CXX=no |
10163 | module_cmds_CXX= | 10327 | module_cmds_CXX= |
10164 | module_expsym_cmds_CXX= | 10328 | module_expsym_cmds_CXX= |
@@ -10186,13 +10350,16 @@ objext_CXX=$objext | |||
10186 | lt_simple_compile_test_code="int some_variable = 0;\n" | 10350 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10187 | 10351 | ||
10188 | # Code to be used in simple link tests | 10352 | # Code to be used in simple link tests |
10189 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | 10353 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10190 | 10354 | ||
10191 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | 10355 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10192 | 10356 | ||
10193 | # If no C compiler was specified, use CC. | 10357 | # If no C compiler was specified, use CC. |
10194 | LTCC=${LTCC-"$CC"} | 10358 | LTCC=${LTCC-"$CC"} |
10195 | 10359 | ||
10360 | # If no C compiler flags were specified, use CFLAGS. | ||
10361 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
10362 | |||
10196 | # Allow CC to be a program name with arguments. | 10363 | # Allow CC to be a program name with arguments. |
10197 | compiler=$CC | 10364 | compiler=$CC |
10198 | 10365 | ||
@@ -10200,13 +10367,13 @@ compiler=$CC | |||
10200 | # save warnings/boilerplate of simple test code | 10367 | # save warnings/boilerplate of simple test code |
10201 | ac_outfile=conftest.$ac_objext | 10368 | ac_outfile=conftest.$ac_objext |
10202 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 10369 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10203 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 10370 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10204 | _lt_compiler_boilerplate=`cat conftest.err` | 10371 | _lt_compiler_boilerplate=`cat conftest.err` |
10205 | $rm conftest* | 10372 | $rm conftest* |
10206 | 10373 | ||
10207 | ac_outfile=conftest.$ac_objext | 10374 | ac_outfile=conftest.$ac_objext |
10208 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 10375 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10209 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 10376 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10210 | _lt_linker_boilerplate=`cat conftest.err` | 10377 | _lt_linker_boilerplate=`cat conftest.err` |
10211 | $rm conftest* | 10378 | $rm conftest* |
10212 | 10379 | ||
@@ -10221,12 +10388,12 @@ lt_save_path_LD=$lt_cv_path_LD | |||
10221 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | 10388 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10222 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | 10389 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10223 | else | 10390 | else |
10224 | unset lt_cv_prog_gnu_ld | 10391 | $as_unset lt_cv_prog_gnu_ld |
10225 | fi | 10392 | fi |
10226 | if test -n "${lt_cv_path_LDCXX+set}"; then | 10393 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10227 | lt_cv_path_LD=$lt_cv_path_LDCXX | 10394 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10228 | else | 10395 | else |
10229 | unset lt_cv_path_LD | 10396 | $as_unset lt_cv_path_LD |
10230 | fi | 10397 | fi |
10231 | test -z "${LDCXX+set}" || LD=$LDCXX | 10398 | test -z "${LDCXX+set}" || LD=$LDCXX |
10232 | CC=${CXX-"c++"} | 10399 | CC=${CXX-"c++"} |
@@ -10437,6 +10604,7 @@ case $host_os in | |||
10437 | ;; | 10604 | ;; |
10438 | esac | 10605 | esac |
10439 | done | 10606 | done |
10607 | ;; | ||
10440 | esac | 10608 | esac |
10441 | 10609 | ||
10442 | exp_sym_flag='-bexport' | 10610 | exp_sym_flag='-bexport' |
@@ -10474,6 +10642,7 @@ case $host_os in | |||
10474 | hardcode_libdir_flag_spec_CXX='-L$libdir' | 10642 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10475 | hardcode_libdir_separator_CXX= | 10643 | hardcode_libdir_separator_CXX= |
10476 | fi | 10644 | fi |
10645 | ;; | ||
10477 | esac | 10646 | esac |
10478 | shared_flag='-shared' | 10647 | shared_flag='-shared' |
10479 | if test "$aix_use_runtimelinking" = yes; then | 10648 | if test "$aix_use_runtimelinking" = yes; then |
@@ -10555,12 +10724,12 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10555 | 10724 | ||
10556 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | 10725 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
10557 | 10726 | ||
10558 | 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" | 10727 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
10559 | else | 10728 | else |
10560 | if test "$host_cpu" = ia64; then | 10729 | if test "$host_cpu" = ia64; then |
10561 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | 10730 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
10562 | allow_undefined_flag_CXX="-z nodefs" | 10731 | allow_undefined_flag_CXX="-z nodefs" |
10563 | 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" | 10732 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
10564 | else | 10733 | else |
10565 | # Determine the default libpath from the value encoded in an empty executable. | 10734 | # Determine the default libpath from the value encoded in an empty executable. |
10566 | cat >conftest.$ac_ext <<_ACEOF | 10735 | cat >conftest.$ac_ext <<_ACEOF |
@@ -10619,16 +10788,26 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10619 | # -berok will link without error, but may produce a broken library. | 10788 | # -berok will link without error, but may produce a broken library. |
10620 | no_undefined_flag_CXX=' ${wl}-bernotok' | 10789 | no_undefined_flag_CXX=' ${wl}-bernotok' |
10621 | allow_undefined_flag_CXX=' ${wl}-berok' | 10790 | allow_undefined_flag_CXX=' ${wl}-berok' |
10622 | # -bexpall does not export symbols beginning with underscore (_) | ||
10623 | always_export_symbols_CXX=yes | ||
10624 | # Exported symbols can be pulled into shared objects from archives | 10791 | # Exported symbols can be pulled into shared objects from archives |
10625 | whole_archive_flag_spec_CXX=' ' | 10792 | whole_archive_flag_spec_CXX='$convenience' |
10626 | archive_cmds_need_lc_CXX=yes | 10793 | archive_cmds_need_lc_CXX=yes |
10627 | # This is similar to how AIX traditionally builds its shared libraries. | 10794 | # This is similar to how AIX traditionally builds its shared libraries. |
10628 | 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' | 10795 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
10629 | fi | 10796 | fi |
10630 | fi | 10797 | fi |
10631 | ;; | 10798 | ;; |
10799 | |||
10800 | beos*) | ||
10801 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
10802 | allow_undefined_flag_CXX=unsupported | ||
10803 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
10804 | # support --undefined. This deserves some investigation. FIXME | ||
10805 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
10806 | else | ||
10807 | ld_shlibs_CXX=no | ||
10808 | fi | ||
10809 | ;; | ||
10810 | |||
10632 | chorus*) | 10811 | chorus*) |
10633 | case $cc_basename in | 10812 | case $cc_basename in |
10634 | *) | 10813 | *) |
@@ -10638,7 +10817,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10638 | esac | 10817 | esac |
10639 | ;; | 10818 | ;; |
10640 | 10819 | ||
10641 | |||
10642 | cygwin* | mingw* | pw32*) | 10820 | cygwin* | mingw* | pw32*) |
10643 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | 10821 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
10644 | # as there is no search path for DLLs. | 10822 | # as there is no search path for DLLs. |
@@ -10648,7 +10826,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10648 | enable_shared_with_static_runtimes_CXX=yes | 10826 | enable_shared_with_static_runtimes_CXX=yes |
10649 | 10827 | ||
10650 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 10828 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
10651 | 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' | 10829 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10652 | # If the export-symbols file already is a .def file (1st line | 10830 | # If the export-symbols file already is a .def file (1st line |
10653 | # is EXPORTS), use it as is; otherwise, prepend... | 10831 | # is EXPORTS), use it as is; otherwise, prepend... |
10654 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 10832 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -10657,7 +10835,7 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10657 | echo EXPORTS > $output_objdir/$soname.def; | 10835 | echo EXPORTS > $output_objdir/$soname.def; |
10658 | cat $export_symbols >> $output_objdir/$soname.def; | 10836 | cat $export_symbols >> $output_objdir/$soname.def; |
10659 | fi~ | 10837 | fi~ |
10660 | $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' | 10838 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
10661 | else | 10839 | else |
10662 | ld_shlibs_CXX=no | 10840 | ld_shlibs_CXX=no |
10663 | fi | 10841 | fi |
@@ -10794,34 +10972,23 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10794 | ;; | 10972 | ;; |
10795 | hpux10*|hpux11*) | 10973 | hpux10*|hpux11*) |
10796 | if test $with_gnu_ld = no; then | 10974 | if test $with_gnu_ld = no; then |
10975 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10976 | hardcode_libdir_separator_CXX=: | ||
10977 | |||
10797 | case $host_cpu in | 10978 | case $host_cpu in |
10798 | hppa*64*) | 10979 | hppa*64*|ia64*) |
10799 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10800 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | 10980 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
10801 | hardcode_libdir_separator_CXX=: | ||
10802 | ;; | ||
10803 | ia64*) | ||
10804 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
10805 | ;; | 10981 | ;; |
10806 | *) | 10982 | *) |
10807 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10808 | hardcode_libdir_separator_CXX=: | ||
10809 | export_dynamic_flag_spec_CXX='${wl}-E' | 10983 | export_dynamic_flag_spec_CXX='${wl}-E' |
10810 | ;; | 10984 | ;; |
10811 | esac | 10985 | esac |
10812 | fi | 10986 | fi |
10813 | case $host_cpu in | 10987 | case $host_cpu in |
10814 | hppa*64*) | 10988 | hppa*64*|ia64*) |
10815 | hardcode_direct_CXX=no | 10989 | hardcode_direct_CXX=no |
10816 | hardcode_shlibpath_var_CXX=no | 10990 | hardcode_shlibpath_var_CXX=no |
10817 | ;; | 10991 | ;; |
10818 | ia64*) | ||
10819 | hardcode_direct_CXX=no | ||
10820 | hardcode_shlibpath_var_CXX=no | ||
10821 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
10822 | # but as the default | ||
10823 | # location of the library. | ||
10824 | ;; | ||
10825 | *) | 10992 | *) |
10826 | hardcode_direct_CXX=yes | 10993 | hardcode_direct_CXX=yes |
10827 | hardcode_minus_L_CXX=yes # Not in the search PATH, | 10994 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
@@ -10837,8 +11004,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10837 | ;; | 11004 | ;; |
10838 | aCC*) | 11005 | aCC*) |
10839 | case $host_cpu in | 11006 | case $host_cpu in |
10840 | hppa*64*|ia64*) | 11007 | hppa*64*) |
10841 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 11008 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11009 | ;; | ||
11010 | ia64*) | ||
11011 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
10842 | ;; | 11012 | ;; |
10843 | *) | 11013 | *) |
10844 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | 11014 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
@@ -10858,8 +11028,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10858 | if test "$GXX" = yes; then | 11028 | if test "$GXX" = yes; then |
10859 | if test $with_gnu_ld = no; then | 11029 | if test $with_gnu_ld = no; then |
10860 | case $host_cpu in | 11030 | case $host_cpu in |
10861 | ia64*|hppa*64*) | 11031 | hppa*64*) |
10862 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | 11032 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11033 | ;; | ||
11034 | ia64*) | ||
11035 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
10863 | ;; | 11036 | ;; |
10864 | *) | 11037 | *) |
10865 | 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' | 11038 | 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' |
@@ -10873,6 +11046,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
10873 | ;; | 11046 | ;; |
10874 | esac | 11047 | esac |
10875 | ;; | 11048 | ;; |
11049 | interix3*) | ||
11050 | hardcode_direct_CXX=no | ||
11051 | hardcode_shlibpath_var_CXX=no | ||
11052 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
11053 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
11054 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
11055 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
11056 | # default) and relocated if they conflict, which is a slow very memory | ||
11057 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
11058 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
11059 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
11060 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
11061 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
11062 | ;; | ||
10876 | irix5* | irix6*) | 11063 | irix5* | irix6*) |
10877 | case $cc_basename in | 11064 | case $cc_basename in |
10878 | CC*) | 11065 | CC*) |
@@ -11155,19 +11342,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
11155 | # FIXME: insert proper C++ library support | 11342 | # FIXME: insert proper C++ library support |
11156 | ld_shlibs_CXX=no | 11343 | ld_shlibs_CXX=no |
11157 | ;; | 11344 | ;; |
11158 | sco*) | ||
11159 | archive_cmds_need_lc_CXX=no | ||
11160 | case $cc_basename in | ||
11161 | CC*) | ||
11162 | # FIXME: insert proper C++ library support | ||
11163 | ld_shlibs_CXX=no | ||
11164 | ;; | ||
11165 | *) | ||
11166 | # FIXME: insert proper C++ library support | ||
11167 | ld_shlibs_CXX=no | ||
11168 | ;; | ||
11169 | esac | ||
11170 | ;; | ||
11171 | sunos4*) | 11345 | sunos4*) |
11172 | case $cc_basename in | 11346 | case $cc_basename in |
11173 | CC*) | 11347 | CC*) |
@@ -11260,8 +11434,59 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
11260 | ;; | 11434 | ;; |
11261 | esac | 11435 | esac |
11262 | ;; | 11436 | ;; |
11263 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | 11437 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11438 | no_undefined_flag_CXX='${wl}-z,text' | ||
11264 | archive_cmds_need_lc_CXX=no | 11439 | archive_cmds_need_lc_CXX=no |
11440 | hardcode_shlibpath_var_CXX=no | ||
11441 | runpath_var='LD_RUN_PATH' | ||
11442 | |||
11443 | case $cc_basename in | ||
11444 | CC*) | ||
11445 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11446 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11447 | ;; | ||
11448 | *) | ||
11449 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11450 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11451 | ;; | ||
11452 | esac | ||
11453 | ;; | ||
11454 | sysv5* | sco3.2v5* | sco5v6*) | ||
11455 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
11456 | # link with -lc, and that would cause any symbols used from libc to | ||
11457 | # always be unresolved, which means just about no library would | ||
11458 | # ever link correctly. If we're not using GNU ld we use -z text | ||
11459 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
11460 | # as -z defs. | ||
11461 | # For security reasons, it is highly recommended that you always | ||
11462 | # use absolute paths for naming shared libraries, and exclude the | ||
11463 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
11464 | # requires that you compile everything twice, which is a pain. | ||
11465 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
11466 | # non-empty value in the environment. Most likely only useful for | ||
11467 | # creating official distributions of packages. | ||
11468 | # This is a hack until libtool officially supports absolute path | ||
11469 | # names for shared libraries. | ||
11470 | no_undefined_flag_CXX='${wl}-z,text' | ||
11471 | allow_undefined_flag_CXX='${wl}-z,nodefs' | ||
11472 | archive_cmds_need_lc_CXX=no | ||
11473 | hardcode_shlibpath_var_CXX=no | ||
11474 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
11475 | hardcode_libdir_separator_CXX=':' | ||
11476 | link_all_deplibs_CXX=yes | ||
11477 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | ||
11478 | runpath_var='LD_RUN_PATH' | ||
11479 | |||
11480 | case $cc_basename in | ||
11481 | CC*) | ||
11482 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11483 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11484 | ;; | ||
11485 | *) | ||
11486 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11487 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
11488 | ;; | ||
11489 | esac | ||
11265 | ;; | 11490 | ;; |
11266 | tandem*) | 11491 | tandem*) |
11267 | case $cc_basename in | 11492 | case $cc_basename in |
@@ -11396,6 +11621,14 @@ $rm -f confest.$objext | |||
11396 | 11621 | ||
11397 | # PORTME: override above test on systems where it is broken | 11622 | # PORTME: override above test on systems where it is broken |
11398 | case $host_os in | 11623 | case $host_os in |
11624 | interix3*) | ||
11625 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
11626 | # hack all around it, let's just trust "g++" to DTRT. | ||
11627 | predep_objects_CXX= | ||
11628 | postdep_objects_CXX= | ||
11629 | postdeps_CXX= | ||
11630 | ;; | ||
11631 | |||
11399 | solaris*) | 11632 | solaris*) |
11400 | case $cc_basename in | 11633 | case $cc_basename in |
11401 | CC*) | 11634 | CC*) |
@@ -11405,6 +11638,7 @@ solaris*) | |||
11405 | postdeps_CXX='-lCstd -lCrun' | 11638 | postdeps_CXX='-lCstd -lCrun' |
11406 | ;; | 11639 | ;; |
11407 | esac | 11640 | esac |
11641 | ;; | ||
11408 | esac | 11642 | esac |
11409 | 11643 | ||
11410 | 11644 | ||
@@ -11455,6 +11689,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
11455 | # DJGPP does not support shared libraries at all | 11689 | # DJGPP does not support shared libraries at all |
11456 | lt_prog_compiler_pic_CXX= | 11690 | lt_prog_compiler_pic_CXX= |
11457 | ;; | 11691 | ;; |
11692 | interix3*) | ||
11693 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
11694 | # Instead, we relocate shared libraries at runtime. | ||
11695 | ;; | ||
11458 | sysv4*MP*) | 11696 | sysv4*MP*) |
11459 | if test -d /usr/nec; then | 11697 | if test -d /usr/nec; then |
11460 | lt_prog_compiler_pic_CXX=-Kconform_pic | 11698 | lt_prog_compiler_pic_CXX=-Kconform_pic |
@@ -11524,14 +11762,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
11524 | case $cc_basename in | 11762 | case $cc_basename in |
11525 | CC*) | 11763 | CC*) |
11526 | lt_prog_compiler_wl_CXX='-Wl,' | 11764 | lt_prog_compiler_wl_CXX='-Wl,' |
11527 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 11765 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11528 | if test "$host_cpu" != ia64; then | 11766 | if test "$host_cpu" != ia64; then |
11529 | lt_prog_compiler_pic_CXX='+Z' | 11767 | lt_prog_compiler_pic_CXX='+Z' |
11530 | fi | 11768 | fi |
11531 | ;; | 11769 | ;; |
11532 | aCC*) | 11770 | aCC*) |
11533 | lt_prog_compiler_wl_CXX='-Wl,' | 11771 | lt_prog_compiler_wl_CXX='-Wl,' |
11534 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | 11772 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
11535 | case $host_cpu in | 11773 | case $host_cpu in |
11536 | hppa*64*|ia64*) | 11774 | hppa*64*|ia64*) |
11537 | # +Z the default | 11775 | # +Z the default |
@@ -11545,6 +11783,10 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
11545 | ;; | 11783 | ;; |
11546 | esac | 11784 | esac |
11547 | ;; | 11785 | ;; |
11786 | interix*) | ||
11787 | # This is c89, which is MS Visual C++ (no shared libs) | ||
11788 | # Anyone wants to do a port? | ||
11789 | ;; | ||
11548 | irix5* | irix6* | nonstopux*) | 11790 | irix5* | irix6* | nonstopux*) |
11549 | case $cc_basename in | 11791 | case $cc_basename in |
11550 | CC*) | 11792 | CC*) |
@@ -11624,15 +11866,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
11624 | ;; | 11866 | ;; |
11625 | psos*) | 11867 | psos*) |
11626 | ;; | 11868 | ;; |
11627 | sco*) | ||
11628 | case $cc_basename in | ||
11629 | CC*) | ||
11630 | lt_prog_compiler_pic_CXX='-fPIC' | ||
11631 | ;; | ||
11632 | *) | ||
11633 | ;; | ||
11634 | esac | ||
11635 | ;; | ||
11636 | solaris*) | 11869 | solaris*) |
11637 | case $cc_basename in | 11870 | case $cc_basename in |
11638 | CC*) | 11871 | CC*) |
@@ -11674,7 +11907,14 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
11674 | ;; | 11907 | ;; |
11675 | esac | 11908 | esac |
11676 | ;; | 11909 | ;; |
11677 | unixware*) | 11910 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11911 | case $cc_basename in | ||
11912 | CC*) | ||
11913 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11914 | lt_prog_compiler_pic_CXX='-KPIC' | ||
11915 | lt_prog_compiler_static_CXX='-Bstatic' | ||
11916 | ;; | ||
11917 | esac | ||
11678 | ;; | 11918 | ;; |
11679 | vxworks*) | 11919 | vxworks*) |
11680 | ;; | 11920 | ;; |
@@ -11710,17 +11950,17 @@ else | |||
11710 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 11950 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11711 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 11951 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11712 | -e 's:$: $lt_compiler_flag:'` | 11952 | -e 's:$: $lt_compiler_flag:'` |
11713 | (eval echo "\"\$as_me:11713: $lt_compile\"" >&5) | 11953 | (eval echo "\"\$as_me:11953: $lt_compile\"" >&5) |
11714 | (eval "$lt_compile" 2>conftest.err) | 11954 | (eval "$lt_compile" 2>conftest.err) |
11715 | ac_status=$? | 11955 | ac_status=$? |
11716 | cat conftest.err >&5 | 11956 | cat conftest.err >&5 |
11717 | echo "$as_me:11717: \$? = $ac_status" >&5 | 11957 | echo "$as_me:11957: \$? = $ac_status" >&5 |
11718 | if (exit $ac_status) && test -s "$ac_outfile"; then | 11958 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11719 | # The compiler can only warn and ignore the option if not recognized | 11959 | # The compiler can only warn and ignore the option if not recognized |
11720 | # So say no if there are warnings other than the usual output. | 11960 | # So say no if there are warnings other than the usual output. |
11721 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 11961 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11722 | $SED '/^$/d' conftest.err >conftest.er2 | 11962 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
11723 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 11963 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
11724 | lt_prog_compiler_pic_works_CXX=yes | 11964 | lt_prog_compiler_pic_works_CXX=yes |
11725 | fi | 11965 | fi |
11726 | fi | 11966 | fi |
@@ -11751,6 +11991,48 @@ case $host_os in | |||
11751 | ;; | 11991 | ;; |
11752 | esac | 11992 | esac |
11753 | 11993 | ||
11994 | # | ||
11995 | # Check to make sure the static flag actually works. | ||
11996 | # | ||
11997 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | ||
11998 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
11999 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | ||
12000 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | ||
12001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12002 | else | ||
12003 | lt_prog_compiler_static_works_CXX=no | ||
12004 | save_LDFLAGS="$LDFLAGS" | ||
12005 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
12006 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
12007 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
12008 | # The linker can only warn and ignore the option if not recognized | ||
12009 | # So say no if there are warnings | ||
12010 | if test -s conftest.err; then | ||
12011 | # Append any errors to the config.log. | ||
12012 | cat conftest.err 1>&5 | ||
12013 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
12014 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
12015 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
12016 | lt_prog_compiler_static_works_CXX=yes | ||
12017 | fi | ||
12018 | else | ||
12019 | lt_prog_compiler_static_works_CXX=yes | ||
12020 | fi | ||
12021 | fi | ||
12022 | $rm conftest* | ||
12023 | LDFLAGS="$save_LDFLAGS" | ||
12024 | |||
12025 | fi | ||
12026 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | ||
12027 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | ||
12028 | |||
12029 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | ||
12030 | : | ||
12031 | else | ||
12032 | lt_prog_compiler_static_CXX= | ||
12033 | fi | ||
12034 | |||
12035 | |||
11754 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 12036 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
11755 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 12037 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
11756 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | 12038 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
@@ -11772,18 +12054,18 @@ else | |||
11772 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 12054 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
11773 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 12055 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11774 | -e 's:$: $lt_compiler_flag:'` | 12056 | -e 's:$: $lt_compiler_flag:'` |
11775 | (eval echo "\"\$as_me:11775: $lt_compile\"" >&5) | 12057 | (eval echo "\"\$as_me:12057: $lt_compile\"" >&5) |
11776 | (eval "$lt_compile" 2>out/conftest.err) | 12058 | (eval "$lt_compile" 2>out/conftest.err) |
11777 | ac_status=$? | 12059 | ac_status=$? |
11778 | cat out/conftest.err >&5 | 12060 | cat out/conftest.err >&5 |
11779 | echo "$as_me:11779: \$? = $ac_status" >&5 | 12061 | echo "$as_me:12061: \$? = $ac_status" >&5 |
11780 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 12062 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
11781 | then | 12063 | then |
11782 | # The compiler can only warn and ignore the option if not recognized | 12064 | # The compiler can only warn and ignore the option if not recognized |
11783 | # So say no if there are warnings | 12065 | # So say no if there are warnings |
11784 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | 12066 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
11785 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | 12067 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
11786 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 12068 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
11787 | lt_cv_prog_compiler_c_o_CXX=yes | 12069 | lt_cv_prog_compiler_c_o_CXX=yes |
11788 | fi | 12070 | fi |
11789 | fi | 12071 | fi |
@@ -11844,6 +12126,9 @@ echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared librar | |||
11844 | cygwin* | mingw*) | 12126 | cygwin* | mingw*) |
11845 | 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' | 12127 | 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' |
11846 | ;; | 12128 | ;; |
12129 | kfreebsd*-gnu) | ||
12130 | link_all_deplibs_CXX=no | ||
12131 | ;; | ||
11847 | linux*) | 12132 | linux*) |
11848 | link_all_deplibs_CXX=no | 12133 | link_all_deplibs_CXX=no |
11849 | ;; | 12134 | ;; |
@@ -11856,11 +12141,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |||
11856 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | 12141 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 |
11857 | test "$ld_shlibs_CXX" = no && can_build_shared=no | 12142 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11858 | 12143 | ||
11859 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11860 | if test "$GCC" = yes; then | ||
11861 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11862 | fi | ||
11863 | |||
11864 | # | 12144 | # |
11865 | # Do we need to explicitly link libc? | 12145 | # Do we need to explicitly link libc? |
11866 | # | 12146 | # |
@@ -11893,6 +12173,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& | |||
11893 | libobjs=conftest.$ac_objext | 12173 | libobjs=conftest.$ac_objext |
11894 | deplibs= | 12174 | deplibs= |
11895 | wl=$lt_prog_compiler_wl_CXX | 12175 | wl=$lt_prog_compiler_wl_CXX |
12176 | pic_flag=$lt_prog_compiler_pic_CXX | ||
11896 | compiler_flags=-v | 12177 | compiler_flags=-v |
11897 | linker_flags=-v | 12178 | linker_flags=-v |
11898 | verstring= | 12179 | verstring= |
@@ -12174,10 +12455,15 @@ freebsd* | dragonfly*) | |||
12174 | shlibpath_overrides_runpath=yes | 12455 | shlibpath_overrides_runpath=yes |
12175 | hardcode_into_libs=yes | 12456 | hardcode_into_libs=yes |
12176 | ;; | 12457 | ;; |
12177 | *) # from 3.2 on | 12458 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12459 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
12178 | shlibpath_overrides_runpath=no | 12460 | shlibpath_overrides_runpath=no |
12179 | hardcode_into_libs=yes | 12461 | hardcode_into_libs=yes |
12180 | ;; | 12462 | ;; |
12463 | freebsd*) # from 4.6 on | ||
12464 | shlibpath_overrides_runpath=yes | ||
12465 | hardcode_into_libs=yes | ||
12466 | ;; | ||
12181 | esac | 12467 | esac |
12182 | ;; | 12468 | ;; |
12183 | 12469 | ||
@@ -12237,6 +12523,18 @@ hpux9* | hpux10* | hpux11*) | |||
12237 | postinstall_cmds='chmod 555 $lib' | 12523 | postinstall_cmds='chmod 555 $lib' |
12238 | ;; | 12524 | ;; |
12239 | 12525 | ||
12526 | interix3*) | ||
12527 | version_type=linux | ||
12528 | need_lib_prefix=no | ||
12529 | need_version=no | ||
12530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12531 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12532 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
12533 | shlibpath_var=LD_LIBRARY_PATH | ||
12534 | shlibpath_overrides_runpath=no | ||
12535 | hardcode_into_libs=yes | ||
12536 | ;; | ||
12537 | |||
12240 | irix5* | irix6* | nonstopux*) | 12538 | irix5* | irix6* | nonstopux*) |
12241 | case $host_os in | 12539 | case $host_os in |
12242 | nonstopux*) version_type=nonstopux ;; | 12540 | nonstopux*) version_type=nonstopux ;; |
@@ -12370,6 +12668,7 @@ nto-qnx*) | |||
12370 | 12668 | ||
12371 | openbsd*) | 12669 | openbsd*) |
12372 | version_type=sunos | 12670 | version_type=sunos |
12671 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
12373 | need_lib_prefix=no | 12672 | need_lib_prefix=no |
12374 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 12673 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12375 | case $host_os in | 12674 | case $host_os in |
@@ -12413,13 +12712,6 @@ osf3* | osf4* | osf5*) | |||
12413 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 12712 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
12414 | ;; | 12713 | ;; |
12415 | 12714 | ||
12416 | sco3.2v5*) | ||
12417 | version_type=osf | ||
12418 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12420 | shlibpath_var=LD_LIBRARY_PATH | ||
12421 | ;; | ||
12422 | |||
12423 | solaris*) | 12715 | solaris*) |
12424 | version_type=linux | 12716 | version_type=linux |
12425 | need_lib_prefix=no | 12717 | need_lib_prefix=no |
@@ -12445,7 +12737,7 @@ sunos4*) | |||
12445 | need_version=yes | 12737 | need_version=yes |
12446 | ;; | 12738 | ;; |
12447 | 12739 | ||
12448 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 12740 | sysv4 | sysv4.3*) |
12449 | version_type=linux | 12741 | version_type=linux |
12450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 12742 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12451 | soname_spec='${libname}${release}${shared_ext}$major' | 12743 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -12478,6 +12770,29 @@ sysv4*MP*) | |||
12478 | fi | 12770 | fi |
12479 | ;; | 12771 | ;; |
12480 | 12772 | ||
12773 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
12774 | version_type=freebsd-elf | ||
12775 | need_lib_prefix=no | ||
12776 | need_version=no | ||
12777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
12778 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12779 | shlibpath_var=LD_LIBRARY_PATH | ||
12780 | hardcode_into_libs=yes | ||
12781 | if test "$with_gnu_ld" = yes; then | ||
12782 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
12783 | shlibpath_overrides_runpath=no | ||
12784 | else | ||
12785 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
12786 | shlibpath_overrides_runpath=yes | ||
12787 | case $host_os in | ||
12788 | sco3.2v5*) | ||
12789 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
12790 | ;; | ||
12791 | esac | ||
12792 | fi | ||
12793 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
12794 | ;; | ||
12795 | |||
12481 | uts4*) | 12796 | uts4*) |
12482 | version_type=linux | 12797 | version_type=linux |
12483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 12798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -12493,6 +12808,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |||
12493 | echo "${ECHO_T}$dynamic_linker" >&6 | 12808 | echo "${ECHO_T}$dynamic_linker" >&6 |
12494 | test "$dynamic_linker" = no && can_build_shared=no | 12809 | test "$dynamic_linker" = no && can_build_shared=no |
12495 | 12810 | ||
12811 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
12812 | if test "$GCC" = yes; then | ||
12813 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
12814 | fi | ||
12815 | |||
12496 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 12816 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12497 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 12817 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
12498 | hardcode_action_CXX= | 12818 | hardcode_action_CXX= |
@@ -12530,834 +12850,6 @@ elif test "$shlibpath_overrides_runpath" = yes || | |||
12530 | enable_fast_install=needless | 12850 | enable_fast_install=needless |
12531 | fi | 12851 | fi |
12532 | 12852 | ||
12533 | striplib= | ||
12534 | old_striplib= | ||
12535 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
12536 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
12537 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
12538 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
12539 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
12540 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12541 | echo "${ECHO_T}yes" >&6 | ||
12542 | else | ||
12543 | # FIXME - insert some real tests, host_os isn't really good enough | ||
12544 | case $host_os in | ||
12545 | darwin*) | ||
12546 | if test -n "$STRIP" ; then | ||
12547 | striplib="$STRIP -x" | ||
12548 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12549 | echo "${ECHO_T}yes" >&6 | ||
12550 | else | ||
12551 | echo "$as_me:$LINENO: result: no" >&5 | ||
12552 | echo "${ECHO_T}no" >&6 | ||
12553 | fi | ||
12554 | ;; | ||
12555 | *) | ||
12556 | echo "$as_me:$LINENO: result: no" >&5 | ||
12557 | echo "${ECHO_T}no" >&6 | ||
12558 | ;; | ||
12559 | esac | ||
12560 | fi | ||
12561 | |||
12562 | if test "x$enable_dlopen" != xyes; then | ||
12563 | enable_dlopen=unknown | ||
12564 | enable_dlopen_self=unknown | ||
12565 | enable_dlopen_self_static=unknown | ||
12566 | else | ||
12567 | lt_cv_dlopen=no | ||
12568 | lt_cv_dlopen_libs= | ||
12569 | |||
12570 | case $host_os in | ||
12571 | beos*) | ||
12572 | lt_cv_dlopen="load_add_on" | ||
12573 | lt_cv_dlopen_libs= | ||
12574 | lt_cv_dlopen_self=yes | ||
12575 | ;; | ||
12576 | |||
12577 | mingw* | pw32*) | ||
12578 | lt_cv_dlopen="LoadLibrary" | ||
12579 | lt_cv_dlopen_libs= | ||
12580 | ;; | ||
12581 | |||
12582 | cygwin*) | ||
12583 | lt_cv_dlopen="dlopen" | ||
12584 | lt_cv_dlopen_libs= | ||
12585 | ;; | ||
12586 | |||
12587 | darwin*) | ||
12588 | # if libdl is installed we need to link against it | ||
12589 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12590 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12591 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12593 | else | ||
12594 | ac_check_lib_save_LIBS=$LIBS | ||
12595 | LIBS="-ldl $LIBS" | ||
12596 | cat >conftest.$ac_ext <<_ACEOF | ||
12597 | /* confdefs.h. */ | ||
12598 | _ACEOF | ||
12599 | cat confdefs.h >>conftest.$ac_ext | ||
12600 | cat >>conftest.$ac_ext <<_ACEOF | ||
12601 | /* end confdefs.h. */ | ||
12602 | |||
12603 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12604 | #ifdef __cplusplus | ||
12605 | extern "C" | ||
12606 | #endif | ||
12607 | /* We use char because int might match the return type of a gcc2 | ||
12608 | builtin and then its argument prototype would still apply. */ | ||
12609 | char dlopen (); | ||
12610 | int | ||
12611 | main () | ||
12612 | { | ||
12613 | dlopen (); | ||
12614 | ; | ||
12615 | return 0; | ||
12616 | } | ||
12617 | _ACEOF | ||
12618 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12619 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12620 | (eval $ac_link) 2>conftest.er1 | ||
12621 | ac_status=$? | ||
12622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12623 | rm -f conftest.er1 | ||
12624 | cat conftest.err >&5 | ||
12625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12626 | (exit $ac_status); } && | ||
12627 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12629 | (eval $ac_try) 2>&5 | ||
12630 | ac_status=$? | ||
12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12632 | (exit $ac_status); }; } && | ||
12633 | { ac_try='test -s conftest$ac_exeext' | ||
12634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12635 | (eval $ac_try) 2>&5 | ||
12636 | ac_status=$? | ||
12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12638 | (exit $ac_status); }; }; then | ||
12639 | ac_cv_lib_dl_dlopen=yes | ||
12640 | else | ||
12641 | echo "$as_me: failed program was:" >&5 | ||
12642 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12643 | |||
12644 | ac_cv_lib_dl_dlopen=no | ||
12645 | fi | ||
12646 | rm -f conftest.err conftest.$ac_objext \ | ||
12647 | conftest$ac_exeext conftest.$ac_ext | ||
12648 | LIBS=$ac_check_lib_save_LIBS | ||
12649 | fi | ||
12650 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12651 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12652 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12653 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12654 | else | ||
12655 | |||
12656 | lt_cv_dlopen="dyld" | ||
12657 | lt_cv_dlopen_libs= | ||
12658 | lt_cv_dlopen_self=yes | ||
12659 | |||
12660 | fi | ||
12661 | |||
12662 | ;; | ||
12663 | |||
12664 | *) | ||
12665 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
12666 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
12667 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
12668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12669 | else | ||
12670 | cat >conftest.$ac_ext <<_ACEOF | ||
12671 | /* confdefs.h. */ | ||
12672 | _ACEOF | ||
12673 | cat confdefs.h >>conftest.$ac_ext | ||
12674 | cat >>conftest.$ac_ext <<_ACEOF | ||
12675 | /* end confdefs.h. */ | ||
12676 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
12677 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12678 | #define shl_load innocuous_shl_load | ||
12679 | |||
12680 | /* System header to define __stub macros and hopefully few prototypes, | ||
12681 | which can conflict with char shl_load (); below. | ||
12682 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12683 | <limits.h> exists even on freestanding compilers. */ | ||
12684 | |||
12685 | #ifdef __STDC__ | ||
12686 | # include <limits.h> | ||
12687 | #else | ||
12688 | # include <assert.h> | ||
12689 | #endif | ||
12690 | |||
12691 | #undef shl_load | ||
12692 | |||
12693 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12694 | #ifdef __cplusplus | ||
12695 | extern "C" | ||
12696 | { | ||
12697 | #endif | ||
12698 | /* We use char because int might match the return type of a gcc2 | ||
12699 | builtin and then its argument prototype would still apply. */ | ||
12700 | char shl_load (); | ||
12701 | /* The GNU C library defines this for functions which it implements | ||
12702 | to always fail with ENOSYS. Some functions are actually named | ||
12703 | something starting with __ and the normal name is an alias. */ | ||
12704 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
12705 | choke me | ||
12706 | #else | ||
12707 | char (*f) () = shl_load; | ||
12708 | #endif | ||
12709 | #ifdef __cplusplus | ||
12710 | } | ||
12711 | #endif | ||
12712 | |||
12713 | int | ||
12714 | main () | ||
12715 | { | ||
12716 | return f != shl_load; | ||
12717 | ; | ||
12718 | return 0; | ||
12719 | } | ||
12720 | _ACEOF | ||
12721 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12723 | (eval $ac_link) 2>conftest.er1 | ||
12724 | ac_status=$? | ||
12725 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12726 | rm -f conftest.er1 | ||
12727 | cat conftest.err >&5 | ||
12728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12729 | (exit $ac_status); } && | ||
12730 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12732 | (eval $ac_try) 2>&5 | ||
12733 | ac_status=$? | ||
12734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12735 | (exit $ac_status); }; } && | ||
12736 | { ac_try='test -s conftest$ac_exeext' | ||
12737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12738 | (eval $ac_try) 2>&5 | ||
12739 | ac_status=$? | ||
12740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12741 | (exit $ac_status); }; }; then | ||
12742 | ac_cv_func_shl_load=yes | ||
12743 | else | ||
12744 | echo "$as_me: failed program was:" >&5 | ||
12745 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12746 | |||
12747 | ac_cv_func_shl_load=no | ||
12748 | fi | ||
12749 | rm -f conftest.err conftest.$ac_objext \ | ||
12750 | conftest$ac_exeext conftest.$ac_ext | ||
12751 | fi | ||
12752 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
12753 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
12754 | if test $ac_cv_func_shl_load = yes; then | ||
12755 | lt_cv_dlopen="shl_load" | ||
12756 | else | ||
12757 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
12758 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
12759 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
12760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12761 | else | ||
12762 | ac_check_lib_save_LIBS=$LIBS | ||
12763 | LIBS="-ldld $LIBS" | ||
12764 | cat >conftest.$ac_ext <<_ACEOF | ||
12765 | /* confdefs.h. */ | ||
12766 | _ACEOF | ||
12767 | cat confdefs.h >>conftest.$ac_ext | ||
12768 | cat >>conftest.$ac_ext <<_ACEOF | ||
12769 | /* end confdefs.h. */ | ||
12770 | |||
12771 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12772 | #ifdef __cplusplus | ||
12773 | extern "C" | ||
12774 | #endif | ||
12775 | /* We use char because int might match the return type of a gcc2 | ||
12776 | builtin and then its argument prototype would still apply. */ | ||
12777 | char shl_load (); | ||
12778 | int | ||
12779 | main () | ||
12780 | { | ||
12781 | shl_load (); | ||
12782 | ; | ||
12783 | return 0; | ||
12784 | } | ||
12785 | _ACEOF | ||
12786 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12787 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12788 | (eval $ac_link) 2>conftest.er1 | ||
12789 | ac_status=$? | ||
12790 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12791 | rm -f conftest.er1 | ||
12792 | cat conftest.err >&5 | ||
12793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12794 | (exit $ac_status); } && | ||
12795 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12797 | (eval $ac_try) 2>&5 | ||
12798 | ac_status=$? | ||
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12800 | (exit $ac_status); }; } && | ||
12801 | { ac_try='test -s conftest$ac_exeext' | ||
12802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12803 | (eval $ac_try) 2>&5 | ||
12804 | ac_status=$? | ||
12805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12806 | (exit $ac_status); }; }; then | ||
12807 | ac_cv_lib_dld_shl_load=yes | ||
12808 | else | ||
12809 | echo "$as_me: failed program was:" >&5 | ||
12810 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12811 | |||
12812 | ac_cv_lib_dld_shl_load=no | ||
12813 | fi | ||
12814 | rm -f conftest.err conftest.$ac_objext \ | ||
12815 | conftest$ac_exeext conftest.$ac_ext | ||
12816 | LIBS=$ac_check_lib_save_LIBS | ||
12817 | fi | ||
12818 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
12819 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
12820 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
12821 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
12822 | else | ||
12823 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
12824 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
12825 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
12826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12827 | else | ||
12828 | cat >conftest.$ac_ext <<_ACEOF | ||
12829 | /* confdefs.h. */ | ||
12830 | _ACEOF | ||
12831 | cat confdefs.h >>conftest.$ac_ext | ||
12832 | cat >>conftest.$ac_ext <<_ACEOF | ||
12833 | /* end confdefs.h. */ | ||
12834 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
12835 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12836 | #define dlopen innocuous_dlopen | ||
12837 | |||
12838 | /* System header to define __stub macros and hopefully few prototypes, | ||
12839 | which can conflict with char dlopen (); below. | ||
12840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12841 | <limits.h> exists even on freestanding compilers. */ | ||
12842 | |||
12843 | #ifdef __STDC__ | ||
12844 | # include <limits.h> | ||
12845 | #else | ||
12846 | # include <assert.h> | ||
12847 | #endif | ||
12848 | |||
12849 | #undef dlopen | ||
12850 | |||
12851 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12852 | #ifdef __cplusplus | ||
12853 | extern "C" | ||
12854 | { | ||
12855 | #endif | ||
12856 | /* We use char because int might match the return type of a gcc2 | ||
12857 | builtin and then its argument prototype would still apply. */ | ||
12858 | char dlopen (); | ||
12859 | /* The GNU C library defines this for functions which it implements | ||
12860 | to always fail with ENOSYS. Some functions are actually named | ||
12861 | something starting with __ and the normal name is an alias. */ | ||
12862 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
12863 | choke me | ||
12864 | #else | ||
12865 | char (*f) () = dlopen; | ||
12866 | #endif | ||
12867 | #ifdef __cplusplus | ||
12868 | } | ||
12869 | #endif | ||
12870 | |||
12871 | int | ||
12872 | main () | ||
12873 | { | ||
12874 | return f != dlopen; | ||
12875 | ; | ||
12876 | return 0; | ||
12877 | } | ||
12878 | _ACEOF | ||
12879 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12881 | (eval $ac_link) 2>conftest.er1 | ||
12882 | ac_status=$? | ||
12883 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12884 | rm -f conftest.er1 | ||
12885 | cat conftest.err >&5 | ||
12886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12887 | (exit $ac_status); } && | ||
12888 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12890 | (eval $ac_try) 2>&5 | ||
12891 | ac_status=$? | ||
12892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12893 | (exit $ac_status); }; } && | ||
12894 | { ac_try='test -s conftest$ac_exeext' | ||
12895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12896 | (eval $ac_try) 2>&5 | ||
12897 | ac_status=$? | ||
12898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12899 | (exit $ac_status); }; }; then | ||
12900 | ac_cv_func_dlopen=yes | ||
12901 | else | ||
12902 | echo "$as_me: failed program was:" >&5 | ||
12903 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12904 | |||
12905 | ac_cv_func_dlopen=no | ||
12906 | fi | ||
12907 | rm -f conftest.err conftest.$ac_objext \ | ||
12908 | conftest$ac_exeext conftest.$ac_ext | ||
12909 | fi | ||
12910 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
12911 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
12912 | if test $ac_cv_func_dlopen = yes; then | ||
12913 | lt_cv_dlopen="dlopen" | ||
12914 | else | ||
12915 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12916 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12917 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12919 | else | ||
12920 | ac_check_lib_save_LIBS=$LIBS | ||
12921 | LIBS="-ldl $LIBS" | ||
12922 | cat >conftest.$ac_ext <<_ACEOF | ||
12923 | /* confdefs.h. */ | ||
12924 | _ACEOF | ||
12925 | cat confdefs.h >>conftest.$ac_ext | ||
12926 | cat >>conftest.$ac_ext <<_ACEOF | ||
12927 | /* end confdefs.h. */ | ||
12928 | |||
12929 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12930 | #ifdef __cplusplus | ||
12931 | extern "C" | ||
12932 | #endif | ||
12933 | /* We use char because int might match the return type of a gcc2 | ||
12934 | builtin and then its argument prototype would still apply. */ | ||
12935 | char dlopen (); | ||
12936 | int | ||
12937 | main () | ||
12938 | { | ||
12939 | dlopen (); | ||
12940 | ; | ||
12941 | return 0; | ||
12942 | } | ||
12943 | _ACEOF | ||
12944 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12946 | (eval $ac_link) 2>conftest.er1 | ||
12947 | ac_status=$? | ||
12948 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12949 | rm -f conftest.er1 | ||
12950 | cat conftest.err >&5 | ||
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12952 | (exit $ac_status); } && | ||
12953 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12955 | (eval $ac_try) 2>&5 | ||
12956 | ac_status=$? | ||
12957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12958 | (exit $ac_status); }; } && | ||
12959 | { ac_try='test -s conftest$ac_exeext' | ||
12960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12961 | (eval $ac_try) 2>&5 | ||
12962 | ac_status=$? | ||
12963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12964 | (exit $ac_status); }; }; then | ||
12965 | ac_cv_lib_dl_dlopen=yes | ||
12966 | else | ||
12967 | echo "$as_me: failed program was:" >&5 | ||
12968 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12969 | |||
12970 | ac_cv_lib_dl_dlopen=no | ||
12971 | fi | ||
12972 | rm -f conftest.err conftest.$ac_objext \ | ||
12973 | conftest$ac_exeext conftest.$ac_ext | ||
12974 | LIBS=$ac_check_lib_save_LIBS | ||
12975 | fi | ||
12976 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12977 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12978 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12979 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12980 | else | ||
12981 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
12982 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
12983 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
12984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12985 | else | ||
12986 | ac_check_lib_save_LIBS=$LIBS | ||
12987 | LIBS="-lsvld $LIBS" | ||
12988 | cat >conftest.$ac_ext <<_ACEOF | ||
12989 | /* confdefs.h. */ | ||
12990 | _ACEOF | ||
12991 | cat confdefs.h >>conftest.$ac_ext | ||
12992 | cat >>conftest.$ac_ext <<_ACEOF | ||
12993 | /* end confdefs.h. */ | ||
12994 | |||
12995 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12996 | #ifdef __cplusplus | ||
12997 | extern "C" | ||
12998 | #endif | ||
12999 | /* We use char because int might match the return type of a gcc2 | ||
13000 | builtin and then its argument prototype would still apply. */ | ||
13001 | char dlopen (); | ||
13002 | int | ||
13003 | main () | ||
13004 | { | ||
13005 | dlopen (); | ||
13006 | ; | ||
13007 | return 0; | ||
13008 | } | ||
13009 | _ACEOF | ||
13010 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13012 | (eval $ac_link) 2>conftest.er1 | ||
13013 | ac_status=$? | ||
13014 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13015 | rm -f conftest.er1 | ||
13016 | cat conftest.err >&5 | ||
13017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13018 | (exit $ac_status); } && | ||
13019 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
13020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13021 | (eval $ac_try) 2>&5 | ||
13022 | ac_status=$? | ||
13023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13024 | (exit $ac_status); }; } && | ||
13025 | { ac_try='test -s conftest$ac_exeext' | ||
13026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13027 | (eval $ac_try) 2>&5 | ||
13028 | ac_status=$? | ||
13029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13030 | (exit $ac_status); }; }; then | ||
13031 | ac_cv_lib_svld_dlopen=yes | ||
13032 | else | ||
13033 | echo "$as_me: failed program was:" >&5 | ||
13034 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13035 | |||
13036 | ac_cv_lib_svld_dlopen=no | ||
13037 | fi | ||
13038 | rm -f conftest.err conftest.$ac_objext \ | ||
13039 | conftest$ac_exeext conftest.$ac_ext | ||
13040 | LIBS=$ac_check_lib_save_LIBS | ||
13041 | fi | ||
13042 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
13043 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
13044 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
13045 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
13046 | else | ||
13047 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
13048 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
13049 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
13050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13051 | else | ||
13052 | ac_check_lib_save_LIBS=$LIBS | ||
13053 | LIBS="-ldld $LIBS" | ||
13054 | cat >conftest.$ac_ext <<_ACEOF | ||
13055 | /* confdefs.h. */ | ||
13056 | _ACEOF | ||
13057 | cat confdefs.h >>conftest.$ac_ext | ||
13058 | cat >>conftest.$ac_ext <<_ACEOF | ||
13059 | /* end confdefs.h. */ | ||
13060 | |||
13061 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
13062 | #ifdef __cplusplus | ||
13063 | extern "C" | ||
13064 | #endif | ||
13065 | /* We use char because int might match the return type of a gcc2 | ||
13066 | builtin and then its argument prototype would still apply. */ | ||
13067 | char dld_link (); | ||
13068 | int | ||
13069 | main () | ||
13070 | { | ||
13071 | dld_link (); | ||
13072 | ; | ||
13073 | return 0; | ||
13074 | } | ||
13075 | _ACEOF | ||
13076 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13077 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13078 | (eval $ac_link) 2>conftest.er1 | ||
13079 | ac_status=$? | ||
13080 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13081 | rm -f conftest.er1 | ||
13082 | cat conftest.err >&5 | ||
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13084 | (exit $ac_status); } && | ||
13085 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
13086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13087 | (eval $ac_try) 2>&5 | ||
13088 | ac_status=$? | ||
13089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13090 | (exit $ac_status); }; } && | ||
13091 | { ac_try='test -s conftest$ac_exeext' | ||
13092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
13093 | (eval $ac_try) 2>&5 | ||
13094 | ac_status=$? | ||
13095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13096 | (exit $ac_status); }; }; then | ||
13097 | ac_cv_lib_dld_dld_link=yes | ||
13098 | else | ||
13099 | echo "$as_me: failed program was:" >&5 | ||
13100 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13101 | |||
13102 | ac_cv_lib_dld_dld_link=no | ||
13103 | fi | ||
13104 | rm -f conftest.err conftest.$ac_objext \ | ||
13105 | conftest$ac_exeext conftest.$ac_ext | ||
13106 | LIBS=$ac_check_lib_save_LIBS | ||
13107 | fi | ||
13108 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
13109 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
13110 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
13111 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
13112 | fi | ||
13113 | |||
13114 | |||
13115 | fi | ||
13116 | |||
13117 | |||
13118 | fi | ||
13119 | |||
13120 | |||
13121 | fi | ||
13122 | |||
13123 | |||
13124 | fi | ||
13125 | |||
13126 | |||
13127 | fi | ||
13128 | |||
13129 | ;; | ||
13130 | esac | ||
13131 | |||
13132 | if test "x$lt_cv_dlopen" != xno; then | ||
13133 | enable_dlopen=yes | ||
13134 | else | ||
13135 | enable_dlopen=no | ||
13136 | fi | ||
13137 | |||
13138 | case $lt_cv_dlopen in | ||
13139 | dlopen) | ||
13140 | save_CPPFLAGS="$CPPFLAGS" | ||
13141 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
13142 | |||
13143 | save_LDFLAGS="$LDFLAGS" | ||
13144 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
13145 | |||
13146 | save_LIBS="$LIBS" | ||
13147 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
13148 | |||
13149 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
13150 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
13151 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
13152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13153 | else | ||
13154 | if test "$cross_compiling" = yes; then : | ||
13155 | lt_cv_dlopen_self=cross | ||
13156 | else | ||
13157 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
13158 | lt_status=$lt_dlunknown | ||
13159 | cat > conftest.$ac_ext <<EOF | ||
13160 | #line 13160 "configure" | ||
13161 | #include "confdefs.h" | ||
13162 | |||
13163 | #if HAVE_DLFCN_H | ||
13164 | #include <dlfcn.h> | ||
13165 | #endif | ||
13166 | |||
13167 | #include <stdio.h> | ||
13168 | |||
13169 | #ifdef RTLD_GLOBAL | ||
13170 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
13171 | #else | ||
13172 | # ifdef DL_GLOBAL | ||
13173 | # define LT_DLGLOBAL DL_GLOBAL | ||
13174 | # else | ||
13175 | # define LT_DLGLOBAL 0 | ||
13176 | # endif | ||
13177 | #endif | ||
13178 | |||
13179 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
13180 | find out it does not work in some platform. */ | ||
13181 | #ifndef LT_DLLAZY_OR_NOW | ||
13182 | # ifdef RTLD_LAZY | ||
13183 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
13184 | # else | ||
13185 | # ifdef DL_LAZY | ||
13186 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
13187 | # else | ||
13188 | # ifdef RTLD_NOW | ||
13189 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
13190 | # else | ||
13191 | # ifdef DL_NOW | ||
13192 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
13193 | # else | ||
13194 | # define LT_DLLAZY_OR_NOW 0 | ||
13195 | # endif | ||
13196 | # endif | ||
13197 | # endif | ||
13198 | # endif | ||
13199 | #endif | ||
13200 | |||
13201 | #ifdef __cplusplus | ||
13202 | extern "C" void exit (int); | ||
13203 | #endif | ||
13204 | |||
13205 | void fnord() { int i=42;} | ||
13206 | int main () | ||
13207 | { | ||
13208 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
13209 | int status = $lt_dlunknown; | ||
13210 | |||
13211 | if (self) | ||
13212 | { | ||
13213 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
13214 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
13215 | /* dlclose (self); */ | ||
13216 | } | ||
13217 | |||
13218 | exit (status); | ||
13219 | } | ||
13220 | EOF | ||
13221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13222 | (eval $ac_link) 2>&5 | ||
13223 | ac_status=$? | ||
13224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13225 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
13226 | (./conftest; exit; ) >&5 2>/dev/null | ||
13227 | lt_status=$? | ||
13228 | case x$lt_status in | ||
13229 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
13230 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
13231 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
13232 | esac | ||
13233 | else : | ||
13234 | # compilation failed | ||
13235 | lt_cv_dlopen_self=no | ||
13236 | fi | ||
13237 | fi | ||
13238 | rm -fr conftest* | ||
13239 | |||
13240 | |||
13241 | fi | ||
13242 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
13243 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
13244 | |||
13245 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
13246 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
13247 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
13248 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
13249 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
13250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13251 | else | ||
13252 | if test "$cross_compiling" = yes; then : | ||
13253 | lt_cv_dlopen_self_static=cross | ||
13254 | else | ||
13255 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
13256 | lt_status=$lt_dlunknown | ||
13257 | cat > conftest.$ac_ext <<EOF | ||
13258 | #line 13258 "configure" | ||
13259 | #include "confdefs.h" | ||
13260 | |||
13261 | #if HAVE_DLFCN_H | ||
13262 | #include <dlfcn.h> | ||
13263 | #endif | ||
13264 | |||
13265 | #include <stdio.h> | ||
13266 | |||
13267 | #ifdef RTLD_GLOBAL | ||
13268 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
13269 | #else | ||
13270 | # ifdef DL_GLOBAL | ||
13271 | # define LT_DLGLOBAL DL_GLOBAL | ||
13272 | # else | ||
13273 | # define LT_DLGLOBAL 0 | ||
13274 | # endif | ||
13275 | #endif | ||
13276 | |||
13277 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
13278 | find out it does not work in some platform. */ | ||
13279 | #ifndef LT_DLLAZY_OR_NOW | ||
13280 | # ifdef RTLD_LAZY | ||
13281 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
13282 | # else | ||
13283 | # ifdef DL_LAZY | ||
13284 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
13285 | # else | ||
13286 | # ifdef RTLD_NOW | ||
13287 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
13288 | # else | ||
13289 | # ifdef DL_NOW | ||
13290 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
13291 | # else | ||
13292 | # define LT_DLLAZY_OR_NOW 0 | ||
13293 | # endif | ||
13294 | # endif | ||
13295 | # endif | ||
13296 | # endif | ||
13297 | #endif | ||
13298 | |||
13299 | #ifdef __cplusplus | ||
13300 | extern "C" void exit (int); | ||
13301 | #endif | ||
13302 | |||
13303 | void fnord() { int i=42;} | ||
13304 | int main () | ||
13305 | { | ||
13306 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
13307 | int status = $lt_dlunknown; | ||
13308 | |||
13309 | if (self) | ||
13310 | { | ||
13311 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
13312 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
13313 | /* dlclose (self); */ | ||
13314 | } | ||
13315 | |||
13316 | exit (status); | ||
13317 | } | ||
13318 | EOF | ||
13319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13320 | (eval $ac_link) 2>&5 | ||
13321 | ac_status=$? | ||
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13323 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
13324 | (./conftest; exit; ) >&5 2>/dev/null | ||
13325 | lt_status=$? | ||
13326 | case x$lt_status in | ||
13327 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13328 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13329 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
13330 | esac | ||
13331 | else : | ||
13332 | # compilation failed | ||
13333 | lt_cv_dlopen_self_static=no | ||
13334 | fi | ||
13335 | fi | ||
13336 | rm -fr conftest* | ||
13337 | |||
13338 | |||
13339 | fi | ||
13340 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
13341 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
13342 | fi | ||
13343 | |||
13344 | CPPFLAGS="$save_CPPFLAGS" | ||
13345 | LDFLAGS="$save_LDFLAGS" | ||
13346 | LIBS="$save_LIBS" | ||
13347 | ;; | ||
13348 | esac | ||
13349 | |||
13350 | case $lt_cv_dlopen_self in | ||
13351 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
13352 | *) enable_dlopen_self=unknown ;; | ||
13353 | esac | ||
13354 | |||
13355 | case $lt_cv_dlopen_self_static in | ||
13356 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
13357 | *) enable_dlopen_self_static=unknown ;; | ||
13358 | esac | ||
13359 | fi | ||
13360 | |||
13361 | 12853 | ||
13362 | # The else clause should only fire when bootstrapping the | 12854 | # The else clause should only fire when bootstrapping the |
13363 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 12855 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
@@ -13372,7 +12864,7 @@ if test -f "$ltmain"; then | |||
13372 | # Now quote all the things that may contain metacharacters while being | 12864 | # Now quote all the things that may contain metacharacters while being |
13373 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 12865 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13374 | # variables and quote the copies for generation of the libtool script. | 12866 | # variables and quote the copies for generation of the libtool script. |
13375 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 12867 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13376 | SED SHELL STRIP \ | 12868 | SED SHELL STRIP \ |
13377 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 12869 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13378 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 12870 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -13490,6 +12982,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
13490 | # A C compiler. | 12982 | # A C compiler. |
13491 | LTCC=$lt_LTCC | 12983 | LTCC=$lt_LTCC |
13492 | 12984 | ||
12985 | # LTCC compiler flags. | ||
12986 | LTCFLAGS=$lt_LTCFLAGS | ||
12987 | |||
13493 | # A language-specific compiler. | 12988 | # A language-specific compiler. |
13494 | CC=$lt_compiler_CXX | 12989 | CC=$lt_compiler_CXX |
13495 | 12990 | ||
@@ -13832,6 +13327,9 @@ lt_simple_link_test_code=" program t\n end\n" | |||
13832 | # If no C compiler was specified, use CC. | 13327 | # If no C compiler was specified, use CC. |
13833 | LTCC=${LTCC-"$CC"} | 13328 | LTCC=${LTCC-"$CC"} |
13834 | 13329 | ||
13330 | # If no C compiler flags were specified, use CFLAGS. | ||
13331 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
13332 | |||
13835 | # Allow CC to be a program name with arguments. | 13333 | # Allow CC to be a program name with arguments. |
13836 | compiler=$CC | 13334 | compiler=$CC |
13837 | 13335 | ||
@@ -13839,13 +13337,13 @@ compiler=$CC | |||
13839 | # save warnings/boilerplate of simple test code | 13337 | # save warnings/boilerplate of simple test code |
13840 | ac_outfile=conftest.$ac_objext | 13338 | ac_outfile=conftest.$ac_objext |
13841 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 13339 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13842 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 13340 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13843 | _lt_compiler_boilerplate=`cat conftest.err` | 13341 | _lt_compiler_boilerplate=`cat conftest.err` |
13844 | $rm conftest* | 13342 | $rm conftest* |
13845 | 13343 | ||
13846 | ac_outfile=conftest.$ac_objext | 13344 | ac_outfile=conftest.$ac_objext |
13847 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 13345 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13848 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 13346 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13849 | _lt_linker_boilerplate=`cat conftest.err` | 13347 | _lt_linker_boilerplate=`cat conftest.err` |
13850 | $rm conftest* | 13348 | $rm conftest* |
13851 | 13349 | ||
@@ -13901,8 +13399,6 @@ test "$enable_shared" = yes || enable_static=yes | |||
13901 | echo "$as_me:$LINENO: result: $enable_static" >&5 | 13399 | echo "$as_me:$LINENO: result: $enable_static" >&5 |
13902 | echo "${ECHO_T}$enable_static" >&6 | 13400 | echo "${ECHO_T}$enable_static" >&6 |
13903 | 13401 | ||
13904 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
13905 | |||
13906 | GCC_F77="$G77" | 13402 | GCC_F77="$G77" |
13907 | LD_F77="$LD" | 13403 | LD_F77="$LD" |
13908 | 13404 | ||
@@ -13949,6 +13445,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
13949 | lt_prog_compiler_pic_F77='-fno-common' | 13445 | lt_prog_compiler_pic_F77='-fno-common' |
13950 | ;; | 13446 | ;; |
13951 | 13447 | ||
13448 | interix3*) | ||
13449 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
13450 | # Instead, we relocate shared libraries at runtime. | ||
13451 | ;; | ||
13452 | |||
13952 | msdosdjgpp*) | 13453 | msdosdjgpp*) |
13953 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 13454 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13954 | # on systems that don't support them. | 13455 | # on systems that don't support them. |
@@ -14063,11 +13564,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
14063 | lt_prog_compiler_static_F77='-non_shared' | 13564 | lt_prog_compiler_static_F77='-non_shared' |
14064 | ;; | 13565 | ;; |
14065 | 13566 | ||
14066 | sco3.2v5*) | ||
14067 | lt_prog_compiler_pic_F77='-Kpic' | ||
14068 | lt_prog_compiler_static_F77='-dn' | ||
14069 | ;; | ||
14070 | |||
14071 | solaris*) | 13567 | solaris*) |
14072 | lt_prog_compiler_pic_F77='-KPIC' | 13568 | lt_prog_compiler_pic_F77='-KPIC' |
14073 | lt_prog_compiler_static_F77='-Bstatic' | 13569 | lt_prog_compiler_static_F77='-Bstatic' |
@@ -14085,7 +13581,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
14085 | lt_prog_compiler_static_F77='-Bstatic' | 13581 | lt_prog_compiler_static_F77='-Bstatic' |
14086 | ;; | 13582 | ;; |
14087 | 13583 | ||
14088 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 13584 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14089 | lt_prog_compiler_wl_F77='-Wl,' | 13585 | lt_prog_compiler_wl_F77='-Wl,' |
14090 | lt_prog_compiler_pic_F77='-KPIC' | 13586 | lt_prog_compiler_pic_F77='-KPIC' |
14091 | lt_prog_compiler_static_F77='-Bstatic' | 13587 | lt_prog_compiler_static_F77='-Bstatic' |
@@ -14098,6 +13594,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
14098 | fi | 13594 | fi |
14099 | ;; | 13595 | ;; |
14100 | 13596 | ||
13597 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
13598 | lt_prog_compiler_wl_F77='-Wl,' | ||
13599 | lt_prog_compiler_pic_F77='-KPIC' | ||
13600 | lt_prog_compiler_static_F77='-Bstatic' | ||
13601 | ;; | ||
13602 | |||
14101 | unicos*) | 13603 | unicos*) |
14102 | lt_prog_compiler_wl_F77='-Wl,' | 13604 | lt_prog_compiler_wl_F77='-Wl,' |
14103 | lt_prog_compiler_can_build_shared_F77=no | 13605 | lt_prog_compiler_can_build_shared_F77=no |
@@ -14140,17 +13642,17 @@ else | |||
14140 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 13642 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14141 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 13643 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14142 | -e 's:$: $lt_compiler_flag:'` | 13644 | -e 's:$: $lt_compiler_flag:'` |
14143 | (eval echo "\"\$as_me:14143: $lt_compile\"" >&5) | 13645 | (eval echo "\"\$as_me:13645: $lt_compile\"" >&5) |
14144 | (eval "$lt_compile" 2>conftest.err) | 13646 | (eval "$lt_compile" 2>conftest.err) |
14145 | ac_status=$? | 13647 | ac_status=$? |
14146 | cat conftest.err >&5 | 13648 | cat conftest.err >&5 |
14147 | echo "$as_me:14147: \$? = $ac_status" >&5 | 13649 | echo "$as_me:13649: \$? = $ac_status" >&5 |
14148 | if (exit $ac_status) && test -s "$ac_outfile"; then | 13650 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14149 | # The compiler can only warn and ignore the option if not recognized | 13651 | # The compiler can only warn and ignore the option if not recognized |
14150 | # So say no if there are warnings other than the usual output. | 13652 | # So say no if there are warnings other than the usual output. |
14151 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 13653 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14152 | $SED '/^$/d' conftest.err >conftest.er2 | 13654 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14153 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 13655 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14154 | lt_prog_compiler_pic_works_F77=yes | 13656 | lt_prog_compiler_pic_works_F77=yes |
14155 | fi | 13657 | fi |
14156 | fi | 13658 | fi |
@@ -14181,6 +13683,48 @@ case $host_os in | |||
14181 | ;; | 13683 | ;; |
14182 | esac | 13684 | esac |
14183 | 13685 | ||
13686 | # | ||
13687 | # Check to make sure the static flag actually works. | ||
13688 | # | ||
13689 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | ||
13690 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
13691 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | ||
13692 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | ||
13693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13694 | else | ||
13695 | lt_prog_compiler_static_works_F77=no | ||
13696 | save_LDFLAGS="$LDFLAGS" | ||
13697 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
13698 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
13699 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
13700 | # The linker can only warn and ignore the option if not recognized | ||
13701 | # So say no if there are warnings | ||
13702 | if test -s conftest.err; then | ||
13703 | # Append any errors to the config.log. | ||
13704 | cat conftest.err 1>&5 | ||
13705 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
13706 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
13707 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
13708 | lt_prog_compiler_static_works_F77=yes | ||
13709 | fi | ||
13710 | else | ||
13711 | lt_prog_compiler_static_works_F77=yes | ||
13712 | fi | ||
13713 | fi | ||
13714 | $rm conftest* | ||
13715 | LDFLAGS="$save_LDFLAGS" | ||
13716 | |||
13717 | fi | ||
13718 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | ||
13719 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | ||
13720 | |||
13721 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | ||
13722 | : | ||
13723 | else | ||
13724 | lt_prog_compiler_static_F77= | ||
13725 | fi | ||
13726 | |||
13727 | |||
14184 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 13728 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14185 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 13729 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
14186 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | 13730 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
@@ -14202,18 +13746,18 @@ else | |||
14202 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 13746 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14203 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 13747 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14204 | -e 's:$: $lt_compiler_flag:'` | 13748 | -e 's:$: $lt_compiler_flag:'` |
14205 | (eval echo "\"\$as_me:14205: $lt_compile\"" >&5) | 13749 | (eval echo "\"\$as_me:13749: $lt_compile\"" >&5) |
14206 | (eval "$lt_compile" 2>out/conftest.err) | 13750 | (eval "$lt_compile" 2>out/conftest.err) |
14207 | ac_status=$? | 13751 | ac_status=$? |
14208 | cat out/conftest.err >&5 | 13752 | cat out/conftest.err >&5 |
14209 | echo "$as_me:14209: \$? = $ac_status" >&5 | 13753 | echo "$as_me:13753: \$? = $ac_status" >&5 |
14210 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 13754 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14211 | then | 13755 | then |
14212 | # The compiler can only warn and ignore the option if not recognized | 13756 | # The compiler can only warn and ignore the option if not recognized |
14213 | # So say no if there are warnings | 13757 | # So say no if there are warnings |
14214 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | 13758 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14215 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | 13759 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14216 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 13760 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14217 | lt_cv_prog_compiler_c_o_F77=yes | 13761 | lt_cv_prog_compiler_c_o_F77=yes |
14218 | fi | 13762 | fi |
14219 | fi | 13763 | fi |
@@ -14313,6 +13857,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |||
14313 | with_gnu_ld=no | 13857 | with_gnu_ld=no |
14314 | fi | 13858 | fi |
14315 | ;; | 13859 | ;; |
13860 | interix*) | ||
13861 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
13862 | with_gnu_ld=yes | ||
13863 | ;; | ||
14316 | openbsd*) | 13864 | openbsd*) |
14317 | with_gnu_ld=no | 13865 | with_gnu_ld=no |
14318 | ;; | 13866 | ;; |
@@ -14397,7 +13945,7 @@ EOF | |||
14397 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 13945 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14398 | 13946 | ||
14399 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 13947 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14400 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 13948 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14401 | # If the export-symbols file already is a .def file (1st line | 13949 | # If the export-symbols file already is a .def file (1st line |
14402 | # is EXPORTS), use it as is; otherwise, prepend... | 13950 | # is EXPORTS), use it as is; otherwise, prepend... |
14403 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 13951 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -14406,12 +13954,27 @@ EOF | |||
14406 | echo EXPORTS > $output_objdir/$soname.def; | 13954 | echo EXPORTS > $output_objdir/$soname.def; |
14407 | cat $export_symbols >> $output_objdir/$soname.def; | 13955 | cat $export_symbols >> $output_objdir/$soname.def; |
14408 | fi~ | 13956 | fi~ |
14409 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 13957 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14410 | else | 13958 | else |
14411 | ld_shlibs_F77=no | 13959 | ld_shlibs_F77=no |
14412 | fi | 13960 | fi |
14413 | ;; | 13961 | ;; |
14414 | 13962 | ||
13963 | interix3*) | ||
13964 | hardcode_direct_F77=no | ||
13965 | hardcode_shlibpath_var_F77=no | ||
13966 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
13967 | export_dynamic_flag_spec_F77='${wl}-E' | ||
13968 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
13969 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
13970 | # default) and relocated if they conflict, which is a slow very memory | ||
13971 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
13972 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
13973 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
13974 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
13975 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
13976 | ;; | ||
13977 | |||
14415 | linux*) | 13978 | linux*) |
14416 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 13979 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14417 | tmp_addflag= | 13980 | tmp_addflag= |
@@ -14454,7 +14017,7 @@ EOF | |||
14454 | fi | 14017 | fi |
14455 | ;; | 14018 | ;; |
14456 | 14019 | ||
14457 | solaris* | sysv5*) | 14020 | solaris*) |
14458 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 14021 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14459 | ld_shlibs_F77=no | 14022 | ld_shlibs_F77=no |
14460 | cat <<EOF 1>&2 | 14023 | cat <<EOF 1>&2 |
@@ -14475,6 +14038,33 @@ EOF | |||
14475 | fi | 14038 | fi |
14476 | ;; | 14039 | ;; |
14477 | 14040 | ||
14041 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
14042 | case `$LD -v 2>&1` in | ||
14043 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
14044 | ld_shlibs_F77=no | ||
14045 | cat <<_LT_EOF 1>&2 | ||
14046 | |||
14047 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
14048 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
14049 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
14050 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
14051 | *** your PATH or compiler configuration so that the native linker is | ||
14052 | *** used, and then restart. | ||
14053 | |||
14054 | _LT_EOF | ||
14055 | ;; | ||
14056 | *) | ||
14057 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14058 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
14059 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
14060 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
14061 | else | ||
14062 | ld_shlibs_F77=no | ||
14063 | fi | ||
14064 | ;; | ||
14065 | esac | ||
14066 | ;; | ||
14067 | |||
14478 | sunos4*) | 14068 | sunos4*) |
14479 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 14069 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14480 | wlarc= | 14070 | wlarc= |
@@ -14508,7 +14098,7 @@ EOF | |||
14508 | # Note: this linker hardcodes the directories in LIBPATH if there | 14098 | # Note: this linker hardcodes the directories in LIBPATH if there |
14509 | # are no directories specified by -L. | 14099 | # are no directories specified by -L. |
14510 | hardcode_minus_L_F77=yes | 14100 | hardcode_minus_L_F77=yes |
14511 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 14101 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14512 | # Neither direct hardcoding nor static linking is supported with a | 14102 | # Neither direct hardcoding nor static linking is supported with a |
14513 | # broken collect2. | 14103 | # broken collect2. |
14514 | hardcode_direct_F77=unsupported | 14104 | hardcode_direct_F77=unsupported |
@@ -14542,6 +14132,7 @@ EOF | |||
14542 | break | 14132 | break |
14543 | fi | 14133 | fi |
14544 | done | 14134 | done |
14135 | ;; | ||
14545 | esac | 14136 | esac |
14546 | 14137 | ||
14547 | exp_sym_flag='-bexport' | 14138 | exp_sym_flag='-bexport' |
@@ -14579,6 +14170,7 @@ EOF | |||
14579 | hardcode_libdir_flag_spec_F77='-L$libdir' | 14170 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14580 | hardcode_libdir_separator_F77= | 14171 | hardcode_libdir_separator_F77= |
14581 | fi | 14172 | fi |
14173 | ;; | ||
14582 | esac | 14174 | esac |
14583 | shared_flag='-shared' | 14175 | shared_flag='-shared' |
14584 | if test "$aix_use_runtimelinking" = yes; then | 14176 | if test "$aix_use_runtimelinking" = yes; then |
@@ -14591,11 +14183,11 @@ EOF | |||
14591 | # chokes on -Wl,-G. The following line is correct: | 14183 | # chokes on -Wl,-G. The following line is correct: |
14592 | shared_flag='-G' | 14184 | shared_flag='-G' |
14593 | else | 14185 | else |
14594 | if test "$aix_use_runtimelinking" = yes; then | 14186 | if test "$aix_use_runtimelinking" = yes; then |
14595 | shared_flag='${wl}-G' | 14187 | shared_flag='${wl}-G' |
14596 | else | 14188 | else |
14597 | shared_flag='${wl}-bM:SRE' | 14189 | shared_flag='${wl}-bM:SRE' |
14598 | fi | 14190 | fi |
14599 | fi | 14191 | fi |
14600 | fi | 14192 | fi |
14601 | 14193 | ||
@@ -14649,12 +14241,12 @@ rm -f conftest.err conftest.$ac_objext \ | |||
14649 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 14241 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14650 | 14242 | ||
14651 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | 14243 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14652 | 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" | 14244 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14653 | else | 14245 | else |
14654 | if test "$host_cpu" = ia64; then | 14246 | if test "$host_cpu" = ia64; then |
14655 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | 14247 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14656 | allow_undefined_flag_F77="-z nodefs" | 14248 | allow_undefined_flag_F77="-z nodefs" |
14657 | 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" | 14249 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
14658 | else | 14250 | else |
14659 | # Determine the default libpath from the value encoded in an empty executable. | 14251 | # Determine the default libpath from the value encoded in an empty executable. |
14660 | cat >conftest.$ac_ext <<_ACEOF | 14252 | cat >conftest.$ac_ext <<_ACEOF |
@@ -14703,13 +14295,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
14703 | # -berok will link without error, but may produce a broken library. | 14295 | # -berok will link without error, but may produce a broken library. |
14704 | no_undefined_flag_F77=' ${wl}-bernotok' | 14296 | no_undefined_flag_F77=' ${wl}-bernotok' |
14705 | allow_undefined_flag_F77=' ${wl}-berok' | 14297 | allow_undefined_flag_F77=' ${wl}-berok' |
14706 | # -bexpall does not export symbols beginning with underscore (_) | ||
14707 | always_export_symbols_F77=yes | ||
14708 | # Exported symbols can be pulled into shared objects from archives | 14298 | # Exported symbols can be pulled into shared objects from archives |
14709 | whole_archive_flag_spec_F77=' ' | 14299 | whole_archive_flag_spec_F77='$convenience' |
14710 | archive_cmds_need_lc_F77=yes | 14300 | archive_cmds_need_lc_F77=yes |
14711 | # This is similar to how AIX traditionally builds its shared libraries. | 14301 | # This is similar to how AIX traditionally builds its shared libraries. |
14712 | 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' | 14302 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14713 | fi | 14303 | fi |
14714 | fi | 14304 | fi |
14715 | ;; | 14305 | ;; |
@@ -14827,11 +14417,20 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
14827 | ;; | 14417 | ;; |
14828 | 14418 | ||
14829 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 14419 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14830 | freebsd* | kfreebsd*-gnu | dragonfly*) | 14420 | freebsd* | dragonfly*) |
14421 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
14422 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14423 | hardcode_direct_F77=yes | ||
14424 | hardcode_shlibpath_var_F77=no | ||
14425 | ;; | ||
14426 | |||
14427 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. | ||
14428 | kfreebsd*-gnu) | ||
14831 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 14429 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14832 | hardcode_libdir_flag_spec_F77='-R$libdir' | 14430 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14833 | hardcode_direct_F77=yes | 14431 | hardcode_direct_F77=yes |
14834 | hardcode_shlibpath_var_F77=no | 14432 | hardcode_shlibpath_var_F77=no |
14433 | link_all_deplibs_F77=no | ||
14835 | ;; | 14434 | ;; |
14836 | 14435 | ||
14837 | hpux9*) | 14436 | hpux9*) |
@@ -14850,47 +14449,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
14850 | export_dynamic_flag_spec_F77='${wl}-E' | 14449 | export_dynamic_flag_spec_F77='${wl}-E' |
14851 | ;; | 14450 | ;; |
14852 | 14451 | ||
14853 | hpux10* | hpux11*) | 14452 | hpux10*) |
14453 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
14454 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
14455 | else | ||
14456 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
14457 | fi | ||
14458 | if test "$with_gnu_ld" = no; then | ||
14459 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14460 | hardcode_libdir_separator_F77=: | ||
14461 | |||
14462 | hardcode_direct_F77=yes | ||
14463 | export_dynamic_flag_spec_F77='${wl}-E' | ||
14464 | |||
14465 | # hardcode_minus_L: Not really in the search PATH, | ||
14466 | # but as the default location of the library. | ||
14467 | hardcode_minus_L_F77=yes | ||
14468 | fi | ||
14469 | ;; | ||
14470 | |||
14471 | hpux11*) | ||
14854 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 14472 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14855 | case $host_cpu in | 14473 | case $host_cpu in |
14856 | hppa*64*|ia64*) | 14474 | hppa*64*) |
14857 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 14475 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14858 | ;; | 14476 | ;; |
14477 | ia64*) | ||
14478 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
14479 | ;; | ||
14859 | *) | 14480 | *) |
14860 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 14481 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14861 | ;; | 14482 | ;; |
14862 | esac | 14483 | esac |
14863 | else | 14484 | else |
14864 | case $host_cpu in | 14485 | case $host_cpu in |
14865 | hppa*64*|ia64*) | 14486 | hppa*64*) |
14866 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 14487 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14488 | ;; | ||
14489 | ia64*) | ||
14490 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
14867 | ;; | 14491 | ;; |
14868 | *) | 14492 | *) |
14869 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 14493 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14870 | ;; | 14494 | ;; |
14871 | esac | 14495 | esac |
14872 | fi | 14496 | fi |
14873 | if test "$with_gnu_ld" = no; then | 14497 | if test "$with_gnu_ld" = no; then |
14498 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14499 | hardcode_libdir_separator_F77=: | ||
14500 | |||
14874 | case $host_cpu in | 14501 | case $host_cpu in |
14875 | hppa*64*) | 14502 | hppa*64*|ia64*) |
14876 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14877 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | 14503 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14878 | hardcode_libdir_separator_F77=: | ||
14879 | hardcode_direct_F77=no | 14504 | hardcode_direct_F77=no |
14880 | hardcode_shlibpath_var_F77=no | 14505 | hardcode_shlibpath_var_F77=no |
14881 | ;; | 14506 | ;; |
14882 | ia64*) | ||
14883 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14884 | hardcode_direct_F77=no | ||
14885 | hardcode_shlibpath_var_F77=no | ||
14886 | |||
14887 | # hardcode_minus_L: Not really in the search PATH, | ||
14888 | # but as the default location of the library. | ||
14889 | hardcode_minus_L_F77=yes | ||
14890 | ;; | ||
14891 | *) | 14507 | *) |
14892 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14893 | hardcode_libdir_separator_F77=: | ||
14894 | hardcode_direct_F77=yes | 14508 | hardcode_direct_F77=yes |
14895 | export_dynamic_flag_spec_F77='${wl}-E' | 14509 | export_dynamic_flag_spec_F77='${wl}-E' |
14896 | 14510 | ||
@@ -14992,14 +14606,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
14992 | hardcode_libdir_separator_F77=: | 14606 | hardcode_libdir_separator_F77=: |
14993 | ;; | 14607 | ;; |
14994 | 14608 | ||
14995 | sco3.2v5*) | ||
14996 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14997 | hardcode_shlibpath_var_F77=no | ||
14998 | export_dynamic_flag_spec_F77='${wl}-Bexport' | ||
14999 | runpath_var=LD_RUN_PATH | ||
15000 | hardcode_runpath_var=yes | ||
15001 | ;; | ||
15002 | |||
15003 | solaris*) | 14609 | solaris*) |
15004 | no_undefined_flag_F77=' -z text' | 14610 | no_undefined_flag_F77=' -z text' |
15005 | if test "$GCC" = yes; then | 14611 | if test "$GCC" = yes; then |
@@ -15085,36 +14691,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
15085 | fi | 14691 | fi |
15086 | ;; | 14692 | ;; |
15087 | 14693 | ||
15088 | sysv4.2uw2*) | 14694 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15089 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 14695 | no_undefined_flag_F77='${wl}-z,text' |
15090 | hardcode_direct_F77=yes | 14696 | archive_cmds_need_lc_F77=no |
15091 | hardcode_minus_L_F77=no | ||
15092 | hardcode_shlibpath_var_F77=no | 14697 | hardcode_shlibpath_var_F77=no |
15093 | hardcode_runpath_var=yes | 14698 | runpath_var='LD_RUN_PATH' |
15094 | runpath_var=LD_RUN_PATH | ||
15095 | ;; | ||
15096 | 14699 | ||
15097 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
15098 | no_undefined_flag_F77='${wl}-z ${wl}text' | ||
15099 | if test "$GCC" = yes; then | 14700 | if test "$GCC" = yes; then |
15100 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 14701 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14702 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15101 | else | 14703 | else |
15102 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 14704 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14705 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15103 | fi | 14706 | fi |
15104 | runpath_var='LD_RUN_PATH' | ||
15105 | hardcode_shlibpath_var_F77=no | ||
15106 | ;; | 14707 | ;; |
15107 | 14708 | ||
15108 | sysv5*) | 14709 | sysv5* | sco3.2v5* | sco5v6*) |
15109 | no_undefined_flag_F77=' -z text' | 14710 | # Note: We can NOT use -z defs as we might desire, because we do not |
15110 | # $CC -shared without GNU ld will not create a library from C++ | 14711 | # link with -lc, and that would cause any symbols used from libc to |
15111 | # object files and a static libstdc++, better avoid it by now | 14712 | # always be unresolved, which means just about no library would |
15112 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 14713 | # ever link correctly. If we're not using GNU ld we use -z text |
15113 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 14714 | # though, which does catch some bad symbols but isn't as heavy-handed |
15114 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 14715 | # as -z defs. |
15115 | hardcode_libdir_flag_spec_F77= | 14716 | no_undefined_flag_F77='${wl}-z,text' |
14717 | allow_undefined_flag_F77='${wl}-z,nodefs' | ||
14718 | archive_cmds_need_lc_F77=no | ||
15116 | hardcode_shlibpath_var_F77=no | 14719 | hardcode_shlibpath_var_F77=no |
14720 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
14721 | hardcode_libdir_separator_F77=':' | ||
14722 | link_all_deplibs_F77=yes | ||
14723 | export_dynamic_flag_spec_F77='${wl}-Bexport' | ||
15117 | runpath_var='LD_RUN_PATH' | 14724 | runpath_var='LD_RUN_PATH' |
14725 | |||
14726 | if test "$GCC" = yes; then | ||
14727 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14728 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14729 | else | ||
14730 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14731 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14732 | fi | ||
15118 | ;; | 14733 | ;; |
15119 | 14734 | ||
15120 | uts4*) | 14735 | uts4*) |
@@ -15133,11 +14748,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |||
15133 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | 14748 | echo "${ECHO_T}$ld_shlibs_F77" >&6 |
15134 | test "$ld_shlibs_F77" = no && can_build_shared=no | 14749 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15135 | 14750 | ||
15136 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
15137 | if test "$GCC" = yes; then | ||
15138 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
15139 | fi | ||
15140 | |||
15141 | # | 14751 | # |
15142 | # Do we need to explicitly link libc? | 14752 | # Do we need to explicitly link libc? |
15143 | # | 14753 | # |
@@ -15170,6 +14780,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& | |||
15170 | libobjs=conftest.$ac_objext | 14780 | libobjs=conftest.$ac_objext |
15171 | deplibs= | 14781 | deplibs= |
15172 | wl=$lt_prog_compiler_wl_F77 | 14782 | wl=$lt_prog_compiler_wl_F77 |
14783 | pic_flag=$lt_prog_compiler_pic_F77 | ||
15173 | compiler_flags=-v | 14784 | compiler_flags=-v |
15174 | linker_flags=-v | 14785 | linker_flags=-v |
15175 | verstring= | 14786 | verstring= |
@@ -15451,10 +15062,15 @@ freebsd* | dragonfly*) | |||
15451 | shlibpath_overrides_runpath=yes | 15062 | shlibpath_overrides_runpath=yes |
15452 | hardcode_into_libs=yes | 15063 | hardcode_into_libs=yes |
15453 | ;; | 15064 | ;; |
15454 | *) # from 3.2 on | 15065 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15066 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
15455 | shlibpath_overrides_runpath=no | 15067 | shlibpath_overrides_runpath=no |
15456 | hardcode_into_libs=yes | 15068 | hardcode_into_libs=yes |
15457 | ;; | 15069 | ;; |
15070 | freebsd*) # from 4.6 on | ||
15071 | shlibpath_overrides_runpath=yes | ||
15072 | hardcode_into_libs=yes | ||
15073 | ;; | ||
15458 | esac | 15074 | esac |
15459 | ;; | 15075 | ;; |
15460 | 15076 | ||
@@ -15514,6 +15130,18 @@ hpux9* | hpux10* | hpux11*) | |||
15514 | postinstall_cmds='chmod 555 $lib' | 15130 | postinstall_cmds='chmod 555 $lib' |
15515 | ;; | 15131 | ;; |
15516 | 15132 | ||
15133 | interix3*) | ||
15134 | version_type=linux | ||
15135 | need_lib_prefix=no | ||
15136 | need_version=no | ||
15137 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15138 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15139 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
15140 | shlibpath_var=LD_LIBRARY_PATH | ||
15141 | shlibpath_overrides_runpath=no | ||
15142 | hardcode_into_libs=yes | ||
15143 | ;; | ||
15144 | |||
15517 | irix5* | irix6* | nonstopux*) | 15145 | irix5* | irix6* | nonstopux*) |
15518 | case $host_os in | 15146 | case $host_os in |
15519 | nonstopux*) version_type=nonstopux ;; | 15147 | nonstopux*) version_type=nonstopux ;; |
@@ -15647,6 +15275,7 @@ nto-qnx*) | |||
15647 | 15275 | ||
15648 | openbsd*) | 15276 | openbsd*) |
15649 | version_type=sunos | 15277 | version_type=sunos |
15278 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
15650 | need_lib_prefix=no | 15279 | need_lib_prefix=no |
15651 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 15280 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15652 | case $host_os in | 15281 | case $host_os in |
@@ -15690,13 +15319,6 @@ osf3* | osf4* | osf5*) | |||
15690 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 15319 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15691 | ;; | 15320 | ;; |
15692 | 15321 | ||
15693 | sco3.2v5*) | ||
15694 | version_type=osf | ||
15695 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15696 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15697 | shlibpath_var=LD_LIBRARY_PATH | ||
15698 | ;; | ||
15699 | |||
15700 | solaris*) | 15322 | solaris*) |
15701 | version_type=linux | 15323 | version_type=linux |
15702 | need_lib_prefix=no | 15324 | need_lib_prefix=no |
@@ -15722,7 +15344,7 @@ sunos4*) | |||
15722 | need_version=yes | 15344 | need_version=yes |
15723 | ;; | 15345 | ;; |
15724 | 15346 | ||
15725 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 15347 | sysv4 | sysv4.3*) |
15726 | version_type=linux | 15348 | version_type=linux |
15727 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 15349 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15728 | soname_spec='${libname}${release}${shared_ext}$major' | 15350 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -15755,6 +15377,29 @@ sysv4*MP*) | |||
15755 | fi | 15377 | fi |
15756 | ;; | 15378 | ;; |
15757 | 15379 | ||
15380 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
15381 | version_type=freebsd-elf | ||
15382 | need_lib_prefix=no | ||
15383 | need_version=no | ||
15384 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
15385 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15386 | shlibpath_var=LD_LIBRARY_PATH | ||
15387 | hardcode_into_libs=yes | ||
15388 | if test "$with_gnu_ld" = yes; then | ||
15389 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
15390 | shlibpath_overrides_runpath=no | ||
15391 | else | ||
15392 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
15393 | shlibpath_overrides_runpath=yes | ||
15394 | case $host_os in | ||
15395 | sco3.2v5*) | ||
15396 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
15397 | ;; | ||
15398 | esac | ||
15399 | fi | ||
15400 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
15401 | ;; | ||
15402 | |||
15758 | uts4*) | 15403 | uts4*) |
15759 | version_type=linux | 15404 | version_type=linux |
15760 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 15405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -15770,6 +15415,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |||
15770 | echo "${ECHO_T}$dynamic_linker" >&6 | 15415 | echo "${ECHO_T}$dynamic_linker" >&6 |
15771 | test "$dynamic_linker" = no && can_build_shared=no | 15416 | test "$dynamic_linker" = no && can_build_shared=no |
15772 | 15417 | ||
15418 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
15419 | if test "$GCC" = yes; then | ||
15420 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
15421 | fi | ||
15422 | |||
15773 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 15423 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15774 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 15424 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
15775 | hardcode_action_F77= | 15425 | hardcode_action_F77= |
@@ -15807,36 +15457,6 @@ elif test "$shlibpath_overrides_runpath" = yes || | |||
15807 | enable_fast_install=needless | 15457 | enable_fast_install=needless |
15808 | fi | 15458 | fi |
15809 | 15459 | ||
15810 | striplib= | ||
15811 | old_striplib= | ||
15812 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
15813 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
15814 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
15815 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
15816 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
15817 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15818 | echo "${ECHO_T}yes" >&6 | ||
15819 | else | ||
15820 | # FIXME - insert some real tests, host_os isn't really good enough | ||
15821 | case $host_os in | ||
15822 | darwin*) | ||
15823 | if test -n "$STRIP" ; then | ||
15824 | striplib="$STRIP -x" | ||
15825 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15826 | echo "${ECHO_T}yes" >&6 | ||
15827 | else | ||
15828 | echo "$as_me:$LINENO: result: no" >&5 | ||
15829 | echo "${ECHO_T}no" >&6 | ||
15830 | fi | ||
15831 | ;; | ||
15832 | *) | ||
15833 | echo "$as_me:$LINENO: result: no" >&5 | ||
15834 | echo "${ECHO_T}no" >&6 | ||
15835 | ;; | ||
15836 | esac | ||
15837 | fi | ||
15838 | |||
15839 | |||
15840 | 15460 | ||
15841 | # The else clause should only fire when bootstrapping the | 15461 | # The else clause should only fire when bootstrapping the |
15842 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 15462 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
@@ -15851,7 +15471,7 @@ if test -f "$ltmain"; then | |||
15851 | # Now quote all the things that may contain metacharacters while being | 15471 | # Now quote all the things that may contain metacharacters while being |
15852 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 15472 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15853 | # variables and quote the copies for generation of the libtool script. | 15473 | # variables and quote the copies for generation of the libtool script. |
15854 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 15474 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15855 | SED SHELL STRIP \ | 15475 | SED SHELL STRIP \ |
15856 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 15476 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15857 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 15477 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -15969,6 +15589,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
15969 | # A C compiler. | 15589 | # A C compiler. |
15970 | LTCC=$lt_LTCC | 15590 | LTCC=$lt_LTCC |
15971 | 15591 | ||
15592 | # LTCC compiler flags. | ||
15593 | LTCFLAGS=$lt_LTCFLAGS | ||
15594 | |||
15972 | # A language-specific compiler. | 15595 | # A language-specific compiler. |
15973 | CC=$lt_compiler_F77 | 15596 | CC=$lt_compiler_F77 |
15974 | 15597 | ||
@@ -16279,6 +15902,9 @@ lt_simple_link_test_code='public class conftest { public static void main(String | |||
16279 | # If no C compiler was specified, use CC. | 15902 | # If no C compiler was specified, use CC. |
16280 | LTCC=${LTCC-"$CC"} | 15903 | LTCC=${LTCC-"$CC"} |
16281 | 15904 | ||
15905 | # If no C compiler flags were specified, use CFLAGS. | ||
15906 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
15907 | |||
16282 | # Allow CC to be a program name with arguments. | 15908 | # Allow CC to be a program name with arguments. |
16283 | compiler=$CC | 15909 | compiler=$CC |
16284 | 15910 | ||
@@ -16286,13 +15912,13 @@ compiler=$CC | |||
16286 | # save warnings/boilerplate of simple test code | 15912 | # save warnings/boilerplate of simple test code |
16287 | ac_outfile=conftest.$ac_objext | 15913 | ac_outfile=conftest.$ac_objext |
16288 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 15914 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16289 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 15915 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16290 | _lt_compiler_boilerplate=`cat conftest.err` | 15916 | _lt_compiler_boilerplate=`cat conftest.err` |
16291 | $rm conftest* | 15917 | $rm conftest* |
16292 | 15918 | ||
16293 | ac_outfile=conftest.$ac_objext | 15919 | ac_outfile=conftest.$ac_objext |
16294 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 15920 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16295 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 15921 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16296 | _lt_linker_boilerplate=`cat conftest.err` | 15922 | _lt_linker_boilerplate=`cat conftest.err` |
16297 | $rm conftest* | 15923 | $rm conftest* |
16298 | 15924 | ||
@@ -16343,17 +15969,17 @@ else | |||
16343 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 15969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16344 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 15970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16345 | -e 's:$: $lt_compiler_flag:'` | 15971 | -e 's:$: $lt_compiler_flag:'` |
16346 | (eval echo "\"\$as_me:16346: $lt_compile\"" >&5) | 15972 | (eval echo "\"\$as_me:15972: $lt_compile\"" >&5) |
16347 | (eval "$lt_compile" 2>conftest.err) | 15973 | (eval "$lt_compile" 2>conftest.err) |
16348 | ac_status=$? | 15974 | ac_status=$? |
16349 | cat conftest.err >&5 | 15975 | cat conftest.err >&5 |
16350 | echo "$as_me:16350: \$? = $ac_status" >&5 | 15976 | echo "$as_me:15976: \$? = $ac_status" >&5 |
16351 | if (exit $ac_status) && test -s "$ac_outfile"; then | 15977 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16352 | # The compiler can only warn and ignore the option if not recognized | 15978 | # The compiler can only warn and ignore the option if not recognized |
16353 | # So say no if there are warnings other than the usual output. | 15979 | # So say no if there are warnings other than the usual output. |
16354 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 15980 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16355 | $SED '/^$/d' conftest.err >conftest.er2 | 15981 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16356 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 15982 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16357 | lt_cv_prog_compiler_rtti_exceptions=yes | 15983 | lt_cv_prog_compiler_rtti_exceptions=yes |
16358 | fi | 15984 | fi |
16359 | fi | 15985 | fi |
@@ -16414,6 +16040,11 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
16414 | lt_prog_compiler_pic_GCJ='-fno-common' | 16040 | lt_prog_compiler_pic_GCJ='-fno-common' |
16415 | ;; | 16041 | ;; |
16416 | 16042 | ||
16043 | interix3*) | ||
16044 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
16045 | # Instead, we relocate shared libraries at runtime. | ||
16046 | ;; | ||
16047 | |||
16417 | msdosdjgpp*) | 16048 | msdosdjgpp*) |
16418 | # Just because we use GCC doesn't mean we suddenly get shared libraries | 16049 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16419 | # on systems that don't support them. | 16050 | # on systems that don't support them. |
@@ -16528,11 +16159,6 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
16528 | lt_prog_compiler_static_GCJ='-non_shared' | 16159 | lt_prog_compiler_static_GCJ='-non_shared' |
16529 | ;; | 16160 | ;; |
16530 | 16161 | ||
16531 | sco3.2v5*) | ||
16532 | lt_prog_compiler_pic_GCJ='-Kpic' | ||
16533 | lt_prog_compiler_static_GCJ='-dn' | ||
16534 | ;; | ||
16535 | |||
16536 | solaris*) | 16162 | solaris*) |
16537 | lt_prog_compiler_pic_GCJ='-KPIC' | 16163 | lt_prog_compiler_pic_GCJ='-KPIC' |
16538 | lt_prog_compiler_static_GCJ='-Bstatic' | 16164 | lt_prog_compiler_static_GCJ='-Bstatic' |
@@ -16550,7 +16176,7 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
16550 | lt_prog_compiler_static_GCJ='-Bstatic' | 16176 | lt_prog_compiler_static_GCJ='-Bstatic' |
16551 | ;; | 16177 | ;; |
16552 | 16178 | ||
16553 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 16179 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16554 | lt_prog_compiler_wl_GCJ='-Wl,' | 16180 | lt_prog_compiler_wl_GCJ='-Wl,' |
16555 | lt_prog_compiler_pic_GCJ='-KPIC' | 16181 | lt_prog_compiler_pic_GCJ='-KPIC' |
16556 | lt_prog_compiler_static_GCJ='-Bstatic' | 16182 | lt_prog_compiler_static_GCJ='-Bstatic' |
@@ -16563,6 +16189,12 @@ echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |||
16563 | fi | 16189 | fi |
16564 | ;; | 16190 | ;; |
16565 | 16191 | ||
16192 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
16193 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16194 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16195 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16196 | ;; | ||
16197 | |||
16566 | unicos*) | 16198 | unicos*) |
16567 | lt_prog_compiler_wl_GCJ='-Wl,' | 16199 | lt_prog_compiler_wl_GCJ='-Wl,' |
16568 | lt_prog_compiler_can_build_shared_GCJ=no | 16200 | lt_prog_compiler_can_build_shared_GCJ=no |
@@ -16605,17 +16237,17 @@ else | |||
16605 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 16237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16606 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 16238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16607 | -e 's:$: $lt_compiler_flag:'` | 16239 | -e 's:$: $lt_compiler_flag:'` |
16608 | (eval echo "\"\$as_me:16608: $lt_compile\"" >&5) | 16240 | (eval echo "\"\$as_me:16240: $lt_compile\"" >&5) |
16609 | (eval "$lt_compile" 2>conftest.err) | 16241 | (eval "$lt_compile" 2>conftest.err) |
16610 | ac_status=$? | 16242 | ac_status=$? |
16611 | cat conftest.err >&5 | 16243 | cat conftest.err >&5 |
16612 | echo "$as_me:16612: \$? = $ac_status" >&5 | 16244 | echo "$as_me:16244: \$? = $ac_status" >&5 |
16613 | if (exit $ac_status) && test -s "$ac_outfile"; then | 16245 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16614 | # The compiler can only warn and ignore the option if not recognized | 16246 | # The compiler can only warn and ignore the option if not recognized |
16615 | # So say no if there are warnings other than the usual output. | 16247 | # So say no if there are warnings other than the usual output. |
16616 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp | 16248 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16617 | $SED '/^$/d' conftest.err >conftest.er2 | 16249 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16618 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then | 16250 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16619 | lt_prog_compiler_pic_works_GCJ=yes | 16251 | lt_prog_compiler_pic_works_GCJ=yes |
16620 | fi | 16252 | fi |
16621 | fi | 16253 | fi |
@@ -16646,6 +16278,48 @@ case $host_os in | |||
16646 | ;; | 16278 | ;; |
16647 | esac | 16279 | esac |
16648 | 16280 | ||
16281 | # | ||
16282 | # Check to make sure the static flag actually works. | ||
16283 | # | ||
16284 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | ||
16285 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | ||
16286 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | ||
16287 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | ||
16288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16289 | else | ||
16290 | lt_prog_compiler_static_works_GCJ=no | ||
16291 | save_LDFLAGS="$LDFLAGS" | ||
16292 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | ||
16293 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
16294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
16295 | # The linker can only warn and ignore the option if not recognized | ||
16296 | # So say no if there are warnings | ||
16297 | if test -s conftest.err; then | ||
16298 | # Append any errors to the config.log. | ||
16299 | cat conftest.err 1>&5 | ||
16300 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | ||
16301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
16302 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
16303 | lt_prog_compiler_static_works_GCJ=yes | ||
16304 | fi | ||
16305 | else | ||
16306 | lt_prog_compiler_static_works_GCJ=yes | ||
16307 | fi | ||
16308 | fi | ||
16309 | $rm conftest* | ||
16310 | LDFLAGS="$save_LDFLAGS" | ||
16311 | |||
16312 | fi | ||
16313 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | ||
16314 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | ||
16315 | |||
16316 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | ||
16317 | : | ||
16318 | else | ||
16319 | lt_prog_compiler_static_GCJ= | ||
16320 | fi | ||
16321 | |||
16322 | |||
16649 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | 16323 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16650 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | 16324 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 |
16651 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | 16325 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
@@ -16667,18 +16341,18 @@ else | |||
16667 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | 16341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16668 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | 16342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16669 | -e 's:$: $lt_compiler_flag:'` | 16343 | -e 's:$: $lt_compiler_flag:'` |
16670 | (eval echo "\"\$as_me:16670: $lt_compile\"" >&5) | 16344 | (eval echo "\"\$as_me:16344: $lt_compile\"" >&5) |
16671 | (eval "$lt_compile" 2>out/conftest.err) | 16345 | (eval "$lt_compile" 2>out/conftest.err) |
16672 | ac_status=$? | 16346 | ac_status=$? |
16673 | cat out/conftest.err >&5 | 16347 | cat out/conftest.err >&5 |
16674 | echo "$as_me:16674: \$? = $ac_status" >&5 | 16348 | echo "$as_me:16348: \$? = $ac_status" >&5 |
16675 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | 16349 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16676 | then | 16350 | then |
16677 | # The compiler can only warn and ignore the option if not recognized | 16351 | # The compiler can only warn and ignore the option if not recognized |
16678 | # So say no if there are warnings | 16352 | # So say no if there are warnings |
16679 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp | 16353 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16680 | $SED '/^$/d' out/conftest.err >out/conftest.er2 | 16354 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16681 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then | 16355 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16682 | lt_cv_prog_compiler_c_o_GCJ=yes | 16356 | lt_cv_prog_compiler_c_o_GCJ=yes |
16683 | fi | 16357 | fi |
16684 | fi | 16358 | fi |
@@ -16778,6 +16452,10 @@ cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |||
16778 | with_gnu_ld=no | 16452 | with_gnu_ld=no |
16779 | fi | 16453 | fi |
16780 | ;; | 16454 | ;; |
16455 | interix*) | ||
16456 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
16457 | with_gnu_ld=yes | ||
16458 | ;; | ||
16781 | openbsd*) | 16459 | openbsd*) |
16782 | with_gnu_ld=no | 16460 | with_gnu_ld=no |
16783 | ;; | 16461 | ;; |
@@ -16862,7 +16540,7 @@ EOF | |||
16862 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | 16540 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16863 | 16541 | ||
16864 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | 16542 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16865 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 16543 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16866 | # If the export-symbols file already is a .def file (1st line | 16544 | # If the export-symbols file already is a .def file (1st line |
16867 | # is EXPORTS), use it as is; otherwise, prepend... | 16545 | # is EXPORTS), use it as is; otherwise, prepend... |
16868 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | 16546 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
@@ -16871,12 +16549,27 @@ EOF | |||
16871 | echo EXPORTS > $output_objdir/$soname.def; | 16549 | echo EXPORTS > $output_objdir/$soname.def; |
16872 | cat $export_symbols >> $output_objdir/$soname.def; | 16550 | cat $export_symbols >> $output_objdir/$soname.def; |
16873 | fi~ | 16551 | fi~ |
16874 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | 16552 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16875 | else | 16553 | else |
16876 | ld_shlibs_GCJ=no | 16554 | ld_shlibs_GCJ=no |
16877 | fi | 16555 | fi |
16878 | ;; | 16556 | ;; |
16879 | 16557 | ||
16558 | interix3*) | ||
16559 | hardcode_direct_GCJ=no | ||
16560 | hardcode_shlibpath_var_GCJ=no | ||
16561 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
16562 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
16563 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
16564 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
16565 | # default) and relocated if they conflict, which is a slow very memory | ||
16566 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
16567 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
16568 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
16569 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
16570 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
16571 | ;; | ||
16572 | |||
16880 | linux*) | 16573 | linux*) |
16881 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | 16574 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16882 | tmp_addflag= | 16575 | tmp_addflag= |
@@ -16919,7 +16612,7 @@ EOF | |||
16919 | fi | 16612 | fi |
16920 | ;; | 16613 | ;; |
16921 | 16614 | ||
16922 | solaris* | sysv5*) | 16615 | solaris*) |
16923 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | 16616 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16924 | ld_shlibs_GCJ=no | 16617 | ld_shlibs_GCJ=no |
16925 | cat <<EOF 1>&2 | 16618 | cat <<EOF 1>&2 |
@@ -16940,6 +16633,33 @@ EOF | |||
16940 | fi | 16633 | fi |
16941 | ;; | 16634 | ;; |
16942 | 16635 | ||
16636 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
16637 | case `$LD -v 2>&1` in | ||
16638 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | ||
16639 | ld_shlibs_GCJ=no | ||
16640 | cat <<_LT_EOF 1>&2 | ||
16641 | |||
16642 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
16643 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
16644 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
16645 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
16646 | *** your PATH or compiler configuration so that the native linker is | ||
16647 | *** used, and then restart. | ||
16648 | |||
16649 | _LT_EOF | ||
16650 | ;; | ||
16651 | *) | ||
16652 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
16653 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
16654 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
16655 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
16656 | else | ||
16657 | ld_shlibs_GCJ=no | ||
16658 | fi | ||
16659 | ;; | ||
16660 | esac | ||
16661 | ;; | ||
16662 | |||
16943 | sunos4*) | 16663 | sunos4*) |
16944 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | 16664 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
16945 | wlarc= | 16665 | wlarc= |
@@ -16973,7 +16693,7 @@ EOF | |||
16973 | # Note: this linker hardcodes the directories in LIBPATH if there | 16693 | # Note: this linker hardcodes the directories in LIBPATH if there |
16974 | # are no directories specified by -L. | 16694 | # are no directories specified by -L. |
16975 | hardcode_minus_L_GCJ=yes | 16695 | hardcode_minus_L_GCJ=yes |
16976 | if test "$GCC" = yes && test -z "$link_static_flag"; then | 16696 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
16977 | # Neither direct hardcoding nor static linking is supported with a | 16697 | # Neither direct hardcoding nor static linking is supported with a |
16978 | # broken collect2. | 16698 | # broken collect2. |
16979 | hardcode_direct_GCJ=unsupported | 16699 | hardcode_direct_GCJ=unsupported |
@@ -17007,6 +16727,7 @@ EOF | |||
17007 | break | 16727 | break |
17008 | fi | 16728 | fi |
17009 | done | 16729 | done |
16730 | ;; | ||
17010 | esac | 16731 | esac |
17011 | 16732 | ||
17012 | exp_sym_flag='-bexport' | 16733 | exp_sym_flag='-bexport' |
@@ -17044,6 +16765,7 @@ EOF | |||
17044 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | 16765 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17045 | hardcode_libdir_separator_GCJ= | 16766 | hardcode_libdir_separator_GCJ= |
17046 | fi | 16767 | fi |
16768 | ;; | ||
17047 | esac | 16769 | esac |
17048 | shared_flag='-shared' | 16770 | shared_flag='-shared' |
17049 | if test "$aix_use_runtimelinking" = yes; then | 16771 | if test "$aix_use_runtimelinking" = yes; then |
@@ -17056,11 +16778,11 @@ EOF | |||
17056 | # chokes on -Wl,-G. The following line is correct: | 16778 | # chokes on -Wl,-G. The following line is correct: |
17057 | shared_flag='-G' | 16779 | shared_flag='-G' |
17058 | else | 16780 | else |
17059 | if test "$aix_use_runtimelinking" = yes; then | 16781 | if test "$aix_use_runtimelinking" = yes; then |
17060 | shared_flag='${wl}-G' | 16782 | shared_flag='${wl}-G' |
17061 | else | 16783 | else |
17062 | shared_flag='${wl}-bM:SRE' | 16784 | shared_flag='${wl}-bM:SRE' |
17063 | fi | 16785 | fi |
17064 | fi | 16786 | fi |
17065 | fi | 16787 | fi |
17066 | 16788 | ||
@@ -17124,12 +16846,12 @@ rm -f conftest.err conftest.$ac_objext \ | |||
17124 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | 16846 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17125 | 16847 | ||
17126 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | 16848 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17127 | 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" | 16849 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17128 | else | 16850 | else |
17129 | if test "$host_cpu" = ia64; then | 16851 | if test "$host_cpu" = ia64; then |
17130 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | 16852 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17131 | allow_undefined_flag_GCJ="-z nodefs" | 16853 | allow_undefined_flag_GCJ="-z nodefs" |
17132 | 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" | 16854 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
17133 | else | 16855 | else |
17134 | # Determine the default libpath from the value encoded in an empty executable. | 16856 | # Determine the default libpath from the value encoded in an empty executable. |
17135 | cat >conftest.$ac_ext <<_ACEOF | 16857 | cat >conftest.$ac_ext <<_ACEOF |
@@ -17188,13 +16910,11 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
17188 | # -berok will link without error, but may produce a broken library. | 16910 | # -berok will link without error, but may produce a broken library. |
17189 | no_undefined_flag_GCJ=' ${wl}-bernotok' | 16911 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17190 | allow_undefined_flag_GCJ=' ${wl}-berok' | 16912 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17191 | # -bexpall does not export symbols beginning with underscore (_) | ||
17192 | always_export_symbols_GCJ=yes | ||
17193 | # Exported symbols can be pulled into shared objects from archives | 16913 | # Exported symbols can be pulled into shared objects from archives |
17194 | whole_archive_flag_spec_GCJ=' ' | 16914 | whole_archive_flag_spec_GCJ='$convenience' |
17195 | archive_cmds_need_lc_GCJ=yes | 16915 | archive_cmds_need_lc_GCJ=yes |
17196 | # This is similar to how AIX traditionally builds its shared libraries. | 16916 | # This is similar to how AIX traditionally builds its shared libraries. |
17197 | 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' | 16917 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
17198 | fi | 16918 | fi |
17199 | fi | 16919 | fi |
17200 | ;; | 16920 | ;; |
@@ -17312,13 +17032,22 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
17312 | ;; | 17032 | ;; |
17313 | 17033 | ||
17314 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | 17034 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17315 | freebsd* | kfreebsd*-gnu | dragonfly*) | 17035 | freebsd* | dragonfly*) |
17316 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | 17036 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17317 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | 17037 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17318 | hardcode_direct_GCJ=yes | 17038 | hardcode_direct_GCJ=yes |
17319 | hardcode_shlibpath_var_GCJ=no | 17039 | hardcode_shlibpath_var_GCJ=no |
17320 | ;; | 17040 | ;; |
17321 | 17041 | ||
17042 | # GNU/kFreeBSD uses gcc -shared to do shared libraries. | ||
17043 | kfreebsd*-gnu) | ||
17044 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
17045 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17046 | hardcode_direct_GCJ=yes | ||
17047 | hardcode_shlibpath_var_GCJ=no | ||
17048 | link_all_deplibs_GCJ=no | ||
17049 | ;; | ||
17050 | |||
17322 | hpux9*) | 17051 | hpux9*) |
17323 | if test "$GCC" = yes; then | 17052 | if test "$GCC" = yes; then |
17324 | 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' | 17053 | 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' |
@@ -17335,47 +17064,62 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
17335 | export_dynamic_flag_spec_GCJ='${wl}-E' | 17064 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17336 | ;; | 17065 | ;; |
17337 | 17066 | ||
17338 | hpux10* | hpux11*) | 17067 | hpux10*) |
17068 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
17069 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
17070 | else | ||
17071 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
17072 | fi | ||
17073 | if test "$with_gnu_ld" = no; then | ||
17074 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17075 | hardcode_libdir_separator_GCJ=: | ||
17076 | |||
17077 | hardcode_direct_GCJ=yes | ||
17078 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
17079 | |||
17080 | # hardcode_minus_L: Not really in the search PATH, | ||
17081 | # but as the default location of the library. | ||
17082 | hardcode_minus_L_GCJ=yes | ||
17083 | fi | ||
17084 | ;; | ||
17085 | |||
17086 | hpux11*) | ||
17339 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | 17087 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17340 | case $host_cpu in | 17088 | case $host_cpu in |
17341 | hppa*64*|ia64*) | 17089 | hppa*64*) |
17342 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 17090 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17343 | ;; | 17091 | ;; |
17092 | ia64*) | ||
17093 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
17094 | ;; | ||
17344 | *) | 17095 | *) |
17345 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | 17096 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17346 | ;; | 17097 | ;; |
17347 | esac | 17098 | esac |
17348 | else | 17099 | else |
17349 | case $host_cpu in | 17100 | case $host_cpu in |
17350 | hppa*64*|ia64*) | 17101 | hppa*64*) |
17351 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | 17102 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17103 | ;; | ||
17104 | ia64*) | ||
17105 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
17352 | ;; | 17106 | ;; |
17353 | *) | 17107 | *) |
17354 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | 17108 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17355 | ;; | 17109 | ;; |
17356 | esac | 17110 | esac |
17357 | fi | 17111 | fi |
17358 | if test "$with_gnu_ld" = no; then | 17112 | if test "$with_gnu_ld" = no; then |
17113 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17114 | hardcode_libdir_separator_GCJ=: | ||
17115 | |||
17359 | case $host_cpu in | 17116 | case $host_cpu in |
17360 | hppa*64*) | 17117 | hppa*64*|ia64*) |
17361 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17362 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | 17118 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17363 | hardcode_libdir_separator_GCJ=: | ||
17364 | hardcode_direct_GCJ=no | 17119 | hardcode_direct_GCJ=no |
17365 | hardcode_shlibpath_var_GCJ=no | 17120 | hardcode_shlibpath_var_GCJ=no |
17366 | ;; | 17121 | ;; |
17367 | ia64*) | ||
17368 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17369 | hardcode_direct_GCJ=no | ||
17370 | hardcode_shlibpath_var_GCJ=no | ||
17371 | |||
17372 | # hardcode_minus_L: Not really in the search PATH, | ||
17373 | # but as the default location of the library. | ||
17374 | hardcode_minus_L_GCJ=yes | ||
17375 | ;; | ||
17376 | *) | 17122 | *) |
17377 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17378 | hardcode_libdir_separator_GCJ=: | ||
17379 | hardcode_direct_GCJ=yes | 17123 | hardcode_direct_GCJ=yes |
17380 | export_dynamic_flag_spec_GCJ='${wl}-E' | 17124 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17381 | 17125 | ||
@@ -17477,14 +17221,6 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
17477 | hardcode_libdir_separator_GCJ=: | 17221 | hardcode_libdir_separator_GCJ=: |
17478 | ;; | 17222 | ;; |
17479 | 17223 | ||
17480 | sco3.2v5*) | ||
17481 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17482 | hardcode_shlibpath_var_GCJ=no | ||
17483 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | ||
17484 | runpath_var=LD_RUN_PATH | ||
17485 | hardcode_runpath_var=yes | ||
17486 | ;; | ||
17487 | |||
17488 | solaris*) | 17224 | solaris*) |
17489 | no_undefined_flag_GCJ=' -z text' | 17225 | no_undefined_flag_GCJ=' -z text' |
17490 | if test "$GCC" = yes; then | 17226 | if test "$GCC" = yes; then |
@@ -17570,36 +17306,45 @@ if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |||
17570 | fi | 17306 | fi |
17571 | ;; | 17307 | ;; |
17572 | 17308 | ||
17573 | sysv4.2uw2*) | 17309 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17574 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | 17310 | no_undefined_flag_GCJ='${wl}-z,text' |
17575 | hardcode_direct_GCJ=yes | 17311 | archive_cmds_need_lc_GCJ=no |
17576 | hardcode_minus_L_GCJ=no | ||
17577 | hardcode_shlibpath_var_GCJ=no | 17312 | hardcode_shlibpath_var_GCJ=no |
17578 | hardcode_runpath_var=yes | 17313 | runpath_var='LD_RUN_PATH' |
17579 | runpath_var=LD_RUN_PATH | ||
17580 | ;; | ||
17581 | 17314 | ||
17582 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
17583 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | ||
17584 | if test "$GCC" = yes; then | 17315 | if test "$GCC" = yes; then |
17585 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 17316 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17317 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17586 | else | 17318 | else |
17587 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | 17319 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17320 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17588 | fi | 17321 | fi |
17589 | runpath_var='LD_RUN_PATH' | ||
17590 | hardcode_shlibpath_var_GCJ=no | ||
17591 | ;; | 17322 | ;; |
17592 | 17323 | ||
17593 | sysv5*) | 17324 | sysv5* | sco3.2v5* | sco5v6*) |
17594 | no_undefined_flag_GCJ=' -z text' | 17325 | # Note: We can NOT use -z defs as we might desire, because we do not |
17595 | # $CC -shared without GNU ld will not create a library from C++ | 17326 | # link with -lc, and that would cause any symbols used from libc to |
17596 | # object files and a static libstdc++, better avoid it by now | 17327 | # always be unresolved, which means just about no library would |
17597 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | 17328 | # ever link correctly. If we're not using GNU ld we use -z text |
17598 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | 17329 | # though, which does catch some bad symbols but isn't as heavy-handed |
17599 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | 17330 | # as -z defs. |
17600 | hardcode_libdir_flag_spec_GCJ= | 17331 | no_undefined_flag_GCJ='${wl}-z,text' |
17332 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | ||
17333 | archive_cmds_need_lc_GCJ=no | ||
17601 | hardcode_shlibpath_var_GCJ=no | 17334 | hardcode_shlibpath_var_GCJ=no |
17335 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
17336 | hardcode_libdir_separator_GCJ=':' | ||
17337 | link_all_deplibs_GCJ=yes | ||
17338 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | ||
17602 | runpath_var='LD_RUN_PATH' | 17339 | runpath_var='LD_RUN_PATH' |
17340 | |||
17341 | if test "$GCC" = yes; then | ||
17342 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17343 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17344 | else | ||
17345 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17346 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17347 | fi | ||
17603 | ;; | 17348 | ;; |
17604 | 17349 | ||
17605 | uts4*) | 17350 | uts4*) |
@@ -17618,11 +17363,6 @@ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |||
17618 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | 17363 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 |
17619 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | 17364 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17620 | 17365 | ||
17621 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
17622 | if test "$GCC" = yes; then | ||
17623 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
17624 | fi | ||
17625 | |||
17626 | # | 17366 | # |
17627 | # Do we need to explicitly link libc? | 17367 | # Do we need to explicitly link libc? |
17628 | # | 17368 | # |
@@ -17655,6 +17395,7 @@ echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >& | |||
17655 | libobjs=conftest.$ac_objext | 17395 | libobjs=conftest.$ac_objext |
17656 | deplibs= | 17396 | deplibs= |
17657 | wl=$lt_prog_compiler_wl_GCJ | 17397 | wl=$lt_prog_compiler_wl_GCJ |
17398 | pic_flag=$lt_prog_compiler_pic_GCJ | ||
17658 | compiler_flags=-v | 17399 | compiler_flags=-v |
17659 | linker_flags=-v | 17400 | linker_flags=-v |
17660 | verstring= | 17401 | verstring= |
@@ -17936,10 +17677,15 @@ freebsd* | dragonfly*) | |||
17936 | shlibpath_overrides_runpath=yes | 17677 | shlibpath_overrides_runpath=yes |
17937 | hardcode_into_libs=yes | 17678 | hardcode_into_libs=yes |
17938 | ;; | 17679 | ;; |
17939 | *) # from 3.2 on | 17680 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
17681 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | ||
17940 | shlibpath_overrides_runpath=no | 17682 | shlibpath_overrides_runpath=no |
17941 | hardcode_into_libs=yes | 17683 | hardcode_into_libs=yes |
17942 | ;; | 17684 | ;; |
17685 | freebsd*) # from 4.6 on | ||
17686 | shlibpath_overrides_runpath=yes | ||
17687 | hardcode_into_libs=yes | ||
17688 | ;; | ||
17943 | esac | 17689 | esac |
17944 | ;; | 17690 | ;; |
17945 | 17691 | ||
@@ -17999,6 +17745,18 @@ hpux9* | hpux10* | hpux11*) | |||
17999 | postinstall_cmds='chmod 555 $lib' | 17745 | postinstall_cmds='chmod 555 $lib' |
18000 | ;; | 17746 | ;; |
18001 | 17747 | ||
17748 | interix3*) | ||
17749 | version_type=linux | ||
17750 | need_lib_prefix=no | ||
17751 | need_version=no | ||
17752 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
17753 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17754 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
17755 | shlibpath_var=LD_LIBRARY_PATH | ||
17756 | shlibpath_overrides_runpath=no | ||
17757 | hardcode_into_libs=yes | ||
17758 | ;; | ||
17759 | |||
18002 | irix5* | irix6* | nonstopux*) | 17760 | irix5* | irix6* | nonstopux*) |
18003 | case $host_os in | 17761 | case $host_os in |
18004 | nonstopux*) version_type=nonstopux ;; | 17762 | nonstopux*) version_type=nonstopux ;; |
@@ -18132,6 +17890,7 @@ nto-qnx*) | |||
18132 | 17890 | ||
18133 | openbsd*) | 17891 | openbsd*) |
18134 | version_type=sunos | 17892 | version_type=sunos |
17893 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
18135 | need_lib_prefix=no | 17894 | need_lib_prefix=no |
18136 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | 17895 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18137 | case $host_os in | 17896 | case $host_os in |
@@ -18175,13 +17934,6 @@ osf3* | osf4* | osf5*) | |||
18175 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | 17934 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18176 | ;; | 17935 | ;; |
18177 | 17936 | ||
18178 | sco3.2v5*) | ||
18179 | version_type=osf | ||
18180 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18182 | shlibpath_var=LD_LIBRARY_PATH | ||
18183 | ;; | ||
18184 | |||
18185 | solaris*) | 17937 | solaris*) |
18186 | version_type=linux | 17938 | version_type=linux |
18187 | need_lib_prefix=no | 17939 | need_lib_prefix=no |
@@ -18207,7 +17959,7 @@ sunos4*) | |||
18207 | need_version=yes | 17959 | need_version=yes |
18208 | ;; | 17960 | ;; |
18209 | 17961 | ||
18210 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | 17962 | sysv4 | sysv4.3*) |
18211 | version_type=linux | 17963 | version_type=linux |
18212 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 17964 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18213 | soname_spec='${libname}${release}${shared_ext}$major' | 17965 | soname_spec='${libname}${release}${shared_ext}$major' |
@@ -18240,6 +17992,29 @@ sysv4*MP*) | |||
18240 | fi | 17992 | fi |
18241 | ;; | 17993 | ;; |
18242 | 17994 | ||
17995 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
17996 | version_type=freebsd-elf | ||
17997 | need_lib_prefix=no | ||
17998 | need_version=no | ||
17999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18000 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18001 | shlibpath_var=LD_LIBRARY_PATH | ||
18002 | hardcode_into_libs=yes | ||
18003 | if test "$with_gnu_ld" = yes; then | ||
18004 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
18005 | shlibpath_overrides_runpath=no | ||
18006 | else | ||
18007 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
18008 | shlibpath_overrides_runpath=yes | ||
18009 | case $host_os in | ||
18010 | sco3.2v5*) | ||
18011 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
18012 | ;; | ||
18013 | esac | ||
18014 | fi | ||
18015 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
18016 | ;; | ||
18017 | |||
18243 | uts4*) | 18018 | uts4*) |
18244 | version_type=linux | 18019 | version_type=linux |
18245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | 18020 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
@@ -18255,6 +18030,11 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |||
18255 | echo "${ECHO_T}$dynamic_linker" >&6 | 18030 | echo "${ECHO_T}$dynamic_linker" >&6 |
18256 | test "$dynamic_linker" = no && can_build_shared=no | 18031 | test "$dynamic_linker" = no && can_build_shared=no |
18257 | 18032 | ||
18033 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
18034 | if test "$GCC" = yes; then | ||
18035 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
18036 | fi | ||
18037 | |||
18258 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | 18038 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18259 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | 18039 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 |
18260 | hardcode_action_GCJ= | 18040 | hardcode_action_GCJ= |
@@ -18292,834 +18072,6 @@ elif test "$shlibpath_overrides_runpath" = yes || | |||
18292 | enable_fast_install=needless | 18072 | enable_fast_install=needless |
18293 | fi | 18073 | fi |
18294 | 18074 | ||
18295 | striplib= | ||
18296 | old_striplib= | ||
18297 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
18298 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
18299 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
18300 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
18301 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
18302 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18303 | echo "${ECHO_T}yes" >&6 | ||
18304 | else | ||
18305 | # FIXME - insert some real tests, host_os isn't really good enough | ||
18306 | case $host_os in | ||
18307 | darwin*) | ||
18308 | if test -n "$STRIP" ; then | ||
18309 | striplib="$STRIP -x" | ||
18310 | echo "$as_me:$LINENO: result: yes" >&5 | ||
18311 | echo "${ECHO_T}yes" >&6 | ||
18312 | else | ||
18313 | echo "$as_me:$LINENO: result: no" >&5 | ||
18314 | echo "${ECHO_T}no" >&6 | ||
18315 | fi | ||
18316 | ;; | ||
18317 | *) | ||
18318 | echo "$as_me:$LINENO: result: no" >&5 | ||
18319 | echo "${ECHO_T}no" >&6 | ||
18320 | ;; | ||
18321 | esac | ||
18322 | fi | ||
18323 | |||
18324 | if test "x$enable_dlopen" != xyes; then | ||
18325 | enable_dlopen=unknown | ||
18326 | enable_dlopen_self=unknown | ||
18327 | enable_dlopen_self_static=unknown | ||
18328 | else | ||
18329 | lt_cv_dlopen=no | ||
18330 | lt_cv_dlopen_libs= | ||
18331 | |||
18332 | case $host_os in | ||
18333 | beos*) | ||
18334 | lt_cv_dlopen="load_add_on" | ||
18335 | lt_cv_dlopen_libs= | ||
18336 | lt_cv_dlopen_self=yes | ||
18337 | ;; | ||
18338 | |||
18339 | mingw* | pw32*) | ||
18340 | lt_cv_dlopen="LoadLibrary" | ||
18341 | lt_cv_dlopen_libs= | ||
18342 | ;; | ||
18343 | |||
18344 | cygwin*) | ||
18345 | lt_cv_dlopen="dlopen" | ||
18346 | lt_cv_dlopen_libs= | ||
18347 | ;; | ||
18348 | |||
18349 | darwin*) | ||
18350 | # if libdl is installed we need to link against it | ||
18351 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18352 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
18353 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18355 | else | ||
18356 | ac_check_lib_save_LIBS=$LIBS | ||
18357 | LIBS="-ldl $LIBS" | ||
18358 | cat >conftest.$ac_ext <<_ACEOF | ||
18359 | /* confdefs.h. */ | ||
18360 | _ACEOF | ||
18361 | cat confdefs.h >>conftest.$ac_ext | ||
18362 | cat >>conftest.$ac_ext <<_ACEOF | ||
18363 | /* end confdefs.h. */ | ||
18364 | |||
18365 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18366 | #ifdef __cplusplus | ||
18367 | extern "C" | ||
18368 | #endif | ||
18369 | /* We use char because int might match the return type of a gcc2 | ||
18370 | builtin and then its argument prototype would still apply. */ | ||
18371 | char dlopen (); | ||
18372 | int | ||
18373 | main () | ||
18374 | { | ||
18375 | dlopen (); | ||
18376 | ; | ||
18377 | return 0; | ||
18378 | } | ||
18379 | _ACEOF | ||
18380 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18382 | (eval $ac_link) 2>conftest.er1 | ||
18383 | ac_status=$? | ||
18384 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18385 | rm -f conftest.er1 | ||
18386 | cat conftest.err >&5 | ||
18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18388 | (exit $ac_status); } && | ||
18389 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18391 | (eval $ac_try) 2>&5 | ||
18392 | ac_status=$? | ||
18393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18394 | (exit $ac_status); }; } && | ||
18395 | { ac_try='test -s conftest$ac_exeext' | ||
18396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18397 | (eval $ac_try) 2>&5 | ||
18398 | ac_status=$? | ||
18399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18400 | (exit $ac_status); }; }; then | ||
18401 | ac_cv_lib_dl_dlopen=yes | ||
18402 | else | ||
18403 | echo "$as_me: failed program was:" >&5 | ||
18404 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18405 | |||
18406 | ac_cv_lib_dl_dlopen=no | ||
18407 | fi | ||
18408 | rm -f conftest.err conftest.$ac_objext \ | ||
18409 | conftest$ac_exeext conftest.$ac_ext | ||
18410 | LIBS=$ac_check_lib_save_LIBS | ||
18411 | fi | ||
18412 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18413 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
18414 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18415 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
18416 | else | ||
18417 | |||
18418 | lt_cv_dlopen="dyld" | ||
18419 | lt_cv_dlopen_libs= | ||
18420 | lt_cv_dlopen_self=yes | ||
18421 | |||
18422 | fi | ||
18423 | |||
18424 | ;; | ||
18425 | |||
18426 | *) | ||
18427 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
18428 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
18429 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
18430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18431 | else | ||
18432 | cat >conftest.$ac_ext <<_ACEOF | ||
18433 | /* confdefs.h. */ | ||
18434 | _ACEOF | ||
18435 | cat confdefs.h >>conftest.$ac_ext | ||
18436 | cat >>conftest.$ac_ext <<_ACEOF | ||
18437 | /* end confdefs.h. */ | ||
18438 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
18439 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18440 | #define shl_load innocuous_shl_load | ||
18441 | |||
18442 | /* System header to define __stub macros and hopefully few prototypes, | ||
18443 | which can conflict with char shl_load (); below. | ||
18444 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18445 | <limits.h> exists even on freestanding compilers. */ | ||
18446 | |||
18447 | #ifdef __STDC__ | ||
18448 | # include <limits.h> | ||
18449 | #else | ||
18450 | # include <assert.h> | ||
18451 | #endif | ||
18452 | |||
18453 | #undef shl_load | ||
18454 | |||
18455 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18456 | #ifdef __cplusplus | ||
18457 | extern "C" | ||
18458 | { | ||
18459 | #endif | ||
18460 | /* We use char because int might match the return type of a gcc2 | ||
18461 | builtin and then its argument prototype would still apply. */ | ||
18462 | char shl_load (); | ||
18463 | /* The GNU C library defines this for functions which it implements | ||
18464 | to always fail with ENOSYS. Some functions are actually named | ||
18465 | something starting with __ and the normal name is an alias. */ | ||
18466 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
18467 | choke me | ||
18468 | #else | ||
18469 | char (*f) () = shl_load; | ||
18470 | #endif | ||
18471 | #ifdef __cplusplus | ||
18472 | } | ||
18473 | #endif | ||
18474 | |||
18475 | int | ||
18476 | main () | ||
18477 | { | ||
18478 | return f != shl_load; | ||
18479 | ; | ||
18480 | return 0; | ||
18481 | } | ||
18482 | _ACEOF | ||
18483 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18485 | (eval $ac_link) 2>conftest.er1 | ||
18486 | ac_status=$? | ||
18487 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18488 | rm -f conftest.er1 | ||
18489 | cat conftest.err >&5 | ||
18490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18491 | (exit $ac_status); } && | ||
18492 | { ac_try='test -z "$ac_c_werror_flag" || 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_shl_load=yes | ||
18505 | else | ||
18506 | echo "$as_me: failed program was:" >&5 | ||
18507 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18508 | |||
18509 | ac_cv_func_shl_load=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_shl_load" >&5 | ||
18515 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
18516 | if test $ac_cv_func_shl_load = yes; then | ||
18517 | lt_cv_dlopen="shl_load" | ||
18518 | else | ||
18519 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
18520 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
18521 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
18522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18523 | else | ||
18524 | ac_check_lib_save_LIBS=$LIBS | ||
18525 | LIBS="-ldld $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 shl_load (); | ||
18540 | int | ||
18541 | main () | ||
18542 | { | ||
18543 | shl_load (); | ||
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" || test ! -s conftest.err' | ||
18558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18559 | (eval $ac_try) 2>&5 | ||
18560 | ac_status=$? | ||
18561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18562 | (exit $ac_status); }; } && | ||
18563 | { ac_try='test -s conftest$ac_exeext' | ||
18564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18565 | (eval $ac_try) 2>&5 | ||
18566 | ac_status=$? | ||
18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18568 | (exit $ac_status); }; }; then | ||
18569 | ac_cv_lib_dld_shl_load=yes | ||
18570 | else | ||
18571 | echo "$as_me: failed program was:" >&5 | ||
18572 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18573 | |||
18574 | ac_cv_lib_dld_shl_load=no | ||
18575 | fi | ||
18576 | rm -f conftest.err conftest.$ac_objext \ | ||
18577 | conftest$ac_exeext conftest.$ac_ext | ||
18578 | LIBS=$ac_check_lib_save_LIBS | ||
18579 | fi | ||
18580 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
18581 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
18582 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
18583 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
18584 | else | ||
18585 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
18586 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
18587 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
18588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18589 | else | ||
18590 | cat >conftest.$ac_ext <<_ACEOF | ||
18591 | /* confdefs.h. */ | ||
18592 | _ACEOF | ||
18593 | cat confdefs.h >>conftest.$ac_ext | ||
18594 | cat >>conftest.$ac_ext <<_ACEOF | ||
18595 | /* end confdefs.h. */ | ||
18596 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
18597 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18598 | #define dlopen innocuous_dlopen | ||
18599 | |||
18600 | /* System header to define __stub macros and hopefully few prototypes, | ||
18601 | which can conflict with char dlopen (); below. | ||
18602 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18603 | <limits.h> exists even on freestanding compilers. */ | ||
18604 | |||
18605 | #ifdef __STDC__ | ||
18606 | # include <limits.h> | ||
18607 | #else | ||
18608 | # include <assert.h> | ||
18609 | #endif | ||
18610 | |||
18611 | #undef dlopen | ||
18612 | |||
18613 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18614 | #ifdef __cplusplus | ||
18615 | extern "C" | ||
18616 | { | ||
18617 | #endif | ||
18618 | /* We use char because int might match the return type of a gcc2 | ||
18619 | builtin and then its argument prototype would still apply. */ | ||
18620 | char dlopen (); | ||
18621 | /* The GNU C library defines this for functions which it implements | ||
18622 | to always fail with ENOSYS. Some functions are actually named | ||
18623 | something starting with __ and the normal name is an alias. */ | ||
18624 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
18625 | choke me | ||
18626 | #else | ||
18627 | char (*f) () = dlopen; | ||
18628 | #endif | ||
18629 | #ifdef __cplusplus | ||
18630 | } | ||
18631 | #endif | ||
18632 | |||
18633 | int | ||
18634 | main () | ||
18635 | { | ||
18636 | return f != dlopen; | ||
18637 | ; | ||
18638 | return 0; | ||
18639 | } | ||
18640 | _ACEOF | ||
18641 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18643 | (eval $ac_link) 2>conftest.er1 | ||
18644 | ac_status=$? | ||
18645 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18646 | rm -f conftest.er1 | ||
18647 | cat conftest.err >&5 | ||
18648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18649 | (exit $ac_status); } && | ||
18650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18652 | (eval $ac_try) 2>&5 | ||
18653 | ac_status=$? | ||
18654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18655 | (exit $ac_status); }; } && | ||
18656 | { ac_try='test -s conftest$ac_exeext' | ||
18657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18658 | (eval $ac_try) 2>&5 | ||
18659 | ac_status=$? | ||
18660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18661 | (exit $ac_status); }; }; then | ||
18662 | ac_cv_func_dlopen=yes | ||
18663 | else | ||
18664 | echo "$as_me: failed program was:" >&5 | ||
18665 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18666 | |||
18667 | ac_cv_func_dlopen=no | ||
18668 | fi | ||
18669 | rm -f conftest.err conftest.$ac_objext \ | ||
18670 | conftest$ac_exeext conftest.$ac_ext | ||
18671 | fi | ||
18672 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
18673 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
18674 | if test $ac_cv_func_dlopen = yes; then | ||
18675 | lt_cv_dlopen="dlopen" | ||
18676 | else | ||
18677 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18678 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
18679 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18681 | else | ||
18682 | ac_check_lib_save_LIBS=$LIBS | ||
18683 | LIBS="-ldl $LIBS" | ||
18684 | cat >conftest.$ac_ext <<_ACEOF | ||
18685 | /* confdefs.h. */ | ||
18686 | _ACEOF | ||
18687 | cat confdefs.h >>conftest.$ac_ext | ||
18688 | cat >>conftest.$ac_ext <<_ACEOF | ||
18689 | /* end confdefs.h. */ | ||
18690 | |||
18691 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18692 | #ifdef __cplusplus | ||
18693 | extern "C" | ||
18694 | #endif | ||
18695 | /* We use char because int might match the return type of a gcc2 | ||
18696 | builtin and then its argument prototype would still apply. */ | ||
18697 | char dlopen (); | ||
18698 | int | ||
18699 | main () | ||
18700 | { | ||
18701 | dlopen (); | ||
18702 | ; | ||
18703 | return 0; | ||
18704 | } | ||
18705 | _ACEOF | ||
18706 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18708 | (eval $ac_link) 2>conftest.er1 | ||
18709 | ac_status=$? | ||
18710 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18711 | rm -f conftest.er1 | ||
18712 | cat conftest.err >&5 | ||
18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18714 | (exit $ac_status); } && | ||
18715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18717 | (eval $ac_try) 2>&5 | ||
18718 | ac_status=$? | ||
18719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18720 | (exit $ac_status); }; } && | ||
18721 | { ac_try='test -s conftest$ac_exeext' | ||
18722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18723 | (eval $ac_try) 2>&5 | ||
18724 | ac_status=$? | ||
18725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18726 | (exit $ac_status); }; }; then | ||
18727 | ac_cv_lib_dl_dlopen=yes | ||
18728 | else | ||
18729 | echo "$as_me: failed program was:" >&5 | ||
18730 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18731 | |||
18732 | ac_cv_lib_dl_dlopen=no | ||
18733 | fi | ||
18734 | rm -f conftest.err conftest.$ac_objext \ | ||
18735 | conftest$ac_exeext conftest.$ac_ext | ||
18736 | LIBS=$ac_check_lib_save_LIBS | ||
18737 | fi | ||
18738 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18739 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
18740 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18741 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
18742 | else | ||
18743 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
18744 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
18745 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
18746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18747 | else | ||
18748 | ac_check_lib_save_LIBS=$LIBS | ||
18749 | LIBS="-lsvld $LIBS" | ||
18750 | cat >conftest.$ac_ext <<_ACEOF | ||
18751 | /* confdefs.h. */ | ||
18752 | _ACEOF | ||
18753 | cat confdefs.h >>conftest.$ac_ext | ||
18754 | cat >>conftest.$ac_ext <<_ACEOF | ||
18755 | /* end confdefs.h. */ | ||
18756 | |||
18757 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18758 | #ifdef __cplusplus | ||
18759 | extern "C" | ||
18760 | #endif | ||
18761 | /* We use char because int might match the return type of a gcc2 | ||
18762 | builtin and then its argument prototype would still apply. */ | ||
18763 | char dlopen (); | ||
18764 | int | ||
18765 | main () | ||
18766 | { | ||
18767 | dlopen (); | ||
18768 | ; | ||
18769 | return 0; | ||
18770 | } | ||
18771 | _ACEOF | ||
18772 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18773 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18774 | (eval $ac_link) 2>conftest.er1 | ||
18775 | ac_status=$? | ||
18776 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18777 | rm -f conftest.er1 | ||
18778 | cat conftest.err >&5 | ||
18779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18780 | (exit $ac_status); } && | ||
18781 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18783 | (eval $ac_try) 2>&5 | ||
18784 | ac_status=$? | ||
18785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18786 | (exit $ac_status); }; } && | ||
18787 | { ac_try='test -s conftest$ac_exeext' | ||
18788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18789 | (eval $ac_try) 2>&5 | ||
18790 | ac_status=$? | ||
18791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18792 | (exit $ac_status); }; }; then | ||
18793 | ac_cv_lib_svld_dlopen=yes | ||
18794 | else | ||
18795 | echo "$as_me: failed program was:" >&5 | ||
18796 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18797 | |||
18798 | ac_cv_lib_svld_dlopen=no | ||
18799 | fi | ||
18800 | rm -f conftest.err conftest.$ac_objext \ | ||
18801 | conftest$ac_exeext conftest.$ac_ext | ||
18802 | LIBS=$ac_check_lib_save_LIBS | ||
18803 | fi | ||
18804 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
18805 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
18806 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
18807 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
18808 | else | ||
18809 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
18810 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
18811 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
18812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18813 | else | ||
18814 | ac_check_lib_save_LIBS=$LIBS | ||
18815 | LIBS="-ldld $LIBS" | ||
18816 | cat >conftest.$ac_ext <<_ACEOF | ||
18817 | /* confdefs.h. */ | ||
18818 | _ACEOF | ||
18819 | cat confdefs.h >>conftest.$ac_ext | ||
18820 | cat >>conftest.$ac_ext <<_ACEOF | ||
18821 | /* end confdefs.h. */ | ||
18822 | |||
18823 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18824 | #ifdef __cplusplus | ||
18825 | extern "C" | ||
18826 | #endif | ||
18827 | /* We use char because int might match the return type of a gcc2 | ||
18828 | builtin and then its argument prototype would still apply. */ | ||
18829 | char dld_link (); | ||
18830 | int | ||
18831 | main () | ||
18832 | { | ||
18833 | dld_link (); | ||
18834 | ; | ||
18835 | return 0; | ||
18836 | } | ||
18837 | _ACEOF | ||
18838 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18839 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18840 | (eval $ac_link) 2>conftest.er1 | ||
18841 | ac_status=$? | ||
18842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18843 | rm -f conftest.er1 | ||
18844 | cat conftest.err >&5 | ||
18845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18846 | (exit $ac_status); } && | ||
18847 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18849 | (eval $ac_try) 2>&5 | ||
18850 | ac_status=$? | ||
18851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18852 | (exit $ac_status); }; } && | ||
18853 | { ac_try='test -s conftest$ac_exeext' | ||
18854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18855 | (eval $ac_try) 2>&5 | ||
18856 | ac_status=$? | ||
18857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18858 | (exit $ac_status); }; }; then | ||
18859 | ac_cv_lib_dld_dld_link=yes | ||
18860 | else | ||
18861 | echo "$as_me: failed program was:" >&5 | ||
18862 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18863 | |||
18864 | ac_cv_lib_dld_dld_link=no | ||
18865 | fi | ||
18866 | rm -f conftest.err conftest.$ac_objext \ | ||
18867 | conftest$ac_exeext conftest.$ac_ext | ||
18868 | LIBS=$ac_check_lib_save_LIBS | ||
18869 | fi | ||
18870 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
18871 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
18872 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
18873 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
18874 | fi | ||
18875 | |||
18876 | |||
18877 | fi | ||
18878 | |||
18879 | |||
18880 | fi | ||
18881 | |||
18882 | |||
18883 | fi | ||
18884 | |||
18885 | |||
18886 | fi | ||
18887 | |||
18888 | |||
18889 | fi | ||
18890 | |||
18891 | ;; | ||
18892 | esac | ||
18893 | |||
18894 | if test "x$lt_cv_dlopen" != xno; then | ||
18895 | enable_dlopen=yes | ||
18896 | else | ||
18897 | enable_dlopen=no | ||
18898 | fi | ||
18899 | |||
18900 | case $lt_cv_dlopen in | ||
18901 | dlopen) | ||
18902 | save_CPPFLAGS="$CPPFLAGS" | ||
18903 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
18904 | |||
18905 | save_LDFLAGS="$LDFLAGS" | ||
18906 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
18907 | |||
18908 | save_LIBS="$LIBS" | ||
18909 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
18910 | |||
18911 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
18912 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
18913 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
18914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18915 | else | ||
18916 | if test "$cross_compiling" = yes; then : | ||
18917 | lt_cv_dlopen_self=cross | ||
18918 | else | ||
18919 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
18920 | lt_status=$lt_dlunknown | ||
18921 | cat > conftest.$ac_ext <<EOF | ||
18922 | #line 18922 "configure" | ||
18923 | #include "confdefs.h" | ||
18924 | |||
18925 | #if HAVE_DLFCN_H | ||
18926 | #include <dlfcn.h> | ||
18927 | #endif | ||
18928 | |||
18929 | #include <stdio.h> | ||
18930 | |||
18931 | #ifdef RTLD_GLOBAL | ||
18932 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
18933 | #else | ||
18934 | # ifdef DL_GLOBAL | ||
18935 | # define LT_DLGLOBAL DL_GLOBAL | ||
18936 | # else | ||
18937 | # define LT_DLGLOBAL 0 | ||
18938 | # endif | ||
18939 | #endif | ||
18940 | |||
18941 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
18942 | find out it does not work in some platform. */ | ||
18943 | #ifndef LT_DLLAZY_OR_NOW | ||
18944 | # ifdef RTLD_LAZY | ||
18945 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
18946 | # else | ||
18947 | # ifdef DL_LAZY | ||
18948 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
18949 | # else | ||
18950 | # ifdef RTLD_NOW | ||
18951 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
18952 | # else | ||
18953 | # ifdef DL_NOW | ||
18954 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
18955 | # else | ||
18956 | # define LT_DLLAZY_OR_NOW 0 | ||
18957 | # endif | ||
18958 | # endif | ||
18959 | # endif | ||
18960 | # endif | ||
18961 | #endif | ||
18962 | |||
18963 | #ifdef __cplusplus | ||
18964 | extern "C" void exit (int); | ||
18965 | #endif | ||
18966 | |||
18967 | void fnord() { int i=42;} | ||
18968 | int main () | ||
18969 | { | ||
18970 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
18971 | int status = $lt_dlunknown; | ||
18972 | |||
18973 | if (self) | ||
18974 | { | ||
18975 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
18976 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
18977 | /* dlclose (self); */ | ||
18978 | } | ||
18979 | |||
18980 | exit (status); | ||
18981 | } | ||
18982 | EOF | ||
18983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18984 | (eval $ac_link) 2>&5 | ||
18985 | ac_status=$? | ||
18986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18987 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
18988 | (./conftest; exit; ) >&5 2>/dev/null | ||
18989 | lt_status=$? | ||
18990 | case x$lt_status in | ||
18991 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
18992 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
18993 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
18994 | esac | ||
18995 | else : | ||
18996 | # compilation failed | ||
18997 | lt_cv_dlopen_self=no | ||
18998 | fi | ||
18999 | fi | ||
19000 | rm -fr conftest* | ||
19001 | |||
19002 | |||
19003 | fi | ||
19004 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
19005 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
19006 | |||
19007 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
19008 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
19009 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
19010 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
19011 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
19012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19013 | else | ||
19014 | if test "$cross_compiling" = yes; then : | ||
19015 | lt_cv_dlopen_self_static=cross | ||
19016 | else | ||
19017 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
19018 | lt_status=$lt_dlunknown | ||
19019 | cat > conftest.$ac_ext <<EOF | ||
19020 | #line 19020 "configure" | ||
19021 | #include "confdefs.h" | ||
19022 | |||
19023 | #if HAVE_DLFCN_H | ||
19024 | #include <dlfcn.h> | ||
19025 | #endif | ||
19026 | |||
19027 | #include <stdio.h> | ||
19028 | |||
19029 | #ifdef RTLD_GLOBAL | ||
19030 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
19031 | #else | ||
19032 | # ifdef DL_GLOBAL | ||
19033 | # define LT_DLGLOBAL DL_GLOBAL | ||
19034 | # else | ||
19035 | # define LT_DLGLOBAL 0 | ||
19036 | # endif | ||
19037 | #endif | ||
19038 | |||
19039 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
19040 | find out it does not work in some platform. */ | ||
19041 | #ifndef LT_DLLAZY_OR_NOW | ||
19042 | # ifdef RTLD_LAZY | ||
19043 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
19044 | # else | ||
19045 | # ifdef DL_LAZY | ||
19046 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
19047 | # else | ||
19048 | # ifdef RTLD_NOW | ||
19049 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
19050 | # else | ||
19051 | # ifdef DL_NOW | ||
19052 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
19053 | # else | ||
19054 | # define LT_DLLAZY_OR_NOW 0 | ||
19055 | # endif | ||
19056 | # endif | ||
19057 | # endif | ||
19058 | # endif | ||
19059 | #endif | ||
19060 | |||
19061 | #ifdef __cplusplus | ||
19062 | extern "C" void exit (int); | ||
19063 | #endif | ||
19064 | |||
19065 | void fnord() { int i=42;} | ||
19066 | int main () | ||
19067 | { | ||
19068 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
19069 | int status = $lt_dlunknown; | ||
19070 | |||
19071 | if (self) | ||
19072 | { | ||
19073 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
19074 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19075 | /* dlclose (self); */ | ||
19076 | } | ||
19077 | |||
19078 | exit (status); | ||
19079 | } | ||
19080 | EOF | ||
19081 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19082 | (eval $ac_link) 2>&5 | ||
19083 | ac_status=$? | ||
19084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19085 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
19086 | (./conftest; exit; ) >&5 2>/dev/null | ||
19087 | lt_status=$? | ||
19088 | case x$lt_status in | ||
19089 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
19090 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
19091 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
19092 | esac | ||
19093 | else : | ||
19094 | # compilation failed | ||
19095 | lt_cv_dlopen_self_static=no | ||
19096 | fi | ||
19097 | fi | ||
19098 | rm -fr conftest* | ||
19099 | |||
19100 | |||
19101 | fi | ||
19102 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
19103 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
19104 | fi | ||
19105 | |||
19106 | CPPFLAGS="$save_CPPFLAGS" | ||
19107 | LDFLAGS="$save_LDFLAGS" | ||
19108 | LIBS="$save_LIBS" | ||
19109 | ;; | ||
19110 | esac | ||
19111 | |||
19112 | case $lt_cv_dlopen_self in | ||
19113 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
19114 | *) enable_dlopen_self=unknown ;; | ||
19115 | esac | ||
19116 | |||
19117 | case $lt_cv_dlopen_self_static in | ||
19118 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
19119 | *) enable_dlopen_self_static=unknown ;; | ||
19120 | esac | ||
19121 | fi | ||
19122 | |||
19123 | 18075 | ||
19124 | # The else clause should only fire when bootstrapping the | 18076 | # The else clause should only fire when bootstrapping the |
19125 | # libtool distribution, otherwise you forgot to ship ltmain.sh | 18077 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
@@ -19134,7 +18086,7 @@ if test -f "$ltmain"; then | |||
19134 | # Now quote all the things that may contain metacharacters while being | 18086 | # Now quote all the things that may contain metacharacters while being |
19135 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 18087 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19136 | # variables and quote the copies for generation of the libtool script. | 18088 | # variables and quote the copies for generation of the libtool script. |
19137 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 18089 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19138 | SED SHELL STRIP \ | 18090 | SED SHELL STRIP \ |
19139 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 18091 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19140 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 18092 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -19252,6 +18204,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
19252 | # A C compiler. | 18204 | # A C compiler. |
19253 | LTCC=$lt_LTCC | 18205 | LTCC=$lt_LTCC |
19254 | 18206 | ||
18207 | # LTCC compiler flags. | ||
18208 | LTCFLAGS=$lt_LTCFLAGS | ||
18209 | |||
19255 | # A language-specific compiler. | 18210 | # A language-specific compiler. |
19256 | CC=$lt_compiler_GCJ | 18211 | CC=$lt_compiler_GCJ |
19257 | 18212 | ||
@@ -19561,6 +18516,9 @@ lt_simple_link_test_code="$lt_simple_compile_test_code" | |||
19561 | # If no C compiler was specified, use CC. | 18516 | # If no C compiler was specified, use CC. |
19562 | LTCC=${LTCC-"$CC"} | 18517 | LTCC=${LTCC-"$CC"} |
19563 | 18518 | ||
18519 | # If no C compiler flags were specified, use CFLAGS. | ||
18520 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
18521 | |||
19564 | # Allow CC to be a program name with arguments. | 18522 | # Allow CC to be a program name with arguments. |
19565 | compiler=$CC | 18523 | compiler=$CC |
19566 | 18524 | ||
@@ -19568,13 +18526,13 @@ compiler=$CC | |||
19568 | # save warnings/boilerplate of simple test code | 18526 | # save warnings/boilerplate of simple test code |
19569 | ac_outfile=conftest.$ac_objext | 18527 | ac_outfile=conftest.$ac_objext |
19570 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | 18528 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19571 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 18529 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19572 | _lt_compiler_boilerplate=`cat conftest.err` | 18530 | _lt_compiler_boilerplate=`cat conftest.err` |
19573 | $rm conftest* | 18531 | $rm conftest* |
19574 | 18532 | ||
19575 | ac_outfile=conftest.$ac_objext | 18533 | ac_outfile=conftest.$ac_objext |
19576 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | 18534 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19577 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err | 18535 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19578 | _lt_linker_boilerplate=`cat conftest.err` | 18536 | _lt_linker_boilerplate=`cat conftest.err` |
19579 | $rm conftest* | 18537 | $rm conftest* |
19580 | 18538 | ||
@@ -19609,7 +18567,7 @@ if test -f "$ltmain"; then | |||
19609 | # Now quote all the things that may contain metacharacters while being | 18567 | # Now quote all the things that may contain metacharacters while being |
19610 | # careful not to overquote the AC_SUBSTed values. We take copies of the | 18568 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19611 | # variables and quote the copies for generation of the libtool script. | 18569 | # variables and quote the copies for generation of the libtool script. |
19612 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | 18570 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19613 | SED SHELL STRIP \ | 18571 | SED SHELL STRIP \ |
19614 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | 18572 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19615 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | 18573 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
@@ -19727,6 +18685,9 @@ AR_FLAGS=$lt_AR_FLAGS | |||
19727 | # A C compiler. | 18685 | # A C compiler. |
19728 | LTCC=$lt_LTCC | 18686 | LTCC=$lt_LTCC |
19729 | 18687 | ||
18688 | # LTCC compiler flags. | ||
18689 | LTCFLAGS=$lt_LTCFLAGS | ||
18690 | |||
19730 | # A language-specific compiler. | 18691 | # A language-specific compiler. |
19731 | CC=$lt_compiler_RC | 18692 | CC=$lt_compiler_RC |
19732 | 18693 | ||
@@ -21270,7 +20231,7 @@ else | |||
21270 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 20231 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
21271 | lt_status=$lt_dlunknown | 20232 | lt_status=$lt_dlunknown |
21272 | cat > conftest.$ac_ext <<EOF | 20233 | cat > conftest.$ac_ext <<EOF |
21273 | #line 21273 "configure" | 20234 | #line 20234 "configure" |
21274 | #include "confdefs.h" | 20235 | #include "confdefs.h" |
21275 | 20236 | ||
21276 | #if HAVE_DLFCN_H | 20237 | #if HAVE_DLFCN_H |
@@ -21327,6 +20288,8 @@ int main () | |||
21327 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | 20288 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
21328 | /* dlclose (self); */ | 20289 | /* dlclose (self); */ |
21329 | } | 20290 | } |
20291 | else | ||
20292 | puts (dlerror ()); | ||
21330 | 20293 | ||
21331 | exit (status); | 20294 | exit (status); |
21332 | } | 20295 | } |
@@ -21341,7 +20304,7 @@ EOF | |||
21341 | case x$lt_status in | 20304 | case x$lt_status in |
21342 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | 20305 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; |
21343 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | 20306 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; |
21344 | x$lt_unknown|x*) ;; | 20307 | x$lt_dlunknown|x*) ;; |
21345 | esac | 20308 | esac |
21346 | else : | 20309 | else : |
21347 | # compilation failed | 20310 | # compilation failed |
@@ -21398,6 +20361,9 @@ else | |||
21398 | hpux10*|hpux11*) | 20361 | hpux10*|hpux11*) |
21399 | libltdl_cv_sys_dlopen_deplibs=yes | 20362 | libltdl_cv_sys_dlopen_deplibs=yes |
21400 | ;; | 20363 | ;; |
20364 | interix*) | ||
20365 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20366 | ;; | ||
21401 | irix[12345]*|irix6.[01]*) | 20367 | irix[12345]*|irix6.[01]*) |
21402 | # Catch all versions of IRIX before 6.2, and indicate that we don't | 20368 | # Catch all versions of IRIX before 6.2, and indicate that we don't |
21403 | # know how it worked for any of those versions. | 20369 | # know how it worked for any of those versions. |
@@ -21439,6 +20405,9 @@ else | |||
21439 | solaris*) | 20405 | solaris*) |
21440 | libltdl_cv_sys_dlopen_deplibs=yes | 20406 | libltdl_cv_sys_dlopen_deplibs=yes |
21441 | ;; | 20407 | ;; |
20408 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
20409 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20410 | ;; | ||
21442 | esac | 20411 | esac |
21443 | 20412 | ||
21444 | fi | 20413 | fi |