Mercurial > hg > xemacs-beta
comparison configure @ 298:70ad99077275 r21-0b47
Import from CVS: tag r21-0b47
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:39:40 +0200 |
parents | 5a79be0ef6a8 |
children | 3cc9f0ebfbd1 |
comparison
equal
deleted
inserted
replaced
297:deca3c1083ac | 298:70ad99077275 |
---|---|
871 EOF | 871 EOF |
872 } | 872 } |
873 | 873 |
874 | 874 |
875 if test "$with_infodock" = "yes"; then | 875 if test "$with_infodock" = "yes"; then |
876 if test ! -f ../InfoDock.rules; then | 876 if test ! -f ../ID-INSTALL; then |
877 echo "Cannot build InfoDock without InfoDock sources" | 877 echo "Cannot build InfoDock without InfoDock sources" |
878 with_infodock=no | 878 with_infodock=no |
879 fi | 879 fi |
880 fi | 880 fi |
881 | 881 |
10774 else with_database_dbm=no | 10774 else with_database_dbm=no |
10775 fi | 10775 fi |
10776 fi | 10776 fi |
10777 | 10777 |
10778 if test "$with_database_berkdb" != "no"; then | 10778 if test "$with_database_berkdb" != "no"; then |
10779 echo $ac_n "checking for dbopen""... $ac_c" 1>&6 | 10779 echo $ac_n "checking for Berkeley db.h""... $ac_c" 1>&6 |
10780 echo "configure:10781: checking for dbopen" >&5 | 10780 echo "configure:10781: checking for Berkeley db.h" >&5 |
10781 | 10781 for path in "db/db.h" "db.h"; do |
10782 cat > conftest.$ac_ext <<EOF | 10782 cat > conftest.$ac_ext <<EOF |
10783 #line 10784 "configure" | 10783 #line 10784 "configure" |
10784 #include "confdefs.h" | |
10785 /* System header to define __stub macros and hopefully few prototypes, | |
10786 which can conflict with char dbopen(); below. */ | |
10787 #include <assert.h> | |
10788 /* Override any gcc2 internal prototype to avoid an error. */ | |
10789 /* We use char because int might match the return type of a gcc2 | |
10790 builtin and then its argument prototype would still apply. */ | |
10791 char dbopen(); | |
10792 | |
10793 int main() { | |
10794 | |
10795 /* The GNU C library defines this for functions which it implements | |
10796 to always fail with ENOSYS. Some functions are actually named | |
10797 something starting with __ and the normal name is an alias. */ | |
10798 #if defined (__stub_dbopen) || defined (__stub___dbopen) | |
10799 choke me | |
10800 #else | |
10801 dbopen(); | |
10802 #endif | |
10803 | |
10804 ; return 0; } | |
10805 EOF | |
10806 if { (eval echo configure:10807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10807 rm -rf conftest* | |
10808 eval "ac_cv_func_dbopen=yes" | |
10809 else | |
10810 echo "configure: failed program was:" >&5 | |
10811 cat conftest.$ac_ext >&5 | |
10812 rm -rf conftest* | |
10813 eval "ac_cv_func_dbopen=no" | |
10814 fi | |
10815 rm -f conftest* | |
10816 | |
10817 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then | |
10818 echo "$ac_t""yes" 1>&6 | |
10819 with_database_berkdb=yes need_libdb=no | |
10820 else | |
10821 echo "$ac_t""no" 1>&6 | |
10822 echo $ac_n "checking for db_open""... $ac_c" 1>&6 | |
10823 echo "configure:10824: checking for db_open" >&5 | |
10824 | |
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 | |
10866 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6 | |
10867 echo "configure:10868: checking for dbopen in -ldb" >&5 | |
10868 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'` | |
10869 | |
10870 xe_check_libs=" -ldb " | |
10871 cat > conftest.$ac_ext <<EOF | |
10872 #line 10873 "configure" | |
10873 #include "confdefs.h" | |
10874 /* Override any gcc2 internal prototype to avoid an error. */ | |
10875 /* We use char because int might match the return type of a gcc2 | |
10876 builtin and then its argument prototype would still apply. */ | |
10877 char dbopen(); | |
10878 | |
10879 int main() { | |
10880 dbopen() | |
10881 ; return 0; } | |
10882 EOF | |
10883 if { (eval echo configure:10884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10884 rm -rf conftest* | |
10885 eval "ac_cv_lib_$ac_lib_var=yes" | |
10886 else | |
10887 echo "configure: failed program was:" >&5 | |
10888 cat conftest.$ac_ext >&5 | |
10889 rm -rf conftest* | |
10890 eval "ac_cv_lib_$ac_lib_var=no" | |
10891 fi | |
10892 rm -f conftest* | |
10893 xe_check_libs="" | |
10894 | |
10895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10896 echo "$ac_t""yes" 1>&6 | |
10897 with_database_berkdb=yes need_libdb=yes | |
10898 else | |
10899 echo "$ac_t""no" 1>&6 | |
10900 echo $ac_n "checking for db_open in -ldb""... $ac_c" 1>&6 | |
10901 echo "configure:10902: checking for db_open in -ldb" >&5 | |
10902 ac_lib_var=`echo db'_'db_open | sed 'y%./+-%__p_%'` | |
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 | |
10945 if test "$with_database_berkdb" = "yes"; then | |
10946 for path in "db/db.h" "db.h"; do | |
10947 cat > conftest.$ac_ext <<EOF | |
10948 #line 10949 "configure" | |
10949 #include "confdefs.h" | 10784 #include "confdefs.h" |
10950 #ifdef HAVE_INTTYPES_H | 10785 #ifdef HAVE_INTTYPES_H |
10951 #define __BIT_TYPES_DEFINED__ | 10786 #define __BIT_TYPES_DEFINED__ |
10952 #include <inttypes.h> | 10787 #include <inttypes.h> |
10953 typedef uint8_t u_int8_t; | 10788 typedef uint8_t u_int8_t; |
10961 | 10796 |
10962 int main() { | 10797 int main() { |
10963 | 10798 |
10964 ; return 0; } | 10799 ; return 0; } |
10965 EOF | 10800 EOF |
10966 if { (eval echo configure:10967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 10801 if { (eval echo configure:10802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
10967 rm -rf conftest* | 10802 rm -rf conftest* |
10968 db_h_path="$path"; break | 10803 db_h_path="$path"; break |
10969 else | 10804 else |
10970 echo "configure: failed program was:" >&5 | 10805 echo "configure: failed program was:" >&5 |
10971 cat conftest.$ac_ext >&5 | 10806 cat conftest.$ac_ext >&5 |
10972 fi | 10807 fi |
10973 rm -f conftest* | 10808 rm -f conftest* |
10974 done | 10809 done |
10975 test -z "$db_h_path" && with_database_berkdb=no | 10810 if test -z "$db_h_path" |
10811 then echo "$ac_t""no" 1>&6; with_database_berkdb=no | |
10812 else echo "$ac_t""$db_h_path" 1>&6 | |
10976 fi | 10813 fi |
10814 | |
10815 if test "$with_database_berkdb" != "no"; then | |
10816 echo $ac_n "checking for Berkeley DB version""... $ac_c" 1>&6 | |
10817 echo "configure:10818: checking for Berkeley DB version" >&5 | |
10818 cat > conftest.$ac_ext <<EOF | |
10819 #line 10820 "configure" | |
10820 #include "confdefs.h" | |
10821 #include <$db_h_path> | |
10822 #if DB_VERSION_MAJOR > 1 | |
10823 yes | |
10824 #endif | |
10825 | |
10826 EOF | |
10827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
10828 egrep "yes" >/dev/null 2>&1; then | |
10829 rm -rf conftest* | |
10830 echo "$ac_t""2" 1>&6; dbfunc=db_open | |
10831 else | |
10832 rm -rf conftest* | |
10833 echo "$ac_t""1" 1>&6; dbfunc=dbopen | |
10834 fi | |
10835 rm -f conftest* | |
10836 | |
10837 echo $ac_n "checking for $dbfunc""... $ac_c" 1>&6 | |
10838 echo "configure:10839: checking for $dbfunc" >&5 | |
10839 | |
10840 cat > conftest.$ac_ext <<EOF | |
10841 #line 10842 "configure" | |
10842 #include "confdefs.h" | |
10843 /* System header to define __stub macros and hopefully few prototypes, | |
10844 which can conflict with char $dbfunc(); below. */ | |
10845 #include <assert.h> | |
10846 /* Override any gcc2 internal prototype to avoid an error. */ | |
10847 /* We use char because int might match the return type of a gcc2 | |
10848 builtin and then its argument prototype would still apply. */ | |
10849 char $dbfunc(); | |
10850 | |
10851 int main() { | |
10852 | |
10853 /* The GNU C library defines this for functions which it implements | |
10854 to always fail with ENOSYS. Some functions are actually named | |
10855 something starting with __ and the normal name is an alias. */ | |
10856 #if defined (__stub_$dbfunc) || defined (__stub___$dbfunc) | |
10857 choke me | |
10858 #else | |
10859 $dbfunc(); | |
10860 #endif | |
10861 | |
10862 ; return 0; } | |
10863 EOF | |
10864 if { (eval echo configure:10865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10865 rm -rf conftest* | |
10866 eval "ac_cv_func_$dbfunc=yes" | |
10867 else | |
10868 echo "configure: failed program was:" >&5 | |
10869 cat conftest.$ac_ext >&5 | |
10870 rm -rf conftest* | |
10871 eval "ac_cv_func_$dbfunc=no" | |
10872 fi | |
10873 rm -f conftest* | |
10874 | |
10875 if eval "test \"`echo '$ac_cv_func_'$dbfunc`\" = yes"; then | |
10876 echo "$ac_t""yes" 1>&6 | |
10877 with_database_berkdb=yes need_libdb=no | |
10878 else | |
10879 echo "$ac_t""no" 1>&6 | |
10880 | |
10881 | |
10882 echo $ac_n "checking for $dbfunc in -ldb""... $ac_c" 1>&6 | |
10883 echo "configure:10884: checking for $dbfunc in -ldb" >&5 | |
10884 ac_lib_var=`echo db'_'$dbfunc | sed 'y%./+-%__p_%'` | |
10885 | |
10886 xe_check_libs=" -ldb " | |
10887 cat > conftest.$ac_ext <<EOF | |
10888 #line 10889 "configure" | |
10889 #include "confdefs.h" | |
10890 /* Override any gcc2 internal prototype to avoid an error. */ | |
10891 /* We use char because int might match the return type of a gcc2 | |
10892 builtin and then its argument prototype would still apply. */ | |
10893 char $dbfunc(); | |
10894 | |
10895 int main() { | |
10896 $dbfunc() | |
10897 ; return 0; } | |
10898 EOF | |
10899 if { (eval echo configure:10900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | |
10900 rm -rf conftest* | |
10901 eval "ac_cv_lib_$ac_lib_var=yes" | |
10902 else | |
10903 echo "configure: failed program was:" >&5 | |
10904 cat conftest.$ac_ext >&5 | |
10905 rm -rf conftest* | |
10906 eval "ac_cv_lib_$ac_lib_var=no" | |
10907 fi | |
10908 rm -f conftest* | |
10909 xe_check_libs="" | |
10910 | |
10911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes" ; then | |
10912 echo "$ac_t""yes" 1>&6 | |
10913 with_database_berkdb=yes need_libdb=yes | |
10914 else | |
10915 echo "$ac_t""no" 1>&6 | |
10916 fi | |
10917 | |
10918 | |
10919 fi | |
10920 | |
10921 fi | |
10922 | |
10977 if test "$with_database_berkdb" = "yes"; then | 10923 if test "$with_database_berkdb" = "yes"; then |
10978 { test "$extra_verbose" = "yes" && cat << EOF | 10924 { test "$extra_verbose" = "yes" && cat << EOF |
10979 Defining DB_H_PATH = "$db_h_path" | 10925 Defining DB_H_PATH = "$db_h_path" |
10980 EOF | 10926 EOF |
10981 cat >> confdefs.h <<EOF | 10927 cat >> confdefs.h <<EOF |
11012 fi | 10958 fi |
11013 | 10959 |
11014 if test "$with_socks" = "yes"; then | 10960 if test "$with_socks" = "yes"; then |
11015 | 10961 |
11016 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 | 10962 echo $ac_n "checking for SOCKSinit in -lsocks""... $ac_c" 1>&6 |
11017 echo "configure:11018: checking for SOCKSinit in -lsocks" >&5 | 10963 echo "configure:10964: checking for SOCKSinit in -lsocks" >&5 |
11018 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` | 10964 ac_lib_var=`echo socks'_'SOCKSinit | sed 'y%./+-%__p_%'` |
11019 | 10965 |
11020 xe_check_libs=" -lsocks " | 10966 xe_check_libs=" -lsocks " |
11021 cat > conftest.$ac_ext <<EOF | 10967 cat > conftest.$ac_ext <<EOF |
11022 #line 11023 "configure" | 10968 #line 10969 "configure" |
11023 #include "confdefs.h" | 10969 #include "confdefs.h" |
11024 /* Override any gcc2 internal prototype to avoid an error. */ | 10970 /* Override any gcc2 internal prototype to avoid an error. */ |
11025 /* We use char because int might match the return type of a gcc2 | 10971 /* We use char because int might match the return type of a gcc2 |
11026 builtin and then its argument prototype would still apply. */ | 10972 builtin and then its argument prototype would still apply. */ |
11027 char SOCKSinit(); | 10973 char SOCKSinit(); |
11028 | 10974 |
11029 int main() { | 10975 int main() { |
11030 SOCKSinit() | 10976 SOCKSinit() |
11031 ; return 0; } | 10977 ; return 0; } |
11032 EOF | 10978 EOF |
11033 if { (eval echo configure:11034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11034 rm -rf conftest* | 10980 rm -rf conftest* |
11035 eval "ac_cv_lib_$ac_lib_var=yes" | 10981 eval "ac_cv_lib_$ac_lib_var=yes" |
11036 else | 10982 else |
11037 echo "configure: failed program was:" >&5 | 10983 echo "configure: failed program was:" >&5 |
11038 cat conftest.$ac_ext >&5 | 10984 cat conftest.$ac_ext >&5 |
11085 | 11031 |
11086 for ac_hdr in dlfcn.h | 11032 for ac_hdr in dlfcn.h |
11087 do | 11033 do |
11088 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 11034 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
11089 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 11035 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
11090 echo "configure:11091: checking for $ac_hdr" >&5 | 11036 echo "configure:11037: checking for $ac_hdr" >&5 |
11091 | 11037 |
11092 cat > conftest.$ac_ext <<EOF | 11038 cat > conftest.$ac_ext <<EOF |
11093 #line 11094 "configure" | 11039 #line 11040 "configure" |
11094 #include "confdefs.h" | 11040 #include "confdefs.h" |
11095 #include <$ac_hdr> | 11041 #include <$ac_hdr> |
11096 EOF | 11042 EOF |
11097 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 11043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
11098 { (eval echo configure:11099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 11044 { (eval echo configure:11045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
11099 ac_err=`grep -v '^ *+' conftest.out` | 11045 ac_err=`grep -v '^ *+' conftest.out` |
11100 if test -z "$ac_err"; then | 11046 if test -z "$ac_err"; then |
11101 rm -rf conftest* | 11047 rm -rf conftest* |
11102 eval "ac_cv_header_$ac_safe=yes" | 11048 eval "ac_cv_header_$ac_safe=yes" |
11103 else | 11049 else |
11124 fi | 11070 fi |
11125 done | 11071 done |
11126 | 11072 |
11127 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11073 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11128 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 11074 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
11129 echo "configure:11130: checking for dlopen in -ldl" >&5 | 11075 echo "configure:11076: checking for dlopen in -ldl" >&5 |
11130 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 11076 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
11131 | 11077 |
11132 xe_check_libs=" -ldl " | 11078 xe_check_libs=" -ldl " |
11133 cat > conftest.$ac_ext <<EOF | 11079 cat > conftest.$ac_ext <<EOF |
11134 #line 11135 "configure" | 11080 #line 11081 "configure" |
11135 #include "confdefs.h" | 11081 #include "confdefs.h" |
11136 /* Override any gcc2 internal prototype to avoid an error. */ | 11082 /* Override any gcc2 internal prototype to avoid an error. */ |
11137 /* We use char because int might match the return type of a gcc2 | 11083 /* We use char because int might match the return type of a gcc2 |
11138 builtin and then its argument prototype would still apply. */ | 11084 builtin and then its argument prototype would still apply. */ |
11139 char dlopen(); | 11085 char dlopen(); |
11140 | 11086 |
11141 int main() { | 11087 int main() { |
11142 dlopen() | 11088 dlopen() |
11143 ; return 0; } | 11089 ; return 0; } |
11144 EOF | 11090 EOF |
11145 if { (eval echo configure:11146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11091 if { (eval echo configure:11092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11146 rm -rf conftest* | 11092 rm -rf conftest* |
11147 eval "ac_cv_lib_$ac_lib_var=yes" | 11093 eval "ac_cv_lib_$ac_lib_var=yes" |
11148 else | 11094 else |
11149 echo "configure: failed program was:" >&5 | 11095 echo "configure: failed program was:" >&5 |
11150 cat conftest.$ac_ext >&5 | 11096 cat conftest.$ac_ext >&5 |
11169 fi | 11115 fi |
11170 | 11116 |
11171 } | 11117 } |
11172 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11118 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11173 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 | 11119 echo $ac_n "checking for _dlopen in -lc""... $ac_c" 1>&6 |
11174 echo "configure:11175: checking for _dlopen in -lc" >&5 | 11120 echo "configure:11121: checking for _dlopen in -lc" >&5 |
11175 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` | 11121 ac_lib_var=`echo c'_'_dlopen | sed 'y%./+-%__p_%'` |
11176 | 11122 |
11177 xe_check_libs=" -lc " | 11123 xe_check_libs=" -lc " |
11178 cat > conftest.$ac_ext <<EOF | 11124 cat > conftest.$ac_ext <<EOF |
11179 #line 11180 "configure" | 11125 #line 11126 "configure" |
11180 #include "confdefs.h" | 11126 #include "confdefs.h" |
11181 /* Override any gcc2 internal prototype to avoid an error. */ | 11127 /* Override any gcc2 internal prototype to avoid an error. */ |
11182 /* We use char because int might match the return type of a gcc2 | 11128 /* We use char because int might match the return type of a gcc2 |
11183 builtin and then its argument prototype would still apply. */ | 11129 builtin and then its argument prototype would still apply. */ |
11184 char _dlopen(); | 11130 char _dlopen(); |
11185 | 11131 |
11186 int main() { | 11132 int main() { |
11187 _dlopen() | 11133 _dlopen() |
11188 ; return 0; } | 11134 ; return 0; } |
11189 EOF | 11135 EOF |
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11191 rm -rf conftest* | 11137 rm -rf conftest* |
11192 eval "ac_cv_lib_$ac_lib_var=yes" | 11138 eval "ac_cv_lib_$ac_lib_var=yes" |
11193 else | 11139 else |
11194 echo "configure: failed program was:" >&5 | 11140 echo "configure: failed program was:" >&5 |
11195 cat conftest.$ac_ext >&5 | 11141 cat conftest.$ac_ext >&5 |
11214 fi | 11160 fi |
11215 | 11161 |
11216 } | 11162 } |
11217 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { | 11163 test -z "$with_shlib" && test ! -z "$have_dlfcn" && { |
11218 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 | 11164 echo $ac_n "checking for dlopen in -lc""... $ac_c" 1>&6 |
11219 echo "configure:11220: checking for dlopen in -lc" >&5 | 11165 echo "configure:11166: checking for dlopen in -lc" >&5 |
11220 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` | 11166 ac_lib_var=`echo c'_'dlopen | sed 'y%./+-%__p_%'` |
11221 | 11167 |
11222 xe_check_libs=" -lc " | 11168 xe_check_libs=" -lc " |
11223 cat > conftest.$ac_ext <<EOF | 11169 cat > conftest.$ac_ext <<EOF |
11224 #line 11225 "configure" | 11170 #line 11171 "configure" |
11225 #include "confdefs.h" | 11171 #include "confdefs.h" |
11226 /* Override any gcc2 internal prototype to avoid an error. */ | 11172 /* Override any gcc2 internal prototype to avoid an error. */ |
11227 /* We use char because int might match the return type of a gcc2 | 11173 /* We use char because int might match the return type of a gcc2 |
11228 builtin and then its argument prototype would still apply. */ | 11174 builtin and then its argument prototype would still apply. */ |
11229 char dlopen(); | 11175 char dlopen(); |
11230 | 11176 |
11231 int main() { | 11177 int main() { |
11232 dlopen() | 11178 dlopen() |
11233 ; return 0; } | 11179 ; return 0; } |
11234 EOF | 11180 EOF |
11235 if { (eval echo configure:11236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11181 if { (eval echo configure:11182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11236 rm -rf conftest* | 11182 rm -rf conftest* |
11237 eval "ac_cv_lib_$ac_lib_var=yes" | 11183 eval "ac_cv_lib_$ac_lib_var=yes" |
11238 else | 11184 else |
11239 echo "configure: failed program was:" >&5 | 11185 echo "configure: failed program was:" >&5 |
11240 cat conftest.$ac_ext >&5 | 11186 cat conftest.$ac_ext >&5 |
11259 fi | 11205 fi |
11260 | 11206 |
11261 } | 11207 } |
11262 test -z "$with_shlib" && { | 11208 test -z "$with_shlib" && { |
11263 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 | 11209 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
11264 echo "configure:11265: checking for shl_load in -ldld" >&5 | 11210 echo "configure:11211: checking for shl_load in -ldld" >&5 |
11265 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` | 11211 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
11266 | 11212 |
11267 xe_check_libs=" -ldld " | 11213 xe_check_libs=" -ldld " |
11268 cat > conftest.$ac_ext <<EOF | 11214 cat > conftest.$ac_ext <<EOF |
11269 #line 11270 "configure" | 11215 #line 11216 "configure" |
11270 #include "confdefs.h" | 11216 #include "confdefs.h" |
11271 /* Override any gcc2 internal prototype to avoid an error. */ | 11217 /* Override any gcc2 internal prototype to avoid an error. */ |
11272 /* We use char because int might match the return type of a gcc2 | 11218 /* We use char because int might match the return type of a gcc2 |
11273 builtin and then its argument prototype would still apply. */ | 11219 builtin and then its argument prototype would still apply. */ |
11274 char shl_load(); | 11220 char shl_load(); |
11275 | 11221 |
11276 int main() { | 11222 int main() { |
11277 shl_load() | 11223 shl_load() |
11278 ; return 0; } | 11224 ; return 0; } |
11279 EOF | 11225 EOF |
11280 if { (eval echo configure:11281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11226 if { (eval echo configure:11227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11281 rm -rf conftest* | 11227 rm -rf conftest* |
11282 eval "ac_cv_lib_$ac_lib_var=yes" | 11228 eval "ac_cv_lib_$ac_lib_var=yes" |
11283 else | 11229 else |
11284 echo "configure: failed program was:" >&5 | 11230 echo "configure: failed program was:" >&5 |
11285 cat conftest.$ac_ext >&5 | 11231 cat conftest.$ac_ext >&5 |
11304 fi | 11250 fi |
11305 | 11251 |
11306 } | 11252 } |
11307 test -z "$with_shlib" && { | 11253 test -z "$with_shlib" && { |
11308 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 | 11254 echo $ac_n "checking for dld_init in -ldld""... $ac_c" 1>&6 |
11309 echo "configure:11310: checking for dld_init in -ldld" >&5 | 11255 echo "configure:11256: checking for dld_init in -ldld" >&5 |
11310 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` | 11256 ac_lib_var=`echo dld'_'dld_init | sed 'y%./+-%__p_%'` |
11311 | 11257 |
11312 xe_check_libs=" -ldld " | 11258 xe_check_libs=" -ldld " |
11313 cat > conftest.$ac_ext <<EOF | 11259 cat > conftest.$ac_ext <<EOF |
11314 #line 11315 "configure" | 11260 #line 11261 "configure" |
11315 #include "confdefs.h" | 11261 #include "confdefs.h" |
11316 /* Override any gcc2 internal prototype to avoid an error. */ | 11262 /* Override any gcc2 internal prototype to avoid an error. */ |
11317 /* We use char because int might match the return type of a gcc2 | 11263 /* We use char because int might match the return type of a gcc2 |
11318 builtin and then its argument prototype would still apply. */ | 11264 builtin and then its argument prototype would still apply. */ |
11319 char dld_init(); | 11265 char dld_init(); |
11320 | 11266 |
11321 int main() { | 11267 int main() { |
11322 dld_init() | 11268 dld_init() |
11323 ; return 0; } | 11269 ; return 0; } |
11324 EOF | 11270 EOF |
11325 if { (eval echo configure:11326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11271 if { (eval echo configure:11272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11326 rm -rf conftest* | 11272 rm -rf conftest* |
11327 eval "ac_cv_lib_$ac_lib_var=yes" | 11273 eval "ac_cv_lib_$ac_lib_var=yes" |
11328 else | 11274 else |
11329 echo "configure: failed program was:" >&5 | 11275 echo "configure: failed program was:" >&5 |
11330 cat conftest.$ac_ext >&5 | 11276 cat conftest.$ac_ext >&5 |
11370 dll_lflags="-shared" | 11316 dll_lflags="-shared" |
11371 dll_cflags="-r" | 11317 dll_cflags="-r" |
11372 dll_oflags="-o " | 11318 dll_oflags="-o " |
11373 | 11319 |
11374 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 | 11320 echo $ac_n "checking how to build a shared library""... $ac_c" 1>&6 |
11375 echo "configure:11376: checking how to build a shared library" >&5 | 11321 echo "configure:11322: checking how to build a shared library" >&5 |
11376 case `uname -rs` in | 11322 case `uname -rs` in |
11377 UNIX_SV*|UNIX_System_V*) | 11323 UNIX_SV*|UNIX_System_V*) |
11378 dll_lflags="-G" | 11324 dll_lflags="-G" |
11379 dll_cflags=-Kpic | 11325 dll_cflags=-Kpic |
11380 dll_ld="ld" | 11326 dll_ld="ld" |
11461 | 11407 |
11462 | 11408 |
11463 for ac_func in dlerror | 11409 for ac_func in dlerror |
11464 do | 11410 do |
11465 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 11411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
11466 echo "configure:11467: checking for $ac_func" >&5 | 11412 echo "configure:11413: checking for $ac_func" >&5 |
11467 | 11413 |
11468 cat > conftest.$ac_ext <<EOF | 11414 cat > conftest.$ac_ext <<EOF |
11469 #line 11470 "configure" | 11415 #line 11416 "configure" |
11470 #include "confdefs.h" | 11416 #include "confdefs.h" |
11471 /* System header to define __stub macros and hopefully few prototypes, | 11417 /* System header to define __stub macros and hopefully few prototypes, |
11472 which can conflict with char $ac_func(); below. */ | 11418 which can conflict with char $ac_func(); below. */ |
11473 #include <assert.h> | 11419 #include <assert.h> |
11474 /* Override any gcc2 internal prototype to avoid an error. */ | 11420 /* Override any gcc2 internal prototype to avoid an error. */ |
11487 $ac_func(); | 11433 $ac_func(); |
11488 #endif | 11434 #endif |
11489 | 11435 |
11490 ; return 0; } | 11436 ; return 0; } |
11491 EOF | 11437 EOF |
11492 if { (eval echo configure:11493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then | 11438 if { (eval echo configure:11439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
11493 rm -rf conftest* | 11439 rm -rf conftest* |
11494 eval "ac_cv_func_$ac_func=yes" | 11440 eval "ac_cv_func_$ac_func=yes" |
11495 else | 11441 else |
11496 echo "configure: failed program was:" >&5 | 11442 echo "configure: failed program was:" >&5 |
11497 cat conftest.$ac_ext >&5 | 11443 cat conftest.$ac_ext >&5 |
11523 *) ;; | 11469 *) ;; |
11524 esac | 11470 esac |
11525 fi | 11471 fi |
11526 | 11472 |
11527 cat > conftest.$ac_ext <<EOF | 11473 cat > conftest.$ac_ext <<EOF |
11528 #line 11529 "configure" | 11474 #line 11475 "configure" |
11529 #include "confdefs.h" | 11475 #include "confdefs.h" |
11530 int main(int c,char *v[]){return 0;} | 11476 int main(int c,char *v[]){return 0;} |
11531 EOF | 11477 EOF |
11532 if { (eval echo configure:11533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 | 11478 if { (eval echo configure:11479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>&5 |
11533 then | 11479 then |
11534 : | 11480 : |
11535 else | 11481 else |
11536 echo "configure: failed program was:" >&5 | 11482 echo "configure: failed program was:" >&5 |
11537 cat conftest.$ac_ext >&5 | 11483 cat conftest.$ac_ext >&5 |