Changeset 605 for branches/GNU/src/binutils/ltconfig
- Timestamp:
- Aug 16, 2003, 6:41:03 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/ltconfig
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r604 r605 2 2 3 3 # ltconfig - Create a system-specific libtool. 4 # Copyright (C) 1996-2000 Free Software Foundation, Inc. 4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 5 # Free Software Foundation, Inc. 5 6 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 6 7 # … … 181 182 PROGRAM=ltconfig 182 183 PACKAGE=libtool 183 VERSION=1.4a 184 TIMESTAMP=" (1.641.2. 122 2000/09/30 05:27:52)"184 VERSION=1.4a-GCC3.0 185 TIMESTAMP=" (1.641.2.256 2001/05/28 20:09:07 with GCC-local changes)" 185 186 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 186 187 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' … … 217 218 libext=a 218 219 cache_file= 220 max_cmd_len= 219 221 220 222 ## Dependencies to place before and after the object being linked: … … 295 297 for option 296 298 do 297 case "$option"in299 case $option in 298 300 -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 299 301 *) optarg= ;; … … 307 309 fi 308 310 309 case "$option"in311 case $option in 310 312 --help) cat <<EOM 311 313 Usage: $progname [OPTION]... LTMAIN [HOST] … … 423 425 if test -n "$tagname"; then 424 426 # Check whether tagname contains only valid characters 425 case "$tagname" in 426 *[!-_A-Za-z0-9,/]*) 427 case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in 428 "") ;; 429 *) 427 430 echo "$progname: invalid tag name: $tagname" 1>&2 428 431 exit 1 … … 453 456 for arg 454 457 do 455 case "$arg"in458 case $arg in 456 459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 457 460 ltconfig_args="$ltconfig_args '$arg'" ;; … … 536 539 537 540 host_alias=$host 538 case "$host_alias"in541 case $host_alias in 539 542 "") 540 543 # Force config.guess to use the C compiler. … … 564 567 565 568 build_alias=$build 566 case "$build_alias"in569 case $build_alias in 567 570 NONE) 568 571 case $nonopt in … … 599 602 600 603 # Transform linux* to *-*-linux-gnu*, to support old configure scripts. 601 case "$host_os"in604 case $host_os in 602 605 linux-gnu*) ;; 603 606 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 604 607 esac 605 608 606 case "$host_os"in609 case $host_os in 607 610 aix3*) 608 611 # AIX sometimes has problems with the GCC collect2 program. For some … … 673 676 # the associated values are set (in the cache) correctly too. 674 677 echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6 675 echo "$progname:67 5:checking for $compiler option to produce PIC" 1>&5678 echo "$progname:678:checking for $compiler option to produce PIC" 1>&5 676 679 677 680 if test -z "$ac_cv_prog_cc_pic"; then … … 682 685 # Check to make sure the pic_flag actually works. 683 686 echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6 684 echo "$progname:68 4:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5687 echo "$progname:687:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5 685 688 if test "X${ac_cv_prog_cc_pic_works+set}" = Xset && \ 686 689 test "X${ac_cv_prog_cc_pic_works}" != X; then … … 692 695 save_CFLAGS="$CFLAGS" 693 696 CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC" 694 if { (eval echo $progname:69 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then697 if { (eval echo $progname:697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then 695 698 # Append any warnings to the config.log. 696 699 cat conftest.err 1>&5 697 700 698 case "$host_os"in701 case $host_os in 699 702 hpux9* | hpux10* | hpux11*) 700 703 # On HP-UX, both CC and GCC only warn that PIC is supported... then … … 744 747 745 748 echo $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6 746 echo "$progname:74 6: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5749 echo "$progname:749: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5 747 750 if test "X${ac_cv_prog_cc_static_works+set}" = Xset && \ 748 751 test "X${ac_cv_prog_cc_static_works}" != X; then … … 753 756 save_LDFLAGS="$LDFLAGS" 754 757 LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static" 755 if { (eval echo $progname:75 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then758 if { (eval echo $progname:758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 756 759 ac_cv_prog_cc_static_works=yes 757 760 else … … 774 777 can_build_shared="$ac_cv_prog_cc_can_build_shared" 775 778 779 # find the maximum length of command line arguments 780 echo "$progname:780: finding the maximum length of command line arguments" 1>&5 781 echo $ac_n "finding the maximum length of command line arguments... $ac_c" 1>&6 782 if test "${lt_cv_sys_max_cmd_len+set}" = set; then 783 echo $ac_n "(cached) $ac_c" 1>&6 784 else 785 i=0 786 testring="ABCD" 787 # If test is not a shell built-in, we'll probably end up computing a 788 # maximum length that is only half of the actual maximum length, but 789 # we can't tell. 790 while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \ 791 = "XX$testring" && 792 new_result=`expr "X$testring" : ".*" 2>&1` && 793 lt_cv_sys_max_cmd_len=$new_result && 794 test $i != 17 # 1/2 MB should be enough 795 do 796 i=`expr $i + 1` 797 testring=$testring$testring 798 done 799 testring= 800 # add a significant safety factor because C++ compilers can tack on massive amounts 801 # of additional arguments before passing them to the linker. 1/4 should be good. 802 len=`expr $lt_cv_sys_max_cmd_len \/ 4` 803 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len` 804 fi 805 echo "$progname:@lineno@: result: $lt_cv_sys_max_cmd_len" 1>&5 806 echo "${ac_t}$lt_cv_sys_max_cmd_len" 1>&6 807 808 if test -n $lt_cv_sys_max_cmd_len ; then 809 max_cmd_len=$lt_cv_sys_max_cmd_len 810 else 811 max_cmd_len=none 812 fi 813 776 814 # Check to see if options -o and -c are simultaneously supported by compiler 777 815 echo $ac_n "checking if $compiler supports -c -o file.$objext... $ac_c" 1>&6 778 $rm -r conftest 2>/dev/null 779 mkdir conftest 780 cd conftest 781 $rm conftest* 782 echo $lt_simple_compile_test_code > conftest.$ac_ext 783 mkdir out 784 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 785 # that will create temporary files in the current directory regardless of 786 # the output directory. Thus, making CWD read-only will cause this test 787 # to fail, enabling locking or at least warning the user not to do parallel 788 # builds. 789 chmod -w . 790 save_CFLAGS="$CFLAGS" 791 CFLAGS="$CFLAGS -o out/conftest2.$objext" 792 echo "$progname:792: checking if $compiler supports -c -o file.$objext" >&5 793 if { (eval echo $progname:793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then 794 795 # The compiler can only warn and ignore the option if not recognized 796 # So say no if there are warnings 797 if test -s out/conftest.err; then 798 echo "$ac_t"no 1>&6 799 compiler_c_o=no 800 else 801 echo "$ac_t"yes 1>&6 802 compiler_c_o=yes 803 fi 804 else 805 # Append any errors to the config.log. 806 cat out/conftest.err 1>&5 807 compiler_c_o=no 808 echo "$ac_t"no 1>&6 809 fi 810 CFLAGS="$save_CFLAGS" 811 chmod u+w . 812 $rm conftest* out/* 813 rmdir out 814 cd .. 815 rmdir conftest 816 $rm -r conftest 2>/dev/null 816 if test "${lt_cv_compiler_c_o+set}" = set; then 817 echo $ac_n "(cached) $ac_c" 1>&6 818 else 819 $rm -r conftest 2>/dev/null 820 mkdir conftest 821 cd conftest 822 $rm conftest* 823 echo $lt_simple_compile_test_code > conftest.$ac_ext 824 mkdir out 825 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers 826 # that will create temporary files in the current directory regardless of 827 # the output directory. Thus, making CWD read-only will cause this test 828 # to fail, enabling locking or at least warning the user not to do parallel 829 # builds. 830 chmod -w . 831 save_CFLAGS="$CFLAGS" 832 CFLAGS="$CFLAGS -o out/conftest2.$objext" 833 echo "$progname:833: checking if $compiler supports -c -o file.$objext" >&5 834 if { (eval echo $progname:834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$objext; then 835 836 # The compiler can only warn and ignore the option if not recognized 837 # So say no if there are warnings 838 if test -s out/conftest.err; then 839 lt_cv_compiler_c_o=no 840 else 841 lt_cv_compiler_c_o=yes 842 fi 843 else 844 # Append any errors to the config.log. 845 cat out/conftest.err 1>&5 846 lt_cv_compiler_c_o=no 847 fi 848 CFLAGS="$save_CFLAGS" 849 chmod u+w . 850 $rm conftest* out/* 851 rmdir out 852 cd .. 853 rmdir conftest 854 $rm -r conftest 2>/dev/null 855 fi 856 compiler_c_o=$lt_cv_compiler_c_o 857 echo "${ac_t}$compiler_c_o" 1>&6 817 858 818 859 # Check to see if we can do hard links to lock some files if needed … … 844 885 save_CFLAGS="$CFLAGS" 845 886 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 846 echo "$progname:8 46: checking if $compiler supports -fno-rtti -fno-exceptions" >&5847 if { (eval echo $progname:8 47: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then887 echo "$progname:887: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 888 if { (eval echo $progname:888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then 848 889 849 890 # The compiler can only warn and ignore the option if not recognized … … 914 955 fi 915 956 957 case $reload_flag in 958 "" | " "*) ;; 959 *) reload_flag=" $reload_flag" ;; 960 esac 916 961 reload_cmds='$LD$reload_flag -o $output$reload_objs' 917 962 test -z "$deplibs_check_method" && deplibs_check_method=unknown … … 933 978 934 979 echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6 935 case "$host_os"in980 case $host_os in 936 981 aix3*) 937 982 version_type=linux … … 939 984 shlibpath_var=LIBPATH 940 985 941 # AIX has no versioning support, so we append a major version to the name.986 # AIX 3 has no versioning support, so we append a major version to the name. 942 987 soname_spec='${libname}${release}.so$major' 943 988 ;; 944 989 945 aix4* )990 aix4* | aix5*) 946 991 version_type=linux 947 # AIX has no versioning support, so currently we can not hardcode correct 948 # soname into executable. Probably we can add versioning support to 949 # collect2, so additional links can be useful in future. 950 # We preserve .a as extension for shared libraries though AIX4.2 951 # and later linker supports .so 952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a' 953 shlibpath_var=LIBPATH 992 if test "$host_cpu" = ia64; then 993 # AIX 5 supports IA64 994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 995 shlibpath_var=LD_LIBRARY_PATH 996 else 997 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 998 # soname into executable. Probably we can add versioning support to 999 # collect2, so additional links can be useful in future. 1000 # We preserve .a as extension for shared libraries though AIX4.2 1001 # and later linker supports .so 1002 if test "$aix_use_runtimelinking" = yes; then 1003 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of 1004 # lib<name>.a to let people know that these are not typical AIX shared libraries. 1005 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1006 else 1007 # We preserve .a as extension for shared libraries though AIX4.2 1008 # and later when we are not doing run time linking. 1009 library_names_spec='${libname}${release}.a $libname.a' 1010 soname_spec='${libname}${release}.so$major' 1011 fi 1012 # If we're using GNU nm, then we don't want the "-C" option. 1013 # -C means demangle to AIX nm, but means don't demangle with GNU nm 1014 if $NM -V 2>&1 | egrep '(GNU)' > /dev/null; then 1015 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 1016 else 1017 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 1018 fi 1019 shlibpath_var=LIBPATH 1020 deplibs_check_method=pass_all 1021 case $host_os in 1022 aix4 | aix4.[01] | aix4.[01].*) 1023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 1024 echo ' yes ' 1025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 1026 : 1027 else 1028 # With GCC up to 2.95.x, collect2 would create an import file 1029 # for dependence libraries. The import file would start with 1030 # the line `#! .'. This would cause the generated library to 1031 # depend on `.', always an invalid library. This was fixed in 1032 # development snapshots of GCC prior to 3.0. 1033 can_build_shared=no 1034 fi 1035 ;; 1036 esac 1037 fi 954 1038 ;; 955 1039 … … 988 1072 need_version=no 989 1073 need_lib_prefix=no 990 if test "$with_gcc" = yes; then 1074 case $with_gcc,$host_os in 1075 yes,cygwin*) 1076 library_names_spec='$libname.dll.a' 1077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll' 1078 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i; echo \$dlname'\''`~ 1079 dldir=$destdir/`dirname \$dlpath`~ 1080 test -d \$dldir || mkdir -p \$dldir~ 1081 $install_prog .libs/$dlname \$dldir/$dlname' 1082 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1083 dlpath=$dir/\$dldll; $rm \$dlpath' 1084 ;; 1085 yes,mingw*) 991 1086 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 992 else 1087 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 1088 ;; 1089 yes,pw32*) 1090 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 1091 ;; 1092 *) 993 1093 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 994 fi 1094 ;; 1095 esac 995 1096 dynamic_linker='Win32 ld.exe' 996 1097 # FIXME: first we should search . and the directory the executable is in … … 1000 1101 ;; 1001 1102 1103 darwin* | rhapsody*) 1104 dynamic_linker="$host_os dyld" 1105 version_type=darwin 1106 need_lib_prefix=no 1107 need_version=no 1108 library_names_spec='${libname}${release}${versuffix}.`test .$module = .yes && echo so || echo dylib` ${libname}${release}${major}.$`test .$module = .yes && echo so || echo dylib` ${libname}.`test .$module = .yes && echo so || echo dylib`' 1109 soname_spec='${libname}${release}${major}.`test .$module = .yes && echo so || echo dylib`' 1110 shlibpath_overrides_runpath=yes 1111 shlibpath_var=DYLD_LIBRARY_PATH 1112 ;; 1113 1002 1114 freebsd1*) 1003 1115 dynamic_linker=no … … 1007 1119 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1008 1120 version_type=freebsd-$objformat 1009 case "$version_type"in1121 case $version_type in 1010 1122 freebsd-elf*) 1011 1123 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 1012 1124 need_version=no 1125 need_lc=no 1013 1126 need_lib_prefix=no 1014 1127 ;; … … 1019 1132 esac 1020 1133 shlibpath_var=LD_LIBRARY_PATH 1021 case "$host_os"in1134 case $host_os in 1022 1135 freebsd2*) 1023 1136 shlibpath_overrides_runpath=yes … … 1043 1156 # Give a soname corresponding to the major version so that dld.sl refuses to 1044 1157 # link against other versions. 1045 dynamic_linker="$host_os dld.sl"1046 1158 version_type=sunos 1047 1159 need_lib_prefix=no 1048 1160 need_version=no 1049 shlibpath_var=SHLIB_PATH 1050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1051 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1052 soname_spec='${libname}${release}.sl$major' 1161 case "$host_cpu" in 1162 ia64*) 1163 dynamic_linker="$host_os dld.so" 1164 shlibpath_var=LD_LIBRARY_PATH 1165 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1166 soname_spec='${libname}${release}.so$major' 1167 shlibpath_var=LD_LIBRARY_PATH 1168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 1169 if test "X$HPUX_IA64_MODE" = X32; then 1170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32/usr/local/lib" 1171 else 1172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 1173 fi 1174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 1175 ;; 1176 *) 1177 dynamic_linker="$host_os dld.sl" 1178 shlibpath_var=SHLIB_PATH 1179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 1180 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 1181 soname_spec='${libname}${release}.sl$major' 1182 ;; 1183 esac 1053 1184 # HP-UX runs *really* slowly unless shared libraries are mode 555. 1054 1185 postinstall_cmds='chmod 555 $lib' … … 1056 1187 1057 1188 irix5* | irix6*) 1189 if test "$with_gnu_ld" = yes; then 1190 version_type=linux 1191 else 1192 version_type=irix 1193 fi 1058 1194 version_type=irix 1059 1195 need_lib_prefix=no … … 1061 1197 soname_spec='${libname}${release}.so$major' 1062 1198 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 1063 case "$host_os"in1199 case $host_os in 1064 1200 irix5*) 1065 1201 libsuff= shlibsuff= 1066 1202 ;; 1067 1203 *) 1068 case "$LD" in # libtool.m4 will add one of these switches to LD 1069 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 1070 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 1071 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 1204 case $LD in # libtool.m4 will add one of these switches to LD 1205 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 1206 libsuff= shlibsuff= libmagic=32-bit;; 1207 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 1208 libsuff=32 shlibsuff=N32 libmagic=N32;; 1209 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 1210 libsuff=64 shlibsuff=64 libmagic=64-bit;; 1072 1211 *) libsuff= shlibsuff= libmagic=never-match;; 1073 1212 esac … … 1110 1249 1111 1250 netbsd*) 1251 need_lib_prefix=no 1252 need_version=no 1112 1253 version_type=sunos 1113 1254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then … … 1123 1264 shlibpath_overrides_runpath=yes 1124 1265 hardcode_into_libs=yes 1266 ;; 1267 1268 newsos6) 1269 version_type=linux 1270 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 1271 shlibpath_var=LD_LIBRARY_PATH 1272 shlibpath_overrides_runpath=yes 1125 1273 ;; 1126 1274 … … 1191 1339 soname_spec='${libname}${release}.so$major' 1192 1340 shlibpath_var=LD_LIBRARY_PATH 1193 case "$host_vendor"in1341 case $host_vendor in 1194 1342 motorola) 1195 1343 need_lib_prefix=no … … 1252 1400 1253 1401 # Define system-specific variables. 1254 case "$host_os"in1402 case $host_os in 1255 1403 aix*) 1256 1404 symcode='[BCDT]' … … 1260 1408 ;; 1261 1409 hpux*) # Its linker distinguishes data from code symbols 1262 global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^ ..* \(.*\)$/extern char \1;/p'"1410 global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 1263 1411 ;; 1264 1412 irix*) … … 1273 1421 esac 1274 1422 1275 # Handle CRLF in mingw too chain1423 # Handle CRLF in mingw tool chain 1276 1424 opt_cr= 1277 case "$host_os"in1425 case $host_os in 1278 1426 mingw*) 1279 1427 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp … … 1290 1438 1291 1439 # Write the raw and C identifiers. 1292 global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"1440 global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 1293 1441 1294 1442 # Check to see that the pipe works correctly. … … 1304 1452 } 1305 1453 #endif 1306 main(){nm_test_var='a';nm_test_func();return(0);}1454 int main(){nm_test_var='a';nm_test_func();return(0);} 1307 1455 EOF 1308 1456 1309 echo "$progname:1 309: checking if global_symbol_pipe works" >&51310 if { (eval echo $progname:1 310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then1457 echo "$progname:1431: checking if global_symbol_pipe works" >&5 1458 if { (eval echo $progname:1432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then 1311 1459 # Now try to grab the symbols. 1312 1460 nlist=conftest.nm 1313 if { echo "$progname:1 313: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then1461 if { echo "$progname:1435: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then 1314 1462 1315 1463 # Try sorting and uniquifying the output. … … 1348 1496 { 1349 1497 EOF 1350 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/'< "$nlist" >> conftest.$ac_ext1498 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext 1351 1499 cat <<\EOF >> conftest.$ac_ext 1352 1500 {0, (lt_ptr_t) 0} … … 1363 1511 LIBS="conftstm.$objext" 1364 1512 CFLAGS="$CFLAGS$no_builtin_flag" 1365 if { (eval echo $progname:1 365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then1513 if { (eval echo $progname:1487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then 1366 1514 pipe_works=yes 1367 1515 else … … 1407 1555 # Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in 1408 1556 # configure.in, otherwise build static only libraries. 1409 case "$host_os"in1557 case $host_os in 1410 1558 cygwin* | mingw* | pw32* | os2*) 1411 1559 if test x$can_build_shared = xyes; then … … 1421 1569 # On AIX, shared libraries and static libraries use the same namespace, and 1422 1570 # are all built from PIC. 1423 case "$host_os"in1571 case $host_os in 1424 1572 aix3*) 1425 1573 test "$enable_shared" = yes && enable_static=no … … 1467 1615 lt_cv_dlopen=no lt_cv_dlopen_libs= 1468 1616 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1469 echo "$progname:1 469: checking for dlopen in -ldl" >&51617 echo "$progname:1591: checking for dlopen in -ldl" >&5 1470 1618 if test "X${ac_cv_lib_dl_dlopen+set}" = Xset; then 1471 1619 echo $ac_n "(cached) $ac_c" 1>&6 … … 1474 1622 LIBS="-ldl $LIBS" 1475 1623 cat > conftest.$ac_ext <<EOF 1476 #line 1 476"ltconfig"1624 #line 1598 "ltconfig" 1477 1625 /* Override any gcc2 internal prototype to avoid an error. */ 1478 1626 /* We use char because int might match the return type of a gcc2 … … 1487 1635 ; return 0; } 1488 1636 EOF 1489 if { (eval echo $progname:1 489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1637 if { (eval echo $progname:1611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1490 1638 rm -rf conftest* 1491 1639 ac_cv_lib_dl_dlopen=yes … … 1506 1654 echo "$ac_t""no" 1>&6 1507 1655 echo $ac_n "checking for dlopen""... $ac_c" 1>&6 1508 echo "$progname:1 508: checking for dlopen" >&51656 echo "$progname:1630: checking for dlopen" >&5 1509 1657 if test "X${ac_cv_func_dlopen+set}" = Xset; then 1510 1658 echo $ac_n "(cached) $ac_c" 1>&6 1511 1659 else 1512 1660 cat > conftest.$ac_ext <<EOF 1513 #line 1 513"ltconfig"1661 #line 1635 "ltconfig" 1514 1662 /* System header to define __stub macros and hopefully few prototypes, 1515 1663 which can conflict with char dlopen(); below. */ … … 1536 1684 ; return 0; } 1537 1685 EOF 1538 if { (eval echo $progname:1 538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1686 if { (eval echo $progname:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1539 1687 rm -rf conftest* 1540 1688 ac_cv_func_dlopen=yes … … 1553 1701 echo "$ac_t""no" 1>&6 1554 1702 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6 1555 echo "$progname:1 555: checking for dlopen in -lsvld" >&51703 echo "$progname:1677: checking for dlopen in -lsvld" >&5 1556 1704 if test "X${ac_cv_lib_svld_dlopen+set}" = Xset; then 1557 1705 echo $ac_n "(cached) $ac_c" 1>&6 … … 1560 1708 LIBS="-lsvld $LIBS" 1561 1709 cat > conftest.$ac_ext <<EOF 1562 #line 1 562"ltconfig"1710 #line 1684 "ltconfig" 1563 1711 /* Override any gcc2 internal prototype to avoid an error. */ 1564 1712 /* We use char because int might match the return type of a gcc2 … … 1573 1721 ; return 0; } 1574 1722 EOF 1575 if { (eval echo $progname:1 575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1723 if { (eval echo $progname:1697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1576 1724 rm -rf conftest* 1577 1725 ac_cv_lib_svld_dlopen=yes … … 1592 1740 echo "$ac_t""no" 1>&6 1593 1741 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6 1594 echo "$progname:1 594: checking for dld_link in -ldld" >&51742 echo "$progname:1716: checking for dld_link in -ldld" >&5 1595 1743 if test "X${ac_cv_lib_dld_dld_link+set}" = Xset; then 1596 1744 echo $ac_n "(cached) $ac_c" 1>&6 … … 1599 1747 LIBS="-ldld $LIBS" 1600 1748 cat > conftest.$ac_ext <<EOF 1601 #line 1 601"ltconfig"1749 #line 1723 "ltconfig" 1602 1750 /* Override any gcc2 internal prototype to avoid an error. */ 1603 1751 /* We use char because int might match the return type of a gcc2 … … 1612 1760 ; return 0; } 1613 1761 EOF 1614 if { (eval echo $progname:1 614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1762 if { (eval echo $progname:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1615 1763 rm -rf conftest* 1616 1764 ac_cv_lib_dld_dld_link=yes … … 1631 1779 echo "$ac_t""no" 1>&6 1632 1780 echo $ac_n "checking for shl_load""... $ac_c" 1>&6 1633 echo "$progname:1 633: checking for shl_load" >&51781 echo "$progname:1755: checking for shl_load" >&5 1634 1782 if test "X${ac_cv_func_shl_load+set}" = Xset; then 1635 1783 echo $ac_n "(cached) $ac_c" 1>&6 1636 1784 else 1637 1785 cat > conftest.$ac_ext <<EOF 1638 #line 1 638"ltconfig"1786 #line 1760 "ltconfig" 1639 1787 /* System header to define __stub macros and hopefully few prototypes, 1640 1788 which can conflict with char shl_load(); below. */ … … 1661 1809 ; return 0; } 1662 1810 EOF 1663 if { (eval echo $progname:1 663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1811 if { (eval echo $progname:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1664 1812 rm -rf conftest* 1665 1813 ac_cv_func_shl_load=yes … … 1679 1827 echo "$ac_t""no" 1>&6 1680 1828 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1681 echo "$progname:1 681: checking for shl_load in -ldld" >&51829 echo "$progname:1803: checking for shl_load in -ldld" >&5 1682 1830 if test "X${ac_cv_lib_dld_shl_load+set}" = Xset; then 1683 1831 echo $ac_n "(cached) $ac_c" 1>&6 … … 1686 1834 LIBS="-ldld $LIBS" 1687 1835 cat > conftest.$ac_ext <<EOF 1688 #line 1 688"ltconfig"1836 #line 1810 "ltconfig" 1689 1837 #include "confdefs.h" 1690 1838 /* Override any gcc2 internal prototype to avoid an error. */ … … 1700 1848 ; return 0; } 1701 1849 EOF 1702 if { (eval echo $progname:1 702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1850 if { (eval echo $progname:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1703 1851 rm -rf conftest* 1704 1852 ac_cv_lib_dld_shl_load=yes … … 1742 1890 fi 1743 1891 1744 case "$lt_cv_dlopen"in1892 case $lt_cv_dlopen in 1745 1893 dlopen) 1746 1894 for ac_hdr in dlfcn.h; do 1747 1895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1748 1896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1749 echo "$progname:1 749: checking for $ac_hdr" >&51897 echo "$progname:1871: checking for $ac_hdr" >&5 1750 1898 if eval "test \"`echo 'X$''{'ac_cv_header_$ac_safe'+set}'`\" = Xset"; then 1751 1899 echo $ac_n "(cached) $ac_c" 1>&6 1752 1900 else 1753 1901 cat > conftest.$ac_ext <<EOF 1754 #line 1 754"ltconfig"1902 #line 1876 "ltconfig" 1755 1903 #include <$ac_hdr> 1756 1904 int fnord = 0; … … 1758 1906 EOF 1759 1907 ac_try="$ac_compile >/dev/null 2>conftest.out" 1760 { (eval echo $progname:1 760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1908 { (eval echo $progname:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1761 1909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1762 1910 if test -z "$ac_err"; then … … 1786 1934 1787 1935 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6 1788 echo "$progname:1 788: checking whether a program can dlopen itself" >&51936 echo "$progname:1910: checking whether a program can dlopen itself" >&5 1789 1937 if test "X${lt_cv_dlopen_self+set}" = Xset; then 1790 1938 echo $ac_n "(cached) $ac_c" 1>&6 … … 1794 1942 else 1795 1943 cat > conftest.$ac_ext <<EOF 1796 #line 1 796"ltconfig"1944 #line 1918 "ltconfig" 1797 1945 1798 1946 #if HAVE_DLFCN_H … … 1834 1982 #endif 1835 1983 1836 fnord() { int i=42;} 1837 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 1984 void fnord() { int i=42; } 1985 int main() { 1986 void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 1838 1987 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 1839 1988 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 1840 1989 1841 1990 EOF 1842 if { (eval echo $progname:1 842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null1991 if { (eval echo $progname:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1843 1992 then 1844 1993 lt_cv_dlopen_self=yes … … 1859 2008 LDFLAGS="$LDFLAGS $link_static_flag" 1860 2009 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6 1861 echo "$progname:1 861: checking whether a statically linked program can dlopen itself" >&52010 echo "$progname:1984: checking whether a statically linked program can dlopen itself" >&5 1862 2011 if test "X${lt_cv_dlopen_self_static+set}" = Xset; then 1863 2012 echo $ac_n "(cached) $ac_c" 1>&6 … … 1867 2016 else 1868 2017 cat > conftest.$ac_ext <<EOF 1869 #line 1 869"ltconfig"2018 #line 1992 "ltconfig" 1870 2019 1871 2020 #if HAVE_DLFCN_H … … 1907 2056 #endif 1908 2057 1909 fnord() { int i=42;} 1910 main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 2058 void fnord() { int i=42; } 2059 int main() { 2060 void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW); 1911 2061 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord"); 1912 2062 if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 1913 2063 1914 2064 EOF 1915 if { (eval echo $progname: 1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null2065 if { (eval echo $progname:2039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null 1916 2066 then 1917 2067 lt_cv_dlopen_self_static=yes … … 1932 2082 esac 1933 2083 1934 case "$lt_cv_dlopen_self"in2084 case $lt_cv_dlopen_self in 1935 2085 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 1936 2086 *) enable_dlopen_self=unknown ;; 1937 2087 esac 1938 2088 1939 case "$lt_cv_dlopen_self_static"in2089 case $lt_cv_dlopen_self_static in 1940 2090 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 1941 2091 *) enable_dlopen_self_static=unknown ;; … … 1954 2104 1955 2105 # Only quote variables if we're using ltmain.sh. 1956 case "$ltmain"in2106 case $ltmain in 1957 2107 *.sh) 1958 2108 # Now quote all the things that may contain metacharacters. … … 1979 2129 compiler_c_o need_locks exclude_expsyms include_expsyms; do 1980 2130 1981 case "$var"in2131 case $var in 1982 2132 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 1983 2133 old_postinstall_cmds | old_postuninstall_cmds | \ … … 1995 2145 done 1996 2146 1997 case "$ltecho"in2147 case $ltecho in 1998 2148 *'\$0 --fallback-echo"') 1999 2149 ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` … … 2184 2334 pic_mode=$pic_mode 2185 2335 2336 # What is the maximum length of a command? 2337 max_cmd_len=$max_cmd_len 2338 2186 2339 # Does compiler simultaneously support -c and -o options? 2187 2340 compiler_c_o=$compiler_c_o … … 2372 2525 fi 2373 2526 2374 case "$ltmain"in2527 case $ltmain in 2375 2528 *.sh) 2376 2529 echo >> "$ofile" 2377 2530 if test -z "$tagname"; then 2378 case "$host_os"in2531 case $host_os in 2379 2532 aix3*) 2380 2533 cat <<\EOF >> "$ofile" … … 2390 2543 ;; 2391 2544 esac 2392 case "$host"in2545 case $host in 2393 2546 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 2394 2547 cat <<'EOF' >> "$ofile" … … 2506 2659 # 2507 2660 # dll = open(filename, O_RDONLY|O_BINARY); 2508 # if ( !dll)2661 # if (dll < 1) 2509 2662 # return 1; 2510 2663 # -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.