Mercurial > hg > xemacs-beta
comparison configure @ 296:5a79be0ef6a8 r21-0b46
Import from CVS: tag r21-0b46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:38:46 +0200 |
parents | 4b85ae5eabfb |
children | 70ad99077275 |
comparison
equal
deleted
inserted
replaced
295:9d5da8baa111 | 296:5a79be0ef6a8 |
---|---|
10817 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then | 10817 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then |
10818 echo "$ac_t""yes" 1>&6 | 10818 echo "$ac_t""yes" 1>&6 |
10819 with_database_berkdb=yes need_libdb=no | 10819 with_database_berkdb=yes need_libdb=no |
10820 else | 10820 else |
10821 echo "$ac_t""no" 1>&6 | 10821 echo "$ac_t""no" 1>&6 |
10822 fi | 10822 echo $ac_n "checking for db_open""... $ac_c" 1>&6 |
10823 | 10823 echo "configure:10824: checking for db_open" >&5 |
10824 if test "$need_libdb" != "no"; then | 10824 |
10825 | 10825 cat > conftest.$ac_ext <<EOF |
10826 #line 10827 "configure" | |
10827 #include "confdefs.h" | |
10828 /* System header to define __stub macros and hopefully few prototypes, | |
10829 which can conflict with char db_open(); below. */ | |
10830 #include <assert.h> | |
10831 /* Override any gcc2 internal prototype to avoid an error. */ | |
10832 /* We use char because int might match the return type of a gcc2 | |
10833 builtin and then its argument prototype would still apply. */ | |
10834 char db_open(); | |
10835 | |
10836 int main() { | |
10837 | |
10838 /* The GNU C library defines this for functions which it implements | |
10839 to always fail with ENOSYS. Some functions are actually named | |
10840 something starting with __ and the normal name is an alias. */ | |
10841 #if defined (__stub_db_open) || defined (__stub___db_open) | |
10842 choke me | |
10843 #else | |
10844 db_open(); | |
10845 #endif | |
10846 | |
10847 ; return 0; } | |
10848 EOF | |
10849 if { (eval echo configure:10850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10850 rm -rf conftest* | |
10851 eval "ac_cv_func_db_open=yes" | |
10852 else | |
10853 echo "configure: failed program was:" >&5 | |
10854 cat conftest.$ac_ext >&5 | |
10855 rm -rf conftest* | |
10856 eval "ac_cv_func_db_open=no" | |
10857 fi | |
10858 rm -f conftest* | |
10859 | |
10860 if eval "test \"`echo '$ac_cv_func_'db_open`\" = yes"; then | |
10861 echo "$ac_t""yes" 1>&6 | |
10862 with_database_berkdb=yes need_libdb=no | |
10863 else | |
10864 echo "$ac_t""no" 1>&6 | |
10865 | |
10826 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 | 10866 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 |
10827 echo "configure:10828: checking for dbopen in -ldb" >&5 | 10867 echo "configure:10868: checking for dbopen in -ldb" >&5 |
10828 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` | 10868 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` |
10829 | 10869 |
10830 xe_check_libs=" -ldb " | 10870 xe_check_libs=" -ldb " |
10831 cat > conftest.$ac_ext <<EOF | 10871 cat > conftest.$ac_ext <<EOF |
10832 #line 10833 "configure" | 10872 #line 10873 "configure" |
10833 #include "confdefs.h" | 10873 #include "confdefs.h" |
10834 /* Override any gcc2 internal prototype to avoid an error. */ | 10874 /* Override any gcc2 internal prototype to avoid an error. */ |
10835 /* We use char because int might match the return type of a gcc2 | 10875 /* We use char because int might match the return type of a gcc2 |
10836 builtin and then its argument prototype would still apply. */ | 10876 builtin and then its argument prototype would still apply. */ |
10837 char dbopen(); | 10877 char dbopen(); |
10838 | 10878 |
10839 int main() { | 10879 int main() { |
10840 dbopen() | 10880 dbopen() |
10841 ; return 0; } | 10881 ; return 0; } |
10842 EOF | 10882 EOF |
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10883 if { (eval echo configure:10884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10844 rm -rf conftest* | 10884 rm -rf conftest* |
10845 eval "ac_cv_lib_$ac_lib_var=yes" | 10885 eval "ac_cv_lib_$ac_lib_var=yes" |
10846 else | 10886 else |
10847 echo "configure: failed program was:" >&5 | 10887 echo "configure: failed program was:" >&5 |
10848 cat conftest.$ac_ext >&5 | 10888 cat conftest.$ac_ext >&5 |
10855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | 10895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then |
10856 echo "$ac_t""yes" 1>&6 | 10896 echo "$ac_t""yes" 1>&6 |
10857 with_database_berkdb=yes need_libdb=yes | 10897 with_database_berkdb=yes need_libdb=yes |
10858 else | 10898 else |
10859 echo "$ac_t""no" 1>&6 | 10899 echo "$ac_t""no" 1>&6 |
10860 fi | 10900 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6 |
10861 | 10901 echo "configure:10902: checking for db_open in -ldb" >&5 |
10862 | 10902 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'` |
10863 fi | 10903 |
10904 xe_check_libs=" -ldb " | |
10905 cat > conftest.$ac_ext <<EOF | |
10906 #line 10907 "configure" | |
10907 #include "confdefs.h" | |
10908 /* Override any gcc2 internal prototype to avoid an error. */ | |
10909 /* We use char because int might match the return type of a gcc2 | |
10910 builtin and then its argument prototype would still apply. */ | |
10911 char db_open(); | |
10912 | |
10913 int main() { | |
10914 db_open() | |
10915 ; return 0; } | |
10916 EOF | |
10917 if { (eval echo configure:10918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10918 rm -rf conftest* | |
10919 eval "ac_cv_lib_$ac_lib_var=yes" | |
10920 else | |
10921 echo "configure: failed program was:" >&5 | |
10922 cat conftest.$ac_ext >&5 | |
10923 rm -rf conftest* | |
10924 eval "ac_cv_lib_$ac_lib_var=no" | |
10925 fi | |
10926 rm -f conftest* | |
10927 xe_check_libs="" | |
10928 | |
10929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10930 echo "$ac_t""yes" 1>&6 | |
10931 with_database_berkdb=yes need_libdb=yes | |
10932 else | |
10933 echo "$ac_t""no" 1>&6 | |
10934 fi | |
10935 | |
10936 | |
10937 fi | |
10938 | |
10939 | |
10940 fi | |
10941 | |
10942 fi | |
10943 | |
10944 | |
10864 if test "$with_database_berkdb" = "yes"; then | 10945 if test "$with_database_berkdb" = "yes"; then |
10865 for path in "db/db.h" "db.h"; do | 10946 for path in "db/db.h" "db.h"; do |
10866 cat > conftest.$ac_ext <<EOF | 10947 cat > conftest.$ac_ext <<EOF |
10867 #line 10868 "configure" | 10948 #line 10949 "configure" |
10868 #include "confdefs.h" | 10949 #include "confdefs.h" |
10869 #ifdef HAVE_INTTYPES_H | 10950 #ifdef HAVE_INTTYPES_H |
10870 #define __BIT_TYPES_DEFINED__ | 10951 #define __BIT_TYPES_DEFINED__ |
10871 #include <inttypes.h> | 10952 #include <inttypes.h> |
10872 typedef uint8_t u_int8_t; | 10953 typedef uint8_t u_int8_t; |
10880 | 10961 |
10881 int main() { | 10962 int main() { |
10882 | 10963 |
10883 ; return 0; } | 10964 ; return 0; } |
10884 EOF | 10965 EOF |
10885 if { (eval echo configure:10886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10886 rm -rf conftest* | 10967 rm -rf conftest* |
10887 db_h_path="$path"; break | 10968 db_h_path="$path"; break |
10888 else | 10969 else |
10889 echo "configure: failed program was:" >&5 | 10970 echo "configure: failed program was:" >&5 |
10890 cat conftest.$ac_ext >&5 | 10971 cat conftest.$ac_ext >&5 |
10931 fi | 11012 fi |
10932 | 11013 |
10933 if test "$with_socks" = "yes"; then | 11014 if test "$with_socks" = "yes"; then |
10934 | 11015 |
10935 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 11016 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
10936 echo "configure:10937: checking for SOCKSinit in -lsocks" >&5 | 11017 echo "configure:11018: checking for SOCKSinit in -lsocks" >&5 |
10937 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 11018 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
10938 | 11019 |
10939 xe_check_libs=" -lsocks " | 11020 xe_check_libs=" -lsocks " |
10940 cat > conftest.$ac_ext <<EOF | 11021 cat > conftest.$ac_ext <<EOF |
10941 #line 10942 "configure" | 11022 #line 11023 "configure" |
10942 #include "confdefs.h" | 11023 #include "confdefs.h" |
10943 /* Override any gcc2 internal prototype to avoid an error. */ | 11024 /* Override any gcc2 internal prototype to avoid an error. */ |
10944 /* We use char because int might match the return type of a gcc2 | 11025 /* We use char because int might match the return type of a gcc2 |
10945 builtin and then its argument prototype would still apply. */ | 11026 builtin and then its argument prototype would still apply. */ |
10946 char SOCKSinit(); | 11027 char SOCKSinit(); |
10947 | 11028 |
10948 int main() { | 11029 int main() { |
10949 SOCKSinit() | 11030 SOCKSinit() |
10950 ; return 0; } | 11031 ; return 0; } |
10951 EOF | 11032 EOF |
10952 if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
10953 rm -rf conftest* | 11034 rm -rf conftest* |
10954 eval "ac_cv_lib_$ac_lib_var=yes" | 11035 eval "ac_cv_lib_$ac_lib_var=yes" |
10955 else | 11036 else |
10956 echo "configure: failed program was:" >&5 | 11037 echo "configure: failed program was:" >&5 |
10957 cat conftest.$ac_ext >&5 | 11038 cat conftest.$ac_ext >&5 |
11004 | 11085 |
11005 for ac_hdr in dlfcn.h | 11086 for ac_hdr in dlfcn.h |
11006 do | 11087 do |
11007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11009 echo "configure:11010: checking for $ac_hdr" >&5 | 11090 echo "configure:11091: checking for $ac_hdr" >&5 |
11010 | 11091 |
11011 cat > conftest.$ac_ext <<EOF | 11092 cat > conftest.$ac_ext <<EOF |
11012 #line 11013 "configure" | 11093 #line 11094 "configure" |
11013 #include "confdefs.h" | 11094 #include "confdefs.h" |
11014 #include <$ac_hdr> | 11095 #include <$ac_hdr> |
11015 EOF | 11096 EOF |
11016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11017 { (eval echo configure:11018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11098 { (eval echo configure:11099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11018 ac_err=`grep -v '^ *+' conftest.out` | 11099 ac_err=`grep -v '^ *+' conftest.out` |
11019 if test -z "$ac_err"; then | 11100 if test -z "$ac_err"; then |
11020 rm -rf conftest* | 11101 rm -rf conftest* |
11021 eval "ac_cv_header_$ac_safe=yes" | 11102 eval "ac_cv_header_$ac_safe=yes" |
11022 else | 11103 else |
11043 fi | 11124 fi |
11044 done | 11125 done |
11045 | 11126 |
11046 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11127 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11047 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 11128 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
11048 echo "configure:11049: checking for dlopen in -ldl" >&5 | 11129 echo "configure:11130: checking for dlopen in -ldl" >&5 |
11049 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 11130 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11050 | 11131 |
11051 xe_check_libs=" -ldl " | 11132 xe_check_libs=" -ldl " |
11052 cat > conftest.$ac_ext <<EOF | 11133 cat > conftest.$ac_ext <<EOF |
11053 #line 11054 "configure" | 11134 #line 11135 "configure" |
11054 #include "confdefs.h" | 11135 #include "confdefs.h" |
11055 /* Override any gcc2 internal prototype to avoid an error. */ | 11136 /* Override any gcc2 internal prototype to avoid an error. */ |
11056 /* We use char because int might match the return type of a gcc2 | 11137 /* We use char because int might match the return type of a gcc2 |
11057 builtin and then its argument prototype would still apply. */ | 11138 builtin and then its argument prototype would still apply. */ |
11058 char dlopen(); | 11139 char dlopen(); |
11059 | 11140 |
11060 int main() { | 11141 int main() { |
11061 dlopen() | 11142 dlopen() |
11062 ; return 0; } | 11143 ; return 0; } |
11063 EOF | 11144 EOF |
11064 if { (eval echo configure:11065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11065 rm -rf conftest* | 11146 rm -rf conftest* |
11066 eval "ac_cv_lib_$ac_lib_var=yes" | 11147 eval "ac_cv_lib_$ac_lib_var=yes" |
11067 else | 11148 else |
11068 echo "configure: failed program was:" >&5 | 11149 echo "configure: failed program was:" >&5 |
11069 cat conftest.$ac_ext >&5 | 11150 cat conftest.$ac_ext >&5 |
11088 fi | 11169 fi |
11089 | 11170 |
11090 } | 11171 } |
11091 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11172 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11092 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 | 11173 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 |
11093 echo "configure:11094: checking for _dlopen in -lc" >&5 | 11174 echo "configure:11175: checking for _dlopen in -lc" >&5 |
11094 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` | 11175 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` |
11095 | 11176 |
11096 xe_check_libs=" -lc " | 11177 xe_check_libs=" -lc " |
11097 cat > conftest.$ac_ext <<EOF | 11178 cat > conftest.$ac_ext <<EOF |
11098 #line 11099 "configure" | 11179 #line 11180 "configure" |
11099 #include "confdefs.h" | 11180 #include "confdefs.h" |
11100 /* Override any gcc2 internal prototype to avoid an error. */ | 11181 /* Override any gcc2 internal prototype to avoid an error. */ |
11101 /* We use char because int might match the return type of a gcc2 | 11182 /* We use char because int might match the return type of a gcc2 |
11102 builtin and then its argument prototype would still apply. */ | 11183 builtin and then its argument prototype would still apply. */ |
11103 char _dlopen(); | 11184 char _dlopen(); |
11104 | 11185 |
11105 int main() { | 11186 int main() { |
11106 _dlopen() | 11187 _dlopen() |
11107 ; return 0; } | 11188 ; return 0; } |
11108 EOF | 11189 EOF |
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11110 rm -rf conftest* | 11191 rm -rf conftest* |
11111 eval "ac_cv_lib_$ac_lib_var=yes" | 11192 eval "ac_cv_lib_$ac_lib_var=yes" |
11112 else | 11193 else |
11113 echo "configure: failed program was:" >&5 | 11194 echo "configure: failed program was:" >&5 |
11114 cat conftest.$ac_ext >&5 | 11195 cat conftest.$ac_ext >&5 |
11133 fi | 11214 fi |
11134 | 11215 |
11135 } | 11216 } |
11136 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11217 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11137 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 | 11218 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 |
11138 echo "configure:11139: checking for dlopen in -lc" >&5 | 11219 echo "configure:11220: checking for dlopen in -lc" >&5 |
11139 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` | 11220 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` |
11140 | 11221 |
11141 xe_check_libs=" -lc " | 11222 xe_check_libs=" -lc " |
11142 cat > conftest.$ac_ext <<EOF | 11223 cat > conftest.$ac_ext <<EOF |
11143 #line 11144 "configure" | 11224 #line 11225 "configure" |
11144 #include "confdefs.h" | 11225 #include "confdefs.h" |
11145 /* Override any gcc2 internal prototype to avoid an error. */ | 11226 /* Override any gcc2 internal prototype to avoid an error. */ |
11146 /* We use char because int might match the return type of a gcc2 | 11227 /* We use char because int might match the return type of a gcc2 |
11147 builtin and then its argument prototype would still apply. */ | 11228 builtin and then its argument prototype would still apply. */ |
11148 char dlopen(); | 11229 char dlopen(); |
11149 | 11230 |
11150 int main() { | 11231 int main() { |
11151 dlopen() | 11232 dlopen() |
11152 ; return 0; } | 11233 ; return 0; } |
11153 EOF | 11234 EOF |
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11235 if { (eval echo configure:11236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11155 rm -rf conftest* | 11236 rm -rf conftest* |
11156 eval "ac_cv_lib_$ac_lib_var=yes" | 11237 eval "ac_cv_lib_$ac_lib_var=yes" |
11157 else | 11238 else |
11158 echo "configure: failed program was:" >&5 | 11239 echo "configure: failed program was:" >&5 |
11159 cat conftest.$ac_ext >&5 | 11240 cat conftest.$ac_ext >&5 |
11178 fi | 11259 fi |
11179 | 11260 |
11180 } | 11261 } |
11181 test -z "$with_shlib" && { | 11262 test -z "$with_shlib" && { |
11182 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 11263 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
11183 echo "configure:11184: checking for shl_load in -ldld" >&5 | 11264 echo "configure:11265: checking for shl_load in -ldld" >&5 |
11184 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 11265 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
11185 | 11266 |
11186 xe_check_libs=" -ldld " | 11267 xe_check_libs=" -ldld " |
11187 cat > conftest.$ac_ext <<EOF | 11268 cat > conftest.$ac_ext <<EOF |
11188 #line 11189 "configure" | 11269 #line 11270 "configure" |
11189 #include "confdefs.h" | 11270 #include "confdefs.h" |
11190 /* Override any gcc2 internal prototype to avoid an error. */ | 11271 /* Override any gcc2 internal prototype to avoid an error. */ |
11191 /* We use char because int might match the return type of a gcc2 | 11272 /* We use char because int might match the return type of a gcc2 |
11192 builtin and then its argument prototype would still apply. */ | 11273 builtin and then its argument prototype would still apply. */ |
11193 char shl_load(); | 11274 char shl_load(); |
11194 | 11275 |
11195 int main() { | 11276 int main() { |
11196 shl_load() | 11277 shl_load() |
11197 ; return 0; } | 11278 ; return 0; } |
11198 EOF | 11279 EOF |
11199 if { (eval echo configure:11200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11200 rm -rf conftest* | 11281 rm -rf conftest* |
11201 eval "ac_cv_lib_$ac_lib_var=yes" | 11282 eval "ac_cv_lib_$ac_lib_var=yes" |
11202 else | 11283 else |
11203 echo "configure: failed program was:" >&5 | 11284 echo "configure: failed program was:" >&5 |
11204 cat conftest.$ac_ext >&5 | 11285 cat conftest.$ac_ext >&5 |
11223 fi | 11304 fi |
11224 | 11305 |
11225 } | 11306 } |
11226 test -z "$with_shlib" && { | 11307 test -z "$with_shlib" && { |
11227 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 | 11308 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 |
11228 echo "configure:11229: checking for dld_init in -ldld" >&5 | 11309 echo "configure:11310: checking for dld_init in -ldld" >&5 |
11229 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` | 11310 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` |
11230 | 11311 |
11231 xe_check_libs=" -ldld " | 11312 xe_check_libs=" -ldld " |
11232 cat > conftest.$ac_ext <<EOF | 11313 cat > conftest.$ac_ext <<EOF |
11233 #line 11234 "configure" | 11314 #line 11315 "configure" |
11234 #include "confdefs.h" | 11315 #include "confdefs.h" |
11235 /* Override any gcc2 internal prototype to avoid an error. */ | 11316 /* Override any gcc2 internal prototype to avoid an error. */ |
11236 /* We use char because int might match the return type of a gcc2 | 11317 /* We use char because int might match the return type of a gcc2 |
11237 builtin and then its argument prototype would still apply. */ | 11318 builtin and then its argument prototype would still apply. */ |
11238 char dld_init(); | 11319 char dld_init(); |
11239 | 11320 |
11240 int main() { | 11321 int main() { |
11241 dld_init() | 11322 dld_init() |
11242 ; return 0; } | 11323 ; return 0; } |
11243 EOF | 11324 EOF |
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11325 if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11245 rm -rf conftest* | 11326 rm -rf conftest* |
11246 eval "ac_cv_lib_$ac_lib_var=yes" | 11327 eval "ac_cv_lib_$ac_lib_var=yes" |
11247 else | 11328 else |
11248 echo "configure: failed program was:" >&5 | 11329 echo "configure: failed program was:" >&5 |
11249 cat conftest.$ac_ext >&5 | 11330 cat conftest.$ac_ext >&5 |
11289 dll_lflags="-shared" | 11370 dll_lflags="-shared" |
11290 dll_cflags="-r" | 11371 dll_cflags="-r" |
11291 dll_oflags="-o " | 11372 dll_oflags="-o " |
11292 | 11373 |
11293 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 | 11374 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 |
11294 echo "configure:11295: checking how to build a shared library" >&5 | 11375 echo "configure:11376: checking how to build a shared library" >&5 |
11295 case `uname -rs` in | 11376 case `uname -rs` in |
11296 UNIX_SV*|UNIX_System_V*) | 11377 UNIX_SV*|UNIX_System_V*) |
11297 dll_lflags="-G" | 11378 dll_lflags="-G" |
11298 dll_cflags=-Kpic | 11379 dll_cflags=-Kpic |
11299 dll_ld="ld" | 11380 dll_ld="ld" |
11380 | 11461 |
11381 | 11462 |
11382 for ac_func in dlerror | 11463 for ac_func in dlerror |
11383 do | 11464 do |
11384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11385 echo "configure:11386: checking for $ac_func" >&5 | 11466 echo "configure:11467: checking for $ac_func" >&5 |
11386 | 11467 |
11387 cat > conftest.$ac_ext <<EOF | 11468 cat > conftest.$ac_ext <<EOF |
11388 #line 11389 "configure" | 11469 #line 11470 "configure" |
11389 #include "confdefs.h" | 11470 #include "confdefs.h" |
11390 /* System header to define __stub macros and hopefully few prototypes, | 11471 /* System header to define __stub macros and hopefully few prototypes, |
11391 which can conflict with char $ac_func(); below. */ | 11472 which can conflict with char $ac_func(); below. */ |
11392 #include <assert.h> | 11473 #include <assert.h> |
11393 /* Override any gcc2 internal prototype to avoid an error. */ | 11474 /* Override any gcc2 internal prototype to avoid an error. */ |
11406 $ac_func(); | 11487 $ac_func(); |
11407 #endif | 11488 #endif |
11408 | 11489 |
11409 ; return 0; } | 11490 ; return 0; } |
11410 EOF | 11491 EOF |
11411 if { (eval echo configure:11412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11492 if { (eval echo configure:11493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11412 rm -rf conftest* | 11493 rm -rf conftest* |
11413 eval "ac_cv_func_$ac_func=yes" | 11494 eval "ac_cv_func_$ac_func=yes" |
11414 else | 11495 else |
11415 echo "configure: failed program was:" >&5 | 11496 echo "configure: failed program was:" >&5 |
11416 cat conftest.$ac_ext >&5 | 11497 cat conftest.$ac_ext >&5 |
11442 *) ;; | 11523 *) ;; |
11443 esac | 11524 esac |
11444 fi | 11525 fi |
11445 | 11526 |
11446 cat > conftest.$ac_ext <<EOF | 11527 cat > conftest.$ac_ext <<EOF |
11447 #line 11448 "configure" | 11528 #line 11529 "configure" |
11448 #include "confdefs.h" | 11529 #include "confdefs.h" |
11449 int main(int c,char *v[]){return 0;} | 11530 int main(int c,char *v[]){return 0;} |
11450 EOF | 11531 EOF |
11451 if { (eval echo configure:11452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 | 11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
11452 then | 11533 then |
11453 : | 11534 : |
11454 else | 11535 else |
11455 echo "configure: failed program was:" >&5 | 11536 echo "configure: failed program was:" >&5 |
11456 cat conftest.$ac_ext >&5 | 11537 cat conftest.$ac_ext >&5 |